]> git.saurik.com Git - wxWidgets.git/blame - configure
adaptions for cleaned up string conversions & carbon events support
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
2b5f62a0
VZ
55
56
57
a0b9e27f
MB
58
59
60
61
62# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
2b5f62a0
VZ
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
a0b9e27f
MB
69
70
71
72
73
a0b9e27f
MB
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
89e6bf6d 99 --with-wine use Wine"
a0b9e27f
MB
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
b2fee376 139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
65d8ef1e
VS
163 --enable-compat22 enable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
166ac_help="$ac_help
167 --enable-rpath=DIR output the rpath flag from wx-config"
168ac_help="$ac_help
169 --enable-intl use internationalization system"
170ac_help="$ac_help
171 --enable-config use wxConfig (and derived) classes"
172ac_help="$ac_help
173 --enable-protocols use wxProtocol and derived classes"
174ac_help="$ac_help
175 --enable-ftp use wxFTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-http use wxHTTP (requires wxProtocol"
178ac_help="$ac_help
179 --enable-fileproto use wxFileProto class (requires wxProtocol"
180ac_help="$ac_help
181 --enable-sockets use socket/network classes"
3bce6687
JS
182ac_help="$ac_help
183 --enable-ole use OLE classes"
184ac_help="$ac_help
185 --enable-dataobj use data object classes"
a0b9e27f
MB
186ac_help="$ac_help
187 --enable-ipc use interprocess communication (wxSocket etc.)"
188ac_help="$ac_help
189 --enable-cmdline use wxCmdLineParser class"
190ac_help="$ac_help
191 --enable-datetime use wxDateTime class"
192ac_help="$ac_help
193 --enable-timedate use obsolete wxDate/wxTime classes"
194ac_help="$ac_help
195 --enable-stopwatch use wxStopWatch class"
196ac_help="$ac_help
197 --enable-dialupman use dialup network classes"
198ac_help="$ac_help
199 --enable-apple_ieee use the Apple IEEE codec"
200ac_help="$ac_help
201 --enable-timer use wxTimer class"
202ac_help="$ac_help
203 --enable-wave use wxWave class"
204ac_help="$ac_help
205 --enable-fraction use wxFraction class"
206ac_help="$ac_help
207 --enable-dynlib use wxLibrary class for DLL loading"
208ac_help="$ac_help
209 --enable-dynamicloader use (new) wxDynamicLibrary class"
210ac_help="$ac_help
211 --enable-longlong use wxLongLong class"
212ac_help="$ac_help
213 --enable-geometry use geometry class"
214ac_help="$ac_help
215 --enable-log use logging system"
216ac_help="$ac_help
217 --enable-streams use wxStream etc classes"
218ac_help="$ac_help
219 --enable-file use wxFile classes"
220ac_help="$ac_help
221 --enable-ffile use wxFFile classes"
222ac_help="$ac_help
223 --enable-textbuf use wxTextBuffer class"
224ac_help="$ac_help
225 --enable-textfile use wxTextFile class"
226ac_help="$ac_help
227 --enable-fontmap use font encodings conversion classes"
228ac_help="$ac_help
229 --enable-unicode compile wxString with Unicode support"
230ac_help="$ac_help
231 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
232ac_help="$ac_help
233 --enable-wxprintfv use wxWindows implementation of vprintf()"
234ac_help="$ac_help
235 --enable-std_iostreams use standard C++ stream classes"
236ac_help="$ac_help
237 --enable-filesystem use virtual file systems classes"
238ac_help="$ac_help
239 --enable-fs_inet use virtual HTTP/FTP filesystems"
240ac_help="$ac_help
241 --enable-fs_zip use virtual ZIP filesystems"
242ac_help="$ac_help
243 --enable-zipstream use wxZipInputStream"
244ac_help="$ac_help
245 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
246ac_help="$ac_help
247 --enable-snglinst use wxSingleInstanceChecker class"
248ac_help="$ac_help
249 --enable-mimetype use wxMimeTypesManager"
250ac_help="$ac_help
251 --enable-sysoptions use wxSystemOptions"
252ac_help="$ac_help
253 --enable-url use wxURL class"
254ac_help="$ac_help
255 --enable-protocol use wxProtocol class"
256ac_help="$ac_help
257 --enable-protocol-http HTTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-ftp FTP support in wxProtocol"
260ac_help="$ac_help
261 --enable-protocol-file FILE support in wxProtocol"
262ac_help="$ac_help
263 --enable-threads use threads"
264ac_help="$ac_help
265 --enable-docview use document view architecture"
266ac_help="$ac_help
267 --enable-help use help subsystem"
268ac_help="$ac_help
269 --enable-mshtmlhelp use MS HTML Help (win32)"
270ac_help="$ac_help
271 --enable-html use wxHTML sub-library"
272ac_help="$ac_help
273 --enable-htmlhelp use wxHTML-based help"
274ac_help="$ac_help
275 --enable-constraints use layout-constraints system"
276ac_help="$ac_help
277 --enable-printarch use printing architecture"
278ac_help="$ac_help
279 --enable-mdi use multiple document interface architecture"
280ac_help="$ac_help
281 --enable-loggui use standard GUI logger"
282ac_help="$ac_help
283 --enable-logwin use wxLogWindow"
284ac_help="$ac_help
285 --enable-logdialog use wxLogDialog"
286ac_help="$ac_help
287 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
288ac_help="$ac_help
289 --enable-prologio use Prolog IO library"
290ac_help="$ac_help
291 --enable-resources use wxWindows resources"
292ac_help="$ac_help
293 --enable-xresources use X resources for save (default for gtk+)"
294ac_help="$ac_help
295 --enable-clipboard use wxClipboard classes"
296ac_help="$ac_help
297 --enable-dnd use Drag'n'Drop classes"
298ac_help="$ac_help
299 --enable-metafile use win32 metafiles"
300ac_help="$ac_help
301 --enable-treelayout use wxTreeLayout classes"
302ac_help="$ac_help
303 --enable-controls use all usual controls"
304ac_help="$ac_help
305 --enable-accel use accelerators"
306ac_help="$ac_help
307 --enable-button use wxButton class"
308ac_help="$ac_help
309 --enable-bmpbutton use wxBitmapButton class"
310ac_help="$ac_help
311 --enable-calendar use wxCalendarCtrl class"
312ac_help="$ac_help
313 --enable-caret use wxCaret class"
314ac_help="$ac_help
315 --enable-checkbox use wxCheckBox class"
316ac_help="$ac_help
317 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
318ac_help="$ac_help
319 --enable-choice use wxChoice class"
320ac_help="$ac_help
321 --enable-combobox use wxComboBox classes"
322ac_help="$ac_help
323 --enable-gauge use wxGauge class"
324ac_help="$ac_help
325 --enable-grid use wxGrid class"
326ac_help="$ac_help
327 --enable-newgrid use new wxGrid class"
328ac_help="$ac_help
329 --enable-imaglist use wxImageList class"
330ac_help="$ac_help
331 --enable-listbox use wxListBox class"
332ac_help="$ac_help
333 --enable-listctrl use wxListCtrl class"
334ac_help="$ac_help
335 --enable-notebook use wxNotebook class"
336ac_help="$ac_help
337 --enable-propsheet use wxPropertySheet class"
338ac_help="$ac_help
339 --enable-radiobox use wxRadioBox class"
340ac_help="$ac_help
341 --enable-radiobtn use wxRadioButton class"
342ac_help="$ac_help
343 --enable-sash use wxSashWindow class"
344ac_help="$ac_help
345 --enable-scrollbar use wxScrollBar class and scrollable windows"
346ac_help="$ac_help
347 --enable-slider use wxSlider class"
348ac_help="$ac_help
349 --enable-spinbtn use wxSpinButton class"
350ac_help="$ac_help
351 --enable-spinctrl use wxSpinCtrl class"
352ac_help="$ac_help
353 --enable-splitter use wxSplitterWindow class"
354ac_help="$ac_help
355 --enable-statbmp use wxStaticBitmap class"
356ac_help="$ac_help
357 --enable-statbox use wxStaticBox class"
358ac_help="$ac_help
359 --enable-statline use wxStaticLine class"
360ac_help="$ac_help
361 --enable-stattext use wxStaticText class"
362ac_help="$ac_help
363 --enable-statusbar use wxStatusBar class"
364ac_help="$ac_help
365 --enable-tabdialog use wxTabControl class"
366ac_help="$ac_help
367 --enable-textctrl use wxTextCtrl class"
368ac_help="$ac_help
369 --enable-togglebtn use wxToggleButton class"
370ac_help="$ac_help
371 --enable-toolbar use wxToolBar class"
372ac_help="$ac_help
373 --enable-tbarnative use native wxToolBar class"
374ac_help="$ac_help
375 --enable-tbarsmpl use wxToolBarSimple class"
376ac_help="$ac_help
377 --enable-treectrl use wxTreeCtrl class"
378ac_help="$ac_help
379 --enable-tipwindow use wxTipWindow class"
380ac_help="$ac_help
381 --enable-popupwin use wxPopUpWindow class"
382ac_help="$ac_help
383 --enable-commondlg use all common dialogs"
384ac_help="$ac_help
385 --enable-choicedlg use wxChoiceDialog"
386ac_help="$ac_help
387 --enable-coldlg use wxColourDialog"
388ac_help="$ac_help
389 --enable-filedlg use wxFileDialog"
390ac_help="$ac_help
391 --enable-finddlg use wxFindReplaceDialog"
392ac_help="$ac_help
393 --enable-fontdlg use wxFontDialog"
394ac_help="$ac_help
395 --enable-dirdlg use wxDirDialog"
396ac_help="$ac_help
397 --enable-msgdlg use wxMessageDialog"
398ac_help="$ac_help
399 --enable-numberdlg use wxNumberEntryDialog"
400ac_help="$ac_help
401 --enable-splash use wxSplashScreen"
402ac_help="$ac_help
403 --enable-textdlg use wxTextDialog"
404ac_help="$ac_help
405 --enable-tipdlg use startup tips"
406ac_help="$ac_help
407 --enable-progressdlg use wxProgressDialog"
408ac_help="$ac_help
409 --enable-wizarddlg use wxWizard"
410ac_help="$ac_help
411 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
412ac_help="$ac_help
413 --enable-miniframe use wxMiniFrame class"
414ac_help="$ac_help
415 --enable-tooltips use wxToolTip class"
416ac_help="$ac_help
417 --enable-splines use spline drawing code"
418ac_help="$ac_help
419 --enable-validators use wxValidator and derived classes"
420ac_help="$ac_help
421 --enable-busyinfo use wxBusyInfo"
422ac_help="$ac_help
423 --enable-joystick use wxJoystick (Linux only)"
424ac_help="$ac_help
425 --enable-metafiles use wxMetaFile (Windows only)"
426ac_help="$ac_help
427 --enable-dragimage use wxDragImage"
428ac_help="$ac_help
429 --enable-palette use wxPalette class"
430ac_help="$ac_help
431 --enable-image use wxImage class"
432ac_help="$ac_help
433 --enable-gif use gif images (GIF file format)"
434ac_help="$ac_help
435 --enable-pcx use pcx images (PCX file format)"
436ac_help="$ac_help
437 --enable-iff use iff images (IFF file format)"
438ac_help="$ac_help
439 --enable-pnm use pnm images (PNM file format)"
440ac_help="$ac_help
441 --enable-xpm use xpm images (XPM file format)"
442ac_help="$ac_help
443 --enable-icocur use Windows ICO and CUR formats"
444ac_help="$ac_help
445 --disable-largefile omit support for large files"
446ac_help="$ac_help
447 --disable-gtktest do not try to compile and run a test GTK+ program"
448ac_help="$ac_help
449 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
450ac_help="$ac_help
451 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
452ac_help="$ac_help
453 --disable-gtktest Do not try to compile and run a test GTK program"
454ac_help="$ac_help
455 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
456ac_help="$ac_help
457 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
458ac_help="$ac_help
459 --disable-gtktest Do not try to compile and run a test GTK program"
460ac_help="$ac_help
461 --with-x use the X Window System"
462ac_help="$ac_help
463 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
464
465# Initialize some variables set by options.
466# The variables have the same names as the options, with
467# dashes changed to underlines.
a0b9e27f
MB
468build=NONE
469cache_file=./config.cache
10f2d63a 470exec_prefix=NONE
a0b9e27f 471host=NONE
10f2d63a 472no_create=
a0b9e27f 473nonopt=NONE
10f2d63a
VZ
474no_recursion=
475prefix=NONE
476program_prefix=NONE
477program_suffix=NONE
478program_transform_name=s,x,x,
479silent=
480site=
481srcdir=
a0b9e27f 482target=NONE
10f2d63a
VZ
483verbose=
484x_includes=NONE
485x_libraries=NONE
486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
498
a0b9e27f
MB
499# Initialize some other variables.
500subdirs=
501MFLAGS= MAKEFLAGS=
502SHELL=${CONFIG_SHELL-/bin/sh}
503# Maximum number of lines to put in a shell here document.
504ac_max_here_lines=12
505
10f2d63a
VZ
506ac_prev=
507for ac_option
508do
a0b9e27f 509
10f2d63a
VZ
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
a0b9e27f
MB
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
10f2d63a
VZ
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
a0b9e27f 524 case "$ac_option" in
10f2d63a
VZ
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 529 bindir="$ac_optarg" ;;
10f2d63a
VZ
530
531 -build | --build | --buil | --bui | --bu)
a0b9e27f 532 ac_prev=build ;;
10f2d63a 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 534 build="$ac_optarg" ;;
10f2d63a
VZ
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 541 cache_file="$ac_optarg" ;;
10f2d63a
VZ
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
a0b9e27f 547 datadir="$ac_optarg" ;;
10f2d63a
VZ
548
549 -disable-* | --disable-*)
a0b9e27f 550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 551 # Reject names that are not valid shell variable names.
a0b9e27f
MB
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
557
558 -enable-* | --enable-*)
a0b9e27f 559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 560 # Reject names that are not valid shell variable names.
a0b9e27f
MB
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
10f2d63a
VZ
567 *) ac_optarg=yes ;;
568 esac
a0b9e27f 569 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
a0b9e27f 578 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
a0b9e27f
MB
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588Usage: configure [options] [host]
589Options: [defaults in brackets after descriptions]
590Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
600 [same as prefix]
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620EOF
621 cat << EOF
622Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
633EOF
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
637 exit 0 ;;
10f2d63a
VZ
638
639 -host | --host | --hos | --ho)
a0b9e27f 640 ac_prev=host ;;
10f2d63a 641 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 642 host="$ac_optarg" ;;
10f2d63a
VZ
643
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 649 includedir="$ac_optarg" ;;
10f2d63a
VZ
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 654 infodir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 659 libdir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 666 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 675 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 680 mandir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 687 | --no-cr | --no-c)
10f2d63a
VZ
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 701 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
702
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 706 prefix="$ac_optarg" ;;
10f2d63a
VZ
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 713 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 720 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 737 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
a0b9e27f 747 sbindir="$ac_optarg" ;;
10f2d63a
VZ
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
a0b9e27f 758 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
759
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
a0b9e27f 763 site="$ac_optarg" ;;
10f2d63a
VZ
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 768 srcdir="$ac_optarg" ;;
10f2d63a
VZ
769
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 775 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
776
777 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 778 ac_prev=target ;;
10f2d63a 779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 780 target="$ac_optarg" ;;
10f2d63a
VZ
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
a0b9e27f
MB
785 -version | --version | --versio | --versi | --vers)
786 echo "configure generated by autoconf version 2.13"
787 exit 0 ;;
10f2d63a
VZ
788
789 -with-* | --with-*)
a0b9e27f 790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 791 # Reject names that are not valid shell variable names.
a0b9e27f
MB
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
10f2d63a 795 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
796 case "$ac_option" in
797 *=*) ;;
10f2d63a
VZ
798 *) ac_optarg=yes ;;
799 esac
a0b9e27f 800 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
801
802 -without-* | --without-*)
a0b9e27f 803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 804 # Reject names that are not valid shell variable names.
a0b9e27f
MB
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 820 x_includes="$ac_optarg" ;;
10f2d63a
VZ
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 827 x_libraries="$ac_optarg" ;;
10f2d63a 828
a0b9e27f 829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
830 ;;
831
832 *)
a0b9e27f
MB
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
10f2d63a
VZ
840 ;;
841
842 esac
843done
844
845if test -n "$ac_prev"; then
a0b9e27f 846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 847fi
8284b0c5 848
a0b9e27f
MB
849trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851# File descriptor usage:
852# 0 standard input
853# 1 file creation
854# 2 errors and warnings
855# 3 some systems may open it to /dev/tty
856# 4 used on the Kubota Titan
857# 6 checking for... messages and results
858# 5 compiler messages saved in config.log
859if test "$silent" = yes; then
860 exec 6>/dev/null
861else
862 exec 6>&1
863fi
864exec 5>./config.log
865
866echo "\
867This file contains any messages produced by compilers while
868running configure, to aid debugging if configure makes a mistake.
869" 1>&5
8284b0c5 870
a0b9e27f
MB
871# Strip out --no-create and --no-recursion so they do not pile up.
872# Also quote any args containing shell metacharacters.
873ac_configure_args=
874for ac_arg
10f2d63a 875do
a0b9e27f
MB
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
884 esac
885done
886
a0b9e27f
MB
887# NLS nuisances.
888# Only set these to C if already set. These must not be set unconditionally
889# because not all systems understand e.g. LANG=C (notably SCO).
890# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891# Non-C LC_CTYPE values break the ctype check.
892if test "${LANG+set}" = set; then LANG=C; export LANG; fi
893if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 896
a0b9e27f
MB
897# confdefs.h avoids OS command line length limits that DEFS can exceed.
898rm -rf conftest* confdefs.h
899# AIX cpp loses on an empty file, so make sure it contains at least a newline.
900echo > confdefs.h
10f2d63a 901
a0b9e27f
MB
902# A filename unique to this package, relative to the directory that
903# configure is in, which we can look for to find out if srcdir is correct.
904ac_unique_file=wx-config.in
10f2d63a
VZ
905
906# Find the source files, if location was not specified.
907if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
a0b9e27f
MB
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917else
918 ac_srcdir_defaulted=no
919fi
920if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 923 else
a0b9e27f 924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
925 fi
926fi
a0b9e27f 927srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 928
10f2d63a
VZ
929# Prefer explicitly selected file to automatically selected ones.
930if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936fi
937for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
a0b9e27f 939 echo "loading site script $ac_site_file"
10f2d63a
VZ
940 . "$ac_site_file"
941 fi
942done
943
944if test -r "$cache_file"; then
a0b9e27f
MB
945 echo "loading cache $cache_file"
946 . $cache_file
10f2d63a 947else
a0b9e27f
MB
948 echo "creating cache $cache_file"
949 > $cache_file
10f2d63a
VZ
950fi
951
952ac_ext=c
a0b9e27f 953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 954ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957cross_compiling=$ac_cv_prog_cc_cross
958
959ac_exeext=
960ac_objext=o
961if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969else
970 ac_n= ac_c='\c' ac_t=
971fi
8284b0c5
MB
972
973
10f2d63a 974
7c66a493
VZ
975ac_aux_dir=
976for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
247f5006 985 fi
7c66a493
VZ
986done
987if test -z "$ac_aux_dir"; then
a0b9e27f 988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 989fi
a0b9e27f
MB
990ac_config_guess=$ac_aux_dir/config.guess
991ac_config_sub=$ac_aux_dir/config.sub
992ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 993
8284b0c5 994
a0b9e27f
MB
995# Do some error checking and defaulting for the host and target type.
996# The inputs are:
997# configure --host=HOST --target=TARGET --build=BUILD NONOPT
998#
999# The rules are:
1000# 1. You are not allowed to specify --host, --target, and nonopt at the
1001# same time.
1002# 2. Host defaults to nonopt.
1003# 3. If nonopt is not specified, then host defaults to the current host,
1004# as determined by config.guess.
1005# 4. Target and build default to nonopt.
1006# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1007
1008# The aliases save the names the user supplied, while $host etc.
1009# will get canonicalized.
a0b9e27f
MB
1010case $host---$target---$nonopt in
1011NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013esac
1014
1015
1016# Make sure we can run config.sub.
1017if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019fi
1020
1021echo $ac_n "checking host system type""... $ac_c" 1>&6
65d8ef1e 1022echo "configure:1023: checking host system type" >&5
a0b9e27f
MB
1023
1024host_alias=$host
1025case "$host_alias" in
1026NONE)
1027 case $nonopt in
1028 NONE)
1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034esac
1035
1036host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040echo "$ac_t""$host" 1>&6
1041
1042echo $ac_n "checking target system type""... $ac_c" 1>&6
65d8ef1e 1043echo "configure:1044: checking target system type" >&5
a0b9e27f
MB
1044
1045target_alias=$target
1046case "$target_alias" in
1047NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052esac
1053
1054target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058echo "$ac_t""$target" 1>&6
1059
1060echo $ac_n "checking build system type""... $ac_c" 1>&6
65d8ef1e 1061echo "configure:1062: checking build system type" >&5
a0b9e27f
MB
1062
1063build_alias=$build
1064case "$build_alias" in
1065NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070esac
1071
1072build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076echo "$ac_t""$build" 1>&6
1077
1078test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
8284b0c5
MB
1082
1083
a0b9e27f 1084
10f2d63a 1085WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1086WX_MINOR_VERSION_NUMBER=5
1087WX_RELEASE_NUMBER=0
10f2d63a 1088
10f2d63a 1089WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1090WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1091
978f1259
RL
1092WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1093
34bed6d9 1094WX_CURRENT=0
6426998c
RL
1095WX_REVISION=0
1096WX_AGE=0
1097
8284b0c5
MB
1098
1099
10f2d63a
VZ
1100USE_UNIX=1
1101USE_WIN32=0
f9bc1684 1102USE_DOS=0
b12915c1 1103USE_BEOS=0
1216f52d 1104USE_MAC=0
b12915c1 1105
10f2d63a
VZ
1106USE_LINUX=
1107USE_SGI=
1108USE_HPUX=
1109USE_SYSV=
1110USE_SVR4=
1111USE_AIX=
1112USE_SUN=
1113USE_SOLARIS=
1114USE_SUNOS=
1115USE_ALPHA=
1116USE_OSF=
1117USE_BSD=
f11bdd03 1118USE_DARWIN=
10f2d63a 1119USE_FREEBSD=
95c8801c 1120USE_OPENBSD=
f6bcfd97 1121USE_NETBSD=
10f2d63a
VZ
1122USE_VMS=
1123USE_ULTRIX=
10f2d63a
VZ
1124USE_DATA_GENERAL=
1125
ab9b9eab
VZ
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
89e6bf6d 1128ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a
VZ
1129
1130DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1131DEFAULT_wxUSE_MAC=0
1132DEFAULT_wxUSE_MGL=0
1725144d 1133DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1134DEFAULT_wxUSE_MOTIF=0
1135DEFAULT_wxUSE_MSW=0
e07802fc 1136DEFAULT_wxUSE_PM=0
f79bd02d 1137DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1138
1139DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1140DEFAULT_DEFAULT_wxUSE_MAC=0
1141DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1142DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1143DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1145DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1146DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1147
d6a55c4b 1148PROGRAM_EXT=
3a922bb4 1149SO_SUFFIX=so
d6a55c4b 1150
10f2d63a
VZ
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1156 SO_SUFFIX=sl
a0b9e27f 1157 cat >> confdefs.h <<\EOF
10f2d63a 1158#define __HPUX__ 1
a0b9e27f 1159EOF
10f2d63a
VZ
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
a0b9e27f 1164 cat >> confdefs.h <<\EOF
10f2d63a 1165#define __LINUX__ 1
a0b9e27f 1166EOF
10f2d63a
VZ
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
a0b9e27f 1171 cat >> confdefs.h <<\EOF
10f2d63a 1172#define __ALPHA__ 1
a0b9e27f 1173EOF
10f2d63a
VZ
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
a0b9e27f 1181 cat >> confdefs.h <<\EOF
10f2d63a 1182#define __SGI__ 1
a0b9e27f 1183EOF
10f2d63a 1184
a0b9e27f 1185 cat >> confdefs.h <<\EOF
10f2d63a 1186#define __SVR4__ 1
a0b9e27f 1187EOF
10f2d63a
VZ
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
a0b9e27f 1195 cat >> confdefs.h <<\EOF
10f2d63a 1196#define __SUN__ 1
a0b9e27f 1197EOF
10f2d63a 1198
a0b9e27f 1199 cat >> confdefs.h <<\EOF
10f2d63a 1200#define __SOLARIS__ 1
a0b9e27f 1201EOF
10f2d63a 1202
a0b9e27f 1203 cat >> confdefs.h <<\EOF
10f2d63a 1204#define __SVR4__ 1
a0b9e27f 1205EOF
10f2d63a
VZ
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
a0b9e27f 1214 cat >> confdefs.h <<\EOF
10f2d63a 1215#define __SUN__ 1
a0b9e27f 1216EOF
10f2d63a 1217
a0b9e27f 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __SUNOS__ 1
a0b9e27f 1220EOF
10f2d63a 1221
a0b9e27f 1222 cat >> confdefs.h <<\EOF
10f2d63a 1223#define __BSD__ 1
a0b9e27f 1224EOF
10f2d63a
VZ
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
f6bcfd97 1228 *-*-freebsd*)
10f2d63a
VZ
1229 USE_BSD=1
1230 USE_FREEBSD=1
a0b9e27f 1231 cat >> confdefs.h <<\EOF
10f2d63a 1232#define __FREEBSD__ 1
a0b9e27f 1233EOF
10f2d63a 1234
a0b9e27f 1235 cat >> confdefs.h <<\EOF
10f2d63a 1236#define __BSD__ 1
a0b9e27f 1237EOF
95c8801c
VS
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
a0b9e27f 1244 cat >> confdefs.h <<\EOF
2b5f62a0 1245#define __OPENBSD__ 1
a0b9e27f 1246EOF
95c8801c 1247
a0b9e27f 1248 cat >> confdefs.h <<\EOF
2b5f62a0 1249#define __BSD__ 1
a0b9e27f 1250EOF
f6bcfd97
BP
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
a0b9e27f 1257 cat >> confdefs.h <<\EOF
2b5f62a0 1258#define __NETBSD__ 1
a0b9e27f 1259EOF
f6bcfd97 1260
a0b9e27f 1261 cat >> confdefs.h <<\EOF
2b5f62a0 1262#define __BSD__ 1
a0b9e27f 1263EOF
10f2d63a
VZ
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
a0b9e27f 1270 cat >> confdefs.h <<\EOF
10f2d63a 1271#define __ALPHA__ 1
a0b9e27f 1272EOF
10f2d63a 1273
a0b9e27f 1274 cat >> confdefs.h <<\EOF
10f2d63a 1275#define __OSF__ 1
a0b9e27f 1276EOF
10f2d63a
VZ
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
a0b9e27f 1284 cat >> confdefs.h <<\EOF
10f2d63a 1285#define __ALPHA__ 1
a0b9e27f 1286EOF
10f2d63a 1287
a0b9e27f 1288 cat >> confdefs.h <<\EOF
10f2d63a 1289#define __SVR4__ 1
a0b9e27f 1290EOF
10f2d63a
VZ
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
a0b9e27f 1297 cat >> confdefs.h <<\EOF
10f2d63a 1298#define __SYSV__ 1
a0b9e27f 1299EOF
10f2d63a 1300
a0b9e27f 1301 cat >> confdefs.h <<\EOF
10f2d63a 1302#define __SVR4__ 1
a0b9e27f 1303EOF
10f2d63a
VZ
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
2b5f62a0 1311 SO_SUFFIX=a
a0b9e27f 1312 cat >> confdefs.h <<\EOF
10f2d63a 1313#define __AIX__ 1
a0b9e27f 1314EOF
10f2d63a 1315
a0b9e27f 1316 cat >> confdefs.h <<\EOF
10f2d63a 1317#define __SYSV__ 1
a0b9e27f 1318EOF
10f2d63a 1319
a0b9e27f 1320 cat >> confdefs.h <<\EOF
10f2d63a 1321#define __SVR4__ 1
a0b9e27f 1322EOF
10f2d63a
VZ
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1c8183e2 1327 *-*-cygwin* | *-*-mingw32* )
17234b26 1328 SO_SUFFIX=dll
cf27ef00 1329 PROGRAM_EXT=".exe"
7b7a7637 1330 RESCOMP=windres
10f2d63a
VZ
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
f9bc1684
VS
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
a0b9e27f 1337 cat >> confdefs.h <<\EOF
f9bc1684 1338#define __DOS__ 1
a0b9e27f 1339EOF
f9bc1684
VS
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1343 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1344 ;;
1345
6fa882bd 1346 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1347 cat >> confdefs.h <<\EOF
10f2d63a 1348#define __EMX__ 1
a0b9e27f 1349EOF
10f2d63a 1350
cf27ef00 1351 PROGRAM_EXT=".exe"
e07802fc 1352 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1353 ;;
1354
d08b457b
GD
1355 powerpc-*-darwin* )
1356 USE_BSD=1
f11bdd03 1357 USE_DARWIN=1
3a922bb4 1358 SO_SUFFIX=dylib
a0b9e27f 1359 cat >> confdefs.h <<\EOF
f11bdd03 1360#define __BSD__ 1
a0b9e27f 1361EOF
b4085ce6 1362
a0b9e27f 1363 cat >> confdefs.h <<\EOF
f11bdd03 1364#define __DARWIN__ 1
a0b9e27f 1365EOF
d08b457b 1366
a0b9e27f 1367 cat >> confdefs.h <<\EOF
d08b457b 1368#define __POWERPC__ 1
82d43113
GD
1369EOF
1370
1371 cat >> confdefs.h <<\EOF
1372#define TARGET_CARBON 1
a0b9e27f 1373EOF
b4085ce6
GD
1374
1375 DEFAULT_DEFAULT_wxUSE_MAC=1
1376 ;;
1377
b12915c1
VZ
1378 *-*-beos* )
1379 USE_BEOS=1
a0b9e27f 1380 cat >> confdefs.h <<\EOF
b12915c1 1381#define __BEOS__ 1
a0b9e27f 1382EOF
b12915c1
VZ
1383
1384 ;;
1385
10f2d63a 1386 *)
a0b9e27f 1387 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1388esac
1389
8284b0c5
MB
1390
1391
1392
1393 wx_arg_cache_file="configarg.cache"
1394 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1395 rm -f ${wx_arg_cache_file}.tmp
1396 touch ${wx_arg_cache_file}.tmp
1397 touch ${wx_arg_cache_file}
a0b9e27f 1398
10f2d63a
VZ
1399
1400DEBUG_CONFIGURE=0
1401if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1402 DEFAULT_wxUSE_UNIVERSAL=no
1403
d8356fa3
VZ
1404 DEFAULT_wxUSE_NANOX=no
1405
10f2d63a
VZ
1406 DEFAULT_wxUSE_THREADS=yes
1407
1408 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1409 DEFAULT_wxUSE_SONAME=no
1e6feb95 1410 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1411 DEFAULT_wxUSE_PROFILE=no
1412 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1413 DEFAULT_wxUSE_NO_RTTI=no
1414 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1415 DEFAULT_wxUSE_PERMISSIVE=no
1416 DEFAULT_wxUSE_DEBUG_FLAG=yes
1417 DEFAULT_wxUSE_DEBUG_INFO=yes
1418 DEFAULT_wxUSE_DEBUG_GDB=yes
1419 DEFAULT_wxUSE_MEM_TRACING=no
1420 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1421 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1422 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1423 DEFAULT_wxUSE_APPLE_IEEE=no
1424
1425 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1426 DEFAULT_wxUSE_LOGWINDOW=no
1427 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1428 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1429
1430 DEFAULT_wxUSE_GUI=yes
1e6feb95 1431 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1432
3e44f09d 1433 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1434 DEFAULT_wxUSE_ZLIB=no
1435 DEFAULT_wxUSE_LIBPNG=no
1436 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1437 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1438 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1439 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1440
eb4efbdc 1441 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1442 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1443 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1444 DEFAULT_wxUSE_CMDLINE_PARSER=no
1445 DEFAULT_wxUSE_DATETIME=no
1446 DEFAULT_wxUSE_TIMEDATE=no
1447 DEFAULT_wxUSE_TIMER=no
1448 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1449 DEFAULT_wxUSE_FILE=no
1e6feb95 1450 DEFAULT_wxUSE_FFILE=no
a3a584a7 1451 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1452 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_WAVE=no
1454 DEFAULT_wxUSE_INTL=no
1455 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1456 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_STREAMS=no
1458 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1459 DEFAULT_wxUSE_OLE=no
1460 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1461 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1462 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1463 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1464 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1465 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1466 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1467
1468 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1469 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1470 DEFAULT_wxUSE_POSTSCRIPT=no
1471
1472 DEFAULT_wxUSE_X_RESOURCES=no
1473 DEFAULT_wxUSE_CLIPBOARD=no
1474 DEFAULT_wxUSE_TOOLTIPS=no
1475 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1476 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1477 DEFAULT_wxUSE_SPLINES=no
1478
1479 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1480 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1481 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1482
1483 DEFAULT_wxUSE_PROLOGIO=no
1484 DEFAULT_wxUSE_RESOURCES=no
1485 DEFAULT_wxUSE_CONSTRAINTS=no
1486 DEFAULT_wxUSE_IPC=no
1487 DEFAULT_wxUSE_HELP=no
29fd3c0c 1488 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1489 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1490 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1491 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1492 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1493 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1494 DEFAULT_wxUSE_PROTOCOL=no
1495 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1496 DEFAULT_wxUSE_PROTOCOL_FTP=no
1497 DEFAULT_wxUSE_PROTOCOL_FILE=no
1498 DEFAULT_wxUSE_URL=no
3bd8fb5f 1499
10f2d63a 1500 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1501 DEFAULT_wxUSE_CHOICEDLG=no
1502 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1503 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1504 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1505 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1506 DEFAULT_wxUSE_FONTDLG=no
1507 DEFAULT_wxUSE_MSGDLG=no
1508 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1509 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1510 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_STARTUP_TIPS=no
1512 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1513 DEFAULT_wxUSE_WIZARDDLG=no
1514
1e6feb95 1515 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_MINIFRAME=no
1517 DEFAULT_wxUSE_HTML=no
24528b0c 1518 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1519 DEFAULT_wxUSE_FS_INET=no
1520 DEFAULT_wxUSE_FS_ZIP=no
1521 DEFAULT_wxUSE_BUSYINFO=no
1522 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1523 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1524
1525 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1526 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1527 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1528 DEFAULT_wxUSE_CALCTRL=no
1529 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_CHECKBOX=no
1531 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1532 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_COMBOBOX=no
1534 DEFAULT_wxUSE_GAUGE=no
1535 DEFAULT_wxUSE_GRID=no
1536 DEFAULT_wxUSE_NEW_GRID=no
1537 DEFAULT_wxUSE_IMAGLIST=no
1538 DEFAULT_wxUSE_LISTBOX=no
1539 DEFAULT_wxUSE_LISTCTRL=no
1540 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1541 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1542 DEFAULT_wxUSE_RADIOBOX=no
1543 DEFAULT_wxUSE_RADIOBTN=no
1544 DEFAULT_wxUSE_SASH=no
1545 DEFAULT_wxUSE_SCROLLBAR=no
1546 DEFAULT_wxUSE_SLIDER=no
1547 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1548 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1549 DEFAULT_wxUSE_SPLITTER=no
1550 DEFAULT_wxUSE_STATBMP=no
1551 DEFAULT_wxUSE_STATBOX=no
1552 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1553 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1554 DEFAULT_wxUSE_STATUSBAR=yes
1555 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1556 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1557 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1558 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1559 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1560 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1561 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1562 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1563 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1564
1565 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1566 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1567 DEFAULT_wxUSE_WCSRTOMBS=no
1568
edae8572 1569 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1570 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1571 DEFAULT_wxUSE_GIF=no
1572 DEFAULT_wxUSE_PCX=no
1573 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1574 DEFAULT_wxUSE_IFF=no
0046ff7c 1575 DEFAULT_wxUSE_XPM=no
658974ae 1576 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1577else
1e6feb95
VZ
1578 DEFAULT_wxUSE_UNIVERSAL=no
1579
d8356fa3
VZ
1580 DEFAULT_wxUSE_NANOX=no
1581
10f2d63a
VZ
1582 DEFAULT_wxUSE_THREADS=yes
1583
1584 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1585 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1586 DEFAULT_wxUSE_OPTIMISE=yes
1587 DEFAULT_wxUSE_PROFILE=no
1588 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1589 DEFAULT_wxUSE_NO_RTTI=no
1590 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1591 DEFAULT_wxUSE_PERMISSIVE=no
1592 DEFAULT_wxUSE_DEBUG_FLAG=no
1593 DEFAULT_wxUSE_DEBUG_INFO=no
1594 DEFAULT_wxUSE_DEBUG_GDB=no
1595 DEFAULT_wxUSE_MEM_TRACING=no
1596 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1597 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1598 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1599 DEFAULT_wxUSE_APPLE_IEEE=yes
1600
1601 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1602 DEFAULT_wxUSE_LOGWINDOW=yes
1603 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1604 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1605
1606 DEFAULT_wxUSE_GUI=yes
1607
831b3152 1608 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1609 DEFAULT_wxUSE_ZLIB=yes
1610 DEFAULT_wxUSE_LIBPNG=yes
1611 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1612 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1613 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1614 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1615
eb4efbdc 1616 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1617 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1618 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1619 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1620 DEFAULT_wxUSE_DATETIME=yes
1621 DEFAULT_wxUSE_TIMEDATE=no
1622 DEFAULT_wxUSE_TIMER=yes
1623 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1624 DEFAULT_wxUSE_FILE=yes
1e6feb95 1625 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1626 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1627 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1628 DEFAULT_wxUSE_WAVE=no
1629 DEFAULT_wxUSE_INTL=yes
1630 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1631 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1632 DEFAULT_wxUSE_STREAMS=yes
1633 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1634 DEFAULT_wxUSE_OLE=yes
1635 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1636 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1637 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1638 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1639 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1640 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1641 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1642
1643 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1644 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1645 DEFAULT_wxUSE_POSTSCRIPT=yes
1646
1647 DEFAULT_wxUSE_X_RESOURCES=no
1648 DEFAULT_wxUSE_CLIPBOARD=yes
1649 DEFAULT_wxUSE_TOOLTIPS=yes
1650 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1651 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1652 DEFAULT_wxUSE_SPLINES=yes
1653
1654 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1655 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1656 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1657
2b5f62a0
VZ
1658 DEFAULT_wxUSE_PROLOGIO=no
1659 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1660 DEFAULT_wxUSE_CONSTRAINTS=yes
1661 DEFAULT_wxUSE_IPC=yes
1662 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1663 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1664 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1665 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1666 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1667 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1668 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1669 DEFAULT_wxUSE_PROTOCOL=yes
1670 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1671 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1672 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1673 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1674
1675 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1676 DEFAULT_wxUSE_CHOICEDLG=yes
1677 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1678 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1679 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1680 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1681 DEFAULT_wxUSE_FONTDLG=yes
1682 DEFAULT_wxUSE_MSGDLG=yes
1683 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1684 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1685 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_STARTUP_TIPS=yes
1687 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1688 DEFAULT_wxUSE_WIZARDDLG=yes
1689
1e6feb95 1690 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1691 DEFAULT_wxUSE_MINIFRAME=yes
1692 DEFAULT_wxUSE_HTML=yes
24528b0c 1693 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1694 DEFAULT_wxUSE_FS_INET=yes
1695 DEFAULT_wxUSE_FS_ZIP=yes
1696 DEFAULT_wxUSE_BUSYINFO=yes
1697 DEFAULT_wxUSE_ZIPSTREAM=yes
1698 DEFAULT_wxUSE_VALIDATORS=yes
1699
1700 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1701 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1702 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1703 DEFAULT_wxUSE_CALCTRL=yes
1704 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_CHECKBOX=yes
1706 DEFAULT_wxUSE_CHECKLST=yes
1707 DEFAULT_wxUSE_CHOICE=yes
1708 DEFAULT_wxUSE_COMBOBOX=yes
1709 DEFAULT_wxUSE_GAUGE=yes
1710 DEFAULT_wxUSE_GRID=yes
cc977e5f 1711 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1712 DEFAULT_wxUSE_IMAGLIST=yes
1713 DEFAULT_wxUSE_LISTBOX=yes
1714 DEFAULT_wxUSE_LISTCTRL=yes
1715 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1716 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_RADIOBOX=yes
1718 DEFAULT_wxUSE_RADIOBTN=yes
1719 DEFAULT_wxUSE_SASH=yes
1720 DEFAULT_wxUSE_SCROLLBAR=yes
1721 DEFAULT_wxUSE_SLIDER=yes
1722 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1723 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1724 DEFAULT_wxUSE_SPLITTER=yes
1725 DEFAULT_wxUSE_STATBMP=yes
1726 DEFAULT_wxUSE_STATBOX=yes
1727 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1728 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1729 DEFAULT_wxUSE_STATUSBAR=yes
1730 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1731 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1732 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1733 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1734 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1735 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1736 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1737 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1738 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1739
1740 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1741 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1742 DEFAULT_wxUSE_WCSRTOMBS=no
1743
edae8572 1744 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1745 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1746 DEFAULT_wxUSE_GIF=yes
1747 DEFAULT_wxUSE_PCX=yes
cc0e8480 1748 DEFAULT_wxUSE_IFF=no
10f2d63a 1749 DEFAULT_wxUSE_PNM=yes
0046ff7c 1750 DEFAULT_wxUSE_XPM=yes
658974ae 1751 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1752fi
1753
8284b0c5
MB
1754
1755
10f2d63a 1756for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1757 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1758 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1759 has_toolkit_in_cache=1
1760 eval "DEFAULT_$LINE"
1761 eval "CACHE_$toolkit=1"
1762 fi
1763done
1764
8284b0c5
MB
1765
1766
5005acfe
VZ
1767 enablestring=
1768 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
82d43113 1769echo "configure:1770: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1770 no_cache=0
1771 # Check whether --enable-gui or --disable-gui was given.
1772if test "${enable_gui+set}" = set; then
1773 enableval="$enable_gui"
a0b9e27f 1774
10f2d63a
VZ
1775 if test "$enableval" = yes; then
1776 ac_cv_use_gui='wxUSE_GUI=yes'
1777 else
1778 ac_cv_use_gui='wxUSE_GUI=no'
1779 fi
a0b9e27f 1780
10f2d63a 1781else
a0b9e27f 1782
10f2d63a
VZ
1783 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1791
1792fi
10f2d63a
VZ
1793
1794
1795 eval "$ac_cv_use_gui"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1801 echo "$ac_t""yes" 1>&6
10f2d63a 1802 else
a0b9e27f 1803 echo "$ac_t""no" 1>&6
10f2d63a 1804 fi
a0b9e27f 1805
10f2d63a 1806
b12915c1 1807if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1808
8284b0c5 1809
5005acfe
VZ
1810 enablestring=
1811 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
82d43113 1812echo "configure:1813: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1813 no_cache=0
1814 # Check whether --enable-universal or --disable-universal was given.
1815if test "${enable_universal+set}" = set; then
1816 enableval="$enable_universal"
a0b9e27f 1817
1e6feb95
VZ
1818 if test "$enableval" = yes; then
1819 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1820 else
1821 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1822 fi
a0b9e27f 1823
1e6feb95 1824else
a0b9e27f 1825
1e6feb95
VZ
1826 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1834
1835fi
1e6feb95
VZ
1836
1837
1838 eval "$ac_cv_use_universal"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1844 echo "$ac_t""yes" 1>&6
1e6feb95 1845 else
a0b9e27f 1846 echo "$ac_t""no" 1>&6
1e6feb95 1847 fi
a0b9e27f 1848
10f2d63a
VZ
1849# Check whether --with-gtk or --without-gtk was given.
1850if test "${with_gtk+set}" = set; then
1851 withval="$with_gtk"
1852 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1853fi
10f2d63a
VZ
1854
1855# Check whether --with-motif or --without-motif was given.
1856if test "${with_motif+set}" = set; then
1857 withval="$with_motif"
1858 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1859fi
10f2d63a 1860
b4085ce6
GD
1861# Check whether --with-mac or --without-mac was given.
1862if test "${with_mac+set}" = set; then
1863 withval="$with_mac"
1864 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1865fi
b4085ce6 1866
10f2d63a
VZ
1867# Check whether --with-wine or --without-wine was given.
1868if test "${with_wine+set}" = set; then
1869 withval="$with_wine"
89e6bf6d 1870 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1871fi
10f2d63a 1872
77e13408
RL
1873# Check whether --with-msw or --without-msw was given.
1874if test "${with_msw+set}" = set; then
1875 withval="$with_msw"
b4efce5e 1876 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1877fi
10f2d63a 1878
e07802fc
VZ
1879# Check whether --with-pm or --without-pm was given.
1880if test "${with_pm+set}" = set; then
1881 withval="$with_pm"
1882 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1883fi
698dcdb6 1884
1e6feb95
VZ
1885# Check whether --with-mgl or --without-mgl was given.
1886if test "${with_mgl+set}" = set; then
1887 withval="$with_mgl"
6c657b52 1888 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1889fi
1e6feb95 1890
1725144d
RR
1891# Check whether --with-microwin or --without-microwin was given.
1892if test "${with_microwin+set}" = set; then
1893 withval="$with_microwin"
1894 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1895fi
1725144d 1896
f79bd02d
JS
1897# Check whether --with-x11 or --without-x11 was given.
1898if test "${with_x11+set}" = set; then
1899 withval="$with_x11"
3c011993 1900 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1901fi
10f2d63a 1902
a0b9e27f 1903
5005acfe
VZ
1904 enablestring=
1905 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
82d43113 1906echo "configure:1907: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1907 no_cache=0
ba875e66
VZ
1908 # Check whether --enable-nanox or --disable-nanox was given.
1909if test "${enable_nanox+set}" = set; then
1910 enableval="$enable_nanox"
a0b9e27f 1911
d8356fa3 1912 if test "$enableval" = yes; then
ba875e66 1913 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1914 else
ba875e66 1915 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1916 fi
a0b9e27f 1917
d8356fa3 1918else
a0b9e27f 1919
d8356fa3
VZ
1920 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1921 if test "x$LINE" != x ; then
1922 eval "DEFAULT_$LINE"
1923 else
1924 no_cache=1
1925 fi
1926
ba875e66 1927 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1928
1929fi
d8356fa3
VZ
1930
1931
ba875e66 1932 eval "$ac_cv_use_nanox"
d8356fa3 1933 if test "$no_cache" != 1; then
ba875e66 1934 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1935 fi
1936
1937 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1938 echo "$ac_t""yes" 1>&6
d8356fa3 1939 else
a0b9e27f 1940 echo "$ac_t""no" 1>&6
d8356fa3 1941 fi
a0b9e27f 1942
8284b0c5 1943
d74f4b5a 1944
5005acfe
VZ
1945 enablestring=
1946 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
82d43113 1947echo "configure:1948: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1948 no_cache=0
1949 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1950if test "${enable_gtk2+set}" = set; then
1951 enableval="$enable_gtk2"
a0b9e27f 1952
d74f4b5a
VZ
1953 if test "$enableval" = yes; then
1954 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1955 else
1956 ac_cv_use_gtk2='wxUSE_GTK2=no'
1957 fi
a0b9e27f 1958
10f2d63a 1959else
a0b9e27f 1960
d74f4b5a
VZ
1961 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1962 if test "x$LINE" != x ; then
1963 eval "DEFAULT_$LINE"
1964 else
1965 no_cache=1
1966 fi
1967
1968 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1969
1970fi
52127426 1971
328a083c 1972
d74f4b5a
VZ
1973 eval "$ac_cv_use_gtk2"
1974 if test "$no_cache" != 1; then
1975 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1976 fi
1977
1978 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1979 echo "$ac_t""yes" 1>&6
d74f4b5a 1980 else
a0b9e27f 1981 echo "$ac_t""no" 1>&6
d74f4b5a 1982 fi
a0b9e27f 1983
d74f4b5a 1984
5c6fa7d2 1985
a0b9e27f 1986 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
82d43113 1987echo "configure:1988: checking for --with-libpng" >&5
8284b0c5 1988 no_cache=0
a0b9e27f 1989 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1990if test "${with_libpng+set}" = set; then
1991 withval="$with_libpng"
a0b9e27f 1992
10f2d63a 1993 if test "$withval" = yes; then
b12915c1 1994 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1995 elif test "$withval" = no; then
b12915c1 1996 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1997 elif test "$withval" = sys; then
1998 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1999 elif test "$withval" = builtin; then
2000 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2001 else
a0b9e27f 2002 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2003 fi
a0b9e27f 2004
10f2d63a 2005else
a0b9e27f 2006
b12915c1 2007 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2008 if test "x$LINE" != x ; then
2009 eval "DEFAULT_$LINE"
2010 else
2011 no_cache=1
2012 fi
2013
b12915c1 2014 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2015
2016fi
10f2d63a
VZ
2017
2018
b12915c1 2019 eval "$ac_cv_use_libpng"
10f2d63a 2020 if test "$no_cache" != 1; then
b12915c1 2021 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2022 fi
2023
b12915c1 2024 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2025 echo "$ac_t""yes" 1>&6
422107f9 2026 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2027 echo "$ac_t""no" 1>&6
422107f9 2028 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2029 echo "$ac_t""system version" 1>&6
4f14bcd8 2030 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2031 echo "$ac_t""builtin version" 1>&6
422107f9 2032 else
a0b9e27f 2033 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2034 fi
a0b9e27f 2035
10f2d63a 2036
a0b9e27f 2037 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
82d43113 2038echo "configure:2039: checking for --with-libjpeg" >&5
10f2d63a 2039 no_cache=0
a0b9e27f 2040 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2041if test "${with_libjpeg+set}" = set; then
2042 withval="$with_libjpeg"
a0b9e27f 2043
10f2d63a 2044 if test "$withval" = yes; then
b12915c1 2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2046 elif test "$withval" = no; then
b12915c1 2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2048 elif test "$withval" = sys; then
2049 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2050 elif test "$withval" = builtin; then
2051 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2052 else
a0b9e27f 2053 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2054 fi
a0b9e27f 2055
10f2d63a 2056else
a0b9e27f 2057
b12915c1 2058 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
b12915c1 2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2066
2067fi
10f2d63a
VZ
2068
2069
b12915c1 2070 eval "$ac_cv_use_libjpeg"
10f2d63a 2071 if test "$no_cache" != 1; then
b12915c1 2072 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2073 fi
2074
b12915c1 2075 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2076 echo "$ac_t""yes" 1>&6
422107f9 2077 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2078 echo "$ac_t""no" 1>&6
422107f9 2079 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2080 echo "$ac_t""system version" 1>&6
4f14bcd8 2081 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2082 echo "$ac_t""builtin version" 1>&6
422107f9 2083 else
a0b9e27f 2084 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2085 fi
a0b9e27f 2086
10f2d63a 2087
a0b9e27f 2088 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
82d43113 2089echo "configure:2090: checking for --with-libtiff" >&5
10f2d63a 2090 no_cache=0
a0b9e27f 2091 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2092if test "${with_libtiff+set}" = set; then
2093 withval="$with_libtiff"
a0b9e27f 2094
10f2d63a 2095 if test "$withval" = yes; then
b12915c1 2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2097 elif test "$withval" = no; then
b12915c1 2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2099 elif test "$withval" = sys; then
2100 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2101 elif test "$withval" = builtin; then
2102 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2103 else
a0b9e27f 2104 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2105 fi
a0b9e27f 2106
10f2d63a 2107else
a0b9e27f 2108
b12915c1 2109 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
b12915c1 2116 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2117
2118fi
10f2d63a
VZ
2119
2120
b12915c1 2121 eval "$ac_cv_use_libtiff"
10f2d63a 2122 if test "$no_cache" != 1; then
b12915c1 2123 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2124 fi
2125
b12915c1 2126 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2127 echo "$ac_t""yes" 1>&6
0dcf9893 2128 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2129 echo "$ac_t""no" 1>&6
0dcf9893 2130 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2131 echo "$ac_t""system version" 1>&6
4f14bcd8 2132 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2133 echo "$ac_t""builtin version" 1>&6
0dcf9893 2134 else
a0b9e27f 2135 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2136 fi
a0b9e27f 2137
10f2d63a 2138
a0b9e27f 2139 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
82d43113 2140echo "configure:2141: checking for --with-opengl" >&5
10f2d63a 2141 no_cache=0
a0b9e27f 2142 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2143if test "${with_opengl+set}" = set; then
2144 withval="$with_opengl"
a0b9e27f 2145
10f2d63a 2146 if test "$withval" = yes; then
b12915c1 2147 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2148 else
b12915c1 2149 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2150 fi
a0b9e27f 2151
10f2d63a 2152else
a0b9e27f 2153
b12915c1 2154 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
b12915c1 2161 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2162
2163fi
10f2d63a
VZ
2164
2165
b12915c1 2166 eval "$ac_cv_use_opengl"
10f2d63a 2167 if test "$no_cache" != 1; then
b12915c1 2168 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2169 fi
2170
b12915c1 2171 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2172 echo "$ac_t""yes" 1>&6
10f2d63a 2173 else
a0b9e27f 2174 echo "$ac_t""no" 1>&6
10f2d63a 2175 fi
a0b9e27f 2176
10f2d63a 2177
b12915c1
VZ
2178fi
2179
5c6fa7d2 2180
a0b9e27f 2181 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
82d43113 2182echo "configure:2183: checking for --with-dmalloc" >&5
8284b0c5 2183 no_cache=0
a0b9e27f 2184 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2185if test "${with_dmalloc+set}" = set; then
2186 withval="$with_dmalloc"
a0b9e27f 2187
c7a2bf27 2188 if test "$withval" = yes; then
b12915c1 2189 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2190 else
b12915c1 2191 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2192 fi
a0b9e27f 2193
c7a2bf27 2194else
a0b9e27f 2195
b12915c1 2196 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
b12915c1 2203 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2204
2205fi
c7a2bf27
RR
2206
2207
b12915c1 2208 eval "$ac_cv_use_dmalloc"
c7a2bf27 2209 if test "$no_cache" != 1; then
b12915c1 2210 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2211 fi
2212
b12915c1 2213 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2214 echo "$ac_t""yes" 1>&6
c7a2bf27 2215 else
a0b9e27f 2216 echo "$ac_t""no" 1>&6
c7a2bf27 2217 fi
a0b9e27f 2218
c7a2bf27 2219
a0b9e27f 2220 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
82d43113 2221echo "configure:2222: checking for --with-regex" >&5
3e44f09d 2222 no_cache=0
a0b9e27f 2223 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2224if test "${with_regex+set}" = set; then
2225 withval="$with_regex"
a0b9e27f 2226
3e44f09d
VZ
2227 if test "$withval" = yes; then
2228 ac_cv_use_regex='wxUSE_REGEX=yes'
2229 elif test "$withval" = no; then
2230 ac_cv_use_regex='wxUSE_REGEX=no'
2231 elif test "$withval" = sys; then
2232 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2233 elif test "$withval" = builtin; then
2234 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2235 else
a0b9e27f 2236 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2237 fi
a0b9e27f 2238
3e44f09d 2239else
a0b9e27f 2240
3e44f09d
VZ
2241 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2242 if test "x$LINE" != x ; then
2243 eval "DEFAULT_$LINE"
2244 else
2245 no_cache=1
2246 fi
2247
2248 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2249
2250fi
3e44f09d
VZ
2251
2252
2253 eval "$ac_cv_use_regex"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2259 echo "$ac_t""yes" 1>&6
3e44f09d 2260 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2261 echo "$ac_t""no" 1>&6
3e44f09d 2262 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2263 echo "$ac_t""system version" 1>&6
4f14bcd8 2264 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2265 echo "$ac_t""builtin version" 1>&6
3e44f09d 2266 else
a0b9e27f 2267 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2268 fi
a0b9e27f 2269
3e44f09d 2270
a0b9e27f 2271 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
82d43113 2272echo "configure:2273: checking for --with-zlib" >&5
10f2d63a 2273 no_cache=0
a0b9e27f 2274 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2275if test "${with_zlib+set}" = set; then
2276 withval="$with_zlib"
a0b9e27f 2277
10f2d63a 2278 if test "$withval" = yes; then
b12915c1 2279 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2280 elif test "$withval" = no; then
b12915c1 2281 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2282 elif test "$withval" = sys; then
2283 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2284 elif test "$withval" = builtin; then
2285 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2286 else
a0b9e27f 2287 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2288 fi
a0b9e27f 2289
10f2d63a 2290else
a0b9e27f 2291
b12915c1 2292 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2293 if test "x$LINE" != x ; then
2294 eval "DEFAULT_$LINE"
2295 else
2296 no_cache=1
2297 fi
2298
b12915c1 2299 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2300
2301fi
10f2d63a
VZ
2302
2303
b12915c1 2304 eval "$ac_cv_use_zlib"
10f2d63a 2305 if test "$no_cache" != 1; then
b12915c1 2306 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2307 fi
2308
b12915c1 2309 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2310 echo "$ac_t""yes" 1>&6
422107f9 2311 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2312 echo "$ac_t""no" 1>&6
422107f9 2313 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2314 echo "$ac_t""system version" 1>&6
4f14bcd8 2315 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2316 echo "$ac_t""builtin version" 1>&6
422107f9 2317 else
a0b9e27f 2318 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2319 fi
a0b9e27f 2320
10f2d63a 2321
a0b9e27f 2322 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
82d43113 2323echo "configure:2324: checking for --with-odbc" >&5
10f2d63a 2324 no_cache=0
a0b9e27f 2325 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2326if test "${with_odbc+set}" = set; then
2327 withval="$with_odbc"
a0b9e27f 2328
10f2d63a
VZ
2329 if test "$withval" = yes; then
2330 ac_cv_use_odbc='wxUSE_ODBC=yes'
2331 else
2332 ac_cv_use_odbc='wxUSE_ODBC=no'
2333 fi
a0b9e27f 2334
10f2d63a 2335else
a0b9e27f 2336
10f2d63a
VZ
2337 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2338 if test "x$LINE" != x ; then
2339 eval "DEFAULT_$LINE"
2340 else
2341 no_cache=1
2342 fi
2343
2344 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2345
2346fi
10f2d63a
VZ
2347
2348
2349 eval "$ac_cv_use_odbc"
2350 if test "$no_cache" != 1; then
2351 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2352 fi
2353
2354 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2355 echo "$ac_t""yes" 1>&6
10f2d63a 2356 else
a0b9e27f 2357 echo "$ac_t""no" 1>&6
10f2d63a 2358 fi
a0b9e27f 2359
52127426 2360
8284b0c5
MB
2361
2362
5005acfe
VZ
2363 enablestring=
2364 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
82d43113 2365echo "configure:2366: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2366 no_cache=0
2367 # Check whether --enable-shared or --disable-shared was given.
2368if test "${enable_shared+set}" = set; then
2369 enableval="$enable_shared"
a0b9e27f 2370
10f2d63a
VZ
2371 if test "$enableval" = yes; then
2372 ac_cv_use_shared='wxUSE_SHARED=yes'
2373 else
2374 ac_cv_use_shared='wxUSE_SHARED=no'
2375 fi
a0b9e27f 2376
10f2d63a 2377else
a0b9e27f 2378
10f2d63a
VZ
2379 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2387
2388fi
10f2d63a
VZ
2389
2390
2391 eval "$ac_cv_use_shared"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2397 echo "$ac_t""yes" 1>&6
10f2d63a 2398 else
a0b9e27f 2399 echo "$ac_t""no" 1>&6
10f2d63a 2400 fi
a0b9e27f 2401
10f2d63a 2402
5005acfe
VZ
2403 enablestring=
2404 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
82d43113 2405echo "configure:2406: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2406 no_cache=0
3a922bb4
RL
2407 # Check whether --enable-soname or --disable-soname was given.
2408if test "${enable_soname+set}" = set; then
2409 enableval="$enable_soname"
a0b9e27f 2410
00cf1208 2411 if test "$enableval" = yes; then
3a922bb4 2412 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2413 else
3a922bb4 2414 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2415 fi
a0b9e27f 2416
00cf1208 2417else
a0b9e27f 2418
3a922bb4 2419 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
3a922bb4 2426 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2427
2428fi
00cf1208
RR
2429
2430
3a922bb4 2431 eval "$ac_cv_use_soname"
00cf1208 2432 if test "$no_cache" != 1; then
3a922bb4 2433 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2434 fi
2435
3a922bb4 2436 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2437 echo "$ac_t""yes" 1>&6
00cf1208 2438 else
a0b9e27f 2439 echo "$ac_t""no" 1>&6
00cf1208 2440 fi
a0b9e27f 2441
00cf1208 2442
5005acfe
VZ
2443 enablestring=
2444 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
82d43113 2445echo "configure:2446: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2446 no_cache=0
2447 # Check whether --enable-optimise or --disable-optimise was given.
2448if test "${enable_optimise+set}" = set; then
2449 enableval="$enable_optimise"
a0b9e27f 2450
10f2d63a
VZ
2451 if test "$enableval" = yes; then
2452 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2453 else
2454 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2455 fi
a0b9e27f 2456
10f2d63a 2457else
a0b9e27f 2458
10f2d63a
VZ
2459 LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2467
2468fi
10f2d63a
VZ
2469
2470
2471 eval "$ac_cv_use_optimise"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_OPTIMISE" = 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}-debug""... $ac_c" 1>&6
82d43113 2485echo "configure:2486: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2486 no_cache=0
2487 # Check whether --enable-debug or --disable-debug was given.
2488if test "${enable_debug+set}" = set; then
2489 enableval="$enable_debug"
a0b9e27f 2490
10f2d63a
VZ
2491 if test "$enableval" = yes; then
2492 ac_cv_use_debug='wxUSE_DEBUG=yes'
2493 else
2494 ac_cv_use_debug='wxUSE_DEBUG=no'
2495 fi
a0b9e27f 2496
10f2d63a 2497else
a0b9e27f 2498
10f2d63a
VZ
2499 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2507
2508fi
10f2d63a
VZ
2509
2510
2511 eval "$ac_cv_use_debug"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2517 echo "$ac_t""yes" 1>&6
10f2d63a 2518 else
a0b9e27f 2519 echo "$ac_t""no" 1>&6
10f2d63a 2520 fi
a0b9e27f 2521
52127426 2522
8284b0c5 2523
5005acfe
VZ
2524 enablestring=
2525 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
82d43113 2526echo "configure:2527: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2527 no_cache=0
2528 # Check whether --enable-precomp or --disable-precomp was given.
2529if test "${enable_precomp+set}" = set; then
2530 enableval="$enable_precomp"
a0b9e27f 2531
683dccda
GD
2532 if test "$enableval" = yes; then
2533 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2534 else
2535 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2536 fi
a0b9e27f 2537
683dccda 2538else
a0b9e27f 2539
683dccda
GD
2540 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2548
2549fi
683dccda
GD
2550
2551
2552 eval "$ac_cv_use_precomp"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2558 echo "$ac_t""yes" 1>&6
683dccda 2559 else
a0b9e27f 2560 echo "$ac_t""no" 1>&6
683dccda 2561 fi
a0b9e27f 2562
683dccda 2563
10f2d63a
VZ
2564if test "$wxUSE_DEBUG" = "yes"; then
2565 DEFAULT_wxUSE_DEBUG_FLAG=yes
2566 DEFAULT_wxUSE_DEBUG_INFO=yes
2567elif test "$wxUSE_DEBUG" = "no"; then
2568 DEFAULT_wxUSE_DEBUG_FLAG=no
2569 DEFAULT_wxUSE_DEBUG_INFO=no
2570fi
2571
8284b0c5 2572
5005acfe
VZ
2573 enablestring=
2574 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
82d43113 2575echo "configure:2576: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2576 no_cache=0
2577 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2578if test "${enable_debug_flag+set}" = set; then
2579 enableval="$enable_debug_flag"
a0b9e27f 2580
10f2d63a
VZ
2581 if test "$enableval" = yes; then
2582 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2583 else
2584 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2585 fi
a0b9e27f 2586
10f2d63a 2587else
a0b9e27f 2588
10f2d63a
VZ
2589 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2590 if test "x$LINE" != x ; then
2591 eval "DEFAULT_$LINE"
2592 else
2593 no_cache=1
2594 fi
2595
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2597
2598fi
10f2d63a
VZ
2599
2600
2601 eval "$ac_cv_use_debug_flag"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2607 echo "$ac_t""yes" 1>&6
10f2d63a 2608 else
a0b9e27f 2609 echo "$ac_t""no" 1>&6
10f2d63a 2610 fi
a0b9e27f 2611
10f2d63a 2612
5005acfe
VZ
2613 enablestring=
2614 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
82d43113 2615echo "configure:2616: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2616 no_cache=0
2617 # Check whether --enable-debug_info or --disable-debug_info was given.
2618if test "${enable_debug_info+set}" = set; then
2619 enableval="$enable_debug_info"
a0b9e27f 2620
10f2d63a
VZ
2621 if test "$enableval" = yes; then
2622 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2623 else
2624 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2625 fi
a0b9e27f 2626
10f2d63a 2627else
a0b9e27f 2628
10f2d63a
VZ
2629 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2637
2638fi
10f2d63a
VZ
2639
2640
2641 eval "$ac_cv_use_debug_info"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2647 echo "$ac_t""yes" 1>&6
10f2d63a 2648 else
a0b9e27f 2649 echo "$ac_t""no" 1>&6
10f2d63a 2650 fi
a0b9e27f 2651
10f2d63a 2652
5005acfe
VZ
2653 enablestring=
2654 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
82d43113 2655echo "configure:2656: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2656 no_cache=0
2657 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2658if test "${enable_debug_gdb+set}" = set; then
2659 enableval="$enable_debug_gdb"
a0b9e27f 2660
10f2d63a
VZ
2661 if test "$enableval" = yes; then
2662 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2663 else
2664 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2665 fi
a0b9e27f 2666
10f2d63a 2667else
a0b9e27f 2668
10f2d63a
VZ
2669 LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2677
2678fi
10f2d63a
VZ
2679
2680
2681 eval "$ac_cv_use_debug_gdb"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_DEBUG_GDB" = 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_cntxt""... $ac_c" 1>&6
82d43113 2695echo "configure:2696: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2696 no_cache=0
2697 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2698if test "${enable_debug_cntxt+set}" = set; then
2699 enableval="$enable_debug_cntxt"
a0b9e27f 2700
10f2d63a
VZ
2701 if test "$enableval" = yes; then
2702 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2703 else
2704 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2705 fi
a0b9e27f 2706
10f2d63a 2707else
a0b9e27f 2708
10f2d63a
VZ
2709 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2717
2718fi
10f2d63a
VZ
2719
2720
2721 eval "$ac_cv_use_debug_cntxt"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_DEBUG_CONTEXT" = 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}-mem_tracing""... $ac_c" 1>&6
82d43113 2735echo "configure:2736: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2736 no_cache=0
2737 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2738if test "${enable_mem_tracing+set}" = set; then
2739 enableval="$enable_mem_tracing"
a0b9e27f 2740
10f2d63a
VZ
2741 if test "$enableval" = yes; then
2742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2743 else
2744 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2745 fi
a0b9e27f 2746
10f2d63a 2747else
a0b9e27f 2748
10f2d63a
VZ
2749 LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2757
2758fi
10f2d63a
VZ
2759
2760
2761 eval "$ac_cv_use_mem_tracing"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_MEM_TRACING" = 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}-profile""... $ac_c" 1>&6
82d43113 2775echo "configure:2776: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2776 no_cache=0
2777 # Check whether --enable-profile or --disable-profile was given.
2778if test "${enable_profile+set}" = set; then
2779 enableval="$enable_profile"
a0b9e27f 2780
10f2d63a
VZ
2781 if test "$enableval" = yes; then
2782 ac_cv_use_profile='wxUSE_PROFILE=yes'
2783 else
2784 ac_cv_use_profile='wxUSE_PROFILE=no'
2785 fi
a0b9e27f 2786
10f2d63a 2787else
a0b9e27f 2788
10f2d63a
VZ
2789 LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2797
2798fi
10f2d63a
VZ
2799
2800
2801 eval "$ac_cv_use_profile"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_PROFILE" = 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}-no_rtti""... $ac_c" 1>&6
82d43113 2815echo "configure:2816: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2816 no_cache=0
2817 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2818if test "${enable_no_rtti+set}" = set; then
2819 enableval="$enable_no_rtti"
a0b9e27f 2820
10f2d63a
VZ
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2823 else
2824 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2825 fi
a0b9e27f 2826
10f2d63a 2827else
a0b9e27f 2828
10f2d63a
VZ
2829 LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2837
2838fi
10f2d63a
VZ
2839
2840
2841 eval "$ac_cv_use_no_rtti"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_RTTI" = 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}-no_exceptions""... $ac_c" 1>&6
82d43113 2855echo "configure:2856: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2856 no_cache=0
2857 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2858if test "${enable_no_exceptions+set}" = set; then
2859 enableval="$enable_no_exceptions"
a0b9e27f 2860
10f2d63a
VZ
2861 if test "$enableval" = yes; then
2862 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2863 else
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2865 fi
a0b9e27f 2866
10f2d63a 2867else
a0b9e27f 2868
10f2d63a
VZ
2869 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2877
2878fi
10f2d63a
VZ
2879
2880
2881 eval "$ac_cv_use_no_exceptions"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_NO_EXCEPTIONS" = 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}-permissive""... $ac_c" 1>&6
82d43113 2895echo "configure:2896: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2896 no_cache=0
2897 # Check whether --enable-permissive or --disable-permissive was given.
2898if test "${enable_permissive+set}" = set; then
2899 enableval="$enable_permissive"
a0b9e27f 2900
10f2d63a
VZ
2901 if test "$enableval" = yes; then
2902 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2903 else
2904 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2905 fi
a0b9e27f 2906
10f2d63a 2907else
a0b9e27f 2908
10f2d63a
VZ
2909 LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2917
2918fi
10f2d63a
VZ
2919
2920
2921 eval "$ac_cv_use_permissive"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_PERMISSIVE" = 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_deps""... $ac_c" 1>&6
82d43113 2935echo "configure:2936: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2936 no_cache=0
2937 # Check whether --enable-no_deps or --disable-no_deps was given.
2938if test "${enable_no_deps+set}" = set; then
2939 enableval="$enable_no_deps"
a0b9e27f 2940
10f2d63a
VZ
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2943 else
2944 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2945 fi
a0b9e27f 2946
10f2d63a 2947else
a0b9e27f 2948
10f2d63a
VZ
2949 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2957
2958fi
10f2d63a
VZ
2959
2960
2961 eval "$ac_cv_use_no_deps"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2967 echo "$ac_t""yes" 1>&6
10f2d63a 2968 else
a0b9e27f 2969 echo "$ac_t""no" 1>&6
10f2d63a 2970 fi
a0b9e27f 2971
52127426 2972
8284b0c5 2973
5005acfe
VZ
2974 enablestring=
2975 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
82d43113 2976echo "configure:2977: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2977 no_cache=0
2978 # Check whether --enable-compat20 or --disable-compat20 was given.
2979if test "${enable_compat20+set}" = set; then
2980 enableval="$enable_compat20"
a0b9e27f 2981
54276ccf
VZ
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2984 else
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2986 fi
a0b9e27f 2987
54276ccf 2988else
a0b9e27f 2989
54276ccf
VZ
2990 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2998
2999fi
54276ccf
VZ
3000
3001
3002 eval "$ac_cv_use_compat20"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3008 echo "$ac_t""yes" 1>&6
54276ccf 3009 else
a0b9e27f 3010 echo "$ac_t""no" 1>&6
54276ccf 3011 fi
a0b9e27f 3012
54276ccf 3013
65d8ef1e 3014 enablestring=
5005acfe 3015 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
82d43113 3016echo "configure:3017: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3017 no_cache=0
3018 # Check whether --enable-compat22 or --disable-compat22 was given.
3019if test "${enable_compat22+set}" = set; then
3020 enableval="$enable_compat22"
a0b9e27f 3021
54276ccf
VZ
3022 if test "$enableval" = yes; then
3023 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3024 else
3025 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3026 fi
a0b9e27f 3027
54276ccf 3028else
a0b9e27f 3029
54276ccf
VZ
3030 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3031 if test "x$LINE" != x ; then
3032 eval "DEFAULT_$LINE"
3033 else
3034 no_cache=1
3035 fi
3036
3037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3038
3039fi
54276ccf
VZ
3040
3041
3042 eval "$ac_cv_use_compat22"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3048 echo "$ac_t""yes" 1>&6
54276ccf 3049 else
a0b9e27f 3050 echo "$ac_t""no" 1>&6
54276ccf 3051 fi
a0b9e27f 3052
54276ccf 3053
65d8ef1e
VS
3054 enablestring=disable
3055 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
82d43113 3056echo "configure:3057: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3057 no_cache=0
3058 # Check whether --enable-compat24 or --disable-compat24 was given.
3059if test "${enable_compat24+set}" = set; then
3060 enableval="$enable_compat24"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3064 else
3065 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${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_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3078
3079fi
3080
3081
3082 eval "$ac_cv_use_compat24"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3bd8fb5f
RD
3094# Check whether --enable-rpath or --disable-rpath was given.
3095if test "${enable_rpath+set}" = set; then
3096 enableval="$enable_rpath"
3097 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3098fi
3099
3bd8fb5f
RD
3100
3101if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3102 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3103fi
3104
8284b0c5
MB
3105
3106
3107
5005acfe
VZ
3108 enablestring=
3109 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
82d43113 3110echo "configure:3111: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3111 no_cache=0
3112 # Check whether --enable-intl or --disable-intl was given.
3113if test "${enable_intl+set}" = set; then
3114 enableval="$enable_intl"
a0b9e27f 3115
10f2d63a
VZ
3116 if test "$enableval" = yes; then
3117 ac_cv_use_intl='wxUSE_INTL=yes'
3118 else
3119 ac_cv_use_intl='wxUSE_INTL=no'
3120 fi
a0b9e27f 3121
10f2d63a 3122else
a0b9e27f 3123
10f2d63a
VZ
3124 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3132
3133fi
10f2d63a
VZ
3134
3135
3136 eval "$ac_cv_use_intl"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3142 echo "$ac_t""yes" 1>&6
10f2d63a 3143 else
a0b9e27f 3144 echo "$ac_t""no" 1>&6
10f2d63a 3145 fi
a0b9e27f 3146
10f2d63a 3147
5005acfe
VZ
3148 enablestring=
3149 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
82d43113 3150echo "configure:3151: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3151 no_cache=0
3152 # Check whether --enable-config or --disable-config was given.
3153if test "${enable_config+set}" = set; then
3154 enableval="$enable_config"
a0b9e27f 3155
10f2d63a
VZ
3156 if test "$enableval" = yes; then
3157 ac_cv_use_config='wxUSE_CONFIG=yes'
3158 else
3159 ac_cv_use_config='wxUSE_CONFIG=no'
3160 fi
a0b9e27f 3161
10f2d63a 3162else
a0b9e27f 3163
10f2d63a
VZ
3164 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3165 if test "x$LINE" != x ; then
3166 eval "DEFAULT_$LINE"
3167 else
3168 no_cache=1
3169 fi
3170
3171 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3172
3173fi
10f2d63a
VZ
3174
3175
3176 eval "$ac_cv_use_config"
3177 if test "$no_cache" != 1; then
3178 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3179 fi
3180
3181 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3182 echo "$ac_t""yes" 1>&6
10f2d63a 3183 else
a0b9e27f 3184 echo "$ac_t""no" 1>&6
10f2d63a 3185 fi
a0b9e27f 3186
52127426 3187
8284b0c5 3188
5005acfe
VZ
3189 enablestring=
3190 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
82d43113 3191echo "configure:3192: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3192 no_cache=0
3193 # Check whether --enable-protocols or --disable-protocols was given.
3194if test "${enable_protocols+set}" = set; then
3195 enableval="$enable_protocols"
a0b9e27f 3196
a1622950
VZ
3197 if test "$enableval" = yes; then
3198 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3199 else
3200 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3201 fi
a0b9e27f 3202
a1622950 3203else
a0b9e27f 3204
a1622950
VZ
3205 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3213
3214fi
a1622950
VZ
3215
3216
3217 eval "$ac_cv_use_protocols"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3223 echo "$ac_t""yes" 1>&6
a1622950 3224 else
a0b9e27f 3225 echo "$ac_t""no" 1>&6
a1622950 3226 fi
a0b9e27f 3227
a1622950 3228
5005acfe
VZ
3229 enablestring=
3230 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
82d43113 3231echo "configure:3232: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3232 no_cache=0
3233 # Check whether --enable-ftp or --disable-ftp was given.
3234if test "${enable_ftp+set}" = set; then
3235 enableval="$enable_ftp"
a0b9e27f 3236
a1622950
VZ
3237 if test "$enableval" = yes; then
3238 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3239 else
3240 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3241 fi
a0b9e27f 3242
a1622950 3243else
a0b9e27f 3244
a1622950
VZ
3245 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3253
3254fi
a1622950
VZ
3255
3256
3257 eval "$ac_cv_use_ftp"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3263 echo "$ac_t""yes" 1>&6
a1622950 3264 else
a0b9e27f 3265 echo "$ac_t""no" 1>&6
a1622950 3266 fi
a0b9e27f 3267
a1622950 3268
5005acfe
VZ
3269 enablestring=
3270 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
82d43113 3271echo "configure:3272: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3272 no_cache=0
3273 # Check whether --enable-http or --disable-http was given.
3274if test "${enable_http+set}" = set; then
3275 enableval="$enable_http"
a0b9e27f 3276
a1622950
VZ
3277 if test "$enableval" = yes; then
3278 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3279 else
3280 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3281 fi
a0b9e27f 3282
a1622950 3283else
a0b9e27f 3284
a1622950
VZ
3285 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3293
3294fi
a1622950
VZ
3295
3296
3297 eval "$ac_cv_use_http"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_PROTOCOL_HTTP" = 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}-fileproto""... $ac_c" 1>&6
82d43113 3311echo "configure:3312: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3312 no_cache=0
3313 # Check whether --enable-fileproto or --disable-fileproto was given.
3314if test "${enable_fileproto+set}" = set; then
3315 enableval="$enable_fileproto"
a0b9e27f 3316
a1622950
VZ
3317 if test "$enableval" = yes; then
3318 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3319 else
3320 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3321 fi
a0b9e27f 3322
a1622950 3323else
a0b9e27f 3324
a1622950
VZ
3325 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3333
3334fi
a1622950
VZ
3335
3336
3337 eval "$ac_cv_use_fileproto"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_PROTOCOL_FILE" = 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}-sockets""... $ac_c" 1>&6
82d43113 3351echo "configure:3352: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3352 no_cache=0
3353 # Check whether --enable-sockets or --disable-sockets was given.
3354if test "${enable_sockets+set}" = set; then
3355 enableval="$enable_sockets"
a0b9e27f 3356
10f2d63a
VZ
3357 if test "$enableval" = yes; then
3358 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3359 else
3360 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3361 fi
a0b9e27f 3362
10f2d63a 3363else
a0b9e27f 3364
10f2d63a
VZ
3365 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3373
3374fi
10f2d63a
VZ
3375
3376
3377 eval "$ac_cv_use_sockets"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3383 echo "$ac_t""yes" 1>&6
10f2d63a 3384 else
a0b9e27f 3385 echo "$ac_t""no" 1>&6
10f2d63a 3386 fi
a0b9e27f 3387
8284b0c5 3388
5005acfe
VZ
3389 enablestring=
3390 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
82d43113 3391echo "configure:3392: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3392 no_cache=0
3393 # Check whether --enable-ole or --disable-ole was given.
3394if test "${enable_ole+set}" = set; then
3395 enableval="$enable_ole"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_ole='wxUSE_OLE=yes'
3399 else
3400 ac_cv_use_ole='wxUSE_OLE=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_OLE" ${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_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_ole"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_OLE" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
5005acfe
VZ
3429 enablestring=
3430 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
82d43113 3431echo "configure:3432: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3432 no_cache=0
3433 # Check whether --enable-dataobj or --disable-dataobj was given.
3434if test "${enable_dataobj+set}" = set; then
3435 enableval="$enable_dataobj"
3436
3437 if test "$enableval" = yes; then
3438 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3439 else
3440 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3441 fi
3442
3443else
3444
3445 LINE=`grep "wxUSE_DATAOBJ" ${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_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3453
3454fi
3455
3456
3457 eval "$ac_cv_use_dataobj"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_DATAOBJ" = yes; then
3463 echo "$ac_t""yes" 1>&6
3464 else
3465 echo "$ac_t""no" 1>&6
3466 fi
3467
3468
52127426 3469
5005acfe
VZ
3470 enablestring=
3471 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
82d43113 3472echo "configure:3473: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3473 no_cache=0
eb4efbdc
VZ
3474 # Check whether --enable-ipc or --disable-ipc was given.
3475if test "${enable_ipc+set}" = set; then
3476 enableval="$enable_ipc"
a0b9e27f 3477
10f2d63a 3478 if test "$enableval" = yes; then
eb4efbdc 3479 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3480 else
eb4efbdc 3481 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3482 fi
a0b9e27f 3483
10f2d63a 3484else
a0b9e27f 3485
eb4efbdc 3486 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
eb4efbdc 3493 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3494
3495fi
10f2d63a
VZ
3496
3497
eb4efbdc 3498 eval "$ac_cv_use_ipc"
10f2d63a 3499 if test "$no_cache" != 1; then
eb4efbdc 3500 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3501 fi
3502
eb4efbdc 3503 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3504 echo "$ac_t""yes" 1>&6
10f2d63a 3505 else
a0b9e27f 3506 echo "$ac_t""no" 1>&6
10f2d63a 3507 fi
a0b9e27f 3508
52127426 3509
8284b0c5 3510
5005acfe
VZ
3511 enablestring=
3512 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
82d43113 3513echo "configure:3514: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3514 no_cache=0
3515 # Check whether --enable-cmdline or --disable-cmdline was given.
3516if test "${enable_cmdline+set}" = set; then
3517 enableval="$enable_cmdline"
a0b9e27f 3518
1e6feb95
VZ
3519 if test "$enableval" = yes; then
3520 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3521 else
3522 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3523 fi
a0b9e27f 3524
1e6feb95 3525else
a0b9e27f 3526
1e6feb95
VZ
3527 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3535
3536fi
1e6feb95
VZ
3537
3538
3539 eval "$ac_cv_use_cmdline"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3545 echo "$ac_t""yes" 1>&6
1e6feb95 3546 else
a0b9e27f 3547 echo "$ac_t""no" 1>&6
1e6feb95 3548 fi
a0b9e27f 3549
1e6feb95 3550
5005acfe
VZ
3551 enablestring=
3552 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
82d43113 3553echo "configure:3554: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3554 no_cache=0
3555 # Check whether --enable-datetime or --disable-datetime was given.
3556if test "${enable_datetime+set}" = set; then
3557 enableval="$enable_datetime"
a0b9e27f 3558
1e6feb95
VZ
3559 if test "$enableval" = yes; then
3560 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3561 else
3562 ac_cv_use_datetime='wxUSE_DATETIME=no'
3563 fi
a0b9e27f 3564
1e6feb95 3565else
a0b9e27f 3566
1e6feb95
VZ
3567 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3575
3576fi
1e6feb95
VZ
3577
3578
3579 eval "$ac_cv_use_datetime"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3585 echo "$ac_t""yes" 1>&6
1e6feb95 3586 else
a0b9e27f 3587 echo "$ac_t""no" 1>&6
1e6feb95 3588 fi
a0b9e27f 3589
1e6feb95 3590
5005acfe
VZ
3591 enablestring=
3592 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
82d43113 3593echo "configure:3594: checking for --${enablestring:-enable}-timedate" >&5
1e6feb95
VZ
3594 no_cache=0
3595 # Check whether --enable-timedate or --disable-timedate was given.
3596if test "${enable_timedate+set}" = set; then
3597 enableval="$enable_timedate"
a0b9e27f 3598
1e6feb95
VZ
3599 if test "$enableval" = yes; then
3600 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3601 else
3602 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3603 fi
a0b9e27f 3604
1e6feb95 3605else
a0b9e27f 3606
1e6feb95
VZ
3607 LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3615
3616fi
1e6feb95
VZ
3617
3618
3619 eval "$ac_cv_use_timedate"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_TIMEDATE" = 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}-stopwatch""... $ac_c" 1>&6
82d43113 3633echo "configure:3634: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3634 no_cache=0
3635 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3636if test "${enable_stopwatch+set}" = set; then
3637 enableval="$enable_stopwatch"
a0b9e27f 3638
1e6feb95
VZ
3639 if test "$enableval" = yes; then
3640 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3641 else
3642 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3643 fi
a0b9e27f 3644
1e6feb95 3645else
a0b9e27f 3646
1e6feb95
VZ
3647 LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3655
3656fi
1e6feb95
VZ
3657
3658
3659 eval "$ac_cv_use_stopwatch"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_STOPWATCH" = 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}-dialupman""... $ac_c" 1>&6
82d43113 3673echo "configure:3674: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3674 no_cache=0
eb4efbdc
VZ
3675 # Check whether --enable-dialupman or --disable-dialupman was given.
3676if test "${enable_dialupman+set}" = set; then
3677 enableval="$enable_dialupman"
a0b9e27f 3678
10f2d63a 3679 if test "$enableval" = yes; then
eb4efbdc 3680 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3681 else
eb4efbdc 3682 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3683 fi
a0b9e27f 3684
10f2d63a 3685else
a0b9e27f 3686
eb4efbdc 3687 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
eb4efbdc 3694 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3695
3696fi
10f2d63a
VZ
3697
3698
eb4efbdc 3699 eval "$ac_cv_use_dialupman"
10f2d63a 3700 if test "$no_cache" != 1; then
eb4efbdc 3701 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3702 fi
3703
eb4efbdc 3704 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3705 echo "$ac_t""yes" 1>&6
10f2d63a 3706 else
a0b9e27f 3707 echo "$ac_t""no" 1>&6
10f2d63a 3708 fi
a0b9e27f 3709
10f2d63a 3710
5005acfe
VZ
3711 enablestring=
3712 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
82d43113 3713echo "configure:3714: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3714 no_cache=0
3715 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3716if test "${enable_apple_ieee+set}" = set; then
3717 enableval="$enable_apple_ieee"
a0b9e27f 3718
10f2d63a
VZ
3719 if test "$enableval" = yes; then
3720 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3721 else
3722 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3723 fi
a0b9e27f 3724
10f2d63a 3725else
a0b9e27f 3726
10f2d63a
VZ
3727 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3735
3736fi
10f2d63a
VZ
3737
3738
3739 eval "$ac_cv_use_apple_ieee"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_APPLE_IEEE" = 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}-timer""... $ac_c" 1>&6
82d43113 3753echo "configure:3754: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3754 no_cache=0
1e6feb95
VZ
3755 # Check whether --enable-timer or --disable-timer was given.
3756if test "${enable_timer+set}" = set; then
3757 enableval="$enable_timer"
a0b9e27f 3758
10f2d63a 3759 if test "$enableval" = yes; then
1e6feb95 3760 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3761 else
1e6feb95 3762 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3763 fi
a0b9e27f 3764
10f2d63a 3765else
a0b9e27f 3766
1e6feb95 3767 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
1e6feb95 3774 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3775
3776fi
10f2d63a
VZ
3777
3778
1e6feb95 3779 eval "$ac_cv_use_timer"
10f2d63a 3780 if test "$no_cache" != 1; then
1e6feb95 3781 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3782 fi
3783
1e6feb95 3784 if test "$wxUSE_TIMER" = 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}-wave""... $ac_c" 1>&6
82d43113 3793echo "configure:3794: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3794 no_cache=0
3795 # Check whether --enable-wave or --disable-wave was given.
3796if test "${enable_wave+set}" = set; then
3797 enableval="$enable_wave"
a0b9e27f 3798
10f2d63a
VZ
3799 if test "$enableval" = yes; then
3800 ac_cv_use_wave='wxUSE_WAVE=yes'
3801 else
3802 ac_cv_use_wave='wxUSE_WAVE=no'
3803 fi
a0b9e27f 3804
10f2d63a 3805else
a0b9e27f 3806
10f2d63a
VZ
3807 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3815
3816fi
10f2d63a
VZ
3817
3818
3819 eval "$ac_cv_use_wave"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_WAVE" = 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}-fraction""... $ac_c" 1>&6
82d43113 3833echo "configure:3834: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-fraction or --disable-fraction was given.
3836if test "${enable_fraction+set}" = set; then
3837 enableval="$enable_fraction"
a0b9e27f 3838
10f2d63a
VZ
3839 if test "$enableval" = yes; then
3840 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3841 else
3842 ac_cv_use_fraction='wxUSE_FRACTION=no'
3843 fi
a0b9e27f 3844
10f2d63a 3845else
a0b9e27f 3846
10f2d63a
VZ
3847 LINE=`grep "wxUSE_FRACTION" ${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_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3855
3856fi
10f2d63a
VZ
3857
3858
3859 eval "$ac_cv_use_fraction"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_FRACTION" = 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}-dynlib""... $ac_c" 1>&6
82d43113 3873echo "configure:3874: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3874 no_cache=0
3875 # Check whether --enable-dynlib or --disable-dynlib was given.
3876if test "${enable_dynlib+set}" = set; then
3877 enableval="$enable_dynlib"
a0b9e27f 3878
10f2d63a
VZ
3879 if test "$enableval" = yes; then
3880 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3881 else
3882 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3883 fi
a0b9e27f 3884
10f2d63a 3885else
a0b9e27f 3886
10f2d63a
VZ
3887 LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3895
3896fi
10f2d63a
VZ
3897
3898
3899 eval "$ac_cv_use_dynlib"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_DYNLIB_CLASS" = 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}-dynamicloader""... $ac_c" 1>&6
82d43113 3913echo "configure:3914: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3914 no_cache=0
3915 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3916if test "${enable_dynamicloader+set}" = set; then
3917 enableval="$enable_dynamicloader"
a0b9e27f 3918
0b9ab0bd
RL
3919 if test "$enableval" = yes; then
3920 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3921 else
3922 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3923 fi
a0b9e27f 3924
0b9ab0bd 3925else
a0b9e27f 3926
0b9ab0bd
RL
3927 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${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_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3935
3936fi
0b9ab0bd
RL
3937
3938
3939 eval "$ac_cv_use_dynamicloader"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3945 echo "$ac_t""yes" 1>&6
0b9ab0bd 3946 else
a0b9e27f 3947 echo "$ac_t""no" 1>&6
0b9ab0bd 3948 fi
a0b9e27f 3949
0b9ab0bd 3950
5005acfe
VZ
3951 enablestring=
3952 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
82d43113 3953echo "configure:3954: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3954 no_cache=0
3955 # Check whether --enable-longlong or --disable-longlong was given.
3956if test "${enable_longlong+set}" = set; then
3957 enableval="$enable_longlong"
a0b9e27f 3958
10f2d63a
VZ
3959 if test "$enableval" = yes; then
3960 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3961 else
3962 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3963 fi
a0b9e27f 3964
10f2d63a 3965else
a0b9e27f 3966
10f2d63a
VZ
3967 LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3975
3976fi
10f2d63a
VZ
3977
3978
3979 eval "$ac_cv_use_longlong"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3985 echo "$ac_t""yes" 1>&6
10f2d63a 3986 else
a0b9e27f 3987 echo "$ac_t""no" 1>&6
10f2d63a 3988 fi
a0b9e27f 3989
10f2d63a 3990
5005acfe
VZ
3991 enablestring=
3992 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
82d43113 3993echo "configure:3994: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3994 no_cache=0
3995 # Check whether --enable-geometry or --disable-geometry was given.
3996if test "${enable_geometry+set}" = set; then
3997 enableval="$enable_geometry"
a0b9e27f 3998
e8f65ba6
RR
3999 if test "$enableval" = yes; then
4000 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4001 else
4002 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4003 fi
a0b9e27f 4004
e8f65ba6 4005else
a0b9e27f 4006
e8f65ba6
RR
4007 LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
4015
4016fi
e8f65ba6
RR
4017
4018
4019 eval "$ac_cv_use_geometry"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 4025 echo "$ac_t""yes" 1>&6
e8f65ba6 4026 else
a0b9e27f 4027 echo "$ac_t""no" 1>&6
e8f65ba6 4028 fi
a0b9e27f 4029
e8f65ba6 4030
5005acfe
VZ
4031 enablestring=
4032 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
82d43113 4033echo "configure:4034: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4034 no_cache=0
4035 # Check whether --enable-log or --disable-log was given.
4036if test "${enable_log+set}" = set; then
4037 enableval="$enable_log"
a0b9e27f 4038
10f2d63a
VZ
4039 if test "$enableval" = yes; then
4040 ac_cv_use_log='wxUSE_LOG=yes'
4041 else
4042 ac_cv_use_log='wxUSE_LOG=no'
4043 fi
a0b9e27f 4044
10f2d63a 4045else
a0b9e27f 4046
10f2d63a
VZ
4047 LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4055
4056fi
10f2d63a
VZ
4057
4058
4059 eval "$ac_cv_use_log"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4065 echo "$ac_t""yes" 1>&6
10f2d63a 4066 else
a0b9e27f 4067 echo "$ac_t""no" 1>&6
10f2d63a 4068 fi
a0b9e27f 4069
10f2d63a 4070
5005acfe
VZ
4071 enablestring=
4072 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
82d43113 4073echo "configure:4074: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4074 no_cache=0
4075 # Check whether --enable-streams or --disable-streams was given.
4076if test "${enable_streams+set}" = set; then
4077 enableval="$enable_streams"
a0b9e27f 4078
10f2d63a
VZ
4079 if test "$enableval" = yes; then
4080 ac_cv_use_streams='wxUSE_STREAMS=yes'
4081 else
4082 ac_cv_use_streams='wxUSE_STREAMS=no'
4083 fi
a0b9e27f 4084
10f2d63a 4085else
a0b9e27f 4086
10f2d63a
VZ
4087 LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4095
4096fi
10f2d63a
VZ
4097
4098
4099 eval "$ac_cv_use_streams"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_STREAMS" = 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}-file""... $ac_c" 1>&6
82d43113 4113echo "configure:4114: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4114 no_cache=0
4115 # Check whether --enable-file or --disable-file was given.
4116if test "${enable_file+set}" = set; then
4117 enableval="$enable_file"
a0b9e27f 4118
10f2d63a
VZ
4119 if test "$enableval" = yes; then
4120 ac_cv_use_file='wxUSE_FILE=yes'
4121 else
4122 ac_cv_use_file='wxUSE_FILE=no'
4123 fi
a0b9e27f 4124
10f2d63a 4125else
a0b9e27f 4126
10f2d63a
VZ
4127 LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4135
4136fi
10f2d63a
VZ
4137
4138
4139 eval "$ac_cv_use_file"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_FILE" = 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}-ffile""... $ac_c" 1>&6
82d43113 4153echo "configure:4154: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4154 no_cache=0
1e6feb95
VZ
4155 # Check whether --enable-ffile or --disable-ffile was given.
4156if test "${enable_ffile+set}" = set; then
4157 enableval="$enable_ffile"
a0b9e27f 4158
10f2d63a 4159 if test "$enableval" = yes; then
1e6feb95 4160 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4161 else
1e6feb95 4162 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4163 fi
a0b9e27f 4164
10f2d63a 4165else
a0b9e27f 4166
1e6feb95 4167 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
1e6feb95 4174 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4175
4176fi
10f2d63a
VZ
4177
4178
1e6feb95 4179 eval "$ac_cv_use_ffile"
10f2d63a 4180 if test "$no_cache" != 1; then
1e6feb95 4181 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4182 fi
4183
1e6feb95 4184 if test "$wxUSE_FFILE" = 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}-textbuf""... $ac_c" 1>&6
82d43113 4193echo "configure:4194: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4194 no_cache=0
4195 # Check whether --enable-textbuf or --disable-textbuf was given.
4196if test "${enable_textbuf+set}" = set; then
4197 enableval="$enable_textbuf"
a0b9e27f 4198
a3a584a7
VZ
4199 if test "$enableval" = yes; then
4200 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4201 else
4202 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4203 fi
a0b9e27f 4204
a3a584a7 4205else
a0b9e27f 4206
a3a584a7
VZ
4207 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4215
4216fi
a3a584a7
VZ
4217
4218
4219 eval "$ac_cv_use_textbuf"
4220 if test "$no_cache" != 1; then
4221 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4222 fi
4223
4224 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4225 echo "$ac_t""yes" 1>&6
a3a584a7 4226 else
a0b9e27f 4227 echo "$ac_t""no" 1>&6
a3a584a7 4228 fi
a0b9e27f 4229
a3a584a7 4230
5005acfe
VZ
4231 enablestring=
4232 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
82d43113 4233echo "configure:4234: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4234 no_cache=0
1e6feb95
VZ
4235 # Check whether --enable-textfile or --disable-textfile was given.
4236if test "${enable_textfile+set}" = set; then
4237 enableval="$enable_textfile"
a0b9e27f 4238
10f2d63a 4239 if test "$enableval" = yes; then
1e6feb95 4240 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4241 else
1e6feb95 4242 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4243 fi
a0b9e27f 4244
10f2d63a 4245else
a0b9e27f 4246
1e6feb95 4247 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4248 if test "x$LINE" != x ; then
4249 eval "DEFAULT_$LINE"
4250 else
4251 no_cache=1
4252 fi
4253
1e6feb95 4254 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4255
4256fi
10f2d63a
VZ
4257
4258
1e6feb95 4259 eval "$ac_cv_use_textfile"
10f2d63a 4260 if test "$no_cache" != 1; then
1e6feb95 4261 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4262 fi
4263
1e6feb95 4264 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4265 echo "$ac_t""yes" 1>&6
10f2d63a 4266 else
a0b9e27f 4267 echo "$ac_t""no" 1>&6
10f2d63a 4268 fi
a0b9e27f 4269
10f2d63a 4270
5005acfe
VZ
4271 enablestring=
4272 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
82d43113 4273echo "configure:4274: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4274 no_cache=0
1e6feb95
VZ
4275 # Check whether --enable-fontmap or --disable-fontmap was given.
4276if test "${enable_fontmap+set}" = set; then
4277 enableval="$enable_fontmap"
a0b9e27f 4278
10f2d63a 4279 if test "$enableval" = yes; then
1e6feb95 4280 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4281 else
1e6feb95 4282 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4283 fi
a0b9e27f 4284
10f2d63a 4285else
a0b9e27f 4286
1e6feb95 4287 LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4295
4296fi
10f2d63a
VZ
4297
4298
1e6feb95 4299 eval "$ac_cv_use_fontmap"
10f2d63a 4300 if test "$no_cache" != 1; then
1e6feb95 4301 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4302 fi
4303
1e6feb95 4304 if test "$wxUSE_FONTMAP" = 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}-unicode""... $ac_c" 1>&6
82d43113 4313echo "configure:4314: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4314 no_cache=0
1e6feb95
VZ
4315 # Check whether --enable-unicode or --disable-unicode was given.
4316if test "${enable_unicode+set}" = set; then
4317 enableval="$enable_unicode"
a0b9e27f 4318
1e6feb95
VZ
4319 if test "$enableval" = yes; then
4320 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4321 else
4322 ac_cv_use_unicode='wxUSE_UNICODE=no'
4323 fi
a0b9e27f 4324
1e6feb95 4325else
a0b9e27f 4326
1e6feb95
VZ
4327 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4335
4336fi
1e6feb95
VZ
4337
4338
4339 eval "$ac_cv_use_unicode"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4345 echo "$ac_t""yes" 1>&6
1e6feb95 4346 else
a0b9e27f 4347 echo "$ac_t""no" 1>&6
1e6feb95 4348 fi
a0b9e27f 4349
1e6feb95 4350
5005acfe
VZ
4351 enablestring=
4352 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
82d43113 4353echo "configure:4354: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4354 no_cache=0
4355 # Check whether --enable-mslu or --disable-mslu was given.
4356if test "${enable_mslu+set}" = set; then
4357 enableval="$enable_mslu"
a0b9e27f 4358
a72a4bfa
VS
4359 if test "$enableval" = yes; then
4360 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4361 else
4362 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4363 fi
a0b9e27f 4364
a72a4bfa 4365else
a0b9e27f 4366
a72a4bfa
VS
4367 LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4375
4376fi
a72a4bfa
VS
4377
4378
4379 eval "$ac_cv_use_mslu"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4385 echo "$ac_t""yes" 1>&6
a72a4bfa 4386 else
a0b9e27f 4387 echo "$ac_t""no" 1>&6
a72a4bfa 4388 fi
a0b9e27f 4389
a72a4bfa 4390
5005acfe
VZ
4391 enablestring=
4392 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
82d43113 4393echo "configure:4394: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4394 no_cache=0
4395 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4396if test "${enable_wxprintfv+set}" = set; then
4397 enableval="$enable_wxprintfv"
a0b9e27f 4398
1e6feb95 4399 if test "$enableval" = yes; then
10f2d63a
VZ
4400 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4401 else
4402 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4403 fi
a0b9e27f 4404
10f2d63a 4405else
a0b9e27f 4406
10f2d63a
VZ
4407 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4415
4416fi
10f2d63a
VZ
4417
4418
4419 eval "$ac_cv_use_wxprintfv"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4425 echo "$ac_t""yes" 1>&6
10f2d63a 4426 else
a0b9e27f 4427 echo "$ac_t""no" 1>&6
10f2d63a 4428 fi
a0b9e27f 4429
10f2d63a 4430
5005acfe
VZ
4431 enablestring=
4432 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
82d43113 4433echo "configure:4434: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4434 no_cache=0
4435 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4436if test "${enable_std_iostreams+set}" = set; then
4437 enableval="$enable_std_iostreams"
a0b9e27f 4438
10f2d63a
VZ
4439 if test "$enableval" = yes; then
4440 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4441 else
4442 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4443 fi
a0b9e27f 4444
10f2d63a 4445else
a0b9e27f 4446
10f2d63a
VZ
4447 LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4455
4456fi
10f2d63a
VZ
4457
4458
4459 eval "$ac_cv_use_std_iostreams"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_STD_IOSTREAM" = 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}-filesystem""... $ac_c" 1>&6
82d43113 4473echo "configure:4474: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4474 no_cache=0
4475 # Check whether --enable-filesystem or --disable-filesystem was given.
4476if test "${enable_filesystem+set}" = set; then
4477 enableval="$enable_filesystem"
a0b9e27f 4478
24528b0c
VS
4479 if test "$enableval" = yes; then
4480 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4481 else
4482 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4483 fi
a0b9e27f 4484
24528b0c 4485else
a0b9e27f 4486
24528b0c
VS
4487 LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4495
4496fi
24528b0c
VS
4497
4498
4499 eval "$ac_cv_use_filesystem"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4505 echo "$ac_t""yes" 1>&6
24528b0c 4506 else
a0b9e27f 4507 echo "$ac_t""no" 1>&6
24528b0c 4508 fi
a0b9e27f 4509
24528b0c 4510
5005acfe
VZ
4511 enablestring=
4512 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
82d43113 4513echo "configure:4514: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4514 no_cache=0
4515 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4516if test "${enable_fs_inet+set}" = set; then
4517 enableval="$enable_fs_inet"
a0b9e27f 4518
10f2d63a
VZ
4519 if test "$enableval" = yes; then
4520 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4521 else
4522 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4523 fi
a0b9e27f 4524
10f2d63a 4525else
a0b9e27f 4526
10f2d63a
VZ
4527 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4535
4536fi
10f2d63a
VZ
4537
4538
4539 eval "$ac_cv_use_fs_inet"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4545 echo "$ac_t""yes" 1>&6
10f2d63a 4546 else
a0b9e27f 4547 echo "$ac_t""no" 1>&6
10f2d63a 4548 fi
a0b9e27f 4549
10f2d63a 4550
5005acfe
VZ
4551 enablestring=
4552 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
82d43113 4553echo "configure:4554: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4554 no_cache=0
4555 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4556if test "${enable_fs_zip+set}" = set; then
4557 enableval="$enable_fs_zip"
a0b9e27f 4558
10f2d63a
VZ
4559 if test "$enableval" = yes; then
4560 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4561 else
4562 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4563 fi
a0b9e27f 4564
10f2d63a 4565else
a0b9e27f 4566
10f2d63a
VZ
4567 LINE=`grep "wxUSE_FS_ZIP" ${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_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4575
4576fi
10f2d63a
VZ
4577
4578
4579 eval "$ac_cv_use_fs_zip"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_FS_ZIP" = 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}-zipstream""... $ac_c" 1>&6
82d43113 4593echo "configure:4594: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4594 no_cache=0
4595 # Check whether --enable-zipstream or --disable-zipstream was given.
4596if test "${enable_zipstream+set}" = set; then
4597 enableval="$enable_zipstream"
a0b9e27f 4598
10f2d63a
VZ
4599 if test "$enableval" = yes; then
4600 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4601 else
4602 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4603 fi
a0b9e27f 4604
10f2d63a 4605else
a0b9e27f 4606
10f2d63a
VZ
4607 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4615
4616fi
10f2d63a
VZ
4617
4618
4619 eval "$ac_cv_use_zipstream"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_ZIPSTREAM" = 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
8284b0c5 4630
52127426 4631
5005acfe
VZ
4632 enablestring=
4633 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
82d43113 4634echo "configure:4635: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4635 no_cache=0
4636 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4637if test "${enable_catch_segvs+set}" = set; then
4638 enableval="$enable_catch_segvs"
a0b9e27f 4639
eb4efbdc
VZ
4640 if test "$enableval" = yes; then
4641 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4642 else
4643 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4644 fi
a0b9e27f 4645
eb4efbdc 4646else
a0b9e27f 4647
eb4efbdc
VZ
4648 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4656
4657fi
eb4efbdc
VZ
4658
4659
4660 eval "$ac_cv_use_catch_segvs"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4666 echo "$ac_t""yes" 1>&6
eb4efbdc 4667 else
a0b9e27f 4668 echo "$ac_t""no" 1>&6
eb4efbdc 4669 fi
a0b9e27f 4670
eb4efbdc 4671
5005acfe
VZ
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
82d43113 4674echo "configure:4675: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4675 no_cache=0
4676 # Check whether --enable-snglinst or --disable-snglinst was given.
4677if test "${enable_snglinst+set}" = set; then
4678 enableval="$enable_snglinst"
a0b9e27f 4679
4f3c5f06
VZ
4680 if test "$enableval" = yes; then
4681 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4682 else
4683 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4684 fi
a0b9e27f 4685
4f3c5f06 4686else
a0b9e27f 4687
4f3c5f06
VZ
4688 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4696
4697fi
4f3c5f06
VZ
4698
4699
4700 eval "$ac_cv_use_snglinst"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4706 echo "$ac_t""yes" 1>&6
4f3c5f06 4707 else
a0b9e27f 4708 echo "$ac_t""no" 1>&6
4f3c5f06 4709 fi
a0b9e27f 4710
52127426 4711
8284b0c5 4712
5005acfe
VZ
4713 enablestring=
4714 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
82d43113 4715echo "configure:4716: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4716 no_cache=0
4717 # Check whether --enable-mimetype or --disable-mimetype was given.
4718if test "${enable_mimetype+set}" = set; then
4719 enableval="$enable_mimetype"
a0b9e27f 4720
1e6feb95
VZ
4721 if test "$enableval" = yes; then
4722 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4723 else
4724 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4725 fi
a0b9e27f 4726
1e6feb95 4727else
a0b9e27f 4728
1e6feb95
VZ
4729 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4737
4738fi
1e6feb95
VZ
4739
4740
4741 eval "$ac_cv_use_mimetype"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4747 echo "$ac_t""yes" 1>&6
1e6feb95 4748 else
a0b9e27f 4749 echo "$ac_t""no" 1>&6
1e6feb95 4750 fi
a0b9e27f 4751
1e6feb95 4752
5005acfe
VZ
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
82d43113 4755echo "configure:4756: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4756 no_cache=0
4757 # Check whether --enable-system_options or --disable-system_options was given.
4758if test "${enable_system_options+set}" = set; then
4759 enableval="$enable_system_options"
a0b9e27f 4760
3e44f09d
VZ
4761 if test "$enableval" = yes; then
4762 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4763 else
4764 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4765 fi
a0b9e27f 4766
3e44f09d 4767else
a0b9e27f 4768
3e44f09d
VZ
4769 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4777
4778fi
3e44f09d
VZ
4779
4780
4781 eval "$ac_cv_use_system_options"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4787 echo "$ac_t""yes" 1>&6
3e44f09d 4788 else
a0b9e27f 4789 echo "$ac_t""no" 1>&6
3e44f09d 4790 fi
a0b9e27f 4791
8284b0c5 4792
52127426 4793
5005acfe
VZ
4794 enablestring=
4795 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
82d43113 4796echo "configure:4797: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4797 no_cache=0
4798 # Check whether --enable-url or --disable-url was given.
4799if test "${enable_url+set}" = set; then
4800 enableval="$enable_url"
a0b9e27f 4801
4cdb0ab0
VS
4802 if test "$enableval" = yes; then
4803 ac_cv_use_url='wxUSE_URL=yes'
4804 else
4805 ac_cv_use_url='wxUSE_URL=no'
4806 fi
a0b9e27f 4807
4cdb0ab0 4808else
a0b9e27f 4809
4cdb0ab0
VS
4810 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4818
4819fi
4cdb0ab0
VS
4820
4821
4822 eval "$ac_cv_use_url"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_URL" = yes; then
a0b9e27f 4828 echo "$ac_t""yes" 1>&6
4cdb0ab0 4829 else
a0b9e27f 4830 echo "$ac_t""no" 1>&6
4cdb0ab0 4831 fi
a0b9e27f 4832
4cdb0ab0 4833
5005acfe
VZ
4834 enablestring=
4835 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
82d43113 4836echo "configure:4837: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4837 no_cache=0
4838 # Check whether --enable-protocol or --disable-protocol was given.
4839if test "${enable_protocol+set}" = set; then
4840 enableval="$enable_protocol"
a0b9e27f 4841
4cdb0ab0
VS
4842 if test "$enableval" = yes; then
4843 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4844 else
4845 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4846 fi
a0b9e27f 4847
4cdb0ab0 4848else
a0b9e27f 4849
4cdb0ab0
VS
4850 LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4858
4859fi
4cdb0ab0
VS
4860
4861
4862 eval "$ac_cv_use_protocol"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_PROTOCOL" = 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_http""... $ac_c" 1>&6
82d43113 4876echo "configure:4877: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4877 no_cache=0
4878 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4879if test "${enable_protocol_http+set}" = set; then
4880 enableval="$enable_protocol_http"
a0b9e27f 4881
4cdb0ab0
VS
4882 if test "$enableval" = yes; then
4883 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4884 else
4885 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4886 fi
a0b9e27f 4887
4cdb0ab0 4888else
a0b9e27f 4889
4cdb0ab0
VS
4890 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4898
4899fi
4cdb0ab0
VS
4900
4901
4902 eval "$ac_cv_use_protocol_http"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_PROTOCOL_HTTP" = 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_ftp""... $ac_c" 1>&6
82d43113 4916echo "configure:4917: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4917 no_cache=0
4918 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4919if test "${enable_protocol_ftp+set}" = set; then
4920 enableval="$enable_protocol_ftp"
a0b9e27f 4921
4cdb0ab0
VS
4922 if test "$enableval" = yes; then
4923 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4924 else
4925 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4926 fi
a0b9e27f 4927
4cdb0ab0 4928else
a0b9e27f 4929
4cdb0ab0
VS
4930 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4938
4939fi
4cdb0ab0
VS
4940
4941
4942 eval "$ac_cv_use_protocol_ftp"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_PROTOCOL_FTP" = 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_file""... $ac_c" 1>&6
82d43113 4956echo "configure:4957: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4957 no_cache=0
4958 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4959if test "${enable_protocol_file+set}" = set; then
4960 enableval="$enable_protocol_file"
a0b9e27f 4961
4cdb0ab0
VS
4962 if test "$enableval" = yes; then
4963 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4964 else
4965 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4966 fi
a0b9e27f 4967
4cdb0ab0 4968else
a0b9e27f 4969
4cdb0ab0
VS
4970 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4978
4979fi
4cdb0ab0
VS
4980
4981
4982 eval "$ac_cv_use_protocol_file"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_PROTOCOL_FILE" = 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
52127426 4993
8284b0c5
MB
4994
4995
4996
5005acfe
VZ
4997 enablestring=
4998 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
82d43113 4999echo "configure:5000: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
5000 no_cache=0
5001 # Check whether --enable-threads or --disable-threads was given.
5002if test "${enable_threads+set}" = set; then
5003 enableval="$enable_threads"
a0b9e27f 5004
10f2d63a
VZ
5005 if test "$enableval" = yes; then
5006 ac_cv_use_threads='wxUSE_THREADS=yes'
5007 else
5008 ac_cv_use_threads='wxUSE_THREADS=no'
5009 fi
a0b9e27f 5010
10f2d63a 5011else
a0b9e27f 5012
10f2d63a
VZ
5013 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
5021
5022fi
10f2d63a
VZ
5023
5024
5025 eval "$ac_cv_use_threads"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5031 echo "$ac_t""yes" 1>&6
10f2d63a 5032 else
a0b9e27f 5033 echo "$ac_t""no" 1>&6
10f2d63a 5034 fi
a0b9e27f 5035
10f2d63a 5036
b12915c1
VZ
5037if test "$wxUSE_GUI" = "yes"; then
5038
8284b0c5
MB
5039
5040
5005acfe
VZ
5041 enablestring=
5042 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
82d43113 5043echo "configure:5044: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5044 no_cache=0
5045 # Check whether --enable-docview or --disable-docview was given.
5046if test "${enable_docview+set}" = set; then
5047 enableval="$enable_docview"
a0b9e27f 5048
10f2d63a
VZ
5049 if test "$enableval" = yes; then
5050 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5051 else
5052 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5053 fi
a0b9e27f 5054
10f2d63a 5055else
a0b9e27f 5056
10f2d63a
VZ
5057 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5065
5066fi
10f2d63a
VZ
5067
5068
5069 eval "$ac_cv_use_docview"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5075 echo "$ac_t""yes" 1>&6
10f2d63a 5076 else
a0b9e27f 5077 echo "$ac_t""no" 1>&6
10f2d63a 5078 fi
a0b9e27f 5079
10f2d63a 5080
5005acfe
VZ
5081 enablestring=
5082 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
82d43113 5083echo "configure:5084: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5084 no_cache=0
5085 # Check whether --enable-help or --disable-help was given.
5086if test "${enable_help+set}" = set; then
5087 enableval="$enable_help"
a0b9e27f 5088
10f2d63a
VZ
5089 if test "$enableval" = yes; then
5090 ac_cv_use_help='wxUSE_HELP=yes'
5091 else
5092 ac_cv_use_help='wxUSE_HELP=no'
5093 fi
a0b9e27f 5094
10f2d63a 5095else
a0b9e27f 5096
10f2d63a
VZ
5097 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5105
5106fi
10f2d63a
VZ
5107
5108
5109 eval "$ac_cv_use_help"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_HELP" = 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}-mshtmlhelp""... $ac_c" 1>&6
82d43113 5123echo "configure:5124: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5124 no_cache=0
5125 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5126if test "${enable_mshtmlhelp+set}" = set; then
5127 enableval="$enable_mshtmlhelp"
a0b9e27f 5128
29fd3c0c
VS
5129 if test "$enableval" = yes; then
5130 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5131 else
5132 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5133 fi
a0b9e27f 5134
29fd3c0c 5135else
a0b9e27f 5136
29fd3c0c
VS
5137 LINE=`grep "wxUSE_MS_HTML_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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5145
5146fi
29fd3c0c
VS
5147
5148
5149 eval "$ac_cv_use_mshtmlhelp"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5155 echo "$ac_t""yes" 1>&6
29fd3c0c 5156 else
a0b9e27f 5157 echo "$ac_t""no" 1>&6
29fd3c0c 5158 fi
a0b9e27f 5159
29fd3c0c 5160
5005acfe
VZ
5161 enablestring=
5162 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
82d43113 5163echo "configure:5164: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5164 no_cache=0
5165 # Check whether --enable-html or --disable-html was given.
5166if test "${enable_html+set}" = set; then
5167 enableval="$enable_html"
a0b9e27f 5168
3379ed37
VZ
5169 if test "$enableval" = yes; then
5170 ac_cv_use_html='wxUSE_HTML=yes'
5171 else
5172 ac_cv_use_html='wxUSE_HTML=no'
5173 fi
a0b9e27f 5174
3379ed37 5175else
a0b9e27f 5176
3379ed37
VZ
5177 LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5185
5186fi
3379ed37
VZ
5187
5188
5189 eval "$ac_cv_use_html"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5195 echo "$ac_t""yes" 1>&6
3379ed37 5196 else
a0b9e27f 5197 echo "$ac_t""no" 1>&6
3379ed37 5198 fi
a0b9e27f 5199
3379ed37 5200
5005acfe
VZ
5201 enablestring=
5202 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
82d43113 5203echo "configure:5204: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5204 no_cache=0
5205 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5206if test "${enable_htmlhelp+set}" = set; then
5207 enableval="$enable_htmlhelp"
a0b9e27f 5208
3379ed37
VZ
5209 if test "$enableval" = yes; then
5210 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5211 else
5212 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5213 fi
a0b9e27f 5214
3379ed37 5215else
a0b9e27f 5216
3379ed37
VZ
5217 LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5225
5226fi
3379ed37
VZ
5227
5228
5229 eval "$ac_cv_use_htmlhelp"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_WXHTML_HELP" = 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}-constraints""... $ac_c" 1>&6
82d43113 5243echo "configure:5244: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5244 no_cache=0
5245 # Check whether --enable-constraints or --disable-constraints was given.
5246if test "${enable_constraints+set}" = set; then
5247 enableval="$enable_constraints"
a0b9e27f 5248
10f2d63a
VZ
5249 if test "$enableval" = yes; then
5250 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5251 else
5252 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5253 fi
a0b9e27f 5254
10f2d63a 5255else
a0b9e27f 5256
10f2d63a
VZ
5257 LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5265
5266fi
10f2d63a
VZ
5267
5268
5269 eval "$ac_cv_use_constraints"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5275 echo "$ac_t""yes" 1>&6
10f2d63a 5276 else
a0b9e27f 5277 echo "$ac_t""no" 1>&6
10f2d63a 5278 fi
a0b9e27f 5279
10f2d63a 5280
5005acfe
VZ
5281 enablestring=
5282 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
82d43113 5283echo "configure:5284: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5284 no_cache=0
5285 # Check whether --enable-printarch or --disable-printarch was given.
5286if test "${enable_printarch+set}" = set; then
5287 enableval="$enable_printarch"
a0b9e27f 5288
10f2d63a
VZ
5289 if test "$enableval" = yes; then
5290 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5291 else
5292 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5293 fi
a0b9e27f 5294
10f2d63a 5295else
a0b9e27f 5296
10f2d63a
VZ
5297 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5305
5306fi
10f2d63a
VZ
5307
5308
5309 eval "$ac_cv_use_printarch"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_PRINTING_ARCHITECTURE" = 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}-mdi""... $ac_c" 1>&6
82d43113 5323echo "configure:5324: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5324 no_cache=0
5325 # Check whether --enable-mdi or --disable-mdi was given.
5326if test "${enable_mdi+set}" = set; then
5327 enableval="$enable_mdi"
a0b9e27f 5328
10f2d63a
VZ
5329 if test "$enableval" = yes; then
5330 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5331 else
5332 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5333 fi
a0b9e27f 5334
10f2d63a 5335else
a0b9e27f 5336
10f2d63a
VZ
5337 LINE=`grep "wxUSE_MDI_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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5345
5346fi
10f2d63a
VZ
5347
5348
5349 eval "$ac_cv_use_mdi"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MDI_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
698dcdb6 5360
5005acfe
VZ
5361 enablestring=
5362 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
82d43113 5363echo "configure:5364: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5364 no_cache=0
5365 # Check whether --enable-loggui or --disable-loggui was given.
5366if test "${enable_loggui+set}" = set; then
5367 enableval="$enable_loggui"
a0b9e27f 5368
1e6feb95
VZ
5369 if test "$enableval" = yes; then
5370 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5371 else
5372 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5373 fi
a0b9e27f 5374
1e6feb95 5375else
a0b9e27f 5376
1e6feb95
VZ
5377 LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5385
5386fi
1e6feb95
VZ
5387
5388
5389 eval "$ac_cv_use_loggui"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5395 echo "$ac_t""yes" 1>&6
1e6feb95 5396 else
a0b9e27f 5397 echo "$ac_t""no" 1>&6
1e6feb95 5398 fi
a0b9e27f 5399
1e6feb95 5400
5005acfe
VZ
5401 enablestring=
5402 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
82d43113 5403echo "configure:5404: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5404 no_cache=0
5405 # Check whether --enable-logwin or --disable-logwin was given.
5406if test "${enable_logwin+set}" = set; then
5407 enableval="$enable_logwin"
a0b9e27f 5408
1e6feb95
VZ
5409 if test "$enableval" = yes; then
5410 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5411 else
5412 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5413 fi
a0b9e27f 5414
1e6feb95 5415else
a0b9e27f 5416
1e6feb95
VZ
5417 LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5425
5426fi
1e6feb95
VZ
5427
5428
5429 eval "$ac_cv_use_logwin"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_LOGWINDOW" = 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}-logdialog""... $ac_c" 1>&6
82d43113 5443echo "configure:5444: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5444 no_cache=0
5445 # Check whether --enable-logdialog or --disable-logdialog was given.
5446if test "${enable_logdialog+set}" = set; then
5447 enableval="$enable_logdialog"
a0b9e27f 5448
69d27ff7
MB
5449 if test "$enableval" = yes; then
5450 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5451 else
5452 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5453 fi
a0b9e27f 5454
69d27ff7 5455else
a0b9e27f 5456
69d27ff7
MB
5457 LINE=`grep "wxUSE_LOGDIALOG" ${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_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5465
5466fi
69d27ff7
MB
5467
5468
5469 eval "$ac_cv_use_logdialog"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5475 echo "$ac_t""yes" 1>&6
69d27ff7 5476 else
a0b9e27f 5477 echo "$ac_t""no" 1>&6
69d27ff7 5478 fi
a0b9e27f 5479
8284b0c5 5480
52127426 5481
5005acfe
VZ
5482 enablestring=
5483 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
82d43113 5484echo "configure:5485: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5485 no_cache=0
5486 # Check whether --enable-postscript or --disable-postscript was given.
5487if test "${enable_postscript+set}" = set; then
5488 enableval="$enable_postscript"
a0b9e27f 5489
10f2d63a
VZ
5490 if test "$enableval" = yes; then
5491 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5492 else
5493 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5494 fi
a0b9e27f 5495
10f2d63a 5496else
a0b9e27f 5497
10f2d63a
VZ
5498 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5499 if test "x$LINE" != x ; then
5500 eval "DEFAULT_$LINE"
5501 else
5502 no_cache=1
5503 fi
5504
5505 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5506
5507fi
10f2d63a
VZ
5508
5509
5510 eval "$ac_cv_use_postscript"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5516 echo "$ac_t""yes" 1>&6
10f2d63a 5517 else
a0b9e27f 5518 echo "$ac_t""no" 1>&6
10f2d63a 5519 fi
a0b9e27f 5520
8284b0c5
MB
5521
5522
52127426 5523
8284b0c5 5524
5005acfe
VZ
5525 enablestring=
5526 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
82d43113 5527echo "configure:5528: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a
VZ
5528 no_cache=0
5529 # Check whether --enable-prologio or --disable-prologio was given.
5530if test "${enable_prologio+set}" = set; then
5531 enableval="$enable_prologio"
a0b9e27f 5532
10f2d63a
VZ
5533 if test "$enableval" = yes; then
5534 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5535 else
5536 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5537 fi
a0b9e27f 5538
10f2d63a 5539else
a0b9e27f 5540
10f2d63a
VZ
5541 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5549
5550fi
10f2d63a
VZ
5551
5552
5553 eval "$ac_cv_use_prologio"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5559 echo "$ac_t""yes" 1>&6
10f2d63a 5560 else
a0b9e27f 5561 echo "$ac_t""no" 1>&6
10f2d63a 5562 fi
a0b9e27f 5563
10f2d63a 5564
5005acfe
VZ
5565 enablestring=
5566 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
82d43113 5567echo "configure:5568: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5568 no_cache=0
5569 # Check whether --enable-resources or --disable-resources was given.
5570if test "${enable_resources+set}" = set; then
5571 enableval="$enable_resources"
a0b9e27f 5572
10f2d63a
VZ
5573 if test "$enableval" = yes; then
5574 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5575 else
5576 ac_cv_use_resources='wxUSE_RESOURCES=no'
5577 fi
a0b9e27f 5578
10f2d63a 5579else
a0b9e27f 5580
10f2d63a
VZ
5581 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5589
5590fi
10f2d63a
VZ
5591
5592
5593 eval "$ac_cv_use_resources"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_RESOURCES" = 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
52127426 5605
5005acfe
VZ
5606 enablestring=
5607 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
82d43113 5608echo "configure:5609: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5609 no_cache=0
5610 # Check whether --enable-xresources or --disable-xresources was given.
5611if test "${enable_xresources+set}" = set; then
5612 enableval="$enable_xresources"
a0b9e27f 5613
10f2d63a
VZ
5614 if test "$enableval" = yes; then
5615 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5616 else
5617 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5618 fi
a0b9e27f 5619
10f2d63a 5620else
a0b9e27f 5621
10f2d63a
VZ
5622 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5630
5631fi
10f2d63a
VZ
5632
5633
5634 eval "$ac_cv_use_xresources"
5635 if test "$no_cache" != 1; then
5636 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5637 fi
5638
5639 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5640 echo "$ac_t""yes" 1>&6
10f2d63a 5641 else
a0b9e27f 5642 echo "$ac_t""no" 1>&6
10f2d63a 5643 fi
a0b9e27f 5644
8284b0c5
MB
5645
5646
52127426 5647
5005acfe
VZ
5648 enablestring=
5649 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
82d43113 5650echo "configure:5651: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5651 no_cache=0
5652 # Check whether --enable-clipboard or --disable-clipboard was given.
5653if test "${enable_clipboard+set}" = set; then
5654 enableval="$enable_clipboard"
a0b9e27f 5655
10f2d63a
VZ
5656 if test "$enableval" = yes; then
5657 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5658 else
5659 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5660 fi
a0b9e27f 5661
10f2d63a 5662else
a0b9e27f 5663
10f2d63a
VZ
5664 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5665 if test "x$LINE" != x ; then
5666 eval "DEFAULT_$LINE"
5667 else
5668 no_cache=1
5669 fi
5670
5671 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5672
5673fi
10f2d63a
VZ
5674
5675
5676 eval "$ac_cv_use_clipboard"
5677 if test "$no_cache" != 1; then
5678 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5679 fi
5680
5681 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5682 echo "$ac_t""yes" 1>&6
10f2d63a 5683 else
a0b9e27f 5684 echo "$ac_t""no" 1>&6
10f2d63a 5685 fi
a0b9e27f 5686
10f2d63a 5687
5005acfe
VZ
5688 enablestring=
5689 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
82d43113 5690echo "configure:5691: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5691 no_cache=0
5692 # Check whether --enable-dnd or --disable-dnd was given.
5693if test "${enable_dnd+set}" = set; then
5694 enableval="$enable_dnd"
a0b9e27f 5695
10f2d63a
VZ
5696 if test "$enableval" = yes; then
5697 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5698 else
5699 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5700 fi
a0b9e27f 5701
10f2d63a 5702else
a0b9e27f 5703
10f2d63a
VZ
5704 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5712
5713fi
10f2d63a
VZ
5714
5715
5716 eval "$ac_cv_use_dnd"
5717 if test "$no_cache" != 1; then
5718 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5719 fi
5720
5721 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5722 echo "$ac_t""yes" 1>&6
10f2d63a 5723 else
a0b9e27f 5724 echo "$ac_t""no" 1>&6
10f2d63a 5725 fi
a0b9e27f 5726
10f2d63a 5727
5005acfe
VZ
5728 enablestring=
5729 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
82d43113 5730echo "configure:5731: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5731 no_cache=0
5732 # Check whether --enable-metafile or --disable-metafile was given.
5733if test "${enable_metafile+set}" = set; then
5734 enableval="$enable_metafile"
a0b9e27f 5735
b64f0a5f
RL
5736 if test "$enableval" = yes; then
5737 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5738 else
5739 ac_cv_use_metafile='wxUSE_METAFILE=no'
5740 fi
a0b9e27f 5741
b64f0a5f 5742else
a0b9e27f 5743
b64f0a5f
RL
5744 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5745 if test "x$LINE" != x ; then
5746 eval "DEFAULT_$LINE"
5747 else
5748 no_cache=1
5749 fi
5750
5751 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5752
5753fi
b64f0a5f
RL
5754
5755
5756 eval "$ac_cv_use_metafile"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5762 echo "$ac_t""yes" 1>&6
b64f0a5f 5763 else
a0b9e27f 5764 echo "$ac_t""no" 1>&6
b64f0a5f 5765 fi
a0b9e27f 5766
52127426 5767
8284b0c5 5768
5005acfe
VZ
5769 enablestring=
5770 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
82d43113 5771echo "configure:5772: checking for --${enablestring:-enable}-treelayout" >&5
10f2d63a 5772 no_cache=0
24176f2c
GD
5773 # Check whether --enable-treelayout or --disable-treelayout was given.
5774if test "${enable_treelayout+set}" = set; then
5775 enableval="$enable_treelayout"
a0b9e27f 5776
10f2d63a 5777 if test "$enableval" = yes; then
24176f2c 5778 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5779 else
24176f2c 5780 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5781 fi
a0b9e27f 5782
10f2d63a 5783else
a0b9e27f 5784
24176f2c 5785 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5786 if test "x$LINE" != x ; then
5787 eval "DEFAULT_$LINE"
5788 else
5789 no_cache=1
5790 fi
5791
24176f2c 5792 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5793
5794fi
10f2d63a
VZ
5795
5796
24176f2c 5797 eval "$ac_cv_use_treelayout"
10f2d63a 5798 if test "$no_cache" != 1; then
24176f2c 5799 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5800 fi
5801
24176f2c 5802 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5803 echo "$ac_t""yes" 1>&6
10f2d63a 5804 else
a0b9e27f 5805 echo "$ac_t""no" 1>&6
10f2d63a 5806 fi
a0b9e27f 5807
8284b0c5 5808
52127426 5809
8284b0c5 5810
5005acfe
VZ
5811 enablestring=
5812 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
82d43113 5813echo "configure:5814: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5814 no_cache=0
5815 # Check whether --enable-controls or --disable-controls was given.
5816if test "${enable_controls+set}" = set; then
5817 enableval="$enable_controls"
a0b9e27f 5818
10f2d63a
VZ
5819 if test "$enableval" = yes; then
5820 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5821 else
5822 ac_cv_use_controls='wxUSE_CONTROLS=no'
5823 fi
a0b9e27f 5824
10f2d63a 5825else
a0b9e27f 5826
10f2d63a
VZ
5827 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5835
5836fi
10f2d63a
VZ
5837
5838
5839 eval "$ac_cv_use_controls"
5840 if test "$no_cache" != 1; then
5841 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5842 fi
5843
5844 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5845 echo "$ac_t""yes" 1>&6
10f2d63a 5846 else
a0b9e27f 5847 echo "$ac_t""no" 1>&6
10f2d63a 5848 fi
a0b9e27f 5849
10f2d63a
VZ
5850
5851if test "$wxUSE_CONTROLS" = "yes"; then
5852 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5853 DEFAULT_wxUSE_BMPBUTTON=yes
5854 DEFAULT_wxUSE_BUTTON=yes
5855 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5856 DEFAULT_wxUSE_CARET=yes
5857 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5858 DEFAULT_wxUSE_CHECKBOX=yes
5859 DEFAULT_wxUSE_CHECKLISTBOX=yes
5860 DEFAULT_wxUSE_CHOICE=yes
5861 DEFAULT_wxUSE_GAUGE=yes
5862 DEFAULT_wxUSE_GRID=yes
cc977e5f 5863 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5864 DEFAULT_wxUSE_IMAGLIST=yes
5865 DEFAULT_wxUSE_LISTBOX=yes
5866 DEFAULT_wxUSE_LISTCTRL=yes
5867 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5868 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5869 DEFAULT_wxUSE_RADIOBOX=yes
5870 DEFAULT_wxUSE_RADIOBTN=yes
5871 DEFAULT_wxUSE_SASH=yes
5872 DEFAULT_wxUSE_SCROLLBAR=yes
5873 DEFAULT_wxUSE_SLIDER=yes
5874 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5875 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5876 DEFAULT_wxUSE_SPLITTER=yes
5877 DEFAULT_wxUSE_STATBMP=yes
5878 DEFAULT_wxUSE_STATBOX=yes
5879 DEFAULT_wxUSE_STATLINE=yes
5880 DEFAULT_wxUSE_STATUSBAR=yes
5881 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5882 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5883 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5884 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5885 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5886 DEFAULT_wxUSE_TOOLTIPS=yes
5887 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5888 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5889 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5890elif test "$wxUSE_CONTROLS" = "no"; then
5891 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5892 DEFAULT_wxUSE_BMPBUTTON=no
5893 DEFAULT_wxUSE_BUTTON=no
5894 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5895 DEFAULT_wxUSE_CARET=no
5896 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5897 DEFAULT_wxUSE_CHECKBOX=no
5898 DEFAULT_wxUSE_CHECKLISTBOX=no
5899 DEFAULT_wxUSE_CHOICE=no
5900 DEFAULT_wxUSE_GAUGE=no
5901 DEFAULT_wxUSE_GRID=no
5902 DEFAULT_wxUSE_NEW_GRID=no
5903 DEFAULT_wxUSE_IMAGLIST=no
5904 DEFAULT_wxUSE_LISTBOX=no
5905 DEFAULT_wxUSE_LISTCTRL=no
5906 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5907 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5908 DEFAULT_wxUSE_RADIOBOX=no
5909 DEFAULT_wxUSE_RADIOBTN=no
5910 DEFAULT_wxUSE_SASH=no
5911 DEFAULT_wxUSE_SCROLLBAR=no
5912 DEFAULT_wxUSE_SLIDER=no
5913 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5914 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5915 DEFAULT_wxUSE_SPLITTER=no
5916 DEFAULT_wxUSE_STATBMP=no
5917 DEFAULT_wxUSE_STATBOX=no
5918 DEFAULT_wxUSE_STATLINE=no
5919 DEFAULT_wxUSE_STATUSBAR=no
5920 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5921 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5922 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5923 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5924 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5925 DEFAULT_wxUSE_TOOLTIPS=no
5926 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5927 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5928 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5929fi
5930
8284b0c5 5931
5005acfe
VZ
5932 enablestring=
5933 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
82d43113 5934echo "configure:5935: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5935 no_cache=0
5936 # Check whether --enable-accel or --disable-accel was given.
5937if test "${enable_accel+set}" = set; then
5938 enableval="$enable_accel"
a0b9e27f 5939
10f2d63a
VZ
5940 if test "$enableval" = yes; then
5941 ac_cv_use_accel='wxUSE_ACCEL=yes'
5942 else
5943 ac_cv_use_accel='wxUSE_ACCEL=no'
5944 fi
a0b9e27f 5945
10f2d63a 5946else
a0b9e27f 5947
10f2d63a
VZ
5948 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5956
5957fi
10f2d63a
VZ
5958
5959
5960 eval "$ac_cv_use_accel"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5966 echo "$ac_t""yes" 1>&6
10f2d63a 5967 else
a0b9e27f 5968 echo "$ac_t""no" 1>&6
10f2d63a 5969 fi
a0b9e27f 5970
10f2d63a 5971
5005acfe
VZ
5972 enablestring=
5973 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
82d43113 5974echo "configure:5975: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5975 no_cache=0
1e6feb95
VZ
5976 # Check whether --enable-button or --disable-button was given.
5977if test "${enable_button+set}" = set; then
5978 enableval="$enable_button"
a0b9e27f 5979
10f2d63a 5980 if test "$enableval" = yes; then
1e6feb95 5981 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5982 else
1e6feb95 5983 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5984 fi
a0b9e27f 5985
10f2d63a 5986else
a0b9e27f 5987
1e6feb95 5988 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
1e6feb95 5995 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5996
5997fi
10f2d63a
VZ
5998
5999
1e6feb95 6000 eval "$ac_cv_use_button"
10f2d63a 6001 if test "$no_cache" != 1; then
1e6feb95 6002 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6003 fi
6004
1e6feb95 6005 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 6006 echo "$ac_t""yes" 1>&6
10f2d63a 6007 else
a0b9e27f 6008 echo "$ac_t""no" 1>&6
10f2d63a 6009 fi
a0b9e27f 6010
10f2d63a 6011
5005acfe
VZ
6012 enablestring=
6013 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
82d43113 6014echo "configure:6015: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
6015 no_cache=0
6016 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6017if test "${enable_bmpbutton+set}" = set; then
6018 enableval="$enable_bmpbutton"
a0b9e27f 6019
10f2d63a
VZ
6020 if test "$enableval" = yes; then
6021 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6022 else
6023 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6024 fi
a0b9e27f 6025
10f2d63a 6026else
a0b9e27f 6027
10f2d63a
VZ
6028 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
6036
6037fi
10f2d63a
VZ
6038
6039
6040 eval "$ac_cv_use_bmpbutton"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6046 echo "$ac_t""yes" 1>&6
10f2d63a 6047 else
a0b9e27f 6048 echo "$ac_t""no" 1>&6
10f2d63a 6049 fi
a0b9e27f 6050
10f2d63a 6051
5005acfe
VZ
6052 enablestring=
6053 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
82d43113 6054echo "configure:6055: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6055 no_cache=0
6056 # Check whether --enable-calendar or --disable-calendar was given.
6057if test "${enable_calendar+set}" = set; then
6058 enableval="$enable_calendar"
a0b9e27f 6059
1e6feb95
VZ
6060 if test "$enableval" = yes; then
6061 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6062 else
6063 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6064 fi
a0b9e27f 6065
1e6feb95 6066else
a0b9e27f 6067
1e6feb95
VZ
6068 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6076
6077fi
1e6feb95
VZ
6078
6079
6080 eval "$ac_cv_use_calendar"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6086 echo "$ac_t""yes" 1>&6
1e6feb95 6087 else
a0b9e27f 6088 echo "$ac_t""no" 1>&6
1e6feb95 6089 fi
a0b9e27f 6090
1e6feb95 6091
5005acfe
VZ
6092 enablestring=
6093 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
82d43113 6094echo "configure:6095: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6095 no_cache=0
6096 # Check whether --enable-caret or --disable-caret was given.
6097if test "${enable_caret+set}" = set; then
6098 enableval="$enable_caret"
a0b9e27f 6099
1e6feb95
VZ
6100 if test "$enableval" = yes; then
6101 ac_cv_use_caret='wxUSE_CARET=yes'
6102 else
6103 ac_cv_use_caret='wxUSE_CARET=no'
6104 fi
a0b9e27f 6105
1e6feb95 6106else
a0b9e27f 6107
1e6feb95
VZ
6108 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6116
6117fi
1e6feb95
VZ
6118
6119
6120 eval "$ac_cv_use_caret"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6126 echo "$ac_t""yes" 1>&6
1e6feb95 6127 else
a0b9e27f 6128 echo "$ac_t""no" 1>&6
1e6feb95 6129 fi
a0b9e27f 6130
1e6feb95 6131
5005acfe
VZ
6132 enablestring=
6133 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
82d43113 6134echo "configure:6135: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6135 no_cache=0
6136 # Check whether --enable-checkbox or --disable-checkbox was given.
6137if test "${enable_checkbox+set}" = set; then
6138 enableval="$enable_checkbox"
a0b9e27f 6139
10f2d63a
VZ
6140 if test "$enableval" = yes; then
6141 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6142 else
6143 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6144 fi
a0b9e27f 6145
10f2d63a 6146else
a0b9e27f 6147
10f2d63a
VZ
6148 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6156
6157fi
10f2d63a
VZ
6158
6159
6160 eval "$ac_cv_use_checkbox"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6166 echo "$ac_t""yes" 1>&6
10f2d63a 6167 else
a0b9e27f 6168 echo "$ac_t""no" 1>&6
10f2d63a 6169 fi
a0b9e27f 6170
10f2d63a 6171
5005acfe
VZ
6172 enablestring=
6173 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
82d43113 6174echo "configure:6175: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6175 no_cache=0
6176 # Check whether --enable-checklst or --disable-checklst was given.
6177if test "${enable_checklst+set}" = set; then
6178 enableval="$enable_checklst"
a0b9e27f 6179
10f2d63a
VZ
6180 if test "$enableval" = yes; then
6181 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6182 else
6183 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6184 fi
a0b9e27f 6185
10f2d63a 6186else
a0b9e27f 6187
10f2d63a
VZ
6188 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6196
6197fi
10f2d63a
VZ
6198
6199
6200 eval "$ac_cv_use_checklst"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6206 echo "$ac_t""yes" 1>&6
10f2d63a 6207 else
a0b9e27f 6208 echo "$ac_t""no" 1>&6
10f2d63a 6209 fi
a0b9e27f 6210
10f2d63a 6211
5005acfe
VZ
6212 enablestring=
6213 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
82d43113 6214echo "configure:6215: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6215 no_cache=0
6216 # Check whether --enable-choice or --disable-choice was given.
6217if test "${enable_choice+set}" = set; then
6218 enableval="$enable_choice"
a0b9e27f 6219
10f2d63a
VZ
6220 if test "$enableval" = yes; then
6221 ac_cv_use_choice='wxUSE_CHOICE=yes'
6222 else
6223 ac_cv_use_choice='wxUSE_CHOICE=no'
6224 fi
a0b9e27f 6225
10f2d63a 6226else
a0b9e27f 6227
10f2d63a
VZ
6228 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6236
6237fi
10f2d63a
VZ
6238
6239
6240 eval "$ac_cv_use_choice"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6246 echo "$ac_t""yes" 1>&6
10f2d63a 6247 else
a0b9e27f 6248 echo "$ac_t""no" 1>&6
10f2d63a 6249 fi
a0b9e27f 6250
10f2d63a 6251
5005acfe
VZ
6252 enablestring=
6253 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
82d43113 6254echo "configure:6255: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6255 no_cache=0
6256 # Check whether --enable-combobox or --disable-combobox was given.
6257if test "${enable_combobox+set}" = set; then
6258 enableval="$enable_combobox"
a0b9e27f 6259
10f2d63a
VZ
6260 if test "$enableval" = yes; then
6261 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6262 else
6263 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6264 fi
a0b9e27f 6265
10f2d63a 6266else
a0b9e27f 6267
10f2d63a
VZ
6268 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6276
6277fi
10f2d63a
VZ
6278
6279
6280 eval "$ac_cv_use_combobox"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6286 echo "$ac_t""yes" 1>&6
10f2d63a 6287 else
a0b9e27f 6288 echo "$ac_t""no" 1>&6
10f2d63a 6289 fi
a0b9e27f 6290
10f2d63a 6291
5005acfe
VZ
6292 enablestring=
6293 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
82d43113 6294echo "configure:6295: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6295 no_cache=0
6296 # Check whether --enable-gauge or --disable-gauge was given.
6297if test "${enable_gauge+set}" = set; then
6298 enableval="$enable_gauge"
a0b9e27f 6299
10f2d63a
VZ
6300 if test "$enableval" = yes; then
6301 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6302 else
6303 ac_cv_use_gauge='wxUSE_GAUGE=no'
6304 fi
a0b9e27f 6305
10f2d63a 6306else
a0b9e27f 6307
10f2d63a
VZ
6308 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6316
6317fi
10f2d63a
VZ
6318
6319
6320 eval "$ac_cv_use_gauge"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6326 echo "$ac_t""yes" 1>&6
10f2d63a 6327 else
a0b9e27f 6328 echo "$ac_t""no" 1>&6
10f2d63a 6329 fi
a0b9e27f 6330
10f2d63a 6331
5005acfe
VZ
6332 enablestring=
6333 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
82d43113 6334echo "configure:6335: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6335 no_cache=0
6336 # Check whether --enable-grid or --disable-grid was given.
6337if test "${enable_grid+set}" = set; then
6338 enableval="$enable_grid"
a0b9e27f 6339
10f2d63a
VZ
6340 if test "$enableval" = yes; then
6341 ac_cv_use_grid='wxUSE_GRID=yes'
6342 else
6343 ac_cv_use_grid='wxUSE_GRID=no'
6344 fi
a0b9e27f 6345
10f2d63a 6346else
a0b9e27f 6347
10f2d63a
VZ
6348 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6356
6357fi
10f2d63a
VZ
6358
6359
6360 eval "$ac_cv_use_grid"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6366 echo "$ac_t""yes" 1>&6
10f2d63a 6367 else
a0b9e27f 6368 echo "$ac_t""no" 1>&6
10f2d63a 6369 fi
a0b9e27f 6370
10f2d63a 6371
5005acfe
VZ
6372 enablestring=
6373 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
82d43113 6374echo "configure:6375: checking for --${enablestring:-enable}-newgrid" >&5
10f2d63a
VZ
6375 no_cache=0
6376 # Check whether --enable-newgrid or --disable-newgrid was given.
6377if test "${enable_newgrid+set}" = set; then
6378 enableval="$enable_newgrid"
a0b9e27f 6379
10f2d63a
VZ
6380 if test "$enableval" = yes; then
6381 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6382 else
6383 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6384 fi
a0b9e27f 6385
10f2d63a 6386else
a0b9e27f 6387
10f2d63a
VZ
6388 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6396
6397fi
10f2d63a
VZ
6398
6399
6400 eval "$ac_cv_use_newgrid"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6406 echo "$ac_t""yes" 1>&6
10f2d63a 6407 else
a0b9e27f 6408 echo "$ac_t""no" 1>&6
10f2d63a 6409 fi
a0b9e27f 6410
10f2d63a 6411
5005acfe
VZ
6412 enablestring=
6413 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
82d43113 6414echo "configure:6415: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6415 no_cache=0
6416 # Check whether --enable-imaglist or --disable-imaglist was given.
6417if test "${enable_imaglist+set}" = set; then
6418 enableval="$enable_imaglist"
a0b9e27f 6419
10f2d63a
VZ
6420 if test "$enableval" = yes; then
6421 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6422 else
6423 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6424 fi
a0b9e27f 6425
10f2d63a 6426else
a0b9e27f 6427
10f2d63a
VZ
6428 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6436
6437fi
10f2d63a
VZ
6438
6439
6440 eval "$ac_cv_use_imaglist"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6446 echo "$ac_t""yes" 1>&6
10f2d63a 6447 else
a0b9e27f 6448 echo "$ac_t""no" 1>&6
10f2d63a 6449 fi
a0b9e27f 6450
10f2d63a 6451
5005acfe
VZ
6452 enablestring=
6453 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
82d43113 6454echo "configure:6455: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6455 no_cache=0
6456 # Check whether --enable-listbox or --disable-listbox was given.
6457if test "${enable_listbox+set}" = set; then
6458 enableval="$enable_listbox"
a0b9e27f 6459
10f2d63a
VZ
6460 if test "$enableval" = yes; then
6461 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6462 else
6463 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6464 fi
a0b9e27f 6465
10f2d63a 6466else
a0b9e27f 6467
10f2d63a
VZ
6468 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6476
6477fi
10f2d63a
VZ
6478
6479
6480 eval "$ac_cv_use_listbox"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6486 echo "$ac_t""yes" 1>&6
10f2d63a 6487 else
a0b9e27f 6488 echo "$ac_t""no" 1>&6
10f2d63a 6489 fi
a0b9e27f 6490
10f2d63a 6491
5005acfe
VZ
6492 enablestring=
6493 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
82d43113 6494echo "configure:6495: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6495 no_cache=0
6496 # Check whether --enable-listctrl or --disable-listctrl was given.
6497if test "${enable_listctrl+set}" = set; then
6498 enableval="$enable_listctrl"
a0b9e27f 6499
10f2d63a
VZ
6500 if test "$enableval" = yes; then
6501 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6502 else
6503 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6504 fi
a0b9e27f 6505
10f2d63a 6506else
a0b9e27f 6507
10f2d63a
VZ
6508 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6516
6517fi
10f2d63a
VZ
6518
6519
6520 eval "$ac_cv_use_listctrl"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6526 echo "$ac_t""yes" 1>&6
10f2d63a 6527 else
a0b9e27f 6528 echo "$ac_t""no" 1>&6
10f2d63a 6529 fi
a0b9e27f 6530
10f2d63a 6531
5005acfe
VZ
6532 enablestring=
6533 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
82d43113 6534echo "configure:6535: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6535 no_cache=0
6536 # Check whether --enable-notebook or --disable-notebook was given.
6537if test "${enable_notebook+set}" = set; then
6538 enableval="$enable_notebook"
a0b9e27f 6539
10f2d63a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6542 else
6543 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6544 fi
a0b9e27f 6545
10f2d63a 6546else
a0b9e27f 6547
10f2d63a
VZ
6548 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6556
6557fi
10f2d63a
VZ
6558
6559
6560 eval "$ac_cv_use_notebook"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6566 echo "$ac_t""yes" 1>&6
10f2d63a 6567 else
a0b9e27f 6568 echo "$ac_t""no" 1>&6
10f2d63a 6569 fi
a0b9e27f 6570
10f2d63a 6571
5005acfe
VZ
6572 enablestring=
6573 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
82d43113 6574echo "configure:6575: checking for --${enablestring:-enable}-propsheet" >&5
24176f2c
GD
6575 no_cache=0
6576 # Check whether --enable-propsheet or --disable-propsheet was given.
6577if test "${enable_propsheet+set}" = set; then
6578 enableval="$enable_propsheet"
a0b9e27f 6579
24176f2c
GD
6580 if test "$enableval" = yes; then
6581 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6582 else
6583 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6584 fi
a0b9e27f 6585
24176f2c 6586else
a0b9e27f 6587
24176f2c
GD
6588 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6596
6597fi
24176f2c
GD
6598
6599
6600 eval "$ac_cv_use_propsheet"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6606 echo "$ac_t""yes" 1>&6
24176f2c 6607 else
a0b9e27f 6608 echo "$ac_t""no" 1>&6
24176f2c 6609 fi
a0b9e27f 6610
24176f2c 6611
5005acfe
VZ
6612 enablestring=
6613 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
82d43113 6614echo "configure:6615: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6615 no_cache=0
6616 # Check whether --enable-radiobox or --disable-radiobox was given.
6617if test "${enable_radiobox+set}" = set; then
6618 enableval="$enable_radiobox"
a0b9e27f 6619
10f2d63a
VZ
6620 if test "$enableval" = yes; then
6621 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6622 else
6623 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6624 fi
a0b9e27f 6625
10f2d63a 6626else
a0b9e27f 6627
10f2d63a
VZ
6628 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6636
6637fi
10f2d63a
VZ
6638
6639
6640 eval "$ac_cv_use_radiobox"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6646 echo "$ac_t""yes" 1>&6
10f2d63a 6647 else
a0b9e27f 6648 echo "$ac_t""no" 1>&6
10f2d63a 6649 fi
a0b9e27f 6650
10f2d63a 6651
5005acfe
VZ
6652 enablestring=
6653 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
82d43113 6654echo "configure:6655: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6655 no_cache=0
6656 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6657if test "${enable_radiobtn+set}" = set; then
6658 enableval="$enable_radiobtn"
a0b9e27f 6659
10f2d63a
VZ
6660 if test "$enableval" = yes; then
6661 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6662 else
6663 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6664 fi
a0b9e27f 6665
10f2d63a 6666else
a0b9e27f 6667
10f2d63a
VZ
6668 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6676
6677fi
10f2d63a
VZ
6678
6679
6680 eval "$ac_cv_use_radiobtn"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6686 echo "$ac_t""yes" 1>&6
10f2d63a 6687 else
a0b9e27f 6688 echo "$ac_t""no" 1>&6
10f2d63a 6689 fi
a0b9e27f 6690
10f2d63a 6691
5005acfe
VZ
6692 enablestring=
6693 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
82d43113 6694echo "configure:6695: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6695 no_cache=0
6696 # Check whether --enable-sash or --disable-sash was given.
6697if test "${enable_sash+set}" = set; then
6698 enableval="$enable_sash"
a0b9e27f 6699
10f2d63a
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_sash='wxUSE_SASH=yes'
6702 else
6703 ac_cv_use_sash='wxUSE_SASH=no'
6704 fi
a0b9e27f 6705
10f2d63a 6706else
a0b9e27f 6707
10f2d63a
VZ
6708 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6716
6717fi
10f2d63a
VZ
6718
6719
6720 eval "$ac_cv_use_sash"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6726 echo "$ac_t""yes" 1>&6
10f2d63a 6727 else
a0b9e27f 6728 echo "$ac_t""no" 1>&6
10f2d63a 6729 fi
a0b9e27f 6730
10f2d63a 6731
5005acfe
VZ
6732 enablestring=
6733 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
82d43113 6734echo "configure:6735: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6735 no_cache=0
6736 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6737if test "${enable_scrollbar+set}" = set; then
6738 enableval="$enable_scrollbar"
a0b9e27f 6739
10f2d63a
VZ
6740 if test "$enableval" = yes; then
6741 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6742 else
6743 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6744 fi
a0b9e27f 6745
10f2d63a 6746else
a0b9e27f 6747
10f2d63a
VZ
6748 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6756
6757fi
10f2d63a
VZ
6758
6759
6760 eval "$ac_cv_use_scrollbar"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6766 echo "$ac_t""yes" 1>&6
10f2d63a 6767 else
a0b9e27f 6768 echo "$ac_t""no" 1>&6
10f2d63a 6769 fi
a0b9e27f 6770
10f2d63a 6771
5005acfe
VZ
6772 enablestring=
6773 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
82d43113 6774echo "configure:6775: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6775 no_cache=0
6776 # Check whether --enable-slider or --disable-slider was given.
6777if test "${enable_slider+set}" = set; then
6778 enableval="$enable_slider"
a0b9e27f 6779
10f2d63a
VZ
6780 if test "$enableval" = yes; then
6781 ac_cv_use_slider='wxUSE_SLIDER=yes'
6782 else
6783 ac_cv_use_slider='wxUSE_SLIDER=no'
6784 fi
a0b9e27f 6785
10f2d63a 6786else
a0b9e27f 6787
10f2d63a
VZ
6788 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6796
6797fi
10f2d63a
VZ
6798
6799
6800 eval "$ac_cv_use_slider"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6806 echo "$ac_t""yes" 1>&6
10f2d63a 6807 else
a0b9e27f 6808 echo "$ac_t""no" 1>&6
10f2d63a 6809 fi
a0b9e27f 6810
10f2d63a 6811
5005acfe
VZ
6812 enablestring=
6813 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
82d43113 6814echo "configure:6815: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6815 no_cache=0
6816 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6817if test "${enable_spinbtn+set}" = set; then
6818 enableval="$enable_spinbtn"
a0b9e27f 6819
10f2d63a
VZ
6820 if test "$enableval" = yes; then
6821 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6822 else
6823 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6824 fi
a0b9e27f 6825
10f2d63a 6826else
a0b9e27f 6827
10f2d63a
VZ
6828 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6836
6837fi
10f2d63a
VZ
6838
6839
6840 eval "$ac_cv_use_spinbtn"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6846 echo "$ac_t""yes" 1>&6
10f2d63a 6847 else
a0b9e27f 6848 echo "$ac_t""no" 1>&6
10f2d63a 6849 fi
a0b9e27f 6850
10f2d63a 6851
5005acfe
VZ
6852 enablestring=
6853 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
82d43113 6854echo "configure:6855: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6855 no_cache=0
6856 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6857if test "${enable_spinctrl+set}" = set; then
6858 enableval="$enable_spinctrl"
a0b9e27f 6859
56cfaa52
RR
6860 if test "$enableval" = yes; then
6861 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6862 else
6863 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6864 fi
a0b9e27f 6865
56cfaa52 6866else
a0b9e27f 6867
56cfaa52
RR
6868 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6876
6877fi
56cfaa52
RR
6878
6879
6880 eval "$ac_cv_use_spinctrl"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6886 echo "$ac_t""yes" 1>&6
56cfaa52 6887 else
a0b9e27f 6888 echo "$ac_t""no" 1>&6
56cfaa52 6889 fi
a0b9e27f 6890
56cfaa52 6891
5005acfe
VZ
6892 enablestring=
6893 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
82d43113 6894echo "configure:6895: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6895 no_cache=0
6896 # Check whether --enable-splitter or --disable-splitter was given.
6897if test "${enable_splitter+set}" = set; then
6898 enableval="$enable_splitter"
a0b9e27f 6899
10f2d63a
VZ
6900 if test "$enableval" = yes; then
6901 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6902 else
6903 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6904 fi
a0b9e27f 6905
10f2d63a 6906else
a0b9e27f 6907
10f2d63a
VZ
6908 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
6915 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6916
6917fi
10f2d63a
VZ
6918
6919
6920 eval "$ac_cv_use_splitter"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6926 echo "$ac_t""yes" 1>&6
10f2d63a 6927 else
a0b9e27f 6928 echo "$ac_t""no" 1>&6
10f2d63a 6929 fi
a0b9e27f 6930
10f2d63a 6931
5005acfe
VZ
6932 enablestring=
6933 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
82d43113 6934echo "configure:6935: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6935 no_cache=0
6936 # Check whether --enable-statbmp or --disable-statbmp was given.
6937if test "${enable_statbmp+set}" = set; then
6938 enableval="$enable_statbmp"
a0b9e27f 6939
10f2d63a
VZ
6940 if test "$enableval" = yes; then
6941 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6942 else
6943 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6944 fi
a0b9e27f 6945
10f2d63a 6946else
a0b9e27f 6947
10f2d63a
VZ
6948 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6956
6957fi
10f2d63a
VZ
6958
6959
6960 eval "$ac_cv_use_statbmp"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6966 echo "$ac_t""yes" 1>&6
10f2d63a 6967 else
a0b9e27f 6968 echo "$ac_t""no" 1>&6
10f2d63a 6969 fi
a0b9e27f 6970
10f2d63a 6971
5005acfe
VZ
6972 enablestring=
6973 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
82d43113 6974echo "configure:6975: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6975 no_cache=0
6976 # Check whether --enable-statbox or --disable-statbox was given.
6977if test "${enable_statbox+set}" = set; then
6978 enableval="$enable_statbox"
a0b9e27f 6979
10f2d63a
VZ
6980 if test "$enableval" = yes; then
6981 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6982 else
6983 ac_cv_use_statbox='wxUSE_STATBOX=no'
6984 fi
a0b9e27f 6985
10f2d63a 6986else
a0b9e27f 6987
10f2d63a
VZ
6988 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6989 if test "x$LINE" != x ; then
6990 eval "DEFAULT_$LINE"
6991 else
6992 no_cache=1
6993 fi
6994
6995 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6996
6997fi
10f2d63a
VZ
6998
6999
7000 eval "$ac_cv_use_statbox"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 7006 echo "$ac_t""yes" 1>&6
10f2d63a 7007 else
a0b9e27f 7008 echo "$ac_t""no" 1>&6
10f2d63a 7009 fi
a0b9e27f 7010
10f2d63a 7011
5005acfe
VZ
7012 enablestring=
7013 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
82d43113 7014echo "configure:7015: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
7015 no_cache=0
7016 # Check whether --enable-statline or --disable-statline was given.
7017if test "${enable_statline+set}" = set; then
7018 enableval="$enable_statline"
a0b9e27f 7019
10f2d63a
VZ
7020 if test "$enableval" = yes; then
7021 ac_cv_use_statline='wxUSE_STATLINE=yes'
7022 else
7023 ac_cv_use_statline='wxUSE_STATLINE=no'
7024 fi
a0b9e27f 7025
10f2d63a 7026else
a0b9e27f 7027
10f2d63a
VZ
7028 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
7036
7037fi
10f2d63a
VZ
7038
7039
7040 eval "$ac_cv_use_statline"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 7046 echo "$ac_t""yes" 1>&6
10f2d63a 7047 else
a0b9e27f 7048 echo "$ac_t""no" 1>&6
10f2d63a 7049 fi
a0b9e27f 7050
10f2d63a 7051
5005acfe
VZ
7052 enablestring=
7053 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
82d43113 7054echo "configure:7055: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7055 no_cache=0
7056 # Check whether --enable-stattext or --disable-stattext was given.
7057if test "${enable_stattext+set}" = set; then
7058 enableval="$enable_stattext"
a0b9e27f 7059
1e6feb95
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7062 else
7063 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7064 fi
a0b9e27f 7065
1e6feb95 7066else
a0b9e27f 7067
1e6feb95
VZ
7068 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7076
7077fi
1e6feb95
VZ
7078
7079
7080 eval "$ac_cv_use_stattext"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7086 echo "$ac_t""yes" 1>&6
1e6feb95 7087 else
a0b9e27f 7088 echo "$ac_t""no" 1>&6
1e6feb95 7089 fi
a0b9e27f 7090
1e6feb95 7091
5005acfe
VZ
7092 enablestring=
7093 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
82d43113 7094echo "configure:7095: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7095 no_cache=0
7096 # Check whether --enable-statusbar or --disable-statusbar was given.
7097if test "${enable_statusbar+set}" = set; then
7098 enableval="$enable_statusbar"
a0b9e27f 7099
10f2d63a
VZ
7100 if test "$enableval" = yes; then
7101 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7102 else
7103 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7104 fi
a0b9e27f 7105
10f2d63a 7106else
a0b9e27f 7107
10f2d63a
VZ
7108 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7116
7117fi
10f2d63a
VZ
7118
7119
7120 eval "$ac_cv_use_statusbar"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7126 echo "$ac_t""yes" 1>&6
10f2d63a 7127 else
a0b9e27f 7128 echo "$ac_t""no" 1>&6
10f2d63a 7129 fi
a0b9e27f 7130
10f2d63a 7131
5005acfe
VZ
7132 enablestring=
7133 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
82d43113 7134echo "configure:7135: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7135 no_cache=0
7136 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7137if test "${enable_tabdialog+set}" = set; then
7138 enableval="$enable_tabdialog"
a0b9e27f 7139
10f2d63a
VZ
7140 if test "$enableval" = yes; then
7141 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7142 else
7143 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7144 fi
a0b9e27f 7145
10f2d63a 7146else
a0b9e27f 7147
10f2d63a
VZ
7148 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7156
7157fi
10f2d63a
VZ
7158
7159
7160 eval "$ac_cv_use_tabdialog"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7166 echo "$ac_t""yes" 1>&6
10f2d63a 7167 else
a0b9e27f 7168 echo "$ac_t""no" 1>&6
10f2d63a 7169 fi
a0b9e27f 7170
10f2d63a 7171
5005acfe
VZ
7172 enablestring=
7173 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
82d43113 7174echo "configure:7175: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7175 no_cache=0
7176 # Check whether --enable-textctrl or --disable-textctrl was given.
7177if test "${enable_textctrl+set}" = set; then
7178 enableval="$enable_textctrl"
a0b9e27f 7179
1e6feb95
VZ
7180 if test "$enableval" = yes; then
7181 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7182 else
7183 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7184 fi
a0b9e27f 7185
1e6feb95 7186else
a0b9e27f 7187
1e6feb95
VZ
7188 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7196
7197fi
1e6feb95
VZ
7198
7199
7200 eval "$ac_cv_use_textctrl"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7206 echo "$ac_t""yes" 1>&6
1e6feb95 7207 else
a0b9e27f 7208 echo "$ac_t""no" 1>&6
1e6feb95 7209 fi
a0b9e27f 7210
1e6feb95 7211
5005acfe
VZ
7212 enablestring=
7213 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
82d43113 7214echo "configure:7215: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7215 no_cache=0
7216 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7217if test "${enable_togglebtn+set}" = set; then
7218 enableval="$enable_togglebtn"
a0b9e27f 7219
1db8dc4a
VZ
7220 if test "$enableval" = yes; then
7221 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7222 else
7223 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7224 fi
a0b9e27f 7225
1db8dc4a 7226else
a0b9e27f 7227
1db8dc4a
VZ
7228 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7236
7237fi
1db8dc4a
VZ
7238
7239
7240 eval "$ac_cv_use_togglebtn"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7246 echo "$ac_t""yes" 1>&6
1db8dc4a 7247 else
a0b9e27f 7248 echo "$ac_t""no" 1>&6
1db8dc4a 7249 fi
a0b9e27f 7250
1db8dc4a 7251
5005acfe
VZ
7252 enablestring=
7253 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
82d43113 7254echo "configure:7255: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7255 no_cache=0
7256 # Check whether --enable-toolbar or --disable-toolbar was given.
7257if test "${enable_toolbar+set}" = set; then
7258 enableval="$enable_toolbar"
a0b9e27f 7259
10f2d63a
VZ
7260 if test "$enableval" = yes; then
7261 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7262 else
7263 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7264 fi
a0b9e27f 7265
10f2d63a 7266else
a0b9e27f 7267
10f2d63a
VZ
7268 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7276
7277fi
10f2d63a
VZ
7278
7279
7280 eval "$ac_cv_use_toolbar"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7286 echo "$ac_t""yes" 1>&6
10f2d63a 7287 else
a0b9e27f 7288 echo "$ac_t""no" 1>&6
10f2d63a 7289 fi
a0b9e27f 7290
10f2d63a 7291
5005acfe
VZ
7292 enablestring=
7293 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
82d43113 7294echo "configure:7295: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7295 no_cache=0
7296 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7297if test "${enable_tbarnative+set}" = set; then
7298 enableval="$enable_tbarnative"
a0b9e27f 7299
360d6699
VZ
7300 if test "$enableval" = yes; then
7301 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7302 else
7303 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7304 fi
a0b9e27f 7305
360d6699 7306else
a0b9e27f 7307
360d6699
VZ
7308 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7316
7317fi
360d6699
VZ
7318
7319
7320 eval "$ac_cv_use_tbarnative"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7326 echo "$ac_t""yes" 1>&6
360d6699 7327 else
a0b9e27f 7328 echo "$ac_t""no" 1>&6
360d6699 7329 fi
a0b9e27f 7330
360d6699 7331
5005acfe
VZ
7332 enablestring=
7333 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
82d43113 7334echo "configure:7335: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7335 no_cache=0
7336 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7337if test "${enable_tbarsmpl+set}" = set; then
7338 enableval="$enable_tbarsmpl"
a0b9e27f 7339
360d6699
VZ
7340 if test "$enableval" = yes; then
7341 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7342 else
7343 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7344 fi
a0b9e27f 7345
360d6699 7346else
a0b9e27f 7347
360d6699
VZ
7348 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7356
7357fi
360d6699
VZ
7358
7359
7360 eval "$ac_cv_use_tbarsmpl"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7366 echo "$ac_t""yes" 1>&6
360d6699 7367 else
a0b9e27f 7368 echo "$ac_t""no" 1>&6
360d6699 7369 fi
a0b9e27f 7370
360d6699 7371
5005acfe
VZ
7372 enablestring=
7373 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
82d43113 7374echo "configure:7375: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7375 no_cache=0
7376 # Check whether --enable-treectrl or --disable-treectrl was given.
7377if test "${enable_treectrl+set}" = set; then
7378 enableval="$enable_treectrl"
a0b9e27f 7379
10f2d63a
VZ
7380 if test "$enableval" = yes; then
7381 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7382 else
7383 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7384 fi
a0b9e27f 7385
10f2d63a 7386else
a0b9e27f 7387
10f2d63a
VZ
7388 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7396
7397fi
10f2d63a
VZ
7398
7399
1e6feb95
VZ
7400 eval "$ac_cv_use_treectrl"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7406 echo "$ac_t""yes" 1>&6
1e6feb95 7407 else
a0b9e27f 7408 echo "$ac_t""no" 1>&6
1e6feb95 7409 fi
a0b9e27f 7410
1e6feb95 7411
5005acfe
VZ
7412 enablestring=
7413 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
82d43113 7414echo "configure:7415: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7415 no_cache=0
7416 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7417if test "${enable_tipwindow+set}" = set; then
7418 enableval="$enable_tipwindow"
a0b9e27f 7419
9926e4a4
VZ
7420 if test "$enableval" = yes; then
7421 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7422 else
7423 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7424 fi
a0b9e27f 7425
9926e4a4 7426else
a0b9e27f 7427
9926e4a4
VZ
7428 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7429 if test "x$LINE" != x ; then
7430 eval "DEFAULT_$LINE"
7431 else
7432 no_cache=1
7433 fi
7434
7435 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7436
7437fi
9926e4a4
VZ
7438
7439
7440 eval "$ac_cv_use_tipwindow"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7446 echo "$ac_t""yes" 1>&6
9926e4a4 7447 else
a0b9e27f 7448 echo "$ac_t""no" 1>&6
9926e4a4 7449 fi
a0b9e27f 7450
9926e4a4 7451
5005acfe
VZ
7452 enablestring=
7453 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
82d43113 7454echo "configure:7455: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7455 no_cache=0
7456 # Check whether --enable-popupwin or --disable-popupwin was given.
7457if test "${enable_popupwin+set}" = set; then
7458 enableval="$enable_popupwin"
a0b9e27f 7459
9f41d601
RR
7460 if test "$enableval" = yes; then
7461 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7462 else
7463 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7464 fi
a0b9e27f 7465
9f41d601 7466else
a0b9e27f 7467
9f41d601
RR
7468 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7476
7477fi
9f41d601
RR
7478
7479
7480 eval "$ac_cv_use_popupwin"
7481 if test "$no_cache" != 1; then
7482 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7483 fi
7484
7485 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7486 echo "$ac_t""yes" 1>&6
9f41d601 7487 else
a0b9e27f 7488 echo "$ac_t""no" 1>&6
9f41d601 7489 fi
a0b9e27f 7490
52127426 7491
8284b0c5
MB
7492
7493
5005acfe
VZ
7494 enablestring=
7495 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
82d43113 7496echo "configure:7497: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7497 no_cache=0
7498 # Check whether --enable-commondlg or --disable-commondlg was given.
7499if test "${enable_commondlg+set}" = set; then
7500 enableval="$enable_commondlg"
a0b9e27f 7501
1e6feb95
VZ
7502 if test "$enableval" = yes; then
7503 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7504 else
7505 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7506 fi
a0b9e27f 7507
1e6feb95 7508else
a0b9e27f 7509
1e6feb95
VZ
7510 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7518
7519fi
1e6feb95
VZ
7520
7521
7522 eval "$ac_cv_use_commondlg"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7528 echo "$ac_t""yes" 1>&6
1e6feb95 7529 else
a0b9e27f 7530 echo "$ac_t""no" 1>&6
1e6feb95 7531 fi
a0b9e27f 7532
1e6feb95 7533
5005acfe
VZ
7534 enablestring=
7535 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
82d43113 7536echo "configure:7537: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7537 no_cache=0
7538 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7539if test "${enable_choicedlg+set}" = set; then
7540 enableval="$enable_choicedlg"
a0b9e27f 7541
1e6feb95
VZ
7542 if test "$enableval" = yes; then
7543 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7544 else
7545 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7546 fi
a0b9e27f 7547
1e6feb95 7548else
a0b9e27f 7549
1e6feb95
VZ
7550 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7558
7559fi
1e6feb95
VZ
7560
7561
7562 eval "$ac_cv_use_choicedlg"
7563 if test "$no_cache" != 1; then
7564 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7565 fi
7566
7567 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7568 echo "$ac_t""yes" 1>&6
1e6feb95 7569 else
a0b9e27f 7570 echo "$ac_t""no" 1>&6
1e6feb95 7571 fi
a0b9e27f 7572
1e6feb95 7573
5005acfe
VZ
7574 enablestring=
7575 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
82d43113 7576echo "configure:7577: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7577 no_cache=0
7578 # Check whether --enable-coldlg or --disable-coldlg was given.
7579if test "${enable_coldlg+set}" = set; then
7580 enableval="$enable_coldlg"
a0b9e27f 7581
1e6feb95
VZ
7582 if test "$enableval" = yes; then
7583 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7584 else
7585 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7586 fi
a0b9e27f 7587
1e6feb95 7588else
a0b9e27f 7589
1e6feb95
VZ
7590 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7598
7599fi
1e6feb95
VZ
7600
7601
7602 eval "$ac_cv_use_coldlg"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7608 echo "$ac_t""yes" 1>&6
1e6feb95 7609 else
a0b9e27f 7610 echo "$ac_t""no" 1>&6
1e6feb95 7611 fi
a0b9e27f 7612
1e6feb95 7613
5005acfe
VZ
7614 enablestring=
7615 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
82d43113 7616echo "configure:7617: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7617 no_cache=0
7618 # Check whether --enable-filedlg or --disable-filedlg was given.
7619if test "${enable_filedlg+set}" = set; then
7620 enableval="$enable_filedlg"
a0b9e27f 7621
1e6feb95
VZ
7622 if test "$enableval" = yes; then
7623 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7624 else
7625 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7626 fi
a0b9e27f 7627
1e6feb95 7628else
a0b9e27f 7629
1e6feb95
VZ
7630 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7631 if test "x$LINE" != x ; then
7632 eval "DEFAULT_$LINE"
7633 else
7634 no_cache=1
7635 fi
7636
7637 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7638
7639fi
1e6feb95
VZ
7640
7641
7642 eval "$ac_cv_use_filedlg"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7648 echo "$ac_t""yes" 1>&6
1e6feb95 7649 else
a0b9e27f 7650 echo "$ac_t""no" 1>&6
1e6feb95 7651 fi
a0b9e27f 7652
1e6feb95 7653
5005acfe
VZ
7654 enablestring=
7655 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
82d43113 7656echo "configure:7657: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7657 no_cache=0
69d27ff7
MB
7658 # Check whether --enable-finddlg or --disable-finddlg was given.
7659if test "${enable_finddlg+set}" = set; then
7660 enableval="$enable_finddlg"
a0b9e27f 7661
8db37e06 7662 if test "$enableval" = yes; then
69d27ff7 7663 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7664 else
69d27ff7 7665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7666 fi
a0b9e27f 7667
8db37e06 7668else
a0b9e27f 7669
8db37e06
VZ
7670 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
69d27ff7 7677 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7678
7679fi
8db37e06
VZ
7680
7681
69d27ff7 7682 eval "$ac_cv_use_finddlg"
8db37e06 7683 if test "$no_cache" != 1; then
69d27ff7 7684 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7685 fi
7686
7687 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7688 echo "$ac_t""yes" 1>&6
8db37e06 7689 else
a0b9e27f 7690 echo "$ac_t""no" 1>&6
8db37e06 7691 fi
a0b9e27f 7692
8db37e06 7693
5005acfe
VZ
7694 enablestring=
7695 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
82d43113 7696echo "configure:7697: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7697 no_cache=0
7698 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7699if test "${enable_fontdlg+set}" = set; then
7700 enableval="$enable_fontdlg"
a0b9e27f 7701
1e6feb95
VZ
7702 if test "$enableval" = yes; then
7703 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7704 else
7705 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7706 fi
a0b9e27f 7707
1e6feb95 7708else
a0b9e27f 7709
1e6feb95
VZ
7710 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
7717 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7718
7719fi
1e6feb95
VZ
7720
7721
7722 eval "$ac_cv_use_fontdlg"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7728 echo "$ac_t""yes" 1>&6
1e6feb95 7729 else
a0b9e27f 7730 echo "$ac_t""no" 1>&6
1e6feb95 7731 fi
a0b9e27f 7732
1e6feb95 7733
5005acfe
VZ
7734 enablestring=
7735 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
82d43113 7736echo "configure:7737: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7737 no_cache=0
7738 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7739if test "${enable_dirdlg+set}" = set; then
7740 enableval="$enable_dirdlg"
a0b9e27f 7741
1e6feb95
VZ
7742 if test "$enableval" = yes; then
7743 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7744 else
7745 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7746 fi
a0b9e27f 7747
1e6feb95 7748else
a0b9e27f 7749
1e6feb95
VZ
7750 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7751 if test "x$LINE" != x ; then
7752 eval "DEFAULT_$LINE"
7753 else
7754 no_cache=1
7755 fi
7756
7757 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7758
7759fi
1e6feb95
VZ
7760
7761
7762 eval "$ac_cv_use_dirdlg"
10f2d63a 7763 if test "$no_cache" != 1; then
1e6feb95 7764 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7765 fi
7766
1e6feb95 7767 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7768 echo "$ac_t""yes" 1>&6
10f2d63a 7769 else
a0b9e27f 7770 echo "$ac_t""no" 1>&6
10f2d63a 7771 fi
a0b9e27f 7772
698dcdb6 7773
5005acfe
VZ
7774 enablestring=
7775 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
82d43113 7776echo "configure:7777: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7777 no_cache=0
1e6feb95
VZ
7778 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7779if test "${enable_msgdlg+set}" = set; then
7780 enableval="$enable_msgdlg"
a0b9e27f 7781
10f2d63a 7782 if test "$enableval" = yes; then
1e6feb95 7783 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7784 else
1e6feb95 7785 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7786 fi
a0b9e27f 7787
10f2d63a 7788else
a0b9e27f 7789
1e6feb95 7790 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
1e6feb95 7797 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7798
7799fi
10f2d63a
VZ
7800
7801
1e6feb95 7802 eval "$ac_cv_use_msgdlg"
10f2d63a 7803 if test "$no_cache" != 1; then
1e6feb95 7804 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7805 fi
7806
1e6feb95 7807 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7808 echo "$ac_t""yes" 1>&6
10f2d63a 7809 else
a0b9e27f 7810 echo "$ac_t""no" 1>&6
10f2d63a 7811 fi
a0b9e27f 7812
10f2d63a 7813
5005acfe
VZ
7814 enablestring=
7815 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
82d43113 7816echo "configure:7817: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7817 no_cache=0
1e6feb95
VZ
7818 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7819if test "${enable_numberdlg+set}" = set; then
7820 enableval="$enable_numberdlg"
a0b9e27f 7821
10f2d63a 7822 if test "$enableval" = yes; then
1e6feb95 7823 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7824 else
1e6feb95 7825 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7826 fi
a0b9e27f 7827
10f2d63a 7828else
a0b9e27f 7829
1e6feb95 7830 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7831 if test "x$LINE" != x ; then
7832 eval "DEFAULT_$LINE"
7833 else
7834 no_cache=1
7835 fi
7836
1e6feb95 7837 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7838
7839fi
10f2d63a
VZ
7840
7841
1e6feb95 7842 eval "$ac_cv_use_numberdlg"
10f2d63a 7843 if test "$no_cache" != 1; then
1e6feb95 7844 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7845 fi
7846
1e6feb95 7847 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7848 echo "$ac_t""yes" 1>&6
10f2d63a 7849 else
a0b9e27f 7850 echo "$ac_t""no" 1>&6
10f2d63a 7851 fi
a0b9e27f 7852
10f2d63a 7853
5005acfe
VZ
7854 enablestring=
7855 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
82d43113 7856echo "configure:7857: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7857 no_cache=0
7858 # Check whether --enable-splash or --disable-splash was given.
7859if test "${enable_splash+set}" = set; then
7860 enableval="$enable_splash"
a0b9e27f 7861
cbca9943
VZ
7862 if test "$enableval" = yes; then
7863 ac_cv_use_splash='wxUSE_SPLASH=yes'
7864 else
7865 ac_cv_use_splash='wxUSE_SPLASH=no'
7866 fi
a0b9e27f 7867
cbca9943 7868else
a0b9e27f 7869
cbca9943
VZ
7870 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7878
7879fi
cbca9943
VZ
7880
7881
7882 eval "$ac_cv_use_splash"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7888 echo "$ac_t""yes" 1>&6
cbca9943 7889 else
a0b9e27f 7890 echo "$ac_t""no" 1>&6
cbca9943 7891 fi
a0b9e27f 7892
cbca9943 7893
5005acfe
VZ
7894 enablestring=
7895 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
82d43113 7896echo "configure:7897: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7897 no_cache=0
7898 # Check whether --enable-textdlg or --disable-textdlg was given.
7899if test "${enable_textdlg+set}" = set; then
7900 enableval="$enable_textdlg"
a0b9e27f 7901
10f2d63a
VZ
7902 if test "$enableval" = yes; then
7903 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7904 else
7905 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7906 fi
a0b9e27f 7907
10f2d63a 7908else
a0b9e27f 7909
10f2d63a
VZ
7910 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7918
7919fi
10f2d63a
VZ
7920
7921
7922 eval "$ac_cv_use_textdlg"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7928 echo "$ac_t""yes" 1>&6
10f2d63a 7929 else
a0b9e27f 7930 echo "$ac_t""no" 1>&6
10f2d63a 7931 fi
a0b9e27f 7932
10f2d63a 7933
5005acfe
VZ
7934 enablestring=
7935 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
82d43113 7936echo "configure:7937: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7937 no_cache=0
7938 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7939if test "${enable_tipdlg+set}" = set; then
7940 enableval="$enable_tipdlg"
a0b9e27f 7941
10f2d63a
VZ
7942 if test "$enableval" = yes; then
7943 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7944 else
7945 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7946 fi
a0b9e27f 7947
10f2d63a 7948else
a0b9e27f 7949
10f2d63a
VZ
7950 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7958
7959fi
10f2d63a
VZ
7960
7961
7962 eval "$ac_cv_use_tipdlg"
7963 if test "$no_cache" != 1; then
7964 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7965 fi
7966
7967 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7968 echo "$ac_t""yes" 1>&6
10f2d63a 7969 else
a0b9e27f 7970 echo "$ac_t""no" 1>&6
10f2d63a 7971 fi
a0b9e27f 7972
10f2d63a 7973
5005acfe
VZ
7974 enablestring=
7975 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
82d43113 7976echo "configure:7977: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7977 no_cache=0
7978 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7979if test "${enable_progressdlg+set}" = set; then
7980 enableval="$enable_progressdlg"
a0b9e27f 7981
10f2d63a
VZ
7982 if test "$enableval" = yes; then
7983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7984 else
7985 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7986 fi
a0b9e27f 7987
10f2d63a 7988else
a0b9e27f 7989
10f2d63a
VZ
7990 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7991 if test "x$LINE" != x ; then
7992 eval "DEFAULT_$LINE"
7993 else
7994 no_cache=1
7995 fi
7996
7997 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7998
7999fi
10f2d63a
VZ
8000
8001
8002 eval "$ac_cv_use_progressdlg"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 8008 echo "$ac_t""yes" 1>&6
10f2d63a 8009 else
a0b9e27f 8010 echo "$ac_t""no" 1>&6
10f2d63a 8011 fi
a0b9e27f 8012
10f2d63a 8013
5005acfe
VZ
8014 enablestring=
8015 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
82d43113 8016echo "configure:8017: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
8017 no_cache=0
8018 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8019if test "${enable_wizarddlg+set}" = set; then
8020 enableval="$enable_wizarddlg"
a0b9e27f 8021
b1f5d087
VZ
8022 if test "$enableval" = yes; then
8023 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8024 else
8025 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8026 fi
a0b9e27f 8027
b1f5d087 8028else
a0b9e27f 8029
b1f5d087
VZ
8030 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
8038
8039fi
b1f5d087
VZ
8040
8041
8042 eval "$ac_cv_use_wizarddlg"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 8048 echo "$ac_t""yes" 1>&6
b1f5d087 8049 else
a0b9e27f 8050 echo "$ac_t""no" 1>&6
b1f5d087 8051 fi
a0b9e27f 8052
8284b0c5
MB
8053
8054
52127426 8055
5005acfe
VZ
8056 enablestring=
8057 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
82d43113 8058echo "configure:8059: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8059 no_cache=0
8060 # Check whether --enable-menus or --disable-menus was given.
8061if test "${enable_menus+set}" = set; then
8062 enableval="$enable_menus"
a0b9e27f 8063
1e6feb95
VZ
8064 if test "$enableval" = yes; then
8065 ac_cv_use_menus='wxUSE_MENUS=yes'
8066 else
8067 ac_cv_use_menus='wxUSE_MENUS=no'
8068 fi
a0b9e27f 8069
1e6feb95 8070else
a0b9e27f 8071
1e6feb95
VZ
8072 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8080
8081fi
1e6feb95
VZ
8082
8083
8084 eval "$ac_cv_use_menus"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8090 echo "$ac_t""yes" 1>&6
1e6feb95 8091 else
a0b9e27f 8092 echo "$ac_t""no" 1>&6
1e6feb95 8093 fi
a0b9e27f 8094
1e6feb95 8095
5005acfe
VZ
8096 enablestring=
8097 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
82d43113 8098echo "configure:8099: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8099 no_cache=0
8100 # Check whether --enable-miniframe or --disable-miniframe was given.
8101if test "${enable_miniframe+set}" = set; then
8102 enableval="$enable_miniframe"
a0b9e27f 8103
10f2d63a
VZ
8104 if test "$enableval" = yes; then
8105 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8106 else
8107 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8108 fi
a0b9e27f 8109
10f2d63a 8110else
a0b9e27f 8111
10f2d63a
VZ
8112 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8120
8121fi
10f2d63a
VZ
8122
8123
8124 eval "$ac_cv_use_miniframe"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8130 echo "$ac_t""yes" 1>&6
10f2d63a 8131 else
a0b9e27f 8132 echo "$ac_t""no" 1>&6
10f2d63a 8133 fi
a0b9e27f 8134
10f2d63a 8135
5005acfe
VZ
8136 enablestring=
8137 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
82d43113 8138echo "configure:8139: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8139 no_cache=0
8140 # Check whether --enable-tooltips or --disable-tooltips was given.
8141if test "${enable_tooltips+set}" = set; then
8142 enableval="$enable_tooltips"
a0b9e27f 8143
10f2d63a
VZ
8144 if test "$enableval" = yes; then
8145 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8146 else
8147 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8148 fi
a0b9e27f 8149
10f2d63a 8150else
a0b9e27f 8151
10f2d63a
VZ
8152 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8153 if test "x$LINE" != x ; then
8154 eval "DEFAULT_$LINE"
8155 else
8156 no_cache=1
8157 fi
8158
8159 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8160
8161fi
10f2d63a
VZ
8162
8163
8164 eval "$ac_cv_use_tooltips"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8170 echo "$ac_t""yes" 1>&6
10f2d63a 8171 else
a0b9e27f 8172 echo "$ac_t""no" 1>&6
10f2d63a 8173 fi
a0b9e27f 8174
10f2d63a 8175
5005acfe
VZ
8176 enablestring=
8177 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
82d43113 8178echo "configure:8179: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8179 no_cache=0
8180 # Check whether --enable-splines or --disable-splines was given.
8181if test "${enable_splines+set}" = set; then
8182 enableval="$enable_splines"
a0b9e27f 8183
10f2d63a
VZ
8184 if test "$enableval" = yes; then
8185 ac_cv_use_splines='wxUSE_SPLINES=yes'
8186 else
8187 ac_cv_use_splines='wxUSE_SPLINES=no'
8188 fi
a0b9e27f 8189
10f2d63a 8190else
a0b9e27f 8191
10f2d63a
VZ
8192 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8200
8201fi
10f2d63a
VZ
8202
8203
8204 eval "$ac_cv_use_splines"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8210 echo "$ac_t""yes" 1>&6
10f2d63a 8211 else
a0b9e27f 8212 echo "$ac_t""no" 1>&6
10f2d63a 8213 fi
a0b9e27f 8214
10f2d63a 8215
5005acfe
VZ
8216 enablestring=
8217 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
82d43113 8218echo "configure:8219: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8219 no_cache=0
8220 # Check whether --enable-validators or --disable-validators was given.
8221if test "${enable_validators+set}" = set; then
8222 enableval="$enable_validators"
a0b9e27f 8223
10f2d63a
VZ
8224 if test "$enableval" = yes; then
8225 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8226 else
8227 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8228 fi
a0b9e27f 8229
10f2d63a 8230else
a0b9e27f 8231
10f2d63a
VZ
8232 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8240
8241fi
10f2d63a
VZ
8242
8243
8244 eval "$ac_cv_use_validators"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8250 echo "$ac_t""yes" 1>&6
10f2d63a 8251 else
a0b9e27f 8252 echo "$ac_t""no" 1>&6
10f2d63a 8253 fi
a0b9e27f 8254
10f2d63a 8255
5005acfe
VZ
8256 enablestring=
8257 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
82d43113 8258echo "configure:8259: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8259 no_cache=0
8260 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8261if test "${enable_busyinfo+set}" = set; then
8262 enableval="$enable_busyinfo"
a0b9e27f 8263
10f2d63a
VZ
8264 if test "$enableval" = yes; then
8265 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8266 else
8267 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8268 fi
a0b9e27f 8269
10f2d63a 8270else
a0b9e27f 8271
10f2d63a
VZ
8272 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8280
8281fi
10f2d63a
VZ
8282
8283
8284 eval "$ac_cv_use_busyinfo"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8290 echo "$ac_t""yes" 1>&6
10f2d63a 8291 else
a0b9e27f 8292 echo "$ac_t""no" 1>&6
10f2d63a 8293 fi
a0b9e27f 8294
10f2d63a 8295
5005acfe
VZ
8296 enablestring=
8297 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
82d43113 8298echo "configure:8299: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8299 no_cache=0
8300 # Check whether --enable-joystick or --disable-joystick was given.
8301if test "${enable_joystick+set}" = set; then
8302 enableval="$enable_joystick"
a0b9e27f 8303
f6bcfd97
BP
8304 if test "$enableval" = yes; then
8305 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8306 else
8307 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8308 fi
a0b9e27f 8309
f6bcfd97 8310else
a0b9e27f 8311
f6bcfd97
BP
8312 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8313 if test "x$LINE" != x ; then
8314 eval "DEFAULT_$LINE"
8315 else
8316 no_cache=1
8317 fi
8318
8319 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8320
8321fi
f6bcfd97
BP
8322
8323
8324 eval "$ac_cv_use_joystick"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8330 echo "$ac_t""yes" 1>&6
f6bcfd97 8331 else
a0b9e27f 8332 echo "$ac_t""no" 1>&6
f6bcfd97 8333 fi
a0b9e27f 8334
698dcdb6 8335
5005acfe
VZ
8336 enablestring=
8337 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
82d43113 8338echo "configure:8339: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8339 no_cache=0
8340 # Check whether --enable-metafile or --disable-metafile was given.
8341if test "${enable_metafile+set}" = set; then
8342 enableval="$enable_metafile"
a0b9e27f 8343
1e6feb95
VZ
8344 if test "$enableval" = yes; then
8345 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8346 else
8347 ac_cv_use_metafile='wxUSE_METAFILE=no'
8348 fi
a0b9e27f 8349
1e6feb95 8350else
a0b9e27f 8351
1e6feb95
VZ
8352 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8360
8361fi
1e6feb95
VZ
8362
8363
8364 eval "$ac_cv_use_metafile"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8370 echo "$ac_t""yes" 1>&6
1e6feb95 8371 else
a0b9e27f 8372 echo "$ac_t""no" 1>&6
1e6feb95 8373 fi
a0b9e27f 8374
1e6feb95 8375
5005acfe
VZ
8376 enablestring=
8377 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
82d43113 8378echo "configure:8379: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8379 no_cache=0
8380 # Check whether --enable-dragimage or --disable-dragimage was given.
8381if test "${enable_dragimage+set}" = set; then
8382 enableval="$enable_dragimage"
a0b9e27f 8383
24fd6d87
VZ
8384 if test "$enableval" = yes; then
8385 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8386 else
8387 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8388 fi
a0b9e27f 8389
24fd6d87 8390else
a0b9e27f 8391
24fd6d87
VZ
8392 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8400
8401fi
24fd6d87
VZ
8402
8403
8404 eval "$ac_cv_use_dragimage"
8405 if test "$no_cache" != 1; then
8406 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8407 fi
8408
8409 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8410 echo "$ac_t""yes" 1>&6
24fd6d87 8411 else
a0b9e27f 8412 echo "$ac_t""no" 1>&6
24fd6d87 8413 fi
a0b9e27f 8414
52127426 8415
8284b0c5
MB
8416
8417
5005acfe
VZ
8418 enablestring=
8419 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
82d43113 8420echo "configure:8421: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8421 no_cache=0
8422 # Check whether --enable-palette or --disable-palette was given.
8423if test "${enable_palette+set}" = set; then
8424 enableval="$enable_palette"
a0b9e27f 8425
edae8572
VZ
8426 if test "$enableval" = yes; then
8427 ac_cv_use_palette='wxUSE_PALETTE=yes'
8428 else
8429 ac_cv_use_palette='wxUSE_PALETTE=no'
8430 fi
a0b9e27f 8431
edae8572 8432else
a0b9e27f 8433
edae8572
VZ
8434 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8435 if test "x$LINE" != x ; then
8436 eval "DEFAULT_$LINE"
8437 else
8438 no_cache=1
8439 fi
8440
8441 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8442
8443fi
edae8572
VZ
8444
8445
8446 eval "$ac_cv_use_palette"
8447 if test "$no_cache" != 1; then
8448 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8449 fi
8450
8451 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8452 echo "$ac_t""yes" 1>&6
edae8572 8453 else
a0b9e27f 8454 echo "$ac_t""no" 1>&6
edae8572 8455 fi
a0b9e27f 8456
edae8572 8457
5005acfe
VZ
8458 enablestring=
8459 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
82d43113 8460echo "configure:8461: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8461 no_cache=0
8462 # Check whether --enable-image or --disable-image was given.
8463if test "${enable_image+set}" = set; then
8464 enableval="$enable_image"
a0b9e27f 8465
0046ff7c
VS
8466 if test "$enableval" = yes; then
8467 ac_cv_use_image='wxUSE_IMAGE=yes'
8468 else
8469 ac_cv_use_image='wxUSE_IMAGE=no'
8470 fi
a0b9e27f 8471
0046ff7c 8472else
a0b9e27f 8473
0046ff7c
VS
8474 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8482
8483fi
0046ff7c
VS
8484
8485
8486 eval "$ac_cv_use_image"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8492 echo "$ac_t""yes" 1>&6
0046ff7c 8493 else
a0b9e27f 8494 echo "$ac_t""no" 1>&6
0046ff7c 8495 fi
a0b9e27f 8496
0046ff7c 8497
5005acfe
VZ
8498 enablestring=
8499 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
82d43113 8500echo "configure:8501: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8501 no_cache=0
8502 # Check whether --enable-gif or --disable-gif was given.
8503if test "${enable_gif+set}" = set; then
8504 enableval="$enable_gif"
a0b9e27f 8505
10f2d63a
VZ
8506 if test "$enableval" = yes; then
8507 ac_cv_use_gif='wxUSE_GIF=yes'
8508 else
8509 ac_cv_use_gif='wxUSE_GIF=no'
8510 fi
a0b9e27f 8511
10f2d63a 8512else
a0b9e27f 8513
10f2d63a
VZ
8514 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8522
8523fi
10f2d63a
VZ
8524
8525
8526 eval "$ac_cv_use_gif"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8532 echo "$ac_t""yes" 1>&6
10f2d63a 8533 else
a0b9e27f 8534 echo "$ac_t""no" 1>&6
10f2d63a 8535 fi
a0b9e27f 8536
10f2d63a 8537
5005acfe
VZ
8538 enablestring=
8539 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
82d43113 8540echo "configure:8541: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8541 no_cache=0
8542 # Check whether --enable-pcx or --disable-pcx was given.
8543if test "${enable_pcx+set}" = set; then
8544 enableval="$enable_pcx"
a0b9e27f 8545
10f2d63a
VZ
8546 if test "$enableval" = yes; then
8547 ac_cv_use_pcx='wxUSE_PCX=yes'
8548 else
8549 ac_cv_use_pcx='wxUSE_PCX=no'
8550 fi
a0b9e27f 8551
10f2d63a 8552else
a0b9e27f 8553
10f2d63a
VZ
8554 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8555 if test "x$LINE" != x ; then
8556 eval "DEFAULT_$LINE"
8557 else
8558 no_cache=1
8559 fi
8560
8561 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8562
8563fi
10f2d63a
VZ
8564
8565
8566 eval "$ac_cv_use_pcx"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8572 echo "$ac_t""yes" 1>&6
10f2d63a 8573 else
a0b9e27f 8574 echo "$ac_t""no" 1>&6
10f2d63a 8575 fi
a0b9e27f 8576
10f2d63a 8577
5005acfe
VZ
8578 enablestring=
8579 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
82d43113 8580echo "configure:8581: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8581 no_cache=0
8582 # Check whether --enable-iff or --disable-iff was given.
8583if test "${enable_iff+set}" = set; then
8584 enableval="$enable_iff"
a0b9e27f 8585
4b6b4dfc
RR
8586 if test "$enableval" = yes; then
8587 ac_cv_use_iff='wxUSE_IFF=yes'
8588 else
8589 ac_cv_use_iff='wxUSE_IFF=no'
8590 fi
a0b9e27f 8591
4b6b4dfc 8592else
a0b9e27f 8593
4b6b4dfc
RR
8594 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8602
8603fi
4b6b4dfc
RR
8604
8605
8606 eval "$ac_cv_use_iff"
8607 if test "$no_cache" != 1; then
8608 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8609 fi
8610
8611 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8612 echo "$ac_t""yes" 1>&6
4b6b4dfc 8613 else
a0b9e27f 8614 echo "$ac_t""no" 1>&6
4b6b4dfc 8615 fi
a0b9e27f 8616
4b6b4dfc 8617
5005acfe
VZ
8618 enablestring=
8619 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
82d43113 8620echo "configure:8621: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8621 no_cache=0
8622 # Check whether --enable-pnm or --disable-pnm was given.
8623if test "${enable_pnm+set}" = set; then
8624 enableval="$enable_pnm"
a0b9e27f 8625
10f2d63a
VZ
8626 if test "$enableval" = yes; then
8627 ac_cv_use_pnm='wxUSE_PNM=yes'
8628 else
8629 ac_cv_use_pnm='wxUSE_PNM=no'
8630 fi
a0b9e27f 8631
10f2d63a 8632else
a0b9e27f 8633
10f2d63a
VZ
8634 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8642
8643fi
10f2d63a
VZ
8644
8645
8646 eval "$ac_cv_use_pnm"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8652 echo "$ac_t""yes" 1>&6
10f2d63a 8653 else
a0b9e27f 8654 echo "$ac_t""no" 1>&6
10f2d63a 8655 fi
a0b9e27f 8656
10f2d63a 8657
5005acfe
VZ
8658 enablestring=
8659 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
82d43113 8660echo "configure:8661: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8661 no_cache=0
69d27ff7
MB
8662 # Check whether --enable-xpm or --disable-xpm was given.
8663if test "${enable_xpm+set}" = set; then
8664 enableval="$enable_xpm"
a0b9e27f 8665
0046ff7c 8666 if test "$enableval" = yes; then
69d27ff7 8667 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8668 else
69d27ff7 8669 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8670 fi
a0b9e27f 8671
0046ff7c 8672else
a0b9e27f 8673
0046ff7c
VS
8674 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8675 if test "x$LINE" != x ; then
8676 eval "DEFAULT_$LINE"
8677 else
8678 no_cache=1
8679 fi
8680
69d27ff7 8681 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8682
8683fi
0046ff7c
VS
8684
8685
69d27ff7 8686 eval "$ac_cv_use_xpm"
0046ff7c 8687 if test "$no_cache" != 1; then
69d27ff7 8688 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8689 fi
8690
8691 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8692 echo "$ac_t""yes" 1>&6
0046ff7c 8693 else
a0b9e27f 8694 echo "$ac_t""no" 1>&6
0046ff7c 8695 fi
a0b9e27f 8696
0046ff7c 8697
5005acfe
VZ
8698 enablestring=
8699 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
82d43113 8700echo "configure:8701: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8701 no_cache=0
c7206e64
VS
8702 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8703if test "${enable_ico_cur+set}" = set; then
8704 enableval="$enable_ico_cur"
a0b9e27f 8705
658974ae 8706 if test "$enableval" = yes; then
c7206e64 8707 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8708 else
c7206e64 8709 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8710 fi
a0b9e27f 8711
658974ae 8712else
a0b9e27f 8713
658974ae
VS
8714 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8715 if test "x$LINE" != x ; then
8716 eval "DEFAULT_$LINE"
8717 else
8718 no_cache=1
8719 fi
8720
c7206e64 8721 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8722
8723fi
658974ae
VS
8724
8725
c7206e64 8726 eval "$ac_cv_use_ico_cur"
658974ae 8727 if test "$no_cache" != 1; then
c7206e64 8728 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8729 fi
8730
8731 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8732 echo "$ac_t""yes" 1>&6
658974ae 8733 else
a0b9e27f 8734 echo "$ac_t""no" 1>&6
658974ae 8735 fi
a0b9e27f 8736
658974ae 8737
b12915c1
VZ
8738fi
8739
d558c907
VS
8740case "${host}" in
8741 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8742 PATH_IFS=';'
8743 LEX_STEM="lexyy"
d558c907
VS
8744 ;;
8745 *)
8746 PATH_IFS=':'
8747 LEX_STEM="lex.yy"
8748 ;;
8749esac
8750
8284b0c5
MB
8751
8752
10f2d63a
VZ
8753 echo "saving argument cache $wx_arg_cache_file"
8754 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8755
52127426 8756
8284b0c5 8757
a0b9e27f 8758echo $ac_n "checking for toolkit""... $ac_c" 1>&6
82d43113 8759echo "configure:8760: checking for toolkit" >&5
89e6bf6d
VZ
8760
8761# In Wine, we need to default to MSW, not GTK or MOTIF
8762if test "$wxUSE_WINE" = "yes"; then
8763 DEFAULT_DEFAULT_wxUSE_GTK=0
8764 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8765 DEFAULT_DEFAULT_wxUSE_MSW=1
8766fi
10f2d63a
VZ
8767
8768if test "$wxUSE_GUI" = "yes"; then
8769
3a922bb4 8770 if test "$USE_BEOS" = 1; then
a0b9e27f 8771 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8772 fi
b12915c1 8773
3a922bb4
RL
8774 if test "$TOOLKIT_GIVEN" = 1; then
8775 for toolkit in `echo $ALL_TOOLKITS`; do
8776 var=wxUSE_$toolkit
8777 eval "value=\$${var}"
8778 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8779 done
10f2d63a 8780 else
3a922bb4
RL
8781 for toolkit in `echo $ALL_TOOLKITS`; do
8782 if test "$has_toolkit_in_cache" != 1; then
8783 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8784 else
8785 var=DEFAULT_wxUSE_$toolkit
8786 fi
8787 eval "wxUSE_$toolkit=\$${var}"
8788 done
10f2d63a 8789 fi
10f2d63a 8790
3a922bb4 8791 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
89e6bf6d 8792 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8793
d558c907 8794 case "${host}" in
6fa882bd 8795 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8796 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8797 esac
10f2d63a 8798
3a922bb4
RL
8799 case "$NUM_TOOLKITS" in
8800 1)
8801 ;;
8802 0)
a0b9e27f 8803 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8804 ;;
8805 *)
a0b9e27f 8806 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8807 esac
10f2d63a 8808
3a922bb4
RL
8809 for toolkit in `echo $ALL_TOOLKITS`; do
8810 var=wxUSE_$toolkit
8811 eval "value=\$${var}"
8812 if test "x$value" != x; then
8813 cache_var=CACHE_$toolkit
8814 eval "cache=\$${cache_var}"
8815 if test "$cache" = 1; then
8816 echo "$var=$value" >> ${wx_arg_cache_file}
8817 fi
8818 if test "$value" = 1; then
8819 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8820 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8821 fi
8822 fi
8823 done
10f2d63a 8824else
a0b9e27f 8825 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8826fi
8827
43d99b6d
VS
8828wants_win32=0
8829doesnt_want_win32=0
17234b26
MB
8830case "${host}" in
8831 *-*-cygwin*)
8832 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8833 wants_win32=1
8834 else
8835 doesnt_want_win32=1
17234b26
MB
8836 fi
8837 ;;
8838 *-*-mingw*)
43d99b6d 8839 wants_win32=1
17234b26
MB
8840 ;;
8841esac
8842
89e6bf6d
VZ
8843if test "$wxUSE_WINE" = "yes"; then
8844 wants_win32=1
8845 CC=winegcc
8846 CXX=wineg++
8847 RESCOMP=wrc
8848fi
8849
43d99b6d 8850if test "$wants_win32" = 1 ; then
17234b26
MB
8851 USE_UNIX=0
8852 USE_WIN32=1
a0b9e27f 8853 cat >> confdefs.h <<\EOF
17234b26 8854#define __WIN32__ 1
a0b9e27f 8855EOF
17234b26 8856
a0b9e27f 8857 cat >> confdefs.h <<\EOF
17234b26 8858#define __WIN95__ 1
a0b9e27f 8859EOF
17234b26 8860
a0b9e27f 8861 cat >> confdefs.h <<\EOF
17234b26 8862#define __WINDOWS__ 1
a0b9e27f 8863EOF
17234b26 8864
a0b9e27f 8865 cat >> confdefs.h <<\EOF
17234b26 8866#define __GNUWIN32__ 1
a0b9e27f 8867EOF
17234b26 8868
a0b9e27f 8869 cat >> confdefs.h <<\EOF
17234b26 8870#define STRICT 1
a0b9e27f 8871EOF
17234b26 8872
a0b9e27f 8873 cat >> confdefs.h <<\EOF
17234b26 8874#define WINVER 0x0400
a0b9e27f 8875EOF
17234b26 8876
43d99b6d
VS
8877fi
8878if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8879 USE_UNIX=1
8880 USE_WIN32=0
8881fi
8882
8883if test "$USE_UNIX" = 1 ; then
8884 wxUSE_UNIX=yes
a0b9e27f 8885 cat >> confdefs.h <<\EOF
17234b26 8886#define __UNIX__ 1
a0b9e27f 8887EOF
17234b26
MB
8888
8889fi
8890
8284b0c5 8891
a0b9e27f 8892cat > confcache <<\EOF
10f2d63a
VZ
8893# This file is a shell script that caches the results of configure
8894# tests run on this system so they can be shared between configure
a0b9e27f
MB
8895# scripts and configure runs. It is not useful on other systems.
8896# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8897#
a0b9e27f
MB
8898# By default, configure uses ./config.cache as the cache file,
8899# creating it if it does not exist already. You can give configure
8900# the --cache-file=FILE option to use a different cache file; that is
8901# what configure does when it calls configure scripts in
8902# subdirectories, so they share the cache.
8903# Giving --cache-file=/dev/null disables caching, for debugging configure.
8904# config.status only pays attention to the cache file if you give it the
8905# --recheck option to rerun configure.
10f2d63a 8906#
a0b9e27f 8907EOF
10f2d63a
VZ
8908# The following way of writing the cache mishandles newlines in values,
8909# but we know of no workaround that is simple, portable, and efficient.
8910# So, don't put newlines in cache variables' values.
8911# Ultrix sh set writes to stderr and can't be redirected directly,
8912# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8913(set) 2>&1 |
8914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8915 *ac_space=\ *)
8916 # `set' does not quote correctly, so add quotes (double-quote substitution
8917 # turns \\\\ into \\, and sed turns \\ into \).
8918 sed -n \
8919 -e "s/'/'\\\\''/g" \
8920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8921 ;;
8922 *)
8923 # `set' quotes correctly as required by POSIX, so do not add quotes.
8924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8925 ;;
8926 esac >> confcache
8927if cmp -s $cache_file confcache; then
8928 :
8929else
10f2d63a 8930 if test -w $cache_file; then
a0b9e27f
MB
8931 echo "updating cache $cache_file"
8932 cat confcache > $cache_file
10f2d63a
VZ
8933 else
8934 echo "not updating unwritable cache $cache_file"
8935 fi
8936fi
8937rm -f confcache
8938
a0b9e27f 8939
e59890c3 8940if test "$build" != "$host" ; then
9d353d4a 8941 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8942 CC=$host_alias-gcc
8943 CXX=$host_alias-c++
8944 AR=$host_alias-ar
8945 RANLIB=$host_alias-ranlib
8946 DLLTOOL=$host_alias-dlltool
8947 RESCOMP=$host_alias-windres
8948 LD=$host_alias-ld
8949 NM=$host_alias-nm
8950 STRIP=$host_alias-strip
8951 else
a0b9e27f 8952 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8953 fi
10f2d63a
VZ
8954fi
8955
ec603395 8956CFLAGS=${CFLAGS:=}
a0b9e27f 8957# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8958set dummy gcc; ac_word=$2
a0b9e27f 8959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 8960echo "configure:8961: checking for $ac_word" >&5
a0b9e27f
MB
8961if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8962 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8963else
8964 if test -n "$CC"; then
8965 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8966else
a0b9e27f
MB
8967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8968 ac_dummy="$PATH"
8969 for ac_dir in $ac_dummy; do
8970 test -z "$ac_dir" && ac_dir=.
8971 if test -f $ac_dir/$ac_word; then
8972 ac_cv_prog_CC="gcc"
8973 break
8974 fi
8975 done
8976 IFS="$ac_save_ifs"
10f2d63a 8977fi
6232543b 8978fi
a0b9e27f 8979CC="$ac_cv_prog_CC"
6232543b 8980if test -n "$CC"; then
a0b9e27f 8981 echo "$ac_t""$CC" 1>&6
247f5006 8982else
a0b9e27f 8983 echo "$ac_t""no" 1>&6
247f5006
VZ
8984fi
8985
5c6fa7d2
RR
8986if test -z "$CC"; then
8987 # Extract the first word of "cc", so it can be a program name with args.
8988set dummy cc; ac_word=$2
a0b9e27f 8989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 8990echo "configure:8991: checking for $ac_word" >&5
a0b9e27f
MB
8991if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8993else
8994 if test -n "$CC"; then
8995 ac_cv_prog_CC="$CC" # Let the user override the test.
8996else
a0b9e27f 8997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8998 ac_prog_rejected=no
a0b9e27f
MB
8999 ac_dummy="$PATH"
9000 for ac_dir in $ac_dummy; do
9001 test -z "$ac_dir" && ac_dir=.
9002 if test -f $ac_dir/$ac_word; then
9003 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9004 ac_prog_rejected=yes
9005 continue
9006 fi
9007 ac_cv_prog_CC="cc"
9008 break
9009 fi
9010 done
9011 IFS="$ac_save_ifs"
328a083c
RR
9012if test $ac_prog_rejected = yes; then
9013 # We found a bogon in the path, so make sure we never use it.
9014 set dummy $ac_cv_prog_CC
9015 shift
a0b9e27f 9016 if test $# -gt 0; then
328a083c 9017 # We chose a different compiler from the bogus one.
1e487827
VS
9018 # However, it has the same basename, so the bogon will be chosen
9019 # first if we set CC to just the basename; use the full file name.
9020 shift
a0b9e27f 9021 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
9022 shift
9023 ac_cv_prog_CC="$@"
703e0a69 9024 fi
1e487827
VS
9025fi
9026fi
9027fi
a0b9e27f 9028CC="$ac_cv_prog_CC"
1e487827 9029if test -n "$CC"; then
a0b9e27f 9030 echo "$ac_t""$CC" 1>&6
703e0a69 9031else
a0b9e27f 9032 echo "$ac_t""no" 1>&6
703e0a69 9033fi
1e487827 9034
a0b9e27f
MB
9035 if test -z "$CC"; then
9036 case "`uname -s`" in
9037 *win32* | *WIN32*)
9038 # Extract the first word of "cl", so it can be a program name with args.
9039set dummy cl; ac_word=$2
9040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9041echo "configure:9042: checking for $ac_word" >&5
a0b9e27f
MB
9042if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
9044else
9045 if test -n "$CC"; then
9046 ac_cv_prog_CC="$CC" # Let the user override the test.
9047else
a0b9e27f
MB
9048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9049 ac_dummy="$PATH"
9050 for ac_dir in $ac_dummy; do
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f $ac_dir/$ac_word; then
9053 ac_cv_prog_CC="cl"
9054 break
9055 fi
9056 done
9057 IFS="$ac_save_ifs"
f09359cf
VS
9058fi
9059fi
a0b9e27f 9060CC="$ac_cv_prog_CC"
f09359cf 9061if test -n "$CC"; then
a0b9e27f 9062 echo "$ac_t""$CC" 1>&6
f09359cf 9063else
a0b9e27f 9064 echo "$ac_t""no" 1>&6
247f5006 9065fi
a0b9e27f
MB
9066 ;;
9067 esac
8284b0c5 9068 fi
a0b9e27f 9069 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9070fi
1e487827 9071
a0b9e27f 9072echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
82d43113 9073echo "configure:9074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9074
a0b9e27f
MB
9075ac_ext=c
9076# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9077ac_cpp='$CPP $CPPFLAGS'
9078ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9079ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9080cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9081
a0b9e27f 9082cat > conftest.$ac_ext << EOF
247f5006 9083
82d43113 9084#line 9085 "configure"
a0b9e27f 9085#include "confdefs.h"
247f5006 9086
a0b9e27f
MB
9087main(){return(0);}
9088EOF
82d43113 9089if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9090 ac_cv_prog_cc_works=yes
9091 # If we can't run a trivial program, we are probably using a cross compiler.
9092 if (./conftest; exit) 2>/dev/null; then
9093 ac_cv_prog_cc_cross=no
698dcdb6 9094 else
a0b9e27f 9095 ac_cv_prog_cc_cross=yes
698dcdb6 9096 fi
7b4a847f 9097else
a0b9e27f
MB
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 ac_cv_prog_cc_works=no
52127426 9101fi
a0b9e27f
MB
9102rm -fr conftest*
9103ac_ext=c
9104# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9105ac_cpp='$CPP $CPPFLAGS'
9106ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9107ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9108cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9109
a0b9e27f
MB
9110echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9111if test $ac_cv_prog_cc_works = no; then
9112 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9113fi
9114echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
82d43113 9115echo "configure:9116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9116echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9117cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9118
a0b9e27f 9119echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
82d43113 9120echo "configure:9121: checking whether we are using GNU C" >&5
a0b9e27f
MB
9121if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9123else
a0b9e27f
MB
9124 cat > conftest.c <<EOF
9125#ifdef __GNUC__
9126 yes;
8284b0c5 9127#endif
a0b9e27f 9128EOF
82d43113 9129if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9130 ac_cv_prog_gcc=yes
5c6fa7d2 9131else
a0b9e27f 9132 ac_cv_prog_gcc=no
8284b0c5
MB
9133fi
9134fi
1e487827 9135
a0b9e27f 9136echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9137
a0b9e27f
MB
9138if test $ac_cv_prog_gcc = yes; then
9139 GCC=yes
9140else
9141 GCC=
9142fi
247f5006 9143
a0b9e27f
MB
9144ac_test_CFLAGS="${CFLAGS+set}"
9145ac_save_CFLAGS="$CFLAGS"
9146CFLAGS=
9147echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
82d43113 9148echo "configure:9149: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9149if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9151else
9152 echo 'void f(){}' > conftest.c
9153if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9154 ac_cv_prog_cc_g=yes
9155else
a0b9e27f 9156 ac_cv_prog_cc_g=no
10f2d63a 9157fi
a0b9e27f
MB
9158rm -f conftest*
9159
10f2d63a 9160fi
a0b9e27f
MB
9161
9162echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9163if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9164 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9165elif test $ac_cv_prog_cc_g = yes; then
9166 if test "$GCC" = yes; then
10f2d63a
VZ
9167 CFLAGS="-g -O2"
9168 else
f09359cf 9169 CFLAGS="-g"
10f2d63a 9170 fi
5c0a20c3 9171else
f09359cf
VS
9172 if test "$GCC" = yes; then
9173 CFLAGS="-O2"
9174 else
9175 CFLAGS=
9176 fi
10f2d63a
VZ
9177fi
9178
9179
a0b9e27f 9180echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
82d43113 9181echo "configure:9182: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9182# On Suns, sometimes $CPP names a directory.
9183if test -n "$CPP" && test -d "$CPP"; then
9184 CPP=
9185fi
9186if test -z "$CPP"; then
a0b9e27f
MB
9187if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189else
9190 # This must be in double quotes, not single quotes, because CPP may get
9191 # substituted into the Makefile and "${CC-cc}" will confuse make.
9192 CPP="${CC-cc} -E"
10f2d63a 9193 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9194 # not just through cpp.
9195 cat > conftest.$ac_ext <<EOF
82d43113 9196#line 9197 "configure"
10f2d63a
VZ
9197#include "confdefs.h"
9198#include <assert.h>
a0b9e27f
MB
9199Syntax Error
9200EOF
9201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 9202{ (eval echo configure:9203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9204if test -z "$ac_err"; then
10f2d63a
VZ
9205 :
9206else
a0b9e27f
MB
9207 echo "$ac_err" >&5
9208 echo "configure: failed program was:" >&5
10f2d63a 9209 cat conftest.$ac_ext >&5
a0b9e27f
MB
9210 rm -rf conftest*
9211 CPP="${CC-cc} -E -traditional-cpp"
9212 cat > conftest.$ac_ext <<EOF
82d43113 9213#line 9214 "configure"
f09359cf 9214#include "confdefs.h"
a0b9e27f
MB
9215#include <assert.h>
9216Syntax Error
9217EOF
9218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 9219{ (eval echo configure:9220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9221if test -z "$ac_err"; then
9222 :
247f5006 9223else
a0b9e27f
MB
9224 echo "$ac_err" >&5
9225 echo "configure: failed program was:" >&5
f09359cf 9226 cat conftest.$ac_ext >&5
a0b9e27f
MB
9227 rm -rf conftest*
9228 CPP="${CC-cc} -nologo -E"
9229 cat > conftest.$ac_ext <<EOF
82d43113 9230#line 9231 "configure"
10f2d63a
VZ
9231#include "confdefs.h"
9232#include <assert.h>
a0b9e27f
MB
9233Syntax Error
9234EOF
9235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 9236{ (eval echo configure:9237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9238if test -z "$ac_err"; then
10f2d63a
VZ
9239 :
9240else
a0b9e27f
MB
9241 echo "$ac_err" >&5
9242 echo "configure: failed program was:" >&5
10f2d63a 9243 cat conftest.$ac_ext >&5
a0b9e27f
MB
9244 rm -rf conftest*
9245 CPP=/lib/cpp
579d8138 9246fi
a0b9e27f 9247rm -f conftest*
52127426 9248fi
a0b9e27f 9249rm -f conftest*
8284b0c5 9250fi
a0b9e27f
MB
9251rm -f conftest*
9252 ac_cv_prog_CPP="$CPP"
9253fi
9254 CPP="$ac_cv_prog_CPP"
10f2d63a 9255else
a0b9e27f 9256 ac_cv_prog_CPP="$CPP"
10f2d63a 9257fi
a0b9e27f 9258echo "$ac_t""$CPP" 1>&6
10f2d63a 9259
a0b9e27f
MB
9260if test $ac_cv_prog_gcc = yes; then
9261 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
82d43113 9262echo "configure:9263: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9263if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9265else
9266 ac_pattern="Autoconf.*'x'"
a0b9e27f 9267 cat > conftest.$ac_ext <<EOF
82d43113 9268#line 9269 "configure"
10f2d63a
VZ
9269#include "confdefs.h"
9270#include <sgtty.h>
9271Autoconf TIOCGETP
a0b9e27f 9272EOF
10f2d63a
VZ
9273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9274 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9275 rm -rf conftest*
10f2d63a
VZ
9276 ac_cv_prog_gcc_traditional=yes
9277else
a0b9e27f 9278 rm -rf conftest*
10f2d63a
VZ
9279 ac_cv_prog_gcc_traditional=no
9280fi
9281rm -f conftest*
9282
8284b0c5 9283
10f2d63a 9284 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9285 cat > conftest.$ac_ext <<EOF
82d43113 9286#line 9287 "configure"
10f2d63a
VZ
9287#include "confdefs.h"
9288#include <termio.h>
9289Autoconf TCGETA
a0b9e27f 9290EOF
10f2d63a
VZ
9291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9292 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9293 rm -rf conftest*
10f2d63a
VZ
9294 ac_cv_prog_gcc_traditional=yes
9295fi
9296rm -f conftest*
9297
9298 fi
9299fi
a0b9e27f
MB
9300
9301echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9302 if test $ac_cv_prog_gcc_traditional = yes; then
9303 CC="$CC -traditional"
9304 fi
9305fi
9306
8284b0c5
MB
9307
9308
a0b9e27f
MB
9309ac_ext=C
9310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9311ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9314cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9315
698dcdb6 9316
ec603395 9317CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9318for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9319do
9320# Extract the first word of "$ac_prog", so it can be a program name with args.
9321set dummy $ac_prog; ac_word=$2
9322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9323echo "configure:9324: checking for $ac_word" >&5
a0b9e27f
MB
9324if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9326else
9327 if test -n "$CXX"; then
9328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9329else
a0b9e27f
MB
9330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9331 ac_dummy="$PATH"
9332 for ac_dir in $ac_dummy; do
9333 test -z "$ac_dir" && ac_dir=.
9334 if test -f $ac_dir/$ac_word; then
9335 ac_cv_prog_CXX="$ac_prog"
9336 break
9337 fi
9338 done
9339 IFS="$ac_save_ifs"
10f2d63a
VZ
9340fi
9341fi
a0b9e27f 9342CXX="$ac_cv_prog_CXX"
10f2d63a 9343if test -n "$CXX"; then
a0b9e27f 9344 echo "$ac_t""$CXX" 1>&6
10f2d63a 9345else
a0b9e27f 9346 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9347fi
9348
a0b9e27f 9349test -n "$CXX" && break
10f2d63a 9350done
a0b9e27f 9351test -n "$CXX" || CXX="gcc"
f09359cf 9352
a0b9e27f
MB
9353
9354echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
82d43113 9355echo "configure:9356: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9356
9357ac_ext=C
9358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9359ac_cpp='$CXXCPP $CPPFLAGS'
9360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9362cross_compiling=$ac_cv_prog_cxx_cross
9363
9364cat > conftest.$ac_ext << EOF
9365
82d43113 9366#line 9367 "configure"
a0b9e27f
MB
9367#include "confdefs.h"
9368
9369int main(){return(0);}
9370EOF
82d43113 9371if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9372 ac_cv_prog_cxx_works=yes
9373 # If we can't run a trivial program, we are probably using a cross compiler.
9374 if (./conftest; exit) 2>/dev/null; then
9375 ac_cv_prog_cxx_cross=no
9376 else
9377 ac_cv_prog_cxx_cross=yes
9378 fi
8284b0c5 9379else
a0b9e27f
MB
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 ac_cv_prog_cxx_works=no
8284b0c5 9383fi
a0b9e27f
MB
9384rm -fr conftest*
9385ac_ext=C
9386# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9387ac_cpp='$CXXCPP $CPPFLAGS'
9388ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9389ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9390cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9391
a0b9e27f
MB
9392echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9393if test $ac_cv_prog_cxx_works = no; then
9394 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9395fi
9396echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
82d43113 9397echo "configure:9398: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9398echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9399cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9400
a0b9e27f 9401echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
82d43113 9402echo "configure:9403: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9403if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9405else
9406 cat > conftest.C <<EOF
9407#ifdef __GNUC__
9408 yes;
10f2d63a 9409#endif
a0b9e27f 9410EOF
82d43113 9411if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9412 ac_cv_prog_gxx=yes
9413else
9414 ac_cv_prog_gxx=no
9415fi
9416fi
10f2d63a 9417
a0b9e27f 9418echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9419
a0b9e27f
MB
9420if test $ac_cv_prog_gxx = yes; then
9421 GXX=yes
9422else
9423 GXX=
9424fi
f09359cf 9425
a0b9e27f
MB
9426ac_test_CXXFLAGS="${CXXFLAGS+set}"
9427ac_save_CXXFLAGS="$CXXFLAGS"
9428CXXFLAGS=
9429echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
82d43113 9430echo "configure:9431: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9431if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433else
9434 echo 'void f(){}' > conftest.cc
9435if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9436 ac_cv_prog_cxx_g=yes
9437else
a0b9e27f 9438 ac_cv_prog_cxx_g=no
10f2d63a 9439fi
a0b9e27f
MB
9440rm -f conftest*
9441
10f2d63a 9442fi
a0b9e27f
MB
9443
9444echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9445if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9446 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9447elif test $ac_cv_prog_cxx_g = yes; then
9448 if test "$GXX" = yes; then
10f2d63a
VZ
9449 CXXFLAGS="-g -O2"
9450 else
f09359cf 9451 CXXFLAGS="-g"
10f2d63a 9452 fi
5c0a20c3 9453else
f09359cf
VS
9454 if test "$GXX" = yes; then
9455 CXXFLAGS="-O2"
9456 else
9457 CXXFLAGS=
9458 fi
10f2d63a
VZ
9459fi
9460
9461
10f2d63a 9462ac_ext=c
a0b9e27f 9463# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9464ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9465ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9466ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9467cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9468
9469
a0b9e27f
MB
9470# Extract the first word of "ranlib", so it can be a program name with args.
9471set dummy ranlib; ac_word=$2
9472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9473echo "configure:9474: checking for $ac_word" >&5
a0b9e27f
MB
9474if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9476else
9477 if test -n "$RANLIB"; then
9478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9479else
a0b9e27f
MB
9480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9481 ac_dummy="$PATH"
9482 for ac_dir in $ac_dummy; do
9483 test -z "$ac_dir" && ac_dir=.
9484 if test -f $ac_dir/$ac_word; then
9485 ac_cv_prog_RANLIB="ranlib"
9486 break
9487 fi
9488 done
9489 IFS="$ac_save_ifs"
9490 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9491fi
9492fi
a0b9e27f 9493RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9494if test -n "$RANLIB"; then
a0b9e27f 9495 echo "$ac_t""$RANLIB" 1>&6
328a083c 9496else
a0b9e27f 9497 echo "$ac_t""no" 1>&6
328a083c
RR
9498fi
9499
10f2d63a
VZ
9500
9501# Extract the first word of "ar", so it can be a program name with args.
9502set dummy ar; ac_word=$2
a0b9e27f 9503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9504echo "configure:9505: checking for $ac_word" >&5
a0b9e27f
MB
9505if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9507else
9508 if test -n "$AR"; then
9509 ac_cv_prog_AR="$AR" # Let the user override the test.
9510else
a0b9e27f
MB
9511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9512 ac_dummy="$PATH"
9513 for ac_dir in $ac_dummy; do
9514 test -z "$ac_dir" && ac_dir=.
9515 if test -f $ac_dir/$ac_word; then
9516 ac_cv_prog_AR="ar"
9517 break
9518 fi
9519 done
9520 IFS="$ac_save_ifs"
10f2d63a
VZ
9521 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9522fi
9523fi
a0b9e27f 9524AR="$ac_cv_prog_AR"
10f2d63a 9525if test -n "$AR"; then
a0b9e27f 9526 echo "$ac_t""$AR" 1>&6
10f2d63a 9527else
a0b9e27f 9528 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9529fi
9530
8284b0c5 9531
6054113a 9532# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9533# so one script is as good as another. But avoid the broken or
9534# incompatible versions:
9535# SysV /etc/install, /usr/sbin/install
9536# SunOS /usr/etc/install
9537# IRIX /sbin/install
9538# AIX /bin/install
f09359cf 9539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9542# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9543echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
82d43113 9544echo "configure:9545: checking for a BSD compatible install" >&5
10f2d63a 9545if test -z "$INSTALL"; then
a0b9e27f
MB
9546if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548else
9549 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9550 for ac_dir in $PATH; do
9551 # Account for people who put trailing slashes in PATH elements.
9552 case "$ac_dir/" in
9553 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9554 *)
9555 # OSF1 and SCO ODT 3.0 have their own names for install.
9556 # Don't use installbsd from OSF since it installs stuff as root
9557 # by default.
9558 for ac_prog in ginstall scoinst install; do
9559 if test -f $ac_dir/$ac_prog; then
9560 if test $ac_prog = install &&
9561 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9562 # AIX install. It has an incompatible calling convention.
9563 :
9564 else
9565 ac_cv_path_install="$ac_dir/$ac_prog -c"
9566 break 2
9567 fi
9568 fi
10f2d63a 9569 done
a0b9e27f
MB
9570 ;;
9571 esac
9572 done
9573 IFS="$ac_save_IFS"
10f2d63a
VZ
9574
9575fi
9576 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9577 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9578 else
9579 # As a last resort, use the slow shell script. We don't cache a
9580 # path for INSTALL within a source directory, because that will
9581 # break other packages using the cache if that directory is
9582 # removed, or if the path is relative.
a0b9e27f 9583 INSTALL="$ac_install_sh"
10f2d63a
VZ
9584 fi
9585fi
a0b9e27f 9586echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9587
9588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9589# It thinks the first close brace ends the variable substitution.
9590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9591
a0b9e27f 9592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9593
10f2d63a
VZ
9594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9595
8284b0c5 9596
1d1b75ac
VZ
9597case ${INSTALL} in
9598 /* ) # Absolute
9599 ;;
3bd8fb5f 9600 *)
1d1b75ac
VZ
9601 INSTALL=`pwd`/${INSTALL} ;;
9602esac
9603
8284b0c5 9604
6054113a
GD
9605case "${host}" in
9606
b5853384 9607 powerpc-*-darwin* )
eb99ae0b
GD
9608 INSTALL_PROGRAM="cp -fp"
9609 INSTALL_DATA="cp -fp"
6054113a
GD
9610 ;;
9611 *)
9612 ;;
d6853540 9613esac
698dcdb6 9614
10f2d63a
VZ
9615# Extract the first word of "strip", so it can be a program name with args.
9616set dummy strip; ac_word=$2
a0b9e27f 9617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9618echo "configure:9619: checking for $ac_word" >&5
a0b9e27f
MB
9619if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9620 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9621else
9622 if test -n "$STRIP"; then
9623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9624else
a0b9e27f
MB
9625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9626 ac_dummy="$PATH"
9627 for ac_dir in $ac_dummy; do
9628 test -z "$ac_dir" && ac_dir=.
9629 if test -f $ac_dir/$ac_word; then
9630 ac_cv_prog_STRIP="strip"
9631 break
9632 fi
9633 done
9634 IFS="$ac_save_ifs"
10f2d63a
VZ
9635 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9636fi
9637fi
a0b9e27f 9638STRIP="$ac_cv_prog_STRIP"
10f2d63a 9639if test -n "$STRIP"; then
a0b9e27f 9640 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9641else
a0b9e27f 9642 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9643fi
9644
5c6fa7d2 9645
a0b9e27f 9646echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
82d43113 9647echo "configure:9648: checking if make is GNU make" >&5
a0b9e27f
MB
9648if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9650else
a0b9e27f 9651
414eab6d 9652 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9653 egrep -s GNU > /dev/null); then
414eab6d
VZ
9654 wx_cv_prog_makeisgnu="yes"
9655 else
9656 wx_cv_prog_makeisgnu="no"
9657 fi
9658
9659fi
a0b9e27f
MB
9660
9661echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9662
9663if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9664 IF_GNU_MAKE=""
9665else
9666 IF_GNU_MAKE="#"
9667fi
9668
8284b0c5
MB
9669
9670
414eab6d 9671if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9672echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
82d43113 9673echo "configure:9674: checking if make supports VPATH" >&5
a0b9e27f
MB
9674if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9676else
a0b9e27f 9677
10f2d63a
VZ
9678cat - << EOF > confMake
9679check : file
9680 cp \$? \$@
9681 cp \$? final_file
9682EOF
9683
9684if test ! -d sub ; then
9685 mkdir sub
9686fi
9687echo dummy > sub/file
f6bcfd97 9688${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9689RESULT=$?
9690rm -f sub/file check final_file confMake
9691rmdir sub
9692if test "$RESULT" = 0; then
04e7a216 9693 wx_cv_prog_makevpath="yes"
10f2d63a 9694else
04e7a216
VZ
9695 wx_cv_prog_makevpath="no"
9696fi
9697
9698fi
a0b9e27f
MB
9699
9700echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9701
9702if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9703{ echo "configure: error:
5c6fa7d2
RR
9704You need a make-utility that is able to use the variable
9705VPATH correctly.
9706If your version of make does not support VPATH correctly,
9707please install GNU-make (possibly as gmake), and start
9708configure with the following command:
9709export MAKE=gmake; ./configure for sh-type shells
9710setenv MAKE gmake; ./configure for csh-type shells
9711Also please do remember to use gmake in this case every time
9712you are trying to compile.
a0b9e27f
MB
9713" 1>&2; exit 1; }
9714fi fi
10f2d63a
VZ
9715for ac_prog in 'bison -y' byacc
9716do
a0b9e27f 9717# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9718set dummy $ac_prog; ac_word=$2
a0b9e27f 9719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9720echo "configure:9721: checking for $ac_word" >&5
a0b9e27f
MB
9721if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9723else
9724 if test -n "$YACC"; then
9725 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9726else
a0b9e27f
MB
9727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9728 ac_dummy="$PATH"
9729 for ac_dir in $ac_dummy; do
9730 test -z "$ac_dir" && ac_dir=.
9731 if test -f $ac_dir/$ac_word; then
9732 ac_cv_prog_YACC="$ac_prog"
9733 break
9734 fi
9735 done
9736 IFS="$ac_save_ifs"
10f2d63a
VZ
9737fi
9738fi
a0b9e27f 9739YACC="$ac_cv_prog_YACC"
10f2d63a 9740if test -n "$YACC"; then
a0b9e27f 9741 echo "$ac_t""$YACC" 1>&6
10f2d63a 9742else
a0b9e27f 9743 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9744fi
9745
a0b9e27f 9746test -n "$YACC" && break
10f2d63a
VZ
9747done
9748test -n "$YACC" || YACC="yacc"
9749
8284b0c5 9750
a0b9e27f
MB
9751# Extract the first word of "flex", so it can be a program name with args.
9752set dummy flex; ac_word=$2
9753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 9754echo "configure:9755: checking for $ac_word" >&5
a0b9e27f
MB
9755if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9757else
9758 if test -n "$LEX"; then
9759 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9760else
a0b9e27f
MB
9761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9762 ac_dummy="$PATH"
9763 for ac_dir in $ac_dummy; do
9764 test -z "$ac_dir" && ac_dir=.
9765 if test -f $ac_dir/$ac_word; then
9766 ac_cv_prog_LEX="flex"
9767 break
9768 fi
9769 done
9770 IFS="$ac_save_ifs"
9771 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9772fi
9773fi
a0b9e27f 9774LEX="$ac_cv_prog_LEX"
10f2d63a 9775if test -n "$LEX"; then
a0b9e27f 9776 echo "$ac_t""$LEX" 1>&6
10f2d63a 9777else
a0b9e27f 9778 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9779fi
9780
9781if test -z "$LEXLIB"
9782then
a0b9e27f
MB
9783 case "$LEX" in
9784 flex*) ac_lib=fl ;;
9785 *) ac_lib=l ;;
9786 esac
9787 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
82d43113 9788echo "configure:9789: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9789ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792else
9793 ac_save_LIBS="$LIBS"
9794LIBS="-l$ac_lib $LIBS"
9795cat > conftest.$ac_ext <<EOF
82d43113 9796#line 9797 "configure"
247f5006 9797#include "confdefs.h"
247f5006 9798/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9799/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9800 builtin and then its argument prototype would still apply. */
9801char yywrap();
10f2d63a 9802
a0b9e27f
MB
9803int main() {
9804yywrap()
9805; return 0; }
9806EOF
82d43113 9807if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9808 rm -rf conftest*
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9810else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -rf conftest*
9814 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9815fi
a0b9e27f
MB
9816rm -f conftest*
9817LIBS="$ac_save_LIBS"
8284b0c5 9818
10f2d63a 9819fi
a0b9e27f
MB
9820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 LEXLIB="-l$ac_lib"
8284b0c5 9823else
a0b9e27f 9824 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9825fi
9826
a0b9e27f 9827fi
10f2d63a
VZ
9828
9829
a0b9e27f 9830echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
82d43113 9831echo "configure:9832: checking whether ln -s works" >&5
a0b9e27f
MB
9832if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9834else
a0b9e27f
MB
9835 rm -f conftestdata
9836if ln -s X conftestdata 2>/dev/null
9837then
9838 rm -f conftestdata
9839 ac_cv_prog_LN_S="ln -s"
10f2d63a 9840else
a0b9e27f 9841 ac_cv_prog_LN_S=ln
10f2d63a 9842fi
a0b9e27f
MB
9843fi
9844LN_S="$ac_cv_prog_LN_S"
9845if test "$ac_cv_prog_LN_S" = "ln -s"; then
9846 echo "$ac_t""yes" 1>&6
10f2d63a 9847else
a0b9e27f 9848 echo "$ac_t""no" 1>&6
5c6fa7d2 9849fi
5c6fa7d2 9850
247f5006 9851
2b5f62a0
VZ
9852case "${host}" in
9853 *-pc-os2_emx | *-pc-os2-emx )
9854 LIBS="$LIBS -lstdcpp"
9855 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9856 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
82d43113 9857echo "configure:9858: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9858ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9861else
9862 ac_save_LIBS="$LIBS"
9863LIBS="-lcExt $LIBS"
9864cat > conftest.$ac_ext <<EOF
82d43113 9865#line 9866 "configure"
2b5f62a0
VZ
9866#include "confdefs.h"
9867/* Override any gcc2 internal prototype to avoid an error. */
9868/* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9870char drand48();
9871
9872int main() {
9873drand48()
9874; return 0; }
9875EOF
82d43113 9876if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9877 rm -rf conftest*
9878 eval "ac_cv_lib_$ac_lib_var=yes"
9879else
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 rm -rf conftest*
9883 eval "ac_cv_lib_$ac_lib_var=no"
9884fi
9885rm -f conftest*
9886LIBS="$ac_save_LIBS"
9887
9888fi
9889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6
9891 LIBS="$LIBS -lcExt"
9892else
9893 echo "$ac_t""no" 1>&6
9894fi
9895
9896 else
9897 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9898 fi
9899 ;;
9900esac
9901
a0b9e27f
MB
9902
9903if test "$wxUSE_MAC" != 1; then
9904 for ac_hdr in strings.h
9905do
9906ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 9908echo "configure:9909: checking for $ac_hdr" >&5
a0b9e27f
MB
9909if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911else
9912 cat > conftest.$ac_ext <<EOF
82d43113 9913#line 9914 "configure"
a0b9e27f
MB
9914#include "confdefs.h"
9915#include <$ac_hdr>
9916EOF
9917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 9918{ (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920if test -z "$ac_err"; then
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=yes"
9923else
9924 echo "$ac_err" >&5
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 eval "ac_cv_header_$ac_safe=no"
21d1c967 9929fi
247f5006 9930rm -f conftest*
19bc6aad 9931fi
a0b9e27f
MB
9932if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935 cat >> confdefs.h <<EOF
9936#define $ac_tr_hdr 1
9937EOF
9938
247f5006 9939else
a0b9e27f 9940 echo "$ac_t""no" 1>&6
18dbb1f6 9941fi
a0b9e27f 9942done
247f5006 9943
90dd450c 9944fi
90dd450c 9945
a0b9e27f
MB
9946for ac_hdr in stdlib.h
9947do
9948ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9949echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 9950echo "configure:9951: checking for $ac_hdr" >&5
a0b9e27f
MB
9951if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9953else
9954 cat > conftest.$ac_ext <<EOF
82d43113 9955#line 9956 "configure"
90dd450c 9956#include "confdefs.h"
a0b9e27f
MB
9957#include <$ac_hdr>
9958EOF
9959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 9960{ (eval echo configure:9961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9962if test -z "$ac_err"; then
9963 rm -rf conftest*
9964 eval "ac_cv_header_$ac_safe=yes"
9965else
9966 echo "$ac_err" >&5
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
9970 eval "ac_cv_header_$ac_safe=no"
9971fi
9972rm -f conftest*
9973fi
9974if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9977 cat >> confdefs.h <<EOF
9978#define $ac_tr_hdr 1
9979EOF
9980
8284b0c5 9981else
a0b9e27f 9982 echo "$ac_t""no" 1>&6
21d1c967 9983fi
a0b9e27f
MB
9984done
9985
9986for ac_hdr in malloc.h
9987do
9988ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9989echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 9990echo "configure:9991: checking for $ac_hdr" >&5
a0b9e27f
MB
9991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9993else
9994 cat > conftest.$ac_ext <<EOF
82d43113 9995#line 9996 "configure"
a0b9e27f
MB
9996#include "confdefs.h"
9997#include <$ac_hdr>
9998EOF
9999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10000{ (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10002if test -z "$ac_err"; then
10003 rm -rf conftest*
10004 eval "ac_cv_header_$ac_safe=yes"
10005else
10006 echo "$ac_err" >&5
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -rf conftest*
10010 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10011fi
a0b9e27f 10012rm -f conftest*
90dd450c 10013fi
a0b9e27f
MB
10014if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10015 echo "$ac_t""yes" 1>&6
10016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10017 cat >> confdefs.h <<EOF
10018#define $ac_tr_hdr 1
10019EOF
10020
10021else
10022 echo "$ac_t""no" 1>&6
21d1c967 10023fi
a0b9e27f 10024done
247f5006 10025
a0b9e27f
MB
10026for ac_hdr in unistd.h
10027do
10028ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10029echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10030echo "configure:10031: checking for $ac_hdr" >&5
a0b9e27f
MB
10031if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10033else
10034 cat > conftest.$ac_ext <<EOF
82d43113 10035#line 10036 "configure"
a0b9e27f
MB
10036#include "confdefs.h"
10037#include <$ac_hdr>
10038EOF
10039ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10040{ (eval echo configure:10041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10041ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10042if test -z "$ac_err"; then
10043 rm -rf conftest*
10044 eval "ac_cv_header_$ac_safe=yes"
10045else
10046 echo "$ac_err" >&5
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10049 rm -rf conftest*
10050 eval "ac_cv_header_$ac_safe=no"
247f5006 10051fi
a0b9e27f
MB
10052rm -f conftest*
10053fi
10054if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10055 echo "$ac_t""yes" 1>&6
10056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10057 cat >> confdefs.h <<EOF
10058#define $ac_tr_hdr 1
10059EOF
10060
10061else
10062 echo "$ac_t""no" 1>&6
10063fi
10064done
90dd450c 10065
a0b9e27f 10066for ac_hdr in wchar.h
21d1c967 10067do
a0b9e27f
MB
10068ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10069echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10070echo "configure:10071: checking for $ac_hdr" >&5
a0b9e27f
MB
10071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10073else
10074 cat > conftest.$ac_ext <<EOF
82d43113 10075#line 10076 "configure"
4f14bcd8 10076#include "confdefs.h"
a0b9e27f
MB
10077#include <$ac_hdr>
10078EOF
10079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10080{ (eval echo configure:10081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10082if test -z "$ac_err"; then
10083 rm -rf conftest*
10084 eval "ac_cv_header_$ac_safe=yes"
10085else
10086 echo "$ac_err" >&5
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_header_$ac_safe=no"
10091fi
10092rm -f conftest*
10093fi
10094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10097 cat >> confdefs.h <<EOF
10098#define $ac_tr_hdr 1
10099EOF
10100
10101else
10102 echo "$ac_t""no" 1>&6
21d1c967
GD
10103fi
10104done
4f14bcd8 10105
5c6fa7d2 10106
a0b9e27f
MB
10107if test "$ac_cv_header_wchar_h" != "yes"; then
10108 for ac_hdr in wcstr.h
21d1c967 10109do
a0b9e27f
MB
10110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10112echo "configure:10113: checking for $ac_hdr" >&5
a0b9e27f
MB
10113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10115else
10116 cat > conftest.$ac_ext <<EOF
82d43113 10117#line 10118 "configure"
d4158b5d 10118#include "confdefs.h"
a0b9e27f
MB
10119#include <$ac_hdr>
10120EOF
10121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10122{ (eval echo configure:10123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10124if test -z "$ac_err"; then
10125 rm -rf conftest*
10126 eval "ac_cv_header_$ac_safe=yes"
10127else
10128 echo "$ac_err" >&5
10129 echo "configure: failed program was:" >&5
d4158b5d 10130 cat conftest.$ac_ext >&5
a0b9e27f
MB
10131 rm -rf conftest*
10132 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10133fi
a0b9e27f 10134rm -f conftest*
21d1c967 10135fi
a0b9e27f
MB
10136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10137 echo "$ac_t""yes" 1>&6
10138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10139 cat >> confdefs.h <<EOF
10140#define $ac_tr_hdr 1
10141EOF
10142
10143else
10144 echo "$ac_t""no" 1>&6
d4158b5d 10145fi
21d1c967 10146done
f6bcfd97 10147
90dd450c 10148fi
90dd450c 10149
a0b9e27f 10150for ac_hdr in fnmatch.h
21d1c967 10151do
a0b9e27f
MB
10152ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10153echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10154echo "configure:10155: checking for $ac_hdr" >&5
a0b9e27f
MB
10155if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157else
10158 cat > conftest.$ac_ext <<EOF
82d43113 10159#line 10160 "configure"
90dd450c 10160#include "confdefs.h"
a0b9e27f
MB
10161#include <$ac_hdr>
10162EOF
10163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10164{ (eval echo configure:10165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10166if test -z "$ac_err"; then
10167 rm -rf conftest*
10168 eval "ac_cv_header_$ac_safe=yes"
10169else
10170 echo "$ac_err" >&5
10171 echo "configure: failed program was:" >&5
3a922bb4 10172 cat conftest.$ac_ext >&5
a0b9e27f
MB
10173 rm -rf conftest*
10174 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10175fi
a0b9e27f 10176rm -f conftest*
4f14bcd8 10177fi
a0b9e27f
MB
10178if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10181 cat >> confdefs.h <<EOF
10182#define $ac_tr_hdr 1
10183EOF
10184
10185else
10186 echo "$ac_t""no" 1>&6
21d1c967
GD
10187fi
10188done
90dd450c 10189
5c6fa7d2 10190
a0b9e27f
MB
10191if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10192 for ac_func in fnmatch
21d1c967 10193do
a0b9e27f 10194echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 10195echo "configure:10196: checking for $ac_func" >&5
a0b9e27f
MB
10196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10198else
a0b9e27f 10199 cat > conftest.$ac_ext <<EOF
82d43113 10200#line 10201 "configure"
a0b9e27f
MB
10201#include "confdefs.h"
10202/* System header to define __stub macros and hopefully few prototypes,
10203 which can conflict with char $ac_func(); below. */
10204#include <assert.h>
10205/* Override any gcc2 internal prototype to avoid an error. */
10206/* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10208char $ac_func();
10209
10210int main() {
10211
10212/* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10216choke me
10217#else
10218$ac_func();
10219#endif
10220
10221; return 0; }
10222EOF
82d43113 10223if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10224 rm -rf conftest*
10225 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10226else
a0b9e27f 10227 echo "configure: failed program was:" >&5
8284b0c5 10228 cat conftest.$ac_ext >&5
a0b9e27f
MB
10229 rm -rf conftest*
10230 eval "ac_cv_func_$ac_func=no"
8284b0c5 10231fi
a0b9e27f 10232rm -f conftest*
8284b0c5 10233fi
32832908 10234
a0b9e27f
MB
10235if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
10237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10238 cat >> confdefs.h <<EOF
10239#define $ac_tr_func 1
10240EOF
10241
10242else
10243 echo "$ac_t""no" 1>&6
21d1c967
GD
10244fi
10245done
90dd450c 10246
a0b9e27f 10247fi
90dd450c 10248
a0b9e27f 10249for ac_hdr in langinfo.h
21d1c967 10250do
a0b9e27f
MB
10251ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10252echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10253echo "configure:10254: checking for $ac_hdr" >&5
a0b9e27f
MB
10254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10256else
10257 cat > conftest.$ac_ext <<EOF
82d43113 10258#line 10259 "configure"
247f5006 10259#include "confdefs.h"
a0b9e27f
MB
10260#include <$ac_hdr>
10261EOF
10262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10263{ (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10265if test -z "$ac_err"; then
10266 rm -rf conftest*
10267 eval "ac_cv_header_$ac_safe=yes"
10268else
10269 echo "$ac_err" >&5
10270 echo "configure: failed program was:" >&5
90dd450c 10271 cat conftest.$ac_ext >&5
a0b9e27f
MB
10272 rm -rf conftest*
10273 eval "ac_cv_header_$ac_safe=no"
90dd450c 10274fi
a0b9e27f 10275rm -f conftest*
4f14bcd8 10276fi
a0b9e27f
MB
10277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10278 echo "$ac_t""yes" 1>&6
10279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10280 cat >> confdefs.h <<EOF
10281#define $ac_tr_hdr 1
10282EOF
10283
10284else
10285 echo "$ac_t""no" 1>&6
21d1c967
GD
10286fi
10287done
3a922bb4 10288
8284b0c5 10289
a0b9e27f
MB
10290if test "$wxUSE_GUI" = "yes"; then
10291 if test "$wxUSE_UNIX" = "yes"; then
10292 for ac_hdr in X11/XKBlib.h
21d1c967 10293do
a0b9e27f
MB
10294ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10295echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 10296echo "configure:10297: checking for $ac_hdr" >&5
a0b9e27f
MB
10297if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299else
10300 cat > conftest.$ac_ext <<EOF
82d43113 10301#line 10302 "configure"
90dd450c 10302#include "confdefs.h"
a0b9e27f
MB
10303#include <$ac_hdr>
10304EOF
10305ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 10306{ (eval echo configure:10307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10307ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10308if test -z "$ac_err"; then
10309 rm -rf conftest*
10310 eval "ac_cv_header_$ac_safe=yes"
10311else
10312 echo "$ac_err" >&5
10313 echo "configure: failed program was:" >&5
90dd450c 10314 cat conftest.$ac_ext >&5
a0b9e27f
MB
10315 rm -rf conftest*
10316 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10317fi
a0b9e27f 10318rm -f conftest*
90dd450c 10319fi
a0b9e27f
MB
10320if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10321 echo "$ac_t""yes" 1>&6
10322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10323 cat >> confdefs.h <<EOF
10324#define $ac_tr_hdr 1
10325EOF
10326
10327else
10328 echo "$ac_t""no" 1>&6
247f5006 10329fi
247f5006
VZ
10330done
10331
a0b9e27f
MB
10332 fi
10333fi
247f5006 10334
247f5006 10335
a0b9e27f 10336echo $ac_n "checking for working const""... $ac_c" 1>&6
82d43113 10337echo "configure:10338: checking for working const" >&5
a0b9e27f
MB
10338if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10339 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10340else
a0b9e27f 10341 cat > conftest.$ac_ext <<EOF
82d43113 10342#line 10343 "configure"
a0b9e27f
MB
10343#include "confdefs.h"
10344
10345int main() {
10346
10347/* Ultrix mips cc rejects this. */
10348typedef int charset[2]; const charset x;
10349/* SunOS 4.1.1 cc rejects this. */
10350char const *const *ccp;
10351char **p;
10352/* NEC SVR4.0.2 mips cc rejects this. */
10353struct point {int x, y;};
10354static struct point const zero = {0,0};
10355/* AIX XL C 1.02.0.0 rejects this.
10356 It does not let you subtract one const X* pointer from another in an arm
10357 of an if-expression whose if-part is not a constant expression */
10358const char *g = "string";
10359ccp = &g + (g ? g-g : 0);
10360/* HPUX 7.0 cc rejects these. */
10361++ccp;
10362p = (char**) ccp;
10363ccp = (char const *const *) p;
10364{ /* SCO 3.2v4 cc rejects this. */
10365 char *t;
10366 char const *s = 0 ? (char *) 0 : (char const *) 0;
10367
10368 *t++ = 0;
10369}
10370{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10371 int x[] = {25, 17};
10372 const int *foo = &x[0];
10373 ++foo;
10374}
10375{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10376 typedef const int *iptr;
10377 iptr p = 0;
10378 ++p;
10379}
10380{ /* AIX XL C 1.02.0.0 rejects this saying
10381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10382 struct s { int j; const int *ap[3]; };
10383 struct s *b; b->j = 5;
10384}
10385{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10386 const int foo = 10;
10387}
10388
10389; return 0; }
10390EOF
82d43113 10391if { (eval echo configure:10392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10392 rm -rf conftest*
10393 ac_cv_c_const=yes
247f5006 10394else
a0b9e27f 10395 echo "configure: failed program was:" >&5
247f5006 10396 cat conftest.$ac_ext >&5
a0b9e27f
MB
10397 rm -rf conftest*
10398 ac_cv_c_const=no
247f5006 10399fi
a0b9e27f 10400rm -f conftest*
21d1c967 10401fi
247f5006 10402
a0b9e27f
MB
10403echo "$ac_t""$ac_cv_c_const" 1>&6
10404if test $ac_cv_c_const = no; then
10405 cat >> confdefs.h <<\EOF
10406#define const
10407EOF
10f2d63a 10408
90dd450c 10409fi
81809c07 10410
a0b9e27f 10411echo $ac_n "checking for inline""... $ac_c" 1>&6
82d43113 10412echo "configure:10413: checking for inline" >&5
a0b9e27f
MB
10413if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10415else
a0b9e27f
MB
10416 ac_cv_c_inline=no
10417for ac_kw in inline __inline__ __inline; do
10418 cat > conftest.$ac_ext <<EOF
82d43113 10419#line 10420 "configure"
a0b9e27f
MB
10420#include "confdefs.h"
10421
10422int main() {
10423} $ac_kw foo() {
10424; return 0; }
10425EOF
82d43113 10426if { (eval echo configure:10427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10427 rm -rf conftest*
10428 ac_cv_c_inline=$ac_kw; break
247f5006 10429else
a0b9e27f 10430 echo "configure: failed program was:" >&5
247f5006 10431 cat conftest.$ac_ext >&5
247f5006 10432fi
a0b9e27f
MB
10433rm -f conftest*
10434done
247f5006
VZ
10435
10436fi
10437
a0b9e27f
MB
10438echo "$ac_t""$ac_cv_c_inline" 1>&6
10439case "$ac_cv_c_inline" in
10440 inline | yes) ;;
10441 no) cat >> confdefs.h <<\EOF
10442#define inline
10443EOF
10444 ;;
10445 *) cat >> confdefs.h <<EOF
10446#define inline $ac_cv_c_inline
10447EOF
10448 ;;
10449esac
247f5006 10450
247f5006 10451
a0b9e27f 10452echo $ac_n "checking size of char""... $ac_c" 1>&6
82d43113 10453echo "configure:10454: checking size of char" >&5
a0b9e27f
MB
10454if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10456else
10457 if test "$cross_compiling" = yes; then
10458 ac_cv_sizeof_char=1
10459else
10460 cat > conftest.$ac_ext <<EOF
82d43113 10461#line 10462 "configure"
4f14bcd8 10462#include "confdefs.h"
a0b9e27f 10463#include <stdio.h>
a0b9e27f 10464main()
247f5006 10465{
a0b9e27f
MB
10466 FILE *f=fopen("conftestval", "w");
10467 if (!f) exit(1);
10468 fprintf(f, "%d\n", sizeof(char));
10469 exit(0);
52127426 10470}
a0b9e27f 10471EOF
82d43113 10472if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10473then
10474 ac_cv_sizeof_char=`cat conftestval`
247f5006 10475else
a0b9e27f 10476 echo "configure: failed program was:" >&5
247f5006 10477 cat conftest.$ac_ext >&5
a0b9e27f
MB
10478 rm -fr conftest*
10479 ac_cv_sizeof_char=0
247f5006 10480fi
a0b9e27f 10481rm -fr conftest*
247f5006 10482fi
247f5006
VZ
10483
10484fi
a0b9e27f
MB
10485echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10486cat >> confdefs.h <<EOF
10487#define SIZEOF_CHAR $ac_cv_sizeof_char
10488EOF
247f5006 10489
247f5006 10490
a0b9e27f 10491echo $ac_n "checking size of short""... $ac_c" 1>&6
82d43113 10492echo "configure:10493: checking size of short" >&5
a0b9e27f
MB
10493if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10495else
a0b9e27f
MB
10496 if test "$cross_compiling" = yes; then
10497 ac_cv_sizeof_short=2
247f5006 10498else
a0b9e27f 10499 cat > conftest.$ac_ext <<EOF
82d43113 10500#line 10501 "configure"
a0b9e27f
MB
10501#include "confdefs.h"
10502#include <stdio.h>
a0b9e27f
MB
10503main()
10504{
10505 FILE *f=fopen("conftestval", "w");
10506 if (!f) exit(1);
10507 fprintf(f, "%d\n", sizeof(short));
10508 exit(0);
10509}
10510EOF
82d43113 10511if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10512then
10513 ac_cv_sizeof_short=`cat conftestval`
247f5006 10514else
a0b9e27f
MB
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 rm -fr conftest*
10518 ac_cv_sizeof_short=0
247f5006 10519fi
a0b9e27f 10520rm -fr conftest*
247f5006
VZ
10521fi
10522
247f5006 10523fi
a0b9e27f
MB
10524echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10525cat >> confdefs.h <<EOF
10526#define SIZEOF_SHORT $ac_cv_sizeof_short
10527EOF
247f5006
VZ
10528
10529
a0b9e27f 10530echo $ac_n "checking size of void *""... $ac_c" 1>&6
82d43113 10531echo "configure:10532: checking size of void *" >&5
a0b9e27f
MB
10532if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10534else
10535 if test "$cross_compiling" = yes; then
10536 ac_cv_sizeof_void_p=4
247f5006 10537else
a0b9e27f 10538 cat > conftest.$ac_ext <<EOF
82d43113 10539#line 10540 "configure"
247f5006 10540#include "confdefs.h"
247f5006 10541#include <stdio.h>
a0b9e27f 10542main()
247f5006 10543{
a0b9e27f
MB
10544 FILE *f=fopen("conftestval", "w");
10545 if (!f) exit(1);
10546 fprintf(f, "%d\n", sizeof(void *));
10547 exit(0);
5c6fa7d2 10548}
a0b9e27f 10549EOF
82d43113 10550if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10551then
10552 ac_cv_sizeof_void_p=`cat conftestval`
10553else
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 rm -fr conftest*
10557 ac_cv_sizeof_void_p=0
10558fi
10559rm -fr conftest*
10560fi
8284b0c5 10561
247f5006 10562fi
a0b9e27f
MB
10563echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10564cat >> confdefs.h <<EOF
10565#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10566EOF
247f5006 10567
247f5006 10568
a0b9e27f 10569echo $ac_n "checking size of int""... $ac_c" 1>&6
82d43113 10570echo "configure:10571: checking size of int" >&5
a0b9e27f
MB
10571if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10573else
a0b9e27f
MB
10574 if test "$cross_compiling" = yes; then
10575 ac_cv_sizeof_int=4
10576else
10577 cat > conftest.$ac_ext <<EOF
82d43113 10578#line 10579 "configure"
247f5006 10579#include "confdefs.h"
a0b9e27f 10580#include <stdio.h>
a0b9e27f 10581main()
247f5006 10582{
a0b9e27f
MB
10583 FILE *f=fopen("conftestval", "w");
10584 if (!f) exit(1);
10585 fprintf(f, "%d\n", sizeof(int));
10586 exit(0);
247f5006 10587}
a0b9e27f 10588EOF
82d43113 10589if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10590then
10591 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10592else
a0b9e27f
MB
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 rm -fr conftest*
10596 ac_cv_sizeof_int=0
21d1c967 10597fi
a0b9e27f 10598rm -fr conftest*
698dcdb6 10599fi
4f14bcd8 10600
21d1c967 10601fi
a0b9e27f
MB
10602echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10603cat >> confdefs.h <<EOF
10604#define SIZEOF_INT $ac_cv_sizeof_int
10605EOF
4f14bcd8 10606
5c6fa7d2 10607
a0b9e27f 10608echo $ac_n "checking size of long""... $ac_c" 1>&6
82d43113 10609echo "configure:10610: checking size of long" >&5
a0b9e27f
MB
10610if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10612else
247f5006 10613 if test "$cross_compiling" = yes; then
a0b9e27f 10614 ac_cv_sizeof_long=4
247f5006 10615else
a0b9e27f 10616 cat > conftest.$ac_ext <<EOF
82d43113 10617#line 10618 "configure"
247f5006 10618#include "confdefs.h"
a0b9e27f 10619#include <stdio.h>
a0b9e27f 10620main()
247f5006 10621{
a0b9e27f
MB
10622 FILE *f=fopen("conftestval", "w");
10623 if (!f) exit(1);
10624 fprintf(f, "%d\n", sizeof(long));
10625 exit(0);
247f5006 10626}
a0b9e27f 10627EOF
82d43113 10628if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10629then
10630 ac_cv_sizeof_long=`cat conftestval`
247f5006 10631else
a0b9e27f
MB
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -fr conftest*
10635 ac_cv_sizeof_long=0
247f5006 10636fi
a0b9e27f 10637rm -fr conftest*
247f5006 10638fi
247f5006 10639
5c6fa7d2 10640fi
a0b9e27f
MB
10641echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10642cat >> confdefs.h <<EOF
10643#define SIZEOF_LONG $ac_cv_sizeof_long
10644EOF
247f5006 10645
a0b9e27f
MB
10646
10647
10648case "${host}" in
10649 arm-*-linux* )
10650 echo $ac_n "checking size of long long""... $ac_c" 1>&6
82d43113 10651echo "configure:10652: checking size of long long" >&5
a0b9e27f
MB
10652if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10653 echo $ac_n "(cached) $ac_c" 1>&6
10654else
10655 if test "$cross_compiling" = yes; then
10656 ac_cv_sizeof_long_long=8
10657else
10658 cat > conftest.$ac_ext <<EOF
82d43113 10659#line 10660 "configure"
247f5006 10660#include "confdefs.h"
a0b9e27f 10661#include <stdio.h>
a0b9e27f 10662main()
247f5006 10663{
a0b9e27f
MB
10664 FILE *f=fopen("conftestval", "w");
10665 if (!f) exit(1);
10666 fprintf(f, "%d\n", sizeof(long long));
10667 exit(0);
247f5006 10668}
a0b9e27f 10669EOF
82d43113 10670if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10671then
10672 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10673else
a0b9e27f
MB
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -fr conftest*
10677 ac_cv_sizeof_long_long=0
5c6fa7d2 10678fi
a0b9e27f 10679rm -fr conftest*
5c6fa7d2 10680fi
8284b0c5 10681
a0b9e27f
MB
10682fi
10683echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10684cat >> confdefs.h <<EOF
10685#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10686EOF
10687
10688
10689 ;;
4f57cf11 10690 *-hp-hpux* )
a0b9e27f 10691 echo $ac_n "checking size of long long""... $ac_c" 1>&6
82d43113 10692echo "configure:10693: checking size of long long" >&5
a0b9e27f
MB
10693if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10695else
10696 if test "$cross_compiling" = yes; then
a0b9e27f 10697 ac_cv_sizeof_long_long=0
8284b0c5 10698else
a0b9e27f 10699 cat > conftest.$ac_ext <<EOF
82d43113 10700#line 10701 "configure"
8284b0c5
MB
10701#include "confdefs.h"
10702#include <stdio.h>
a0b9e27f 10703main()
8284b0c5 10704{
a0b9e27f
MB
10705 FILE *f=fopen("conftestval", "w");
10706 if (!f) exit(1);
10707 fprintf(f, "%d\n", sizeof(long long));
10708 exit(0);
8284b0c5 10709}
a0b9e27f 10710EOF
82d43113 10711if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10712then
10713 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10714else
a0b9e27f
MB
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10717 rm -fr conftest*
5c6fa7d2 10718 ac_cv_sizeof_long_long=0
52127426 10719fi
a0b9e27f
MB
10720rm -fr conftest*
10721fi
10722
4f57cf11
GD
10723fi
10724echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10725cat >> confdefs.h <<EOF
10726#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10727EOF
10728
10729
10730 if test "$ac_cv_sizeof_long_long" != "0"; then
10731 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10732 fi
10733 ;;
10734 * )
10735 echo $ac_n "checking size of long long""... $ac_c" 1>&6
82d43113 10736echo "configure:10737: checking size of long long" >&5
4f57cf11
GD
10737if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10739else
10740 if test "$cross_compiling" = yes; then
10741 ac_cv_sizeof_long_long=0
10742else
10743 cat > conftest.$ac_ext <<EOF
82d43113 10744#line 10745 "configure"
4f57cf11
GD
10745#include "confdefs.h"
10746#include <stdio.h>
10747main()
10748{
10749 FILE *f=fopen("conftestval", "w");
10750 if (!f) exit(1);
10751 fprintf(f, "%d\n", sizeof(long long));
10752 exit(0);
10753}
10754EOF
82d43113 10755if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10756then
10757 ac_cv_sizeof_long_long=`cat conftestval`
10758else
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 rm -fr conftest*
10762 ac_cv_sizeof_long_long=0
10763fi
10764rm -fr conftest*
10765fi
10766
7b4a847f 10767fi
a0b9e27f
MB
10768echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10769cat >> confdefs.h <<EOF
21d1c967 10770#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10771EOF
9e691f46 10772
8284b0c5 10773
21d1c967
GD
10774esac
10775
a0b9e27f 10776echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
82d43113 10777echo "configure:10778: checking size of wchar_t" >&5
a0b9e27f
MB
10778if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10780else
a0b9e27f 10781
21d1c967 10782 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10783
10784 case "${host}" in
10785 *-pc-msdosdjgpp )
10786 wx_cv_sizeof_wchar_t=0
10787 ;;
10788 * )
10789 wx_cv_sizeof_wchar_t=4
10790 ;;
10791 esac
10792
a0b9e27f 10793
6f72b082 10794else
a0b9e27f 10795 cat > conftest.$ac_ext <<EOF
82d43113 10796#line 10797 "configure"
6f72b082 10797#include "confdefs.h"
21d1c967 10798
2b5f62a0
VZ
10799 /* DJGPP only has fake wchar_t: */
10800 #ifdef __DJGPP__
10801 # error "fake wchar_t"
10802 #endif
21d1c967
GD
10803 #ifdef HAVE_WCHAR_H
10804 # ifdef __CYGWIN__
10805 # include <stddef.h>
10806 # endif
10807 # include <wchar.h>
10808 #endif
10809 #ifdef HAVE_STDLIB_H
10810 # include <stdlib.h>
10811 #endif
10812 #include <stdio.h>
10813 int main()
10814 {
10815 FILE *f=fopen("conftestval", "w");
10816 if (!f) exit(1);
10817 fprintf(f, "%i", sizeof(wchar_t));
10818 exit(0);
10819 }
a0b9e27f
MB
10820
10821EOF
82d43113 10822if { (eval echo configure:10823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10823then
21d1c967 10824 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10825else
a0b9e27f
MB
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 rm -fr conftest*
10829 wx_cv_sizeof_wchar_t=0
6f72b082 10830fi
a0b9e27f 10831rm -fr conftest*
6f72b082 10832fi
6f72b082 10833
a0b9e27f 10834
3f345b47
VZ
10835fi
10836
a0b9e27f
MB
10837echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10838
10839cat >> confdefs.h <<EOF
21d1c967 10840#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10841EOF
90dd450c 10842
8284b0c5 10843
21d1c967
GD
10844# Check whether --enable-largefile or --disable-largefile was given.
10845if test "${enable_largefile+set}" = set; then
10846 enableval="$enable_largefile"
a0b9e27f
MB
10847 :
10848fi
3f345b47 10849
21d1c967
GD
10850if test "$enable_largefile" != no; then
10851 wx_largefile=no
a0b9e27f
MB
10852
10853 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
82d43113 10854echo "configure:10855: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10855if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10856 echo $ac_n "(cached) $ac_c" 1>&6
10857else
10858
10859 cat > conftest.$ac_ext <<EOF
82d43113 10860#line 10861 "configure"
90dd450c 10861#include "confdefs.h"
21d1c967
GD
10862#define _FILE_OFFSET_BITS 64
10863 #include <sys/types.h>
a0b9e27f 10864int main() {
21d1c967
GD
10865typedef struct {
10866 unsigned int field: sizeof(off_t) == 8;
10867} wxlf;
10868
a0b9e27f
MB
10869; return 0; }
10870EOF
82d43113 10871if { (eval echo configure:10872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10872 rm -rf conftest*
21d1c967 10873 ac_cv_sys_file_offset_bits=64
f6bcfd97 10874else
a0b9e27f
MB
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10877 rm -rf conftest*
10878 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10879fi
a0b9e27f
MB
10880rm -f conftest*
10881
10882
247f5006 10883fi
a0b9e27f
MB
10884
10885echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10886
10887 if test "$ac_cv_sys_file_offset_bits" != no; then
10888 wx_largefile=yes
a0b9e27f 10889 cat >> confdefs.h <<EOF
21d1c967 10890#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10891EOF
21d1c967
GD
10892
10893 fi
10894
10895 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10896
10897 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
82d43113 10898echo "configure:10899: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10899if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901else
10902
10903 cat > conftest.$ac_ext <<EOF
82d43113 10904#line 10905 "configure"
f6bcfd97 10905#include "confdefs.h"
21d1c967
GD
10906#define _LARGE_FILES 1
10907 #include <sys/types.h>
a0b9e27f 10908int main() {
21d1c967
GD
10909typedef struct {
10910 unsigned int field: sizeof(off_t) == 8;
10911} wxlf;
10912
a0b9e27f
MB
10913; return 0; }
10914EOF
82d43113 10915if { (eval echo configure:10916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10916 rm -rf conftest*
21d1c967 10917 ac_cv_sys_large_files=1
f6bcfd97 10918else
a0b9e27f
MB
10919 echo "configure: failed program was:" >&5
10920 cat conftest.$ac_ext >&5
10921 rm -rf conftest*
10922 ac_cv_sys_large_files=no
5c6fa7d2 10923fi
a0b9e27f
MB
10924rm -f conftest*
10925
10926
247f5006 10927fi
a0b9e27f
MB
10928
10929echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10930
21d1c967
GD
10931 if test "$ac_cv_sys_large_files" != no; then
10932 wx_largefile=yes
a0b9e27f 10933 cat >> confdefs.h <<EOF
21d1c967 10934#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10935EOF
90dd450c 10936
90dd450c
VZ
10937 fi
10938
90dd450c 10939 fi
90dd450c 10940
a0b9e27f 10941 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
82d43113 10942echo "configure:10943: checking if large file support is available" >&5
21d1c967 10943 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10944 cat >> confdefs.h <<\EOF
21d1c967 10945#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10946EOF
90dd450c 10947
90dd450c 10948 fi
a0b9e27f 10949 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10950fi
90dd450c 10951
8284b0c5 10952
f02444d0 10953if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10954 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10955 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10956 else
e26c13cf 10957 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10958 fi
e26c13cf 10959 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10960fi
10961
a0b9e27f 10962echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
82d43113 10963echo "configure:10964: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10964if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10966else
21d1c967
GD
10967 ac_cv_c_bigendian=unknown
10968# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10969cat > conftest.$ac_ext <<EOF
82d43113 10970#line 10971 "configure"
90dd450c 10971#include "confdefs.h"
21d1c967
GD
10972#include <sys/types.h>
10973#include <sys/param.h>
a0b9e27f 10974int main() {
21d1c967
GD
10975
10976#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10977 bogus endian macros
10978#endif
a0b9e27f
MB
10979; return 0; }
10980EOF
82d43113 10981if { (eval echo configure:10982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10982 rm -rf conftest*
21d1c967 10983 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10984cat > conftest.$ac_ext <<EOF
82d43113 10985#line 10986 "configure"
90dd450c 10986#include "confdefs.h"
21d1c967
GD
10987#include <sys/types.h>
10988#include <sys/param.h>
a0b9e27f 10989int main() {
21d1c967
GD
10990
10991#if BYTE_ORDER != BIG_ENDIAN
10992 not big endian
10993#endif
a0b9e27f
MB
10994; return 0; }
10995EOF
82d43113 10996if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10997 rm -rf conftest*
21d1c967 10998 ac_cv_c_bigendian=yes
3f345b47 10999else
a0b9e27f
MB
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 rm -rf conftest*
11003 ac_cv_c_bigendian=no
3f345b47 11004fi
a0b9e27f 11005rm -f conftest*
3f345b47 11006else
a0b9e27f
MB
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
3f345b47 11009fi
a0b9e27f 11010rm -f conftest*
21d1c967
GD
11011if test $ac_cv_c_bigendian = unknown; then
11012if test "$cross_compiling" = yes; then
11013 ac_cv_c_bigendian=unknown
10f2d63a 11014else
a0b9e27f 11015 cat > conftest.$ac_ext <<EOF
82d43113 11016#line 11017 "configure"
90dd450c 11017#include "confdefs.h"
21d1c967
GD
11018main () {
11019 /* Are we little or big endian? From Harbison&Steele. */
11020 union
11021 {
11022 long l;
11023 char c[sizeof (long)];
11024 } u;
11025 u.l = 1;
11026 exit (u.c[sizeof (long) - 1] == 1);
11027}
a0b9e27f 11028EOF
82d43113 11029if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 11030then
21d1c967 11031 ac_cv_c_bigendian=no
3f345b47 11032else
a0b9e27f
MB
11033 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11035 rm -fr conftest*
11036 ac_cv_c_bigendian=yes
247f5006 11037fi
a0b9e27f 11038rm -fr conftest*
247f5006 11039fi
a0b9e27f 11040
3f345b47 11041fi
8168de4c 11042fi
a0b9e27f
MB
11043
11044echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 11045if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 11046 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
11047fi
11048if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11049 cat >> confdefs.h <<\EOF
247f5006 11050#define WORDS_BIGENDIAN 1
a0b9e27f 11051EOF
247f5006
VZ
11052
11053fi
11054
11055
a0b9e27f 11056echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
82d43113 11057echo "configure:11058: checking how to run the C++ preprocessor" >&5
247f5006 11058if test -z "$CXXCPP"; then
a0b9e27f
MB
11059if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11061else
a0b9e27f
MB
11062 ac_ext=C
11063# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11064ac_cpp='$CXXCPP $CPPFLAGS'
11065ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11066ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11067cross_compiling=$ac_cv_prog_cxx_cross
11068 CXXCPP="${CXX-g++} -E"
11069 cat > conftest.$ac_ext <<EOF
82d43113 11070#line 11071 "configure"
5c6fa7d2 11071#include "confdefs.h"
a0b9e27f
MB
11072#include <stdlib.h>
11073EOF
11074ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 11075{ (eval echo configure:11076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11076ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11077if test -z "$ac_err"; then
21d1c967 11078 :
698dcdb6 11079else
a0b9e27f
MB
11080 echo "$ac_err" >&5
11081 echo "configure: failed program was:" >&5
698dcdb6 11082 cat conftest.$ac_ext >&5
a0b9e27f
MB
11083 rm -rf conftest*
11084 CXXCPP=/lib/cpp
247f5006 11085fi
a0b9e27f
MB
11086rm -f conftest*
11087 ac_cv_prog_CXXCPP="$CXXCPP"
11088ac_ext=C
11089# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11090ac_cpp='$CXXCPP $CPPFLAGS'
11091ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11092ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11093cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11094fi
90dd450c 11095fi
a0b9e27f
MB
11096CXXCPP="$ac_cv_prog_CXXCPP"
11097echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11098
1725144d 11099
21d1c967 11100 if test "$cross_compiling" = "yes"; then
a0b9e27f 11101 cat >> confdefs.h <<\EOF
21d1c967 11102#define wxUSE_IOSTREAMH 1
a0b9e27f 11103EOF
ab9b9eab 11104
21d1c967 11105 else
a0b9e27f
MB
11106
11107 ac_ext=C
11108# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11109ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11110ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11111ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11112cross_compiling=$ac_cv_prog_cxx_cross
52127426 11113
247f5006 11114
a0b9e27f 11115 for ac_hdr in iostream
21d1c967 11116do
a0b9e27f
MB
11117ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11118echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 11119echo "configure:11120: checking for $ac_hdr" >&5
a0b9e27f
MB
11120if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11121 echo $ac_n "(cached) $ac_c" 1>&6
11122else
11123 cat > conftest.$ac_ext <<EOF
82d43113 11124#line 11125 "configure"
ab9b9eab 11125#include "confdefs.h"
a0b9e27f
MB
11126#include <$ac_hdr>
11127EOF
11128ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 11129{ (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11130ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11131if test -z "$ac_err"; then
11132 rm -rf conftest*
11133 eval "ac_cv_header_$ac_safe=yes"
11134else
11135 echo "$ac_err" >&5
11136 echo "configure: failed program was:" >&5
ab9b9eab 11137 cat conftest.$ac_ext >&5
a0b9e27f
MB
11138 rm -rf conftest*
11139 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11140fi
a0b9e27f 11141rm -f conftest*
90dd450c 11142fi
a0b9e27f
MB
11143if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11144 echo "$ac_t""yes" 1>&6
11145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11146 cat >> confdefs.h <<EOF
11147#define $ac_tr_hdr 1
11148EOF
11149
11150else
11151 echo "$ac_t""no" 1>&6
90dd450c 11152fi
21d1c967 11153done
10f2d63a 11154
8284b0c5 11155
21d1c967
GD
11156 if test "$ac_cv_header_iostream" = "yes" ; then
11157 :
11158 else
a0b9e27f 11159 cat >> confdefs.h <<\EOF
21d1c967 11160#define wxUSE_IOSTREAMH 1
a0b9e27f 11161EOF
788deba1 11162
90dd450c 11163 fi
ab9b9eab 11164
21d1c967 11165 ac_ext=c
a0b9e27f 11166# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11167ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11168ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11169ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11170cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11171
21d1c967 11172 fi
ab9b9eab 11173
52127426 11174
8284b0c5 11175
a0b9e27f 11176 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
82d43113 11177echo "configure:11178: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11178if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11180else
a0b9e27f
MB
11181
11182
11183 ac_ext=C
11184# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11185ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11186ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11187ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11188cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11189
8284b0c5 11190
a0b9e27f 11191 cat > conftest.$ac_ext <<EOF
82d43113 11192#line 11193 "configure"
ab9b9eab 11193#include "confdefs.h"
21d1c967 11194
a0b9e27f
MB
11195
11196int main() {
21d1c967
GD
11197
11198 bool b = true;
11199
11200 return 0;
a0b9e27f
MB
11201
11202; return 0; }
11203EOF
82d43113 11204if { (eval echo configure:11205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11205 rm -rf conftest*
11206
21d1c967 11207 wx_cv_cpp_bool=yes
a0b9e27f 11208
698dcdb6 11209else
a0b9e27f
MB
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213
21d1c967 11214 wx_cv_cpp_bool=no
a0b9e27f
MB
11215
11216
698dcdb6 11217fi
a0b9e27f 11218rm -f conftest*
21d1c967
GD
11219
11220 ac_ext=c
a0b9e27f 11221# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11222ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11223ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11224ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11225cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11226
a0b9e27f 11227
247f5006 11228fi
a0b9e27f
MB
11229
11230echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11231
11232 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11233 cat >> confdefs.h <<\EOF
21d1c967 11234#define HAVE_BOOL 1
a0b9e27f 11235EOF
ab9b9eab 11236
21d1c967
GD
11237 fi
11238
52127426 11239
8284b0c5 11240
a0b9e27f 11241 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
82d43113 11242echo "configure:11243: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11243if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11245else
a0b9e27f
MB
11246
11247
11248 ac_ext=C
11249# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11250ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11251ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11252ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11253cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11254
8284b0c5 11255
a0b9e27f 11256 cat > conftest.$ac_ext <<EOF
82d43113 11257#line 11258 "configure"
986ecc86
VZ
11258#include "confdefs.h"
11259
11260 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11261
11262int main() {
986ecc86
VZ
11263
11264 return 0;
a0b9e27f
MB
11265
11266; return 0; }
11267EOF
82d43113 11268if { (eval echo configure:11269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11269 rm -rf conftest*
11270
11271 cat > conftest.$ac_ext <<EOF
82d43113 11272#line 11273 "configure"
986ecc86
VZ
11273#include "confdefs.h"
11274
11275 class Foo { public: explicit Foo(int) {} };
11276 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11277
11278int main() {
986ecc86
VZ
11279
11280 TakeFoo(17);
11281 return 0;
a0b9e27f
MB
11282
11283; return 0; }
11284EOF
82d43113 11285if { (eval echo configure:11286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11286 rm -rf conftest*
986ecc86
VZ
11287 wx_cv_explicit=no
11288else
a0b9e27f
MB
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11291 rm -rf conftest*
11292 wx_cv_explicit=yes
11293
986ecc86 11294fi
a0b9e27f
MB
11295rm -f conftest*
11296
986ecc86 11297else
a0b9e27f
MB
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 wx_cv_explicit=no
11302
986ecc86 11303fi
a0b9e27f 11304rm -f conftest*
986ecc86
VZ
11305
11306 ac_ext=c
a0b9e27f 11307# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11308ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11309ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11310ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11311cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11312
a0b9e27f 11313
247f5006 11314fi
a0b9e27f
MB
11315
11316echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11317
11318 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11319 cat >> confdefs.h <<\EOF
986ecc86 11320#define HAVE_EXPLICIT 1
a0b9e27f 11321EOF
986ecc86
VZ
11322
11323 fi
11324
8284b0c5
MB
11325
11326
21d1c967
GD
11327SEARCH_INCLUDE="\
11328 /usr/local/include \
11329 \
11330 /usr/Motif-1.2/include \
11331 /usr/Motif-2.1/include \
11332 \
11333 /usr/include/Motif1.2 \
11334 /opt/xpm/include/X11 \
11335 /opt/GBxpm/include/ \
11336 /opt/GBxpm/X11/include/ \
11337 \
11338 /usr/Motif1.2/include \
11339 /usr/dt/include \
11340 /usr/openwin/include \
11341 \
11342 /usr/include/Xm \
11343 \
11344 /usr/X11R6/include \
11345 /usr/X11R6.4/include \
11346 /usr/X11R5/include \
11347 /usr/X11R4/include \
11348 \
11349 /usr/include/X11R6 \
11350 /usr/include/X11R5 \
11351 /usr/include/X11R4 \
11352 \
11353 /usr/local/X11R6/include \
11354 /usr/local/X11R5/include \
11355 /usr/local/X11R4/include \
11356 \
11357 /usr/local/include/X11R6 \
11358 /usr/local/include/X11R5 \
11359 /usr/local/include/X11R4 \
11360 \
11361 /usr/X11/include \
11362 /usr/include/X11 \
11363 /usr/local/X11/include \
11364 /usr/local/include/X11 \
11365 \
11366 /usr/X386/include \
11367 /usr/x386/include \
11368 /usr/XFree86/include/X11 \
11369 \
11370 X:/XFree86/include \
11371 X:/XFree86/include/X11 \
11372 \
11373 /usr/include/gtk \
11374 /usr/local/include/gtk \
11375 /usr/include/glib \
11376 /usr/local/include/glib \
11377 \
11378 /usr/include/qt \
11379 /usr/local/include/qt \
11380 \
11381 /usr/include/windows \
11382 /usr/include/wine \
11383 /usr/local/include/wine \
11384 \
11385 /usr/unsupported/include \
11386 /usr/athena/include \
11387 /usr/local/x11r5/include \
11388 /usr/lpp/Xamples/include \
11389 \
2b5f62a0 11390 /usr/openwin/share/include"
21d1c967
GD
11391
11392SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11393
8284b0c5 11394
a0b9e27f 11395cat > confcache <<\EOF
21d1c967
GD
11396# This file is a shell script that caches the results of configure
11397# tests run on this system so they can be shared between configure
a0b9e27f
MB
11398# scripts and configure runs. It is not useful on other systems.
11399# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11400#
a0b9e27f
MB
11401# By default, configure uses ./config.cache as the cache file,
11402# creating it if it does not exist already. You can give configure
11403# the --cache-file=FILE option to use a different cache file; that is
11404# what configure does when it calls configure scripts in
11405# subdirectories, so they share the cache.
11406# Giving --cache-file=/dev/null disables caching, for debugging configure.
11407# config.status only pays attention to the cache file if you give it the
11408# --recheck option to rerun configure.
21d1c967 11409#
a0b9e27f 11410EOF
21d1c967
GD
11411# The following way of writing the cache mishandles newlines in values,
11412# but we know of no workaround that is simple, portable, and efficient.
11413# So, don't put newlines in cache variables' values.
11414# Ultrix sh set writes to stderr and can't be redirected directly,
11415# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11416(set) 2>&1 |
11417 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11418 *ac_space=\ *)
11419 # `set' does not quote correctly, so add quotes (double-quote substitution
11420 # turns \\\\ into \\, and sed turns \\ into \).
11421 sed -n \
11422 -e "s/'/'\\\\''/g" \
11423 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11424 ;;
11425 *)
11426 # `set' quotes correctly as required by POSIX, so do not add quotes.
11427 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11428 ;;
11429 esac >> confcache
11430if cmp -s $cache_file confcache; then
11431 :
11432else
21d1c967 11433 if test -w $cache_file; then
a0b9e27f
MB
11434 echo "updating cache $cache_file"
11435 cat confcache > $cache_file
21d1c967
GD
11436 else
11437 echo "not updating unwritable cache $cache_file"
11438 fi
ab9b9eab 11439fi
21d1c967 11440rm -f confcache
ab9b9eab 11441
247f5006 11442
a0b9e27f
MB
11443if test "$USE_LINUX" = 1; then
11444 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
82d43113 11445echo "configure:11446: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11446if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11448else
11449
11450 cat > conftest.$ac_ext <<EOF
82d43113 11451#line 11452 "configure"
ab9b9eab 11452#include "confdefs.h"
21d1c967 11453#include <features.h>
a0b9e27f 11454int main() {
ab9b9eab 11455
21d1c967
GD
11456 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11457 #error not glibc2.1
11458 #endif
a0b9e27f
MB
11459
11460; return 0; }
11461EOF
82d43113 11462if { (eval echo configure:11463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11463 rm -rf conftest*
11464
21d1c967 11465 wx_cv_lib_glibc21=yes
a0b9e27f 11466
698dcdb6 11467else
a0b9e27f
MB
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 rm -rf conftest*
11471
21d1c967 11472 wx_cv_lib_glibc21=no
a0b9e27f
MB
11473
11474
5c6fa7d2 11475fi
a0b9e27f
MB
11476rm -f conftest*
11477
247f5006 11478fi
a0b9e27f
MB
11479
11480echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11481 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11482 cat >> confdefs.h <<\EOF
21d1c967 11483#define wxHAVE_GLIBC2 1
a0b9e27f 11484EOF
1e487827 11485
90dd450c 11486 fi
ab9b9eab
VZ
11487fi
11488
5c0a20c3
VZ
11489if test "x$wx_cv_lib_glibc21" = "xyes"; then
11490 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11491 cat >> confdefs.h <<\EOF
5c0a20c3 11492#define _GNU_SOURCE 1
a0b9e27f 11493EOF
5c0a20c3
VZ
11494
11495 fi
11496fi
11497
8284b0c5
MB
11498
11499
21d1c967
GD
11500REGEX_INCLUDE=
11501if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11502 cat >> confdefs.h <<\EOF
21d1c967 11503#define wxUSE_REGEX 1
a0b9e27f 11504EOF
698dcdb6 11505
8284b0c5 11506
21d1c967 11507 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11508 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11509echo $ac_n "checking for regex.h""... $ac_c" 1>&6
82d43113 11510echo "configure:11511: checking for regex.h" >&5
a0b9e27f
MB
11511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11513else
11514 cat > conftest.$ac_ext <<EOF
82d43113 11515#line 11516 "configure"
247f5006
VZ
11516#include "confdefs.h"
11517#include <regex.h>
a0b9e27f
MB
11518EOF
11519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 11520{ (eval echo configure:11521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11522if test -z "$ac_err"; then
11523 rm -rf conftest*
11524 eval "ac_cv_header_$ac_safe=yes"
11525else
11526 echo "$ac_err" >&5
11527 echo "configure: failed program was:" >&5
21d1c967 11528 cat conftest.$ac_ext >&5
a0b9e27f
MB
11529 rm -rf conftest*
11530 eval "ac_cv_header_$ac_safe=no"
21d1c967 11531fi
a0b9e27f 11532rm -f conftest*
698dcdb6 11533fi
a0b9e27f
MB
11534if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 for ac_func in regcomp
21d1c967 11537do
a0b9e27f 11538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 11539echo "configure:11540: checking for $ac_func" >&5
a0b9e27f
MB
11540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11542else
a0b9e27f 11543 cat > conftest.$ac_ext <<EOF
82d43113 11544#line 11545 "configure"
a0b9e27f
MB
11545#include "confdefs.h"
11546/* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func(); below. */
21d1c967
GD
11548#include <assert.h>
11549/* Override any gcc2 internal prototype to avoid an error. */
11550/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11551 builtin and then its argument prototype would still apply. */
11552char $ac_func();
11553
11554int main() {
11555
21d1c967
GD
11556/* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11560choke me
11561#else
a0b9e27f 11562$ac_func();
21d1c967 11563#endif
90dd450c 11564
a0b9e27f
MB
11565; return 0; }
11566EOF
82d43113 11567if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11568 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=yes"
11570else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -rf conftest*
11574 eval "ac_cv_func_$ac_func=no"
11575fi
11576rm -f conftest*
11577fi
5c6fa7d2 11578
a0b9e27f
MB
11579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11582 cat >> confdefs.h <<EOF
11583#define $ac_tr_func 1
11584EOF
11585
11586else
11587 echo "$ac_t""no" 1>&6
698dcdb6 11588fi
21d1c967
GD
11589done
11590
a0b9e27f
MB
11591else
11592 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11593fi
11594
8284b0c5 11595
21d1c967
GD
11596 if test "x$ac_cv_func_regcomp" != "xyes"; then
11597 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11598 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11599 else
a0b9e27f 11600 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11601 wxUSE_REGEX=builtin
11602 fi
11603 else
11604 wxUSE_REGEX=sys
11605 fi
ab9b9eab 11606 fi
90dd450c 11607
21d1c967
GD
11608 if test "$wxUSE_REGEX" = "builtin" ; then
11609 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11610 fi
21d1c967 11611fi
90dd450c 11612
8284b0c5 11613
21d1c967
GD
11614ZLIB_INCLUDE=
11615ZLIB_LINK=
11616if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11617 cat >> confdefs.h <<\EOF
21d1c967 11618#define wxUSE_ZLIB 1
a0b9e27f 11619EOF
21d1c967 11620
8284b0c5 11621
21d1c967 11622 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11623 if test "$USE_DARWIN" = 1; then
11624 system_zlib_h_ok="yes"
11625 else
11626 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
82d43113 11627echo "configure:11628: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11628if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
11630else
11631 if test "$cross_compiling" = yes; then
89e6bf6d 11632 unset ac_cv_header_zlib_h
d775acfa 11633
d643b80e
VZ
11634else
11635 cat > conftest.$ac_ext <<EOF
82d43113 11636#line 11637 "configure"
d643b80e
VZ
11637#include "confdefs.h"
11638
d775acfa
VZ
11639 #include <zlib.h>
11640 #include <stdio.h>
d643b80e 11641
d775acfa
VZ
11642
11643 int main()
11644 {
11645 FILE *f=fopen("conftestval", "w");
11646 if (!f) exit(1);
11647 fprintf(f, "%s",
11648 ZLIB_VERSION[0] == '1' &&
11649 (ZLIB_VERSION[2] > '1' ||
11650 (ZLIB_VERSION[2] == '1' &&
11651 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11652 exit(0);
11653 }
11654
d643b80e 11655
d643b80e 11656EOF
82d43113 11657if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11658then
11659 ac_cv_header_zlib_h=`cat conftestval`
11660else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -fr conftest*
11664 ac_cv_header_zlib_h=no
11665fi
11666rm -fr conftest*
11667fi
11668
d775acfa 11669
d643b80e
VZ
11670fi
11671
11672echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11673 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11674echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
82d43113 11675echo "configure:11676: checking for zlib.h" >&5
89e6bf6d
VZ
11676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11678else
11679 cat > conftest.$ac_ext <<EOF
82d43113 11680#line 11681 "configure"
89e6bf6d
VZ
11681#include "confdefs.h"
11682#include <zlib.h>
11683EOF
11684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 11685{ (eval echo configure:11686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11687if test -z "$ac_err"; then
11688 rm -rf conftest*
11689 eval "ac_cv_header_$ac_safe=yes"
11690else
11691 echo "$ac_err" >&5
11692 echo "configure: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 rm -rf conftest*
11695 eval "ac_cv_header_$ac_safe=no"
11696fi
11697rm -f conftest*
11698fi
11699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 :
11702else
11703 echo "$ac_t""no" 1>&6
11704fi
11705
d643b80e 11706
d775acfa
VZ
11707 system_zlib_h_ok=$ac_cv_header_zlib_h
11708 fi
11709
11710 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11711 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
82d43113 11712echo "configure:11713: checking for deflate in -lz" >&5
a0b9e27f
MB
11713ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11716else
a0b9e27f 11717 ac_save_LIBS="$LIBS"
21d1c967 11718LIBS="-lz $LIBS"
a0b9e27f 11719cat > conftest.$ac_ext <<EOF
82d43113 11720#line 11721 "configure"
ab9b9eab 11721#include "confdefs.h"
21d1c967
GD
11722/* Override any gcc2 internal prototype to avoid an error. */
11723/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11724 builtin and then its argument prototype would still apply. */
11725char deflate();
11726
11727int main() {
11728deflate()
11729; return 0; }
11730EOF
82d43113 11731if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11732 rm -rf conftest*
11733 eval "ac_cv_lib_$ac_lib_var=yes"
11734else
11735 echo "configure: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 rm -rf conftest*
11738 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11739fi
a0b9e27f
MB
11740rm -f conftest*
11741LIBS="$ac_save_LIBS"
698dcdb6 11742
698dcdb6 11743fi
a0b9e27f
MB
11744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11745 echo "$ac_t""yes" 1>&6
11746 ZLIB_LINK=" -lz"
11747else
11748 echo "$ac_t""no" 1>&6
11749fi
698dcdb6 11750
d643b80e 11751 fi
247f5006 11752
21d1c967
GD
11753 if test "x$ZLIB_LINK" = "x" ; then
11754 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11755 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11756 else
d643b80e 11757 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11758 wxUSE_ZLIB=builtin
11759 fi
11760 else
11761 wxUSE_ZLIB=sys
11762 fi
11763 fi
11764
11765 if test "$wxUSE_ZLIB" = "builtin" ; then
11766 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11767 fi
ab9b9eab
VZ
11768fi
11769
8284b0c5 11770
21d1c967
GD
11771PNG_INCLUDE=
11772PNG_LINK=
11773if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11774 cat >> confdefs.h <<\EOF
21d1c967 11775#define wxUSE_LIBPNG 1
a0b9e27f 11776EOF
90dd450c 11777
8284b0c5 11778
21d1c967 11779 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11780 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11781 wxUSE_LIBPNG=sys
11782 fi
90dd450c 11783
21d1c967 11784 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11785 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11786 wxUSE_LIBPNG=builtin
11787 fi
11788
11789 if test "$wxUSE_MGL" != 1 ; then
11790 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11791 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
82d43113 11792echo "configure:11793: checking for png.h > 0.90" >&5
5d3f766d
VZ
11793if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795else
11796 if test "$cross_compiling" = yes; then
89e6bf6d 11797 unset ac_cv_header_png_h
5d3f766d
VZ
11798
11799else
11800 cat > conftest.$ac_ext <<EOF
82d43113 11801#line 11802 "configure"
5d3f766d
VZ
11802#include "confdefs.h"
11803
11804 #include <png.h>
11805 #include <stdio.h>
11806
11807 int main()
11808 {
11809 FILE *f=fopen("conftestval", "w");
11810 if (!f) exit(1);
11811 fprintf(f, "%s",
11812 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11813 exit(0);
11814 }
11815
11816EOF
82d43113 11817if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11818then
11819 ac_cv_header_png_h=`cat conftestval`
11820else
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 rm -fr conftest*
11824 ac_cv_header_png_h=no
11825fi
11826rm -fr conftest*
11827fi
11828
11829
11830fi
11831
11832echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11833 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11834echo $ac_n "checking for png.h""... $ac_c" 1>&6
82d43113 11835echo "configure:11836: checking for png.h" >&5
89e6bf6d
VZ
11836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11837 echo $ac_n "(cached) $ac_c" 1>&6
11838else
11839 cat > conftest.$ac_ext <<EOF
82d43113 11840#line 11841 "configure"
89e6bf6d
VZ
11841#include "confdefs.h"
11842#include <png.h>
11843EOF
11844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 11845{ (eval echo configure:11846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11847if test -z "$ac_err"; then
11848 rm -rf conftest*
11849 eval "ac_cv_header_$ac_safe=yes"
11850else
11851 echo "$ac_err" >&5
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855 eval "ac_cv_header_$ac_safe=no"
11856fi
11857rm -f conftest*
11858fi
11859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11860 echo "$ac_t""yes" 1>&6
11861 :
11862else
11863 echo "$ac_t""no" 1>&6
11864fi
11865
5d3f766d
VZ
11866
11867 if test "$ac_cv_header_png_h" = "yes"; then
11868 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
82d43113 11869echo "configure:11870: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11870ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11872 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11873else
a0b9e27f 11874 ac_save_LIBS="$LIBS"
21d1c967 11875LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11876cat > conftest.$ac_ext <<EOF
82d43113 11877#line 11878 "configure"
90dd450c 11878#include "confdefs.h"
21d1c967
GD
11879/* Override any gcc2 internal prototype to avoid an error. */
11880/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11881 builtin and then its argument prototype would still apply. */
11882char png_check_sig();
90dd450c 11883
a0b9e27f
MB
11884int main() {
11885png_check_sig()
11886; return 0; }
11887EOF
82d43113 11888if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11889 rm -rf conftest*
11890 eval "ac_cv_lib_$ac_lib_var=yes"
11891else
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11894 rm -rf conftest*
11895 eval "ac_cv_lib_$ac_lib_var=no"
11896fi
11897rm -f conftest*
11898LIBS="$ac_save_LIBS"
247f5006 11899
90dd450c 11900fi
a0b9e27f
MB
11901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11902 echo "$ac_t""yes" 1>&6
11903 PNG_LINK=" -lpng"
11904else
11905 echo "$ac_t""no" 1>&6
11906fi
90dd450c 11907
5d3f766d 11908 fi
247f5006 11909
21d1c967
GD
11910 if test "x$PNG_LINK" = "x" ; then
11911 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11912 { 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 11913 else
0c98a14e 11914 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11915 wxUSE_LIBPNG=builtin
11916 fi
11917 else
2b5f62a0 11918 wxUSE_LIBPNG=sys
21d1c967
GD
11919 fi
11920 fi
11921 fi
90dd450c 11922
21d1c967
GD
11923 if test "$wxUSE_LIBPNG" = "builtin" ; then
11924 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11925 fi
90dd450c 11926
21d1c967 11927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11928fi
11929
8284b0c5 11930
21d1c967
GD
11931JPEG_INCLUDE=
11932JPEG_LINK=
11933if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11934 cat >> confdefs.h <<\EOF
21d1c967 11935#define wxUSE_LIBJPEG 1
a0b9e27f 11936EOF
90dd450c 11937
8284b0c5 11938
21d1c967 11939 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11940 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11941 wxUSE_LIBJPEG=sys
11942 fi
90dd450c 11943
21d1c967
GD
11944 if test "$wxUSE_MGL" != 1 ; then
11945 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11946 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
82d43113 11947echo "configure:11948: checking for jpeglib.h" >&5
a0b9e27f
MB
11948 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11950else
a0b9e27f 11951 cat > conftest.$ac_ext <<EOF
82d43113 11952#line 11953 "configure"
21d1c967 11953#include "confdefs.h"
90dd450c 11954
21d1c967
GD
11955 #undef HAVE_STDLIB_H
11956 #include <stdio.h>
11957 #include <jpeglib.h>
a0b9e27f
MB
11958
11959int main() {
90dd450c 11960
a0b9e27f
MB
11961
11962; return 0; }
11963EOF
82d43113 11964if { (eval echo configure:11965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11965 rm -rf conftest*
21d1c967 11966 ac_cv_header_jpeglib_h=yes
90dd450c 11967else
a0b9e27f
MB
11968 echo "configure: failed program was:" >&5
11969 cat conftest.$ac_ext >&5
11970 rm -rf conftest*
11971 ac_cv_header_jpeglib_h=no
11972
90dd450c 11973fi
a0b9e27f
MB
11974rm -f conftest*
11975
90dd450c
VZ
11976fi
11977
a0b9e27f 11978 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11979
21d1c967 11980 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11981 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
82d43113 11982echo "configure:11983: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11983ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11986else
a0b9e27f 11987 ac_save_LIBS="$LIBS"
21d1c967 11988LIBS="-ljpeg $LIBS"
a0b9e27f 11989cat > conftest.$ac_ext <<EOF
82d43113 11990#line 11991 "configure"
21d1c967
GD
11991#include "confdefs.h"
11992/* Override any gcc2 internal prototype to avoid an error. */
11993/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11994 builtin and then its argument prototype would still apply. */
11995char jpeg_read_header();
11996
11997int main() {
11998jpeg_read_header()
11999; return 0; }
12000EOF
82d43113 12001if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12002 rm -rf conftest*
12003 eval "ac_cv_lib_$ac_lib_var=yes"
12004else
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 rm -rf conftest*
12008 eval "ac_cv_lib_$ac_lib_var=no"
12009fi
12010rm -f conftest*
12011LIBS="$ac_save_LIBS"
12012
12013fi
12014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12015 echo "$ac_t""yes" 1>&6
21d1c967 12016 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12017else
12018 echo "$ac_t""no" 1>&6
90dd450c
VZ
12019fi
12020
21d1c967 12021 fi
90dd450c 12022
21d1c967
GD
12023 if test "x$JPEG_LINK" = "x" ; then
12024 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12025 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12026 else
a0b9e27f 12027 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12028 wxUSE_LIBJPEG=builtin
12029 fi
12030 else
12031 wxUSE_LIBJPEG=sys
12032 fi
12033 fi
12034 fi
90dd450c 12035
21d1c967
GD
12036 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12037 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12038 fi
12039fi
90dd450c 12040
8284b0c5 12041
21d1c967
GD
12042TIFF_INCLUDE=
12043TIFF_LINK=
2b5f62a0 12044TIFF_PREREQ_LINKS=-lm
21d1c967 12045if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12046 cat >> confdefs.h <<\EOF
21d1c967 12047#define wxUSE_LIBTIFF 1
a0b9e27f 12048EOF
21d1c967 12049
8284b0c5 12050
21d1c967 12051 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12052 if test "$wxUSE_LIBJPEG" = "sys"; then
12053 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12054 fi
12055 if test "$wxUSE_ZLIB" = "sys"; then
12056 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12057 fi
a0b9e27f
MB
12058 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12059echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
82d43113 12060echo "configure:12061: checking for tiffio.h" >&5
a0b9e27f
MB
12061if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12063else
12064 cat > conftest.$ac_ext <<EOF
82d43113 12065#line 12066 "configure"
247f5006
VZ
12066#include "confdefs.h"
12067#include <tiffio.h>
a0b9e27f
MB
12068EOF
12069ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 12070{ (eval echo configure:12071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12071ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12072if test -z "$ac_err"; then
12073 rm -rf conftest*
12074 eval "ac_cv_header_$ac_safe=yes"
12075else
12076 echo "$ac_err" >&5
12077 echo "configure: failed program was:" >&5
21d1c967 12078 cat conftest.$ac_ext >&5
a0b9e27f
MB
12079 rm -rf conftest*
12080 eval "ac_cv_header_$ac_safe=no"
21d1c967 12081fi
a0b9e27f 12082rm -f conftest*
21d1c967 12083fi
a0b9e27f
MB
12084if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12085 echo "$ac_t""yes" 1>&6
12086 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
82d43113 12087echo "configure:12088: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12088ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12091else
a0b9e27f 12092 ac_save_LIBS="$LIBS"
2b5f62a0 12093LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12094cat > conftest.$ac_ext <<EOF
82d43113 12095#line 12096 "configure"
ab9b9eab
VZ
12096#include "confdefs.h"
12097/* Override any gcc2 internal prototype to avoid an error. */
12098/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12099 builtin and then its argument prototype would still apply. */
12100char TIFFError();
ab9b9eab 12101
a0b9e27f
MB
12102int main() {
12103TIFFError()
12104; return 0; }
12105EOF
82d43113 12106if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12107 rm -rf conftest*
12108 eval "ac_cv_lib_$ac_lib_var=yes"
12109else
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 rm -rf conftest*
12113 eval "ac_cv_lib_$ac_lib_var=no"
12114fi
12115rm -f conftest*
12116LIBS="$ac_save_LIBS"
247f5006 12117
21d1c967 12118fi
a0b9e27f
MB
12119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12120 echo "$ac_t""yes" 1>&6
12121 TIFF_LINK=" -ltiff"
12122else
12123 echo "$ac_t""no" 1>&6
12124fi
cd6d6d5b 12125
a0b9e27f
MB
12126
12127else
12128 echo "$ac_t""no" 1>&6
12129fi
8284b0c5 12130
247f5006 12131
21d1c967
GD
12132 if test "x$TIFF_LINK" = "x" ; then
12133 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12134 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12135 else
a0b9e27f 12136 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12137 wxUSE_LIBTIFF=builtin
d8356fa3 12138 fi
d8356fa3 12139 else
21d1c967 12140 wxUSE_LIBTIFF=sys
d8356fa3 12141 fi
21d1c967 12142 fi
d8356fa3 12143
21d1c967
GD
12144 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12145 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12146 fi
21d1c967 12147fi
10f2d63a 12148
8284b0c5 12149
21d1c967 12150AFMINSTALL=
2b5f62a0 12151WIN32INSTALL=
90dd450c 12152
21d1c967
GD
12153TOOLKIT=
12154TOOLKIT_INCLUDE=
12155WIDGET_SET=
12156
12157if test "$USE_WIN32" = 1 ; then
a0b9e27f 12158 for ac_hdr in w32api.h
21d1c967 12159do
a0b9e27f
MB
12160ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12161echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 12162echo "configure:12163: checking for $ac_hdr" >&5
a0b9e27f
MB
12163if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12165else
12166 cat > conftest.$ac_ext <<EOF
82d43113 12167#line 12168 "configure"
247f5006 12168#include "confdefs.h"
a0b9e27f
MB
12169#include <$ac_hdr>
12170EOF
12171ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 12172{ (eval echo configure:12173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12173ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12174if test -z "$ac_err"; then
12175 rm -rf conftest*
12176 eval "ac_cv_header_$ac_safe=yes"
12177else
12178 echo "$ac_err" >&5
12179 echo "configure: failed program was:" >&5
f79bd02d 12180 cat conftest.$ac_ext >&5
a0b9e27f
MB
12181 rm -rf conftest*
12182 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12183fi
a0b9e27f 12184rm -f conftest*
21d1c967 12185fi
a0b9e27f
MB
12186if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12187 echo "$ac_t""yes" 1>&6
12188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12189 cat >> confdefs.h <<EOF
12190#define $ac_tr_hdr 1
12191EOF
12192
12193else
12194 echo "$ac_t""no" 1>&6
21d1c967
GD
12195fi
12196done
f79bd02d 12197
a0b9e27f
MB
12198 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12199echo $ac_n "checking for windows.h""... $ac_c" 1>&6
82d43113 12200echo "configure:12201: checking for windows.h" >&5
a0b9e27f
MB
12201if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12203else
a0b9e27f 12204 cat > conftest.$ac_ext <<EOF
82d43113 12205#line 12206 "configure"
247f5006
VZ
12206#include "confdefs.h"
12207#include <windows.h>
a0b9e27f
MB
12208EOF
12209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 12210{ (eval echo configure:12211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12212if test -z "$ac_err"; then
12213 rm -rf conftest*
12214 eval "ac_cv_header_$ac_safe=yes"
12215else
12216 echo "$ac_err" >&5
12217 echo "configure: failed program was:" >&5
90dd450c 12218 cat conftest.$ac_ext >&5
a0b9e27f
MB
12219 rm -rf conftest*
12220 eval "ac_cv_header_$ac_safe=no"
90dd450c 12221fi
a0b9e27f 12222rm -f conftest*
90dd450c 12223fi
a0b9e27f
MB
12224if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
21d1c967 12226 :
90dd450c 12227else
a0b9e27f 12228 echo "$ac_t""no" 1>&6
21d1c967 12229
a0b9e27f
MB
12230 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12231
5c6fa7d2 12232fi
7b4a847f 12233
5c6fa7d2 12234
a0b9e27f 12235 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
82d43113 12236echo "configure:12237: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12237if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12238 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12239else
a0b9e27f
MB
12240
12241 cat > conftest.$ac_ext <<EOF
82d43113 12242#line 12243 "configure"
f79bd02d 12243#include "confdefs.h"
21d1c967 12244#include <w32api.h>
a0b9e27f 12245int main() {
f79bd02d 12246
21d1c967
GD
12247 #define wxCHECK_W32API_VERSION( major, minor ) \
12248 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12249 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12250 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12251
12252 #if !wxCHECK_W32API_VERSION(1,1)
12253 #error You need w32api 1.1 or newer
12254 #endif
a0b9e27f
MB
12255
12256; return 0; }
12257EOF
82d43113 12258if { (eval echo configure:12259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12259 rm -rf conftest*
12260
21d1c967 12261 wx_cv_w32api_win32_ie=yes
a0b9e27f 12262
f79bd02d 12263else
a0b9e27f
MB
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12266 rm -rf conftest*
12267
21d1c967 12268 wx_cv_w32api_win32_ie=no
a0b9e27f 12269
5c6fa7d2 12270fi
a0b9e27f
MB
12271rm -f conftest*
12272
247f5006 12273fi
a0b9e27f
MB
12274
12275echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12276 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12277 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12278 fi
f79bd02d 12279
21d1c967
GD
12280 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12281
12282 case "${host}" in
12283 *-*-cygwin* )
12284 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12285 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12286 esac
f79bd02d 12287
21d1c967
GD
12288 if test "$wxUSE_ODBC" = "yes" ; then
12289 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12290 fi
f79bd02d 12291
21d1c967
GD
12292 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12293 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12294
12295 WIN32INSTALL=win32install
f79bd02d 12296fi
f79bd02d 12297
b2fee376 12298if test "$USE_DARWIN" = 1; then
50bcbd3d 12299 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12300 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12301 else
12302 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12303 fi
12304fi
12305
21d1c967
GD
12306if test "$wxUSE_GUI" = "yes"; then
12307 USE_GUI=1
f79bd02d 12308
21d1c967 12309 GUI_TK_LIBRARY=
f79bd02d 12310
21d1c967
GD
12311 WXGTK12=
12312 WXGTK127=
12313 WXGTK20=
f79bd02d 12314
21d1c967
GD
12315 if test "$wxUSE_MSW" = 1 ; then
12316 TOOLKIT=MSW
12317 GUIDIST=MSW_DIST
f79bd02d 12318
89e6bf6d 12319 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12320 fi
12321
21d1c967 12322 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12323 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
82d43113 12324echo "configure:12325: checking for GTK+ version" >&5
21d1c967
GD
12325
12326 gtk_version_cached=1
a0b9e27f
MB
12327 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12329else
a0b9e27f 12330
21d1c967 12331 gtk_version_cached=0
a0b9e27f 12332 echo "$ac_t""" 1>&6
f79bd02d 12333
21d1c967
GD
12334 GTK_MODULES=
12335 if test "$wxUSE_THREADS" = "yes"; then
12336 GTK_MODULES=gthread
12337 fi
f79bd02d 12338
2b5f62a0 12339 wx_cv_lib_gtk=
21d1c967
GD
12340 if test "x$wxUSE_GTK2" = "xyes"; then
12341 # Check whether --enable-gtktest or --disable-gtktest was given.
12342if test "${enable_gtktest+set}" = set; then
12343 enableval="$enable_gtktest"
a0b9e27f 12344 :
f79bd02d 12345else
21d1c967 12346 enable_gtktest=yes
a0b9e27f
MB
12347fi
12348
f79bd02d 12349
21d1c967
GD
12350 pkg_config_args=gtk+-2.0
12351 for module in . $GTK_MODULES
12352 do
12353 case "$module" in
a0b9e27f 12354 gthread)
21d1c967
GD
12355 pkg_config_args="$pkg_config_args gthread-2.0"
12356 ;;
12357 esac
12358 done
12359
12360 no_gtk=""
f79bd02d 12361
21d1c967
GD
12362 # Extract the first word of "pkg-config", so it can be a program name with args.
12363set dummy pkg-config; ac_word=$2
a0b9e27f 12364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 12365echo "configure:12366: checking for $ac_word" >&5
a0b9e27f
MB
12366if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12368else
a0b9e27f
MB
12369 case "$PKG_CONFIG" in
12370 /*)
21d1c967
GD
12371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12372 ;;
a0b9e27f
MB
12373 ?:/*)
12374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12375 ;;
21d1c967 12376 *)
a0b9e27f
MB
12377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12378 ac_dummy="$PATH"
12379 for ac_dir in $ac_dummy; do
12380 test -z "$ac_dir" && ac_dir=.
12381 if test -f $ac_dir/$ac_word; then
12382 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12383 break
12384 fi
12385 done
12386 IFS="$ac_save_ifs"
21d1c967
GD
12387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12388 ;;
12389esac
f79bd02d 12390fi
a0b9e27f 12391PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12392if test -n "$PKG_CONFIG"; then
a0b9e27f 12393 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12394else
a0b9e27f 12395 echo "$ac_t""no" 1>&6
f79bd02d
JS
12396fi
12397
8284b0c5 12398
21d1c967
GD
12399 if test x$PKG_CONFIG != xno ; then
12400 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12401 :
12402 else
12403 echo *** pkg-config too old; version 0.7 or better required.
12404 no_gtk=yes
12405 PKG_CONFIG=no
12406 fi
12407 else
12408 no_gtk=yes
12409 fi
f79bd02d 12410
21d1c967 12411 min_gtk_version=2.0.0
a0b9e27f 12412 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
82d43113 12413echo "configure:12414: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12414
21d1c967
GD
12415 if test x$PKG_CONFIG != xno ; then
12416 ## don't try to run the test against uninstalled libtool libs
12417 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12418 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12419 enable_gtktest=no
12420 fi
f79bd02d 12421
21d1c967
GD
12422 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12423 :
12424 else
12425 no_gtk=yes
12426 fi
12427 fi
f79bd02d 12428
21d1c967
GD
12429 if test x"$no_gtk" = x ; then
12430 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12431 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12432 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12434 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12436 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12438 if test "x$enable_gtktest" = "xyes" ; then
12439 ac_save_CFLAGS="$CFLAGS"
12440 ac_save_LIBS="$LIBS"
12441 CFLAGS="$CFLAGS $GTK_CFLAGS"
12442 LIBS="$GTK_LIBS $LIBS"
12443 rm -f conf.gtktest
12444 if test "$cross_compiling" = yes; then
12445 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12446else
a0b9e27f 12447 cat > conftest.$ac_ext <<EOF
82d43113 12448#line 12449 "configure"
f79bd02d 12449#include "confdefs.h"
f79bd02d 12450
21d1c967
GD
12451#include <gtk/gtk.h>
12452#include <stdio.h>
12453#include <stdlib.h>
f79bd02d 12454
a0b9e27f 12455int
21d1c967
GD
12456main ()
12457{
12458 int major, minor, micro;
12459 char *tmp_version;
f79bd02d 12460
21d1c967 12461 system ("touch conf.gtktest");
f79bd02d 12462
21d1c967
GD
12463 /* HP/UX 9 (%@#!) writes to sscanf strings */
12464 tmp_version = g_strdup("$min_gtk_version");
12465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12466 printf("%s, bad version string\n", "$min_gtk_version");
12467 exit(1);
12468 }
f79bd02d 12469
21d1c967
GD
12470 if ((gtk_major_version != $gtk_config_major_version) ||
12471 (gtk_minor_version != $gtk_config_minor_version) ||
12472 (gtk_micro_version != $gtk_config_micro_version))
12473 {
a0b9e27f 12474 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12476 gtk_major_version, gtk_minor_version, gtk_micro_version);
12477 printf ("*** was found! If pkg-config was correct, then it is best\n");
12478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12481 printf("*** required on your system.\n");
12482 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12483 printf("*** to point to the correct configuration files\n");
a0b9e27f 12484 }
21d1c967
GD
12485 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12486 (gtk_minor_version != GTK_MINOR_VERSION) ||
12487 (gtk_micro_version != GTK_MICRO_VERSION))
12488 {
12489 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12490 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12491 printf("*** library (version %d.%d.%d)\n",
12492 gtk_major_version, gtk_minor_version, gtk_micro_version);
12493 }
12494 else
12495 {
12496 if ((gtk_major_version > major) ||
12497 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12498 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12499 {
12500 return 0;
12501 }
12502 else
12503 {
12504 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12505 gtk_major_version, gtk_minor_version, gtk_micro_version);
12506 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12507 major, minor, micro);
12508 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12509 printf("***\n");
12510 printf("*** If you have already installed a sufficiently new version, this error\n");
12511 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12512 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12513 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12514 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12515 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12516 printf("*** so that the correct libraries are found at run-time))\n");
12517 }
12518 }
12519 return 1;
12520}
f79bd02d 12521
a0b9e27f 12522EOF
82d43113 12523if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12524then
21d1c967 12525 :
f79bd02d 12526else
a0b9e27f
MB
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 rm -fr conftest*
12530 no_gtk=yes
f79bd02d 12531fi
a0b9e27f 12532rm -fr conftest*
f79bd02d 12533fi
a0b9e27f 12534
21d1c967
GD
12535 CFLAGS="$ac_save_CFLAGS"
12536 LIBS="$ac_save_LIBS"
12537 fi
12538 fi
12539 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12540 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12541 wx_cv_lib_gtk=2.0
21d1c967 12542 else
a0b9e27f 12543 echo "$ac_t""no" 1>&6
21d1c967
GD
12544 if test "$PKG_CONFIG" = "no" ; then
12545 echo "*** A new enough version of pkg-config was not found."
12546 echo "*** See http://pkgconfig.sourceforge.net"
12547 else
12548 if test -f conf.gtktest ; then
12549 :
12550 else
12551 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12552 ac_save_CFLAGS="$CFLAGS"
12553 ac_save_LIBS="$LIBS"
21d1c967
GD
12554 CFLAGS="$CFLAGS $GTK_CFLAGS"
12555 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12556 cat > conftest.$ac_ext <<EOF
82d43113 12557#line 12558 "configure"
f79bd02d 12558#include "confdefs.h"
21d1c967
GD
12559
12560#include <gtk/gtk.h>
12561#include <stdio.h>
f79bd02d 12562
a0b9e27f
MB
12563int main() {
12564 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12565; return 0; }
12566EOF
82d43113 12567if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12568 rm -rf conftest*
21d1c967
GD
12569 echo "*** The test program compiled, but did not run. This usually means"
12570 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12571 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12574 echo "*** is required on your system"
12575 echo "***"
12576 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12578else
a0b9e27f
MB
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -rf conftest*
12582 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12583 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12584fi
a0b9e27f 12585rm -f conftest*
21d1c967
GD
12586 CFLAGS="$ac_save_CFLAGS"
12587 LIBS="$ac_save_LIBS"
12588 fi
12589 fi
12590 GTK_CFLAGS=""
12591 GTK_LIBS=""
12592 :
12593 fi
a0b9e27f
MB
12594
12595
21d1c967 12596 rm -f conf.gtktest
f79bd02d 12597
2b5f62a0 12598 else
a0b9e27f 12599 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12600if test "${with_gtk_prefix+set}" = set; then
12601 withval="$with_gtk_prefix"
12602 gtk_config_prefix="$withval"
12603else
12604 gtk_config_prefix=""
a0b9e27f 12605fi
f79bd02d 12606
21d1c967
GD
12607# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12608if test "${with_gtk_exec_prefix+set}" = set; then
12609 withval="$with_gtk_exec_prefix"
12610 gtk_config_exec_prefix="$withval"
12611else
12612 gtk_config_exec_prefix=""
a0b9e27f
MB
12613fi
12614
21d1c967
GD
12615# Check whether --enable-gtktest or --disable-gtktest was given.
12616if test "${enable_gtktest+set}" = set; then
12617 enableval="$enable_gtktest"
a0b9e27f 12618 :
21d1c967
GD
12619else
12620 enable_gtktest=yes
a0b9e27f
MB
12621fi
12622
21d1c967
GD
12623
12624 for module in . $GTK_MODULES
12625 do
12626 case "$module" in
a0b9e27f 12627 gthread)
21d1c967
GD
12628 gtk_config_args="$gtk_config_args gthread"
12629 ;;
12630 esac
12631 done
12632
12633 if test x$gtk_config_exec_prefix != x ; then
12634 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12635 if test x${GTK_CONFIG+set} != xset ; then
12636 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12637 fi
12638 fi
12639 if test x$gtk_config_prefix != x ; then
12640 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12641 if test x${GTK_CONFIG+set} != xset ; then
12642 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12643 fi
12644 fi
12645
12646 # Extract the first word of "gtk-config", so it can be a program name with args.
12647set dummy gtk-config; ac_word=$2
a0b9e27f 12648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 12649echo "configure:12650: checking for $ac_word" >&5
a0b9e27f
MB
12650if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12652else
a0b9e27f
MB
12653 case "$GTK_CONFIG" in
12654 /*)
21d1c967
GD
12655 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12656 ;;
a0b9e27f
MB
12657 ?:/*)
12658 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12659 ;;
21d1c967 12660 *)
a0b9e27f
MB
12661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12662 ac_dummy="$PATH"
12663 for ac_dir in $ac_dummy; do
12664 test -z "$ac_dir" && ac_dir=.
12665 if test -f $ac_dir/$ac_word; then
12666 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12667 break
12668 fi
12669 done
12670 IFS="$ac_save_ifs"
21d1c967
GD
12671 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12672 ;;
12673esac
12674fi
a0b9e27f 12675GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12676if test -n "$GTK_CONFIG"; then
a0b9e27f 12677 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12678else
a0b9e27f 12679 echo "$ac_t""no" 1>&6
21d1c967
GD
12680fi
12681
12682 min_gtk_version=1.2.7
a0b9e27f 12683 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
82d43113 12684echo "configure:12685: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12685 no_gtk=""
12686 if test "$GTK_CONFIG" = "no" ; then
12687 no_gtk=yes
12688 else
12689 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12690 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12691 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12693 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12695 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12696 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12697 if test "x$enable_gtktest" = "xyes" ; then
12698 ac_save_CFLAGS="$CFLAGS"
12699 ac_save_LIBS="$LIBS"
12700 CFLAGS="$CFLAGS $GTK_CFLAGS"
12701 LIBS="$GTK_LIBS $LIBS"
12702 rm -f conf.gtktest
12703 if test "$cross_compiling" = yes; then
12704 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12705else
a0b9e27f 12706 cat > conftest.$ac_ext <<EOF
82d43113 12707#line 12708 "configure"
f79bd02d
JS
12708#include "confdefs.h"
12709
21d1c967
GD
12710#include <gtk/gtk.h>
12711#include <stdio.h>
12712#include <stdlib.h>
f79bd02d 12713
a0b9e27f 12714int
21d1c967
GD
12715main ()
12716{
12717 int major, minor, micro;
12718 char *tmp_version;
12719
12720 system ("touch conf.gtktest");
12721
12722 /* HP/UX 9 (%@#!) writes to sscanf strings */
12723 tmp_version = g_strdup("$min_gtk_version");
12724 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12725 printf("%s, bad version string\n", "$min_gtk_version");
12726 exit(1);
12727 }
90dd450c 12728
21d1c967
GD
12729 if ((gtk_major_version != $gtk_config_major_version) ||
12730 (gtk_minor_version != $gtk_config_minor_version) ||
12731 (gtk_micro_version != $gtk_config_micro_version))
12732 {
a0b9e27f 12733 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12734 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12735 gtk_major_version, gtk_minor_version, gtk_micro_version);
12736 printf ("*** was found! If gtk-config was correct, then it is best\n");
12737 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12738 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12739 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12740 printf("*** required on your system.\n");
12741 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12742 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12743 printf("*** before re-running configure\n");
a0b9e27f 12744 }
21d1c967
GD
12745#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12746 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12747 (gtk_minor_version != GTK_MINOR_VERSION) ||
12748 (gtk_micro_version != GTK_MICRO_VERSION))
12749 {
12750 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12751 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12752 printf("*** library (version %d.%d.%d)\n",
12753 gtk_major_version, gtk_minor_version, gtk_micro_version);
12754 }
12755#endif /* defined (GTK_MAJOR_VERSION) ... */
12756 else
12757 {
12758 if ((gtk_major_version > major) ||
12759 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12760 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12761 {
12762 return 0;
12763 }
12764 else
12765 {
12766 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12767 gtk_major_version, gtk_minor_version, gtk_micro_version);
12768 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12769 major, minor, micro);
12770 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12771 printf("***\n");
12772 printf("*** If you have already installed a sufficiently new version, this error\n");
12773 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12774 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12775 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12776 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12777 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12778 printf("*** so that the correct libraries are found at run-time))\n");
12779 }
12780 }
12781 return 1;
12782}
12783
a0b9e27f 12784EOF
82d43113 12785if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12786then
21d1c967
GD
12787 :
12788else
a0b9e27f
MB
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -fr conftest*
12792 no_gtk=yes
21d1c967 12793fi
a0b9e27f 12794rm -fr conftest*
21d1c967 12795fi
a0b9e27f 12796
21d1c967
GD
12797 CFLAGS="$ac_save_CFLAGS"
12798 LIBS="$ac_save_LIBS"
12799 fi
12800 fi
12801 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12802 echo "$ac_t""yes" 1>&6
12803 wx_cv_lib_gtk=1.2.7
21d1c967 12804 else
a0b9e27f 12805 echo "$ac_t""no" 1>&6
21d1c967
GD
12806 if test "$GTK_CONFIG" = "no" ; then
12807 echo "*** The gtk-config script installed by GTK could not be found"
12808 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12809 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12810 echo "*** full path to gtk-config."
12811 else
12812 if test -f conf.gtktest ; then
12813 :
12814 else
12815 echo "*** Could not run GTK test program, checking why..."
12816 CFLAGS="$CFLAGS $GTK_CFLAGS"
12817 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12818 cat > conftest.$ac_ext <<EOF
82d43113 12819#line 12820 "configure"
21d1c967
GD
12820#include "confdefs.h"
12821
12822#include <gtk/gtk.h>
12823#include <stdio.h>
12824
a0b9e27f
MB
12825int main() {
12826 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12827; return 0; }
12828EOF
82d43113 12829if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12830 rm -rf conftest*
21d1c967
GD
12831 echo "*** The test program compiled, but did not run. This usually means"
12832 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12833 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12834 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12835 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12836 echo "*** is required on your system"
12837 echo "***"
12838 echo "*** If you have an old version installed, it is best to remove it, although"
12839 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12840 echo "***"
12841 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12842 echo "*** came with the system with the command"
12843 echo "***"
a0b9e27f 12844 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12845else
a0b9e27f
MB
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12850 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12851 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12852 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12853fi
a0b9e27f 12854rm -f conftest*
21d1c967
GD
12855 CFLAGS="$ac_save_CFLAGS"
12856 LIBS="$ac_save_LIBS"
12857 fi
12858 fi
12859 GTK_CFLAGS=""
12860 GTK_LIBS=""
12861 :
12862 fi
a0b9e27f
MB
12863
12864
21d1c967
GD
12865 rm -f conf.gtktest
12866
21d1c967 12867
2b5f62a0
VZ
12868 if test -z "$wx_cv_lib_gtk"; then
12869 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12870if test "${with_gtk_prefix+set}" = set; then
12871 withval="$with_gtk_prefix"
12872 gtk_config_prefix="$withval"
12873else
12874 gtk_config_prefix=""
a0b9e27f 12875fi
f79bd02d 12876
21d1c967
GD
12877# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12878if test "${with_gtk_exec_prefix+set}" = set; then
12879 withval="$with_gtk_exec_prefix"
12880 gtk_config_exec_prefix="$withval"
12881else
12882 gtk_config_exec_prefix=""
a0b9e27f
MB
12883fi
12884
21d1c967
GD
12885# Check whether --enable-gtktest or --disable-gtktest was given.
12886if test "${enable_gtktest+set}" = set; then
12887 enableval="$enable_gtktest"
a0b9e27f 12888 :
90dd450c 12889else
21d1c967 12890 enable_gtktest=yes
a0b9e27f
MB
12891fi
12892
21d1c967
GD
12893
12894 for module in . $GTK_MODULES
12895 do
12896 case "$module" in
a0b9e27f 12897 gthread)
21d1c967
GD
12898 gtk_config_args="$gtk_config_args gthread"
12899 ;;
12900 esac
12901 done
12902
12903 if test x$gtk_config_exec_prefix != x ; then
12904 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12905 if test x${GTK_CONFIG+set} != xset ; then
12906 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12907 fi
12908 fi
12909 if test x$gtk_config_prefix != x ; then
12910 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12911 if test x${GTK_CONFIG+set} != xset ; then
12912 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12913 fi
12914 fi
12915
12916 # Extract the first word of "gtk-config", so it can be a program name with args.
12917set dummy gtk-config; ac_word=$2
a0b9e27f 12918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 12919echo "configure:12920: checking for $ac_word" >&5
a0b9e27f
MB
12920if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12922else
a0b9e27f
MB
12923 case "$GTK_CONFIG" in
12924 /*)
21d1c967
GD
12925 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12926 ;;
a0b9e27f
MB
12927 ?:/*)
12928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12929 ;;
21d1c967 12930 *)
a0b9e27f
MB
12931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12932 ac_dummy="$PATH"
12933 for ac_dir in $ac_dummy; do
12934 test -z "$ac_dir" && ac_dir=.
12935 if test -f $ac_dir/$ac_word; then
12936 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12937 break
12938 fi
12939 done
12940 IFS="$ac_save_ifs"
21d1c967
GD
12941 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12942 ;;
12943esac
12944fi
a0b9e27f 12945GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12946if test -n "$GTK_CONFIG"; then
a0b9e27f 12947 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12948else
a0b9e27f 12949 echo "$ac_t""no" 1>&6
21d1c967
GD
12950fi
12951
12952 min_gtk_version=1.2.3
a0b9e27f 12953 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
82d43113 12954echo "configure:12955: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12955 no_gtk=""
12956 if test "$GTK_CONFIG" = "no" ; then
12957 no_gtk=yes
12958 else
12959 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12960 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12961 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12963 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12964 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12965 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12966 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12967 if test "x$enable_gtktest" = "xyes" ; then
12968 ac_save_CFLAGS="$CFLAGS"
12969 ac_save_LIBS="$LIBS"
12970 CFLAGS="$CFLAGS $GTK_CFLAGS"
12971 LIBS="$GTK_LIBS $LIBS"
12972 rm -f conf.gtktest
12973 if test "$cross_compiling" = yes; then
12974 echo $ac_n "cross compiling; assumed OK... $ac_c"
12975else
a0b9e27f 12976 cat > conftest.$ac_ext <<EOF
82d43113 12977#line 12978 "configure"
f79bd02d 12978#include "confdefs.h"
21d1c967
GD
12979
12980#include <gtk/gtk.h>
12981#include <stdio.h>
12982#include <stdlib.h>
12983
a0b9e27f 12984int
21d1c967
GD
12985main ()
12986{
12987 int major, minor, micro;
12988 char *tmp_version;
12989
12990 system ("touch conf.gtktest");
12991
12992 /* HP/UX 9 (%@#!) writes to sscanf strings */
12993 tmp_version = g_strdup("$min_gtk_version");
12994 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12995 printf("%s, bad version string\n", "$min_gtk_version");
12996 exit(1);
12997 }
12998
12999 if ((gtk_major_version != $gtk_config_major_version) ||
13000 (gtk_minor_version != $gtk_config_minor_version) ||
13001 (gtk_micro_version != $gtk_config_micro_version))
13002 {
a0b9e27f 13003 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13004 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13005 gtk_major_version, gtk_minor_version, gtk_micro_version);
13006 printf ("*** was found! If gtk-config was correct, then it is best\n");
13007 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13008 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13009 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13010 printf("*** required on your system.\n");
13011 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13012 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13013 printf("*** before re-running configure\n");
a0b9e27f 13014 }
21d1c967
GD
13015#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13016 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13017 (gtk_minor_version != GTK_MINOR_VERSION) ||
13018 (gtk_micro_version != GTK_MICRO_VERSION))
13019 {
13020 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13021 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13022 printf("*** library (version %d.%d.%d)\n",
13023 gtk_major_version, gtk_minor_version, gtk_micro_version);
13024 }
13025#endif /* defined (GTK_MAJOR_VERSION) ... */
13026 else
13027 {
13028 if ((gtk_major_version > major) ||
13029 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13030 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13031 {
13032 return 0;
13033 }
13034 else
13035 {
13036 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13037 gtk_major_version, gtk_minor_version, gtk_micro_version);
13038 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13039 major, minor, micro);
13040 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13041 printf("***\n");
13042 printf("*** If you have already installed a sufficiently new version, this error\n");
13043 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13044 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13045 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13046 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13047 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13048 printf("*** so that the correct libraries are found at run-time))\n");
13049 }
13050 }
13051 return 1;
13052}
13053
a0b9e27f 13054EOF
82d43113 13055if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13056then
21d1c967
GD
13057 :
13058else
a0b9e27f
MB
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -fr conftest*
13062 no_gtk=yes
21d1c967 13063fi
a0b9e27f 13064rm -fr conftest*
21d1c967 13065fi
a0b9e27f 13066
21d1c967
GD
13067 CFLAGS="$ac_save_CFLAGS"
13068 LIBS="$ac_save_LIBS"
13069 fi
13070 fi
13071 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13072 echo "$ac_t""yes" 1>&6
13073 wx_cv_lib_gtk=1.2.3
21d1c967 13074 else
a0b9e27f 13075 echo "$ac_t""no" 1>&6
21d1c967
GD
13076 if test "$GTK_CONFIG" = "no" ; then
13077 echo "*** The gtk-config script installed by GTK could not be found"
13078 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13079 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13080 echo "*** full path to gtk-config."
13081 else
13082 if test -f conf.gtktest ; then
13083 :
13084 else
13085 echo "*** Could not run GTK test program, checking why..."
13086 CFLAGS="$CFLAGS $GTK_CFLAGS"
13087 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13088 cat > conftest.$ac_ext <<EOF
82d43113 13089#line 13090 "configure"
21d1c967
GD
13090#include "confdefs.h"
13091
13092#include <gtk/gtk.h>
13093#include <stdio.h>
f79bd02d 13094
a0b9e27f
MB
13095int main() {
13096 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13097; return 0; }
13098EOF
82d43113 13099if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13100 rm -rf conftest*
21d1c967
GD
13101 echo "*** The test program compiled, but did not run. This usually means"
13102 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13103 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13104 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13105 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13106 echo "*** is required on your system"
13107 echo "***"
13108 echo "*** If you have an old version installed, it is best to remove it, although"
13109 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13110 echo "***"
13111 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13112 echo "*** came with the system with the command"
13113 echo "***"
a0b9e27f 13114 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13115else
a0b9e27f
MB
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13120 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13121 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13122 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13123fi
a0b9e27f 13124rm -f conftest*
21d1c967
GD
13125 CFLAGS="$ac_save_CFLAGS"
13126 LIBS="$ac_save_LIBS"
13127 fi
13128 fi
13129 GTK_CFLAGS=""
13130 GTK_LIBS=""
13131 :
13132 fi
a0b9e27f
MB
13133
13134
21d1c967 13135 rm -f conf.gtktest
f79bd02d 13136
2b5f62a0 13137 fi
21d1c967
GD
13138 fi
13139
13140 if test -z "$wx_cv_lib_gtk"; then
13141 wx_cv_lib_gtk=none
13142 else
13143 wx_cv_cflags_gtk=$GTK_CFLAGS
13144 wx_cv_libs_gtk=$GTK_LIBS
13145 fi
a0b9e27f
MB
13146
13147
5c6fa7d2 13148fi
52127426 13149
8284b0c5 13150
21d1c967 13151 if test "$gtk_version_cached" = 1; then
a0b9e27f 13152 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13153 fi
13154
13155 case "$wx_cv_lib_gtk" in
13156 2.0) WXGTK20=1
2b5f62a0 13157 TOOLKIT_VERSION=2
21d1c967
GD
13158 ;;
13159 1.2.7) WXGTK127=1
13160 WXGTK12=1
13161 ;;
13162 1.2.3) WXGTK12=1
13163 ;;
a0b9e27f 13164 *) { echo "configure: error:
247f5006
VZ
13165Please check that gtk-config is in path, the directory
13166where GTK+ libraries are installed (returned by
13167'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13168equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13169 " 1>&2; exit 1; }
21d1c967
GD
13170 ;;
13171 esac
13172
b13cd66e
VZ
13173 if test "$WXGTK20" = 1; then
13174 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13175
f09359cf
VS
13176 succeeded=no
13177
13178 if test -z "$PKG_CONFIG"; then
13179 # Extract the first word of "pkg-config", so it can be a program name with args.
13180set dummy pkg-config; ac_word=$2
a0b9e27f 13181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 13182echo "configure:13183: checking for $ac_word" >&5
a0b9e27f
MB
13183if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13185else
a0b9e27f
MB
13186 case "$PKG_CONFIG" in
13187 /*)
f09359cf
VS
13188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13189 ;;
a0b9e27f
MB
13190 ?:/*)
13191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13192 ;;
f09359cf 13193 *)
a0b9e27f
MB
13194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13195 ac_dummy="$PATH"
13196 for ac_dir in $ac_dummy; do
13197 test -z "$ac_dir" && ac_dir=.
13198 if test -f $ac_dir/$ac_word; then
13199 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13200 break
13201 fi
13202 done
13203 IFS="$ac_save_ifs"
f09359cf
VS
13204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13205 ;;
13206esac
13207fi
a0b9e27f 13208PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13209if test -n "$PKG_CONFIG"; then
a0b9e27f 13210 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13211else
a0b9e27f 13212 echo "$ac_t""no" 1>&6
f09359cf
VS
13213fi
13214
13215 fi
13216
13217 if test "$PKG_CONFIG" = "no" ; then
13218 echo "*** The pkg-config script could not be found. Make sure it is"
13219 echo "*** in your path, or set the PKG_CONFIG environment variable"
13220 echo "*** to the full path to pkg-config."
13221 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13222 else
13223 PKG_CONFIG_MIN_VERSION=0.9.0
13224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13225 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
82d43113 13226echo "configure:13227: checking for pangoft2" >&5
f09359cf
VS
13227
13228 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13229 echo "$ac_t""yes" 1>&6
f09359cf
VS
13230 succeeded=yes
13231
a0b9e27f 13232 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
82d43113 13233echo "configure:13234: checking PANGOFT2_CFLAGS" >&5
f09359cf 13234 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13235 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13236
a0b9e27f 13237 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
82d43113 13238echo "configure:13239: checking PANGOFT2_LIBS" >&5
f09359cf 13239 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13240 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13241 else
13242 PANGOFT2_CFLAGS=""
13243 PANGOFT2_LIBS=""
a0b9e27f 13244 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13245 ## do set a variable so people can do so.
13246 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13247
f09359cf
VS
13248 fi
13249
a0b9e27f
MB
13250
13251
f09359cf
VS
13252 else
13253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13255 fi
13256 fi
13257
13258 if test $succeeded = yes; then
a0b9e27f 13259
b13cd66e
VZ
13260 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13261 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13262
f09359cf 13263 else
a0b9e27f
MB
13264
13265 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13266 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13267
13268
f09359cf
VS
13269 fi
13270
b13cd66e 13271 fi
2b5f62a0
VZ
13272 else
13273 if test "$wxUSE_UNICODE" = "yes"; then
13274 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13275 wxUSE_UNICODE=no
13276 fi
13277 fi
13278
13279 if test "$USE_DARWIN" != 1; then
13280 for ac_func in poll
13281do
13282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 13283echo "configure:13284: checking for $ac_func" >&5
2b5f62a0
VZ
13284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
82d43113 13288#line 13289 "configure"
2b5f62a0
VZ
13289#include "confdefs.h"
13290/* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char $ac_func(); below. */
13292#include <assert.h>
13293/* Override any gcc2 internal prototype to avoid an error. */
13294/* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296char $ac_func();
13297
13298int main() {
13299
13300/* The GNU C library defines this for functions which it implements
13301 to always fail with ENOSYS. Some functions are actually named
13302 something starting with __ and the normal name is an alias. */
13303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13304choke me
13305#else
13306$ac_func();
13307#endif
13308
13309; return 0; }
13310EOF
82d43113 13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_func_$ac_func=no"
13319fi
13320rm -f conftest*
13321fi
13322
13323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13326 cat >> confdefs.h <<EOF
13327#define $ac_tr_func 1
13328EOF
13329
13330else
13331 echo "$ac_t""no" 1>&6
13332fi
13333done
13334
f09359cf
VS
13335 fi
13336
21d1c967
GD
13337 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13338 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13339
13340 AFMINSTALL=afminstall
13341 TOOLKIT=GTK
13342 GUIDIST=GTK_DIST
13343
a0b9e27f 13344 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
82d43113 13345echo "configure:13346: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13346ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13349else
a0b9e27f 13350 ac_save_LIBS="$LIBS"
21d1c967 13351LIBS="-lgdk $LIBS"
a0b9e27f 13352cat > conftest.$ac_ext <<EOF
82d43113 13353#line 13354 "configure"
90dd450c 13354#include "confdefs.h"
5c6fa7d2 13355/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13356/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13357 builtin and then its argument prototype would still apply. */
13358char gdk_im_open();
13359
13360int main() {
13361gdk_im_open()
13362; return 0; }
13363EOF
82d43113 13364if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13365 rm -rf conftest*
13366 eval "ac_cv_lib_$ac_lib_var=yes"
13367else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_lib_$ac_lib_var=no"
13372fi
13373rm -f conftest*
13374LIBS="$ac_save_LIBS"
13375
13376fi
13377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13379 cat >> confdefs.h <<\EOF
21d1c967 13380#define HAVE_XIM 1
a0b9e27f 13381EOF
21d1c967 13382
a0b9e27f
MB
13383else
13384 echo "$ac_t""no" 1>&6
90dd450c 13385fi
1e6feb95 13386
21d1c967 13387 fi
1e6feb95 13388
21d1c967 13389 if test "$wxUSE_MGL" = 1; then
63a76696 13390 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
82d43113 13391echo "configure:13392: checking for SciTech MGL library" >&5
21d1c967 13392 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13393 echo "$ac_t""not found" 1>&6
13394 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13395 else
a0b9e27f 13396 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13397 fi
13398
63a76696 13399 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
82d43113 13400echo "configure:13401: checking for libmgl location" >&5
21d1c967
GD
13401 case "${host}" in
13402 *-*-linux* )
63a76696
VS
13403 if test "x$wxUSE_SHARED" = xyes ; then
13404 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13405 else
13406 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13407 fi
21d1c967
GD
13408 ;;
13409 *-pc-msdosdjgpp )
63a76696 13410 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13411 ;;
13412 *)
a0b9e27f 13413 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13414 esac
1e6feb95 13415
21d1c967 13416 mgl_lib_type=""
63a76696
VS
13417 mgl_os=""
13418
13419 for mgl_os_i in $mgl_os_candidates ; do
13420 if test "x$mgl_os" = x ; then
13421 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13422 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13423 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13424 mgl_lib_type=debug
13425 mgl_os=$mgl_os_i
13426 fi
13427 fi
13428 if test "x$mgl_lib_type" = x ; then
13429 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13430 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13431 mgl_lib_type=release
13432 mgl_os=$mgl_os_i
13433 fi
13434 fi
21d1c967 13435 fi
63a76696 13436 done
2224580a 13437
63a76696
VS
13438 if test "x$mgl_os" = x ; then
13439 echo "$ac_t""not found" 1>&6
13440 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13441 fi
13442 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13443
1d1b75ac
VZ
13444 wxUSE_UNIVERSAL="yes"
13445
21d1c967
GD
13446 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13447 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13448
90dd450c 13449 AFMINSTALL=afminstall
21d1c967
GD
13450 TOOLKIT=MGL
13451 GUIDIST=MGL_DIST
13452 fi
dad6c0ea 13453
21d1c967 13454 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13455 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
82d43113 13456echo "configure:13457: checking for MicroWindows" >&5
21d1c967 13457 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13458 echo "$ac_t""not found" 1>&6
13459 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13460 else
a0b9e27f 13461 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13462 fi
f6bcfd97 13463
21d1c967 13464 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13465 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13466 else
a0b9e27f 13467 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13468 fi
0b2effe9 13469
21d1c967
GD
13470 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13471 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13472
1d1b75ac
VZ
13473 wxUSE_UNIVERSAL="yes"
13474
21d1c967
GD
13475 AFMINSTALL=afminstall
13476 TOOLKIT=MICROWIN
13477 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13478
13479 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13480 fi
f6bcfd97 13481
21d1c967 13482 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13483 # If we find X, set shell vars x_includes and x_libraries to the
13484# paths, otherwise set no_x=yes.
13485# Uses ac_ vars as temps to allow command line to override cache and checks.
13486# --without-x overrides everything else, but does not touch the cache.
13487echo $ac_n "checking for X""... $ac_c" 1>&6
82d43113 13488echo "configure:13489: checking for X" >&5
d8356fa3 13489
21d1c967
GD
13490# Check whether --with-x or --without-x was given.
13491if test "${with_x+set}" = set; then
13492 withval="$with_x"
a0b9e27f
MB
13493 :
13494fi
2224580a 13495
21d1c967
GD
13496# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13497if test "x$with_x" = xno; then
13498 # The user explicitly disabled X.
13499 have_x=disabled
13500else
13501 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13502 # Both variables are already set.
13503 have_x=yes
13504 else
a0b9e27f
MB
13505if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13506 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13507else
13508 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13509ac_x_includes=NO ac_x_libraries=NO
13510rm -fr conftestdir
13511if mkdir conftestdir; then
13512 cd conftestdir
21d1c967 13513 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13514 cat > Imakefile <<'EOF'
21d1c967
GD
13515acfindx:
13516 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13517EOF
21d1c967
GD
13518 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13520 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13522 for ac_extension in a so sl; do
13523 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13524 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13525 ac_im_usrlibdir=$ac_im_libdir; break
13526 fi
13527 done
13528 # Screen out bogus values from the imake configuration. They are
13529 # bogus both because they are the default anyway, and because
13530 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13531 case "$ac_im_incroot" in
21d1c967 13532 /usr/include) ;;
a0b9e27f 13533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13534 esac
a0b9e27f 13535 case "$ac_im_usrlibdir" in
21d1c967 13536 /usr/lib | /lib) ;;
a0b9e27f 13537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13538 esac
13539 fi
13540 cd ..
a0b9e27f 13541 rm -fr conftestdir
21d1c967 13542fi
10f2d63a 13543
a0b9e27f
MB
13544if test "$ac_x_includes" = NO; then
13545 # Guess where to find include files, by looking for this one X11 .h file.
13546 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13547
21d1c967 13548 # First, try using that file with no special directory specified.
a0b9e27f 13549cat > conftest.$ac_ext <<EOF
82d43113 13550#line 13551 "configure"
21d1c967 13551#include "confdefs.h"
a0b9e27f
MB
13552#include <$x_direct_test_include>
13553EOF
13554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 13555{ (eval echo configure:13556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13557if test -z "$ac_err"; then
13558 rm -rf conftest*
21d1c967
GD
13559 # We can compile using X headers with no special include directory.
13560ac_x_includes=
90dd450c 13561else
a0b9e27f
MB
13562 echo "$ac_err" >&5
13563 echo "configure: failed program was:" >&5
90dd450c 13564 cat conftest.$ac_ext >&5
a0b9e27f
MB
13565 rm -rf conftest*
13566 # Look for the header file in a standard set of common directories.
13567# Check X11 before X11Rn because it is often a symlink to the current release.
13568 for ac_dir in \
13569 /usr/X11/include \
13570 /usr/X11R6/include \
13571 /usr/X11R5/include \
13572 /usr/X11R4/include \
13573 \
13574 /usr/include/X11 \
13575 /usr/include/X11R6 \
13576 /usr/include/X11R5 \
13577 /usr/include/X11R4 \
13578 \
13579 /usr/local/X11/include \
13580 /usr/local/X11R6/include \
13581 /usr/local/X11R5/include \
13582 /usr/local/X11R4/include \
13583 \
13584 /usr/local/include/X11 \
13585 /usr/local/include/X11R6 \
13586 /usr/local/include/X11R5 \
13587 /usr/local/include/X11R4 \
13588 \
13589 /usr/X386/include \
13590 /usr/x386/include \
13591 /usr/XFree86/include/X11 \
13592 \
13593 /usr/include \
13594 /usr/local/include \
13595 /usr/unsupported/include \
13596 /usr/athena/include \
13597 /usr/local/x11r5/include \
13598 /usr/lpp/Xamples/include \
13599 \
13600 /usr/openwin/include \
13601 /usr/openwin/share/include \
13602 ; \
13603 do
13604 if test -r "$ac_dir/$x_direct_test_include"; then
13605 ac_x_includes=$ac_dir
13606 break
13607 fi
13608 done
3a922bb4 13609fi
a0b9e27f
MB
13610rm -f conftest*
13611fi # $ac_x_includes = NO
10f2d63a 13612
a0b9e27f 13613if test "$ac_x_libraries" = NO; then
21d1c967 13614 # Check for the libraries.
a0b9e27f
MB
13615
13616 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13617 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13618
21d1c967
GD
13619 # See if we find them without any special options.
13620 # Don't add to $LIBS permanently.
a0b9e27f
MB
13621 ac_save_LIBS="$LIBS"
13622 LIBS="-l$x_direct_test_library $LIBS"
13623cat > conftest.$ac_ext <<EOF
82d43113 13624#line 13625 "configure"
3a922bb4 13625#include "confdefs.h"
a0b9e27f
MB
13626
13627int main() {
13628${x_direct_test_function}()
13629; return 0; }
13630EOF
82d43113 13631if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13632 rm -rf conftest*
13633 LIBS="$ac_save_LIBS"
21d1c967
GD
13634# We can link X programs with no special library path.
13635ac_x_libraries=
3a922bb4 13636else
a0b9e27f
MB
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13639 rm -rf conftest*
13640 LIBS="$ac_save_LIBS"
13641# First see if replacing the include by lib works.
13642# Check X11 before X11Rn because it is often a symlink to the current release.
13643for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13644 /usr/X11/lib \
13645 /usr/X11R6/lib \
13646 /usr/X11R5/lib \
13647 /usr/X11R4/lib \
13648 \
13649 /usr/lib/X11 \
13650 /usr/lib/X11R6 \
13651 /usr/lib/X11R5 \
13652 /usr/lib/X11R4 \
13653 \
13654 /usr/local/X11/lib \
13655 /usr/local/X11R6/lib \
13656 /usr/local/X11R5/lib \
13657 /usr/local/X11R4/lib \
13658 \
13659 /usr/local/lib/X11 \
13660 /usr/local/lib/X11R6 \
13661 /usr/local/lib/X11R5 \
13662 /usr/local/lib/X11R4 \
13663 \
13664 /usr/X386/lib \
13665 /usr/x386/lib \
13666 /usr/XFree86/lib/X11 \
13667 \
13668 /usr/lib \
13669 /usr/local/lib \
13670 /usr/unsupported/lib \
13671 /usr/athena/lib \
13672 /usr/local/x11r5/lib \
13673 /usr/lpp/Xamples/lib \
13674 /lib/usr/lib/X11 \
13675 \
13676 /usr/openwin/lib \
13677 /usr/openwin/share/lib \
13678 ; \
21d1c967
GD
13679do
13680 for ac_extension in a so sl; do
a0b9e27f 13681 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13682 ac_x_libraries=$ac_dir
13683 break 2
13684 fi
13685 done
13686done
3a922bb4 13687fi
a0b9e27f
MB
13688rm -f conftest*
13689fi # $ac_x_libraries = NO
90dd450c 13690
a0b9e27f 13691if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13692 # Didn't find X anywhere. Cache the known absence of X.
13693 ac_cv_have_x="have_x=no"
13694else
13695 # Record where we found X for the cache.
13696 ac_cv_have_x="have_x=yes \
13697 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13698fi
21d1c967
GD
13699fi
13700 fi
13701 eval "$ac_cv_have_x"
13702fi # $with_x != no
90dd450c 13703
21d1c967 13704if test "$have_x" != yes; then
a0b9e27f 13705 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13706 no_x=yes
13707else
13708 # If each of the values was on the command line, it overrides each guess.
13709 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13710 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13711 # Update the cache value to reflect the command line values.
13712 ac_cv_have_x="have_x=yes \
13713 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13714 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13715fi
90dd450c 13716
21d1c967 13717if test "$no_x" = yes; then
90dd450c 13718 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13719 cat >> confdefs.h <<\EOF
90dd450c 13720#define X_DISPLAY_MISSING 1
a0b9e27f 13721EOF
90dd450c
VZ
13722
13723 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13724else
13725 if test -n "$x_includes"; then
13726 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13727 fi
3a922bb4 13728
90dd450c
VZ
13729 # It would also be nice to do this for all -L options, not just this one.
13730 if test -n "$x_libraries"; then
13731 X_LIBS="$X_LIBS -L$x_libraries"
13732 # For Solaris; some versions of Sun CC require a space after -R and
13733 # others require no space. Words are not sufficient . . . .
a0b9e27f 13734 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13735 "SunOS 5"*)
a0b9e27f 13736 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
82d43113 13737echo "configure:13738: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13739 cat > conftest.$ac_ext <<EOF
82d43113 13740#line 13741 "configure"
90dd450c
VZ
13741#include "confdefs.h"
13742
a0b9e27f 13743int main() {
90dd450c 13744
a0b9e27f
MB
13745; return 0; }
13746EOF
82d43113 13747if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13748 rm -rf conftest*
90dd450c 13749 ac_R_nospace=yes
3a922bb4 13750else
a0b9e27f
MB
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 rm -rf conftest*
13754 ac_R_nospace=no
3a922bb4 13755fi
a0b9e27f 13756rm -f conftest*
90dd450c 13757 if test $ac_R_nospace = yes; then
a0b9e27f 13758 echo "$ac_t""no" 1>&6
90dd450c
VZ
13759 X_LIBS="$X_LIBS -R$x_libraries"
13760 else
13761 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13762 cat > conftest.$ac_ext <<EOF
82d43113 13763#line 13764 "configure"
90dd450c 13764#include "confdefs.h"
3a922bb4 13765
a0b9e27f 13766int main() {
6f754473 13767
a0b9e27f
MB
13768; return 0; }
13769EOF
82d43113 13770if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13771 rm -rf conftest*
90dd450c
VZ
13772 ac_R_space=yes
13773else
a0b9e27f
MB
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13776 rm -rf conftest*
13777 ac_R_space=no
90dd450c 13778fi
a0b9e27f 13779rm -f conftest*
90dd450c 13780 if test $ac_R_space = yes; then
a0b9e27f 13781 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13782 X_LIBS="$X_LIBS -R $x_libraries"
13783 else
a0b9e27f 13784 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13785 fi
13786 fi
a0b9e27f 13787 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13788 esac
13789 fi
13790
13791 # Check for system-dependent libraries X programs must link with.
13792 # Do this before checking for the system-independent R6 libraries
13793 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13794
90dd450c
VZ
13795 if test "$ISC" = yes; then
13796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13797 else
a0b9e27f
MB
13798 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13799 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13800 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13801 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
82d43113 13802echo "configure:13803: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13803ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13806else
a0b9e27f 13807 ac_save_LIBS="$LIBS"
247f5006 13808LIBS="-ldnet $LIBS"
a0b9e27f 13809cat > conftest.$ac_ext <<EOF
82d43113 13810#line 13811 "configure"
247f5006 13811#include "confdefs.h"
247f5006 13812/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13813/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13814 builtin and then its argument prototype would still apply. */
13815char dnet_ntoa();
13816
13817int main() {
13818dnet_ntoa()
13819; return 0; }
13820EOF
82d43113 13821if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=yes"
13824else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_lib_$ac_lib_var=no"
13829fi
13830rm -f conftest*
13831LIBS="$ac_save_LIBS"
13832
13833fi
13834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
90dd450c 13836 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13837else
13838 echo "$ac_t""no" 1>&6
3a922bb4
RL
13839fi
13840
90dd450c 13841 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13842 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
82d43113 13843echo "configure:13844: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13844ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13847else
a0b9e27f 13848 ac_save_LIBS="$LIBS"
90dd450c 13849LIBS="-ldnet_stub $LIBS"
a0b9e27f 13850cat > conftest.$ac_ext <<EOF
82d43113 13851#line 13852 "configure"
90dd450c
VZ
13852#include "confdefs.h"
13853/* Override any gcc2 internal prototype to avoid an error. */
13854/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13855 builtin and then its argument prototype would still apply. */
13856char dnet_ntoa();
13857
13858int main() {
13859dnet_ntoa()
13860; return 0; }
13861EOF
82d43113 13862if { (eval echo configure:13863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13863 rm -rf conftest*
13864 eval "ac_cv_lib_$ac_lib_var=yes"
13865else
13866 echo "configure: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 rm -rf conftest*
13869 eval "ac_cv_lib_$ac_lib_var=no"
13870fi
13871rm -f conftest*
13872LIBS="$ac_save_LIBS"
13873
13874fi
13875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
90dd450c 13877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13878else
13879 echo "$ac_t""no" 1>&6
3a922bb4
RL
13880fi
13881
90dd450c 13882 fi
978f1259 13883
90dd450c
VZ
13884 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13885 # to get the SysV transport functions.
a0b9e27f 13886 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13887 # needs -lnsl.
13888 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13889 # on Irix 5.2, according to dickey@clark.net.
13890 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
82d43113 13891echo "configure:13892: checking for gethostbyname" >&5
a0b9e27f
MB
13892if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894else
13895 cat > conftest.$ac_ext <<EOF
82d43113 13896#line 13897 "configure"
90dd450c
VZ
13897#include "confdefs.h"
13898/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13899 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13900#include <assert.h>
13901/* Override any gcc2 internal prototype to avoid an error. */
13902/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13903 builtin and then its argument prototype would still apply. */
13904char gethostbyname();
13905
13906int main() {
13907
90dd450c
VZ
13908/* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13912choke me
13913#else
a0b9e27f 13914gethostbyname();
90dd450c 13915#endif
978f1259 13916
a0b9e27f
MB
13917; return 0; }
13918EOF
82d43113 13919if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13920 rm -rf conftest*
13921 eval "ac_cv_func_gethostbyname=yes"
13922else
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13925 rm -rf conftest*
13926 eval "ac_cv_func_gethostbyname=no"
13927fi
13928rm -f conftest*
13929fi
13930
13931if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13932 echo "$ac_t""yes" 1>&6
13933 :
13934else
13935 echo "$ac_t""no" 1>&6
13936fi
698dcdb6 13937
90dd450c 13938 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13939 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
82d43113 13940echo "configure:13941: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13941ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13944else
a0b9e27f 13945 ac_save_LIBS="$LIBS"
90dd450c 13946LIBS="-lnsl $LIBS"
a0b9e27f 13947cat > conftest.$ac_ext <<EOF
82d43113 13948#line 13949 "configure"
90dd450c
VZ
13949#include "confdefs.h"
13950/* Override any gcc2 internal prototype to avoid an error. */
13951/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13952 builtin and then its argument prototype would still apply. */
13953char gethostbyname();
5c6fa7d2 13954
a0b9e27f
MB
13955int main() {
13956gethostbyname()
13957; return 0; }
13958EOF
82d43113 13959if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13960 rm -rf conftest*
13961 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13962else
a0b9e27f
MB
13963 echo "configure: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 rm -rf conftest*
13966 eval "ac_cv_lib_$ac_lib_var=no"
13967fi
13968rm -f conftest*
13969LIBS="$ac_save_LIBS"
247f5006 13970
a0b9e27f
MB
13971fi
13972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13973 echo "$ac_t""yes" 1>&6
13974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13975else
13976 echo "$ac_t""no" 1>&6
90dd450c 13977fi
b12915c1 13978
90dd450c
VZ
13979 fi
13980
13981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13982 # socket/setsockopt and other routines are undefined under SCO ODT
13983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13984 # on later versions), says simon@lia.di.epfl.ch: it contains
13985 # gethostby* variants that don't use the nameserver (or something).
13986 # -lsocket must be given before -lnsl if both are needed.
13987 # We assume that if connect needs -lnsl, so does gethostbyname.
13988 echo $ac_n "checking for connect""... $ac_c" 1>&6
82d43113 13989echo "configure:13990: checking for connect" >&5
a0b9e27f
MB
13990if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13991 echo $ac_n "(cached) $ac_c" 1>&6
13992else
13993 cat > conftest.$ac_ext <<EOF
82d43113 13994#line 13995 "configure"
55e80573 13995#include "confdefs.h"
90dd450c 13996/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13997 which can conflict with char connect(); below. */
90dd450c
VZ
13998#include <assert.h>
13999/* Override any gcc2 internal prototype to avoid an error. */
14000/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14001 builtin and then its argument prototype would still apply. */
14002char connect();
14003
14004int main() {
14005
90dd450c
VZ
14006/* The GNU C library defines this for functions which it implements
14007 to always fail with ENOSYS. Some functions are actually named
14008 something starting with __ and the normal name is an alias. */
14009#if defined (__stub_connect) || defined (__stub___connect)
14010choke me
14011#else
a0b9e27f 14012connect();
90dd450c
VZ
14013#endif
14014
a0b9e27f
MB
14015; return 0; }
14016EOF
82d43113 14017if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14018 rm -rf conftest*
14019 eval "ac_cv_func_connect=yes"
14020else
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 rm -rf conftest*
14024 eval "ac_cv_func_connect=no"
14025fi
14026rm -f conftest*
14027fi
14028
14029if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14030 echo "$ac_t""yes" 1>&6
14031 :
14032else
14033 echo "$ac_t""no" 1>&6
14034fi
55e80573 14035
90dd450c 14036 if test $ac_cv_func_connect = no; then
a0b9e27f 14037 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
82d43113 14038echo "configure:14039: checking for connect in -lsocket" >&5
a0b9e27f
MB
14039ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14042else
a0b9e27f 14043 ac_save_LIBS="$LIBS"
90dd450c 14044LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14045cat > conftest.$ac_ext <<EOF
82d43113 14046#line 14047 "configure"
90dd450c
VZ
14047#include "confdefs.h"
14048/* Override any gcc2 internal prototype to avoid an error. */
14049/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14050 builtin and then its argument prototype would still apply. */
14051char connect();
14052
14053int main() {
14054connect()
14055; return 0; }
14056EOF
82d43113 14057if { (eval echo configure:14058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14058 rm -rf conftest*
14059 eval "ac_cv_lib_$ac_lib_var=yes"
14060else
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 rm -rf conftest*
14064 eval "ac_cv_lib_$ac_lib_var=no"
14065fi
14066rm -f conftest*
14067LIBS="$ac_save_LIBS"
14068
14069fi
14070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
90dd450c 14072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14073else
14074 echo "$ac_t""no" 1>&6
90dd450c 14075fi
77e13408 14076
90dd450c 14077 fi
25d0687a 14078
a0b9e27f
MB
14079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14080 echo $ac_n "checking for remove""... $ac_c" 1>&6
82d43113 14081echo "configure:14082: checking for remove" >&5
a0b9e27f
MB
14082if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14084else
a0b9e27f 14085 cat > conftest.$ac_ext <<EOF
82d43113 14086#line 14087 "configure"
90dd450c
VZ
14087#include "confdefs.h"
14088/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14089 which can conflict with char remove(); below. */
90dd450c
VZ
14090#include <assert.h>
14091/* Override any gcc2 internal prototype to avoid an error. */
14092/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14093 builtin and then its argument prototype would still apply. */
14094char remove();
14095
14096int main() {
14097
90dd450c
VZ
14098/* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101#if defined (__stub_remove) || defined (__stub___remove)
14102choke me
14103#else
a0b9e27f 14104remove();
90dd450c 14105#endif
55e80573 14106
a0b9e27f
MB
14107; return 0; }
14108EOF
82d43113 14109if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14110 rm -rf conftest*
14111 eval "ac_cv_func_remove=yes"
14112else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_func_remove=no"
14117fi
14118rm -f conftest*
14119fi
14120
14121if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 :
14124else
14125 echo "$ac_t""no" 1>&6
14126fi
10f2d63a 14127
90dd450c 14128 if test $ac_cv_func_remove = no; then
a0b9e27f 14129 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
82d43113 14130echo "configure:14131: checking for remove in -lposix" >&5
a0b9e27f
MB
14131ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14134else
a0b9e27f 14135 ac_save_LIBS="$LIBS"
90dd450c 14136LIBS="-lposix $LIBS"
a0b9e27f 14137cat > conftest.$ac_ext <<EOF
82d43113 14138#line 14139 "configure"
90dd450c
VZ
14139#include "confdefs.h"
14140/* Override any gcc2 internal prototype to avoid an error. */
14141/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14142 builtin and then its argument prototype would still apply. */
14143char remove();
14144
14145int main() {
14146remove()
14147; return 0; }
14148EOF
82d43113 14149if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14150 rm -rf conftest*
14151 eval "ac_cv_lib_$ac_lib_var=yes"
14152else
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14155 rm -rf conftest*
14156 eval "ac_cv_lib_$ac_lib_var=no"
14157fi
14158rm -f conftest*
14159LIBS="$ac_save_LIBS"
14160
14161fi
14162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
90dd450c 14164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14165else
14166 echo "$ac_t""no" 1>&6
90dd450c 14167fi
f6bcfd97 14168
6fa882bd
RR
14169 fi
14170
90dd450c 14171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14172 echo $ac_n "checking for shmat""... $ac_c" 1>&6
82d43113 14173echo "configure:14174: checking for shmat" >&5
a0b9e27f
MB
14174if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14176else
a0b9e27f 14177 cat > conftest.$ac_ext <<EOF
82d43113 14178#line 14179 "configure"
90dd450c
VZ
14179#include "confdefs.h"
14180/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14181 which can conflict with char shmat(); below. */
90dd450c
VZ
14182#include <assert.h>
14183/* Override any gcc2 internal prototype to avoid an error. */
14184/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14185 builtin and then its argument prototype would still apply. */
14186char shmat();
14187
14188int main() {
14189
90dd450c
VZ
14190/* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193#if defined (__stub_shmat) || defined (__stub___shmat)
14194choke me
14195#else
a0b9e27f 14196shmat();
90dd450c 14197#endif
10f2d63a 14198
a0b9e27f
MB
14199; return 0; }
14200EOF
82d43113 14201if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14202 rm -rf conftest*
14203 eval "ac_cv_func_shmat=yes"
14204else
14205 echo "configure: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 rm -rf conftest*
14208 eval "ac_cv_func_shmat=no"
14209fi
14210rm -f conftest*
14211fi
14212
14213if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14214 echo "$ac_t""yes" 1>&6
14215 :
14216else
14217 echo "$ac_t""no" 1>&6
14218fi
d08b457b 14219
90dd450c 14220 if test $ac_cv_func_shmat = no; then
a0b9e27f 14221 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
82d43113 14222echo "configure:14223: checking for shmat in -lipc" >&5
a0b9e27f
MB
14223ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14225 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14226else
a0b9e27f 14227 ac_save_LIBS="$LIBS"
90dd450c 14228LIBS="-lipc $LIBS"
a0b9e27f 14229cat > conftest.$ac_ext <<EOF
82d43113 14230#line 14231 "configure"
90dd450c 14231#include "confdefs.h"
8284b0c5 14232/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14233/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14234 builtin and then its argument prototype would still apply. */
14235char shmat();
14236
14237int main() {
14238shmat()
14239; return 0; }
14240EOF
82d43113 14241if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14242 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=yes"
14244else
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 rm -rf conftest*
14248 eval "ac_cv_lib_$ac_lib_var=no"
14249fi
14250rm -f conftest*
14251LIBS="$ac_save_LIBS"
14252
14253fi
14254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14255 echo "$ac_t""yes" 1>&6
90dd450c 14256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14257else
14258 echo "$ac_t""no" 1>&6
d08b457b
GD
14259fi
14260
d558c907 14261 fi
90dd450c 14262 fi
3a922bb4 14263
90dd450c 14264 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14265 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14268 # check for ICE first), but we must link in the order -lSM -lICE or
14269 # we get undefined symbols. So assume we have SM if we have ICE.
14270 # These have to be linked with before -lX11, unlike the other
14271 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14272 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14273 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
82d43113 14274echo "configure:14275: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14275ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14278else
14279 ac_save_LIBS="$LIBS"
f09359cf 14280LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14281cat > conftest.$ac_ext <<EOF
82d43113 14282#line 14283 "configure"
9cfadba2 14283#include "confdefs.h"
90dd450c
VZ
14284/* Override any gcc2 internal prototype to avoid an error. */
14285/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14286 builtin and then its argument prototype would still apply. */
14287char IceConnectionNumber();
14288
14289int main() {
14290IceConnectionNumber()
14291; return 0; }
14292EOF
82d43113 14293if { (eval echo configure:14294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14294 rm -rf conftest*
14295 eval "ac_cv_lib_$ac_lib_var=yes"
14296else
14297 echo "configure: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14299 rm -rf conftest*
14300 eval "ac_cv_lib_$ac_lib_var=no"
14301fi
14302rm -f conftest*
14303LIBS="$ac_save_LIBS"
14304
14305fi
14306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14307 echo "$ac_t""yes" 1>&6
90dd450c 14308 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14309else
14310 echo "$ac_t""no" 1>&6
9cfadba2 14311fi
10f2d63a 14312
a0b9e27f 14313 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14314
14315fi
14316
8284b0c5 14317
90dd450c 14318 if test "$no_x" = "yes"; then
a0b9e27f 14319 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14320 fi
14321
14322 GUI_TK_LIBRARY="$X_LIBS"
14323 TOOLKIT_INCLUDE="$X_CFLAGS"
14324 AFMINSTALL=afminstall
14325 COMPILED_X_PROGRAM=0
14326
21d1c967 14327 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14328 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
82d43113 14329echo "configure:14330: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14330 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14331 echo "$ac_t""not found" 1>&6
14332 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14333 else
a0b9e27f
MB
14334 echo "$ac_t""$MICROWIN" 1>&6
14335 cat >> confdefs.h <<\EOF
21d1c967 14336#define wxUSE_NANOX 1
a0b9e27f 14337EOF
21d1c967 14338
90dd450c
VZ
14339 fi
14340 fi
14341
14342 xpm_link=
a0b9e27f 14343 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
82d43113 14344echo "configure:14345: checking for Xpm library" >&5
a0b9e27f 14345
90dd450c 14346ac_find_libraries=
2b5f62a0 14347for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14348 do
14349 for ac_extension in a so sl dylib; do
14350 if test -f "$ac_dir/libXpm.$ac_extension"; then
14351 ac_find_libraries=$ac_dir
14352 break 2
14353 fi
14354 done
14355 done
14356
14357 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14358
90dd450c
VZ
14359 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14360 result=$?
14361 if test $result = 0; then
14362 ac_path_to_link=""
14363 else
14364 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14365 fi
90dd450c 14366
21d1c967
GD
14367 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14368 xpm_link=" -lXpm"
a0b9e27f 14369 cat >> confdefs.h <<\EOF
21d1c967 14370#define wxHAVE_LIB_XPM 1
a0b9e27f 14371EOF
90dd450c 14372
a0b9e27f 14373 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14374 else
a0b9e27f 14375 cat > conftest.$ac_ext <<EOF
82d43113 14376#line 14377 "configure"
21d1c967 14377#include "confdefs.h"
90dd450c 14378
21d1c967 14379 #include <X11/xpm.h>
a0b9e27f
MB
14380
14381int main() {
6f72b082 14382
21d1c967
GD
14383 int version;
14384 version = XpmLibraryVersion();
a0b9e27f
MB
14385
14386; return 0; }
14387EOF
82d43113 14388if { (eval echo configure:14389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14389 rm -rf conftest*
14390
21d1c967 14391 xpm_link=" -lXpm"
a0b9e27f 14392 cat >> confdefs.h <<\EOF
21d1c967 14393#define wxHAVE_LIB_XPM 1
a0b9e27f 14394EOF
90dd450c 14395
a0b9e27f 14396 echo "$ac_t""found in default search path" 1>&6
21d1c967 14397 COMPILED_X_PROGRAM=0
a0b9e27f 14398
21d1c967 14399else
a0b9e27f
MB
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 rm -rf conftest*
14403
14404 echo "$ac_t""no" 1>&6
14405 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14406
14407
6f72b082 14408fi
a0b9e27f 14409rm -f conftest*
21d1c967 14410 fi
90dd450c 14411
2b5f62a0
VZ
14412 if test "$wxUSE_UNICODE" = "yes"; then
14413
14414 succeeded=no
90dd450c 14415
2b5f62a0
VZ
14416 if test -z "$PKG_CONFIG"; then
14417 # Extract the first word of "pkg-config", so it can be a program name with args.
14418set dummy pkg-config; ac_word=$2
14419echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 14420echo "configure:14421: checking for $ac_word" >&5
2b5f62a0 14421if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14422 echo $ac_n "(cached) $ac_c" 1>&6
14423else
2b5f62a0
VZ
14424 case "$PKG_CONFIG" in
14425 /*)
14426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14427 ;;
14428 ?:/*)
14429 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14430 ;;
14431 *)
14432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14433 ac_dummy="$PATH"
14434 for ac_dir in $ac_dummy; do
14435 test -z "$ac_dir" && ac_dir=.
14436 if test -f $ac_dir/$ac_word; then
14437 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14438 break
14439 fi
14440 done
14441 IFS="$ac_save_ifs"
14442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14443 ;;
14444esac
14445fi
14446PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14447if test -n "$PKG_CONFIG"; then
14448 echo "$ac_t""$PKG_CONFIG" 1>&6
14449else
14450 echo "$ac_t""no" 1>&6
14451fi
14452
14453 fi
14454
14455 if test "$PKG_CONFIG" = "no" ; then
14456 echo "*** The pkg-config script could not be found. Make sure it is"
14457 echo "*** in your path, or set the PKG_CONFIG environment variable"
14458 echo "*** to the full path to pkg-config."
14459 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14460 else
14461 PKG_CONFIG_MIN_VERSION=0.9.0
14462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14463 echo $ac_n "checking for pangox""... $ac_c" 1>&6
82d43113 14464echo "configure:14465: checking for pangox" >&5
2b5f62a0
VZ
14465
14466 if $PKG_CONFIG --exists "pangox" ; then
14467 echo "$ac_t""yes" 1>&6
14468 succeeded=yes
14469
14470 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
82d43113 14471echo "configure:14472: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14472 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14473 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14474
14475 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
82d43113 14476echo "configure:14477: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14477 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14478 echo "$ac_t""$PANGOX_LIBS" 1>&6
14479 else
14480 PANGOX_CFLAGS=""
14481 PANGOX_LIBS=""
14482 ## If we have a custom action on failure, don't print errors, but
14483 ## do set a variable so people can do so.
14484 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14485
14486 fi
14487
14488
14489
14490 else
14491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14493 fi
14494 fi
14495
14496 if test $succeeded = yes; then
14497
14498 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14499 LIBS="$LIBS $PANGOX_LIBS"
14500
14501 else
14502
14503 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14504
14505
14506 fi
14507
14508
14509 succeeded=no
14510
14511 if test -z "$PKG_CONFIG"; then
14512 # Extract the first word of "pkg-config", so it can be a program name with args.
14513set dummy pkg-config; ac_word=$2
14514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 14515echo "configure:14516: checking for $ac_word" >&5
2b5f62a0
VZ
14516if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
14518else
14519 case "$PKG_CONFIG" in
14520 /*)
14521 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14522 ;;
14523 ?:/*)
14524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14525 ;;
14526 *)
14527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14528 ac_dummy="$PATH"
14529 for ac_dir in $ac_dummy; do
14530 test -z "$ac_dir" && ac_dir=.
14531 if test -f $ac_dir/$ac_word; then
14532 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14533 break
14534 fi
14535 done
14536 IFS="$ac_save_ifs"
14537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14538 ;;
14539esac
14540fi
14541PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14542if test -n "$PKG_CONFIG"; then
14543 echo "$ac_t""$PKG_CONFIG" 1>&6
14544else
14545 echo "$ac_t""no" 1>&6
14546fi
14547
14548 fi
14549
14550 if test "$PKG_CONFIG" = "no" ; then
14551 echo "*** The pkg-config script could not be found. Make sure it is"
14552 echo "*** in your path, or set the PKG_CONFIG environment variable"
14553 echo "*** to the full path to pkg-config."
14554 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14555 else
14556 PKG_CONFIG_MIN_VERSION=0.9.0
14557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14558 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
82d43113 14559echo "configure:14560: checking for pangoft2" >&5
2b5f62a0
VZ
14560
14561 if $PKG_CONFIG --exists "pangoft2" ; then
14562 echo "$ac_t""yes" 1>&6
14563 succeeded=yes
14564
14565 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
82d43113 14566echo "configure:14567: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14567 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14568 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14569
14570 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
82d43113 14571echo "configure:14572: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14572 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14573 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14574 else
14575 PANGOFT2_CFLAGS=""
14576 PANGOFT2_LIBS=""
14577 ## If we have a custom action on failure, don't print errors, but
14578 ## do set a variable so people can do so.
14579 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14580
14581 fi
14582
14583
14584
14585 else
14586 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14587 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14588 fi
14589 fi
14590
14591 if test $succeeded = yes; then
14592
14593 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14594 LIBS="$LIBS $PANGOFT2_LIBS"
14595
14596 else
14597
14598 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14599 wxUSE_PRINTING_ARCHITECTURE="no"
14600
14601
14602 fi
14603
14604
14605 succeeded=no
14606
14607 if test -z "$PKG_CONFIG"; then
14608 # Extract the first word of "pkg-config", so it can be a program name with args.
14609set dummy pkg-config; ac_word=$2
14610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 14611echo "configure:14612: checking for $ac_word" >&5
2b5f62a0
VZ
14612if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14613 echo $ac_n "(cached) $ac_c" 1>&6
14614else
14615 case "$PKG_CONFIG" in
14616 /*)
14617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14618 ;;
14619 ?:/*)
14620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14621 ;;
14622 *)
14623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14624 ac_dummy="$PATH"
14625 for ac_dir in $ac_dummy; do
14626 test -z "$ac_dir" && ac_dir=.
14627 if test -f $ac_dir/$ac_word; then
14628 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14629 break
14630 fi
14631 done
14632 IFS="$ac_save_ifs"
14633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14634 ;;
14635esac
14636fi
14637PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14638if test -n "$PKG_CONFIG"; then
14639 echo "$ac_t""$PKG_CONFIG" 1>&6
14640else
14641 echo "$ac_t""no" 1>&6
14642fi
14643
14644 fi
14645
14646 if test "$PKG_CONFIG" = "no" ; then
14647 echo "*** The pkg-config script could not be found. Make sure it is"
14648 echo "*** in your path, or set the PKG_CONFIG environment variable"
14649 echo "*** to the full path to pkg-config."
14650 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14651 else
14652 PKG_CONFIG_MIN_VERSION=0.9.0
14653 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14654 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
82d43113 14655echo "configure:14656: checking for pangoxft" >&5
2b5f62a0
VZ
14656
14657 if $PKG_CONFIG --exists "pangoxft" ; then
14658 echo "$ac_t""yes" 1>&6
14659 succeeded=yes
14660
14661 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
82d43113 14662echo "configure:14663: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14663 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14664 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14665
14666 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
82d43113 14667echo "configure:14668: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14668 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14669 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14670 else
14671 PANGOXFT_CFLAGS=""
14672 PANGOXFT_LIBS=""
14673 ## If we have a custom action on failure, don't print errors, but
14674 ## do set a variable so people can do so.
14675 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14676
14677 fi
14678
14679
14680
14681 else
14682 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14683 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14684 fi
14685 fi
14686
14687 if test $succeeded = yes; then
14688
14689 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14690 LIBS="$LIBS $PANGOXFT_LIBS"
14691
14692 else
14693
14694 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14695
14696
14697 fi
14698
14699 fi
14700
14701 wxUSE_UNIVERSAL="yes"
14702
14703 if test "$wxUSE_NANOX" = "yes"; then
14704 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14705 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14707 else
14708 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14709 fi
14710
14711 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14712 TOOLKIT=X11
14713 GUIDIST=X11_DIST
14714 fi
14715
21d1c967
GD
14716 if test "$wxUSE_MOTIF" = 1; then
14717 if test "$no_x" = yes; then
14718 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14719 cat >> confdefs.h <<\EOF
21d1c967 14720#define X_DISPLAY_MISSING 1
a0b9e27f 14721EOF
21d1c967
GD
14722
14723 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14724else
14725 if test -n "$x_includes"; then
14726 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14727 fi
14728
21d1c967
GD
14729 # It would also be nice to do this for all -L options, not just this one.
14730 if test -n "$x_libraries"; then
14731 X_LIBS="$X_LIBS -L$x_libraries"
14732 # For Solaris; some versions of Sun CC require a space after -R and
14733 # others require no space. Words are not sufficient . . . .
a0b9e27f 14734 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14735 "SunOS 5"*)
a0b9e27f 14736 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
82d43113 14737echo "configure:14738: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14739 cat > conftest.$ac_ext <<EOF
82d43113 14740#line 14741 "configure"
21d1c967
GD
14741#include "confdefs.h"
14742
a0b9e27f 14743int main() {
21d1c967 14744
a0b9e27f
MB
14745; return 0; }
14746EOF
82d43113 14747if { (eval echo configure:14748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14748 rm -rf conftest*
21d1c967 14749 ac_R_nospace=yes
698dcdb6 14750else
a0b9e27f
MB
14751 echo "configure: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 rm -rf conftest*
14754 ac_R_nospace=no
10f2d63a 14755fi
a0b9e27f 14756rm -f conftest*
21d1c967 14757 if test $ac_R_nospace = yes; then
a0b9e27f 14758 echo "$ac_t""no" 1>&6
21d1c967
GD
14759 X_LIBS="$X_LIBS -R$x_libraries"
14760 else
14761 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14762 cat > conftest.$ac_ext <<EOF
82d43113 14763#line 14764 "configure"
21d1c967 14764#include "confdefs.h"
10f2d63a 14765
a0b9e27f 14766int main() {
f0c87536 14767
a0b9e27f
MB
14768; return 0; }
14769EOF
82d43113 14770if { (eval echo configure:14771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14771 rm -rf conftest*
21d1c967
GD
14772 ac_R_space=yes
14773else
a0b9e27f
MB
14774 echo "configure: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14776 rm -rf conftest*
14777 ac_R_space=no
21d1c967 14778fi
a0b9e27f 14779rm -f conftest*
21d1c967 14780 if test $ac_R_space = yes; then
a0b9e27f 14781 echo "$ac_t""yes" 1>&6
21d1c967
GD
14782 X_LIBS="$X_LIBS -R $x_libraries"
14783 else
a0b9e27f 14784 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14785 fi
14786 fi
a0b9e27f 14787 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14788 esac
14789 fi
90dd450c 14790
21d1c967
GD
14791 # Check for system-dependent libraries X programs must link with.
14792 # Do this before checking for the system-independent R6 libraries
14793 # (-lICE), since we may need -lsocket or whatever for X linking.
14794
14795 if test "$ISC" = yes; then
14796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14797 else
a0b9e27f
MB
14798 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14799 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14800 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14801 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
82d43113 14802echo "configure:14803: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14803ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14805 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14806else
a0b9e27f 14807 ac_save_LIBS="$LIBS"
247f5006 14808LIBS="-ldnet $LIBS"
a0b9e27f 14809cat > conftest.$ac_ext <<EOF
82d43113 14810#line 14811 "configure"
247f5006 14811#include "confdefs.h"
247f5006 14812/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14813/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14814 builtin and then its argument prototype would still apply. */
14815char dnet_ntoa();
14816
14817int main() {
14818dnet_ntoa()
14819; return 0; }
14820EOF
82d43113 14821if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14822 rm -rf conftest*
14823 eval "ac_cv_lib_$ac_lib_var=yes"
14824else
14825 echo "configure: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 rm -rf conftest*
14828 eval "ac_cv_lib_$ac_lib_var=no"
14829fi
14830rm -f conftest*
14831LIBS="$ac_save_LIBS"
14832
14833fi
14834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14835 echo "$ac_t""yes" 1>&6
21d1c967 14836 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14837else
14838 echo "$ac_t""no" 1>&6
0fb0dd83 14839fi
0fb0dd83 14840
21d1c967 14841 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14842 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
82d43113 14843echo "configure:14844: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14844ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14846 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14847else
a0b9e27f 14848 ac_save_LIBS="$LIBS"
21d1c967 14849LIBS="-ldnet_stub $LIBS"
a0b9e27f 14850cat > conftest.$ac_ext <<EOF
82d43113 14851#line 14852 "configure"
21d1c967
GD
14852#include "confdefs.h"
14853/* Override any gcc2 internal prototype to avoid an error. */
14854/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14855 builtin and then its argument prototype would still apply. */
14856char dnet_ntoa();
14857
14858int main() {
14859dnet_ntoa()
14860; return 0; }
14861EOF
82d43113 14862if { (eval echo configure:14863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14863 rm -rf conftest*
14864 eval "ac_cv_lib_$ac_lib_var=yes"
14865else
14866 echo "configure: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 rm -rf conftest*
14869 eval "ac_cv_lib_$ac_lib_var=no"
14870fi
14871rm -f conftest*
14872LIBS="$ac_save_LIBS"
14873
14874fi
14875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14876 echo "$ac_t""yes" 1>&6
21d1c967 14877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14878else
14879 echo "$ac_t""no" 1>&6
90dd450c
VZ
14880fi
14881
21d1c967 14882 fi
90dd450c 14883
21d1c967
GD
14884 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14885 # to get the SysV transport functions.
a0b9e27f 14886 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14887 # needs -lnsl.
14888 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14889 # on Irix 5.2, according to dickey@clark.net.
14890 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
82d43113 14891echo "configure:14892: checking for gethostbyname" >&5
a0b9e27f
MB
14892if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14893 echo $ac_n "(cached) $ac_c" 1>&6
14894else
14895 cat > conftest.$ac_ext <<EOF
82d43113 14896#line 14897 "configure"
21d1c967
GD
14897#include "confdefs.h"
14898/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14899 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14900#include <assert.h>
14901/* Override any gcc2 internal prototype to avoid an error. */
14902/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14903 builtin and then its argument prototype would still apply. */
14904char gethostbyname();
14905
14906int main() {
14907
21d1c967
GD
14908/* The GNU C library defines this for functions which it implements
14909 to always fail with ENOSYS. Some functions are actually named
14910 something starting with __ and the normal name is an alias. */
14911#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14912choke me
14913#else
a0b9e27f 14914gethostbyname();
21d1c967 14915#endif
90dd450c 14916
a0b9e27f
MB
14917; return 0; }
14918EOF
82d43113 14919if { (eval echo configure:14920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14920 rm -rf conftest*
14921 eval "ac_cv_func_gethostbyname=yes"
14922else
14923 echo "configure: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14925 rm -rf conftest*
14926 eval "ac_cv_func_gethostbyname=no"
14927fi
14928rm -f conftest*
14929fi
14930
14931if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14932 echo "$ac_t""yes" 1>&6
14933 :
14934else
14935 echo "$ac_t""no" 1>&6
14936fi
90dd450c 14937
21d1c967 14938 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14939 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
82d43113 14940echo "configure:14941: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14941ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14944else
a0b9e27f 14945 ac_save_LIBS="$LIBS"
21d1c967 14946LIBS="-lnsl $LIBS"
a0b9e27f 14947cat > conftest.$ac_ext <<EOF
82d43113 14948#line 14949 "configure"
21d1c967
GD
14949#include "confdefs.h"
14950/* Override any gcc2 internal prototype to avoid an error. */
14951/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14952 builtin and then its argument prototype would still apply. */
14953char gethostbyname();
5c6fa7d2 14954
a0b9e27f
MB
14955int main() {
14956gethostbyname()
14957; return 0; }
14958EOF
82d43113 14959if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14960 rm -rf conftest*
14961 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14962else
a0b9e27f
MB
14963 echo "configure: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14965 rm -rf conftest*
14966 eval "ac_cv_lib_$ac_lib_var=no"
14967fi
14968rm -f conftest*
14969LIBS="$ac_save_LIBS"
247f5006 14970
a0b9e27f
MB
14971fi
14972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14975else
14976 echo "$ac_t""no" 1>&6
21d1c967 14977fi
90dd450c 14978
90dd450c
VZ
14979 fi
14980
21d1c967
GD
14981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14982 # socket/setsockopt and other routines are undefined under SCO ODT
14983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14984 # on later versions), says simon@lia.di.epfl.ch: it contains
14985 # gethostby* variants that don't use the nameserver (or something).
14986 # -lsocket must be given before -lnsl if both are needed.
14987 # We assume that if connect needs -lnsl, so does gethostbyname.
14988 echo $ac_n "checking for connect""... $ac_c" 1>&6
82d43113 14989echo "configure:14990: checking for connect" >&5
a0b9e27f
MB
14990if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14992else
14993 cat > conftest.$ac_ext <<EOF
82d43113 14994#line 14995 "configure"
21d1c967
GD
14995#include "confdefs.h"
14996/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14997 which can conflict with char connect(); below. */
21d1c967
GD
14998#include <assert.h>
14999/* Override any gcc2 internal prototype to avoid an error. */
15000/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15001 builtin and then its argument prototype would still apply. */
15002char connect();
15003
15004int main() {
15005
21d1c967
GD
15006/* The GNU C library defines this for functions which it implements
15007 to always fail with ENOSYS. Some functions are actually named
15008 something starting with __ and the normal name is an alias. */
15009#if defined (__stub_connect) || defined (__stub___connect)
15010choke me
15011#else
a0b9e27f 15012connect();
21d1c967 15013#endif
90dd450c 15014
a0b9e27f
MB
15015; return 0; }
15016EOF
82d43113 15017if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15018 rm -rf conftest*
15019 eval "ac_cv_func_connect=yes"
15020else
15021 echo "configure: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 rm -rf conftest*
15024 eval "ac_cv_func_connect=no"
15025fi
15026rm -f conftest*
15027fi
15028
15029if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15030 echo "$ac_t""yes" 1>&6
15031 :
15032else
15033 echo "$ac_t""no" 1>&6
15034fi
1f8ae82f 15035
21d1c967 15036 if test $ac_cv_func_connect = no; then
a0b9e27f 15037 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
82d43113 15038echo "configure:15039: checking for connect in -lsocket" >&5
a0b9e27f
MB
15039ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15042else
a0b9e27f 15043 ac_save_LIBS="$LIBS"
21d1c967 15044LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15045cat > conftest.$ac_ext <<EOF
82d43113 15046#line 15047 "configure"
0fbb762e 15047#include "confdefs.h"
21d1c967
GD
15048/* Override any gcc2 internal prototype to avoid an error. */
15049/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15050 builtin and then its argument prototype would still apply. */
15051char connect();
15052
15053int main() {
15054connect()
15055; return 0; }
15056EOF
82d43113 15057if { (eval echo configure:15058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15058 rm -rf conftest*
15059 eval "ac_cv_lib_$ac_lib_var=yes"
15060else
15061 echo "configure: failed program was:" >&5
15062 cat conftest.$ac_ext >&5
15063 rm -rf conftest*
15064 eval "ac_cv_lib_$ac_lib_var=no"
15065fi
15066rm -f conftest*
15067LIBS="$ac_save_LIBS"
15068
15069fi
15070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15071 echo "$ac_t""yes" 1>&6
21d1c967 15072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15073else
15074 echo "$ac_t""no" 1>&6
21d1c967 15075fi
90dd450c 15076
21d1c967 15077 fi
90dd450c 15078
a0b9e27f
MB
15079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15080 echo $ac_n "checking for remove""... $ac_c" 1>&6
82d43113 15081echo "configure:15082: checking for remove" >&5
a0b9e27f
MB
15082if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15084else
a0b9e27f 15085 cat > conftest.$ac_ext <<EOF
82d43113 15086#line 15087 "configure"
21d1c967
GD
15087#include "confdefs.h"
15088/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15089 which can conflict with char remove(); below. */
21d1c967
GD
15090#include <assert.h>
15091/* Override any gcc2 internal prototype to avoid an error. */
15092/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15093 builtin and then its argument prototype would still apply. */
15094char remove();
15095
15096int main() {
15097
21d1c967
GD
15098/* The GNU C library defines this for functions which it implements
15099 to always fail with ENOSYS. Some functions are actually named
15100 something starting with __ and the normal name is an alias. */
15101#if defined (__stub_remove) || defined (__stub___remove)
15102choke me
15103#else
a0b9e27f 15104remove();
21d1c967 15105#endif
90dd450c 15106
a0b9e27f
MB
15107; return 0; }
15108EOF
82d43113 15109if { (eval echo configure:15110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15110 rm -rf conftest*
15111 eval "ac_cv_func_remove=yes"
15112else
15113 echo "configure: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15115 rm -rf conftest*
15116 eval "ac_cv_func_remove=no"
15117fi
15118rm -f conftest*
15119fi
15120
15121if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15122 echo "$ac_t""yes" 1>&6
15123 :
15124else
15125 echo "$ac_t""no" 1>&6
15126fi
90dd450c 15127
21d1c967 15128 if test $ac_cv_func_remove = no; then
a0b9e27f 15129 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
82d43113 15130echo "configure:15131: checking for remove in -lposix" >&5
a0b9e27f
MB
15131ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15134else
a0b9e27f 15135 ac_save_LIBS="$LIBS"
21d1c967 15136LIBS="-lposix $LIBS"
a0b9e27f 15137cat > conftest.$ac_ext <<EOF
82d43113 15138#line 15139 "configure"
21d1c967
GD
15139#include "confdefs.h"
15140/* Override any gcc2 internal prototype to avoid an error. */
15141/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15142 builtin and then its argument prototype would still apply. */
15143char remove();
15144
15145int main() {
15146remove()
15147; return 0; }
15148EOF
82d43113 15149if { (eval echo configure:15150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15150 rm -rf conftest*
15151 eval "ac_cv_lib_$ac_lib_var=yes"
15152else
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15155 rm -rf conftest*
15156 eval "ac_cv_lib_$ac_lib_var=no"
15157fi
15158rm -f conftest*
15159LIBS="$ac_save_LIBS"
15160
15161fi
15162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15163 echo "$ac_t""yes" 1>&6
21d1c967 15164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15165else
15166 echo "$ac_t""no" 1>&6
21d1c967 15167fi
19bc6aad 15168
90dd450c 15169 fi
19bc6aad 15170
21d1c967 15171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15172 echo $ac_n "checking for shmat""... $ac_c" 1>&6
82d43113 15173echo "configure:15174: checking for shmat" >&5
a0b9e27f
MB
15174if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15176else
a0b9e27f 15177 cat > conftest.$ac_ext <<EOF
82d43113 15178#line 15179 "configure"
21d1c967
GD
15179#include "confdefs.h"
15180/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15181 which can conflict with char shmat(); below. */
21d1c967
GD
15182#include <assert.h>
15183/* Override any gcc2 internal prototype to avoid an error. */
15184/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15185 builtin and then its argument prototype would still apply. */
15186char shmat();
15187
15188int main() {
15189
21d1c967
GD
15190/* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193#if defined (__stub_shmat) || defined (__stub___shmat)
15194choke me
15195#else
a0b9e27f 15196shmat();
21d1c967 15197#endif
90dd450c 15198
a0b9e27f
MB
15199; return 0; }
15200EOF
82d43113 15201if { (eval echo configure:15202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15202 rm -rf conftest*
15203 eval "ac_cv_func_shmat=yes"
15204else
15205 echo "configure: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 rm -rf conftest*
15208 eval "ac_cv_func_shmat=no"
15209fi
15210rm -f conftest*
15211fi
15212
15213if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15214 echo "$ac_t""yes" 1>&6
15215 :
15216else
15217 echo "$ac_t""no" 1>&6
15218fi
19bc6aad 15219
21d1c967 15220 if test $ac_cv_func_shmat = no; then
a0b9e27f 15221 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
82d43113 15222echo "configure:15223: checking for shmat in -lipc" >&5
a0b9e27f
MB
15223ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15225 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15226else
a0b9e27f 15227 ac_save_LIBS="$LIBS"
5c6fa7d2 15228LIBS="-lipc $LIBS"
a0b9e27f 15229cat > conftest.$ac_ext <<EOF
82d43113 15230#line 15231 "configure"
5c6fa7d2 15231#include "confdefs.h"
5c6fa7d2 15232/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15233/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15234 builtin and then its argument prototype would still apply. */
15235char shmat();
15236
15237int main() {
15238shmat()
15239; return 0; }
15240EOF
82d43113 15241if { (eval echo configure:15242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15242 rm -rf conftest*
15243 eval "ac_cv_lib_$ac_lib_var=yes"
15244else
15245 echo "configure: failed program was:" >&5
15246 cat conftest.$ac_ext >&5
15247 rm -rf conftest*
15248 eval "ac_cv_lib_$ac_lib_var=no"
15249fi
15250rm -f conftest*
15251LIBS="$ac_save_LIBS"
15252
15253fi
15254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15255 echo "$ac_t""yes" 1>&6
21d1c967 15256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15257else
15258 echo "$ac_t""no" 1>&6
9f8148b1 15259fi
90dd450c 15260
90dd450c 15261 fi
21d1c967 15262 fi
10f2d63a 15263
21d1c967 15264 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15265 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15268 # check for ICE first), but we must link in the order -lSM -lICE or
15269 # we get undefined symbols. So assume we have SM if we have ICE.
15270 # These have to be linked with before -lX11, unlike the other
15271 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15272 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15273 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
82d43113 15274echo "configure:15275: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15275ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15277 echo $ac_n "(cached) $ac_c" 1>&6
15278else
15279 ac_save_LIBS="$LIBS"
f09359cf 15280LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15281cat > conftest.$ac_ext <<EOF
82d43113 15282#line 15283 "configure"
29fd3c0c 15283#include "confdefs.h"
21d1c967
GD
15284/* Override any gcc2 internal prototype to avoid an error. */
15285/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15286 builtin and then its argument prototype would still apply. */
15287char IceConnectionNumber();
15288
15289int main() {
15290IceConnectionNumber()
15291; return 0; }
15292EOF
82d43113 15293if { (eval echo configure:15294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15294 rm -rf conftest*
15295 eval "ac_cv_lib_$ac_lib_var=yes"
15296else
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 rm -rf conftest*
15300 eval "ac_cv_lib_$ac_lib_var=no"
15301fi
15302rm -f conftest*
15303LIBS="$ac_save_LIBS"
15304
15305fi
15306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15307 echo "$ac_t""yes" 1>&6
21d1c967 15308 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15309else
15310 echo "$ac_t""no" 1>&6
29fd3c0c 15311fi
21d1c967 15312
a0b9e27f 15313 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15314
10f2d63a
VZ
15315fi
15316
8284b0c5 15317
21d1c967 15318 if test "$no_x" = "yes"; then
a0b9e27f 15319 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15320 fi
15321
2b5f62a0
VZ
15322 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15323 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15324 AFMINSTALL=afminstall
15325 COMPILED_X_PROGRAM=0
15326
a0b9e27f 15327 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
82d43113 15328echo "configure:15329: checking for Motif/Lesstif headers" >&5
a0b9e27f 15329
21d1c967 15330ac_find_includes=
2b5f62a0 15331for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15332 do
15333 if test -f "$ac_dir/Xm/Xm.h"; then
15334 ac_find_includes=$ac_dir
15335 break
15336 fi
15337 done
15338
15339 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15340 echo "$ac_t""found in $ac_find_includes" 1>&6
15341
2b5f62a0 15342 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15343 ac_path_to_include=""
15344 else
2b5f62a0
VZ
15345 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15346 result=$?
15347 if test $result = 0; then
15348 ac_path_to_include=""
15349 else
15350 ac_path_to_include=" -I$ac_find_includes"
15351 fi
dd0e4a90
VZ
15352 fi
15353
15354 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15355 else
a0b9e27f 15356 cat > conftest.$ac_ext <<EOF
82d43113 15357#line 15358 "configure"
10f2d63a 15358#include "confdefs.h"
21d1c967
GD
15359
15360 #include <Xm/Xm.h>
a0b9e27f
MB
15361
15362int main() {
21d1c967
GD
15363
15364 int version;
15365 version = xmUseVersion;
a0b9e27f
MB
15366
15367; return 0; }
15368EOF
82d43113 15369if { (eval echo configure:15370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15370 rm -rf conftest*
15371
15372 echo "$ac_t""found in default search path" 1>&6
21d1c967 15373 COMPILED_X_PROGRAM=1
a0b9e27f 15374
10f2d63a 15375else
a0b9e27f
MB
15376 echo "configure: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15378 rm -rf conftest*
15379
15380 echo "$ac_t""no" 1>&6
15381 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15382
15383
10f2d63a 15384fi
a0b9e27f 15385rm -f conftest*
21d1c967 15386 fi
10f2d63a 15387
21d1c967 15388 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15389 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
82d43113 15390echo "configure:15391: checking for Motif/Lesstif library" >&5
a0b9e27f 15391
21d1c967 15392ac_find_libraries=
2b5f62a0 15393for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15394 do
15395 for ac_extension in a so sl dylib; do
15396 if test -f "$ac_dir/libXm.$ac_extension"; then
15397 ac_find_libraries=$ac_dir
15398 break 2
15399 fi
15400 done
15401 done
15402
15403 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15404 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15405
a0b9e27f 15406
21d1c967
GD
15407 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15408 result=$?
15409 if test $result = 0; then
15410 ac_path_to_link=""
15411 else
15412 ac_path_to_link=" -L$ac_find_libraries"
15413 fi
15414
21d1c967 15415 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15416 else
dd0e4a90
VZ
15417 save_CFLAGS=$CFLAGS
15418 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15419
a0b9e27f 15420 cat > conftest.$ac_ext <<EOF
82d43113 15421#line 15422 "configure"
d836ee96 15422#include "confdefs.h"
21d1c967
GD
15423
15424 #include <Xm/Xm.h>
a0b9e27f
MB
15425
15426int main() {
21d1c967
GD
15427
15428 int version;
15429 version = xmUseVersion;
a0b9e27f
MB
15430
15431; return 0; }
15432EOF
82d43113 15433if { (eval echo configure:15434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15434 rm -rf conftest*
15435
15436 echo "$ac_t""found in default search path" 1>&6
21d1c967 15437 COMPILED_X_PROGRAM=1
a0b9e27f 15438
d836ee96 15439else
a0b9e27f
MB
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443
15444 echo "$ac_t""no" 1>&6
15445 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15446
15447
d836ee96 15448fi
a0b9e27f 15449rm -f conftest*
dd0e4a90
VZ
15450
15451 CFLAGS=$save_CFLAGS
21d1c967
GD
15452 fi
15453 fi
15454
15455 xpm_link=
a0b9e27f 15456 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
82d43113 15457echo "configure:15458: checking for Xpm library" >&5
a0b9e27f 15458
21d1c967 15459ac_find_libraries=
2b5f62a0 15460for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15461 do
15462 for ac_extension in a so sl dylib; do
15463 if test -f "$ac_dir/libXpm.$ac_extension"; then
15464 ac_find_libraries=$ac_dir
15465 break 2
15466 fi
15467 done
15468 done
15469
15470 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15471
21d1c967
GD
15472 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15473 result=$?
15474 if test $result = 0; then
15475 ac_path_to_link=""
15476 else
15477 ac_path_to_link=" -L$ac_find_libraries"
15478 fi
15479
15480 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15481
21d1c967 15482 xpm_link=" -lXpm"
a0b9e27f 15483 cat >> confdefs.h <<\EOF
21d1c967 15484#define wxHAVE_LIB_XPM 1
a0b9e27f 15485EOF
90dd450c 15486
a0b9e27f 15487 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15488 else
dd0e4a90
VZ
15489 save_CFLAGS=$CFLAGS
15490 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15491
a0b9e27f 15492 cat > conftest.$ac_ext <<EOF
82d43113 15493#line 15494 "configure"
d836ee96 15494#include "confdefs.h"
21d1c967
GD
15495
15496 #include <X11/xpm.h>
a0b9e27f
MB
15497
15498int main() {
21d1c967
GD
15499
15500 int version;
15501 version = XpmLibraryVersion();
a0b9e27f
MB
15502
15503; return 0; }
15504EOF
82d43113 15505if { (eval echo configure:15506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15506 rm -rf conftest*
15507
21d1c967 15508 xpm_link=" -lXpm"
a0b9e27f 15509 cat >> confdefs.h <<\EOF
21d1c967 15510#define wxHAVE_LIB_XPM 1
a0b9e27f 15511EOF
21d1c967 15512
a0b9e27f 15513 echo "$ac_t""found in default search path" 1>&6
21d1c967 15514 COMPILED_X_PROGRAM=0
a0b9e27f 15515
d836ee96 15516else
a0b9e27f
MB
15517 echo "configure: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15519 rm -rf conftest*
15520
15521 echo "$ac_t""no" 1>&6
15522 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15523
15524
d836ee96 15525fi
a0b9e27f 15526rm -f conftest*
dd0e4a90
VZ
15527
15528 CFLAGS=$save_CFLAGS
21d1c967
GD
15529 fi
15530
a0b9e27f 15531 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
82d43113 15532echo "configure:15533: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15533 libp_link=""
15534 libsm_ice_link=""
15535 libs_found=0
15536 for libp in "" " -lXp"; do
15537 if test "$libs_found" = "0"; then
15538 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15539 if test "$libs_found" = "0"; then
6a30f1c8
MB
15540 save_LIBS="$LIBS"
15541 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15542 save_CFLAGS=$CFLAGS
15543 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15544
a0b9e27f 15545 cat > conftest.$ac_ext <<EOF
82d43113 15546#line 15547 "configure"
6a30f1c8 15547#include "confdefs.h"
17234b26 15548
6a30f1c8
MB
15549 #include <Xm/Xm.h>
15550 #include <Xm/List.h>
a0b9e27f
MB
15551
15552int main() {
6a30f1c8
MB
15553
15554 XmString string = NULL;
15555 Widget w = NULL;
15556 int position = 0;
15557 XmListAddItem(w, string, position);
a0b9e27f
MB
15558
15559; return 0; }
15560EOF
82d43113 15561if { (eval echo configure:15562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15562 rm -rf conftest*
15563
6a30f1c8
MB
15564 libp_link="$libp"
15565 libsm_ice_link="$libsm_ice"
a0b9e27f 15566 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15567 libs_found=1
a0b9e27f 15568
6a30f1c8 15569else
a0b9e27f
MB
15570 echo "configure: failed program was:" >&5
15571 cat conftest.$ac_ext >&5
15572 rm -rf conftest*
15573
15574
6a30f1c8 15575fi
a0b9e27f 15576rm -f conftest*
dd0e4a90 15577
6a30f1c8 15578 LIBS="$save_LIBS"
dd0e4a90 15579 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15580 fi
15581 done
15582 fi
15583 done
15584
15585 if test "$libs_found" = "0"; then
a0b9e27f
MB
15586 echo "$ac_t""can't find the right libraries" 1>&6
15587 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15588 fi
15589
15590 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
15591 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15592 TOOLKIT=MOTIF
15593 GUIDIST=MOTIF_DIST
15594 fi
15595
15596 if test "$wxUSE_MAC" = 1; then
0c98a14e 15597 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15598
0c98a14e 15599 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15600 TOOLKIT=MAC
15601 GUIDIST=MACX_DIST
15602 fi
15603
15604 if test "$wxUSE_PM" = 1; then
15605 TOOLKIT=PM
15606 GUIDIST=GTK_DIST
2b5f62a0 15607 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
f657dbe7
MB
15608 wxUSE_PROLOGIO="yes"
15609 wxUSE_RESOURCES="yes"
2b5f62a0 15610 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15611 wxUSE_THREADS="no"
21d1c967
GD
15612 fi
15613
15614 if test "$TOOLKIT" = "PM" ; then
15615 TOOLKIT_DIR="os2"
15616 else
15617 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15618 fi
15619
15620 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15621
15622 if test "$wxUSE_UNIVERSAL" = "yes"; then
15623 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15624
15625 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15626 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15627
15628 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15629 if test "$wxUSE_X11" = 1; then
15630 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15631 else
15632 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15633 fi
15634 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15635 WIDGET_SET=univ
15636 else
15637 ALL_OBJECTS="\$(GUIOBJS)"
15638 ALL_SOURCES="\$(ALL_SOURCES)"
15639 ALL_HEADERS="\$(ALL_HEADERS)"
15640 fi
15641
15642 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15643
15644 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15645 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15646 fi
15647
15648 if test "$wxUSE_HTML" = "yes"; then
15649 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15650 fi
15651
15652 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15653 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15654 fi
15655 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15656 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15657 fi
15658 if test "$wxUSE_LIBPNG" = "builtin" ; then
15659 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15660 fi
15661
15662 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15663 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15664else
21d1c967
GD
15665 USE_GUI=0
15666
15667 TOOLKIT_DIR="base"
15668
15669 if test "$USE_WIN32" = 1 ; then
15670 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15671 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15672
15673 TOOLKIT="MSW"
15674 else
15675 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15676 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15677 fi
15678
15679 ALL_SOURCES="\$(ALL_SOURCES)"
15680 ALL_HEADERS="\$(ALL_HEADERS)"
15681
15682 PORT_FILES="\${top_srcdir}/src/files.lst"
15683
15684 GUIDIST="BASE_DIST"
15685 DISTDIR="wxBase"
d836ee96
VZ
15686fi
15687
8284b0c5 15688
21d1c967
GD
15689if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15690 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15691fi
21d1c967
GD
15692
15693if test "$wxUSE_REGEX" = "builtin" ; then
15694 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15695fi
21d1c967
GD
15696if test "$wxUSE_ZLIB" = "builtin" ; then
15697 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15698fi
15699
8284b0c5 15700
21d1c967
GD
15701if test "$wxUSE_OPENGL" = "yes"; then
15702 if test "$wxUSE_MAC" = 1; then
15703 OPENGL_LIBS="-framework OpenGL -framework AGL"
15704 elif test "$wxUSE_MSW" = 1; then
15705 OPENGL_LIBS="-lopengl32 -lglu32"
15706 else
a0b9e27f
MB
15707 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15708echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
82d43113 15709echo "configure:15710: checking for GL/gl.h" >&5
a0b9e27f
MB
15710if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15711 echo $ac_n "(cached) $ac_c" 1>&6
15712else
15713 cat > conftest.$ac_ext <<EOF
82d43113 15714#line 15715 "configure"
10f2d63a 15715#include "confdefs.h"
21d1c967 15716#include <GL/gl.h>
a0b9e27f
MB
15717EOF
15718ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 15719{ (eval echo configure:15720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15720ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15721if test -z "$ac_err"; then
15722 rm -rf conftest*
15723 eval "ac_cv_header_$ac_safe=yes"
15724else
15725 echo "$ac_err" >&5
15726 echo "configure: failed program was:" >&5
698dcdb6 15727 cat conftest.$ac_ext >&5
a0b9e27f
MB
15728 rm -rf conftest*
15729 eval "ac_cv_header_$ac_safe=no"
703e0a69 15730fi
a0b9e27f 15731rm -f conftest*
698dcdb6 15732fi
a0b9e27f
MB
15733if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15734 echo "$ac_t""yes" 1>&6
15735
15736 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
82d43113 15737echo "configure:15738: checking for -lGL" >&5
a0b9e27f 15738
21d1c967 15739ac_find_libraries=
2b5f62a0 15740for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15741 do
15742 for ac_extension in a so sl dylib; do
15743 if test -f "$ac_dir/libGL.$ac_extension"; then
15744 ac_find_libraries=$ac_dir
15745 break 2
15746 fi
15747 done
15748 done
15749
15750 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15751
21d1c967
GD
15752 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15753 result=$?
15754 if test $result = 0; then
15755 ac_path_to_link=""
15756 else
15757 ac_path_to_link=" -L$ac_find_libraries"
15758 fi
15759
15760 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15761 LDFLAGS_GL="$LDFLAGS"
15762 else
15763 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15764 fi
15765 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15766 echo "$ac_t""yes" 1>&6
21d1c967 15767 else
a0b9e27f
MB
15768 echo "$ac_t""no" 1>&6
15769 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
82d43113 15770echo "configure:15771: checking for -lMesaGL" >&5
a0b9e27f 15771
21d1c967 15772ac_find_libraries=
2b5f62a0 15773for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15774 do
15775 for ac_extension in a so sl dylib; do
15776 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15777 ac_find_libraries=$ac_dir
15778 break 2
15779 fi
15780 done
15781 done
15782
15783 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15784
21d1c967
GD
15785 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15786 result=$?
15787 if test $result = 0; then
15788 ac_path_to_link=""
15789 else
15790 ac_path_to_link=" -L$ac_find_libraries"
15791 fi
15792
15793 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15794 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15795 echo "$ac_t""yes" 1>&6
21d1c967 15796 else
a0b9e27f 15797 echo "$ac_t""no" 1>&6
21d1c967
GD
15798 fi
15799 fi
a0b9e27f
MB
15800
15801else
15802 echo "$ac_t""no" 1>&6
5c6fa7d2 15803fi
52127426 15804
8284b0c5 15805
21d1c967 15806 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15807 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15808 fi
15809 fi
90dd450c 15810
21d1c967 15811 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15812 cat >> confdefs.h <<\EOF
21d1c967 15813#define wxUSE_OPENGL 1
a0b9e27f 15814EOF
21d1c967 15815
a0b9e27f 15816 cat >> confdefs.h <<\EOF
21d1c967 15817#define wxUSE_GLCANVAS 1
a0b9e27f 15818EOF
21d1c967
GD
15819
15820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15821 fi
10f2d63a 15822fi
21d1c967
GD
15823
15824if test -z "$TOOLKIT_VPATH" ; then
15825 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15826fi
21d1c967
GD
15827
15828if test -n "$TOOLKIT" ; then
15829 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15830fi
15831
15832lib_unicode_suffix=
15833if test "$wxUSE_UNICODE" = "yes"; then
15834 lib_unicode_suffix=u
90dd450c 15835fi
698dcdb6 15836
21d1c967
GD
15837lib_debug_suffix=
15838if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15839 lib_debug_suffix=d
15840fi
698dcdb6 15841
2b5f62a0
VZ
15842WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15843
15844TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15845TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15846
15847if test "$cross_compiling" = "yes"; then
15848 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15849 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15850fi
15851
15852WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15853WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15854WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15855
15856WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15857WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15858
15859WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15860WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15861WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15862WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15863
15864case "${host}" in
15865 *-*-cygwin* | *-*-mingw32* )
15866
a0b9e27f
MB
15867
15868
17234b26 15869 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15870 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15871 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15872 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15873 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15874 else
15875 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15876 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15877 fi
15878 ;;
15879
15880 *-*-darwin* )
0c98a14e 15881
05159a27
GD
15882 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15883 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15884
15885 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15886 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15887 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15888 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15889
21d1c967 15890 if test "$wxUSE_MAC" = 1; then
f346733b
GD
15891 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15892 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
15893 fi
15894 ;;
15895esac
15896
15897WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15898WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15899
15900WXCONFIG_LIBS="-l${WX_LIBRARY}"
15901WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15902
15903if test "$wxUSE_OPENGL" = "yes"; then
15904 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15905 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15906fi
15907
8284b0c5
MB
15908
15909
21d1c967
GD
15910if test "$wxUSE_SHARED" = "yes"; then
15911 case "${host}" in
15912 *-pc-os2_emx | *-pc-os2-emx | \
15913 *-pc-msdosdjgpp )
15914 wxUSE_SHARED=no
a0b9e27f 15915 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15916 ;;
15917 esac
15918fi
15919
2b5f62a0
VZ
15920if test "$wxUSE_SHARED" = "yes"; then
15921
15922 if test "$wxUSE_OPENGL" = "yes"; then
15923 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15924 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15925 else
15926 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15927 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15928 fi
15929
15930 if test "$GCC" = "yes"; then
15931 PIC_FLAG="-fPIC"
15932 fi
15933
15934
15935
15936 found_versioning=no
15937
b4eecb7e 15938
2b5f62a0
VZ
15939 if test $found_versioning = no ; then
15940 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
82d43113 15941echo "configure:15942: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
15942if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15943 echo $ac_n "(cached) $ac_c" 1>&6
15944else
15945
15946 echo "VER_1 { *; };" >conftest.sym
15947 echo "int main() { return 0; }" >conftest.cpp
15948
15949 if { ac_try='
15950 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
82d43113 15951 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
15952 if test -s conftest.stderr ; then
15953 wx_cv_version_script=no
15954 else
15955 wx_cv_version_script=yes
15956 fi
15957 else
15958 wx_cv_version_script=no
15959 fi
15960 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15961
15962fi
15963
15964echo "$ac_t""$wx_cv_version_script" 1>&6
15965 if test $wx_cv_version_script = yes ; then
15966 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15967 fi
15968 fi
21d1c967 15969
21d1c967
GD
15970
15971 SHARED_LD="${CXX} -shared -o"
15972
15973 case "${host}" in
15974 *-hp-hpux* )
ad2622f1 15975 if test "$GCC" = "yes"; then
85d5e282 15976 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
15977 else
15978 LDFLAGS="$LDFLAGS -L/usr/lib"
15979
15980 SHARED_LD="${CXX} -b -o"
15981 PIC_FLAG="+Z"
15982 fi
15983
15984 if test "$wxUSE_OPENGL" = "yes"; then
15985 WX_ALL_INSTALLED="preinstall_gl"
15986 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15987 else
15988 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15989 fi
15990 ;;
15991
15992 *-*-linux* )
15993 if test "$GCC" != "yes"; then
a0b9e27f 15994 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
82d43113 15995echo "configure:15996: checking for Intel compiler" >&5
a0b9e27f
MB
15996if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15998else
15999
16000 cat > conftest.$ac_ext <<EOF
82d43113 16001#line 16002 "configure"
698dcdb6 16002#include "confdefs.h"
90dd450c 16003
a0b9e27f 16004int main() {
90dd450c 16005
21d1c967
GD
16006 #ifndef __INTEL_COMPILER
16007 #error Not icc
16008 #endif
a0b9e27f
MB
16009
16010; return 0; }
16011EOF
82d43113 16012if { (eval echo configure:16013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16013 rm -rf conftest*
21d1c967 16014 wx_cv_prog_icc=yes
6232543b 16015else
a0b9e27f
MB
16016 echo "configure: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16018 rm -rf conftest*
16019 wx_cv_prog_icc=no
16020
5c6fa7d2 16021fi
a0b9e27f
MB
16022rm -f conftest*
16023
247f5006 16024fi
a0b9e27f
MB
16025
16026echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16027 if test "$wx_cv_prog_icc" = "yes"; then
16028 PIC_FLAG="-KPIC"
16029 fi
16030 fi
16031
16032 if test "$wxUSE_SONAME" = "yes" ; then
16033 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16034 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16035 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16036 fi
16037 ;;
16038
16039 *-*-solaris2* )
16040 if test "$GCC" = yes ; then
16041 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16042 else
16043 SHARED_LD="${CXX} -G -o"
16044 PIC_FLAG="-KPIC"
16045 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16046 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16047 fi
16048 ;;
16049
16050 *-*-darwin* )
b2fee376
GD
16051 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16052 CFLAGS="$CFLAGS -fno-common"
16053 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16054 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16055 PIC_FLAG="-dynamic -fPIC"
f346733b 16056 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16057 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16058 ;;
16059
16060 *-*-aix* )
2b5f62a0
VZ
16061 if test "$GCC" != "yes"; then
16062 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16063set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 16065echo "configure:16066: checking for $ac_word" >&5
a0b9e27f
MB
16066if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16068else
16069 if test -n "$AIX_CXX_LD"; then
16070 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16071else
a0b9e27f
MB
16072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16073 ac_dummy="$PATH"
16074 for ac_dir in $ac_dummy; do
16075 test -z "$ac_dir" && ac_dir=.
16076 if test -f $ac_dir/$ac_word; then
16077 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16078 break
16079 fi
16080 done
16081 IFS="$ac_save_ifs"
321d2b14
VZ
16082 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16083fi
16084fi
a0b9e27f 16085AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16086if test -n "$AIX_CXX_LD"; then
a0b9e27f 16087 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16088else
a0b9e27f 16089 echo "$ac_t""no" 1>&6
321d2b14
VZ
16090fi
16091
8284b0c5 16092
2b5f62a0
VZ
16093 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16094 fi
21d1c967
GD
16095 ;;
16096
16097 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16098 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16099
16100 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16101 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16102
16103 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16104
f657dbe7
MB
16105 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16106 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16107
16108 if test "$wxUSE_OPENGL" = "yes"; then
16109 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16110 fi
16111 ;;
16112
16113 *-*-beos* )
16114 SHARED_LD="${LD} -shared -o"
16115 ;;
16116
2b5f62a0
VZ
16117 *-*-irix* )
16118 if test "$GCC" != "yes"; then
16119 PIC_FLAG="-KPIC"
16120 fi
16121 ;;
16122
21d1c967
GD
16123 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16124 *-*-sunos4* | \
21d1c967
GD
16125 *-*-osf* | \
16126 *-*-dgux5* | \
16127 *-*-sysv5* )
16128 ;;
16129
16130 *)
a0b9e27f 16131 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16132 esac
16133
16134 if test "x$WX_TARGET_LIBRARY" = "x"; then
16135 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16136 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16137 fi
16138
16139 WX_TARGET_LIBRARY_TYPE="so"
16140 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16141fi
10f2d63a 16142
21d1c967
GD
16143if test "$wxUSE_SHARED" = "no"; then
16144
16145 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16146 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16147 fi
16148
16149 if test "$wxUSE_MAC" = 1; then
16150 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16151 fi
16152
16153 if test "$wxUSE_OPENGL" = "yes"; then
16154 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16155 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16156 else
16157 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16158 fi
16159
16160 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16161 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16162
16163 WX_TARGET_LIBRARY_TYPE="a"
16164 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16165
16166 STATIC_FLAG="yes"
16167else
16168 STATIC_FLAG="no"
90dd450c 16169fi
1e487827 16170
36825681
GD
16171MACRESCOMP="#"
16172MACSETFILE="#"
16173MACRESWXCONFIG="#"
21d1c967
GD
16174if test "$wxUSE_MAC" = 1; then
16175 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16176 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16177 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16178 # Extract the first word of "Rez", so it can be a program name with args.
16179set dummy Rez; ac_word=$2
a0b9e27f 16180echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 16181echo "configure:16182: checking for $ac_word" >&5
a0b9e27f
MB
16182if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16183 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16184else
21d1c967
GD
16185 if test -n "$RESCOMP"; then
16186 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16187else
a0b9e27f
MB
16188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16189 ac_dummy="$PATH"
16190 for ac_dir in $ac_dummy; do
16191 test -z "$ac_dir" && ac_dir=.
16192 if test -f $ac_dir/$ac_word; then
16193 ac_cv_prog_RESCOMP="Rez"
16194 break
16195 fi
16196 done
16197 IFS="$ac_save_ifs"
21d1c967 16198 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16199fi
b93d0d08 16200fi
a0b9e27f 16201RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16202if test -n "$RESCOMP"; then
a0b9e27f 16203 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16204else
a0b9e27f 16205 echo "$ac_t""no" 1>&6
90dd450c 16206fi
b93d0d08 16207
21d1c967
GD
16208 # Extract the first word of "DeRez", so it can be a program name with args.
16209set dummy DeRez; ac_word=$2
a0b9e27f 16210echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 16211echo "configure:16212: checking for $ac_word" >&5
a0b9e27f
MB
16212if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16213 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16214else
21d1c967
GD
16215 if test -n "$DEREZ"; then
16216 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16217else
a0b9e27f
MB
16218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16219 ac_dummy="$PATH"
16220 for ac_dir in $ac_dummy; do
16221 test -z "$ac_dir" && ac_dir=.
16222 if test -f $ac_dir/$ac_word; then
16223 ac_cv_prog_DEREZ="DeRez"
16224 break
16225 fi
16226 done
16227 IFS="$ac_save_ifs"
21d1c967 16228 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16229fi
90dd450c 16230fi
a0b9e27f 16231DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16232if test -n "$DEREZ"; then
a0b9e27f 16233 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16234else
a0b9e27f 16235 echo "$ac_t""no" 1>&6
3a922bb4 16236fi
698dcdb6 16237
36825681
GD
16238 # Extract the first word of "SetFile", so it can be a program name with args.
16239set dummy SetFile; ac_word=$2
16240echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82d43113 16241echo "configure:16242: checking for $ac_word" >&5
36825681
GD
16242if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16243 echo $ac_n "(cached) $ac_c" 1>&6
16244else
16245 if test -n "$SETFILE"; then
16246 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16247else
16248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16249 ac_dummy="$PATH"
16250 for ac_dir in $ac_dummy; do
16251 test -z "$ac_dir" && ac_dir=.
16252 if test -f $ac_dir/$ac_word; then
16253 ac_cv_prog_SETFILE="SetFile"
16254 break
16255 fi
16256 done
16257 IFS="$ac_save_ifs"
16258 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16259fi
16260fi
16261SETFILE="$ac_cv_prog_SETFILE"
16262if test -n "$SETFILE"; then
16263 echo "$ac_t""$SETFILE" 1>&6
16264else
16265 echo "$ac_t""no" 1>&6
16266fi
16267
21d1c967 16268 MACOSX_BUNDLE="bundle"
36825681
GD
16269 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16270 MACSETFILE="\$(SETFILE)"
16271 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16272else
16273 if test "$wxUSE_PM" = 1; then
36825681 16274 MACRESCOMP="emxbind -ep"
90dd450c 16275 fi
4f14bcd8 16276fi
10f2d63a 16277
8284b0c5 16278
a0b9e27f 16279echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
82d43113 16280echo "configure:16281: checking for ANSI C header files" >&5
a0b9e27f
MB
16281if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16282 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16283else
a0b9e27f 16284 cat > conftest.$ac_ext <<EOF
82d43113 16285#line 16286 "configure"
52127426 16286#include "confdefs.h"
a0b9e27f
MB
16287#include <stdlib.h>
16288#include <stdarg.h>
16289#include <string.h>
16290#include <float.h>
16291EOF
16292ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 16293{ (eval echo configure:16294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16294ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16295if test -z "$ac_err"; then
16296 rm -rf conftest*
16297 ac_cv_header_stdc=yes
16298else
16299 echo "$ac_err" >&5
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16302 rm -rf conftest*
16303 ac_cv_header_stdc=no
16304fi
16305rm -f conftest*
16306
16307if test $ac_cv_header_stdc = yes; then
16308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16309cat > conftest.$ac_ext <<EOF
82d43113 16310#line 16311 "configure"
a0b9e27f
MB
16311#include "confdefs.h"
16312#include <string.h>
16313EOF
16314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 egrep "memchr" >/dev/null 2>&1; then
16316 :
16317else
16318 rm -rf conftest*
16319 ac_cv_header_stdc=no
16320fi
16321rm -f conftest*
16322
16323fi
16324
16325if test $ac_cv_header_stdc = yes; then
16326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16327cat > conftest.$ac_ext <<EOF
82d43113 16328#line 16329 "configure"
a0b9e27f
MB
16329#include "confdefs.h"
16330#include <stdlib.h>
16331EOF
16332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16333 egrep "free" >/dev/null 2>&1; then
16334 :
7b4a847f 16335else
a0b9e27f
MB
16336 rm -rf conftest*
16337 ac_cv_header_stdc=no
52127426 16338fi
a0b9e27f
MB
16339rm -f conftest*
16340
52127426 16341fi
a0b9e27f
MB
16342
16343if test $ac_cv_header_stdc = yes; then
16344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16345if test "$cross_compiling" = yes; then
247f5006
VZ
16346 :
16347else
a0b9e27f 16348 cat > conftest.$ac_ext <<EOF
82d43113 16349#line 16350 "configure"
a0b9e27f
MB
16350#include "confdefs.h"
16351#include <ctype.h>
16352#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16353#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16354#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16355int main () { int i; for (i = 0; i < 256; i++)
16356if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16357exit (0); }
247f5006 16358
a0b9e27f 16359EOF
82d43113 16360if { (eval echo configure:16361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16361then
16362 :
16363else
16364 echo "configure: failed program was:" >&5
16365 cat conftest.$ac_ext >&5
16366 rm -fr conftest*
16367 ac_cv_header_stdc=no
16368fi
16369rm -fr conftest*
16370fi
16371
16372fi
16373fi
16374
16375echo "$ac_t""$ac_cv_header_stdc" 1>&6
16376if test $ac_cv_header_stdc = yes; then
16377 cat >> confdefs.h <<\EOF
16378#define STDC_HEADERS 1
16379EOF
8284b0c5
MB
16380
16381fi
16382
a0b9e27f 16383echo $ac_n "checking for mode_t""... $ac_c" 1>&6
82d43113 16384echo "configure:16385: checking for mode_t" >&5
a0b9e27f
MB
16385if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16386 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16387else
a0b9e27f 16388 cat > conftest.$ac_ext <<EOF
82d43113 16389#line 16390 "configure"
8284b0c5 16390#include "confdefs.h"
a0b9e27f
MB
16391#include <sys/types.h>
16392#if STDC_HEADERS
16393#include <stdlib.h>
16394#include <stddef.h>
8284b0c5 16395#endif
a0b9e27f
MB
16396EOF
16397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16398 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16399 rm -rf conftest*
16400 ac_cv_type_mode_t=yes
5c6fa7d2 16401else
a0b9e27f
MB
16402 rm -rf conftest*
16403 ac_cv_type_mode_t=no
16404fi
16405rm -f conftest*
16406
8284b0c5 16407fi
a0b9e27f
MB
16408echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16409if test $ac_cv_type_mode_t = no; then
16410 cat >> confdefs.h <<\EOF
16411#define mode_t int
16412EOF
16413
8284b0c5 16414fi
a0b9e27f
MB
16415
16416echo $ac_n "checking for off_t""... $ac_c" 1>&6
82d43113 16417echo "configure:16418: checking for off_t" >&5
a0b9e27f
MB
16418if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16419 echo $ac_n "(cached) $ac_c" 1>&6
16420else
16421 cat > conftest.$ac_ext <<EOF
82d43113 16422#line 16423 "configure"
a0b9e27f
MB
16423#include "confdefs.h"
16424#include <sys/types.h>
16425#if STDC_HEADERS
16426#include <stdlib.h>
16427#include <stddef.h>
16428#endif
16429EOF
16430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16431 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16432 rm -rf conftest*
16433 ac_cv_type_off_t=yes
247f5006 16434else
a0b9e27f
MB
16435 rm -rf conftest*
16436 ac_cv_type_off_t=no
16437fi
16438rm -f conftest*
247f5006 16439
a0b9e27f
MB
16440fi
16441echo "$ac_t""$ac_cv_type_off_t" 1>&6
16442if test $ac_cv_type_off_t = no; then
16443 cat >> confdefs.h <<\EOF
90dd450c 16444#define off_t long
a0b9e27f 16445EOF
10f2d63a 16446
90dd450c 16447fi
10f2d63a 16448
a0b9e27f 16449echo $ac_n "checking for pid_t""... $ac_c" 1>&6
82d43113 16450echo "configure:16451: checking for pid_t" >&5
a0b9e27f
MB
16451if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16452 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16453else
a0b9e27f 16454 cat > conftest.$ac_ext <<EOF
82d43113 16455#line 16456 "configure"
10f2d63a 16456#include "confdefs.h"
a0b9e27f
MB
16457#include <sys/types.h>
16458#if STDC_HEADERS
16459#include <stdlib.h>
16460#include <stddef.h>
8284b0c5 16461#endif
a0b9e27f
MB
16462EOF
16463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16464 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16465 rm -rf conftest*
90dd450c 16466 ac_cv_type_pid_t=yes
698dcdb6 16467else
a0b9e27f
MB
16468 rm -rf conftest*
16469 ac_cv_type_pid_t=no
8284b0c5 16470fi
a0b9e27f 16471rm -f conftest*
247f5006 16472
a0b9e27f
MB
16473fi
16474echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16475if test $ac_cv_type_pid_t = no; then
16476 cat >> confdefs.h <<\EOF
90dd450c 16477#define pid_t int
a0b9e27f 16478EOF
10f2d63a 16479
7b4a847f
RR
16480fi
16481
a0b9e27f 16482echo $ac_n "checking for size_t""... $ac_c" 1>&6
82d43113 16483echo "configure:16484: checking for size_t" >&5
a0b9e27f
MB
16484if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16485 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16486else
a0b9e27f 16487 cat > conftest.$ac_ext <<EOF
82d43113 16488#line 16489 "configure"
7b4a847f 16489#include "confdefs.h"
a0b9e27f
MB
16490#include <sys/types.h>
16491#if STDC_HEADERS
16492#include <stdlib.h>
16493#include <stddef.h>
8284b0c5 16494#endif
a0b9e27f
MB
16495EOF
16496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16497 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16498 rm -rf conftest*
90dd450c 16499 ac_cv_type_size_t=yes
18dbb1f6 16500else
a0b9e27f
MB
16501 rm -rf conftest*
16502 ac_cv_type_size_t=no
52127426 16503fi
a0b9e27f 16504rm -f conftest*
247f5006 16505
a0b9e27f
MB
16506fi
16507echo "$ac_t""$ac_cv_type_size_t" 1>&6
16508if test $ac_cv_type_size_t = no; then
16509 cat >> confdefs.h <<\EOF
90dd450c 16510#define size_t unsigned
a0b9e27f 16511EOF
90dd450c
VZ
16512
16513fi
16514
a0b9e27f 16515echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
82d43113 16516echo "configure:16517: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16517if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16518 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16519else
a0b9e27f 16520 cat > conftest.$ac_ext <<EOF
82d43113 16521#line 16522 "configure"
b3e8d00a 16522#include "confdefs.h"
90dd450c 16523#include <sys/types.h>
a0b9e27f 16524EOF
90dd450c
VZ
16525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16527 rm -rf conftest*
90dd450c 16528 ac_cv_type_uid_t=yes
b3e8d00a 16529else
a0b9e27f 16530 rm -rf conftest*
90dd450c 16531 ac_cv_type_uid_t=no
b3e8d00a 16532fi
90dd450c 16533rm -f conftest*
b3e8d00a 16534
4f14bcd8 16535fi
247f5006 16536
a0b9e27f
MB
16537echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16538if test $ac_cv_type_uid_t = no; then
16539 cat >> confdefs.h <<\EOF
90dd450c 16540#define uid_t int
a0b9e27f 16541EOF
247f5006 16542
a0b9e27f 16543 cat >> confdefs.h <<\EOF
90dd450c 16544#define gid_t int
a0b9e27f 16545EOF
4f14bcd8 16546
b3e8d00a 16547fi
b3e8d00a 16548
8284b0c5
MB
16549
16550
a0b9e27f
MB
16551ac_ext=C
16552# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16553ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16554ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16555ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16556cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16557
a0b9e27f 16558echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
82d43113 16559echo "configure:16560: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16560if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16562else
a0b9e27f 16563 cat > conftest.$ac_ext <<EOF
82d43113 16564#line 16565 "configure"
10f2d63a 16565#include "confdefs.h"
90dd450c 16566#include <stddef.h>
a0b9e27f 16567int main() {
90dd450c
VZ
16568
16569 return 0; }
16570
16571 struct Foo { void foo(size_t); void foo(unsigned int); };
16572
16573 int bar() {
a0b9e27f
MB
16574
16575; return 0; }
16576EOF
82d43113 16577if { (eval echo configure:16578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16578 rm -rf conftest*
90dd450c 16579 wx_cv_size_t_is_uint=no
698dcdb6 16580else
a0b9e27f
MB
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 wx_cv_size_t_is_uint=yes
16585
5c6fa7d2 16586fi
a0b9e27f 16587rm -f conftest*
8284b0c5 16588
247f5006 16589fi
a0b9e27f
MB
16590
16591echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16592
90dd450c 16593if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16594 cat >> confdefs.h <<\EOF
90dd450c 16595#define wxSIZE_T_IS_UINT 1
a0b9e27f 16596EOF
698dcdb6 16597
90dd450c 16598else
a0b9e27f 16599 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
82d43113 16600echo "configure:16601: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16601if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16603else
a0b9e27f 16604 cat > conftest.$ac_ext <<EOF
82d43113 16605#line 16606 "configure"
10f2d63a 16606#include "confdefs.h"
90dd450c 16607#include <stddef.h>
a0b9e27f 16608int main() {
90dd450c
VZ
16609
16610 return 0; }
16611
16612 struct Foo { void foo(size_t); void foo(unsigned long); };
16613
16614 int bar() {
a0b9e27f
MB
16615
16616; return 0; }
16617EOF
82d43113 16618if { (eval echo configure:16619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16619 rm -rf conftest*
90dd450c 16620 wx_cv_size_t_is_ulong=no
698dcdb6 16621else
a0b9e27f
MB
16622 echo "configure: failed program was:" >&5
16623 cat conftest.$ac_ext >&5
16624 rm -rf conftest*
16625 wx_cv_size_t_is_ulong=yes
16626
5c6fa7d2 16627fi
a0b9e27f
MB
16628rm -f conftest*
16629
247f5006 16630fi
a0b9e27f
MB
16631
16632echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16633
90dd450c 16634 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16635 cat >> confdefs.h <<\EOF
90dd450c 16636#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16637EOF
4f14bcd8
GD
16638
16639 fi
90dd450c 16640fi
1e487827 16641
90dd450c 16642ac_ext=c
a0b9e27f 16643# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16644ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16645ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16646ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16647cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16648
5c6fa7d2 16649
8284b0c5 16650
a0b9e27f 16651echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
82d43113 16652echo "configure:16653: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16653if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16654 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16655else
a0b9e27f
MB
16656
16657 cat > conftest.$ac_ext <<EOF
82d43113 16658#line 16659 "configure"
4f14bcd8 16659#include "confdefs.h"
90dd450c 16660#include <pwd.h>
a0b9e27f 16661int main() {
f6bcfd97 16662
90dd450c
VZ
16663 char *p;
16664 struct passwd *pw;
16665 p = pw->pw_gecos;
a0b9e27f
MB
16666
16667; return 0; }
16668EOF
82d43113 16669if { (eval echo configure:16670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16670 rm -rf conftest*
16671
90dd450c 16672 wx_cv_struct_pw_gecos=yes
a0b9e27f 16673
10f2d63a 16674else
a0b9e27f
MB
16675 echo "configure: failed program was:" >&5
16676 cat conftest.$ac_ext >&5
16677 rm -rf conftest*
16678
90dd450c 16679 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16680
16681
5c6fa7d2 16682fi
a0b9e27f
MB
16683rm -f conftest*
16684
247f5006
VZ
16685
16686fi
a0b9e27f
MB
16687
16688echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16689
90dd450c 16690if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16691 cat >> confdefs.h <<\EOF
90dd450c 16692#define HAVE_PW_GECOS 1
a0b9e27f 16693EOF
c521c494 16694
90dd450c 16695fi
4f14bcd8 16696
8284b0c5 16697
d29b553b 16698if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16699 cat >> confdefs.h <<\EOF
d74f4b5a 16700#define wxUSE_WCHAR_T 1
a0b9e27f 16701EOF
d74f4b5a 16702
8284b0c5 16703
d74f4b5a
VZ
16704 WCSLEN_FOUND=0
16705 WCHAR_LINK=
a0b9e27f 16706 for ac_func in wcslen
7a30264c 16707do
a0b9e27f 16708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 16709echo "configure:16710: checking for $ac_func" >&5
a0b9e27f
MB
16710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712else
16713 cat > conftest.$ac_ext <<EOF
82d43113 16714#line 16715 "configure"
4f14bcd8 16715#include "confdefs.h"
7a30264c 16716/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16717 which can conflict with char $ac_func(); below. */
7a30264c 16718#include <assert.h>
4f14bcd8
GD
16719/* Override any gcc2 internal prototype to avoid an error. */
16720/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16721 builtin and then its argument prototype would still apply. */
16722char $ac_func();
16723
16724int main() {
16725
7a30264c
VZ
16726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730choke me
16731#else
a0b9e27f 16732$ac_func();
7a30264c
VZ
16733#endif
16734
a0b9e27f
MB
16735; return 0; }
16736EOF
82d43113 16737if { (eval echo configure:16738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16738 rm -rf conftest*
16739 eval "ac_cv_func_$ac_func=yes"
16740else
16741 echo "configure: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 rm -rf conftest*
16744 eval "ac_cv_func_$ac_func=no"
16745fi
16746rm -f conftest*
16747fi
16748
16749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16750 echo "$ac_t""yes" 1>&6
16751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16752 cat >> confdefs.h <<EOF
16753#define $ac_tr_func 1
16754EOF
d74f4b5a 16755 WCSLEN_FOUND=1
a0b9e27f
MB
16756else
16757 echo "$ac_t""no" 1>&6
7a30264c
VZ
16758fi
16759done
9d8deca0 16760
8284b0c5 16761
d74f4b5a 16762 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16763 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16764 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
82d43113 16765echo "configure:16766: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16766ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16767if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16769else
a0b9e27f 16770 ac_save_LIBS="$LIBS"
7a30264c 16771LIBS="-lmsvcrt $LIBS"
a0b9e27f 16772cat > conftest.$ac_ext <<EOF
82d43113 16773#line 16774 "configure"
10f2d63a 16774#include "confdefs.h"
4f14bcd8
GD
16775/* Override any gcc2 internal prototype to avoid an error. */
16776/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16777 builtin and then its argument prototype would still apply. */
16778char wcslen();
16779
16780int main() {
16781wcslen()
16782; return 0; }
16783EOF
82d43113 16784if { (eval echo configure:16785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16785 rm -rf conftest*
16786 eval "ac_cv_lib_$ac_lib_var=yes"
16787else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 eval "ac_cv_lib_$ac_lib_var=no"
16792fi
16793rm -f conftest*
16794LIBS="$ac_save_LIBS"
16795
16796fi
16797if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16798 echo "$ac_t""yes" 1>&6
d74f4b5a 16799 WCHAR_OK=1
a0b9e27f
MB
16800else
16801 echo "$ac_t""no" 1>&6
d29b553b 16802fi
698dcdb6 16803
7a30264c 16804 else
a0b9e27f 16805 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
82d43113 16806echo "configure:16807: checking for wcslen in -lw" >&5
a0b9e27f
MB
16807ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16808if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16809 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16810else
a0b9e27f 16811 ac_save_LIBS="$LIBS"
7a30264c 16812LIBS="-lw $LIBS"
a0b9e27f 16813cat > conftest.$ac_ext <<EOF
82d43113 16814#line 16815 "configure"
95c8801c 16815#include "confdefs.h"
4f14bcd8
GD
16816/* Override any gcc2 internal prototype to avoid an error. */
16817/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16818 builtin and then its argument prototype would still apply. */
16819char wcslen();
52127426 16820
a0b9e27f
MB
16821int main() {
16822wcslen()
16823; return 0; }
16824EOF
82d43113 16825if { (eval echo configure:16826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16826 rm -rf conftest*
16827 eval "ac_cv_lib_$ac_lib_var=yes"
16828else
16829 echo "configure: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16831 rm -rf conftest*
16832 eval "ac_cv_lib_$ac_lib_var=no"
16833fi
16834rm -f conftest*
16835LIBS="$ac_save_LIBS"
16836
16837fi
16838if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16839 echo "$ac_t""yes" 1>&6
16840
7a30264c 16841 WCHAR_LINK=" -lw"
d74f4b5a 16842 WCSLEN_FOUND=1
a0b9e27f
MB
16843
16844else
16845 echo "$ac_t""no" 1>&6
4f14bcd8 16846fi
10f2d63a 16847
7a30264c 16848 fi
d29b553b 16849 fi
95c8801c 16850
d74f4b5a 16851 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16852 cat >> confdefs.h <<\EOF
d74f4b5a 16853#define HAVE_WCSLEN 1
a0b9e27f 16854EOF
10f2d63a 16855
d74f4b5a 16856 fi
52127426 16857
a0b9e27f 16858 for ac_func in wcsrtombs
eb4efbdc 16859do
a0b9e27f 16860echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 16861echo "configure:16862: checking for $ac_func" >&5
a0b9e27f
MB
16862if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16864else
16865 cat > conftest.$ac_ext <<EOF
82d43113 16866#line 16867 "configure"
eb4efbdc
VZ
16867#include "confdefs.h"
16868/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16869 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16870#include <assert.h>
16871/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16872/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16873 builtin and then its argument prototype would still apply. */
16874char $ac_func();
16875
16876int main() {
16877
10f2d63a
VZ
16878/* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
247f5006 16881#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16882choke me
16883#else
a0b9e27f 16884$ac_func();
10f2d63a
VZ
16885#endif
16886
a0b9e27f
MB
16887; return 0; }
16888EOF
82d43113 16889if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16890 rm -rf conftest*
16891 eval "ac_cv_func_$ac_func=yes"
16892else
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 rm -rf conftest*
16896 eval "ac_cv_func_$ac_func=no"
16897fi
16898rm -f conftest*
16899fi
270a909e 16900
a0b9e27f
MB
16901if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16902 echo "$ac_t""yes" 1>&6
16903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16904 cat >> confdefs.h <<EOF
16905#define $ac_tr_func 1
16906EOF
16907
16908else
16909 echo "$ac_t""no" 1>&6
4f14bcd8 16910fi
247f5006 16911done
1e487827 16912
af15babd 16913else
a0b9e27f 16914 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16915fi
52127426 16916
8284b0c5 16917
a0b9e27f
MB
16918ac_ext=C
16919# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16920ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16921ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16922ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16923cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16924
247f5006
VZ
16925
16926for ac_func in vsnprintf
16927do
a0b9e27f 16928echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 16929echo "configure:16930: checking for $ac_func" >&5
a0b9e27f
MB
16930if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16931 echo $ac_n "(cached) $ac_c" 1>&6
16932else
16933 cat > conftest.$ac_ext <<EOF
82d43113 16934#line 16935 "configure"
af15babd 16935#include "confdefs.h"
247f5006 16936/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16937 which can conflict with char $ac_func(); below. */
247f5006
VZ
16938#include <assert.h>
16939/* Override any gcc2 internal prototype to avoid an error. */
16940#ifdef __cplusplus
16941extern "C"
16942#endif
16943/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16944 builtin and then its argument prototype would still apply. */
16945char $ac_func();
16946
16947int main() {
16948
247f5006
VZ
16949/* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16953choke me
16954#else
a0b9e27f 16955$ac_func();
247f5006 16956#endif
af15babd 16957
a0b9e27f
MB
16958; return 0; }
16959EOF
82d43113 16960if { (eval echo configure:16961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16961 rm -rf conftest*
16962 eval "ac_cv_func_$ac_func=yes"
16963else
16964 echo "configure: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16966 rm -rf conftest*
16967 eval "ac_cv_func_$ac_func=no"
16968fi
16969rm -f conftest*
16970fi
52127426 16971
a0b9e27f
MB
16972if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16973 echo "$ac_t""yes" 1>&6
16974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16975 cat >> confdefs.h <<EOF
16976#define $ac_tr_func 1
16977EOF
16978
16979else
16980 echo "$ac_t""no" 1>&6
5c6fa7d2 16981fi
247f5006 16982done
8284b0c5 16983
4f14bcd8 16984
8d90d2f2
VZ
16985if test "$ac_cv_func_vsnprintf" = "yes"; then
16986 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
82d43113 16987echo "configure:16988: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
16988if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16989 echo $ac_n "(cached) $ac_c" 1>&6
16990else
16991
16992 cat > conftest.$ac_ext <<EOF
82d43113 16993#line 16994 "configure"
8d90d2f2
VZ
16994#include "confdefs.h"
16995
16996 #include <stdio.h>
16997 #include <stdarg.h>
16998
16999int main() {
17000
17001 char *buf;
17002 va_list ap;
17003 vsnprintf(buf, 10u, "%s", ap);
17004
17005; return 0; }
17006EOF
82d43113 17007if { (eval echo configure:17008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17008 rm -rf conftest*
17009 wx_cv_func_vsnprintf_decl=yes
17010else
17011 echo "configure: failed program was:" >&5
17012 cat conftest.$ac_ext >&5
17013 rm -rf conftest*
17014 wx_cv_func_vsnprintf_decl=no
17015
17016fi
17017rm -f conftest*
17018
17019
17020fi
17021
17022echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17023
17024 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17025 cat >> confdefs.h <<\EOF
17026#define HAVE_VSNPRINTF_DECL 1
17027EOF
17028
17029 fi
17030fi
17031
247f5006 17032if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17033 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17034do
a0b9e27f 17035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17036echo "configure:17037: checking for $ac_func" >&5
a0b9e27f
MB
17037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17038 echo $ac_n "(cached) $ac_c" 1>&6
17039else
17040 cat > conftest.$ac_ext <<EOF
82d43113 17041#line 17042 "configure"
d74f4b5a
VZ
17042#include "confdefs.h"
17043/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17044 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17045#include <assert.h>
17046/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17047#ifdef __cplusplus
17048extern "C"
17049#endif
d74f4b5a 17050/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17051 builtin and then its argument prototype would still apply. */
17052char $ac_func();
17053
17054int main() {
17055
d74f4b5a
VZ
17056/* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17060choke me
17061#else
a0b9e27f 17062$ac_func();
d74f4b5a
VZ
17063#endif
17064
a0b9e27f
MB
17065; return 0; }
17066EOF
82d43113 17067if { (eval echo configure:17068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17068 rm -rf conftest*
17069 eval "ac_cv_func_$ac_func=yes"
17070else
17071 echo "configure: failed program was:" >&5
17072 cat conftest.$ac_ext >&5
17073 rm -rf conftest*
17074 eval "ac_cv_func_$ac_func=no"
17075fi
17076rm -f conftest*
17077fi
d74f4b5a 17078
a0b9e27f
MB
17079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17080 echo "$ac_t""yes" 1>&6
17081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17082 cat >> confdefs.h <<EOF
17083#define $ac_tr_func 1
17084EOF
17085
17086else
17087 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17088fi
17089done
17090
8d90d2f2 17091
79668cae 17092 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
82d43113 17093echo "configure:17094: checking for _vsnwprintf" >&5
79668cae 17094 cat > conftest.$ac_ext <<EOF
82d43113 17095#line 17096 "configure"
79668cae
MB
17096#include "confdefs.h"
17097#include <wchar.h>
17098int main() {
17099&_vsnwprintf;
17100; return 0; }
17101EOF
82d43113 17102if { (eval echo configure:17103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17103 rm -rf conftest*
17104 echo "$ac_t""yes" 1>&6
17105 cat >> confdefs.h <<\EOF
17106#define HAVE__VSNWPRINTF 1
17107EOF
17108
17109else
17110 echo "configure: failed program was:" >&5
17111 cat conftest.$ac_ext >&5
17112 rm -rf conftest*
17113 echo "$ac_t""no" 1>&6
17114fi
17115rm -f conftest*;
d74f4b5a
VZ
17116fi
17117
247f5006 17118ac_ext=c
a0b9e27f 17119# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17120ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17121ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17122ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17123cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17124
17125
17126
17127
4f14bcd8 17128if test "$TOOLKIT" != "MSW"; then
af15babd 17129
8284b0c5
MB
17130
17131
a0b9e27f
MB
17132ac_ext=C
17133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17134ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17138
52127426 17139
a0b9e27f
MB
17140
17141 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17142if test "${with_libiconv_prefix+set}" = set; then
17143 withval="$with_libiconv_prefix"
a0b9e27f 17144
b040e242
VS
17145 for dir in `echo "$withval" | tr : ' '`; do
17146 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17147 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17148 done
a0b9e27f
MB
17149
17150fi
b040e242
VS
17151
17152
a0b9e27f 17153 echo $ac_n "checking for iconv""... $ac_c" 1>&6
82d43113 17154echo "configure:17155: checking for iconv" >&5
a0b9e27f
MB
17155if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17156 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17157else
a0b9e27f 17158
b040e242
VS
17159 am_cv_func_iconv="no, consider installing GNU libiconv"
17160 am_cv_lib_iconv=no
a0b9e27f 17161 cat > conftest.$ac_ext <<EOF
82d43113 17162#line 17163 "configure"
af15babd 17163#include "confdefs.h"
b040e242 17164#include <stdlib.h>
4f14bcd8 17165#include <iconv.h>
a0b9e27f 17166int main() {
b040e242
VS
17167iconv_t cd = iconv_open("","");
17168 iconv(cd,NULL,NULL,NULL,NULL);
17169 iconv_close(cd);
a0b9e27f
MB
17170; return 0; }
17171EOF
82d43113 17172if { (eval echo configure:17173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17173 rm -rf conftest*
b040e242 17174 am_cv_func_iconv=yes
af15babd 17175else
a0b9e27f
MB
17176 echo "configure: failed program was:" >&5
17177 cat conftest.$ac_ext >&5
b040e242 17178fi
a0b9e27f 17179rm -f conftest*
b040e242
VS
17180 if test "$am_cv_func_iconv" != yes; then
17181 am_save_LIBS="$LIBS"
17182 LIBS="$LIBS -liconv"
a0b9e27f 17183 cat > conftest.$ac_ext <<EOF
82d43113 17184#line 17185 "configure"
b040e242
VS
17185#include "confdefs.h"
17186#include <stdlib.h>
17187#include <iconv.h>
a0b9e27f 17188int main() {
b040e242
VS
17189iconv_t cd = iconv_open("","");
17190 iconv(cd,NULL,NULL,NULL,NULL);
17191 iconv_close(cd);
a0b9e27f
MB
17192; return 0; }
17193EOF
82d43113 17194if { (eval echo configure:17195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17195 rm -rf conftest*
b040e242
VS
17196 am_cv_lib_iconv=yes
17197 am_cv_func_iconv=yes
17198else
a0b9e27f
MB
17199 echo "configure: failed program was:" >&5
17200 cat conftest.$ac_ext >&5
af15babd 17201fi
a0b9e27f 17202rm -f conftest*
b040e242
VS
17203 LIBS="$am_save_LIBS"
17204 fi
a0b9e27f 17205
247f5006 17206fi
247f5006 17207
a0b9e27f
MB
17208echo "$ac_t""$am_cv_func_iconv" 1>&6
17209 if test "$am_cv_func_iconv" = yes; then
17210 cat >> confdefs.h <<\EOF
b040e242 17211#define HAVE_ICONV 1
a0b9e27f 17212EOF
b040e242 17213
a0b9e27f 17214 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
82d43113 17215echo "configure:17216: checking if iconv needs const" >&5
a0b9e27f
MB
17216if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17218else
a0b9e27f 17219 cat > conftest.$ac_ext <<EOF
82d43113 17220#line 17221 "configure"
b040e242
VS
17221#include "confdefs.h"
17222
17223#include <stdlib.h>
17224#include <iconv.h>
17225extern
17226#ifdef __cplusplus
17227"C"
17228#endif
17229#if defined(__STDC__) || defined(__cplusplus)
17230size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17231#else
17232size_t iconv();
17233#endif
a0b9e27f
MB
17234
17235int main() {
af15babd 17236
a0b9e27f
MB
17237; return 0; }
17238EOF
82d43113 17239if { (eval echo configure:17240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17240 rm -rf conftest*
b7043674 17241 wx_cv_func_iconv_const="no"
b040e242 17242else
a0b9e27f
MB
17243 echo "configure: failed program was:" >&5
17244 cat conftest.$ac_ext >&5
17245 rm -rf conftest*
17246 wx_cv_func_iconv_const="yes"
17247
5c6fa7d2 17248fi
a0b9e27f
MB
17249rm -f conftest*
17250
247f5006 17251fi
a0b9e27f
MB
17252
17253echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17254
17255 iconv_const=
1c405bb5 17256 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17257 iconv_const="const"
17258 fi
17259
a0b9e27f 17260 cat >> confdefs.h <<EOF
f09359cf 17261#define ICONV_CONST $iconv_const
a0b9e27f 17262EOF
b040e242
VS
17263
17264 fi
17265 LIBICONV=
17266 if test "$am_cv_lib_iconv" = yes; then
17267 LIBICONV="-liconv"
17268 fi
a0b9e27f 17269
b040e242
VS
17270
17271LIBS="$LIBICONV $LIBS"
4f14bcd8 17272ac_ext=c
a0b9e27f 17273# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17274ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17275ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17276ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17277cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17278
5c6fa7d2 17279
8284b0c5 17280if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17281 for ac_func in sigaction
af15babd 17282do
a0b9e27f 17283echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17284echo "configure:17285: checking for $ac_func" >&5
a0b9e27f
MB
17285if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17286 echo $ac_n "(cached) $ac_c" 1>&6
17287else
17288 cat > conftest.$ac_ext <<EOF
82d43113 17289#line 17290 "configure"
af15babd
VZ
17290#include "confdefs.h"
17291/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17292 which can conflict with char $ac_func(); below. */
af15babd
VZ
17293#include <assert.h>
17294/* Override any gcc2 internal prototype to avoid an error. */
17295/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17296 builtin and then its argument prototype would still apply. */
17297char $ac_func();
17298
17299int main() {
17300
af15babd
VZ
17301/* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17305choke me
17306#else
a0b9e27f 17307$ac_func();
af15babd
VZ
17308#endif
17309
a0b9e27f
MB
17310; return 0; }
17311EOF
82d43113 17312if { (eval echo configure:17313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17313 rm -rf conftest*
17314 eval "ac_cv_func_$ac_func=yes"
17315else
17316 echo "configure: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17318 rm -rf conftest*
17319 eval "ac_cv_func_$ac_func=no"
17320fi
17321rm -f conftest*
17322fi
7b4a847f 17323
a0b9e27f
MB
17324if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17325 echo "$ac_t""yes" 1>&6
17326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17327 cat >> confdefs.h <<EOF
17328#define $ac_tr_func 1
17329EOF
17330
17331else
17332 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17333fi
17334done
17335
8284b0c5 17336
4f14bcd8 17337 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17338 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17339 wxUSE_ON_FATAL_EXCEPTION=no
17340 fi
17341
17342 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17343
17344 ac_ext=C
17345# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17346ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17347ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17348ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17349cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17350
5c6fa7d2 17351
a0b9e27f 17352 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
82d43113 17353echo "configure:17354: checking for sa_handler type" >&5
a0b9e27f
MB
17354if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17355 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17356else
a0b9e27f
MB
17357
17358 cat > conftest.$ac_ext <<EOF
82d43113 17359#line 17360 "configure"
af15babd 17360#include "confdefs.h"
4f14bcd8 17361#include <signal.h>
a0b9e27f 17362int main() {
4f14bcd8
GD
17363
17364 extern void testSigHandler(int);
17365
17366 struct sigaction sa;
17367 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17368
17369; return 0; }
17370EOF
82d43113 17371if { (eval echo configure:17372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17372 rm -rf conftest*
17373
4f14bcd8 17374 wx_cv_type_sa_handler=int
a0b9e27f 17375
af15babd 17376else
a0b9e27f
MB
17377 echo "configure: failed program was:" >&5
17378 cat conftest.$ac_ext >&5
17379 rm -rf conftest*
17380
4f14bcd8 17381 wx_cv_type_sa_handler=void
a0b9e27f 17382
5c6fa7d2 17383fi
a0b9e27f
MB
17384rm -f conftest*
17385
247f5006 17386fi
a0b9e27f
MB
17387
17388echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17389
17390 ac_ext=c
a0b9e27f 17391# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17392ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17393ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17394ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17395cross_compiling=$ac_cv_prog_cc_cross
579d8138 17396
8284b0c5 17397
a0b9e27f 17398 cat >> confdefs.h <<EOF
4f14bcd8 17399#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17400EOF
af15babd 17401
4f14bcd8
GD
17402 fi
17403fi
af15babd 17404
a1d22ad7 17405for ac_func in mkstemp mktemp
af15babd 17406do
a0b9e27f 17407echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17408echo "configure:17409: checking for $ac_func" >&5
a0b9e27f
MB
17409if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411else
17412 cat > conftest.$ac_ext <<EOF
82d43113 17413#line 17414 "configure"
af15babd
VZ
17414#include "confdefs.h"
17415/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17416 which can conflict with char $ac_func(); below. */
af15babd
VZ
17417#include <assert.h>
17418/* Override any gcc2 internal prototype to avoid an error. */
17419/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17420 builtin and then its argument prototype would still apply. */
17421char $ac_func();
17422
17423int main() {
17424
af15babd
VZ
17425/* The GNU C library defines this for functions which it implements
17426 to always fail with ENOSYS. Some functions are actually named
17427 something starting with __ and the normal name is an alias. */
17428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17429choke me
17430#else
a0b9e27f 17431$ac_func();
af15babd
VZ
17432#endif
17433
a0b9e27f
MB
17434; return 0; }
17435EOF
82d43113 17436if { (eval echo configure:17437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17437 rm -rf conftest*
17438 eval "ac_cv_func_$ac_func=yes"
17439else
17440 echo "configure: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17442 rm -rf conftest*
17443 eval "ac_cv_func_$ac_func=no"
17444fi
17445rm -f conftest*
17446fi
af15babd 17447
a0b9e27f
MB
17448if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17449 echo "$ac_t""yes" 1>&6
17450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17451 cat >> confdefs.h <<EOF
17452#define $ac_tr_func 1
17453EOF
ade35f11 17454 break
a0b9e27f
MB
17455else
17456 echo "$ac_t""no" 1>&6
ade35f11
VZ
17457fi
17458done
17459
8284b0c5 17460
a0b9e27f 17461echo $ac_n "checking for statfs""... $ac_c" 1>&6
82d43113 17462echo "configure:17463: checking for statfs" >&5
a0b9e27f
MB
17463if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17464 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17465else
a0b9e27f 17466 cat > conftest.$ac_ext <<EOF
82d43113 17467#line 17468 "configure"
4f14bcd8
GD
17468#include "confdefs.h"
17469
17470 #if defined(__BSD__)
17471 #include <sys/param.h>
17472 #include <sys/mount.h>
17473 #else
17474 #include <sys/vfs.h>
17475 #endif
a0b9e27f
MB
17476
17477int main() {
4f14bcd8
GD
17478
17479 long l;
17480 struct statfs fs;
17481 statfs("/", &fs);
17482 l = fs.f_bsize;
17483 l += fs.f_blocks;
17484 l += fs.f_bavail;
a0b9e27f
MB
17485
17486; return 0; }
17487EOF
82d43113 17488if { (eval echo configure:17489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17489 rm -rf conftest*
17490
4f14bcd8 17491 wx_cv_func_statfs=yes
a0b9e27f 17492
4f14bcd8 17493else
a0b9e27f
MB
17494 echo "configure: failed program was:" >&5
17495 cat conftest.$ac_ext >&5
17496 rm -rf conftest*
17497
4f14bcd8 17498 wx_cv_func_statfs=no
a0b9e27f
MB
17499
17500
5c6fa7d2 17501fi
a0b9e27f 17502rm -f conftest*
8284b0c5 17503
247f5006 17504fi
a0b9e27f
MB
17505
17506echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17507
17508if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17509 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17510 cat >> confdefs.h <<\EOF
4f14bcd8 17511#define HAVE_STATFS 1
a0b9e27f 17512EOF
4f14bcd8
GD
17513
17514else
a0b9e27f 17515 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
82d43113 17516echo "configure:17517: checking for statvfs" >&5
a0b9e27f
MB
17517if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17518 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17519else
a0b9e27f 17520 cat > conftest.$ac_ext <<EOF
82d43113 17521#line 17522 "configure"
af15babd 17522#include "confdefs.h"
af15babd 17523
54ab82b3
VZ
17524 #include <stddef.h>
17525 #include <sys/statvfs.h>
a0b9e27f
MB
17526
17527int main() {
af15babd 17528
54ab82b3 17529 statvfs("/", NULL);
a0b9e27f
MB
17530
17531; return 0; }
17532EOF
82d43113 17533if { (eval echo configure:17534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17534 rm -rf conftest*
54ab82b3 17535 wx_cv_func_statvfs=yes
af15babd 17536else
a0b9e27f
MB
17537 echo "configure: failed program was:" >&5
17538 cat conftest.$ac_ext >&5
17539 rm -rf conftest*
54ab82b3 17540 wx_cv_func_statvfs=no
a0b9e27f 17541
5c6fa7d2 17542fi
a0b9e27f
MB
17543rm -f conftest*
17544
247f5006 17545fi
a0b9e27f
MB
17546
17547echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17548
4f14bcd8 17549 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17550
17551 ac_ext=C
17552# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17553ac_cpp='$CXXCPP $CPPFLAGS'
17554ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17555ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17556cross_compiling=$ac_cv_prog_cxx_cross
17557
17558
17559 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
82d43113 17560echo "configure:17561: checking for statvfs argument type" >&5
54ab82b3
VZ
17561if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17562 echo $ac_n "(cached) $ac_c" 1>&6
17563else
17564 cat > conftest.$ac_ext <<EOF
82d43113 17565#line 17566 "configure"
54ab82b3
VZ
17566#include "confdefs.h"
17567
17568 #include <sys/statvfs.h>
17569
17570int main() {
17571
17572 long l;
17573 statvfs_t fs;
17574 statvfs("/", &fs);
17575 l = fs.f_bsize;
17576 l += fs.f_blocks;
17577 l += fs.f_bavail;
17578
17579; return 0; }
17580EOF
82d43113 17581if { (eval echo configure:17582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17582 rm -rf conftest*
17583 wx_cv_type_statvfs_t=statvfs_t
17584else
17585 echo "configure: failed program was:" >&5
17586 cat conftest.$ac_ext >&5
17587 rm -rf conftest*
17588
17589 cat > conftest.$ac_ext <<EOF
82d43113 17590#line 17591 "configure"
54ab82b3
VZ
17591#include "confdefs.h"
17592
17593 #include <sys/statvfs.h>
17594
17595int main() {
17596
17597 long l;
65d8ef1e 17598 struct statvfs fs;
54ab82b3
VZ
17599 statvfs("/", &fs);
17600 l = fs.f_bsize;
17601 l += fs.f_blocks;
17602 l += fs.f_bavail;
17603
17604; return 0; }
17605EOF
82d43113 17606if { (eval echo configure:17607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17607 rm -rf conftest*
17608 wx_cv_type_statvfs_t="struct statvfs"
17609else
17610 echo "configure: failed program was:" >&5
17611 cat conftest.$ac_ext >&5
17612 rm -rf conftest*
17613 wx_cv_type_statvfs_t="unknown"
17614
17615fi
17616rm -f conftest*
17617
17618
17619fi
17620rm -f conftest*
17621
17622fi
17623
17624echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17625
17626 ac_ext=c
17627# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17628ac_cpp='$CPP $CPPFLAGS'
17629ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17630ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17631cross_compiling=$ac_cv_prog_cc_cross
17632
17633
17634 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17635 cat >> confdefs.h <<\EOF
4f14bcd8 17636#define HAVE_STATVFS 1
a0b9e27f 17637EOF
af15babd 17638
54ab82b3 17639 fi
4f14bcd8 17640 else
54ab82b3 17641 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17642 fi
17643fi
af15babd 17644
54ab82b3
VZ
17645if test "$wx_cv_type_statvfs_t" != "unknown"; then
17646 cat >> confdefs.h <<EOF
17647#define WX_STATFS_T $wx_cv_type_statvfs_t
17648EOF
17649
17650else
17651 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17652fi
17653
4f14bcd8 17654if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17655 for ac_func in fcntl flock
af15babd 17656do
a0b9e27f 17657echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17658echo "configure:17659: checking for $ac_func" >&5
a0b9e27f
MB
17659if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17660 echo $ac_n "(cached) $ac_c" 1>&6
17661else
17662 cat > conftest.$ac_ext <<EOF
82d43113 17663#line 17664 "configure"
af15babd
VZ
17664#include "confdefs.h"
17665/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17666 which can conflict with char $ac_func(); below. */
af15babd
VZ
17667#include <assert.h>
17668/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17669/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17670 builtin and then its argument prototype would still apply. */
17671char $ac_func();
17672
17673int main() {
17674
af15babd
VZ
17675/* The GNU C library defines this for functions which it implements
17676 to always fail with ENOSYS. Some functions are actually named
17677 something starting with __ and the normal name is an alias. */
17678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17679choke me
17680#else
a0b9e27f 17681$ac_func();
af15babd
VZ
17682#endif
17683
a0b9e27f
MB
17684; return 0; }
17685EOF
82d43113 17686if { (eval echo configure:17687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17687 rm -rf conftest*
17688 eval "ac_cv_func_$ac_func=yes"
17689else
17690 echo "configure: failed program was:" >&5
17691 cat conftest.$ac_ext >&5
17692 rm -rf conftest*
17693 eval "ac_cv_func_$ac_func=no"
17694fi
17695rm -f conftest*
17696fi
17697
17698if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17699 echo "$ac_t""yes" 1>&6
17700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17701 cat >> confdefs.h <<EOF
17702#define $ac_tr_func 1
17703EOF
4f14bcd8 17704 break
a0b9e27f
MB
17705else
17706 echo "$ac_t""no" 1>&6
af15babd
VZ
17707fi
17708done
17709
8284b0c5 17710
4f14bcd8 17711 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17712 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17713 wxUSE_SNGLINST_CHECKER=no
17714 fi
17715fi
af15babd 17716
4f14bcd8 17717for ac_func in timegm
af15babd 17718do
a0b9e27f 17719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17720echo "configure:17721: checking for $ac_func" >&5
a0b9e27f
MB
17721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17722 echo $ac_n "(cached) $ac_c" 1>&6
17723else
17724 cat > conftest.$ac_ext <<EOF
82d43113 17725#line 17726 "configure"
af15babd
VZ
17726#include "confdefs.h"
17727/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17728 which can conflict with char $ac_func(); below. */
af15babd
VZ
17729#include <assert.h>
17730/* Override any gcc2 internal prototype to avoid an error. */
17731/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17732 builtin and then its argument prototype would still apply. */
17733char $ac_func();
17734
17735int main() {
17736
af15babd
VZ
17737/* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
247f5006
VZ
17740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17741choke me
17742#else
a0b9e27f 17743$ac_func();
247f5006
VZ
17744#endif
17745
a0b9e27f
MB
17746; return 0; }
17747EOF
82d43113 17748if { (eval echo configure:17749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17749 rm -rf conftest*
17750 eval "ac_cv_func_$ac_func=yes"
17751else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 eval "ac_cv_func_$ac_func=no"
17756fi
17757rm -f conftest*
17758fi
703e0a69 17759
a0b9e27f
MB
17760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17761 echo "$ac_t""yes" 1>&6
17762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17763 cat >> confdefs.h <<EOF
17764#define $ac_tr_func 1
17765EOF
17766
17767else
17768 echo "$ac_t""no" 1>&6
af15babd
VZ
17769fi
17770done
17771
8284b0c5 17772
4f14bcd8 17773for ac_func in putenv setenv
10f2d63a 17774do
a0b9e27f 17775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17776echo "configure:17777: checking for $ac_func" >&5
a0b9e27f
MB
17777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17778 echo $ac_n "(cached) $ac_c" 1>&6
17779else
17780 cat > conftest.$ac_ext <<EOF
82d43113 17781#line 17782 "configure"
af15babd
VZ
17782#include "confdefs.h"
17783/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17784 which can conflict with char $ac_func(); below. */
af15babd
VZ
17785#include <assert.h>
17786/* Override any gcc2 internal prototype to avoid an error. */
17787/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17788 builtin and then its argument prototype would still apply. */
17789char $ac_func();
17790
17791int main() {
17792
af15babd
VZ
17793/* The GNU C library defines this for functions which it implements
17794 to always fail with ENOSYS. Some functions are actually named
17795 something starting with __ and the normal name is an alias. */
17796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17797choke me
17798#else
a0b9e27f 17799$ac_func();
af15babd
VZ
17800#endif
17801
a0b9e27f
MB
17802; return 0; }
17803EOF
82d43113 17804if { (eval echo configure:17805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17805 rm -rf conftest*
17806 eval "ac_cv_func_$ac_func=yes"
17807else
17808 echo "configure: failed program was:" >&5
17809 cat conftest.$ac_ext >&5
17810 rm -rf conftest*
17811 eval "ac_cv_func_$ac_func=no"
17812fi
17813rm -f conftest*
17814fi
17815
17816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17817 echo "$ac_t""yes" 1>&6
17818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17819 cat >> confdefs.h <<EOF
17820#define $ac_tr_func 1
17821EOF
4f14bcd8 17822 break
a0b9e27f
MB
17823else
17824 echo "$ac_t""no" 1>&6
af15babd 17825fi
af15babd
VZ
17826done
17827
8284b0c5 17828
4f14bcd8
GD
17829HAVE_SOME_SLEEP_FUNC=0
17830if test "$USE_BEOS" = 1; then
a0b9e27f 17831 cat >> confdefs.h <<\EOF
4f14bcd8 17832#define HAVE_SLEEP 1
a0b9e27f 17833EOF
af15babd 17834
4f14bcd8 17835 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17836fi
17837
4f14bcd8 17838if test "$USE_DARWIN" = 1; then
a0b9e27f 17839 cat >> confdefs.h <<\EOF
4f14bcd8 17840#define HAVE_USLEEP 1
a0b9e27f 17841EOF
10f2d63a 17842
4f14bcd8 17843 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17844fi
17845
4f14bcd8
GD
17846if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17847 POSIX4_LINK=
a0b9e27f 17848 for ac_func in nanosleep
4f14bcd8 17849do
a0b9e27f 17850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17851echo "configure:17852: checking for $ac_func" >&5
a0b9e27f
MB
17852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17853 echo $ac_n "(cached) $ac_c" 1>&6
17854else
17855 cat > conftest.$ac_ext <<EOF
82d43113 17856#line 17857 "configure"
10f2d63a 17857#include "confdefs.h"
4f14bcd8 17858/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17859 which can conflict with char $ac_func(); below. */
4f14bcd8 17860#include <assert.h>
10f2d63a
VZ
17861/* Override any gcc2 internal prototype to avoid an error. */
17862/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17863 builtin and then its argument prototype would still apply. */
17864char $ac_func();
17865
17866int main() {
17867
4f14bcd8
GD
17868/* The GNU C library defines this for functions which it implements
17869 to always fail with ENOSYS. Some functions are actually named
17870 something starting with __ and the normal name is an alias. */
17871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17872choke me
17873#else
a0b9e27f 17874$ac_func();
4f14bcd8
GD
17875#endif
17876
a0b9e27f
MB
17877; return 0; }
17878EOF
82d43113 17879if { (eval echo configure:17880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17880 rm -rf conftest*
17881 eval "ac_cv_func_$ac_func=yes"
17882else
17883 echo "configure: failed program was:" >&5
17884 cat conftest.$ac_ext >&5
17885 rm -rf conftest*
17886 eval "ac_cv_func_$ac_func=no"
17887fi
17888rm -f conftest*
17889fi
17890
17891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17892 echo "$ac_t""yes" 1>&6
17893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17894 cat >> confdefs.h <<EOF
17895#define $ac_tr_func 1
17896EOF
17897 cat >> confdefs.h <<\EOF
4f14bcd8 17898#define HAVE_NANOSLEEP 1
a0b9e27f 17899EOF
4f14bcd8 17900
10f2d63a 17901else
a0b9e27f
MB
17902 echo "$ac_t""no" 1>&6
17903echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
82d43113 17904echo "configure:17905: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
17905ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17906if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17907 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17908else
a0b9e27f 17909 ac_save_LIBS="$LIBS"
4f14bcd8 17910LIBS="-lposix4 $LIBS"
a0b9e27f 17911cat > conftest.$ac_ext <<EOF
82d43113 17912#line 17913 "configure"
10f2d63a
VZ
17913#include "confdefs.h"
17914/* Override any gcc2 internal prototype to avoid an error. */
17915/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17916 builtin and then its argument prototype would still apply. */
17917char nanosleep();
17918
17919int main() {
17920nanosleep()
17921; return 0; }
17922EOF
82d43113 17923if { (eval echo configure:17924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17924 rm -rf conftest*
17925 eval "ac_cv_lib_$ac_lib_var=yes"
17926else
17927 echo "configure: failed program was:" >&5
17928 cat conftest.$ac_ext >&5
17929 rm -rf conftest*
17930 eval "ac_cv_lib_$ac_lib_var=no"
17931fi
17932rm -f conftest*
17933LIBS="$ac_save_LIBS"
17934
17935fi
17936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17937 echo "$ac_t""yes" 1>&6
17938
17939 cat >> confdefs.h <<\EOF
4f14bcd8 17940#define HAVE_NANOSLEEP 1
a0b9e27f 17941EOF
4f14bcd8 17942
3d63bc3a 17943 POSIX4_LINK=" -lposix4"
a0b9e27f 17944
10f2d63a 17945else
a0b9e27f 17946 echo "$ac_t""no" 1>&6
10f2d63a 17947
a0b9e27f 17948 for ac_func in usleep
4f14bcd8 17949do
a0b9e27f 17950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 17951echo "configure:17952: checking for $ac_func" >&5
a0b9e27f
MB
17952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17953 echo $ac_n "(cached) $ac_c" 1>&6
17954else
17955 cat > conftest.$ac_ext <<EOF
82d43113 17956#line 17957 "configure"
10f2d63a 17957#include "confdefs.h"
4f14bcd8 17958/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17959 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17960#include <assert.h>
17961/* Override any gcc2 internal prototype to avoid an error. */
17962/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17963 builtin and then its argument prototype would still apply. */
17964char $ac_func();
17965
17966int main() {
17967
4f14bcd8
GD
17968/* The GNU C library defines this for functions which it implements
17969 to always fail with ENOSYS. Some functions are actually named
17970 something starting with __ and the normal name is an alias. */
17971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17972choke me
17973#else
a0b9e27f 17974$ac_func();
4f14bcd8
GD
17975#endif
17976
a0b9e27f
MB
17977; return 0; }
17978EOF
82d43113 17979if { (eval echo configure:17980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17980 rm -rf conftest*
17981 eval "ac_cv_func_$ac_func=yes"
17982else
17983 echo "configure: failed program was:" >&5
17984 cat conftest.$ac_ext >&5
17985 rm -rf conftest*
17986 eval "ac_cv_func_$ac_func=no"
17987fi
17988rm -f conftest*
17989fi
17990
17991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17992 echo "$ac_t""yes" 1>&6
17993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17994 cat >> confdefs.h <<EOF
17995#define $ac_tr_func 1
17996EOF
17997 cat >> confdefs.h <<\EOF
4f14bcd8 17998#define HAVE_USLEEP 1
a0b9e27f 17999EOF
4f14bcd8 18000
698dcdb6 18001else
a0b9e27f
MB
18002 echo "$ac_t""no" 1>&6
18003echo "configure: warning: wxSleep() function will not work" 1>&2
18004
10f2d63a 18005fi
4f14bcd8 18006done
10f2d63a 18007
a0b9e27f
MB
18008
18009
6232543b 18010fi
10f2d63a 18011
a0b9e27f
MB
18012
18013
1e487827 18014fi
4f14bcd8 18015done
703e0a69 18016
10f2d63a
VZ
18017fi
18018
4f14bcd8 18019for ac_func in uname gethostname
70846f0a 18020do
a0b9e27f 18021echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 18022echo "configure:18023: checking for $ac_func" >&5
a0b9e27f
MB
18023if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18024 echo $ac_n "(cached) $ac_c" 1>&6
18025else
18026 cat > conftest.$ac_ext <<EOF
82d43113 18027#line 18028 "configure"
70846f0a
VZ
18028#include "confdefs.h"
18029/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18030 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18031#include <assert.h>
18032/* Override any gcc2 internal prototype to avoid an error. */
18033/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18034 builtin and then its argument prototype would still apply. */
18035char $ac_func();
18036
18037int main() {
18038
70846f0a
VZ
18039/* The GNU C library defines this for functions which it implements
18040 to always fail with ENOSYS. Some functions are actually named
18041 something starting with __ and the normal name is an alias. */
18042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18043choke me
18044#else
a0b9e27f 18045$ac_func();
70846f0a
VZ
18046#endif
18047
a0b9e27f
MB
18048; return 0; }
18049EOF
82d43113 18050if { (eval echo configure:18051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18051 rm -rf conftest*
18052 eval "ac_cv_func_$ac_func=yes"
18053else
18054 echo "configure: failed program was:" >&5
18055 cat conftest.$ac_ext >&5
18056 rm -rf conftest*
18057 eval "ac_cv_func_$ac_func=no"
18058fi
18059rm -f conftest*
18060fi
18061
18062if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18063 echo "$ac_t""yes" 1>&6
18064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18065 cat >> confdefs.h <<EOF
18066#define $ac_tr_func 1
18067EOF
4f14bcd8 18068 break
a0b9e27f
MB
18069else
18070 echo "$ac_t""no" 1>&6
70846f0a
VZ
18071fi
18072done
18073
8284b0c5
MB
18074
18075
a0b9e27f
MB
18076ac_ext=C
18077# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18078ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18079ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18080ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18081cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18082
4f14bcd8
GD
18083
18084for ac_func in strtok_r
10f2d63a 18085do
a0b9e27f 18086echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 18087echo "configure:18088: checking for $ac_func" >&5
a0b9e27f
MB
18088if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18089 echo $ac_n "(cached) $ac_c" 1>&6
18090else
18091 cat > conftest.$ac_ext <<EOF
82d43113 18092#line 18093 "configure"
10f2d63a 18093#include "confdefs.h"
4f14bcd8 18094/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18095 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18096#include <assert.h>
18097/* Override any gcc2 internal prototype to avoid an error. */
18098#ifdef __cplusplus
18099extern "C"
18100#endif
18101/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18102 builtin and then its argument prototype would still apply. */
18103char $ac_func();
18104
18105int main() {
18106
4f14bcd8
GD
18107/* The GNU C library defines this for functions which it implements
18108 to always fail with ENOSYS. Some functions are actually named
18109 something starting with __ and the normal name is an alias. */
18110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18111choke me
18112#else
a0b9e27f 18113$ac_func();
4f14bcd8
GD
18114#endif
18115
a0b9e27f
MB
18116; return 0; }
18117EOF
82d43113 18118if { (eval echo configure:18119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18119 rm -rf conftest*
18120 eval "ac_cv_func_$ac_func=yes"
18121else
18122 echo "configure: failed program was:" >&5
18123 cat conftest.$ac_ext >&5
18124 rm -rf conftest*
18125 eval "ac_cv_func_$ac_func=no"
18126fi
18127rm -f conftest*
18128fi
4f14bcd8 18129
a0b9e27f
MB
18130if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18131 echo "$ac_t""yes" 1>&6
18132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18133 cat >> confdefs.h <<EOF
18134#define $ac_tr_func 1
18135EOF
18136
18137else
18138 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18139fi
18140done
18141
8284b0c5 18142
4f14bcd8 18143ac_ext=c
a0b9e27f 18144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18145ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18148cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18149
5c6fa7d2 18150
8284b0c5 18151INET_LINK=
4f14bcd8
GD
18152for ac_func in inet_addr
18153do
a0b9e27f 18154echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 18155echo "configure:18156: checking for $ac_func" >&5
a0b9e27f
MB
18156if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18157 echo $ac_n "(cached) $ac_c" 1>&6
18158else
18159 cat > conftest.$ac_ext <<EOF
82d43113 18160#line 18161 "configure"
10f2d63a 18161#include "confdefs.h"
4f14bcd8 18162/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18163 which can conflict with char $ac_func(); below. */
4f14bcd8 18164#include <assert.h>
10f2d63a
VZ
18165/* Override any gcc2 internal prototype to avoid an error. */
18166/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18167 builtin and then its argument prototype would still apply. */
18168char $ac_func();
18169
18170int main() {
18171
4f14bcd8
GD
18172/* The GNU C library defines this for functions which it implements
18173 to always fail with ENOSYS. Some functions are actually named
18174 something starting with __ and the normal name is an alias. */
18175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18176choke me
18177#else
a0b9e27f 18178$ac_func();
4f14bcd8
GD
18179#endif
18180
a0b9e27f
MB
18181; return 0; }
18182EOF
82d43113 18183if { (eval echo configure:18184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18184 rm -rf conftest*
18185 eval "ac_cv_func_$ac_func=yes"
18186else
18187 echo "configure: failed program was:" >&5
18188 cat conftest.$ac_ext >&5
18189 rm -rf conftest*
18190 eval "ac_cv_func_$ac_func=no"
18191fi
18192rm -f conftest*
18193fi
18194
18195if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18196 echo "$ac_t""yes" 1>&6
18197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18198 cat >> confdefs.h <<EOF
18199#define $ac_tr_func 1
18200EOF
18201 cat >> confdefs.h <<\EOF
4f14bcd8 18202#define HAVE_INET_ADDR 1
a0b9e27f 18203EOF
10f2d63a
VZ
18204
18205else
a0b9e27f
MB
18206 echo "$ac_t""no" 1>&6
18207echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
82d43113 18208echo "configure:18209: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18209ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18211 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18212else
a0b9e27f 18213 ac_save_LIBS="$LIBS"
4f14bcd8 18214LIBS="-lnsl $LIBS"
a0b9e27f 18215cat > conftest.$ac_ext <<EOF
82d43113 18216#line 18217 "configure"
10f2d63a
VZ
18217#include "confdefs.h"
18218/* Override any gcc2 internal prototype to avoid an error. */
18219/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18220 builtin and then its argument prototype would still apply. */
18221char inet_addr();
18222
18223int main() {
18224inet_addr()
18225; return 0; }
18226EOF
82d43113 18227if { (eval echo configure:18228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18228 rm -rf conftest*
18229 eval "ac_cv_lib_$ac_lib_var=yes"
18230else
18231 echo "configure: failed program was:" >&5
18232 cat conftest.$ac_ext >&5
18233 rm -rf conftest*
18234 eval "ac_cv_lib_$ac_lib_var=no"
18235fi
18236rm -f conftest*
18237LIBS="$ac_save_LIBS"
18238
18239fi
18240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18241 echo "$ac_t""yes" 1>&6
4f14bcd8 18242 INET_LINK="nsl"
10f2d63a 18243else
a0b9e27f
MB
18244 echo "$ac_t""no" 1>&6
18245echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
82d43113 18246echo "configure:18247: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18247ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18248if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18249 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18250else
a0b9e27f 18251 ac_save_LIBS="$LIBS"
4f14bcd8 18252LIBS="-lresolv $LIBS"
a0b9e27f 18253cat > conftest.$ac_ext <<EOF
82d43113 18254#line 18255 "configure"
7b4a847f 18255#include "confdefs.h"
5c6fa7d2 18256/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18257/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18258 builtin and then its argument prototype would still apply. */
18259char inet_addr();
18260
18261int main() {
18262inet_addr()
18263; return 0; }
18264EOF
82d43113 18265if { (eval echo configure:18266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18266 rm -rf conftest*
18267 eval "ac_cv_lib_$ac_lib_var=yes"
18268else
18269 echo "configure: failed program was:" >&5
18270 cat conftest.$ac_ext >&5
18271 rm -rf conftest*
18272 eval "ac_cv_lib_$ac_lib_var=no"
18273fi
18274rm -f conftest*
18275LIBS="$ac_save_LIBS"
18276
18277fi
18278if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18279 echo "$ac_t""yes" 1>&6
4f14bcd8 18280 INET_LINK="resolv"
698dcdb6 18281else
a0b9e27f
MB
18282 echo "$ac_t""no" 1>&6
18283echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
82d43113 18284echo "configure:18285: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18285ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18288else
a0b9e27f 18289 ac_save_LIBS="$LIBS"
3c011993 18290LIBS="-lsocket $LIBS"
a0b9e27f 18291cat > conftest.$ac_ext <<EOF
82d43113 18292#line 18293 "configure"
3c011993
VZ
18293#include "confdefs.h"
18294/* Override any gcc2 internal prototype to avoid an error. */
18295/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18296 builtin and then its argument prototype would still apply. */
18297char inet_addr();
4f14bcd8 18298
a0b9e27f
MB
18299int main() {
18300inet_addr()
18301; return 0; }
18302EOF
82d43113 18303if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18304 rm -rf conftest*
18305 eval "ac_cv_lib_$ac_lib_var=yes"
18306else
18307 echo "configure: failed program was:" >&5
18308 cat conftest.$ac_ext >&5
18309 rm -rf conftest*
18310 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18311fi
a0b9e27f
MB
18312rm -f conftest*
18313LIBS="$ac_save_LIBS"
698dcdb6 18314
7b4a847f 18315fi
a0b9e27f
MB
18316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18317 echo "$ac_t""yes" 1>&6
18318 INET_LINK="socket"
18319
18320else
18321 echo "$ac_t""no" 1>&6
18322fi
579d8138 18323
a0b9e27f 18324
5c6fa7d2 18325fi
52127426 18326
a0b9e27f
MB
18327
18328fi
247f5006 18329
a0b9e27f 18330
8284b0c5 18331
698dcdb6 18332fi
4f14bcd8
GD
18333done
18334
8284b0c5 18335
4f14bcd8
GD
18336for ac_func in inet_aton
18337do
a0b9e27f 18338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 18339echo "configure:18340: checking for $ac_func" >&5
a0b9e27f
MB
18340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18341 echo $ac_n "(cached) $ac_c" 1>&6
18342else
18343 cat > conftest.$ac_ext <<EOF
82d43113 18344#line 18345 "configure"
f6bcfd97 18345#include "confdefs.h"
4f14bcd8 18346/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18347 which can conflict with char $ac_func(); below. */
4f14bcd8 18348#include <assert.h>
f6bcfd97
BP
18349/* Override any gcc2 internal prototype to avoid an error. */
18350/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18351 builtin and then its argument prototype would still apply. */
18352char $ac_func();
18353
18354int main() {
18355
4f14bcd8
GD
18356/* The GNU C library defines this for functions which it implements
18357 to always fail with ENOSYS. Some functions are actually named
18358 something starting with __ and the normal name is an alias. */
18359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18360choke me
18361#else
a0b9e27f 18362$ac_func();
4f14bcd8
GD
18363#endif
18364
a0b9e27f
MB
18365; return 0; }
18366EOF
82d43113 18367if { (eval echo configure:18368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18368 rm -rf conftest*
18369 eval "ac_cv_func_$ac_func=yes"
18370else
18371 echo "configure: failed program was:" >&5
18372 cat conftest.$ac_ext >&5
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=no"
18375fi
18376rm -f conftest*
18377fi
18378
18379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18380 echo "$ac_t""yes" 1>&6
18381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18382 cat >> confdefs.h <<EOF
18383#define $ac_tr_func 1
18384EOF
18385 cat >> confdefs.h <<\EOF
4f14bcd8 18386#define HAVE_INET_ATON 1
a0b9e27f 18387EOF
4f14bcd8 18388
10f2d63a 18389else
a0b9e27f
MB
18390 echo "$ac_t""no" 1>&6
18391 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
82d43113 18392echo "configure:18393: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18393ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18396else
a0b9e27f 18397 ac_save_LIBS="$LIBS"
4f14bcd8 18398LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18399cat > conftest.$ac_ext <<EOF
82d43113 18400#line 18401 "configure"
10f2d63a 18401#include "confdefs.h"
6232543b 18402/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18403/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18404 builtin and then its argument prototype would still apply. */
18405char inet_aton();
18406
18407int main() {
18408inet_aton()
18409; return 0; }
18410EOF
82d43113 18411if { (eval echo configure:18412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18412 rm -rf conftest*
18413 eval "ac_cv_lib_$ac_lib_var=yes"
18414else
18415 echo "configure: failed program was:" >&5
18416 cat conftest.$ac_ext >&5
18417 rm -rf conftest*
18418 eval "ac_cv_lib_$ac_lib_var=no"
18419fi
18420rm -f conftest*
18421LIBS="$ac_save_LIBS"
4f14bcd8 18422
10f2d63a 18423fi
a0b9e27f
MB
18424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18425 echo "$ac_t""yes" 1>&6
18426 cat >> confdefs.h <<\EOF
18427#define HAVE_INET_ATON 1
18428EOF
10f2d63a 18429
a0b9e27f
MB
18430else
18431 echo "$ac_t""no" 1>&6
18432fi
247f5006 18433
a0b9e27f 18434
10f2d63a 18435fi
4f14bcd8 18436done
10f2d63a 18437
8284b0c5 18438
4f14bcd8 18439if test "x$INET_LINK" != "x"; then
a0b9e27f 18440 cat >> confdefs.h <<\EOF
4f14bcd8 18441#define HAVE_INET_ADDR 1
a0b9e27f 18442EOF
4f14bcd8 18443
3d63bc3a 18444 INET_LINK=" -l$INET_LINK"
6232543b 18445fi
10f2d63a 18446
1e487827 18447fi
703e0a69 18448
8284b0c5 18449
a0b9e27f 18450cat > confcache <<\EOF
4f14bcd8
GD
18451# This file is a shell script that caches the results of configure
18452# tests run on this system so they can be shared between configure
a0b9e27f
MB
18453# scripts and configure runs. It is not useful on other systems.
18454# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18455#
a0b9e27f
MB
18456# By default, configure uses ./config.cache as the cache file,
18457# creating it if it does not exist already. You can give configure
18458# the --cache-file=FILE option to use a different cache file; that is
18459# what configure does when it calls configure scripts in
18460# subdirectories, so they share the cache.
18461# Giving --cache-file=/dev/null disables caching, for debugging configure.
18462# config.status only pays attention to the cache file if you give it the
18463# --recheck option to rerun configure.
4f14bcd8 18464#
a0b9e27f 18465EOF
4f14bcd8
GD
18466# The following way of writing the cache mishandles newlines in values,
18467# but we know of no workaround that is simple, portable, and efficient.
18468# So, don't put newlines in cache variables' values.
18469# Ultrix sh set writes to stderr and can't be redirected directly,
18470# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18471(set) 2>&1 |
18472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18473 *ac_space=\ *)
18474 # `set' does not quote correctly, so add quotes (double-quote substitution
18475 # turns \\\\ into \\, and sed turns \\ into \).
18476 sed -n \
18477 -e "s/'/'\\\\''/g" \
18478 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18479 ;;
18480 *)
18481 # `set' quotes correctly as required by POSIX, so do not add quotes.
18482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18483 ;;
18484 esac >> confcache
18485if cmp -s $cache_file confcache; then
18486 :
18487else
4f14bcd8 18488 if test -w $cache_file; then
a0b9e27f
MB
18489 echo "updating cache $cache_file"
18490 cat confcache > $cache_file
f6bcfd97 18491 else
4f14bcd8 18492 echo "not updating unwritable cache $cache_file"
f6bcfd97 18493 fi
4f14bcd8
GD
18494fi
18495rm -f confcache
f6bcfd97 18496
8284b0c5 18497
a0b9e27f 18498
009fead0 18499CPP_MT_FLAG=
4f14bcd8
GD
18500if test "$TOOLKIT" != "MSW"; then
18501
a0b9e27f 18502
7274f1c7 18503 THREADS_LINK=
009fead0 18504 THREADS_CFLAGS=
7274f1c7
RL
18505
18506 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18507 if test "$USE_BEOS" = 1; then
a0b9e27f 18508 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18509 wxUSE_THREADS="no"
18510 fi
4f14bcd8 18511 fi
4f14bcd8 18512
7274f1c7 18513 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18514
18515
009fead0
VZ
18516 THREAD_OPTS="-pthread"
18517 case "${host}" in
18518 *-*-solaris2* | *-*-sunos4* )
18519 if test "x$GCC" = "xyes"; then
126be6b4 18520 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18521 else
18522 THREAD_OPTS="-mt $THREAD_OPTS"
18523 fi
18524 ;;
18525 *-*-freebsd*)
18526 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18527 ;;
17234b26
MB
18528 *-*-darwin* | *-*-cygwin* )
18529 THREAD_OPTS=""
4101db81 18530 ;;
8f4a9a10 18531 *-*-aix*)
009fead0
VZ
18532 THREAD_OPTS="pthreads"
18533 ;;
009fead0 18534 esac
4f14bcd8 18535
02a1dfba 18536 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18537
009fead0
VZ
18538 THREADS_OK=no
18539 for flag in $THREAD_OPTS; do
18540 case $flag in
18541 none)
a0b9e27f 18542 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
82d43113 18543echo "configure:18544: checking whether pthreads work without any flags" >&5
009fead0 18544 ;;
698dcdb6 18545
009fead0 18546 -*)
a0b9e27f 18547 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
82d43113 18548echo "configure:18549: checking whether pthreads work with $flag" >&5
009fead0
VZ
18549 THREADS_CFLAGS="$flag"
18550 ;;
698dcdb6 18551
009fead0 18552 *)
a0b9e27f 18553 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
82d43113 18554echo "configure:18555: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18555 THREADS_LINK="-l$flag"
18556 ;;
18557 esac
10f2d63a 18558
009fead0
VZ
18559 save_LIBS="$LIBS"
18560 save_CFLAGS="$CFLAGS"
18561 LIBS="$THREADS_LINK $LIBS"
04727afd 18562 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18563
a0b9e27f 18564 cat > conftest.$ac_ext <<EOF
82d43113 18565#line 18566 "configure"
009fead0
VZ
18566#include "confdefs.h"
18567#include <pthread.h>
a0b9e27f 18568int main() {
009fead0 18569pthread_create(0,0,0,0);
a0b9e27f
MB
18570; return 0; }
18571EOF
82d43113 18572if { (eval echo configure:18573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18573 rm -rf conftest*
009fead0 18574 THREADS_OK=yes
10f2d63a 18575else
a0b9e27f
MB
18576 echo "configure: failed program was:" >&5
18577 cat conftest.$ac_ext >&5
6232543b 18578fi
a0b9e27f 18579rm -f conftest*
698dcdb6 18580
009fead0
VZ
18581 LIBS="$save_LIBS"
18582 CFLAGS="$save_CFLAGS"
d9b9876f 18583
a0b9e27f 18584 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18585 if test "x$THREADS_OK" = "xyes"; then
18586 break;
18587 fi
d9b9876f 18588
009fead0
VZ
18589 THREADS_LINK=""
18590 THREADS_CFLAGS=""
18591 done
4f14bcd8 18592
009fead0
VZ
18593 if test "x$THREADS_OK" != "xyes"; then
18594 wxUSE_THREADS=no
a0b9e27f 18595 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18596 else
db82f09e
VZ
18597 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18598 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18599
a0b9e27f 18600 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
82d43113 18601echo "configure:18602: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18602 flag=no
18603 case "${host}" in
2b5f62a0
VZ
18604 *-aix*)
18605 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18606 flag="-D_THREAD_SAFE"
18607 ;;
18608 *-freebsd*)
009fead0
VZ
18609 flag="-D_THREAD_SAFE"
18610 ;;
06313569
GD
18611 *-hp-hpux* )
18612 flag="-D_REENTRANT"
18613 ;;
009fead0
VZ
18614 *solaris* | alpha*-osf*)
18615 flag="-D_REENTRANT"
18616 ;;
18617 esac
a0b9e27f 18618 echo "$ac_t""${flag}" 1>&6
009fead0 18619 if test "x$flag" != xno; then
04727afd 18620 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18621 fi
18622
009fead0 18623 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18624 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18625 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18626 fi
18627 fi
4f14bcd8 18628 fi
4f14bcd8 18629
7274f1c7 18630 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18631 for ac_func in thr_setconcurrency
4f14bcd8 18632do
a0b9e27f 18633echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 18634echo "configure:18635: checking for $ac_func" >&5
a0b9e27f
MB
18635if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18636 echo $ac_n "(cached) $ac_c" 1>&6
18637else
18638 cat > conftest.$ac_ext <<EOF
82d43113 18639#line 18640 "configure"
d9b9876f 18640#include "confdefs.h"
4f14bcd8 18641/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18642 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18643#include <assert.h>
18644/* Override any gcc2 internal prototype to avoid an error. */
18645/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18646 builtin and then its argument prototype would still apply. */
18647char $ac_func();
18648
18649int main() {
18650
4f14bcd8
GD
18651/* The GNU C library defines this for functions which it implements
18652 to always fail with ENOSYS. Some functions are actually named
18653 something starting with __ and the normal name is an alias. */
18654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18655choke me
18656#else
a0b9e27f 18657$ac_func();
4f14bcd8
GD
18658#endif
18659
a0b9e27f
MB
18660; return 0; }
18661EOF
82d43113 18662if { (eval echo configure:18663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18663 rm -rf conftest*
18664 eval "ac_cv_func_$ac_func=yes"
18665else
18666 echo "configure: failed program was:" >&5
18667 cat conftest.$ac_ext >&5
18668 rm -rf conftest*
18669 eval "ac_cv_func_$ac_func=no"
18670fi
18671rm -f conftest*
18672fi
698dcdb6 18673
a0b9e27f
MB
18674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18675 echo "$ac_t""yes" 1>&6
18676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18677 cat >> confdefs.h <<EOF
18678#define $ac_tr_func 1
18679EOF
18680
18681else
18682 echo "$ac_t""no" 1>&6
10f2d63a 18683fi
4f14bcd8 18684done
10f2d63a 18685
8284b0c5 18686
a0b9e27f 18687 for ac_hdr in sched.h
4f14bcd8 18688do
a0b9e27f
MB
18689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18690echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 18691echo "configure:18692: checking for $ac_hdr" >&5
a0b9e27f
MB
18692if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18693 echo $ac_n "(cached) $ac_c" 1>&6
18694else
18695 cat > conftest.$ac_ext <<EOF
82d43113 18696#line 18697 "configure"
247f5006 18697#include "confdefs.h"
a0b9e27f
MB
18698#include <$ac_hdr>
18699EOF
18700ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 18701{ (eval echo configure:18702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18702ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18703if test -z "$ac_err"; then
18704 rm -rf conftest*
18705 eval "ac_cv_header_$ac_safe=yes"
18706else
18707 echo "$ac_err" >&5
18708 echo "configure: failed program was:" >&5
4f14bcd8 18709 cat conftest.$ac_ext >&5
a0b9e27f
MB
18710 rm -rf conftest*
18711 eval "ac_cv_header_$ac_safe=no"
13111b2a 18712fi
a0b9e27f 18713rm -f conftest*
10f2d63a 18714fi
a0b9e27f
MB
18715if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18716 echo "$ac_t""yes" 1>&6
18717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18718 cat >> confdefs.h <<EOF
18719#define $ac_tr_hdr 1
18720EOF
18721
18722else
18723 echo "$ac_t""no" 1>&6
f6bcfd97 18724fi
4f14bcd8 18725done
f6bcfd97 18726
009fead0 18727 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18728 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
82d43113 18729echo "configure:18730: checking for sched_yield" >&5
a0b9e27f
MB
18730if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18731 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18732else
a0b9e27f 18733 cat > conftest.$ac_ext <<EOF
82d43113 18734#line 18735 "configure"
4f14bcd8 18735#include "confdefs.h"
009fead0 18736/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18737 which can conflict with char sched_yield(); below. */
009fead0 18738#include <assert.h>
4f14bcd8
GD
18739/* Override any gcc2 internal prototype to avoid an error. */
18740/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18741 builtin and then its argument prototype would still apply. */
18742char sched_yield();
18743
18744int main() {
18745
009fead0
VZ
18746/* The GNU C library defines this for functions which it implements
18747 to always fail with ENOSYS. Some functions are actually named
18748 something starting with __ and the normal name is an alias. */
18749#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18750choke me
18751#else
a0b9e27f 18752sched_yield();
009fead0
VZ
18753#endif
18754
a0b9e27f
MB
18755; return 0; }
18756EOF
82d43113 18757if { (eval echo configure:18758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18758 rm -rf conftest*
18759 eval "ac_cv_func_sched_yield=yes"
18760else
18761 echo "configure: failed program was:" >&5
18762 cat conftest.$ac_ext >&5
18763 rm -rf conftest*
18764 eval "ac_cv_func_sched_yield=no"
18765fi
18766rm -f conftest*
18767fi
18768
18769if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18770 echo "$ac_t""yes" 1>&6
18771 cat >> confdefs.h <<\EOF
4f14bcd8 18772#define HAVE_SCHED_YIELD 1
a0b9e27f 18773EOF
10f2d63a 18774
4f14bcd8 18775else
a0b9e27f 18776 echo "$ac_t""no" 1>&6
009fead0 18777
a0b9e27f 18778 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
82d43113 18779echo "configure:18780: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18780ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18782 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18783else
a0b9e27f 18784 ac_save_LIBS="$LIBS"
4f14bcd8 18785LIBS="-lposix4 $LIBS"
a0b9e27f 18786cat > conftest.$ac_ext <<EOF
82d43113 18787#line 18788 "configure"
4f14bcd8
GD
18788#include "confdefs.h"
18789/* Override any gcc2 internal prototype to avoid an error. */
18790/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18791 builtin and then its argument prototype would still apply. */
18792char sched_yield();
18793
18794int main() {
18795sched_yield()
18796; return 0; }
18797EOF
82d43113 18798if { (eval echo configure:18799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18799 rm -rf conftest*
18800 eval "ac_cv_lib_$ac_lib_var=yes"
18801else
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18804 rm -rf conftest*
18805 eval "ac_cv_lib_$ac_lib_var=no"
18806fi
18807rm -f conftest*
18808LIBS="$ac_save_LIBS"
18809
18810fi
18811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18812 echo "$ac_t""yes" 1>&6
18813 cat >> confdefs.h <<\EOF
4f14bcd8 18814#define HAVE_SCHED_YIELD 1
a0b9e27f 18815EOF
3d63bc3a 18816 POSIX4_LINK=" -lposix4"
4f14bcd8 18817else
a0b9e27f
MB
18818 echo "$ac_t""no" 1>&6
18819echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18820
54276ccf
VZ
18821fi
18822
a0b9e27f
MB
18823
18824
4f14bcd8 18825fi
698dcdb6 18826
009fead0 18827 fi
10f2d63a 18828
7274f1c7 18829 HAVE_PRIOR_FUNCS=0
a0b9e27f 18830 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
82d43113 18831echo "configure:18832: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
18832if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18833 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18834else
a0b9e27f 18835 cat > conftest.$ac_ext <<EOF
82d43113 18836#line 18837 "configure"
422107f9 18837#include "confdefs.h"
009fead0 18838/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18839 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 18840#include <assert.h>
4f14bcd8
GD
18841/* Override any gcc2 internal prototype to avoid an error. */
18842/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18843 builtin and then its argument prototype would still apply. */
18844char pthread_attr_getschedpolicy();
18845
18846int main() {
18847
009fead0
VZ
18848/* The GNU C library defines this for functions which it implements
18849 to always fail with ENOSYS. Some functions are actually named
18850 something starting with __ and the normal name is an alias. */
18851#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18852choke me
18853#else
a0b9e27f 18854pthread_attr_getschedpolicy();
009fead0
VZ
18855#endif
18856
a0b9e27f
MB
18857; return 0; }
18858EOF
82d43113 18859if { (eval echo configure:18860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18860 rm -rf conftest*
18861 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18862else
18863 echo "configure: failed program was:" >&5
18864 cat conftest.$ac_ext >&5
18865 rm -rf conftest*
18866 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18867fi
18868rm -f conftest*
18869fi
18870
18871if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18872 echo "$ac_t""yes" 1>&6
18873 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
82d43113 18874echo "configure:18875: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
18875if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 18877else
a0b9e27f 18878 cat > conftest.$ac_ext <<EOF
82d43113 18879#line 18880 "configure"
a0b9e27f
MB
18880#include "confdefs.h"
18881/* System header to define __stub macros and hopefully few prototypes,
18882 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 18883#include <assert.h>
422107f9
VZ
18884/* Override any gcc2 internal prototype to avoid an error. */
18885/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18886 builtin and then its argument prototype would still apply. */
18887char pthread_attr_setschedparam();
18888
18889int main() {
18890
009fead0
VZ
18891/* The GNU C library defines this for functions which it implements
18892 to always fail with ENOSYS. Some functions are actually named
18893 something starting with __ and the normal name is an alias. */
18894#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18895choke me
18896#else
a0b9e27f 18897pthread_attr_setschedparam();
009fead0
VZ
18898#endif
18899
a0b9e27f
MB
18900; return 0; }
18901EOF
82d43113 18902if { (eval echo configure:18903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18903 rm -rf conftest*
18904 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18905else
18906 echo "configure: failed program was:" >&5
18907 cat conftest.$ac_ext >&5
18908 rm -rf conftest*
18909 eval "ac_cv_func_pthread_attr_setschedparam=no"
18910fi
18911rm -f conftest*
18912fi
18913
18914if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18915 echo "$ac_t""yes" 1>&6
18916 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
82d43113 18917echo "configure:18918: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18918if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18919 echo $ac_n "(cached) $ac_c" 1>&6
18920else
18921 cat > conftest.$ac_ext <<EOF
82d43113 18922#line 18923 "configure"
422107f9 18923#include "confdefs.h"
009fead0
VZ
18924/* System header to define __stub macros and hopefully few prototypes
18925else
a0b9e27f
MB
18926 echo "$ac_t""no" 1>&6
18927which can conflict with char sched_get_priority_max(); below. */
009fead0 18928#include <assert.h>
4f14bcd8
GD
18929/* Override any gcc2 internal prototype to avoid an error. */
18930/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18931 builtin and then its argument prototype would still apply. */
18932char sched_get_priority_max();
18933
18934int main() {
18935
009fead0
VZ
18936/* The GNU C library defines this for functions which it implements
18937 to always fail with ENOSYS. Some functions are actually named
18938 something starting with __ and the normal name is an alias. */
18939#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18940choke me
18941#else
a0b9e27f 18942sched_get_priority_max();
009fead0
VZ
18943#endif
18944
a0b9e27f
MB
18945; return 0; }
18946EOF
82d43113 18947if { (eval echo configure:18948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18948 rm -rf conftest*
18949 eval "ac_cv_func_sched_get_priority_max=yes"
18950else
18951 echo "configure: failed program was:" >&5
18952 cat conftest.$ac_ext >&5
18953 rm -rf conftest*
18954 eval "ac_cv_func_sched_get_priority_max=no"
18955fi
18956rm -f conftest*
18957fi
18958
18959if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18960 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18961 HAVE_PRIOR_FUNCS=1
18962else
a0b9e27f
MB
18963 echo "$ac_t""no" 1>&6
18964echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
82d43113 18965echo "configure:18966: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18966ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18967if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18968 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18969else
a0b9e27f 18970 ac_save_LIBS="$LIBS"
4f14bcd8 18971LIBS="-lposix4 $LIBS"
a0b9e27f 18972cat > conftest.$ac_ext <<EOF
82d43113 18973#line 18974 "configure"
422107f9
VZ
18974#include "confdefs.h"
18975/* Override any gcc2 internal prototype to avoid an error. */
18976/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18977 builtin and then its argument prototype would still apply. */
18978char sched_get_priority_max();
18979
18980int main() {
18981sched_get_priority_max()
18982; return 0; }
18983EOF
82d43113 18984if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18985 rm -rf conftest*
18986 eval "ac_cv_lib_$ac_lib_var=yes"
18987else
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 eval "ac_cv_lib_$ac_lib_var=no"
18992fi
18993rm -f conftest*
18994LIBS="$ac_save_LIBS"
698dcdb6 18995
a0b9e27f
MB
18996fi
18997if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18998 echo "$ac_t""yes" 1>&6
18999
7274f1c7
RL
19000 HAVE_PRIOR_FUNCS=1
19001 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19002
19003else
19004 echo "$ac_t""no" 1>&6
4f14bcd8 19005fi
463abc64 19006
a0b9e27f 19007
328a083c 19008fi
463abc64 19009
a0b9e27f
MB
19010
19011else
19012 echo "$ac_t""no" 1>&6
7b4a847f 19013fi
579d8138 19014
a0b9e27f 19015
5c6fa7d2 19016fi
52127426 19017
8284b0c5 19018
7274f1c7 19019 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19020 cat >> confdefs.h <<\EOF
4f14bcd8 19021#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19022EOF
463abc64 19023
7274f1c7 19024 else
a0b9e27f 19025 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19026 fi
463abc64 19027
a0b9e27f 19028 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
82d43113 19029echo "configure:19030: checking for pthread_cancel" >&5
a0b9e27f
MB
19030if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19031 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19032else
a0b9e27f 19033 cat > conftest.$ac_ext <<EOF
82d43113 19034#line 19035 "configure"
422107f9 19035#include "confdefs.h"
009fead0 19036/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19037 which can conflict with char pthread_cancel(); below. */
009fead0 19038#include <assert.h>
422107f9
VZ
19039/* Override any gcc2 internal prototype to avoid an error. */
19040/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19041 builtin and then its argument prototype would still apply. */
19042char pthread_cancel();
19043
19044int main() {
19045
009fead0
VZ
19046/* The GNU C library defines this for functions which it implements
19047 to always fail with ENOSYS. Some functions are actually named
19048 something starting with __ and the normal name is an alias. */
19049#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19050choke me
19051#else
a0b9e27f 19052pthread_cancel();
009fead0
VZ
19053#endif
19054
a0b9e27f
MB
19055; return 0; }
19056EOF
82d43113 19057if { (eval echo configure:19058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19058 rm -rf conftest*
19059 eval "ac_cv_func_pthread_cancel=yes"
19060else
19061 echo "configure: failed program was:" >&5
19062 cat conftest.$ac_ext >&5
19063 rm -rf conftest*
19064 eval "ac_cv_func_pthread_cancel=no"
19065fi
19066rm -f conftest*
19067fi
19068
19069if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19070 echo "$ac_t""yes" 1>&6
19071 cat >> confdefs.h <<\EOF
4f14bcd8 19072#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19073EOF
4f14bcd8 19074
698dcdb6 19075else
a0b9e27f
MB
19076 echo "$ac_t""no" 1>&6
19077echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19078fi
19079
5c6fa7d2 19080
a0b9e27f 19081 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
82d43113 19082echo "configure:19083: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19083if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19084 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19085else
a0b9e27f
MB
19086
19087 cat > conftest.$ac_ext <<EOF
82d43113 19088#line 19089 "configure"
4f14bcd8
GD
19089#include "confdefs.h"
19090#include <pthread.h>
a0b9e27f 19091int main() {
4f14bcd8 19092
7274f1c7
RL
19093 pthread_cleanup_push(NULL, NULL);
19094 pthread_cleanup_pop(0);
a0b9e27f
MB
19095
19096; return 0; }
19097EOF
82d43113 19098if { (eval echo configure:19099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19099 rm -rf conftest*
19100
7274f1c7 19101 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19102
4f14bcd8 19103else
a0b9e27f
MB
19104 echo "configure: failed program was:" >&5
19105 cat conftest.$ac_ext >&5
19106 rm -rf conftest*
19107
7274f1c7 19108 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19109
5c6fa7d2 19110fi
a0b9e27f
MB
19111rm -f conftest*
19112
247f5006 19113fi
a0b9e27f
MB
19114
19115echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19116
7274f1c7 19117 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19118 cat >> confdefs.h <<\EOF
4f14bcd8 19119#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19120EOF
c7a2bf27 19121
7274f1c7 19122 fi
4f14bcd8 19123
a0b9e27f
MB
19124
19125 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
82d43113 19126echo "configure:19127: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19127if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19128 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19129else
a0b9e27f
MB
19130
19131 cat > conftest.$ac_ext <<EOF
82d43113 19132#line 19133 "configure"
0dcf9893 19133#include "confdefs.h"
4f14bcd8 19134#include <pthread.h>
a0b9e27f 19135int main() {
4f14bcd8 19136
7274f1c7
RL
19137 pthread_mutexattr_t attr;
19138 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19139
19140; return 0; }
19141EOF
82d43113 19142if { (eval echo configure:19143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19143 rm -rf conftest*
19144
7274f1c7 19145 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19146
3fed1840 19147else
a0b9e27f
MB
19148 echo "configure: failed program was:" >&5
19149 cat conftest.$ac_ext >&5
19150 rm -rf conftest*
19151
7274f1c7 19152 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19153
19154
5c6fa7d2 19155fi
a0b9e27f
MB
19156rm -f conftest*
19157
247f5006 19158fi
a0b9e27f
MB
19159
19160echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19161
7274f1c7 19162 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19163 cat >> confdefs.h <<\EOF
4f14bcd8 19164#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19165EOF
4f14bcd8 19166
7274f1c7 19167 else
a0b9e27f 19168 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
82d43113 19169echo "configure:19170: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19170if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19171 echo $ac_n "(cached) $ac_c" 1>&6
19172else
19173
19174 cat > conftest.$ac_ext <<EOF
82d43113 19175#line 19176 "configure"
3fed1840 19176#include "confdefs.h"
4f14bcd8 19177#include <pthread.h>
a0b9e27f 19178int main() {
4f14bcd8 19179
7274f1c7 19180 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19181
19182; return 0; }
19183EOF
82d43113 19184if { (eval echo configure:19185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19185 rm -rf conftest*
19186
7274f1c7 19187 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19188
698dcdb6 19189else
a0b9e27f
MB
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19192 rm -rf conftest*
19193
7274f1c7 19194 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19195
19196
5c6fa7d2 19197fi
a0b9e27f
MB
19198rm -f conftest*
19199
247f5006 19200fi
a0b9e27f
MB
19201
19202echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19203 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19204 cat >> confdefs.h <<\EOF
4f14bcd8 19205#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19206EOF
3fed1840 19207
7274f1c7 19208 else
a0b9e27f 19209 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19210 fi
19211 fi
7274f1c7 19212 fi
3fed1840 19213
a0b9e27f
MB
19214else
19215 if test "$wxUSE_THREADS" = "yes" ; then
19216 case "${host}" in
19217 *-*-mingw32* )
ca8e52b3 19218 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
82d43113 19219echo "configure:19220: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19220if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19221 echo $ac_n "(cached) $ac_c" 1>&6
19222else
19223
19224 CFLAGS_OLD="$CFLAGS"
19225 CFLAGS="$CFLAGS -mthreads"
19226 cat > conftest.$ac_ext <<EOF
82d43113 19227#line 19228 "configure"
ca8e52b3
VZ
19228#include "confdefs.h"
19229
19230int main() {
19231
19232; return 0; }
19233EOF
82d43113 19234if { (eval echo configure:19235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19235 rm -rf conftest*
19236 wx_cv_cflags_mthread=yes
19237else
19238 echo "configure: failed program was:" >&5
19239 cat conftest.$ac_ext >&5
19240 rm -rf conftest*
19241 wx_cv_cflags_mthread=no
19242
19243fi
19244rm -f conftest*
19245
19246
19247fi
19248
19249echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19250
19251 if test "$wx_cv_cflags_mthread" = "yes"; then
19252 CXXFLAGS="$CXXFLAGS -mthreads"
19253 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19254 LDFLAGS="$LDFLAGS -mthreads"
19255 else
19256 CFLAGS="$CFLAGS_OLD"
19257 fi
a0b9e27f
MB
19258 ;;
19259 esac
19260 fi
4f14bcd8
GD
19261fi
19262
19263if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19264 cat >> confdefs.h <<\EOF
4f14bcd8 19265#define wxUSE_THREADS 1
a0b9e27f 19266EOF
7b6058cd 19267
8284b0c5 19268
4f14bcd8 19269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19270else
4f14bcd8 19271 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19272 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
82d43113 19273echo "configure:19274: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19274 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19275 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19276 echo "$ac_t""yes" 1>&6
4f14bcd8 19277 else
a0b9e27f 19278 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19279 fi
19280 fi
19281fi
19282
19283if test "$WXGTK20" = 1 ; then
a0b9e27f 19284 cat >> confdefs.h <<EOF
4f14bcd8 19285#define __WXGTK20__ $WXGTK20
a0b9e27f 19286EOF
4f14bcd8
GD
19287
19288 WXGTK12=1
10f2d63a 19289fi
4f14bcd8
GD
19290
19291if test "$WXGTK12" = 1 ; then
a0b9e27f 19292 cat >> confdefs.h <<EOF
4f14bcd8 19293#define __WXGTK12__ $WXGTK12
a0b9e27f 19294EOF
4f14bcd8 19295
10f2d63a 19296fi
698dcdb6 19297
4f14bcd8 19298if test "$WXGTK127" = 1 ; then
a0b9e27f 19299 cat >> confdefs.h <<EOF
4f14bcd8 19300#define __WXGTK127__ $WXGTK127
a0b9e27f 19301EOF
4f14bcd8 19302
698dcdb6 19303fi
10f2d63a 19304
4f14bcd8
GD
19305WXDEBUG=
19306
19307if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19308 WXDEBUG="-g"
19309 wxUSE_OPTIMISE=no
698dcdb6 19310fi
4f14bcd8
GD
19311
19312if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19313 wxUSE_DEBUG_INFO=yes
19314 WXDEBUG="-ggdb"
10f2d63a
VZ
19315fi
19316
4f14bcd8 19317if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19318 cat >> confdefs.h <<\EOF
4f14bcd8 19319#define WXDEBUG 1
a0b9e27f 19320EOF
4f14bcd8
GD
19321
19322 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19323else
4f14bcd8
GD
19324 if test "$wxUSE_GTK" = 1 ; then
19325 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19326 fi
19327fi
19328
19329if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19330 cat >> confdefs.h <<\EOF
4f14bcd8 19331#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19332EOF
4f14bcd8 19333
a0b9e27f 19334 cat >> confdefs.h <<\EOF
4f14bcd8 19335#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19336EOF
4f14bcd8 19337
a0b9e27f 19338 cat >> confdefs.h <<\EOF
4f14bcd8 19339#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19340EOF
4f14bcd8
GD
19341
19342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19343fi
19344
19345if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19346 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19347fi
19348
19349PROFILE=
19350if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19351 PROFILE=" -pg"
10f2d63a
VZ
19352fi
19353
009fead0
VZ
19354CODE_GEN_FLAGS=
19355CODE_GEN_FLAGS_CXX=
88e30f2b 19356if test "$GCC" = "yes" ; then
4f14bcd8
GD
19357 if test "$wxUSE_NO_RTTI" = "yes" ; then
19358 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19359 fi
4f14bcd8
GD
19360 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19361 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19362 fi
19363 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19364 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19365 fi
4f14bcd8
GD
19366 if test "$USE_WIN32" = 1 ; then
19367 # I'm not even really sure what this was ever added to solve,
19368 # but someone added it for mingw native builds, so I guess
19369 # they had a reason, right??
19370 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19371 fi
1d1b75ac 19372
2b5f62a0 19373 case "${host}" in
1d1b75ac
VZ
19374 powerpc*-*-aix* )
19375 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19376 ;;
2b5f62a0
VZ
19377 *-hppa* )
19378 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19379 ;;
1d1b75ac 19380 esac
4f14bcd8
GD
19381fi
19382
4f14bcd8
GD
19383if test "$wxUSE_OPTIMISE" = "no" ; then
19384 OPTIMISE=
19385else
19386 if test "$GCC" = yes ; then
19387 OPTIMISE="-O2"
19388 case "${host}" in
19389 i586-*-*|i686-*-* )
19390 OPTIMISE="${OPTIMISE} "
19391 ;;
19392 esac
19393 else
19394 OPTIMISE="-O"
19395 fi
19396fi
19397
8d90d2f2 19398
4f14bcd8 19399if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19400 cat >> confdefs.h <<\EOF
4f14bcd8 19401#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19402EOF
4f14bcd8 19403
8284b0c5 19404
4f14bcd8
GD
19405 WXWIN_COMPATIBILITY_2_2="yes"
19406fi
19407
65d8ef1e 19408if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19409 cat >> confdefs.h <<\EOF
4f14bcd8 19410#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19411EOF
4f14bcd8 19412
8d90d2f2
VZ
19413
19414 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19415fi
19416
65d8ef1e
VS
19417if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19418 cat >> confdefs.h <<\EOF
19419#define WXWIN_COMPATIBILITY_2_4 1
19420EOF
19421
19422fi
19423
8284b0c5 19424
10f2d63a 19425if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19426 cat >> confdefs.h <<\EOF
10f2d63a 19427#define wxUSE_GUI 1
a0b9e27f 19428EOF
10f2d63a 19429
8284b0c5 19430
10f2d63a 19431 else
a0b9e27f 19432 cat >> confdefs.h <<\EOF
10f2d63a 19433#define wxUSE_NOGUI 1
a0b9e27f 19434EOF
10f2d63a
VZ
19435
19436fi
19437
8284b0c5 19438
10f2d63a 19439if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19440 cat >> confdefs.h <<\EOF
10f2d63a 19441#define wxUSE_UNIX 1
a0b9e27f 19442EOF
10f2d63a
VZ
19443
19444fi
19445
8284b0c5 19446
10f2d63a 19447if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19448 cat >> confdefs.h <<\EOF
10f2d63a 19449#define wxUSE_APPLE_IEEE 1
a0b9e27f 19450EOF
10f2d63a
VZ
19451
19452fi
19453
1e6feb95 19454if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19455 cat >> confdefs.h <<\EOF
1e6feb95 19456#define wxUSE_TIMER 1
a0b9e27f 19457EOF
1e6feb95
VZ
19458
19459fi
19460
10f2d63a 19461if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19462 cat >> confdefs.h <<\EOF
10f2d63a 19463#define wxUSE_WAVE 1
a0b9e27f 19464EOF
10f2d63a
VZ
19465
19466fi
19467
1e6feb95 19468if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19469 cat >> confdefs.h <<\EOF
1e6feb95 19470#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19471EOF
1e6feb95
VZ
19472
19473fi
19474
19475if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19476 cat >> confdefs.h <<\EOF
1e6feb95 19477#define wxUSE_STOPWATCH 1
a0b9e27f 19478EOF
1e6feb95
VZ
19479
19480fi
19481
19482if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19483 cat >> confdefs.h <<\EOF
1e6feb95 19484#define wxUSE_DATETIME 1
a0b9e27f 19485EOF
1e6feb95
VZ
19486
19487fi
19488
19489if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 19490 cat >> confdefs.h <<\EOF
1e6feb95 19491#define wxUSE_TIMEDATE 1
a0b9e27f 19492EOF
1e6feb95
VZ
19493
19494fi
19495
10f2d63a 19496if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19497 cat >> confdefs.h <<\EOF
10f2d63a 19498#define wxUSE_FILE 1
a0b9e27f 19499EOF
10f2d63a
VZ
19500
19501fi
19502
1e6feb95 19503if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19504 cat >> confdefs.h <<\EOF
1e6feb95 19505#define wxUSE_FFILE 1
a0b9e27f 19506EOF
1e6feb95
VZ
19507
19508fi
19509
24528b0c 19510if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19511 cat >> confdefs.h <<\EOF
24528b0c 19512#define wxUSE_FILESYSTEM 1
a0b9e27f 19513EOF
24528b0c
VS
19514
19515fi
19516
10f2d63a 19517if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19518 cat >> confdefs.h <<\EOF
10f2d63a 19519#define wxUSE_FS_INET 1
a0b9e27f 19520EOF
10f2d63a
VZ
19521
19522fi
19523
19524if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19525 cat >> confdefs.h <<\EOF
10f2d63a 19526#define wxUSE_FS_ZIP 1
a0b9e27f 19527EOF
10f2d63a
VZ
19528
19529fi
19530
19531if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19532 cat >> confdefs.h <<\EOF
10f2d63a 19533#define wxUSE_ZIPSTREAM 1
a0b9e27f 19534EOF
10f2d63a
VZ
19535
19536fi
19537
eb4efbdc 19538if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19539 cat >> confdefs.h <<\EOF
eb4efbdc 19540#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19541EOF
eb4efbdc
VZ
19542
19543fi
19544
4f3c5f06 19545if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19546 cat >> confdefs.h <<\EOF
4f3c5f06 19547#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19548EOF
4f3c5f06
VZ
19549
19550fi
19551
10f2d63a 19552if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19553 cat >> confdefs.h <<\EOF
10f2d63a 19554#define wxUSE_BUSYINFO 1
a0b9e27f 19555EOF
10f2d63a
VZ
19556
19557fi
19558
19559if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19560 cat >> confdefs.h <<\EOF
10f2d63a 19561#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19562EOF
10f2d63a
VZ
19563
19564fi
19565
a3a584a7 19566if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19567 cat >> confdefs.h <<\EOF
a3a584a7 19568#define wxUSE_TEXTBUFFER 1
a0b9e27f 19569EOF
a3a584a7
VZ
19570
19571fi
19572
10f2d63a 19573if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19574 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19575 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19576 else
a0b9e27f 19577 cat >> confdefs.h <<\EOF
10f2d63a 19578#define wxUSE_TEXTFILE 1
a0b9e27f 19579EOF
10f2d63a
VZ
19580
19581 fi
19582fi
19583
19584if test "$wxUSE_CONFIG" = "yes" ; then
19585 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19586 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19587 else
a0b9e27f 19588 cat >> confdefs.h <<\EOF
10f2d63a 19589#define wxUSE_CONFIG 1
a0b9e27f 19590EOF
10f2d63a
VZ
19591
19592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19593 fi
19594fi
19595
19596if test "$wxUSE_INTL" = "yes" ; then
19597 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19598 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19599 else
a0b9e27f 19600 cat >> confdefs.h <<\EOF
10f2d63a 19601#define wxUSE_INTL 1
a0b9e27f 19602EOF
10f2d63a
VZ
19603
19604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19605 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19606 fi
19607fi
19608
19609if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19610 cat >> confdefs.h <<\EOF
10f2d63a 19611#define wxUSE_LOG 1
a0b9e27f 19612EOF
10f2d63a 19613
8284b0c5 19614
d73be714 19615 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19616 cat >> confdefs.h <<\EOF
d73be714 19617#define wxUSE_LOGGUI 1
a0b9e27f 19618EOF
d73be714
VZ
19619
19620 fi
19621
19622 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19623 cat >> confdefs.h <<\EOF
d73be714 19624#define wxUSE_LOGWINDOW 1
a0b9e27f 19625EOF
69d27ff7
MB
19626
19627 fi
19628
19629 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19630 cat >> confdefs.h <<\EOF
69d27ff7 19631#define wxUSE_LOG_DIALOG 1
a0b9e27f 19632EOF
d73be714
VZ
19633
19634 fi
10f2d63a
VZ
19635fi
19636
19637if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19638 cat >> confdefs.h <<\EOF
10f2d63a 19639#define wxUSE_LONGLONG 1
a0b9e27f 19640EOF
10f2d63a
VZ
19641
19642fi
19643
e8f65ba6 19644if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19645 cat >> confdefs.h <<\EOF
e8f65ba6 19646#define wxUSE_GEOMETRY 1
a0b9e27f 19647EOF
e8f65ba6
RR
19648
19649fi
19650
10f2d63a 19651if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19652 cat >> confdefs.h <<\EOF
10f2d63a 19653#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19654EOF
10f2d63a 19655
70f7a477 19656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19657fi
19658
19659if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19660 cat >> confdefs.h <<\EOF
10f2d63a 19661#define wxUSE_STREAMS 1
a0b9e27f 19662EOF
10f2d63a
VZ
19663
19664fi
19665
5c6fa7d2 19666
8284b0c5 19667if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19668 for ac_func in strptime
83307f33 19669do
a0b9e27f 19670echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 19671echo "configure:19672: checking for $ac_func" >&5
a0b9e27f
MB
19672if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19673 echo $ac_n "(cached) $ac_c" 1>&6
19674else
19675 cat > conftest.$ac_ext <<EOF
82d43113 19676#line 19677 "configure"
83307f33
VZ
19677#include "confdefs.h"
19678/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19679 which can conflict with char $ac_func(); below. */
83307f33
VZ
19680#include <assert.h>
19681/* Override any gcc2 internal prototype to avoid an error. */
19682/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19683 builtin and then its argument prototype would still apply. */
19684char $ac_func();
19685
19686int main() {
19687
83307f33
VZ
19688/* The GNU C library defines this for functions which it implements
19689 to always fail with ENOSYS. Some functions are actually named
19690 something starting with __ and the normal name is an alias. */
19691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19692choke me
19693#else
a0b9e27f 19694$ac_func();
83307f33
VZ
19695#endif
19696
a0b9e27f
MB
19697; return 0; }
19698EOF
82d43113 19699if { (eval echo configure:19700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19700 rm -rf conftest*
19701 eval "ac_cv_func_$ac_func=yes"
19702else
19703 echo "configure: failed program was:" >&5
19704 cat conftest.$ac_ext >&5
19705 rm -rf conftest*
19706 eval "ac_cv_func_$ac_func=no"
19707fi
19708rm -f conftest*
19709fi
83307f33 19710
a0b9e27f
MB
19711if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19712 echo "$ac_t""yes" 1>&6
19713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19714 cat >> confdefs.h <<EOF
19715#define $ac_tr_func 1
19716EOF
19717
19718else
19719 echo "$ac_t""no" 1>&6
83307f33
VZ
19720fi
19721done
19722
5c6fa7d2 19723
a0b9e27f 19724 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
82d43113 19725echo "configure:19726: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19726if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19727 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19728else
a0b9e27f
MB
19729
19730 cat > conftest.$ac_ext <<EOF
82d43113 19731#line 19732 "configure"
360d6699
VZ
19732#include "confdefs.h"
19733
b4085ce6 19734 #include <time.h>
a0b9e27f
MB
19735
19736int main() {
360d6699
VZ
19737
19738 int tz;
4f11a343 19739 tz = timezone;
a0b9e27f
MB
19740
19741; return 0; }
19742EOF
82d43113 19743if { (eval echo configure:19744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19744 rm -rf conftest*
19745
4f11a343 19746 wx_cv_var_timezone=timezone
a0b9e27f 19747
360d6699 19748else
a0b9e27f
MB
19749 echo "configure: failed program was:" >&5
19750 cat conftest.$ac_ext >&5
19751 rm -rf conftest*
19752
19753 cat > conftest.$ac_ext <<EOF
82d43113 19754#line 19755 "configure"
360d6699
VZ
19755#include "confdefs.h"
19756
b4085ce6 19757 #include <time.h>
a0b9e27f
MB
19758
19759int main() {
360d6699
VZ
19760
19761 int tz;
19762 tz = _timezone;
a0b9e27f
MB
19763
19764; return 0; }
19765EOF
82d43113 19766if { (eval echo configure:19767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19767 rm -rf conftest*
19768
360d6699 19769 wx_cv_var_timezone=_timezone
a0b9e27f 19770
5357c8e8 19771else
a0b9e27f
MB
19772 echo "configure: failed program was:" >&5
19773 cat conftest.$ac_ext >&5
19774 rm -rf conftest*
19775
19776 cat > conftest.$ac_ext <<EOF
82d43113 19777#line 19778 "configure"
5357c8e8
VZ
19778#include "confdefs.h"
19779
b4085ce6 19780 #include <time.h>
a0b9e27f
MB
19781
19782int main() {
5357c8e8
VZ
19783
19784 int tz;
4f11a343 19785 tz = __timezone;
a0b9e27f
MB
19786
19787; return 0; }
19788EOF
82d43113 19789if { (eval echo configure:19790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19790 rm -rf conftest*
19791
4f11a343 19792 wx_cv_var_timezone=__timezone
a0b9e27f 19793
360d6699 19794else
a0b9e27f
MB
19795 echo "configure: failed program was:" >&5
19796 cat conftest.$ac_ext >&5
19797 rm -rf conftest*
19798
f9bc1684 19799 if test "$USE_DOS" = 0 ; then
a0b9e27f 19800 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19801 fi
a0b9e27f
MB
19802
19803
328a083c 19804fi
a0b9e27f
MB
19805rm -f conftest*
19806
19807
7b4a847f 19808fi
a0b9e27f
MB
19809rm -f conftest*
19810
19811
5c6fa7d2 19812fi
a0b9e27f
MB
19813rm -f conftest*
19814
19815
247f5006 19816fi
a0b9e27f
MB
19817
19818echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19819
f9bc1684 19820 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19821 cat >> confdefs.h <<EOF
360d6699 19822#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 19823EOF
360d6699 19824
f9bc1684 19825 fi
698dcdb6 19826
a0b9e27f 19827 for ac_func in localtime
afc31813 19828do
a0b9e27f 19829echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 19830echo "configure:19831: checking for $ac_func" >&5
a0b9e27f
MB
19831if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19832 echo $ac_n "(cached) $ac_c" 1>&6
19833else
19834 cat > conftest.$ac_ext <<EOF
82d43113 19835#line 19836 "configure"
10f2d63a 19836#include "confdefs.h"
afc31813 19837/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19838 which can conflict with char $ac_func(); below. */
afc31813
VZ
19839#include <assert.h>
19840/* Override any gcc2 internal prototype to avoid an error. */
19841/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19842 builtin and then its argument prototype would still apply. */
19843char $ac_func();
19844
19845int main() {
19846
afc31813
VZ
19847/* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19851choke me
19852#else
a0b9e27f 19853$ac_func();
afc31813
VZ
19854#endif
19855
a0b9e27f
MB
19856; return 0; }
19857EOF
82d43113 19858if { (eval echo configure:19859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19859 rm -rf conftest*
19860 eval "ac_cv_func_$ac_func=yes"
19861else
19862 echo "configure: failed program was:" >&5
19863 cat conftest.$ac_ext >&5
19864 rm -rf conftest*
19865 eval "ac_cv_func_$ac_func=no"
19866fi
19867rm -f conftest*
19868fi
afc31813 19869
a0b9e27f
MB
19870if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19871 echo "$ac_t""yes" 1>&6
19872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19873 cat >> confdefs.h <<EOF
19874#define $ac_tr_func 1
19875EOF
19876
19877else
19878 echo "$ac_t""no" 1>&6
afc31813
VZ
19879fi
19880done
19881
5c6fa7d2 19882
8284b0c5 19883 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 19884 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
82d43113 19885echo "configure:19886: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
19886if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19887 echo $ac_n "(cached) $ac_c" 1>&6
19888else
19889
19890 cat > conftest.$ac_ext <<EOF
82d43113 19891#line 19892 "configure"
0470b1e6
VZ
19892#include "confdefs.h"
19893
b4085ce6 19894 #include <time.h>
a0b9e27f
MB
19895
19896int main() {
0470b1e6
VZ
19897
19898 struct tm tm;
19899 tm.tm_gmtoff++;
a0b9e27f
MB
19900
19901; return 0; }
19902EOF
82d43113 19903if { (eval echo configure:19904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19904 rm -rf conftest*
19905
f03a98d8 19906 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 19907
0470b1e6 19908else
a0b9e27f
MB
19909 echo "configure: failed program was:" >&5
19910 cat conftest.$ac_ext >&5
19911 rm -rf conftest*
19912 wx_cv_struct_tm_has_gmtoff=no
19913
5c6fa7d2 19914fi
a0b9e27f
MB
19915rm -f conftest*
19916
247f5006 19917fi
a0b9e27f
MB
19918
19919echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
19920 fi
19921
19922 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 19923 cat >> confdefs.h <<\EOF
6232543b 19924#define WX_GMTOFF_IN_TM 1
a0b9e27f 19925EOF
0470b1e6 19926
3fcdd07b
VZ
19927 fi
19928
a0b9e27f 19929 for ac_func in gettimeofday ftime
3fcdd07b 19930do
a0b9e27f 19931echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 19932echo "configure:19933: checking for $ac_func" >&5
a0b9e27f
MB
19933if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19934 echo $ac_n "(cached) $ac_c" 1>&6
19935else
19936 cat > conftest.$ac_ext <<EOF
82d43113 19937#line 19938 "configure"
3fcdd07b
VZ
19938#include "confdefs.h"
19939/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19940 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
19941#include <assert.h>
19942/* Override any gcc2 internal prototype to avoid an error. */
19943/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19944 builtin and then its argument prototype would still apply. */
19945char $ac_func();
19946
19947int main() {
19948
3fcdd07b
VZ
19949/* The GNU C library defines this for functions which it implements
19950 to always fail with ENOSYS. Some functions are actually named
19951 something starting with __ and the normal name is an alias. */
19952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19953choke me
19954#else
a0b9e27f 19955$ac_func();
3fcdd07b
VZ
19956#endif
19957
a0b9e27f
MB
19958; return 0; }
19959EOF
82d43113 19960if { (eval echo configure:19961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19961 rm -rf conftest*
19962 eval "ac_cv_func_$ac_func=yes"
19963else
19964 echo "configure: failed program was:" >&5
19965 cat conftest.$ac_ext >&5
19966 rm -rf conftest*
19967 eval "ac_cv_func_$ac_func=no"
19968fi
19969rm -f conftest*
19970fi
19971
19972if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19973 echo "$ac_t""yes" 1>&6
19974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19975 cat >> confdefs.h <<EOF
19976#define $ac_tr_func 1
19977EOF
3fcdd07b 19978 break
a0b9e27f
MB
19979else
19980 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19981fi
19982done
19983
698dcdb6 19984
8284b0c5 19985 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19986 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
82d43113 19987echo "configure:19988: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19988if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19989 echo $ac_n "(cached) $ac_c" 1>&6
19990else
19991
19992
19993 ac_ext=C
19994# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19995ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19996ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19997ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19998cross_compiling=$ac_cv_prog_cxx_cross
52127426 19999
8284b0c5 20000
a0b9e27f 20001 cat > conftest.$ac_ext <<EOF
82d43113 20002#line 20003 "configure"
10f2d63a 20003#include "confdefs.h"
afc31813
VZ
20004
20005 #include <sys/time.h>
20006 #include <unistd.h>
a0b9e27f
MB
20007
20008int main() {
afc31813
VZ
20009
20010 struct timeval tv;
776862b4 20011 gettimeofday(&tv, NULL);
a0b9e27f
MB
20012
20013; return 0; }
20014EOF
82d43113 20015if { (eval echo configure:20016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20016 rm -rf conftest*
afc31813 20017 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20018else
a0b9e27f
MB
20019 echo "configure: failed program was:" >&5
20020 cat conftest.$ac_ext >&5
20021 rm -rf conftest*
20022 cat > conftest.$ac_ext <<EOF
82d43113 20023#line 20024 "configure"
10f2d63a 20024#include "confdefs.h"
afc31813
VZ
20025
20026 #include <sys/time.h>
20027 #include <unistd.h>
a0b9e27f
MB
20028
20029int main() {
afc31813
VZ
20030
20031 struct timeval tv;
20032 gettimeofday(&tv);
a0b9e27f
MB
20033
20034; return 0; }
20035EOF
82d43113 20036if { (eval echo configure:20037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20037 rm -rf conftest*
afc31813 20038 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20039else
a0b9e27f
MB
20040 echo "configure: failed program was:" >&5
20041 cat conftest.$ac_ext >&5
20042 rm -rf conftest*
20043
20044 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20045 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20046
20047
10f2d63a 20048fi
a0b9e27f
MB
20049rm -f conftest*
20050
10f2d63a 20051fi
a0b9e27f 20052rm -f conftest*
afc31813 20053 ac_ext=c
a0b9e27f 20054# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20055ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20056ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20057ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20058cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20059
a0b9e27f 20060
247f5006 20061fi
a0b9e27f
MB
20062
20063echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20064
afc31813 20065 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20066 cat >> confdefs.h <<\EOF
afc31813 20067#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20068EOF
afc31813
VZ
20069
20070 fi
20071 fi
20072
a0b9e27f 20073 cat >> confdefs.h <<\EOF
afc31813 20074#define wxUSE_TIMEDATE 1
a0b9e27f 20075EOF
afc31813
VZ
20076
20077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20078fi
20079
8284b0c5 20080
52127426 20081if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20082 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20083 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20084 wxUSE_SOCKETS="no"
20085 fi
0feee163 20086fi
b089607b 20087
0feee163
VZ
20088if test "$wxUSE_SOCKETS" = "yes"; then
20089 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20090 echo $ac_n "checking for socket""... $ac_c" 1>&6
82d43113 20091echo "configure:20092: checking for socket" >&5
a0b9e27f
MB
20092if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20093 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20094else
a0b9e27f 20095 cat > conftest.$ac_ext <<EOF
82d43113 20096#line 20097 "configure"
c63c7106
VZ
20097#include "confdefs.h"
20098/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20099 which can conflict with char socket(); below. */
c63c7106
VZ
20100#include <assert.h>
20101/* Override any gcc2 internal prototype to avoid an error. */
20102/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20103 builtin and then its argument prototype would still apply. */
20104char socket();
20105
20106int main() {
20107
c63c7106
VZ
20108/* The GNU C library defines this for functions which it implements
20109 to always fail with ENOSYS. Some functions are actually named
20110 something starting with __ and the normal name is an alias. */
20111#if defined (__stub_socket) || defined (__stub___socket)
20112choke me
20113#else
a0b9e27f 20114socket();
c63c7106
VZ
20115#endif
20116
a0b9e27f
MB
20117; return 0; }
20118EOF
82d43113 20119if { (eval echo configure:20120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20120 rm -rf conftest*
20121 eval "ac_cv_func_socket=yes"
20122else
20123 echo "configure: failed program was:" >&5
20124 cat conftest.$ac_ext >&5
20125 rm -rf conftest*
20126 eval "ac_cv_func_socket=no"
20127fi
20128rm -f conftest*
20129fi
20130
20131if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20132 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20133 :
20134else
a0b9e27f
MB
20135 echo "$ac_t""no" 1>&6
20136echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
82d43113 20137echo "configure:20138: checking for socket in -lsocket" >&5
a0b9e27f
MB
20138ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20140 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20141else
a0b9e27f 20142 ac_save_LIBS="$LIBS"
c63c7106 20143LIBS="-lsocket $LIBS"
a0b9e27f 20144cat > conftest.$ac_ext <<EOF
82d43113 20145#line 20146 "configure"
c63c7106
VZ
20146#include "confdefs.h"
20147/* Override any gcc2 internal prototype to avoid an error. */
20148/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20149 builtin and then its argument prototype would still apply. */
20150char socket();
20151
20152int main() {
20153socket()
20154; return 0; }
20155EOF
82d43113 20156if { (eval echo configure:20157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20157 rm -rf conftest*
20158 eval "ac_cv_lib_$ac_lib_var=yes"
20159else
20160 echo "configure: failed program was:" >&5
20161 cat conftest.$ac_ext >&5
20162 rm -rf conftest*
20163 eval "ac_cv_lib_$ac_lib_var=no"
20164fi
20165rm -f conftest*
20166LIBS="$ac_save_LIBS"
20167
20168fi
20169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20170 echo "$ac_t""yes" 1>&6
d558c907
VS
20171 if test "$INET_LINK" != " -lsocket"; then
20172 INET_LINK="$INET_LINK -lsocket"
20173 fi
c63c7106 20174else
a0b9e27f 20175 echo "$ac_t""no" 1>&6
afc31813 20176
a0b9e27f 20177 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20178 wxUSE_SOCKETS=no
a0b9e27f
MB
20179
20180
6232543b 20181fi
b089607b 20182
a0b9e27f 20183
1e487827 20184fi
afc31813 20185
3a922bb4 20186 fi
0feee163 20187fi
51a9faba 20188
0feee163
VZ
20189if test "$wxUSE_SOCKETS" = "yes" ; then
20190 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20191 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
82d43113 20192echo "configure:20193: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20193if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20194 echo $ac_n "(cached) $ac_c" 1>&6
20195else
20196
20197
20198 ac_ext=C
20199# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20200ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20201ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20202ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20203cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20204
8284b0c5 20205
a0b9e27f 20206 cat > conftest.$ac_ext <<EOF
82d43113 20207#line 20208 "configure"
afc31813 20208#include "confdefs.h"
51a9faba 20209
3a922bb4
RL
20210 #include <sys/types.h>
20211 #include <sys/socket.h>
a0b9e27f
MB
20212
20213int main() {
51a9faba 20214
3a922bb4
RL
20215 socklen_t len;
20216 getsockname(0, 0, &len);
a0b9e27f
MB
20217
20218; return 0; }
20219EOF
82d43113 20220if { (eval echo configure:20221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20221 rm -rf conftest*
51a9faba 20222 wx_cv_type_getsockname3=socklen_t
afc31813 20223else
a0b9e27f
MB
20224 echo "configure: failed program was:" >&5
20225 cat conftest.$ac_ext >&5
20226 rm -rf conftest*
20227 cat > conftest.$ac_ext <<EOF
82d43113 20228#line 20229 "configure"
afc31813 20229#include "confdefs.h"
51a9faba 20230
3a922bb4
RL
20231 #include <sys/types.h>
20232 #include <sys/socket.h>
a0b9e27f
MB
20233
20234int main() {
51a9faba 20235
3a922bb4
RL
20236 size_t len;
20237 getsockname(0, 0, &len);
a0b9e27f
MB
20238
20239; return 0; }
20240EOF
82d43113 20241if { (eval echo configure:20242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20242 rm -rf conftest*
51a9faba 20243 wx_cv_type_getsockname3=size_t
afc31813 20244else
a0b9e27f
MB
20245 echo "configure: failed program was:" >&5
20246 cat conftest.$ac_ext >&5
20247 rm -rf conftest*
20248 cat > conftest.$ac_ext <<EOF
82d43113 20249#line 20250 "configure"
afc31813 20250#include "confdefs.h"
51a9faba 20251
3a922bb4
RL
20252 #include <sys/types.h>
20253 #include <sys/socket.h>
a0b9e27f
MB
20254
20255int main() {
51a9faba 20256
3a922bb4
RL
20257 int len;
20258 getsockname(0, 0, &len);
a0b9e27f
MB
20259
20260; return 0; }
20261EOF
82d43113 20262if { (eval echo configure:20263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20263 rm -rf conftest*
51a9faba 20264 wx_cv_type_getsockname3=int
afc31813 20265else
a0b9e27f
MB
20266 echo "configure: failed program was:" >&5
20267 cat conftest.$ac_ext >&5
20268 rm -rf conftest*
20269 wx_cv_type_getsockname3=unknown
20270
afc31813 20271fi
a0b9e27f
MB
20272rm -f conftest*
20273
afc31813 20274fi
a0b9e27f
MB
20275rm -f conftest*
20276
afc31813 20277fi
a0b9e27f 20278rm -f conftest*
51a9faba 20279
3a922bb4 20280 ac_ext=c
a0b9e27f 20281# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20282ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20283ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20284ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20285cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20286
a0b9e27f 20287
247f5006 20288fi
a0b9e27f
MB
20289
20290echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20291
3a922bb4
RL
20292 if test "$wx_cv_type_getsockname3" = "unknown"; then
20293 wxUSE_SOCKETS=no
a0b9e27f 20294 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20295 else
a0b9e27f 20296 cat >> confdefs.h <<EOF
51a9faba 20297#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20298EOF
51a9faba 20299
3a922bb4 20300 fi
51a9faba
VZ
20301 fi
20302fi
afc31813 20303
51a9faba 20304if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20305 cat >> confdefs.h <<\EOF
afc31813 20306#define wxUSE_SOCKETS 1
a0b9e27f 20307EOF
afc31813 20308
70f7a477 20309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20310fi
20311
8284b0c5 20312
dc3d889d
VZ
20313if test "$wxUSE_GUI" = "yes"; then
20314
156b2523 20315 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 20316 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20317 wxUSE_JOYSTICK=no
20318 fi
20319 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20320 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20321 wxUSE_JOYSTICK=no
f79bd02d
JS
20322 fi
20323 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20324 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20325 wxUSE_JOYSTICK=no
156b2523
GD
20326 fi
20327
3a922bb4
RL
20328 if test "$TOOLKIT" != "MSW"; then
20329 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20330 for ac_hdr in linux/joystick.h
10f2d63a 20331do
a0b9e27f
MB
20332ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20333echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 20334echo "configure:20335: checking for $ac_hdr" >&5
a0b9e27f
MB
20335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20336 echo $ac_n "(cached) $ac_c" 1>&6
20337else
20338 cat > conftest.$ac_ext <<EOF
82d43113 20339#line 20340 "configure"
247f5006 20340#include "confdefs.h"
a0b9e27f
MB
20341#include <$ac_hdr>
20342EOF
20343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 20344{ (eval echo configure:20345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20346if test -z "$ac_err"; then
20347 rm -rf conftest*
20348 eval "ac_cv_header_$ac_safe=yes"
20349else
20350 echo "$ac_err" >&5
20351 echo "configure: failed program was:" >&5
247f5006 20352 cat conftest.$ac_ext >&5
a0b9e27f
MB
20353 rm -rf conftest*
20354 eval "ac_cv_header_$ac_safe=no"
247f5006 20355fi
a0b9e27f 20356rm -f conftest*
10f2d63a 20357fi
a0b9e27f
MB
20358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20359 echo "$ac_t""yes" 1>&6
20360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20361 cat >> confdefs.h <<EOF
20362#define $ac_tr_hdr 1
20363EOF
20364
20365else
20366 echo "$ac_t""no" 1>&6
247f5006 20367fi
10f2d63a
VZ
20368done
20369
3a922bb4
RL
20370 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20371 wxUSE_JOYSTICK=no
a0b9e27f 20372 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20373 fi
20374 fi
20375 fi
b089607b 20376
3a922bb4 20377 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20378 cat >> confdefs.h <<\EOF
10f2d63a 20379#define wxUSE_JOYSTICK 1
a0b9e27f 20380EOF
10f2d63a 20381
3a922bb4
RL
20382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20383 fi
dc3d889d
VZ
20384fi
20385
8284b0c5 20386
b089607b
VZ
20387if test "$TOOLKIT" != "MSW"; then
20388
3a922bb4
RL
20389 HAVE_DL_FUNCS=0
20390 HAVE_SHL_FUNCS=0
0b9ab0bd 20391 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20392 if test "$USE_DARWIN" = 1; then
20393 HAVE_DL_FUNCS=1
20394 else
a0b9e27f 20395 for ac_func in dlopen
10f2d63a 20396do
a0b9e27f 20397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 20398echo "configure:20399: checking for $ac_func" >&5
a0b9e27f
MB
20399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20400 echo $ac_n "(cached) $ac_c" 1>&6
20401else
20402 cat > conftest.$ac_ext <<EOF
82d43113 20403#line 20404 "configure"
10f2d63a
VZ
20404#include "confdefs.h"
20405/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20406 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20407#include <assert.h>
20408/* Override any gcc2 internal prototype to avoid an error. */
20409/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20410 builtin and then its argument prototype would still apply. */
20411char $ac_func();
20412
20413int main() {
20414
10f2d63a
VZ
20415/* The GNU C library defines this for functions which it implements
20416 to always fail with ENOSYS. Some functions are actually named
20417 something starting with __ and the normal name is an alias. */
20418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20419choke me
20420#else
a0b9e27f 20421$ac_func();
10f2d63a
VZ
20422#endif
20423
a0b9e27f
MB
20424; return 0; }
20425EOF
82d43113 20426if { (eval echo configure:20427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20427 rm -rf conftest*
20428 eval "ac_cv_func_$ac_func=yes"
20429else
20430 echo "configure: failed program was:" >&5
20431 cat conftest.$ac_ext >&5
20432 rm -rf conftest*
20433 eval "ac_cv_func_$ac_func=no"
20434fi
20435rm -f conftest*
20436fi
20437
20438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20439 echo "$ac_t""yes" 1>&6
20440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20441 cat >> confdefs.h <<EOF
20442#define $ac_tr_func 1
20443EOF
20444
20445 cat >> confdefs.h <<\EOF
10f2d63a 20446#define HAVE_DLOPEN 1
a0b9e27f 20447EOF
10f2d63a 20448
3a922bb4 20449 HAVE_DL_FUNCS=1
a0b9e27f 20450
10f2d63a 20451else
a0b9e27f
MB
20452 echo "$ac_t""no" 1>&6
20453echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
82d43113 20454echo "configure:20455: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20455ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20456if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20457 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20458else
a0b9e27f 20459 ac_save_LIBS="$LIBS"
10f2d63a 20460LIBS="-ldl $LIBS"
a0b9e27f 20461cat > conftest.$ac_ext <<EOF
82d43113 20462#line 20463 "configure"
10f2d63a
VZ
20463#include "confdefs.h"
20464/* Override any gcc2 internal prototype to avoid an error. */
20465/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20466 builtin and then its argument prototype would still apply. */
20467char dlopen();
20468
20469int main() {
20470dlopen()
20471; return 0; }
20472EOF
82d43113 20473if { (eval echo configure:20474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20474 rm -rf conftest*
20475 eval "ac_cv_lib_$ac_lib_var=yes"
20476else
20477 echo "configure: failed program was:" >&5
20478 cat conftest.$ac_ext >&5
20479 rm -rf conftest*
20480 eval "ac_cv_lib_$ac_lib_var=no"
20481fi
20482rm -f conftest*
20483LIBS="$ac_save_LIBS"
20484
20485fi
20486if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20487 echo "$ac_t""yes" 1>&6
20488
20489 cat >> confdefs.h <<\EOF
10f2d63a 20490#define HAVE_DLOPEN 1
a0b9e27f 20491EOF
10f2d63a 20492
3a922bb4 20493 HAVE_DL_FUNCS=1
3d63bc3a 20494 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20495
10f2d63a 20496else
a0b9e27f 20497 echo "$ac_t""no" 1>&6
10f2d63a 20498
a0b9e27f 20499 for ac_func in shl_load
10f2d63a 20500do
a0b9e27f 20501echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 20502echo "configure:20503: checking for $ac_func" >&5
a0b9e27f
MB
20503if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20504 echo $ac_n "(cached) $ac_c" 1>&6
20505else
20506 cat > conftest.$ac_ext <<EOF
82d43113 20507#line 20508 "configure"
10f2d63a
VZ
20508#include "confdefs.h"
20509/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20510 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20511#include <assert.h>
20512/* Override any gcc2 internal prototype to avoid an error. */
20513/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20514 builtin and then its argument prototype would still apply. */
20515char $ac_func();
20516
20517int main() {
20518
10f2d63a
VZ
20519/* The GNU C library defines this for functions which it implements
20520 to always fail with ENOSYS. Some functions are actually named
20521 something starting with __ and the normal name is an alias. */
20522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20523choke me
20524#else
a0b9e27f 20525$ac_func();
10f2d63a
VZ
20526#endif
20527
a0b9e27f
MB
20528; return 0; }
20529EOF
82d43113 20530if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20531 rm -rf conftest*
20532 eval "ac_cv_func_$ac_func=yes"
20533else
20534 echo "configure: failed program was:" >&5
20535 cat conftest.$ac_ext >&5
20536 rm -rf conftest*
20537 eval "ac_cv_func_$ac_func=no"
20538fi
20539rm -f conftest*
20540fi
20541
20542if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20543 echo "$ac_t""yes" 1>&6
20544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20545 cat >> confdefs.h <<EOF
20546#define $ac_tr_func 1
20547EOF
20548
20549 cat >> confdefs.h <<\EOF
10f2d63a 20550#define HAVE_SHL_LOAD 1
a0b9e27f 20551EOF
10f2d63a 20552
3a922bb4 20553 HAVE_SHL_FUNCS=1
a0b9e27f 20554
10f2d63a 20555else
a0b9e27f
MB
20556 echo "$ac_t""no" 1>&6
20557echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
82d43113 20558echo "configure:20559: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20559ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20560if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20561 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20562else
a0b9e27f 20563 ac_save_LIBS="$LIBS"
f6bcfd97 20564LIBS="-lshl_load $LIBS"
a0b9e27f 20565cat > conftest.$ac_ext <<EOF
82d43113 20566#line 20567 "configure"
f6bcfd97 20567#include "confdefs.h"
8284b0c5 20568/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20569/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20570 builtin and then its argument prototype would still apply. */
20571char dld();
20572
20573int main() {
20574dld()
20575; return 0; }
20576EOF
82d43113 20577if { (eval echo configure:20578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20578 rm -rf conftest*
20579 eval "ac_cv_lib_$ac_lib_var=yes"
20580else
20581 echo "configure: failed program was:" >&5
20582 cat conftest.$ac_ext >&5
20583 rm -rf conftest*
20584 eval "ac_cv_lib_$ac_lib_var=no"
20585fi
20586rm -f conftest*
20587LIBS="$ac_save_LIBS"
f6bcfd97 20588
a0b9e27f
MB
20589fi
20590if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20591 echo "$ac_t""yes" 1>&6
20592
3a922bb4 20593 HAVE_SHL_FUNCS=1
3d63bc3a 20594 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20595
20596else
20597 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20598fi
20599
a0b9e27f 20600
10f2d63a
VZ
20601fi
20602done
20603
a0b9e27f 20604
10f2d63a
VZ
20605fi
20606
a0b9e27f 20607
10f2d63a
VZ
20608fi
20609done
20610
5c6fa7d2 20611
8284b0c5 20612 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20613 for ac_func in dlerror
f6bcfd97 20614do
a0b9e27f 20615echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 20616echo "configure:20617: checking for $ac_func" >&5
a0b9e27f
MB
20617if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20618 echo $ac_n "(cached) $ac_c" 1>&6
20619else
20620 cat > conftest.$ac_ext <<EOF
82d43113 20621#line 20622 "configure"
f6bcfd97
BP
20622#include "confdefs.h"
20623/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20624 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20625#include <assert.h>
20626/* Override any gcc2 internal prototype to avoid an error. */
20627/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20628 builtin and then its argument prototype would still apply. */
20629char $ac_func();
20630
20631int main() {
20632
f6bcfd97
BP
20633/* The GNU C library defines this for functions which it implements
20634 to always fail with ENOSYS. Some functions are actually named
20635 something starting with __ and the normal name is an alias. */
20636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20637choke me
20638#else
a0b9e27f 20639$ac_func();
f6bcfd97
BP
20640#endif
20641
a0b9e27f
MB
20642; return 0; }
20643EOF
82d43113 20644if { (eval echo configure:20645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20645 rm -rf conftest*
20646 eval "ac_cv_func_$ac_func=yes"
20647else
20648 echo "configure: failed program was:" >&5
20649 cat conftest.$ac_ext >&5
20650 rm -rf conftest*
20651 eval "ac_cv_func_$ac_func=no"
20652fi
20653rm -f conftest*
20654fi
20655
20656if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20657 echo "$ac_t""yes" 1>&6
20658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20659 cat >> confdefs.h <<EOF
20660#define $ac_tr_func 1
20661EOF
20662 cat >> confdefs.h <<\EOF
f6bcfd97 20663#define HAVE_DLERROR 1
a0b9e27f 20664EOF
f6bcfd97
BP
20665
20666else
a0b9e27f
MB
20667 echo "$ac_t""no" 1>&6
20668echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
82d43113 20669echo "configure:20670: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20670ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20671if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20672 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20673else
a0b9e27f 20674 ac_save_LIBS="$LIBS"
f6bcfd97 20675LIBS="-ldl $LIBS"
a0b9e27f 20676cat > conftest.$ac_ext <<EOF
82d43113 20677#line 20678 "configure"
f6bcfd97
BP
20678#include "confdefs.h"
20679/* Override any gcc2 internal prototype to avoid an error. */
20680/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20681 builtin and then its argument prototype would still apply. */
20682char dlerror();
20683
20684int main() {
20685dlerror()
20686; return 0; }
20687EOF
82d43113 20688if { (eval echo configure:20689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20689 rm -rf conftest*
20690 eval "ac_cv_lib_$ac_lib_var=yes"
20691else
20692 echo "configure: failed program was:" >&5
20693 cat conftest.$ac_ext >&5
20694 rm -rf conftest*
20695 eval "ac_cv_lib_$ac_lib_var=no"
20696fi
20697rm -f conftest*
20698LIBS="$ac_save_LIBS"
20699
20700fi
20701if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20702 echo "$ac_t""yes" 1>&6
20703 cat >> confdefs.h <<\EOF
f6bcfd97 20704#define HAVE_DLERROR 1
a0b9e27f 20705EOF
f6bcfd97 20706
a0b9e27f
MB
20707else
20708 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20709fi
20710
20711fi
20712done
20713
3a922bb4
RL
20714 fi
20715 fi
f6bcfd97 20716
3a922bb4
RL
20717 if test "$HAVE_DL_FUNCS" = 0; then
20718 if test "$HAVE_SHL_FUNCS" = 0; then
20719 if test "$USE_UNIX" = 1; then
a0b9e27f 20720 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20721 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20722 wxUSE_DYNLIB_CLASS=no
20723 else
a0b9e27f 20724 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20725 fi
20726 fi
10f2d63a
VZ
20727 fi
20728 fi
20729fi
20730
0b9ab0bd 20731if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20732 cat >> confdefs.h <<\EOF
0b9ab0bd 20733#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20734EOF
0b9ab0bd
RL
20735
20736elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20737 cat >> confdefs.h <<\EOF
10f2d63a 20738#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20739EOF
10f2d63a
VZ
20740
20741fi
20742
8284b0c5 20743
1e6feb95 20744if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20745 cat >> confdefs.h <<\EOF
1e6feb95 20746#define wxUSE_FONTMAP 1
a0b9e27f 20747EOF
1e6feb95
VZ
20748
20749fi
20750
10f2d63a 20751if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20752 cat >> confdefs.h <<\EOF
10f2d63a 20753#define wxUSE_UNICODE 1
a0b9e27f 20754EOF
10f2d63a 20755
8284b0c5 20756
bbc3925a
VS
20757 if test "$wxUSE_MSW" != 1; then
20758 wxUSE_UNICODE_MSLU=no
20759 fi
a72a4bfa
VS
20760
20761 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20762 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
82d43113 20763echo "configure:20764: checking for main in -lunicows" >&5
a0b9e27f
MB
20764ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20765if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20766 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20767else
a0b9e27f 20768 ac_save_LIBS="$LIBS"
a72a4bfa 20769LIBS="-lunicows $LIBS"
a0b9e27f 20770cat > conftest.$ac_ext <<EOF
82d43113 20771#line 20772 "configure"
a72a4bfa
VS
20772#include "confdefs.h"
20773
a0b9e27f
MB
20774int main() {
20775main()
20776; return 0; }
20777EOF
82d43113 20778if { (eval echo configure:20779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20779 rm -rf conftest*
20780 eval "ac_cv_lib_$ac_lib_var=yes"
20781else
20782 echo "configure: failed program was:" >&5
20783 cat conftest.$ac_ext >&5
20784 rm -rf conftest*
20785 eval "ac_cv_lib_$ac_lib_var=no"
20786fi
20787rm -f conftest*
20788LIBS="$ac_save_LIBS"
8284b0c5 20789
a0b9e27f
MB
20790fi
20791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20792 echo "$ac_t""yes" 1>&6
20793
20794 cat >> confdefs.h <<\EOF
a72a4bfa 20795#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20796EOF
a72a4bfa 20797
a0b9e27f 20798
a72a4bfa 20799else
a0b9e27f 20800 echo "$ac_t""no" 1>&6
a72a4bfa 20801
a0b9e27f
MB
20802 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20803 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20804 wxUSE_UNICODE_MSLU=no
a0b9e27f 20805
a72a4bfa
VS
20806fi
20807
20808 fi
10f2d63a
VZ
20809fi
20810
10f2d63a 20811if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20812 cat >> confdefs.h <<\EOF
10f2d63a 20813#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20814EOF
10f2d63a
VZ
20815
20816fi
20817
8284b0c5
MB
20818
20819
10f2d63a
VZ
20820IODBC_C_SRC=""
20821if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20822 cat >> confdefs.h <<\EOF
10f2d63a 20823#define wxUSE_ODBC 1
a0b9e27f 20824EOF
10f2d63a
VZ
20825
20826 WXODBCFLAG="-D_IODBC_"
20827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
20828fi
20829
8284b0c5 20830
10f2d63a 20831if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 20832 cat >> confdefs.h <<\EOF
10f2d63a 20833#define wxUSE_POSTSCRIPT 1
a0b9e27f 20834EOF
10f2d63a
VZ
20835
20836fi
20837
a0b9e27f 20838cat >> confdefs.h <<\EOF
10f2d63a 20839#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 20840EOF
10f2d63a 20841
8284b0c5 20842
a0b9e27f 20843cat >> confdefs.h <<\EOF
10f2d63a 20844#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 20845EOF
10f2d63a 20846
8284b0c5
MB
20847
20848
10f2d63a 20849if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 20850 cat >> confdefs.h <<\EOF
10f2d63a 20851#define wxUSE_CONSTRAINTS 1
a0b9e27f 20852EOF
10f2d63a
VZ
20853
20854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20855fi
20856
20857if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 20858
8284b0c5 20859
bb811f17 20860 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 20861 cat >> confdefs.h <<\EOF
10f2d63a 20862#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 20863EOF
10f2d63a 20864
bb811f17
JS
20865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20866 fi
10f2d63a
VZ
20867fi
20868
20869if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 20870 cat >> confdefs.h <<\EOF
10f2d63a 20871#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 20872EOF
10f2d63a
VZ
20873
20874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20875 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20877 fi
20878fi
20879
20880if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 20881 cat >> confdefs.h <<\EOF
10f2d63a 20882#define wxUSE_HELP 1
a0b9e27f 20883EOF
10f2d63a
VZ
20884
20885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 20886
77e13408 20887 if test "$wxUSE_MSW" = 1; then
031d8228 20888 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 20889 cat >> confdefs.h <<\EOF
29fd3c0c 20890#define wxUSE_MS_HTML_HELP 1
a0b9e27f 20891EOF
29fd3c0c 20892
3e44f09d 20893 fi
3379ed37 20894 fi
031d8228
VS
20895
20896 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20897 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20898 cat >> confdefs.h <<\EOF
031d8228 20899#define wxUSE_WXHTML_HELP 1
a0b9e27f 20900EOF
031d8228
VS
20901
20902 else
a0b9e27f 20903 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
20904 wxUSE_WXHTML_HELP=no
20905 fi
20906 fi
10f2d63a
VZ
20907fi
20908
20909if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20910 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20911 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 20912 else
a0b9e27f 20913 cat >> confdefs.h <<\EOF
10f2d63a 20914#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 20915EOF
10f2d63a
VZ
20916
20917 fi
20918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20919fi
20920
20921if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 20922 cat >> confdefs.h <<\EOF
10f2d63a 20923#define wxUSE_PROLOGIO 1
a0b9e27f 20924EOF
10f2d63a 20925
2b5f62a0 20926 ALL_OBJECTS="$ALL_OBJECTS parser.o"
10f2d63a
VZ
20927fi
20928
20929if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 20930 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 20931 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
2b5f62a0
VZ
20932 else
20933 cat >> confdefs.h <<\EOF
10f2d63a 20934#define wxUSE_RESOURCES 1
a0b9e27f 20935EOF
10f2d63a 20936
2b5f62a0
VZ
20937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20938 fi
20939 if test "$wxUSE_PROLOGIO" != "yes" ; then
20940 ALL_OBJECTS="$ALL_OBJECTS parser.o"
e334d0ea 20941 fi
10f2d63a
VZ
20942fi
20943
20944if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 20945 cat >> confdefs.h <<\EOF
10f2d63a 20946#define wxUSE_X_RESOURCES 1
a0b9e27f 20947EOF
10f2d63a
VZ
20948
20949fi
20950
8284b0c5 20951
77e13408
RL
20952if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20953 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 20954 -o "$wxUSE_OLE" = "yes" \
77e13408 20955 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 20956 for ac_hdr in ole2.h
10f2d63a 20957do
a0b9e27f
MB
20958ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20959echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
82d43113 20960echo "configure:20961: checking for $ac_hdr" >&5
a0b9e27f
MB
20961if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20962 echo $ac_n "(cached) $ac_c" 1>&6
20963else
20964 cat > conftest.$ac_ext <<EOF
82d43113 20965#line 20966 "configure"
10f2d63a 20966#include "confdefs.h"
a0b9e27f
MB
20967#include <$ac_hdr>
20968EOF
20969ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82d43113 20970{ (eval echo configure:20971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20971ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20972if test -z "$ac_err"; then
20973 rm -rf conftest*
20974 eval "ac_cv_header_$ac_safe=yes"
20975else
20976 echo "$ac_err" >&5
20977 echo "configure: failed program was:" >&5
10f2d63a 20978 cat conftest.$ac_ext >&5
a0b9e27f
MB
20979 rm -rf conftest*
20980 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20981fi
a0b9e27f 20982rm -f conftest*
10f2d63a 20983fi
a0b9e27f
MB
20984if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20985 echo "$ac_t""yes" 1>&6
20986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20987 cat >> confdefs.h <<EOF
20988#define $ac_tr_hdr 1
20989EOF
20990
20991else
20992 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20993fi
20994done
20995
8284b0c5 20996
2b9bdf71
VZ
20997 if test "$ac_cv_header_ole2_h" = "yes" ; then
20998 if test "$GCC" = yes ; then
a0b9e27f
MB
20999
21000 ac_ext=C
21001# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21002ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21003ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21004ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21005cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21006
21007
a0b9e27f 21008 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
82d43113 21009echo "configure:21010: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21010 cat > conftest.$ac_ext <<EOF
82d43113 21011#line 21012 "configure"
8284b0c5
MB
21012#include "confdefs.h"
21013#include <windows.h>
21014 #include <ole2.h>
a0b9e27f 21015int main() {
8284b0c5 21016
a0b9e27f
MB
21017; return 0; }
21018EOF
82d43113 21019if { (eval echo configure:21020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21020 rm -rf conftest*
21021 echo "$ac_t""no" 1>&6
21022else
21023 echo "configure: failed program was:" >&5
21024 cat conftest.$ac_ext >&5
21025 rm -rf conftest*
21026 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21027 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21028fi
a0b9e27f 21029rm -f conftest*
8284b0c5 21030 ac_ext=c
a0b9e27f 21031# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21032ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21033ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21034ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21035cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21036
2b9bdf71 21037 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21038 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21039 cat >> confdefs.h <<\EOF
4f11a343 21040#define wxUSE_OLE 1
a0b9e27f 21041EOF
4f11a343 21042
8284b0c5 21043
2b9bdf71
VZ
21044 fi
21045
a0b9e27f 21046 cat >> confdefs.h <<\EOF
2b9bdf71 21047#define wxUSE_DATAOBJ 1
a0b9e27f 21048EOF
2b9bdf71
VZ
21049
21050 else
a0b9e27f 21051 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21052
21053 wxUSE_CLIPBOARD=no
21054 wxUSE_DRAG_AND_DROP=no
21055 wxUSE_DATAOBJ=no
3bce6687
JS
21056 wxUSE_OLE=no
21057 fi
21058
21059 if test "$wxUSE_METAFILE" = "yes"; then
21060 cat >> confdefs.h <<\EOF
21061#define wxUSE_METAFILE 1
21062EOF
21063
21064
21065 cat >> confdefs.h <<\EOF
21066#define wxUSE_ENH_METAFILE 1
21067EOF
21068
21069 fi
21070fi
21071
2b9bdf71
VZ
21072if test "$wxUSE_IPC" = "yes"; then
21073 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21074 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21075 fi
21076
a0b9e27f 21077 cat >> confdefs.h <<\EOF
2b9bdf71 21078#define wxUSE_IPC 1
a0b9e27f 21079EOF
2b9bdf71
VZ
21080
21081fi
21082
21083if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21084 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21085 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21086 wxUSE_CLIPBOARD=no
21087 fi
21088
21089 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21090 cat >> confdefs.h <<\EOF
2b9bdf71 21091#define wxUSE_CLIPBOARD 1
a0b9e27f 21092EOF
2b9bdf71 21093
8284b0c5 21094
a0b9e27f 21095 cat >> confdefs.h <<\EOF
673f4220 21096#define wxUSE_DATAOBJ 1
a0b9e27f 21097EOF
673f4220 21098
6c657b52 21099 fi
2b9bdf71
VZ
21100fi
21101
21102if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21103 if test "$wxUSE_GTK" = 1; then
21104 if test "$WXGTK12" != 1; then
a0b9e27f 21105 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21106 wxUSE_DRAG_AND_DROP=no
21107 fi
21108 fi
21109
2b9bdf71 21110 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21111 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21112 wxUSE_DRAG_AND_DROP=no
21113 fi
21114
f79bd02d 21115 if test "$wxUSE_X11" = 1; then
a0b9e27f 21116 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21117 wxUSE_DRAG_AND_DROP=no
21118 fi
21119
6c657b52 21120 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21121 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21122 wxUSE_DRAG_AND_DROP=no
21123 fi
21124
10f2d63a 21125 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21126 cat >> confdefs.h <<\EOF
10f2d63a 21127#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21128EOF
10f2d63a
VZ
21129
21130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21131 fi
21132
21133fi
21134
21135if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21136 cat >> confdefs.h <<\EOF
10f2d63a 21137#define wxUSE_SPLINES 1
a0b9e27f 21138EOF
10f2d63a
VZ
21139
21140fi
21141
8284b0c5 21142
1e6feb95
VZ
21143USES_CONTROLS=0
21144if test "$wxUSE_CONTROLS" = "yes"; then
21145 USES_CONTROLS=1
21146fi
21147
10f2d63a 21148if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21149 cat >> confdefs.h <<\EOF
10f2d63a 21150#define wxUSE_ACCEL 1
a0b9e27f 21151EOF
10f2d63a 21152
1e6feb95
VZ
21153 USES_CONTROLS=1
21154fi
21155
21156if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21157 cat >> confdefs.h <<\EOF
1e6feb95 21158#define wxUSE_BUTTON 1
a0b9e27f 21159EOF
1e6feb95
VZ
21160
21161 USES_CONTROLS=1
21162fi
21163
21164if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21165 cat >> confdefs.h <<\EOF
1e6feb95 21166#define wxUSE_BMPBUTTON 1
a0b9e27f 21167EOF
1e6feb95
VZ
21168
21169 USES_CONTROLS=1
21170fi
21171
21172if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21173 cat >> confdefs.h <<\EOF
1e6feb95 21174#define wxUSE_CALENDARCTRL 1
a0b9e27f 21175EOF
1e6feb95
VZ
21176
21177 USES_CONTROLS=1
21178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21179fi
21180
21181if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21182 cat >> confdefs.h <<\EOF
10f2d63a 21183#define wxUSE_CARET 1
a0b9e27f 21184EOF
10f2d63a 21185
1e6feb95 21186 USES_CONTROLS=1
10f2d63a
VZ
21187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21188fi
21189
21190if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21191 cat >> confdefs.h <<\EOF
10f2d63a 21192#define wxUSE_COMBOBOX 1
a0b9e27f 21193EOF
10f2d63a 21194
1e6feb95 21195 USES_CONTROLS=1
10f2d63a
VZ
21196fi
21197
21198if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21199 cat >> confdefs.h <<\EOF
10f2d63a 21200#define wxUSE_CHOICE 1
a0b9e27f 21201EOF
10f2d63a 21202
1e6feb95 21203 USES_CONTROLS=1
10f2d63a
VZ
21204fi
21205
21206if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21207 cat >> confdefs.h <<\EOF
10f2d63a 21208#define wxUSE_CHECKBOX 1
a0b9e27f 21209EOF
10f2d63a 21210
1e6feb95 21211 USES_CONTROLS=1
10f2d63a
VZ
21212fi
21213
21214if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21215 cat >> confdefs.h <<\EOF
10f2d63a 21216#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21217EOF
10f2d63a 21218
1e6feb95 21219 USES_CONTROLS=1
10f2d63a
VZ
21220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21221fi
21222
21223if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21224 cat >> confdefs.h <<\EOF
10f2d63a 21225#define wxUSE_GAUGE 1
a0b9e27f 21226EOF
10f2d63a 21227
1e6feb95 21228 USES_CONTROLS=1
10f2d63a
VZ
21229fi
21230
d6a55c4b
VZ
21231if test "$wxUSE_NEW_GRID" = "yes"; then
21232 wxUSE_GRID="yes"
a0b9e27f 21233 cat >> confdefs.h <<\EOF
d6a55c4b 21234#define wxUSE_NEW_GRID 1
a0b9e27f 21235EOF
10f2d63a 21236
1e6feb95 21237 USES_CONTROLS=1
d6a55c4b 21238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
21239fi
21240
d6a55c4b 21241if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21242 cat >> confdefs.h <<\EOF
d6a55c4b 21243#define wxUSE_GRID 1
a0b9e27f 21244EOF
10f2d63a 21245
1e6feb95 21246 USES_CONTROLS=1
d6a55c4b 21247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21248fi
21249
21250if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21251 cat >> confdefs.h <<\EOF
10f2d63a 21252#define wxUSE_IMAGLIST 1
a0b9e27f 21253EOF
10f2d63a
VZ
21254
21255fi
21256
21257if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21258 cat >> confdefs.h <<\EOF
10f2d63a 21259#define wxUSE_LISTBOX 1
a0b9e27f 21260EOF
10f2d63a 21261
1e6feb95 21262 USES_CONTROLS=1
10f2d63a
VZ
21263fi
21264
21265if test "$wxUSE_LISTCTRL" = "yes"; then
21266 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21267 cat >> confdefs.h <<\EOF
10f2d63a 21268#define wxUSE_LISTCTRL 1
a0b9e27f 21269EOF
10f2d63a 21270
1e6feb95 21271 USES_CONTROLS=1
10f2d63a
VZ
21272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21273 else
a0b9e27f 21274 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21275 fi
21276fi
21277
21278if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21279 cat >> confdefs.h <<\EOF
10f2d63a 21280#define wxUSE_NOTEBOOK 1
a0b9e27f 21281EOF
10f2d63a 21282
1e6feb95 21283 USES_CONTROLS=1
10f2d63a
VZ
21284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21285fi
21286
24176f2c 21287if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 21288 cat >> confdefs.h <<\EOF
24176f2c 21289#define wxUSE_PROPSHEET 1
a0b9e27f 21290EOF
24176f2c
GD
21291
21292 USES_CONTROLS=1
21293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21294fi
21295
10f2d63a 21296if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21297 cat >> confdefs.h <<\EOF
10f2d63a 21298#define wxUSE_RADIOBOX 1
a0b9e27f 21299EOF
10f2d63a 21300
1e6feb95 21301 USES_CONTROLS=1
10f2d63a
VZ
21302fi
21303
21304if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21305 cat >> confdefs.h <<\EOF
10f2d63a 21306#define wxUSE_RADIOBTN 1
a0b9e27f 21307EOF
10f2d63a 21308
1e6feb95 21309 USES_CONTROLS=1
10f2d63a
VZ
21310fi
21311
21312if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21313 cat >> confdefs.h <<\EOF
10f2d63a 21314#define wxUSE_SASH 1
a0b9e27f 21315EOF
10f2d63a
VZ
21316
21317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21318fi
21319
21320if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21321 cat >> confdefs.h <<\EOF
10f2d63a 21322#define wxUSE_SCROLLBAR 1
a0b9e27f 21323EOF
10f2d63a 21324
1e6feb95 21325 USES_CONTROLS=1
741a9306 21326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21327fi
21328
21329if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21330 cat >> confdefs.h <<\EOF
10f2d63a 21331#define wxUSE_SLIDER 1
a0b9e27f 21332EOF
10f2d63a 21333
1e6feb95 21334 USES_CONTROLS=1
10f2d63a
VZ
21335fi
21336
21337if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21338 cat >> confdefs.h <<\EOF
10f2d63a 21339#define wxUSE_SPINBTN 1
a0b9e27f 21340EOF
10f2d63a 21341
1e6feb95 21342 USES_CONTROLS=1
10f2d63a
VZ
21343fi
21344
56cfaa52 21345if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21346 cat >> confdefs.h <<\EOF
56cfaa52 21347#define wxUSE_SPINCTRL 1
a0b9e27f 21348EOF
56cfaa52 21349
1e6feb95 21350 USES_CONTROLS=1
56cfaa52
RR
21351fi
21352
10f2d63a 21353if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21354 cat >> confdefs.h <<\EOF
10f2d63a 21355#define wxUSE_SPLITTER 1
a0b9e27f 21356EOF
10f2d63a
VZ
21357
21358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21359fi
21360
21361if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21362 cat >> confdefs.h <<\EOF
10f2d63a 21363#define wxUSE_STATBMP 1
a0b9e27f 21364EOF
10f2d63a 21365
1e6feb95 21366 USES_CONTROLS=1
10f2d63a
VZ
21367fi
21368
21369if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21370 cat >> confdefs.h <<\EOF
10f2d63a 21371#define wxUSE_STATBOX 1
a0b9e27f 21372EOF
10f2d63a 21373
1e6feb95
VZ
21374 USES_CONTROLS=1
21375fi
21376
21377if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21378 cat >> confdefs.h <<\EOF
1e6feb95 21379#define wxUSE_STATTEXT 1
a0b9e27f 21380EOF
1e6feb95
VZ
21381
21382 USES_CONTROLS=1
10f2d63a
VZ
21383fi
21384
21385if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21386 cat >> confdefs.h <<\EOF
10f2d63a 21387#define wxUSE_STATLINE 1
a0b9e27f 21388EOF
10f2d63a 21389
89e6bf6d 21390 USES_CONTROLS=1
10f2d63a
VZ
21391fi
21392
21393if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21394 cat >> confdefs.h <<\EOF
10f2d63a 21395#define wxUSE_STATUSBAR 1
a0b9e27f 21396EOF
10f2d63a 21397
1e6feb95 21398 USES_CONTROLS=1
698dcdb6 21399
2286341c 21400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21401fi
21402
21403if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21404 cat >> confdefs.h <<\EOF
10f2d63a 21405#define wxUSE_TAB_DIALOG 1
a0b9e27f 21406EOF
10f2d63a
VZ
21407
21408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21409fi
21410
1e6feb95 21411if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21412 cat >> confdefs.h <<\EOF
1e6feb95 21413#define wxUSE_TEXTCTRL 1
a0b9e27f 21414EOF
1e6feb95
VZ
21415
21416 USES_CONTROLS=1
21417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21418fi
21419
1db8dc4a 21420if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 21421 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21422 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21423 wxUSE_TOGGLEBTN=no
21424 fi
21425 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21426 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21427 wxUSE_TOGGLEBTN=no
21428 fi
21429
21430 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21431 cat >> confdefs.h <<\EOF
1db8dc4a 21432#define wxUSE_TOGGLEBTN 1
a0b9e27f 21433EOF
1db8dc4a 21434
1e6feb95 21435 USES_CONTROLS=1
a45d7ab7 21436 fi
1db8dc4a
VZ
21437fi
21438
360d6699 21439if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21440 cat >> confdefs.h <<\EOF
360d6699 21441#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21442EOF
360d6699
VZ
21443
21444 wxUSE_TOOLBAR="yes"
1e6feb95 21445 USES_CONTROLS=1
360d6699
VZ
21446fi
21447
10f2d63a 21448if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21449 cat >> confdefs.h <<\EOF
10f2d63a 21450#define wxUSE_TOOLBAR 1
a0b9e27f 21451EOF
10f2d63a 21452
1e6feb95 21453 USES_CONTROLS=1
698dcdb6 21454
360d6699
VZ
21455 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21456 wxUSE_TOOLBAR_NATIVE="yes"
21457 fi
21458
1e6feb95 21459 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21460 cat >> confdefs.h <<\EOF
360d6699 21461#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21462EOF
360d6699 21463
1e6feb95
VZ
21464 USES_CONTROLS=1
21465 fi
21466
21467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21468fi
21469
10f2d63a
VZ
21470if test "$wxUSE_TOOLTIPS" = "yes"; then
21471 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21472 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21473 else
89e6bf6d
VZ
21474 if test "$wxUSE_UNIVERSAL" = "yes"; then
21475 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21476 else
89e6bf6d 21477 cat >> confdefs.h <<\EOF
10f2d63a 21478#define wxUSE_TOOLTIPS 1
a0b9e27f 21479EOF
10f2d63a
VZ
21480
21481 fi
21482 fi
21483fi
21484
21485if test "$wxUSE_TREECTRL" = "yes"; then
21486 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21487 cat >> confdefs.h <<\EOF
10f2d63a 21488#define wxUSE_TREECTRL 1
a0b9e27f 21489EOF
10f2d63a 21490
1e6feb95 21491 USES_CONTROLS=1
10f2d63a
VZ
21492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21493 else
a0b9e27f 21494 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21495 fi
21496fi
21497
9f41d601 21498if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 21499 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21500 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21501 else
485cf710 21502 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21503 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21504 else
3c011993 21505 if test "$wxUSE_PM" = 1; then
a0b9e27f 21506 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21507 else
a0b9e27f 21508 cat >> confdefs.h <<\EOF
9f41d601 21509#define wxUSE_POPUPWIN 1
a0b9e27f 21510EOF
9f41d601 21511
8284b0c5 21512
3c011993
VZ
21513 USES_CONTROLS=1
21514 fi
485cf710 21515 fi
6abe4b65 21516 fi
9f41d601
RR
21517fi
21518
dd964dcc 21519if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21520 if test "$wxUSE_PM" = 1; then
a0b9e27f 21521 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21522 else
a0b9e27f 21523 cat >> confdefs.h <<\EOF
dd964dcc 21524#define wxUSE_TIPWINDOW 1
a0b9e27f 21525EOF
dd964dcc 21526
3c011993 21527 fi
dd964dcc
VZ
21528fi
21529
1e6feb95 21530if test "$USES_CONTROLS" = 1; then
a0b9e27f 21531 cat >> confdefs.h <<\EOF
1e6feb95 21532#define wxUSE_CONTROLS 1
a0b9e27f 21533EOF
10f2d63a 21534
10f2d63a
VZ
21535fi
21536
8284b0c5 21537
24176f2c 21538if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 21539 cat >> confdefs.h <<\EOF
24176f2c 21540#define wxUSE_TREELAYOUT 1
a0b9e27f 21541EOF
24176f2c
GD
21542
21543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21544fi
1e6feb95 21545
24fd6d87 21546if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21547 cat >> confdefs.h <<\EOF
24fd6d87 21548#define wxUSE_DRAGIMAGE 1
a0b9e27f 21549EOF
24fd6d87
VZ
21550
21551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21552fi
21553
1e6feb95 21554if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21555 cat >> confdefs.h <<\EOF
1e6feb95 21556#define wxUSE_MENUS 1
a0b9e27f 21557EOF
10f2d63a 21558
1e6feb95 21559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21560fi
21561
1e6feb95 21562if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21563 cat >> confdefs.h <<\EOF
1e6feb95 21564#define wxUSE_METAFILE 1
a0b9e27f 21565EOF
10f2d63a 21566
10f2d63a
VZ
21567fi
21568
1e6feb95 21569if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21570 cat >> confdefs.h <<\EOF
1e6feb95 21571#define wxUSE_MIMETYPE 1
a0b9e27f 21572EOF
10f2d63a 21573
10f2d63a
VZ
21574fi
21575
3e44f09d 21576if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21577 cat >> confdefs.h <<\EOF
3e44f09d 21578#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21579EOF
3e44f09d 21580
321d2b14
VZ
21581if test "$TOOLKIT" = "MSW"; then
21582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21583fi
21584
3e44f09d
VZ
21585fi
21586
4cdb0ab0 21587if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21588 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21589 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21590 wxUSE_PROTOCOL=no
21591 fi
21592
21593 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21594 cat >> confdefs.h <<\EOF
4cdb0ab0 21595#define wxUSE_PROTOCOL 1
a0b9e27f 21596EOF
4cdb0ab0 21597
8284b0c5 21598
3954f9ca 21599 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21600 cat >> confdefs.h <<\EOF
4cdb0ab0 21601#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21602EOF
4cdb0ab0 21603
3954f9ca
VS
21604 fi
21605 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21606 cat >> confdefs.h <<\EOF
4cdb0ab0 21607#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21608EOF
4cdb0ab0 21609
3954f9ca
VS
21610 fi
21611 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21612 cat >> confdefs.h <<\EOF
3954f9ca 21613#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21614EOF
3954f9ca
VS
21615
21616 fi
4cdb0ab0 21617 fi
3954f9ca
VS
21618fi
21619
21620if test "$wxUSE_URL" = "yes"; then
21621 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21622 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21623 wxUSE_URL=no
21624 fi
21625 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21626 cat >> confdefs.h <<\EOF
3954f9ca 21627#define wxUSE_URL 1
a0b9e27f 21628EOF
4cdb0ab0
VS
21629
21630 fi
21631fi
21632
10f2d63a 21633if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21634 cat >> confdefs.h <<\EOF
10f2d63a 21635#define wxUSE_MINIFRAME 1
a0b9e27f 21636EOF
10f2d63a
VZ
21637
21638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21639fi
21640
21641if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21642 cat >> confdefs.h <<\EOF
10f2d63a 21643#define wxUSE_HTML 1
a0b9e27f 21644EOF
10f2d63a
VZ
21645
21646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21647fi
21648
21649if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21650 cat >> confdefs.h <<\EOF
1e487827 21651#define wxUSE_VALIDATORS 1
a0b9e27f 21652EOF
703e0a69 21653
698dcdb6
VZ
21654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21655fi
21656
edae8572 21657if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21658 cat >> confdefs.h <<\EOF
edae8572 21659#define wxUSE_PALETTE 1
a0b9e27f 21660EOF
edae8572
VZ
21661
21662fi
21663
698dcdb6 21664if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21665 cat >> confdefs.h <<\EOF
698dcdb6 21666#define wxUSE_IMAGE 1
a0b9e27f 21667EOF
698dcdb6
VZ
21668
21669fi
21670
21671if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21672 cat >> confdefs.h <<\EOF
698dcdb6 21673#define wxUSE_GIF 1
a0b9e27f 21674EOF
698dcdb6
VZ
21675
21676fi
21677
21678if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21679 cat >> confdefs.h <<\EOF
698dcdb6 21680#define wxUSE_PCX 1
a0b9e27f 21681EOF
698dcdb6
VZ
21682
21683fi
21684
4b6b4dfc 21685if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21686 cat >> confdefs.h <<\EOF
4b6b4dfc 21687#define wxUSE_IFF 1
a0b9e27f 21688EOF
4b6b4dfc
RR
21689
21690fi
21691
698dcdb6 21692if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21693 cat >> confdefs.h <<\EOF
698dcdb6 21694#define wxUSE_PNM 1
a0b9e27f 21695EOF
698dcdb6
VZ
21696
21697fi
21698
21699if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21700 cat >> confdefs.h <<\EOF
698dcdb6 21701#define wxUSE_XPM 1
a0b9e27f 21702EOF
698dcdb6
VZ
21703
21704fi
21705
658974ae 21706if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21707 cat >> confdefs.h <<\EOF
658974ae 21708#define wxUSE_ICO_CUR 1
a0b9e27f 21709EOF
658974ae
VS
21710
21711fi
21712
a72a4bfa
VS
21713if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21714 LIBS=" -lunicows $LIBS"
21715fi
21716
8284b0c5 21717
1e6feb95 21718if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21719 cat >> confdefs.h <<\EOF
1e6feb95 21720#define wxUSE_CHOICEDLG 1
a0b9e27f 21721EOF
1e6feb95
VZ
21722
21723fi
21724
21725if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21726 cat >> confdefs.h <<\EOF
1e6feb95 21727#define wxUSE_COLOURDLG 1
a0b9e27f 21728EOF
1e6feb95
VZ
21729
21730fi
21731
21732if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21733 cat >> confdefs.h <<\EOF
1e6feb95 21734#define wxUSE_FILEDLG 1
a0b9e27f 21735EOF
1e6feb95
VZ
21736
21737fi
21738
8db37e06 21739if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21740 cat >> confdefs.h <<\EOF
8db37e06 21741#define wxUSE_FINDREPLDLG 1
a0b9e27f 21742EOF
8db37e06
VZ
21743
21744fi
21745
1e6feb95 21746if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21747 cat >> confdefs.h <<\EOF
1e6feb95 21748#define wxUSE_FONTDLG 1
a0b9e27f 21749EOF
1e6feb95
VZ
21750
21751fi
21752
21753if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21754 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21755 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21756 else
a0b9e27f 21757 cat >> confdefs.h <<\EOF
1e6feb95 21758#define wxUSE_DIRDLG 1
a0b9e27f 21759EOF
1e6feb95 21760
1e6feb95
VZ
21761 fi
21762fi
21763
21764if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21765 cat >> confdefs.h <<\EOF
1e6feb95 21766#define wxUSE_MSGDLG 1
a0b9e27f 21767EOF
1e6feb95
VZ
21768
21769fi
21770
21771if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21772 cat >> confdefs.h <<\EOF
1e6feb95 21773#define wxUSE_NUMBERDLG 1
a0b9e27f 21774EOF
1e6feb95
VZ
21775
21776fi
21777
21778if test "$wxUSE_PROGRESSDLG" = "yes"; then
21779 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21780 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21781 else
a0b9e27f 21782 cat >> confdefs.h <<\EOF
1e6feb95 21783#define wxUSE_PROGRESSDLG 1
a0b9e27f 21784EOF
1e6feb95
VZ
21785
21786 fi
21787fi
21788
cbca9943 21789if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21790 cat >> confdefs.h <<\EOF
cbca9943 21791#define wxUSE_SPLASH 1
a0b9e27f 21792EOF
cbca9943
VZ
21793
21794fi
21795
1e6feb95
VZ
21796if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21797 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21798 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21799 else
a0b9e27f 21800 cat >> confdefs.h <<\EOF
1e6feb95 21801#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21802EOF
1e6feb95 21803
7b4a847f
RR
21804 fi
21805fi
579d8138 21806
8284b0c5 21807if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21808 cat >> confdefs.h <<\EOF
8284b0c5 21809#define wxUSE_TEXTDLG 1
a0b9e27f 21810EOF
8284b0c5
MB
21811
21812fi
21813
21814if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21815 cat >> confdefs.h <<\EOF
8284b0c5 21816#define wxUSE_WIZARDDLG 1
a0b9e27f 21817EOF
8284b0c5
MB
21818
21819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21820fi
21821
21822
21823if test "$cross_compiling" = "yes"; then
21824 OSINFO="\"$host\""
21825else
21826 OSINFO=`uname -s -r -m`
21827 OSINFO="\"$OSINFO\""
21828fi
21829
a0b9e27f 21830cat >> confdefs.h <<EOF
8284b0c5 21831#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21832EOF
8284b0c5
MB
21833
21834
21835
21836if test "x$prefix" != "xNONE"; then
21837 wxPREFIX=$prefix
21838else
21839 wxPREFIX=$ac_default_prefix
21840fi
21841
a0b9e27f 21842cat >> confdefs.h <<EOF
8284b0c5 21843#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21844EOF
8284b0c5
MB
21845
21846
52c71b80
VZ
21847top_builddir=`pwd`
21848
8284b0c5
MB
21849
21850
21851
21852if test "$wxUSE_MAC" = 1 ; then
21853 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21854fi
21855
21856
2b5f62a0
VZ
21857LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21858
21859have_cos=0
21860have_floor=0
21861for ac_func in cos
21862do
21863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 21864echo "configure:21865: checking for $ac_func" >&5
2b5f62a0
VZ
21865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21866 echo $ac_n "(cached) $ac_c" 1>&6
21867else
21868 cat > conftest.$ac_ext <<EOF
82d43113 21869#line 21870 "configure"
2b5f62a0
VZ
21870#include "confdefs.h"
21871/* System header to define __stub macros and hopefully few prototypes,
21872 which can conflict with char $ac_func(); below. */
21873#include <assert.h>
21874/* Override any gcc2 internal prototype to avoid an error. */
21875/* We use char because int might match the return type of a gcc2
21876 builtin and then its argument prototype would still apply. */
21877char $ac_func();
21878
21879int main() {
21880
21881/* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885choke me
21886#else
21887$ac_func();
21888#endif
21889
21890; return 0; }
21891EOF
82d43113 21892if { (eval echo configure:21893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21893 rm -rf conftest*
21894 eval "ac_cv_func_$ac_func=yes"
21895else
21896 echo "configure: failed program was:" >&5
21897 cat conftest.$ac_ext >&5
21898 rm -rf conftest*
21899 eval "ac_cv_func_$ac_func=no"
21900fi
21901rm -f conftest*
21902fi
21903
21904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21905 echo "$ac_t""yes" 1>&6
21906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21907 cat >> confdefs.h <<EOF
21908#define $ac_tr_func 1
21909EOF
21910 have_cos=1
21911else
21912 echo "$ac_t""no" 1>&6
21913fi
21914done
21915
21916for ac_func in floor
21917do
21918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 21919echo "configure:21920: checking for $ac_func" >&5
2b5f62a0
VZ
21920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21921 echo $ac_n "(cached) $ac_c" 1>&6
21922else
21923 cat > conftest.$ac_ext <<EOF
82d43113 21924#line 21925 "configure"
2b5f62a0
VZ
21925#include "confdefs.h"
21926/* System header to define __stub macros and hopefully few prototypes,
21927 which can conflict with char $ac_func(); below. */
21928#include <assert.h>
21929/* Override any gcc2 internal prototype to avoid an error. */
21930/* We use char because int might match the return type of a gcc2
21931 builtin and then its argument prototype would still apply. */
21932char $ac_func();
21933
21934int main() {
21935
21936/* The GNU C library defines this for functions which it implements
21937 to always fail with ENOSYS. Some functions are actually named
21938 something starting with __ and the normal name is an alias. */
21939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21940choke me
21941#else
21942$ac_func();
21943#endif
21944
21945; return 0; }
21946EOF
82d43113 21947if { (eval echo configure:21948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21948 rm -rf conftest*
21949 eval "ac_cv_func_$ac_func=yes"
21950else
21951 echo "configure: failed program was:" >&5
21952 cat conftest.$ac_ext >&5
21953 rm -rf conftest*
21954 eval "ac_cv_func_$ac_func=no"
21955fi
21956rm -f conftest*
21957fi
21958
21959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21960 echo "$ac_t""yes" 1>&6
21961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21962 cat >> confdefs.h <<EOF
21963#define $ac_tr_func 1
21964EOF
21965 have_floor=1
21966else
21967 echo "$ac_t""no" 1>&6
21968fi
21969done
21970
21971echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
82d43113 21972echo "configure:21973: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
21973if test "$have_cos" = 1 -a "$have_floor" = 1; then
21974 echo "$ac_t""yes" 1>&6
21975else
21976 echo "$ac_t""no" 1>&6
21977 LIBS="$LIBS -lm"
21978 # use different functions to avoid configure caching
21979 have_sin=0
21980 have_ceil=0
21981 for ac_func in sin
21982do
21983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 21984echo "configure:21985: checking for $ac_func" >&5
2b5f62a0
VZ
21985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21986 echo $ac_n "(cached) $ac_c" 1>&6
21987else
21988 cat > conftest.$ac_ext <<EOF
82d43113 21989#line 21990 "configure"
2b5f62a0
VZ
21990#include "confdefs.h"
21991/* System header to define __stub macros and hopefully few prototypes,
21992 which can conflict with char $ac_func(); below. */
21993#include <assert.h>
21994/* Override any gcc2 internal prototype to avoid an error. */
21995/* We use char because int might match the return type of a gcc2
21996 builtin and then its argument prototype would still apply. */
21997char $ac_func();
21998
21999int main() {
22000
22001/* The GNU C library defines this for functions which it implements
22002 to always fail with ENOSYS. Some functions are actually named
22003 something starting with __ and the normal name is an alias. */
22004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22005choke me
22006#else
22007$ac_func();
22008#endif
22009
22010; return 0; }
22011EOF
82d43113 22012if { (eval echo configure:22013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22013 rm -rf conftest*
22014 eval "ac_cv_func_$ac_func=yes"
22015else
22016 echo "configure: failed program was:" >&5
22017 cat conftest.$ac_ext >&5
22018 rm -rf conftest*
22019 eval "ac_cv_func_$ac_func=no"
22020fi
22021rm -f conftest*
22022fi
22023
22024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22025 echo "$ac_t""yes" 1>&6
22026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22027 cat >> confdefs.h <<EOF
22028#define $ac_tr_func 1
22029EOF
22030 have_sin=1
22031else
22032 echo "$ac_t""no" 1>&6
22033fi
22034done
22035
22036 for ac_func in ceil
22037do
22038echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
82d43113 22039echo "configure:22040: checking for $ac_func" >&5
2b5f62a0
VZ
22040if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22041 echo $ac_n "(cached) $ac_c" 1>&6
22042else
22043 cat > conftest.$ac_ext <<EOF
82d43113 22044#line 22045 "configure"
2b5f62a0
VZ
22045#include "confdefs.h"
22046/* System header to define __stub macros and hopefully few prototypes,
22047 which can conflict with char $ac_func(); below. */
22048#include <assert.h>
22049/* Override any gcc2 internal prototype to avoid an error. */
22050/* We use char because int might match the return type of a gcc2
22051 builtin and then its argument prototype would still apply. */
22052char $ac_func();
22053
22054int main() {
22055
22056/* The GNU C library defines this for functions which it implements
22057 to always fail with ENOSYS. Some functions are actually named
22058 something starting with __ and the normal name is an alias. */
22059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22060choke me
22061#else
22062$ac_func();
22063#endif
22064
22065; return 0; }
22066EOF
82d43113 22067if { (eval echo configure:22068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22068 rm -rf conftest*
22069 eval "ac_cv_func_$ac_func=yes"
22070else
22071 echo "configure: failed program was:" >&5
22072 cat conftest.$ac_ext >&5
22073 rm -rf conftest*
22074 eval "ac_cv_func_$ac_func=no"
22075fi
22076rm -f conftest*
22077fi
22078
22079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22080 echo "$ac_t""yes" 1>&6
22081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22082 cat >> confdefs.h <<EOF
22083#define $ac_tr_func 1
22084EOF
22085 have_ceil=1
22086else
22087 echo "$ac_t""no" 1>&6
22088fi
22089done
22090
22091 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
82d43113 22092echo "configure:22093: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22093 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22094 echo "$ac_t""yes" 1>&6
22095 else
22096 echo "$ac_t""no" 1>&6
22097 # not sure we should warn the user, crash, etc.
22098 fi
22099fi
8284b0c5
MB
22100
22101if test "$wxUSE_GUI" = "yes"; then
22102
22103 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22104
a0b9e27f 22105
8284b0c5
MB
22106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22107 drawing dynamic erase event exec font image \
22108 minimal propsize rotate widgets"
22109
22110 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22111else
22112 SAMPLES_SUBDIRS="console"
22113fi
22114
22115
22116INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22117-I\${top_srcdir}/include \
22118$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22119$TOOLKIT_INCLUDE"
22120
22121if test "$wxUSE_GTK" = 1; then
22122 WXCONFIG_INCLUDE=
22123else
22124 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22125fi
22126
22127if test "$GXX" = yes ; then
22128 CXXWARNINGS="-Wall"
a0b9e27f 22129
8284b0c5
MB
22130 if test "$wxUSE_NO_DEPS" = "no" ; then
22131 CFLAGS="-MMD $CFLAGS"
22132 CXXFLAGS="-MMD $CXXFLAGS"
22133 fi
22134fi
22135
b2fee376 22136EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22137
b2fee376 22138CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22139CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22140CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22141LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22142
22143LDFLAGS="$LDFLAGS $PROFILE"
22144
22145SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
2f51a9ec
GD
22214
22215
22216
22217
f6bcfd97 22218
dad6c0ea 22219
caa2c79b 22220
3711412e 22221
1e6feb95
VZ
22222
22223
885d4bf5
VS
22224
22225
22226
22227
9b695262
VZ
22228
22229
62d0491b 22230
ef7f2189 22231
40f7145c 22232
2b5f62a0
VZ
22233
22234
22235
22236
22237
2bffed64
VZ
22238
22239
3bd8fb5f 22240
e26c13cf 22241
52c71b80 22242
36825681 22243
10f2d63a 22244
a0b9e27f
MB
22245
22246echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
82d43113 22247echo "configure:22248: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22248set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22249if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22250 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22251else
a0b9e27f 22252 cat > conftestmake <<\EOF
10f2d63a
VZ
22253all:
22254 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22255EOF
10f2d63a 22256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22257eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22258if test -n "$ac_maketemp"; then
22259 eval ac_cv_prog_make_${ac_make}_set=yes
22260else
22261 eval ac_cv_prog_make_${ac_make}_set=no
22262fi
a0b9e27f 22263rm -f conftestmake
10f2d63a
VZ
22264fi
22265if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22266 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22267 SET_MAKE=
22268else
a0b9e27f 22269 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22270 SET_MAKE="MAKE=${MAKE-make}"
22271fi
22272
8284b0c5 22273
3a922bb4
RL
22274if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22275 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22276fi
665bbe97 22277
8284b0c5 22278
10f2d63a 22279
57973b9c
VZ
22280wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22281wx_cv_if_gnu_make=$IF_GNU_MAKE
22282wx_cv_path_ifs=$PATH_IFS
22283wx_cv_program_ext=$PROGRAM_EXT
22284wx_cv_target_library=$WX_TARGET_LIBRARY
22285wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22286wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22287wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22288wx_cv_release=${WX_RELEASE}
22289wx_cv_current=${WX_CURRENT}
22290wx_cv_revision=${WX_REVISION}
22291wx_cv_age=${WX_AGE}
27635a90 22292wx_cv_use_gui=${USE_GUI}
5e66eee1 22293wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22294export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22295 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22296 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22297 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22298 wx_cv_use_gui wx_cv_use_resources
57973b9c 22299
a0b9e27f 22300subdirs="demos samples utils contrib"
8284b0c5 22301
10f2d63a 22302
a0b9e27f
MB
22303trap '' 1 2 15
22304cat > confcache <<\EOF
10f2d63a
VZ
22305# This file is a shell script that caches the results of configure
22306# tests run on this system so they can be shared between configure
a0b9e27f
MB
22307# scripts and configure runs. It is not useful on other systems.
22308# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22309#
a0b9e27f
MB
22310# By default, configure uses ./config.cache as the cache file,
22311# creating it if it does not exist already. You can give configure
22312# the --cache-file=FILE option to use a different cache file; that is
22313# what configure does when it calls configure scripts in
22314# subdirectories, so they share the cache.
22315# Giving --cache-file=/dev/null disables caching, for debugging configure.
22316# config.status only pays attention to the cache file if you give it the
22317# --recheck option to rerun configure.
10f2d63a 22318#
a0b9e27f 22319EOF
10f2d63a
VZ
22320# The following way of writing the cache mishandles newlines in values,
22321# but we know of no workaround that is simple, portable, and efficient.
22322# So, don't put newlines in cache variables' values.
22323# Ultrix sh set writes to stderr and can't be redirected directly,
22324# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22325(set) 2>&1 |
22326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22327 *ac_space=\ *)
22328 # `set' does not quote correctly, so add quotes (double-quote substitution
22329 # turns \\\\ into \\, and sed turns \\ into \).
22330 sed -n \
22331 -e "s/'/'\\\\''/g" \
22332 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22333 ;;
22334 *)
22335 # `set' quotes correctly as required by POSIX, so do not add quotes.
22336 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22337 ;;
22338 esac >> confcache
22339if cmp -s $cache_file confcache; then
22340 :
22341else
10f2d63a 22342 if test -w $cache_file; then
a0b9e27f
MB
22343 echo "updating cache $cache_file"
22344 cat confcache > $cache_file
10f2d63a
VZ
22345 else
22346 echo "not updating unwritable cache $cache_file"
22347 fi
22348fi
22349rm -f confcache
22350
a0b9e27f
MB
22351trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22352
10f2d63a
VZ
22353test "x$prefix" = xNONE && prefix=$ac_default_prefix
22354# Let make expand exec_prefix.
22355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22356
a0b9e27f
MB
22357# Any assignment to VPATH causes Sun make to only execute
22358# the first set of double-colon rules, so remove it if not needed.
22359# If there is a colon in the path, we need to keep it.
10f2d63a 22360if test "x$srcdir" = x.; then
a0b9e27f 22361 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22362fi
22363
a0b9e27f 22364trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22365
a0b9e27f 22366DEFS=-DHAVE_CONFIG_H
8284b0c5 22367
a0b9e27f 22368# Without the "./", some shells look in PATH for config.status.
247f5006 22369: ${CONFIG_STATUS=./config.status}
52127426 22370
a0b9e27f
MB
22371echo creating $CONFIG_STATUS
22372rm -f $CONFIG_STATUS
22373cat > $CONFIG_STATUS <<EOF
22374#! /bin/sh
22375# Generated automatically by configure.
22376# Run this file to recreate the current configuration.
22377# This directory was configured as follows,
22378# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22379#
a0b9e27f 22380# $0 $ac_configure_args
247f5006 22381#
a0b9e27f
MB
22382# Compiler output produced by configure, useful for debugging
22383# configure, is in ./config.log if it exists.
247f5006 22384
a0b9e27f
MB
22385ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22386for ac_option
247f5006 22387do
a0b9e27f
MB
22388 case "\$ac_option" in
22389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22390 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22391 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22392 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22393 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22394 exit 0 ;;
22395 -help | --help | --hel | --he | --h)
22396 echo "\$ac_cs_usage"; exit 0 ;;
22397 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22398 esac
22399done
22400
a0b9e27f
MB
22401ac_given_srcdir=$srcdir
22402ac_given_INSTALL="$INSTALL"
247f5006 22403
a0b9e27f
MB
22404trap 'rm -fr `echo "
22405 wx-config
2b5f62a0 22406 version-script
a0b9e27f
MB
22407 src/make.env
22408 src/makeprog.env
22409 src/makelib.env
22410 Makefile
22411 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22412EOF
22413cat >> $CONFIG_STATUS <<EOF
247f5006 22414
a0b9e27f
MB
22415# Protect against being on the right side of a sed subst in config.status.
22416sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22418$ac_vpsub
22419$extrasub
22420s%@SHELL@%$SHELL%g
22421s%@CFLAGS@%$CFLAGS%g
22422s%@CPPFLAGS@%$CPPFLAGS%g
22423s%@CXXFLAGS@%$CXXFLAGS%g
22424s%@FFLAGS@%$FFLAGS%g
22425s%@DEFS@%$DEFS%g
22426s%@LDFLAGS@%$LDFLAGS%g
22427s%@LIBS@%$LIBS%g
22428s%@exec_prefix@%$exec_prefix%g
22429s%@prefix@%$prefix%g
22430s%@program_transform_name@%$program_transform_name%g
22431s%@bindir@%$bindir%g
22432s%@sbindir@%$sbindir%g
22433s%@libexecdir@%$libexecdir%g
22434s%@datadir@%$datadir%g
22435s%@sysconfdir@%$sysconfdir%g
22436s%@sharedstatedir@%$sharedstatedir%g
22437s%@localstatedir@%$localstatedir%g
22438s%@libdir@%$libdir%g
22439s%@includedir@%$includedir%g
22440s%@oldincludedir@%$oldincludedir%g
22441s%@infodir@%$infodir%g
22442s%@mandir@%$mandir%g
22443s%@host@%$host%g
22444s%@host_alias@%$host_alias%g
22445s%@host_cpu@%$host_cpu%g
22446s%@host_vendor@%$host_vendor%g
22447s%@host_os@%$host_os%g
22448s%@target@%$target%g
22449s%@target_alias@%$target_alias%g
22450s%@target_cpu@%$target_cpu%g
22451s%@target_vendor@%$target_vendor%g
22452s%@target_os@%$target_os%g
22453s%@build@%$build%g
22454s%@build_alias@%$build_alias%g
22455s%@build_cpu@%$build_cpu%g
22456s%@build_vendor@%$build_vendor%g
22457s%@build_os@%$build_os%g
22458s%@CC@%$CC%g
22459s%@CPP@%$CPP%g
22460s%@CXX@%$CXX%g
22461s%@RANLIB@%$RANLIB%g
22462s%@AR@%$AR%g
22463s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22464s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22465s%@INSTALL_DATA@%$INSTALL_DATA%g
22466s%@STRIP@%$STRIP%g
22467s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22468s%@YACC@%$YACC%g
22469s%@LEX@%$LEX%g
22470s%@LEXLIB@%$LEXLIB%g
22471s%@LN_S@%$LN_S%g
22472s%@CXXCPP@%$CXXCPP%g
22473s%@PKG_CONFIG@%$PKG_CONFIG%g
22474s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22475s%@GTK_LIBS@%$GTK_LIBS%g
22476s%@GTK_CONFIG@%$GTK_CONFIG%g
22477s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22478s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22479s%@X_CFLAGS@%$X_CFLAGS%g
22480s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22481s%@X_LIBS@%$X_LIBS%g
22482s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22483s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22484s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22485s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22486s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22487s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22488s%@RESCOMP@%$RESCOMP%g
22489s%@DEREZ@%$DEREZ%g
36825681 22490s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22491s%@LIBICONV@%$LIBICONV%g
22492s%@LEX_STEM@%$LEX_STEM%g
22493s%@PATH_IFS@%$PATH_IFS%g
22494s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22495s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22496s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22497s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22498s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22499s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22500s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22501s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22502s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22503s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22504s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22505s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22506s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22507s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22508s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22509s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22510s%@WX_ALL@%$WX_ALL%g
22511s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22512s%@SHARED_LD@%$SHARED_LD%g
22513s%@PIC_FLAG@%$PIC_FLAG%g
22514s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22515s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22516s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22517s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22518s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22519s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22520s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22521s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22522s%@USE_GUI@%$USE_GUI%g
22523s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22524s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22525s%@TOOLKIT@%$TOOLKIT%g
22526s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22527s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22528s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22529s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22530s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22531s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22532s%@cross_compiling@%$cross_compiling%g
22533s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22534s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22535s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22536s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22537s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22538s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22539s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22540s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22541s%@ALL_HEADERS@%$ALL_HEADERS%g
22542s%@ALL_SOURCES@%$ALL_SOURCES%g
22543s%@GUIDIST@%$GUIDIST%g
22544s%@PORT_FILES@%$PORT_FILES%g
22545s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22546s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22547s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22548s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22549s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22550s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22551s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22552s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22553s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22554s%@RESFLAGS@%$RESFLAGS%g
22555s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22556s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22557s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22558s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22559s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22560s%@MACRESCOMP@%$MACRESCOMP%g
22561s%@MACSETFILE@%$MACSETFILE%g
22562s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22563s%@GCC@%$GCC%g
a0b9e27f
MB
22564s%@DLLTOOL@%$DLLTOOL%g
22565s%@AS@%$AS%g
22566s%@NM@%$NM%g
22567s%@LD@%$LD%g
22568s%@MAKEINFO@%$MAKEINFO%g
22569s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22570s%@SET_MAKE@%$SET_MAKE%g
22571s%@subdirs@%$subdirs%g
247f5006 22572
247f5006 22573CEOF
a0b9e27f 22574EOF
247f5006 22575
a0b9e27f
MB
22576cat >> $CONFIG_STATUS <<\EOF
22577
22578# Split the substitutions into bite-sized pieces for seds with
22579# small command number limits, like on Digital OSF/1 and HP-UX.
22580ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22581ac_file=1 # Number of current file.
22582ac_beg=1 # First line for current file.
22583ac_end=$ac_max_sed_cmds # Line after last line for current file.
22584ac_more_lines=:
22585ac_sed_cmds=""
22586while $ac_more_lines; do
22587 if test $ac_beg -gt 1; then
22588 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22589 else
22590 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22591 fi
22592 if test ! -s conftest.s$ac_file; then
22593 ac_more_lines=false
22594 rm -f conftest.s$ac_file
22595 else
22596 if test -z "$ac_sed_cmds"; then
22597 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22598 else
a0b9e27f 22599 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22600 fi
a0b9e27f
MB
22601 ac_file=`expr $ac_file + 1`
22602 ac_beg=$ac_end
22603 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22604 fi
a0b9e27f
MB
22605done
22606if test -z "$ac_sed_cmds"; then
22607 ac_sed_cmds=cat
22608fi
22609EOF
10f2d63a 22610
a0b9e27f 22611cat >> $CONFIG_STATUS <<EOF
10f2d63a 22612
a0b9e27f 22613CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22614 version-script
a0b9e27f
MB
22615 src/make.env
22616 src/makeprog.env
22617 src/makelib.env
22618 Makefile
22619 "}
22620EOF
22621cat >> $CONFIG_STATUS <<\EOF
22622for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22624 case "$ac_file" in
22625 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22626 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22627 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22628 esac
247f5006 22629
a0b9e27f 22630 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22631
a0b9e27f
MB
22632 # Remove last slash and all that follows it. Not all systems have dirname.
22633 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22634 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22635 # The file is in a subdirectory.
22636 test ! -d "$ac_dir" && mkdir "$ac_dir"
22637 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22638 # A "../" for each directory in $ac_dir_suffix.
22639 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22640 else
22641 ac_dir_suffix= ac_dots=
22642 fi
247f5006 22643
a0b9e27f
MB
22644 case "$ac_given_srcdir" in
22645 .) srcdir=.
22646 if test -z "$ac_dots"; then top_srcdir=.
22647 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22648 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22649 *) # Relative path.
a0b9e27f
MB
22650 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22651 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22652 esac
10f2d63a 22653
a0b9e27f
MB
22654 case "$ac_given_INSTALL" in
22655 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22656 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22657 esac
247f5006 22658
a0b9e27f
MB
22659 echo creating "$ac_file"
22660 rm -f "$ac_file"
22661 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22662 case "$ac_file" in
22663 *Makefile*) ac_comsub="1i\\
22664# $configure_input" ;;
22665 *) ac_comsub= ;;
22666 esac
247f5006 22667
a0b9e27f
MB
22668 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22669 sed -e "$ac_comsub
22670s%@configure_input@%$configure_input%g
22671s%@srcdir@%$srcdir%g
22672s%@top_srcdir@%$top_srcdir%g
22673s%@INSTALL@%$INSTALL%g
22674" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22675fi; done
22676rm -f conftest.s*
10f2d63a
VZ
22677
22678# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22679# NAME is the cpp macro being defined and VALUE is the value it is being given.
22680#
22681# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22682ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22683ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22684ac_dC='\3'
22685ac_dD='%g'
22686# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22687ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22688ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22689ac_uC=' '
a0b9e27f
MB
22690ac_uD='\4%g'
22691# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22692ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22693ac_eB='$%\1#\2define\3'
22694ac_eC=' '
22695ac_eD='%g'
22696
22697if test "${CONFIG_HEADERS+set}" != set; then
22698EOF
22699cat >> $CONFIG_STATUS <<EOF
22700 CONFIG_HEADERS="setup.h:setup.h.in"
22701EOF
22702cat >> $CONFIG_STATUS <<\EOF
22703fi
22704for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22706 case "$ac_file" in
22707 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22708 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22709 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22710 esac
22711
a0b9e27f
MB
22712 echo creating $ac_file
22713
22714 rm -f conftest.frag conftest.in conftest.out
22715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22716 cat $ac_file_inputs > conftest.in
22717
22718EOF
22719
22720# Transform confdefs.h into a sed script conftest.vals that substitutes
22721# the proper values into config.h.in to produce config.h. And first:
22722# Protect against being on the right side of a sed subst in config.status.
22723# Protect against being in an unquoted here document in config.status.
22724rm -f conftest.vals
22725cat > conftest.hdr <<\EOF
22726s/[\\&%]/\\&/g
22727s%[\\$`]%\\&%g
22728s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22729s%ac_d%ac_u%gp
22730s%ac_u%ac_e%gp
22731EOF
22732sed -n -f conftest.hdr confdefs.h > conftest.vals
22733rm -f conftest.hdr
10f2d63a
VZ
22734
22735# This sed command replaces #undef with comments. This is necessary, for
22736# example, in the case of _POSIX_SOURCE, which is predefined and required
22737# on some systems where configure will not decide to define it.
a0b9e27f
MB
22738cat >> conftest.vals <<\EOF
22739s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22740EOF
22741
22742# Break up conftest.vals because some shells have a limit on
22743# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22744
22745rm -f conftest.tail
a0b9e27f 22746while :
10f2d63a 22747do
a0b9e27f
MB
22748 ac_lines=`grep -c . conftest.vals`
22749 # grep -c gives empty output for an empty file on some AIX systems.
22750 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22751 # Write a limited-size here document to conftest.frag.
22752 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22753 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22754 echo 'CEOF
a0b9e27f
MB
22755 sed -f conftest.frag conftest.in > conftest.out
22756 rm -f conftest.in
22757 mv conftest.out conftest.in
22758' >> $CONFIG_STATUS
22759 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22760 rm -f conftest.vals
22761 mv conftest.tail conftest.vals
10f2d63a 22762done
a0b9e27f
MB
22763rm -f conftest.vals
22764
22765cat >> $CONFIG_STATUS <<\EOF
22766 rm -f conftest.frag conftest.h
22767 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22768 cat conftest.in >> conftest.h
22769 rm -f conftest.in
22770 if cmp -s $ac_file conftest.h 2>/dev/null; then
22771 echo "$ac_file is unchanged"
22772 rm -f conftest.h
10f2d63a 22773 else
a0b9e27f
MB
22774 # Remove last slash and all that follows it. Not all systems have dirname.
22775 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22777 # The file is in a subdirectory.
22778 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22779 fi
a0b9e27f
MB
22780 rm -f $ac_file
22781 mv conftest.h $ac_file
247f5006 22782 fi
a0b9e27f
MB
22783fi; done
22784
22785EOF
22786cat >> $CONFIG_STATUS <<EOF
22787
22788 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22789 LN_S="${LN_S}"
22790
22791
22792EOF
22793cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22794
652d930d 22795 if test ! -h wx-config; then
991a5759 22796 chmod +x wx-config
3a922bb4
RL
22797 mv wx-config wx${TOOLCHAIN_NAME}-config
22798 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22799 fi
665bbe97 22800
00cf1208
RR
22801 if test ! -d lib; then
22802 mkdir lib
22803 fi
22804 if test ! -d lib/wx; then
22805 mkdir lib/wx
22806 fi
22807 if test ! -d lib/wx/include; then
22808 mkdir lib/wx/include
22809 fi
3a922bb4
RL
22810 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22811 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22812 fi
3a922bb4
RL
22813 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22814 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
22815 fi
22816 if test -f setup.h; then
3a922bb4 22817 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 22818 fi
a0b9e27f
MB
22819
22820exit 0
22821EOF
10f2d63a 22822chmod +x $CONFIG_STATUS
a0b9e27f
MB
22823rm -fr confdefs* $ac_clean_files
22824test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 22825
2224580a
VZ
22826if test "$no_recursion" != yes; then
22827
22828 # Remove --cache-file and --srcdir arguments so they do not pile up.
22829 ac_sub_configure_args=
22830 ac_prev=
22831 for ac_arg in $ac_configure_args; do
22832 if test -n "$ac_prev"; then
22833 ac_prev=
22834 continue
22835 fi
a0b9e27f 22836 case "$ac_arg" in
2224580a
VZ
22837 -cache-file | --cache-file | --cache-fil | --cache-fi \
22838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22839 ac_prev=cache_file ;;
22840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 22841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
22842 ;;
22843 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22844 ac_prev=srcdir ;;
22845 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22846 ;;
22847 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22848 esac
22849 done
22850
a0b9e27f 22851 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
22852
22853 # Do not complain, so a configure script can configure whichever
22854 # parts of a large source tree are present.
a0b9e27f
MB
22855 if test ! -d $srcdir/$ac_config_dir; then
22856 continue
22857 fi
2224580a 22858
a0b9e27f 22859 echo configuring in $ac_config_dir
2224580a 22860
a0b9e27f
MB
22861 case "$srcdir" in
22862 .) ;;
22863 *)
22864 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22865 else
22866 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22867 fi
22868 ;;
22869 esac
2224580a 22870
a0b9e27f
MB
22871 ac_popdir=`pwd`
22872 cd $ac_config_dir
247f5006 22873
a0b9e27f
MB
22874 # A "../" for each directory in /$ac_config_dir.
22875 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 22876
a0b9e27f
MB
22877 case "$srcdir" in
22878 .) # No --srcdir option. We are building in place.
22879 ac_sub_srcdir=$srcdir ;;
22880 /*) # Absolute path.
22881 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22882 *) # Relative path.
22883 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22884 esac
2224580a
VZ
22885
22886 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
22887 if test -f $ac_sub_srcdir/configure; then
22888 ac_sub_configure=$ac_sub_srcdir/configure
22889 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
22890 ac_sub_configure=$ac_configure
22891 else
a0b9e27f 22892 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
22893 ac_sub_configure=
22894 fi
22895
22896 # The recursion is here.
22897 if test -n "$ac_sub_configure"; then
a0b9e27f 22898
2224580a 22899 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
22900 case "$cache_file" in
22901 /*) ac_sub_cache_file=$cache_file ;;
2224580a 22902 *) # Relative path.
a0b9e27f 22903 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 22904 esac
a0b9e27f
MB
22905 case "$ac_given_INSTALL" in
22906 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22907 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22908 esac
2224580a 22909
a0b9e27f 22910 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 22911 # The eval makes quoting arguments work.
a0b9e27f
MB
22912 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22913 then :
22914 else
22915 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22916 fi
2224580a
VZ
22917 fi
22918
22919 cd $ac_popdir
22920 done
22921fi
22922
8284b0c5 22923
2b5f62a0
VZ
22924echo
22925echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22926echo ""
22927echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22928
22929echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22930echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22931echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22932
0c98a14e
GD
22933echo " What level of wxWindows compatibility should be enabled?"
22934echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
22935echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22936echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 22937
2b5f62a0
VZ
22938echo " Which libraries should wxWindows use?"
22939echo " jpeg ${wxUSE_LIBJPEG-none}"
22940echo " png ${wxUSE_LIBPNG-none}"
22941echo " regex ${wxUSE_REGEX}"
22942echo " tiff ${wxUSE_LIBTIFF-none}"
22943echo " zlib ${wxUSE_ZLIB}"
22944
22945echo ""
22946