]> git.saurik.com Git - wxWidgets.git/blame - configure
samples configuration didn't work
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
fe0895cf 6# generated automatically by aclocal 1.7.2 -*- Autoconf -*-
a0b9e27f 7
fe0895cf
VS
8# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This file is free software; the Free Software Foundation
11# gives unlimited permission to copy and/or distribute it,
12# with or without modifications, as long as this notice is preserved.
a0b9e27f 13
fe0895cf
VS
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
16# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17# PARTICULAR PURPOSE.
a0b9e27f
MB
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
52127426 35
52127426 36
8284b0c5
MB
37
38
39
40
41
42
43
44
45
8284b0c5
MB
46
47
48
49
50
51
52
53
8284b0c5
MB
54
55
56
247f5006 57
247f5006 58
a0b9e27f
MB
59
60
61
62
63
64
2b5f62a0
VZ
65
66
67
521196a2
MB
68
69
70
a0b9e27f
MB
71
72
73
74
75# Configure paths for GTK+
76# Owen Taylor 1997-2001
77
78
79
2b5f62a0
VZ
80# Configure paths for GTK+
81# Owen Taylor 97-11-3
a0b9e27f
MB
82
83
84
85
86
a0b9e27f
MB
87
88
89
fe0895cf
VS
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
a0b9e27f
MB
127# Guess values for system-dependent variables and create Makefiles.
128# Generated automatically using autoconf version 2.13
129# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130#
131# This configure script is free software; the Free Software Foundation
132# gives unlimited permission to copy, distribute and modify it.
133
134# Defaults:
135ac_help=
136ac_default_prefix=/usr/local
137# Any additions from configure.in:
138ac_help="$ac_help
139 --enable-gui use GUI classes"
140ac_help="$ac_help
141 --enable-universal use wxWindows GUI controls instead of native ones"
142ac_help="$ac_help
143 --with-gtk use GTK+"
144ac_help="$ac_help
145 --with-motif use Motif/Lesstif"
146ac_help="$ac_help
147 --with-mac use Mac OS X"
ac0c4cc3
DE
148ac_help="$ac_help
149 --with-cocoa use Cocoa"
a0b9e27f 150ac_help="$ac_help
89e6bf6d 151 --with-wine use Wine"
a0b9e27f
MB
152ac_help="$ac_help
153 --with-msw use MS-Windows"
154ac_help="$ac_help
155 --with-pm use OS/2 Presentation Manager"
156ac_help="$ac_help
157 --with-mgl use SciTech MGL"
158ac_help="$ac_help
159 --with-microwin use MicroWindows"
160ac_help="$ac_help
161 --with-x11 use X11"
162ac_help="$ac_help
163 --enable-nanox use NanoX"
164ac_help="$ac_help
165 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
166ac_help="$ac_help
167 --with-libpng use libpng (PNG image format)"
168ac_help="$ac_help
169 --with-libjpeg use libjpeg (JPEG file format)"
170ac_help="$ac_help
171 --with-libtiff use libtiff (TIFF file format)"
172ac_help="$ac_help
173 --with-opengl use OpenGL (or Mesa)"
174ac_help="$ac_help
175 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
176ac_help="$ac_help
177 --with-regex enable support for wxRegEx class"
178ac_help="$ac_help
179 --with-zlib use zlib for LZW compression"
180ac_help="$ac_help
181 --with-odbc use the IODBC and wxODBC classes"
182ac_help="$ac_help
183 --enable-shared create shared library code"
184ac_help="$ac_help
185 --enable-soname set the DT_SONAME field in ELF shared libraries"
186ac_help="$ac_help
187 --enable-optimise create optimised code"
188ac_help="$ac_help
189 --enable-debug same as debug_flag and debug_info"
190ac_help="$ac_help
b2fee376 191 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
192ac_help="$ac_help
193 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
194ac_help="$ac_help
195 --enable-debug_info create code with debugging information"
196ac_help="$ac_help
197 --enable-debug_gdb create code with extra GDB debugging information"
198ac_help="$ac_help
199 --enable-debug_cntxt use wxDebugContext"
200ac_help="$ac_help
201 --enable-mem_tracing create code with memory tracing"
202ac_help="$ac_help
203 --enable-profile create code with profiling information"
204ac_help="$ac_help
205 --enable-no_rtti create code without RTTI information"
206ac_help="$ac_help
207 --enable-no_exceptions create code without C++ exceptions handling"
208ac_help="$ac_help
209 --enable-permissive compile code disregarding strict ANSI"
210ac_help="$ac_help
211 --enable-no_deps create code without dependency information"
212ac_help="$ac_help
213 --enable-compat20 enable wxWindows 2.0 compatibility"
214ac_help="$ac_help
65d8ef1e
VS
215 --enable-compat22 enable wxWindows 2.2 compatibility"
216ac_help="$ac_help
217 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
218ac_help="$ac_help
219 --enable-rpath=DIR output the rpath flag from wx-config"
220ac_help="$ac_help
221 --enable-intl use internationalization system"
222ac_help="$ac_help
223 --enable-config use wxConfig (and derived) classes"
224ac_help="$ac_help
225 --enable-protocols use wxProtocol and derived classes"
226ac_help="$ac_help
227 --enable-ftp use wxFTP (requires wxProtocol"
228ac_help="$ac_help
229 --enable-http use wxHTTP (requires wxProtocol"
230ac_help="$ac_help
231 --enable-fileproto use wxFileProto class (requires wxProtocol"
232ac_help="$ac_help
233 --enable-sockets use socket/network classes"
3bce6687
JS
234ac_help="$ac_help
235 --enable-ole use OLE classes"
236ac_help="$ac_help
237 --enable-dataobj use data object classes"
a0b9e27f
MB
238ac_help="$ac_help
239 --enable-ipc use interprocess communication (wxSocket etc.)"
240ac_help="$ac_help
241 --enable-cmdline use wxCmdLineParser class"
242ac_help="$ac_help
243 --enable-datetime use wxDateTime class"
a0b9e27f
MB
244ac_help="$ac_help
245 --enable-stopwatch use wxStopWatch class"
246ac_help="$ac_help
247 --enable-dialupman use dialup network classes"
248ac_help="$ac_help
249 --enable-apple_ieee use the Apple IEEE codec"
250ac_help="$ac_help
251 --enable-timer use wxTimer class"
252ac_help="$ac_help
253 --enable-wave use wxWave class"
254ac_help="$ac_help
255 --enable-fraction use wxFraction class"
256ac_help="$ac_help
257 --enable-dynlib use wxLibrary class for DLL loading"
258ac_help="$ac_help
259 --enable-dynamicloader use (new) wxDynamicLibrary class"
260ac_help="$ac_help
261 --enable-longlong use wxLongLong class"
262ac_help="$ac_help
263 --enable-geometry use geometry class"
264ac_help="$ac_help
265 --enable-log use logging system"
266ac_help="$ac_help
267 --enable-streams use wxStream etc classes"
268ac_help="$ac_help
269 --enable-file use wxFile classes"
270ac_help="$ac_help
271 --enable-ffile use wxFFile classes"
272ac_help="$ac_help
273 --enable-textbuf use wxTextBuffer class"
274ac_help="$ac_help
275 --enable-textfile use wxTextFile class"
276ac_help="$ac_help
277 --enable-fontmap use font encodings conversion classes"
278ac_help="$ac_help
279 --enable-unicode compile wxString with Unicode support"
280ac_help="$ac_help
281 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
282ac_help="$ac_help
283 --enable-wxprintfv use wxWindows implementation of vprintf()"
284ac_help="$ac_help
285 --enable-std_iostreams use standard C++ stream classes"
286ac_help="$ac_help
287 --enable-filesystem use virtual file systems classes"
288ac_help="$ac_help
289 --enable-fs_inet use virtual HTTP/FTP filesystems"
290ac_help="$ac_help
291 --enable-fs_zip use virtual ZIP filesystems"
292ac_help="$ac_help
293 --enable-zipstream use wxZipInputStream"
294ac_help="$ac_help
295 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
296ac_help="$ac_help
297 --enable-snglinst use wxSingleInstanceChecker class"
298ac_help="$ac_help
299 --enable-mimetype use wxMimeTypesManager"
300ac_help="$ac_help
301 --enable-sysoptions use wxSystemOptions"
302ac_help="$ac_help
303 --enable-url use wxURL class"
304ac_help="$ac_help
305 --enable-protocol use wxProtocol class"
306ac_help="$ac_help
307 --enable-protocol-http HTTP support in wxProtocol"
308ac_help="$ac_help
309 --enable-protocol-ftp FTP support in wxProtocol"
310ac_help="$ac_help
311 --enable-protocol-file FILE support in wxProtocol"
312ac_help="$ac_help
313 --enable-threads use threads"
314ac_help="$ac_help
315 --enable-docview use document view architecture"
316ac_help="$ac_help
317 --enable-help use help subsystem"
318ac_help="$ac_help
319 --enable-mshtmlhelp use MS HTML Help (win32)"
320ac_help="$ac_help
321 --enable-html use wxHTML sub-library"
322ac_help="$ac_help
323 --enable-htmlhelp use wxHTML-based help"
324ac_help="$ac_help
325 --enable-constraints use layout-constraints system"
326ac_help="$ac_help
327 --enable-printarch use printing architecture"
328ac_help="$ac_help
329 --enable-mdi use multiple document interface architecture"
330ac_help="$ac_help
331 --enable-loggui use standard GUI logger"
332ac_help="$ac_help
333 --enable-logwin use wxLogWindow"
334ac_help="$ac_help
335 --enable-logdialog use wxLogDialog"
336ac_help="$ac_help
337 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
a0b9e27f 338ac_help="$ac_help
3c907f20 339 --enable-prologio not available; see contrib"
a0b9e27f 340ac_help="$ac_help
3c907f20 341 --enable-resources not available; see contrib"
a0b9e27f 342ac_help="$ac_help
da494b40 343 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
344ac_help="$ac_help
345 --enable-dnd use Drag'n'Drop classes"
346ac_help="$ac_help
347 --enable-metafile use win32 metafiles"
a0b9e27f
MB
348ac_help="$ac_help
349 --enable-controls use all usual controls"
350ac_help="$ac_help
351 --enable-accel use accelerators"
352ac_help="$ac_help
353 --enable-button use wxButton class"
354ac_help="$ac_help
355 --enable-bmpbutton use wxBitmapButton class"
356ac_help="$ac_help
357 --enable-calendar use wxCalendarCtrl class"
358ac_help="$ac_help
359 --enable-caret use wxCaret class"
360ac_help="$ac_help
361 --enable-checkbox use wxCheckBox class"
362ac_help="$ac_help
363 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
364ac_help="$ac_help
365 --enable-choice use wxChoice class"
366ac_help="$ac_help
da494b40
MB
367 --enable-combobox use wxComboBox class"
368ac_help="$ac_help
369 --enable-display use wxDisplay class"
a0b9e27f
MB
370ac_help="$ac_help
371 --enable-gauge use wxGauge class"
372ac_help="$ac_help
373 --enable-grid use wxGrid class"
a0b9e27f
MB
374ac_help="$ac_help
375 --enable-imaglist use wxImageList class"
376ac_help="$ac_help
377 --enable-listbox use wxListBox class"
378ac_help="$ac_help
379 --enable-listctrl use wxListCtrl class"
380ac_help="$ac_help
381 --enable-notebook use wxNotebook class"
a0b9e27f
MB
382ac_help="$ac_help
383 --enable-radiobox use wxRadioBox class"
384ac_help="$ac_help
385 --enable-radiobtn use wxRadioButton class"
386ac_help="$ac_help
387 --enable-sash use wxSashWindow class"
388ac_help="$ac_help
389 --enable-scrollbar use wxScrollBar class and scrollable windows"
390ac_help="$ac_help
391 --enable-slider use wxSlider class"
392ac_help="$ac_help
393 --enable-spinbtn use wxSpinButton class"
394ac_help="$ac_help
395 --enable-spinctrl use wxSpinCtrl class"
396ac_help="$ac_help
397 --enable-splitter use wxSplitterWindow class"
398ac_help="$ac_help
399 --enable-statbmp use wxStaticBitmap class"
400ac_help="$ac_help
401 --enable-statbox use wxStaticBox class"
402ac_help="$ac_help
403 --enable-statline use wxStaticLine class"
404ac_help="$ac_help
405 --enable-stattext use wxStaticText class"
406ac_help="$ac_help
407 --enable-statusbar use wxStatusBar class"
408ac_help="$ac_help
409 --enable-tabdialog use wxTabControl class"
410ac_help="$ac_help
411 --enable-textctrl use wxTextCtrl class"
412ac_help="$ac_help
413 --enable-togglebtn use wxToggleButton class"
414ac_help="$ac_help
415 --enable-toolbar use wxToolBar class"
416ac_help="$ac_help
417 --enable-tbarnative use native wxToolBar class"
418ac_help="$ac_help
419 --enable-tbarsmpl use wxToolBarSimple class"
420ac_help="$ac_help
421 --enable-treectrl use wxTreeCtrl class"
422ac_help="$ac_help
423 --enable-tipwindow use wxTipWindow class"
424ac_help="$ac_help
425 --enable-popupwin use wxPopUpWindow class"
426ac_help="$ac_help
427 --enable-commondlg use all common dialogs"
428ac_help="$ac_help
429 --enable-choicedlg use wxChoiceDialog"
430ac_help="$ac_help
431 --enable-coldlg use wxColourDialog"
432ac_help="$ac_help
433 --enable-filedlg use wxFileDialog"
434ac_help="$ac_help
435 --enable-finddlg use wxFindReplaceDialog"
436ac_help="$ac_help
437 --enable-fontdlg use wxFontDialog"
438ac_help="$ac_help
439 --enable-dirdlg use wxDirDialog"
440ac_help="$ac_help
441 --enable-msgdlg use wxMessageDialog"
442ac_help="$ac_help
443 --enable-numberdlg use wxNumberEntryDialog"
444ac_help="$ac_help
445 --enable-splash use wxSplashScreen"
446ac_help="$ac_help
447 --enable-textdlg use wxTextDialog"
448ac_help="$ac_help
449 --enable-tipdlg use startup tips"
450ac_help="$ac_help
451 --enable-progressdlg use wxProgressDialog"
452ac_help="$ac_help
453 --enable-wizarddlg use wxWizard"
454ac_help="$ac_help
455 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
456ac_help="$ac_help
457 --enable-miniframe use wxMiniFrame class"
458ac_help="$ac_help
459 --enable-tooltips use wxToolTip class"
460ac_help="$ac_help
461 --enable-splines use spline drawing code"
462ac_help="$ac_help
463 --enable-validators use wxValidator and derived classes"
464ac_help="$ac_help
465 --enable-busyinfo use wxBusyInfo"
466ac_help="$ac_help
467 --enable-joystick use wxJoystick (Linux only)"
468ac_help="$ac_help
469 --enable-metafiles use wxMetaFile (Windows only)"
470ac_help="$ac_help
471 --enable-dragimage use wxDragImage"
7bb2947d
MB
472ac_help="$ac_help
473 --enable-accessibility enable accessibility support"
a0b9e27f
MB
474ac_help="$ac_help
475 --enable-palette use wxPalette class"
476ac_help="$ac_help
477 --enable-image use wxImage class"
478ac_help="$ac_help
479 --enable-gif use gif images (GIF file format)"
480ac_help="$ac_help
481 --enable-pcx use pcx images (PCX file format)"
482ac_help="$ac_help
483 --enable-iff use iff images (IFF file format)"
484ac_help="$ac_help
485 --enable-pnm use pnm images (PNM file format)"
486ac_help="$ac_help
487 --enable-xpm use xpm images (XPM file format)"
488ac_help="$ac_help
489 --enable-icocur use Windows ICO and CUR formats"
490ac_help="$ac_help
491 --disable-largefile omit support for large files"
492ac_help="$ac_help
493 --disable-gtktest do not try to compile and run a test GTK+ program"
494ac_help="$ac_help
495 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
496ac_help="$ac_help
497 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
498ac_help="$ac_help
499 --disable-gtktest Do not try to compile and run a test GTK program"
500ac_help="$ac_help
501 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
502ac_help="$ac_help
503 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
504ac_help="$ac_help
505 --disable-gtktest Do not try to compile and run a test GTK program"
506ac_help="$ac_help
507 --with-x use the X Window System"
508ac_help="$ac_help
509 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
510
511# Initialize some variables set by options.
512# The variables have the same names as the options, with
513# dashes changed to underlines.
a0b9e27f
MB
514build=NONE
515cache_file=./config.cache
10f2d63a 516exec_prefix=NONE
a0b9e27f 517host=NONE
10f2d63a 518no_create=
a0b9e27f 519nonopt=NONE
10f2d63a
VZ
520no_recursion=
521prefix=NONE
522program_prefix=NONE
523program_suffix=NONE
524program_transform_name=s,x,x,
525silent=
526site=
527srcdir=
a0b9e27f 528target=NONE
10f2d63a
VZ
529verbose=
530x_includes=NONE
531x_libraries=NONE
532bindir='${exec_prefix}/bin'
533sbindir='${exec_prefix}/sbin'
534libexecdir='${exec_prefix}/libexec'
535datadir='${prefix}/share'
536sysconfdir='${prefix}/etc'
537sharedstatedir='${prefix}/com'
538localstatedir='${prefix}/var'
539libdir='${exec_prefix}/lib'
540includedir='${prefix}/include'
541oldincludedir='/usr/include'
542infodir='${prefix}/info'
543mandir='${prefix}/man'
544
a0b9e27f
MB
545# Initialize some other variables.
546subdirs=
547MFLAGS= MAKEFLAGS=
548SHELL=${CONFIG_SHELL-/bin/sh}
549# Maximum number of lines to put in a shell here document.
550ac_max_here_lines=12
551
10f2d63a
VZ
552ac_prev=
553for ac_option
554do
a0b9e27f 555
10f2d63a
VZ
556 # If the previous option needs an argument, assign it.
557 if test -n "$ac_prev"; then
558 eval "$ac_prev=\$ac_option"
559 ac_prev=
560 continue
561 fi
562
a0b9e27f
MB
563 case "$ac_option" in
564 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
565 *) ac_optarg= ;;
566 esac
10f2d63a
VZ
567
568 # Accept the important Cygnus configure options, so we can diagnose typos.
569
a0b9e27f 570 case "$ac_option" in
10f2d63a
VZ
571
572 -bindir | --bindir | --bindi | --bind | --bin | --bi)
573 ac_prev=bindir ;;
574 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 575 bindir="$ac_optarg" ;;
10f2d63a
VZ
576
577 -build | --build | --buil | --bui | --bu)
a0b9e27f 578 ac_prev=build ;;
10f2d63a 579 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 580 build="$ac_optarg" ;;
10f2d63a
VZ
581
582 -cache-file | --cache-file | --cache-fil | --cache-fi \
583 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
584 ac_prev=cache_file ;;
585 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
586 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 587 cache_file="$ac_optarg" ;;
10f2d63a
VZ
588
589 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
590 ac_prev=datadir ;;
591 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
592 | --da=*)
a0b9e27f 593 datadir="$ac_optarg" ;;
10f2d63a
VZ
594
595 -disable-* | --disable-*)
a0b9e27f 596 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 597 # Reject names that are not valid shell variable names.
a0b9e27f
MB
598 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
599 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
600 fi
601 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
602 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
603
604 -enable-* | --enable-*)
a0b9e27f 605 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 606 # Reject names that are not valid shell variable names.
a0b9e27f
MB
607 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
608 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
609 fi
610 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
611 case "$ac_option" in
612 *=*) ;;
10f2d63a
VZ
613 *) ac_optarg=yes ;;
614 esac
a0b9e27f 615 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
616
617 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
618 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
619 | --exec | --exe | --ex)
620 ac_prev=exec_prefix ;;
621 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
622 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
623 | --exec=* | --exe=* | --ex=*)
a0b9e27f 624 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
625
626 -gas | --gas | --ga | --g)
627 # Obsolete; use --with-gas.
628 with_gas=yes ;;
629
a0b9e27f
MB
630 -help | --help | --hel | --he)
631 # Omit some internal or obsolete options to make the list less imposing.
632 # This message is too long to be a string in the A/UX 3.1 sh.
633 cat << EOF
634Usage: configure [options] [host]
635Options: [defaults in brackets after descriptions]
636Configuration:
637 --cache-file=FILE cache test results in FILE
638 --help print this message
639 --no-create do not create output files
640 --quiet, --silent do not print \`checking...' messages
641 --version print the version of autoconf that created configure
642Directory and file names:
643 --prefix=PREFIX install architecture-independent files in PREFIX
644 [$ac_default_prefix]
645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 [same as prefix]
647 --bindir=DIR user executables in DIR [EPREFIX/bin]
648 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
649 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
650 --datadir=DIR read-only architecture-independent data in DIR
651 [PREFIX/share]
652 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
653 --sharedstatedir=DIR modifiable architecture-independent data in DIR
654 [PREFIX/com]
655 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
656 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
657 --includedir=DIR C header files in DIR [PREFIX/include]
658 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
659 --infodir=DIR info documentation in DIR [PREFIX/info]
660 --mandir=DIR man documentation in DIR [PREFIX/man]
661 --srcdir=DIR find the sources in DIR [configure dir or ..]
662 --program-prefix=PREFIX prepend PREFIX to installed program names
663 --program-suffix=SUFFIX append SUFFIX to installed program names
664 --program-transform-name=PROGRAM
665 run sed PROGRAM on installed program names
666EOF
667 cat << EOF
668Host type:
669 --build=BUILD configure for building on BUILD [BUILD=HOST]
670 --host=HOST configure for HOST [guessed]
671 --target=TARGET configure for TARGET [TARGET=HOST]
672Features and packages:
673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
677 --x-includes=DIR X include files are in DIR
678 --x-libraries=DIR X library files are in DIR
679EOF
680 if test -n "$ac_help"; then
681 echo "--enable and --with options recognized:$ac_help"
682 fi
683 exit 0 ;;
10f2d63a
VZ
684
685 -host | --host | --hos | --ho)
a0b9e27f 686 ac_prev=host ;;
10f2d63a 687 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 688 host="$ac_optarg" ;;
10f2d63a
VZ
689
690 -includedir | --includedir | --includedi | --included | --include \
691 | --includ | --inclu | --incl | --inc)
692 ac_prev=includedir ;;
693 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
694 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 695 includedir="$ac_optarg" ;;
10f2d63a
VZ
696
697 -infodir | --infodir | --infodi | --infod | --info | --inf)
698 ac_prev=infodir ;;
699 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 700 infodir="$ac_optarg" ;;
10f2d63a
VZ
701
702 -libdir | --libdir | --libdi | --libd)
703 ac_prev=libdir ;;
704 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 705 libdir="$ac_optarg" ;;
10f2d63a
VZ
706
707 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
708 | --libexe | --libex | --libe)
709 ac_prev=libexecdir ;;
710 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
711 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 712 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
713
714 -localstatedir | --localstatedir | --localstatedi | --localstated \
715 | --localstate | --localstat | --localsta | --localst \
716 | --locals | --local | --loca | --loc | --lo)
717 ac_prev=localstatedir ;;
718 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
719 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
720 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 721 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
722
723 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
724 ac_prev=mandir ;;
725 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 726 mandir="$ac_optarg" ;;
10f2d63a
VZ
727
728 -nfp | --nfp | --nf)
729 # Obsolete; use --without-fp.
730 with_fp=no ;;
731
732 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 733 | --no-cr | --no-c)
10f2d63a
VZ
734 no_create=yes ;;
735
736 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
737 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
738 no_recursion=yes ;;
739
740 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
741 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
742 | --oldin | --oldi | --old | --ol | --o)
743 ac_prev=oldincludedir ;;
744 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
745 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
746 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 747 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
748
749 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
750 ac_prev=prefix ;;
751 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 752 prefix="$ac_optarg" ;;
10f2d63a
VZ
753
754 -program-prefix | --program-prefix | --program-prefi | --program-pref \
755 | --program-pre | --program-pr | --program-p)
756 ac_prev=program_prefix ;;
757 -program-prefix=* | --program-prefix=* | --program-prefi=* \
758 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 759 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
760
761 -program-suffix | --program-suffix | --program-suffi | --program-suff \
762 | --program-suf | --program-su | --program-s)
763 ac_prev=program_suffix ;;
764 -program-suffix=* | --program-suffix=* | --program-suffi=* \
765 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 766 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
767
768 -program-transform-name | --program-transform-name \
769 | --program-transform-nam | --program-transform-na \
770 | --program-transform-n | --program-transform- \
771 | --program-transform | --program-transfor \
772 | --program-transfo | --program-transf \
773 | --program-trans | --program-tran \
774 | --progr-tra | --program-tr | --program-t)
775 ac_prev=program_transform_name ;;
776 -program-transform-name=* | --program-transform-name=* \
777 | --program-transform-nam=* | --program-transform-na=* \
778 | --program-transform-n=* | --program-transform-=* \
779 | --program-transform=* | --program-transfor=* \
780 | --program-transfo=* | --program-transf=* \
781 | --program-trans=* | --program-tran=* \
782 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 783 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
784
785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
786 | -silent | --silent | --silen | --sile | --sil)
787 silent=yes ;;
788
789 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
790 ac_prev=sbindir ;;
791 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
792 | --sbi=* | --sb=*)
a0b9e27f 793 sbindir="$ac_optarg" ;;
10f2d63a
VZ
794
795 -sharedstatedir | --sharedstatedir | --sharedstatedi \
796 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
797 | --sharedst | --shareds | --shared | --share | --shar \
798 | --sha | --sh)
799 ac_prev=sharedstatedir ;;
800 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
801 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
802 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
803 | --sha=* | --sh=*)
a0b9e27f 804 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
805
806 -site | --site | --sit)
807 ac_prev=site ;;
808 -site=* | --site=* | --sit=*)
a0b9e27f 809 site="$ac_optarg" ;;
10f2d63a
VZ
810
811 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
812 ac_prev=srcdir ;;
813 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 814 srcdir="$ac_optarg" ;;
10f2d63a
VZ
815
816 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
817 | --syscon | --sysco | --sysc | --sys | --sy)
818 ac_prev=sysconfdir ;;
819 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
820 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 821 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
822
823 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 824 ac_prev=target ;;
10f2d63a 825 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 826 target="$ac_optarg" ;;
10f2d63a
VZ
827
828 -v | -verbose | --verbose | --verbos | --verbo | --verb)
829 verbose=yes ;;
830
a0b9e27f
MB
831 -version | --version | --versio | --versi | --vers)
832 echo "configure generated by autoconf version 2.13"
833 exit 0 ;;
10f2d63a
VZ
834
835 -with-* | --with-*)
a0b9e27f 836 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 837 # Reject names that are not valid shell variable names.
a0b9e27f
MB
838 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
839 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
840 fi
10f2d63a 841 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
842 case "$ac_option" in
843 *=*) ;;
10f2d63a
VZ
844 *) ac_optarg=yes ;;
845 esac
a0b9e27f 846 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
847
848 -without-* | --without-*)
a0b9e27f 849 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 850 # Reject names that are not valid shell variable names.
a0b9e27f
MB
851 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
852 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
853 fi
854 ac_package=`echo $ac_package| sed 's/-/_/g'`
855 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
856
857 --x)
858 # Obsolete; use --with-x.
859 with_x=yes ;;
860
861 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
862 | --x-incl | --x-inc | --x-in | --x-i)
863 ac_prev=x_includes ;;
864 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
865 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 866 x_includes="$ac_optarg" ;;
10f2d63a
VZ
867
868 -x-libraries | --x-libraries | --x-librarie | --x-librari \
869 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
870 ac_prev=x_libraries ;;
871 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
872 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 873 x_libraries="$ac_optarg" ;;
10f2d63a 874
a0b9e27f 875 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
876 ;;
877
878 *)
a0b9e27f
MB
879 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
880 echo "configure: warning: $ac_option: invalid host type" 1>&2
881 fi
882 if test "x$nonopt" != xNONE; then
883 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
884 fi
885 nonopt="$ac_option"
10f2d63a
VZ
886 ;;
887
888 esac
889done
890
891if test -n "$ac_prev"; then
a0b9e27f 892 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 893fi
8284b0c5 894
a0b9e27f
MB
895trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
896
897# File descriptor usage:
898# 0 standard input
899# 1 file creation
900# 2 errors and warnings
901# 3 some systems may open it to /dev/tty
902# 4 used on the Kubota Titan
903# 6 checking for... messages and results
904# 5 compiler messages saved in config.log
905if test "$silent" = yes; then
906 exec 6>/dev/null
907else
908 exec 6>&1
909fi
910exec 5>./config.log
911
912echo "\
913This file contains any messages produced by compilers while
914running configure, to aid debugging if configure makes a mistake.
915" 1>&5
8284b0c5 916
a0b9e27f
MB
917# Strip out --no-create and --no-recursion so they do not pile up.
918# Also quote any args containing shell metacharacters.
919ac_configure_args=
920for ac_arg
10f2d63a 921do
a0b9e27f
MB
922 case "$ac_arg" in
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c) ;;
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
927 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
928 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
929 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
930 esac
931done
932
a0b9e27f
MB
933# NLS nuisances.
934# Only set these to C if already set. These must not be set unconditionally
935# because not all systems understand e.g. LANG=C (notably SCO).
936# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
937# Non-C LC_CTYPE values break the ctype check.
938if test "${LANG+set}" = set; then LANG=C; export LANG; fi
939if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
940if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
941if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 942
a0b9e27f
MB
943# confdefs.h avoids OS command line length limits that DEFS can exceed.
944rm -rf conftest* confdefs.h
945# AIX cpp loses on an empty file, so make sure it contains at least a newline.
946echo > confdefs.h
10f2d63a 947
a0b9e27f
MB
948# A filename unique to this package, relative to the directory that
949# configure is in, which we can look for to find out if srcdir is correct.
950ac_unique_file=wx-config.in
10f2d63a
VZ
951
952# Find the source files, if location was not specified.
953if test -z "$srcdir"; then
954 ac_srcdir_defaulted=yes
955 # Try the directory containing this script, then its parent.
a0b9e27f
MB
956 ac_prog=$0
957 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
958 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
959 srcdir=$ac_confdir
960 if test ! -r $srcdir/$ac_unique_file; then
961 srcdir=..
962 fi
963else
964 ac_srcdir_defaulted=no
965fi
966if test ! -r $srcdir/$ac_unique_file; then
967 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 968 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 969 else
a0b9e27f 970 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
971 fi
972fi
a0b9e27f 973srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 974
10f2d63a
VZ
975# Prefer explicitly selected file to automatically selected ones.
976if test -z "$CONFIG_SITE"; then
977 if test "x$prefix" != xNONE; then
978 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
979 else
980 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
981 fi
982fi
983for ac_site_file in $CONFIG_SITE; do
984 if test -r "$ac_site_file"; then
a0b9e27f 985 echo "loading site script $ac_site_file"
10f2d63a
VZ
986 . "$ac_site_file"
987 fi
988done
989
990if test -r "$cache_file"; then
a0b9e27f
MB
991 echo "loading cache $cache_file"
992 . $cache_file
10f2d63a 993else
a0b9e27f
MB
994 echo "creating cache $cache_file"
995 > $cache_file
10f2d63a
VZ
996fi
997
998ac_ext=c
a0b9e27f 999# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 1000ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
1001ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003cross_compiling=$ac_cv_prog_cc_cross
1004
1005ac_exeext=
1006ac_objext=o
1007if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1008 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1009 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1010 ac_n= ac_c='
1011' ac_t=' '
1012 else
1013 ac_n=-n ac_c= ac_t=
1014 fi
1015else
1016 ac_n= ac_c='\c' ac_t=
1017fi
8284b0c5
MB
1018
1019
10f2d63a 1020
7c66a493
VZ
1021ac_aux_dir=
1022for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1023 if test -f $ac_dir/install-sh; then
1024 ac_aux_dir=$ac_dir
1025 ac_install_sh="$ac_aux_dir/install-sh -c"
1026 break
1027 elif test -f $ac_dir/install.sh; then
1028 ac_aux_dir=$ac_dir
1029 ac_install_sh="$ac_aux_dir/install.sh -c"
1030 break
247f5006 1031 fi
7c66a493
VZ
1032done
1033if test -z "$ac_aux_dir"; then
a0b9e27f 1034 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 1035fi
a0b9e27f
MB
1036ac_config_guess=$ac_aux_dir/config.guess
1037ac_config_sub=$ac_aux_dir/config.sub
1038ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 1039
8284b0c5 1040
a0b9e27f
MB
1041# Do some error checking and defaulting for the host and target type.
1042# The inputs are:
1043# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1044#
1045# The rules are:
1046# 1. You are not allowed to specify --host, --target, and nonopt at the
1047# same time.
1048# 2. Host defaults to nonopt.
1049# 3. If nonopt is not specified, then host defaults to the current host,
1050# as determined by config.guess.
1051# 4. Target and build default to nonopt.
1052# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1053
1054# The aliases save the names the user supplied, while $host etc.
1055# will get canonicalized.
a0b9e27f
MB
1056case $host---$target---$nonopt in
1057NONE---*---* | *---NONE---* | *---*---NONE) ;;
1058*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1059esac
1060
1061
1062# Make sure we can run config.sub.
1063if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1064else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1065fi
1066
1067echo $ac_n "checking host system type""... $ac_c" 1>&6
fe0895cf 1068echo "configure:1069: checking host system type" >&5
a0b9e27f
MB
1069
1070host_alias=$host
1071case "$host_alias" in
1072NONE)
1073 case $nonopt in
1074 NONE)
1075 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1076 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1077 fi ;;
1078 *) host_alias=$nonopt ;;
1079 esac ;;
1080esac
1081
1082host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1083host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1084host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1085host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086echo "$ac_t""$host" 1>&6
1087
1088echo $ac_n "checking target system type""... $ac_c" 1>&6
fe0895cf 1089echo "configure:1090: checking target system type" >&5
a0b9e27f
MB
1090
1091target_alias=$target
1092case "$target_alias" in
1093NONE)
1094 case $nonopt in
1095 NONE) target_alias=$host_alias ;;
1096 *) target_alias=$nonopt ;;
1097 esac ;;
1098esac
1099
1100target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1101target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1102target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1103target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1104echo "$ac_t""$target" 1>&6
1105
1106echo $ac_n "checking build system type""... $ac_c" 1>&6
fe0895cf 1107echo "configure:1108: checking build system type" >&5
a0b9e27f
MB
1108
1109build_alias=$build
1110case "$build_alias" in
1111NONE)
1112 case $nonopt in
1113 NONE) build_alias=$host_alias ;;
1114 *) build_alias=$nonopt ;;
1115 esac ;;
1116esac
1117
1118build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1119build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122echo "$ac_t""$build" 1>&6
1123
1124test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1125 test "$program_prefix$program_suffix$program_transform_name" = \
1126 NONENONEs,x,x, &&
1127 program_prefix=${target_alias}-
8284b0c5
MB
1128
1129
a0b9e27f 1130
10f2d63a 1131WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1132WX_MINOR_VERSION_NUMBER=5
1133WX_RELEASE_NUMBER=0
10f2d63a 1134
10f2d63a 1135WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1136WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1137
978f1259
RL
1138WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1139
34bed6d9 1140WX_CURRENT=0
6426998c
RL
1141WX_REVISION=0
1142WX_AGE=0
1143
8284b0c5
MB
1144
1145
10f2d63a
VZ
1146USE_UNIX=1
1147USE_WIN32=0
f9bc1684 1148USE_DOS=0
b12915c1 1149USE_BEOS=0
1216f52d 1150USE_MAC=0
b12915c1 1151
10f2d63a 1152USE_AIX=
fe0895cf
VS
1153USE_BSD= USE_DARWIN= USE_FREEBSD=
1154USE_GNU= USE_HPUX=
89e3b3e4 1155USE_LINUX=
f6bcfd97 1156USE_NETBSD=
89e3b3e4 1157USE_OPENBSD=
fe0895cf
VS
1158USE_OSF= USE_SGI=
1159USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1160USE_ULTRIX=
89e3b3e4
VZ
1161USE_UNIXWARE=
1162
1163USE_ALPHA=
10f2d63a 1164
ab9b9eab
VZ
1165NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1166
ac0c4cc3 1167ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1168
ac0c4cc3 1169DEFAULT_wxUSE_COCOA=0
10f2d63a 1170DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1171DEFAULT_wxUSE_MAC=0
1172DEFAULT_wxUSE_MGL=0
1725144d 1173DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1174DEFAULT_wxUSE_MOTIF=0
1175DEFAULT_wxUSE_MSW=0
e07802fc 1176DEFAULT_wxUSE_PM=0
f79bd02d 1177DEFAULT_wxUSE_X11=0
10f2d63a 1178
ac0c4cc3 1179DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1180DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1181DEFAULT_DEFAULT_wxUSE_MAC=0
1182DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1183DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1184DEFAULT_DEFAULT_wxUSE_MOTIF=0
1185DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1186DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1187DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1188
d6a55c4b 1189PROGRAM_EXT=
3a922bb4 1190SO_SUFFIX=so
fe0895cf 1191SAMPLES_RPATH_FLAG=
d6a55c4b 1192
10f2d63a
VZ
1193case "${host}" in
1194 *-hp-hpux* )
1195 USE_HPUX=1
1196 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1197 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1198 SO_SUFFIX=sl
a0b9e27f 1199 cat >> confdefs.h <<\EOF
10f2d63a 1200#define __HPUX__ 1
a0b9e27f 1201EOF
10f2d63a
VZ
1202
1203 ;;
1204 *-*-linux* )
1205 USE_LINUX=1
a0b9e27f 1206 cat >> confdefs.h <<\EOF
10f2d63a 1207#define __LINUX__ 1
a0b9e27f 1208EOF
10f2d63a
VZ
1209
1210 TMP=`uname -m`
1211 if test "x$TMP" = "xalpha"; then
1212 USE_ALPHA=1
a0b9e27f 1213 cat >> confdefs.h <<\EOF
10f2d63a 1214#define __ALPHA__ 1
fe0895cf
VS
1215EOF
1216
1217 fi
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-gnu* )
1221 USE_GNU=1
1222 cat >> confdefs.h <<\EOF
1223#define __GNU__ 1
1224EOF
1225
1226 TMP=`uname -m`
1227 if test "x$TMP" = "xalpha"; then
1228 USE_ALPHA=1
1229 cat >> confdefs.h <<\EOF
1230#define __ALPHA__ 1
a0b9e27f 1231EOF
10f2d63a
VZ
1232
1233 fi
1234 DEFAULT_DEFAULT_wxUSE_GTK=1
1235 ;;
1236 *-*-irix5* | *-*-irix6* )
1237 USE_SGI=1
1238 USE_SVR4=1
a0b9e27f 1239 cat >> confdefs.h <<\EOF
10f2d63a 1240#define __SGI__ 1
a0b9e27f 1241EOF
10f2d63a 1242
a0b9e27f 1243 cat >> confdefs.h <<\EOF
10f2d63a 1244#define __SVR4__ 1
a0b9e27f 1245EOF
10f2d63a
VZ
1246
1247 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1248 ;;
1249 *-*-solaris2* )
1250 USE_SUN=1
1251 USE_SOLARIS=1
1252 USE_SVR4=1
a0b9e27f 1253 cat >> confdefs.h <<\EOF
10f2d63a 1254#define __SUN__ 1
a0b9e27f 1255EOF
10f2d63a 1256
a0b9e27f 1257 cat >> confdefs.h <<\EOF
10f2d63a 1258#define __SOLARIS__ 1
a0b9e27f 1259EOF
10f2d63a 1260
a0b9e27f 1261 cat >> confdefs.h <<\EOF
10f2d63a 1262#define __SVR4__ 1
a0b9e27f 1263EOF
10f2d63a
VZ
1264
1265 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1266 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1267 ;;
1268 *-*-sunos4* )
1269 USE_SUN=1
1270 USE_SUNOS=1
1271 USE_BSD=1
a0b9e27f 1272 cat >> confdefs.h <<\EOF
10f2d63a 1273#define __SUN__ 1
a0b9e27f 1274EOF
10f2d63a 1275
a0b9e27f 1276 cat >> confdefs.h <<\EOF
10f2d63a 1277#define __SUNOS__ 1
a0b9e27f 1278EOF
10f2d63a 1279
a0b9e27f 1280 cat >> confdefs.h <<\EOF
10f2d63a 1281#define __BSD__ 1
a0b9e27f 1282EOF
10f2d63a
VZ
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
f6bcfd97 1286 *-*-freebsd*)
10f2d63a
VZ
1287 USE_BSD=1
1288 USE_FREEBSD=1
a0b9e27f 1289 cat >> confdefs.h <<\EOF
10f2d63a 1290#define __FREEBSD__ 1
a0b9e27f 1291EOF
10f2d63a 1292
a0b9e27f 1293 cat >> confdefs.h <<\EOF
10f2d63a 1294#define __BSD__ 1
a0b9e27f 1295EOF
95c8801c
VS
1296
1297 DEFAULT_DEFAULT_wxUSE_GTK=1
1298 ;;
1299 *-*-openbsd*)
1300 USE_BSD=1
1301 USE_OPENBSD=1
a0b9e27f 1302 cat >> confdefs.h <<\EOF
2b5f62a0 1303#define __OPENBSD__ 1
a0b9e27f 1304EOF
95c8801c 1305
a0b9e27f 1306 cat >> confdefs.h <<\EOF
2b5f62a0 1307#define __BSD__ 1
a0b9e27f 1308EOF
f6bcfd97
BP
1309
1310 DEFAULT_DEFAULT_wxUSE_GTK=1
1311 ;;
1312 *-*-netbsd*)
1313 USE_BSD=1
1314 USE_NETBSD=1
a0b9e27f 1315 cat >> confdefs.h <<\EOF
2b5f62a0 1316#define __NETBSD__ 1
a0b9e27f 1317EOF
f6bcfd97 1318
a0b9e27f 1319 cat >> confdefs.h <<\EOF
2b5f62a0 1320#define __BSD__ 1
a0b9e27f 1321EOF
10f2d63a
VZ
1322
1323 DEFAULT_DEFAULT_wxUSE_GTK=1
1324 ;;
1325 *-*-osf* )
1326 USE_ALPHA=1
1327 USE_OSF=1
a0b9e27f 1328 cat >> confdefs.h <<\EOF
10f2d63a 1329#define __ALPHA__ 1
a0b9e27f 1330EOF
10f2d63a 1331
a0b9e27f 1332 cat >> confdefs.h <<\EOF
10f2d63a 1333#define __OSF__ 1
a0b9e27f 1334EOF
10f2d63a
VZ
1335
1336 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1337 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1338 ;;
1339 *-*-dgux5* )
1340 USE_ALPHA=1
1341 USE_SVR4=1
a0b9e27f 1342 cat >> confdefs.h <<\EOF
10f2d63a 1343#define __ALPHA__ 1
a0b9e27f 1344EOF
10f2d63a 1345
a0b9e27f 1346 cat >> confdefs.h <<\EOF
10f2d63a 1347#define __SVR4__ 1
a0b9e27f 1348EOF
10f2d63a
VZ
1349
1350 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1351 ;;
1352 *-*-sysv5* )
1353 USE_SYSV=1
1354 USE_SVR4=1
a0b9e27f 1355 cat >> confdefs.h <<\EOF
10f2d63a 1356#define __SYSV__ 1
a0b9e27f 1357EOF
10f2d63a 1358
a0b9e27f 1359 cat >> confdefs.h <<\EOF
10f2d63a 1360#define __SVR4__ 1
a0b9e27f 1361EOF
10f2d63a
VZ
1362
1363 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1364 ;;
1365 *-*-aix* )
1366 USE_AIX=1
1367 USE_SYSV=1
1368 USE_SVR4=1
2b5f62a0 1369 SO_SUFFIX=a
a0b9e27f 1370 cat >> confdefs.h <<\EOF
10f2d63a 1371#define __AIX__ 1
a0b9e27f 1372EOF
10f2d63a 1373
a0b9e27f 1374 cat >> confdefs.h <<\EOF
10f2d63a 1375#define __SYSV__ 1
a0b9e27f 1376EOF
10f2d63a 1377
a0b9e27f 1378 cat >> confdefs.h <<\EOF
10f2d63a 1379#define __SVR4__ 1
a0b9e27f 1380EOF
10f2d63a
VZ
1381
1382 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1383 ;;
1384
89e3b3e4
VZ
1385 *-*-*UnixWare*)
1386 USE_SYSV=1
1387 USE_SVR4=1
1388 USE_UNIXWARE=1
1389 cat >> confdefs.h <<\EOF
1390#define __UNIXWARE__ 1
1391EOF
1392
1393 ;;
1394
1c8183e2 1395 *-*-cygwin* | *-*-mingw32* )
17234b26 1396 SO_SUFFIX=dll
cf27ef00 1397 PROGRAM_EXT=".exe"
7b7a7637 1398 RESCOMP=windres
10f2d63a
VZ
1399 DEFAULT_DEFAULT_wxUSE_MSW=1
1400 ;;
1401
f9bc1684
VS
1402 *-pc-msdosdjgpp )
1403 USE_UNIX=0
1404 USE_DOS=1
a0b9e27f 1405 cat >> confdefs.h <<\EOF
f9bc1684 1406#define __DOS__ 1
a0b9e27f 1407EOF
f9bc1684
VS
1408
1409 PROGRAM_EXT=".exe"
1410 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1411 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1412 ;;
1413
6fa882bd 1414 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1415 cat >> confdefs.h <<\EOF
10f2d63a 1416#define __EMX__ 1
a0b9e27f 1417EOF
10f2d63a 1418
cf27ef00 1419 PROGRAM_EXT=".exe"
e07802fc 1420 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1421 ;;
1422
d08b457b
GD
1423 powerpc-*-darwin* )
1424 USE_BSD=1
f11bdd03 1425 USE_DARWIN=1
3a922bb4 1426 SO_SUFFIX=dylib
a0b9e27f 1427 cat >> confdefs.h <<\EOF
f11bdd03 1428#define __BSD__ 1
a0b9e27f 1429EOF
b4085ce6 1430
a0b9e27f 1431 cat >> confdefs.h <<\EOF
f11bdd03 1432#define __DARWIN__ 1
a0b9e27f 1433EOF
d08b457b 1434
a0b9e27f 1435 cat >> confdefs.h <<\EOF
d08b457b 1436#define __POWERPC__ 1
82d43113
GD
1437EOF
1438
1439 cat >> confdefs.h <<\EOF
1440#define TARGET_CARBON 1
a0b9e27f 1441EOF
b4085ce6
GD
1442
1443 DEFAULT_DEFAULT_wxUSE_MAC=1
1444 ;;
1445
b12915c1
VZ
1446 *-*-beos* )
1447 USE_BEOS=1
a0b9e27f 1448 cat >> confdefs.h <<\EOF
b12915c1 1449#define __BEOS__ 1
a0b9e27f 1450EOF
b12915c1
VZ
1451
1452 ;;
1453
10f2d63a 1454 *)
a0b9e27f 1455 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1456esac
1457
8284b0c5
MB
1458
1459
1460
1461 wx_arg_cache_file="configarg.cache"
1462 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1463 rm -f ${wx_arg_cache_file}.tmp
1464 touch ${wx_arg_cache_file}.tmp
1465 touch ${wx_arg_cache_file}
a0b9e27f 1466
10f2d63a
VZ
1467
1468DEBUG_CONFIGURE=0
1469if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1470 DEFAULT_wxUSE_UNIVERSAL=no
1471
d8356fa3
VZ
1472 DEFAULT_wxUSE_NANOX=no
1473
10f2d63a
VZ
1474 DEFAULT_wxUSE_THREADS=yes
1475
1476 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1477 DEFAULT_wxUSE_SONAME=no
1e6feb95 1478 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1479 DEFAULT_wxUSE_PROFILE=no
1480 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1481 DEFAULT_wxUSE_NO_RTTI=no
1482 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_PERMISSIVE=no
1484 DEFAULT_wxUSE_DEBUG_FLAG=yes
1485 DEFAULT_wxUSE_DEBUG_INFO=yes
1486 DEFAULT_wxUSE_DEBUG_GDB=yes
1487 DEFAULT_wxUSE_MEM_TRACING=no
1488 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1489 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1490 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_APPLE_IEEE=no
1492
1493 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1494 DEFAULT_wxUSE_LOGWINDOW=no
1495 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1496 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1497
1498 DEFAULT_wxUSE_GUI=yes
1e6feb95 1499 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1500
3e44f09d 1501 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1502 DEFAULT_wxUSE_ZLIB=no
1503 DEFAULT_wxUSE_LIBPNG=no
1504 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1505 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1506 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1507 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1508
eb4efbdc 1509 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1510 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1511 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1512 DEFAULT_wxUSE_CMDLINE_PARSER=no
1513 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1514 DEFAULT_wxUSE_TIMER=no
1515 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1516 DEFAULT_wxUSE_FILE=no
1e6feb95 1517 DEFAULT_wxUSE_FFILE=no
a3a584a7 1518 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1519 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1520 DEFAULT_wxUSE_WAVE=no
1521 DEFAULT_wxUSE_INTL=no
1522 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1523 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1524 DEFAULT_wxUSE_STREAMS=no
1525 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1526 DEFAULT_wxUSE_OLE=no
1527 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1528 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1529 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1530 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1531 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1532 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1533 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1536 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1537 DEFAULT_wxUSE_POSTSCRIPT=no
1538
10f2d63a
VZ
1539 DEFAULT_wxUSE_CLIPBOARD=no
1540 DEFAULT_wxUSE_TOOLTIPS=no
1541 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1542 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1543 DEFAULT_wxUSE_SPLINES=no
1544
1545 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1546 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1547 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1548
10f2d63a
VZ
1549 DEFAULT_wxUSE_RESOURCES=no
1550 DEFAULT_wxUSE_CONSTRAINTS=no
1551 DEFAULT_wxUSE_IPC=no
1552 DEFAULT_wxUSE_HELP=no
29fd3c0c 1553 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1554 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1555 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1556 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1557 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1558 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1559 DEFAULT_wxUSE_PROTOCOL=no
1560 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1561 DEFAULT_wxUSE_PROTOCOL_FTP=no
1562 DEFAULT_wxUSE_PROTOCOL_FILE=no
1563 DEFAULT_wxUSE_URL=no
3bd8fb5f 1564
10f2d63a 1565 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1566 DEFAULT_wxUSE_CHOICEDLG=no
1567 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1568 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1569 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1570 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1571 DEFAULT_wxUSE_FONTDLG=no
1572 DEFAULT_wxUSE_MSGDLG=no
1573 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1574 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1575 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1576 DEFAULT_wxUSE_STARTUP_TIPS=no
1577 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1578 DEFAULT_wxUSE_WIZARDDLG=no
1579
1e6feb95 1580 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1581 DEFAULT_wxUSE_MINIFRAME=no
1582 DEFAULT_wxUSE_HTML=no
24528b0c 1583 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1584 DEFAULT_wxUSE_FS_INET=no
1585 DEFAULT_wxUSE_FS_ZIP=no
1586 DEFAULT_wxUSE_BUSYINFO=no
1587 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1588 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1589
1590 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1591 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1592 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1593 DEFAULT_wxUSE_CALCTRL=no
1594 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_CHECKBOX=no
1596 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1597 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1598 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1599 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1600 DEFAULT_wxUSE_GAUGE=no
1601 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1602 DEFAULT_wxUSE_IMAGLIST=no
1603 DEFAULT_wxUSE_LISTBOX=no
1604 DEFAULT_wxUSE_LISTCTRL=no
1605 DEFAULT_wxUSE_NOTEBOOK=no
1606 DEFAULT_wxUSE_RADIOBOX=no
1607 DEFAULT_wxUSE_RADIOBTN=no
1608 DEFAULT_wxUSE_SASH=no
1609 DEFAULT_wxUSE_SCROLLBAR=no
1610 DEFAULT_wxUSE_SLIDER=no
1611 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1612 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1613 DEFAULT_wxUSE_SPLITTER=no
1614 DEFAULT_wxUSE_STATBMP=no
1615 DEFAULT_wxUSE_STATBOX=no
1616 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1617 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1618 DEFAULT_wxUSE_STATUSBAR=yes
1619 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1620 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1621 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1622 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1623 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1624 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1625 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1626 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1627 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1628
1629 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1630 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1631 DEFAULT_wxUSE_WCSRTOMBS=no
1632
edae8572 1633 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1634 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1635 DEFAULT_wxUSE_GIF=no
1636 DEFAULT_wxUSE_PCX=no
1637 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1638 DEFAULT_wxUSE_IFF=no
0046ff7c 1639 DEFAULT_wxUSE_XPM=no
658974ae 1640 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 1641 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a 1642else
1e6feb95
VZ
1643 DEFAULT_wxUSE_UNIVERSAL=no
1644
d8356fa3
VZ
1645 DEFAULT_wxUSE_NANOX=no
1646
10f2d63a
VZ
1647 DEFAULT_wxUSE_THREADS=yes
1648
1649 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1650 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1651 DEFAULT_wxUSE_OPTIMISE=yes
1652 DEFAULT_wxUSE_PROFILE=no
1653 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1654 DEFAULT_wxUSE_NO_RTTI=no
1655 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1656 DEFAULT_wxUSE_PERMISSIVE=no
1657 DEFAULT_wxUSE_DEBUG_FLAG=no
1658 DEFAULT_wxUSE_DEBUG_INFO=no
1659 DEFAULT_wxUSE_DEBUG_GDB=no
1660 DEFAULT_wxUSE_MEM_TRACING=no
1661 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1662 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1663 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1664 DEFAULT_wxUSE_APPLE_IEEE=yes
1665
1666 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1667 DEFAULT_wxUSE_LOGWINDOW=yes
1668 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1669 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1670
1671 DEFAULT_wxUSE_GUI=yes
1672
831b3152 1673 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1674 DEFAULT_wxUSE_ZLIB=yes
1675 DEFAULT_wxUSE_LIBPNG=yes
1676 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1677 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1678 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1679 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1680
eb4efbdc 1681 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1682 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1683 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1684 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1685 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1686 DEFAULT_wxUSE_TIMER=yes
1687 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1688 DEFAULT_wxUSE_FILE=yes
1e6feb95 1689 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1690 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1691 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1692 DEFAULT_wxUSE_WAVE=no
1693 DEFAULT_wxUSE_INTL=yes
1694 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1695 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1696 DEFAULT_wxUSE_STREAMS=yes
1697 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1698 DEFAULT_wxUSE_OLE=yes
1699 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1700 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1701 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1702 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1703 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1704 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1705 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1706
1707 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1708 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1709 DEFAULT_wxUSE_POSTSCRIPT=yes
1710
10f2d63a
VZ
1711 DEFAULT_wxUSE_CLIPBOARD=yes
1712 DEFAULT_wxUSE_TOOLTIPS=yes
1713 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1714 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1715 DEFAULT_wxUSE_SPLINES=yes
1716
1717 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1718 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1719 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1720
2b5f62a0 1721 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1722 DEFAULT_wxUSE_CONSTRAINTS=yes
1723 DEFAULT_wxUSE_IPC=yes
1724 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1725 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1726 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1727 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1728 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1729 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1730 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1731 DEFAULT_wxUSE_PROTOCOL=yes
1732 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1733 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1734 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1735 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1736
1737 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1738 DEFAULT_wxUSE_CHOICEDLG=yes
1739 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1740 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1741 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1742 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1743 DEFAULT_wxUSE_FONTDLG=yes
1744 DEFAULT_wxUSE_MSGDLG=yes
1745 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1746 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1747 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1748 DEFAULT_wxUSE_STARTUP_TIPS=yes
1749 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1750 DEFAULT_wxUSE_WIZARDDLG=yes
1751
1e6feb95 1752 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1753 DEFAULT_wxUSE_MINIFRAME=yes
1754 DEFAULT_wxUSE_HTML=yes
24528b0c 1755 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1756 DEFAULT_wxUSE_FS_INET=yes
1757 DEFAULT_wxUSE_FS_ZIP=yes
1758 DEFAULT_wxUSE_BUSYINFO=yes
1759 DEFAULT_wxUSE_ZIPSTREAM=yes
1760 DEFAULT_wxUSE_VALIDATORS=yes
1761
1762 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1763 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1764 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1765 DEFAULT_wxUSE_CALCTRL=yes
1766 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1767 DEFAULT_wxUSE_CHECKBOX=yes
1768 DEFAULT_wxUSE_CHECKLST=yes
1769 DEFAULT_wxUSE_CHOICE=yes
1770 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1771 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1772 DEFAULT_wxUSE_GAUGE=yes
1773 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1774 DEFAULT_wxUSE_IMAGLIST=yes
1775 DEFAULT_wxUSE_LISTBOX=yes
1776 DEFAULT_wxUSE_LISTCTRL=yes
1777 DEFAULT_wxUSE_NOTEBOOK=yes
1778 DEFAULT_wxUSE_RADIOBOX=yes
1779 DEFAULT_wxUSE_RADIOBTN=yes
1780 DEFAULT_wxUSE_SASH=yes
1781 DEFAULT_wxUSE_SCROLLBAR=yes
1782 DEFAULT_wxUSE_SLIDER=yes
1783 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1784 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1785 DEFAULT_wxUSE_SPLITTER=yes
1786 DEFAULT_wxUSE_STATBMP=yes
1787 DEFAULT_wxUSE_STATBOX=yes
1788 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1789 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1790 DEFAULT_wxUSE_STATUSBAR=yes
1791 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1792 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1793 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1794 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1795 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1796 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1797 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1798 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1799 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1800
1801 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1802 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1803 DEFAULT_wxUSE_WCSRTOMBS=no
1804
edae8572 1805 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1806 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1807 DEFAULT_wxUSE_GIF=yes
1808 DEFAULT_wxUSE_PCX=yes
cc0e8480 1809 DEFAULT_wxUSE_IFF=no
10f2d63a 1810 DEFAULT_wxUSE_PNM=yes
0046ff7c 1811 DEFAULT_wxUSE_XPM=yes
658974ae 1812 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 1813 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a
VZ
1814fi
1815
8284b0c5
MB
1816
1817
10f2d63a 1818for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1819 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1820 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1821 has_toolkit_in_cache=1
1822 eval "DEFAULT_$LINE"
1823 eval "CACHE_$toolkit=1"
1824 fi
1825done
1826
8284b0c5
MB
1827
1828
5005acfe
VZ
1829 enablestring=
1830 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
fe0895cf 1831echo "configure:1832: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1832 no_cache=0
1833 # Check whether --enable-gui or --disable-gui was given.
1834if test "${enable_gui+set}" = set; then
1835 enableval="$enable_gui"
a0b9e27f 1836
10f2d63a
VZ
1837 if test "$enableval" = yes; then
1838 ac_cv_use_gui='wxUSE_GUI=yes'
1839 else
1840 ac_cv_use_gui='wxUSE_GUI=no'
1841 fi
a0b9e27f 1842
10f2d63a 1843else
a0b9e27f 1844
10f2d63a
VZ
1845 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1846 if test "x$LINE" != x ; then
1847 eval "DEFAULT_$LINE"
1848 else
1849 no_cache=1
1850 fi
1851
1852 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1853
1854fi
10f2d63a
VZ
1855
1856
1857 eval "$ac_cv_use_gui"
1858 if test "$no_cache" != 1; then
1859 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1860 fi
1861
1862 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1863 echo "$ac_t""yes" 1>&6
10f2d63a 1864 else
a0b9e27f 1865 echo "$ac_t""no" 1>&6
10f2d63a 1866 fi
a0b9e27f 1867
10f2d63a 1868
b12915c1 1869if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1870
8284b0c5 1871
5005acfe
VZ
1872 enablestring=
1873 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
fe0895cf 1874echo "configure:1875: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1875 no_cache=0
1876 # Check whether --enable-universal or --disable-universal was given.
1877if test "${enable_universal+set}" = set; then
1878 enableval="$enable_universal"
a0b9e27f 1879
1e6feb95
VZ
1880 if test "$enableval" = yes; then
1881 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1882 else
1883 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1884 fi
a0b9e27f 1885
1e6feb95 1886else
a0b9e27f 1887
1e6feb95
VZ
1888 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1889 if test "x$LINE" != x ; then
1890 eval "DEFAULT_$LINE"
1891 else
1892 no_cache=1
1893 fi
1894
1895 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1896
1897fi
1e6feb95
VZ
1898
1899
1900 eval "$ac_cv_use_universal"
1901 if test "$no_cache" != 1; then
1902 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1903 fi
1904
1905 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1906 echo "$ac_t""yes" 1>&6
1e6feb95 1907 else
a0b9e27f 1908 echo "$ac_t""no" 1>&6
1e6feb95 1909 fi
a0b9e27f 1910
10f2d63a
VZ
1911# Check whether --with-gtk or --without-gtk was given.
1912if test "${with_gtk+set}" = set; then
1913 withval="$with_gtk"
1914 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1915fi
10f2d63a
VZ
1916
1917# Check whether --with-motif or --without-motif was given.
1918if test "${with_motif+set}" = set; then
1919 withval="$with_motif"
1920 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1921fi
10f2d63a 1922
b4085ce6
GD
1923# Check whether --with-mac or --without-mac was given.
1924if test "${with_mac+set}" = set; then
1925 withval="$with_mac"
1926 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1927fi
b4085ce6 1928
ac0c4cc3
DE
1929# Check whether --with-cocoa or --without-cocoa was given.
1930if test "${with_cocoa+set}" = set; then
1931 withval="$with_cocoa"
1932 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1933fi
1934
10f2d63a
VZ
1935# Check whether --with-wine or --without-wine was given.
1936if test "${with_wine+set}" = set; then
1937 withval="$with_wine"
89e6bf6d 1938 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1939fi
10f2d63a 1940
77e13408
RL
1941# Check whether --with-msw or --without-msw was given.
1942if test "${with_msw+set}" = set; then
1943 withval="$with_msw"
b4efce5e 1944 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1945fi
10f2d63a 1946
e07802fc
VZ
1947# Check whether --with-pm or --without-pm was given.
1948if test "${with_pm+set}" = set; then
1949 withval="$with_pm"
1950 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1951fi
698dcdb6 1952
1e6feb95
VZ
1953# Check whether --with-mgl or --without-mgl was given.
1954if test "${with_mgl+set}" = set; then
1955 withval="$with_mgl"
6c657b52 1956 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1957fi
1e6feb95 1958
1725144d
RR
1959# Check whether --with-microwin or --without-microwin was given.
1960if test "${with_microwin+set}" = set; then
1961 withval="$with_microwin"
1962 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1963fi
1725144d 1964
f79bd02d
JS
1965# Check whether --with-x11 or --without-x11 was given.
1966if test "${with_x11+set}" = set; then
1967 withval="$with_x11"
3c011993 1968 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1969fi
10f2d63a 1970
a0b9e27f 1971
5005acfe
VZ
1972 enablestring=
1973 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
fe0895cf 1974echo "configure:1975: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1975 no_cache=0
ba875e66
VZ
1976 # Check whether --enable-nanox or --disable-nanox was given.
1977if test "${enable_nanox+set}" = set; then
1978 enableval="$enable_nanox"
a0b9e27f 1979
d8356fa3 1980 if test "$enableval" = yes; then
ba875e66 1981 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1982 else
ba875e66 1983 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1984 fi
a0b9e27f 1985
d8356fa3 1986else
a0b9e27f 1987
d8356fa3
VZ
1988 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1989 if test "x$LINE" != x ; then
1990 eval "DEFAULT_$LINE"
1991 else
1992 no_cache=1
1993 fi
1994
ba875e66 1995 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1996
1997fi
d8356fa3
VZ
1998
1999
ba875e66 2000 eval "$ac_cv_use_nanox"
d8356fa3 2001 if test "$no_cache" != 1; then
ba875e66 2002 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2003 fi
2004
2005 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 2006 echo "$ac_t""yes" 1>&6
d8356fa3 2007 else
a0b9e27f 2008 echo "$ac_t""no" 1>&6
d8356fa3 2009 fi
a0b9e27f 2010
8284b0c5 2011
d74f4b5a 2012
5005acfe
VZ
2013 enablestring=
2014 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
fe0895cf 2015echo "configure:2016: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
2016 no_cache=0
2017 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2018if test "${enable_gtk2+set}" = set; then
2019 enableval="$enable_gtk2"
a0b9e27f 2020
d74f4b5a
VZ
2021 if test "$enableval" = yes; then
2022 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2023 else
2024 ac_cv_use_gtk2='wxUSE_GTK2=no'
2025 fi
a0b9e27f 2026
10f2d63a 2027else
a0b9e27f 2028
d74f4b5a
VZ
2029 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
2037
2038fi
52127426 2039
328a083c 2040
d74f4b5a
VZ
2041 eval "$ac_cv_use_gtk2"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 2047 echo "$ac_t""yes" 1>&6
d74f4b5a 2048 else
a0b9e27f 2049 echo "$ac_t""no" 1>&6
d74f4b5a 2050 fi
a0b9e27f 2051
d74f4b5a 2052
5c6fa7d2 2053
a0b9e27f 2054 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
fe0895cf 2055echo "configure:2056: checking for --with-libpng" >&5
8284b0c5 2056 no_cache=0
a0b9e27f 2057 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2058if test "${with_libpng+set}" = set; then
2059 withval="$with_libpng"
a0b9e27f 2060
10f2d63a 2061 if test "$withval" = yes; then
b12915c1 2062 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2063 elif test "$withval" = no; then
b12915c1 2064 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2065 elif test "$withval" = sys; then
2066 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2067 elif test "$withval" = builtin; then
2068 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2069 else
a0b9e27f 2070 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2071 fi
a0b9e27f 2072
10f2d63a 2073else
a0b9e27f 2074
b12915c1 2075 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2076 if test "x$LINE" != x ; then
2077 eval "DEFAULT_$LINE"
2078 else
2079 no_cache=1
2080 fi
2081
b12915c1 2082 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2083
2084fi
10f2d63a
VZ
2085
2086
b12915c1 2087 eval "$ac_cv_use_libpng"
10f2d63a 2088 if test "$no_cache" != 1; then
b12915c1 2089 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2090 fi
2091
b12915c1 2092 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2093 echo "$ac_t""yes" 1>&6
422107f9 2094 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2095 echo "$ac_t""no" 1>&6
422107f9 2096 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2097 echo "$ac_t""system version" 1>&6
4f14bcd8 2098 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2099 echo "$ac_t""builtin version" 1>&6
422107f9 2100 else
a0b9e27f 2101 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2102 fi
a0b9e27f 2103
10f2d63a 2104
a0b9e27f 2105 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
fe0895cf 2106echo "configure:2107: checking for --with-libjpeg" >&5
10f2d63a 2107 no_cache=0
a0b9e27f 2108 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2109if test "${with_libjpeg+set}" = set; then
2110 withval="$with_libjpeg"
a0b9e27f 2111
10f2d63a 2112 if test "$withval" = yes; then
b12915c1 2113 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2114 elif test "$withval" = no; then
b12915c1 2115 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2116 elif test "$withval" = sys; then
2117 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2118 elif test "$withval" = builtin; then
2119 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2120 else
a0b9e27f 2121 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2122 fi
a0b9e27f 2123
10f2d63a 2124else
a0b9e27f 2125
b12915c1 2126 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2127 if test "x$LINE" != x ; then
2128 eval "DEFAULT_$LINE"
2129 else
2130 no_cache=1
2131 fi
2132
b12915c1 2133 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2134
2135fi
10f2d63a
VZ
2136
2137
b12915c1 2138 eval "$ac_cv_use_libjpeg"
10f2d63a 2139 if test "$no_cache" != 1; then
b12915c1 2140 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2141 fi
2142
b12915c1 2143 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2144 echo "$ac_t""yes" 1>&6
422107f9 2145 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2146 echo "$ac_t""no" 1>&6
422107f9 2147 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2148 echo "$ac_t""system version" 1>&6
4f14bcd8 2149 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2150 echo "$ac_t""builtin version" 1>&6
422107f9 2151 else
a0b9e27f 2152 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2153 fi
a0b9e27f 2154
10f2d63a 2155
a0b9e27f 2156 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
fe0895cf 2157echo "configure:2158: checking for --with-libtiff" >&5
10f2d63a 2158 no_cache=0
a0b9e27f 2159 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2160if test "${with_libtiff+set}" = set; then
2161 withval="$with_libtiff"
a0b9e27f 2162
10f2d63a 2163 if test "$withval" = yes; then
b12915c1 2164 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2165 elif test "$withval" = no; then
b12915c1 2166 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2167 elif test "$withval" = sys; then
2168 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2169 elif test "$withval" = builtin; then
2170 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2171 else
a0b9e27f 2172 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2173 fi
a0b9e27f 2174
10f2d63a 2175else
a0b9e27f 2176
b12915c1 2177 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
b12915c1 2184 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2185
2186fi
10f2d63a
VZ
2187
2188
b12915c1 2189 eval "$ac_cv_use_libtiff"
10f2d63a 2190 if test "$no_cache" != 1; then
b12915c1 2191 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2192 fi
2193
b12915c1 2194 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2195 echo "$ac_t""yes" 1>&6
0dcf9893 2196 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2197 echo "$ac_t""no" 1>&6
0dcf9893 2198 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2199 echo "$ac_t""system version" 1>&6
4f14bcd8 2200 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2201 echo "$ac_t""builtin version" 1>&6
0dcf9893 2202 else
a0b9e27f 2203 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2204 fi
a0b9e27f 2205
10f2d63a 2206
a0b9e27f 2207 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
fe0895cf 2208echo "configure:2209: checking for --with-opengl" >&5
10f2d63a 2209 no_cache=0
a0b9e27f 2210 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2211if test "${with_opengl+set}" = set; then
2212 withval="$with_opengl"
a0b9e27f 2213
10f2d63a 2214 if test "$withval" = yes; then
b12915c1 2215 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2216 else
b12915c1 2217 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2218 fi
a0b9e27f 2219
10f2d63a 2220else
a0b9e27f 2221
b12915c1 2222 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
b12915c1 2229 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2230
2231fi
10f2d63a
VZ
2232
2233
b12915c1 2234 eval "$ac_cv_use_opengl"
10f2d63a 2235 if test "$no_cache" != 1; then
b12915c1 2236 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2237 fi
2238
b12915c1 2239 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2240 echo "$ac_t""yes" 1>&6
10f2d63a 2241 else
a0b9e27f 2242 echo "$ac_t""no" 1>&6
10f2d63a 2243 fi
a0b9e27f 2244
10f2d63a 2245
b12915c1
VZ
2246fi
2247
5c6fa7d2 2248
a0b9e27f 2249 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
fe0895cf 2250echo "configure:2251: checking for --with-dmalloc" >&5
8284b0c5 2251 no_cache=0
a0b9e27f 2252 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2253if test "${with_dmalloc+set}" = set; then
2254 withval="$with_dmalloc"
a0b9e27f 2255
c7a2bf27 2256 if test "$withval" = yes; then
b12915c1 2257 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2258 else
b12915c1 2259 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2260 fi
a0b9e27f 2261
c7a2bf27 2262else
a0b9e27f 2263
b12915c1 2264 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
b12915c1 2271 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2272
2273fi
c7a2bf27
RR
2274
2275
b12915c1 2276 eval "$ac_cv_use_dmalloc"
c7a2bf27 2277 if test "$no_cache" != 1; then
b12915c1 2278 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2279 fi
2280
b12915c1 2281 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2282 echo "$ac_t""yes" 1>&6
c7a2bf27 2283 else
a0b9e27f 2284 echo "$ac_t""no" 1>&6
c7a2bf27 2285 fi
a0b9e27f 2286
c7a2bf27 2287
a0b9e27f 2288 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
fe0895cf 2289echo "configure:2290: checking for --with-regex" >&5
3e44f09d 2290 no_cache=0
a0b9e27f 2291 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2292if test "${with_regex+set}" = set; then
2293 withval="$with_regex"
a0b9e27f 2294
3e44f09d
VZ
2295 if test "$withval" = yes; then
2296 ac_cv_use_regex='wxUSE_REGEX=yes'
2297 elif test "$withval" = no; then
2298 ac_cv_use_regex='wxUSE_REGEX=no'
2299 elif test "$withval" = sys; then
2300 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2301 elif test "$withval" = builtin; then
2302 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2303 else
a0b9e27f 2304 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2305 fi
a0b9e27f 2306
3e44f09d 2307else
a0b9e27f 2308
3e44f09d
VZ
2309 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2317
2318fi
3e44f09d
VZ
2319
2320
2321 eval "$ac_cv_use_regex"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2327 echo "$ac_t""yes" 1>&6
3e44f09d 2328 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2329 echo "$ac_t""no" 1>&6
3e44f09d 2330 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2331 echo "$ac_t""system version" 1>&6
4f14bcd8 2332 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2333 echo "$ac_t""builtin version" 1>&6
3e44f09d 2334 else
a0b9e27f 2335 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2336 fi
a0b9e27f 2337
3e44f09d 2338
a0b9e27f 2339 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
fe0895cf 2340echo "configure:2341: checking for --with-zlib" >&5
10f2d63a 2341 no_cache=0
a0b9e27f 2342 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2343if test "${with_zlib+set}" = set; then
2344 withval="$with_zlib"
a0b9e27f 2345
10f2d63a 2346 if test "$withval" = yes; then
b12915c1 2347 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2348 elif test "$withval" = no; then
b12915c1 2349 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2350 elif test "$withval" = sys; then
2351 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2352 elif test "$withval" = builtin; then
2353 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2354 else
a0b9e27f 2355 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2356 fi
a0b9e27f 2357
10f2d63a 2358else
a0b9e27f 2359
b12915c1 2360 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
b12915c1 2367 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2368
2369fi
10f2d63a
VZ
2370
2371
b12915c1 2372 eval "$ac_cv_use_zlib"
10f2d63a 2373 if test "$no_cache" != 1; then
b12915c1 2374 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2375 fi
2376
b12915c1 2377 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2378 echo "$ac_t""yes" 1>&6
422107f9 2379 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2380 echo "$ac_t""no" 1>&6
422107f9 2381 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2382 echo "$ac_t""system version" 1>&6
4f14bcd8 2383 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2384 echo "$ac_t""builtin version" 1>&6
422107f9 2385 else
a0b9e27f 2386 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2387 fi
a0b9e27f 2388
10f2d63a 2389
a0b9e27f 2390 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
fe0895cf 2391echo "configure:2392: checking for --with-odbc" >&5
10f2d63a 2392 no_cache=0
a0b9e27f 2393 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2394if test "${with_odbc+set}" = set; then
2395 withval="$with_odbc"
a0b9e27f 2396
10f2d63a
VZ
2397 if test "$withval" = yes; then
2398 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2399 elif test "$withval" = no; then
10f2d63a 2400 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2401 elif test "$withval" = sys; then
2402 ac_cv_use_odbc='wxUSE_ODBC=sys'
2403 elif test "$withval" = builtin; then
2404 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2405 else
2406 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2407 fi
a0b9e27f 2408
10f2d63a 2409else
a0b9e27f 2410
10f2d63a
VZ
2411 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2412 if test "x$LINE" != x ; then
2413 eval "DEFAULT_$LINE"
2414 else
2415 no_cache=1
2416 fi
2417
2418 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2419
2420fi
10f2d63a
VZ
2421
2422
2423 eval "$ac_cv_use_odbc"
2424 if test "$no_cache" != 1; then
2425 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2426 fi
2427
2428 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2429 echo "$ac_t""yes" 1>&6
8647bec6 2430 elif test "$wxUSE_ODBC" = no; then
a0b9e27f 2431 echo "$ac_t""no" 1>&6
8647bec6
RG
2432 elif test "$wxUSE_ODBC" = sys; then
2433 echo "$ac_t""system version" 1>&6
2434 elif test "$wxUSE_ODBC" = builtin; then
2435 echo "$ac_t""builtin version" 1>&6
2436 else
2437 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2438 fi
a0b9e27f 2439
52127426 2440
8284b0c5
MB
2441
2442
5005acfe
VZ
2443 enablestring=
2444 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
fe0895cf 2445echo "configure:2446: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2446 no_cache=0
2447 # Check whether --enable-shared or --disable-shared was given.
2448if test "${enable_shared+set}" = set; then
2449 enableval="$enable_shared"
a0b9e27f 2450
10f2d63a
VZ
2451 if test "$enableval" = yes; then
2452 ac_cv_use_shared='wxUSE_SHARED=yes'
2453 else
2454 ac_cv_use_shared='wxUSE_SHARED=no'
2455 fi
a0b9e27f 2456
10f2d63a 2457else
a0b9e27f 2458
10f2d63a
VZ
2459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2467
2468fi
10f2d63a
VZ
2469
2470
2471 eval "$ac_cv_use_shared"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2477 echo "$ac_t""yes" 1>&6
10f2d63a 2478 else
a0b9e27f 2479 echo "$ac_t""no" 1>&6
10f2d63a 2480 fi
a0b9e27f 2481
10f2d63a 2482
5005acfe
VZ
2483 enablestring=
2484 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
fe0895cf 2485echo "configure:2486: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2486 no_cache=0
3a922bb4
RL
2487 # Check whether --enable-soname or --disable-soname was given.
2488if test "${enable_soname+set}" = set; then
2489 enableval="$enable_soname"
a0b9e27f 2490
00cf1208 2491 if test "$enableval" = yes; then
3a922bb4 2492 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2493 else
3a922bb4 2494 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2495 fi
a0b9e27f 2496
00cf1208 2497else
a0b9e27f 2498
3a922bb4 2499 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
3a922bb4 2506 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2507
2508fi
00cf1208
RR
2509
2510
3a922bb4 2511 eval "$ac_cv_use_soname"
00cf1208 2512 if test "$no_cache" != 1; then
3a922bb4 2513 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2514 fi
2515
3a922bb4 2516 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2517 echo "$ac_t""yes" 1>&6
00cf1208 2518 else
a0b9e27f 2519 echo "$ac_t""no" 1>&6
00cf1208 2520 fi
a0b9e27f 2521
00cf1208 2522
5005acfe
VZ
2523 enablestring=
2524 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
fe0895cf 2525echo "configure:2526: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2526 no_cache=0
2527 # Check whether --enable-optimise or --disable-optimise was given.
2528if test "${enable_optimise+set}" = set; then
2529 enableval="$enable_optimise"
a0b9e27f 2530
10f2d63a
VZ
2531 if test "$enableval" = yes; then
2532 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2533 else
2534 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2535 fi
a0b9e27f 2536
10f2d63a 2537else
a0b9e27f 2538
10f2d63a
VZ
2539 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2547
2548fi
10f2d63a
VZ
2549
2550
2551 eval "$ac_cv_use_optimise"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2557 echo "$ac_t""yes" 1>&6
10f2d63a 2558 else
a0b9e27f 2559 echo "$ac_t""no" 1>&6
10f2d63a 2560 fi
a0b9e27f 2561
10f2d63a 2562
5005acfe
VZ
2563 enablestring=
2564 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
fe0895cf 2565echo "configure:2566: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2566 no_cache=0
2567 # Check whether --enable-debug or --disable-debug was given.
2568if test "${enable_debug+set}" = set; then
2569 enableval="$enable_debug"
a0b9e27f 2570
10f2d63a
VZ
2571 if test "$enableval" = yes; then
2572 ac_cv_use_debug='wxUSE_DEBUG=yes'
2573 else
2574 ac_cv_use_debug='wxUSE_DEBUG=no'
2575 fi
a0b9e27f 2576
10f2d63a 2577else
a0b9e27f 2578
10f2d63a
VZ
2579 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2587
2588fi
10f2d63a
VZ
2589
2590
2591 eval "$ac_cv_use_debug"
2592 if test "$no_cache" != 1; then
2593 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2594 fi
2595
2596 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2597 echo "$ac_t""yes" 1>&6
10f2d63a 2598 else
a0b9e27f 2599 echo "$ac_t""no" 1>&6
10f2d63a 2600 fi
a0b9e27f 2601
52127426 2602
8284b0c5 2603
5005acfe
VZ
2604 enablestring=
2605 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
fe0895cf 2606echo "configure:2607: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2607 no_cache=0
2608 # Check whether --enable-precomp or --disable-precomp was given.
2609if test "${enable_precomp+set}" = set; then
2610 enableval="$enable_precomp"
a0b9e27f 2611
683dccda
GD
2612 if test "$enableval" = yes; then
2613 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2614 else
2615 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2616 fi
a0b9e27f 2617
683dccda 2618else
a0b9e27f 2619
683dccda
GD
2620 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2621 if test "x$LINE" != x ; then
2622 eval "DEFAULT_$LINE"
2623 else
2624 no_cache=1
2625 fi
2626
2627 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2628
2629fi
683dccda
GD
2630
2631
2632 eval "$ac_cv_use_precomp"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2638 echo "$ac_t""yes" 1>&6
683dccda 2639 else
a0b9e27f 2640 echo "$ac_t""no" 1>&6
683dccda 2641 fi
a0b9e27f 2642
683dccda 2643
10f2d63a
VZ
2644if test "$wxUSE_DEBUG" = "yes"; then
2645 DEFAULT_wxUSE_DEBUG_FLAG=yes
2646 DEFAULT_wxUSE_DEBUG_INFO=yes
2647elif test "$wxUSE_DEBUG" = "no"; then
2648 DEFAULT_wxUSE_DEBUG_FLAG=no
2649 DEFAULT_wxUSE_DEBUG_INFO=no
2650fi
2651
8284b0c5 2652
5005acfe
VZ
2653 enablestring=
2654 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
fe0895cf 2655echo "configure:2656: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2656 no_cache=0
2657 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2658if test "${enable_debug_flag+set}" = set; then
2659 enableval="$enable_debug_flag"
a0b9e27f 2660
10f2d63a
VZ
2661 if test "$enableval" = yes; then
2662 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2663 else
2664 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2665 fi
a0b9e27f 2666
10f2d63a 2667else
a0b9e27f 2668
10f2d63a
VZ
2669 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2677
2678fi
10f2d63a
VZ
2679
2680
2681 eval "$ac_cv_use_debug_flag"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2687 echo "$ac_t""yes" 1>&6
10f2d63a 2688 else
a0b9e27f 2689 echo "$ac_t""no" 1>&6
10f2d63a 2690 fi
a0b9e27f 2691
10f2d63a 2692
5005acfe
VZ
2693 enablestring=
2694 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
fe0895cf 2695echo "configure:2696: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2696 no_cache=0
2697 # Check whether --enable-debug_info or --disable-debug_info was given.
2698if test "${enable_debug_info+set}" = set; then
2699 enableval="$enable_debug_info"
a0b9e27f 2700
10f2d63a
VZ
2701 if test "$enableval" = yes; then
2702 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2703 else
2704 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2705 fi
a0b9e27f 2706
10f2d63a 2707else
a0b9e27f 2708
10f2d63a
VZ
2709 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2717
2718fi
10f2d63a
VZ
2719
2720
2721 eval "$ac_cv_use_debug_info"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2727 echo "$ac_t""yes" 1>&6
10f2d63a 2728 else
a0b9e27f 2729 echo "$ac_t""no" 1>&6
10f2d63a 2730 fi
a0b9e27f 2731
10f2d63a 2732
5005acfe
VZ
2733 enablestring=
2734 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
fe0895cf 2735echo "configure:2736: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2736 no_cache=0
2737 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2738if test "${enable_debug_gdb+set}" = set; then
2739 enableval="$enable_debug_gdb"
a0b9e27f 2740
10f2d63a
VZ
2741 if test "$enableval" = yes; then
2742 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2743 else
2744 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2745 fi
a0b9e27f 2746
10f2d63a 2747else
a0b9e27f 2748
10f2d63a
VZ
2749 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2757
2758fi
10f2d63a
VZ
2759
2760
2761 eval "$ac_cv_use_debug_gdb"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2767 echo "$ac_t""yes" 1>&6
10f2d63a 2768 else
a0b9e27f 2769 echo "$ac_t""no" 1>&6
10f2d63a 2770 fi
a0b9e27f 2771
10f2d63a 2772
5005acfe
VZ
2773 enablestring=
2774 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
fe0895cf 2775echo "configure:2776: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2776 no_cache=0
2777 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2778if test "${enable_debug_cntxt+set}" = set; then
2779 enableval="$enable_debug_cntxt"
a0b9e27f 2780
10f2d63a
VZ
2781 if test "$enableval" = yes; then
2782 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2783 else
2784 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2785 fi
a0b9e27f 2786
10f2d63a 2787else
a0b9e27f 2788
10f2d63a
VZ
2789 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2797
2798fi
10f2d63a
VZ
2799
2800
2801 eval "$ac_cv_use_debug_cntxt"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2807 echo "$ac_t""yes" 1>&6
10f2d63a 2808 else
a0b9e27f 2809 echo "$ac_t""no" 1>&6
10f2d63a 2810 fi
a0b9e27f 2811
10f2d63a 2812
5005acfe
VZ
2813 enablestring=
2814 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
fe0895cf 2815echo "configure:2816: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2816 no_cache=0
2817 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2818if test "${enable_mem_tracing+set}" = set; then
2819 enableval="$enable_mem_tracing"
a0b9e27f 2820
10f2d63a
VZ
2821 if test "$enableval" = yes; then
2822 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2823 else
2824 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2825 fi
a0b9e27f 2826
10f2d63a 2827else
a0b9e27f 2828
10f2d63a
VZ
2829 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2837
2838fi
10f2d63a
VZ
2839
2840
2841 eval "$ac_cv_use_mem_tracing"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2847 echo "$ac_t""yes" 1>&6
10f2d63a 2848 else
a0b9e27f 2849 echo "$ac_t""no" 1>&6
10f2d63a 2850 fi
a0b9e27f 2851
10f2d63a 2852
5005acfe
VZ
2853 enablestring=
2854 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
fe0895cf 2855echo "configure:2856: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2856 no_cache=0
2857 # Check whether --enable-profile or --disable-profile was given.
2858if test "${enable_profile+set}" = set; then
2859 enableval="$enable_profile"
a0b9e27f 2860
10f2d63a
VZ
2861 if test "$enableval" = yes; then
2862 ac_cv_use_profile='wxUSE_PROFILE=yes'
2863 else
2864 ac_cv_use_profile='wxUSE_PROFILE=no'
2865 fi
a0b9e27f 2866
10f2d63a 2867else
a0b9e27f 2868
10f2d63a
VZ
2869 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2877
2878fi
10f2d63a
VZ
2879
2880
2881 eval "$ac_cv_use_profile"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2887 echo "$ac_t""yes" 1>&6
10f2d63a 2888 else
a0b9e27f 2889 echo "$ac_t""no" 1>&6
10f2d63a 2890 fi
a0b9e27f 2891
10f2d63a 2892
5005acfe
VZ
2893 enablestring=
2894 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
fe0895cf 2895echo "configure:2896: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2896 no_cache=0
2897 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2898if test "${enable_no_rtti+set}" = set; then
2899 enableval="$enable_no_rtti"
a0b9e27f 2900
10f2d63a
VZ
2901 if test "$enableval" = yes; then
2902 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2903 else
2904 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2905 fi
a0b9e27f 2906
10f2d63a 2907else
a0b9e27f 2908
10f2d63a
VZ
2909 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2917
2918fi
10f2d63a
VZ
2919
2920
2921 eval "$ac_cv_use_no_rtti"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2927 echo "$ac_t""yes" 1>&6
10f2d63a 2928 else
a0b9e27f 2929 echo "$ac_t""no" 1>&6
10f2d63a 2930 fi
a0b9e27f 2931
10f2d63a 2932
5005acfe
VZ
2933 enablestring=
2934 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
fe0895cf 2935echo "configure:2936: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2936 no_cache=0
2937 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2938if test "${enable_no_exceptions+set}" = set; then
2939 enableval="$enable_no_exceptions"
a0b9e27f 2940
10f2d63a
VZ
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2943 else
2944 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2945 fi
a0b9e27f 2946
10f2d63a 2947else
a0b9e27f 2948
10f2d63a
VZ
2949 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2957
2958fi
10f2d63a
VZ
2959
2960
2961 eval "$ac_cv_use_no_exceptions"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2967 echo "$ac_t""yes" 1>&6
10f2d63a 2968 else
a0b9e27f 2969 echo "$ac_t""no" 1>&6
10f2d63a 2970 fi
a0b9e27f 2971
10f2d63a 2972
5005acfe
VZ
2973 enablestring=
2974 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
fe0895cf 2975echo "configure:2976: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2976 no_cache=0
2977 # Check whether --enable-permissive or --disable-permissive was given.
2978if test "${enable_permissive+set}" = set; then
2979 enableval="$enable_permissive"
a0b9e27f 2980
10f2d63a
VZ
2981 if test "$enableval" = yes; then
2982 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2983 else
2984 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2985 fi
a0b9e27f 2986
10f2d63a 2987else
a0b9e27f 2988
10f2d63a
VZ
2989 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2997
2998fi
10f2d63a
VZ
2999
3000
3001 eval "$ac_cv_use_permissive"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 3007 echo "$ac_t""yes" 1>&6
10f2d63a 3008 else
a0b9e27f 3009 echo "$ac_t""no" 1>&6
10f2d63a 3010 fi
a0b9e27f 3011
10f2d63a 3012
5005acfe
VZ
3013 enablestring=
3014 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
fe0895cf 3015echo "configure:3016: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
3016 no_cache=0
3017 # Check whether --enable-no_deps or --disable-no_deps was given.
3018if test "${enable_no_deps+set}" = set; then
3019 enableval="$enable_no_deps"
a0b9e27f 3020
10f2d63a
VZ
3021 if test "$enableval" = yes; then
3022 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3023 else
3024 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3025 fi
a0b9e27f 3026
10f2d63a 3027else
a0b9e27f 3028
10f2d63a
VZ
3029 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
3037
3038fi
10f2d63a
VZ
3039
3040
3041 eval "$ac_cv_use_no_deps"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 3047 echo "$ac_t""yes" 1>&6
10f2d63a 3048 else
a0b9e27f 3049 echo "$ac_t""no" 1>&6
10f2d63a 3050 fi
a0b9e27f 3051
52127426 3052
8284b0c5 3053
5005acfe
VZ
3054 enablestring=
3055 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
fe0895cf 3056echo "configure:3057: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
3057 no_cache=0
3058 # Check whether --enable-compat20 or --disable-compat20 was given.
3059if test "${enable_compat20+set}" = set; then
3060 enableval="$enable_compat20"
a0b9e27f 3061
54276ccf
VZ
3062 if test "$enableval" = yes; then
3063 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3064 else
3065 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3066 fi
a0b9e27f 3067
54276ccf 3068else
a0b9e27f 3069
54276ccf
VZ
3070 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3078
3079fi
54276ccf
VZ
3080
3081
3082 eval "$ac_cv_use_compat20"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3088 echo "$ac_t""yes" 1>&6
54276ccf 3089 else
a0b9e27f 3090 echo "$ac_t""no" 1>&6
54276ccf 3091 fi
a0b9e27f 3092
54276ccf 3093
65d8ef1e 3094 enablestring=
5005acfe 3095 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
fe0895cf 3096echo "configure:3097: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3097 no_cache=0
3098 # Check whether --enable-compat22 or --disable-compat22 was given.
3099if test "${enable_compat22+set}" = set; then
3100 enableval="$enable_compat22"
a0b9e27f 3101
54276ccf
VZ
3102 if test "$enableval" = yes; then
3103 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3104 else
3105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3106 fi
a0b9e27f 3107
54276ccf 3108else
a0b9e27f 3109
54276ccf
VZ
3110 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3118
3119fi
54276ccf
VZ
3120
3121
3122 eval "$ac_cv_use_compat22"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3128 echo "$ac_t""yes" 1>&6
54276ccf 3129 else
a0b9e27f 3130 echo "$ac_t""no" 1>&6
54276ccf 3131 fi
a0b9e27f 3132
54276ccf 3133
65d8ef1e
VS
3134 enablestring=disable
3135 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
fe0895cf 3136echo "configure:3137: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3137 no_cache=0
3138 # Check whether --enable-compat24 or --disable-compat24 was given.
3139if test "${enable_compat24+set}" = set; then
3140 enableval="$enable_compat24"
3141
3142 if test "$enableval" = yes; then
3143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3144 else
3145 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3146 fi
3147
3148else
3149
3150 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3151 if test "x$LINE" != x ; then
3152 eval "DEFAULT_$LINE"
3153 else
3154 no_cache=1
3155 fi
3156
3157 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3158
3159fi
3160
3161
3162 eval "$ac_cv_use_compat24"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3168 echo "$ac_t""yes" 1>&6
3169 else
3170 echo "$ac_t""no" 1>&6
3171 fi
3172
3173
3bd8fb5f
RD
3174# Check whether --enable-rpath or --disable-rpath was given.
3175if test "${enable_rpath+set}" = set; then
3176 enableval="$enable_rpath"
3177 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3178fi
3179
3bd8fb5f
RD
3180
3181if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3182 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3183fi
3184
8284b0c5
MB
3185
3186
3187
5005acfe
VZ
3188 enablestring=
3189 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
fe0895cf 3190echo "configure:3191: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3191 no_cache=0
3192 # Check whether --enable-intl or --disable-intl was given.
3193if test "${enable_intl+set}" = set; then
3194 enableval="$enable_intl"
a0b9e27f 3195
10f2d63a
VZ
3196 if test "$enableval" = yes; then
3197 ac_cv_use_intl='wxUSE_INTL=yes'
3198 else
3199 ac_cv_use_intl='wxUSE_INTL=no'
3200 fi
a0b9e27f 3201
10f2d63a 3202else
a0b9e27f 3203
10f2d63a
VZ
3204 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3212
3213fi
10f2d63a
VZ
3214
3215
3216 eval "$ac_cv_use_intl"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3222 echo "$ac_t""yes" 1>&6
10f2d63a 3223 else
a0b9e27f 3224 echo "$ac_t""no" 1>&6
10f2d63a 3225 fi
a0b9e27f 3226
10f2d63a 3227
5005acfe
VZ
3228 enablestring=
3229 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
fe0895cf 3230echo "configure:3231: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3231 no_cache=0
3232 # Check whether --enable-config or --disable-config was given.
3233if test "${enable_config+set}" = set; then
3234 enableval="$enable_config"
a0b9e27f 3235
10f2d63a
VZ
3236 if test "$enableval" = yes; then
3237 ac_cv_use_config='wxUSE_CONFIG=yes'
3238 else
3239 ac_cv_use_config='wxUSE_CONFIG=no'
3240 fi
a0b9e27f 3241
10f2d63a 3242else
a0b9e27f 3243
10f2d63a
VZ
3244 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3252
3253fi
10f2d63a
VZ
3254
3255
3256 eval "$ac_cv_use_config"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3262 echo "$ac_t""yes" 1>&6
10f2d63a 3263 else
a0b9e27f 3264 echo "$ac_t""no" 1>&6
10f2d63a 3265 fi
a0b9e27f 3266
52127426 3267
8284b0c5 3268
5005acfe
VZ
3269 enablestring=
3270 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
fe0895cf 3271echo "configure:3272: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3272 no_cache=0
3273 # Check whether --enable-protocols or --disable-protocols was given.
3274if test "${enable_protocols+set}" = set; then
3275 enableval="$enable_protocols"
a0b9e27f 3276
a1622950
VZ
3277 if test "$enableval" = yes; then
3278 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3279 else
3280 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3281 fi
a0b9e27f 3282
a1622950 3283else
a0b9e27f 3284
a1622950
VZ
3285 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3293
3294fi
a1622950
VZ
3295
3296
3297 eval "$ac_cv_use_protocols"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3303 echo "$ac_t""yes" 1>&6
a1622950 3304 else
a0b9e27f 3305 echo "$ac_t""no" 1>&6
a1622950 3306 fi
a0b9e27f 3307
a1622950 3308
5005acfe
VZ
3309 enablestring=
3310 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
fe0895cf 3311echo "configure:3312: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3312 no_cache=0
3313 # Check whether --enable-ftp or --disable-ftp was given.
3314if test "${enable_ftp+set}" = set; then
3315 enableval="$enable_ftp"
a0b9e27f 3316
a1622950
VZ
3317 if test "$enableval" = yes; then
3318 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3319 else
3320 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3321 fi
a0b9e27f 3322
a1622950 3323else
a0b9e27f 3324
a1622950
VZ
3325 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3333
3334fi
a1622950
VZ
3335
3336
3337 eval "$ac_cv_use_ftp"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3343 echo "$ac_t""yes" 1>&6
a1622950 3344 else
a0b9e27f 3345 echo "$ac_t""no" 1>&6
a1622950 3346 fi
a0b9e27f 3347
a1622950 3348
5005acfe
VZ
3349 enablestring=
3350 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
fe0895cf 3351echo "configure:3352: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3352 no_cache=0
3353 # Check whether --enable-http or --disable-http was given.
3354if test "${enable_http+set}" = set; then
3355 enableval="$enable_http"
a0b9e27f 3356
a1622950
VZ
3357 if test "$enableval" = yes; then
3358 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3359 else
3360 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3361 fi
a0b9e27f 3362
a1622950 3363else
a0b9e27f 3364
a1622950
VZ
3365 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3373
3374fi
a1622950
VZ
3375
3376
3377 eval "$ac_cv_use_http"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3383 echo "$ac_t""yes" 1>&6
a1622950 3384 else
a0b9e27f 3385 echo "$ac_t""no" 1>&6
a1622950 3386 fi
a0b9e27f 3387
a1622950 3388
5005acfe
VZ
3389 enablestring=
3390 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
fe0895cf 3391echo "configure:3392: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3392 no_cache=0
3393 # Check whether --enable-fileproto or --disable-fileproto was given.
3394if test "${enable_fileproto+set}" = set; then
3395 enableval="$enable_fileproto"
a0b9e27f 3396
a1622950
VZ
3397 if test "$enableval" = yes; then
3398 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3399 else
3400 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3401 fi
a0b9e27f 3402
a1622950 3403else
a0b9e27f 3404
a1622950
VZ
3405 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3413
3414fi
a1622950
VZ
3415
3416
3417 eval "$ac_cv_use_fileproto"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3423 echo "$ac_t""yes" 1>&6
a1622950 3424 else
a0b9e27f 3425 echo "$ac_t""no" 1>&6
a1622950 3426 fi
a0b9e27f 3427
a1622950 3428
5005acfe
VZ
3429 enablestring=
3430 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
fe0895cf 3431echo "configure:3432: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3432 no_cache=0
3433 # Check whether --enable-sockets or --disable-sockets was given.
3434if test "${enable_sockets+set}" = set; then
3435 enableval="$enable_sockets"
a0b9e27f 3436
10f2d63a
VZ
3437 if test "$enableval" = yes; then
3438 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3439 else
3440 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3441 fi
a0b9e27f 3442
10f2d63a 3443else
a0b9e27f 3444
10f2d63a
VZ
3445 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3453
3454fi
10f2d63a
VZ
3455
3456
3457 eval "$ac_cv_use_sockets"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3463 echo "$ac_t""yes" 1>&6
10f2d63a 3464 else
a0b9e27f 3465 echo "$ac_t""no" 1>&6
10f2d63a 3466 fi
a0b9e27f 3467
8284b0c5 3468
5005acfe
VZ
3469 enablestring=
3470 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
fe0895cf 3471echo "configure:3472: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3472 no_cache=0
3473 # Check whether --enable-ole or --disable-ole was given.
3474if test "${enable_ole+set}" = set; then
3475 enableval="$enable_ole"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_ole='wxUSE_OLE=yes'
3479 else
3480 ac_cv_use_ole='wxUSE_OLE=no'
3481 fi
3482
3483else
3484
3485 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3493
3494fi
3495
3496
3497 eval "$ac_cv_use_ole"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_OLE" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
5005acfe
VZ
3509 enablestring=
3510 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
fe0895cf 3511echo "configure:3512: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3512 no_cache=0
3513 # Check whether --enable-dataobj or --disable-dataobj was given.
3514if test "${enable_dataobj+set}" = set; then
3515 enableval="$enable_dataobj"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3519 else
3520 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3521 fi
3522
3523else
3524
3525 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3533
3534fi
3535
3536
3537 eval "$ac_cv_use_dataobj"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_DATAOBJ" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
52127426 3549
5005acfe
VZ
3550 enablestring=
3551 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
fe0895cf 3552echo "configure:3553: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3553 no_cache=0
eb4efbdc
VZ
3554 # Check whether --enable-ipc or --disable-ipc was given.
3555if test "${enable_ipc+set}" = set; then
3556 enableval="$enable_ipc"
a0b9e27f 3557
10f2d63a 3558 if test "$enableval" = yes; then
eb4efbdc 3559 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3560 else
eb4efbdc 3561 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3562 fi
a0b9e27f 3563
10f2d63a 3564else
a0b9e27f 3565
eb4efbdc 3566 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
eb4efbdc 3573 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3574
3575fi
10f2d63a
VZ
3576
3577
eb4efbdc 3578 eval "$ac_cv_use_ipc"
10f2d63a 3579 if test "$no_cache" != 1; then
eb4efbdc 3580 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3581 fi
3582
eb4efbdc 3583 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3584 echo "$ac_t""yes" 1>&6
10f2d63a 3585 else
a0b9e27f 3586 echo "$ac_t""no" 1>&6
10f2d63a 3587 fi
a0b9e27f 3588
52127426 3589
8284b0c5 3590
5005acfe
VZ
3591 enablestring=
3592 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
fe0895cf 3593echo "configure:3594: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3594 no_cache=0
3595 # Check whether --enable-cmdline or --disable-cmdline was given.
3596if test "${enable_cmdline+set}" = set; then
3597 enableval="$enable_cmdline"
a0b9e27f 3598
1e6feb95
VZ
3599 if test "$enableval" = yes; then
3600 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3601 else
3602 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3603 fi
a0b9e27f 3604
1e6feb95 3605else
a0b9e27f 3606
1e6feb95
VZ
3607 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3615
3616fi
1e6feb95
VZ
3617
3618
3619 eval "$ac_cv_use_cmdline"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3625 echo "$ac_t""yes" 1>&6
1e6feb95 3626 else
a0b9e27f 3627 echo "$ac_t""no" 1>&6
1e6feb95 3628 fi
a0b9e27f 3629
1e6feb95 3630
5005acfe
VZ
3631 enablestring=
3632 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
fe0895cf 3633echo "configure:3634: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3634 no_cache=0
3635 # Check whether --enable-datetime or --disable-datetime was given.
3636if test "${enable_datetime+set}" = set; then
3637 enableval="$enable_datetime"
a0b9e27f 3638
1e6feb95
VZ
3639 if test "$enableval" = yes; then
3640 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3641 else
3642 ac_cv_use_datetime='wxUSE_DATETIME=no'
3643 fi
a0b9e27f 3644
1e6feb95 3645else
a0b9e27f 3646
1e6feb95
VZ
3647 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3655
3656fi
1e6feb95
VZ
3657
3658
3659 eval "$ac_cv_use_datetime"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3665 echo "$ac_t""yes" 1>&6
1e6feb95 3666 else
a0b9e27f 3667 echo "$ac_t""no" 1>&6
1e6feb95 3668 fi
a0b9e27f 3669
1e6feb95 3670
5005acfe
VZ
3671 enablestring=
3672 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
fe0895cf 3673echo "configure:3674: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3674 no_cache=0
3675 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3676if test "${enable_stopwatch+set}" = set; then
3677 enableval="$enable_stopwatch"
a0b9e27f 3678
1e6feb95
VZ
3679 if test "$enableval" = yes; then
3680 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3681 else
3682 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3683 fi
a0b9e27f 3684
1e6feb95 3685else
a0b9e27f 3686
1e6feb95
VZ
3687 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3695
3696fi
1e6feb95
VZ
3697
3698
3699 eval "$ac_cv_use_stopwatch"
3700 if test "$no_cache" != 1; then
3701 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3702 fi
3703
3704 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3705 echo "$ac_t""yes" 1>&6
1e6feb95 3706 else
a0b9e27f 3707 echo "$ac_t""no" 1>&6
1e6feb95 3708 fi
a0b9e27f 3709
1e6feb95 3710
5005acfe
VZ
3711 enablestring=
3712 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
fe0895cf 3713echo "configure:3714: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3714 no_cache=0
eb4efbdc
VZ
3715 # Check whether --enable-dialupman or --disable-dialupman was given.
3716if test "${enable_dialupman+set}" = set; then
3717 enableval="$enable_dialupman"
a0b9e27f 3718
10f2d63a 3719 if test "$enableval" = yes; then
eb4efbdc 3720 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3721 else
eb4efbdc 3722 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3723 fi
a0b9e27f 3724
10f2d63a 3725else
a0b9e27f 3726
eb4efbdc 3727 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
eb4efbdc 3734 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3735
3736fi
10f2d63a
VZ
3737
3738
eb4efbdc 3739 eval "$ac_cv_use_dialupman"
10f2d63a 3740 if test "$no_cache" != 1; then
eb4efbdc 3741 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3742 fi
3743
eb4efbdc 3744 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3745 echo "$ac_t""yes" 1>&6
10f2d63a 3746 else
a0b9e27f 3747 echo "$ac_t""no" 1>&6
10f2d63a 3748 fi
a0b9e27f 3749
10f2d63a 3750
5005acfe
VZ
3751 enablestring=
3752 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
fe0895cf 3753echo "configure:3754: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3754 no_cache=0
3755 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3756if test "${enable_apple_ieee+set}" = set; then
3757 enableval="$enable_apple_ieee"
a0b9e27f 3758
10f2d63a
VZ
3759 if test "$enableval" = yes; then
3760 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3761 else
3762 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3763 fi
a0b9e27f 3764
10f2d63a 3765else
a0b9e27f 3766
10f2d63a
VZ
3767 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3775
3776fi
10f2d63a
VZ
3777
3778
3779 eval "$ac_cv_use_apple_ieee"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3785 echo "$ac_t""yes" 1>&6
10f2d63a 3786 else
a0b9e27f 3787 echo "$ac_t""no" 1>&6
10f2d63a 3788 fi
a0b9e27f 3789
10f2d63a 3790
5005acfe
VZ
3791 enablestring=
3792 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
fe0895cf 3793echo "configure:3794: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3794 no_cache=0
1e6feb95
VZ
3795 # Check whether --enable-timer or --disable-timer was given.
3796if test "${enable_timer+set}" = set; then
3797 enableval="$enable_timer"
a0b9e27f 3798
10f2d63a 3799 if test "$enableval" = yes; then
1e6feb95 3800 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3801 else
1e6feb95 3802 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3803 fi
a0b9e27f 3804
10f2d63a 3805else
a0b9e27f 3806
1e6feb95 3807 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
1e6feb95 3814 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3815
3816fi
10f2d63a
VZ
3817
3818
1e6feb95 3819 eval "$ac_cv_use_timer"
10f2d63a 3820 if test "$no_cache" != 1; then
1e6feb95 3821 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3822 fi
3823
1e6feb95 3824 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3825 echo "$ac_t""yes" 1>&6
10f2d63a 3826 else
a0b9e27f 3827 echo "$ac_t""no" 1>&6
10f2d63a 3828 fi
a0b9e27f 3829
10f2d63a 3830
5005acfe
VZ
3831 enablestring=
3832 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
fe0895cf 3833echo "configure:3834: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-wave or --disable-wave was given.
3836if test "${enable_wave+set}" = set; then
3837 enableval="$enable_wave"
a0b9e27f 3838
10f2d63a
VZ
3839 if test "$enableval" = yes; then
3840 ac_cv_use_wave='wxUSE_WAVE=yes'
3841 else
3842 ac_cv_use_wave='wxUSE_WAVE=no'
3843 fi
a0b9e27f 3844
10f2d63a 3845else
a0b9e27f 3846
10f2d63a
VZ
3847 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3855
3856fi
10f2d63a
VZ
3857
3858
3859 eval "$ac_cv_use_wave"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3865 echo "$ac_t""yes" 1>&6
10f2d63a 3866 else
a0b9e27f 3867 echo "$ac_t""no" 1>&6
10f2d63a 3868 fi
a0b9e27f 3869
10f2d63a 3870
5005acfe
VZ
3871 enablestring=
3872 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
fe0895cf 3873echo "configure:3874: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3874 no_cache=0
3875 # Check whether --enable-fraction or --disable-fraction was given.
3876if test "${enable_fraction+set}" = set; then
3877 enableval="$enable_fraction"
a0b9e27f 3878
10f2d63a
VZ
3879 if test "$enableval" = yes; then
3880 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3881 else
3882 ac_cv_use_fraction='wxUSE_FRACTION=no'
3883 fi
a0b9e27f 3884
10f2d63a 3885else
a0b9e27f 3886
10f2d63a
VZ
3887 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3895
3896fi
10f2d63a
VZ
3897
3898
3899 eval "$ac_cv_use_fraction"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3905 echo "$ac_t""yes" 1>&6
10f2d63a 3906 else
a0b9e27f 3907 echo "$ac_t""no" 1>&6
10f2d63a 3908 fi
a0b9e27f 3909
10f2d63a 3910
5005acfe
VZ
3911 enablestring=
3912 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
fe0895cf 3913echo "configure:3914: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3914 no_cache=0
3915 # Check whether --enable-dynlib or --disable-dynlib was given.
3916if test "${enable_dynlib+set}" = set; then
3917 enableval="$enable_dynlib"
a0b9e27f 3918
10f2d63a
VZ
3919 if test "$enableval" = yes; then
3920 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3921 else
3922 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3923 fi
a0b9e27f 3924
10f2d63a 3925else
a0b9e27f 3926
10f2d63a
VZ
3927 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3935
3936fi
10f2d63a
VZ
3937
3938
3939 eval "$ac_cv_use_dynlib"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3945 echo "$ac_t""yes" 1>&6
10f2d63a 3946 else
a0b9e27f 3947 echo "$ac_t""no" 1>&6
10f2d63a 3948 fi
a0b9e27f 3949
10f2d63a 3950
5005acfe
VZ
3951 enablestring=
3952 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
fe0895cf 3953echo "configure:3954: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3954 no_cache=0
3955 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3956if test "${enable_dynamicloader+set}" = set; then
3957 enableval="$enable_dynamicloader"
a0b9e27f 3958
0b9ab0bd
RL
3959 if test "$enableval" = yes; then
3960 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3961 else
3962 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3963 fi
a0b9e27f 3964
0b9ab0bd 3965else
a0b9e27f 3966
0b9ab0bd
RL
3967 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3975
3976fi
0b9ab0bd
RL
3977
3978
3979 eval "$ac_cv_use_dynamicloader"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3985 echo "$ac_t""yes" 1>&6
0b9ab0bd 3986 else
a0b9e27f 3987 echo "$ac_t""no" 1>&6
0b9ab0bd 3988 fi
a0b9e27f 3989
0b9ab0bd 3990
5005acfe
VZ
3991 enablestring=
3992 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
fe0895cf 3993echo "configure:3994: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3994 no_cache=0
3995 # Check whether --enable-longlong or --disable-longlong was given.
3996if test "${enable_longlong+set}" = set; then
3997 enableval="$enable_longlong"
a0b9e27f 3998
10f2d63a
VZ
3999 if test "$enableval" = yes; then
4000 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4001 else
4002 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4003 fi
a0b9e27f 4004
10f2d63a 4005else
a0b9e27f 4006
10f2d63a
VZ
4007 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
4015
4016fi
10f2d63a
VZ
4017
4018
4019 eval "$ac_cv_use_longlong"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 4025 echo "$ac_t""yes" 1>&6
10f2d63a 4026 else
a0b9e27f 4027 echo "$ac_t""no" 1>&6
10f2d63a 4028 fi
a0b9e27f 4029
10f2d63a 4030
5005acfe
VZ
4031 enablestring=
4032 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
fe0895cf 4033echo "configure:4034: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
4034 no_cache=0
4035 # Check whether --enable-geometry or --disable-geometry was given.
4036if test "${enable_geometry+set}" = set; then
4037 enableval="$enable_geometry"
a0b9e27f 4038
e8f65ba6
RR
4039 if test "$enableval" = yes; then
4040 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4041 else
4042 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4043 fi
a0b9e27f 4044
e8f65ba6 4045else
a0b9e27f 4046
e8f65ba6
RR
4047 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
4055
4056fi
e8f65ba6
RR
4057
4058
4059 eval "$ac_cv_use_geometry"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 4065 echo "$ac_t""yes" 1>&6
e8f65ba6 4066 else
a0b9e27f 4067 echo "$ac_t""no" 1>&6
e8f65ba6 4068 fi
a0b9e27f 4069
e8f65ba6 4070
5005acfe
VZ
4071 enablestring=
4072 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
fe0895cf 4073echo "configure:4074: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4074 no_cache=0
4075 # Check whether --enable-log or --disable-log was given.
4076if test "${enable_log+set}" = set; then
4077 enableval="$enable_log"
a0b9e27f 4078
10f2d63a
VZ
4079 if test "$enableval" = yes; then
4080 ac_cv_use_log='wxUSE_LOG=yes'
4081 else
4082 ac_cv_use_log='wxUSE_LOG=no'
4083 fi
a0b9e27f 4084
10f2d63a 4085else
a0b9e27f 4086
10f2d63a
VZ
4087 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4095
4096fi
10f2d63a
VZ
4097
4098
4099 eval "$ac_cv_use_log"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4105 echo "$ac_t""yes" 1>&6
10f2d63a 4106 else
a0b9e27f 4107 echo "$ac_t""no" 1>&6
10f2d63a 4108 fi
a0b9e27f 4109
10f2d63a 4110
5005acfe
VZ
4111 enablestring=
4112 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
fe0895cf 4113echo "configure:4114: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4114 no_cache=0
4115 # Check whether --enable-streams or --disable-streams was given.
4116if test "${enable_streams+set}" = set; then
4117 enableval="$enable_streams"
a0b9e27f 4118
10f2d63a
VZ
4119 if test "$enableval" = yes; then
4120 ac_cv_use_streams='wxUSE_STREAMS=yes'
4121 else
4122 ac_cv_use_streams='wxUSE_STREAMS=no'
4123 fi
a0b9e27f 4124
10f2d63a 4125else
a0b9e27f 4126
10f2d63a
VZ
4127 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4135
4136fi
10f2d63a
VZ
4137
4138
4139 eval "$ac_cv_use_streams"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4145 echo "$ac_t""yes" 1>&6
10f2d63a 4146 else
a0b9e27f 4147 echo "$ac_t""no" 1>&6
10f2d63a 4148 fi
a0b9e27f 4149
10f2d63a 4150
5005acfe
VZ
4151 enablestring=
4152 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
fe0895cf 4153echo "configure:4154: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4154 no_cache=0
4155 # Check whether --enable-file or --disable-file was given.
4156if test "${enable_file+set}" = set; then
4157 enableval="$enable_file"
a0b9e27f 4158
10f2d63a
VZ
4159 if test "$enableval" = yes; then
4160 ac_cv_use_file='wxUSE_FILE=yes'
4161 else
4162 ac_cv_use_file='wxUSE_FILE=no'
4163 fi
a0b9e27f 4164
10f2d63a 4165else
a0b9e27f 4166
10f2d63a
VZ
4167 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4175
4176fi
10f2d63a
VZ
4177
4178
4179 eval "$ac_cv_use_file"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4185 echo "$ac_t""yes" 1>&6
10f2d63a 4186 else
a0b9e27f 4187 echo "$ac_t""no" 1>&6
10f2d63a 4188 fi
a0b9e27f 4189
10f2d63a 4190
5005acfe
VZ
4191 enablestring=
4192 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
fe0895cf 4193echo "configure:4194: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4194 no_cache=0
1e6feb95
VZ
4195 # Check whether --enable-ffile or --disable-ffile was given.
4196if test "${enable_ffile+set}" = set; then
4197 enableval="$enable_ffile"
a0b9e27f 4198
10f2d63a 4199 if test "$enableval" = yes; then
1e6feb95 4200 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4201 else
1e6feb95 4202 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4203 fi
a0b9e27f 4204
10f2d63a 4205else
a0b9e27f 4206
1e6feb95 4207 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
1e6feb95 4214 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4215
4216fi
10f2d63a
VZ
4217
4218
1e6feb95 4219 eval "$ac_cv_use_ffile"
10f2d63a 4220 if test "$no_cache" != 1; then
1e6feb95 4221 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4222 fi
4223
1e6feb95 4224 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4225 echo "$ac_t""yes" 1>&6
10f2d63a 4226 else
a0b9e27f 4227 echo "$ac_t""no" 1>&6
10f2d63a 4228 fi
a0b9e27f 4229
10f2d63a 4230
5005acfe
VZ
4231 enablestring=
4232 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
fe0895cf 4233echo "configure:4234: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4234 no_cache=0
4235 # Check whether --enable-textbuf or --disable-textbuf was given.
4236if test "${enable_textbuf+set}" = set; then
4237 enableval="$enable_textbuf"
a0b9e27f 4238
a3a584a7
VZ
4239 if test "$enableval" = yes; then
4240 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4241 else
4242 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4243 fi
a0b9e27f 4244
a3a584a7 4245else
a0b9e27f 4246
a3a584a7
VZ
4247 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4248 if test "x$LINE" != x ; then
4249 eval "DEFAULT_$LINE"
4250 else
4251 no_cache=1
4252 fi
4253
4254 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4255
4256fi
a3a584a7
VZ
4257
4258
4259 eval "$ac_cv_use_textbuf"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4265 echo "$ac_t""yes" 1>&6
a3a584a7 4266 else
a0b9e27f 4267 echo "$ac_t""no" 1>&6
a3a584a7 4268 fi
a0b9e27f 4269
a3a584a7 4270
5005acfe
VZ
4271 enablestring=
4272 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
fe0895cf 4273echo "configure:4274: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4274 no_cache=0
1e6feb95
VZ
4275 # Check whether --enable-textfile or --disable-textfile was given.
4276if test "${enable_textfile+set}" = set; then
4277 enableval="$enable_textfile"
a0b9e27f 4278
10f2d63a 4279 if test "$enableval" = yes; then
1e6feb95 4280 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4281 else
1e6feb95 4282 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4283 fi
a0b9e27f 4284
10f2d63a 4285else
a0b9e27f 4286
1e6feb95 4287 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
1e6feb95 4294 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4295
4296fi
10f2d63a
VZ
4297
4298
1e6feb95 4299 eval "$ac_cv_use_textfile"
10f2d63a 4300 if test "$no_cache" != 1; then
1e6feb95 4301 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4302 fi
4303
1e6feb95 4304 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4305 echo "$ac_t""yes" 1>&6
10f2d63a 4306 else
a0b9e27f 4307 echo "$ac_t""no" 1>&6
10f2d63a 4308 fi
a0b9e27f 4309
10f2d63a 4310
5005acfe
VZ
4311 enablestring=
4312 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
fe0895cf 4313echo "configure:4314: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4314 no_cache=0
1e6feb95
VZ
4315 # Check whether --enable-fontmap or --disable-fontmap was given.
4316if test "${enable_fontmap+set}" = set; then
4317 enableval="$enable_fontmap"
a0b9e27f 4318
10f2d63a 4319 if test "$enableval" = yes; then
1e6feb95 4320 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4321 else
1e6feb95 4322 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4323 fi
a0b9e27f 4324
10f2d63a 4325else
a0b9e27f 4326
1e6feb95 4327 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
1e6feb95 4334 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4335
4336fi
10f2d63a
VZ
4337
4338
1e6feb95 4339 eval "$ac_cv_use_fontmap"
10f2d63a 4340 if test "$no_cache" != 1; then
1e6feb95 4341 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4342 fi
4343
1e6feb95 4344 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4345 echo "$ac_t""yes" 1>&6
10f2d63a 4346 else
a0b9e27f 4347 echo "$ac_t""no" 1>&6
10f2d63a 4348 fi
a0b9e27f 4349
10f2d63a 4350
5005acfe
VZ
4351 enablestring=
4352 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
fe0895cf 4353echo "configure:4354: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4354 no_cache=0
1e6feb95
VZ
4355 # Check whether --enable-unicode or --disable-unicode was given.
4356if test "${enable_unicode+set}" = set; then
4357 enableval="$enable_unicode"
a0b9e27f 4358
1e6feb95
VZ
4359 if test "$enableval" = yes; then
4360 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4361 else
4362 ac_cv_use_unicode='wxUSE_UNICODE=no'
4363 fi
a0b9e27f 4364
1e6feb95 4365else
a0b9e27f 4366
1e6feb95
VZ
4367 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4375
4376fi
1e6feb95
VZ
4377
4378
4379 eval "$ac_cv_use_unicode"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4385 echo "$ac_t""yes" 1>&6
1e6feb95 4386 else
a0b9e27f 4387 echo "$ac_t""no" 1>&6
1e6feb95 4388 fi
a0b9e27f 4389
1e6feb95 4390
5005acfe
VZ
4391 enablestring=
4392 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
fe0895cf 4393echo "configure:4394: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4394 no_cache=0
4395 # Check whether --enable-mslu or --disable-mslu was given.
4396if test "${enable_mslu+set}" = set; then
4397 enableval="$enable_mslu"
a0b9e27f 4398
a72a4bfa
VS
4399 if test "$enableval" = yes; then
4400 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4401 else
4402 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4403 fi
a0b9e27f 4404
a72a4bfa 4405else
a0b9e27f 4406
a72a4bfa
VS
4407 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4415
4416fi
a72a4bfa
VS
4417
4418
4419 eval "$ac_cv_use_mslu"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4425 echo "$ac_t""yes" 1>&6
a72a4bfa 4426 else
a0b9e27f 4427 echo "$ac_t""no" 1>&6
a72a4bfa 4428 fi
a0b9e27f 4429
a72a4bfa 4430
5005acfe
VZ
4431 enablestring=
4432 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
fe0895cf 4433echo "configure:4434: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4434 no_cache=0
4435 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4436if test "${enable_wxprintfv+set}" = set; then
4437 enableval="$enable_wxprintfv"
a0b9e27f 4438
1e6feb95 4439 if test "$enableval" = yes; then
10f2d63a
VZ
4440 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4441 else
4442 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4443 fi
a0b9e27f 4444
10f2d63a 4445else
a0b9e27f 4446
10f2d63a
VZ
4447 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4455
4456fi
10f2d63a
VZ
4457
4458
4459 eval "$ac_cv_use_wxprintfv"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4465 echo "$ac_t""yes" 1>&6
10f2d63a 4466 else
a0b9e27f 4467 echo "$ac_t""no" 1>&6
10f2d63a 4468 fi
a0b9e27f 4469
10f2d63a 4470
5005acfe
VZ
4471 enablestring=
4472 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
fe0895cf 4473echo "configure:4474: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4474 no_cache=0
4475 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4476if test "${enable_std_iostreams+set}" = set; then
4477 enableval="$enable_std_iostreams"
a0b9e27f 4478
10f2d63a
VZ
4479 if test "$enableval" = yes; then
4480 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4481 else
4482 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4483 fi
a0b9e27f 4484
10f2d63a 4485else
a0b9e27f 4486
10f2d63a
VZ
4487 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4495
4496fi
10f2d63a
VZ
4497
4498
4499 eval "$ac_cv_use_std_iostreams"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4505 echo "$ac_t""yes" 1>&6
10f2d63a 4506 else
a0b9e27f 4507 echo "$ac_t""no" 1>&6
10f2d63a 4508 fi
a0b9e27f 4509
10f2d63a 4510
5005acfe
VZ
4511 enablestring=
4512 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
fe0895cf 4513echo "configure:4514: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4514 no_cache=0
4515 # Check whether --enable-filesystem or --disable-filesystem was given.
4516if test "${enable_filesystem+set}" = set; then
4517 enableval="$enable_filesystem"
a0b9e27f 4518
24528b0c
VS
4519 if test "$enableval" = yes; then
4520 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4521 else
4522 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4523 fi
a0b9e27f 4524
24528b0c 4525else
a0b9e27f 4526
24528b0c
VS
4527 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4535
4536fi
24528b0c
VS
4537
4538
4539 eval "$ac_cv_use_filesystem"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4545 echo "$ac_t""yes" 1>&6
24528b0c 4546 else
a0b9e27f 4547 echo "$ac_t""no" 1>&6
24528b0c 4548 fi
a0b9e27f 4549
24528b0c 4550
5005acfe
VZ
4551 enablestring=
4552 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
fe0895cf 4553echo "configure:4554: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4554 no_cache=0
4555 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4556if test "${enable_fs_inet+set}" = set; then
4557 enableval="$enable_fs_inet"
a0b9e27f 4558
10f2d63a
VZ
4559 if test "$enableval" = yes; then
4560 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4561 else
4562 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4563 fi
a0b9e27f 4564
10f2d63a 4565else
a0b9e27f 4566
10f2d63a
VZ
4567 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4575
4576fi
10f2d63a
VZ
4577
4578
4579 eval "$ac_cv_use_fs_inet"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4585 echo "$ac_t""yes" 1>&6
10f2d63a 4586 else
a0b9e27f 4587 echo "$ac_t""no" 1>&6
10f2d63a 4588 fi
a0b9e27f 4589
10f2d63a 4590
5005acfe
VZ
4591 enablestring=
4592 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
fe0895cf 4593echo "configure:4594: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4594 no_cache=0
4595 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4596if test "${enable_fs_zip+set}" = set; then
4597 enableval="$enable_fs_zip"
a0b9e27f 4598
10f2d63a
VZ
4599 if test "$enableval" = yes; then
4600 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4601 else
4602 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4603 fi
a0b9e27f 4604
10f2d63a 4605else
a0b9e27f 4606
10f2d63a
VZ
4607 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4615
4616fi
10f2d63a
VZ
4617
4618
4619 eval "$ac_cv_use_fs_zip"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4625 echo "$ac_t""yes" 1>&6
10f2d63a 4626 else
a0b9e27f 4627 echo "$ac_t""no" 1>&6
10f2d63a 4628 fi
a0b9e27f 4629
10f2d63a 4630
5005acfe
VZ
4631 enablestring=
4632 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
fe0895cf 4633echo "configure:4634: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4634 no_cache=0
4635 # Check whether --enable-zipstream or --disable-zipstream was given.
4636if test "${enable_zipstream+set}" = set; then
4637 enableval="$enable_zipstream"
a0b9e27f 4638
10f2d63a
VZ
4639 if test "$enableval" = yes; then
4640 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4641 else
4642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4643 fi
a0b9e27f 4644
10f2d63a 4645else
a0b9e27f 4646
10f2d63a
VZ
4647 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4655
4656fi
10f2d63a
VZ
4657
4658
4659 eval "$ac_cv_use_zipstream"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4665 echo "$ac_t""yes" 1>&6
10f2d63a 4666 else
a0b9e27f 4667 echo "$ac_t""no" 1>&6
10f2d63a 4668 fi
a0b9e27f 4669
8284b0c5 4670
52127426 4671
5005acfe
VZ
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
fe0895cf 4674echo "configure:4675: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4675 no_cache=0
4676 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4677if test "${enable_catch_segvs+set}" = set; then
4678 enableval="$enable_catch_segvs"
a0b9e27f 4679
eb4efbdc
VZ
4680 if test "$enableval" = yes; then
4681 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4682 else
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4684 fi
a0b9e27f 4685
eb4efbdc 4686else
a0b9e27f 4687
eb4efbdc
VZ
4688 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4696
4697fi
eb4efbdc
VZ
4698
4699
4700 eval "$ac_cv_use_catch_segvs"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4706 echo "$ac_t""yes" 1>&6
eb4efbdc 4707 else
a0b9e27f 4708 echo "$ac_t""no" 1>&6
eb4efbdc 4709 fi
a0b9e27f 4710
eb4efbdc 4711
5005acfe
VZ
4712 enablestring=
4713 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
fe0895cf 4714echo "configure:4715: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4715 no_cache=0
4716 # Check whether --enable-snglinst or --disable-snglinst was given.
4717if test "${enable_snglinst+set}" = set; then
4718 enableval="$enable_snglinst"
a0b9e27f 4719
4f3c5f06
VZ
4720 if test "$enableval" = yes; then
4721 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4722 else
4723 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4724 fi
a0b9e27f 4725
4f3c5f06 4726else
a0b9e27f 4727
4f3c5f06
VZ
4728 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4736
4737fi
4f3c5f06
VZ
4738
4739
4740 eval "$ac_cv_use_snglinst"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4746 echo "$ac_t""yes" 1>&6
4f3c5f06 4747 else
a0b9e27f 4748 echo "$ac_t""no" 1>&6
4f3c5f06 4749 fi
a0b9e27f 4750
52127426 4751
8284b0c5 4752
5005acfe
VZ
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
fe0895cf 4755echo "configure:4756: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4756 no_cache=0
4757 # Check whether --enable-mimetype or --disable-mimetype was given.
4758if test "${enable_mimetype+set}" = set; then
4759 enableval="$enable_mimetype"
a0b9e27f 4760
1e6feb95
VZ
4761 if test "$enableval" = yes; then
4762 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4763 else
4764 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4765 fi
a0b9e27f 4766
1e6feb95 4767else
a0b9e27f 4768
1e6feb95
VZ
4769 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4777
4778fi
1e6feb95
VZ
4779
4780
4781 eval "$ac_cv_use_mimetype"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4787 echo "$ac_t""yes" 1>&6
1e6feb95 4788 else
a0b9e27f 4789 echo "$ac_t""no" 1>&6
1e6feb95 4790 fi
a0b9e27f 4791
1e6feb95 4792
5005acfe
VZ
4793 enablestring=
4794 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
fe0895cf 4795echo "configure:4796: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4796 no_cache=0
4797 # Check whether --enable-system_options or --disable-system_options was given.
4798if test "${enable_system_options+set}" = set; then
4799 enableval="$enable_system_options"
a0b9e27f 4800
3e44f09d
VZ
4801 if test "$enableval" = yes; then
4802 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4803 else
4804 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4805 fi
a0b9e27f 4806
3e44f09d 4807else
a0b9e27f 4808
3e44f09d
VZ
4809 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4817
4818fi
3e44f09d
VZ
4819
4820
4821 eval "$ac_cv_use_system_options"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4827 echo "$ac_t""yes" 1>&6
3e44f09d 4828 else
a0b9e27f 4829 echo "$ac_t""no" 1>&6
3e44f09d 4830 fi
a0b9e27f 4831
8284b0c5 4832
52127426 4833
5005acfe
VZ
4834 enablestring=
4835 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
fe0895cf 4836echo "configure:4837: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4837 no_cache=0
4838 # Check whether --enable-url or --disable-url was given.
4839if test "${enable_url+set}" = set; then
4840 enableval="$enable_url"
a0b9e27f 4841
4cdb0ab0
VS
4842 if test "$enableval" = yes; then
4843 ac_cv_use_url='wxUSE_URL=yes'
4844 else
4845 ac_cv_use_url='wxUSE_URL=no'
4846 fi
a0b9e27f 4847
4cdb0ab0 4848else
a0b9e27f 4849
4cdb0ab0
VS
4850 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4858
4859fi
4cdb0ab0
VS
4860
4861
4862 eval "$ac_cv_use_url"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_URL" = yes; then
a0b9e27f 4868 echo "$ac_t""yes" 1>&6
4cdb0ab0 4869 else
a0b9e27f 4870 echo "$ac_t""no" 1>&6
4cdb0ab0 4871 fi
a0b9e27f 4872
4cdb0ab0 4873
5005acfe
VZ
4874 enablestring=
4875 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
fe0895cf 4876echo "configure:4877: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4877 no_cache=0
4878 # Check whether --enable-protocol or --disable-protocol was given.
4879if test "${enable_protocol+set}" = set; then
4880 enableval="$enable_protocol"
a0b9e27f 4881
4cdb0ab0
VS
4882 if test "$enableval" = yes; then
4883 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4884 else
4885 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4886 fi
a0b9e27f 4887
4cdb0ab0 4888else
a0b9e27f 4889
4cdb0ab0
VS
4890 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4898
4899fi
4cdb0ab0
VS
4900
4901
4902 eval "$ac_cv_use_protocol"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4908 echo "$ac_t""yes" 1>&6
4cdb0ab0 4909 else
a0b9e27f 4910 echo "$ac_t""no" 1>&6
4cdb0ab0 4911 fi
a0b9e27f 4912
4cdb0ab0 4913
5005acfe
VZ
4914 enablestring=
4915 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
fe0895cf 4916echo "configure:4917: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4917 no_cache=0
4918 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4919if test "${enable_protocol_http+set}" = set; then
4920 enableval="$enable_protocol_http"
a0b9e27f 4921
4cdb0ab0
VS
4922 if test "$enableval" = yes; then
4923 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4924 else
4925 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4926 fi
a0b9e27f 4927
4cdb0ab0 4928else
a0b9e27f 4929
4cdb0ab0
VS
4930 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4938
4939fi
4cdb0ab0
VS
4940
4941
4942 eval "$ac_cv_use_protocol_http"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4948 echo "$ac_t""yes" 1>&6
4cdb0ab0 4949 else
a0b9e27f 4950 echo "$ac_t""no" 1>&6
4cdb0ab0 4951 fi
a0b9e27f 4952
4cdb0ab0 4953
5005acfe
VZ
4954 enablestring=
4955 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
fe0895cf 4956echo "configure:4957: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4957 no_cache=0
4958 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4959if test "${enable_protocol_ftp+set}" = set; then
4960 enableval="$enable_protocol_ftp"
a0b9e27f 4961
4cdb0ab0
VS
4962 if test "$enableval" = yes; then
4963 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4964 else
4965 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4966 fi
a0b9e27f 4967
4cdb0ab0 4968else
a0b9e27f 4969
4cdb0ab0
VS
4970 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4978
4979fi
4cdb0ab0
VS
4980
4981
4982 eval "$ac_cv_use_protocol_ftp"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4988 echo "$ac_t""yes" 1>&6
4cdb0ab0 4989 else
a0b9e27f 4990 echo "$ac_t""no" 1>&6
4cdb0ab0 4991 fi
a0b9e27f 4992
4cdb0ab0 4993
5005acfe
VZ
4994 enablestring=
4995 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
fe0895cf 4996echo "configure:4997: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4997 no_cache=0
4998 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4999if test "${enable_protocol_file+set}" = set; then
5000 enableval="$enable_protocol_file"
a0b9e27f 5001
4cdb0ab0
VS
5002 if test "$enableval" = yes; then
5003 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5004 else
5005 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5006 fi
a0b9e27f 5007
4cdb0ab0 5008else
a0b9e27f 5009
4cdb0ab0
VS
5010 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
5018
5019fi
4cdb0ab0
VS
5020
5021
5022 eval "$ac_cv_use_protocol_file"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 5028 echo "$ac_t""yes" 1>&6
4cdb0ab0 5029 else
a0b9e27f 5030 echo "$ac_t""no" 1>&6
4cdb0ab0 5031 fi
a0b9e27f 5032
52127426 5033
8284b0c5
MB
5034
5035
5036
5005acfe
VZ
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
fe0895cf 5039echo "configure:5040: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-threads or --disable-threads was given.
5042if test "${enable_threads+set}" = set; then
5043 enableval="$enable_threads"
a0b9e27f 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_threads='wxUSE_THREADS=yes'
5047 else
5048 ac_cv_use_threads='wxUSE_THREADS=no'
5049 fi
a0b9e27f 5050
10f2d63a 5051else
a0b9e27f 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_threads"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
a0b9e27f 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
a0b9e27f 5075
10f2d63a 5076
b12915c1
VZ
5077if test "$wxUSE_GUI" = "yes"; then
5078
8284b0c5
MB
5079
5080
5005acfe
VZ
5081 enablestring=
5082 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
fe0895cf 5083echo "configure:5084: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5084 no_cache=0
5085 # Check whether --enable-docview or --disable-docview was given.
5086if test "${enable_docview+set}" = set; then
5087 enableval="$enable_docview"
a0b9e27f 5088
10f2d63a
VZ
5089 if test "$enableval" = yes; then
5090 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5091 else
5092 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5093 fi
a0b9e27f 5094
10f2d63a 5095else
a0b9e27f 5096
10f2d63a
VZ
5097 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5105
5106fi
10f2d63a
VZ
5107
5108
5109 eval "$ac_cv_use_docview"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5115 echo "$ac_t""yes" 1>&6
10f2d63a 5116 else
a0b9e27f 5117 echo "$ac_t""no" 1>&6
10f2d63a 5118 fi
a0b9e27f 5119
10f2d63a 5120
5005acfe
VZ
5121 enablestring=
5122 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
fe0895cf 5123echo "configure:5124: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5124 no_cache=0
5125 # Check whether --enable-help or --disable-help was given.
5126if test "${enable_help+set}" = set; then
5127 enableval="$enable_help"
a0b9e27f 5128
10f2d63a
VZ
5129 if test "$enableval" = yes; then
5130 ac_cv_use_help='wxUSE_HELP=yes'
5131 else
5132 ac_cv_use_help='wxUSE_HELP=no'
5133 fi
a0b9e27f 5134
10f2d63a 5135else
a0b9e27f 5136
10f2d63a
VZ
5137 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5138 if test "x$LINE" != x ; then
5139 eval "DEFAULT_$LINE"
5140 else
5141 no_cache=1
5142 fi
5143
5144 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5145
5146fi
10f2d63a
VZ
5147
5148
5149 eval "$ac_cv_use_help"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5155 echo "$ac_t""yes" 1>&6
10f2d63a 5156 else
a0b9e27f 5157 echo "$ac_t""no" 1>&6
10f2d63a 5158 fi
a0b9e27f 5159
10f2d63a 5160
5005acfe
VZ
5161 enablestring=
5162 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
fe0895cf 5163echo "configure:5164: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5164 no_cache=0
5165 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5166if test "${enable_mshtmlhelp+set}" = set; then
5167 enableval="$enable_mshtmlhelp"
a0b9e27f 5168
29fd3c0c
VS
5169 if test "$enableval" = yes; then
5170 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5171 else
5172 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5173 fi
a0b9e27f 5174
29fd3c0c 5175else
a0b9e27f 5176
29fd3c0c
VS
5177 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5185
5186fi
29fd3c0c
VS
5187
5188
5189 eval "$ac_cv_use_mshtmlhelp"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5195 echo "$ac_t""yes" 1>&6
29fd3c0c 5196 else
a0b9e27f 5197 echo "$ac_t""no" 1>&6
29fd3c0c 5198 fi
a0b9e27f 5199
29fd3c0c 5200
5005acfe
VZ
5201 enablestring=
5202 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
fe0895cf 5203echo "configure:5204: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5204 no_cache=0
5205 # Check whether --enable-html or --disable-html was given.
5206if test "${enable_html+set}" = set; then
5207 enableval="$enable_html"
a0b9e27f 5208
3379ed37
VZ
5209 if test "$enableval" = yes; then
5210 ac_cv_use_html='wxUSE_HTML=yes'
5211 else
5212 ac_cv_use_html='wxUSE_HTML=no'
5213 fi
a0b9e27f 5214
3379ed37 5215else
a0b9e27f 5216
3379ed37
VZ
5217 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5225
5226fi
3379ed37
VZ
5227
5228
5229 eval "$ac_cv_use_html"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5235 echo "$ac_t""yes" 1>&6
3379ed37 5236 else
a0b9e27f 5237 echo "$ac_t""no" 1>&6
3379ed37 5238 fi
a0b9e27f 5239
3379ed37 5240
5005acfe
VZ
5241 enablestring=
5242 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
fe0895cf 5243echo "configure:5244: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5244 no_cache=0
5245 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5246if test "${enable_htmlhelp+set}" = set; then
5247 enableval="$enable_htmlhelp"
a0b9e27f 5248
3379ed37
VZ
5249 if test "$enableval" = yes; then
5250 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5251 else
5252 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5253 fi
a0b9e27f 5254
3379ed37 5255else
a0b9e27f 5256
3379ed37
VZ
5257 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5265
5266fi
3379ed37
VZ
5267
5268
5269 eval "$ac_cv_use_htmlhelp"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5275 echo "$ac_t""yes" 1>&6
3379ed37 5276 else
a0b9e27f 5277 echo "$ac_t""no" 1>&6
3379ed37 5278 fi
a0b9e27f 5279
3379ed37 5280
5005acfe
VZ
5281 enablestring=
5282 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
fe0895cf 5283echo "configure:5284: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5284 no_cache=0
5285 # Check whether --enable-constraints or --disable-constraints was given.
5286if test "${enable_constraints+set}" = set; then
5287 enableval="$enable_constraints"
a0b9e27f 5288
10f2d63a
VZ
5289 if test "$enableval" = yes; then
5290 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5291 else
5292 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5293 fi
a0b9e27f 5294
10f2d63a 5295else
a0b9e27f 5296
10f2d63a
VZ
5297 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5305
5306fi
10f2d63a
VZ
5307
5308
5309 eval "$ac_cv_use_constraints"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5315 echo "$ac_t""yes" 1>&6
10f2d63a 5316 else
a0b9e27f 5317 echo "$ac_t""no" 1>&6
10f2d63a 5318 fi
a0b9e27f 5319
10f2d63a 5320
5005acfe
VZ
5321 enablestring=
5322 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
fe0895cf 5323echo "configure:5324: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5324 no_cache=0
5325 # Check whether --enable-printarch or --disable-printarch was given.
5326if test "${enable_printarch+set}" = set; then
5327 enableval="$enable_printarch"
a0b9e27f 5328
10f2d63a
VZ
5329 if test "$enableval" = yes; then
5330 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5331 else
5332 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5333 fi
a0b9e27f 5334
10f2d63a 5335else
a0b9e27f 5336
10f2d63a
VZ
5337 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5345
5346fi
10f2d63a
VZ
5347
5348
5349 eval "$ac_cv_use_printarch"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5355 echo "$ac_t""yes" 1>&6
10f2d63a 5356 else
a0b9e27f 5357 echo "$ac_t""no" 1>&6
10f2d63a 5358 fi
a0b9e27f 5359
10f2d63a 5360
5005acfe
VZ
5361 enablestring=
5362 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
fe0895cf 5363echo "configure:5364: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5364 no_cache=0
5365 # Check whether --enable-mdi or --disable-mdi was given.
5366if test "${enable_mdi+set}" = set; then
5367 enableval="$enable_mdi"
a0b9e27f 5368
10f2d63a
VZ
5369 if test "$enableval" = yes; then
5370 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5371 else
5372 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5373 fi
a0b9e27f 5374
10f2d63a 5375else
a0b9e27f 5376
10f2d63a
VZ
5377 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5385
5386fi
10f2d63a
VZ
5387
5388
5389 eval "$ac_cv_use_mdi"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5395 echo "$ac_t""yes" 1>&6
10f2d63a 5396 else
a0b9e27f 5397 echo "$ac_t""no" 1>&6
10f2d63a 5398 fi
a0b9e27f 5399
698dcdb6 5400
5005acfe
VZ
5401 enablestring=
5402 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
fe0895cf 5403echo "configure:5404: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5404 no_cache=0
5405 # Check whether --enable-loggui or --disable-loggui was given.
5406if test "${enable_loggui+set}" = set; then
5407 enableval="$enable_loggui"
a0b9e27f 5408
1e6feb95
VZ
5409 if test "$enableval" = yes; then
5410 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5411 else
5412 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5413 fi
a0b9e27f 5414
1e6feb95 5415else
a0b9e27f 5416
1e6feb95
VZ
5417 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5425
5426fi
1e6feb95
VZ
5427
5428
5429 eval "$ac_cv_use_loggui"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5435 echo "$ac_t""yes" 1>&6
1e6feb95 5436 else
a0b9e27f 5437 echo "$ac_t""no" 1>&6
1e6feb95 5438 fi
a0b9e27f 5439
1e6feb95 5440
5005acfe
VZ
5441 enablestring=
5442 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
fe0895cf 5443echo "configure:5444: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5444 no_cache=0
5445 # Check whether --enable-logwin or --disable-logwin was given.
5446if test "${enable_logwin+set}" = set; then
5447 enableval="$enable_logwin"
a0b9e27f 5448
1e6feb95
VZ
5449 if test "$enableval" = yes; then
5450 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5451 else
5452 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5453 fi
a0b9e27f 5454
1e6feb95 5455else
a0b9e27f 5456
1e6feb95
VZ
5457 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5465
5466fi
1e6feb95
VZ
5467
5468
5469 eval "$ac_cv_use_logwin"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5475 echo "$ac_t""yes" 1>&6
1e6feb95 5476 else
a0b9e27f 5477 echo "$ac_t""no" 1>&6
1e6feb95 5478 fi
a0b9e27f 5479
1e6feb95 5480
5005acfe
VZ
5481 enablestring=
5482 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
fe0895cf 5483echo "configure:5484: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5484 no_cache=0
5485 # Check whether --enable-logdialog or --disable-logdialog was given.
5486if test "${enable_logdialog+set}" = set; then
5487 enableval="$enable_logdialog"
a0b9e27f 5488
69d27ff7
MB
5489 if test "$enableval" = yes; then
5490 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5491 else
5492 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5493 fi
a0b9e27f 5494
69d27ff7 5495else
a0b9e27f 5496
69d27ff7
MB
5497 LINE=`grep "wxUSE_LOGDIALOG" ${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_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5505
5506fi
69d27ff7
MB
5507
5508
5509 eval "$ac_cv_use_logdialog"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5515 echo "$ac_t""yes" 1>&6
69d27ff7 5516 else
a0b9e27f 5517 echo "$ac_t""no" 1>&6
69d27ff7 5518 fi
a0b9e27f 5519
8284b0c5 5520
52127426 5521
5005acfe
VZ
5522 enablestring=
5523 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
fe0895cf 5524echo "configure:5525: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5525 no_cache=0
5526 # Check whether --enable-postscript or --disable-postscript was given.
5527if test "${enable_postscript+set}" = set; then
5528 enableval="$enable_postscript"
a0b9e27f 5529
10f2d63a
VZ
5530 if test "$enableval" = yes; then
5531 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5532 else
5533 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5534 fi
a0b9e27f 5535
10f2d63a 5536else
a0b9e27f 5537
10f2d63a
VZ
5538 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5546
5547fi
10f2d63a
VZ
5548
5549
5550 eval "$ac_cv_use_postscript"
5551 if test "$no_cache" != 1; then
5552 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5553 fi
5554
5555 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5556 echo "$ac_t""yes" 1>&6
10f2d63a 5557 else
a0b9e27f 5558 echo "$ac_t""no" 1>&6
10f2d63a 5559 fi
a0b9e27f 5560
8284b0c5
MB
5561
5562
52127426 5563
8284b0c5 5564
5005acfe 5565 enablestring=
3c907f20 5566 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
fe0895cf 5567echo "configure:5568: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a 5568 no_cache=0
3c907f20
VZ
5569 # Check whether --enable-prologio or --disable-prologio was given.
5570if test "${enable_prologio+set}" = set; then
5571 enableval="$enable_prologio"
a0b9e27f 5572
10f2d63a 5573 if test "$enableval" = yes; then
3c907f20 5574 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 5575 else
3c907f20 5576 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 5577 fi
a0b9e27f 5578
10f2d63a 5579else
a0b9e27f 5580
3c907f20 5581 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
3c907f20 5588 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5589
5590fi
10f2d63a
VZ
5591
5592
3c907f20 5593 eval "$ac_cv_use_prologio"
10f2d63a 5594 if test "$no_cache" != 1; then
3c907f20 5595 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5596 fi
5597
3c907f20 5598 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5599 echo "$ac_t""yes" 1>&6
10f2d63a 5600 else
a0b9e27f 5601 echo "$ac_t""no" 1>&6
10f2d63a 5602 fi
a0b9e27f 5603
8284b0c5 5604
5005acfe 5605 enablestring=
3c907f20 5606 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
fe0895cf 5607echo "configure:5608: checking for --${enablestring:-enable}-resources" >&5
10f2d63a 5608 no_cache=0
3c907f20
VZ
5609 # Check whether --enable-resources or --disable-resources was given.
5610if test "${enable_resources+set}" = set; then
5611 enableval="$enable_resources"
a0b9e27f 5612
10f2d63a 5613 if test "$enableval" = yes; then
3c907f20 5614 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 5615 else
3c907f20 5616 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 5617 fi
a0b9e27f 5618
10f2d63a 5619else
a0b9e27f 5620
3c907f20 5621 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
5622 if test "x$LINE" != x ; then
5623 eval "DEFAULT_$LINE"
5624 else
5625 no_cache=1
5626 fi
5627
3c907f20 5628 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5629
5630fi
10f2d63a
VZ
5631
5632
3c907f20 5633 eval "$ac_cv_use_resources"
10f2d63a 5634 if test "$no_cache" != 1; then
3c907f20 5635 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5636 fi
5637
3c907f20 5638 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5639 echo "$ac_t""yes" 1>&6
10f2d63a 5640 else
a0b9e27f 5641 echo "$ac_t""no" 1>&6
10f2d63a 5642 fi
a0b9e27f 5643
8284b0c5
MB
5644
5645
52127426 5646
5005acfe
VZ
5647 enablestring=
5648 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
fe0895cf 5649echo "configure:5650: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5650 no_cache=0
5651 # Check whether --enable-clipboard or --disable-clipboard was given.
5652if test "${enable_clipboard+set}" = set; then
5653 enableval="$enable_clipboard"
a0b9e27f 5654
10f2d63a
VZ
5655 if test "$enableval" = yes; then
5656 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5657 else
5658 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5659 fi
a0b9e27f 5660
10f2d63a 5661else
a0b9e27f 5662
10f2d63a
VZ
5663 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5671
5672fi
10f2d63a
VZ
5673
5674
5675 eval "$ac_cv_use_clipboard"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5681 echo "$ac_t""yes" 1>&6
10f2d63a 5682 else
a0b9e27f 5683 echo "$ac_t""no" 1>&6
10f2d63a 5684 fi
a0b9e27f 5685
10f2d63a 5686
5005acfe
VZ
5687 enablestring=
5688 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
fe0895cf 5689echo "configure:5690: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5690 no_cache=0
5691 # Check whether --enable-dnd or --disable-dnd was given.
5692if test "${enable_dnd+set}" = set; then
5693 enableval="$enable_dnd"
a0b9e27f 5694
10f2d63a
VZ
5695 if test "$enableval" = yes; then
5696 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5697 else
5698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5699 fi
a0b9e27f 5700
10f2d63a 5701else
a0b9e27f 5702
10f2d63a
VZ
5703 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5711
5712fi
10f2d63a
VZ
5713
5714
5715 eval "$ac_cv_use_dnd"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5721 echo "$ac_t""yes" 1>&6
10f2d63a 5722 else
a0b9e27f 5723 echo "$ac_t""no" 1>&6
10f2d63a 5724 fi
a0b9e27f 5725
10f2d63a 5726
5005acfe
VZ
5727 enablestring=
5728 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
fe0895cf 5729echo "configure:5730: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5730 no_cache=0
5731 # Check whether --enable-metafile or --disable-metafile was given.
5732if test "${enable_metafile+set}" = set; then
5733 enableval="$enable_metafile"
a0b9e27f 5734
b64f0a5f
RL
5735 if test "$enableval" = yes; then
5736 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5737 else
5738 ac_cv_use_metafile='wxUSE_METAFILE=no'
5739 fi
a0b9e27f 5740
b64f0a5f 5741else
a0b9e27f 5742
b64f0a5f
RL
5743 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5751
5752fi
b64f0a5f
RL
5753
5754
5755 eval "$ac_cv_use_metafile"
5756 if test "$no_cache" != 1; then
5757 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5758 fi
5759
5760 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5761 echo "$ac_t""yes" 1>&6
b64f0a5f 5762 else
a0b9e27f 5763 echo "$ac_t""no" 1>&6
b64f0a5f 5764 fi
a0b9e27f 5765
52127426 5766
8284b0c5 5767
52127426 5768
8284b0c5 5769
5005acfe
VZ
5770 enablestring=
5771 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
fe0895cf 5772echo "configure:5773: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5773 no_cache=0
5774 # Check whether --enable-controls or --disable-controls was given.
5775if test "${enable_controls+set}" = set; then
5776 enableval="$enable_controls"
a0b9e27f 5777
10f2d63a
VZ
5778 if test "$enableval" = yes; then
5779 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5780 else
5781 ac_cv_use_controls='wxUSE_CONTROLS=no'
5782 fi
a0b9e27f 5783
10f2d63a 5784else
a0b9e27f 5785
10f2d63a
VZ
5786 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5794
5795fi
10f2d63a
VZ
5796
5797
5798 eval "$ac_cv_use_controls"
5799 if test "$no_cache" != 1; then
5800 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5801 fi
5802
5803 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5804 echo "$ac_t""yes" 1>&6
10f2d63a 5805 else
a0b9e27f 5806 echo "$ac_t""no" 1>&6
10f2d63a 5807 fi
a0b9e27f 5808
10f2d63a
VZ
5809
5810if test "$wxUSE_CONTROLS" = "yes"; then
5811 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5812 DEFAULT_wxUSE_BMPBUTTON=yes
5813 DEFAULT_wxUSE_BUTTON=yes
5814 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5815 DEFAULT_wxUSE_CARET=yes
5816 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5817 DEFAULT_wxUSE_CHECKBOX=yes
5818 DEFAULT_wxUSE_CHECKLISTBOX=yes
5819 DEFAULT_wxUSE_CHOICE=yes
5820 DEFAULT_wxUSE_GAUGE=yes
5821 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5822 DEFAULT_wxUSE_IMAGLIST=yes
5823 DEFAULT_wxUSE_LISTBOX=yes
5824 DEFAULT_wxUSE_LISTCTRL=yes
5825 DEFAULT_wxUSE_NOTEBOOK=yes
5826 DEFAULT_wxUSE_RADIOBOX=yes
5827 DEFAULT_wxUSE_RADIOBTN=yes
5828 DEFAULT_wxUSE_SASH=yes
5829 DEFAULT_wxUSE_SCROLLBAR=yes
5830 DEFAULT_wxUSE_SLIDER=yes
5831 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5832 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5833 DEFAULT_wxUSE_SPLITTER=yes
5834 DEFAULT_wxUSE_STATBMP=yes
5835 DEFAULT_wxUSE_STATBOX=yes
5836 DEFAULT_wxUSE_STATLINE=yes
5837 DEFAULT_wxUSE_STATUSBAR=yes
5838 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5839 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5840 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5841 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5842 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5843 DEFAULT_wxUSE_TOOLTIPS=yes
5844 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5845 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5846 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5847elif test "$wxUSE_CONTROLS" = "no"; then
5848 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5849 DEFAULT_wxUSE_BMPBUTTON=no
5850 DEFAULT_wxUSE_BUTTON=no
5851 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5852 DEFAULT_wxUSE_CARET=no
5853 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5854 DEFAULT_wxUSE_CHECKBOX=no
5855 DEFAULT_wxUSE_CHECKLISTBOX=no
5856 DEFAULT_wxUSE_CHOICE=no
5857 DEFAULT_wxUSE_GAUGE=no
5858 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5859 DEFAULT_wxUSE_IMAGLIST=no
5860 DEFAULT_wxUSE_LISTBOX=no
5861 DEFAULT_wxUSE_LISTCTRL=no
5862 DEFAULT_wxUSE_NOTEBOOK=no
5863 DEFAULT_wxUSE_RADIOBOX=no
5864 DEFAULT_wxUSE_RADIOBTN=no
5865 DEFAULT_wxUSE_SASH=no
5866 DEFAULT_wxUSE_SCROLLBAR=no
5867 DEFAULT_wxUSE_SLIDER=no
5868 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5869 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5870 DEFAULT_wxUSE_SPLITTER=no
5871 DEFAULT_wxUSE_STATBMP=no
5872 DEFAULT_wxUSE_STATBOX=no
5873 DEFAULT_wxUSE_STATLINE=no
5874 DEFAULT_wxUSE_STATUSBAR=no
5875 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5876 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5877 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5878 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5879 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5880 DEFAULT_wxUSE_TOOLTIPS=no
5881 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5882 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5883 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5884fi
5885
ac0c4cc3
DE
5886## FIXME: This is a blatant hack
5887if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5888 wxUSE_PRINTING_ARCHITECTURE=no
5889 wxUSE_HELP=no
5890 wxUSE_CLIPBOARD=no
5891 wxUSE_DRAG_AND_DROP=no
5892 wxUSE_DATAOBJ=no
8b389fab
DE
5893 # Generic notebook requires tab dialog
5894 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 5895 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
5896 DEFAULT_wxUSE_GAUGE=no
5897 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3
DE
5898 DEFAULT_wxUSE_COMBOBOX=no
5899 DEFAULT_wxUSE_CALCTRL=no
5900 DEFAULT_wxUSE_SPINBTN=no
5901 DEFAULT_wxUSE_SPINCTRL=no
5902 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
5903 DEFAULT_wxUSE_DRAGIMAGE=no
5904 DEFAULT_wxUSE_FINDREPLDLG=no
5905 DEFAULT_wxUSE_FONTDLG=no
5906 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5907 DEFAULT_wxUSE_NUMBERDLG=no
5908 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5909 DEFAULT_wxUSE_SASH=no
5910 DEFAULT_wxUSE_SPLITTER=no
5911 DEFAULT_wxUSE_WIZARDDLG=no
5912 DEFAULT_wxUSE_SPLITTER=no
5913 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
5914fi
5915
8284b0c5 5916
5005acfe
VZ
5917 enablestring=
5918 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
fe0895cf 5919echo "configure:5920: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5920 no_cache=0
5921 # Check whether --enable-accel or --disable-accel was given.
5922if test "${enable_accel+set}" = set; then
5923 enableval="$enable_accel"
a0b9e27f 5924
10f2d63a
VZ
5925 if test "$enableval" = yes; then
5926 ac_cv_use_accel='wxUSE_ACCEL=yes'
5927 else
5928 ac_cv_use_accel='wxUSE_ACCEL=no'
5929 fi
a0b9e27f 5930
10f2d63a 5931else
a0b9e27f 5932
10f2d63a
VZ
5933 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5934 if test "x$LINE" != x ; then
5935 eval "DEFAULT_$LINE"
5936 else
5937 no_cache=1
5938 fi
5939
5940 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5941
5942fi
10f2d63a
VZ
5943
5944
5945 eval "$ac_cv_use_accel"
5946 if test "$no_cache" != 1; then
5947 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5948 fi
5949
5950 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5951 echo "$ac_t""yes" 1>&6
10f2d63a 5952 else
a0b9e27f 5953 echo "$ac_t""no" 1>&6
10f2d63a 5954 fi
a0b9e27f 5955
10f2d63a 5956
5005acfe
VZ
5957 enablestring=
5958 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
fe0895cf 5959echo "configure:5960: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5960 no_cache=0
1e6feb95
VZ
5961 # Check whether --enable-button or --disable-button was given.
5962if test "${enable_button+set}" = set; then
5963 enableval="$enable_button"
a0b9e27f 5964
10f2d63a 5965 if test "$enableval" = yes; then
1e6feb95 5966 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5967 else
1e6feb95 5968 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5969 fi
a0b9e27f 5970
10f2d63a 5971else
a0b9e27f 5972
1e6feb95 5973 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
1e6feb95 5980 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5981
5982fi
10f2d63a
VZ
5983
5984
1e6feb95 5985 eval "$ac_cv_use_button"
10f2d63a 5986 if test "$no_cache" != 1; then
1e6feb95 5987 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5988 fi
5989
1e6feb95 5990 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5991 echo "$ac_t""yes" 1>&6
10f2d63a 5992 else
a0b9e27f 5993 echo "$ac_t""no" 1>&6
10f2d63a 5994 fi
a0b9e27f 5995
10f2d63a 5996
5005acfe
VZ
5997 enablestring=
5998 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
fe0895cf 5999echo "configure:6000: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
6000 no_cache=0
6001 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6002if test "${enable_bmpbutton+set}" = set; then
6003 enableval="$enable_bmpbutton"
a0b9e27f 6004
10f2d63a
VZ
6005 if test "$enableval" = yes; then
6006 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6007 else
6008 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6009 fi
a0b9e27f 6010
10f2d63a 6011else
a0b9e27f 6012
10f2d63a
VZ
6013 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6014 if test "x$LINE" != x ; then
6015 eval "DEFAULT_$LINE"
6016 else
6017 no_cache=1
6018 fi
6019
6020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
6021
6022fi
10f2d63a
VZ
6023
6024
6025 eval "$ac_cv_use_bmpbutton"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6031 echo "$ac_t""yes" 1>&6
10f2d63a 6032 else
a0b9e27f 6033 echo "$ac_t""no" 1>&6
10f2d63a 6034 fi
a0b9e27f 6035
10f2d63a 6036
5005acfe
VZ
6037 enablestring=
6038 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
fe0895cf 6039echo "configure:6040: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6040 no_cache=0
6041 # Check whether --enable-calendar or --disable-calendar was given.
6042if test "${enable_calendar+set}" = set; then
6043 enableval="$enable_calendar"
a0b9e27f 6044
1e6feb95
VZ
6045 if test "$enableval" = yes; then
6046 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6047 else
6048 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6049 fi
a0b9e27f 6050
1e6feb95 6051else
a0b9e27f 6052
1e6feb95
VZ
6053 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6061
6062fi
1e6feb95
VZ
6063
6064
6065 eval "$ac_cv_use_calendar"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6071 echo "$ac_t""yes" 1>&6
1e6feb95 6072 else
a0b9e27f 6073 echo "$ac_t""no" 1>&6
1e6feb95 6074 fi
a0b9e27f 6075
1e6feb95 6076
5005acfe
VZ
6077 enablestring=
6078 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
fe0895cf 6079echo "configure:6080: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6080 no_cache=0
6081 # Check whether --enable-caret or --disable-caret was given.
6082if test "${enable_caret+set}" = set; then
6083 enableval="$enable_caret"
a0b9e27f 6084
1e6feb95
VZ
6085 if test "$enableval" = yes; then
6086 ac_cv_use_caret='wxUSE_CARET=yes'
6087 else
6088 ac_cv_use_caret='wxUSE_CARET=no'
6089 fi
a0b9e27f 6090
1e6feb95 6091else
a0b9e27f 6092
1e6feb95
VZ
6093 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6101
6102fi
1e6feb95
VZ
6103
6104
6105 eval "$ac_cv_use_caret"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6111 echo "$ac_t""yes" 1>&6
1e6feb95 6112 else
a0b9e27f 6113 echo "$ac_t""no" 1>&6
1e6feb95 6114 fi
a0b9e27f 6115
1e6feb95 6116
5005acfe
VZ
6117 enablestring=
6118 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
fe0895cf 6119echo "configure:6120: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6120 no_cache=0
6121 # Check whether --enable-checkbox or --disable-checkbox was given.
6122if test "${enable_checkbox+set}" = set; then
6123 enableval="$enable_checkbox"
a0b9e27f 6124
10f2d63a
VZ
6125 if test "$enableval" = yes; then
6126 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6127 else
6128 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6129 fi
a0b9e27f 6130
10f2d63a 6131else
a0b9e27f 6132
10f2d63a
VZ
6133 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6141
6142fi
10f2d63a
VZ
6143
6144
6145 eval "$ac_cv_use_checkbox"
6146 if test "$no_cache" != 1; then
6147 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6148 fi
6149
6150 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6151 echo "$ac_t""yes" 1>&6
10f2d63a 6152 else
a0b9e27f 6153 echo "$ac_t""no" 1>&6
10f2d63a 6154 fi
a0b9e27f 6155
10f2d63a 6156
5005acfe
VZ
6157 enablestring=
6158 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
fe0895cf 6159echo "configure:6160: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6160 no_cache=0
6161 # Check whether --enable-checklst or --disable-checklst was given.
6162if test "${enable_checklst+set}" = set; then
6163 enableval="$enable_checklst"
a0b9e27f 6164
10f2d63a
VZ
6165 if test "$enableval" = yes; then
6166 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6167 else
6168 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6169 fi
a0b9e27f 6170
10f2d63a 6171else
a0b9e27f 6172
10f2d63a
VZ
6173 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6181
6182fi
10f2d63a
VZ
6183
6184
6185 eval "$ac_cv_use_checklst"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6191 echo "$ac_t""yes" 1>&6
10f2d63a 6192 else
a0b9e27f 6193 echo "$ac_t""no" 1>&6
10f2d63a 6194 fi
a0b9e27f 6195
10f2d63a 6196
5005acfe
VZ
6197 enablestring=
6198 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
fe0895cf 6199echo "configure:6200: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6200 no_cache=0
6201 # Check whether --enable-choice or --disable-choice was given.
6202if test "${enable_choice+set}" = set; then
6203 enableval="$enable_choice"
a0b9e27f 6204
10f2d63a
VZ
6205 if test "$enableval" = yes; then
6206 ac_cv_use_choice='wxUSE_CHOICE=yes'
6207 else
6208 ac_cv_use_choice='wxUSE_CHOICE=no'
6209 fi
a0b9e27f 6210
10f2d63a 6211else
a0b9e27f 6212
10f2d63a
VZ
6213 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6221
6222fi
10f2d63a
VZ
6223
6224
6225 eval "$ac_cv_use_choice"
6226 if test "$no_cache" != 1; then
6227 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6228 fi
6229
6230 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6231 echo "$ac_t""yes" 1>&6
10f2d63a 6232 else
a0b9e27f 6233 echo "$ac_t""no" 1>&6
10f2d63a 6234 fi
a0b9e27f 6235
10f2d63a 6236
5005acfe
VZ
6237 enablestring=
6238 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
fe0895cf 6239echo "configure:6240: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6240 no_cache=0
6241 # Check whether --enable-combobox or --disable-combobox was given.
6242if test "${enable_combobox+set}" = set; then
6243 enableval="$enable_combobox"
a0b9e27f 6244
10f2d63a
VZ
6245 if test "$enableval" = yes; then
6246 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6247 else
6248 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6249 fi
a0b9e27f 6250
10f2d63a 6251else
a0b9e27f 6252
10f2d63a
VZ
6253 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6254 if test "x$LINE" != x ; then
6255 eval "DEFAULT_$LINE"
6256 else
6257 no_cache=1
6258 fi
6259
6260 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6261
6262fi
10f2d63a
VZ
6263
6264
6265 eval "$ac_cv_use_combobox"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6271 echo "$ac_t""yes" 1>&6
10f2d63a 6272 else
a0b9e27f 6273 echo "$ac_t""no" 1>&6
10f2d63a 6274 fi
a0b9e27f 6275
10f2d63a 6276
da494b40
MB
6277 enablestring=
6278 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
fe0895cf 6279echo "configure:6280: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6280 no_cache=0
6281 # Check whether --enable-display or --disable-display was given.
6282if test "${enable_display+set}" = set; then
6283 enableval="$enable_display"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_display='wxUSE_DISPLAY=yes'
6287 else
6288 ac_cv_use_display='wxUSE_DISPLAY=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6301
6302fi
6303
6304
6305 eval "$ac_cv_use_display"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_DISPLAY" = yes; then
6311 echo "$ac_t""yes" 1>&6
6312 else
6313 echo "$ac_t""no" 1>&6
6314 fi
6315
6316
5005acfe
VZ
6317 enablestring=
6318 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
fe0895cf 6319echo "configure:6320: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6320 no_cache=0
6321 # Check whether --enable-gauge or --disable-gauge was given.
6322if test "${enable_gauge+set}" = set; then
6323 enableval="$enable_gauge"
a0b9e27f 6324
10f2d63a
VZ
6325 if test "$enableval" = yes; then
6326 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6327 else
6328 ac_cv_use_gauge='wxUSE_GAUGE=no'
6329 fi
a0b9e27f 6330
10f2d63a 6331else
a0b9e27f 6332
10f2d63a
VZ
6333 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6341
6342fi
10f2d63a
VZ
6343
6344
6345 eval "$ac_cv_use_gauge"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6351 echo "$ac_t""yes" 1>&6
10f2d63a 6352 else
a0b9e27f 6353 echo "$ac_t""no" 1>&6
10f2d63a 6354 fi
a0b9e27f 6355
10f2d63a 6356
5005acfe
VZ
6357 enablestring=
6358 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
fe0895cf 6359echo "configure:6360: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6360 no_cache=0
6361 # Check whether --enable-grid or --disable-grid was given.
6362if test "${enable_grid+set}" = set; then
6363 enableval="$enable_grid"
a0b9e27f 6364
10f2d63a
VZ
6365 if test "$enableval" = yes; then
6366 ac_cv_use_grid='wxUSE_GRID=yes'
6367 else
6368 ac_cv_use_grid='wxUSE_GRID=no'
6369 fi
a0b9e27f 6370
10f2d63a 6371else
a0b9e27f 6372
10f2d63a
VZ
6373 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6374 if test "x$LINE" != x ; then
6375 eval "DEFAULT_$LINE"
6376 else
6377 no_cache=1
6378 fi
6379
6380 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6381
6382fi
10f2d63a
VZ
6383
6384
6385 eval "$ac_cv_use_grid"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6391 echo "$ac_t""yes" 1>&6
10f2d63a 6392 else
a0b9e27f 6393 echo "$ac_t""no" 1>&6
10f2d63a 6394 fi
a0b9e27f 6395
10f2d63a 6396
5005acfe
VZ
6397 enablestring=
6398 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
fe0895cf 6399echo "configure:6400: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6400 no_cache=0
6401 # Check whether --enable-imaglist or --disable-imaglist was given.
6402if test "${enable_imaglist+set}" = set; then
6403 enableval="$enable_imaglist"
a0b9e27f 6404
10f2d63a
VZ
6405 if test "$enableval" = yes; then
6406 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6407 else
6408 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6409 fi
a0b9e27f 6410
10f2d63a 6411else
a0b9e27f 6412
10f2d63a
VZ
6413 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
6420 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6421
6422fi
10f2d63a
VZ
6423
6424
6425 eval "$ac_cv_use_imaglist"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6431 echo "$ac_t""yes" 1>&6
10f2d63a 6432 else
a0b9e27f 6433 echo "$ac_t""no" 1>&6
10f2d63a 6434 fi
a0b9e27f 6435
10f2d63a 6436
5005acfe
VZ
6437 enablestring=
6438 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
fe0895cf 6439echo "configure:6440: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6440 no_cache=0
6441 # Check whether --enable-listbox or --disable-listbox was given.
6442if test "${enable_listbox+set}" = set; then
6443 enableval="$enable_listbox"
a0b9e27f 6444
10f2d63a
VZ
6445 if test "$enableval" = yes; then
6446 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6447 else
6448 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6449 fi
a0b9e27f 6450
10f2d63a 6451else
a0b9e27f 6452
10f2d63a
VZ
6453 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6461
6462fi
10f2d63a
VZ
6463
6464
6465 eval "$ac_cv_use_listbox"
6466 if test "$no_cache" != 1; then
6467 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6468 fi
6469
6470 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6471 echo "$ac_t""yes" 1>&6
10f2d63a 6472 else
a0b9e27f 6473 echo "$ac_t""no" 1>&6
10f2d63a 6474 fi
a0b9e27f 6475
10f2d63a 6476
5005acfe
VZ
6477 enablestring=
6478 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
fe0895cf 6479echo "configure:6480: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6480 no_cache=0
6481 # Check whether --enable-listctrl or --disable-listctrl was given.
6482if test "${enable_listctrl+set}" = set; then
6483 enableval="$enable_listctrl"
a0b9e27f 6484
10f2d63a
VZ
6485 if test "$enableval" = yes; then
6486 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6487 else
6488 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6489 fi
a0b9e27f 6490
10f2d63a 6491else
a0b9e27f 6492
10f2d63a
VZ
6493 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6494 if test "x$LINE" != x ; then
6495 eval "DEFAULT_$LINE"
6496 else
6497 no_cache=1
6498 fi
6499
6500 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6501
6502fi
10f2d63a
VZ
6503
6504
6505 eval "$ac_cv_use_listctrl"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6511 echo "$ac_t""yes" 1>&6
10f2d63a 6512 else
a0b9e27f 6513 echo "$ac_t""no" 1>&6
10f2d63a 6514 fi
a0b9e27f 6515
10f2d63a 6516
5005acfe
VZ
6517 enablestring=
6518 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
fe0895cf 6519echo "configure:6520: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6520 no_cache=0
6521 # Check whether --enable-notebook or --disable-notebook was given.
6522if test "${enable_notebook+set}" = set; then
6523 enableval="$enable_notebook"
a0b9e27f 6524
10f2d63a
VZ
6525 if test "$enableval" = yes; then
6526 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6527 else
6528 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6529 fi
a0b9e27f 6530
10f2d63a 6531else
a0b9e27f 6532
10f2d63a
VZ
6533 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6541
6542fi
10f2d63a
VZ
6543
6544
6545 eval "$ac_cv_use_notebook"
6546 if test "$no_cache" != 1; then
6547 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6548 fi
6549
6550 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6551 echo "$ac_t""yes" 1>&6
10f2d63a 6552 else
a0b9e27f 6553 echo "$ac_t""no" 1>&6
10f2d63a 6554 fi
a0b9e27f 6555
10f2d63a 6556
5005acfe
VZ
6557 enablestring=
6558 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
fe0895cf 6559echo "configure:6560: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6560 no_cache=0
6561 # Check whether --enable-radiobox or --disable-radiobox was given.
6562if test "${enable_radiobox+set}" = set; then
6563 enableval="$enable_radiobox"
a0b9e27f 6564
10f2d63a
VZ
6565 if test "$enableval" = yes; then
6566 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6567 else
6568 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6569 fi
a0b9e27f 6570
10f2d63a 6571else
a0b9e27f 6572
10f2d63a
VZ
6573 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6574 if test "x$LINE" != x ; then
6575 eval "DEFAULT_$LINE"
6576 else
6577 no_cache=1
6578 fi
6579
6580 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6581
6582fi
10f2d63a
VZ
6583
6584
6585 eval "$ac_cv_use_radiobox"
6586 if test "$no_cache" != 1; then
6587 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6588 fi
6589
6590 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6591 echo "$ac_t""yes" 1>&6
10f2d63a 6592 else
a0b9e27f 6593 echo "$ac_t""no" 1>&6
10f2d63a 6594 fi
a0b9e27f 6595
10f2d63a 6596
5005acfe
VZ
6597 enablestring=
6598 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
fe0895cf 6599echo "configure:6600: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6600 no_cache=0
6601 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6602if test "${enable_radiobtn+set}" = set; then
6603 enableval="$enable_radiobtn"
a0b9e27f 6604
10f2d63a
VZ
6605 if test "$enableval" = yes; then
6606 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6607 else
6608 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6609 fi
a0b9e27f 6610
10f2d63a 6611else
a0b9e27f 6612
10f2d63a
VZ
6613 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6614 if test "x$LINE" != x ; then
6615 eval "DEFAULT_$LINE"
6616 else
6617 no_cache=1
6618 fi
6619
6620 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6621
6622fi
10f2d63a
VZ
6623
6624
6625 eval "$ac_cv_use_radiobtn"
6626 if test "$no_cache" != 1; then
6627 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6628 fi
6629
6630 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6631 echo "$ac_t""yes" 1>&6
10f2d63a 6632 else
a0b9e27f 6633 echo "$ac_t""no" 1>&6
10f2d63a 6634 fi
a0b9e27f 6635
10f2d63a 6636
5005acfe
VZ
6637 enablestring=
6638 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
fe0895cf 6639echo "configure:6640: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6640 no_cache=0
6641 # Check whether --enable-sash or --disable-sash was given.
6642if test "${enable_sash+set}" = set; then
6643 enableval="$enable_sash"
a0b9e27f 6644
10f2d63a
VZ
6645 if test "$enableval" = yes; then
6646 ac_cv_use_sash='wxUSE_SASH=yes'
6647 else
6648 ac_cv_use_sash='wxUSE_SASH=no'
6649 fi
a0b9e27f 6650
10f2d63a 6651else
a0b9e27f 6652
10f2d63a
VZ
6653 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6661
6662fi
10f2d63a
VZ
6663
6664
6665 eval "$ac_cv_use_sash"
6666 if test "$no_cache" != 1; then
6667 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6668 fi
6669
6670 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6671 echo "$ac_t""yes" 1>&6
10f2d63a 6672 else
a0b9e27f 6673 echo "$ac_t""no" 1>&6
10f2d63a 6674 fi
a0b9e27f 6675
10f2d63a 6676
5005acfe
VZ
6677 enablestring=
6678 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
fe0895cf 6679echo "configure:6680: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6680 no_cache=0
6681 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6682if test "${enable_scrollbar+set}" = set; then
6683 enableval="$enable_scrollbar"
a0b9e27f 6684
10f2d63a
VZ
6685 if test "$enableval" = yes; then
6686 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6687 else
6688 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6689 fi
a0b9e27f 6690
10f2d63a 6691else
a0b9e27f 6692
10f2d63a
VZ
6693 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6701
6702fi
10f2d63a
VZ
6703
6704
6705 eval "$ac_cv_use_scrollbar"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6711 echo "$ac_t""yes" 1>&6
10f2d63a 6712 else
a0b9e27f 6713 echo "$ac_t""no" 1>&6
10f2d63a 6714 fi
a0b9e27f 6715
10f2d63a 6716
5005acfe
VZ
6717 enablestring=
6718 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
fe0895cf 6719echo "configure:6720: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6720 no_cache=0
6721 # Check whether --enable-slider or --disable-slider was given.
6722if test "${enable_slider+set}" = set; then
6723 enableval="$enable_slider"
a0b9e27f 6724
10f2d63a
VZ
6725 if test "$enableval" = yes; then
6726 ac_cv_use_slider='wxUSE_SLIDER=yes'
6727 else
6728 ac_cv_use_slider='wxUSE_SLIDER=no'
6729 fi
a0b9e27f 6730
10f2d63a 6731else
a0b9e27f 6732
10f2d63a
VZ
6733 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6741
6742fi
10f2d63a
VZ
6743
6744
6745 eval "$ac_cv_use_slider"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6751 echo "$ac_t""yes" 1>&6
10f2d63a 6752 else
a0b9e27f 6753 echo "$ac_t""no" 1>&6
10f2d63a 6754 fi
a0b9e27f 6755
10f2d63a 6756
5005acfe
VZ
6757 enablestring=
6758 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
fe0895cf 6759echo "configure:6760: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6760 no_cache=0
6761 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6762if test "${enable_spinbtn+set}" = set; then
6763 enableval="$enable_spinbtn"
a0b9e27f 6764
10f2d63a
VZ
6765 if test "$enableval" = yes; then
6766 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6767 else
6768 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6769 fi
a0b9e27f 6770
10f2d63a 6771else
a0b9e27f 6772
10f2d63a
VZ
6773 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6774 if test "x$LINE" != x ; then
6775 eval "DEFAULT_$LINE"
6776 else
6777 no_cache=1
6778 fi
6779
6780 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6781
6782fi
10f2d63a
VZ
6783
6784
6785 eval "$ac_cv_use_spinbtn"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6788 fi
6789
6790 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6791 echo "$ac_t""yes" 1>&6
10f2d63a 6792 else
a0b9e27f 6793 echo "$ac_t""no" 1>&6
10f2d63a 6794 fi
a0b9e27f 6795
10f2d63a 6796
5005acfe
VZ
6797 enablestring=
6798 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
fe0895cf 6799echo "configure:6800: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6800 no_cache=0
6801 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6802if test "${enable_spinctrl+set}" = set; then
6803 enableval="$enable_spinctrl"
a0b9e27f 6804
56cfaa52
RR
6805 if test "$enableval" = yes; then
6806 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6807 else
6808 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6809 fi
a0b9e27f 6810
56cfaa52 6811else
a0b9e27f 6812
56cfaa52
RR
6813 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6821
6822fi
56cfaa52
RR
6823
6824
6825 eval "$ac_cv_use_spinctrl"
6826 if test "$no_cache" != 1; then
6827 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6828 fi
6829
6830 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6831 echo "$ac_t""yes" 1>&6
56cfaa52 6832 else
a0b9e27f 6833 echo "$ac_t""no" 1>&6
56cfaa52 6834 fi
a0b9e27f 6835
56cfaa52 6836
5005acfe
VZ
6837 enablestring=
6838 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
fe0895cf 6839echo "configure:6840: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6840 no_cache=0
6841 # Check whether --enable-splitter or --disable-splitter was given.
6842if test "${enable_splitter+set}" = set; then
6843 enableval="$enable_splitter"
a0b9e27f 6844
10f2d63a
VZ
6845 if test "$enableval" = yes; then
6846 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6847 else
6848 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6849 fi
a0b9e27f 6850
10f2d63a 6851else
a0b9e27f 6852
10f2d63a
VZ
6853 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6861
6862fi
10f2d63a
VZ
6863
6864
6865 eval "$ac_cv_use_splitter"
6866 if test "$no_cache" != 1; then
6867 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6868 fi
6869
6870 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6871 echo "$ac_t""yes" 1>&6
10f2d63a 6872 else
a0b9e27f 6873 echo "$ac_t""no" 1>&6
10f2d63a 6874 fi
a0b9e27f 6875
10f2d63a 6876
5005acfe
VZ
6877 enablestring=
6878 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
fe0895cf 6879echo "configure:6880: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6880 no_cache=0
6881 # Check whether --enable-statbmp or --disable-statbmp was given.
6882if test "${enable_statbmp+set}" = set; then
6883 enableval="$enable_statbmp"
a0b9e27f 6884
10f2d63a
VZ
6885 if test "$enableval" = yes; then
6886 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6887 else
6888 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6889 fi
a0b9e27f 6890
10f2d63a 6891else
a0b9e27f 6892
10f2d63a
VZ
6893 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6901
6902fi
10f2d63a
VZ
6903
6904
6905 eval "$ac_cv_use_statbmp"
6906 if test "$no_cache" != 1; then
6907 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6908 fi
6909
6910 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6911 echo "$ac_t""yes" 1>&6
10f2d63a 6912 else
a0b9e27f 6913 echo "$ac_t""no" 1>&6
10f2d63a 6914 fi
a0b9e27f 6915
10f2d63a 6916
5005acfe
VZ
6917 enablestring=
6918 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
fe0895cf 6919echo "configure:6920: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6920 no_cache=0
6921 # Check whether --enable-statbox or --disable-statbox was given.
6922if test "${enable_statbox+set}" = set; then
6923 enableval="$enable_statbox"
a0b9e27f 6924
10f2d63a
VZ
6925 if test "$enableval" = yes; then
6926 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6927 else
6928 ac_cv_use_statbox='wxUSE_STATBOX=no'
6929 fi
a0b9e27f 6930
10f2d63a 6931else
a0b9e27f 6932
10f2d63a
VZ
6933 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6941
6942fi
10f2d63a
VZ
6943
6944
6945 eval "$ac_cv_use_statbox"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6951 echo "$ac_t""yes" 1>&6
10f2d63a 6952 else
a0b9e27f 6953 echo "$ac_t""no" 1>&6
10f2d63a 6954 fi
a0b9e27f 6955
10f2d63a 6956
5005acfe
VZ
6957 enablestring=
6958 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
fe0895cf 6959echo "configure:6960: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6960 no_cache=0
6961 # Check whether --enable-statline or --disable-statline was given.
6962if test "${enable_statline+set}" = set; then
6963 enableval="$enable_statline"
a0b9e27f 6964
10f2d63a
VZ
6965 if test "$enableval" = yes; then
6966 ac_cv_use_statline='wxUSE_STATLINE=yes'
6967 else
6968 ac_cv_use_statline='wxUSE_STATLINE=no'
6969 fi
a0b9e27f 6970
10f2d63a 6971else
a0b9e27f 6972
10f2d63a
VZ
6973 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6981
6982fi
10f2d63a
VZ
6983
6984
6985 eval "$ac_cv_use_statline"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6991 echo "$ac_t""yes" 1>&6
10f2d63a 6992 else
a0b9e27f 6993 echo "$ac_t""no" 1>&6
10f2d63a 6994 fi
a0b9e27f 6995
10f2d63a 6996
5005acfe
VZ
6997 enablestring=
6998 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
fe0895cf 6999echo "configure:7000: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7000 no_cache=0
7001 # Check whether --enable-stattext or --disable-stattext was given.
7002if test "${enable_stattext+set}" = set; then
7003 enableval="$enable_stattext"
a0b9e27f 7004
1e6feb95
VZ
7005 if test "$enableval" = yes; then
7006 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7007 else
7008 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7009 fi
a0b9e27f 7010
1e6feb95 7011else
a0b9e27f 7012
1e6feb95
VZ
7013 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7014 if test "x$LINE" != x ; then
7015 eval "DEFAULT_$LINE"
7016 else
7017 no_cache=1
7018 fi
7019
7020 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7021
7022fi
1e6feb95
VZ
7023
7024
7025 eval "$ac_cv_use_stattext"
7026 if test "$no_cache" != 1; then
7027 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7028 fi
7029
7030 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7031 echo "$ac_t""yes" 1>&6
1e6feb95 7032 else
a0b9e27f 7033 echo "$ac_t""no" 1>&6
1e6feb95 7034 fi
a0b9e27f 7035
1e6feb95 7036
5005acfe
VZ
7037 enablestring=
7038 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
fe0895cf 7039echo "configure:7040: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7040 no_cache=0
7041 # Check whether --enable-statusbar or --disable-statusbar was given.
7042if test "${enable_statusbar+set}" = set; then
7043 enableval="$enable_statusbar"
a0b9e27f 7044
10f2d63a
VZ
7045 if test "$enableval" = yes; then
7046 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7047 else
7048 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7049 fi
a0b9e27f 7050
10f2d63a 7051else
a0b9e27f 7052
10f2d63a
VZ
7053 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7054 if test "x$LINE" != x ; then
7055 eval "DEFAULT_$LINE"
7056 else
7057 no_cache=1
7058 fi
7059
7060 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7061
7062fi
10f2d63a
VZ
7063
7064
7065 eval "$ac_cv_use_statusbar"
7066 if test "$no_cache" != 1; then
7067 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7068 fi
7069
7070 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7071 echo "$ac_t""yes" 1>&6
10f2d63a 7072 else
a0b9e27f 7073 echo "$ac_t""no" 1>&6
10f2d63a 7074 fi
a0b9e27f 7075
10f2d63a 7076
5005acfe
VZ
7077 enablestring=
7078 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
fe0895cf 7079echo "configure:7080: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7080 no_cache=0
7081 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7082if test "${enable_tabdialog+set}" = set; then
7083 enableval="$enable_tabdialog"
a0b9e27f 7084
10f2d63a
VZ
7085 if test "$enableval" = yes; then
7086 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7087 else
7088 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7089 fi
a0b9e27f 7090
10f2d63a 7091else
a0b9e27f 7092
10f2d63a
VZ
7093 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7101
7102fi
10f2d63a
VZ
7103
7104
7105 eval "$ac_cv_use_tabdialog"
7106 if test "$no_cache" != 1; then
7107 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7108 fi
7109
7110 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7111 echo "$ac_t""yes" 1>&6
10f2d63a 7112 else
a0b9e27f 7113 echo "$ac_t""no" 1>&6
10f2d63a 7114 fi
a0b9e27f 7115
10f2d63a 7116
5005acfe
VZ
7117 enablestring=
7118 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
fe0895cf 7119echo "configure:7120: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7120 no_cache=0
7121 # Check whether --enable-textctrl or --disable-textctrl was given.
7122if test "${enable_textctrl+set}" = set; then
7123 enableval="$enable_textctrl"
a0b9e27f 7124
1e6feb95
VZ
7125 if test "$enableval" = yes; then
7126 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7127 else
7128 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7129 fi
a0b9e27f 7130
1e6feb95 7131else
a0b9e27f 7132
1e6feb95
VZ
7133 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7141
7142fi
1e6feb95
VZ
7143
7144
7145 eval "$ac_cv_use_textctrl"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7151 echo "$ac_t""yes" 1>&6
1e6feb95 7152 else
a0b9e27f 7153 echo "$ac_t""no" 1>&6
1e6feb95 7154 fi
a0b9e27f 7155
1e6feb95 7156
5005acfe
VZ
7157 enablestring=
7158 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
fe0895cf 7159echo "configure:7160: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7160 no_cache=0
7161 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7162if test "${enable_togglebtn+set}" = set; then
7163 enableval="$enable_togglebtn"
a0b9e27f 7164
1db8dc4a
VZ
7165 if test "$enableval" = yes; then
7166 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7167 else
7168 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7169 fi
a0b9e27f 7170
1db8dc4a 7171else
a0b9e27f 7172
1db8dc4a
VZ
7173 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7181
7182fi
1db8dc4a
VZ
7183
7184
7185 eval "$ac_cv_use_togglebtn"
7186 if test "$no_cache" != 1; then
7187 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7188 fi
7189
7190 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7191 echo "$ac_t""yes" 1>&6
1db8dc4a 7192 else
a0b9e27f 7193 echo "$ac_t""no" 1>&6
1db8dc4a 7194 fi
a0b9e27f 7195
1db8dc4a 7196
5005acfe
VZ
7197 enablestring=
7198 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
fe0895cf 7199echo "configure:7200: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7200 no_cache=0
7201 # Check whether --enable-toolbar or --disable-toolbar was given.
7202if test "${enable_toolbar+set}" = set; then
7203 enableval="$enable_toolbar"
a0b9e27f 7204
10f2d63a
VZ
7205 if test "$enableval" = yes; then
7206 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7207 else
7208 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7209 fi
a0b9e27f 7210
10f2d63a 7211else
a0b9e27f 7212
10f2d63a
VZ
7213 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7221
7222fi
10f2d63a
VZ
7223
7224
7225 eval "$ac_cv_use_toolbar"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7231 echo "$ac_t""yes" 1>&6
10f2d63a 7232 else
a0b9e27f 7233 echo "$ac_t""no" 1>&6
10f2d63a 7234 fi
a0b9e27f 7235
10f2d63a 7236
5005acfe
VZ
7237 enablestring=
7238 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
fe0895cf 7239echo "configure:7240: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7240 no_cache=0
7241 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7242if test "${enable_tbarnative+set}" = set; then
7243 enableval="$enable_tbarnative"
a0b9e27f 7244
360d6699
VZ
7245 if test "$enableval" = yes; then
7246 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7247 else
7248 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7249 fi
a0b9e27f 7250
360d6699 7251else
a0b9e27f 7252
360d6699
VZ
7253 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7261
7262fi
360d6699
VZ
7263
7264
7265 eval "$ac_cv_use_tbarnative"
7266 if test "$no_cache" != 1; then
7267 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7268 fi
7269
7270 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7271 echo "$ac_t""yes" 1>&6
360d6699 7272 else
a0b9e27f 7273 echo "$ac_t""no" 1>&6
360d6699 7274 fi
a0b9e27f 7275
360d6699 7276
5005acfe
VZ
7277 enablestring=
7278 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
fe0895cf 7279echo "configure:7280: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7280 no_cache=0
7281 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7282if test "${enable_tbarsmpl+set}" = set; then
7283 enableval="$enable_tbarsmpl"
a0b9e27f 7284
360d6699
VZ
7285 if test "$enableval" = yes; then
7286 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7287 else
7288 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7289 fi
a0b9e27f 7290
360d6699 7291else
a0b9e27f 7292
360d6699
VZ
7293 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7301
7302fi
360d6699
VZ
7303
7304
7305 eval "$ac_cv_use_tbarsmpl"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7311 echo "$ac_t""yes" 1>&6
360d6699 7312 else
a0b9e27f 7313 echo "$ac_t""no" 1>&6
360d6699 7314 fi
a0b9e27f 7315
360d6699 7316
5005acfe
VZ
7317 enablestring=
7318 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
fe0895cf 7319echo "configure:7320: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7320 no_cache=0
7321 # Check whether --enable-treectrl or --disable-treectrl was given.
7322if test "${enable_treectrl+set}" = set; then
7323 enableval="$enable_treectrl"
a0b9e27f 7324
10f2d63a
VZ
7325 if test "$enableval" = yes; then
7326 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7327 else
7328 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7329 fi
a0b9e27f 7330
10f2d63a 7331else
a0b9e27f 7332
10f2d63a
VZ
7333 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7341
7342fi
10f2d63a
VZ
7343
7344
1e6feb95
VZ
7345 eval "$ac_cv_use_treectrl"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7351 echo "$ac_t""yes" 1>&6
1e6feb95 7352 else
a0b9e27f 7353 echo "$ac_t""no" 1>&6
1e6feb95 7354 fi
a0b9e27f 7355
1e6feb95 7356
5005acfe
VZ
7357 enablestring=
7358 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
fe0895cf 7359echo "configure:7360: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7360 no_cache=0
7361 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7362if test "${enable_tipwindow+set}" = set; then
7363 enableval="$enable_tipwindow"
a0b9e27f 7364
9926e4a4
VZ
7365 if test "$enableval" = yes; then
7366 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7367 else
7368 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7369 fi
a0b9e27f 7370
9926e4a4 7371else
a0b9e27f 7372
9926e4a4
VZ
7373 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7381
7382fi
9926e4a4
VZ
7383
7384
7385 eval "$ac_cv_use_tipwindow"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7391 echo "$ac_t""yes" 1>&6
9926e4a4 7392 else
a0b9e27f 7393 echo "$ac_t""no" 1>&6
9926e4a4 7394 fi
a0b9e27f 7395
9926e4a4 7396
5005acfe
VZ
7397 enablestring=
7398 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
fe0895cf 7399echo "configure:7400: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7400 no_cache=0
7401 # Check whether --enable-popupwin or --disable-popupwin was given.
7402if test "${enable_popupwin+set}" = set; then
7403 enableval="$enable_popupwin"
a0b9e27f 7404
9f41d601
RR
7405 if test "$enableval" = yes; then
7406 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7407 else
7408 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7409 fi
a0b9e27f 7410
9f41d601 7411else
a0b9e27f 7412
9f41d601
RR
7413 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7421
7422fi
9f41d601
RR
7423
7424
7425 eval "$ac_cv_use_popupwin"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7431 echo "$ac_t""yes" 1>&6
9f41d601 7432 else
a0b9e27f 7433 echo "$ac_t""no" 1>&6
9f41d601 7434 fi
a0b9e27f 7435
52127426 7436
8284b0c5
MB
7437
7438
5005acfe
VZ
7439 enablestring=
7440 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
fe0895cf 7441echo "configure:7442: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7442 no_cache=0
7443 # Check whether --enable-commondlg or --disable-commondlg was given.
7444if test "${enable_commondlg+set}" = set; then
7445 enableval="$enable_commondlg"
a0b9e27f 7446
1e6feb95
VZ
7447 if test "$enableval" = yes; then
7448 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7449 else
7450 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7451 fi
a0b9e27f 7452
1e6feb95 7453else
a0b9e27f 7454
1e6feb95
VZ
7455 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7463
7464fi
1e6feb95
VZ
7465
7466
7467 eval "$ac_cv_use_commondlg"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7473 echo "$ac_t""yes" 1>&6
1e6feb95 7474 else
a0b9e27f 7475 echo "$ac_t""no" 1>&6
1e6feb95 7476 fi
a0b9e27f 7477
1e6feb95 7478
5005acfe
VZ
7479 enablestring=
7480 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
fe0895cf 7481echo "configure:7482: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7482 no_cache=0
7483 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7484if test "${enable_choicedlg+set}" = set; then
7485 enableval="$enable_choicedlg"
a0b9e27f 7486
1e6feb95
VZ
7487 if test "$enableval" = yes; then
7488 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7489 else
7490 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7491 fi
a0b9e27f 7492
1e6feb95 7493else
a0b9e27f 7494
1e6feb95
VZ
7495 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7496 if test "x$LINE" != x ; then
7497 eval "DEFAULT_$LINE"
7498 else
7499 no_cache=1
7500 fi
7501
7502 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7503
7504fi
1e6feb95
VZ
7505
7506
7507 eval "$ac_cv_use_choicedlg"
7508 if test "$no_cache" != 1; then
7509 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7510 fi
7511
7512 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7513 echo "$ac_t""yes" 1>&6
1e6feb95 7514 else
a0b9e27f 7515 echo "$ac_t""no" 1>&6
1e6feb95 7516 fi
a0b9e27f 7517
1e6feb95 7518
5005acfe
VZ
7519 enablestring=
7520 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
fe0895cf 7521echo "configure:7522: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7522 no_cache=0
7523 # Check whether --enable-coldlg or --disable-coldlg was given.
7524if test "${enable_coldlg+set}" = set; then
7525 enableval="$enable_coldlg"
a0b9e27f 7526
1e6feb95
VZ
7527 if test "$enableval" = yes; then
7528 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7529 else
7530 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7531 fi
a0b9e27f 7532
1e6feb95 7533else
a0b9e27f 7534
1e6feb95
VZ
7535 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7543
7544fi
1e6feb95
VZ
7545
7546
7547 eval "$ac_cv_use_coldlg"
7548 if test "$no_cache" != 1; then
7549 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7550 fi
7551
7552 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7553 echo "$ac_t""yes" 1>&6
1e6feb95 7554 else
a0b9e27f 7555 echo "$ac_t""no" 1>&6
1e6feb95 7556 fi
a0b9e27f 7557
1e6feb95 7558
5005acfe
VZ
7559 enablestring=
7560 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
fe0895cf 7561echo "configure:7562: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7562 no_cache=0
7563 # Check whether --enable-filedlg or --disable-filedlg was given.
7564if test "${enable_filedlg+set}" = set; then
7565 enableval="$enable_filedlg"
a0b9e27f 7566
1e6feb95
VZ
7567 if test "$enableval" = yes; then
7568 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7569 else
7570 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7571 fi
a0b9e27f 7572
1e6feb95 7573else
a0b9e27f 7574
1e6feb95
VZ
7575 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7583
7584fi
1e6feb95
VZ
7585
7586
7587 eval "$ac_cv_use_filedlg"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7593 echo "$ac_t""yes" 1>&6
1e6feb95 7594 else
a0b9e27f 7595 echo "$ac_t""no" 1>&6
1e6feb95 7596 fi
a0b9e27f 7597
1e6feb95 7598
5005acfe
VZ
7599 enablestring=
7600 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
fe0895cf 7601echo "configure:7602: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7602 no_cache=0
69d27ff7
MB
7603 # Check whether --enable-finddlg or --disable-finddlg was given.
7604if test "${enable_finddlg+set}" = set; then
7605 enableval="$enable_finddlg"
a0b9e27f 7606
8db37e06 7607 if test "$enableval" = yes; then
69d27ff7 7608 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7609 else
69d27ff7 7610 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7611 fi
a0b9e27f 7612
8db37e06 7613else
a0b9e27f 7614
8db37e06
VZ
7615 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
69d27ff7 7622 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7623
7624fi
8db37e06
VZ
7625
7626
69d27ff7 7627 eval "$ac_cv_use_finddlg"
8db37e06 7628 if test "$no_cache" != 1; then
69d27ff7 7629 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7630 fi
7631
7632 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7633 echo "$ac_t""yes" 1>&6
8db37e06 7634 else
a0b9e27f 7635 echo "$ac_t""no" 1>&6
8db37e06 7636 fi
a0b9e27f 7637
8db37e06 7638
5005acfe
VZ
7639 enablestring=
7640 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
fe0895cf 7641echo "configure:7642: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7642 no_cache=0
7643 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7644if test "${enable_fontdlg+set}" = set; then
7645 enableval="$enable_fontdlg"
a0b9e27f 7646
1e6feb95
VZ
7647 if test "$enableval" = yes; then
7648 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7649 else
7650 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7651 fi
a0b9e27f 7652
1e6feb95 7653else
a0b9e27f 7654
1e6feb95
VZ
7655 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7656 if test "x$LINE" != x ; then
7657 eval "DEFAULT_$LINE"
7658 else
7659 no_cache=1
7660 fi
7661
7662 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7663
7664fi
1e6feb95
VZ
7665
7666
7667 eval "$ac_cv_use_fontdlg"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7673 echo "$ac_t""yes" 1>&6
1e6feb95 7674 else
a0b9e27f 7675 echo "$ac_t""no" 1>&6
1e6feb95 7676 fi
a0b9e27f 7677
1e6feb95 7678
5005acfe
VZ
7679 enablestring=
7680 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
fe0895cf 7681echo "configure:7682: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7682 no_cache=0
7683 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7684if test "${enable_dirdlg+set}" = set; then
7685 enableval="$enable_dirdlg"
a0b9e27f 7686
1e6feb95
VZ
7687 if test "$enableval" = yes; then
7688 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7689 else
7690 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7691 fi
a0b9e27f 7692
1e6feb95 7693else
a0b9e27f 7694
1e6feb95
VZ
7695 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
7702 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7703
7704fi
1e6feb95
VZ
7705
7706
7707 eval "$ac_cv_use_dirdlg"
10f2d63a 7708 if test "$no_cache" != 1; then
1e6feb95 7709 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7710 fi
7711
1e6feb95 7712 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7713 echo "$ac_t""yes" 1>&6
10f2d63a 7714 else
a0b9e27f 7715 echo "$ac_t""no" 1>&6
10f2d63a 7716 fi
a0b9e27f 7717
698dcdb6 7718
5005acfe
VZ
7719 enablestring=
7720 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
fe0895cf 7721echo "configure:7722: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7722 no_cache=0
1e6feb95
VZ
7723 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7724if test "${enable_msgdlg+set}" = set; then
7725 enableval="$enable_msgdlg"
a0b9e27f 7726
10f2d63a 7727 if test "$enableval" = yes; then
1e6feb95 7728 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7729 else
1e6feb95 7730 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7731 fi
a0b9e27f 7732
10f2d63a 7733else
a0b9e27f 7734
1e6feb95 7735 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
1e6feb95 7742 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7743
7744fi
10f2d63a
VZ
7745
7746
1e6feb95 7747 eval "$ac_cv_use_msgdlg"
10f2d63a 7748 if test "$no_cache" != 1; then
1e6feb95 7749 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7750 fi
7751
1e6feb95 7752 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7753 echo "$ac_t""yes" 1>&6
10f2d63a 7754 else
a0b9e27f 7755 echo "$ac_t""no" 1>&6
10f2d63a 7756 fi
a0b9e27f 7757
10f2d63a 7758
5005acfe
VZ
7759 enablestring=
7760 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
fe0895cf 7761echo "configure:7762: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7762 no_cache=0
1e6feb95
VZ
7763 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7764if test "${enable_numberdlg+set}" = set; then
7765 enableval="$enable_numberdlg"
a0b9e27f 7766
10f2d63a 7767 if test "$enableval" = yes; then
1e6feb95 7768 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7769 else
1e6feb95 7770 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7771 fi
a0b9e27f 7772
10f2d63a 7773else
a0b9e27f 7774
1e6feb95 7775 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7776 if test "x$LINE" != x ; then
7777 eval "DEFAULT_$LINE"
7778 else
7779 no_cache=1
7780 fi
7781
1e6feb95 7782 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7783
7784fi
10f2d63a
VZ
7785
7786
1e6feb95 7787 eval "$ac_cv_use_numberdlg"
10f2d63a 7788 if test "$no_cache" != 1; then
1e6feb95 7789 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7790 fi
7791
1e6feb95 7792 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7793 echo "$ac_t""yes" 1>&6
10f2d63a 7794 else
a0b9e27f 7795 echo "$ac_t""no" 1>&6
10f2d63a 7796 fi
a0b9e27f 7797
10f2d63a 7798
5005acfe
VZ
7799 enablestring=
7800 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
fe0895cf 7801echo "configure:7802: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7802 no_cache=0
7803 # Check whether --enable-splash or --disable-splash was given.
7804if test "${enable_splash+set}" = set; then
7805 enableval="$enable_splash"
a0b9e27f 7806
cbca9943
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_splash='wxUSE_SPLASH=yes'
7809 else
7810 ac_cv_use_splash='wxUSE_SPLASH=no'
7811 fi
a0b9e27f 7812
cbca9943 7813else
a0b9e27f 7814
cbca9943
VZ
7815 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7823
7824fi
cbca9943
VZ
7825
7826
7827 eval "$ac_cv_use_splash"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7833 echo "$ac_t""yes" 1>&6
cbca9943 7834 else
a0b9e27f 7835 echo "$ac_t""no" 1>&6
cbca9943 7836 fi
a0b9e27f 7837
cbca9943 7838
5005acfe
VZ
7839 enablestring=
7840 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
fe0895cf 7841echo "configure:7842: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7842 no_cache=0
7843 # Check whether --enable-textdlg or --disable-textdlg was given.
7844if test "${enable_textdlg+set}" = set; then
7845 enableval="$enable_textdlg"
a0b9e27f 7846
10f2d63a
VZ
7847 if test "$enableval" = yes; then
7848 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7849 else
7850 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7851 fi
a0b9e27f 7852
10f2d63a 7853else
a0b9e27f 7854
10f2d63a
VZ
7855 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7863
7864fi
10f2d63a
VZ
7865
7866
7867 eval "$ac_cv_use_textdlg"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7873 echo "$ac_t""yes" 1>&6
10f2d63a 7874 else
a0b9e27f 7875 echo "$ac_t""no" 1>&6
10f2d63a 7876 fi
a0b9e27f 7877
10f2d63a 7878
5005acfe
VZ
7879 enablestring=
7880 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
fe0895cf 7881echo "configure:7882: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7882 no_cache=0
7883 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7884if test "${enable_tipdlg+set}" = set; then
7885 enableval="$enable_tipdlg"
a0b9e27f 7886
10f2d63a
VZ
7887 if test "$enableval" = yes; then
7888 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7889 else
7890 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7891 fi
a0b9e27f 7892
10f2d63a 7893else
a0b9e27f 7894
10f2d63a
VZ
7895 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7903
7904fi
10f2d63a
VZ
7905
7906
7907 eval "$ac_cv_use_tipdlg"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7913 echo "$ac_t""yes" 1>&6
10f2d63a 7914 else
a0b9e27f 7915 echo "$ac_t""no" 1>&6
10f2d63a 7916 fi
a0b9e27f 7917
10f2d63a 7918
5005acfe
VZ
7919 enablestring=
7920 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
fe0895cf 7921echo "configure:7922: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7922 no_cache=0
7923 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7924if test "${enable_progressdlg+set}" = set; then
7925 enableval="$enable_progressdlg"
a0b9e27f 7926
10f2d63a
VZ
7927 if test "$enableval" = yes; then
7928 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7929 else
7930 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7931 fi
a0b9e27f 7932
10f2d63a 7933else
a0b9e27f 7934
10f2d63a
VZ
7935 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7936 if test "x$LINE" != x ; then
7937 eval "DEFAULT_$LINE"
7938 else
7939 no_cache=1
7940 fi
7941
7942 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7943
7944fi
10f2d63a
VZ
7945
7946
7947 eval "$ac_cv_use_progressdlg"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7953 echo "$ac_t""yes" 1>&6
10f2d63a 7954 else
a0b9e27f 7955 echo "$ac_t""no" 1>&6
10f2d63a 7956 fi
a0b9e27f 7957
10f2d63a 7958
5005acfe
VZ
7959 enablestring=
7960 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
fe0895cf 7961echo "configure:7962: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7962 no_cache=0
7963 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7964if test "${enable_wizarddlg+set}" = set; then
7965 enableval="$enable_wizarddlg"
a0b9e27f 7966
b1f5d087
VZ
7967 if test "$enableval" = yes; then
7968 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7969 else
7970 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7971 fi
a0b9e27f 7972
b1f5d087 7973else
a0b9e27f 7974
b1f5d087
VZ
7975 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7983
7984fi
b1f5d087
VZ
7985
7986
7987 eval "$ac_cv_use_wizarddlg"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7993 echo "$ac_t""yes" 1>&6
b1f5d087 7994 else
a0b9e27f 7995 echo "$ac_t""no" 1>&6
b1f5d087 7996 fi
a0b9e27f 7997
8284b0c5
MB
7998
7999
52127426 8000
5005acfe
VZ
8001 enablestring=
8002 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
fe0895cf 8003echo "configure:8004: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8004 no_cache=0
8005 # Check whether --enable-menus or --disable-menus was given.
8006if test "${enable_menus+set}" = set; then
8007 enableval="$enable_menus"
a0b9e27f 8008
1e6feb95
VZ
8009 if test "$enableval" = yes; then
8010 ac_cv_use_menus='wxUSE_MENUS=yes'
8011 else
8012 ac_cv_use_menus='wxUSE_MENUS=no'
8013 fi
a0b9e27f 8014
1e6feb95 8015else
a0b9e27f 8016
1e6feb95
VZ
8017 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8018 if test "x$LINE" != x ; then
8019 eval "DEFAULT_$LINE"
8020 else
8021 no_cache=1
8022 fi
8023
8024 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8025
8026fi
1e6feb95
VZ
8027
8028
8029 eval "$ac_cv_use_menus"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8035 echo "$ac_t""yes" 1>&6
1e6feb95 8036 else
a0b9e27f 8037 echo "$ac_t""no" 1>&6
1e6feb95 8038 fi
a0b9e27f 8039
1e6feb95 8040
5005acfe
VZ
8041 enablestring=
8042 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
fe0895cf 8043echo "configure:8044: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8044 no_cache=0
8045 # Check whether --enable-miniframe or --disable-miniframe was given.
8046if test "${enable_miniframe+set}" = set; then
8047 enableval="$enable_miniframe"
a0b9e27f 8048
10f2d63a
VZ
8049 if test "$enableval" = yes; then
8050 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8051 else
8052 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8053 fi
a0b9e27f 8054
10f2d63a 8055else
a0b9e27f 8056
10f2d63a
VZ
8057 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8058 if test "x$LINE" != x ; then
8059 eval "DEFAULT_$LINE"
8060 else
8061 no_cache=1
8062 fi
8063
8064 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8065
8066fi
10f2d63a
VZ
8067
8068
8069 eval "$ac_cv_use_miniframe"
8070 if test "$no_cache" != 1; then
8071 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8072 fi
8073
8074 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8075 echo "$ac_t""yes" 1>&6
10f2d63a 8076 else
a0b9e27f 8077 echo "$ac_t""no" 1>&6
10f2d63a 8078 fi
a0b9e27f 8079
10f2d63a 8080
5005acfe
VZ
8081 enablestring=
8082 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
fe0895cf 8083echo "configure:8084: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8084 no_cache=0
8085 # Check whether --enable-tooltips or --disable-tooltips was given.
8086if test "${enable_tooltips+set}" = set; then
8087 enableval="$enable_tooltips"
a0b9e27f 8088
10f2d63a
VZ
8089 if test "$enableval" = yes; then
8090 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8091 else
8092 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8093 fi
a0b9e27f 8094
10f2d63a 8095else
a0b9e27f 8096
10f2d63a
VZ
8097 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8105
8106fi
10f2d63a
VZ
8107
8108
8109 eval "$ac_cv_use_tooltips"
8110 if test "$no_cache" != 1; then
8111 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8112 fi
8113
8114 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8115 echo "$ac_t""yes" 1>&6
10f2d63a 8116 else
a0b9e27f 8117 echo "$ac_t""no" 1>&6
10f2d63a 8118 fi
a0b9e27f 8119
10f2d63a 8120
5005acfe
VZ
8121 enablestring=
8122 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
fe0895cf 8123echo "configure:8124: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8124 no_cache=0
8125 # Check whether --enable-splines or --disable-splines was given.
8126if test "${enable_splines+set}" = set; then
8127 enableval="$enable_splines"
a0b9e27f 8128
10f2d63a
VZ
8129 if test "$enableval" = yes; then
8130 ac_cv_use_splines='wxUSE_SPLINES=yes'
8131 else
8132 ac_cv_use_splines='wxUSE_SPLINES=no'
8133 fi
a0b9e27f 8134
10f2d63a 8135else
a0b9e27f 8136
10f2d63a
VZ
8137 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8145
8146fi
10f2d63a
VZ
8147
8148
8149 eval "$ac_cv_use_splines"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8155 echo "$ac_t""yes" 1>&6
10f2d63a 8156 else
a0b9e27f 8157 echo "$ac_t""no" 1>&6
10f2d63a 8158 fi
a0b9e27f 8159
10f2d63a 8160
5005acfe
VZ
8161 enablestring=
8162 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
fe0895cf 8163echo "configure:8164: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8164 no_cache=0
8165 # Check whether --enable-validators or --disable-validators was given.
8166if test "${enable_validators+set}" = set; then
8167 enableval="$enable_validators"
a0b9e27f 8168
10f2d63a
VZ
8169 if test "$enableval" = yes; then
8170 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8171 else
8172 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8173 fi
a0b9e27f 8174
10f2d63a 8175else
a0b9e27f 8176
10f2d63a
VZ
8177 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8185
8186fi
10f2d63a
VZ
8187
8188
8189 eval "$ac_cv_use_validators"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8195 echo "$ac_t""yes" 1>&6
10f2d63a 8196 else
a0b9e27f 8197 echo "$ac_t""no" 1>&6
10f2d63a 8198 fi
a0b9e27f 8199
10f2d63a 8200
5005acfe
VZ
8201 enablestring=
8202 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
fe0895cf 8203echo "configure:8204: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8204 no_cache=0
8205 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8206if test "${enable_busyinfo+set}" = set; then
8207 enableval="$enable_busyinfo"
a0b9e27f 8208
10f2d63a
VZ
8209 if test "$enableval" = yes; then
8210 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8211 else
8212 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8213 fi
a0b9e27f 8214
10f2d63a 8215else
a0b9e27f 8216
10f2d63a
VZ
8217 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8225
8226fi
10f2d63a
VZ
8227
8228
8229 eval "$ac_cv_use_busyinfo"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8235 echo "$ac_t""yes" 1>&6
10f2d63a 8236 else
a0b9e27f 8237 echo "$ac_t""no" 1>&6
10f2d63a 8238 fi
a0b9e27f 8239
10f2d63a 8240
5005acfe
VZ
8241 enablestring=
8242 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
fe0895cf 8243echo "configure:8244: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8244 no_cache=0
8245 # Check whether --enable-joystick or --disable-joystick was given.
8246if test "${enable_joystick+set}" = set; then
8247 enableval="$enable_joystick"
a0b9e27f 8248
f6bcfd97
BP
8249 if test "$enableval" = yes; then
8250 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8251 else
8252 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8253 fi
a0b9e27f 8254
f6bcfd97 8255else
a0b9e27f 8256
f6bcfd97
BP
8257 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8265
8266fi
f6bcfd97
BP
8267
8268
8269 eval "$ac_cv_use_joystick"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8275 echo "$ac_t""yes" 1>&6
f6bcfd97 8276 else
a0b9e27f 8277 echo "$ac_t""no" 1>&6
f6bcfd97 8278 fi
a0b9e27f 8279
698dcdb6 8280
5005acfe
VZ
8281 enablestring=
8282 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
fe0895cf 8283echo "configure:8284: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8284 no_cache=0
8285 # Check whether --enable-metafile or --disable-metafile was given.
8286if test "${enable_metafile+set}" = set; then
8287 enableval="$enable_metafile"
a0b9e27f 8288
1e6feb95
VZ
8289 if test "$enableval" = yes; then
8290 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8291 else
8292 ac_cv_use_metafile='wxUSE_METAFILE=no'
8293 fi
a0b9e27f 8294
1e6feb95 8295else
a0b9e27f 8296
1e6feb95
VZ
8297 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8305
8306fi
1e6feb95
VZ
8307
8308
8309 eval "$ac_cv_use_metafile"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8315 echo "$ac_t""yes" 1>&6
1e6feb95 8316 else
a0b9e27f 8317 echo "$ac_t""no" 1>&6
1e6feb95 8318 fi
a0b9e27f 8319
1e6feb95 8320
5005acfe
VZ
8321 enablestring=
8322 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
fe0895cf 8323echo "configure:8324: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8324 no_cache=0
8325 # Check whether --enable-dragimage or --disable-dragimage was given.
8326if test "${enable_dragimage+set}" = set; then
8327 enableval="$enable_dragimage"
a0b9e27f 8328
24fd6d87
VZ
8329 if test "$enableval" = yes; then
8330 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8331 else
8332 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8333 fi
a0b9e27f 8334
24fd6d87 8335else
a0b9e27f 8336
24fd6d87
VZ
8337 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8345
8346fi
24fd6d87
VZ
8347
8348
8349 eval "$ac_cv_use_dragimage"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8355 echo "$ac_t""yes" 1>&6
24fd6d87 8356 else
a0b9e27f 8357 echo "$ac_t""no" 1>&6
24fd6d87 8358 fi
a0b9e27f 8359
52127426 8360
7bb2947d
MB
8361 enablestring=
8362 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
fe0895cf 8363echo "configure:8364: checking for --${enablestring:-enable}-accessibility" >&5
7bb2947d
MB
8364 no_cache=0
8365 # Check whether --enable-accessibility or --disable-accessibility was given.
8366if test "${enable_accessibility+set}" = set; then
8367 enableval="$enable_accessibility"
8368
8369 if test "$enableval" = yes; then
8370 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8371 else
8372 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8373 fi
8374
8375else
8376
8377 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8385
8386fi
8387
8388
8389 eval "$ac_cv_use_accessibility"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_ACCESSIBILITY" = yes; then
8395 echo "$ac_t""yes" 1>&6
8396 else
8397 echo "$ac_t""no" 1>&6
8398 fi
8399
8400
8284b0c5
MB
8401
8402
5005acfe
VZ
8403 enablestring=
8404 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
fe0895cf 8405echo "configure:8406: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8406 no_cache=0
8407 # Check whether --enable-palette or --disable-palette was given.
8408if test "${enable_palette+set}" = set; then
8409 enableval="$enable_palette"
a0b9e27f 8410
edae8572
VZ
8411 if test "$enableval" = yes; then
8412 ac_cv_use_palette='wxUSE_PALETTE=yes'
8413 else
8414 ac_cv_use_palette='wxUSE_PALETTE=no'
8415 fi
a0b9e27f 8416
edae8572 8417else
a0b9e27f 8418
edae8572
VZ
8419 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8427
8428fi
edae8572
VZ
8429
8430
8431 eval "$ac_cv_use_palette"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8437 echo "$ac_t""yes" 1>&6
edae8572 8438 else
a0b9e27f 8439 echo "$ac_t""no" 1>&6
edae8572 8440 fi
a0b9e27f 8441
edae8572 8442
5005acfe
VZ
8443 enablestring=
8444 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
fe0895cf 8445echo "configure:8446: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8446 no_cache=0
8447 # Check whether --enable-image or --disable-image was given.
8448if test "${enable_image+set}" = set; then
8449 enableval="$enable_image"
a0b9e27f 8450
0046ff7c
VS
8451 if test "$enableval" = yes; then
8452 ac_cv_use_image='wxUSE_IMAGE=yes'
8453 else
8454 ac_cv_use_image='wxUSE_IMAGE=no'
8455 fi
a0b9e27f 8456
0046ff7c 8457else
a0b9e27f 8458
0046ff7c
VS
8459 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8460 if test "x$LINE" != x ; then
8461 eval "DEFAULT_$LINE"
8462 else
8463 no_cache=1
8464 fi
8465
8466 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8467
8468fi
0046ff7c
VS
8469
8470
8471 eval "$ac_cv_use_image"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8477 echo "$ac_t""yes" 1>&6
0046ff7c 8478 else
a0b9e27f 8479 echo "$ac_t""no" 1>&6
0046ff7c 8480 fi
a0b9e27f 8481
0046ff7c 8482
5005acfe
VZ
8483 enablestring=
8484 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
fe0895cf 8485echo "configure:8486: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8486 no_cache=0
8487 # Check whether --enable-gif or --disable-gif was given.
8488if test "${enable_gif+set}" = set; then
8489 enableval="$enable_gif"
a0b9e27f 8490
10f2d63a
VZ
8491 if test "$enableval" = yes; then
8492 ac_cv_use_gif='wxUSE_GIF=yes'
8493 else
8494 ac_cv_use_gif='wxUSE_GIF=no'
8495 fi
a0b9e27f 8496
10f2d63a 8497else
a0b9e27f 8498
10f2d63a
VZ
8499 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8500 if test "x$LINE" != x ; then
8501 eval "DEFAULT_$LINE"
8502 else
8503 no_cache=1
8504 fi
8505
8506 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8507
8508fi
10f2d63a
VZ
8509
8510
8511 eval "$ac_cv_use_gif"
8512 if test "$no_cache" != 1; then
8513 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8514 fi
8515
8516 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8517 echo "$ac_t""yes" 1>&6
10f2d63a 8518 else
a0b9e27f 8519 echo "$ac_t""no" 1>&6
10f2d63a 8520 fi
a0b9e27f 8521
10f2d63a 8522
5005acfe
VZ
8523 enablestring=
8524 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
fe0895cf 8525echo "configure:8526: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8526 no_cache=0
8527 # Check whether --enable-pcx or --disable-pcx was given.
8528if test "${enable_pcx+set}" = set; then
8529 enableval="$enable_pcx"
a0b9e27f 8530
10f2d63a
VZ
8531 if test "$enableval" = yes; then
8532 ac_cv_use_pcx='wxUSE_PCX=yes'
8533 else
8534 ac_cv_use_pcx='wxUSE_PCX=no'
8535 fi
a0b9e27f 8536
10f2d63a 8537else
a0b9e27f 8538
10f2d63a
VZ
8539 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8547
8548fi
10f2d63a
VZ
8549
8550
8551 eval "$ac_cv_use_pcx"
8552 if test "$no_cache" != 1; then
8553 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8554 fi
8555
8556 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8557 echo "$ac_t""yes" 1>&6
10f2d63a 8558 else
a0b9e27f 8559 echo "$ac_t""no" 1>&6
10f2d63a 8560 fi
a0b9e27f 8561
10f2d63a 8562
5005acfe
VZ
8563 enablestring=
8564 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
fe0895cf 8565echo "configure:8566: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8566 no_cache=0
8567 # Check whether --enable-iff or --disable-iff was given.
8568if test "${enable_iff+set}" = set; then
8569 enableval="$enable_iff"
a0b9e27f 8570
4b6b4dfc
RR
8571 if test "$enableval" = yes; then
8572 ac_cv_use_iff='wxUSE_IFF=yes'
8573 else
8574 ac_cv_use_iff='wxUSE_IFF=no'
8575 fi
a0b9e27f 8576
4b6b4dfc 8577else
a0b9e27f 8578
4b6b4dfc
RR
8579 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8587
8588fi
4b6b4dfc
RR
8589
8590
8591 eval "$ac_cv_use_iff"
8592 if test "$no_cache" != 1; then
8593 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8594 fi
8595
8596 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8597 echo "$ac_t""yes" 1>&6
4b6b4dfc 8598 else
a0b9e27f 8599 echo "$ac_t""no" 1>&6
4b6b4dfc 8600 fi
a0b9e27f 8601
4b6b4dfc 8602
5005acfe
VZ
8603 enablestring=
8604 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
fe0895cf 8605echo "configure:8606: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8606 no_cache=0
8607 # Check whether --enable-pnm or --disable-pnm was given.
8608if test "${enable_pnm+set}" = set; then
8609 enableval="$enable_pnm"
a0b9e27f 8610
10f2d63a
VZ
8611 if test "$enableval" = yes; then
8612 ac_cv_use_pnm='wxUSE_PNM=yes'
8613 else
8614 ac_cv_use_pnm='wxUSE_PNM=no'
8615 fi
a0b9e27f 8616
10f2d63a 8617else
a0b9e27f 8618
10f2d63a
VZ
8619 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8620 if test "x$LINE" != x ; then
8621 eval "DEFAULT_$LINE"
8622 else
8623 no_cache=1
8624 fi
8625
8626 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8627
8628fi
10f2d63a
VZ
8629
8630
8631 eval "$ac_cv_use_pnm"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8637 echo "$ac_t""yes" 1>&6
10f2d63a 8638 else
a0b9e27f 8639 echo "$ac_t""no" 1>&6
10f2d63a 8640 fi
a0b9e27f 8641
10f2d63a 8642
5005acfe
VZ
8643 enablestring=
8644 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
fe0895cf 8645echo "configure:8646: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8646 no_cache=0
69d27ff7
MB
8647 # Check whether --enable-xpm or --disable-xpm was given.
8648if test "${enable_xpm+set}" = set; then
8649 enableval="$enable_xpm"
a0b9e27f 8650
0046ff7c 8651 if test "$enableval" = yes; then
69d27ff7 8652 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8653 else
69d27ff7 8654 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8655 fi
a0b9e27f 8656
0046ff7c 8657else
a0b9e27f 8658
0046ff7c
VS
8659 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8660 if test "x$LINE" != x ; then
8661 eval "DEFAULT_$LINE"
8662 else
8663 no_cache=1
8664 fi
8665
69d27ff7 8666 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8667
8668fi
0046ff7c
VS
8669
8670
69d27ff7 8671 eval "$ac_cv_use_xpm"
0046ff7c 8672 if test "$no_cache" != 1; then
69d27ff7 8673 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8674 fi
8675
8676 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8677 echo "$ac_t""yes" 1>&6
0046ff7c 8678 else
a0b9e27f 8679 echo "$ac_t""no" 1>&6
0046ff7c 8680 fi
a0b9e27f 8681
0046ff7c 8682
5005acfe
VZ
8683 enablestring=
8684 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
fe0895cf 8685echo "configure:8686: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8686 no_cache=0
c7206e64
VS
8687 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8688if test "${enable_ico_cur+set}" = set; then
8689 enableval="$enable_ico_cur"
a0b9e27f 8690
658974ae 8691 if test "$enableval" = yes; then
c7206e64 8692 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8693 else
c7206e64 8694 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8695 fi
a0b9e27f 8696
658974ae 8697else
a0b9e27f 8698
658974ae
VS
8699 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8700 if test "x$LINE" != x ; then
8701 eval "DEFAULT_$LINE"
8702 else
8703 no_cache=1
8704 fi
8705
c7206e64 8706 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8707
8708fi
658974ae
VS
8709
8710
c7206e64 8711 eval "$ac_cv_use_ico_cur"
658974ae 8712 if test "$no_cache" != 1; then
c7206e64 8713 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8714 fi
8715
8716 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8717 echo "$ac_t""yes" 1>&6
658974ae 8718 else
a0b9e27f 8719 echo "$ac_t""no" 1>&6
658974ae 8720 fi
a0b9e27f 8721
658974ae 8722
b12915c1
VZ
8723fi
8724
d558c907
VS
8725case "${host}" in
8726 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8727 PATH_IFS=';'
8728 LEX_STEM="lexyy"
d558c907
VS
8729 ;;
8730 *)
8731 PATH_IFS=':'
8732 LEX_STEM="lex.yy"
8733 ;;
8734esac
8735
8284b0c5
MB
8736
8737
10f2d63a
VZ
8738 echo "saving argument cache $wx_arg_cache_file"
8739 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8740
52127426 8741
8284b0c5 8742
a0b9e27f 8743echo $ac_n "checking for toolkit""... $ac_c" 1>&6
fe0895cf 8744echo "configure:8745: checking for toolkit" >&5
89e6bf6d
VZ
8745
8746# In Wine, we need to default to MSW, not GTK or MOTIF
8747if test "$wxUSE_WINE" = "yes"; then
8748 DEFAULT_DEFAULT_wxUSE_GTK=0
8749 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8750 DEFAULT_DEFAULT_wxUSE_MSW=1
8751fi
10f2d63a
VZ
8752
8753if test "$wxUSE_GUI" = "yes"; then
8754
3a922bb4 8755 if test "$USE_BEOS" = 1; then
a0b9e27f 8756 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8757 fi
b12915c1 8758
3a922bb4
RL
8759 if test "$TOOLKIT_GIVEN" = 1; then
8760 for toolkit in `echo $ALL_TOOLKITS`; do
8761 var=wxUSE_$toolkit
8762 eval "value=\$${var}"
8763 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8764 done
10f2d63a 8765 else
3a922bb4
RL
8766 for toolkit in `echo $ALL_TOOLKITS`; do
8767 if test "$has_toolkit_in_cache" != 1; then
8768 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8769 else
8770 var=DEFAULT_wxUSE_$toolkit
8771 fi
8772 eval "wxUSE_$toolkit=\$${var}"
8773 done
10f2d63a 8774 fi
10f2d63a 8775
ac0c4cc3
DE
8776 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8777 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8778 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8779
d558c907 8780 case "${host}" in
6fa882bd 8781 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8782 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8783 esac
10f2d63a 8784
3a922bb4
RL
8785 case "$NUM_TOOLKITS" in
8786 1)
8787 ;;
8788 0)
a0b9e27f 8789 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8790 ;;
8791 *)
a0b9e27f 8792 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8793 esac
10f2d63a 8794
3a922bb4
RL
8795 for toolkit in `echo $ALL_TOOLKITS`; do
8796 var=wxUSE_$toolkit
8797 eval "value=\$${var}"
8798 if test "x$value" != x; then
8799 cache_var=CACHE_$toolkit
8800 eval "cache=\$${cache_var}"
8801 if test "$cache" = 1; then
8802 echo "$var=$value" >> ${wx_arg_cache_file}
8803 fi
8804 if test "$value" = 1; then
8805 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8806 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8807 fi
8808 fi
8809 done
10f2d63a 8810else
a0b9e27f 8811 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8812fi
8813
43d99b6d
VS
8814wants_win32=0
8815doesnt_want_win32=0
17234b26
MB
8816case "${host}" in
8817 *-*-cygwin*)
8818 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8819 wants_win32=1
8820 else
8821 doesnt_want_win32=1
17234b26
MB
8822 fi
8823 ;;
8824 *-*-mingw*)
43d99b6d 8825 wants_win32=1
17234b26
MB
8826 ;;
8827esac
8828
89e6bf6d
VZ
8829if test "$wxUSE_WINE" = "yes"; then
8830 wants_win32=1
8831 CC=winegcc
8832 CXX=wineg++
8833 RESCOMP=wrc
8834fi
8835
43d99b6d 8836if test "$wants_win32" = 1 ; then
17234b26
MB
8837 USE_UNIX=0
8838 USE_WIN32=1
a0b9e27f 8839 cat >> confdefs.h <<\EOF
17234b26 8840#define __WIN32__ 1
a0b9e27f 8841EOF
17234b26 8842
a0b9e27f 8843 cat >> confdefs.h <<\EOF
17234b26 8844#define __WIN95__ 1
a0b9e27f 8845EOF
17234b26 8846
a0b9e27f 8847 cat >> confdefs.h <<\EOF
17234b26 8848#define __WINDOWS__ 1
a0b9e27f 8849EOF
17234b26 8850
a0b9e27f 8851 cat >> confdefs.h <<\EOF
17234b26 8852#define __GNUWIN32__ 1
a0b9e27f 8853EOF
17234b26 8854
a0b9e27f 8855 cat >> confdefs.h <<\EOF
17234b26 8856#define STRICT 1
a0b9e27f 8857EOF
17234b26 8858
a0b9e27f 8859 cat >> confdefs.h <<\EOF
17234b26 8860#define WINVER 0x0400
a0b9e27f 8861EOF
17234b26 8862
43d99b6d
VS
8863fi
8864if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8865 USE_UNIX=1
8866 USE_WIN32=0
8867fi
8868
8869if test "$USE_UNIX" = 1 ; then
8870 wxUSE_UNIX=yes
a0b9e27f 8871 cat >> confdefs.h <<\EOF
17234b26 8872#define __UNIX__ 1
a0b9e27f 8873EOF
17234b26
MB
8874
8875fi
8876
8284b0c5 8877
a0b9e27f 8878cat > confcache <<\EOF
10f2d63a
VZ
8879# This file is a shell script that caches the results of configure
8880# tests run on this system so they can be shared between configure
a0b9e27f
MB
8881# scripts and configure runs. It is not useful on other systems.
8882# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8883#
a0b9e27f
MB
8884# By default, configure uses ./config.cache as the cache file,
8885# creating it if it does not exist already. You can give configure
8886# the --cache-file=FILE option to use a different cache file; that is
8887# what configure does when it calls configure scripts in
8888# subdirectories, so they share the cache.
8889# Giving --cache-file=/dev/null disables caching, for debugging configure.
8890# config.status only pays attention to the cache file if you give it the
8891# --recheck option to rerun configure.
10f2d63a 8892#
a0b9e27f 8893EOF
10f2d63a
VZ
8894# The following way of writing the cache mishandles newlines in values,
8895# but we know of no workaround that is simple, portable, and efficient.
8896# So, don't put newlines in cache variables' values.
8897# Ultrix sh set writes to stderr and can't be redirected directly,
8898# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8899(set) 2>&1 |
8900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8901 *ac_space=\ *)
8902 # `set' does not quote correctly, so add quotes (double-quote substitution
8903 # turns \\\\ into \\, and sed turns \\ into \).
8904 sed -n \
8905 -e "s/'/'\\\\''/g" \
8906 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8907 ;;
8908 *)
8909 # `set' quotes correctly as required by POSIX, so do not add quotes.
8910 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8911 ;;
8912 esac >> confcache
8913if cmp -s $cache_file confcache; then
8914 :
8915else
10f2d63a 8916 if test -w $cache_file; then
a0b9e27f
MB
8917 echo "updating cache $cache_file"
8918 cat confcache > $cache_file
10f2d63a
VZ
8919 else
8920 echo "not updating unwritable cache $cache_file"
8921 fi
8922fi
8923rm -f confcache
8924
a0b9e27f 8925
e59890c3 8926if test "$build" != "$host" ; then
9d353d4a 8927 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8928 CC=$host_alias-gcc
8929 CXX=$host_alias-c++
8930 AR=$host_alias-ar
8931 RANLIB=$host_alias-ranlib
8932 DLLTOOL=$host_alias-dlltool
8933 RESCOMP=$host_alias-windres
8934 LD=$host_alias-ld
8935 NM=$host_alias-nm
8936 STRIP=$host_alias-strip
8937 else
a0b9e27f 8938 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8939 fi
10f2d63a
VZ
8940fi
8941
ec603395 8942CFLAGS=${CFLAGS:=}
a0b9e27f 8943# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8944set dummy gcc; ac_word=$2
a0b9e27f 8945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 8946echo "configure:8947: checking for $ac_word" >&5
a0b9e27f
MB
8947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8949else
8950 if test -n "$CC"; then
8951 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8952else
a0b9e27f
MB
8953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8954 ac_dummy="$PATH"
8955 for ac_dir in $ac_dummy; do
8956 test -z "$ac_dir" && ac_dir=.
8957 if test -f $ac_dir/$ac_word; then
8958 ac_cv_prog_CC="gcc"
8959 break
8960 fi
8961 done
8962 IFS="$ac_save_ifs"
10f2d63a 8963fi
6232543b 8964fi
a0b9e27f 8965CC="$ac_cv_prog_CC"
6232543b 8966if test -n "$CC"; then
a0b9e27f 8967 echo "$ac_t""$CC" 1>&6
247f5006 8968else
a0b9e27f 8969 echo "$ac_t""no" 1>&6
247f5006
VZ
8970fi
8971
5c6fa7d2
RR
8972if test -z "$CC"; then
8973 # Extract the first word of "cc", so it can be a program name with args.
8974set dummy cc; ac_word=$2
a0b9e27f 8975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 8976echo "configure:8977: checking for $ac_word" >&5
a0b9e27f
MB
8977if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8979else
8980 if test -n "$CC"; then
8981 ac_cv_prog_CC="$CC" # Let the user override the test.
8982else
a0b9e27f 8983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8984 ac_prog_rejected=no
a0b9e27f
MB
8985 ac_dummy="$PATH"
8986 for ac_dir in $ac_dummy; do
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/$ac_word; then
8989 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8990 ac_prog_rejected=yes
8991 continue
8992 fi
8993 ac_cv_prog_CC="cc"
8994 break
8995 fi
8996 done
8997 IFS="$ac_save_ifs"
328a083c
RR
8998if test $ac_prog_rejected = yes; then
8999 # We found a bogon in the path, so make sure we never use it.
9000 set dummy $ac_cv_prog_CC
9001 shift
a0b9e27f 9002 if test $# -gt 0; then
328a083c 9003 # We chose a different compiler from the bogus one.
1e487827
VS
9004 # However, it has the same basename, so the bogon will be chosen
9005 # first if we set CC to just the basename; use the full file name.
9006 shift
a0b9e27f 9007 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
9008 shift
9009 ac_cv_prog_CC="$@"
703e0a69 9010 fi
1e487827
VS
9011fi
9012fi
9013fi
a0b9e27f 9014CC="$ac_cv_prog_CC"
1e487827 9015if test -n "$CC"; then
a0b9e27f 9016 echo "$ac_t""$CC" 1>&6
703e0a69 9017else
a0b9e27f 9018 echo "$ac_t""no" 1>&6
703e0a69 9019fi
1e487827 9020
a0b9e27f
MB
9021 if test -z "$CC"; then
9022 case "`uname -s`" in
9023 *win32* | *WIN32*)
9024 # Extract the first word of "cl", so it can be a program name with args.
9025set dummy cl; ac_word=$2
9026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9027echo "configure:9028: checking for $ac_word" >&5
a0b9e27f
MB
9028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
9030else
9031 if test -n "$CC"; then
9032 ac_cv_prog_CC="$CC" # Let the user override the test.
9033else
a0b9e27f
MB
9034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9035 ac_dummy="$PATH"
9036 for ac_dir in $ac_dummy; do
9037 test -z "$ac_dir" && ac_dir=.
9038 if test -f $ac_dir/$ac_word; then
9039 ac_cv_prog_CC="cl"
9040 break
9041 fi
9042 done
9043 IFS="$ac_save_ifs"
f09359cf
VS
9044fi
9045fi
a0b9e27f 9046CC="$ac_cv_prog_CC"
f09359cf 9047if test -n "$CC"; then
a0b9e27f 9048 echo "$ac_t""$CC" 1>&6
f09359cf 9049else
a0b9e27f 9050 echo "$ac_t""no" 1>&6
247f5006 9051fi
a0b9e27f
MB
9052 ;;
9053 esac
8284b0c5 9054 fi
a0b9e27f 9055 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9056fi
1e487827 9057
a0b9e27f 9058echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
fe0895cf 9059echo "configure:9060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9060
a0b9e27f
MB
9061ac_ext=c
9062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9063ac_cpp='$CPP $CPPFLAGS'
9064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9066cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9067
a0b9e27f 9068cat > conftest.$ac_ext << EOF
247f5006 9069
fe0895cf 9070#line 9071 "configure"
a0b9e27f 9071#include "confdefs.h"
247f5006 9072
a0b9e27f
MB
9073main(){return(0);}
9074EOF
fe0895cf 9075if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9076 ac_cv_prog_cc_works=yes
9077 # If we can't run a trivial program, we are probably using a cross compiler.
9078 if (./conftest; exit) 2>/dev/null; then
9079 ac_cv_prog_cc_cross=no
698dcdb6 9080 else
a0b9e27f 9081 ac_cv_prog_cc_cross=yes
698dcdb6 9082 fi
7b4a847f 9083else
a0b9e27f
MB
9084 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_prog_cc_works=no
52127426 9087fi
a0b9e27f
MB
9088rm -fr conftest*
9089ac_ext=c
9090# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9091ac_cpp='$CPP $CPPFLAGS'
9092ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9093ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9094cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9095
a0b9e27f
MB
9096echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9097if test $ac_cv_prog_cc_works = no; then
9098 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9099fi
9100echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
fe0895cf 9101echo "configure:9102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9102echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9103cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9104
a0b9e27f 9105echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
fe0895cf 9106echo "configure:9107: checking whether we are using GNU C" >&5
a0b9e27f
MB
9107if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9109else
a0b9e27f
MB
9110 cat > conftest.c <<EOF
9111#ifdef __GNUC__
9112 yes;
8284b0c5 9113#endif
a0b9e27f 9114EOF
fe0895cf 9115if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9116 ac_cv_prog_gcc=yes
5c6fa7d2 9117else
a0b9e27f 9118 ac_cv_prog_gcc=no
8284b0c5
MB
9119fi
9120fi
1e487827 9121
a0b9e27f 9122echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9123
a0b9e27f
MB
9124if test $ac_cv_prog_gcc = yes; then
9125 GCC=yes
9126else
9127 GCC=
9128fi
247f5006 9129
a0b9e27f
MB
9130ac_test_CFLAGS="${CFLAGS+set}"
9131ac_save_CFLAGS="$CFLAGS"
9132CFLAGS=
9133echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
fe0895cf 9134echo "configure:9135: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9137else
9138 echo 'void f(){}' > conftest.c
9139if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9140 ac_cv_prog_cc_g=yes
9141else
a0b9e27f 9142 ac_cv_prog_cc_g=no
10f2d63a 9143fi
a0b9e27f
MB
9144rm -f conftest*
9145
10f2d63a 9146fi
a0b9e27f
MB
9147
9148echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9149if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9150 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9151elif test $ac_cv_prog_cc_g = yes; then
9152 if test "$GCC" = yes; then
10f2d63a
VZ
9153 CFLAGS="-g -O2"
9154 else
f09359cf 9155 CFLAGS="-g"
10f2d63a 9156 fi
5c0a20c3 9157else
f09359cf
VS
9158 if test "$GCC" = yes; then
9159 CFLAGS="-O2"
9160 else
9161 CFLAGS=
9162 fi
10f2d63a
VZ
9163fi
9164
9165
a0b9e27f 9166echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
fe0895cf 9167echo "configure:9168: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9168# On Suns, sometimes $CPP names a directory.
9169if test -n "$CPP" && test -d "$CPP"; then
9170 CPP=
9171fi
9172if test -z "$CPP"; then
a0b9e27f
MB
9173if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9175else
9176 # This must be in double quotes, not single quotes, because CPP may get
9177 # substituted into the Makefile and "${CC-cc}" will confuse make.
9178 CPP="${CC-cc} -E"
10f2d63a 9179 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9180 # not just through cpp.
9181 cat > conftest.$ac_ext <<EOF
fe0895cf 9182#line 9183 "configure"
10f2d63a
VZ
9183#include "confdefs.h"
9184#include <assert.h>
a0b9e27f
MB
9185Syntax Error
9186EOF
9187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9188{ (eval echo configure:9189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9190if test -z "$ac_err"; then
10f2d63a
VZ
9191 :
9192else
a0b9e27f
MB
9193 echo "$ac_err" >&5
9194 echo "configure: failed program was:" >&5
10f2d63a 9195 cat conftest.$ac_ext >&5
a0b9e27f
MB
9196 rm -rf conftest*
9197 CPP="${CC-cc} -E -traditional-cpp"
9198 cat > conftest.$ac_ext <<EOF
fe0895cf 9199#line 9200 "configure"
f09359cf 9200#include "confdefs.h"
a0b9e27f
MB
9201#include <assert.h>
9202Syntax Error
9203EOF
9204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9205{ (eval echo configure:9206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9207if test -z "$ac_err"; then
9208 :
247f5006 9209else
a0b9e27f
MB
9210 echo "$ac_err" >&5
9211 echo "configure: failed program was:" >&5
f09359cf 9212 cat conftest.$ac_ext >&5
a0b9e27f
MB
9213 rm -rf conftest*
9214 CPP="${CC-cc} -nologo -E"
9215 cat > conftest.$ac_ext <<EOF
fe0895cf 9216#line 9217 "configure"
10f2d63a
VZ
9217#include "confdefs.h"
9218#include <assert.h>
a0b9e27f
MB
9219Syntax Error
9220EOF
9221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9222{ (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9224if test -z "$ac_err"; then
10f2d63a
VZ
9225 :
9226else
a0b9e27f
MB
9227 echo "$ac_err" >&5
9228 echo "configure: failed program was:" >&5
10f2d63a 9229 cat conftest.$ac_ext >&5
a0b9e27f
MB
9230 rm -rf conftest*
9231 CPP=/lib/cpp
579d8138 9232fi
a0b9e27f 9233rm -f conftest*
52127426 9234fi
a0b9e27f 9235rm -f conftest*
8284b0c5 9236fi
a0b9e27f
MB
9237rm -f conftest*
9238 ac_cv_prog_CPP="$CPP"
9239fi
9240 CPP="$ac_cv_prog_CPP"
10f2d63a 9241else
a0b9e27f 9242 ac_cv_prog_CPP="$CPP"
10f2d63a 9243fi
a0b9e27f 9244echo "$ac_t""$CPP" 1>&6
10f2d63a 9245
a0b9e27f
MB
9246if test $ac_cv_prog_gcc = yes; then
9247 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
fe0895cf 9248echo "configure:9249: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9249if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9251else
9252 ac_pattern="Autoconf.*'x'"
a0b9e27f 9253 cat > conftest.$ac_ext <<EOF
fe0895cf 9254#line 9255 "configure"
10f2d63a
VZ
9255#include "confdefs.h"
9256#include <sgtty.h>
9257Autoconf TIOCGETP
a0b9e27f 9258EOF
10f2d63a
VZ
9259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9261 rm -rf conftest*
10f2d63a
VZ
9262 ac_cv_prog_gcc_traditional=yes
9263else
a0b9e27f 9264 rm -rf conftest*
10f2d63a
VZ
9265 ac_cv_prog_gcc_traditional=no
9266fi
9267rm -f conftest*
9268
8284b0c5 9269
10f2d63a 9270 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9271 cat > conftest.$ac_ext <<EOF
fe0895cf 9272#line 9273 "configure"
10f2d63a
VZ
9273#include "confdefs.h"
9274#include <termio.h>
9275Autoconf TCGETA
a0b9e27f 9276EOF
10f2d63a
VZ
9277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9279 rm -rf conftest*
10f2d63a
VZ
9280 ac_cv_prog_gcc_traditional=yes
9281fi
9282rm -f conftest*
9283
9284 fi
9285fi
a0b9e27f
MB
9286
9287echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9288 if test $ac_cv_prog_gcc_traditional = yes; then
9289 CC="$CC -traditional"
9290 fi
9291fi
9292
8284b0c5
MB
9293
9294
a0b9e27f
MB
9295ac_ext=C
9296# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9297ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9298ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9301
698dcdb6 9302
ec603395 9303CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9304for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9305do
9306# Extract the first word of "$ac_prog", so it can be a program name with args.
9307set dummy $ac_prog; ac_word=$2
9308echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9309echo "configure:9310: checking for $ac_word" >&5
a0b9e27f
MB
9310if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9312else
9313 if test -n "$CXX"; then
9314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9315else
a0b9e27f
MB
9316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9317 ac_dummy="$PATH"
9318 for ac_dir in $ac_dummy; do
9319 test -z "$ac_dir" && ac_dir=.
9320 if test -f $ac_dir/$ac_word; then
9321 ac_cv_prog_CXX="$ac_prog"
9322 break
9323 fi
9324 done
9325 IFS="$ac_save_ifs"
10f2d63a
VZ
9326fi
9327fi
a0b9e27f 9328CXX="$ac_cv_prog_CXX"
10f2d63a 9329if test -n "$CXX"; then
a0b9e27f 9330 echo "$ac_t""$CXX" 1>&6
10f2d63a 9331else
a0b9e27f 9332 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9333fi
9334
a0b9e27f 9335test -n "$CXX" && break
10f2d63a 9336done
a0b9e27f 9337test -n "$CXX" || CXX="gcc"
f09359cf 9338
a0b9e27f
MB
9339
9340echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
fe0895cf 9341echo "configure:9342: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9342
9343ac_ext=C
9344# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9345ac_cpp='$CXXCPP $CPPFLAGS'
9346ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9347ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9348cross_compiling=$ac_cv_prog_cxx_cross
9349
9350cat > conftest.$ac_ext << EOF
9351
fe0895cf 9352#line 9353 "configure"
a0b9e27f
MB
9353#include "confdefs.h"
9354
9355int main(){return(0);}
9356EOF
fe0895cf 9357if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9358 ac_cv_prog_cxx_works=yes
9359 # If we can't run a trivial program, we are probably using a cross compiler.
9360 if (./conftest; exit) 2>/dev/null; then
9361 ac_cv_prog_cxx_cross=no
9362 else
9363 ac_cv_prog_cxx_cross=yes
9364 fi
8284b0c5 9365else
a0b9e27f
MB
9366 echo "configure: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368 ac_cv_prog_cxx_works=no
8284b0c5 9369fi
a0b9e27f
MB
9370rm -fr conftest*
9371ac_ext=C
9372# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9373ac_cpp='$CXXCPP $CPPFLAGS'
9374ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9375ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9376cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9377
a0b9e27f
MB
9378echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9379if test $ac_cv_prog_cxx_works = no; then
9380 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9381fi
9382echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
fe0895cf 9383echo "configure:9384: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9384echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9385cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9386
a0b9e27f 9387echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
fe0895cf 9388echo "configure:9389: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9389if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391else
9392 cat > conftest.C <<EOF
9393#ifdef __GNUC__
9394 yes;
10f2d63a 9395#endif
a0b9e27f 9396EOF
fe0895cf 9397if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9398 ac_cv_prog_gxx=yes
9399else
9400 ac_cv_prog_gxx=no
9401fi
9402fi
10f2d63a 9403
a0b9e27f 9404echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9405
a0b9e27f
MB
9406if test $ac_cv_prog_gxx = yes; then
9407 GXX=yes
9408else
9409 GXX=
9410fi
f09359cf 9411
a0b9e27f
MB
9412ac_test_CXXFLAGS="${CXXFLAGS+set}"
9413ac_save_CXXFLAGS="$CXXFLAGS"
9414CXXFLAGS=
9415echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
fe0895cf 9416echo "configure:9417: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9417if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419else
9420 echo 'void f(){}' > conftest.cc
9421if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9422 ac_cv_prog_cxx_g=yes
9423else
a0b9e27f 9424 ac_cv_prog_cxx_g=no
10f2d63a 9425fi
a0b9e27f
MB
9426rm -f conftest*
9427
10f2d63a 9428fi
a0b9e27f
MB
9429
9430echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9431if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9432 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9433elif test $ac_cv_prog_cxx_g = yes; then
9434 if test "$GXX" = yes; then
10f2d63a
VZ
9435 CXXFLAGS="-g -O2"
9436 else
f09359cf 9437 CXXFLAGS="-g"
10f2d63a 9438 fi
5c0a20c3 9439else
f09359cf
VS
9440 if test "$GXX" = yes; then
9441 CXXFLAGS="-O2"
9442 else
9443 CXXFLAGS=
9444 fi
10f2d63a
VZ
9445fi
9446
9447
10f2d63a 9448ac_ext=c
a0b9e27f 9449# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9450ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9451ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9452ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9453cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9454
9455
a0b9e27f
MB
9456# Extract the first word of "ranlib", so it can be a program name with args.
9457set dummy ranlib; ac_word=$2
9458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9459echo "configure:9460: checking for $ac_word" >&5
a0b9e27f
MB
9460if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9462else
9463 if test -n "$RANLIB"; then
9464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9465else
a0b9e27f
MB
9466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9467 ac_dummy="$PATH"
9468 for ac_dir in $ac_dummy; do
9469 test -z "$ac_dir" && ac_dir=.
9470 if test -f $ac_dir/$ac_word; then
9471 ac_cv_prog_RANLIB="ranlib"
9472 break
9473 fi
9474 done
9475 IFS="$ac_save_ifs"
9476 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9477fi
9478fi
a0b9e27f 9479RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9480if test -n "$RANLIB"; then
a0b9e27f 9481 echo "$ac_t""$RANLIB" 1>&6
328a083c 9482else
a0b9e27f 9483 echo "$ac_t""no" 1>&6
328a083c
RR
9484fi
9485
10f2d63a
VZ
9486
9487# Extract the first word of "ar", so it can be a program name with args.
9488set dummy ar; ac_word=$2
a0b9e27f 9489echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9490echo "configure:9491: checking for $ac_word" >&5
a0b9e27f
MB
9491if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9493else
9494 if test -n "$AR"; then
9495 ac_cv_prog_AR="$AR" # Let the user override the test.
9496else
a0b9e27f
MB
9497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9498 ac_dummy="$PATH"
9499 for ac_dir in $ac_dummy; do
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f $ac_dir/$ac_word; then
9502 ac_cv_prog_AR="ar"
9503 break
9504 fi
9505 done
9506 IFS="$ac_save_ifs"
10f2d63a
VZ
9507 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9508fi
9509fi
a0b9e27f 9510AR="$ac_cv_prog_AR"
10f2d63a 9511if test -n "$AR"; then
a0b9e27f 9512 echo "$ac_t""$AR" 1>&6
10f2d63a 9513else
a0b9e27f 9514 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9515fi
9516
8284b0c5 9517
6054113a 9518# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9519# so one script is as good as another. But avoid the broken or
9520# incompatible versions:
9521# SysV /etc/install, /usr/sbin/install
9522# SunOS /usr/etc/install
9523# IRIX /sbin/install
9524# AIX /bin/install
f09359cf 9525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9528# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9529echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
fe0895cf 9530echo "configure:9531: checking for a BSD compatible install" >&5
10f2d63a 9531if test -z "$INSTALL"; then
a0b9e27f
MB
9532if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534else
9535 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9536 for ac_dir in $PATH; do
9537 # Account for people who put trailing slashes in PATH elements.
9538 case "$ac_dir/" in
9539 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9540 *)
9541 # OSF1 and SCO ODT 3.0 have their own names for install.
9542 # Don't use installbsd from OSF since it installs stuff as root
9543 # by default.
9544 for ac_prog in ginstall scoinst install; do
9545 if test -f $ac_dir/$ac_prog; then
9546 if test $ac_prog = install &&
9547 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9548 # AIX install. It has an incompatible calling convention.
9549 :
9550 else
9551 ac_cv_path_install="$ac_dir/$ac_prog -c"
9552 break 2
9553 fi
9554 fi
10f2d63a 9555 done
a0b9e27f
MB
9556 ;;
9557 esac
9558 done
9559 IFS="$ac_save_IFS"
10f2d63a
VZ
9560
9561fi
9562 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9563 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9564 else
9565 # As a last resort, use the slow shell script. We don't cache a
9566 # path for INSTALL within a source directory, because that will
9567 # break other packages using the cache if that directory is
9568 # removed, or if the path is relative.
a0b9e27f 9569 INSTALL="$ac_install_sh"
10f2d63a
VZ
9570 fi
9571fi
a0b9e27f 9572echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9573
9574# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9575# It thinks the first close brace ends the variable substitution.
9576test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9577
a0b9e27f 9578test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9579
10f2d63a
VZ
9580test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9581
8284b0c5 9582
1d1b75ac
VZ
9583case ${INSTALL} in
9584 /* ) # Absolute
9585 ;;
4f5a7f74
VZ
9586 ?:* ) # Drive letter, considered as absolute.
9587 ;;
3bd8fb5f 9588 *)
1d1b75ac
VZ
9589 INSTALL=`pwd`/${INSTALL} ;;
9590esac
9591
4f5a7f74
VZ
9592case ${host} in
9593 *-hp-hpux* )
9594 INSTALL_DIR="mkdir"
9595 ;;
9596
9597 *) INSTALL_DIR="$INSTALL -d"
9598 ;;
9599esac
9600
8284b0c5 9601
6054113a
GD
9602case "${host}" in
9603
b5853384 9604 powerpc-*-darwin* )
eb99ae0b
GD
9605 INSTALL_PROGRAM="cp -fp"
9606 INSTALL_DATA="cp -fp"
6054113a
GD
9607 ;;
9608 *)
9609 ;;
d6853540 9610esac
698dcdb6 9611
10f2d63a
VZ
9612# Extract the first word of "strip", so it can be a program name with args.
9613set dummy strip; ac_word=$2
a0b9e27f 9614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9615echo "configure:9616: checking for $ac_word" >&5
a0b9e27f
MB
9616if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9618else
9619 if test -n "$STRIP"; then
9620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9621else
a0b9e27f
MB
9622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9623 ac_dummy="$PATH"
9624 for ac_dir in $ac_dummy; do
9625 test -z "$ac_dir" && ac_dir=.
9626 if test -f $ac_dir/$ac_word; then
9627 ac_cv_prog_STRIP="strip"
9628 break
9629 fi
9630 done
9631 IFS="$ac_save_ifs"
10f2d63a
VZ
9632 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9633fi
9634fi
a0b9e27f 9635STRIP="$ac_cv_prog_STRIP"
10f2d63a 9636if test -n "$STRIP"; then
a0b9e27f 9637 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9638else
a0b9e27f 9639 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9640fi
9641
5c6fa7d2 9642
a0b9e27f 9643echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
fe0895cf 9644echo "configure:9645: checking if make is GNU make" >&5
a0b9e27f
MB
9645if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9647else
a0b9e27f 9648
414eab6d 9649 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9650 egrep -s GNU > /dev/null); then
414eab6d
VZ
9651 wx_cv_prog_makeisgnu="yes"
9652 else
9653 wx_cv_prog_makeisgnu="no"
9654 fi
9655
9656fi
a0b9e27f
MB
9657
9658echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9659
9660if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9661 IF_GNU_MAKE=""
9662else
9663 IF_GNU_MAKE="#"
9664fi
9665
8284b0c5
MB
9666
9667
414eab6d 9668if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9669echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
fe0895cf 9670echo "configure:9671: checking if make supports VPATH" >&5
a0b9e27f
MB
9671if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9673else
a0b9e27f 9674
10f2d63a
VZ
9675cat - << EOF > confMake
9676check : file
9677 cp \$? \$@
9678 cp \$? final_file
9679EOF
9680
9681if test ! -d sub ; then
9682 mkdir sub
9683fi
9684echo dummy > sub/file
f6bcfd97 9685${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9686RESULT=$?
9687rm -f sub/file check final_file confMake
9688rmdir sub
9689if test "$RESULT" = 0; then
04e7a216 9690 wx_cv_prog_makevpath="yes"
10f2d63a 9691else
04e7a216
VZ
9692 wx_cv_prog_makevpath="no"
9693fi
9694
9695fi
a0b9e27f
MB
9696
9697echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9698
9699if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9700{ echo "configure: error:
5c6fa7d2
RR
9701You need a make-utility that is able to use the variable
9702VPATH correctly.
9703If your version of make does not support VPATH correctly,
9704please install GNU-make (possibly as gmake), and start
9705configure with the following command:
9706export MAKE=gmake; ./configure for sh-type shells
9707setenv MAKE gmake; ./configure for csh-type shells
9708Also please do remember to use gmake in this case every time
9709you are trying to compile.
a0b9e27f
MB
9710" 1>&2; exit 1; }
9711fi fi
10f2d63a
VZ
9712for ac_prog in 'bison -y' byacc
9713do
a0b9e27f 9714# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9715set dummy $ac_prog; ac_word=$2
a0b9e27f 9716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9717echo "configure:9718: checking for $ac_word" >&5
a0b9e27f
MB
9718if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9720else
9721 if test -n "$YACC"; then
9722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9723else
a0b9e27f
MB
9724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9725 ac_dummy="$PATH"
9726 for ac_dir in $ac_dummy; do
9727 test -z "$ac_dir" && ac_dir=.
9728 if test -f $ac_dir/$ac_word; then
9729 ac_cv_prog_YACC="$ac_prog"
9730 break
9731 fi
9732 done
9733 IFS="$ac_save_ifs"
10f2d63a
VZ
9734fi
9735fi
a0b9e27f 9736YACC="$ac_cv_prog_YACC"
10f2d63a 9737if test -n "$YACC"; then
a0b9e27f 9738 echo "$ac_t""$YACC" 1>&6
10f2d63a 9739else
a0b9e27f 9740 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9741fi
9742
a0b9e27f 9743test -n "$YACC" && break
10f2d63a
VZ
9744done
9745test -n "$YACC" || YACC="yacc"
9746
8284b0c5 9747
a0b9e27f
MB
9748# Extract the first word of "flex", so it can be a program name with args.
9749set dummy flex; ac_word=$2
9750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 9751echo "configure:9752: checking for $ac_word" >&5
a0b9e27f
MB
9752if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9754else
9755 if test -n "$LEX"; then
9756 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9757else
a0b9e27f
MB
9758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9759 ac_dummy="$PATH"
9760 for ac_dir in $ac_dummy; do
9761 test -z "$ac_dir" && ac_dir=.
9762 if test -f $ac_dir/$ac_word; then
9763 ac_cv_prog_LEX="flex"
9764 break
9765 fi
9766 done
9767 IFS="$ac_save_ifs"
9768 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9769fi
9770fi
a0b9e27f 9771LEX="$ac_cv_prog_LEX"
10f2d63a 9772if test -n "$LEX"; then
a0b9e27f 9773 echo "$ac_t""$LEX" 1>&6
10f2d63a 9774else
a0b9e27f 9775 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9776fi
9777
9778if test -z "$LEXLIB"
9779then
a0b9e27f
MB
9780 case "$LEX" in
9781 flex*) ac_lib=fl ;;
9782 *) ac_lib=l ;;
9783 esac
9784 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
fe0895cf 9785echo "configure:9786: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9786ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789else
9790 ac_save_LIBS="$LIBS"
9791LIBS="-l$ac_lib $LIBS"
9792cat > conftest.$ac_ext <<EOF
fe0895cf 9793#line 9794 "configure"
247f5006 9794#include "confdefs.h"
247f5006 9795/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9796/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9797 builtin and then its argument prototype would still apply. */
9798char yywrap();
10f2d63a 9799
a0b9e27f
MB
9800int main() {
9801yywrap()
9802; return 0; }
9803EOF
fe0895cf 9804if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9805 rm -rf conftest*
9806 eval "ac_cv_lib_$ac_lib_var=yes"
9807else
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 rm -rf conftest*
9811 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9812fi
a0b9e27f
MB
9813rm -f conftest*
9814LIBS="$ac_save_LIBS"
8284b0c5 9815
10f2d63a 9816fi
a0b9e27f
MB
9817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9818 echo "$ac_t""yes" 1>&6
9819 LEXLIB="-l$ac_lib"
8284b0c5 9820else
a0b9e27f 9821 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9822fi
9823
a0b9e27f 9824fi
10f2d63a
VZ
9825
9826
a0b9e27f 9827echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
fe0895cf 9828echo "configure:9829: checking whether ln -s works" >&5
a0b9e27f
MB
9829if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9831else
a0b9e27f
MB
9832 rm -f conftestdata
9833if ln -s X conftestdata 2>/dev/null
9834then
9835 rm -f conftestdata
9836 ac_cv_prog_LN_S="ln -s"
10f2d63a 9837else
a0b9e27f 9838 ac_cv_prog_LN_S=ln
10f2d63a 9839fi
a0b9e27f
MB
9840fi
9841LN_S="$ac_cv_prog_LN_S"
9842if test "$ac_cv_prog_LN_S" = "ln -s"; then
9843 echo "$ac_t""yes" 1>&6
10f2d63a 9844else
a0b9e27f 9845 echo "$ac_t""no" 1>&6
5c6fa7d2 9846fi
5c6fa7d2 9847
247f5006 9848
2b5f62a0
VZ
9849case "${host}" in
9850 *-pc-os2_emx | *-pc-os2-emx )
9851 LIBS="$LIBS -lstdcpp"
9852 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9853 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
fe0895cf 9854echo "configure:9855: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9855ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9858else
9859 ac_save_LIBS="$LIBS"
9860LIBS="-lcExt $LIBS"
9861cat > conftest.$ac_ext <<EOF
fe0895cf 9862#line 9863 "configure"
2b5f62a0
VZ
9863#include "confdefs.h"
9864/* Override any gcc2 internal prototype to avoid an error. */
9865/* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9867char drand48();
9868
9869int main() {
9870drand48()
9871; return 0; }
9872EOF
fe0895cf 9873if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9874 rm -rf conftest*
9875 eval "ac_cv_lib_$ac_lib_var=yes"
9876else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 eval "ac_cv_lib_$ac_lib_var=no"
9881fi
9882rm -f conftest*
9883LIBS="$ac_save_LIBS"
9884
9885fi
9886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888 LIBS="$LIBS -lcExt"
9889else
9890 echo "$ac_t""no" 1>&6
9891fi
9892
9893 else
9894 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9895 fi
9896 ;;
9897esac
9898
a0b9e27f 9899
ac0c4cc3 9900if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9901 for ac_hdr in strings.h
9902do
9903ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9904echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 9905echo "configure:9906: checking for $ac_hdr" >&5
a0b9e27f
MB
9906if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908else
9909 cat > conftest.$ac_ext <<EOF
fe0895cf 9910#line 9911 "configure"
a0b9e27f
MB
9911#include "confdefs.h"
9912#include <$ac_hdr>
9913EOF
9914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9915{ (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917if test -z "$ac_err"; then
9918 rm -rf conftest*
9919 eval "ac_cv_header_$ac_safe=yes"
9920else
9921 echo "$ac_err" >&5
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=no"
21d1c967 9926fi
247f5006 9927rm -f conftest*
19bc6aad 9928fi
a0b9e27f
MB
9929if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9932 cat >> confdefs.h <<EOF
9933#define $ac_tr_hdr 1
9934EOF
9935
247f5006 9936else
a0b9e27f 9937 echo "$ac_t""no" 1>&6
18dbb1f6 9938fi
a0b9e27f 9939done
247f5006 9940
90dd450c 9941fi
90dd450c 9942
a0b9e27f
MB
9943for ac_hdr in stdlib.h
9944do
9945ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9946echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 9947echo "configure:9948: checking for $ac_hdr" >&5
a0b9e27f
MB
9948if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950else
9951 cat > conftest.$ac_ext <<EOF
fe0895cf 9952#line 9953 "configure"
90dd450c 9953#include "confdefs.h"
a0b9e27f
MB
9954#include <$ac_hdr>
9955EOF
9956ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9957{ (eval echo configure:9958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9958ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9959if test -z "$ac_err"; then
9960 rm -rf conftest*
9961 eval "ac_cv_header_$ac_safe=yes"
9962else
9963 echo "$ac_err" >&5
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
9967 eval "ac_cv_header_$ac_safe=no"
9968fi
9969rm -f conftest*
9970fi
9971if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9972 echo "$ac_t""yes" 1>&6
9973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9974 cat >> confdefs.h <<EOF
9975#define $ac_tr_hdr 1
9976EOF
9977
8284b0c5 9978else
a0b9e27f 9979 echo "$ac_t""no" 1>&6
21d1c967 9980fi
a0b9e27f
MB
9981done
9982
9983for ac_hdr in malloc.h
9984do
9985ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9986echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 9987echo "configure:9988: checking for $ac_hdr" >&5
a0b9e27f
MB
9988if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9990else
9991 cat > conftest.$ac_ext <<EOF
fe0895cf 9992#line 9993 "configure"
a0b9e27f
MB
9993#include "confdefs.h"
9994#include <$ac_hdr>
9995EOF
9996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 9997{ (eval echo configure:9998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9999if test -z "$ac_err"; then
10000 rm -rf conftest*
10001 eval "ac_cv_header_$ac_safe=yes"
10002else
10003 echo "$ac_err" >&5
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 rm -rf conftest*
10007 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10008fi
a0b9e27f 10009rm -f conftest*
90dd450c 10010fi
a0b9e27f
MB
10011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10014 cat >> confdefs.h <<EOF
10015#define $ac_tr_hdr 1
10016EOF
10017
10018else
10019 echo "$ac_t""no" 1>&6
21d1c967 10020fi
a0b9e27f 10021done
247f5006 10022
a0b9e27f
MB
10023for ac_hdr in unistd.h
10024do
10025ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10026echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10027echo "configure:10028: checking for $ac_hdr" >&5
a0b9e27f
MB
10028if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10030else
10031 cat > conftest.$ac_ext <<EOF
fe0895cf 10032#line 10033 "configure"
a0b9e27f
MB
10033#include "confdefs.h"
10034#include <$ac_hdr>
10035EOF
10036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10037{ (eval echo configure:10038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10039if test -z "$ac_err"; then
10040 rm -rf conftest*
10041 eval "ac_cv_header_$ac_safe=yes"
10042else
10043 echo "$ac_err" >&5
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 eval "ac_cv_header_$ac_safe=no"
247f5006 10048fi
a0b9e27f
MB
10049rm -f conftest*
10050fi
10051if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10054 cat >> confdefs.h <<EOF
10055#define $ac_tr_hdr 1
10056EOF
10057
10058else
10059 echo "$ac_t""no" 1>&6
10060fi
10061done
90dd450c 10062
a0b9e27f 10063for ac_hdr in wchar.h
21d1c967 10064do
a0b9e27f
MB
10065ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10066echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10067echo "configure:10068: checking for $ac_hdr" >&5
a0b9e27f
MB
10068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070else
10071 cat > conftest.$ac_ext <<EOF
fe0895cf 10072#line 10073 "configure"
4f14bcd8 10073#include "confdefs.h"
a0b9e27f
MB
10074#include <$ac_hdr>
10075EOF
10076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10077{ (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10079if test -z "$ac_err"; then
10080 rm -rf conftest*
10081 eval "ac_cv_header_$ac_safe=yes"
10082else
10083 echo "$ac_err" >&5
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 eval "ac_cv_header_$ac_safe=no"
10088fi
10089rm -f conftest*
10090fi
10091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10094 cat >> confdefs.h <<EOF
10095#define $ac_tr_hdr 1
10096EOF
10097
10098else
10099 echo "$ac_t""no" 1>&6
21d1c967
GD
10100fi
10101done
4f14bcd8 10102
5c6fa7d2 10103
a0b9e27f
MB
10104if test "$ac_cv_header_wchar_h" != "yes"; then
10105 for ac_hdr in wcstr.h
21d1c967 10106do
a0b9e27f
MB
10107ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10108echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10109echo "configure:10110: checking for $ac_hdr" >&5
a0b9e27f
MB
10110if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112else
10113 cat > conftest.$ac_ext <<EOF
fe0895cf 10114#line 10115 "configure"
d4158b5d 10115#include "confdefs.h"
a0b9e27f
MB
10116#include <$ac_hdr>
10117EOF
10118ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10119{ (eval echo configure:10120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10120ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10121if test -z "$ac_err"; then
10122 rm -rf conftest*
10123 eval "ac_cv_header_$ac_safe=yes"
10124else
10125 echo "$ac_err" >&5
10126 echo "configure: failed program was:" >&5
d4158b5d 10127 cat conftest.$ac_ext >&5
a0b9e27f
MB
10128 rm -rf conftest*
10129 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10130fi
a0b9e27f 10131rm -f conftest*
21d1c967 10132fi
a0b9e27f
MB
10133if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10136 cat >> confdefs.h <<EOF
10137#define $ac_tr_hdr 1
10138EOF
10139
10140else
10141 echo "$ac_t""no" 1>&6
d4158b5d 10142fi
21d1c967 10143done
f6bcfd97 10144
90dd450c 10145fi
90dd450c 10146
a0b9e27f 10147for ac_hdr in fnmatch.h
21d1c967 10148do
a0b9e27f
MB
10149ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10150echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10151echo "configure:10152: checking for $ac_hdr" >&5
a0b9e27f
MB
10152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10154else
10155 cat > conftest.$ac_ext <<EOF
fe0895cf 10156#line 10157 "configure"
90dd450c 10157#include "confdefs.h"
a0b9e27f
MB
10158#include <$ac_hdr>
10159EOF
10160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10161{ (eval echo configure:10162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10163if test -z "$ac_err"; then
10164 rm -rf conftest*
10165 eval "ac_cv_header_$ac_safe=yes"
10166else
10167 echo "$ac_err" >&5
10168 echo "configure: failed program was:" >&5
3a922bb4 10169 cat conftest.$ac_ext >&5
a0b9e27f
MB
10170 rm -rf conftest*
10171 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10172fi
a0b9e27f 10173rm -f conftest*
4f14bcd8 10174fi
a0b9e27f
MB
10175if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10178 cat >> confdefs.h <<EOF
10179#define $ac_tr_hdr 1
10180EOF
10181
10182else
10183 echo "$ac_t""no" 1>&6
21d1c967
GD
10184fi
10185done
90dd450c 10186
5c6fa7d2 10187
a0b9e27f
MB
10188if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10189 for ac_func in fnmatch
21d1c967 10190do
a0b9e27f 10191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 10192echo "configure:10193: checking for $ac_func" >&5
a0b9e27f
MB
10193if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10195else
a0b9e27f 10196 cat > conftest.$ac_ext <<EOF
fe0895cf 10197#line 10198 "configure"
a0b9e27f
MB
10198#include "confdefs.h"
10199/* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char $ac_func(); below. */
10201#include <assert.h>
10202/* Override any gcc2 internal prototype to avoid an error. */
10203/* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10205char $ac_func();
10206
10207int main() {
10208
10209/* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10213choke me
10214#else
10215$ac_func();
10216#endif
10217
10218; return 0; }
10219EOF
fe0895cf 10220if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10221 rm -rf conftest*
10222 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10223else
a0b9e27f 10224 echo "configure: failed program was:" >&5
8284b0c5 10225 cat conftest.$ac_ext >&5
a0b9e27f
MB
10226 rm -rf conftest*
10227 eval "ac_cv_func_$ac_func=no"
8284b0c5 10228fi
a0b9e27f 10229rm -f conftest*
8284b0c5 10230fi
32832908 10231
a0b9e27f
MB
10232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10235 cat >> confdefs.h <<EOF
10236#define $ac_tr_func 1
10237EOF
10238
10239else
10240 echo "$ac_t""no" 1>&6
21d1c967
GD
10241fi
10242done
90dd450c 10243
a0b9e27f 10244fi
90dd450c 10245
a0b9e27f 10246for ac_hdr in langinfo.h
21d1c967 10247do
a0b9e27f
MB
10248ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10249echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10250echo "configure:10251: checking for $ac_hdr" >&5
a0b9e27f
MB
10251if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253else
10254 cat > conftest.$ac_ext <<EOF
fe0895cf 10255#line 10256 "configure"
247f5006 10256#include "confdefs.h"
a0b9e27f
MB
10257#include <$ac_hdr>
10258EOF
10259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10260{ (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10261ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262if test -z "$ac_err"; then
10263 rm -rf conftest*
10264 eval "ac_cv_header_$ac_safe=yes"
10265else
10266 echo "$ac_err" >&5
10267 echo "configure: failed program was:" >&5
90dd450c 10268 cat conftest.$ac_ext >&5
a0b9e27f
MB
10269 rm -rf conftest*
10270 eval "ac_cv_header_$ac_safe=no"
90dd450c 10271fi
a0b9e27f 10272rm -f conftest*
4f14bcd8 10273fi
a0b9e27f
MB
10274if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10275 echo "$ac_t""yes" 1>&6
10276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10277 cat >> confdefs.h <<EOF
10278#define $ac_tr_hdr 1
10279EOF
10280
10281else
10282 echo "$ac_t""no" 1>&6
21d1c967
GD
10283fi
10284done
3a922bb4 10285
8284b0c5 10286
4f5a7f74
VZ
10287case "${host}" in
10288 *-pc-os2_emx | *-pc-os2-emx )
10289 if test $ac_cv_header_langinfo_h = "yes"; then
10290 LIBS="$LIBS -lintl"
10291 fi
10292 ;;
10293esac
1542ea39 10294
a0b9e27f
MB
10295if test "$wxUSE_GUI" = "yes"; then
10296 if test "$wxUSE_UNIX" = "yes"; then
10297 for ac_hdr in X11/XKBlib.h
21d1c967 10298do
a0b9e27f
MB
10299ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10300echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 10301echo "configure:10302: checking for $ac_hdr" >&5
a0b9e27f
MB
10302if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10304else
10305 cat > conftest.$ac_ext <<EOF
fe0895cf 10306#line 10307 "configure"
90dd450c 10307#include "confdefs.h"
a0b9e27f
MB
10308#include <$ac_hdr>
10309EOF
10310ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 10311{ (eval echo configure:10312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10312ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10313if test -z "$ac_err"; then
10314 rm -rf conftest*
10315 eval "ac_cv_header_$ac_safe=yes"
10316else
10317 echo "$ac_err" >&5
10318 echo "configure: failed program was:" >&5
90dd450c 10319 cat conftest.$ac_ext >&5
a0b9e27f
MB
10320 rm -rf conftest*
10321 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10322fi
a0b9e27f 10323rm -f conftest*
90dd450c 10324fi
a0b9e27f
MB
10325if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10326 echo "$ac_t""yes" 1>&6
10327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10328 cat >> confdefs.h <<EOF
10329#define $ac_tr_hdr 1
10330EOF
10331
10332else
10333 echo "$ac_t""no" 1>&6
247f5006 10334fi
247f5006
VZ
10335done
10336
a0b9e27f
MB
10337 fi
10338fi
247f5006 10339
247f5006 10340
a0b9e27f 10341echo $ac_n "checking for working const""... $ac_c" 1>&6
fe0895cf 10342echo "configure:10343: checking for working const" >&5
a0b9e27f
MB
10343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10345else
a0b9e27f 10346 cat > conftest.$ac_ext <<EOF
fe0895cf 10347#line 10348 "configure"
a0b9e27f
MB
10348#include "confdefs.h"
10349
10350int main() {
10351
10352/* Ultrix mips cc rejects this. */
10353typedef int charset[2]; const charset x;
10354/* SunOS 4.1.1 cc rejects this. */
10355char const *const *ccp;
10356char **p;
10357/* NEC SVR4.0.2 mips cc rejects this. */
10358struct point {int x, y;};
10359static struct point const zero = {0,0};
10360/* AIX XL C 1.02.0.0 rejects this.
10361 It does not let you subtract one const X* pointer from another in an arm
10362 of an if-expression whose if-part is not a constant expression */
10363const char *g = "string";
10364ccp = &g + (g ? g-g : 0);
10365/* HPUX 7.0 cc rejects these. */
10366++ccp;
10367p = (char**) ccp;
10368ccp = (char const *const *) p;
10369{ /* SCO 3.2v4 cc rejects this. */
10370 char *t;
10371 char const *s = 0 ? (char *) 0 : (char const *) 0;
10372
10373 *t++ = 0;
10374}
10375{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10376 int x[] = {25, 17};
10377 const int *foo = &x[0];
10378 ++foo;
10379}
10380{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10381 typedef const int *iptr;
10382 iptr p = 0;
10383 ++p;
10384}
10385{ /* AIX XL C 1.02.0.0 rejects this saying
10386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10387 struct s { int j; const int *ap[3]; };
10388 struct s *b; b->j = 5;
10389}
10390{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10391 const int foo = 10;
10392}
10393
10394; return 0; }
10395EOF
fe0895cf 10396if { (eval echo configure:10397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10397 rm -rf conftest*
10398 ac_cv_c_const=yes
247f5006 10399else
a0b9e27f 10400 echo "configure: failed program was:" >&5
247f5006 10401 cat conftest.$ac_ext >&5
a0b9e27f
MB
10402 rm -rf conftest*
10403 ac_cv_c_const=no
247f5006 10404fi
a0b9e27f 10405rm -f conftest*
21d1c967 10406fi
247f5006 10407
a0b9e27f
MB
10408echo "$ac_t""$ac_cv_c_const" 1>&6
10409if test $ac_cv_c_const = no; then
10410 cat >> confdefs.h <<\EOF
10411#define const
10412EOF
10f2d63a 10413
90dd450c 10414fi
81809c07 10415
a0b9e27f 10416echo $ac_n "checking for inline""... $ac_c" 1>&6
fe0895cf 10417echo "configure:10418: checking for inline" >&5
a0b9e27f
MB
10418if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10420else
a0b9e27f
MB
10421 ac_cv_c_inline=no
10422for ac_kw in inline __inline__ __inline; do
10423 cat > conftest.$ac_ext <<EOF
fe0895cf 10424#line 10425 "configure"
a0b9e27f
MB
10425#include "confdefs.h"
10426
10427int main() {
10428} $ac_kw foo() {
10429; return 0; }
10430EOF
fe0895cf 10431if { (eval echo configure:10432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10432 rm -rf conftest*
10433 ac_cv_c_inline=$ac_kw; break
247f5006 10434else
a0b9e27f 10435 echo "configure: failed program was:" >&5
247f5006 10436 cat conftest.$ac_ext >&5
247f5006 10437fi
a0b9e27f
MB
10438rm -f conftest*
10439done
247f5006
VZ
10440
10441fi
10442
a0b9e27f
MB
10443echo "$ac_t""$ac_cv_c_inline" 1>&6
10444case "$ac_cv_c_inline" in
10445 inline | yes) ;;
10446 no) cat >> confdefs.h <<\EOF
10447#define inline
10448EOF
10449 ;;
10450 *) cat >> confdefs.h <<EOF
10451#define inline $ac_cv_c_inline
10452EOF
10453 ;;
10454esac
247f5006 10455
247f5006 10456
a0b9e27f 10457echo $ac_n "checking size of char""... $ac_c" 1>&6
fe0895cf 10458echo "configure:10459: checking size of char" >&5
a0b9e27f
MB
10459if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10461else
10462 if test "$cross_compiling" = yes; then
10463 ac_cv_sizeof_char=1
10464else
10465 cat > conftest.$ac_ext <<EOF
fe0895cf 10466#line 10467 "configure"
4f14bcd8 10467#include "confdefs.h"
a0b9e27f 10468#include <stdio.h>
a0b9e27f 10469main()
247f5006 10470{
a0b9e27f
MB
10471 FILE *f=fopen("conftestval", "w");
10472 if (!f) exit(1);
10473 fprintf(f, "%d\n", sizeof(char));
10474 exit(0);
52127426 10475}
a0b9e27f 10476EOF
fe0895cf 10477if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10478then
10479 ac_cv_sizeof_char=`cat conftestval`
247f5006 10480else
a0b9e27f 10481 echo "configure: failed program was:" >&5
247f5006 10482 cat conftest.$ac_ext >&5
a0b9e27f
MB
10483 rm -fr conftest*
10484 ac_cv_sizeof_char=0
247f5006 10485fi
a0b9e27f 10486rm -fr conftest*
247f5006 10487fi
247f5006
VZ
10488
10489fi
a0b9e27f
MB
10490echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10491cat >> confdefs.h <<EOF
10492#define SIZEOF_CHAR $ac_cv_sizeof_char
10493EOF
247f5006 10494
247f5006 10495
a0b9e27f 10496echo $ac_n "checking size of short""... $ac_c" 1>&6
fe0895cf 10497echo "configure:10498: checking size of short" >&5
a0b9e27f
MB
10498if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10500else
a0b9e27f
MB
10501 if test "$cross_compiling" = yes; then
10502 ac_cv_sizeof_short=2
247f5006 10503else
a0b9e27f 10504 cat > conftest.$ac_ext <<EOF
fe0895cf 10505#line 10506 "configure"
a0b9e27f
MB
10506#include "confdefs.h"
10507#include <stdio.h>
a0b9e27f
MB
10508main()
10509{
10510 FILE *f=fopen("conftestval", "w");
10511 if (!f) exit(1);
10512 fprintf(f, "%d\n", sizeof(short));
10513 exit(0);
10514}
10515EOF
fe0895cf 10516if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10517then
10518 ac_cv_sizeof_short=`cat conftestval`
247f5006 10519else
a0b9e27f
MB
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -fr conftest*
10523 ac_cv_sizeof_short=0
247f5006 10524fi
a0b9e27f 10525rm -fr conftest*
247f5006
VZ
10526fi
10527
247f5006 10528fi
a0b9e27f
MB
10529echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10530cat >> confdefs.h <<EOF
10531#define SIZEOF_SHORT $ac_cv_sizeof_short
10532EOF
247f5006
VZ
10533
10534
a0b9e27f 10535echo $ac_n "checking size of void *""... $ac_c" 1>&6
fe0895cf 10536echo "configure:10537: checking size of void *" >&5
a0b9e27f
MB
10537if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10539else
10540 if test "$cross_compiling" = yes; then
10541 ac_cv_sizeof_void_p=4
247f5006 10542else
a0b9e27f 10543 cat > conftest.$ac_ext <<EOF
fe0895cf 10544#line 10545 "configure"
247f5006 10545#include "confdefs.h"
247f5006 10546#include <stdio.h>
a0b9e27f 10547main()
247f5006 10548{
a0b9e27f
MB
10549 FILE *f=fopen("conftestval", "w");
10550 if (!f) exit(1);
10551 fprintf(f, "%d\n", sizeof(void *));
10552 exit(0);
5c6fa7d2 10553}
a0b9e27f 10554EOF
fe0895cf 10555if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10556then
10557 ac_cv_sizeof_void_p=`cat conftestval`
10558else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -fr conftest*
10562 ac_cv_sizeof_void_p=0
10563fi
10564rm -fr conftest*
10565fi
8284b0c5 10566
247f5006 10567fi
a0b9e27f
MB
10568echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10569cat >> confdefs.h <<EOF
10570#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10571EOF
247f5006 10572
247f5006 10573
a0b9e27f 10574echo $ac_n "checking size of int""... $ac_c" 1>&6
fe0895cf 10575echo "configure:10576: checking size of int" >&5
a0b9e27f
MB
10576if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10578else
a0b9e27f
MB
10579 if test "$cross_compiling" = yes; then
10580 ac_cv_sizeof_int=4
10581else
10582 cat > conftest.$ac_ext <<EOF
fe0895cf 10583#line 10584 "configure"
247f5006 10584#include "confdefs.h"
a0b9e27f 10585#include <stdio.h>
a0b9e27f 10586main()
247f5006 10587{
a0b9e27f
MB
10588 FILE *f=fopen("conftestval", "w");
10589 if (!f) exit(1);
10590 fprintf(f, "%d\n", sizeof(int));
10591 exit(0);
247f5006 10592}
a0b9e27f 10593EOF
fe0895cf 10594if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10595then
10596 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10597else
a0b9e27f
MB
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -fr conftest*
10601 ac_cv_sizeof_int=0
21d1c967 10602fi
a0b9e27f 10603rm -fr conftest*
698dcdb6 10604fi
4f14bcd8 10605
21d1c967 10606fi
a0b9e27f
MB
10607echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10608cat >> confdefs.h <<EOF
10609#define SIZEOF_INT $ac_cv_sizeof_int
10610EOF
4f14bcd8 10611
5c6fa7d2 10612
a0b9e27f 10613echo $ac_n "checking size of long""... $ac_c" 1>&6
fe0895cf 10614echo "configure:10615: checking size of long" >&5
a0b9e27f
MB
10615if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10617else
247f5006 10618 if test "$cross_compiling" = yes; then
a0b9e27f 10619 ac_cv_sizeof_long=4
247f5006 10620else
a0b9e27f 10621 cat > conftest.$ac_ext <<EOF
fe0895cf 10622#line 10623 "configure"
247f5006 10623#include "confdefs.h"
a0b9e27f 10624#include <stdio.h>
a0b9e27f 10625main()
247f5006 10626{
a0b9e27f
MB
10627 FILE *f=fopen("conftestval", "w");
10628 if (!f) exit(1);
10629 fprintf(f, "%d\n", sizeof(long));
10630 exit(0);
247f5006 10631}
a0b9e27f 10632EOF
fe0895cf 10633if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10634then
10635 ac_cv_sizeof_long=`cat conftestval`
247f5006 10636else
a0b9e27f
MB
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -fr conftest*
10640 ac_cv_sizeof_long=0
247f5006 10641fi
a0b9e27f 10642rm -fr conftest*
247f5006 10643fi
247f5006 10644
5c6fa7d2 10645fi
a0b9e27f
MB
10646echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10647cat >> confdefs.h <<EOF
10648#define SIZEOF_LONG $ac_cv_sizeof_long
10649EOF
247f5006 10650
a0b9e27f
MB
10651
10652
10653case "${host}" in
10654 arm-*-linux* )
10655 echo $ac_n "checking size of long long""... $ac_c" 1>&6
fe0895cf 10656echo "configure:10657: checking size of long long" >&5
a0b9e27f
MB
10657if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10659else
10660 if test "$cross_compiling" = yes; then
10661 ac_cv_sizeof_long_long=8
10662else
10663 cat > conftest.$ac_ext <<EOF
fe0895cf 10664#line 10665 "configure"
247f5006 10665#include "confdefs.h"
a0b9e27f 10666#include <stdio.h>
a0b9e27f 10667main()
247f5006 10668{
a0b9e27f
MB
10669 FILE *f=fopen("conftestval", "w");
10670 if (!f) exit(1);
10671 fprintf(f, "%d\n", sizeof(long long));
10672 exit(0);
247f5006 10673}
a0b9e27f 10674EOF
fe0895cf 10675if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10676then
10677 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10678else
a0b9e27f
MB
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -fr conftest*
10682 ac_cv_sizeof_long_long=0
5c6fa7d2 10683fi
a0b9e27f 10684rm -fr conftest*
5c6fa7d2 10685fi
8284b0c5 10686
a0b9e27f
MB
10687fi
10688echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10689cat >> confdefs.h <<EOF
10690#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10691EOF
10692
10693
10694 ;;
4f57cf11 10695 *-hp-hpux* )
a0b9e27f 10696 echo $ac_n "checking size of long long""... $ac_c" 1>&6
fe0895cf 10697echo "configure:10698: checking size of long long" >&5
a0b9e27f
MB
10698if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10700else
10701 if test "$cross_compiling" = yes; then
a0b9e27f 10702 ac_cv_sizeof_long_long=0
8284b0c5 10703else
a0b9e27f 10704 cat > conftest.$ac_ext <<EOF
fe0895cf 10705#line 10706 "configure"
8284b0c5
MB
10706#include "confdefs.h"
10707#include <stdio.h>
a0b9e27f 10708main()
8284b0c5 10709{
a0b9e27f
MB
10710 FILE *f=fopen("conftestval", "w");
10711 if (!f) exit(1);
10712 fprintf(f, "%d\n", sizeof(long long));
10713 exit(0);
8284b0c5 10714}
a0b9e27f 10715EOF
fe0895cf 10716if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10717then
10718 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10719else
a0b9e27f
MB
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 rm -fr conftest*
5c6fa7d2 10723 ac_cv_sizeof_long_long=0
52127426 10724fi
a0b9e27f
MB
10725rm -fr conftest*
10726fi
10727
4f57cf11
GD
10728fi
10729echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10730cat >> confdefs.h <<EOF
10731#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10732EOF
10733
10734
10735 if test "$ac_cv_sizeof_long_long" != "0"; then
10736 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10737 fi
10738 ;;
10739 * )
10740 echo $ac_n "checking size of long long""... $ac_c" 1>&6
fe0895cf 10741echo "configure:10742: checking size of long long" >&5
4f57cf11
GD
10742if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10744else
10745 if test "$cross_compiling" = yes; then
10746 ac_cv_sizeof_long_long=0
10747else
10748 cat > conftest.$ac_ext <<EOF
fe0895cf 10749#line 10750 "configure"
4f57cf11
GD
10750#include "confdefs.h"
10751#include <stdio.h>
10752main()
10753{
10754 FILE *f=fopen("conftestval", "w");
10755 if (!f) exit(1);
10756 fprintf(f, "%d\n", sizeof(long long));
10757 exit(0);
10758}
10759EOF
fe0895cf 10760if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10761then
10762 ac_cv_sizeof_long_long=`cat conftestval`
10763else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -fr conftest*
10767 ac_cv_sizeof_long_long=0
10768fi
10769rm -fr conftest*
10770fi
10771
7b4a847f 10772fi
a0b9e27f
MB
10773echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10774cat >> confdefs.h <<EOF
21d1c967 10775#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10776EOF
9e691f46 10777
8284b0c5 10778
21d1c967
GD
10779esac
10780
a0b9e27f 10781echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
fe0895cf 10782echo "configure:10783: checking size of wchar_t" >&5
a0b9e27f
MB
10783if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10785else
a0b9e27f 10786
21d1c967 10787 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10788
10789 case "${host}" in
10790 *-pc-msdosdjgpp )
10791 wx_cv_sizeof_wchar_t=0
10792 ;;
10793 * )
10794 wx_cv_sizeof_wchar_t=4
10795 ;;
10796 esac
10797
a0b9e27f 10798
6f72b082 10799else
a0b9e27f 10800 cat > conftest.$ac_ext <<EOF
fe0895cf 10801#line 10802 "configure"
6f72b082 10802#include "confdefs.h"
21d1c967 10803
2b5f62a0
VZ
10804 /* DJGPP only has fake wchar_t: */
10805 #ifdef __DJGPP__
10806 # error "fake wchar_t"
10807 #endif
21d1c967
GD
10808 #ifdef HAVE_WCHAR_H
10809 # ifdef __CYGWIN__
10810 # include <stddef.h>
10811 # endif
10812 # include <wchar.h>
10813 #endif
10814 #ifdef HAVE_STDLIB_H
10815 # include <stdlib.h>
10816 #endif
10817 #include <stdio.h>
10818 int main()
10819 {
10820 FILE *f=fopen("conftestval", "w");
10821 if (!f) exit(1);
10822 fprintf(f, "%i", sizeof(wchar_t));
10823 exit(0);
10824 }
a0b9e27f
MB
10825
10826EOF
fe0895cf 10827if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10828then
21d1c967 10829 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10830else
a0b9e27f
MB
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 rm -fr conftest*
10834 wx_cv_sizeof_wchar_t=0
6f72b082 10835fi
a0b9e27f 10836rm -fr conftest*
6f72b082 10837fi
6f72b082 10838
a0b9e27f 10839
3f345b47
VZ
10840fi
10841
a0b9e27f
MB
10842echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10843
10844cat >> confdefs.h <<EOF
21d1c967 10845#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10846EOF
90dd450c 10847
8284b0c5 10848
21d1c967
GD
10849# Check whether --enable-largefile or --disable-largefile was given.
10850if test "${enable_largefile+set}" = set; then
10851 enableval="$enable_largefile"
a0b9e27f
MB
10852 :
10853fi
3f345b47 10854
21d1c967
GD
10855if test "$enable_largefile" != no; then
10856 wx_largefile=no
a0b9e27f
MB
10857
10858 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
fe0895cf 10859echo "configure:10860: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10860if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862else
10863
10864 cat > conftest.$ac_ext <<EOF
fe0895cf 10865#line 10866 "configure"
90dd450c 10866#include "confdefs.h"
21d1c967
GD
10867#define _FILE_OFFSET_BITS 64
10868 #include <sys/types.h>
a0b9e27f 10869int main() {
21d1c967
GD
10870typedef struct {
10871 unsigned int field: sizeof(off_t) == 8;
10872} wxlf;
10873
a0b9e27f
MB
10874; return 0; }
10875EOF
fe0895cf 10876if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10877 rm -rf conftest*
21d1c967 10878 ac_cv_sys_file_offset_bits=64
f6bcfd97 10879else
a0b9e27f
MB
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10884fi
a0b9e27f
MB
10885rm -f conftest*
10886
10887
247f5006 10888fi
a0b9e27f
MB
10889
10890echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10891
10892 if test "$ac_cv_sys_file_offset_bits" != no; then
10893 wx_largefile=yes
a0b9e27f 10894 cat >> confdefs.h <<EOF
21d1c967 10895#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10896EOF
21d1c967
GD
10897
10898 fi
10899
10900 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10901
10902 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
fe0895cf 10903echo "configure:10904: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10904if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10905 echo $ac_n "(cached) $ac_c" 1>&6
10906else
10907
10908 cat > conftest.$ac_ext <<EOF
fe0895cf 10909#line 10910 "configure"
f6bcfd97 10910#include "confdefs.h"
21d1c967
GD
10911#define _LARGE_FILES 1
10912 #include <sys/types.h>
a0b9e27f 10913int main() {
21d1c967
GD
10914typedef struct {
10915 unsigned int field: sizeof(off_t) == 8;
10916} wxlf;
10917
a0b9e27f
MB
10918; return 0; }
10919EOF
fe0895cf 10920if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10921 rm -rf conftest*
21d1c967 10922 ac_cv_sys_large_files=1
f6bcfd97 10923else
a0b9e27f
MB
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 rm -rf conftest*
10927 ac_cv_sys_large_files=no
5c6fa7d2 10928fi
a0b9e27f
MB
10929rm -f conftest*
10930
10931
247f5006 10932fi
a0b9e27f
MB
10933
10934echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10935
21d1c967
GD
10936 if test "$ac_cv_sys_large_files" != no; then
10937 wx_largefile=yes
a0b9e27f 10938 cat >> confdefs.h <<EOF
21d1c967 10939#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10940EOF
90dd450c 10941
90dd450c
VZ
10942 fi
10943
90dd450c 10944 fi
90dd450c 10945
a0b9e27f 10946 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
fe0895cf 10947echo "configure:10948: checking if large file support is available" >&5
21d1c967 10948 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10949 cat >> confdefs.h <<\EOF
21d1c967 10950#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10951EOF
90dd450c 10952
90dd450c 10953 fi
a0b9e27f 10954 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10955fi
90dd450c 10956
8284b0c5 10957
f02444d0 10958if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10959 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10960 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10961 else
e26c13cf 10962 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10963 fi
e26c13cf 10964 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10965fi
10966
a0b9e27f 10967echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
fe0895cf 10968echo "configure:10969: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10969if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10971else
21d1c967
GD
10972 ac_cv_c_bigendian=unknown
10973# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10974cat > conftest.$ac_ext <<EOF
fe0895cf 10975#line 10976 "configure"
90dd450c 10976#include "confdefs.h"
21d1c967
GD
10977#include <sys/types.h>
10978#include <sys/param.h>
a0b9e27f 10979int main() {
21d1c967
GD
10980
10981#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10982 bogus endian macros
10983#endif
a0b9e27f
MB
10984; return 0; }
10985EOF
fe0895cf 10986if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10987 rm -rf conftest*
21d1c967 10988 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10989cat > conftest.$ac_ext <<EOF
fe0895cf 10990#line 10991 "configure"
90dd450c 10991#include "confdefs.h"
21d1c967
GD
10992#include <sys/types.h>
10993#include <sys/param.h>
a0b9e27f 10994int main() {
21d1c967
GD
10995
10996#if BYTE_ORDER != BIG_ENDIAN
10997 not big endian
10998#endif
a0b9e27f
MB
10999; return 0; }
11000EOF
fe0895cf 11001if { (eval echo configure:11002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11002 rm -rf conftest*
21d1c967 11003 ac_cv_c_bigendian=yes
3f345b47 11004else
a0b9e27f
MB
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 ac_cv_c_bigendian=no
3f345b47 11009fi
a0b9e27f 11010rm -f conftest*
3f345b47 11011else
a0b9e27f
MB
11012 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
3f345b47 11014fi
a0b9e27f 11015rm -f conftest*
21d1c967
GD
11016if test $ac_cv_c_bigendian = unknown; then
11017if test "$cross_compiling" = yes; then
11018 ac_cv_c_bigendian=unknown
10f2d63a 11019else
a0b9e27f 11020 cat > conftest.$ac_ext <<EOF
fe0895cf 11021#line 11022 "configure"
90dd450c 11022#include "confdefs.h"
21d1c967
GD
11023main () {
11024 /* Are we little or big endian? From Harbison&Steele. */
11025 union
11026 {
11027 long l;
11028 char c[sizeof (long)];
11029 } u;
11030 u.l = 1;
11031 exit (u.c[sizeof (long) - 1] == 1);
11032}
a0b9e27f 11033EOF
fe0895cf 11034if { (eval echo configure:11035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 11035then
21d1c967 11036 ac_cv_c_bigendian=no
3f345b47 11037else
a0b9e27f
MB
11038 echo "configure: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 rm -fr conftest*
11041 ac_cv_c_bigendian=yes
247f5006 11042fi
a0b9e27f 11043rm -fr conftest*
247f5006 11044fi
a0b9e27f 11045
3f345b47 11046fi
8168de4c 11047fi
a0b9e27f
MB
11048
11049echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 11050if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 11051 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
247f5006
VZ
11052fi
11053if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11054 cat >> confdefs.h <<\EOF
247f5006 11055#define WORDS_BIGENDIAN 1
a0b9e27f 11056EOF
247f5006
VZ
11057
11058fi
11059
11060
a0b9e27f 11061echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
fe0895cf 11062echo "configure:11063: checking how to run the C++ preprocessor" >&5
247f5006 11063if test -z "$CXXCPP"; then
a0b9e27f
MB
11064if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11066else
a0b9e27f
MB
11067 ac_ext=C
11068# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11069ac_cpp='$CXXCPP $CPPFLAGS'
11070ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11071ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11072cross_compiling=$ac_cv_prog_cxx_cross
11073 CXXCPP="${CXX-g++} -E"
11074 cat > conftest.$ac_ext <<EOF
fe0895cf 11075#line 11076 "configure"
5c6fa7d2 11076#include "confdefs.h"
a0b9e27f
MB
11077#include <stdlib.h>
11078EOF
11079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 11080{ (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082if test -z "$ac_err"; then
21d1c967 11083 :
698dcdb6 11084else
a0b9e27f
MB
11085 echo "$ac_err" >&5
11086 echo "configure: failed program was:" >&5
698dcdb6 11087 cat conftest.$ac_ext >&5
a0b9e27f
MB
11088 rm -rf conftest*
11089 CXXCPP=/lib/cpp
247f5006 11090fi
a0b9e27f
MB
11091rm -f conftest*
11092 ac_cv_prog_CXXCPP="$CXXCPP"
11093ac_ext=C
11094# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11095ac_cpp='$CXXCPP $CPPFLAGS'
11096ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11097ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11098cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11099fi
90dd450c 11100fi
a0b9e27f
MB
11101CXXCPP="$ac_cv_prog_CXXCPP"
11102echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11103
1725144d 11104
21d1c967 11105 if test "$cross_compiling" = "yes"; then
a0b9e27f 11106 cat >> confdefs.h <<\EOF
21d1c967 11107#define wxUSE_IOSTREAMH 1
a0b9e27f 11108EOF
ab9b9eab 11109
21d1c967 11110 else
a0b9e27f
MB
11111
11112 ac_ext=C
11113# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11114ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11115ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11116ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11117cross_compiling=$ac_cv_prog_cxx_cross
52127426 11118
247f5006 11119
a0b9e27f 11120 for ac_hdr in iostream
21d1c967 11121do
a0b9e27f
MB
11122ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11123echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 11124echo "configure:11125: checking for $ac_hdr" >&5
a0b9e27f
MB
11125if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127else
11128 cat > conftest.$ac_ext <<EOF
fe0895cf 11129#line 11130 "configure"
ab9b9eab 11130#include "confdefs.h"
a0b9e27f
MB
11131#include <$ac_hdr>
11132EOF
11133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 11134{ (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11136if test -z "$ac_err"; then
11137 rm -rf conftest*
11138 eval "ac_cv_header_$ac_safe=yes"
11139else
11140 echo "$ac_err" >&5
11141 echo "configure: failed program was:" >&5
ab9b9eab 11142 cat conftest.$ac_ext >&5
a0b9e27f
MB
11143 rm -rf conftest*
11144 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11145fi
a0b9e27f 11146rm -f conftest*
90dd450c 11147fi
a0b9e27f
MB
11148if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11151 cat >> confdefs.h <<EOF
11152#define $ac_tr_hdr 1
11153EOF
11154
11155else
11156 echo "$ac_t""no" 1>&6
90dd450c 11157fi
21d1c967 11158done
10f2d63a 11159
8284b0c5 11160
21d1c967
GD
11161 if test "$ac_cv_header_iostream" = "yes" ; then
11162 :
11163 else
a0b9e27f 11164 cat >> confdefs.h <<\EOF
21d1c967 11165#define wxUSE_IOSTREAMH 1
a0b9e27f 11166EOF
788deba1 11167
90dd450c 11168 fi
ab9b9eab 11169
21d1c967 11170 ac_ext=c
a0b9e27f 11171# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11172ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11173ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11174ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11175cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11176
21d1c967 11177 fi
ab9b9eab 11178
52127426 11179
8284b0c5 11180
a0b9e27f 11181 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
fe0895cf 11182echo "configure:11183: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11183if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11185else
a0b9e27f
MB
11186
11187
11188 ac_ext=C
11189# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11190ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11191ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11194
8284b0c5 11195
a0b9e27f 11196 cat > conftest.$ac_ext <<EOF
fe0895cf 11197#line 11198 "configure"
ab9b9eab 11198#include "confdefs.h"
21d1c967 11199
a0b9e27f
MB
11200
11201int main() {
21d1c967
GD
11202
11203 bool b = true;
11204
11205 return 0;
a0b9e27f
MB
11206
11207; return 0; }
11208EOF
fe0895cf 11209if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11210 rm -rf conftest*
11211
21d1c967 11212 wx_cv_cpp_bool=yes
a0b9e27f 11213
698dcdb6 11214else
a0b9e27f
MB
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 rm -rf conftest*
11218
21d1c967 11219 wx_cv_cpp_bool=no
a0b9e27f
MB
11220
11221
698dcdb6 11222fi
a0b9e27f 11223rm -f conftest*
21d1c967
GD
11224
11225 ac_ext=c
a0b9e27f 11226# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11227ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11228ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11229ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11230cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11231
a0b9e27f 11232
247f5006 11233fi
a0b9e27f
MB
11234
11235echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11236
11237 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11238 cat >> confdefs.h <<\EOF
21d1c967 11239#define HAVE_BOOL 1
a0b9e27f 11240EOF
ab9b9eab 11241
21d1c967
GD
11242 fi
11243
52127426 11244
8284b0c5 11245
a0b9e27f 11246 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
fe0895cf 11247echo "configure:11248: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11248if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11250else
a0b9e27f
MB
11251
11252
11253 ac_ext=C
11254# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11255ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11256ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11257ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11258cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11259
8284b0c5 11260
a0b9e27f 11261 cat > conftest.$ac_ext <<EOF
fe0895cf 11262#line 11263 "configure"
986ecc86
VZ
11263#include "confdefs.h"
11264
11265 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11266
11267int main() {
986ecc86
VZ
11268
11269 return 0;
a0b9e27f
MB
11270
11271; return 0; }
11272EOF
fe0895cf 11273if { (eval echo configure:11274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11274 rm -rf conftest*
11275
11276 cat > conftest.$ac_ext <<EOF
fe0895cf 11277#line 11278 "configure"
986ecc86
VZ
11278#include "confdefs.h"
11279
11280 class Foo { public: explicit Foo(int) {} };
11281 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11282
11283int main() {
986ecc86
VZ
11284
11285 TakeFoo(17);
11286 return 0;
a0b9e27f
MB
11287
11288; return 0; }
11289EOF
fe0895cf 11290if { (eval echo configure:11291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11291 rm -rf conftest*
986ecc86
VZ
11292 wx_cv_explicit=no
11293else
a0b9e27f
MB
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 wx_cv_explicit=yes
11298
986ecc86 11299fi
a0b9e27f
MB
11300rm -f conftest*
11301
986ecc86 11302else
a0b9e27f
MB
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 rm -rf conftest*
11306 wx_cv_explicit=no
11307
986ecc86 11308fi
a0b9e27f 11309rm -f conftest*
986ecc86
VZ
11310
11311 ac_ext=c
a0b9e27f 11312# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11313ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11314ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11315ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11316cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11317
a0b9e27f 11318
247f5006 11319fi
a0b9e27f
MB
11320
11321echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11322
11323 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11324 cat >> confdefs.h <<\EOF
986ecc86 11325#define HAVE_EXPLICIT 1
a0b9e27f 11326EOF
986ecc86
VZ
11327
11328 fi
11329
8284b0c5 11330
521196a2 11331echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
fe0895cf 11332echo "configure:11333: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11333if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335else
11336
11337 ac_ext=C
11338# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11339ac_cpp='$CXXCPP $CPPFLAGS'
11340ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11341ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11342cross_compiling=$ac_cv_prog_cxx_cross
11343
11344 cat > conftest.$ac_ext <<EOF
fe0895cf 11345#line 11346 "configure"
521196a2
MB
11346#include "confdefs.h"
11347
11348int main() {
11349int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11350; return 0; }
11351EOF
fe0895cf 11352if { (eval echo configure:11353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11353 rm -rf conftest*
11354 ac_cv_cxx_const_cast=yes
11355else
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 rm -rf conftest*
11359 ac_cv_cxx_const_cast=no
11360fi
11361rm -f conftest*
11362 ac_ext=c
11363# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11364ac_cpp='$CPP $CPPFLAGS'
11365ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11366ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11367cross_compiling=$ac_cv_prog_cc_cross
11368
11369
11370fi
11371
11372echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11373if test "$ac_cv_cxx_const_cast" = yes; then
11374 cat >> confdefs.h <<\EOF
11375#define HAVE_CONST_CAST
11376EOF
11377
11378fi
11379
11380
8284b0c5 11381
21d1c967
GD
11382SEARCH_INCLUDE="\
11383 /usr/local/include \
11384 \
11385 /usr/Motif-1.2/include \
11386 /usr/Motif-2.1/include \
11387 \
11388 /usr/include/Motif1.2 \
11389 /opt/xpm/include/X11 \
11390 /opt/GBxpm/include/ \
11391 /opt/GBxpm/X11/include/ \
11392 \
11393 /usr/Motif1.2/include \
11394 /usr/dt/include \
11395 /usr/openwin/include \
11396 \
11397 /usr/include/Xm \
11398 \
11399 /usr/X11R6/include \
11400 /usr/X11R6.4/include \
11401 /usr/X11R5/include \
11402 /usr/X11R4/include \
11403 \
11404 /usr/include/X11R6 \
11405 /usr/include/X11R5 \
11406 /usr/include/X11R4 \
11407 \
11408 /usr/local/X11R6/include \
11409 /usr/local/X11R5/include \
11410 /usr/local/X11R4/include \
11411 \
11412 /usr/local/include/X11R6 \
11413 /usr/local/include/X11R5 \
11414 /usr/local/include/X11R4 \
11415 \
11416 /usr/X11/include \
11417 /usr/include/X11 \
11418 /usr/local/X11/include \
11419 /usr/local/include/X11 \
11420 \
11421 /usr/X386/include \
11422 /usr/x386/include \
11423 /usr/XFree86/include/X11 \
11424 \
11425 X:/XFree86/include \
11426 X:/XFree86/include/X11 \
11427 \
11428 /usr/include/gtk \
11429 /usr/local/include/gtk \
11430 /usr/include/glib \
11431 /usr/local/include/glib \
11432 \
11433 /usr/include/qt \
11434 /usr/local/include/qt \
11435 \
11436 /usr/include/windows \
11437 /usr/include/wine \
11438 /usr/local/include/wine \
11439 \
11440 /usr/unsupported/include \
11441 /usr/athena/include \
11442 /usr/local/x11r5/include \
11443 /usr/lpp/Xamples/include \
11444 \
2b5f62a0 11445 /usr/openwin/share/include"
21d1c967
GD
11446
11447SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11448
8284b0c5 11449
a0b9e27f 11450cat > confcache <<\EOF
21d1c967
GD
11451# This file is a shell script that caches the results of configure
11452# tests run on this system so they can be shared between configure
a0b9e27f
MB
11453# scripts and configure runs. It is not useful on other systems.
11454# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11455#
a0b9e27f
MB
11456# By default, configure uses ./config.cache as the cache file,
11457# creating it if it does not exist already. You can give configure
11458# the --cache-file=FILE option to use a different cache file; that is
11459# what configure does when it calls configure scripts in
11460# subdirectories, so they share the cache.
11461# Giving --cache-file=/dev/null disables caching, for debugging configure.
11462# config.status only pays attention to the cache file if you give it the
11463# --recheck option to rerun configure.
21d1c967 11464#
a0b9e27f 11465EOF
21d1c967
GD
11466# The following way of writing the cache mishandles newlines in values,
11467# but we know of no workaround that is simple, portable, and efficient.
11468# So, don't put newlines in cache variables' values.
11469# Ultrix sh set writes to stderr and can't be redirected directly,
11470# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11471(set) 2>&1 |
11472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11473 *ac_space=\ *)
11474 # `set' does not quote correctly, so add quotes (double-quote substitution
11475 # turns \\\\ into \\, and sed turns \\ into \).
11476 sed -n \
11477 -e "s/'/'\\\\''/g" \
11478 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11479 ;;
11480 *)
11481 # `set' quotes correctly as required by POSIX, so do not add quotes.
11482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11483 ;;
11484 esac >> confcache
11485if cmp -s $cache_file confcache; then
11486 :
11487else
21d1c967 11488 if test -w $cache_file; then
a0b9e27f
MB
11489 echo "updating cache $cache_file"
11490 cat confcache > $cache_file
21d1c967
GD
11491 else
11492 echo "not updating unwritable cache $cache_file"
11493 fi
ab9b9eab 11494fi
21d1c967 11495rm -f confcache
ab9b9eab 11496
247f5006 11497
fe0895cf 11498if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
a0b9e27f 11499 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
fe0895cf 11500echo "configure:11501: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11501if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11503else
11504
11505 cat > conftest.$ac_ext <<EOF
fe0895cf 11506#line 11507 "configure"
ab9b9eab 11507#include "confdefs.h"
21d1c967 11508#include <features.h>
a0b9e27f 11509int main() {
ab9b9eab 11510
21d1c967
GD
11511 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11512 #error not glibc2.1
11513 #endif
a0b9e27f
MB
11514
11515; return 0; }
11516EOF
fe0895cf 11517if { (eval echo configure:11518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11518 rm -rf conftest*
11519
21d1c967 11520 wx_cv_lib_glibc21=yes
a0b9e27f 11521
698dcdb6 11522else
a0b9e27f
MB
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 rm -rf conftest*
11526
21d1c967 11527 wx_cv_lib_glibc21=no
a0b9e27f
MB
11528
11529
5c6fa7d2 11530fi
a0b9e27f
MB
11531rm -f conftest*
11532
247f5006 11533fi
a0b9e27f
MB
11534
11535echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11536 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11537 cat >> confdefs.h <<\EOF
21d1c967 11538#define wxHAVE_GLIBC2 1
a0b9e27f 11539EOF
1e487827 11540
90dd450c 11541 fi
ab9b9eab
VZ
11542fi
11543
5c0a20c3
VZ
11544if test "x$wx_cv_lib_glibc21" = "xyes"; then
11545 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11546 cat >> confdefs.h <<\EOF
5c0a20c3 11547#define _GNU_SOURCE 1
a0b9e27f 11548EOF
5c0a20c3
VZ
11549
11550 fi
11551fi
11552
8284b0c5
MB
11553
11554
21d1c967
GD
11555REGEX_INCLUDE=
11556if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11557 cat >> confdefs.h <<\EOF
21d1c967 11558#define wxUSE_REGEX 1
a0b9e27f 11559EOF
698dcdb6 11560
8284b0c5 11561
21d1c967 11562 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11563 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11564echo $ac_n "checking for regex.h""... $ac_c" 1>&6
fe0895cf 11565echo "configure:11566: checking for regex.h" >&5
a0b9e27f
MB
11566if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11568else
11569 cat > conftest.$ac_ext <<EOF
fe0895cf 11570#line 11571 "configure"
247f5006
VZ
11571#include "confdefs.h"
11572#include <regex.h>
a0b9e27f
MB
11573EOF
11574ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 11575{ (eval echo configure:11576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11576ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11577if test -z "$ac_err"; then
11578 rm -rf conftest*
11579 eval "ac_cv_header_$ac_safe=yes"
11580else
11581 echo "$ac_err" >&5
11582 echo "configure: failed program was:" >&5
21d1c967 11583 cat conftest.$ac_ext >&5
a0b9e27f
MB
11584 rm -rf conftest*
11585 eval "ac_cv_header_$ac_safe=no"
21d1c967 11586fi
a0b9e27f 11587rm -f conftest*
698dcdb6 11588fi
a0b9e27f
MB
11589if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11590 echo "$ac_t""yes" 1>&6
11591 for ac_func in regcomp
21d1c967 11592do
a0b9e27f 11593echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 11594echo "configure:11595: checking for $ac_func" >&5
a0b9e27f
MB
11595if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11597else
a0b9e27f 11598 cat > conftest.$ac_ext <<EOF
fe0895cf 11599#line 11600 "configure"
a0b9e27f
MB
11600#include "confdefs.h"
11601/* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func(); below. */
21d1c967
GD
11603#include <assert.h>
11604/* Override any gcc2 internal prototype to avoid an error. */
11605/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11606 builtin and then its argument prototype would still apply. */
11607char $ac_func();
11608
11609int main() {
11610
21d1c967
GD
11611/* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11615choke me
11616#else
a0b9e27f 11617$ac_func();
21d1c967 11618#endif
90dd450c 11619
a0b9e27f
MB
11620; return 0; }
11621EOF
fe0895cf 11622if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11623 rm -rf conftest*
11624 eval "ac_cv_func_$ac_func=yes"
11625else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -rf conftest*
11629 eval "ac_cv_func_$ac_func=no"
11630fi
11631rm -f conftest*
11632fi
5c6fa7d2 11633
a0b9e27f
MB
11634if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11635 echo "$ac_t""yes" 1>&6
11636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11637 cat >> confdefs.h <<EOF
11638#define $ac_tr_func 1
11639EOF
11640
11641else
11642 echo "$ac_t""no" 1>&6
698dcdb6 11643fi
21d1c967
GD
11644done
11645
a0b9e27f
MB
11646else
11647 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11648fi
11649
8284b0c5 11650
21d1c967
GD
11651 if test "x$ac_cv_func_regcomp" != "xyes"; then
11652 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11653 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11654 else
a0b9e27f 11655 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11656 wxUSE_REGEX=builtin
11657 fi
11658 else
11659 wxUSE_REGEX=sys
11660 fi
ab9b9eab 11661 fi
90dd450c 11662
21d1c967
GD
11663 if test "$wxUSE_REGEX" = "builtin" ; then
11664 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11665 fi
21d1c967 11666fi
90dd450c 11667
8284b0c5 11668
21d1c967
GD
11669ZLIB_INCLUDE=
11670ZLIB_LINK=
11671if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11672 cat >> confdefs.h <<\EOF
21d1c967 11673#define wxUSE_ZLIB 1
a0b9e27f 11674EOF
21d1c967 11675
8284b0c5 11676
21d1c967 11677 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11678 if test "$USE_DARWIN" = 1; then
11679 system_zlib_h_ok="yes"
11680 else
11681 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
fe0895cf 11682echo "configure:11683: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11683if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11685else
11686 if test "$cross_compiling" = yes; then
89e6bf6d 11687 unset ac_cv_header_zlib_h
d775acfa 11688
d643b80e
VZ
11689else
11690 cat > conftest.$ac_ext <<EOF
fe0895cf 11691#line 11692 "configure"
d643b80e 11692#include "confdefs.h"
ef33c576
VZ
11693
11694 #include <zlib.h>
d775acfa 11695 #include <stdio.h>
d643b80e 11696
d775acfa
VZ
11697 int main()
11698 {
11699 FILE *f=fopen("conftestval", "w");
11700 if (!f) exit(1);
11701 fprintf(f, "%s",
11702 ZLIB_VERSION[0] == '1' &&
11703 (ZLIB_VERSION[2] > '1' ||
11704 (ZLIB_VERSION[2] == '1' &&
11705 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11706 exit(0);
11707 }
d643b80e 11708
d643b80e 11709EOF
fe0895cf 11710if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11711then
11712 ac_cv_header_zlib_h=`cat conftestval`
11713else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -fr conftest*
11717 ac_cv_header_zlib_h=no
11718fi
11719rm -fr conftest*
11720fi
11721
d775acfa 11722
d643b80e
VZ
11723fi
11724
11725echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11726 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11727echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
fe0895cf 11728echo "configure:11729: checking for zlib.h" >&5
89e6bf6d
VZ
11729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731else
11732 cat > conftest.$ac_ext <<EOF
fe0895cf 11733#line 11734 "configure"
89e6bf6d
VZ
11734#include "confdefs.h"
11735#include <zlib.h>
11736EOF
11737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 11738{ (eval echo configure:11739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11740if test -z "$ac_err"; then
11741 rm -rf conftest*
11742 eval "ac_cv_header_$ac_safe=yes"
11743else
11744 echo "$ac_err" >&5
11745 echo "configure: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 rm -rf conftest*
11748 eval "ac_cv_header_$ac_safe=no"
11749fi
11750rm -f conftest*
11751fi
11752if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11753 echo "$ac_t""yes" 1>&6
11754 :
11755else
11756 echo "$ac_t""no" 1>&6
11757fi
11758
d643b80e 11759
d775acfa
VZ
11760 system_zlib_h_ok=$ac_cv_header_zlib_h
11761 fi
11762
11763 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11764 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
fe0895cf 11765echo "configure:11766: checking for deflate in -lz" >&5
a0b9e27f
MB
11766ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11767if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11769else
a0b9e27f 11770 ac_save_LIBS="$LIBS"
21d1c967 11771LIBS="-lz $LIBS"
a0b9e27f 11772cat > conftest.$ac_ext <<EOF
fe0895cf 11773#line 11774 "configure"
ab9b9eab 11774#include "confdefs.h"
21d1c967
GD
11775/* Override any gcc2 internal prototype to avoid an error. */
11776/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11777 builtin and then its argument prototype would still apply. */
11778char deflate();
11779
11780int main() {
11781deflate()
11782; return 0; }
11783EOF
fe0895cf 11784if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11785 rm -rf conftest*
11786 eval "ac_cv_lib_$ac_lib_var=yes"
11787else
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 rm -rf conftest*
11791 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11792fi
a0b9e27f
MB
11793rm -f conftest*
11794LIBS="$ac_save_LIBS"
698dcdb6 11795
698dcdb6 11796fi
a0b9e27f
MB
11797if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11798 echo "$ac_t""yes" 1>&6
11799 ZLIB_LINK=" -lz"
11800else
11801 echo "$ac_t""no" 1>&6
11802fi
698dcdb6 11803
d643b80e 11804 fi
247f5006 11805
21d1c967
GD
11806 if test "x$ZLIB_LINK" = "x" ; then
11807 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11808 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11809 else
d643b80e 11810 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11811 wxUSE_ZLIB=builtin
11812 fi
11813 else
11814 wxUSE_ZLIB=sys
11815 fi
11816 fi
11817
11818 if test "$wxUSE_ZLIB" = "builtin" ; then
11819 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11820 fi
ab9b9eab
VZ
11821fi
11822
8284b0c5 11823
21d1c967
GD
11824PNG_INCLUDE=
11825PNG_LINK=
11826if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11827 cat >> confdefs.h <<\EOF
21d1c967 11828#define wxUSE_LIBPNG 1
a0b9e27f 11829EOF
90dd450c 11830
8284b0c5 11831
21d1c967 11832 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11833 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11834 wxUSE_LIBPNG=sys
11835 fi
90dd450c 11836
21d1c967 11837 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11838 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11839 wxUSE_LIBPNG=builtin
11840 fi
11841
11842 if test "$wxUSE_MGL" != 1 ; then
11843 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11844 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
fe0895cf 11845echo "configure:11846: checking for png.h > 0.90" >&5
5d3f766d
VZ
11846if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11848else
11849 if test "$cross_compiling" = yes; then
89e6bf6d 11850 unset ac_cv_header_png_h
5d3f766d
VZ
11851
11852else
11853 cat > conftest.$ac_ext <<EOF
fe0895cf 11854#line 11855 "configure"
5d3f766d 11855#include "confdefs.h"
ef33c576
VZ
11856
11857 #include <png.h>
5d3f766d
VZ
11858 #include <stdio.h>
11859
11860 int main()
11861 {
11862 FILE *f=fopen("conftestval", "w");
11863 if (!f) exit(1);
11864 fprintf(f, "%s",
11865 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11866 exit(0);
11867 }
11868
11869EOF
fe0895cf 11870if { (eval echo configure:11871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11871then
11872 ac_cv_header_png_h=`cat conftestval`
11873else
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11876 rm -fr conftest*
11877 ac_cv_header_png_h=no
11878fi
11879rm -fr conftest*
11880fi
11881
11882
11883fi
11884
11885echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11886 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11887echo $ac_n "checking for png.h""... $ac_c" 1>&6
fe0895cf 11888echo "configure:11889: checking for png.h" >&5
89e6bf6d
VZ
11889if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891else
11892 cat > conftest.$ac_ext <<EOF
fe0895cf 11893#line 11894 "configure"
89e6bf6d
VZ
11894#include "confdefs.h"
11895#include <png.h>
11896EOF
11897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 11898{ (eval echo configure:11899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11900if test -z "$ac_err"; then
11901 rm -rf conftest*
11902 eval "ac_cv_header_$ac_safe=yes"
11903else
11904 echo "$ac_err" >&5
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 eval "ac_cv_header_$ac_safe=no"
11909fi
11910rm -f conftest*
11911fi
11912if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 :
11915else
11916 echo "$ac_t""no" 1>&6
11917fi
11918
5d3f766d
VZ
11919
11920 if test "$ac_cv_header_png_h" = "yes"; then
11921 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
fe0895cf 11922echo "configure:11923: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11923ac_lib_var=`echo png'_'png_check_sig | 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
21d1c967 11926else
a0b9e27f 11927 ac_save_LIBS="$LIBS"
21d1c967 11928LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11929cat > conftest.$ac_ext <<EOF
fe0895cf 11930#line 11931 "configure"
90dd450c 11931#include "confdefs.h"
21d1c967
GD
11932/* Override any gcc2 internal prototype to avoid an error. */
11933/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11934 builtin and then its argument prototype would still apply. */
11935char png_check_sig();
90dd450c 11936
a0b9e27f
MB
11937int main() {
11938png_check_sig()
11939; return 0; }
11940EOF
fe0895cf 11941if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
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"
247f5006 11952
90dd450c 11953fi
a0b9e27f
MB
11954if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11955 echo "$ac_t""yes" 1>&6
11956 PNG_LINK=" -lpng"
11957else
11958 echo "$ac_t""no" 1>&6
11959fi
90dd450c 11960
5d3f766d 11961 fi
247f5006 11962
21d1c967
GD
11963 if test "x$PNG_LINK" = "x" ; then
11964 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11965 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11966 else
0c98a14e 11967 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11968 wxUSE_LIBPNG=builtin
11969 fi
11970 else
2b5f62a0 11971 wxUSE_LIBPNG=sys
21d1c967
GD
11972 fi
11973 fi
11974 fi
90dd450c 11975
21d1c967
GD
11976 if test "$wxUSE_LIBPNG" = "builtin" ; then
11977 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11978 fi
90dd450c 11979
21d1c967 11980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11981fi
11982
8284b0c5 11983
21d1c967
GD
11984JPEG_INCLUDE=
11985JPEG_LINK=
11986if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11987 cat >> confdefs.h <<\EOF
21d1c967 11988#define wxUSE_LIBJPEG 1
a0b9e27f 11989EOF
90dd450c 11990
8284b0c5 11991
21d1c967 11992 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11993 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11994 wxUSE_LIBJPEG=sys
11995 fi
90dd450c 11996
21d1c967
GD
11997 if test "$wxUSE_MGL" != 1 ; then
11998 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11999 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
fe0895cf 12000echo "configure:12001: checking for jpeglib.h" >&5
a0b9e27f
MB
12001 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12003else
a0b9e27f 12004 cat > conftest.$ac_ext <<EOF
fe0895cf 12005#line 12006 "configure"
21d1c967 12006#include "confdefs.h"
90dd450c 12007
21d1c967
GD
12008 #undef HAVE_STDLIB_H
12009 #include <stdio.h>
12010 #include <jpeglib.h>
a0b9e27f
MB
12011
12012int main() {
90dd450c 12013
a0b9e27f
MB
12014
12015; return 0; }
12016EOF
fe0895cf 12017if { (eval echo configure:12018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 12018 rm -rf conftest*
21d1c967 12019 ac_cv_header_jpeglib_h=yes
90dd450c 12020else
a0b9e27f
MB
12021 echo "configure: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 rm -rf conftest*
12024 ac_cv_header_jpeglib_h=no
12025
90dd450c 12026fi
a0b9e27f
MB
12027rm -f conftest*
12028
90dd450c
VZ
12029fi
12030
a0b9e27f 12031 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 12032
21d1c967 12033 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 12034 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
fe0895cf 12035echo "configure:12036: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
12036ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12038 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12039else
a0b9e27f 12040 ac_save_LIBS="$LIBS"
21d1c967 12041LIBS="-ljpeg $LIBS"
a0b9e27f 12042cat > conftest.$ac_ext <<EOF
fe0895cf 12043#line 12044 "configure"
21d1c967
GD
12044#include "confdefs.h"
12045/* Override any gcc2 internal prototype to avoid an error. */
12046/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12047 builtin and then its argument prototype would still apply. */
12048char jpeg_read_header();
12049
12050int main() {
12051jpeg_read_header()
12052; return 0; }
12053EOF
fe0895cf 12054if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12055 rm -rf conftest*
12056 eval "ac_cv_lib_$ac_lib_var=yes"
12057else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -rf conftest*
12061 eval "ac_cv_lib_$ac_lib_var=no"
12062fi
12063rm -f conftest*
12064LIBS="$ac_save_LIBS"
12065
12066fi
12067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12068 echo "$ac_t""yes" 1>&6
21d1c967 12069 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12070else
12071 echo "$ac_t""no" 1>&6
90dd450c
VZ
12072fi
12073
21d1c967 12074 fi
90dd450c 12075
21d1c967
GD
12076 if test "x$JPEG_LINK" = "x" ; then
12077 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12078 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12079 else
a0b9e27f 12080 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12081 wxUSE_LIBJPEG=builtin
12082 fi
12083 else
12084 wxUSE_LIBJPEG=sys
12085 fi
12086 fi
12087 fi
90dd450c 12088
21d1c967
GD
12089 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12090 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12091 fi
12092fi
90dd450c 12093
8284b0c5 12094
21d1c967
GD
12095TIFF_INCLUDE=
12096TIFF_LINK=
2b5f62a0 12097TIFF_PREREQ_LINKS=-lm
21d1c967 12098if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12099 cat >> confdefs.h <<\EOF
21d1c967 12100#define wxUSE_LIBTIFF 1
a0b9e27f 12101EOF
21d1c967 12102
8284b0c5 12103
21d1c967 12104 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12105 if test "$wxUSE_LIBJPEG" = "sys"; then
12106 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12107 fi
12108 if test "$wxUSE_ZLIB" = "sys"; then
12109 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12110 fi
a0b9e27f
MB
12111 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12112echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
fe0895cf 12113echo "configure:12114: checking for tiffio.h" >&5
a0b9e27f
MB
12114if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12115 echo $ac_n "(cached) $ac_c" 1>&6
12116else
12117 cat > conftest.$ac_ext <<EOF
fe0895cf 12118#line 12119 "configure"
247f5006
VZ
12119#include "confdefs.h"
12120#include <tiffio.h>
a0b9e27f
MB
12121EOF
12122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 12123{ (eval echo configure:12124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12125if test -z "$ac_err"; then
12126 rm -rf conftest*
12127 eval "ac_cv_header_$ac_safe=yes"
12128else
12129 echo "$ac_err" >&5
12130 echo "configure: failed program was:" >&5
21d1c967 12131 cat conftest.$ac_ext >&5
a0b9e27f
MB
12132 rm -rf conftest*
12133 eval "ac_cv_header_$ac_safe=no"
21d1c967 12134fi
a0b9e27f 12135rm -f conftest*
21d1c967 12136fi
a0b9e27f
MB
12137if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
fe0895cf 12140echo "configure:12141: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12141ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12144else
a0b9e27f 12145 ac_save_LIBS="$LIBS"
2b5f62a0 12146LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12147cat > conftest.$ac_ext <<EOF
fe0895cf 12148#line 12149 "configure"
ab9b9eab
VZ
12149#include "confdefs.h"
12150/* Override any gcc2 internal prototype to avoid an error. */
12151/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12152 builtin and then its argument prototype would still apply. */
12153char TIFFError();
ab9b9eab 12154
a0b9e27f
MB
12155int main() {
12156TIFFError()
12157; return 0; }
12158EOF
fe0895cf 12159if { (eval echo configure:12160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12160 rm -rf conftest*
12161 eval "ac_cv_lib_$ac_lib_var=yes"
12162else
12163 echo "configure: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 rm -rf conftest*
12166 eval "ac_cv_lib_$ac_lib_var=no"
12167fi
12168rm -f conftest*
12169LIBS="$ac_save_LIBS"
247f5006 12170
21d1c967 12171fi
a0b9e27f
MB
12172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12173 echo "$ac_t""yes" 1>&6
12174 TIFF_LINK=" -ltiff"
12175else
12176 echo "$ac_t""no" 1>&6
12177fi
cd6d6d5b 12178
a0b9e27f
MB
12179
12180else
12181 echo "$ac_t""no" 1>&6
12182fi
8284b0c5 12183
247f5006 12184
21d1c967
GD
12185 if test "x$TIFF_LINK" = "x" ; then
12186 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12187 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12188 else
a0b9e27f 12189 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12190 wxUSE_LIBTIFF=builtin
d8356fa3 12191 fi
d8356fa3 12192 else
21d1c967 12193 wxUSE_LIBTIFF=sys
d8356fa3 12194 fi
21d1c967 12195 fi
d8356fa3 12196
21d1c967
GD
12197 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12198 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12199 fi
21d1c967 12200fi
10f2d63a 12201
8284b0c5 12202
21d1c967 12203AFMINSTALL=
2b5f62a0 12204WIN32INSTALL=
90dd450c 12205
21d1c967
GD
12206TOOLKIT=
12207TOOLKIT_INCLUDE=
12208WIDGET_SET=
12209
12210if test "$USE_WIN32" = 1 ; then
a0b9e27f 12211 for ac_hdr in w32api.h
21d1c967 12212do
a0b9e27f
MB
12213ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12214echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 12215echo "configure:12216: checking for $ac_hdr" >&5
a0b9e27f
MB
12216if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12218else
12219 cat > conftest.$ac_ext <<EOF
fe0895cf 12220#line 12221 "configure"
247f5006 12221#include "confdefs.h"
a0b9e27f
MB
12222#include <$ac_hdr>
12223EOF
12224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 12225{ (eval echo configure:12226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12227if test -z "$ac_err"; then
12228 rm -rf conftest*
12229 eval "ac_cv_header_$ac_safe=yes"
12230else
12231 echo "$ac_err" >&5
12232 echo "configure: failed program was:" >&5
f79bd02d 12233 cat conftest.$ac_ext >&5
a0b9e27f
MB
12234 rm -rf conftest*
12235 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12236fi
a0b9e27f 12237rm -f conftest*
21d1c967 12238fi
a0b9e27f
MB
12239if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12240 echo "$ac_t""yes" 1>&6
12241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12242 cat >> confdefs.h <<EOF
12243#define $ac_tr_hdr 1
12244EOF
12245
12246else
12247 echo "$ac_t""no" 1>&6
21d1c967
GD
12248fi
12249done
f79bd02d 12250
a0b9e27f
MB
12251 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12252echo $ac_n "checking for windows.h""... $ac_c" 1>&6
fe0895cf 12253echo "configure:12254: checking for windows.h" >&5
a0b9e27f
MB
12254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12256else
a0b9e27f 12257 cat > conftest.$ac_ext <<EOF
fe0895cf 12258#line 12259 "configure"
247f5006
VZ
12259#include "confdefs.h"
12260#include <windows.h>
a0b9e27f
MB
12261EOF
12262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 12263{ (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265if test -z "$ac_err"; then
12266 rm -rf conftest*
12267 eval "ac_cv_header_$ac_safe=yes"
12268else
12269 echo "$ac_err" >&5
12270 echo "configure: failed program was:" >&5
90dd450c 12271 cat conftest.$ac_ext >&5
a0b9e27f
MB
12272 rm -rf conftest*
12273 eval "ac_cv_header_$ac_safe=no"
90dd450c 12274fi
a0b9e27f 12275rm -f conftest*
90dd450c 12276fi
a0b9e27f
MB
12277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12278 echo "$ac_t""yes" 1>&6
21d1c967 12279 :
90dd450c 12280else
a0b9e27f 12281 echo "$ac_t""no" 1>&6
21d1c967 12282
a0b9e27f
MB
12283 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12284
5c6fa7d2 12285fi
7b4a847f 12286
5c6fa7d2 12287
a0b9e27f 12288 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
fe0895cf 12289echo "configure:12290: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12290if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12291 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12292else
a0b9e27f
MB
12293
12294 cat > conftest.$ac_ext <<EOF
fe0895cf 12295#line 12296 "configure"
f79bd02d 12296#include "confdefs.h"
21d1c967 12297#include <w32api.h>
a0b9e27f 12298int main() {
f79bd02d 12299
21d1c967
GD
12300 #define wxCHECK_W32API_VERSION( major, minor ) \
12301 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12302 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12303 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12304
12305 #if !wxCHECK_W32API_VERSION(1,1)
12306 #error You need w32api 1.1 or newer
12307 #endif
a0b9e27f
MB
12308
12309; return 0; }
12310EOF
fe0895cf 12311if { (eval echo configure:12312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12312 rm -rf conftest*
12313
21d1c967 12314 wx_cv_w32api_win32_ie=yes
a0b9e27f 12315
f79bd02d 12316else
a0b9e27f
MB
12317 echo "configure: failed program was:" >&5
12318 cat conftest.$ac_ext >&5
12319 rm -rf conftest*
12320
21d1c967 12321 wx_cv_w32api_win32_ie=no
a0b9e27f 12322
5c6fa7d2 12323fi
a0b9e27f
MB
12324rm -f conftest*
12325
247f5006 12326fi
a0b9e27f
MB
12327
12328echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12329 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12330 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12331 fi
f79bd02d 12332
21d1c967
GD
12333 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12334
7bb2947d
MB
12335 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12336 LIBS="$LIBS -loleacc"
12337 fi
12338
21d1c967
GD
12339 case "${host}" in
12340 *-*-cygwin* )
12341 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12342 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12343 esac
f79bd02d 12344
8647bec6
RG
12345 if test "$wxUSE_ODBC" = "sys" ; then
12346 wxUSE_ODBC = "yes"
21d1c967 12347 fi
8647bec6
RG
12348 if test "$wxUSE_ODBC" = "yes" ; then
12349 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12350 cat >> confdefs.h <<\EOF
12351#define wxUSE_ODBC 1
12352EOF
f79bd02d 12353
8647bec6
RG
12354 fi
12355
21d1c967
GD
12356 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12357 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12358
12359 WIN32INSTALL=win32install
f79bd02d 12360fi
f79bd02d 12361
b2fee376 12362if test "$USE_DARWIN" = 1; then
50bcbd3d 12363 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12364 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12365 else
12366 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12367 fi
12368fi
12369
21d1c967
GD
12370if test "$wxUSE_GUI" = "yes"; then
12371 USE_GUI=1
f79bd02d 12372
21d1c967 12373 GUI_TK_LIBRARY=
f79bd02d 12374
21d1c967
GD
12375 WXGTK12=
12376 WXGTK127=
12377 WXGTK20=
f79bd02d 12378
21d1c967
GD
12379 if test "$wxUSE_MSW" = 1 ; then
12380 TOOLKIT=MSW
12381 GUIDIST=MSW_DIST
f79bd02d 12382
89e6bf6d 12383 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12384 fi
12385
21d1c967 12386 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12387 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
fe0895cf 12388echo "configure:12389: checking for GTK+ version" >&5
21d1c967
GD
12389
12390 gtk_version_cached=1
a0b9e27f
MB
12391 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12393else
a0b9e27f 12394
21d1c967 12395 gtk_version_cached=0
a0b9e27f 12396 echo "$ac_t""" 1>&6
f79bd02d 12397
21d1c967
GD
12398 GTK_MODULES=
12399 if test "$wxUSE_THREADS" = "yes"; then
12400 GTK_MODULES=gthread
12401 fi
f79bd02d 12402
2b5f62a0 12403 wx_cv_lib_gtk=
21d1c967
GD
12404 if test "x$wxUSE_GTK2" = "xyes"; then
12405 # Check whether --enable-gtktest or --disable-gtktest was given.
12406if test "${enable_gtktest+set}" = set; then
12407 enableval="$enable_gtktest"
a0b9e27f 12408 :
f79bd02d 12409else
21d1c967 12410 enable_gtktest=yes
a0b9e27f
MB
12411fi
12412
f79bd02d 12413
21d1c967
GD
12414 pkg_config_args=gtk+-2.0
12415 for module in . $GTK_MODULES
12416 do
12417 case "$module" in
a0b9e27f 12418 gthread)
21d1c967
GD
12419 pkg_config_args="$pkg_config_args gthread-2.0"
12420 ;;
12421 esac
12422 done
12423
12424 no_gtk=""
f79bd02d 12425
21d1c967
GD
12426 # Extract the first word of "pkg-config", so it can be a program name with args.
12427set dummy pkg-config; ac_word=$2
a0b9e27f 12428echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 12429echo "configure:12430: checking for $ac_word" >&5
a0b9e27f
MB
12430if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12431 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12432else
a0b9e27f
MB
12433 case "$PKG_CONFIG" in
12434 /*)
21d1c967
GD
12435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12436 ;;
a0b9e27f
MB
12437 ?:/*)
12438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12439 ;;
21d1c967 12440 *)
a0b9e27f
MB
12441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12442 ac_dummy="$PATH"
12443 for ac_dir in $ac_dummy; do
12444 test -z "$ac_dir" && ac_dir=.
12445 if test -f $ac_dir/$ac_word; then
12446 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12447 break
12448 fi
12449 done
12450 IFS="$ac_save_ifs"
21d1c967
GD
12451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12452 ;;
12453esac
f79bd02d 12454fi
a0b9e27f 12455PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12456if test -n "$PKG_CONFIG"; then
a0b9e27f 12457 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12458else
a0b9e27f 12459 echo "$ac_t""no" 1>&6
f79bd02d
JS
12460fi
12461
8284b0c5 12462
21d1c967
GD
12463 if test x$PKG_CONFIG != xno ; then
12464 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12465 :
12466 else
12467 echo *** pkg-config too old; version 0.7 or better required.
12468 no_gtk=yes
12469 PKG_CONFIG=no
12470 fi
12471 else
12472 no_gtk=yes
12473 fi
f79bd02d 12474
21d1c967 12475 min_gtk_version=2.0.0
a0b9e27f 12476 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
fe0895cf 12477echo "configure:12478: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12478
21d1c967
GD
12479 if test x$PKG_CONFIG != xno ; then
12480 ## don't try to run the test against uninstalled libtool libs
12481 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12482 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12483 enable_gtktest=no
12484 fi
f79bd02d 12485
21d1c967
GD
12486 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12487 :
12488 else
12489 no_gtk=yes
12490 fi
12491 fi
f79bd02d 12492
21d1c967
GD
12493 if test x"$no_gtk" = x ; then
12494 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12495 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12496 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12498 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12500 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12501 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12502 if test "x$enable_gtktest" = "xyes" ; then
12503 ac_save_CFLAGS="$CFLAGS"
12504 ac_save_LIBS="$LIBS"
12505 CFLAGS="$CFLAGS $GTK_CFLAGS"
12506 LIBS="$GTK_LIBS $LIBS"
12507 rm -f conf.gtktest
12508 if test "$cross_compiling" = yes; then
12509 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12510else
a0b9e27f 12511 cat > conftest.$ac_ext <<EOF
fe0895cf 12512#line 12513 "configure"
f79bd02d 12513#include "confdefs.h"
f79bd02d 12514
21d1c967
GD
12515#include <gtk/gtk.h>
12516#include <stdio.h>
12517#include <stdlib.h>
f79bd02d 12518
a0b9e27f 12519int
21d1c967
GD
12520main ()
12521{
12522 int major, minor, micro;
12523 char *tmp_version;
f79bd02d 12524
21d1c967 12525 system ("touch conf.gtktest");
f79bd02d 12526
21d1c967
GD
12527 /* HP/UX 9 (%@#!) writes to sscanf strings */
12528 tmp_version = g_strdup("$min_gtk_version");
12529 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12530 printf("%s, bad version string\n", "$min_gtk_version");
12531 exit(1);
12532 }
f79bd02d 12533
21d1c967
GD
12534 if ((gtk_major_version != $gtk_config_major_version) ||
12535 (gtk_minor_version != $gtk_config_minor_version) ||
12536 (gtk_micro_version != $gtk_config_micro_version))
12537 {
a0b9e27f 12538 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12539 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12540 gtk_major_version, gtk_minor_version, gtk_micro_version);
12541 printf ("*** was found! If pkg-config was correct, then it is best\n");
12542 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12543 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12544 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12545 printf("*** required on your system.\n");
12546 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12547 printf("*** to point to the correct configuration files\n");
a0b9e27f 12548 }
21d1c967
GD
12549 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12550 (gtk_minor_version != GTK_MINOR_VERSION) ||
12551 (gtk_micro_version != GTK_MICRO_VERSION))
12552 {
12553 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12554 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12555 printf("*** library (version %d.%d.%d)\n",
12556 gtk_major_version, gtk_minor_version, gtk_micro_version);
12557 }
12558 else
12559 {
12560 if ((gtk_major_version > major) ||
12561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12563 {
12564 return 0;
12565 }
12566 else
12567 {
12568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12569 gtk_major_version, gtk_minor_version, gtk_micro_version);
12570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12571 major, minor, micro);
12572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12573 printf("***\n");
12574 printf("*** If you have already installed a sufficiently new version, this error\n");
12575 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12577 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12578 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12580 printf("*** so that the correct libraries are found at run-time))\n");
12581 }
12582 }
12583 return 1;
12584}
f79bd02d 12585
a0b9e27f 12586EOF
fe0895cf 12587if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12588then
21d1c967 12589 :
f79bd02d 12590else
a0b9e27f
MB
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12593 rm -fr conftest*
12594 no_gtk=yes
f79bd02d 12595fi
a0b9e27f 12596rm -fr conftest*
f79bd02d 12597fi
a0b9e27f 12598
21d1c967
GD
12599 CFLAGS="$ac_save_CFLAGS"
12600 LIBS="$ac_save_LIBS"
12601 fi
12602 fi
12603 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12604 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12605 wx_cv_lib_gtk=2.0
21d1c967 12606 else
a0b9e27f 12607 echo "$ac_t""no" 1>&6
21d1c967
GD
12608 if test "$PKG_CONFIG" = "no" ; then
12609 echo "*** A new enough version of pkg-config was not found."
12610 echo "*** See http://pkgconfig.sourceforge.net"
12611 else
12612 if test -f conf.gtktest ; then
12613 :
12614 else
12615 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12616 ac_save_CFLAGS="$CFLAGS"
12617 ac_save_LIBS="$LIBS"
21d1c967
GD
12618 CFLAGS="$CFLAGS $GTK_CFLAGS"
12619 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12620 cat > conftest.$ac_ext <<EOF
fe0895cf 12621#line 12622 "configure"
f79bd02d 12622#include "confdefs.h"
21d1c967
GD
12623
12624#include <gtk/gtk.h>
12625#include <stdio.h>
f79bd02d 12626
a0b9e27f
MB
12627int main() {
12628 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12629; return 0; }
12630EOF
fe0895cf 12631if { (eval echo configure:12632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12632 rm -rf conftest*
21d1c967
GD
12633 echo "*** The test program compiled, but did not run. This usually means"
12634 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12635 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12636 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12637 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12638 echo "*** is required on your system"
12639 echo "***"
12640 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12641 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12642else
a0b9e27f
MB
12643 echo "configure: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12645 rm -rf conftest*
12646 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12647 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12648fi
a0b9e27f 12649rm -f conftest*
21d1c967
GD
12650 CFLAGS="$ac_save_CFLAGS"
12651 LIBS="$ac_save_LIBS"
12652 fi
12653 fi
12654 GTK_CFLAGS=""
12655 GTK_LIBS=""
12656 :
12657 fi
a0b9e27f
MB
12658
12659
21d1c967 12660 rm -f conf.gtktest
f79bd02d 12661
2b5f62a0 12662 else
a0b9e27f 12663 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12664if test "${with_gtk_prefix+set}" = set; then
12665 withval="$with_gtk_prefix"
12666 gtk_config_prefix="$withval"
12667else
12668 gtk_config_prefix=""
a0b9e27f 12669fi
f79bd02d 12670
21d1c967
GD
12671# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12672if test "${with_gtk_exec_prefix+set}" = set; then
12673 withval="$with_gtk_exec_prefix"
12674 gtk_config_exec_prefix="$withval"
12675else
12676 gtk_config_exec_prefix=""
a0b9e27f
MB
12677fi
12678
21d1c967
GD
12679# Check whether --enable-gtktest or --disable-gtktest was given.
12680if test "${enable_gtktest+set}" = set; then
12681 enableval="$enable_gtktest"
a0b9e27f 12682 :
21d1c967
GD
12683else
12684 enable_gtktest=yes
a0b9e27f
MB
12685fi
12686
21d1c967
GD
12687
12688 for module in . $GTK_MODULES
12689 do
12690 case "$module" in
a0b9e27f 12691 gthread)
21d1c967
GD
12692 gtk_config_args="$gtk_config_args gthread"
12693 ;;
12694 esac
12695 done
12696
12697 if test x$gtk_config_exec_prefix != x ; then
12698 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12699 if test x${GTK_CONFIG+set} != xset ; then
12700 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12701 fi
12702 fi
12703 if test x$gtk_config_prefix != x ; then
12704 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12705 if test x${GTK_CONFIG+set} != xset ; then
12706 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12707 fi
12708 fi
12709
12710 # Extract the first word of "gtk-config", so it can be a program name with args.
12711set dummy gtk-config; ac_word=$2
a0b9e27f 12712echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 12713echo "configure:12714: checking for $ac_word" >&5
a0b9e27f
MB
12714if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12716else
a0b9e27f
MB
12717 case "$GTK_CONFIG" in
12718 /*)
21d1c967
GD
12719 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12720 ;;
a0b9e27f
MB
12721 ?:/*)
12722 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12723 ;;
21d1c967 12724 *)
a0b9e27f
MB
12725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12726 ac_dummy="$PATH"
12727 for ac_dir in $ac_dummy; do
12728 test -z "$ac_dir" && ac_dir=.
12729 if test -f $ac_dir/$ac_word; then
12730 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12731 break
12732 fi
12733 done
12734 IFS="$ac_save_ifs"
21d1c967
GD
12735 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12736 ;;
12737esac
12738fi
a0b9e27f 12739GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12740if test -n "$GTK_CONFIG"; then
a0b9e27f 12741 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12742else
a0b9e27f 12743 echo "$ac_t""no" 1>&6
21d1c967
GD
12744fi
12745
12746 min_gtk_version=1.2.7
a0b9e27f 12747 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
fe0895cf 12748echo "configure:12749: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12749 no_gtk=""
12750 if test "$GTK_CONFIG" = "no" ; then
12751 no_gtk=yes
12752 else
12753 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12754 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12755 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12756 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12757 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12758 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12759 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12760 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12761 if test "x$enable_gtktest" = "xyes" ; then
12762 ac_save_CFLAGS="$CFLAGS"
12763 ac_save_LIBS="$LIBS"
12764 CFLAGS="$CFLAGS $GTK_CFLAGS"
12765 LIBS="$GTK_LIBS $LIBS"
12766 rm -f conf.gtktest
12767 if test "$cross_compiling" = yes; then
12768 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12769else
a0b9e27f 12770 cat > conftest.$ac_ext <<EOF
fe0895cf 12771#line 12772 "configure"
f79bd02d
JS
12772#include "confdefs.h"
12773
21d1c967
GD
12774#include <gtk/gtk.h>
12775#include <stdio.h>
12776#include <stdlib.h>
f79bd02d 12777
a0b9e27f 12778int
21d1c967
GD
12779main ()
12780{
12781 int major, minor, micro;
12782 char *tmp_version;
12783
12784 system ("touch conf.gtktest");
12785
12786 /* HP/UX 9 (%@#!) writes to sscanf strings */
12787 tmp_version = g_strdup("$min_gtk_version");
12788 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12789 printf("%s, bad version string\n", "$min_gtk_version");
12790 exit(1);
12791 }
90dd450c 12792
21d1c967
GD
12793 if ((gtk_major_version != $gtk_config_major_version) ||
12794 (gtk_minor_version != $gtk_config_minor_version) ||
12795 (gtk_micro_version != $gtk_config_micro_version))
12796 {
a0b9e27f 12797 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12798 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12799 gtk_major_version, gtk_minor_version, gtk_micro_version);
12800 printf ("*** was found! If gtk-config was correct, then it is best\n");
12801 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12802 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12803 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12804 printf("*** required on your system.\n");
12805 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12806 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12807 printf("*** before re-running configure\n");
a0b9e27f 12808 }
21d1c967
GD
12809#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12810 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12811 (gtk_minor_version != GTK_MINOR_VERSION) ||
12812 (gtk_micro_version != GTK_MICRO_VERSION))
12813 {
12814 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12815 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12816 printf("*** library (version %d.%d.%d)\n",
12817 gtk_major_version, gtk_minor_version, gtk_micro_version);
12818 }
12819#endif /* defined (GTK_MAJOR_VERSION) ... */
12820 else
12821 {
12822 if ((gtk_major_version > major) ||
12823 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12824 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12825 {
12826 return 0;
12827 }
12828 else
12829 {
12830 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12831 gtk_major_version, gtk_minor_version, gtk_micro_version);
12832 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12833 major, minor, micro);
12834 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12835 printf("***\n");
12836 printf("*** If you have already installed a sufficiently new version, this error\n");
12837 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12838 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12839 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12840 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12841 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12842 printf("*** so that the correct libraries are found at run-time))\n");
12843 }
12844 }
12845 return 1;
12846}
12847
a0b9e27f 12848EOF
fe0895cf 12849if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12850then
21d1c967
GD
12851 :
12852else
a0b9e27f
MB
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -fr conftest*
12856 no_gtk=yes
21d1c967 12857fi
a0b9e27f 12858rm -fr conftest*
21d1c967 12859fi
a0b9e27f 12860
21d1c967
GD
12861 CFLAGS="$ac_save_CFLAGS"
12862 LIBS="$ac_save_LIBS"
12863 fi
12864 fi
12865 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12866 echo "$ac_t""yes" 1>&6
12867 wx_cv_lib_gtk=1.2.7
21d1c967 12868 else
a0b9e27f 12869 echo "$ac_t""no" 1>&6
21d1c967
GD
12870 if test "$GTK_CONFIG" = "no" ; then
12871 echo "*** The gtk-config script installed by GTK could not be found"
12872 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12873 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12874 echo "*** full path to gtk-config."
12875 else
12876 if test -f conf.gtktest ; then
12877 :
12878 else
12879 echo "*** Could not run GTK test program, checking why..."
12880 CFLAGS="$CFLAGS $GTK_CFLAGS"
12881 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12882 cat > conftest.$ac_ext <<EOF
fe0895cf 12883#line 12884 "configure"
21d1c967
GD
12884#include "confdefs.h"
12885
12886#include <gtk/gtk.h>
12887#include <stdio.h>
12888
a0b9e27f
MB
12889int main() {
12890 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12891; return 0; }
12892EOF
fe0895cf 12893if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12894 rm -rf conftest*
21d1c967
GD
12895 echo "*** The test program compiled, but did not run. This usually means"
12896 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12897 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12898 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12899 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12900 echo "*** is required on your system"
12901 echo "***"
12902 echo "*** If you have an old version installed, it is best to remove it, although"
12903 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12904 echo "***"
12905 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12906 echo "*** came with the system with the command"
12907 echo "***"
a0b9e27f 12908 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12909else
a0b9e27f
MB
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 rm -rf conftest*
12913 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12914 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12915 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12916 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12917fi
a0b9e27f 12918rm -f conftest*
21d1c967
GD
12919 CFLAGS="$ac_save_CFLAGS"
12920 LIBS="$ac_save_LIBS"
12921 fi
12922 fi
12923 GTK_CFLAGS=""
12924 GTK_LIBS=""
12925 :
12926 fi
a0b9e27f
MB
12927
12928
21d1c967
GD
12929 rm -f conf.gtktest
12930
21d1c967 12931
2b5f62a0
VZ
12932 if test -z "$wx_cv_lib_gtk"; then
12933 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12934if test "${with_gtk_prefix+set}" = set; then
12935 withval="$with_gtk_prefix"
12936 gtk_config_prefix="$withval"
12937else
12938 gtk_config_prefix=""
a0b9e27f 12939fi
f79bd02d 12940
21d1c967
GD
12941# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12942if test "${with_gtk_exec_prefix+set}" = set; then
12943 withval="$with_gtk_exec_prefix"
12944 gtk_config_exec_prefix="$withval"
12945else
12946 gtk_config_exec_prefix=""
a0b9e27f
MB
12947fi
12948
21d1c967
GD
12949# Check whether --enable-gtktest or --disable-gtktest was given.
12950if test "${enable_gtktest+set}" = set; then
12951 enableval="$enable_gtktest"
a0b9e27f 12952 :
90dd450c 12953else
21d1c967 12954 enable_gtktest=yes
a0b9e27f
MB
12955fi
12956
21d1c967
GD
12957
12958 for module in . $GTK_MODULES
12959 do
12960 case "$module" in
a0b9e27f 12961 gthread)
21d1c967
GD
12962 gtk_config_args="$gtk_config_args gthread"
12963 ;;
12964 esac
12965 done
12966
12967 if test x$gtk_config_exec_prefix != x ; then
12968 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12969 if test x${GTK_CONFIG+set} != xset ; then
12970 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12971 fi
12972 fi
12973 if test x$gtk_config_prefix != x ; then
12974 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12975 if test x${GTK_CONFIG+set} != xset ; then
12976 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12977 fi
12978 fi
12979
12980 # Extract the first word of "gtk-config", so it can be a program name with args.
12981set dummy gtk-config; ac_word=$2
a0b9e27f 12982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 12983echo "configure:12984: checking for $ac_word" >&5
a0b9e27f
MB
12984if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12985 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12986else
a0b9e27f
MB
12987 case "$GTK_CONFIG" in
12988 /*)
21d1c967
GD
12989 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12990 ;;
a0b9e27f
MB
12991 ?:/*)
12992 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12993 ;;
21d1c967 12994 *)
a0b9e27f
MB
12995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12996 ac_dummy="$PATH"
12997 for ac_dir in $ac_dummy; do
12998 test -z "$ac_dir" && ac_dir=.
12999 if test -f $ac_dir/$ac_word; then
13000 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13001 break
13002 fi
13003 done
13004 IFS="$ac_save_ifs"
21d1c967
GD
13005 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13006 ;;
13007esac
13008fi
a0b9e27f 13009GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 13010if test -n "$GTK_CONFIG"; then
a0b9e27f 13011 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 13012else
a0b9e27f 13013 echo "$ac_t""no" 1>&6
21d1c967
GD
13014fi
13015
13016 min_gtk_version=1.2.3
a0b9e27f 13017 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
fe0895cf 13018echo "configure:13019: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
13019 no_gtk=""
13020 if test "$GTK_CONFIG" = "no" ; then
13021 no_gtk=yes
13022 else
13023 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13024 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13025 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13027 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13029 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13031 if test "x$enable_gtktest" = "xyes" ; then
13032 ac_save_CFLAGS="$CFLAGS"
13033 ac_save_LIBS="$LIBS"
13034 CFLAGS="$CFLAGS $GTK_CFLAGS"
13035 LIBS="$GTK_LIBS $LIBS"
13036 rm -f conf.gtktest
13037 if test "$cross_compiling" = yes; then
13038 echo $ac_n "cross compiling; assumed OK... $ac_c"
13039else
a0b9e27f 13040 cat > conftest.$ac_ext <<EOF
fe0895cf 13041#line 13042 "configure"
f79bd02d 13042#include "confdefs.h"
21d1c967
GD
13043
13044#include <gtk/gtk.h>
13045#include <stdio.h>
13046#include <stdlib.h>
13047
a0b9e27f 13048int
21d1c967
GD
13049main ()
13050{
13051 int major, minor, micro;
13052 char *tmp_version;
13053
13054 system ("touch conf.gtktest");
13055
13056 /* HP/UX 9 (%@#!) writes to sscanf strings */
13057 tmp_version = g_strdup("$min_gtk_version");
13058 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13059 printf("%s, bad version string\n", "$min_gtk_version");
13060 exit(1);
13061 }
13062
13063 if ((gtk_major_version != $gtk_config_major_version) ||
13064 (gtk_minor_version != $gtk_config_minor_version) ||
13065 (gtk_micro_version != $gtk_config_micro_version))
13066 {
a0b9e27f 13067 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13068 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13069 gtk_major_version, gtk_minor_version, gtk_micro_version);
13070 printf ("*** was found! If gtk-config was correct, then it is best\n");
13071 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13072 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13073 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13074 printf("*** required on your system.\n");
13075 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13076 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13077 printf("*** before re-running configure\n");
a0b9e27f 13078 }
21d1c967
GD
13079#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13080 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13081 (gtk_minor_version != GTK_MINOR_VERSION) ||
13082 (gtk_micro_version != GTK_MICRO_VERSION))
13083 {
13084 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13085 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13086 printf("*** library (version %d.%d.%d)\n",
13087 gtk_major_version, gtk_minor_version, gtk_micro_version);
13088 }
13089#endif /* defined (GTK_MAJOR_VERSION) ... */
13090 else
13091 {
13092 if ((gtk_major_version > major) ||
13093 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13094 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13095 {
13096 return 0;
13097 }
13098 else
13099 {
13100 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13101 gtk_major_version, gtk_minor_version, gtk_micro_version);
13102 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13103 major, minor, micro);
13104 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13105 printf("***\n");
13106 printf("*** If you have already installed a sufficiently new version, this error\n");
13107 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13108 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13109 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13110 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13111 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13112 printf("*** so that the correct libraries are found at run-time))\n");
13113 }
13114 }
13115 return 1;
13116}
13117
a0b9e27f 13118EOF
fe0895cf 13119if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13120then
21d1c967
GD
13121 :
13122else
a0b9e27f
MB
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -fr conftest*
13126 no_gtk=yes
21d1c967 13127fi
a0b9e27f 13128rm -fr conftest*
21d1c967 13129fi
a0b9e27f 13130
21d1c967
GD
13131 CFLAGS="$ac_save_CFLAGS"
13132 LIBS="$ac_save_LIBS"
13133 fi
13134 fi
13135 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13136 echo "$ac_t""yes" 1>&6
13137 wx_cv_lib_gtk=1.2.3
21d1c967 13138 else
a0b9e27f 13139 echo "$ac_t""no" 1>&6
21d1c967
GD
13140 if test "$GTK_CONFIG" = "no" ; then
13141 echo "*** The gtk-config script installed by GTK could not be found"
13142 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13143 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13144 echo "*** full path to gtk-config."
13145 else
13146 if test -f conf.gtktest ; then
13147 :
13148 else
13149 echo "*** Could not run GTK test program, checking why..."
13150 CFLAGS="$CFLAGS $GTK_CFLAGS"
13151 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13152 cat > conftest.$ac_ext <<EOF
fe0895cf 13153#line 13154 "configure"
21d1c967
GD
13154#include "confdefs.h"
13155
13156#include <gtk/gtk.h>
13157#include <stdio.h>
f79bd02d 13158
a0b9e27f
MB
13159int main() {
13160 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13161; return 0; }
13162EOF
fe0895cf 13163if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13164 rm -rf conftest*
21d1c967
GD
13165 echo "*** The test program compiled, but did not run. This usually means"
13166 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13167 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13168 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13169 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13170 echo "*** is required on your system"
13171 echo "***"
13172 echo "*** If you have an old version installed, it is best to remove it, although"
13173 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13174 echo "***"
13175 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13176 echo "*** came with the system with the command"
13177 echo "***"
a0b9e27f 13178 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13179else
a0b9e27f
MB
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13184 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13185 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13186 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13187fi
a0b9e27f 13188rm -f conftest*
21d1c967
GD
13189 CFLAGS="$ac_save_CFLAGS"
13190 LIBS="$ac_save_LIBS"
13191 fi
13192 fi
13193 GTK_CFLAGS=""
13194 GTK_LIBS=""
13195 :
13196 fi
a0b9e27f
MB
13197
13198
21d1c967 13199 rm -f conf.gtktest
f79bd02d 13200
2b5f62a0 13201 fi
21d1c967
GD
13202 fi
13203
13204 if test -z "$wx_cv_lib_gtk"; then
13205 wx_cv_lib_gtk=none
13206 else
13207 wx_cv_cflags_gtk=$GTK_CFLAGS
13208 wx_cv_libs_gtk=$GTK_LIBS
13209 fi
a0b9e27f
MB
13210
13211
5c6fa7d2 13212fi
52127426 13213
8284b0c5 13214
21d1c967 13215 if test "$gtk_version_cached" = 1; then
a0b9e27f 13216 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13217 fi
13218
13219 case "$wx_cv_lib_gtk" in
13220 2.0) WXGTK20=1
2b5f62a0 13221 TOOLKIT_VERSION=2
21d1c967
GD
13222 ;;
13223 1.2.7) WXGTK127=1
13224 WXGTK12=1
13225 ;;
13226 1.2.3) WXGTK12=1
13227 ;;
a0b9e27f 13228 *) { echo "configure: error:
247f5006
VZ
13229Please check that gtk-config is in path, the directory
13230where GTK+ libraries are installed (returned by
13231'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13232equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13233 " 1>&2; exit 1; }
21d1c967
GD
13234 ;;
13235 esac
13236
b13cd66e
VZ
13237 if test "$WXGTK20" = 1; then
13238 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13239
f09359cf
VS
13240 succeeded=no
13241
13242 if test -z "$PKG_CONFIG"; then
13243 # Extract the first word of "pkg-config", so it can be a program name with args.
13244set dummy pkg-config; ac_word=$2
a0b9e27f 13245echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 13246echo "configure:13247: checking for $ac_word" >&5
a0b9e27f
MB
13247if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13249else
a0b9e27f
MB
13250 case "$PKG_CONFIG" in
13251 /*)
f09359cf
VS
13252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13253 ;;
a0b9e27f
MB
13254 ?:/*)
13255 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13256 ;;
f09359cf 13257 *)
a0b9e27f
MB
13258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13259 ac_dummy="$PATH"
13260 for ac_dir in $ac_dummy; do
13261 test -z "$ac_dir" && ac_dir=.
13262 if test -f $ac_dir/$ac_word; then
13263 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13264 break
13265 fi
13266 done
13267 IFS="$ac_save_ifs"
f09359cf
VS
13268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13269 ;;
13270esac
13271fi
a0b9e27f 13272PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13273if test -n "$PKG_CONFIG"; then
a0b9e27f 13274 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13275else
a0b9e27f 13276 echo "$ac_t""no" 1>&6
f09359cf
VS
13277fi
13278
13279 fi
13280
13281 if test "$PKG_CONFIG" = "no" ; then
13282 echo "*** The pkg-config script could not be found. Make sure it is"
13283 echo "*** in your path, or set the PKG_CONFIG environment variable"
13284 echo "*** to the full path to pkg-config."
13285 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13286 else
13287 PKG_CONFIG_MIN_VERSION=0.9.0
13288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13289 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
fe0895cf 13290echo "configure:13291: checking for pangoft2" >&5
f09359cf
VS
13291
13292 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13293 echo "$ac_t""yes" 1>&6
f09359cf
VS
13294 succeeded=yes
13295
a0b9e27f 13296 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
fe0895cf 13297echo "configure:13298: checking PANGOFT2_CFLAGS" >&5
f09359cf 13298 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13299 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13300
a0b9e27f 13301 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
fe0895cf 13302echo "configure:13303: checking PANGOFT2_LIBS" >&5
f09359cf 13303 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13304 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13305 else
13306 PANGOFT2_CFLAGS=""
13307 PANGOFT2_LIBS=""
a0b9e27f 13308 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13309 ## do set a variable so people can do so.
13310 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13311
f09359cf
VS
13312 fi
13313
a0b9e27f
MB
13314
13315
f09359cf
VS
13316 else
13317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13319 fi
13320 fi
13321
13322 if test $succeeded = yes; then
a0b9e27f 13323
b13cd66e
VZ
13324 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13325 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13326
f09359cf 13327 else
a0b9e27f
MB
13328
13329 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13330 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13331
13332
f09359cf
VS
13333 fi
13334
b13cd66e 13335 fi
2b5f62a0
VZ
13336 else
13337 if test "$wxUSE_UNICODE" = "yes"; then
13338 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13339 wxUSE_UNICODE=no
13340 fi
13341 fi
13342
13343 if test "$USE_DARWIN" != 1; then
13344 for ac_func in poll
13345do
13346echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 13347echo "configure:13348: checking for $ac_func" >&5
2b5f62a0
VZ
13348if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13350else
13351 cat > conftest.$ac_ext <<EOF
fe0895cf 13352#line 13353 "configure"
2b5f62a0
VZ
13353#include "confdefs.h"
13354/* System header to define __stub macros and hopefully few prototypes,
13355 which can conflict with char $ac_func(); below. */
13356#include <assert.h>
13357/* Override any gcc2 internal prototype to avoid an error. */
13358/* We use char because int might match the return type of a gcc2
13359 builtin and then its argument prototype would still apply. */
13360char $ac_func();
13361
13362int main() {
13363
13364/* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368choke me
13369#else
13370$ac_func();
13371#endif
13372
13373; return 0; }
13374EOF
fe0895cf 13375if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13376 rm -rf conftest*
13377 eval "ac_cv_func_$ac_func=yes"
13378else
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 rm -rf conftest*
13382 eval "ac_cv_func_$ac_func=no"
13383fi
13384rm -f conftest*
13385fi
13386
13387if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13390 cat >> confdefs.h <<EOF
13391#define $ac_tr_func 1
13392EOF
13393
13394else
13395 echo "$ac_t""no" 1>&6
13396fi
13397done
13398
f09359cf
VS
13399 fi
13400
21d1c967
GD
13401 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13402 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13403
13404 AFMINSTALL=afminstall
13405 TOOLKIT=GTK
13406 GUIDIST=GTK_DIST
13407
a0b9e27f 13408 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
fe0895cf 13409echo "configure:13410: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13410ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13413else
a0b9e27f 13414 ac_save_LIBS="$LIBS"
21d1c967 13415LIBS="-lgdk $LIBS"
a0b9e27f 13416cat > conftest.$ac_ext <<EOF
fe0895cf 13417#line 13418 "configure"
90dd450c 13418#include "confdefs.h"
5c6fa7d2 13419/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13420/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13421 builtin and then its argument prototype would still apply. */
13422char gdk_im_open();
13423
13424int main() {
13425gdk_im_open()
13426; return 0; }
13427EOF
fe0895cf 13428if { (eval echo configure:13429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13429 rm -rf conftest*
13430 eval "ac_cv_lib_$ac_lib_var=yes"
13431else
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13434 rm -rf conftest*
13435 eval "ac_cv_lib_$ac_lib_var=no"
13436fi
13437rm -f conftest*
13438LIBS="$ac_save_LIBS"
13439
13440fi
13441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 cat >> confdefs.h <<\EOF
21d1c967 13444#define HAVE_XIM 1
a0b9e27f 13445EOF
21d1c967 13446
a0b9e27f
MB
13447else
13448 echo "$ac_t""no" 1>&6
90dd450c 13449fi
1e6feb95 13450
21d1c967 13451 fi
1e6feb95 13452
21d1c967 13453 if test "$wxUSE_MGL" = 1; then
63a76696 13454 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
fe0895cf 13455echo "configure:13456: checking for SciTech MGL library" >&5
21d1c967 13456 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13457 echo "$ac_t""not found" 1>&6
13458 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13459 else
a0b9e27f 13460 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13461 fi
13462
63a76696 13463 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
fe0895cf 13464echo "configure:13465: checking for libmgl location" >&5
21d1c967
GD
13465 case "${host}" in
13466 *-*-linux* )
63a76696
VS
13467 if test "x$wxUSE_SHARED" = xyes ; then
13468 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13469 else
13470 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13471 fi
21d1c967
GD
13472 ;;
13473 *-pc-msdosdjgpp )
63a76696 13474 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13475 ;;
13476 *)
a0b9e27f 13477 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13478 esac
1e6feb95 13479
21d1c967 13480 mgl_lib_type=""
63a76696
VS
13481 mgl_os=""
13482
13483 for mgl_os_i in $mgl_os_candidates ; do
13484 if test "x$mgl_os" = x ; then
13485 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13486 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13487 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13488 mgl_lib_type=debug
13489 mgl_os=$mgl_os_i
13490 fi
13491 fi
13492 if test "x$mgl_lib_type" = x ; then
13493 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13494 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13495 mgl_lib_type=release
13496 mgl_os=$mgl_os_i
13497 fi
13498 fi
21d1c967 13499 fi
63a76696 13500 done
2224580a 13501
63a76696
VS
13502 if test "x$mgl_os" = x ; then
13503 echo "$ac_t""not found" 1>&6
13504 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13505 fi
13506 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13507
1d1b75ac
VZ
13508 wxUSE_UNIVERSAL="yes"
13509
21d1c967
GD
13510 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13511 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13512
90dd450c 13513 AFMINSTALL=afminstall
21d1c967
GD
13514 TOOLKIT=MGL
13515 GUIDIST=MGL_DIST
13516 fi
dad6c0ea 13517
21d1c967 13518 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13519 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
fe0895cf 13520echo "configure:13521: checking for MicroWindows" >&5
21d1c967 13521 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13522 echo "$ac_t""not found" 1>&6
13523 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13524 else
a0b9e27f 13525 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13526 fi
f6bcfd97 13527
21d1c967 13528 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13529 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13530 else
a0b9e27f 13531 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13532 fi
0b2effe9 13533
21d1c967
GD
13534 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13535 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13536
1d1b75ac
VZ
13537 wxUSE_UNIVERSAL="yes"
13538
21d1c967
GD
13539 AFMINSTALL=afminstall
13540 TOOLKIT=MICROWIN
13541 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13542
13543 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13544 fi
f6bcfd97 13545
21d1c967 13546 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13547 # If we find X, set shell vars x_includes and x_libraries to the
13548# paths, otherwise set no_x=yes.
13549# Uses ac_ vars as temps to allow command line to override cache and checks.
13550# --without-x overrides everything else, but does not touch the cache.
13551echo $ac_n "checking for X""... $ac_c" 1>&6
fe0895cf 13552echo "configure:13553: checking for X" >&5
d8356fa3 13553
21d1c967
GD
13554# Check whether --with-x or --without-x was given.
13555if test "${with_x+set}" = set; then
13556 withval="$with_x"
a0b9e27f
MB
13557 :
13558fi
2224580a 13559
21d1c967
GD
13560# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13561if test "x$with_x" = xno; then
13562 # The user explicitly disabled X.
13563 have_x=disabled
13564else
13565 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13566 # Both variables are already set.
13567 have_x=yes
13568 else
a0b9e27f
MB
13569if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13571else
13572 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13573ac_x_includes=NO ac_x_libraries=NO
13574rm -fr conftestdir
13575if mkdir conftestdir; then
13576 cd conftestdir
21d1c967 13577 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13578 cat > Imakefile <<'EOF'
21d1c967
GD
13579acfindx:
13580 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13581EOF
21d1c967
GD
13582 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13584 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13586 for ac_extension in a so sl; do
13587 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13588 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13589 ac_im_usrlibdir=$ac_im_libdir; break
13590 fi
13591 done
13592 # Screen out bogus values from the imake configuration. They are
13593 # bogus both because they are the default anyway, and because
13594 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13595 case "$ac_im_incroot" in
21d1c967 13596 /usr/include) ;;
a0b9e27f 13597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13598 esac
a0b9e27f 13599 case "$ac_im_usrlibdir" in
21d1c967 13600 /usr/lib | /lib) ;;
a0b9e27f 13601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13602 esac
13603 fi
13604 cd ..
a0b9e27f 13605 rm -fr conftestdir
21d1c967 13606fi
10f2d63a 13607
a0b9e27f
MB
13608if test "$ac_x_includes" = NO; then
13609 # Guess where to find include files, by looking for this one X11 .h file.
13610 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13611
21d1c967 13612 # First, try using that file with no special directory specified.
a0b9e27f 13613cat > conftest.$ac_ext <<EOF
fe0895cf 13614#line 13615 "configure"
21d1c967 13615#include "confdefs.h"
a0b9e27f
MB
13616#include <$x_direct_test_include>
13617EOF
13618ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 13619{ (eval echo configure:13620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13620ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13621if test -z "$ac_err"; then
13622 rm -rf conftest*
21d1c967
GD
13623 # We can compile using X headers with no special include directory.
13624ac_x_includes=
90dd450c 13625else
a0b9e27f
MB
13626 echo "$ac_err" >&5
13627 echo "configure: failed program was:" >&5
90dd450c 13628 cat conftest.$ac_ext >&5
a0b9e27f
MB
13629 rm -rf conftest*
13630 # Look for the header file in a standard set of common directories.
13631# Check X11 before X11Rn because it is often a symlink to the current release.
13632 for ac_dir in \
13633 /usr/X11/include \
13634 /usr/X11R6/include \
13635 /usr/X11R5/include \
13636 /usr/X11R4/include \
13637 \
13638 /usr/include/X11 \
13639 /usr/include/X11R6 \
13640 /usr/include/X11R5 \
13641 /usr/include/X11R4 \
13642 \
13643 /usr/local/X11/include \
13644 /usr/local/X11R6/include \
13645 /usr/local/X11R5/include \
13646 /usr/local/X11R4/include \
13647 \
13648 /usr/local/include/X11 \
13649 /usr/local/include/X11R6 \
13650 /usr/local/include/X11R5 \
13651 /usr/local/include/X11R4 \
13652 \
13653 /usr/X386/include \
13654 /usr/x386/include \
13655 /usr/XFree86/include/X11 \
13656 \
13657 /usr/include \
13658 /usr/local/include \
13659 /usr/unsupported/include \
13660 /usr/athena/include \
13661 /usr/local/x11r5/include \
13662 /usr/lpp/Xamples/include \
13663 \
13664 /usr/openwin/include \
13665 /usr/openwin/share/include \
13666 ; \
13667 do
13668 if test -r "$ac_dir/$x_direct_test_include"; then
13669 ac_x_includes=$ac_dir
13670 break
13671 fi
13672 done
3a922bb4 13673fi
a0b9e27f
MB
13674rm -f conftest*
13675fi # $ac_x_includes = NO
10f2d63a 13676
a0b9e27f 13677if test "$ac_x_libraries" = NO; then
21d1c967 13678 # Check for the libraries.
a0b9e27f
MB
13679
13680 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13681 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13682
21d1c967
GD
13683 # See if we find them without any special options.
13684 # Don't add to $LIBS permanently.
a0b9e27f
MB
13685 ac_save_LIBS="$LIBS"
13686 LIBS="-l$x_direct_test_library $LIBS"
13687cat > conftest.$ac_ext <<EOF
fe0895cf 13688#line 13689 "configure"
3a922bb4 13689#include "confdefs.h"
a0b9e27f
MB
13690
13691int main() {
13692${x_direct_test_function}()
13693; return 0; }
13694EOF
fe0895cf 13695if { (eval echo configure:13696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13696 rm -rf conftest*
13697 LIBS="$ac_save_LIBS"
21d1c967
GD
13698# We can link X programs with no special library path.
13699ac_x_libraries=
3a922bb4 13700else
a0b9e27f
MB
13701 echo "configure: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13703 rm -rf conftest*
13704 LIBS="$ac_save_LIBS"
13705# First see if replacing the include by lib works.
13706# Check X11 before X11Rn because it is often a symlink to the current release.
13707for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13708 /usr/X11/lib \
13709 /usr/X11R6/lib \
13710 /usr/X11R5/lib \
13711 /usr/X11R4/lib \
13712 \
13713 /usr/lib/X11 \
13714 /usr/lib/X11R6 \
13715 /usr/lib/X11R5 \
13716 /usr/lib/X11R4 \
13717 \
13718 /usr/local/X11/lib \
13719 /usr/local/X11R6/lib \
13720 /usr/local/X11R5/lib \
13721 /usr/local/X11R4/lib \
13722 \
13723 /usr/local/lib/X11 \
13724 /usr/local/lib/X11R6 \
13725 /usr/local/lib/X11R5 \
13726 /usr/local/lib/X11R4 \
13727 \
13728 /usr/X386/lib \
13729 /usr/x386/lib \
13730 /usr/XFree86/lib/X11 \
13731 \
13732 /usr/lib \
13733 /usr/local/lib \
13734 /usr/unsupported/lib \
13735 /usr/athena/lib \
13736 /usr/local/x11r5/lib \
13737 /usr/lpp/Xamples/lib \
13738 /lib/usr/lib/X11 \
13739 \
13740 /usr/openwin/lib \
13741 /usr/openwin/share/lib \
13742 ; \
21d1c967
GD
13743do
13744 for ac_extension in a so sl; do
a0b9e27f 13745 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13746 ac_x_libraries=$ac_dir
13747 break 2
13748 fi
13749 done
13750done
3a922bb4 13751fi
a0b9e27f
MB
13752rm -f conftest*
13753fi # $ac_x_libraries = NO
90dd450c 13754
a0b9e27f 13755if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13756 # Didn't find X anywhere. Cache the known absence of X.
13757 ac_cv_have_x="have_x=no"
13758else
13759 # Record where we found X for the cache.
13760 ac_cv_have_x="have_x=yes \
13761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13762fi
21d1c967
GD
13763fi
13764 fi
13765 eval "$ac_cv_have_x"
13766fi # $with_x != no
90dd450c 13767
21d1c967 13768if test "$have_x" != yes; then
a0b9e27f 13769 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13770 no_x=yes
13771else
13772 # If each of the values was on the command line, it overrides each guess.
13773 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13774 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13775 # Update the cache value to reflect the command line values.
13776 ac_cv_have_x="have_x=yes \
13777 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13778 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13779fi
90dd450c 13780
21d1c967 13781if test "$no_x" = yes; then
90dd450c 13782 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13783 cat >> confdefs.h <<\EOF
90dd450c 13784#define X_DISPLAY_MISSING 1
a0b9e27f 13785EOF
90dd450c
VZ
13786
13787 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13788else
13789 if test -n "$x_includes"; then
13790 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13791 fi
3a922bb4 13792
90dd450c
VZ
13793 # It would also be nice to do this for all -L options, not just this one.
13794 if test -n "$x_libraries"; then
13795 X_LIBS="$X_LIBS -L$x_libraries"
13796 # For Solaris; some versions of Sun CC require a space after -R and
13797 # others require no space. Words are not sufficient . . . .
a0b9e27f 13798 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13799 "SunOS 5"*)
a0b9e27f 13800 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
fe0895cf 13801echo "configure:13802: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13802 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13803 cat > conftest.$ac_ext <<EOF
fe0895cf 13804#line 13805 "configure"
90dd450c
VZ
13805#include "confdefs.h"
13806
a0b9e27f 13807int main() {
90dd450c 13808
a0b9e27f
MB
13809; return 0; }
13810EOF
fe0895cf 13811if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13812 rm -rf conftest*
90dd450c 13813 ac_R_nospace=yes
3a922bb4 13814else
a0b9e27f
MB
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -rf conftest*
13818 ac_R_nospace=no
3a922bb4 13819fi
a0b9e27f 13820rm -f conftest*
90dd450c 13821 if test $ac_R_nospace = yes; then
a0b9e27f 13822 echo "$ac_t""no" 1>&6
90dd450c
VZ
13823 X_LIBS="$X_LIBS -R$x_libraries"
13824 else
13825 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13826 cat > conftest.$ac_ext <<EOF
fe0895cf 13827#line 13828 "configure"
90dd450c 13828#include "confdefs.h"
3a922bb4 13829
a0b9e27f 13830int main() {
6f754473 13831
a0b9e27f
MB
13832; return 0; }
13833EOF
fe0895cf 13834if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13835 rm -rf conftest*
90dd450c
VZ
13836 ac_R_space=yes
13837else
a0b9e27f
MB
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 rm -rf conftest*
13841 ac_R_space=no
90dd450c 13842fi
a0b9e27f 13843rm -f conftest*
90dd450c 13844 if test $ac_R_space = yes; then
a0b9e27f 13845 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13846 X_LIBS="$X_LIBS -R $x_libraries"
13847 else
a0b9e27f 13848 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13849 fi
13850 fi
a0b9e27f 13851 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13852 esac
13853 fi
13854
13855 # Check for system-dependent libraries X programs must link with.
13856 # Do this before checking for the system-independent R6 libraries
13857 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13858
90dd450c
VZ
13859 if test "$ISC" = yes; then
13860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13861 else
a0b9e27f
MB
13862 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13863 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13864 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13865 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
fe0895cf 13866echo "configure:13867: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13867ac_lib_var=`echo dnet'_'dnet_ntoa | 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
247f5006 13870else
a0b9e27f 13871 ac_save_LIBS="$LIBS"
247f5006 13872LIBS="-ldnet $LIBS"
a0b9e27f 13873cat > conftest.$ac_ext <<EOF
fe0895cf 13874#line 13875 "configure"
247f5006 13875#include "confdefs.h"
247f5006 13876/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13877/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13878 builtin and then its argument prototype would still apply. */
13879char dnet_ntoa();
13880
13881int main() {
13882dnet_ntoa()
13883; return 0; }
13884EOF
fe0895cf 13885if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
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
90dd450c 13900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13901else
13902 echo "$ac_t""no" 1>&6
3a922bb4
RL
13903fi
13904
90dd450c 13905 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13906 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
fe0895cf 13907echo "configure:13908: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13908ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13910 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13911else
a0b9e27f 13912 ac_save_LIBS="$LIBS"
90dd450c 13913LIBS="-ldnet_stub $LIBS"
a0b9e27f 13914cat > conftest.$ac_ext <<EOF
fe0895cf 13915#line 13916 "configure"
90dd450c
VZ
13916#include "confdefs.h"
13917/* Override any gcc2 internal prototype to avoid an error. */
13918/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13919 builtin and then its argument prototype would still apply. */
13920char dnet_ntoa();
13921
13922int main() {
13923dnet_ntoa()
13924; return 0; }
13925EOF
fe0895cf 13926if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13927 rm -rf conftest*
13928 eval "ac_cv_lib_$ac_lib_var=yes"
13929else
13930 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13932 rm -rf conftest*
13933 eval "ac_cv_lib_$ac_lib_var=no"
13934fi
13935rm -f conftest*
13936LIBS="$ac_save_LIBS"
13937
13938fi
13939if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
90dd450c 13941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13942else
13943 echo "$ac_t""no" 1>&6
3a922bb4
RL
13944fi
13945
90dd450c 13946 fi
978f1259 13947
90dd450c
VZ
13948 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13949 # to get the SysV transport functions.
a0b9e27f 13950 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13951 # needs -lnsl.
13952 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13953 # on Irix 5.2, according to dickey@clark.net.
13954 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
fe0895cf 13955echo "configure:13956: checking for gethostbyname" >&5
a0b9e27f
MB
13956if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13958else
13959 cat > conftest.$ac_ext <<EOF
fe0895cf 13960#line 13961 "configure"
90dd450c
VZ
13961#include "confdefs.h"
13962/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13963 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13964#include <assert.h>
13965/* Override any gcc2 internal prototype to avoid an error. */
13966/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13967 builtin and then its argument prototype would still apply. */
13968char gethostbyname();
13969
13970int main() {
13971
90dd450c
VZ
13972/* The GNU C library defines this for functions which it implements
13973 to always fail with ENOSYS. Some functions are actually named
13974 something starting with __ and the normal name is an alias. */
13975#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13976choke me
13977#else
a0b9e27f 13978gethostbyname();
90dd450c 13979#endif
978f1259 13980
a0b9e27f
MB
13981; return 0; }
13982EOF
fe0895cf 13983if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13984 rm -rf conftest*
13985 eval "ac_cv_func_gethostbyname=yes"
13986else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_func_gethostbyname=no"
13991fi
13992rm -f conftest*
13993fi
13994
13995if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 :
13998else
13999 echo "$ac_t""no" 1>&6
14000fi
698dcdb6 14001
90dd450c 14002 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14003 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
fe0895cf 14004echo "configure:14005: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14005ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14008else
a0b9e27f 14009 ac_save_LIBS="$LIBS"
90dd450c 14010LIBS="-lnsl $LIBS"
a0b9e27f 14011cat > conftest.$ac_ext <<EOF
fe0895cf 14012#line 14013 "configure"
90dd450c
VZ
14013#include "confdefs.h"
14014/* Override any gcc2 internal prototype to avoid an error. */
14015/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14016 builtin and then its argument prototype would still apply. */
14017char gethostbyname();
5c6fa7d2 14018
a0b9e27f
MB
14019int main() {
14020gethostbyname()
14021; return 0; }
14022EOF
fe0895cf 14023if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14024 rm -rf conftest*
14025 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14026else
a0b9e27f
MB
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 eval "ac_cv_lib_$ac_lib_var=no"
14031fi
14032rm -f conftest*
14033LIBS="$ac_save_LIBS"
247f5006 14034
a0b9e27f
MB
14035fi
14036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
14038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14039else
14040 echo "$ac_t""no" 1>&6
90dd450c 14041fi
b12915c1 14042
90dd450c
VZ
14043 fi
14044
14045 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14046 # socket/setsockopt and other routines are undefined under SCO ODT
14047 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14048 # on later versions), says simon@lia.di.epfl.ch: it contains
14049 # gethostby* variants that don't use the nameserver (or something).
14050 # -lsocket must be given before -lnsl if both are needed.
14051 # We assume that if connect needs -lnsl, so does gethostbyname.
14052 echo $ac_n "checking for connect""... $ac_c" 1>&6
fe0895cf 14053echo "configure:14054: checking for connect" >&5
a0b9e27f
MB
14054if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056else
14057 cat > conftest.$ac_ext <<EOF
fe0895cf 14058#line 14059 "configure"
55e80573 14059#include "confdefs.h"
90dd450c 14060/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14061 which can conflict with char connect(); below. */
90dd450c
VZ
14062#include <assert.h>
14063/* Override any gcc2 internal prototype to avoid an error. */
14064/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14065 builtin and then its argument prototype would still apply. */
14066char connect();
14067
14068int main() {
14069
90dd450c
VZ
14070/* The GNU C library defines this for functions which it implements
14071 to always fail with ENOSYS. Some functions are actually named
14072 something starting with __ and the normal name is an alias. */
14073#if defined (__stub_connect) || defined (__stub___connect)
14074choke me
14075#else
a0b9e27f 14076connect();
90dd450c
VZ
14077#endif
14078
a0b9e27f
MB
14079; return 0; }
14080EOF
fe0895cf 14081if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14082 rm -rf conftest*
14083 eval "ac_cv_func_connect=yes"
14084else
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 rm -rf conftest*
14088 eval "ac_cv_func_connect=no"
14089fi
14090rm -f conftest*
14091fi
14092
14093if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14095 :
14096else
14097 echo "$ac_t""no" 1>&6
14098fi
55e80573 14099
90dd450c 14100 if test $ac_cv_func_connect = no; then
a0b9e27f 14101 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
fe0895cf 14102echo "configure:14103: checking for connect in -lsocket" >&5
a0b9e27f
MB
14103ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14104if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14106else
a0b9e27f 14107 ac_save_LIBS="$LIBS"
90dd450c 14108LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14109cat > conftest.$ac_ext <<EOF
fe0895cf 14110#line 14111 "configure"
90dd450c
VZ
14111#include "confdefs.h"
14112/* Override any gcc2 internal prototype to avoid an error. */
14113/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14114 builtin and then its argument prototype would still apply. */
14115char connect();
14116
14117int main() {
14118connect()
14119; return 0; }
14120EOF
fe0895cf 14121if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14122 rm -rf conftest*
14123 eval "ac_cv_lib_$ac_lib_var=yes"
14124else
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14127 rm -rf conftest*
14128 eval "ac_cv_lib_$ac_lib_var=no"
14129fi
14130rm -f conftest*
14131LIBS="$ac_save_LIBS"
14132
14133fi
14134if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
90dd450c 14136 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14137else
14138 echo "$ac_t""no" 1>&6
90dd450c 14139fi
77e13408 14140
90dd450c 14141 fi
25d0687a 14142
a0b9e27f
MB
14143 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14144 echo $ac_n "checking for remove""... $ac_c" 1>&6
fe0895cf 14145echo "configure:14146: checking for remove" >&5
a0b9e27f
MB
14146if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14147 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14148else
a0b9e27f 14149 cat > conftest.$ac_ext <<EOF
fe0895cf 14150#line 14151 "configure"
90dd450c
VZ
14151#include "confdefs.h"
14152/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14153 which can conflict with char remove(); below. */
90dd450c
VZ
14154#include <assert.h>
14155/* Override any gcc2 internal prototype to avoid an error. */
14156/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14157 builtin and then its argument prototype would still apply. */
14158char remove();
14159
14160int main() {
14161
90dd450c
VZ
14162/* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165#if defined (__stub_remove) || defined (__stub___remove)
14166choke me
14167#else
a0b9e27f 14168remove();
90dd450c 14169#endif
55e80573 14170
a0b9e27f
MB
14171; return 0; }
14172EOF
fe0895cf 14173if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14174 rm -rf conftest*
14175 eval "ac_cv_func_remove=yes"
14176else
14177 echo "configure: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14179 rm -rf conftest*
14180 eval "ac_cv_func_remove=no"
14181fi
14182rm -f conftest*
14183fi
14184
14185if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14187 :
14188else
14189 echo "$ac_t""no" 1>&6
14190fi
10f2d63a 14191
90dd450c 14192 if test $ac_cv_func_remove = no; then
a0b9e27f 14193 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
fe0895cf 14194echo "configure:14195: checking for remove in -lposix" >&5
a0b9e27f
MB
14195ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14198else
a0b9e27f 14199 ac_save_LIBS="$LIBS"
90dd450c 14200LIBS="-lposix $LIBS"
a0b9e27f 14201cat > conftest.$ac_ext <<EOF
fe0895cf 14202#line 14203 "configure"
90dd450c
VZ
14203#include "confdefs.h"
14204/* Override any gcc2 internal prototype to avoid an error. */
14205/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14206 builtin and then its argument prototype would still apply. */
14207char remove();
14208
14209int main() {
14210remove()
14211; return 0; }
14212EOF
fe0895cf 14213if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14214 rm -rf conftest*
14215 eval "ac_cv_lib_$ac_lib_var=yes"
14216else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 eval "ac_cv_lib_$ac_lib_var=no"
14221fi
14222rm -f conftest*
14223LIBS="$ac_save_LIBS"
14224
14225fi
14226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14227 echo "$ac_t""yes" 1>&6
90dd450c 14228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14229else
14230 echo "$ac_t""no" 1>&6
90dd450c 14231fi
f6bcfd97 14232
6fa882bd
RR
14233 fi
14234
90dd450c 14235 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14236 echo $ac_n "checking for shmat""... $ac_c" 1>&6
fe0895cf 14237echo "configure:14238: checking for shmat" >&5
a0b9e27f
MB
14238if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14240else
a0b9e27f 14241 cat > conftest.$ac_ext <<EOF
fe0895cf 14242#line 14243 "configure"
90dd450c
VZ
14243#include "confdefs.h"
14244/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14245 which can conflict with char shmat(); below. */
90dd450c
VZ
14246#include <assert.h>
14247/* Override any gcc2 internal prototype to avoid an error. */
14248/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14249 builtin and then its argument prototype would still apply. */
14250char shmat();
14251
14252int main() {
14253
90dd450c
VZ
14254/* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257#if defined (__stub_shmat) || defined (__stub___shmat)
14258choke me
14259#else
a0b9e27f 14260shmat();
90dd450c 14261#endif
10f2d63a 14262
a0b9e27f
MB
14263; return 0; }
14264EOF
fe0895cf 14265if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14266 rm -rf conftest*
14267 eval "ac_cv_func_shmat=yes"
14268else
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14271 rm -rf conftest*
14272 eval "ac_cv_func_shmat=no"
14273fi
14274rm -f conftest*
14275fi
14276
14277if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14279 :
14280else
14281 echo "$ac_t""no" 1>&6
14282fi
d08b457b 14283
90dd450c 14284 if test $ac_cv_func_shmat = no; then
a0b9e27f 14285 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
fe0895cf 14286echo "configure:14287: checking for shmat in -lipc" >&5
a0b9e27f
MB
14287ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14290else
a0b9e27f 14291 ac_save_LIBS="$LIBS"
90dd450c 14292LIBS="-lipc $LIBS"
a0b9e27f 14293cat > conftest.$ac_ext <<EOF
fe0895cf 14294#line 14295 "configure"
90dd450c 14295#include "confdefs.h"
8284b0c5 14296/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14297/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14298 builtin and then its argument prototype would still apply. */
14299char shmat();
14300
14301int main() {
14302shmat()
14303; return 0; }
14304EOF
fe0895cf 14305if { (eval echo configure:14306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14306 rm -rf conftest*
14307 eval "ac_cv_lib_$ac_lib_var=yes"
14308else
14309 echo "configure: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=no"
14313fi
14314rm -f conftest*
14315LIBS="$ac_save_LIBS"
14316
14317fi
14318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
90dd450c 14320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14321else
14322 echo "$ac_t""no" 1>&6
d08b457b
GD
14323fi
14324
d558c907 14325 fi
90dd450c 14326 fi
3a922bb4 14327
90dd450c 14328 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14329 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14330 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14331 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14332 # check for ICE first), but we must link in the order -lSM -lICE or
14333 # we get undefined symbols. So assume we have SM if we have ICE.
14334 # These have to be linked with before -lX11, unlike the other
14335 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14336 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14337 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
fe0895cf 14338echo "configure:14339: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14339ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
14342else
14343 ac_save_LIBS="$LIBS"
f09359cf 14344LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14345cat > conftest.$ac_ext <<EOF
fe0895cf 14346#line 14347 "configure"
9cfadba2 14347#include "confdefs.h"
90dd450c
VZ
14348/* Override any gcc2 internal prototype to avoid an error. */
14349/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14350 builtin and then its argument prototype would still apply. */
14351char IceConnectionNumber();
14352
14353int main() {
14354IceConnectionNumber()
14355; return 0; }
14356EOF
fe0895cf 14357if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14358 rm -rf conftest*
14359 eval "ac_cv_lib_$ac_lib_var=yes"
14360else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_lib_$ac_lib_var=no"
14365fi
14366rm -f conftest*
14367LIBS="$ac_save_LIBS"
14368
14369fi
14370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
90dd450c 14372 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14373else
14374 echo "$ac_t""no" 1>&6
9cfadba2 14375fi
10f2d63a 14376
a0b9e27f 14377 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14378
14379fi
14380
8284b0c5 14381
90dd450c 14382 if test "$no_x" = "yes"; then
a0b9e27f 14383 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14384 fi
14385
14386 GUI_TK_LIBRARY="$X_LIBS"
14387 TOOLKIT_INCLUDE="$X_CFLAGS"
14388 AFMINSTALL=afminstall
14389 COMPILED_X_PROGRAM=0
14390
21d1c967 14391 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14392 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
fe0895cf 14393echo "configure:14394: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14394 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14395 echo "$ac_t""not found" 1>&6
14396 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14397 else
a0b9e27f
MB
14398 echo "$ac_t""$MICROWIN" 1>&6
14399 cat >> confdefs.h <<\EOF
21d1c967 14400#define wxUSE_NANOX 1
a0b9e27f 14401EOF
21d1c967 14402
90dd450c
VZ
14403 fi
14404 fi
14405
14406 xpm_link=
a0b9e27f 14407 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
fe0895cf 14408echo "configure:14409: checking for Xpm library" >&5
a0b9e27f 14409
90dd450c 14410ac_find_libraries=
2b5f62a0 14411for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14412 do
14413 for ac_extension in a so sl dylib; do
14414 if test -f "$ac_dir/libXpm.$ac_extension"; then
14415 ac_find_libraries=$ac_dir
14416 break 2
14417 fi
14418 done
14419 done
14420
14421 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14422
90dd450c
VZ
14423 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14424 result=$?
14425 if test $result = 0; then
14426 ac_path_to_link=""
14427 else
14428 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14429 fi
90dd450c 14430
21d1c967
GD
14431 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14432 xpm_link=" -lXpm"
a0b9e27f 14433 cat >> confdefs.h <<\EOF
21d1c967 14434#define wxHAVE_LIB_XPM 1
a0b9e27f 14435EOF
90dd450c 14436
a0b9e27f 14437 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14438 else
a0b9e27f 14439 cat > conftest.$ac_ext <<EOF
fe0895cf 14440#line 14441 "configure"
21d1c967 14441#include "confdefs.h"
90dd450c 14442
21d1c967 14443 #include <X11/xpm.h>
a0b9e27f
MB
14444
14445int main() {
6f72b082 14446
21d1c967
GD
14447 int version;
14448 version = XpmLibraryVersion();
a0b9e27f
MB
14449
14450; return 0; }
14451EOF
fe0895cf 14452if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14453 rm -rf conftest*
14454
21d1c967 14455 xpm_link=" -lXpm"
a0b9e27f 14456 cat >> confdefs.h <<\EOF
21d1c967 14457#define wxHAVE_LIB_XPM 1
a0b9e27f 14458EOF
90dd450c 14459
a0b9e27f 14460 echo "$ac_t""found in default search path" 1>&6
21d1c967 14461 COMPILED_X_PROGRAM=0
a0b9e27f 14462
21d1c967 14463else
a0b9e27f
MB
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14466 rm -rf conftest*
14467
14468 echo "$ac_t""no" 1>&6
14469 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14470
14471
6f72b082 14472fi
a0b9e27f 14473rm -f conftest*
21d1c967 14474 fi
90dd450c 14475
f7f78039 14476 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
fe0895cf 14477echo "configure:14478: checking for XShapeQueryExtension in -lXext" >&5
f7f78039
MB
14478ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481else
14482 ac_save_LIBS="$LIBS"
14483LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14484cat > conftest.$ac_ext <<EOF
fe0895cf 14485#line 14486 "configure"
f7f78039
MB
14486#include "confdefs.h"
14487/* Override any gcc2 internal prototype to avoid an error. */
14488/* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14490char XShapeQueryExtension();
14491
14492int main() {
14493XShapeQueryExtension()
14494; return 0; }
14495EOF
fe0895cf 14496if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7f78039
MB
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=yes"
14499else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 eval "ac_cv_lib_$ac_lib_var=no"
14504fi
14505rm -f conftest*
14506LIBS="$ac_save_LIBS"
14507
14508fi
14509if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14510 echo "$ac_t""yes" 1>&6
14511
14512 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14513 wxHAVE_XEXT_LIB=1
14514
14515else
14516 echo "$ac_t""no" 1>&6
14517fi
14518
14519
2b5f62a0
VZ
14520 if test "$wxUSE_UNICODE" = "yes"; then
14521
14522 succeeded=no
90dd450c 14523
2b5f62a0
VZ
14524 if test -z "$PKG_CONFIG"; then
14525 # Extract the first word of "pkg-config", so it can be a program name with args.
14526set dummy pkg-config; ac_word=$2
14527echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 14528echo "configure:14529: checking for $ac_word" >&5
2b5f62a0 14529if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531else
2b5f62a0
VZ
14532 case "$PKG_CONFIG" in
14533 /*)
14534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14535 ;;
14536 ?:/*)
14537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14538 ;;
14539 *)
14540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14541 ac_dummy="$PATH"
14542 for ac_dir in $ac_dummy; do
14543 test -z "$ac_dir" && ac_dir=.
14544 if test -f $ac_dir/$ac_word; then
14545 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14546 break
14547 fi
14548 done
14549 IFS="$ac_save_ifs"
14550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14551 ;;
14552esac
14553fi
14554PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14555if test -n "$PKG_CONFIG"; then
14556 echo "$ac_t""$PKG_CONFIG" 1>&6
14557else
14558 echo "$ac_t""no" 1>&6
14559fi
14560
14561 fi
14562
14563 if test "$PKG_CONFIG" = "no" ; then
14564 echo "*** The pkg-config script could not be found. Make sure it is"
14565 echo "*** in your path, or set the PKG_CONFIG environment variable"
14566 echo "*** to the full path to pkg-config."
14567 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14568 else
14569 PKG_CONFIG_MIN_VERSION=0.9.0
14570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14571 echo $ac_n "checking for pangox""... $ac_c" 1>&6
fe0895cf 14572echo "configure:14573: checking for pangox" >&5
2b5f62a0
VZ
14573
14574 if $PKG_CONFIG --exists "pangox" ; then
14575 echo "$ac_t""yes" 1>&6
14576 succeeded=yes
14577
14578 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
fe0895cf 14579echo "configure:14580: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14580 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14581 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14582
14583 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
fe0895cf 14584echo "configure:14585: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14585 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14586 echo "$ac_t""$PANGOX_LIBS" 1>&6
14587 else
14588 PANGOX_CFLAGS=""
14589 PANGOX_LIBS=""
14590 ## If we have a custom action on failure, don't print errors, but
14591 ## do set a variable so people can do so.
14592 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14593
14594 fi
14595
14596
14597
14598 else
14599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14601 fi
14602 fi
14603
14604 if test $succeeded = yes; then
14605
14606 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14607 LIBS="$LIBS $PANGOX_LIBS"
14608
14609 else
14610
14611 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14612
14613
14614 fi
14615
14616
14617 succeeded=no
14618
14619 if test -z "$PKG_CONFIG"; then
14620 # Extract the first word of "pkg-config", so it can be a program name with args.
14621set dummy pkg-config; ac_word=$2
14622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 14623echo "configure:14624: checking for $ac_word" >&5
2b5f62a0
VZ
14624if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626else
14627 case "$PKG_CONFIG" in
14628 /*)
14629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14630 ;;
14631 ?:/*)
14632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14633 ;;
14634 *)
14635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14636 ac_dummy="$PATH"
14637 for ac_dir in $ac_dummy; do
14638 test -z "$ac_dir" && ac_dir=.
14639 if test -f $ac_dir/$ac_word; then
14640 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14641 break
14642 fi
14643 done
14644 IFS="$ac_save_ifs"
14645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14646 ;;
14647esac
14648fi
14649PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14650if test -n "$PKG_CONFIG"; then
14651 echo "$ac_t""$PKG_CONFIG" 1>&6
14652else
14653 echo "$ac_t""no" 1>&6
14654fi
14655
14656 fi
14657
14658 if test "$PKG_CONFIG" = "no" ; then
14659 echo "*** The pkg-config script could not be found. Make sure it is"
14660 echo "*** in your path, or set the PKG_CONFIG environment variable"
14661 echo "*** to the full path to pkg-config."
14662 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14663 else
14664 PKG_CONFIG_MIN_VERSION=0.9.0
14665 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14666 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
fe0895cf 14667echo "configure:14668: checking for pangoft2" >&5
2b5f62a0
VZ
14668
14669 if $PKG_CONFIG --exists "pangoft2" ; then
14670 echo "$ac_t""yes" 1>&6
14671 succeeded=yes
14672
14673 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
fe0895cf 14674echo "configure:14675: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14675 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14676 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14677
14678 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
fe0895cf 14679echo "configure:14680: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14680 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14681 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14682 else
14683 PANGOFT2_CFLAGS=""
14684 PANGOFT2_LIBS=""
14685 ## If we have a custom action on failure, don't print errors, but
14686 ## do set a variable so people can do so.
14687 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14688
14689 fi
14690
14691
14692
14693 else
14694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14696 fi
14697 fi
14698
14699 if test $succeeded = yes; then
14700
14701 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14702 LIBS="$LIBS $PANGOFT2_LIBS"
14703
14704 else
14705
14706 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14707 wxUSE_PRINTING_ARCHITECTURE="no"
14708
14709
14710 fi
14711
14712
14713 succeeded=no
14714
14715 if test -z "$PKG_CONFIG"; then
14716 # Extract the first word of "pkg-config", so it can be a program name with args.
14717set dummy pkg-config; ac_word=$2
14718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 14719echo "configure:14720: checking for $ac_word" >&5
2b5f62a0
VZ
14720if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722else
14723 case "$PKG_CONFIG" in
14724 /*)
14725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14726 ;;
14727 ?:/*)
14728 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14729 ;;
14730 *)
14731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14732 ac_dummy="$PATH"
14733 for ac_dir in $ac_dummy; do
14734 test -z "$ac_dir" && ac_dir=.
14735 if test -f $ac_dir/$ac_word; then
14736 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14737 break
14738 fi
14739 done
14740 IFS="$ac_save_ifs"
14741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14742 ;;
14743esac
14744fi
14745PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14746if test -n "$PKG_CONFIG"; then
14747 echo "$ac_t""$PKG_CONFIG" 1>&6
14748else
14749 echo "$ac_t""no" 1>&6
14750fi
14751
14752 fi
14753
14754 if test "$PKG_CONFIG" = "no" ; then
14755 echo "*** The pkg-config script could not be found. Make sure it is"
14756 echo "*** in your path, or set the PKG_CONFIG environment variable"
14757 echo "*** to the full path to pkg-config."
14758 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14759 else
14760 PKG_CONFIG_MIN_VERSION=0.9.0
14761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14762 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
fe0895cf 14763echo "configure:14764: checking for pangoxft" >&5
2b5f62a0
VZ
14764
14765 if $PKG_CONFIG --exists "pangoxft" ; then
14766 echo "$ac_t""yes" 1>&6
14767 succeeded=yes
14768
14769 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
fe0895cf 14770echo "configure:14771: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14771 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14772 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14773
14774 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
fe0895cf 14775echo "configure:14776: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14776 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14777 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14778 else
14779 PANGOXFT_CFLAGS=""
14780 PANGOXFT_LIBS=""
14781 ## If we have a custom action on failure, don't print errors, but
14782 ## do set a variable so people can do so.
14783 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14784
14785 fi
14786
14787
14788
14789 else
14790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14792 fi
14793 fi
14794
14795 if test $succeeded = yes; then
14796
14797 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14798 LIBS="$LIBS $PANGOXFT_LIBS"
14799
14800 else
14801
14802 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14803
14804
14805 fi
14806
14807 fi
14808
14809 wxUSE_UNIVERSAL="yes"
14810
14811 if test "$wxUSE_NANOX" = "yes"; then
14812 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 14813 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 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
2b5f62a0
VZ
14814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14815 else
14816 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14817 fi
14818
14819 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14820 TOOLKIT=X11
14821 GUIDIST=X11_DIST
14822 fi
14823
21d1c967
GD
14824 if test "$wxUSE_MOTIF" = 1; then
14825 if test "$no_x" = yes; then
14826 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14827 cat >> confdefs.h <<\EOF
21d1c967 14828#define X_DISPLAY_MISSING 1
a0b9e27f 14829EOF
21d1c967
GD
14830
14831 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14832else
14833 if test -n "$x_includes"; then
14834 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14835 fi
14836
21d1c967
GD
14837 # It would also be nice to do this for all -L options, not just this one.
14838 if test -n "$x_libraries"; then
14839 X_LIBS="$X_LIBS -L$x_libraries"
14840 # For Solaris; some versions of Sun CC require a space after -R and
14841 # others require no space. Words are not sufficient . . . .
a0b9e27f 14842 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14843 "SunOS 5"*)
a0b9e27f 14844 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
fe0895cf 14845echo "configure:14846: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14847 cat > conftest.$ac_ext <<EOF
fe0895cf 14848#line 14849 "configure"
21d1c967
GD
14849#include "confdefs.h"
14850
a0b9e27f 14851int main() {
21d1c967 14852
a0b9e27f
MB
14853; return 0; }
14854EOF
fe0895cf 14855if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14856 rm -rf conftest*
21d1c967 14857 ac_R_nospace=yes
698dcdb6 14858else
a0b9e27f
MB
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 rm -rf conftest*
14862 ac_R_nospace=no
10f2d63a 14863fi
a0b9e27f 14864rm -f conftest*
21d1c967 14865 if test $ac_R_nospace = yes; then
a0b9e27f 14866 echo "$ac_t""no" 1>&6
21d1c967
GD
14867 X_LIBS="$X_LIBS -R$x_libraries"
14868 else
14869 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14870 cat > conftest.$ac_ext <<EOF
fe0895cf 14871#line 14872 "configure"
21d1c967 14872#include "confdefs.h"
10f2d63a 14873
a0b9e27f 14874int main() {
f0c87536 14875
a0b9e27f
MB
14876; return 0; }
14877EOF
fe0895cf 14878if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14879 rm -rf conftest*
21d1c967
GD
14880 ac_R_space=yes
14881else
a0b9e27f
MB
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 rm -rf conftest*
14885 ac_R_space=no
21d1c967 14886fi
a0b9e27f 14887rm -f conftest*
21d1c967 14888 if test $ac_R_space = yes; then
a0b9e27f 14889 echo "$ac_t""yes" 1>&6
21d1c967
GD
14890 X_LIBS="$X_LIBS -R $x_libraries"
14891 else
a0b9e27f 14892 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14893 fi
14894 fi
a0b9e27f 14895 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14896 esac
14897 fi
90dd450c 14898
21d1c967
GD
14899 # Check for system-dependent libraries X programs must link with.
14900 # Do this before checking for the system-independent R6 libraries
14901 # (-lICE), since we may need -lsocket or whatever for X linking.
14902
14903 if test "$ISC" = yes; then
14904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14905 else
a0b9e27f
MB
14906 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14907 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14908 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14909 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
fe0895cf 14910echo "configure:14911: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14911ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14912if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14913 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14914else
a0b9e27f 14915 ac_save_LIBS="$LIBS"
247f5006 14916LIBS="-ldnet $LIBS"
a0b9e27f 14917cat > conftest.$ac_ext <<EOF
fe0895cf 14918#line 14919 "configure"
247f5006 14919#include "confdefs.h"
247f5006 14920/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14921/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14922 builtin and then its argument prototype would still apply. */
14923char dnet_ntoa();
14924
14925int main() {
14926dnet_ntoa()
14927; return 0; }
14928EOF
fe0895cf 14929if { (eval echo configure:14930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14930 rm -rf conftest*
14931 eval "ac_cv_lib_$ac_lib_var=yes"
14932else
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14935 rm -rf conftest*
14936 eval "ac_cv_lib_$ac_lib_var=no"
14937fi
14938rm -f conftest*
14939LIBS="$ac_save_LIBS"
14940
14941fi
14942if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14943 echo "$ac_t""yes" 1>&6
21d1c967 14944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14945else
14946 echo "$ac_t""no" 1>&6
0fb0dd83 14947fi
0fb0dd83 14948
21d1c967 14949 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14950 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
fe0895cf 14951echo "configure:14952: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14952ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14953if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14955else
a0b9e27f 14956 ac_save_LIBS="$LIBS"
21d1c967 14957LIBS="-ldnet_stub $LIBS"
a0b9e27f 14958cat > conftest.$ac_ext <<EOF
fe0895cf 14959#line 14960 "configure"
21d1c967
GD
14960#include "confdefs.h"
14961/* Override any gcc2 internal prototype to avoid an error. */
14962/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14963 builtin and then its argument prototype would still apply. */
14964char dnet_ntoa();
14965
14966int main() {
14967dnet_ntoa()
14968; return 0; }
14969EOF
fe0895cf 14970if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=yes"
14973else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=no"
14978fi
14979rm -f conftest*
14980LIBS="$ac_save_LIBS"
14981
14982fi
14983if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
21d1c967 14985 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14986else
14987 echo "$ac_t""no" 1>&6
90dd450c
VZ
14988fi
14989
21d1c967 14990 fi
90dd450c 14991
21d1c967
GD
14992 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14993 # to get the SysV transport functions.
a0b9e27f 14994 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14995 # needs -lnsl.
14996 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14997 # on Irix 5.2, according to dickey@clark.net.
14998 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
fe0895cf 14999echo "configure:15000: checking for gethostbyname" >&5
a0b9e27f
MB
15000if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15002else
15003 cat > conftest.$ac_ext <<EOF
fe0895cf 15004#line 15005 "configure"
21d1c967
GD
15005#include "confdefs.h"
15006/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15007 which can conflict with char gethostbyname(); below. */
21d1c967
GD
15008#include <assert.h>
15009/* Override any gcc2 internal prototype to avoid an error. */
15010/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15011 builtin and then its argument prototype would still apply. */
15012char gethostbyname();
15013
15014int main() {
15015
21d1c967
GD
15016/* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
15020choke me
15021#else
a0b9e27f 15022gethostbyname();
21d1c967 15023#endif
90dd450c 15024
a0b9e27f
MB
15025; return 0; }
15026EOF
fe0895cf 15027if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15028 rm -rf conftest*
15029 eval "ac_cv_func_gethostbyname=yes"
15030else
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 rm -rf conftest*
15034 eval "ac_cv_func_gethostbyname=no"
15035fi
15036rm -f conftest*
15037fi
15038
15039if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15040 echo "$ac_t""yes" 1>&6
15041 :
15042else
15043 echo "$ac_t""no" 1>&6
15044fi
90dd450c 15045
21d1c967 15046 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 15047 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
fe0895cf 15048echo "configure:15049: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
15049ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15051 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15052else
a0b9e27f 15053 ac_save_LIBS="$LIBS"
21d1c967 15054LIBS="-lnsl $LIBS"
a0b9e27f 15055cat > conftest.$ac_ext <<EOF
fe0895cf 15056#line 15057 "configure"
21d1c967
GD
15057#include "confdefs.h"
15058/* Override any gcc2 internal prototype to avoid an error. */
15059/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15060 builtin and then its argument prototype would still apply. */
15061char gethostbyname();
5c6fa7d2 15062
a0b9e27f
MB
15063int main() {
15064gethostbyname()
15065; return 0; }
15066EOF
fe0895cf 15067if { (eval echo configure:15068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15068 rm -rf conftest*
15069 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 15070else
a0b9e27f
MB
15071 echo "configure: failed program was:" >&5
15072 cat conftest.$ac_ext >&5
15073 rm -rf conftest*
15074 eval "ac_cv_lib_$ac_lib_var=no"
15075fi
15076rm -f conftest*
15077LIBS="$ac_save_LIBS"
247f5006 15078
a0b9e27f
MB
15079fi
15080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15083else
15084 echo "$ac_t""no" 1>&6
21d1c967 15085fi
90dd450c 15086
90dd450c
VZ
15087 fi
15088
21d1c967
GD
15089 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15090 # socket/setsockopt and other routines are undefined under SCO ODT
15091 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15092 # on later versions), says simon@lia.di.epfl.ch: it contains
15093 # gethostby* variants that don't use the nameserver (or something).
15094 # -lsocket must be given before -lnsl if both are needed.
15095 # We assume that if connect needs -lnsl, so does gethostbyname.
15096 echo $ac_n "checking for connect""... $ac_c" 1>&6
fe0895cf 15097echo "configure:15098: checking for connect" >&5
a0b9e27f
MB
15098if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15100else
15101 cat > conftest.$ac_ext <<EOF
fe0895cf 15102#line 15103 "configure"
21d1c967
GD
15103#include "confdefs.h"
15104/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15105 which can conflict with char connect(); below. */
21d1c967
GD
15106#include <assert.h>
15107/* Override any gcc2 internal prototype to avoid an error. */
15108/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15109 builtin and then its argument prototype would still apply. */
15110char connect();
15111
15112int main() {
15113
21d1c967
GD
15114/* The GNU C library defines this for functions which it implements
15115 to always fail with ENOSYS. Some functions are actually named
15116 something starting with __ and the normal name is an alias. */
15117#if defined (__stub_connect) || defined (__stub___connect)
15118choke me
15119#else
a0b9e27f 15120connect();
21d1c967 15121#endif
90dd450c 15122
a0b9e27f
MB
15123; return 0; }
15124EOF
fe0895cf 15125if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15126 rm -rf conftest*
15127 eval "ac_cv_func_connect=yes"
15128else
15129 echo "configure: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 rm -rf conftest*
15132 eval "ac_cv_func_connect=no"
15133fi
15134rm -f conftest*
15135fi
15136
15137if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15138 echo "$ac_t""yes" 1>&6
15139 :
15140else
15141 echo "$ac_t""no" 1>&6
15142fi
1f8ae82f 15143
21d1c967 15144 if test $ac_cv_func_connect = no; then
a0b9e27f 15145 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
fe0895cf 15146echo "configure:15147: checking for connect in -lsocket" >&5
a0b9e27f
MB
15147ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15148if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15150else
a0b9e27f 15151 ac_save_LIBS="$LIBS"
21d1c967 15152LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15153cat > conftest.$ac_ext <<EOF
fe0895cf 15154#line 15155 "configure"
0fbb762e 15155#include "confdefs.h"
21d1c967
GD
15156/* Override any gcc2 internal prototype to avoid an error. */
15157/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15158 builtin and then its argument prototype would still apply. */
15159char connect();
15160
15161int main() {
15162connect()
15163; return 0; }
15164EOF
fe0895cf 15165if { (eval echo configure:15166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15166 rm -rf conftest*
15167 eval "ac_cv_lib_$ac_lib_var=yes"
15168else
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15171 rm -rf conftest*
15172 eval "ac_cv_lib_$ac_lib_var=no"
15173fi
15174rm -f conftest*
15175LIBS="$ac_save_LIBS"
15176
15177fi
15178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15179 echo "$ac_t""yes" 1>&6
21d1c967 15180 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15181else
15182 echo "$ac_t""no" 1>&6
21d1c967 15183fi
90dd450c 15184
21d1c967 15185 fi
90dd450c 15186
a0b9e27f
MB
15187 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15188 echo $ac_n "checking for remove""... $ac_c" 1>&6
fe0895cf 15189echo "configure:15190: checking for remove" >&5
a0b9e27f
MB
15190if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15192else
a0b9e27f 15193 cat > conftest.$ac_ext <<EOF
fe0895cf 15194#line 15195 "configure"
21d1c967
GD
15195#include "confdefs.h"
15196/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15197 which can conflict with char remove(); below. */
21d1c967
GD
15198#include <assert.h>
15199/* Override any gcc2 internal prototype to avoid an error. */
15200/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15201 builtin and then its argument prototype would still apply. */
15202char remove();
15203
15204int main() {
15205
21d1c967
GD
15206/* The GNU C library defines this for functions which it implements
15207 to always fail with ENOSYS. Some functions are actually named
15208 something starting with __ and the normal name is an alias. */
15209#if defined (__stub_remove) || defined (__stub___remove)
15210choke me
15211#else
a0b9e27f 15212remove();
21d1c967 15213#endif
90dd450c 15214
a0b9e27f
MB
15215; return 0; }
15216EOF
fe0895cf 15217if { (eval echo configure:15218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15218 rm -rf conftest*
15219 eval "ac_cv_func_remove=yes"
15220else
15221 echo "configure: failed program was:" >&5
15222 cat conftest.$ac_ext >&5
15223 rm -rf conftest*
15224 eval "ac_cv_func_remove=no"
15225fi
15226rm -f conftest*
15227fi
15228
15229if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15230 echo "$ac_t""yes" 1>&6
15231 :
15232else
15233 echo "$ac_t""no" 1>&6
15234fi
90dd450c 15235
21d1c967 15236 if test $ac_cv_func_remove = no; then
a0b9e27f 15237 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
fe0895cf 15238echo "configure:15239: checking for remove in -lposix" >&5
a0b9e27f
MB
15239ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15240if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15242else
a0b9e27f 15243 ac_save_LIBS="$LIBS"
21d1c967 15244LIBS="-lposix $LIBS"
a0b9e27f 15245cat > conftest.$ac_ext <<EOF
fe0895cf 15246#line 15247 "configure"
21d1c967
GD
15247#include "confdefs.h"
15248/* Override any gcc2 internal prototype to avoid an error. */
15249/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15250 builtin and then its argument prototype would still apply. */
15251char remove();
15252
15253int main() {
15254remove()
15255; return 0; }
15256EOF
fe0895cf 15257if { (eval echo configure:15258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=yes"
15260else
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15263 rm -rf conftest*
15264 eval "ac_cv_lib_$ac_lib_var=no"
15265fi
15266rm -f conftest*
15267LIBS="$ac_save_LIBS"
15268
15269fi
15270if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15271 echo "$ac_t""yes" 1>&6
21d1c967 15272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15273else
15274 echo "$ac_t""no" 1>&6
21d1c967 15275fi
19bc6aad 15276
90dd450c 15277 fi
19bc6aad 15278
21d1c967 15279 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15280 echo $ac_n "checking for shmat""... $ac_c" 1>&6
fe0895cf 15281echo "configure:15282: checking for shmat" >&5
a0b9e27f
MB
15282if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15283 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15284else
a0b9e27f 15285 cat > conftest.$ac_ext <<EOF
fe0895cf 15286#line 15287 "configure"
21d1c967
GD
15287#include "confdefs.h"
15288/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15289 which can conflict with char shmat(); below. */
21d1c967
GD
15290#include <assert.h>
15291/* Override any gcc2 internal prototype to avoid an error. */
15292/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15293 builtin and then its argument prototype would still apply. */
15294char shmat();
15295
15296int main() {
15297
21d1c967
GD
15298/* The GNU C library defines this for functions which it implements
15299 to always fail with ENOSYS. Some functions are actually named
15300 something starting with __ and the normal name is an alias. */
15301#if defined (__stub_shmat) || defined (__stub___shmat)
15302choke me
15303#else
a0b9e27f 15304shmat();
21d1c967 15305#endif
90dd450c 15306
a0b9e27f
MB
15307; return 0; }
15308EOF
fe0895cf 15309if { (eval echo configure:15310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15310 rm -rf conftest*
15311 eval "ac_cv_func_shmat=yes"
15312else
15313 echo "configure: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 rm -rf conftest*
15316 eval "ac_cv_func_shmat=no"
15317fi
15318rm -f conftest*
15319fi
15320
15321if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15322 echo "$ac_t""yes" 1>&6
15323 :
15324else
15325 echo "$ac_t""no" 1>&6
15326fi
19bc6aad 15327
21d1c967 15328 if test $ac_cv_func_shmat = no; then
a0b9e27f 15329 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
fe0895cf 15330echo "configure:15331: checking for shmat in -lipc" >&5
a0b9e27f
MB
15331ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15334else
a0b9e27f 15335 ac_save_LIBS="$LIBS"
5c6fa7d2 15336LIBS="-lipc $LIBS"
a0b9e27f 15337cat > conftest.$ac_ext <<EOF
fe0895cf 15338#line 15339 "configure"
5c6fa7d2 15339#include "confdefs.h"
5c6fa7d2 15340/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15341/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15342 builtin and then its argument prototype would still apply. */
15343char shmat();
15344
15345int main() {
15346shmat()
15347; return 0; }
15348EOF
fe0895cf 15349if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15350 rm -rf conftest*
15351 eval "ac_cv_lib_$ac_lib_var=yes"
15352else
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15355 rm -rf conftest*
15356 eval "ac_cv_lib_$ac_lib_var=no"
15357fi
15358rm -f conftest*
15359LIBS="$ac_save_LIBS"
15360
15361fi
15362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15363 echo "$ac_t""yes" 1>&6
21d1c967 15364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15365else
15366 echo "$ac_t""no" 1>&6
9f8148b1 15367fi
90dd450c 15368
90dd450c 15369 fi
21d1c967 15370 fi
10f2d63a 15371
21d1c967 15372 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15373 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15374 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15375 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15376 # check for ICE first), but we must link in the order -lSM -lICE or
15377 # we get undefined symbols. So assume we have SM if we have ICE.
15378 # These have to be linked with before -lX11, unlike the other
15379 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15380 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15381 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
fe0895cf 15382echo "configure:15383: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15383ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15385 echo $ac_n "(cached) $ac_c" 1>&6
15386else
15387 ac_save_LIBS="$LIBS"
f09359cf 15388LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15389cat > conftest.$ac_ext <<EOF
fe0895cf 15390#line 15391 "configure"
29fd3c0c 15391#include "confdefs.h"
21d1c967
GD
15392/* Override any gcc2 internal prototype to avoid an error. */
15393/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15394 builtin and then its argument prototype would still apply. */
15395char IceConnectionNumber();
15396
15397int main() {
15398IceConnectionNumber()
15399; return 0; }
15400EOF
fe0895cf 15401if { (eval echo configure:15402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15402 rm -rf conftest*
15403 eval "ac_cv_lib_$ac_lib_var=yes"
15404else
15405 echo "configure: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 rm -rf conftest*
15408 eval "ac_cv_lib_$ac_lib_var=no"
15409fi
15410rm -f conftest*
15411LIBS="$ac_save_LIBS"
15412
15413fi
15414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
21d1c967 15416 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15417else
15418 echo "$ac_t""no" 1>&6
29fd3c0c 15419fi
21d1c967 15420
a0b9e27f 15421 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15422
10f2d63a
VZ
15423fi
15424
8284b0c5 15425
21d1c967 15426 if test "$no_x" = "yes"; then
a0b9e27f 15427 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15428 fi
15429
2b5f62a0
VZ
15430 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15431 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15432 AFMINSTALL=afminstall
15433 COMPILED_X_PROGRAM=0
15434
a0b9e27f 15435 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
fe0895cf 15436echo "configure:15437: checking for Motif/Lesstif headers" >&5
a0b9e27f 15437
21d1c967 15438ac_find_includes=
2b5f62a0 15439for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15440 do
15441 if test -f "$ac_dir/Xm/Xm.h"; then
15442 ac_find_includes=$ac_dir
15443 break
15444 fi
15445 done
15446
15447 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15448 echo "$ac_t""found in $ac_find_includes" 1>&6
15449
2b5f62a0 15450 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15451 ac_path_to_include=""
15452 else
2b5f62a0
VZ
15453 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15454 result=$?
15455 if test $result = 0; then
15456 ac_path_to_include=""
15457 else
15458 ac_path_to_include=" -I$ac_find_includes"
15459 fi
dd0e4a90
VZ
15460 fi
15461
15462 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15463 else
a0b9e27f 15464 cat > conftest.$ac_ext <<EOF
fe0895cf 15465#line 15466 "configure"
10f2d63a 15466#include "confdefs.h"
21d1c967
GD
15467
15468 #include <Xm/Xm.h>
a0b9e27f
MB
15469
15470int main() {
21d1c967
GD
15471
15472 int version;
15473 version = xmUseVersion;
a0b9e27f
MB
15474
15475; return 0; }
15476EOF
fe0895cf 15477if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15478 rm -rf conftest*
15479
15480 echo "$ac_t""found in default search path" 1>&6
21d1c967 15481 COMPILED_X_PROGRAM=1
a0b9e27f 15482
10f2d63a 15483else
a0b9e27f
MB
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487
15488 echo "$ac_t""no" 1>&6
15489 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15490
15491
10f2d63a 15492fi
a0b9e27f 15493rm -f conftest*
21d1c967 15494 fi
10f2d63a 15495
21d1c967 15496 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15497 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
fe0895cf 15498echo "configure:15499: checking for Motif/Lesstif library" >&5
a0b9e27f 15499
21d1c967 15500ac_find_libraries=
2b5f62a0 15501for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15502 do
15503 for ac_extension in a so sl dylib; do
15504 if test -f "$ac_dir/libXm.$ac_extension"; then
15505 ac_find_libraries=$ac_dir
15506 break 2
15507 fi
15508 done
15509 done
15510
15511 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15512 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15513
a0b9e27f 15514
21d1c967
GD
15515 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15516 result=$?
15517 if test $result = 0; then
15518 ac_path_to_link=""
15519 else
15520 ac_path_to_link=" -L$ac_find_libraries"
15521 fi
15522
21d1c967 15523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15524 else
dd0e4a90
VZ
15525 save_CFLAGS=$CFLAGS
15526 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15527
a0b9e27f 15528 cat > conftest.$ac_ext <<EOF
fe0895cf 15529#line 15530 "configure"
d836ee96 15530#include "confdefs.h"
21d1c967
GD
15531
15532 #include <Xm/Xm.h>
a0b9e27f
MB
15533
15534int main() {
21d1c967
GD
15535
15536 int version;
15537 version = xmUseVersion;
a0b9e27f
MB
15538
15539; return 0; }
15540EOF
fe0895cf 15541if { (eval echo configure:15542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15542 rm -rf conftest*
15543
15544 echo "$ac_t""found in default search path" 1>&6
21d1c967 15545 COMPILED_X_PROGRAM=1
a0b9e27f 15546
d836ee96 15547else
a0b9e27f
MB
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -rf conftest*
15551
15552 echo "$ac_t""no" 1>&6
15553 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15554
15555
d836ee96 15556fi
a0b9e27f 15557rm -f conftest*
dd0e4a90
VZ
15558
15559 CFLAGS=$save_CFLAGS
21d1c967
GD
15560 fi
15561 fi
15562
15563 xpm_link=
a0b9e27f 15564 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
fe0895cf 15565echo "configure:15566: checking for Xpm library" >&5
a0b9e27f 15566
21d1c967 15567ac_find_libraries=
2b5f62a0 15568for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15569 do
15570 for ac_extension in a so sl dylib; do
15571 if test -f "$ac_dir/libXpm.$ac_extension"; then
15572 ac_find_libraries=$ac_dir
15573 break 2
15574 fi
15575 done
15576 done
15577
15578 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15579
21d1c967
GD
15580 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15581 result=$?
15582 if test $result = 0; then
15583 ac_path_to_link=""
15584 else
15585 ac_path_to_link=" -L$ac_find_libraries"
15586 fi
15587
15588 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15589
21d1c967 15590 xpm_link=" -lXpm"
a0b9e27f 15591 cat >> confdefs.h <<\EOF
21d1c967 15592#define wxHAVE_LIB_XPM 1
a0b9e27f 15593EOF
90dd450c 15594
a0b9e27f 15595 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15596 else
dd0e4a90
VZ
15597 save_CFLAGS=$CFLAGS
15598 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15599
a0b9e27f 15600 cat > conftest.$ac_ext <<EOF
fe0895cf 15601#line 15602 "configure"
d836ee96 15602#include "confdefs.h"
21d1c967
GD
15603
15604 #include <X11/xpm.h>
a0b9e27f
MB
15605
15606int main() {
21d1c967
GD
15607
15608 int version;
15609 version = XpmLibraryVersion();
a0b9e27f
MB
15610
15611; return 0; }
15612EOF
fe0895cf 15613if { (eval echo configure:15614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15614 rm -rf conftest*
15615
21d1c967 15616 xpm_link=" -lXpm"
a0b9e27f 15617 cat >> confdefs.h <<\EOF
21d1c967 15618#define wxHAVE_LIB_XPM 1
a0b9e27f 15619EOF
21d1c967 15620
a0b9e27f 15621 echo "$ac_t""found in default search path" 1>&6
21d1c967 15622 COMPILED_X_PROGRAM=0
a0b9e27f 15623
d836ee96 15624else
a0b9e27f
MB
15625 echo "configure: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 rm -rf conftest*
15628
15629 echo "$ac_t""no" 1>&6
15630 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15631
15632
d836ee96 15633fi
a0b9e27f 15634rm -f conftest*
dd0e4a90
VZ
15635
15636 CFLAGS=$save_CFLAGS
21d1c967
GD
15637 fi
15638
a0b9e27f 15639 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
fe0895cf 15640echo "configure:15641: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15641 libp_link=""
15642 libsm_ice_link=""
15643 libs_found=0
15644 for libp in "" " -lXp"; do
15645 if test "$libs_found" = "0"; then
15646 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15647 if test "$libs_found" = "0"; then
6a30f1c8
MB
15648 save_LIBS="$LIBS"
15649 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15650 save_CFLAGS=$CFLAGS
15651 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15652
a0b9e27f 15653 cat > conftest.$ac_ext <<EOF
fe0895cf 15654#line 15655 "configure"
6a30f1c8 15655#include "confdefs.h"
17234b26 15656
6a30f1c8
MB
15657 #include <Xm/Xm.h>
15658 #include <Xm/List.h>
a0b9e27f
MB
15659
15660int main() {
6a30f1c8
MB
15661
15662 XmString string = NULL;
15663 Widget w = NULL;
15664 int position = 0;
15665 XmListAddItem(w, string, position);
a0b9e27f
MB
15666
15667; return 0; }
15668EOF
fe0895cf 15669if { (eval echo configure:15670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15670 rm -rf conftest*
15671
6a30f1c8
MB
15672 libp_link="$libp"
15673 libsm_ice_link="$libsm_ice"
a0b9e27f 15674 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15675 libs_found=1
a0b9e27f 15676
6a30f1c8 15677else
a0b9e27f
MB
15678 echo "configure: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15680 rm -rf conftest*
15681
15682
6a30f1c8 15683fi
a0b9e27f 15684rm -f conftest*
dd0e4a90 15685
6a30f1c8 15686 LIBS="$save_LIBS"
dd0e4a90 15687 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15688 fi
15689 done
15690 fi
15691 done
15692
15693 if test "$libs_found" = "0"; then
a0b9e27f
MB
15694 echo "$ac_t""can't find the right libraries" 1>&6
15695 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15696 fi
15697
da494b40
MB
15698 save_CFLAGS=$CFLAGS
15699 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15700 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
fe0895cf 15701echo "configure:15702: checking for Motif 2" >&5
da494b40 15702 cat > conftest.$ac_ext <<EOF
fe0895cf 15703#line 15704 "configure"
da494b40
MB
15704#include "confdefs.h"
15705
15706 #include <Xm/Xm.h>
15707
15708int main() {
15709
15710 #if XmVersion < 2000
15711 #error "Not Motif 2"
15712 #endif
15713
15714; return 0; }
15715EOF
fe0895cf 15716if { (eval echo configure:15717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15717 rm -rf conftest*
15718
15719 cat >> confdefs.h <<\EOF
15720#define __WXMOTIF20__ 1
15721EOF
15722
15723 echo "$ac_t""found" 1>&6
15724
15725else
15726 echo "configure: failed program was:" >&5
15727 cat conftest.$ac_ext >&5
15728 rm -rf conftest*
15729
15730 cat >> confdefs.h <<\EOF
15731#define __WXMOTIF20__ 0
15732EOF
15733
15734 echo "$ac_t""not found" 1>&6
15735
15736fi
15737rm -f conftest*
15738 CFLAGS=$save_CFLAGS
15739
6a30f1c8 15740 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15741 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15742 TOOLKIT=MOTIF
15743 GUIDIST=MOTIF_DIST
f7f78039
MB
15744 wxHAVE_XEXT_LIB=1
15745 fi
15746
15747 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15748 test "$wxHAVE_XEXT_LIB" = 1; then
15749 save_CFLAGS="$CFLAGS"
15750 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15751
15752 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
fe0895cf 15753echo "configure:15754: checking for X11/extensions/shape.h" >&5
f7f78039 15754 cat > conftest.$ac_ext <<EOF
fe0895cf 15755#line 15756 "configure"
f7f78039
MB
15756#include "confdefs.h"
15757
15758 #include <X11/Xlib.h>
15759 #include <X11/extensions/shape.h>
15760
15761int main() {
15762
15763 int dummy1, dummy2;
15764 XShapeQueryExtension((Display*)NULL,
15765 (int*)NULL, (int*)NULL);
15766
15767; return 0; }
15768EOF
fe0895cf 15769if { (eval echo configure:15770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f7f78039
MB
15770 rm -rf conftest*
15771
15772 cat >> confdefs.h <<\EOF
15773#define HAVE_XSHAPE 1
15774EOF
15775
15776 echo "$ac_t""found" 1>&6
15777
15778else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
15782
15783 echo "$ac_t""not found" 1>&6
15784
15785fi
15786rm -f conftest*
15787 CFLAGS="$save_CFLAGS"
21d1c967
GD
15788 fi
15789
15790 if test "$wxUSE_MAC" = 1; then
0c98a14e 15791 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15792
0c98a14e 15793 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15794 TOOLKIT=MAC
15795 GUIDIST=MACX_DIST
15796 fi
15797
ac0c4cc3
DE
15798 if test "$wxUSE_COCOA" = 1; then
15799 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15800 TOOLKIT=COCOA
15801 GUIDIST=COCOA_DIST
15802 fi
15803
21d1c967
GD
15804 if test "$wxUSE_PM" = 1; then
15805 TOOLKIT=PM
15806 GUIDIST=GTK_DIST
2b5f62a0 15807 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15808 wxUSE_THREADS="no"
21d1c967
GD
15809 fi
15810
15811 if test "$TOOLKIT" = "PM" ; then
15812 TOOLKIT_DIR="os2"
15813 else
15814 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15815 fi
15816
15817 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15818
15819 if test "$wxUSE_UNIVERSAL" = "yes"; then
15820 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15821
15822 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15823 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15824
15825 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15826 if test "$wxUSE_X11" = 1; then
15827 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15828 else
15829 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15830 fi
15831 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15832 WIDGET_SET=univ
15833 else
15834 ALL_OBJECTS="\$(GUIOBJS)"
15835 ALL_SOURCES="\$(ALL_SOURCES)"
15836 ALL_HEADERS="\$(ALL_HEADERS)"
15837 fi
15838
15839 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15840
15841 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15842 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15843 fi
15844
15845 if test "$wxUSE_HTML" = "yes"; then
15846 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15847 fi
15848
15849 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15850 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15851 fi
15852 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15853 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15854 fi
15855 if test "$wxUSE_LIBPNG" = "builtin" ; then
15856 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15857 fi
15858
15859 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15860 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15861else
21d1c967
GD
15862 USE_GUI=0
15863
15864 TOOLKIT_DIR="base"
15865
15866 if test "$USE_WIN32" = 1 ; then
15867 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15868 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15869
15870 TOOLKIT="MSW"
15871 else
15872 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15873 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15874 fi
15875
15876 ALL_SOURCES="\$(ALL_SOURCES)"
15877 ALL_HEADERS="\$(ALL_HEADERS)"
15878
15879 PORT_FILES="\${top_srcdir}/src/files.lst"
15880
15881 GUIDIST="BASE_DIST"
15882 DISTDIR="wxBase"
d836ee96
VZ
15883fi
15884
8284b0c5 15885
8647bec6
RG
15886
15887
15888IODBC_C_SRC=""
15889
15890
15891if test "$TOOLKIT" != "MSW" ; then
15892
15893 if test "$wxUSE_ODBC" != "no" ; then
15894 cat >> confdefs.h <<\EOF
15895#define wxUSE_ODBC 1
15896EOF
15897
15898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15899
15900 WXODBCFLAG="-D_IODBC_"
15901
15902
15903 if test "$wxUSE_ODBC" = "sys" ; then
15904
15905 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15906echo $ac_n "checking for sql.h""... $ac_c" 1>&6
fe0895cf 15907echo "configure:15908: checking for sql.h" >&5
8647bec6
RG
15908if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15910else
15911 cat > conftest.$ac_ext <<EOF
fe0895cf 15912#line 15913 "configure"
8647bec6
RG
15913#include "confdefs.h"
15914#include <sql.h>
15915EOF
15916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 15917{ (eval echo configure:15918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8647bec6
RG
15918ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15919if test -z "$ac_err"; then
15920 rm -rf conftest*
15921 eval "ac_cv_header_$ac_safe=yes"
15922else
15923 echo "$ac_err" >&5
15924 echo "configure: failed program was:" >&5
15925 cat conftest.$ac_ext >&5
15926 rm -rf conftest*
15927 eval "ac_cv_header_$ac_safe=no"
15928fi
15929rm -f conftest*
15930fi
15931if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15933 :
15934else
15935 echo "$ac_t""no" 1>&6
15936fi
15937
15938
15939echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
fe0895cf 15940echo "configure:15941: checking for library containing SQLAllocEnv" >&5
8647bec6
RG
15941if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15942 echo $ac_n "(cached) $ac_c" 1>&6
15943else
15944 ac_func_search_save_LIBS="$LIBS"
15945ac_cv_search_SQLAllocEnv="no"
15946cat > conftest.$ac_ext <<EOF
fe0895cf 15947#line 15948 "configure"
8647bec6
RG
15948#include "confdefs.h"
15949/* Override any gcc2 internal prototype to avoid an error. */
15950/* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15952char SQLAllocEnv();
15953
15954int main() {
15955SQLAllocEnv()
15956; return 0; }
15957EOF
fe0895cf 15958if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647bec6
RG
15959 rm -rf conftest*
15960 ac_cv_search_SQLAllocEnv="none required"
15961else
15962 echo "configure: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15964fi
15965rm -f conftest*
15966test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15967LIBS="-l$i $ac_func_search_save_LIBS"
15968cat > conftest.$ac_ext <<EOF
fe0895cf 15969#line 15970 "configure"
8647bec6
RG
15970#include "confdefs.h"
15971/* Override any gcc2 internal prototype to avoid an error. */
15972/* We use char because int might match the return type of a gcc2
15973 builtin and then its argument prototype would still apply. */
15974char SQLAllocEnv();
15975
15976int main() {
15977SQLAllocEnv()
15978; return 0; }
15979EOF
fe0895cf 15980if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647bec6
RG
15981 rm -rf conftest*
15982 ac_cv_search_SQLAllocEnv="-l$i"
15983break
15984else
15985 echo "configure: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987fi
15988rm -f conftest*
15989done
15990LIBS="$ac_func_search_save_LIBS"
15991fi
15992
15993echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15994if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15995 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15996
15997else :
fd3d7534
RG
15998
15999 wxUSE_ODBC=builtin;
16000 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
16001
8647bec6 16002fi
fd3d7534
RG
16003 fi
16004 if test "$wxUSE_ODBC" != "sys" ; then
16005 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
16006 fi
16007
16008 fi
16009
6232543b 16010fi
21d1c967
GD
16011
16012if test "$wxUSE_REGEX" = "builtin" ; then
16013 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 16014fi
21d1c967
GD
16015if test "$wxUSE_ZLIB" = "builtin" ; then
16016 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
16017fi
16018
8284b0c5 16019
21d1c967 16020if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 16021 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
16022 OPENGL_LIBS="-framework OpenGL -framework AGL"
16023 elif test "$wxUSE_MSW" = 1; then
16024 OPENGL_LIBS="-lopengl32 -lglu32"
16025 else
a0b9e27f
MB
16026 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
16027echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
fe0895cf 16028echo "configure:16029: checking for GL/gl.h" >&5
a0b9e27f
MB
16029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16030 echo $ac_n "(cached) $ac_c" 1>&6
16031else
16032 cat > conftest.$ac_ext <<EOF
fe0895cf 16033#line 16034 "configure"
10f2d63a 16034#include "confdefs.h"
21d1c967 16035#include <GL/gl.h>
a0b9e27f
MB
16036EOF
16037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 16038{ (eval echo configure:16039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16040if test -z "$ac_err"; then
16041 rm -rf conftest*
16042 eval "ac_cv_header_$ac_safe=yes"
16043else
16044 echo "$ac_err" >&5
16045 echo "configure: failed program was:" >&5
698dcdb6 16046 cat conftest.$ac_ext >&5
a0b9e27f
MB
16047 rm -rf conftest*
16048 eval "ac_cv_header_$ac_safe=no"
703e0a69 16049fi
a0b9e27f 16050rm -f conftest*
698dcdb6 16051fi
a0b9e27f
MB
16052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16053 echo "$ac_t""yes" 1>&6
16054
89e3b3e4
VZ
16055 found_gl=0
16056
a0b9e27f 16057 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
fe0895cf 16058echo "configure:16059: checking for -lGL" >&5
a0b9e27f 16059
21d1c967 16060ac_find_libraries=
2b5f62a0 16061for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
16062 do
16063 for ac_extension in a so sl dylib; do
16064 if test -f "$ac_dir/libGL.$ac_extension"; then
16065 ac_find_libraries=$ac_dir
16066 break 2
16067 fi
16068 done
16069 done
16070
16071 if test "$ac_find_libraries" != "" ; then
a0b9e27f 16072
21d1c967
GD
16073 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16074 result=$?
16075 if test $result = 0; then
16076 ac_path_to_link=""
16077 else
16078 ac_path_to_link=" -L$ac_find_libraries"
16079 fi
16080
89e3b3e4
VZ
16081 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16082 LDFLAGS_GL="$ac_path_to_link"
21d1c967 16083 fi
89e3b3e4
VZ
16084
16085
16086ac_find_libraries=
16087for ac_dir in $SEARCH_LIB /usr/lib;
16088 do
16089 for ac_extension in a so sl dylib; do
16090 if test -f "$ac_dir/libGLU.$ac_extension"; then
16091 ac_find_libraries=$ac_dir
16092 break 2
16093 fi
16094 done
16095 done
16096
16097 if test "$ac_find_libraries" != "" ; then
16098
16099 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16100 result=$?
16101 if test $result = 0; then
16102 ac_path_to_link=""
16103 else
16104 ac_path_to_link=" -L$ac_find_libraries"
16105 fi
16106
16107 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16108 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16109 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16110 fi
16111
16112 found_gl=1
16113 OPENGL_LIBS="-lGL -lGLU"
16114 echo "$ac_t""yes" 1>&6
16115 fi
16116 fi
16117
16118 if "$found_gl" != 1; then
a0b9e27f
MB
16119 echo "$ac_t""no" 1>&6
16120 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
fe0895cf 16121echo "configure:16122: checking for -lMesaGL" >&5
a0b9e27f 16122
21d1c967 16123ac_find_libraries=
2b5f62a0 16124for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
16125 do
16126 for ac_extension in a so sl dylib; do
16127 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16128 ac_find_libraries=$ac_dir
16129 break 2
16130 fi
16131 done
16132 done
16133
16134 if test "$ac_find_libraries" != "" ; then
a0b9e27f 16135
21d1c967
GD
16136 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16137 result=$?
16138 if test $result = 0; then
16139 ac_path_to_link=""
16140 else
16141 ac_path_to_link=" -L$ac_find_libraries"
16142 fi
16143
16144 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16145 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 16146 echo "$ac_t""yes" 1>&6
21d1c967 16147 else
a0b9e27f 16148 echo "$ac_t""no" 1>&6
21d1c967
GD
16149 fi
16150 fi
a0b9e27f
MB
16151
16152else
16153 echo "$ac_t""no" 1>&6
5c6fa7d2 16154fi
52127426 16155
8284b0c5 16156
21d1c967 16157 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 16158 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
16159 fi
16160 fi
90dd450c 16161
21d1c967 16162 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 16163 cat >> confdefs.h <<\EOF
21d1c967 16164#define wxUSE_OPENGL 1
a0b9e27f 16165EOF
21d1c967 16166
a0b9e27f 16167 cat >> confdefs.h <<\EOF
21d1c967 16168#define wxUSE_GLCANVAS 1
a0b9e27f 16169EOF
21d1c967
GD
16170
16171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16172 fi
10f2d63a 16173fi
21d1c967
GD
16174
16175if test -z "$TOOLKIT_VPATH" ; then
16176 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 16177fi
21d1c967
GD
16178
16179if test -n "$TOOLKIT" ; then
16180 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16181fi
16182
fe0895cf 16183UNICODE=0
21d1c967
GD
16184lib_unicode_suffix=
16185if test "$wxUSE_UNICODE" = "yes"; then
16186 lib_unicode_suffix=u
fe0895cf 16187 UNICODE=1
90dd450c 16188fi
698dcdb6 16189
21d1c967 16190lib_debug_suffix=
fe0895cf 16191BUILD=release
21d1c967
GD
16192if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16193 lib_debug_suffix=d
fe0895cf 16194 BUILD=debug
21d1c967 16195fi
698dcdb6 16196
2b5f62a0
VZ
16197WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16198
16199TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16200TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
16201
16202if test "$cross_compiling" = "yes"; then
16203 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16204 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16205fi
16206
16207WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16208WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 16209WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
16210
16211WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16212WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16213
16214WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16215WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16216WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16217WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16218
16219case "${host}" in
16220 *-*-cygwin* | *-*-mingw32* )
16221
a0b9e27f
MB
16222
16223
17234b26 16224 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
16225 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16226 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16227 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16228 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16229 else
16230 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16231 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16232 fi
16233 ;;
16234
16235 *-*-darwin* )
1542ea39 16236
05159a27
GD
16237 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16238 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16239
16240 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16241 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16242 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16243 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16244
21d1c967 16245 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16246 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16247 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16248 fi
16249 ;;
16250esac
16251
16252WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16253WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16254
16255WXCONFIG_LIBS="-l${WX_LIBRARY}"
16256WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16257
16258if test "$wxUSE_OPENGL" = "yes"; then
16259 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16260 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16261fi
16262
8284b0c5
MB
16263
16264
21d1c967
GD
16265if test "$wxUSE_SHARED" = "yes"; then
16266 case "${host}" in
16267 *-pc-os2_emx | *-pc-os2-emx | \
16268 *-pc-msdosdjgpp )
16269 wxUSE_SHARED=no
a0b9e27f 16270 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16271 ;;
16272 esac
16273fi
16274
fe0895cf 16275SHARED=0
2b5f62a0 16276if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 16277 SHARED=1
2b5f62a0
VZ
16278
16279 if test "$wxUSE_OPENGL" = "yes"; then
16280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16281 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16282 else
16283 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16284 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16285 fi
16286
16287 if test "$GCC" = "yes"; then
16288 PIC_FLAG="-fPIC"
16289 fi
16290
16291
16292
16293 found_versioning=no
16294
b4eecb7e 16295
2b5f62a0
VZ
16296 if test $found_versioning = no ; then
16297 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
fe0895cf 16298echo "configure:16299: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16299if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16301else
16302
16303 echo "VER_1 { *; };" >conftest.sym
16304 echo "int main() { return 0; }" >conftest.cpp
16305
16306 if { ac_try='
16307 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
fe0895cf 16308 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16309 if test -s conftest.stderr ; then
16310 wx_cv_version_script=no
16311 else
16312 wx_cv_version_script=yes
16313 fi
16314 else
16315 wx_cv_version_script=no
16316 fi
16317 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16318
16319fi
16320
16321echo "$ac_t""$wx_cv_version_script" 1>&6
16322 if test $wx_cv_version_script = yes ; then
16323 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16324 fi
16325 fi
21d1c967 16326
21d1c967
GD
16327
16328 SHARED_LD="${CXX} -shared -o"
16329
16330 case "${host}" in
16331 *-hp-hpux* )
ad2622f1 16332 if test "$GCC" = "yes"; then
85d5e282 16333 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16334 else
16335 LDFLAGS="$LDFLAGS -L/usr/lib"
16336
16337 SHARED_LD="${CXX} -b -o"
16338 PIC_FLAG="+Z"
16339 fi
16340
16341 if test "$wxUSE_OPENGL" = "yes"; then
16342 WX_ALL_INSTALLED="preinstall_gl"
16343 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16344 else
16345 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16346 fi
16347 ;;
16348
fe0895cf 16349 *-*-linux* | *-*-gnu* )
21d1c967 16350 if test "$GCC" != "yes"; then
a0b9e27f 16351 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
fe0895cf 16352echo "configure:16353: checking for Intel compiler" >&5
a0b9e27f
MB
16353if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16354 echo $ac_n "(cached) $ac_c" 1>&6
16355else
16356
16357 cat > conftest.$ac_ext <<EOF
fe0895cf 16358#line 16359 "configure"
698dcdb6 16359#include "confdefs.h"
90dd450c 16360
a0b9e27f 16361int main() {
90dd450c 16362
21d1c967
GD
16363 #ifndef __INTEL_COMPILER
16364 #error Not icc
16365 #endif
a0b9e27f
MB
16366
16367; return 0; }
16368EOF
fe0895cf 16369if { (eval echo configure:16370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16370 rm -rf conftest*
21d1c967 16371 wx_cv_prog_icc=yes
6232543b 16372else
a0b9e27f
MB
16373 echo "configure: failed program was:" >&5
16374 cat conftest.$ac_ext >&5
16375 rm -rf conftest*
16376 wx_cv_prog_icc=no
16377
5c6fa7d2 16378fi
a0b9e27f
MB
16379rm -f conftest*
16380
247f5006 16381fi
a0b9e27f
MB
16382
16383echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16384 if test "$wx_cv_prog_icc" = "yes"; then
16385 PIC_FLAG="-KPIC"
16386 fi
16387 fi
16388
16389 if test "$wxUSE_SONAME" = "yes" ; then
16390 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16391 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16392 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16393 fi
fe0895cf 16394 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)/lib"
21d1c967
GD
16395 ;;
16396
16397 *-*-solaris2* )
16398 if test "$GCC" = yes ; then
16399 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
16400
16401 saveLdflags="$LDFLAGS"
16402 LDFLAGS="$saveLdflags -Wl,-rpath,/"
16403 echo $ac_n "checking if the linker accepts -rpath""... $ac_c" 1>&6
16404echo "configure:16405: checking if the linker accepts -rpath" >&5
16405 cat > conftest.$ac_ext <<EOF
16406#line 16407 "configure"
16407#include "confdefs.h"
16408
16409int main() {
16410
16411; return 0; }
16412EOF
16413if { (eval echo configure:16414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16414 rm -rf conftest*
16415
16416 echo "$ac_t""yes" 1>&6
16417 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)/lib"
16418
16419else
16420 echo "configure: failed program was:" >&5
16421 cat conftest.$ac_ext >&5
16422 rm -rf conftest*
16423
16424 echo "$ac_t""no" 1>&6
16425 echo $ac_n "checking if the linker accepts -R""... $ac_c" 1>&6
16426echo "configure:16427: checking if the linker accepts -R" >&5
16427 LDFLAGS="$saveLdflags -Wl,-R,/"
16428 cat > conftest.$ac_ext <<EOF
16429#line 16430 "configure"
16430#include "confdefs.h"
16431
16432int main() {
16433
16434; return 0; }
16435EOF
16436if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 rm -rf conftest*
16438
16439 echo "$ac_t""yes" 1>&6
16440 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)/lib"
16441else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445
16446 echo "$ac_t""no" 1>&6
16447
16448fi
16449rm -f conftest*
16450
16451fi
16452rm -f conftest*
16453 LDFLAGS="$saveLdflags"
21d1c967
GD
16454 else
16455 SHARED_LD="${CXX} -G -o"
16456 PIC_FLAG="-KPIC"
16457 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16458 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
fe0895cf 16459 SAMPLES_RPATH_FLAG="-R\$(top_builddir)/lib"
21d1c967
GD
16460 fi
16461 ;;
16462
16463 *-*-darwin* )
b2fee376
GD
16464 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16465 CFLAGS="$CFLAGS -fno-common"
16466 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16467 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16468 PIC_FLAG="-dynamic -fPIC"
f346733b 16469 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16470 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16471 ;;
16472
16473 *-*-aix* )
2b5f62a0
VZ
16474 if test "$GCC" != "yes"; then
16475 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16476set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16477echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16478echo "configure:16479: checking for $ac_word" >&5
a0b9e27f
MB
16479if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16481else
16482 if test -n "$AIX_CXX_LD"; then
16483 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16484else
a0b9e27f
MB
16485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16486 ac_dummy="$PATH"
16487 for ac_dir in $ac_dummy; do
16488 test -z "$ac_dir" && ac_dir=.
16489 if test -f $ac_dir/$ac_word; then
16490 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16491 break
16492 fi
16493 done
16494 IFS="$ac_save_ifs"
321d2b14
VZ
16495 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16496fi
16497fi
a0b9e27f 16498AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16499if test -n "$AIX_CXX_LD"; then
a0b9e27f 16500 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16501else
a0b9e27f 16502 echo "$ac_t""no" 1>&6
321d2b14
VZ
16503fi
16504
8284b0c5 16505
2b5f62a0
VZ
16506 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16507 fi
21d1c967
GD
16508 ;;
16509
16510 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16511 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16512
16513 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16514 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16515
16516 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16517
f657dbe7
MB
16518 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16519 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16520
16521 if test "$wxUSE_OPENGL" = "yes"; then
16522 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16523 fi
16524 ;;
16525
16526 *-*-beos* )
16527 SHARED_LD="${LD} -shared -o"
16528 ;;
16529
2b5f62a0
VZ
16530 *-*-irix* )
16531 if test "$GCC" != "yes"; then
16532 PIC_FLAG="-KPIC"
16533 fi
16534 ;;
16535
21d1c967
GD
16536 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16537 *-*-sunos4* | \
21d1c967
GD
16538 *-*-osf* | \
16539 *-*-dgux5* | \
16540 *-*-sysv5* )
16541 ;;
16542
16543 *)
a0b9e27f 16544 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16545 esac
16546
16547 if test "x$WX_TARGET_LIBRARY" = "x"; then
16548 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16549 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16550 fi
16551
16552 WX_TARGET_LIBRARY_TYPE="so"
16553 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16554fi
10f2d63a 16555
21d1c967
GD
16556if test "$wxUSE_SHARED" = "no"; then
16557
16558 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16559 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16560 fi
16561
ac0c4cc3 16562 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16563 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16564 fi
16565
16566 if test "$wxUSE_OPENGL" = "yes"; then
16567 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16568 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16569 else
16570 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16571 fi
16572
16573 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16574 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16575
16576 WX_TARGET_LIBRARY_TYPE="a"
16577 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16578
16579 STATIC_FLAG="yes"
16580else
16581 STATIC_FLAG="no"
90dd450c 16582fi
1e487827 16583
93fac604
VZ
16584MACRESCOMP="@#"
16585MACSETFILE="@#"
36825681 16586MACRESWXCONFIG="#"
21d1c967
GD
16587if test "$wxUSE_MAC" = 1; then
16588 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16589 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16590 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16591 # Extract the first word of "Rez", so it can be a program name with args.
16592set dummy Rez; ac_word=$2
a0b9e27f 16593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16594echo "configure:16595: checking for $ac_word" >&5
a0b9e27f
MB
16595if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16596 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16597else
21d1c967
GD
16598 if test -n "$RESCOMP"; then
16599 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16600else
a0b9e27f
MB
16601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16602 ac_dummy="$PATH"
16603 for ac_dir in $ac_dummy; do
16604 test -z "$ac_dir" && ac_dir=.
16605 if test -f $ac_dir/$ac_word; then
16606 ac_cv_prog_RESCOMP="Rez"
16607 break
16608 fi
16609 done
16610 IFS="$ac_save_ifs"
21d1c967 16611 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16612fi
b93d0d08 16613fi
a0b9e27f 16614RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16615if test -n "$RESCOMP"; then
a0b9e27f 16616 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16617else
a0b9e27f 16618 echo "$ac_t""no" 1>&6
90dd450c 16619fi
b93d0d08 16620
21d1c967
GD
16621 # Extract the first word of "DeRez", so it can be a program name with args.
16622set dummy DeRez; ac_word=$2
a0b9e27f 16623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16624echo "configure:16625: checking for $ac_word" >&5
a0b9e27f
MB
16625if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16626 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16627else
21d1c967
GD
16628 if test -n "$DEREZ"; then
16629 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16630else
a0b9e27f
MB
16631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16632 ac_dummy="$PATH"
16633 for ac_dir in $ac_dummy; do
16634 test -z "$ac_dir" && ac_dir=.
16635 if test -f $ac_dir/$ac_word; then
16636 ac_cv_prog_DEREZ="DeRez"
16637 break
16638 fi
16639 done
16640 IFS="$ac_save_ifs"
21d1c967 16641 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16642fi
90dd450c 16643fi
a0b9e27f 16644DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16645if test -n "$DEREZ"; then
a0b9e27f 16646 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16647else
a0b9e27f 16648 echo "$ac_t""no" 1>&6
3a922bb4 16649fi
698dcdb6 16650
36825681
GD
16651 # Extract the first word of "SetFile", so it can be a program name with args.
16652set dummy SetFile; ac_word=$2
16653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16654echo "configure:16655: checking for $ac_word" >&5
36825681
GD
16655if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657else
16658 if test -n "$SETFILE"; then
16659 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16660else
16661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16662 ac_dummy="$PATH"
16663 for ac_dir in $ac_dummy; do
16664 test -z "$ac_dir" && ac_dir=.
16665 if test -f $ac_dir/$ac_word; then
16666 ac_cv_prog_SETFILE="SetFile"
16667 break
16668 fi
16669 done
16670 IFS="$ac_save_ifs"
16671 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16672fi
16673fi
16674SETFILE="$ac_cv_prog_SETFILE"
16675if test -n "$SETFILE"; then
16676 echo "$ac_t""$SETFILE" 1>&6
16677else
16678 echo "$ac_t""no" 1>&6
16679fi
16680
21d1c967 16681 MACOSX_BUNDLE="bundle"
36825681
GD
16682 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16683 MACSETFILE="\$(SETFILE)"
9711d31e 16684 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
16685elif test "$wxUSE_COCOA" = 1; then
16686 # Extract the first word of "Rez", so it can be a program name with args.
16687set dummy Rez; ac_word=$2
16688echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16689echo "configure:16690: checking for $ac_word" >&5
64440d77
DE
16690if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16691 echo $ac_n "(cached) $ac_c" 1>&6
16692else
16693 if test -n "$RESCOMP"; then
16694 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16695else
16696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16697 ac_dummy="$PATH"
16698 for ac_dir in $ac_dummy; do
16699 test -z "$ac_dir" && ac_dir=.
16700 if test -f $ac_dir/$ac_word; then
16701 ac_cv_prog_RESCOMP="Rez"
16702 break
16703 fi
16704 done
16705 IFS="$ac_save_ifs"
16706 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16707fi
16708fi
16709RESCOMP="$ac_cv_prog_RESCOMP"
16710if test -n "$RESCOMP"; then
16711 echo "$ac_t""$RESCOMP" 1>&6
16712else
16713 echo "$ac_t""no" 1>&6
16714fi
16715
16716 # Extract the first word of "DeRez", so it can be a program name with args.
16717set dummy DeRez; ac_word=$2
16718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16719echo "configure:16720: checking for $ac_word" >&5
64440d77
DE
16720if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16722else
16723 if test -n "$DEREZ"; then
16724 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16725else
16726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16727 ac_dummy="$PATH"
16728 for ac_dir in $ac_dummy; do
16729 test -z "$ac_dir" && ac_dir=.
16730 if test -f $ac_dir/$ac_word; then
16731 ac_cv_prog_DEREZ="DeRez"
16732 break
16733 fi
16734 done
16735 IFS="$ac_save_ifs"
16736 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16737fi
16738fi
16739DEREZ="$ac_cv_prog_DEREZ"
16740if test -n "$DEREZ"; then
16741 echo "$ac_t""$DEREZ" 1>&6
16742else
16743 echo "$ac_t""no" 1>&6
16744fi
16745
16746 # Extract the first word of "SetFile", so it can be a program name with args.
16747set dummy SetFile; ac_word=$2
16748echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fe0895cf 16749echo "configure:16750: checking for $ac_word" >&5
64440d77
DE
16750if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16752else
16753 if test -n "$SETFILE"; then
16754 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16755else
16756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16757 ac_dummy="$PATH"
16758 for ac_dir in $ac_dummy; do
16759 test -z "$ac_dir" && ac_dir=.
16760 if test -f $ac_dir/$ac_word; then
16761 ac_cv_prog_SETFILE="SetFile"
16762 break
16763 fi
16764 done
16765 IFS="$ac_save_ifs"
16766 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16767fi
16768fi
16769SETFILE="$ac_cv_prog_SETFILE"
16770if test -n "$SETFILE"; then
16771 echo "$ac_t""$SETFILE" 1>&6
16772else
16773 echo "$ac_t""no" 1>&6
16774fi
16775
16776 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16777 MACSETFILE="\$(SETFILE)"
9711d31e 16778 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
16779else
16780 if test "$wxUSE_PM" = 1; then
36825681 16781 MACRESCOMP="emxbind -ep"
90dd450c 16782 fi
4f14bcd8 16783fi
10f2d63a 16784
8284b0c5 16785
a0b9e27f 16786echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
fe0895cf 16787echo "configure:16788: checking for ANSI C header files" >&5
a0b9e27f
MB
16788if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16789 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16790else
a0b9e27f 16791 cat > conftest.$ac_ext <<EOF
fe0895cf 16792#line 16793 "configure"
52127426 16793#include "confdefs.h"
a0b9e27f
MB
16794#include <stdlib.h>
16795#include <stdarg.h>
16796#include <string.h>
16797#include <float.h>
16798EOF
16799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 16800{ (eval echo configure:16801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16802if test -z "$ac_err"; then
16803 rm -rf conftest*
16804 ac_cv_header_stdc=yes
16805else
16806 echo "$ac_err" >&5
16807 echo "configure: failed program was:" >&5
16808 cat conftest.$ac_ext >&5
16809 rm -rf conftest*
16810 ac_cv_header_stdc=no
16811fi
16812rm -f conftest*
16813
16814if test $ac_cv_header_stdc = yes; then
16815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16816cat > conftest.$ac_ext <<EOF
fe0895cf 16817#line 16818 "configure"
a0b9e27f
MB
16818#include "confdefs.h"
16819#include <string.h>
16820EOF
16821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16822 egrep "memchr" >/dev/null 2>&1; then
16823 :
16824else
16825 rm -rf conftest*
16826 ac_cv_header_stdc=no
16827fi
16828rm -f conftest*
16829
16830fi
16831
16832if test $ac_cv_header_stdc = yes; then
16833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16834cat > conftest.$ac_ext <<EOF
fe0895cf 16835#line 16836 "configure"
a0b9e27f
MB
16836#include "confdefs.h"
16837#include <stdlib.h>
16838EOF
16839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16840 egrep "free" >/dev/null 2>&1; then
16841 :
7b4a847f 16842else
a0b9e27f
MB
16843 rm -rf conftest*
16844 ac_cv_header_stdc=no
52127426 16845fi
a0b9e27f
MB
16846rm -f conftest*
16847
52127426 16848fi
a0b9e27f
MB
16849
16850if test $ac_cv_header_stdc = yes; then
16851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16852if test "$cross_compiling" = yes; then
247f5006
VZ
16853 :
16854else
a0b9e27f 16855 cat > conftest.$ac_ext <<EOF
fe0895cf 16856#line 16857 "configure"
a0b9e27f
MB
16857#include "confdefs.h"
16858#include <ctype.h>
16859#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16860#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16861#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16862int main () { int i; for (i = 0; i < 256; i++)
16863if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16864exit (0); }
247f5006 16865
a0b9e27f 16866EOF
fe0895cf 16867if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16868then
16869 :
16870else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -fr conftest*
16874 ac_cv_header_stdc=no
16875fi
16876rm -fr conftest*
16877fi
16878
16879fi
16880fi
16881
16882echo "$ac_t""$ac_cv_header_stdc" 1>&6
16883if test $ac_cv_header_stdc = yes; then
16884 cat >> confdefs.h <<\EOF
16885#define STDC_HEADERS 1
16886EOF
8284b0c5
MB
16887
16888fi
16889
a0b9e27f 16890echo $ac_n "checking for mode_t""... $ac_c" 1>&6
fe0895cf 16891echo "configure:16892: checking for mode_t" >&5
a0b9e27f
MB
16892if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16893 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16894else
a0b9e27f 16895 cat > conftest.$ac_ext <<EOF
fe0895cf 16896#line 16897 "configure"
8284b0c5 16897#include "confdefs.h"
a0b9e27f
MB
16898#include <sys/types.h>
16899#if STDC_HEADERS
16900#include <stdlib.h>
16901#include <stddef.h>
8284b0c5 16902#endif
a0b9e27f
MB
16903EOF
16904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16905 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16906 rm -rf conftest*
16907 ac_cv_type_mode_t=yes
5c6fa7d2 16908else
a0b9e27f
MB
16909 rm -rf conftest*
16910 ac_cv_type_mode_t=no
16911fi
16912rm -f conftest*
16913
8284b0c5 16914fi
a0b9e27f
MB
16915echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16916if test $ac_cv_type_mode_t = no; then
16917 cat >> confdefs.h <<\EOF
16918#define mode_t int
16919EOF
16920
8284b0c5 16921fi
a0b9e27f
MB
16922
16923echo $ac_n "checking for off_t""... $ac_c" 1>&6
fe0895cf 16924echo "configure:16925: checking for off_t" >&5
a0b9e27f
MB
16925if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16926 echo $ac_n "(cached) $ac_c" 1>&6
16927else
16928 cat > conftest.$ac_ext <<EOF
fe0895cf 16929#line 16930 "configure"
a0b9e27f
MB
16930#include "confdefs.h"
16931#include <sys/types.h>
16932#if STDC_HEADERS
16933#include <stdlib.h>
16934#include <stddef.h>
16935#endif
16936EOF
16937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16938 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16939 rm -rf conftest*
16940 ac_cv_type_off_t=yes
247f5006 16941else
a0b9e27f
MB
16942 rm -rf conftest*
16943 ac_cv_type_off_t=no
16944fi
16945rm -f conftest*
247f5006 16946
a0b9e27f
MB
16947fi
16948echo "$ac_t""$ac_cv_type_off_t" 1>&6
16949if test $ac_cv_type_off_t = no; then
16950 cat >> confdefs.h <<\EOF
90dd450c 16951#define off_t long
a0b9e27f 16952EOF
10f2d63a 16953
90dd450c 16954fi
10f2d63a 16955
a0b9e27f 16956echo $ac_n "checking for pid_t""... $ac_c" 1>&6
fe0895cf 16957echo "configure:16958: checking for pid_t" >&5
a0b9e27f
MB
16958if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16959 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16960else
a0b9e27f 16961 cat > conftest.$ac_ext <<EOF
fe0895cf 16962#line 16963 "configure"
10f2d63a 16963#include "confdefs.h"
a0b9e27f
MB
16964#include <sys/types.h>
16965#if STDC_HEADERS
16966#include <stdlib.h>
16967#include <stddef.h>
8284b0c5 16968#endif
a0b9e27f
MB
16969EOF
16970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16971 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16972 rm -rf conftest*
90dd450c 16973 ac_cv_type_pid_t=yes
698dcdb6 16974else
a0b9e27f
MB
16975 rm -rf conftest*
16976 ac_cv_type_pid_t=no
8284b0c5 16977fi
a0b9e27f 16978rm -f conftest*
247f5006 16979
a0b9e27f
MB
16980fi
16981echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16982if test $ac_cv_type_pid_t = no; then
16983 cat >> confdefs.h <<\EOF
90dd450c 16984#define pid_t int
a0b9e27f 16985EOF
10f2d63a 16986
7b4a847f
RR
16987fi
16988
a0b9e27f 16989echo $ac_n "checking for size_t""... $ac_c" 1>&6
fe0895cf 16990echo "configure:16991: checking for size_t" >&5
a0b9e27f
MB
16991if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16993else
a0b9e27f 16994 cat > conftest.$ac_ext <<EOF
fe0895cf 16995#line 16996 "configure"
7b4a847f 16996#include "confdefs.h"
a0b9e27f
MB
16997#include <sys/types.h>
16998#if STDC_HEADERS
16999#include <stdlib.h>
17000#include <stddef.h>
8284b0c5 17001#endif
a0b9e27f
MB
17002EOF
17003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17004 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
17005 rm -rf conftest*
90dd450c 17006 ac_cv_type_size_t=yes
18dbb1f6 17007else
a0b9e27f
MB
17008 rm -rf conftest*
17009 ac_cv_type_size_t=no
52127426 17010fi
a0b9e27f 17011rm -f conftest*
247f5006 17012
a0b9e27f
MB
17013fi
17014echo "$ac_t""$ac_cv_type_size_t" 1>&6
17015if test $ac_cv_type_size_t = no; then
17016 cat >> confdefs.h <<\EOF
90dd450c 17017#define size_t unsigned
a0b9e27f 17018EOF
90dd450c
VZ
17019
17020fi
17021
a0b9e27f 17022echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
fe0895cf 17023echo "configure:17024: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
17024if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 17026else
a0b9e27f 17027 cat > conftest.$ac_ext <<EOF
fe0895cf 17028#line 17029 "configure"
b3e8d00a 17029#include "confdefs.h"
90dd450c 17030#include <sys/types.h>
a0b9e27f 17031EOF
90dd450c
VZ
17032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17033 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 17034 rm -rf conftest*
90dd450c 17035 ac_cv_type_uid_t=yes
b3e8d00a 17036else
a0b9e27f 17037 rm -rf conftest*
90dd450c 17038 ac_cv_type_uid_t=no
b3e8d00a 17039fi
90dd450c 17040rm -f conftest*
b3e8d00a 17041
4f14bcd8 17042fi
247f5006 17043
a0b9e27f
MB
17044echo "$ac_t""$ac_cv_type_uid_t" 1>&6
17045if test $ac_cv_type_uid_t = no; then
17046 cat >> confdefs.h <<\EOF
90dd450c 17047#define uid_t int
a0b9e27f 17048EOF
247f5006 17049
a0b9e27f 17050 cat >> confdefs.h <<\EOF
90dd450c 17051#define gid_t int
a0b9e27f 17052EOF
4f14bcd8 17053
b3e8d00a 17054fi
b3e8d00a 17055
8284b0c5
MB
17056
17057
a0b9e27f
MB
17058ac_ext=C
17059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17060ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17063cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 17064
a0b9e27f 17065echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
fe0895cf 17066echo "configure:17067: checking if size_t is unsigned int" >&5
a0b9e27f
MB
17067if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
17068 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 17069else
ef33c576
VZ
17070
17071 cat > conftest.$ac_ext <<EOF
fe0895cf 17072#line 17073 "configure"
10f2d63a 17073#include "confdefs.h"
90dd450c 17074#include <stddef.h>
a0b9e27f 17075int main() {
90dd450c
VZ
17076
17077 return 0; }
17078
17079 struct Foo { void foo(size_t); void foo(unsigned int); };
17080
17081 int bar() {
a0b9e27f
MB
17082
17083; return 0; }
17084EOF
fe0895cf 17085if { (eval echo configure:17086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17086 rm -rf conftest*
90dd450c 17087 wx_cv_size_t_is_uint=no
698dcdb6 17088else
a0b9e27f
MB
17089 echo "configure: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 rm -rf conftest*
17092 wx_cv_size_t_is_uint=yes
17093
5c6fa7d2 17094fi
a0b9e27f 17095rm -f conftest*
ef33c576 17096
8284b0c5 17097
247f5006 17098fi
a0b9e27f
MB
17099
17100echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 17101
90dd450c 17102if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 17103 cat >> confdefs.h <<\EOF
90dd450c 17104#define wxSIZE_T_IS_UINT 1
a0b9e27f 17105EOF
698dcdb6 17106
90dd450c 17107else
a0b9e27f 17108 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
fe0895cf 17109echo "configure:17110: checking if size_t is unsigned long" >&5
a0b9e27f
MB
17110if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
17111 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17112else
a0b9e27f 17113 cat > conftest.$ac_ext <<EOF
fe0895cf 17114#line 17115 "configure"
10f2d63a 17115#include "confdefs.h"
90dd450c 17116#include <stddef.h>
a0b9e27f 17117int main() {
90dd450c
VZ
17118
17119 return 0; }
17120
17121 struct Foo { void foo(size_t); void foo(unsigned long); };
17122
17123 int bar() {
a0b9e27f
MB
17124
17125; return 0; }
17126EOF
fe0895cf 17127if { (eval echo configure:17128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17128 rm -rf conftest*
90dd450c 17129 wx_cv_size_t_is_ulong=no
698dcdb6 17130else
a0b9e27f
MB
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17133 rm -rf conftest*
17134 wx_cv_size_t_is_ulong=yes
17135
5c6fa7d2 17136fi
a0b9e27f
MB
17137rm -f conftest*
17138
247f5006 17139fi
a0b9e27f
MB
17140
17141echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 17142
90dd450c 17143 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 17144 cat >> confdefs.h <<\EOF
90dd450c 17145#define wxSIZE_T_IS_ULONG 1
a0b9e27f 17146EOF
4f14bcd8
GD
17147
17148 fi
90dd450c 17149fi
1e487827 17150
90dd450c 17151ac_ext=c
a0b9e27f 17152# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17153ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17154ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17155ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17156cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 17157
5c6fa7d2 17158
8284b0c5 17159
a0b9e27f 17160echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
fe0895cf 17161echo "configure:17162: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
17162if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17163 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17164else
a0b9e27f
MB
17165
17166 cat > conftest.$ac_ext <<EOF
fe0895cf 17167#line 17168 "configure"
4f14bcd8 17168#include "confdefs.h"
90dd450c 17169#include <pwd.h>
a0b9e27f 17170int main() {
f6bcfd97 17171
90dd450c
VZ
17172 char *p;
17173 struct passwd *pw;
17174 p = pw->pw_gecos;
a0b9e27f
MB
17175
17176; return 0; }
17177EOF
fe0895cf 17178if { (eval echo configure:17179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17179 rm -rf conftest*
17180
90dd450c 17181 wx_cv_struct_pw_gecos=yes
a0b9e27f 17182
10f2d63a 17183else
a0b9e27f
MB
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 rm -rf conftest*
17187
90dd450c 17188 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
17189
17190
5c6fa7d2 17191fi
a0b9e27f
MB
17192rm -f conftest*
17193
247f5006
VZ
17194
17195fi
a0b9e27f
MB
17196
17197echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 17198
90dd450c 17199if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 17200 cat >> confdefs.h <<\EOF
90dd450c 17201#define HAVE_PW_GECOS 1
a0b9e27f 17202EOF
c521c494 17203
90dd450c 17204fi
4f14bcd8 17205
8284b0c5 17206
d29b553b 17207if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 17208 cat >> confdefs.h <<\EOF
d74f4b5a 17209#define wxUSE_WCHAR_T 1
a0b9e27f 17210EOF
d74f4b5a 17211
8284b0c5 17212
d74f4b5a
VZ
17213 WCSLEN_FOUND=0
17214 WCHAR_LINK=
a0b9e27f 17215 for ac_func in wcslen
7a30264c 17216do
a0b9e27f 17217echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17218echo "configure:17219: checking for $ac_func" >&5
a0b9e27f
MB
17219if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17220 echo $ac_n "(cached) $ac_c" 1>&6
17221else
17222 cat > conftest.$ac_ext <<EOF
fe0895cf 17223#line 17224 "configure"
4f14bcd8 17224#include "confdefs.h"
7a30264c 17225/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17226 which can conflict with char $ac_func(); below. */
7a30264c 17227#include <assert.h>
4f14bcd8
GD
17228/* Override any gcc2 internal prototype to avoid an error. */
17229/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17230 builtin and then its argument prototype would still apply. */
17231char $ac_func();
17232
17233int main() {
17234
7a30264c
VZ
17235/* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17239choke me
17240#else
a0b9e27f 17241$ac_func();
7a30264c
VZ
17242#endif
17243
a0b9e27f
MB
17244; return 0; }
17245EOF
fe0895cf 17246if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17247 rm -rf conftest*
17248 eval "ac_cv_func_$ac_func=yes"
17249else
17250 echo "configure: failed program was:" >&5
17251 cat conftest.$ac_ext >&5
17252 rm -rf conftest*
17253 eval "ac_cv_func_$ac_func=no"
17254fi
17255rm -f conftest*
17256fi
17257
17258if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17259 echo "$ac_t""yes" 1>&6
17260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17261 cat >> confdefs.h <<EOF
17262#define $ac_tr_func 1
17263EOF
d74f4b5a 17264 WCSLEN_FOUND=1
a0b9e27f
MB
17265else
17266 echo "$ac_t""no" 1>&6
7a30264c
VZ
17267fi
17268done
9d8deca0 17269
8284b0c5 17270
d74f4b5a 17271 if test "$WCSLEN_FOUND" = 0; then
7a30264c 17272 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 17273 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
fe0895cf 17274echo "configure:17275: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
17275ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17278else
a0b9e27f 17279 ac_save_LIBS="$LIBS"
7a30264c 17280LIBS="-lmsvcrt $LIBS"
a0b9e27f 17281cat > conftest.$ac_ext <<EOF
fe0895cf 17282#line 17283 "configure"
10f2d63a 17283#include "confdefs.h"
4f14bcd8
GD
17284/* Override any gcc2 internal prototype to avoid an error. */
17285/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17286 builtin and then its argument prototype would still apply. */
17287char wcslen();
17288
17289int main() {
17290wcslen()
17291; return 0; }
17292EOF
fe0895cf 17293if { (eval echo configure:17294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17294 rm -rf conftest*
17295 eval "ac_cv_lib_$ac_lib_var=yes"
17296else
17297 echo "configure: failed program was:" >&5
17298 cat conftest.$ac_ext >&5
17299 rm -rf conftest*
17300 eval "ac_cv_lib_$ac_lib_var=no"
17301fi
17302rm -f conftest*
17303LIBS="$ac_save_LIBS"
17304
17305fi
17306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17307 echo "$ac_t""yes" 1>&6
d74f4b5a 17308 WCHAR_OK=1
a0b9e27f
MB
17309else
17310 echo "$ac_t""no" 1>&6
d29b553b 17311fi
698dcdb6 17312
7a30264c 17313 else
a0b9e27f 17314 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
fe0895cf 17315echo "configure:17316: checking for wcslen in -lw" >&5
a0b9e27f
MB
17316ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17318 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17319else
a0b9e27f 17320 ac_save_LIBS="$LIBS"
7a30264c 17321LIBS="-lw $LIBS"
a0b9e27f 17322cat > conftest.$ac_ext <<EOF
fe0895cf 17323#line 17324 "configure"
95c8801c 17324#include "confdefs.h"
4f14bcd8
GD
17325/* Override any gcc2 internal prototype to avoid an error. */
17326/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17327 builtin and then its argument prototype would still apply. */
17328char wcslen();
52127426 17329
a0b9e27f
MB
17330int main() {
17331wcslen()
17332; return 0; }
17333EOF
fe0895cf 17334if { (eval echo configure:17335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17335 rm -rf conftest*
17336 eval "ac_cv_lib_$ac_lib_var=yes"
17337else
17338 echo "configure: failed program was:" >&5
17339 cat conftest.$ac_ext >&5
17340 rm -rf conftest*
17341 eval "ac_cv_lib_$ac_lib_var=no"
17342fi
17343rm -f conftest*
17344LIBS="$ac_save_LIBS"
17345
17346fi
17347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17348 echo "$ac_t""yes" 1>&6
17349
7a30264c 17350 WCHAR_LINK=" -lw"
d74f4b5a 17351 WCSLEN_FOUND=1
a0b9e27f
MB
17352
17353else
17354 echo "$ac_t""no" 1>&6
4f14bcd8 17355fi
10f2d63a 17356
7a30264c 17357 fi
d29b553b 17358 fi
95c8801c 17359
d74f4b5a 17360 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17361 cat >> confdefs.h <<\EOF
d74f4b5a 17362#define HAVE_WCSLEN 1
a0b9e27f 17363EOF
10f2d63a 17364
d74f4b5a 17365 fi
52127426 17366
a0b9e27f 17367 for ac_func in wcsrtombs
eb4efbdc 17368do
a0b9e27f 17369echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17370echo "configure:17371: checking for $ac_func" >&5
a0b9e27f
MB
17371if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17372 echo $ac_n "(cached) $ac_c" 1>&6
17373else
17374 cat > conftest.$ac_ext <<EOF
fe0895cf 17375#line 17376 "configure"
eb4efbdc
VZ
17376#include "confdefs.h"
17377/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17378 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17379#include <assert.h>
17380/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17381/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17382 builtin and then its argument prototype would still apply. */
17383char $ac_func();
17384
17385int main() {
17386
10f2d63a
VZ
17387/* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
247f5006 17390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17391choke me
17392#else
a0b9e27f 17393$ac_func();
10f2d63a
VZ
17394#endif
17395
a0b9e27f
MB
17396; return 0; }
17397EOF
fe0895cf 17398if { (eval echo configure:17399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=yes"
17401else
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17404 rm -rf conftest*
17405 eval "ac_cv_func_$ac_func=no"
17406fi
17407rm -f conftest*
17408fi
270a909e 17409
a0b9e27f
MB
17410if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17411 echo "$ac_t""yes" 1>&6
17412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17413 cat >> confdefs.h <<EOF
17414#define $ac_tr_func 1
17415EOF
17416
17417else
17418 echo "$ac_t""no" 1>&6
4f14bcd8 17419fi
247f5006 17420done
1e487827 17421
af15babd 17422else
a0b9e27f 17423 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17424fi
52127426 17425
8284b0c5 17426
a0b9e27f
MB
17427ac_ext=C
17428# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17429ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17430ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17431ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17432cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17433
247f5006
VZ
17434
17435for ac_func in vsnprintf
17436do
a0b9e27f 17437echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17438echo "configure:17439: checking for $ac_func" >&5
a0b9e27f
MB
17439if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
17441else
17442 cat > conftest.$ac_ext <<EOF
fe0895cf 17443#line 17444 "configure"
af15babd 17444#include "confdefs.h"
247f5006 17445/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17446 which can conflict with char $ac_func(); below. */
247f5006
VZ
17447#include <assert.h>
17448/* Override any gcc2 internal prototype to avoid an error. */
17449#ifdef __cplusplus
17450extern "C"
17451#endif
17452/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17453 builtin and then its argument prototype would still apply. */
17454char $ac_func();
17455
17456int main() {
17457
247f5006
VZ
17458/* The GNU C library defines this for functions which it implements
17459 to always fail with ENOSYS. Some functions are actually named
17460 something starting with __ and the normal name is an alias. */
17461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17462choke me
17463#else
a0b9e27f 17464$ac_func();
247f5006 17465#endif
af15babd 17466
a0b9e27f
MB
17467; return 0; }
17468EOF
fe0895cf 17469if { (eval echo configure:17470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17470 rm -rf conftest*
17471 eval "ac_cv_func_$ac_func=yes"
17472else
17473 echo "configure: failed program was:" >&5
17474 cat conftest.$ac_ext >&5
17475 rm -rf conftest*
17476 eval "ac_cv_func_$ac_func=no"
17477fi
17478rm -f conftest*
17479fi
52127426 17480
a0b9e27f
MB
17481if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17482 echo "$ac_t""yes" 1>&6
17483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17484 cat >> confdefs.h <<EOF
17485#define $ac_tr_func 1
17486EOF
17487
17488else
17489 echo "$ac_t""no" 1>&6
5c6fa7d2 17490fi
247f5006 17491done
8284b0c5 17492
4f14bcd8 17493
8d90d2f2
VZ
17494if test "$ac_cv_func_vsnprintf" = "yes"; then
17495 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
fe0895cf 17496echo "configure:17497: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17497if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17498 echo $ac_n "(cached) $ac_c" 1>&6
17499else
17500
17501 cat > conftest.$ac_ext <<EOF
fe0895cf 17502#line 17503 "configure"
8d90d2f2
VZ
17503#include "confdefs.h"
17504
17505 #include <stdio.h>
17506 #include <stdarg.h>
17507
17508int main() {
17509
17510 char *buf;
17511 va_list ap;
17512 vsnprintf(buf, 10u, "%s", ap);
17513
17514; return 0; }
17515EOF
fe0895cf 17516if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17517 rm -rf conftest*
17518 wx_cv_func_vsnprintf_decl=yes
17519else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
17523 wx_cv_func_vsnprintf_decl=no
17524
17525fi
17526rm -f conftest*
17527
17528
17529fi
17530
17531echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17532
17533 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17534 cat >> confdefs.h <<\EOF
17535#define HAVE_VSNPRINTF_DECL 1
17536EOF
17537
17538 fi
17539fi
17540
247f5006 17541if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17542 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17543do
a0b9e27f 17544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17545echo "configure:17546: checking for $ac_func" >&5
a0b9e27f
MB
17546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548else
17549 cat > conftest.$ac_ext <<EOF
fe0895cf 17550#line 17551 "configure"
d74f4b5a
VZ
17551#include "confdefs.h"
17552/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17553 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17554#include <assert.h>
17555/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17556#ifdef __cplusplus
17557extern "C"
17558#endif
d74f4b5a 17559/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17560 builtin and then its argument prototype would still apply. */
17561char $ac_func();
17562
17563int main() {
17564
d74f4b5a
VZ
17565/* The GNU C library defines this for functions which it implements
17566 to always fail with ENOSYS. Some functions are actually named
17567 something starting with __ and the normal name is an alias. */
17568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17569choke me
17570#else
a0b9e27f 17571$ac_func();
d74f4b5a
VZ
17572#endif
17573
a0b9e27f
MB
17574; return 0; }
17575EOF
fe0895cf 17576if { (eval echo configure:17577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17577 rm -rf conftest*
17578 eval "ac_cv_func_$ac_func=yes"
17579else
17580 echo "configure: failed program was:" >&5
17581 cat conftest.$ac_ext >&5
17582 rm -rf conftest*
17583 eval "ac_cv_func_$ac_func=no"
17584fi
17585rm -f conftest*
17586fi
d74f4b5a 17587
a0b9e27f
MB
17588if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17589 echo "$ac_t""yes" 1>&6
17590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17591 cat >> confdefs.h <<EOF
17592#define $ac_tr_func 1
17593EOF
17594
17595else
17596 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17597fi
17598done
17599
8d90d2f2 17600
79668cae 17601 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
fe0895cf 17602echo "configure:17603: checking for _vsnwprintf" >&5
79668cae 17603 cat > conftest.$ac_ext <<EOF
fe0895cf 17604#line 17605 "configure"
79668cae
MB
17605#include "confdefs.h"
17606#include <wchar.h>
17607int main() {
17608&_vsnwprintf;
17609; return 0; }
17610EOF
fe0895cf 17611if { (eval echo configure:17612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17612 rm -rf conftest*
17613 echo "$ac_t""yes" 1>&6
17614 cat >> confdefs.h <<\EOF
17615#define HAVE__VSNWPRINTF 1
17616EOF
17617
17618else
17619 echo "configure: failed program was:" >&5
17620 cat conftest.$ac_ext >&5
17621 rm -rf conftest*
17622 echo "$ac_t""no" 1>&6
17623fi
17624rm -f conftest*;
d74f4b5a
VZ
17625fi
17626
247f5006 17627ac_ext=c
a0b9e27f 17628# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17629ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17630ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17631ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17632cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17633
17634
17635
17636
4f14bcd8 17637if test "$TOOLKIT" != "MSW"; then
af15babd 17638
8284b0c5
MB
17639
17640
a0b9e27f
MB
17641ac_ext=C
17642# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17643ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17644ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17645ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17646cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17647
52127426 17648
a0b9e27f
MB
17649
17650 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17651if test "${with_libiconv_prefix+set}" = set; then
17652 withval="$with_libiconv_prefix"
a0b9e27f 17653
b040e242
VS
17654 for dir in `echo "$withval" | tr : ' '`; do
17655 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17656 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17657 done
a0b9e27f
MB
17658
17659fi
b040e242
VS
17660
17661
a0b9e27f 17662 echo $ac_n "checking for iconv""... $ac_c" 1>&6
fe0895cf 17663echo "configure:17664: checking for iconv" >&5
a0b9e27f
MB
17664if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17665 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17666else
a0b9e27f 17667
b040e242
VS
17668 am_cv_func_iconv="no, consider installing GNU libiconv"
17669 am_cv_lib_iconv=no
a0b9e27f 17670 cat > conftest.$ac_ext <<EOF
fe0895cf 17671#line 17672 "configure"
af15babd 17672#include "confdefs.h"
b040e242 17673#include <stdlib.h>
4f14bcd8 17674#include <iconv.h>
a0b9e27f 17675int main() {
b040e242
VS
17676iconv_t cd = iconv_open("","");
17677 iconv(cd,NULL,NULL,NULL,NULL);
17678 iconv_close(cd);
a0b9e27f
MB
17679; return 0; }
17680EOF
fe0895cf 17681if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17682 rm -rf conftest*
b040e242 17683 am_cv_func_iconv=yes
af15babd 17684else
a0b9e27f
MB
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
b040e242 17687fi
a0b9e27f 17688rm -f conftest*
b040e242
VS
17689 if test "$am_cv_func_iconv" != yes; then
17690 am_save_LIBS="$LIBS"
17691 LIBS="$LIBS -liconv"
a0b9e27f 17692 cat > conftest.$ac_ext <<EOF
fe0895cf 17693#line 17694 "configure"
b040e242
VS
17694#include "confdefs.h"
17695#include <stdlib.h>
17696#include <iconv.h>
a0b9e27f 17697int main() {
b040e242
VS
17698iconv_t cd = iconv_open("","");
17699 iconv(cd,NULL,NULL,NULL,NULL);
17700 iconv_close(cd);
a0b9e27f
MB
17701; return 0; }
17702EOF
fe0895cf 17703if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17704 rm -rf conftest*
b040e242
VS
17705 am_cv_lib_iconv=yes
17706 am_cv_func_iconv=yes
17707else
a0b9e27f
MB
17708 echo "configure: failed program was:" >&5
17709 cat conftest.$ac_ext >&5
af15babd 17710fi
a0b9e27f 17711rm -f conftest*
b040e242
VS
17712 LIBS="$am_save_LIBS"
17713 fi
a0b9e27f 17714
247f5006 17715fi
247f5006 17716
a0b9e27f
MB
17717echo "$ac_t""$am_cv_func_iconv" 1>&6
17718 if test "$am_cv_func_iconv" = yes; then
17719 cat >> confdefs.h <<\EOF
b040e242 17720#define HAVE_ICONV 1
a0b9e27f 17721EOF
b040e242 17722
a0b9e27f 17723 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
fe0895cf 17724echo "configure:17725: checking if iconv needs const" >&5
a0b9e27f
MB
17725if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17726 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17727else
a0b9e27f 17728 cat > conftest.$ac_ext <<EOF
fe0895cf 17729#line 17730 "configure"
b040e242
VS
17730#include "confdefs.h"
17731
17732#include <stdlib.h>
17733#include <iconv.h>
17734extern
17735#ifdef __cplusplus
17736"C"
17737#endif
17738#if defined(__STDC__) || defined(__cplusplus)
17739size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17740#else
17741size_t iconv();
17742#endif
a0b9e27f
MB
17743
17744int main() {
af15babd 17745
a0b9e27f
MB
17746; return 0; }
17747EOF
fe0895cf 17748if { (eval echo configure:17749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17749 rm -rf conftest*
b7043674 17750 wx_cv_func_iconv_const="no"
b040e242 17751else
a0b9e27f
MB
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 wx_cv_func_iconv_const="yes"
17756
5c6fa7d2 17757fi
a0b9e27f
MB
17758rm -f conftest*
17759
247f5006 17760fi
a0b9e27f
MB
17761
17762echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17763
17764 iconv_const=
1c405bb5 17765 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17766 iconv_const="const"
17767 fi
17768
a0b9e27f 17769 cat >> confdefs.h <<EOF
f09359cf 17770#define ICONV_CONST $iconv_const
a0b9e27f 17771EOF
b040e242
VS
17772
17773 fi
17774 LIBICONV=
17775 if test "$am_cv_lib_iconv" = yes; then
17776 LIBICONV="-liconv"
17777 fi
a0b9e27f 17778
b040e242
VS
17779
17780LIBS="$LIBICONV $LIBS"
4f14bcd8 17781ac_ext=c
a0b9e27f 17782# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17783ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17784ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17785ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17786cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17787
5c6fa7d2 17788
8284b0c5 17789if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17790 for ac_func in sigaction
af15babd 17791do
a0b9e27f 17792echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17793echo "configure:17794: checking for $ac_func" >&5
a0b9e27f
MB
17794if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17796else
17797 cat > conftest.$ac_ext <<EOF
fe0895cf 17798#line 17799 "configure"
af15babd
VZ
17799#include "confdefs.h"
17800/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17801 which can conflict with char $ac_func(); below. */
af15babd
VZ
17802#include <assert.h>
17803/* Override any gcc2 internal prototype to avoid an error. */
17804/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17805 builtin and then its argument prototype would still apply. */
17806char $ac_func();
17807
17808int main() {
17809
af15babd
VZ
17810/* The GNU C library defines this for functions which it implements
17811 to always fail with ENOSYS. Some functions are actually named
17812 something starting with __ and the normal name is an alias. */
17813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17814choke me
17815#else
a0b9e27f 17816$ac_func();
af15babd
VZ
17817#endif
17818
a0b9e27f
MB
17819; return 0; }
17820EOF
fe0895cf 17821if { (eval echo configure:17822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17822 rm -rf conftest*
17823 eval "ac_cv_func_$ac_func=yes"
17824else
17825 echo "configure: failed program was:" >&5
17826 cat conftest.$ac_ext >&5
17827 rm -rf conftest*
17828 eval "ac_cv_func_$ac_func=no"
17829fi
17830rm -f conftest*
17831fi
7b4a847f 17832
a0b9e27f
MB
17833if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17834 echo "$ac_t""yes" 1>&6
17835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17836 cat >> confdefs.h <<EOF
17837#define $ac_tr_func 1
17838EOF
17839
17840else
17841 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17842fi
17843done
17844
8284b0c5 17845
4f14bcd8 17846 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17847 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17848 wxUSE_ON_FATAL_EXCEPTION=no
17849 fi
17850
17851 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17852
17853 ac_ext=C
17854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17855ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17858cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17859
5c6fa7d2 17860
a0b9e27f 17861 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
fe0895cf 17862echo "configure:17863: checking for sa_handler type" >&5
a0b9e27f
MB
17863if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17864 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17865else
a0b9e27f
MB
17866
17867 cat > conftest.$ac_ext <<EOF
fe0895cf 17868#line 17869 "configure"
af15babd 17869#include "confdefs.h"
4f14bcd8 17870#include <signal.h>
a0b9e27f 17871int main() {
4f14bcd8
GD
17872
17873 extern void testSigHandler(int);
17874
17875 struct sigaction sa;
17876 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17877
17878; return 0; }
17879EOF
fe0895cf 17880if { (eval echo configure:17881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17881 rm -rf conftest*
17882
4f14bcd8 17883 wx_cv_type_sa_handler=int
a0b9e27f 17884
af15babd 17885else
a0b9e27f
MB
17886 echo "configure: failed program was:" >&5
17887 cat conftest.$ac_ext >&5
17888 rm -rf conftest*
17889
4f14bcd8 17890 wx_cv_type_sa_handler=void
a0b9e27f 17891
5c6fa7d2 17892fi
a0b9e27f
MB
17893rm -f conftest*
17894
247f5006 17895fi
a0b9e27f
MB
17896
17897echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17898
17899 ac_ext=c
a0b9e27f 17900# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17901ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17902ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17903ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17904cross_compiling=$ac_cv_prog_cc_cross
579d8138 17905
8284b0c5 17906
a0b9e27f 17907 cat >> confdefs.h <<EOF
4f14bcd8 17908#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17909EOF
af15babd 17910
4f14bcd8
GD
17911 fi
17912fi
af15babd 17913
a1d22ad7 17914for ac_func in mkstemp mktemp
af15babd 17915do
a0b9e27f 17916echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 17917echo "configure:17918: checking for $ac_func" >&5
a0b9e27f
MB
17918if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17919 echo $ac_n "(cached) $ac_c" 1>&6
17920else
17921 cat > conftest.$ac_ext <<EOF
fe0895cf 17922#line 17923 "configure"
af15babd
VZ
17923#include "confdefs.h"
17924/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17925 which can conflict with char $ac_func(); below. */
af15babd
VZ
17926#include <assert.h>
17927/* Override any gcc2 internal prototype to avoid an error. */
17928/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17929 builtin and then its argument prototype would still apply. */
17930char $ac_func();
17931
17932int main() {
17933
af15babd
VZ
17934/* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17938choke me
17939#else
a0b9e27f 17940$ac_func();
af15babd
VZ
17941#endif
17942
a0b9e27f
MB
17943; return 0; }
17944EOF
fe0895cf 17945if { (eval echo configure:17946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17946 rm -rf conftest*
17947 eval "ac_cv_func_$ac_func=yes"
17948else
17949 echo "configure: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17951 rm -rf conftest*
17952 eval "ac_cv_func_$ac_func=no"
17953fi
17954rm -f conftest*
17955fi
af15babd 17956
a0b9e27f
MB
17957if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17958 echo "$ac_t""yes" 1>&6
17959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17960 cat >> confdefs.h <<EOF
17961#define $ac_tr_func 1
17962EOF
ade35f11 17963 break
a0b9e27f
MB
17964else
17965 echo "$ac_t""no" 1>&6
ade35f11
VZ
17966fi
17967done
17968
8284b0c5 17969
a0b9e27f 17970echo $ac_n "checking for statfs""... $ac_c" 1>&6
fe0895cf 17971echo "configure:17972: checking for statfs" >&5
a0b9e27f
MB
17972if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17974else
a0b9e27f 17975 cat > conftest.$ac_ext <<EOF
fe0895cf 17976#line 17977 "configure"
4f14bcd8
GD
17977#include "confdefs.h"
17978
17979 #if defined(__BSD__)
17980 #include <sys/param.h>
17981 #include <sys/mount.h>
17982 #else
17983 #include <sys/vfs.h>
17984 #endif
a0b9e27f
MB
17985
17986int main() {
4f14bcd8
GD
17987
17988 long l;
17989 struct statfs fs;
17990 statfs("/", &fs);
17991 l = fs.f_bsize;
17992 l += fs.f_blocks;
17993 l += fs.f_bavail;
a0b9e27f
MB
17994
17995; return 0; }
17996EOF
fe0895cf 17997if { (eval echo configure:17998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17998 rm -rf conftest*
17999
4f14bcd8 18000 wx_cv_func_statfs=yes
a0b9e27f 18001
4f14bcd8 18002else
a0b9e27f
MB
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006
4f14bcd8 18007 wx_cv_func_statfs=no
a0b9e27f
MB
18008
18009
5c6fa7d2 18010fi
a0b9e27f 18011rm -f conftest*
8284b0c5 18012
247f5006 18013fi
a0b9e27f
MB
18014
18015echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
18016
18017if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 18018 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 18019 cat >> confdefs.h <<\EOF
4f14bcd8 18020#define HAVE_STATFS 1
a0b9e27f 18021EOF
4f14bcd8
GD
18022
18023else
a0b9e27f 18024 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
fe0895cf 18025echo "configure:18026: checking for statvfs" >&5
a0b9e27f
MB
18026if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
18027 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 18028else
a0b9e27f 18029 cat > conftest.$ac_ext <<EOF
fe0895cf 18030#line 18031 "configure"
af15babd 18031#include "confdefs.h"
af15babd 18032
54ab82b3
VZ
18033 #include <stddef.h>
18034 #include <sys/statvfs.h>
a0b9e27f
MB
18035
18036int main() {
af15babd 18037
54ab82b3 18038 statvfs("/", NULL);
a0b9e27f
MB
18039
18040; return 0; }
18041EOF
fe0895cf 18042if { (eval echo configure:18043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 18043 rm -rf conftest*
54ab82b3 18044 wx_cv_func_statvfs=yes
af15babd 18045else
a0b9e27f
MB
18046 echo "configure: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048 rm -rf conftest*
54ab82b3 18049 wx_cv_func_statvfs=no
a0b9e27f 18050
5c6fa7d2 18051fi
a0b9e27f
MB
18052rm -f conftest*
18053
247f5006 18054fi
a0b9e27f
MB
18055
18056echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 18057
4f14bcd8 18058 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
18059
18060 ac_ext=C
18061# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18062ac_cpp='$CXXCPP $CPPFLAGS'
18063ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18064ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18065cross_compiling=$ac_cv_prog_cxx_cross
18066
18067
18068 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
fe0895cf 18069echo "configure:18070: checking for statvfs argument type" >&5
54ab82b3
VZ
18070if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
18071 echo $ac_n "(cached) $ac_c" 1>&6
18072else
18073 cat > conftest.$ac_ext <<EOF
fe0895cf 18074#line 18075 "configure"
54ab82b3
VZ
18075#include "confdefs.h"
18076
18077 #include <sys/statvfs.h>
18078
18079int main() {
18080
18081 long l;
18082 statvfs_t fs;
18083 statvfs("/", &fs);
18084 l = fs.f_bsize;
18085 l += fs.f_blocks;
18086 l += fs.f_bavail;
18087
18088; return 0; }
18089EOF
fe0895cf 18090if { (eval echo configure:18091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
18091 rm -rf conftest*
18092 wx_cv_type_statvfs_t=statvfs_t
18093else
18094 echo "configure: failed program was:" >&5
18095 cat conftest.$ac_ext >&5
18096 rm -rf conftest*
18097
18098 cat > conftest.$ac_ext <<EOF
fe0895cf 18099#line 18100 "configure"
54ab82b3
VZ
18100#include "confdefs.h"
18101
18102 #include <sys/statvfs.h>
18103
18104int main() {
18105
18106 long l;
65d8ef1e 18107 struct statvfs fs;
54ab82b3
VZ
18108 statvfs("/", &fs);
18109 l = fs.f_bsize;
18110 l += fs.f_blocks;
18111 l += fs.f_bavail;
18112
18113; return 0; }
18114EOF
fe0895cf 18115if { (eval echo configure:18116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
18116 rm -rf conftest*
18117 wx_cv_type_statvfs_t="struct statvfs"
18118else
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18121 rm -rf conftest*
18122 wx_cv_type_statvfs_t="unknown"
18123
18124fi
18125rm -f conftest*
18126
18127
18128fi
18129rm -f conftest*
18130
18131fi
18132
18133echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18134
18135 ac_ext=c
18136# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18137ac_cpp='$CPP $CPPFLAGS'
18138ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18139ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18140cross_compiling=$ac_cv_prog_cc_cross
18141
18142
18143 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18144 cat >> confdefs.h <<\EOF
4f14bcd8 18145#define HAVE_STATVFS 1
a0b9e27f 18146EOF
af15babd 18147
54ab82b3 18148 fi
4f14bcd8 18149 else
54ab82b3 18150 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
18151 fi
18152fi
af15babd 18153
54ab82b3
VZ
18154if test "$wx_cv_type_statvfs_t" != "unknown"; then
18155 cat >> confdefs.h <<EOF
18156#define WX_STATFS_T $wx_cv_type_statvfs_t
18157EOF
18158
18159else
18160 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18161fi
18162
4f14bcd8 18163if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 18164 for ac_func in fcntl flock
af15babd 18165do
a0b9e27f 18166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18167echo "configure:18168: checking for $ac_func" >&5
a0b9e27f
MB
18168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18169 echo $ac_n "(cached) $ac_c" 1>&6
18170else
18171 cat > conftest.$ac_ext <<EOF
fe0895cf 18172#line 18173 "configure"
af15babd
VZ
18173#include "confdefs.h"
18174/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18175 which can conflict with char $ac_func(); below. */
af15babd
VZ
18176#include <assert.h>
18177/* Override any gcc2 internal prototype to avoid an error. */
af15babd 18178/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18179 builtin and then its argument prototype would still apply. */
18180char $ac_func();
18181
18182int main() {
18183
af15babd
VZ
18184/* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18188choke me
18189#else
a0b9e27f 18190$ac_func();
af15babd
VZ
18191#endif
18192
a0b9e27f
MB
18193; return 0; }
18194EOF
fe0895cf 18195if { (eval echo configure:18196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18196 rm -rf conftest*
18197 eval "ac_cv_func_$ac_func=yes"
18198else
18199 echo "configure: failed program was:" >&5
18200 cat conftest.$ac_ext >&5
18201 rm -rf conftest*
18202 eval "ac_cv_func_$ac_func=no"
18203fi
18204rm -f conftest*
18205fi
18206
18207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18210 cat >> confdefs.h <<EOF
18211#define $ac_tr_func 1
18212EOF
4f14bcd8 18213 break
a0b9e27f
MB
18214else
18215 echo "$ac_t""no" 1>&6
af15babd
VZ
18216fi
18217done
18218
8284b0c5 18219
4f14bcd8 18220 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 18221 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
18222 wxUSE_SNGLINST_CHECKER=no
18223 fi
18224fi
af15babd 18225
4f14bcd8 18226for ac_func in timegm
af15babd 18227do
a0b9e27f 18228echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18229echo "configure:18230: checking for $ac_func" >&5
a0b9e27f
MB
18230if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18231 echo $ac_n "(cached) $ac_c" 1>&6
18232else
18233 cat > conftest.$ac_ext <<EOF
fe0895cf 18234#line 18235 "configure"
af15babd
VZ
18235#include "confdefs.h"
18236/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18237 which can conflict with char $ac_func(); below. */
af15babd
VZ
18238#include <assert.h>
18239/* Override any gcc2 internal prototype to avoid an error. */
18240/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18241 builtin and then its argument prototype would still apply. */
18242char $ac_func();
18243
18244int main() {
18245
af15babd
VZ
18246/* The GNU C library defines this for functions which it implements
18247 to always fail with ENOSYS. Some functions are actually named
18248 something starting with __ and the normal name is an alias. */
247f5006
VZ
18249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18250choke me
18251#else
a0b9e27f 18252$ac_func();
247f5006
VZ
18253#endif
18254
a0b9e27f
MB
18255; return 0; }
18256EOF
fe0895cf 18257if { (eval echo configure:18258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18258 rm -rf conftest*
18259 eval "ac_cv_func_$ac_func=yes"
18260else
18261 echo "configure: failed program was:" >&5
18262 cat conftest.$ac_ext >&5
18263 rm -rf conftest*
18264 eval "ac_cv_func_$ac_func=no"
18265fi
18266rm -f conftest*
18267fi
703e0a69 18268
a0b9e27f
MB
18269if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18270 echo "$ac_t""yes" 1>&6
18271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18272 cat >> confdefs.h <<EOF
18273#define $ac_tr_func 1
18274EOF
18275
18276else
18277 echo "$ac_t""no" 1>&6
af15babd
VZ
18278fi
18279done
18280
8284b0c5 18281
4f14bcd8 18282for ac_func in putenv setenv
10f2d63a 18283do
a0b9e27f 18284echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18285echo "configure:18286: checking for $ac_func" >&5
a0b9e27f
MB
18286if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18288else
18289 cat > conftest.$ac_ext <<EOF
fe0895cf 18290#line 18291 "configure"
af15babd
VZ
18291#include "confdefs.h"
18292/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18293 which can conflict with char $ac_func(); below. */
af15babd
VZ
18294#include <assert.h>
18295/* Override any gcc2 internal prototype to avoid an error. */
18296/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18297 builtin and then its argument prototype would still apply. */
18298char $ac_func();
18299
18300int main() {
18301
af15babd
VZ
18302/* The GNU C library defines this for functions which it implements
18303 to always fail with ENOSYS. Some functions are actually named
18304 something starting with __ and the normal name is an alias. */
18305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18306choke me
18307#else
a0b9e27f 18308$ac_func();
af15babd
VZ
18309#endif
18310
a0b9e27f
MB
18311; return 0; }
18312EOF
fe0895cf 18313if { (eval echo configure:18314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18314 rm -rf conftest*
18315 eval "ac_cv_func_$ac_func=yes"
18316else
18317 echo "configure: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18319 rm -rf conftest*
18320 eval "ac_cv_func_$ac_func=no"
18321fi
18322rm -f conftest*
18323fi
18324
18325if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18326 echo "$ac_t""yes" 1>&6
18327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18328 cat >> confdefs.h <<EOF
18329#define $ac_tr_func 1
18330EOF
4f14bcd8 18331 break
a0b9e27f
MB
18332else
18333 echo "$ac_t""no" 1>&6
af15babd 18334fi
af15babd
VZ
18335done
18336
8284b0c5 18337
4f14bcd8
GD
18338HAVE_SOME_SLEEP_FUNC=0
18339if test "$USE_BEOS" = 1; then
a0b9e27f 18340 cat >> confdefs.h <<\EOF
4f14bcd8 18341#define HAVE_SLEEP 1
a0b9e27f 18342EOF
af15babd 18343
4f14bcd8 18344 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18345fi
18346
4f14bcd8 18347if test "$USE_DARWIN" = 1; then
a0b9e27f 18348 cat >> confdefs.h <<\EOF
4f14bcd8 18349#define HAVE_USLEEP 1
a0b9e27f 18350EOF
10f2d63a 18351
4f14bcd8 18352 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18353fi
18354
4f14bcd8
GD
18355if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18356 POSIX4_LINK=
a0b9e27f 18357 for ac_func in nanosleep
4f14bcd8 18358do
a0b9e27f 18359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18360echo "configure:18361: checking for $ac_func" >&5
a0b9e27f
MB
18361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18362 echo $ac_n "(cached) $ac_c" 1>&6
18363else
18364 cat > conftest.$ac_ext <<EOF
fe0895cf 18365#line 18366 "configure"
10f2d63a 18366#include "confdefs.h"
4f14bcd8 18367/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18368 which can conflict with char $ac_func(); below. */
4f14bcd8 18369#include <assert.h>
10f2d63a
VZ
18370/* Override any gcc2 internal prototype to avoid an error. */
18371/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18372 builtin and then its argument prototype would still apply. */
18373char $ac_func();
18374
18375int main() {
18376
4f14bcd8
GD
18377/* The GNU C library defines this for functions which it implements
18378 to always fail with ENOSYS. Some functions are actually named
18379 something starting with __ and the normal name is an alias. */
18380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381choke me
18382#else
a0b9e27f 18383$ac_func();
4f14bcd8
GD
18384#endif
18385
a0b9e27f
MB
18386; return 0; }
18387EOF
fe0895cf 18388if { (eval echo configure:18389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18389 rm -rf conftest*
18390 eval "ac_cv_func_$ac_func=yes"
18391else
18392 echo "configure: failed program was:" >&5
18393 cat conftest.$ac_ext >&5
18394 rm -rf conftest*
18395 eval "ac_cv_func_$ac_func=no"
18396fi
18397rm -f conftest*
18398fi
18399
18400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18401 echo "$ac_t""yes" 1>&6
18402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18403 cat >> confdefs.h <<EOF
18404#define $ac_tr_func 1
18405EOF
18406 cat >> confdefs.h <<\EOF
4f14bcd8 18407#define HAVE_NANOSLEEP 1
a0b9e27f 18408EOF
4f14bcd8 18409
10f2d63a 18410else
a0b9e27f
MB
18411 echo "$ac_t""no" 1>&6
18412echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
fe0895cf 18413echo "configure:18414: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18414ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18416 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18417else
a0b9e27f 18418 ac_save_LIBS="$LIBS"
4f14bcd8 18419LIBS="-lposix4 $LIBS"
a0b9e27f 18420cat > conftest.$ac_ext <<EOF
fe0895cf 18421#line 18422 "configure"
10f2d63a
VZ
18422#include "confdefs.h"
18423/* Override any gcc2 internal prototype to avoid an error. */
18424/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18425 builtin and then its argument prototype would still apply. */
18426char nanosleep();
18427
18428int main() {
18429nanosleep()
18430; return 0; }
18431EOF
fe0895cf 18432if { (eval echo configure:18433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18433 rm -rf conftest*
18434 eval "ac_cv_lib_$ac_lib_var=yes"
18435else
18436 echo "configure: failed program was:" >&5
18437 cat conftest.$ac_ext >&5
18438 rm -rf conftest*
18439 eval "ac_cv_lib_$ac_lib_var=no"
18440fi
18441rm -f conftest*
18442LIBS="$ac_save_LIBS"
18443
18444fi
18445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18446 echo "$ac_t""yes" 1>&6
18447
18448 cat >> confdefs.h <<\EOF
4f14bcd8 18449#define HAVE_NANOSLEEP 1
a0b9e27f 18450EOF
4f14bcd8 18451
3d63bc3a 18452 POSIX4_LINK=" -lposix4"
a0b9e27f 18453
10f2d63a 18454else
a0b9e27f 18455 echo "$ac_t""no" 1>&6
10f2d63a 18456
a0b9e27f 18457 for ac_func in usleep
4f14bcd8 18458do
a0b9e27f 18459echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18460echo "configure:18461: checking for $ac_func" >&5
a0b9e27f
MB
18461if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18462 echo $ac_n "(cached) $ac_c" 1>&6
18463else
18464 cat > conftest.$ac_ext <<EOF
fe0895cf 18465#line 18466 "configure"
10f2d63a 18466#include "confdefs.h"
4f14bcd8 18467/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18468 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18469#include <assert.h>
18470/* Override any gcc2 internal prototype to avoid an error. */
18471/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18472 builtin and then its argument prototype would still apply. */
18473char $ac_func();
18474
18475int main() {
18476
4f14bcd8
GD
18477/* The GNU C library defines this for functions which it implements
18478 to always fail with ENOSYS. Some functions are actually named
18479 something starting with __ and the normal name is an alias. */
18480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18481choke me
18482#else
a0b9e27f 18483$ac_func();
4f14bcd8
GD
18484#endif
18485
a0b9e27f
MB
18486; return 0; }
18487EOF
fe0895cf 18488if { (eval echo configure:18489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18489 rm -rf conftest*
18490 eval "ac_cv_func_$ac_func=yes"
18491else
18492 echo "configure: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18494 rm -rf conftest*
18495 eval "ac_cv_func_$ac_func=no"
18496fi
18497rm -f conftest*
18498fi
18499
18500if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18501 echo "$ac_t""yes" 1>&6
18502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18503 cat >> confdefs.h <<EOF
18504#define $ac_tr_func 1
18505EOF
18506 cat >> confdefs.h <<\EOF
4f14bcd8 18507#define HAVE_USLEEP 1
a0b9e27f 18508EOF
4f14bcd8 18509
698dcdb6 18510else
a0b9e27f
MB
18511 echo "$ac_t""no" 1>&6
18512echo "configure: warning: wxSleep() function will not work" 1>&2
18513
10f2d63a 18514fi
4f14bcd8 18515done
10f2d63a 18516
a0b9e27f
MB
18517
18518
6232543b 18519fi
10f2d63a 18520
a0b9e27f
MB
18521
18522
1e487827 18523fi
4f14bcd8 18524done
703e0a69 18525
10f2d63a
VZ
18526fi
18527
4f14bcd8 18528for ac_func in uname gethostname
70846f0a 18529do
a0b9e27f 18530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18531echo "configure:18532: checking for $ac_func" >&5
a0b9e27f
MB
18532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533 echo $ac_n "(cached) $ac_c" 1>&6
18534else
18535 cat > conftest.$ac_ext <<EOF
fe0895cf 18536#line 18537 "configure"
70846f0a
VZ
18537#include "confdefs.h"
18538/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18539 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18540#include <assert.h>
18541/* Override any gcc2 internal prototype to avoid an error. */
18542/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18543 builtin and then its argument prototype would still apply. */
18544char $ac_func();
18545
18546int main() {
18547
70846f0a
VZ
18548/* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552choke me
18553#else
a0b9e27f 18554$ac_func();
70846f0a
VZ
18555#endif
18556
a0b9e27f
MB
18557; return 0; }
18558EOF
fe0895cf 18559if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18560 rm -rf conftest*
18561 eval "ac_cv_func_$ac_func=yes"
18562else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 eval "ac_cv_func_$ac_func=no"
18567fi
18568rm -f conftest*
18569fi
18570
18571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572 echo "$ac_t""yes" 1>&6
18573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574 cat >> confdefs.h <<EOF
18575#define $ac_tr_func 1
18576EOF
4f14bcd8 18577 break
a0b9e27f
MB
18578else
18579 echo "$ac_t""no" 1>&6
70846f0a
VZ
18580fi
18581done
18582
8284b0c5
MB
18583
18584
a0b9e27f
MB
18585ac_ext=C
18586# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18587ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18588ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18589ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18590cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18591
4f14bcd8
GD
18592
18593for ac_func in strtok_r
10f2d63a 18594do
a0b9e27f 18595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18596echo "configure:18597: checking for $ac_func" >&5
a0b9e27f
MB
18597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18598 echo $ac_n "(cached) $ac_c" 1>&6
18599else
18600 cat > conftest.$ac_ext <<EOF
fe0895cf 18601#line 18602 "configure"
10f2d63a 18602#include "confdefs.h"
4f14bcd8 18603/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18604 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18605#include <assert.h>
18606/* Override any gcc2 internal prototype to avoid an error. */
18607#ifdef __cplusplus
18608extern "C"
18609#endif
18610/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18611 builtin and then its argument prototype would still apply. */
18612char $ac_func();
18613
18614int main() {
18615
4f14bcd8
GD
18616/* The GNU C library defines this for functions which it implements
18617 to always fail with ENOSYS. Some functions are actually named
18618 something starting with __ and the normal name is an alias. */
18619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18620choke me
18621#else
a0b9e27f 18622$ac_func();
4f14bcd8
GD
18623#endif
18624
a0b9e27f
MB
18625; return 0; }
18626EOF
fe0895cf 18627if { (eval echo configure:18628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18628 rm -rf conftest*
18629 eval "ac_cv_func_$ac_func=yes"
18630else
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18633 rm -rf conftest*
18634 eval "ac_cv_func_$ac_func=no"
18635fi
18636rm -f conftest*
18637fi
4f14bcd8 18638
a0b9e27f
MB
18639if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18640 echo "$ac_t""yes" 1>&6
18641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18642 cat >> confdefs.h <<EOF
18643#define $ac_tr_func 1
18644EOF
18645
18646else
18647 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18648fi
18649done
18650
8284b0c5 18651
4f14bcd8 18652ac_ext=c
a0b9e27f 18653# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18654ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18655ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18656ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18657cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18658
5c6fa7d2 18659
8284b0c5 18660INET_LINK=
4f14bcd8
GD
18661for ac_func in inet_addr
18662do
a0b9e27f 18663echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18664echo "configure:18665: checking for $ac_func" >&5
a0b9e27f
MB
18665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18666 echo $ac_n "(cached) $ac_c" 1>&6
18667else
18668 cat > conftest.$ac_ext <<EOF
fe0895cf 18669#line 18670 "configure"
10f2d63a 18670#include "confdefs.h"
4f14bcd8 18671/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18672 which can conflict with char $ac_func(); below. */
4f14bcd8 18673#include <assert.h>
10f2d63a
VZ
18674/* Override any gcc2 internal prototype to avoid an error. */
18675/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18676 builtin and then its argument prototype would still apply. */
18677char $ac_func();
18678
18679int main() {
18680
4f14bcd8
GD
18681/* The GNU C library defines this for functions which it implements
18682 to always fail with ENOSYS. Some functions are actually named
18683 something starting with __ and the normal name is an alias. */
18684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18685choke me
18686#else
a0b9e27f 18687$ac_func();
4f14bcd8
GD
18688#endif
18689
a0b9e27f
MB
18690; return 0; }
18691EOF
fe0895cf 18692if { (eval echo configure:18693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18693 rm -rf conftest*
18694 eval "ac_cv_func_$ac_func=yes"
18695else
18696 echo "configure: failed program was:" >&5
18697 cat conftest.$ac_ext >&5
18698 rm -rf conftest*
18699 eval "ac_cv_func_$ac_func=no"
18700fi
18701rm -f conftest*
18702fi
18703
18704if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18705 echo "$ac_t""yes" 1>&6
18706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18707 cat >> confdefs.h <<EOF
18708#define $ac_tr_func 1
18709EOF
18710 cat >> confdefs.h <<\EOF
4f14bcd8 18711#define HAVE_INET_ADDR 1
a0b9e27f 18712EOF
10f2d63a
VZ
18713
18714else
a0b9e27f
MB
18715 echo "$ac_t""no" 1>&6
18716echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
fe0895cf 18717echo "configure:18718: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18718ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18719if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18720 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18721else
a0b9e27f 18722 ac_save_LIBS="$LIBS"
4f14bcd8 18723LIBS="-lnsl $LIBS"
a0b9e27f 18724cat > conftest.$ac_ext <<EOF
fe0895cf 18725#line 18726 "configure"
10f2d63a
VZ
18726#include "confdefs.h"
18727/* Override any gcc2 internal prototype to avoid an error. */
18728/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18729 builtin and then its argument prototype would still apply. */
18730char inet_addr();
18731
18732int main() {
18733inet_addr()
18734; return 0; }
18735EOF
fe0895cf 18736if { (eval echo configure:18737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18737 rm -rf conftest*
18738 eval "ac_cv_lib_$ac_lib_var=yes"
18739else
18740 echo "configure: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 rm -rf conftest*
18743 eval "ac_cv_lib_$ac_lib_var=no"
18744fi
18745rm -f conftest*
18746LIBS="$ac_save_LIBS"
18747
18748fi
18749if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18750 echo "$ac_t""yes" 1>&6
4f14bcd8 18751 INET_LINK="nsl"
10f2d63a 18752else
a0b9e27f
MB
18753 echo "$ac_t""no" 1>&6
18754echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
fe0895cf 18755echo "configure:18756: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18756ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18757if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18758 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18759else
a0b9e27f 18760 ac_save_LIBS="$LIBS"
4f14bcd8 18761LIBS="-lresolv $LIBS"
a0b9e27f 18762cat > conftest.$ac_ext <<EOF
fe0895cf 18763#line 18764 "configure"
7b4a847f 18764#include "confdefs.h"
5c6fa7d2 18765/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18766/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18767 builtin and then its argument prototype would still apply. */
18768char inet_addr();
18769
18770int main() {
18771inet_addr()
18772; return 0; }
18773EOF
fe0895cf 18774if { (eval echo configure:18775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18775 rm -rf conftest*
18776 eval "ac_cv_lib_$ac_lib_var=yes"
18777else
18778 echo "configure: failed program was:" >&5
18779 cat conftest.$ac_ext >&5
18780 rm -rf conftest*
18781 eval "ac_cv_lib_$ac_lib_var=no"
18782fi
18783rm -f conftest*
18784LIBS="$ac_save_LIBS"
18785
18786fi
18787if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18788 echo "$ac_t""yes" 1>&6
4f14bcd8 18789 INET_LINK="resolv"
698dcdb6 18790else
a0b9e27f
MB
18791 echo "$ac_t""no" 1>&6
18792echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
fe0895cf 18793echo "configure:18794: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18794ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18796 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18797else
a0b9e27f 18798 ac_save_LIBS="$LIBS"
3c011993 18799LIBS="-lsocket $LIBS"
a0b9e27f 18800cat > conftest.$ac_ext <<EOF
fe0895cf 18801#line 18802 "configure"
3c011993
VZ
18802#include "confdefs.h"
18803/* Override any gcc2 internal prototype to avoid an error. */
18804/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18805 builtin and then its argument prototype would still apply. */
18806char inet_addr();
4f14bcd8 18807
a0b9e27f
MB
18808int main() {
18809inet_addr()
18810; return 0; }
18811EOF
fe0895cf 18812if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18813 rm -rf conftest*
18814 eval "ac_cv_lib_$ac_lib_var=yes"
18815else
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18818 rm -rf conftest*
18819 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18820fi
a0b9e27f
MB
18821rm -f conftest*
18822LIBS="$ac_save_LIBS"
698dcdb6 18823
7b4a847f 18824fi
a0b9e27f
MB
18825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18826 echo "$ac_t""yes" 1>&6
18827 INET_LINK="socket"
18828
18829else
18830 echo "$ac_t""no" 1>&6
18831fi
579d8138 18832
a0b9e27f 18833
5c6fa7d2 18834fi
52127426 18835
a0b9e27f
MB
18836
18837fi
247f5006 18838
a0b9e27f 18839
8284b0c5 18840
698dcdb6 18841fi
4f14bcd8
GD
18842done
18843
8284b0c5 18844
4f14bcd8
GD
18845for ac_func in inet_aton
18846do
a0b9e27f 18847echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 18848echo "configure:18849: checking for $ac_func" >&5
a0b9e27f
MB
18849if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18850 echo $ac_n "(cached) $ac_c" 1>&6
18851else
18852 cat > conftest.$ac_ext <<EOF
fe0895cf 18853#line 18854 "configure"
f6bcfd97 18854#include "confdefs.h"
4f14bcd8 18855/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18856 which can conflict with char $ac_func(); below. */
4f14bcd8 18857#include <assert.h>
f6bcfd97
BP
18858/* Override any gcc2 internal prototype to avoid an error. */
18859/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18860 builtin and then its argument prototype would still apply. */
18861char $ac_func();
18862
18863int main() {
18864
4f14bcd8
GD
18865/* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869choke me
18870#else
a0b9e27f 18871$ac_func();
4f14bcd8
GD
18872#endif
18873
a0b9e27f
MB
18874; return 0; }
18875EOF
fe0895cf 18876if { (eval echo configure:18877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18877 rm -rf conftest*
18878 eval "ac_cv_func_$ac_func=yes"
18879else
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 rm -rf conftest*
18883 eval "ac_cv_func_$ac_func=no"
18884fi
18885rm -f conftest*
18886fi
18887
18888if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18889 echo "$ac_t""yes" 1>&6
18890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18891 cat >> confdefs.h <<EOF
18892#define $ac_tr_func 1
18893EOF
18894 cat >> confdefs.h <<\EOF
4f14bcd8 18895#define HAVE_INET_ATON 1
a0b9e27f 18896EOF
4f14bcd8 18897
10f2d63a 18898else
a0b9e27f
MB
18899 echo "$ac_t""no" 1>&6
18900 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
fe0895cf 18901echo "configure:18902: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18902ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18904 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18905else
a0b9e27f 18906 ac_save_LIBS="$LIBS"
4f14bcd8 18907LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18908cat > conftest.$ac_ext <<EOF
fe0895cf 18909#line 18910 "configure"
10f2d63a 18910#include "confdefs.h"
6232543b 18911/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18912/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18913 builtin and then its argument prototype would still apply. */
18914char inet_aton();
18915
18916int main() {
18917inet_aton()
18918; return 0; }
18919EOF
fe0895cf 18920if { (eval echo configure:18921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18921 rm -rf conftest*
18922 eval "ac_cv_lib_$ac_lib_var=yes"
18923else
18924 echo "configure: failed program was:" >&5
18925 cat conftest.$ac_ext >&5
18926 rm -rf conftest*
18927 eval "ac_cv_lib_$ac_lib_var=no"
18928fi
18929rm -f conftest*
18930LIBS="$ac_save_LIBS"
4f14bcd8 18931
10f2d63a 18932fi
a0b9e27f
MB
18933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18934 echo "$ac_t""yes" 1>&6
18935 cat >> confdefs.h <<\EOF
18936#define HAVE_INET_ATON 1
18937EOF
10f2d63a 18938
a0b9e27f
MB
18939else
18940 echo "$ac_t""no" 1>&6
18941fi
247f5006 18942
a0b9e27f 18943
10f2d63a 18944fi
4f14bcd8 18945done
10f2d63a 18946
8284b0c5 18947
4f14bcd8 18948if test "x$INET_LINK" != "x"; then
a0b9e27f 18949 cat >> confdefs.h <<\EOF
4f14bcd8 18950#define HAVE_INET_ADDR 1
a0b9e27f 18951EOF
4f14bcd8 18952
3d63bc3a 18953 INET_LINK=" -l$INET_LINK"
6232543b 18954fi
10f2d63a 18955
1e487827 18956fi
703e0a69 18957
8284b0c5 18958
a0b9e27f 18959cat > confcache <<\EOF
4f14bcd8
GD
18960# This file is a shell script that caches the results of configure
18961# tests run on this system so they can be shared between configure
a0b9e27f
MB
18962# scripts and configure runs. It is not useful on other systems.
18963# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18964#
a0b9e27f
MB
18965# By default, configure uses ./config.cache as the cache file,
18966# creating it if it does not exist already. You can give configure
18967# the --cache-file=FILE option to use a different cache file; that is
18968# what configure does when it calls configure scripts in
18969# subdirectories, so they share the cache.
18970# Giving --cache-file=/dev/null disables caching, for debugging configure.
18971# config.status only pays attention to the cache file if you give it the
18972# --recheck option to rerun configure.
4f14bcd8 18973#
a0b9e27f 18974EOF
4f14bcd8
GD
18975# The following way of writing the cache mishandles newlines in values,
18976# but we know of no workaround that is simple, portable, and efficient.
18977# So, don't put newlines in cache variables' values.
18978# Ultrix sh set writes to stderr and can't be redirected directly,
18979# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18980(set) 2>&1 |
18981 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18982 *ac_space=\ *)
18983 # `set' does not quote correctly, so add quotes (double-quote substitution
18984 # turns \\\\ into \\, and sed turns \\ into \).
18985 sed -n \
18986 -e "s/'/'\\\\''/g" \
18987 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18988 ;;
18989 *)
18990 # `set' quotes correctly as required by POSIX, so do not add quotes.
18991 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18992 ;;
18993 esac >> confcache
18994if cmp -s $cache_file confcache; then
18995 :
18996else
4f14bcd8 18997 if test -w $cache_file; then
a0b9e27f
MB
18998 echo "updating cache $cache_file"
18999 cat confcache > $cache_file
f6bcfd97 19000 else
4f14bcd8 19001 echo "not updating unwritable cache $cache_file"
f6bcfd97 19002 fi
4f14bcd8
GD
19003fi
19004rm -f confcache
f6bcfd97 19005
8284b0c5 19006
a0b9e27f 19007
009fead0 19008CPP_MT_FLAG=
4f14bcd8
GD
19009if test "$TOOLKIT" != "MSW"; then
19010
a0b9e27f 19011
7274f1c7 19012 THREADS_LINK=
009fead0 19013 THREADS_CFLAGS=
7274f1c7
RL
19014
19015 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 19016 if test "$USE_BEOS" = 1; then
a0b9e27f 19017 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
19018 wxUSE_THREADS="no"
19019 fi
4f14bcd8 19020 fi
4f14bcd8 19021
7274f1c7 19022 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
19023
19024
009fead0
VZ
19025 THREAD_OPTS="-pthread"
19026 case "${host}" in
19027 *-*-solaris2* | *-*-sunos4* )
19028 if test "x$GCC" = "xyes"; then
126be6b4 19029 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
19030 else
19031 THREAD_OPTS="-mt $THREAD_OPTS"
19032 fi
19033 ;;
19034 *-*-freebsd*)
19035 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
19036 ;;
17234b26
MB
19037 *-*-darwin* | *-*-cygwin* )
19038 THREAD_OPTS=""
4101db81 19039 ;;
8f4a9a10 19040 *-*-aix*)
009fead0
VZ
19041 THREAD_OPTS="pthreads"
19042 ;;
4f5a7f74
VZ
19043 *-hp-hpux* )
19044 if test "x$GCC" != "xyes"; then
19045 THREAD_OPTS=""
19046 fi
89e3b3e4
VZ
19047 ;;
19048
19049 *-*-irix* )
19050 if test "x$GCC" = "xyes"; then
19051 THREAD_OPTS=""
19052 fi
19053 ;;
19054
19055 *-*-*UnixWare*)
19056 if test "x$GCC" != "xyes"; then
19057 THREAD_OPTS="-Ethread"
19058 fi
19059 ;;
009fead0 19060 esac
4f14bcd8 19061
02a1dfba 19062 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 19063
009fead0
VZ
19064 THREADS_OK=no
19065 for flag in $THREAD_OPTS; do
19066 case $flag in
19067 none)
a0b9e27f 19068 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
fe0895cf 19069echo "configure:19070: checking whether pthreads work without any flags" >&5
009fead0 19070 ;;
698dcdb6 19071
009fead0 19072 -*)
a0b9e27f 19073 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
fe0895cf 19074echo "configure:19075: checking whether pthreads work with $flag" >&5
009fead0
VZ
19075 THREADS_CFLAGS="$flag"
19076 ;;
698dcdb6 19077
009fead0 19078 *)
a0b9e27f 19079 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
fe0895cf 19080echo "configure:19081: checking for the pthreads library -l$flag" >&5
009fead0
VZ
19081 THREADS_LINK="-l$flag"
19082 ;;
19083 esac
10f2d63a 19084
009fead0
VZ
19085 save_LIBS="$LIBS"
19086 save_CFLAGS="$CFLAGS"
19087 LIBS="$THREADS_LINK $LIBS"
04727afd 19088 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 19089
a0b9e27f 19090 cat > conftest.$ac_ext <<EOF
fe0895cf 19091#line 19092 "configure"
009fead0
VZ
19092#include "confdefs.h"
19093#include <pthread.h>
a0b9e27f 19094int main() {
009fead0 19095pthread_create(0,0,0,0);
a0b9e27f
MB
19096; return 0; }
19097EOF
fe0895cf 19098if { (eval echo configure:19099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 19099 rm -rf conftest*
009fead0 19100 THREADS_OK=yes
10f2d63a 19101else
a0b9e27f
MB
19102 echo "configure: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
6232543b 19104fi
a0b9e27f 19105rm -f conftest*
698dcdb6 19106
009fead0
VZ
19107 LIBS="$save_LIBS"
19108 CFLAGS="$save_CFLAGS"
d9b9876f 19109
a0b9e27f 19110 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
19111 if test "x$THREADS_OK" = "xyes"; then
19112 break;
19113 fi
d9b9876f 19114
009fead0
VZ
19115 THREADS_LINK=""
19116 THREADS_CFLAGS=""
19117 done
4f14bcd8 19118
009fead0
VZ
19119 if test "x$THREADS_OK" != "xyes"; then
19120 wxUSE_THREADS=no
a0b9e27f 19121 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 19122 else
db82f09e
VZ
19123 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19124 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 19125
a0b9e27f 19126 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
fe0895cf 19127echo "configure:19128: checking if more special flags are required for pthreads" >&5
009fead0
VZ
19128 flag=no
19129 case "${host}" in
2b5f62a0
VZ
19130 *-aix*)
19131 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19132 flag="-D_THREAD_SAFE"
19133 ;;
19134 *-freebsd*)
009fead0
VZ
19135 flag="-D_THREAD_SAFE"
19136 ;;
06313569
GD
19137 *-hp-hpux* )
19138 flag="-D_REENTRANT"
4f5a7f74
VZ
19139 if test "x$GCC" != "xyes"; then
19140 flag="$flag -D_RWSTD_MULTI_THREAD"
19141 fi
06313569 19142 ;;
009fead0
VZ
19143 *solaris* | alpha*-osf*)
19144 flag="-D_REENTRANT"
19145 ;;
19146 esac
a0b9e27f 19147 echo "$ac_t""${flag}" 1>&6
009fead0 19148 if test "x$flag" != xno; then
04727afd 19149 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
19150 fi
19151
009fead0 19152 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 19153 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
19154 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19155 fi
19156 fi
4f14bcd8 19157 fi
4f14bcd8 19158
7274f1c7 19159 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 19160 for ac_func in thr_setconcurrency
4f14bcd8 19161do
a0b9e27f 19162echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 19163echo "configure:19164: checking for $ac_func" >&5
a0b9e27f
MB
19164if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19165 echo $ac_n "(cached) $ac_c" 1>&6
19166else
19167 cat > conftest.$ac_ext <<EOF
fe0895cf 19168#line 19169 "configure"
d9b9876f 19169#include "confdefs.h"
4f14bcd8 19170/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19171 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
19172#include <assert.h>
19173/* Override any gcc2 internal prototype to avoid an error. */
19174/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19175 builtin and then its argument prototype would still apply. */
19176char $ac_func();
19177
19178int main() {
19179
4f14bcd8
GD
19180/* The GNU C library defines this for functions which it implements
19181 to always fail with ENOSYS. Some functions are actually named
19182 something starting with __ and the normal name is an alias. */
19183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19184choke me
19185#else
a0b9e27f 19186$ac_func();
4f14bcd8
GD
19187#endif
19188
a0b9e27f
MB
19189; return 0; }
19190EOF
fe0895cf 19191if { (eval echo configure:19192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19192 rm -rf conftest*
19193 eval "ac_cv_func_$ac_func=yes"
19194else
19195 echo "configure: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 rm -rf conftest*
19198 eval "ac_cv_func_$ac_func=no"
19199fi
19200rm -f conftest*
19201fi
698dcdb6 19202
a0b9e27f
MB
19203if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19204 echo "$ac_t""yes" 1>&6
19205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19206 cat >> confdefs.h <<EOF
19207#define $ac_tr_func 1
19208EOF
19209
19210else
19211 echo "$ac_t""no" 1>&6
10f2d63a 19212fi
4f14bcd8 19213done
10f2d63a 19214
8284b0c5 19215
a0b9e27f 19216 for ac_hdr in sched.h
4f14bcd8 19217do
a0b9e27f
MB
19218ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19219echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 19220echo "configure:19221: checking for $ac_hdr" >&5
a0b9e27f
MB
19221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19222 echo $ac_n "(cached) $ac_c" 1>&6
19223else
19224 cat > conftest.$ac_ext <<EOF
fe0895cf 19225#line 19226 "configure"
247f5006 19226#include "confdefs.h"
a0b9e27f
MB
19227#include <$ac_hdr>
19228EOF
19229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 19230{ (eval echo configure:19231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
19231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19232if test -z "$ac_err"; then
19233 rm -rf conftest*
19234 eval "ac_cv_header_$ac_safe=yes"
19235else
19236 echo "$ac_err" >&5
19237 echo "configure: failed program was:" >&5
4f14bcd8 19238 cat conftest.$ac_ext >&5
a0b9e27f
MB
19239 rm -rf conftest*
19240 eval "ac_cv_header_$ac_safe=no"
13111b2a 19241fi
a0b9e27f 19242rm -f conftest*
10f2d63a 19243fi
a0b9e27f
MB
19244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19245 echo "$ac_t""yes" 1>&6
19246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19247 cat >> confdefs.h <<EOF
19248#define $ac_tr_hdr 1
19249EOF
19250
19251else
19252 echo "$ac_t""no" 1>&6
f6bcfd97 19253fi
4f14bcd8 19254done
f6bcfd97 19255
009fead0 19256 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 19257 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
fe0895cf 19258echo "configure:19259: checking for sched_yield" >&5
a0b9e27f
MB
19259if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19260 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19261else
a0b9e27f 19262 cat > conftest.$ac_ext <<EOF
fe0895cf 19263#line 19264 "configure"
4f14bcd8 19264#include "confdefs.h"
009fead0 19265/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19266 which can conflict with char sched_yield(); below. */
009fead0 19267#include <assert.h>
4f14bcd8
GD
19268/* Override any gcc2 internal prototype to avoid an error. */
19269/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19270 builtin and then its argument prototype would still apply. */
19271char sched_yield();
19272
19273int main() {
19274
009fead0
VZ
19275/* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19279choke me
19280#else
a0b9e27f 19281sched_yield();
009fead0
VZ
19282#endif
19283
a0b9e27f
MB
19284; return 0; }
19285EOF
fe0895cf 19286if { (eval echo configure:19287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19287 rm -rf conftest*
19288 eval "ac_cv_func_sched_yield=yes"
19289else
19290 echo "configure: failed program was:" >&5
19291 cat conftest.$ac_ext >&5
19292 rm -rf conftest*
19293 eval "ac_cv_func_sched_yield=no"
19294fi
19295rm -f conftest*
19296fi
19297
19298if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19299 echo "$ac_t""yes" 1>&6
19300 cat >> confdefs.h <<\EOF
4f14bcd8 19301#define HAVE_SCHED_YIELD 1
a0b9e27f 19302EOF
10f2d63a 19303
4f14bcd8 19304else
a0b9e27f 19305 echo "$ac_t""no" 1>&6
009fead0 19306
a0b9e27f 19307 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
fe0895cf 19308echo "configure:19309: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
19309ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19311 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19312else
a0b9e27f 19313 ac_save_LIBS="$LIBS"
4f14bcd8 19314LIBS="-lposix4 $LIBS"
a0b9e27f 19315cat > conftest.$ac_ext <<EOF
fe0895cf 19316#line 19317 "configure"
4f14bcd8
GD
19317#include "confdefs.h"
19318/* Override any gcc2 internal prototype to avoid an error. */
19319/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19320 builtin and then its argument prototype would still apply. */
19321char sched_yield();
19322
19323int main() {
19324sched_yield()
19325; return 0; }
19326EOF
fe0895cf 19327if { (eval echo configure:19328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19328 rm -rf conftest*
19329 eval "ac_cv_lib_$ac_lib_var=yes"
19330else
19331 echo "configure: failed program was:" >&5
19332 cat conftest.$ac_ext >&5
19333 rm -rf conftest*
19334 eval "ac_cv_lib_$ac_lib_var=no"
19335fi
19336rm -f conftest*
19337LIBS="$ac_save_LIBS"
19338
19339fi
19340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19341 echo "$ac_t""yes" 1>&6
19342 cat >> confdefs.h <<\EOF
4f14bcd8 19343#define HAVE_SCHED_YIELD 1
a0b9e27f 19344EOF
3d63bc3a 19345 POSIX4_LINK=" -lposix4"
4f14bcd8 19346else
a0b9e27f
MB
19347 echo "$ac_t""no" 1>&6
19348echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19349
54276ccf
VZ
19350fi
19351
a0b9e27f
MB
19352
19353
4f14bcd8 19354fi
698dcdb6 19355
009fead0 19356 fi
10f2d63a 19357
7274f1c7 19358 HAVE_PRIOR_FUNCS=0
a0b9e27f 19359 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
fe0895cf 19360echo "configure:19361: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19361if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19362 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19363else
a0b9e27f 19364 cat > conftest.$ac_ext <<EOF
fe0895cf 19365#line 19366 "configure"
422107f9 19366#include "confdefs.h"
009fead0 19367/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19368 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19369#include <assert.h>
4f14bcd8
GD
19370/* Override any gcc2 internal prototype to avoid an error. */
19371/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19372 builtin and then its argument prototype would still apply. */
19373char pthread_attr_getschedpolicy();
19374
19375int main() {
19376
009fead0
VZ
19377/* The GNU C library defines this for functions which it implements
19378 to always fail with ENOSYS. Some functions are actually named
19379 something starting with __ and the normal name is an alias. */
19380#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19381choke me
19382#else
a0b9e27f 19383pthread_attr_getschedpolicy();
009fead0
VZ
19384#endif
19385
a0b9e27f
MB
19386; return 0; }
19387EOF
fe0895cf 19388if { (eval echo configure:19389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19389 rm -rf conftest*
19390 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19391else
19392 echo "configure: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19394 rm -rf conftest*
19395 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19396fi
19397rm -f conftest*
19398fi
19399
19400if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19401 echo "$ac_t""yes" 1>&6
19402 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
fe0895cf 19403echo "configure:19404: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19404if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19405 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19406else
a0b9e27f 19407 cat > conftest.$ac_ext <<EOF
fe0895cf 19408#line 19409 "configure"
a0b9e27f
MB
19409#include "confdefs.h"
19410/* System header to define __stub macros and hopefully few prototypes,
19411 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19412#include <assert.h>
422107f9
VZ
19413/* Override any gcc2 internal prototype to avoid an error. */
19414/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19415 builtin and then its argument prototype would still apply. */
19416char pthread_attr_setschedparam();
19417
19418int main() {
19419
009fead0
VZ
19420/* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19424choke me
19425#else
a0b9e27f 19426pthread_attr_setschedparam();
009fead0
VZ
19427#endif
19428
a0b9e27f
MB
19429; return 0; }
19430EOF
fe0895cf 19431if { (eval echo configure:19432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19432 rm -rf conftest*
19433 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19434else
19435 echo "configure: failed program was:" >&5
19436 cat conftest.$ac_ext >&5
19437 rm -rf conftest*
19438 eval "ac_cv_func_pthread_attr_setschedparam=no"
19439fi
19440rm -f conftest*
19441fi
19442
19443if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19444 echo "$ac_t""yes" 1>&6
19445 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
fe0895cf 19446echo "configure:19447: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19447if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19448 echo $ac_n "(cached) $ac_c" 1>&6
19449else
19450 cat > conftest.$ac_ext <<EOF
fe0895cf 19451#line 19452 "configure"
422107f9 19452#include "confdefs.h"
ef33c576
VZ
19453/* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char sched_get_priority_max(); below. */
009fead0 19455#include <assert.h>
4f14bcd8
GD
19456/* Override any gcc2 internal prototype to avoid an error. */
19457/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19458 builtin and then its argument prototype would still apply. */
19459char sched_get_priority_max();
19460
19461int main() {
19462
009fead0
VZ
19463/* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19467choke me
19468#else
a0b9e27f 19469sched_get_priority_max();
009fead0
VZ
19470#endif
19471
a0b9e27f
MB
19472; return 0; }
19473EOF
fe0895cf 19474if { (eval echo configure:19475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19475 rm -rf conftest*
19476 eval "ac_cv_func_sched_get_priority_max=yes"
19477else
19478 echo "configure: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 rm -rf conftest*
19481 eval "ac_cv_func_sched_get_priority_max=no"
19482fi
19483rm -f conftest*
19484fi
19485
19486if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19487 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19488 HAVE_PRIOR_FUNCS=1
19489else
a0b9e27f
MB
19490 echo "$ac_t""no" 1>&6
19491echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
fe0895cf 19492echo "configure:19493: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19493ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19495 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19496else
a0b9e27f 19497 ac_save_LIBS="$LIBS"
4f14bcd8 19498LIBS="-lposix4 $LIBS"
a0b9e27f 19499cat > conftest.$ac_ext <<EOF
fe0895cf 19500#line 19501 "configure"
422107f9
VZ
19501#include "confdefs.h"
19502/* Override any gcc2 internal prototype to avoid an error. */
19503/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19504 builtin and then its argument prototype would still apply. */
19505char sched_get_priority_max();
19506
19507int main() {
19508sched_get_priority_max()
19509; return 0; }
19510EOF
fe0895cf 19511if { (eval echo configure:19512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19512 rm -rf conftest*
19513 eval "ac_cv_lib_$ac_lib_var=yes"
19514else
19515 echo "configure: failed program was:" >&5
19516 cat conftest.$ac_ext >&5
19517 rm -rf conftest*
19518 eval "ac_cv_lib_$ac_lib_var=no"
19519fi
19520rm -f conftest*
19521LIBS="$ac_save_LIBS"
698dcdb6 19522
a0b9e27f
MB
19523fi
19524if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19525 echo "$ac_t""yes" 1>&6
19526
7274f1c7
RL
19527 HAVE_PRIOR_FUNCS=1
19528 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19529
19530else
19531 echo "$ac_t""no" 1>&6
4f14bcd8 19532fi
463abc64 19533
a0b9e27f 19534
328a083c 19535fi
463abc64 19536
a0b9e27f
MB
19537
19538else
19539 echo "$ac_t""no" 1>&6
7b4a847f 19540fi
579d8138 19541
a0b9e27f 19542
ef33c576
VZ
19543else
19544 echo "$ac_t""no" 1>&6
5c6fa7d2 19545fi
52127426 19546
8284b0c5 19547
7274f1c7 19548 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19549 cat >> confdefs.h <<\EOF
4f14bcd8 19550#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19551EOF
463abc64 19552
7274f1c7 19553 else
a0b9e27f 19554 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19555 fi
463abc64 19556
a0b9e27f 19557 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
fe0895cf 19558echo "configure:19559: checking for pthread_cancel" >&5
a0b9e27f
MB
19559if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19560 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19561else
a0b9e27f 19562 cat > conftest.$ac_ext <<EOF
fe0895cf 19563#line 19564 "configure"
422107f9 19564#include "confdefs.h"
009fead0 19565/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19566 which can conflict with char pthread_cancel(); below. */
009fead0 19567#include <assert.h>
422107f9
VZ
19568/* Override any gcc2 internal prototype to avoid an error. */
19569/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19570 builtin and then its argument prototype would still apply. */
19571char pthread_cancel();
19572
19573int main() {
19574
009fead0
VZ
19575/* The GNU C library defines this for functions which it implements
19576 to always fail with ENOSYS. Some functions are actually named
19577 something starting with __ and the normal name is an alias. */
19578#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19579choke me
19580#else
a0b9e27f 19581pthread_cancel();
009fead0
VZ
19582#endif
19583
a0b9e27f
MB
19584; return 0; }
19585EOF
fe0895cf 19586if { (eval echo configure:19587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19587 rm -rf conftest*
19588 eval "ac_cv_func_pthread_cancel=yes"
19589else
19590 echo "configure: failed program was:" >&5
19591 cat conftest.$ac_ext >&5
19592 rm -rf conftest*
19593 eval "ac_cv_func_pthread_cancel=no"
19594fi
19595rm -f conftest*
19596fi
19597
19598if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19599 echo "$ac_t""yes" 1>&6
19600 cat >> confdefs.h <<\EOF
4f14bcd8 19601#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19602EOF
4f14bcd8 19603
698dcdb6 19604else
a0b9e27f
MB
19605 echo "$ac_t""no" 1>&6
19606echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19607fi
19608
5c6fa7d2 19609
a0b9e27f 19610 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
fe0895cf 19611echo "configure:19612: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19612if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19613 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19614else
a0b9e27f
MB
19615
19616 cat > conftest.$ac_ext <<EOF
fe0895cf 19617#line 19618 "configure"
4f14bcd8
GD
19618#include "confdefs.h"
19619#include <pthread.h>
a0b9e27f 19620int main() {
4f14bcd8 19621
7274f1c7
RL
19622 pthread_cleanup_push(NULL, NULL);
19623 pthread_cleanup_pop(0);
a0b9e27f
MB
19624
19625; return 0; }
19626EOF
fe0895cf 19627if { (eval echo configure:19628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19628 rm -rf conftest*
19629
7274f1c7 19630 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19631
4f14bcd8 19632else
a0b9e27f
MB
19633 echo "configure: failed program was:" >&5
19634 cat conftest.$ac_ext >&5
19635 rm -rf conftest*
19636
7274f1c7 19637 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19638
5c6fa7d2 19639fi
a0b9e27f
MB
19640rm -f conftest*
19641
247f5006 19642fi
a0b9e27f
MB
19643
19644echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19645
7274f1c7 19646 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19647 cat >> confdefs.h <<\EOF
4f14bcd8 19648#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19649EOF
c7a2bf27 19650
7274f1c7 19651 fi
4f14bcd8 19652
a0b9e27f
MB
19653
19654 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
fe0895cf 19655echo "configure:19656: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19656if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19657 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19658else
a0b9e27f
MB
19659
19660 cat > conftest.$ac_ext <<EOF
fe0895cf 19661#line 19662 "configure"
0dcf9893 19662#include "confdefs.h"
4f14bcd8 19663#include <pthread.h>
a0b9e27f 19664int main() {
4f14bcd8 19665
7274f1c7
RL
19666 pthread_mutexattr_t attr;
19667 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19668
19669; return 0; }
19670EOF
fe0895cf 19671if { (eval echo configure:19672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19672 rm -rf conftest*
19673
7274f1c7 19674 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19675
3fed1840 19676else
a0b9e27f
MB
19677 echo "configure: failed program was:" >&5
19678 cat conftest.$ac_ext >&5
19679 rm -rf conftest*
19680
7274f1c7 19681 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19682
19683
5c6fa7d2 19684fi
a0b9e27f
MB
19685rm -f conftest*
19686
247f5006 19687fi
a0b9e27f
MB
19688
19689echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19690
7274f1c7 19691 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19692 cat >> confdefs.h <<\EOF
4f14bcd8 19693#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19694EOF
4f14bcd8 19695
7274f1c7 19696 else
a0b9e27f 19697 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
fe0895cf 19698echo "configure:19699: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19699if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19700 echo $ac_n "(cached) $ac_c" 1>&6
19701else
19702
19703 cat > conftest.$ac_ext <<EOF
fe0895cf 19704#line 19705 "configure"
3fed1840 19705#include "confdefs.h"
4f14bcd8 19706#include <pthread.h>
a0b9e27f 19707int main() {
4f14bcd8 19708
7274f1c7 19709 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19710
19711; return 0; }
19712EOF
fe0895cf 19713if { (eval echo configure:19714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19714 rm -rf conftest*
19715
7274f1c7 19716 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19717
698dcdb6 19718else
a0b9e27f
MB
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19721 rm -rf conftest*
19722
7274f1c7 19723 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19724
19725
5c6fa7d2 19726fi
a0b9e27f
MB
19727rm -f conftest*
19728
247f5006 19729fi
a0b9e27f
MB
19730
19731echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19732 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19733 cat >> confdefs.h <<\EOF
4f14bcd8 19734#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19735EOF
3fed1840 19736
7274f1c7 19737 else
a0b9e27f 19738 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19739 fi
19740 fi
7274f1c7 19741 fi
3fed1840 19742
a0b9e27f
MB
19743else
19744 if test "$wxUSE_THREADS" = "yes" ; then
19745 case "${host}" in
19746 *-*-mingw32* )
ca8e52b3 19747 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
fe0895cf 19748echo "configure:19749: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19749if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19750 echo $ac_n "(cached) $ac_c" 1>&6
19751else
19752
19753 CFLAGS_OLD="$CFLAGS"
19754 CFLAGS="$CFLAGS -mthreads"
19755 cat > conftest.$ac_ext <<EOF
fe0895cf 19756#line 19757 "configure"
ca8e52b3
VZ
19757#include "confdefs.h"
19758
19759int main() {
19760
19761; return 0; }
19762EOF
fe0895cf 19763if { (eval echo configure:19764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19764 rm -rf conftest*
19765 wx_cv_cflags_mthread=yes
19766else
19767 echo "configure: failed program was:" >&5
19768 cat conftest.$ac_ext >&5
19769 rm -rf conftest*
19770 wx_cv_cflags_mthread=no
19771
19772fi
19773rm -f conftest*
19774
19775
19776fi
19777
19778echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19779
19780 if test "$wx_cv_cflags_mthread" = "yes"; then
19781 CXXFLAGS="$CXXFLAGS -mthreads"
19782 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19783 LDFLAGS="$LDFLAGS -mthreads"
19784 else
19785 CFLAGS="$CFLAGS_OLD"
19786 fi
a0b9e27f
MB
19787 ;;
19788 esac
19789 fi
4f14bcd8
GD
19790fi
19791
19792if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19793 cat >> confdefs.h <<\EOF
4f14bcd8 19794#define wxUSE_THREADS 1
a0b9e27f 19795EOF
7b6058cd 19796
8284b0c5 19797
4f14bcd8 19798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19799else
4f14bcd8 19800 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19801 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
fe0895cf 19802echo "configure:19803: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19803 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19804 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19805 echo "$ac_t""yes" 1>&6
4f14bcd8 19806 else
a0b9e27f 19807 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19808 fi
19809 fi
19810fi
19811
19812if test "$WXGTK20" = 1 ; then
a0b9e27f 19813 cat >> confdefs.h <<EOF
4f14bcd8 19814#define __WXGTK20__ $WXGTK20
a0b9e27f 19815EOF
4f14bcd8
GD
19816
19817 WXGTK12=1
10f2d63a 19818fi
4f14bcd8
GD
19819
19820if test "$WXGTK12" = 1 ; then
a0b9e27f 19821 cat >> confdefs.h <<EOF
4f14bcd8 19822#define __WXGTK12__ $WXGTK12
a0b9e27f 19823EOF
4f14bcd8 19824
10f2d63a 19825fi
698dcdb6 19826
4f14bcd8 19827if test "$WXGTK127" = 1 ; then
a0b9e27f 19828 cat >> confdefs.h <<EOF
4f14bcd8 19829#define __WXGTK127__ $WXGTK127
a0b9e27f 19830EOF
4f14bcd8 19831
698dcdb6 19832fi
10f2d63a 19833
4f14bcd8
GD
19834WXDEBUG=
19835
19836if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19837 WXDEBUG="-g"
19838 wxUSE_OPTIMISE=no
698dcdb6 19839fi
4f14bcd8
GD
19840
19841if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19842 wxUSE_DEBUG_INFO=yes
19843 WXDEBUG="-ggdb"
10f2d63a
VZ
19844fi
19845
4f14bcd8 19846if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19847 cat >> confdefs.h <<\EOF
4f14bcd8 19848#define WXDEBUG 1
a0b9e27f 19849EOF
4f14bcd8
GD
19850
19851 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19852else
4f14bcd8
GD
19853 if test "$wxUSE_GTK" = 1 ; then
19854 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19855 fi
19856fi
19857
19858if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19859 cat >> confdefs.h <<\EOF
4f14bcd8 19860#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19861EOF
4f14bcd8 19862
a0b9e27f 19863 cat >> confdefs.h <<\EOF
4f14bcd8 19864#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19865EOF
4f14bcd8 19866
a0b9e27f 19867 cat >> confdefs.h <<\EOF
4f14bcd8 19868#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19869EOF
4f14bcd8
GD
19870
19871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19872fi
19873
19874if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19875 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19876fi
19877
19878PROFILE=
19879if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19880 PROFILE=" -pg"
10f2d63a
VZ
19881fi
19882
009fead0
VZ
19883CODE_GEN_FLAGS=
19884CODE_GEN_FLAGS_CXX=
88e30f2b 19885if test "$GCC" = "yes" ; then
4f14bcd8
GD
19886 if test "$wxUSE_NO_RTTI" = "yes" ; then
19887 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19888 fi
4f14bcd8
GD
19889 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19890 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19891 fi
19892 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19893 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19894 fi
4f14bcd8
GD
19895 if test "$USE_WIN32" = 1 ; then
19896 # I'm not even really sure what this was ever added to solve,
19897 # but someone added it for mingw native builds, so I guess
19898 # they had a reason, right??
19899 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19900 fi
1d1b75ac 19901
2b5f62a0 19902 case "${host}" in
1d1b75ac
VZ
19903 powerpc*-*-aix* )
19904 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19905 ;;
2b5f62a0
VZ
19906 *-hppa* )
19907 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19908 ;;
1d1b75ac 19909 esac
4f14bcd8
GD
19910fi
19911
af7b5345 19912OPTIMISE=
4f14bcd8 19913if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19914 if test "$GCC" = yes ; then
19915 OPTIMISE="-O0"
19916 fi
4f14bcd8
GD
19917else
19918 if test "$GCC" = yes ; then
19919 OPTIMISE="-O2"
af7b5345
VZ
19920
19921 case "${host}" in
4f14bcd8
GD
19922 i586-*-*|i686-*-* )
19923 OPTIMISE="${OPTIMISE} "
19924 ;;
19925 esac
19926 else
19927 OPTIMISE="-O"
19928 fi
19929fi
19930
8d90d2f2 19931
4f14bcd8 19932if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19933 cat >> confdefs.h <<\EOF
4f14bcd8 19934#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19935EOF
4f14bcd8 19936
8284b0c5 19937
4f14bcd8
GD
19938 WXWIN_COMPATIBILITY_2_2="yes"
19939fi
19940
65d8ef1e 19941if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19942 cat >> confdefs.h <<\EOF
4f14bcd8 19943#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19944EOF
4f14bcd8 19945
8d90d2f2
VZ
19946
19947 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19948fi
19949
65d8ef1e
VS
19950if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19951 cat >> confdefs.h <<\EOF
19952#define WXWIN_COMPATIBILITY_2_4 1
19953EOF
19954
19955fi
19956
8284b0c5 19957
10f2d63a 19958if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19959 cat >> confdefs.h <<\EOF
10f2d63a 19960#define wxUSE_GUI 1
a0b9e27f 19961EOF
10f2d63a 19962
8284b0c5 19963
10f2d63a 19964 else
a0b9e27f 19965 cat >> confdefs.h <<\EOF
10f2d63a 19966#define wxUSE_NOGUI 1
a0b9e27f 19967EOF
10f2d63a
VZ
19968
19969fi
19970
8284b0c5 19971
10f2d63a 19972if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19973 cat >> confdefs.h <<\EOF
10f2d63a 19974#define wxUSE_UNIX 1
a0b9e27f 19975EOF
10f2d63a
VZ
19976
19977fi
19978
8284b0c5 19979
10f2d63a 19980if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19981 cat >> confdefs.h <<\EOF
10f2d63a 19982#define wxUSE_APPLE_IEEE 1
a0b9e27f 19983EOF
10f2d63a
VZ
19984
19985fi
19986
1e6feb95 19987if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19988 cat >> confdefs.h <<\EOF
1e6feb95 19989#define wxUSE_TIMER 1
a0b9e27f 19990EOF
1e6feb95
VZ
19991
19992fi
19993
10f2d63a 19994if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19995 cat >> confdefs.h <<\EOF
10f2d63a 19996#define wxUSE_WAVE 1
a0b9e27f 19997EOF
10f2d63a
VZ
19998
19999fi
20000
1e6feb95 20001if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 20002 cat >> confdefs.h <<\EOF
1e6feb95 20003#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 20004EOF
1e6feb95
VZ
20005
20006fi
20007
20008if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 20009 cat >> confdefs.h <<\EOF
1e6feb95 20010#define wxUSE_STOPWATCH 1
a0b9e27f 20011EOF
1e6feb95
VZ
20012
20013fi
20014
20015if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 20016 cat >> confdefs.h <<\EOF
1e6feb95 20017#define wxUSE_DATETIME 1
a0b9e27f 20018EOF
1e6feb95
VZ
20019
20020fi
20021
10f2d63a 20022if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 20023 cat >> confdefs.h <<\EOF
10f2d63a 20024#define wxUSE_FILE 1
a0b9e27f 20025EOF
10f2d63a
VZ
20026
20027fi
20028
1e6feb95 20029if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 20030 cat >> confdefs.h <<\EOF
1e6feb95 20031#define wxUSE_FFILE 1
a0b9e27f 20032EOF
1e6feb95
VZ
20033
20034fi
20035
24528b0c 20036if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 20037 cat >> confdefs.h <<\EOF
24528b0c 20038#define wxUSE_FILESYSTEM 1
a0b9e27f 20039EOF
24528b0c
VS
20040
20041fi
20042
10f2d63a 20043if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 20044 cat >> confdefs.h <<\EOF
10f2d63a 20045#define wxUSE_FS_INET 1
a0b9e27f 20046EOF
10f2d63a
VZ
20047
20048fi
20049
20050if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 20051 cat >> confdefs.h <<\EOF
10f2d63a 20052#define wxUSE_FS_ZIP 1
a0b9e27f 20053EOF
10f2d63a
VZ
20054
20055fi
20056
20057if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 20058 cat >> confdefs.h <<\EOF
10f2d63a 20059#define wxUSE_ZIPSTREAM 1
a0b9e27f 20060EOF
10f2d63a
VZ
20061
20062fi
20063
eb4efbdc 20064if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 20065 cat >> confdefs.h <<\EOF
eb4efbdc 20066#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 20067EOF
eb4efbdc
VZ
20068
20069fi
20070
4f3c5f06 20071if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 20072 cat >> confdefs.h <<\EOF
4f3c5f06 20073#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 20074EOF
4f3c5f06
VZ
20075
20076fi
20077
10f2d63a 20078if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 20079 cat >> confdefs.h <<\EOF
10f2d63a 20080#define wxUSE_BUSYINFO 1
a0b9e27f 20081EOF
10f2d63a
VZ
20082
20083fi
20084
20085if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 20086 cat >> confdefs.h <<\EOF
10f2d63a 20087#define wxUSE_STD_IOSTREAM 1
a0b9e27f 20088EOF
10f2d63a
VZ
20089
20090fi
20091
a3a584a7 20092if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 20093 cat >> confdefs.h <<\EOF
a3a584a7 20094#define wxUSE_TEXTBUFFER 1
a0b9e27f 20095EOF
a3a584a7
VZ
20096
20097fi
20098
10f2d63a 20099if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 20100 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 20101 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 20102 else
a0b9e27f 20103 cat >> confdefs.h <<\EOF
10f2d63a 20104#define wxUSE_TEXTFILE 1
a0b9e27f 20105EOF
10f2d63a
VZ
20106
20107 fi
20108fi
20109
20110if test "$wxUSE_CONFIG" = "yes" ; then
20111 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 20112 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 20113 else
a0b9e27f 20114 cat >> confdefs.h <<\EOF
10f2d63a 20115#define wxUSE_CONFIG 1
a0b9e27f 20116EOF
10f2d63a
VZ
20117
20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20119 fi
20120fi
20121
20122if test "$wxUSE_INTL" = "yes" ; then
20123 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 20124 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 20125 else
a0b9e27f 20126 cat >> confdefs.h <<\EOF
10f2d63a 20127#define wxUSE_INTL 1
a0b9e27f 20128EOF
10f2d63a
VZ
20129
20130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 20131 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
20132 fi
20133fi
20134
20135if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 20136 cat >> confdefs.h <<\EOF
10f2d63a 20137#define wxUSE_LOG 1
a0b9e27f 20138EOF
10f2d63a 20139
8284b0c5 20140
d73be714 20141 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 20142 cat >> confdefs.h <<\EOF
d73be714 20143#define wxUSE_LOGGUI 1
a0b9e27f 20144EOF
d73be714
VZ
20145
20146 fi
20147
20148 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 20149 cat >> confdefs.h <<\EOF
d73be714 20150#define wxUSE_LOGWINDOW 1
a0b9e27f 20151EOF
69d27ff7
MB
20152
20153 fi
20154
20155 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 20156 cat >> confdefs.h <<\EOF
69d27ff7 20157#define wxUSE_LOG_DIALOG 1
a0b9e27f 20158EOF
d73be714
VZ
20159
20160 fi
10f2d63a
VZ
20161fi
20162
20163if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 20164 cat >> confdefs.h <<\EOF
10f2d63a 20165#define wxUSE_LONGLONG 1
a0b9e27f 20166EOF
10f2d63a
VZ
20167
20168fi
20169
e8f65ba6 20170if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 20171 cat >> confdefs.h <<\EOF
e8f65ba6 20172#define wxUSE_GEOMETRY 1
a0b9e27f 20173EOF
e8f65ba6
RR
20174
20175fi
20176
10f2d63a 20177if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 20178 cat >> confdefs.h <<\EOF
10f2d63a 20179#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 20180EOF
10f2d63a 20181
70f7a477 20182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
20183fi
20184
20185if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 20186 cat >> confdefs.h <<\EOF
10f2d63a 20187#define wxUSE_STREAMS 1
a0b9e27f 20188EOF
10f2d63a
VZ
20189
20190fi
20191
5c6fa7d2 20192
8284b0c5 20193if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 20194 for ac_func in strptime
83307f33 20195do
a0b9e27f 20196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 20197echo "configure:20198: checking for $ac_func" >&5
a0b9e27f
MB
20198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20199 echo $ac_n "(cached) $ac_c" 1>&6
20200else
20201 cat > conftest.$ac_ext <<EOF
fe0895cf 20202#line 20203 "configure"
83307f33
VZ
20203#include "confdefs.h"
20204/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20205 which can conflict with char $ac_func(); below. */
83307f33
VZ
20206#include <assert.h>
20207/* Override any gcc2 internal prototype to avoid an error. */
20208/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20209 builtin and then its argument prototype would still apply. */
20210char $ac_func();
20211
20212int main() {
20213
83307f33
VZ
20214/* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20218choke me
20219#else
a0b9e27f 20220$ac_func();
83307f33
VZ
20221#endif
20222
a0b9e27f
MB
20223; return 0; }
20224EOF
fe0895cf 20225if { (eval echo configure:20226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20226 rm -rf conftest*
20227 eval "ac_cv_func_$ac_func=yes"
20228else
20229 echo "configure: failed program was:" >&5
20230 cat conftest.$ac_ext >&5
20231 rm -rf conftest*
20232 eval "ac_cv_func_$ac_func=no"
20233fi
20234rm -f conftest*
20235fi
83307f33 20236
a0b9e27f
MB
20237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20238 echo "$ac_t""yes" 1>&6
20239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20240 cat >> confdefs.h <<EOF
20241#define $ac_tr_func 1
20242EOF
20243
20244else
20245 echo "$ac_t""no" 1>&6
83307f33
VZ
20246fi
20247done
20248
5c6fa7d2 20249
a0b9e27f 20250 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
fe0895cf 20251echo "configure:20252: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
20252if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20253 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 20254else
a0b9e27f
MB
20255
20256 cat > conftest.$ac_ext <<EOF
fe0895cf 20257#line 20258 "configure"
360d6699
VZ
20258#include "confdefs.h"
20259
b4085ce6 20260 #include <time.h>
a0b9e27f
MB
20261
20262int main() {
360d6699
VZ
20263
20264 int tz;
4f11a343 20265 tz = timezone;
a0b9e27f
MB
20266
20267; return 0; }
20268EOF
fe0895cf 20269if { (eval echo configure:20270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20270 rm -rf conftest*
20271
4f11a343 20272 wx_cv_var_timezone=timezone
a0b9e27f 20273
360d6699 20274else
a0b9e27f
MB
20275 echo "configure: failed program was:" >&5
20276 cat conftest.$ac_ext >&5
20277 rm -rf conftest*
20278
20279 cat > conftest.$ac_ext <<EOF
fe0895cf 20280#line 20281 "configure"
360d6699
VZ
20281#include "confdefs.h"
20282
b4085ce6 20283 #include <time.h>
a0b9e27f
MB
20284
20285int main() {
360d6699
VZ
20286
20287 int tz;
20288 tz = _timezone;
a0b9e27f
MB
20289
20290; return 0; }
20291EOF
fe0895cf 20292if { (eval echo configure:20293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20293 rm -rf conftest*
20294
360d6699 20295 wx_cv_var_timezone=_timezone
a0b9e27f 20296
5357c8e8 20297else
a0b9e27f
MB
20298 echo "configure: failed program was:" >&5
20299 cat conftest.$ac_ext >&5
20300 rm -rf conftest*
20301
20302 cat > conftest.$ac_ext <<EOF
fe0895cf 20303#line 20304 "configure"
5357c8e8
VZ
20304#include "confdefs.h"
20305
b4085ce6 20306 #include <time.h>
a0b9e27f
MB
20307
20308int main() {
5357c8e8
VZ
20309
20310 int tz;
4f11a343 20311 tz = __timezone;
a0b9e27f
MB
20312
20313; return 0; }
20314EOF
fe0895cf 20315if { (eval echo configure:20316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20316 rm -rf conftest*
20317
4f11a343 20318 wx_cv_var_timezone=__timezone
a0b9e27f 20319
360d6699 20320else
a0b9e27f
MB
20321 echo "configure: failed program was:" >&5
20322 cat conftest.$ac_ext >&5
20323 rm -rf conftest*
20324
f9bc1684 20325 if test "$USE_DOS" = 0 ; then
a0b9e27f 20326 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 20327 fi
a0b9e27f
MB
20328
20329
328a083c 20330fi
a0b9e27f
MB
20331rm -f conftest*
20332
20333
7b4a847f 20334fi
a0b9e27f
MB
20335rm -f conftest*
20336
20337
5c6fa7d2 20338fi
a0b9e27f
MB
20339rm -f conftest*
20340
20341
247f5006 20342fi
a0b9e27f
MB
20343
20344echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 20345
f9bc1684 20346 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 20347 cat >> confdefs.h <<EOF
360d6699 20348#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20349EOF
360d6699 20350
f9bc1684 20351 fi
698dcdb6 20352
a0b9e27f 20353 for ac_func in localtime
afc31813 20354do
a0b9e27f 20355echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 20356echo "configure:20357: checking for $ac_func" >&5
a0b9e27f
MB
20357if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20358 echo $ac_n "(cached) $ac_c" 1>&6
20359else
20360 cat > conftest.$ac_ext <<EOF
fe0895cf 20361#line 20362 "configure"
10f2d63a 20362#include "confdefs.h"
afc31813 20363/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20364 which can conflict with char $ac_func(); below. */
afc31813
VZ
20365#include <assert.h>
20366/* Override any gcc2 internal prototype to avoid an error. */
20367/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20368 builtin and then its argument prototype would still apply. */
20369char $ac_func();
20370
20371int main() {
20372
afc31813
VZ
20373/* The GNU C library defines this for functions which it implements
20374 to always fail with ENOSYS. Some functions are actually named
20375 something starting with __ and the normal name is an alias. */
20376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20377choke me
20378#else
a0b9e27f 20379$ac_func();
afc31813
VZ
20380#endif
20381
a0b9e27f
MB
20382; return 0; }
20383EOF
fe0895cf 20384if { (eval echo configure:20385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20385 rm -rf conftest*
20386 eval "ac_cv_func_$ac_func=yes"
20387else
20388 echo "configure: failed program was:" >&5
20389 cat conftest.$ac_ext >&5
20390 rm -rf conftest*
20391 eval "ac_cv_func_$ac_func=no"
20392fi
20393rm -f conftest*
20394fi
afc31813 20395
a0b9e27f
MB
20396if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20397 echo "$ac_t""yes" 1>&6
20398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20399 cat >> confdefs.h <<EOF
20400#define $ac_tr_func 1
20401EOF
20402
20403else
20404 echo "$ac_t""no" 1>&6
afc31813
VZ
20405fi
20406done
20407
5c6fa7d2 20408
8284b0c5 20409 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20410 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
fe0895cf 20411echo "configure:20412: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20412if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20413 echo $ac_n "(cached) $ac_c" 1>&6
20414else
20415
20416 cat > conftest.$ac_ext <<EOF
fe0895cf 20417#line 20418 "configure"
0470b1e6
VZ
20418#include "confdefs.h"
20419
b4085ce6 20420 #include <time.h>
a0b9e27f
MB
20421
20422int main() {
0470b1e6
VZ
20423
20424 struct tm tm;
20425 tm.tm_gmtoff++;
a0b9e27f
MB
20426
20427; return 0; }
20428EOF
fe0895cf 20429if { (eval echo configure:20430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20430 rm -rf conftest*
20431
f03a98d8 20432 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20433
0470b1e6 20434else
a0b9e27f
MB
20435 echo "configure: failed program was:" >&5
20436 cat conftest.$ac_ext >&5
20437 rm -rf conftest*
20438 wx_cv_struct_tm_has_gmtoff=no
20439
5c6fa7d2 20440fi
a0b9e27f
MB
20441rm -f conftest*
20442
247f5006 20443fi
a0b9e27f
MB
20444
20445echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20446 fi
20447
20448 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20449 cat >> confdefs.h <<\EOF
6232543b 20450#define WX_GMTOFF_IN_TM 1
a0b9e27f 20451EOF
0470b1e6 20452
3fcdd07b
VZ
20453 fi
20454
a0b9e27f 20455 for ac_func in gettimeofday ftime
3fcdd07b 20456do
a0b9e27f 20457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 20458echo "configure:20459: checking for $ac_func" >&5
a0b9e27f
MB
20459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20460 echo $ac_n "(cached) $ac_c" 1>&6
20461else
20462 cat > conftest.$ac_ext <<EOF
fe0895cf 20463#line 20464 "configure"
3fcdd07b
VZ
20464#include "confdefs.h"
20465/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20466 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20467#include <assert.h>
20468/* Override any gcc2 internal prototype to avoid an error. */
20469/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20470 builtin and then its argument prototype would still apply. */
20471char $ac_func();
20472
20473int main() {
20474
3fcdd07b
VZ
20475/* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20479choke me
20480#else
a0b9e27f 20481$ac_func();
3fcdd07b
VZ
20482#endif
20483
a0b9e27f
MB
20484; return 0; }
20485EOF
fe0895cf 20486if { (eval echo configure:20487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20487 rm -rf conftest*
20488 eval "ac_cv_func_$ac_func=yes"
20489else
20490 echo "configure: failed program was:" >&5
20491 cat conftest.$ac_ext >&5
20492 rm -rf conftest*
20493 eval "ac_cv_func_$ac_func=no"
20494fi
20495rm -f conftest*
20496fi
20497
20498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20499 echo "$ac_t""yes" 1>&6
20500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20501 cat >> confdefs.h <<EOF
20502#define $ac_tr_func 1
20503EOF
3fcdd07b 20504 break
a0b9e27f
MB
20505else
20506 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20507fi
20508done
20509
698dcdb6 20510
8284b0c5 20511 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20512 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
fe0895cf 20513echo "configure:20514: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20514if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20516else
20517
20518
20519 ac_ext=C
20520# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20521ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20522ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20523ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20524cross_compiling=$ac_cv_prog_cxx_cross
52127426 20525
8284b0c5 20526
a0b9e27f 20527 cat > conftest.$ac_ext <<EOF
fe0895cf 20528#line 20529 "configure"
10f2d63a 20529#include "confdefs.h"
afc31813
VZ
20530
20531 #include <sys/time.h>
20532 #include <unistd.h>
a0b9e27f
MB
20533
20534int main() {
afc31813
VZ
20535
20536 struct timeval tv;
776862b4 20537 gettimeofday(&tv, NULL);
a0b9e27f
MB
20538
20539; return 0; }
20540EOF
fe0895cf 20541if { (eval echo configure:20542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20542 rm -rf conftest*
afc31813 20543 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20544else
a0b9e27f
MB
20545 echo "configure: failed program was:" >&5
20546 cat conftest.$ac_ext >&5
20547 rm -rf conftest*
20548 cat > conftest.$ac_ext <<EOF
fe0895cf 20549#line 20550 "configure"
10f2d63a 20550#include "confdefs.h"
afc31813
VZ
20551
20552 #include <sys/time.h>
20553 #include <unistd.h>
a0b9e27f
MB
20554
20555int main() {
afc31813
VZ
20556
20557 struct timeval tv;
20558 gettimeofday(&tv);
a0b9e27f
MB
20559
20560; return 0; }
20561EOF
fe0895cf 20562if { (eval echo configure:20563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20563 rm -rf conftest*
afc31813 20564 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20565else
a0b9e27f
MB
20566 echo "configure: failed program was:" >&5
20567 cat conftest.$ac_ext >&5
20568 rm -rf conftest*
20569
20570 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20571 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20572
20573
10f2d63a 20574fi
a0b9e27f
MB
20575rm -f conftest*
20576
10f2d63a 20577fi
a0b9e27f 20578rm -f conftest*
afc31813 20579 ac_ext=c
a0b9e27f 20580# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20581ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20582ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20583ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20584cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20585
a0b9e27f 20586
247f5006 20587fi
a0b9e27f
MB
20588
20589echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20590
afc31813 20591 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20592 cat >> confdefs.h <<\EOF
afc31813 20593#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20594EOF
afc31813
VZ
20595
20596 fi
20597 fi
20598
afc31813
VZ
20599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20600fi
20601
8284b0c5 20602
52127426 20603if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20604 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20605 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20606 wxUSE_SOCKETS="no"
20607 fi
0feee163 20608fi
b089607b 20609
0feee163
VZ
20610if test "$wxUSE_SOCKETS" = "yes"; then
20611 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20612 echo $ac_n "checking for socket""... $ac_c" 1>&6
fe0895cf 20613echo "configure:20614: checking for socket" >&5
a0b9e27f
MB
20614if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20615 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20616else
a0b9e27f 20617 cat > conftest.$ac_ext <<EOF
fe0895cf 20618#line 20619 "configure"
c63c7106
VZ
20619#include "confdefs.h"
20620/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20621 which can conflict with char socket(); below. */
c63c7106
VZ
20622#include <assert.h>
20623/* Override any gcc2 internal prototype to avoid an error. */
20624/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20625 builtin and then its argument prototype would still apply. */
20626char socket();
20627
20628int main() {
20629
c63c7106
VZ
20630/* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633#if defined (__stub_socket) || defined (__stub___socket)
20634choke me
20635#else
a0b9e27f 20636socket();
c63c7106
VZ
20637#endif
20638
a0b9e27f
MB
20639; return 0; }
20640EOF
fe0895cf 20641if { (eval echo configure:20642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20642 rm -rf conftest*
20643 eval "ac_cv_func_socket=yes"
20644else
20645 echo "configure: failed program was:" >&5
20646 cat conftest.$ac_ext >&5
20647 rm -rf conftest*
20648 eval "ac_cv_func_socket=no"
20649fi
20650rm -f conftest*
20651fi
20652
20653if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20654 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20655 :
20656else
a0b9e27f
MB
20657 echo "$ac_t""no" 1>&6
20658echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
fe0895cf 20659echo "configure:20660: checking for socket in -lsocket" >&5
a0b9e27f
MB
20660ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20662 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20663else
a0b9e27f 20664 ac_save_LIBS="$LIBS"
c63c7106 20665LIBS="-lsocket $LIBS"
a0b9e27f 20666cat > conftest.$ac_ext <<EOF
fe0895cf 20667#line 20668 "configure"
c63c7106
VZ
20668#include "confdefs.h"
20669/* Override any gcc2 internal prototype to avoid an error. */
20670/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20671 builtin and then its argument prototype would still apply. */
20672char socket();
20673
20674int main() {
20675socket()
20676; return 0; }
20677EOF
fe0895cf 20678if { (eval echo configure:20679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20679 rm -rf conftest*
20680 eval "ac_cv_lib_$ac_lib_var=yes"
20681else
20682 echo "configure: failed program was:" >&5
20683 cat conftest.$ac_ext >&5
20684 rm -rf conftest*
20685 eval "ac_cv_lib_$ac_lib_var=no"
20686fi
20687rm -f conftest*
20688LIBS="$ac_save_LIBS"
20689
20690fi
20691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20692 echo "$ac_t""yes" 1>&6
d558c907
VS
20693 if test "$INET_LINK" != " -lsocket"; then
20694 INET_LINK="$INET_LINK -lsocket"
20695 fi
c63c7106 20696else
a0b9e27f 20697 echo "$ac_t""no" 1>&6
afc31813 20698
a0b9e27f 20699 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20700 wxUSE_SOCKETS=no
a0b9e27f
MB
20701
20702
6232543b 20703fi
b089607b 20704
a0b9e27f 20705
1e487827 20706fi
afc31813 20707
3a922bb4 20708 fi
0feee163 20709fi
51a9faba 20710
0feee163
VZ
20711if test "$wxUSE_SOCKETS" = "yes" ; then
20712 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20713 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
fe0895cf 20714echo "configure:20715: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20715if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20716 echo $ac_n "(cached) $ac_c" 1>&6
20717else
20718
a0b9e27f 20719 cat > conftest.$ac_ext <<EOF
fe0895cf 20720#line 20721 "configure"
afc31813 20721#include "confdefs.h"
51a9faba 20722
3a922bb4
RL
20723 #include <sys/types.h>
20724 #include <sys/socket.h>
a0b9e27f
MB
20725
20726int main() {
51a9faba 20727
3a922bb4
RL
20728 socklen_t len;
20729 getsockname(0, 0, &len);
a0b9e27f
MB
20730
20731; return 0; }
20732EOF
fe0895cf 20733if { (eval echo configure:20734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20734 rm -rf conftest*
51a9faba 20735 wx_cv_type_getsockname3=socklen_t
afc31813 20736else
a0b9e27f
MB
20737 echo "configure: failed program was:" >&5
20738 cat conftest.$ac_ext >&5
20739 rm -rf conftest*
9711d31e
GD
20740
20741 CFLAGS_OLD="$CFLAGS"
20742 if test "$GCC" = yes ; then
20743 CFLAGS="$CFLAGS -Werror"
20744 fi
20745
20746 cat > conftest.$ac_ext <<EOF
fe0895cf 20747#line 20748 "configure"
afc31813 20748#include "confdefs.h"
51a9faba 20749
9711d31e
GD
20750 #include <sys/types.h>
20751 #include <sys/socket.h>
20752
a0b9e27f 20753int main() {
51a9faba 20754
9711d31e
GD
20755 size_t len;
20756 getsockname(0, 0, &len);
20757
a0b9e27f
MB
20758; return 0; }
20759EOF
fe0895cf 20760if { (eval echo configure:20761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20761 rm -rf conftest*
51a9faba 20762 wx_cv_type_getsockname3=size_t
afc31813 20763else
a0b9e27f
MB
20764 echo "configure: failed program was:" >&5
20765 cat conftest.$ac_ext >&5
20766 rm -rf conftest*
20767 cat > conftest.$ac_ext <<EOF
fe0895cf 20768#line 20769 "configure"
afc31813 20769#include "confdefs.h"
51a9faba 20770
9711d31e
GD
20771 #include <sys/types.h>
20772 #include <sys/socket.h>
20773
a0b9e27f 20774int main() {
51a9faba 20775
9711d31e
GD
20776 int len;
20777 getsockname(0, 0, &len);
20778
a0b9e27f
MB
20779; return 0; }
20780EOF
fe0895cf 20781if { (eval echo configure:20782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20782 rm -rf conftest*
51a9faba 20783 wx_cv_type_getsockname3=int
afc31813 20784else
a0b9e27f
MB
20785 echo "configure: failed program was:" >&5
20786 cat conftest.$ac_ext >&5
20787 rm -rf conftest*
20788 wx_cv_type_getsockname3=unknown
9711d31e 20789
afc31813 20790fi
a0b9e27f 20791rm -f conftest*
9711d31e 20792
afc31813 20793fi
a0b9e27f 20794rm -f conftest*
9711d31e
GD
20795
20796 CFLAGS="$CFLAGS_OLD"
20797
a0b9e27f 20798
afc31813 20799fi
a0b9e27f 20800rm -f conftest*
a0b9e27f 20801
247f5006 20802fi
a0b9e27f
MB
20803
20804echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20805
3a922bb4
RL
20806 if test "$wx_cv_type_getsockname3" = "unknown"; then
20807 wxUSE_SOCKETS=no
a0b9e27f 20808 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20809 else
a0b9e27f 20810 cat >> confdefs.h <<EOF
51a9faba 20811#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20812EOF
51a9faba 20813
3a922bb4 20814 fi
51a9faba
VZ
20815 fi
20816fi
afc31813 20817
51a9faba 20818if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20819 cat >> confdefs.h <<\EOF
afc31813 20820#define wxUSE_SOCKETS 1
a0b9e27f 20821EOF
afc31813 20822
70f7a477 20823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20824fi
20825
8284b0c5 20826
dc3d889d
VZ
20827if test "$wxUSE_GUI" = "yes"; then
20828
ac0c4cc3 20829 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20830 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20831 wxUSE_JOYSTICK=no
20832 fi
20833 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20834 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20835 wxUSE_JOYSTICK=no
f79bd02d
JS
20836 fi
20837 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20838 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20839 wxUSE_JOYSTICK=no
156b2523
GD
20840 fi
20841
3a922bb4
RL
20842 if test "$TOOLKIT" != "MSW"; then
20843 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20844 for ac_hdr in linux/joystick.h
10f2d63a 20845do
a0b9e27f
MB
20846ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20847echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 20848echo "configure:20849: checking for $ac_hdr" >&5
a0b9e27f
MB
20849if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20850 echo $ac_n "(cached) $ac_c" 1>&6
20851else
20852 cat > conftest.$ac_ext <<EOF
fe0895cf 20853#line 20854 "configure"
247f5006 20854#include "confdefs.h"
a0b9e27f
MB
20855#include <$ac_hdr>
20856EOF
20857ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 20858{ (eval echo configure:20859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20859ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20860if test -z "$ac_err"; then
20861 rm -rf conftest*
20862 eval "ac_cv_header_$ac_safe=yes"
20863else
20864 echo "$ac_err" >&5
20865 echo "configure: failed program was:" >&5
247f5006 20866 cat conftest.$ac_ext >&5
a0b9e27f
MB
20867 rm -rf conftest*
20868 eval "ac_cv_header_$ac_safe=no"
247f5006 20869fi
a0b9e27f 20870rm -f conftest*
10f2d63a 20871fi
a0b9e27f
MB
20872if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20873 echo "$ac_t""yes" 1>&6
20874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20875 cat >> confdefs.h <<EOF
20876#define $ac_tr_hdr 1
20877EOF
20878
20879else
20880 echo "$ac_t""no" 1>&6
247f5006 20881fi
10f2d63a
VZ
20882done
20883
3a922bb4
RL
20884 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20885 wxUSE_JOYSTICK=no
a0b9e27f 20886 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20887 fi
20888 fi
20889 fi
b089607b 20890
3a922bb4 20891 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20892 cat >> confdefs.h <<\EOF
10f2d63a 20893#define wxUSE_JOYSTICK 1
a0b9e27f 20894EOF
10f2d63a 20895
3a922bb4
RL
20896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20897 fi
dc3d889d
VZ
20898fi
20899
8284b0c5 20900
b089607b
VZ
20901if test "$TOOLKIT" != "MSW"; then
20902
3a922bb4
RL
20903 HAVE_DL_FUNCS=0
20904 HAVE_SHL_FUNCS=0
0b9ab0bd 20905 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20906 if test "$USE_DARWIN" = 1; then
20907 HAVE_DL_FUNCS=1
20908 else
a0b9e27f 20909 for ac_func in dlopen
10f2d63a 20910do
a0b9e27f 20911echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 20912echo "configure:20913: checking for $ac_func" >&5
a0b9e27f
MB
20913if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20914 echo $ac_n "(cached) $ac_c" 1>&6
20915else
20916 cat > conftest.$ac_ext <<EOF
fe0895cf 20917#line 20918 "configure"
10f2d63a
VZ
20918#include "confdefs.h"
20919/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20920 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20921#include <assert.h>
20922/* Override any gcc2 internal prototype to avoid an error. */
20923/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20924 builtin and then its argument prototype would still apply. */
20925char $ac_func();
20926
20927int main() {
20928
10f2d63a
VZ
20929/* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20933choke me
20934#else
a0b9e27f 20935$ac_func();
10f2d63a
VZ
20936#endif
20937
a0b9e27f
MB
20938; return 0; }
20939EOF
fe0895cf 20940if { (eval echo configure:20941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20941 rm -rf conftest*
20942 eval "ac_cv_func_$ac_func=yes"
20943else
20944 echo "configure: failed program was:" >&5
20945 cat conftest.$ac_ext >&5
20946 rm -rf conftest*
20947 eval "ac_cv_func_$ac_func=no"
20948fi
20949rm -f conftest*
20950fi
20951
20952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20953 echo "$ac_t""yes" 1>&6
20954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20955 cat >> confdefs.h <<EOF
20956#define $ac_tr_func 1
20957EOF
20958
20959 cat >> confdefs.h <<\EOF
10f2d63a 20960#define HAVE_DLOPEN 1
a0b9e27f 20961EOF
10f2d63a 20962
3a922bb4 20963 HAVE_DL_FUNCS=1
a0b9e27f 20964
10f2d63a 20965else
a0b9e27f
MB
20966 echo "$ac_t""no" 1>&6
20967echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
fe0895cf 20968echo "configure:20969: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20969ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20972else
a0b9e27f 20973 ac_save_LIBS="$LIBS"
10f2d63a 20974LIBS="-ldl $LIBS"
a0b9e27f 20975cat > conftest.$ac_ext <<EOF
fe0895cf 20976#line 20977 "configure"
10f2d63a
VZ
20977#include "confdefs.h"
20978/* Override any gcc2 internal prototype to avoid an error. */
20979/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20980 builtin and then its argument prototype would still apply. */
20981char dlopen();
20982
20983int main() {
20984dlopen()
20985; return 0; }
20986EOF
fe0895cf 20987if { (eval echo configure:20988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20988 rm -rf conftest*
20989 eval "ac_cv_lib_$ac_lib_var=yes"
20990else
20991 echo "configure: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20993 rm -rf conftest*
20994 eval "ac_cv_lib_$ac_lib_var=no"
20995fi
20996rm -f conftest*
20997LIBS="$ac_save_LIBS"
20998
20999fi
21000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21001 echo "$ac_t""yes" 1>&6
21002
21003 cat >> confdefs.h <<\EOF
10f2d63a 21004#define HAVE_DLOPEN 1
a0b9e27f 21005EOF
10f2d63a 21006
3a922bb4 21007 HAVE_DL_FUNCS=1
3d63bc3a 21008 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 21009
10f2d63a 21010else
a0b9e27f 21011 echo "$ac_t""no" 1>&6
10f2d63a 21012
a0b9e27f 21013 for ac_func in shl_load
10f2d63a 21014do
a0b9e27f 21015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 21016echo "configure:21017: checking for $ac_func" >&5
a0b9e27f
MB
21017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21018 echo $ac_n "(cached) $ac_c" 1>&6
21019else
21020 cat > conftest.$ac_ext <<EOF
fe0895cf 21021#line 21022 "configure"
10f2d63a
VZ
21022#include "confdefs.h"
21023/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 21024 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
21025#include <assert.h>
21026/* Override any gcc2 internal prototype to avoid an error. */
21027/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21028 builtin and then its argument prototype would still apply. */
21029char $ac_func();
21030
21031int main() {
21032
10f2d63a
VZ
21033/* The GNU C library defines this for functions which it implements
21034 to always fail with ENOSYS. Some functions are actually named
21035 something starting with __ and the normal name is an alias. */
21036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21037choke me
21038#else
a0b9e27f 21039$ac_func();
10f2d63a
VZ
21040#endif
21041
a0b9e27f
MB
21042; return 0; }
21043EOF
fe0895cf 21044if { (eval echo configure:21045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21045 rm -rf conftest*
21046 eval "ac_cv_func_$ac_func=yes"
21047else
21048 echo "configure: failed program was:" >&5
21049 cat conftest.$ac_ext >&5
21050 rm -rf conftest*
21051 eval "ac_cv_func_$ac_func=no"
21052fi
21053rm -f conftest*
21054fi
21055
21056if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21057 echo "$ac_t""yes" 1>&6
21058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21059 cat >> confdefs.h <<EOF
21060#define $ac_tr_func 1
21061EOF
21062
21063 cat >> confdefs.h <<\EOF
10f2d63a 21064#define HAVE_SHL_LOAD 1
a0b9e27f 21065EOF
10f2d63a 21066
3a922bb4 21067 HAVE_SHL_FUNCS=1
a0b9e27f 21068
10f2d63a 21069else
a0b9e27f
MB
21070 echo "$ac_t""no" 1>&6
21071echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
fe0895cf 21072echo "configure:21073: checking for dld in -lshl_load" >&5
a0b9e27f
MB
21073ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
21074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21075 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 21076else
a0b9e27f 21077 ac_save_LIBS="$LIBS"
f6bcfd97 21078LIBS="-lshl_load $LIBS"
a0b9e27f 21079cat > conftest.$ac_ext <<EOF
fe0895cf 21080#line 21081 "configure"
f6bcfd97 21081#include "confdefs.h"
8284b0c5 21082/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 21083/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21084 builtin and then its argument prototype would still apply. */
21085char dld();
21086
21087int main() {
21088dld()
21089; return 0; }
21090EOF
fe0895cf 21091if { (eval echo configure:21092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21092 rm -rf conftest*
21093 eval "ac_cv_lib_$ac_lib_var=yes"
21094else
21095 echo "configure: failed program was:" >&5
21096 cat conftest.$ac_ext >&5
21097 rm -rf conftest*
21098 eval "ac_cv_lib_$ac_lib_var=no"
21099fi
21100rm -f conftest*
21101LIBS="$ac_save_LIBS"
f6bcfd97 21102
a0b9e27f
MB
21103fi
21104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21105 echo "$ac_t""yes" 1>&6
21106
3a922bb4 21107 HAVE_SHL_FUNCS=1
3d63bc3a 21108 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
21109
21110else
21111 echo "$ac_t""no" 1>&6
f6bcfd97
BP
21112fi
21113
a0b9e27f 21114
10f2d63a
VZ
21115fi
21116done
21117
a0b9e27f 21118
10f2d63a
VZ
21119fi
21120
a0b9e27f 21121
10f2d63a
VZ
21122fi
21123done
21124
5c6fa7d2 21125
8284b0c5 21126 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 21127 for ac_func in dlerror
f6bcfd97 21128do
a0b9e27f 21129echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 21130echo "configure:21131: checking for $ac_func" >&5
a0b9e27f
MB
21131if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21132 echo $ac_n "(cached) $ac_c" 1>&6
21133else
21134 cat > conftest.$ac_ext <<EOF
fe0895cf 21135#line 21136 "configure"
f6bcfd97
BP
21136#include "confdefs.h"
21137/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 21138 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
21139#include <assert.h>
21140/* Override any gcc2 internal prototype to avoid an error. */
21141/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21142 builtin and then its argument prototype would still apply. */
21143char $ac_func();
21144
21145int main() {
21146
f6bcfd97
BP
21147/* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21151choke me
21152#else
a0b9e27f 21153$ac_func();
f6bcfd97
BP
21154#endif
21155
a0b9e27f
MB
21156; return 0; }
21157EOF
fe0895cf 21158if { (eval echo configure:21159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21159 rm -rf conftest*
21160 eval "ac_cv_func_$ac_func=yes"
21161else
21162 echo "configure: failed program was:" >&5
21163 cat conftest.$ac_ext >&5
21164 rm -rf conftest*
21165 eval "ac_cv_func_$ac_func=no"
21166fi
21167rm -f conftest*
21168fi
21169
21170if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21171 echo "$ac_t""yes" 1>&6
21172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21173 cat >> confdefs.h <<EOF
21174#define $ac_tr_func 1
21175EOF
21176 cat >> confdefs.h <<\EOF
f6bcfd97 21177#define HAVE_DLERROR 1
a0b9e27f 21178EOF
f6bcfd97
BP
21179
21180else
a0b9e27f
MB
21181 echo "$ac_t""no" 1>&6
21182echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
fe0895cf 21183echo "configure:21184: checking for dlerror in -ldl" >&5
a0b9e27f
MB
21184ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21186 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 21187else
a0b9e27f 21188 ac_save_LIBS="$LIBS"
f6bcfd97 21189LIBS="-ldl $LIBS"
a0b9e27f 21190cat > conftest.$ac_ext <<EOF
fe0895cf 21191#line 21192 "configure"
f6bcfd97
BP
21192#include "confdefs.h"
21193/* Override any gcc2 internal prototype to avoid an error. */
21194/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21195 builtin and then its argument prototype would still apply. */
21196char dlerror();
21197
21198int main() {
21199dlerror()
21200; return 0; }
21201EOF
fe0895cf 21202if { (eval echo configure:21203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21203 rm -rf conftest*
21204 eval "ac_cv_lib_$ac_lib_var=yes"
21205else
21206 echo "configure: failed program was:" >&5
21207 cat conftest.$ac_ext >&5
21208 rm -rf conftest*
21209 eval "ac_cv_lib_$ac_lib_var=no"
21210fi
21211rm -f conftest*
21212LIBS="$ac_save_LIBS"
21213
21214fi
21215if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21216 echo "$ac_t""yes" 1>&6
21217 cat >> confdefs.h <<\EOF
f6bcfd97 21218#define HAVE_DLERROR 1
a0b9e27f 21219EOF
f6bcfd97 21220
a0b9e27f
MB
21221else
21222 echo "$ac_t""no" 1>&6
f6bcfd97
BP
21223fi
21224
21225fi
21226done
21227
3a922bb4
RL
21228 fi
21229 fi
f6bcfd97 21230
3a922bb4
RL
21231 if test "$HAVE_DL_FUNCS" = 0; then
21232 if test "$HAVE_SHL_FUNCS" = 0; then
21233 if test "$USE_UNIX" = 1; then
a0b9e27f 21234 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 21235 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
21236 wxUSE_DYNLIB_CLASS=no
21237 else
a0b9e27f 21238 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
21239 fi
21240 fi
10f2d63a
VZ
21241 fi
21242 fi
21243fi
21244
0b9ab0bd 21245if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 21246 cat >> confdefs.h <<\EOF
0b9ab0bd 21247#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 21248EOF
0b9ab0bd
RL
21249
21250elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 21251 cat >> confdefs.h <<\EOF
10f2d63a 21252#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 21253EOF
10f2d63a
VZ
21254
21255fi
21256
8284b0c5 21257
1e6feb95 21258if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 21259 cat >> confdefs.h <<\EOF
1e6feb95 21260#define wxUSE_FONTMAP 1
a0b9e27f 21261EOF
1e6feb95
VZ
21262
21263fi
21264
10f2d63a 21265if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 21266 cat >> confdefs.h <<\EOF
10f2d63a 21267#define wxUSE_UNICODE 1
a0b9e27f 21268EOF
10f2d63a 21269
8284b0c5 21270
bbc3925a
VS
21271 if test "$wxUSE_MSW" != 1; then
21272 wxUSE_UNICODE_MSLU=no
21273 fi
a72a4bfa
VS
21274
21275 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 21276 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
fe0895cf 21277echo "configure:21278: checking for main in -lunicows" >&5
a0b9e27f
MB
21278ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21280 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 21281else
a0b9e27f 21282 ac_save_LIBS="$LIBS"
a72a4bfa 21283LIBS="-lunicows $LIBS"
a0b9e27f 21284cat > conftest.$ac_ext <<EOF
fe0895cf 21285#line 21286 "configure"
a72a4bfa
VS
21286#include "confdefs.h"
21287
a0b9e27f
MB
21288int main() {
21289main()
21290; return 0; }
21291EOF
fe0895cf 21292if { (eval echo configure:21293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21293 rm -rf conftest*
21294 eval "ac_cv_lib_$ac_lib_var=yes"
21295else
21296 echo "configure: failed program was:" >&5
21297 cat conftest.$ac_ext >&5
21298 rm -rf conftest*
21299 eval "ac_cv_lib_$ac_lib_var=no"
21300fi
21301rm -f conftest*
21302LIBS="$ac_save_LIBS"
8284b0c5 21303
a0b9e27f
MB
21304fi
21305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21306 echo "$ac_t""yes" 1>&6
21307
21308 cat >> confdefs.h <<\EOF
a72a4bfa 21309#define wxUSE_UNICODE_MSLU 1
a0b9e27f 21310EOF
a72a4bfa 21311
a0b9e27f 21312
a72a4bfa 21313else
a0b9e27f 21314 echo "$ac_t""no" 1>&6
a72a4bfa 21315
a0b9e27f
MB
21316 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21317 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 21318 wxUSE_UNICODE_MSLU=no
a0b9e27f 21319
a72a4bfa
VS
21320fi
21321
21322 fi
10f2d63a
VZ
21323fi
21324
10f2d63a 21325if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 21326 cat >> confdefs.h <<\EOF
10f2d63a 21327#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 21328EOF
10f2d63a
VZ
21329
21330fi
21331
8284b0c5 21332
10f2d63a 21333if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21334 cat >> confdefs.h <<\EOF
10f2d63a 21335#define wxUSE_POSTSCRIPT 1
a0b9e27f 21336EOF
10f2d63a
VZ
21337
21338fi
21339
a0b9e27f 21340cat >> confdefs.h <<\EOF
10f2d63a 21341#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21342EOF
10f2d63a 21343
8284b0c5 21344
a0b9e27f 21345cat >> confdefs.h <<\EOF
10f2d63a 21346#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21347EOF
10f2d63a 21348
8284b0c5
MB
21349
21350
10f2d63a 21351if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21352 cat >> confdefs.h <<\EOF
10f2d63a 21353#define wxUSE_CONSTRAINTS 1
a0b9e27f 21354EOF
10f2d63a
VZ
21355
21356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21357fi
21358
21359if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21360
8284b0c5 21361
bb811f17 21362 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21363 cat >> confdefs.h <<\EOF
10f2d63a 21364#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21365EOF
10f2d63a 21366
bb811f17
JS
21367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21368 fi
10f2d63a
VZ
21369fi
21370
21371if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21372 cat >> confdefs.h <<\EOF
10f2d63a 21373#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21374EOF
10f2d63a
VZ
21375
21376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21377 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21379 fi
21380fi
21381
21382if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21383 cat >> confdefs.h <<\EOF
10f2d63a 21384#define wxUSE_HELP 1
a0b9e27f 21385EOF
10f2d63a
VZ
21386
21387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21388
77e13408 21389 if test "$wxUSE_MSW" = 1; then
031d8228 21390 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21391 cat >> confdefs.h <<\EOF
29fd3c0c 21392#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21393EOF
29fd3c0c 21394
3e44f09d 21395 fi
3379ed37 21396 fi
031d8228
VS
21397
21398 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21399 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21400 cat >> confdefs.h <<\EOF
031d8228 21401#define wxUSE_WXHTML_HELP 1
a0b9e27f 21402EOF
031d8228
VS
21403
21404 else
a0b9e27f 21405 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21406 wxUSE_WXHTML_HELP=no
21407 fi
21408 fi
10f2d63a
VZ
21409fi
21410
21411if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21412 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21413 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21414 else
a0b9e27f 21415 cat >> confdefs.h <<\EOF
10f2d63a 21416#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21417EOF
10f2d63a
VZ
21418
21419 fi
21420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21421fi
21422
fd3d7534 21423if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
3c907f20 21424 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
10f2d63a
VZ
21425fi
21426
8284b0c5 21427
77e13408
RL
21428if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21429 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21430 -o "$wxUSE_OLE" = "yes" \
77e13408 21431 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21432 for ac_hdr in ole2.h
10f2d63a 21433do
a0b9e27f
MB
21434ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21435echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fe0895cf 21436echo "configure:21437: checking for $ac_hdr" >&5
a0b9e27f
MB
21437if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21438 echo $ac_n "(cached) $ac_c" 1>&6
21439else
21440 cat > conftest.$ac_ext <<EOF
fe0895cf 21441#line 21442 "configure"
10f2d63a 21442#include "confdefs.h"
a0b9e27f
MB
21443#include <$ac_hdr>
21444EOF
21445ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fe0895cf 21446{ (eval echo configure:21447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21447ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21448if test -z "$ac_err"; then
21449 rm -rf conftest*
21450 eval "ac_cv_header_$ac_safe=yes"
21451else
21452 echo "$ac_err" >&5
21453 echo "configure: failed program was:" >&5
10f2d63a 21454 cat conftest.$ac_ext >&5
a0b9e27f
MB
21455 rm -rf conftest*
21456 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21457fi
a0b9e27f 21458rm -f conftest*
10f2d63a 21459fi
a0b9e27f
MB
21460if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21461 echo "$ac_t""yes" 1>&6
21462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21463 cat >> confdefs.h <<EOF
21464#define $ac_tr_hdr 1
21465EOF
21466
21467else
21468 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21469fi
21470done
21471
8284b0c5 21472
2b9bdf71
VZ
21473 if test "$ac_cv_header_ole2_h" = "yes" ; then
21474 if test "$GCC" = yes ; then
a0b9e27f
MB
21475
21476 ac_ext=C
21477# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21478ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21479ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21480ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21481cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21482
21483
a0b9e27f 21484 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
fe0895cf 21485echo "configure:21486: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21486 cat > conftest.$ac_ext <<EOF
fe0895cf 21487#line 21488 "configure"
8284b0c5
MB
21488#include "confdefs.h"
21489#include <windows.h>
21490 #include <ole2.h>
a0b9e27f 21491int main() {
8284b0c5 21492
a0b9e27f
MB
21493; return 0; }
21494EOF
fe0895cf 21495if { (eval echo configure:21496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21496 rm -rf conftest*
21497 echo "$ac_t""no" 1>&6
21498else
21499 echo "configure: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21501 rm -rf conftest*
21502 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21503 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21504fi
a0b9e27f 21505rm -f conftest*
8284b0c5 21506 ac_ext=c
a0b9e27f 21507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21508ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21511cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21512
2b9bdf71 21513 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21514 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21515 cat >> confdefs.h <<\EOF
4f11a343 21516#define wxUSE_OLE 1
a0b9e27f 21517EOF
4f11a343 21518
8284b0c5 21519
2b9bdf71
VZ
21520 fi
21521
a0b9e27f 21522 cat >> confdefs.h <<\EOF
2b9bdf71 21523#define wxUSE_DATAOBJ 1
a0b9e27f 21524EOF
2b9bdf71
VZ
21525
21526 else
a0b9e27f 21527 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21528
21529 wxUSE_CLIPBOARD=no
21530 wxUSE_DRAG_AND_DROP=no
21531 wxUSE_DATAOBJ=no
3bce6687
JS
21532 wxUSE_OLE=no
21533 fi
21534
21535 if test "$wxUSE_METAFILE" = "yes"; then
21536 cat >> confdefs.h <<\EOF
21537#define wxUSE_METAFILE 1
21538EOF
21539
21540
21541 cat >> confdefs.h <<\EOF
21542#define wxUSE_ENH_METAFILE 1
21543EOF
21544
21545 fi
21546fi
21547
2b9bdf71
VZ
21548if test "$wxUSE_IPC" = "yes"; then
21549 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21550 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21551 fi
21552
a0b9e27f 21553 cat >> confdefs.h <<\EOF
2b9bdf71 21554#define wxUSE_IPC 1
a0b9e27f 21555EOF
2b9bdf71
VZ
21556
21557fi
21558
21559if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21560 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21561 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21562 wxUSE_CLIPBOARD=no
21563 fi
21564
21565 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21566 cat >> confdefs.h <<\EOF
2b9bdf71 21567#define wxUSE_CLIPBOARD 1
a0b9e27f 21568EOF
2b9bdf71 21569
8284b0c5 21570
a0b9e27f 21571 cat >> confdefs.h <<\EOF
673f4220 21572#define wxUSE_DATAOBJ 1
a0b9e27f 21573EOF
673f4220 21574
6c657b52 21575 fi
2b9bdf71
VZ
21576fi
21577
21578if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21579 if test "$wxUSE_GTK" = 1; then
21580 if test "$WXGTK12" != 1; then
a0b9e27f 21581 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21582 wxUSE_DRAG_AND_DROP=no
21583 fi
21584 fi
21585
2b9bdf71 21586 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21587 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21588 wxUSE_DRAG_AND_DROP=no
21589 fi
21590
f79bd02d 21591 if test "$wxUSE_X11" = 1; then
a0b9e27f 21592 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21593 wxUSE_DRAG_AND_DROP=no
21594 fi
21595
6c657b52 21596 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21597 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21598 wxUSE_DRAG_AND_DROP=no
21599 fi
21600
10f2d63a 21601 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21602 cat >> confdefs.h <<\EOF
10f2d63a 21603#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21604EOF
10f2d63a
VZ
21605
21606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21607 fi
21608
21609fi
21610
21611if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21612 cat >> confdefs.h <<\EOF
10f2d63a 21613#define wxUSE_SPLINES 1
a0b9e27f 21614EOF
10f2d63a
VZ
21615
21616fi
21617
8284b0c5 21618
1e6feb95
VZ
21619USES_CONTROLS=0
21620if test "$wxUSE_CONTROLS" = "yes"; then
21621 USES_CONTROLS=1
21622fi
21623
10f2d63a 21624if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21625 cat >> confdefs.h <<\EOF
10f2d63a 21626#define wxUSE_ACCEL 1
a0b9e27f 21627EOF
10f2d63a 21628
1e6feb95
VZ
21629 USES_CONTROLS=1
21630fi
21631
21632if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21633 cat >> confdefs.h <<\EOF
1e6feb95 21634#define wxUSE_BUTTON 1
a0b9e27f 21635EOF
1e6feb95
VZ
21636
21637 USES_CONTROLS=1
21638fi
21639
21640if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21641 cat >> confdefs.h <<\EOF
1e6feb95 21642#define wxUSE_BMPBUTTON 1
a0b9e27f 21643EOF
1e6feb95
VZ
21644
21645 USES_CONTROLS=1
21646fi
21647
21648if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21649 cat >> confdefs.h <<\EOF
1e6feb95 21650#define wxUSE_CALENDARCTRL 1
a0b9e27f 21651EOF
1e6feb95
VZ
21652
21653 USES_CONTROLS=1
21654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21655fi
21656
21657if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21658 cat >> confdefs.h <<\EOF
10f2d63a 21659#define wxUSE_CARET 1
a0b9e27f 21660EOF
10f2d63a 21661
1e6feb95 21662 USES_CONTROLS=1
10f2d63a
VZ
21663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21664fi
21665
21666if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21667 cat >> confdefs.h <<\EOF
10f2d63a 21668#define wxUSE_COMBOBOX 1
a0b9e27f 21669EOF
10f2d63a 21670
1e6feb95 21671 USES_CONTROLS=1
10f2d63a
VZ
21672fi
21673
21674if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21675 cat >> confdefs.h <<\EOF
10f2d63a 21676#define wxUSE_CHOICE 1
a0b9e27f 21677EOF
10f2d63a 21678
1e6feb95 21679 USES_CONTROLS=1
10f2d63a
VZ
21680fi
21681
21682if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21683 cat >> confdefs.h <<\EOF
10f2d63a 21684#define wxUSE_CHECKBOX 1
a0b9e27f 21685EOF
10f2d63a 21686
1e6feb95 21687 USES_CONTROLS=1
10f2d63a
VZ
21688fi
21689
21690if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21691 cat >> confdefs.h <<\EOF
10f2d63a 21692#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21693EOF
10f2d63a 21694
1e6feb95 21695 USES_CONTROLS=1
10f2d63a
VZ
21696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21697fi
21698
da494b40
MB
21699if test "$wxUSE_DISPLAY" = "yes"; then
21700 cat >> confdefs.h <<\EOF
21701#define wxUSE_DISPLAY 1
21702EOF
21703
21704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21705fi
21706
10f2d63a 21707if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21708 cat >> confdefs.h <<\EOF
10f2d63a 21709#define wxUSE_GAUGE 1
a0b9e27f 21710EOF
10f2d63a 21711
1e6feb95 21712 USES_CONTROLS=1
10f2d63a
VZ
21713fi
21714
d6a55c4b 21715if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21716 cat >> confdefs.h <<\EOF
d6a55c4b 21717#define wxUSE_GRID 1
a0b9e27f 21718EOF
10f2d63a 21719
1e6feb95 21720 USES_CONTROLS=1
d6a55c4b 21721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21722fi
21723
21724if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21725 cat >> confdefs.h <<\EOF
10f2d63a 21726#define wxUSE_IMAGLIST 1
a0b9e27f 21727EOF
10f2d63a
VZ
21728
21729fi
21730
21731if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21732 cat >> confdefs.h <<\EOF
10f2d63a 21733#define wxUSE_LISTBOX 1
a0b9e27f 21734EOF
10f2d63a 21735
1e6feb95 21736 USES_CONTROLS=1
10f2d63a
VZ
21737fi
21738
21739if test "$wxUSE_LISTCTRL" = "yes"; then
21740 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21741 cat >> confdefs.h <<\EOF
10f2d63a 21742#define wxUSE_LISTCTRL 1
a0b9e27f 21743EOF
10f2d63a 21744
1e6feb95 21745 USES_CONTROLS=1
10f2d63a
VZ
21746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21747 else
a0b9e27f 21748 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21749 fi
21750fi
21751
21752if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21753 cat >> confdefs.h <<\EOF
10f2d63a 21754#define wxUSE_NOTEBOOK 1
a0b9e27f 21755EOF
10f2d63a 21756
1e6feb95 21757 USES_CONTROLS=1
10f2d63a
VZ
21758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21759fi
21760
24176f2c 21761
10f2d63a 21762if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21763 cat >> confdefs.h <<\EOF
10f2d63a 21764#define wxUSE_RADIOBOX 1
a0b9e27f 21765EOF
10f2d63a 21766
1e6feb95 21767 USES_CONTROLS=1
10f2d63a
VZ
21768fi
21769
21770if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21771 cat >> confdefs.h <<\EOF
10f2d63a 21772#define wxUSE_RADIOBTN 1
a0b9e27f 21773EOF
10f2d63a 21774
1e6feb95 21775 USES_CONTROLS=1
10f2d63a
VZ
21776fi
21777
21778if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21779 cat >> confdefs.h <<\EOF
10f2d63a 21780#define wxUSE_SASH 1
a0b9e27f 21781EOF
10f2d63a
VZ
21782
21783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21784fi
21785
21786if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21787 cat >> confdefs.h <<\EOF
10f2d63a 21788#define wxUSE_SCROLLBAR 1
a0b9e27f 21789EOF
10f2d63a 21790
1e6feb95 21791 USES_CONTROLS=1
741a9306 21792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21793fi
21794
21795if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21796 cat >> confdefs.h <<\EOF
10f2d63a 21797#define wxUSE_SLIDER 1
a0b9e27f 21798EOF
10f2d63a 21799
1e6feb95 21800 USES_CONTROLS=1
10f2d63a
VZ
21801fi
21802
21803if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21804 cat >> confdefs.h <<\EOF
10f2d63a 21805#define wxUSE_SPINBTN 1
a0b9e27f 21806EOF
10f2d63a 21807
1e6feb95 21808 USES_CONTROLS=1
10f2d63a
VZ
21809fi
21810
56cfaa52 21811if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21812 cat >> confdefs.h <<\EOF
56cfaa52 21813#define wxUSE_SPINCTRL 1
a0b9e27f 21814EOF
56cfaa52 21815
1e6feb95 21816 USES_CONTROLS=1
56cfaa52
RR
21817fi
21818
10f2d63a 21819if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21820 cat >> confdefs.h <<\EOF
10f2d63a 21821#define wxUSE_SPLITTER 1
a0b9e27f 21822EOF
10f2d63a
VZ
21823
21824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21825fi
21826
21827if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21828 cat >> confdefs.h <<\EOF
10f2d63a 21829#define wxUSE_STATBMP 1
a0b9e27f 21830EOF
10f2d63a 21831
1e6feb95 21832 USES_CONTROLS=1
10f2d63a
VZ
21833fi
21834
21835if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21836 cat >> confdefs.h <<\EOF
10f2d63a 21837#define wxUSE_STATBOX 1
a0b9e27f 21838EOF
10f2d63a 21839
1e6feb95
VZ
21840 USES_CONTROLS=1
21841fi
21842
21843if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21844 cat >> confdefs.h <<\EOF
1e6feb95 21845#define wxUSE_STATTEXT 1
a0b9e27f 21846EOF
1e6feb95
VZ
21847
21848 USES_CONTROLS=1
10f2d63a
VZ
21849fi
21850
21851if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21852 cat >> confdefs.h <<\EOF
10f2d63a 21853#define wxUSE_STATLINE 1
a0b9e27f 21854EOF
10f2d63a 21855
89e6bf6d 21856 USES_CONTROLS=1
10f2d63a
VZ
21857fi
21858
21859if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21860 cat >> confdefs.h <<\EOF
10f2d63a 21861#define wxUSE_STATUSBAR 1
a0b9e27f 21862EOF
10f2d63a 21863
1e6feb95 21864 USES_CONTROLS=1
698dcdb6 21865
2286341c 21866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21867fi
21868
21869if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21870 cat >> confdefs.h <<\EOF
10f2d63a 21871#define wxUSE_TAB_DIALOG 1
a0b9e27f 21872EOF
10f2d63a
VZ
21873
21874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21875fi
21876
1e6feb95 21877if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21878 cat >> confdefs.h <<\EOF
1e6feb95 21879#define wxUSE_TEXTCTRL 1
a0b9e27f 21880EOF
1e6feb95
VZ
21881
21882 USES_CONTROLS=1
21883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21884fi
21885
1db8dc4a 21886if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21887 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21888 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21889 wxUSE_TOGGLEBTN=no
21890 fi
21891 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21892 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21893 wxUSE_TOGGLEBTN=no
21894 fi
21895
21896 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21897 cat >> confdefs.h <<\EOF
1db8dc4a 21898#define wxUSE_TOGGLEBTN 1
a0b9e27f 21899EOF
1db8dc4a 21900
1e6feb95 21901 USES_CONTROLS=1
a45d7ab7 21902 fi
1db8dc4a
VZ
21903fi
21904
360d6699 21905if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21906 cat >> confdefs.h <<\EOF
360d6699 21907#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21908EOF
360d6699
VZ
21909
21910 wxUSE_TOOLBAR="yes"
1e6feb95 21911 USES_CONTROLS=1
360d6699
VZ
21912fi
21913
10f2d63a 21914if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21915 cat >> confdefs.h <<\EOF
10f2d63a 21916#define wxUSE_TOOLBAR 1
a0b9e27f 21917EOF
10f2d63a 21918
1e6feb95 21919 USES_CONTROLS=1
698dcdb6 21920
360d6699
VZ
21921 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21922 wxUSE_TOOLBAR_NATIVE="yes"
21923 fi
21924
1e6feb95 21925 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21926 cat >> confdefs.h <<\EOF
360d6699 21927#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21928EOF
360d6699 21929
1e6feb95
VZ
21930 USES_CONTROLS=1
21931 fi
21932
21933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21934fi
21935
10f2d63a
VZ
21936if test "$wxUSE_TOOLTIPS" = "yes"; then
21937 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21938 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21939 else
89e6bf6d
VZ
21940 if test "$wxUSE_UNIVERSAL" = "yes"; then
21941 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21942 else
89e6bf6d 21943 cat >> confdefs.h <<\EOF
10f2d63a 21944#define wxUSE_TOOLTIPS 1
a0b9e27f 21945EOF
10f2d63a
VZ
21946
21947 fi
21948 fi
21949fi
21950
21951if test "$wxUSE_TREECTRL" = "yes"; then
21952 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21953 cat >> confdefs.h <<\EOF
10f2d63a 21954#define wxUSE_TREECTRL 1
a0b9e27f 21955EOF
10f2d63a 21956
1e6feb95 21957 USES_CONTROLS=1
10f2d63a
VZ
21958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21959 else
a0b9e27f 21960 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21961 fi
21962fi
21963
9f41d601 21964if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21965 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21966 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21967 else
485cf710 21968 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21969 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21970 else
3c011993 21971 if test "$wxUSE_PM" = 1; then
a0b9e27f 21972 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21973 else
a0b9e27f 21974 cat >> confdefs.h <<\EOF
9f41d601 21975#define wxUSE_POPUPWIN 1
a0b9e27f 21976EOF
9f41d601 21977
8284b0c5 21978
3c011993
VZ
21979 USES_CONTROLS=1
21980 fi
485cf710 21981 fi
6abe4b65 21982 fi
9f41d601
RR
21983fi
21984
dd964dcc 21985if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21986 if test "$wxUSE_PM" = 1; then
a0b9e27f 21987 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21988 else
a0b9e27f 21989 cat >> confdefs.h <<\EOF
dd964dcc 21990#define wxUSE_TIPWINDOW 1
a0b9e27f 21991EOF
dd964dcc 21992
3c011993 21993 fi
dd964dcc
VZ
21994fi
21995
1e6feb95 21996if test "$USES_CONTROLS" = 1; then
a0b9e27f 21997 cat >> confdefs.h <<\EOF
1e6feb95 21998#define wxUSE_CONTROLS 1
a0b9e27f 21999EOF
10f2d63a 22000
10f2d63a
VZ
22001fi
22002
8284b0c5 22003
1e6feb95 22004
24fd6d87 22005if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 22006 cat >> confdefs.h <<\EOF
24fd6d87 22007#define wxUSE_DRAGIMAGE 1
a0b9e27f 22008EOF
24fd6d87
VZ
22009
22010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
22011fi
22012
7bb2947d
MB
22013if test "$wxUSE_ACCESSIBILITY" = "yes"; then
22014 cat >> confdefs.h <<\EOF
22015#define wxUSE_ACCESSIBILITY 1
22016EOF
22017
22018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
22019fi
22020
1e6feb95 22021if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 22022 cat >> confdefs.h <<\EOF
1e6feb95 22023#define wxUSE_MENUS 1
a0b9e27f 22024EOF
10f2d63a 22025
1e6feb95 22026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
22027fi
22028
1e6feb95 22029if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 22030 cat >> confdefs.h <<\EOF
1e6feb95 22031#define wxUSE_METAFILE 1
a0b9e27f 22032EOF
10f2d63a 22033
10f2d63a
VZ
22034fi
22035
1e6feb95 22036if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 22037 cat >> confdefs.h <<\EOF
1e6feb95 22038#define wxUSE_MIMETYPE 1
a0b9e27f 22039EOF
10f2d63a 22040
10f2d63a
VZ
22041fi
22042
3e44f09d 22043if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 22044 cat >> confdefs.h <<\EOF
3e44f09d 22045#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 22046EOF
3e44f09d 22047
321d2b14
VZ
22048if test "$TOOLKIT" = "MSW"; then
22049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
22050fi
22051
3e44f09d
VZ
22052fi
22053
4cdb0ab0 22054if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 22055 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 22056 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
22057 wxUSE_PROTOCOL=no
22058 fi
22059
22060 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 22061 cat >> confdefs.h <<\EOF
4cdb0ab0 22062#define wxUSE_PROTOCOL 1
a0b9e27f 22063EOF
4cdb0ab0 22064
8284b0c5 22065
3954f9ca 22066 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 22067 cat >> confdefs.h <<\EOF
4cdb0ab0 22068#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 22069EOF
4cdb0ab0 22070
3954f9ca
VS
22071 fi
22072 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 22073 cat >> confdefs.h <<\EOF
4cdb0ab0 22074#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 22075EOF
4cdb0ab0 22076
3954f9ca
VS
22077 fi
22078 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 22079 cat >> confdefs.h <<\EOF
3954f9ca 22080#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 22081EOF
3954f9ca
VS
22082
22083 fi
4cdb0ab0 22084 fi
3954f9ca
VS
22085fi
22086
22087if test "$wxUSE_URL" = "yes"; then
22088 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 22089 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
22090 wxUSE_URL=no
22091 fi
22092 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 22093 cat >> confdefs.h <<\EOF
3954f9ca 22094#define wxUSE_URL 1
a0b9e27f 22095EOF
4cdb0ab0
VS
22096
22097 fi
22098fi
22099
10f2d63a 22100if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 22101 cat >> confdefs.h <<\EOF
10f2d63a 22102#define wxUSE_MINIFRAME 1
a0b9e27f 22103EOF
10f2d63a
VZ
22104
22105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
22106fi
22107
22108if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 22109 cat >> confdefs.h <<\EOF
10f2d63a 22110#define wxUSE_HTML 1
a0b9e27f 22111EOF
10f2d63a 22112
d2739ea6 22113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
10f2d63a
VZ
22114fi
22115
22116if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 22117 cat >> confdefs.h <<\EOF
1e487827 22118#define wxUSE_VALIDATORS 1
a0b9e27f 22119EOF
703e0a69 22120
698dcdb6
VZ
22121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22122fi
22123
edae8572 22124if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 22125 cat >> confdefs.h <<\EOF
edae8572 22126#define wxUSE_PALETTE 1
a0b9e27f 22127EOF
edae8572
VZ
22128
22129fi
22130
698dcdb6 22131if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 22132 cat >> confdefs.h <<\EOF
698dcdb6 22133#define wxUSE_IMAGE 1
a0b9e27f 22134EOF
698dcdb6
VZ
22135
22136fi
22137
22138if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 22139 cat >> confdefs.h <<\EOF
698dcdb6 22140#define wxUSE_GIF 1
a0b9e27f 22141EOF
698dcdb6
VZ
22142
22143fi
22144
22145if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 22146 cat >> confdefs.h <<\EOF
698dcdb6 22147#define wxUSE_PCX 1
a0b9e27f 22148EOF
698dcdb6
VZ
22149
22150fi
22151
4b6b4dfc 22152if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 22153 cat >> confdefs.h <<\EOF
4b6b4dfc 22154#define wxUSE_IFF 1
a0b9e27f 22155EOF
4b6b4dfc
RR
22156
22157fi
22158
698dcdb6 22159if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 22160 cat >> confdefs.h <<\EOF
698dcdb6 22161#define wxUSE_PNM 1
a0b9e27f 22162EOF
698dcdb6
VZ
22163
22164fi
22165
22166if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 22167 cat >> confdefs.h <<\EOF
698dcdb6 22168#define wxUSE_XPM 1
a0b9e27f 22169EOF
698dcdb6
VZ
22170
22171fi
22172
658974ae 22173if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 22174 cat >> confdefs.h <<\EOF
658974ae 22175#define wxUSE_ICO_CUR 1
a0b9e27f 22176EOF
658974ae
VS
22177
22178fi
22179
a72a4bfa
VS
22180if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22181 LIBS=" -lunicows $LIBS"
22182fi
22183
8284b0c5 22184
1e6feb95 22185if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 22186 cat >> confdefs.h <<\EOF
1e6feb95 22187#define wxUSE_CHOICEDLG 1
a0b9e27f 22188EOF
1e6feb95
VZ
22189
22190fi
22191
22192if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 22193 cat >> confdefs.h <<\EOF
1e6feb95 22194#define wxUSE_COLOURDLG 1
a0b9e27f 22195EOF
1e6feb95
VZ
22196
22197fi
22198
22199if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 22200 cat >> confdefs.h <<\EOF
1e6feb95 22201#define wxUSE_FILEDLG 1
a0b9e27f 22202EOF
1e6feb95
VZ
22203
22204fi
22205
8db37e06 22206if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 22207 cat >> confdefs.h <<\EOF
8db37e06 22208#define wxUSE_FINDREPLDLG 1
a0b9e27f 22209EOF
8db37e06
VZ
22210
22211fi
22212
1e6feb95 22213if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 22214 cat >> confdefs.h <<\EOF
1e6feb95 22215#define wxUSE_FONTDLG 1
a0b9e27f 22216EOF
1e6feb95
VZ
22217
22218fi
22219
22220if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 22221 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 22222 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 22223 else
a0b9e27f 22224 cat >> confdefs.h <<\EOF
1e6feb95 22225#define wxUSE_DIRDLG 1
a0b9e27f 22226EOF
1e6feb95 22227
1e6feb95
VZ
22228 fi
22229fi
22230
22231if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 22232 cat >> confdefs.h <<\EOF
1e6feb95 22233#define wxUSE_MSGDLG 1
a0b9e27f 22234EOF
1e6feb95
VZ
22235
22236fi
22237
22238if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 22239 cat >> confdefs.h <<\EOF
1e6feb95 22240#define wxUSE_NUMBERDLG 1
a0b9e27f 22241EOF
1e6feb95
VZ
22242
22243fi
22244
22245if test "$wxUSE_PROGRESSDLG" = "yes"; then
22246 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22247 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 22248 else
a0b9e27f 22249 cat >> confdefs.h <<\EOF
1e6feb95 22250#define wxUSE_PROGRESSDLG 1
a0b9e27f 22251EOF
1e6feb95
VZ
22252
22253 fi
22254fi
22255
cbca9943 22256if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 22257 cat >> confdefs.h <<\EOF
cbca9943 22258#define wxUSE_SPLASH 1
a0b9e27f 22259EOF
cbca9943
VZ
22260
22261fi
22262
1e6feb95
VZ
22263if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22264 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22265 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 22266 else
a0b9e27f 22267 cat >> confdefs.h <<\EOF
1e6feb95 22268#define wxUSE_STARTUP_TIPS 1
a0b9e27f 22269EOF
1e6feb95 22270
7b4a847f
RR
22271 fi
22272fi
579d8138 22273
8284b0c5 22274if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 22275 cat >> confdefs.h <<\EOF
8284b0c5 22276#define wxUSE_TEXTDLG 1
a0b9e27f 22277EOF
8284b0c5
MB
22278
22279fi
22280
22281if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 22282 cat >> confdefs.h <<\EOF
8284b0c5 22283#define wxUSE_WIZARDDLG 1
a0b9e27f 22284EOF
8284b0c5
MB
22285
22286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22287fi
22288
22289
22290if test "$cross_compiling" = "yes"; then
22291 OSINFO="\"$host\""
22292else
22293 OSINFO=`uname -s -r -m`
22294 OSINFO="\"$OSINFO\""
22295fi
22296
a0b9e27f 22297cat >> confdefs.h <<EOF
8284b0c5 22298#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22299EOF
8284b0c5
MB
22300
22301
22302
22303if test "x$prefix" != "xNONE"; then
22304 wxPREFIX=$prefix
22305else
22306 wxPREFIX=$ac_default_prefix
22307fi
22308
a0b9e27f 22309cat >> confdefs.h <<EOF
8284b0c5 22310#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22311EOF
8284b0c5
MB
22312
22313
52c71b80
VZ
22314top_builddir=`pwd`
22315
8284b0c5
MB
22316
22317
22318
22319if test "$wxUSE_MAC" = 1 ; then
22320 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22321fi
ac0c4cc3
DE
22322if test "$wxUSE_COCOA" = 1 ; then
22323 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22324fi
8284b0c5
MB
22325
22326
2b5f62a0
VZ
22327LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22328
22329have_cos=0
22330have_floor=0
22331for ac_func in cos
22332do
22333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 22334echo "configure:22335: checking for $ac_func" >&5
2b5f62a0
VZ
22335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22336 echo $ac_n "(cached) $ac_c" 1>&6
22337else
22338 cat > conftest.$ac_ext <<EOF
fe0895cf 22339#line 22340 "configure"
2b5f62a0
VZ
22340#include "confdefs.h"
22341/* System header to define __stub macros and hopefully few prototypes,
22342 which can conflict with char $ac_func(); below. */
22343#include <assert.h>
22344/* Override any gcc2 internal prototype to avoid an error. */
22345/* We use char because int might match the return type of a gcc2
22346 builtin and then its argument prototype would still apply. */
22347char $ac_func();
22348
22349int main() {
22350
22351/* The GNU C library defines this for functions which it implements
22352 to always fail with ENOSYS. Some functions are actually named
22353 something starting with __ and the normal name is an alias. */
22354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22355choke me
22356#else
22357$ac_func();
22358#endif
22359
22360; return 0; }
22361EOF
fe0895cf 22362if { (eval echo configure:22363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22363 rm -rf conftest*
22364 eval "ac_cv_func_$ac_func=yes"
22365else
22366 echo "configure: failed program was:" >&5
22367 cat conftest.$ac_ext >&5
22368 rm -rf conftest*
22369 eval "ac_cv_func_$ac_func=no"
22370fi
22371rm -f conftest*
22372fi
22373
22374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22375 echo "$ac_t""yes" 1>&6
22376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22377 cat >> confdefs.h <<EOF
22378#define $ac_tr_func 1
22379EOF
22380 have_cos=1
22381else
22382 echo "$ac_t""no" 1>&6
22383fi
22384done
22385
22386for ac_func in floor
22387do
22388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 22389echo "configure:22390: checking for $ac_func" >&5
2b5f62a0
VZ
22390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22391 echo $ac_n "(cached) $ac_c" 1>&6
22392else
22393 cat > conftest.$ac_ext <<EOF
fe0895cf 22394#line 22395 "configure"
2b5f62a0
VZ
22395#include "confdefs.h"
22396/* System header to define __stub macros and hopefully few prototypes,
22397 which can conflict with char $ac_func(); below. */
22398#include <assert.h>
22399/* Override any gcc2 internal prototype to avoid an error. */
22400/* We use char because int might match the return type of a gcc2
22401 builtin and then its argument prototype would still apply. */
22402char $ac_func();
22403
22404int main() {
22405
22406/* The GNU C library defines this for functions which it implements
22407 to always fail with ENOSYS. Some functions are actually named
22408 something starting with __ and the normal name is an alias. */
22409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22410choke me
22411#else
22412$ac_func();
22413#endif
22414
22415; return 0; }
22416EOF
fe0895cf 22417if { (eval echo configure:22418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22418 rm -rf conftest*
22419 eval "ac_cv_func_$ac_func=yes"
22420else
22421 echo "configure: failed program was:" >&5
22422 cat conftest.$ac_ext >&5
22423 rm -rf conftest*
22424 eval "ac_cv_func_$ac_func=no"
22425fi
22426rm -f conftest*
22427fi
22428
22429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22430 echo "$ac_t""yes" 1>&6
22431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22432 cat >> confdefs.h <<EOF
22433#define $ac_tr_func 1
22434EOF
22435 have_floor=1
22436else
22437 echo "$ac_t""no" 1>&6
22438fi
22439done
22440
22441echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
fe0895cf 22442echo "configure:22443: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22443if test "$have_cos" = 1 -a "$have_floor" = 1; then
22444 echo "$ac_t""yes" 1>&6
22445else
22446 echo "$ac_t""no" 1>&6
22447 LIBS="$LIBS -lm"
22448 # use different functions to avoid configure caching
22449 have_sin=0
22450 have_ceil=0
22451 for ac_func in sin
22452do
22453echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 22454echo "configure:22455: checking for $ac_func" >&5
2b5f62a0
VZ
22455if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22456 echo $ac_n "(cached) $ac_c" 1>&6
22457else
22458 cat > conftest.$ac_ext <<EOF
fe0895cf 22459#line 22460 "configure"
2b5f62a0
VZ
22460#include "confdefs.h"
22461/* System header to define __stub macros and hopefully few prototypes,
22462 which can conflict with char $ac_func(); below. */
22463#include <assert.h>
22464/* Override any gcc2 internal prototype to avoid an error. */
22465/* We use char because int might match the return type of a gcc2
22466 builtin and then its argument prototype would still apply. */
22467char $ac_func();
22468
22469int main() {
22470
22471/* The GNU C library defines this for functions which it implements
22472 to always fail with ENOSYS. Some functions are actually named
22473 something starting with __ and the normal name is an alias. */
22474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22475choke me
22476#else
22477$ac_func();
22478#endif
22479
22480; return 0; }
22481EOF
fe0895cf 22482if { (eval echo configure:22483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22483 rm -rf conftest*
22484 eval "ac_cv_func_$ac_func=yes"
22485else
22486 echo "configure: failed program was:" >&5
22487 cat conftest.$ac_ext >&5
22488 rm -rf conftest*
22489 eval "ac_cv_func_$ac_func=no"
22490fi
22491rm -f conftest*
22492fi
22493
22494if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22495 echo "$ac_t""yes" 1>&6
22496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22497 cat >> confdefs.h <<EOF
22498#define $ac_tr_func 1
22499EOF
22500 have_sin=1
22501else
22502 echo "$ac_t""no" 1>&6
22503fi
22504done
22505
22506 for ac_func in ceil
22507do
22508echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fe0895cf 22509echo "configure:22510: checking for $ac_func" >&5
2b5f62a0
VZ
22510if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22511 echo $ac_n "(cached) $ac_c" 1>&6
22512else
22513 cat > conftest.$ac_ext <<EOF
fe0895cf 22514#line 22515 "configure"
2b5f62a0
VZ
22515#include "confdefs.h"
22516/* System header to define __stub macros and hopefully few prototypes,
22517 which can conflict with char $ac_func(); below. */
22518#include <assert.h>
22519/* Override any gcc2 internal prototype to avoid an error. */
22520/* We use char because int might match the return type of a gcc2
22521 builtin and then its argument prototype would still apply. */
22522char $ac_func();
22523
22524int main() {
22525
22526/* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22530choke me
22531#else
22532$ac_func();
22533#endif
22534
22535; return 0; }
22536EOF
fe0895cf 22537if { (eval echo configure:22538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22538 rm -rf conftest*
22539 eval "ac_cv_func_$ac_func=yes"
22540else
22541 echo "configure: failed program was:" >&5
22542 cat conftest.$ac_ext >&5
22543 rm -rf conftest*
22544 eval "ac_cv_func_$ac_func=no"
22545fi
22546rm -f conftest*
22547fi
22548
22549if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22550 echo "$ac_t""yes" 1>&6
22551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22552 cat >> confdefs.h <<EOF
22553#define $ac_tr_func 1
22554EOF
22555 have_ceil=1
22556else
22557 echo "$ac_t""no" 1>&6
22558fi
22559done
22560
22561 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
fe0895cf 22562echo "configure:22563: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22563 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22564 echo "$ac_t""yes" 1>&6
22565 else
22566 echo "$ac_t""no" 1>&6
22567 # not sure we should warn the user, crash, etc.
22568 fi
22569fi
8284b0c5
MB
22570
22571if test "$wxUSE_GUI" = "yes"; then
22572
22573 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22574
a0b9e27f 22575
8284b0c5
MB
22576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22577 drawing dynamic erase event exec font image \
1542ea39 22578 minimal propsize rotate shaped widgets"
8284b0c5
MB
22579else
22580 SAMPLES_SUBDIRS="console"
22581fi
22582
22583
22584INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22585-I\${top_srcdir}/include \
22586$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22587$TOOLKIT_INCLUDE"
22588
22589if test "$wxUSE_GTK" = 1; then
22590 WXCONFIG_INCLUDE=
22591else
22592 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22593fi
22594
fe0895cf
VS
22595if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
22596 WXUNIV=1
22597else
22598 WXUNIV=0
8284b0c5
MB
22599fi
22600
8284b0c5
MB
22601
22602
22603
22604
22605
22606
22607
fe0895cf 22608EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
8284b0c5 22609
fe0895cf 22610MONOLITHIC=1
8284b0c5
MB
22611
22612
22613
22614
22615
22616
22617
fe0895cf 22618TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
22619
22620
22621
22622
22623
fe0895cf
VS
22624 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
22625
22626 # Extract the first word of "ranlib", so it can be a program name with args.
22627set dummy ranlib; ac_word=$2
22628echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 22629echo "configure:22630: checking for $ac_word" >&5
fe0895cf 22630if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
a0b9e27f 22631 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22632else
fe0895cf
VS
22633 if test -n "$RANLIB"; then
22634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 22635else
fe0895cf
VS
22636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22637 ac_dummy="$PATH"
22638 for ac_dir in $ac_dummy; do
22639 test -z "$ac_dir" && ac_dir=.
22640 if test -f $ac_dir/$ac_word; then
22641 ac_cv_prog_RANLIB="ranlib"
22642 break
22643 fi
22644 done
22645 IFS="$ac_save_ifs"
22646 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a 22647fi
10f2d63a 22648fi
fe0895cf
VS
22649RANLIB="$ac_cv_prog_RANLIB"
22650if test -n "$RANLIB"; then
22651 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 22652else
a0b9e27f 22653 echo "$ac_t""no" 1>&6
00cf1208 22654fi
665bbe97 22655
fe0895cf
VS
22656 # Find a good install program. We prefer a C program (faster),
22657# so one script is as good as another. But avoid the broken or
22658# incompatible versions:
22659# SysV /etc/install, /usr/sbin/install
22660# SunOS /usr/etc/install
22661# IRIX /sbin/install
22662# AIX /bin/install
22663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
22665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22666# ./install, which can be erroneously created by make from ./install.sh.
22667echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b9fbba05 22668echo "configure:22669: checking for a BSD compatible install" >&5
fe0895cf
VS
22669if test -z "$INSTALL"; then
22670if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
22671 echo $ac_n "(cached) $ac_c" 1>&6
22672else
22673 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
22674 for ac_dir in $PATH; do
22675 # Account for people who put trailing slashes in PATH elements.
22676 case "$ac_dir/" in
22677 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
22678 *)
22679 # OSF1 and SCO ODT 3.0 have their own names for install.
22680 # Don't use installbsd from OSF since it installs stuff as root
22681 # by default.
22682 for ac_prog in ginstall scoinst install; do
22683 if test -f $ac_dir/$ac_prog; then
22684 if test $ac_prog = install &&
22685 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
22686 # AIX install. It has an incompatible calling convention.
22687 :
22688 else
22689 ac_cv_path_install="$ac_dir/$ac_prog -c"
22690 break 2
22691 fi
22692 fi
22693 done
22694 ;;
22695 esac
22696 done
22697 IFS="$ac_save_IFS"
22698
22699fi
22700 if test "${ac_cv_path_install+set}" = set; then
22701 INSTALL="$ac_cv_path_install"
22702 else
22703 # As a last resort, use the slow shell script. We don't cache a
22704 # path for INSTALL within a source directory, because that will
22705 # break other packages using the cache if that directory is
22706 # removed, or if the path is relative.
22707 INSTALL="$ac_install_sh"
22708 fi
22709fi
22710echo "$ac_t""$INSTALL" 1>&6
22711
22712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22713# It thinks the first close brace ends the variable substitution.
22714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22715
22716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
22717
22718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22719
22720 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b9fbba05 22721echo "configure:22722: checking whether ln -s works" >&5
fe0895cf
VS
22722if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
22723 echo $ac_n "(cached) $ac_c" 1>&6
22724else
22725 rm -f conftestdata
22726if ln -s X conftestdata 2>/dev/null
22727then
22728 rm -f conftestdata
22729 ac_cv_prog_LN_S="ln -s"
22730else
22731 ac_cv_prog_LN_S=ln
22732fi
22733fi
22734LN_S="$ac_cv_prog_LN_S"
22735if test "$ac_cv_prog_LN_S" = "ln -s"; then
22736 echo "$ac_t""yes" 1>&6
22737else
22738 echo "$ac_t""no" 1>&6
22739fi
22740
22741
22742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b9fbba05 22743echo "configure:22744: checking whether ${MAKE-make} sets \${MAKE}" >&5
fe0895cf
VS
22744set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22745if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22746 echo $ac_n "(cached) $ac_c" 1>&6
22747else
22748 cat > conftestmake <<\EOF
22749all:
22750 @echo 'ac_maketemp="${MAKE}"'
22751EOF
22752# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22753eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22754if test -n "$ac_maketemp"; then
22755 eval ac_cv_prog_make_${ac_make}_set=yes
22756else
22757 eval ac_cv_prog_make_${ac_make}_set=no
22758fi
22759rm -f conftestmake
22760fi
22761if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22762 echo "$ac_t""yes" 1>&6
22763 SET_MAKE=
22764else
22765 echo "$ac_t""no" 1>&6
22766 SET_MAKE="MAKE=${MAKE-make}"
22767fi
22768
22769
22770
22771 if test "$build" != "$host" ; then
22772 AR=$host_alias-ar
22773 STRIP=$host_alias-strip
22774 else
22775 # Extract the first word of "ar", so it can be a program name with args.
22776set dummy ar; ac_word=$2
22777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 22778echo "configure:22779: checking for $ac_word" >&5
fe0895cf
VS
22779if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
22780 echo $ac_n "(cached) $ac_c" 1>&6
22781else
22782 if test -n "$AR"; then
22783 ac_cv_prog_AR="$AR" # Let the user override the test.
22784else
22785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22786 ac_dummy="$PATH"
22787 for ac_dir in $ac_dummy; do
22788 test -z "$ac_dir" && ac_dir=.
22789 if test -f $ac_dir/$ac_word; then
22790 ac_cv_prog_AR="ar"
22791 break
22792 fi
22793 done
22794 IFS="$ac_save_ifs"
22795 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
22796fi
22797fi
22798AR="$ac_cv_prog_AR"
22799if test -n "$AR"; then
22800 echo "$ac_t""$AR" 1>&6
22801else
22802 echo "$ac_t""no" 1>&6
22803fi
22804
22805 # Extract the first word of "strip", so it can be a program name with args.
22806set dummy strip; ac_word=$2
22807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 22808echo "configure:22809: checking for $ac_word" >&5
fe0895cf
VS
22809if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
22810 echo $ac_n "(cached) $ac_c" 1>&6
22811else
22812 if test -n "$STRIP"; then
22813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
22814else
22815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22816 ac_dummy="$PATH"
22817 for ac_dir in $ac_dummy; do
22818 test -z "$ac_dir" && ac_dir=.
22819 if test -f $ac_dir/$ac_word; then
22820 ac_cv_prog_STRIP="strip"
22821 break
22822 fi
22823 done
22824 IFS="$ac_save_ifs"
22825 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
22826fi
22827fi
22828STRIP="$ac_cv_prog_STRIP"
22829if test -n "$STRIP"; then
22830 echo "$ac_t""$STRIP" 1>&6
22831else
22832 echo "$ac_t""no" 1>&6
22833fi
22834
22835 fi
22836
22837 case ${host} in
22838 *-hp-hpux* )
22839 INSTALL_DIR="mkdir"
22840 ;;
22841 *) INSTALL_DIR="$INSTALL -d"
22842 ;;
22843 esac
22844
22845
22846 fi
22847
22848 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
b9fbba05 22849echo "configure:22850: checking if make is GNU make" >&5
fe0895cf
VS
22850if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
22851 echo $ac_n "(cached) $ac_c" 1>&6
22852else
22853
22854 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
22855 egrep -s GNU > /dev/null); then
22856 bakefile_cv_prog_makeisgnu="yes"
22857 else
22858 bakefile_cv_prog_makeisgnu="no"
22859 fi
22860
22861fi
22862
22863echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
22864
22865 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
22866 IF_GNU_MAKE=""
22867 else
22868 IF_GNU_MAKE="#"
22869 fi
22870
22871
22872
22873 PLATFORM_UNIX=0
22874 PLATFORM_WIN32=0
22875 PLATFORM_MSDOS=0
22876 PLATFORM_MAC=0
22877 PLATFORM_MACOSX=0
22878
22879 case "${host}" in
22880 *-*-cygwin* | *-*-mingw32* )
22881 PLATFORM_WIN32=1
22882 ;;
22883 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
22884 PLATFORM_MSDOS=1
22885 ;;
22886 powerpc-*-darwin* )
22887 PLATFORM_MAC=1
22888 PLATFORM_MACOSX=1
22889 ;;
22890 * )
22891 PLATFORM_UNIX=1
22892 ;;
22893 esac
22894
22895
22896
22897
22898
22899
22900
22901
22902 SO_SUFFIX="so"
22903 EXEEXT=""
22904 DLLPREFIX=lib
22905
22906 case "${host}" in
22907 *-hp-hpux* )
22908 SO_SUFFIX="sl"
22909 ;;
22910 *-*-aix* )
22911 SO_SUFFIX="a"
22912 ;;
22913 *-*-cygwin* | *-*-mingw32* )
22914 SO_SUFFIX="dll"
22915 EXEEXT=".exe"
22916 DLLPREFIX=""
22917 ;;
22918 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
22919 EXEEXT=".exe"
22920 DLLPREFIX=""
22921 ;;
22922 powerpc-*-darwin* )
22923 SO_SUFFIX="dylib"
22924 ;;
22925 esac
22926
22927
22928
22929
22930
22931
22932 SHARED_LD_CC="\$(CC) -shared -o"
22933 SHARED_LD_CXX="\$(CXX) -shared -o"
22934
22935 if test "x$GCC" = "xyes"; then
22936 PIC_FLAG="-fPIC"
22937 fi
22938
22939 case "${host}" in
22940 *-hp-hpux* )
22941 if test "x$GCC" = "xyes"; then
22942 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
22943 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
22944 else
22945 LDFLAGS="$LDFLAGS -L/usr/lib"
22946
22947 SHARED_LD_CC="${CC} -b -o"
22948 SHARED_LD_CXX="${CXX} -b -o"
22949 PIC_FLAG="+Z"
22950 fi
22951 ;;
22952
22953 *-*-linux* )
22954 if test "x$GCC" != "xyes"; then
22955 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
b9fbba05 22956echo "configure:22957: checking for Intel compiler" >&5
fe0895cf
VS
22957if eval "test \"`echo '$''{'bakefile_cv_prog_icc'+set}'`\" = set"; then
22958 echo $ac_n "(cached) $ac_c" 1>&6
22959else
22960
22961 cat > conftest.$ac_ext <<EOF
b9fbba05 22962#line 22963 "configure"
fe0895cf
VS
22963#include "confdefs.h"
22964
22965int main() {
22966
22967 #ifndef __INTEL_COMPILER
22968 #error Not icc
22969 #endif
22970
22971; return 0; }
22972EOF
b9fbba05 22973if { (eval echo configure:22974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
fe0895cf
VS
22974 rm -rf conftest*
22975 bakefile_cv_prog_icc=yes
22976else
22977 echo "configure: failed program was:" >&5
22978 cat conftest.$ac_ext >&5
22979 rm -rf conftest*
22980 bakefile_cv_prog_icc=no
22981
22982fi
22983rm -f conftest*
22984
22985fi
22986
22987echo "$ac_t""$bakefile_cv_prog_icc" 1>&6
22988 if test "$bakefile_cv_prog_icc" = "yes"; then
22989 PIC_FLAG="-KPIC"
22990 fi
22991 fi
22992 ;;
22993
22994 *-*-solaris2* )
22995 if test "x$GCC" != xyes ; then
22996 SHARED_LD_CC="${CC} -G -o"
22997 SHARED_LD_CXX="${CXX} -G -o"
22998 PIC_FLAG="-KPIC"
22999 fi
23000 ;;
23001
23002 *-*-darwin* )
23003 CFLAGS="$CFLAGS -fno-common"
23004 CXXFLAGS="$CXXFLAGS -fno-common"
23005
23006
23007 cat <<EOF >shared-ld-sh
23008#!/bin/sh
23009#-----------------------------------------------------------------------------
23010#-- Name: distrib/mac/shared-ld-sh
23011#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
23012#-- Author: Gilles Depeyrot
23013#-- Copyright: (c) 2002 Gilles Depeyrot
23014#-- Licence: any use permitted
23015#-----------------------------------------------------------------------------
23016
23017verbose=0
23018args=""
23019objects=""
23020
23021while test \${#} -gt 0; do
23022 case \${1} in
23023
23024 -v)
23025 verbose=1
23026 ;;
23027
23028 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
23029 # collect these options and values
23030 args="\${args} \${1} \${2}"
23031 shift
23032 ;;
23033
23034 -l*|-L*|-flat_namespace)
23035 # collect these options
23036 args="\${args} \${1}"
23037 ;;
23038
23039 -dynamiclib)
23040 # skip these options
23041 ;;
23042
23043 -*)
23044 echo "shared-ld: unhandled option '\${1}'"
23045 exit 1
23046 ;;
23047
23048 *.o | *.a)
23049 # collect object files
23050 objects="\${objects} \${1}"
23051 ;;
23052
23053 *)
23054 echo "shared-ld: unhandled argument '\${1}'"
23055 exit 1
23056 ;;
23057
23058 esac
23059 shift
23060done
23061
23062#
23063# Link one module containing all the others
23064#
23065if test \${verbose} = 1; then
23066 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
23067fi
23068c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
23069status=\$?
23070if test \${status} != 0; then
23071 exit \${status}
23072fi
23073
23074#
23075# Link the shared library from the single module created
23076#
23077if test \${verbose} = 1; then
23078 echo "cc -dynamiclib master.\$\$.o \${args}"
23079fi
23080c++ -dynamiclib master.\$\$.o \${args}
23081status=\$?
23082if test \${status} != 0; then
23083 exit \${status}
23084fi
23085
23086#
23087# Remove intermediate module
23088#
23089rm -f master.\$\$.o
23090
23091exit 0
23092EOF
23093 chmod +x shared-ld-sh
23094
23095 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
23096 SHARED_LD_CXX="$SHARED_LD_CC"
23097 PIC_FLAG="-dynamic -fPIC"
23098 ;;
23099
23100 *-*-aix* )
23101 if test "x$GCC" != "xyes"; then
23102 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
23103set dummy makeC++SharedLib; ac_word=$2
23104echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 23105echo "configure:23106: checking for $ac_word" >&5
fe0895cf
VS
23106if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
23107 echo $ac_n "(cached) $ac_c" 1>&6
23108else
23109 if test -n "$AIX_CXX_LD"; then
23110 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
23111else
23112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23113 ac_dummy="$PATH"
23114 for ac_dir in $ac_dummy; do
23115 test -z "$ac_dir" && ac_dir=.
23116 if test -f $ac_dir/$ac_word; then
23117 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
23118 break
23119 fi
23120 done
23121 IFS="$ac_save_ifs"
23122 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
23123fi
23124fi
23125AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
23126if test -n "$AIX_CXX_LD"; then
23127 echo "$ac_t""$AIX_CXX_LD" 1>&6
23128else
23129 echo "$ac_t""no" 1>&6
23130fi
23131
23132 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
23133 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
23134 fi
23135 ;;
23136
23137 *-*-beos* )
23138 SHARED_LD_CC="${LD} -shared -o"
23139 SHARED_LD_CXX="${LD} -shared -o"
23140 ;;
23141
23142 *-*-irix* )
23143 if test "x$GCC" != "xyes"; then
23144 PIC_FLAG="-KPIC"
23145 fi
23146 ;;
23147
23148 *-*-cygwin* | *-*-mingw32* )
23149 PIC_FLAG=""
23150 ;;
23151
23152 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
23153 *-*-sunos4* | \
23154 *-*-osf* | \
23155 *-*-dgux5* | \
23156 *-*-sysv5* )
23157 ;;
23158
23159 *)
23160 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
23161 esac
23162
23163
23164
23165
23166
23167
23168 USE_SOVERSION=0
23169 USE_SOVERLINUX=0
23170 USE_SOVERSOLARIS=0
23171 USE_SOSYMLINKS=0
23172 USE_MACVERSION=0
23173 SONAME_FLAG=
23174
23175 case "${host}" in
23176 *-*-linux* )
23177 SONAME_FLAG="-Wl,-soname,"
23178 USE_SOVERSION=1
23179 USE_SOVERLINUX=1
23180 USE_SOSYMLINKS=1
23181 ;;
23182
23183 *-*-solaris2* )
23184 SONAME_FLAG="-h "
23185 USE_SOVERSION=1
23186 USE_SOVERSOLARIS=1
23187 USE_SOSYMLINKS=1
23188 ;;
23189
23190 *-*-darwin* )
23191 USE_MACVERSION=1
23192 USE_SOVERSION=1
23193 USE_SOSYMLINKS=1
23194 ;;
23195 esac
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205 DEPS_TYPE=no
23206 if test "x$GCC" = "xyes"; then
23207 DEPS_TYPE=gcc
23208 fi
23209
23210
23211
23212
23213 RESCOMP=
23214 SETFILE=
23215
23216 case ${host} in
23217 *-*-cygwin* | *-*-mingw32* )
23218 if test "$build" != "$host" ; then
23219 RESCOMP=$host_alias-windres
23220 else
23221 # Extract the first word of "windres", so it can be a program name with args.
23222set dummy windres; ac_word=$2
23223echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 23224echo "configure:23225: checking for $ac_word" >&5
fe0895cf
VS
23225if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
23226 echo $ac_n "(cached) $ac_c" 1>&6
23227else
23228 if test -n "$RESCOMP"; then
23229 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
23230else
23231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23232 ac_dummy="$PATH"
23233 for ac_dir in $ac_dummy; do
23234 test -z "$ac_dir" && ac_dir=.
23235 if test -f $ac_dir/$ac_word; then
23236 ac_cv_prog_RESCOMP="windres"
23237 break
23238 fi
23239 done
23240 IFS="$ac_save_ifs"
23241 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
23242fi
23243fi
23244RESCOMP="$ac_cv_prog_RESCOMP"
23245if test -n "$RESCOMP"; then
23246 echo "$ac_t""$RESCOMP" 1>&6
23247else
23248 echo "$ac_t""no" 1>&6
23249fi
23250
23251 fi
23252 ;;
23253
23254 *-*-darwin* )
23255 # Extract the first word of "Rez", so it can be a program name with args.
23256set dummy Rez; ac_word=$2
23257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 23258echo "configure:23259: checking for $ac_word" >&5
fe0895cf
VS
23259if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
23260 echo $ac_n "(cached) $ac_c" 1>&6
23261else
23262 if test -n "$RESCOMP"; then
23263 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
23264else
23265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23266 ac_dummy="$PATH"
23267 for ac_dir in $ac_dummy; do
23268 test -z "$ac_dir" && ac_dir=.
23269 if test -f $ac_dir/$ac_word; then
23270 ac_cv_prog_RESCOMP="Rez"
23271 break
23272 fi
23273 done
23274 IFS="$ac_save_ifs"
23275 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
23276fi
23277fi
23278RESCOMP="$ac_cv_prog_RESCOMP"
23279if test -n "$RESCOMP"; then
23280 echo "$ac_t""$RESCOMP" 1>&6
23281else
23282 echo "$ac_t""no" 1>&6
23283fi
23284
23285 # Extract the first word of "SetFile", so it can be a program name with args.
23286set dummy SetFile; ac_word=$2
23287echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b9fbba05 23288echo "configure:23289: checking for $ac_word" >&5
fe0895cf
VS
23289if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
23290 echo $ac_n "(cached) $ac_c" 1>&6
23291else
23292 if test -n "$SETFILE"; then
23293 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
23294else
23295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23296 ac_dummy="$PATH"
23297 for ac_dir in $ac_dummy; do
23298 test -z "$ac_dir" && ac_dir=.
23299 if test -f $ac_dir/$ac_word; then
23300 ac_cv_prog_SETFILE="SetFile"
23301 break
23302 fi
23303 done
23304 IFS="$ac_save_ifs"
23305 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
23306fi
23307fi
23308SETFILE="$ac_cv_prog_SETFILE"
23309if test -n "$SETFILE"; then
23310 echo "$ac_t""$SETFILE" 1>&6
23311else
23312 echo "$ac_t""no" 1>&6
23313fi
23314
23315 ;;
23316 esac
23317
23318
23319
23320
23321
23322
23323
23324 COND_WXUSE_ZLIBBUILTIN="#"
23325 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
23326 COND_WXUSE_ZLIBBUILTIN=
23327 fi
23328
23329 COND_UNICODE1="#"
23330 if test "x$UNICODE" = "x1" ; then
23331 COND_UNICODE1=
23332 fi
23333
23334 COND_BUILDDEBUG="#"
23335 if test "x$BUILD" = "xdebug" ; then
23336 COND_BUILDDEBUG=
23337 fi
23338
23339 COND_WXUSE_REGEXBUILTIN="#"
23340 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
23341 COND_WXUSE_REGEXBUILTIN=
23342 fi
23343
23344 COND_USE_SOSYMLINKS1="#"
23345 if test "x$USE_SOSYMLINKS" = "x1" ; then
23346 COND_USE_SOSYMLINKS1=
23347 fi
23348
23349 COND_WXUSE_LIBJPEGBUILTIN="#"
23350 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
23351 COND_WXUSE_LIBJPEGBUILTIN=
23352 fi
23353
23354 COND_WXUSE_LIBPNGBUILTIN="#"
23355 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
23356 COND_WXUSE_LIBPNGBUILTIN=
23357 fi
23358
23359 COND_WXUSE_ODBCBUILTIN="#"
23360 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
23361 COND_WXUSE_ODBCBUILTIN=
23362 fi
23363
23364 COND_TOOLKITGTK="#"
23365 if test "x$TOOLKIT" = "xGTK" ; then
23366 COND_TOOLKITGTK=
23367 fi
23368
23369 COND_TOOLKITMOTIF="#"
23370 if test "x$TOOLKIT" = "xMOTIF" ; then
23371 COND_TOOLKITMOTIF=
23372 fi
23373
23374 COND_TOOLKITMSW="#"
23375 if test "x$TOOLKIT" = "xMSW" ; then
23376 COND_TOOLKITMSW=
23377 fi
23378
23379 COND_TOOLKITMAC="#"
23380 if test "x$TOOLKIT" = "xMAC" ; then
23381 COND_TOOLKITMAC=
23382 fi
23383
23384 COND_TOOLKITCOCOA="#"
23385 if test "x$TOOLKIT" = "xCOCOA" ; then
23386 COND_TOOLKITCOCOA=
23387 fi
23388
23389 COND_TOOLKITOS2="#"
23390 if test "x$TOOLKIT" = "xOS2" ; then
23391 COND_TOOLKITOS2=
23392 fi
23393
23394 COND_TOOLKITX11="#"
23395 if test "x$TOOLKIT" = "xX11" ; then
23396 COND_TOOLKITX11=
23397 fi
23398
23399 COND_TOOLKITMGL="#"
23400 if test "x$TOOLKIT" = "xMGL" ; then
23401 COND_TOOLKITMGL=
23402 fi
23403
23404 COND_WXUNIV1="#"
23405 if test "x$WXUNIV" = "x1" ; then
23406 COND_WXUNIV1=
23407 fi
23408
23409 COND_SHARED0_MONOLITHIC1="#"
23410 if test "x$SHARED" = "x0" -a \
23411 "x$MONOLITHIC" = "x1" ; then
23412 COND_SHARED0_MONOLITHIC1=
23413 fi
23414
23415 COND_SHARED1_MONOLITHIC1="#"
23416 if test "x$SHARED" = "x1" -a \
23417 "x$MONOLITHIC" = "x1" ; then
23418 COND_SHARED1_MONOLITHIC1=
23419 fi
23420
23421 COND_PLATFORM_UNIX1="#"
23422 if test "x$PLATFORM_UNIX" = "x1" ; then
23423 COND_PLATFORM_UNIX1=
23424 fi
23425
23426 COND_PLATFORM_MACOSX1="#"
23427 if test "x$PLATFORM_MACOSX" = "x1" ; then
23428 COND_PLATFORM_MACOSX1=
23429 fi
23430
23431 COND_PLATFORM_WIN321="#"
23432 if test "x$PLATFORM_WIN32" = "x1" ; then
23433 COND_PLATFORM_WIN321=
23434 fi
23435
23436 COND_USE_SOVERSION1_PLATFORM_MACOSX0="#"
23437 if test "x$USE_SOVERSION" = "x1" -a \
23438 "x$PLATFORM_MACOSX" = "x0" ; then
23439 COND_USE_SOVERSION1_PLATFORM_MACOSX0=
23440 fi
23441
23442 COND_USE_SOVERSION1_PLATFORM_MACOSX1="#"
23443 if test "x$USE_SOVERSION" = "x1" -a \
23444 "x$PLATFORM_MACOSX" = "x1" ; then
23445 COND_USE_SOVERSION1_PLATFORM_MACOSX1=
23446 fi
23447
23448 COND_WXUSE_LIBTIFFBUILTIN="#"
23449 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
23450 COND_WXUSE_LIBTIFFBUILTIN=
23451 fi
23452
23453 COND_PLATFORM_WIN320="#"
23454 if test "x$PLATFORM_WIN32" = "x0" ; then
23455 COND_PLATFORM_WIN320=
23456 fi
23457
23458 COND_MONOLITHIC1="#"
23459 if test "x$MONOLITHIC" = "x1" ; then
23460 COND_MONOLITHIC1=
23461 fi
23462
23463 COND_MONOLITHIC0="#"
23464 if test "x$MONOLITHIC" = "x0" ; then
23465 COND_MONOLITHIC0=
23466 fi
23467
23468 COND_USE_GUI1="#"
23469 if test "x$USE_GUI" = "x1" ; then
23470 COND_USE_GUI1=
23471 fi
23472
23473 COND_DEPS_TYPEGCC="#"
23474 if test "x$DEPS_TYPE" = "xgcc" ; then
23475 COND_DEPS_TYPEGCC=
23476 fi
23477
23478 COND_USE_GUI0="#"
23479 if test "x$USE_GUI" = "x0" ; then
23480 COND_USE_GUI0=
23481 fi
23482
23483 COND_USE_GUI1_WXUNIV0="#"
23484 if test "x$USE_GUI" = "x1" -a \
23485 "x$WXUNIV" = "x0" ; then
23486 COND_USE_GUI1_WXUNIV0=
23487 fi
23488
23489 COND_USE_GUI1_WXUNIV1="#"
23490 if test "x$USE_GUI" = "x1" -a \
23491 "x$WXUNIV" = "x1" ; then
23492 COND_USE_GUI1_WXUNIV1=
23493 fi
23494
23495 COND_USE_SOVERLINUX1="#"
23496 if test "x$USE_SOVERLINUX" = "x1" ; then
23497 COND_USE_SOVERLINUX1=
23498 fi
23499
23500 COND_USE_SOVERSOLARIS1="#"
23501 if test "x$USE_SOVERSOLARIS" = "x1" ; then
23502 COND_USE_SOVERSOLARIS1=
23503 fi
23504
23505
23506
23507
23508if test "$GXX" = yes ; then
23509 CXXWARNINGS="-Wall"
23510 fi
23511
23512EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
23513
23514CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
23515CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
23516CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
23517LIBS=`echo $LIBS | sed 's/ \+/ /g'`
23518
23519LDFLAGS="$LDFLAGS $PROFILE"
23520
23521SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b9fbba05 23623echo "configure:23624: checking whether ${MAKE-make} sets \${MAKE}" >&5
fe0895cf
VS
23624set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
23625if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
23626 echo $ac_n "(cached) $ac_c" 1>&6
23627else
23628 cat > conftestmake <<\EOF
23629all:
23630 @echo 'ac_maketemp="${MAKE}"'
23631EOF
23632# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23633eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
23634if test -n "$ac_maketemp"; then
23635 eval ac_cv_prog_make_${ac_make}_set=yes
23636else
23637 eval ac_cv_prog_make_${ac_make}_set=no
23638fi
23639rm -f conftestmake
23640fi
23641if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
23642 echo "$ac_t""yes" 1>&6
23643 SET_MAKE=
23644else
23645 echo "$ac_t""no" 1>&6
23646 SET_MAKE="MAKE=${MAKE-make}"
23647fi
23648
23649
23650if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
23651 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
23652fi
23653
23654
23655
23656wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
23657wx_cv_if_gnu_make=$IF_GNU_MAKE
23658wx_cv_path_ifs=$PATH_IFS
23659wx_cv_program_ext=$PROGRAM_EXT
23660wx_cv_target_library=$WX_TARGET_LIBRARY
23661wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
23662wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
23663wx_cv_library_basename=${WX_LIBRARY_BASENAME}
23664wx_cv_release=${WX_RELEASE}
23665wx_cv_current=${WX_CURRENT}
23666wx_cv_revision=${WX_REVISION}
23667wx_cv_age=${WX_AGE}
23668wx_cv_use_gui=${USE_GUI}
23669wx_cv_use_resources=${wxUSE_RESOURCES}
23670export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
23671 wx_cv_path_ifs wx_cv_program_ext \
23672 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
23673 wx_cv_library_basename \
23674 wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
23675 wx_cv_use_gui wx_cv_use_resources \
23676 CFLAGS LDFLAGS CXXFLAGS CPPFLAGS \
23677 top_builddir USE_GUI MONOLITHIC \
23678 wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG \
23679 wxUSE_LIBTIFF EXTRALIBS UNICODE BUILD SHARED TOOLKIT TOOLKIT_LOWERCASE \
23680 TOOLKIT_VERSION SAMPLES_RPATH_FLAG WXUNIV
23681
23682subdirs="demos samples utils contrib"
8284b0c5 23683
10f2d63a 23684
a0b9e27f
MB
23685trap '' 1 2 15
23686cat > confcache <<\EOF
10f2d63a
VZ
23687# This file is a shell script that caches the results of configure
23688# tests run on this system so they can be shared between configure
a0b9e27f
MB
23689# scripts and configure runs. It is not useful on other systems.
23690# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 23691#
a0b9e27f
MB
23692# By default, configure uses ./config.cache as the cache file,
23693# creating it if it does not exist already. You can give configure
23694# the --cache-file=FILE option to use a different cache file; that is
23695# what configure does when it calls configure scripts in
23696# subdirectories, so they share the cache.
23697# Giving --cache-file=/dev/null disables caching, for debugging configure.
23698# config.status only pays attention to the cache file if you give it the
23699# --recheck option to rerun configure.
10f2d63a 23700#
a0b9e27f 23701EOF
10f2d63a
VZ
23702# The following way of writing the cache mishandles newlines in values,
23703# but we know of no workaround that is simple, portable, and efficient.
23704# So, don't put newlines in cache variables' values.
23705# Ultrix sh set writes to stderr and can't be redirected directly,
23706# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
23707(set) 2>&1 |
23708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23709 *ac_space=\ *)
23710 # `set' does not quote correctly, so add quotes (double-quote substitution
23711 # turns \\\\ into \\, and sed turns \\ into \).
23712 sed -n \
23713 -e "s/'/'\\\\''/g" \
23714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23715 ;;
23716 *)
23717 # `set' quotes correctly as required by POSIX, so do not add quotes.
23718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23719 ;;
23720 esac >> confcache
23721if cmp -s $cache_file confcache; then
23722 :
23723else
10f2d63a 23724 if test -w $cache_file; then
a0b9e27f
MB
23725 echo "updating cache $cache_file"
23726 cat confcache > $cache_file
10f2d63a
VZ
23727 else
23728 echo "not updating unwritable cache $cache_file"
23729 fi
23730fi
23731rm -f confcache
23732
a0b9e27f
MB
23733trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23734
10f2d63a
VZ
23735test "x$prefix" = xNONE && prefix=$ac_default_prefix
23736# Let make expand exec_prefix.
23737test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23738
a0b9e27f
MB
23739# Any assignment to VPATH causes Sun make to only execute
23740# the first set of double-colon rules, so remove it if not needed.
23741# If there is a colon in the path, we need to keep it.
10f2d63a 23742if test "x$srcdir" = x.; then
a0b9e27f 23743 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
23744fi
23745
a0b9e27f 23746trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 23747
a0b9e27f 23748DEFS=-DHAVE_CONFIG_H
8284b0c5 23749
a0b9e27f 23750# Without the "./", some shells look in PATH for config.status.
247f5006 23751: ${CONFIG_STATUS=./config.status}
52127426 23752
a0b9e27f
MB
23753echo creating $CONFIG_STATUS
23754rm -f $CONFIG_STATUS
23755cat > $CONFIG_STATUS <<EOF
23756#! /bin/sh
23757# Generated automatically by configure.
23758# Run this file to recreate the current configuration.
23759# This directory was configured as follows,
23760# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 23761#
a0b9e27f 23762# $0 $ac_configure_args
247f5006 23763#
a0b9e27f
MB
23764# Compiler output produced by configure, useful for debugging
23765# configure, is in ./config.log if it exists.
247f5006 23766
a0b9e27f
MB
23767ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23768for ac_option
247f5006 23769do
a0b9e27f
MB
23770 case "\$ac_option" in
23771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23772 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23773 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23774 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23775 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23776 exit 0 ;;
23777 -help | --help | --hel | --he | --h)
23778 echo "\$ac_cs_usage"; exit 0 ;;
23779 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
23780 esac
23781done
23782
a0b9e27f
MB
23783ac_given_srcdir=$srcdir
23784ac_given_INSTALL="$INSTALL"
247f5006 23785
a0b9e27f
MB
23786trap 'rm -fr `echo "
23787 wx-config
2b5f62a0 23788 version-script
a0b9e27f
MB
23789 Makefile
23790 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23791EOF
23792cat >> $CONFIG_STATUS <<EOF
247f5006 23793
a0b9e27f
MB
23794# Protect against being on the right side of a sed subst in config.status.
23795sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23796 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23797$ac_vpsub
23798$extrasub
23799s%@SHELL@%$SHELL%g
23800s%@CFLAGS@%$CFLAGS%g
23801s%@CPPFLAGS@%$CPPFLAGS%g
23802s%@CXXFLAGS@%$CXXFLAGS%g
23803s%@FFLAGS@%$FFLAGS%g
23804s%@DEFS@%$DEFS%g
23805s%@LDFLAGS@%$LDFLAGS%g
23806s%@LIBS@%$LIBS%g
23807s%@exec_prefix@%$exec_prefix%g
23808s%@prefix@%$prefix%g
23809s%@program_transform_name@%$program_transform_name%g
23810s%@bindir@%$bindir%g
23811s%@sbindir@%$sbindir%g
23812s%@libexecdir@%$libexecdir%g
23813s%@datadir@%$datadir%g
23814s%@sysconfdir@%$sysconfdir%g
23815s%@sharedstatedir@%$sharedstatedir%g
23816s%@localstatedir@%$localstatedir%g
23817s%@libdir@%$libdir%g
23818s%@includedir@%$includedir%g
23819s%@oldincludedir@%$oldincludedir%g
23820s%@infodir@%$infodir%g
23821s%@mandir@%$mandir%g
23822s%@host@%$host%g
23823s%@host_alias@%$host_alias%g
23824s%@host_cpu@%$host_cpu%g
23825s%@host_vendor@%$host_vendor%g
23826s%@host_os@%$host_os%g
23827s%@target@%$target%g
23828s%@target_alias@%$target_alias%g
23829s%@target_cpu@%$target_cpu%g
23830s%@target_vendor@%$target_vendor%g
23831s%@target_os@%$target_os%g
23832s%@build@%$build%g
23833s%@build_alias@%$build_alias%g
23834s%@build_cpu@%$build_cpu%g
23835s%@build_vendor@%$build_vendor%g
23836s%@build_os@%$build_os%g
23837s%@CC@%$CC%g
23838s%@CPP@%$CPP%g
23839s%@CXX@%$CXX%g
23840s%@RANLIB@%$RANLIB%g
23841s%@AR@%$AR%g
23842s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23843s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23844s%@INSTALL_DATA@%$INSTALL_DATA%g
23845s%@STRIP@%$STRIP%g
23846s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
23847s%@YACC@%$YACC%g
23848s%@LEX@%$LEX%g
23849s%@LEXLIB@%$LEXLIB%g
23850s%@LN_S@%$LN_S%g
23851s%@CXXCPP@%$CXXCPP%g
23852s%@PKG_CONFIG@%$PKG_CONFIG%g
23853s%@GTK_CFLAGS@%$GTK_CFLAGS%g
23854s%@GTK_LIBS@%$GTK_LIBS%g
23855s%@GTK_CONFIG@%$GTK_CONFIG%g
23856s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
23857s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
23858s%@X_CFLAGS@%$X_CFLAGS%g
23859s%@X_PRE_LIBS@%$X_PRE_LIBS%g
23860s%@X_LIBS@%$X_LIBS%g
23861s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
23862s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
23863s%@PANGOX_LIBS@%$PANGOX_LIBS%g
23864s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
23865s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
23866s%@AIX_CXX_LD@%$AIX_CXX_LD%g
23867s%@RESCOMP@%$RESCOMP%g
23868s%@DEREZ@%$DEREZ%g
36825681 23869s%@SETFILE@%$SETFILE%g
a0b9e27f 23870s%@LIBICONV@%$LIBICONV%g
fe0895cf
VS
23871s%@wxUSE_ZLIB@%$wxUSE_ZLIB%g
23872s%@wxUSE_REGEX@%$wxUSE_REGEX%g
23873s%@wxUSE_ODBC@%$wxUSE_ODBC%g
23874s%@wxUSE_LIBJPEG@%$wxUSE_LIBJPEG%g
23875s%@wxUSE_LIBPNG@%$wxUSE_LIBPNG%g
23876s%@wxUSE_LIBTIFF@%$wxUSE_LIBTIFF%g
23877s%@WXUNIV@%$WXUNIV%g
23878s%@MONOLITHIC@%$MONOLITHIC%g
23879s%@EXTRALIBS@%$EXTRALIBS%g
23880s%@UNICODE@%$UNICODE%g
23881s%@BUILD@%$BUILD%g
23882s%@SHARED@%$SHARED%g
23883s%@TOOLKIT_LOWERCASE@%$TOOLKIT_LOWERCASE%g
23884s%@TOOLKIT_VERSION@%$TOOLKIT_VERSION%g
23885s%@SAMPLES_RPATH_FLAG@%$SAMPLES_RPATH_FLAG%g
23886s%@SET_MAKE@%$SET_MAKE%g
23887s%@MAKE_SET@%$MAKE_SET%g
23888s%@INSTALL_DIR@%$INSTALL_DIR%g
23889s%@PLATFORM_UNIX@%$PLATFORM_UNIX%g
23890s%@PLATFORM_WIN32@%$PLATFORM_WIN32%g
23891s%@PLATFORM_MSDOS@%$PLATFORM_MSDOS%g
23892s%@PLATFORM_MAC@%$PLATFORM_MAC%g
23893s%@PLATFORM_MACOSX@%$PLATFORM_MACOSX%g
23894s%@SO_SUFFIX@%$SO_SUFFIX%g
23895s%@EXEEXT@%$EXEEXT%g
23896s%@DLLPREFIX@%$DLLPREFIX%g
23897s%@SHARED_LD_CC@%$SHARED_LD_CC%g
23898s%@SHARED_LD_CXX@%$SHARED_LD_CXX%g
23899s%@PIC_FLAG@%$PIC_FLAG%g
23900s%@USE_SOVERSION@%$USE_SOVERSION%g
23901s%@USE_SOVERLINUX@%$USE_SOVERLINUX%g
23902s%@USE_SOVERSOLARIS@%$USE_SOVERSOLARIS%g
23903s%@USE_MACVERSION@%$USE_MACVERSION%g
23904s%@USE_SOSYMLINKS@%$USE_SOSYMLINKS%g
23905s%@SONAME_FLAG@%$SONAME_FLAG%g
23906s%@DEPS_TYPE@%$DEPS_TYPE%g
23907s%@COND_WXUSE_ZLIBBUILTIN@%$COND_WXUSE_ZLIBBUILTIN%g
23908s%@COND_UNICODE1@%$COND_UNICODE1%g
23909s%@COND_BUILDDEBUG@%$COND_BUILDDEBUG%g
23910s%@COND_WXUSE_REGEXBUILTIN@%$COND_WXUSE_REGEXBUILTIN%g
23911s%@COND_USE_SOSYMLINKS1@%$COND_USE_SOSYMLINKS1%g
23912s%@COND_WXUSE_LIBJPEGBUILTIN@%$COND_WXUSE_LIBJPEGBUILTIN%g
23913s%@COND_WXUSE_LIBPNGBUILTIN@%$COND_WXUSE_LIBPNGBUILTIN%g
23914s%@COND_WXUSE_ODBCBUILTIN@%$COND_WXUSE_ODBCBUILTIN%g
23915s%@COND_TOOLKITGTK@%$COND_TOOLKITGTK%g
23916s%@COND_TOOLKITMOTIF@%$COND_TOOLKITMOTIF%g
23917s%@COND_TOOLKITMSW@%$COND_TOOLKITMSW%g
23918s%@COND_TOOLKITMAC@%$COND_TOOLKITMAC%g
23919s%@COND_TOOLKITCOCOA@%$COND_TOOLKITCOCOA%g
23920s%@COND_TOOLKITOS2@%$COND_TOOLKITOS2%g
23921s%@COND_TOOLKITX11@%$COND_TOOLKITX11%g
23922s%@COND_TOOLKITMGL@%$COND_TOOLKITMGL%g
23923s%@COND_WXUNIV1@%$COND_WXUNIV1%g
23924s%@COND_SHARED0_MONOLITHIC1@%$COND_SHARED0_MONOLITHIC1%g
23925s%@COND_SHARED1_MONOLITHIC1@%$COND_SHARED1_MONOLITHIC1%g
23926s%@COND_PLATFORM_UNIX1@%$COND_PLATFORM_UNIX1%g
23927s%@COND_PLATFORM_MACOSX1@%$COND_PLATFORM_MACOSX1%g
23928s%@COND_PLATFORM_WIN321@%$COND_PLATFORM_WIN321%g
23929s%@COND_USE_SOVERSION1_PLATFORM_MACOSX0@%$COND_USE_SOVERSION1_PLATFORM_MACOSX0%g
23930s%@COND_USE_SOVERSION1_PLATFORM_MACOSX1@%$COND_USE_SOVERSION1_PLATFORM_MACOSX1%g
23931s%@COND_WXUSE_LIBTIFFBUILTIN@%$COND_WXUSE_LIBTIFFBUILTIN%g
23932s%@COND_PLATFORM_WIN320@%$COND_PLATFORM_WIN320%g
23933s%@COND_MONOLITHIC1@%$COND_MONOLITHIC1%g
23934s%@COND_MONOLITHIC0@%$COND_MONOLITHIC0%g
23935s%@COND_USE_GUI1@%$COND_USE_GUI1%g
23936s%@COND_DEPS_TYPEGCC@%$COND_DEPS_TYPEGCC%g
23937s%@COND_USE_GUI0@%$COND_USE_GUI0%g
23938s%@COND_USE_GUI1_WXUNIV0@%$COND_USE_GUI1_WXUNIV0%g
23939s%@COND_USE_GUI1_WXUNIV1@%$COND_USE_GUI1_WXUNIV1%g
23940s%@COND_USE_SOVERLINUX1@%$COND_USE_SOVERLINUX1%g
23941s%@COND_USE_SOVERSOLARIS1@%$COND_USE_SOVERSOLARIS1%g
a0b9e27f
MB
23942s%@LEX_STEM@%$LEX_STEM%g
23943s%@PATH_IFS@%$PATH_IFS%g
23944s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
23945s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
23946s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
23947s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
23948s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 23949s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
23950s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
23951s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
23952s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
23953s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
23954s%@PROGRAM_EXT@%$PROGRAM_EXT%g
23955s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
23956s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
23957s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
23958s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
23959s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
23960s%@WX_ALL@%$WX_ALL%g
23961s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
23962s%@SHARED_LD@%$SHARED_LD%g
a0b9e27f
MB
23963s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
23964s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
23965s%@SONAME_FLAGS@%$SONAME_FLAGS%g
23966s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
23967s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
23968s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 23969s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
23970s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
23971s%@USE_GUI@%$USE_GUI%g
23972s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 23973s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
23974s%@TOOLKIT@%$TOOLKIT%g
23975s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
23976s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
23977s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
23978s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
23979s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 23980s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
23981s%@cross_compiling@%$cross_compiling%g
23982s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
23983s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
23984s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
23985s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
23986s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
23987s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 23988s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
23989s%@ALL_OBJECTS@%$ALL_OBJECTS%g
23990s%@ALL_HEADERS@%$ALL_HEADERS%g
23991s%@ALL_SOURCES@%$ALL_SOURCES%g
23992s%@GUIDIST@%$GUIDIST%g
23993s%@PORT_FILES@%$PORT_FILES%g
23994s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
23995s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
23996s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 23997s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
23998s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
23999s%@OPENGL_LIBS@%$OPENGL_LIBS%g
24000s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
2b5f62a0 24001s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
24002s%@RESFLAGS@%$RESFLAGS%g
24003s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
24004s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
24005s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
24006s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
24007s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
24008s%@MACRESCOMP@%$MACRESCOMP%g
24009s%@MACSETFILE@%$MACSETFILE%g
24010s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 24011s%@GCC@%$GCC%g
a0b9e27f
MB
24012s%@DLLTOOL@%$DLLTOOL%g
24013s%@AS@%$AS%g
24014s%@NM@%$NM%g
24015s%@LD@%$LD%g
24016s%@MAKEINFO@%$MAKEINFO%g
24017s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
a0b9e27f 24018s%@subdirs@%$subdirs%g
247f5006 24019
247f5006 24020CEOF
a0b9e27f 24021EOF
247f5006 24022
a0b9e27f
MB
24023cat >> $CONFIG_STATUS <<\EOF
24024
24025# Split the substitutions into bite-sized pieces for seds with
24026# small command number limits, like on Digital OSF/1 and HP-UX.
24027ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24028ac_file=1 # Number of current file.
24029ac_beg=1 # First line for current file.
24030ac_end=$ac_max_sed_cmds # Line after last line for current file.
24031ac_more_lines=:
24032ac_sed_cmds=""
24033while $ac_more_lines; do
24034 if test $ac_beg -gt 1; then
24035 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24036 else
24037 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24038 fi
24039 if test ! -s conftest.s$ac_file; then
24040 ac_more_lines=false
24041 rm -f conftest.s$ac_file
24042 else
24043 if test -z "$ac_sed_cmds"; then
24044 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 24045 else
a0b9e27f 24046 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 24047 fi
a0b9e27f
MB
24048 ac_file=`expr $ac_file + 1`
24049 ac_beg=$ac_end
24050 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 24051 fi
a0b9e27f
MB
24052done
24053if test -z "$ac_sed_cmds"; then
24054 ac_sed_cmds=cat
24055fi
24056EOF
10f2d63a 24057
a0b9e27f 24058cat >> $CONFIG_STATUS <<EOF
10f2d63a 24059
a0b9e27f 24060CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 24061 version-script
a0b9e27f
MB
24062 Makefile
24063 "}
24064EOF
24065cat >> $CONFIG_STATUS <<\EOF
24066for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24067 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24068 case "$ac_file" in
24069 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24070 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24071 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 24072 esac
247f5006 24073
a0b9e27f 24074 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 24075
a0b9e27f
MB
24076 # Remove last slash and all that follows it. Not all systems have dirname.
24077 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24078 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24079 # The file is in a subdirectory.
24080 test ! -d "$ac_dir" && mkdir "$ac_dir"
24081 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24082 # A "../" for each directory in $ac_dir_suffix.
24083 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24084 else
24085 ac_dir_suffix= ac_dots=
24086 fi
247f5006 24087
a0b9e27f
MB
24088 case "$ac_given_srcdir" in
24089 .) srcdir=.
24090 if test -z "$ac_dots"; then top_srcdir=.
24091 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24092 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 24093 *) # Relative path.
a0b9e27f
MB
24094 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24095 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 24096 esac
10f2d63a 24097
a0b9e27f
MB
24098 case "$ac_given_INSTALL" in
24099 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24100 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24101 esac
247f5006 24102
a0b9e27f
MB
24103 echo creating "$ac_file"
24104 rm -f "$ac_file"
24105 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24106 case "$ac_file" in
24107 *Makefile*) ac_comsub="1i\\
24108# $configure_input" ;;
24109 *) ac_comsub= ;;
24110 esac
247f5006 24111
a0b9e27f
MB
24112 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24113 sed -e "$ac_comsub
24114s%@configure_input@%$configure_input%g
24115s%@srcdir@%$srcdir%g
24116s%@top_srcdir@%$top_srcdir%g
24117s%@INSTALL@%$INSTALL%g
24118" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24119fi; done
24120rm -f conftest.s*
10f2d63a
VZ
24121
24122# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24123# NAME is the cpp macro being defined and VALUE is the value it is being given.
24124#
24125# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
24126ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24127ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24128ac_dC='\3'
24129ac_dD='%g'
24130# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24131ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24132ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 24133ac_uC=' '
a0b9e27f
MB
24134ac_uD='\4%g'
24135# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24136ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24137ac_eB='$%\1#\2define\3'
24138ac_eC=' '
24139ac_eD='%g'
24140
24141if test "${CONFIG_HEADERS+set}" != set; then
24142EOF
24143cat >> $CONFIG_STATUS <<EOF
24144 CONFIG_HEADERS="setup.h:setup.h.in"
24145EOF
24146cat >> $CONFIG_STATUS <<\EOF
24147fi
24148for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 24149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
24150 case "$ac_file" in
24151 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24152 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24153 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
24154 esac
24155
a0b9e27f
MB
24156 echo creating $ac_file
24157
24158 rm -f conftest.frag conftest.in conftest.out
24159 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24160 cat $ac_file_inputs > conftest.in
24161
24162EOF
24163
24164# Transform confdefs.h into a sed script conftest.vals that substitutes
24165# the proper values into config.h.in to produce config.h. And first:
24166# Protect against being on the right side of a sed subst in config.status.
24167# Protect against being in an unquoted here document in config.status.
24168rm -f conftest.vals
24169cat > conftest.hdr <<\EOF
24170s/[\\&%]/\\&/g
24171s%[\\$`]%\\&%g
24172s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24173s%ac_d%ac_u%gp
24174s%ac_u%ac_e%gp
24175EOF
24176sed -n -f conftest.hdr confdefs.h > conftest.vals
24177rm -f conftest.hdr
10f2d63a
VZ
24178
24179# This sed command replaces #undef with comments. This is necessary, for
24180# example, in the case of _POSIX_SOURCE, which is predefined and required
24181# on some systems where configure will not decide to define it.
a0b9e27f
MB
24182cat >> conftest.vals <<\EOF
24183s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24184EOF
24185
24186# Break up conftest.vals because some shells have a limit on
24187# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
24188
24189rm -f conftest.tail
a0b9e27f 24190while :
10f2d63a 24191do
a0b9e27f
MB
24192 ac_lines=`grep -c . conftest.vals`
24193 # grep -c gives empty output for an empty file on some AIX systems.
24194 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24195 # Write a limited-size here document to conftest.frag.
24196 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24197 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 24198 echo 'CEOF
a0b9e27f
MB
24199 sed -f conftest.frag conftest.in > conftest.out
24200 rm -f conftest.in
24201 mv conftest.out conftest.in
24202' >> $CONFIG_STATUS
24203 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24204 rm -f conftest.vals
24205 mv conftest.tail conftest.vals
10f2d63a 24206done
a0b9e27f
MB
24207rm -f conftest.vals
24208
24209cat >> $CONFIG_STATUS <<\EOF
24210 rm -f conftest.frag conftest.h
24211 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24212 cat conftest.in >> conftest.h
24213 rm -f conftest.in
24214 if cmp -s $ac_file conftest.h 2>/dev/null; then
24215 echo "$ac_file is unchanged"
24216 rm -f conftest.h
10f2d63a 24217 else
a0b9e27f
MB
24218 # Remove last slash and all that follows it. Not all systems have dirname.
24219 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24220 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24221 # The file is in a subdirectory.
24222 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 24223 fi
a0b9e27f
MB
24224 rm -f $ac_file
24225 mv conftest.h $ac_file
247f5006 24226 fi
a0b9e27f
MB
24227fi; done
24228
24229EOF
24230cat >> $CONFIG_STATUS <<EOF
24231
24232 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
24233 LN_S="${LN_S}"
24234
24235
24236EOF
24237cat >> $CONFIG_STATUS <<\EOF
10f2d63a 24238
652d930d 24239 if test ! -h wx-config; then
991a5759 24240 chmod +x wx-config
3a922bb4
RL
24241 mv wx-config wx${TOOLCHAIN_NAME}-config
24242 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 24243 fi
665bbe97 24244
00cf1208
RR
24245 if test ! -d lib; then
24246 mkdir lib
24247 fi
24248 if test ! -d lib/wx; then
24249 mkdir lib/wx
24250 fi
24251 if test ! -d lib/wx/include; then
24252 mkdir lib/wx/include
24253 fi
3a922bb4
RL
24254 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
24255 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 24256 fi
3a922bb4
RL
24257 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
24258 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
24259 fi
24260 if test -f setup.h; then
3a922bb4 24261 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 24262 fi
a0b9e27f
MB
24263
24264exit 0
24265EOF
10f2d63a 24266chmod +x $CONFIG_STATUS
a0b9e27f
MB
24267rm -fr confdefs* $ac_clean_files
24268test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 24269
2224580a
VZ
24270if test "$no_recursion" != yes; then
24271
24272 # Remove --cache-file and --srcdir arguments so they do not pile up.
24273 ac_sub_configure_args=
24274 ac_prev=
24275 for ac_arg in $ac_configure_args; do
24276 if test -n "$ac_prev"; then
24277 ac_prev=
24278 continue
24279 fi
a0b9e27f 24280 case "$ac_arg" in
2224580a
VZ
24281 -cache-file | --cache-file | --cache-fil | --cache-fi \
24282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24283 ac_prev=cache_file ;;
24284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 24285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
24286 ;;
24287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24288 ac_prev=srcdir ;;
24289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24290 ;;
24291 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24292 esac
24293 done
24294
a0b9e27f 24295 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
24296
24297 # Do not complain, so a configure script can configure whichever
24298 # parts of a large source tree are present.
a0b9e27f
MB
24299 if test ! -d $srcdir/$ac_config_dir; then
24300 continue
24301 fi
2224580a 24302
a0b9e27f 24303 echo configuring in $ac_config_dir
2224580a 24304
a0b9e27f
MB
24305 case "$srcdir" in
24306 .) ;;
24307 *)
24308 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
24309 else
24310 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
24311 fi
24312 ;;
24313 esac
2224580a 24314
a0b9e27f
MB
24315 ac_popdir=`pwd`
24316 cd $ac_config_dir
247f5006 24317
a0b9e27f
MB
24318 # A "../" for each directory in /$ac_config_dir.
24319 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 24320
a0b9e27f
MB
24321 case "$srcdir" in
24322 .) # No --srcdir option. We are building in place.
24323 ac_sub_srcdir=$srcdir ;;
24324 /*) # Absolute path.
24325 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
24326 *) # Relative path.
24327 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
24328 esac
2224580a
VZ
24329
24330 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
24331 if test -f $ac_sub_srcdir/configure; then
24332 ac_sub_configure=$ac_sub_srcdir/configure
24333 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
24334 ac_sub_configure=$ac_configure
24335 else
a0b9e27f 24336 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
24337 ac_sub_configure=
24338 fi
24339
24340 # The recursion is here.
24341 if test -n "$ac_sub_configure"; then
a0b9e27f 24342
2224580a 24343 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
24344 case "$cache_file" in
24345 /*) ac_sub_cache_file=$cache_file ;;
2224580a 24346 *) # Relative path.
a0b9e27f 24347 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 24348 esac
a0b9e27f
MB
24349 case "$ac_given_INSTALL" in
24350 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24351 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24352 esac
2224580a 24353
a0b9e27f 24354 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 24355 # The eval makes quoting arguments work.
a0b9e27f
MB
24356 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
24357 then :
24358 else
24359 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
24360 fi
2224580a
VZ
24361 fi
24362
24363 cd $ac_popdir
24364 done
24365fi
24366
8284b0c5 24367
2b5f62a0
VZ
24368echo
24369echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
24370echo ""
24371echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
24372
24373echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
24374echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
24375echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
24376
0c98a14e
GD
24377echo " What level of wxWindows compatibility should be enabled?"
24378echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
24379echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
24380echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 24381
2b5f62a0
VZ
24382echo " Which libraries should wxWindows use?"
24383echo " jpeg ${wxUSE_LIBJPEG-none}"
24384echo " png ${wxUSE_LIBPNG-none}"
24385echo " regex ${wxUSE_REGEX}"
24386echo " tiff ${wxUSE_LIBTIFF-none}"
24387echo " zlib ${wxUSE_ZLIB}"
fd3d7534 24388echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
24389
24390echo ""
24391