]> git.saurik.com Git - wxWidgets.git/blame - configure
Applied some of patch [ 688466 ] MSVC7 build & bug fixes
[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
521196a2
MB
58
59
60
a0b9e27f
MB
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
2b5f62a0
VZ
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
a0b9e27f
MB
72
73
74
75
76
a0b9e27f
MB
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
ac0c4cc3
DE
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
a0b9e27f 103ac_help="$ac_help
89e6bf6d 104 --with-wine use Wine"
a0b9e27f
MB
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
b2fee376 144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
65d8ef1e
VS
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
3bce6687
JS
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
a0b9e27f
MB
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
a0b9e27f
MB
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
a0b9e27f
MB
291ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295ac_help="$ac_help
da494b40 296 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
a0b9e27f
MB
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
da494b40
MB
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
a0b9e27f
MB
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
a0b9e27f
MB
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425ac_help="$ac_help
426 --enable-palette use wxPalette class"
427ac_help="$ac_help
428 --enable-image use wxImage class"
429ac_help="$ac_help
430 --enable-gif use gif images (GIF file format)"
431ac_help="$ac_help
432 --enable-pcx use pcx images (PCX file format)"
433ac_help="$ac_help
434 --enable-iff use iff images (IFF file format)"
435ac_help="$ac_help
436 --enable-pnm use pnm images (PNM file format)"
437ac_help="$ac_help
438 --enable-xpm use xpm images (XPM file format)"
439ac_help="$ac_help
440 --enable-icocur use Windows ICO and CUR formats"
441ac_help="$ac_help
442 --disable-largefile omit support for large files"
443ac_help="$ac_help
444 --disable-gtktest do not try to compile and run a test GTK+ program"
445ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457ac_help="$ac_help
458 --with-x use the X Window System"
459ac_help="$ac_help
460 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
461
462# Initialize some variables set by options.
463# The variables have the same names as the options, with
464# dashes changed to underlines.
a0b9e27f
MB
465build=NONE
466cache_file=./config.cache
10f2d63a 467exec_prefix=NONE
a0b9e27f 468host=NONE
10f2d63a 469no_create=
a0b9e27f 470nonopt=NONE
10f2d63a
VZ
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
a0b9e27f 479target=NONE
10f2d63a
VZ
480verbose=
481x_includes=NONE
482x_libraries=NONE
483bindir='${exec_prefix}/bin'
484sbindir='${exec_prefix}/sbin'
485libexecdir='${exec_prefix}/libexec'
486datadir='${prefix}/share'
487sysconfdir='${prefix}/etc'
488sharedstatedir='${prefix}/com'
489localstatedir='${prefix}/var'
490libdir='${exec_prefix}/lib'
491includedir='${prefix}/include'
492oldincludedir='/usr/include'
493infodir='${prefix}/info'
494mandir='${prefix}/man'
495
a0b9e27f
MB
496# Initialize some other variables.
497subdirs=
498MFLAGS= MAKEFLAGS=
499SHELL=${CONFIG_SHELL-/bin/sh}
500# Maximum number of lines to put in a shell here document.
501ac_max_here_lines=12
502
10f2d63a
VZ
503ac_prev=
504for ac_option
505do
a0b9e27f 506
10f2d63a
VZ
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
a0b9e27f
MB
514 case "$ac_option" in
515 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516 *) ac_optarg= ;;
517 esac
10f2d63a
VZ
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
a0b9e27f 521 case "$ac_option" in
10f2d63a
VZ
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 526 bindir="$ac_optarg" ;;
10f2d63a
VZ
527
528 -build | --build | --buil | --bui | --bu)
a0b9e27f 529 ac_prev=build ;;
10f2d63a 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 531 build="$ac_optarg" ;;
10f2d63a
VZ
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 538 cache_file="$ac_optarg" ;;
10f2d63a
VZ
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
a0b9e27f 544 datadir="$ac_optarg" ;;
10f2d63a
VZ
545
546 -disable-* | --disable-*)
a0b9e27f 547 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 548 # Reject names that are not valid shell variable names.
a0b9e27f
MB
549 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551 fi
552 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
554
555 -enable-* | --enable-*)
a0b9e27f 556 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 557 # Reject names that are not valid shell variable names.
a0b9e27f
MB
558 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560 fi
561 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
10f2d63a
VZ
564 *) ac_optarg=yes ;;
565 esac
a0b9e27f 566 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
a0b9e27f 575 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
a0b9e27f
MB
581 -help | --help | --hel | --he)
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat << EOF
585Usage: configure [options] [host]
586Options: [defaults in brackets after descriptions]
587Configuration:
588 --cache-file=FILE cache test results in FILE
589 --help print this message
590 --no-create do not create output files
591 --quiet, --silent do not print \`checking...' messages
592 --version print the version of autoconf that created configure
593Directory and file names:
594 --prefix=PREFIX install architecture-independent files in PREFIX
595 [$ac_default_prefix]
596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 [same as prefix]
598 --bindir=DIR user executables in DIR [EPREFIX/bin]
599 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
600 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
601 --datadir=DIR read-only architecture-independent data in DIR
602 [PREFIX/share]
603 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
604 --sharedstatedir=DIR modifiable architecture-independent data in DIR
605 [PREFIX/com]
606 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
607 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
608 --includedir=DIR C header files in DIR [PREFIX/include]
609 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
610 --infodir=DIR info documentation in DIR [PREFIX/info]
611 --mandir=DIR man documentation in DIR [PREFIX/man]
612 --srcdir=DIR find the sources in DIR [configure dir or ..]
613 --program-prefix=PREFIX prepend PREFIX to installed program names
614 --program-suffix=SUFFIX append SUFFIX to installed program names
615 --program-transform-name=PROGRAM
616 run sed PROGRAM on installed program names
617EOF
618 cat << EOF
619Host type:
620 --build=BUILD configure for building on BUILD [BUILD=HOST]
621 --host=HOST configure for HOST [guessed]
622 --target=TARGET configure for TARGET [TARGET=HOST]
623Features and packages:
624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
628 --x-includes=DIR X include files are in DIR
629 --x-libraries=DIR X library files are in DIR
630EOF
631 if test -n "$ac_help"; then
632 echo "--enable and --with options recognized:$ac_help"
633 fi
634 exit 0 ;;
10f2d63a
VZ
635
636 -host | --host | --hos | --ho)
a0b9e27f 637 ac_prev=host ;;
10f2d63a 638 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 639 host="$ac_optarg" ;;
10f2d63a
VZ
640
641 -includedir | --includedir | --includedi | --included | --include \
642 | --includ | --inclu | --incl | --inc)
643 ac_prev=includedir ;;
644 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 646 includedir="$ac_optarg" ;;
10f2d63a
VZ
647
648 -infodir | --infodir | --infodi | --infod | --info | --inf)
649 ac_prev=infodir ;;
650 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 651 infodir="$ac_optarg" ;;
10f2d63a
VZ
652
653 -libdir | --libdir | --libdi | --libd)
654 ac_prev=libdir ;;
655 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 656 libdir="$ac_optarg" ;;
10f2d63a
VZ
657
658 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659 | --libexe | --libex | --libe)
660 ac_prev=libexecdir ;;
661 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 663 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -localstatedir | --localstatedir | --localstatedi | --localstated \
666 | --localstate | --localstat | --localsta | --localst \
667 | --locals | --local | --loca | --loc | --lo)
668 ac_prev=localstatedir ;;
669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 672 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
673
674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675 ac_prev=mandir ;;
676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 677 mandir="$ac_optarg" ;;
10f2d63a
VZ
678
679 -nfp | --nfp | --nf)
680 # Obsolete; use --without-fp.
681 with_fp=no ;;
682
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 684 | --no-cr | --no-c)
10f2d63a
VZ
685 no_create=yes ;;
686
687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689 no_recursion=yes ;;
690
691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693 | --oldin | --oldi | --old | --ol | --o)
694 ac_prev=oldincludedir ;;
695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 698 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
699
700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701 ac_prev=prefix ;;
702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 703 prefix="$ac_optarg" ;;
10f2d63a
VZ
704
705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
706 | --program-pre | --program-pr | --program-p)
707 ac_prev=program_prefix ;;
708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 710 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
711
712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
713 | --program-suf | --program-su | --program-s)
714 ac_prev=program_suffix ;;
715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 717 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
718
719 -program-transform-name | --program-transform-name \
720 | --program-transform-nam | --program-transform-na \
721 | --program-transform-n | --program-transform- \
722 | --program-transform | --program-transfor \
723 | --program-transfo | --program-transf \
724 | --program-trans | --program-tran \
725 | --progr-tra | --program-tr | --program-t)
726 ac_prev=program_transform_name ;;
727 -program-transform-name=* | --program-transform-name=* \
728 | --program-transform-nam=* | --program-transform-na=* \
729 | --program-transform-n=* | --program-transform-=* \
730 | --program-transform=* | --program-transfor=* \
731 | --program-transfo=* | --program-transf=* \
732 | --program-trans=* | --program-tran=* \
733 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 734 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
735
736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737 | -silent | --silent | --silen | --sile | --sil)
738 silent=yes ;;
739
740 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741 ac_prev=sbindir ;;
742 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743 | --sbi=* | --sb=*)
a0b9e27f 744 sbindir="$ac_optarg" ;;
10f2d63a
VZ
745
746 -sharedstatedir | --sharedstatedir | --sharedstatedi \
747 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748 | --sharedst | --shareds | --shared | --share | --shar \
749 | --sha | --sh)
750 ac_prev=sharedstatedir ;;
751 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754 | --sha=* | --sh=*)
a0b9e27f 755 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
756
757 -site | --site | --sit)
758 ac_prev=site ;;
759 -site=* | --site=* | --sit=*)
a0b9e27f 760 site="$ac_optarg" ;;
10f2d63a
VZ
761
762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763 ac_prev=srcdir ;;
764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 765 srcdir="$ac_optarg" ;;
10f2d63a
VZ
766
767 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768 | --syscon | --sysco | --sysc | --sys | --sy)
769 ac_prev=sysconfdir ;;
770 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 772 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
773
774 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 775 ac_prev=target ;;
10f2d63a 776 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 777 target="$ac_optarg" ;;
10f2d63a
VZ
778
779 -v | -verbose | --verbose | --verbos | --verbo | --verb)
780 verbose=yes ;;
781
a0b9e27f
MB
782 -version | --version | --versio | --versi | --vers)
783 echo "configure generated by autoconf version 2.13"
784 exit 0 ;;
10f2d63a
VZ
785
786 -with-* | --with-*)
a0b9e27f 787 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 788 # Reject names that are not valid shell variable names.
a0b9e27f
MB
789 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
10f2d63a 792 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
793 case "$ac_option" in
794 *=*) ;;
10f2d63a
VZ
795 *) ac_optarg=yes ;;
796 esac
a0b9e27f 797 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
798
799 -without-* | --without-*)
a0b9e27f 800 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 801 # Reject names that are not valid shell variable names.
a0b9e27f
MB
802 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804 fi
805 ac_package=`echo $ac_package| sed 's/-/_/g'`
806 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
807
808 --x)
809 # Obsolete; use --with-x.
810 with_x=yes ;;
811
812 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813 | --x-incl | --x-inc | --x-in | --x-i)
814 ac_prev=x_includes ;;
815 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 817 x_includes="$ac_optarg" ;;
10f2d63a
VZ
818
819 -x-libraries | --x-libraries | --x-librarie | --x-librari \
820 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821 ac_prev=x_libraries ;;
822 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 824 x_libraries="$ac_optarg" ;;
10f2d63a 825
a0b9e27f 826 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
827 ;;
828
829 *)
a0b9e27f
MB
830 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831 echo "configure: warning: $ac_option: invalid host type" 1>&2
832 fi
833 if test "x$nonopt" != xNONE; then
834 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835 fi
836 nonopt="$ac_option"
10f2d63a
VZ
837 ;;
838
839 esac
840done
841
842if test -n "$ac_prev"; then
a0b9e27f 843 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 844fi
8284b0c5 845
a0b9e27f
MB
846trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848# File descriptor usage:
849# 0 standard input
850# 1 file creation
851# 2 errors and warnings
852# 3 some systems may open it to /dev/tty
853# 4 used on the Kubota Titan
854# 6 checking for... messages and results
855# 5 compiler messages saved in config.log
856if test "$silent" = yes; then
857 exec 6>/dev/null
858else
859 exec 6>&1
860fi
861exec 5>./config.log
862
863echo "\
864This file contains any messages produced by compilers while
865running configure, to aid debugging if configure makes a mistake.
866" 1>&5
8284b0c5 867
a0b9e27f
MB
868# Strip out --no-create and --no-recursion so they do not pile up.
869# Also quote any args containing shell metacharacters.
870ac_configure_args=
871for ac_arg
10f2d63a 872do
a0b9e27f
MB
873 case "$ac_arg" in
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
881 esac
882done
883
a0b9e27f
MB
884# NLS nuisances.
885# Only set these to C if already set. These must not be set unconditionally
886# because not all systems understand e.g. LANG=C (notably SCO).
887# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888# Non-C LC_CTYPE values break the ctype check.
889if test "${LANG+set}" = set; then LANG=C; export LANG; fi
890if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 893
a0b9e27f
MB
894# confdefs.h avoids OS command line length limits that DEFS can exceed.
895rm -rf conftest* confdefs.h
896# AIX cpp loses on an empty file, so make sure it contains at least a newline.
897echo > confdefs.h
10f2d63a 898
a0b9e27f
MB
899# A filename unique to this package, relative to the directory that
900# configure is in, which we can look for to find out if srcdir is correct.
901ac_unique_file=wx-config.in
10f2d63a
VZ
902
903# Find the source files, if location was not specified.
904if test -z "$srcdir"; then
905 ac_srcdir_defaulted=yes
906 # Try the directory containing this script, then its parent.
a0b9e27f
MB
907 ac_prog=$0
908 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
910 srcdir=$ac_confdir
911 if test ! -r $srcdir/$ac_unique_file; then
912 srcdir=..
913 fi
914else
915 ac_srcdir_defaulted=no
916fi
917if test ! -r $srcdir/$ac_unique_file; then
918 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 919 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 920 else
a0b9e27f 921 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
922 fi
923fi
a0b9e27f 924srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 925
10f2d63a
VZ
926# Prefer explicitly selected file to automatically selected ones.
927if test -z "$CONFIG_SITE"; then
928 if test "x$prefix" != xNONE; then
929 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930 else
931 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932 fi
933fi
934for ac_site_file in $CONFIG_SITE; do
935 if test -r "$ac_site_file"; then
a0b9e27f 936 echo "loading site script $ac_site_file"
10f2d63a
VZ
937 . "$ac_site_file"
938 fi
939done
940
941if test -r "$cache_file"; then
a0b9e27f
MB
942 echo "loading cache $cache_file"
943 . $cache_file
10f2d63a 944else
a0b9e27f
MB
945 echo "creating cache $cache_file"
946 > $cache_file
10f2d63a
VZ
947fi
948
949ac_ext=c
a0b9e27f 950# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 951ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
952ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954cross_compiling=$ac_cv_prog_cc_cross
955
956ac_exeext=
957ac_objext=o
958if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961 ac_n= ac_c='
962' ac_t=' '
963 else
964 ac_n=-n ac_c= ac_t=
965 fi
966else
967 ac_n= ac_c='\c' ac_t=
968fi
8284b0c5
MB
969
970
10f2d63a 971
7c66a493
VZ
972ac_aux_dir=
973for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974 if test -f $ac_dir/install-sh; then
975 ac_aux_dir=$ac_dir
976 ac_install_sh="$ac_aux_dir/install-sh -c"
977 break
978 elif test -f $ac_dir/install.sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install.sh -c"
981 break
247f5006 982 fi
7c66a493
VZ
983done
984if test -z "$ac_aux_dir"; then
a0b9e27f 985 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 986fi
a0b9e27f
MB
987ac_config_guess=$ac_aux_dir/config.guess
988ac_config_sub=$ac_aux_dir/config.sub
989ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 990
8284b0c5 991
a0b9e27f
MB
992# Do some error checking and defaulting for the host and target type.
993# The inputs are:
994# configure --host=HOST --target=TARGET --build=BUILD NONOPT
995#
996# The rules are:
997# 1. You are not allowed to specify --host, --target, and nonopt at the
998# same time.
999# 2. Host defaults to nonopt.
1000# 3. If nonopt is not specified, then host defaults to the current host,
1001# as determined by config.guess.
1002# 4. Target and build default to nonopt.
1003# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1004
1005# The aliases save the names the user supplied, while $host etc.
1006# will get canonicalized.
a0b9e27f
MB
1007case $host---$target---$nonopt in
1008NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010esac
1011
1012
1013# Make sure we can run config.sub.
1014if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016fi
1017
1018echo $ac_n "checking host system type""... $ac_c" 1>&6
dfa2a1d9 1019echo "configure:1020: checking host system type" >&5
a0b9e27f
MB
1020
1021host_alias=$host
1022case "$host_alias" in
1023NONE)
1024 case $nonopt in
1025 NONE)
1026 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028 fi ;;
1029 *) host_alias=$nonopt ;;
1030 esac ;;
1031esac
1032
1033host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037echo "$ac_t""$host" 1>&6
1038
1039echo $ac_n "checking target system type""... $ac_c" 1>&6
dfa2a1d9 1040echo "configure:1041: checking target system type" >&5
a0b9e27f
MB
1041
1042target_alias=$target
1043case "$target_alias" in
1044NONE)
1045 case $nonopt in
1046 NONE) target_alias=$host_alias ;;
1047 *) target_alias=$nonopt ;;
1048 esac ;;
1049esac
1050
1051target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055echo "$ac_t""$target" 1>&6
1056
1057echo $ac_n "checking build system type""... $ac_c" 1>&6
dfa2a1d9 1058echo "configure:1059: checking build system type" >&5
a0b9e27f
MB
1059
1060build_alias=$build
1061case "$build_alias" in
1062NONE)
1063 case $nonopt in
1064 NONE) build_alias=$host_alias ;;
1065 *) build_alias=$nonopt ;;
1066 esac ;;
1067esac
1068
1069build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073echo "$ac_t""$build" 1>&6
1074
1075test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1076 test "$program_prefix$program_suffix$program_transform_name" = \
1077 NONENONEs,x,x, &&
1078 program_prefix=${target_alias}-
8284b0c5
MB
1079
1080
a0b9e27f 1081
10f2d63a 1082WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1083WX_MINOR_VERSION_NUMBER=5
1084WX_RELEASE_NUMBER=0
10f2d63a 1085
10f2d63a 1086WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1087WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1088
978f1259
RL
1089WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
34bed6d9 1091WX_CURRENT=0
6426998c
RL
1092WX_REVISION=0
1093WX_AGE=0
1094
8284b0c5
MB
1095
1096
10f2d63a
VZ
1097USE_UNIX=1
1098USE_WIN32=0
f9bc1684 1099USE_DOS=0
b12915c1 1100USE_BEOS=0
1216f52d 1101USE_MAC=0
b12915c1 1102
10f2d63a
VZ
1103USE_LINUX=
1104USE_SGI=
1105USE_HPUX=
1106USE_SYSV=
1107USE_SVR4=
1108USE_AIX=
1109USE_SUN=
1110USE_SOLARIS=
1111USE_SUNOS=
1112USE_ALPHA=
1113USE_OSF=
1114USE_BSD=
f11bdd03 1115USE_DARWIN=
10f2d63a 1116USE_FREEBSD=
95c8801c 1117USE_OPENBSD=
f6bcfd97 1118USE_NETBSD=
10f2d63a
VZ
1119USE_VMS=
1120USE_ULTRIX=
10f2d63a
VZ
1121USE_DATA_GENERAL=
1122
ab9b9eab
VZ
1123NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1124
ac0c4cc3 1125ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1126
ac0c4cc3 1127DEFAULT_wxUSE_COCOA=0
10f2d63a 1128DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1129DEFAULT_wxUSE_MAC=0
1130DEFAULT_wxUSE_MGL=0
1725144d 1131DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1132DEFAULT_wxUSE_MOTIF=0
1133DEFAULT_wxUSE_MSW=0
e07802fc 1134DEFAULT_wxUSE_PM=0
f79bd02d 1135DEFAULT_wxUSE_X11=0
10f2d63a 1136
ac0c4cc3 1137DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1138DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1139DEFAULT_DEFAULT_wxUSE_MAC=0
1140DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1141DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1142DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1144DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1145DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1146
d6a55c4b 1147PROGRAM_EXT=
3a922bb4 1148SO_SUFFIX=so
d6a55c4b 1149
10f2d63a
VZ
1150case "${host}" in
1151 *-hp-hpux* )
1152 USE_HPUX=1
1153 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1154 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1155 SO_SUFFIX=sl
a0b9e27f 1156 cat >> confdefs.h <<\EOF
10f2d63a 1157#define __HPUX__ 1
a0b9e27f 1158EOF
10f2d63a
VZ
1159
1160 ;;
1161 *-*-linux* )
1162 USE_LINUX=1
a0b9e27f 1163 cat >> confdefs.h <<\EOF
10f2d63a 1164#define __LINUX__ 1
a0b9e27f 1165EOF
10f2d63a
VZ
1166
1167 TMP=`uname -m`
1168 if test "x$TMP" = "xalpha"; then
1169 USE_ALPHA=1
a0b9e27f 1170 cat >> confdefs.h <<\EOF
10f2d63a 1171#define __ALPHA__ 1
a0b9e27f 1172EOF
10f2d63a
VZ
1173
1174 fi
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-irix5* | *-*-irix6* )
1178 USE_SGI=1
1179 USE_SVR4=1
a0b9e27f 1180 cat >> confdefs.h <<\EOF
10f2d63a 1181#define __SGI__ 1
a0b9e27f 1182EOF
10f2d63a 1183
a0b9e27f 1184 cat >> confdefs.h <<\EOF
10f2d63a 1185#define __SVR4__ 1
a0b9e27f 1186EOF
10f2d63a
VZ
1187
1188 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1189 ;;
1190 *-*-solaris2* )
1191 USE_SUN=1
1192 USE_SOLARIS=1
1193 USE_SVR4=1
a0b9e27f 1194 cat >> confdefs.h <<\EOF
10f2d63a 1195#define __SUN__ 1
a0b9e27f 1196EOF
10f2d63a 1197
a0b9e27f 1198 cat >> confdefs.h <<\EOF
10f2d63a 1199#define __SOLARIS__ 1
a0b9e27f 1200EOF
10f2d63a 1201
a0b9e27f 1202 cat >> confdefs.h <<\EOF
10f2d63a 1203#define __SVR4__ 1
a0b9e27f 1204EOF
10f2d63a
VZ
1205
1206 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1207 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1208 ;;
1209 *-*-sunos4* )
1210 USE_SUN=1
1211 USE_SUNOS=1
1212 USE_BSD=1
a0b9e27f 1213 cat >> confdefs.h <<\EOF
10f2d63a 1214#define __SUN__ 1
a0b9e27f 1215EOF
10f2d63a 1216
a0b9e27f 1217 cat >> confdefs.h <<\EOF
10f2d63a 1218#define __SUNOS__ 1
a0b9e27f 1219EOF
10f2d63a 1220
a0b9e27f 1221 cat >> confdefs.h <<\EOF
10f2d63a 1222#define __BSD__ 1
a0b9e27f 1223EOF
10f2d63a
VZ
1224
1225 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1226 ;;
f6bcfd97 1227 *-*-freebsd*)
10f2d63a
VZ
1228 USE_BSD=1
1229 USE_FREEBSD=1
a0b9e27f 1230 cat >> confdefs.h <<\EOF
10f2d63a 1231#define __FREEBSD__ 1
a0b9e27f 1232EOF
10f2d63a 1233
a0b9e27f 1234 cat >> confdefs.h <<\EOF
10f2d63a 1235#define __BSD__ 1
a0b9e27f 1236EOF
95c8801c
VS
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-openbsd*)
1241 USE_BSD=1
1242 USE_OPENBSD=1
a0b9e27f 1243 cat >> confdefs.h <<\EOF
2b5f62a0 1244#define __OPENBSD__ 1
a0b9e27f 1245EOF
95c8801c 1246
a0b9e27f 1247 cat >> confdefs.h <<\EOF
2b5f62a0 1248#define __BSD__ 1
a0b9e27f 1249EOF
f6bcfd97
BP
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-netbsd*)
1254 USE_BSD=1
1255 USE_NETBSD=1
a0b9e27f 1256 cat >> confdefs.h <<\EOF
2b5f62a0 1257#define __NETBSD__ 1
a0b9e27f 1258EOF
f6bcfd97 1259
a0b9e27f 1260 cat >> confdefs.h <<\EOF
2b5f62a0 1261#define __BSD__ 1
a0b9e27f 1262EOF
10f2d63a
VZ
1263
1264 DEFAULT_DEFAULT_wxUSE_GTK=1
1265 ;;
1266 *-*-osf* )
1267 USE_ALPHA=1
1268 USE_OSF=1
a0b9e27f 1269 cat >> confdefs.h <<\EOF
10f2d63a 1270#define __ALPHA__ 1
a0b9e27f 1271EOF
10f2d63a 1272
a0b9e27f 1273 cat >> confdefs.h <<\EOF
10f2d63a 1274#define __OSF__ 1
a0b9e27f 1275EOF
10f2d63a
VZ
1276
1277 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1278 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1279 ;;
1280 *-*-dgux5* )
1281 USE_ALPHA=1
1282 USE_SVR4=1
a0b9e27f 1283 cat >> confdefs.h <<\EOF
10f2d63a 1284#define __ALPHA__ 1
a0b9e27f 1285EOF
10f2d63a 1286
a0b9e27f 1287 cat >> confdefs.h <<\EOF
10f2d63a 1288#define __SVR4__ 1
a0b9e27f 1289EOF
10f2d63a
VZ
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-sysv5* )
1294 USE_SYSV=1
1295 USE_SVR4=1
a0b9e27f 1296 cat >> confdefs.h <<\EOF
10f2d63a 1297#define __SYSV__ 1
a0b9e27f 1298EOF
10f2d63a 1299
a0b9e27f 1300 cat >> confdefs.h <<\EOF
10f2d63a 1301#define __SVR4__ 1
a0b9e27f 1302EOF
10f2d63a
VZ
1303
1304 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1305 ;;
1306 *-*-aix* )
1307 USE_AIX=1
1308 USE_SYSV=1
1309 USE_SVR4=1
2b5f62a0 1310 SO_SUFFIX=a
a0b9e27f 1311 cat >> confdefs.h <<\EOF
10f2d63a 1312#define __AIX__ 1
a0b9e27f 1313EOF
10f2d63a 1314
a0b9e27f 1315 cat >> confdefs.h <<\EOF
10f2d63a 1316#define __SYSV__ 1
a0b9e27f 1317EOF
10f2d63a 1318
a0b9e27f 1319 cat >> confdefs.h <<\EOF
10f2d63a 1320#define __SVR4__ 1
a0b9e27f 1321EOF
10f2d63a
VZ
1322
1323 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1324 ;;
1325
1c8183e2 1326 *-*-cygwin* | *-*-mingw32* )
17234b26 1327 SO_SUFFIX=dll
cf27ef00 1328 PROGRAM_EXT=".exe"
7b7a7637 1329 RESCOMP=windres
10f2d63a
VZ
1330 DEFAULT_DEFAULT_wxUSE_MSW=1
1331 ;;
1332
f9bc1684
VS
1333 *-pc-msdosdjgpp )
1334 USE_UNIX=0
1335 USE_DOS=1
a0b9e27f 1336 cat >> confdefs.h <<\EOF
f9bc1684 1337#define __DOS__ 1
a0b9e27f 1338EOF
f9bc1684
VS
1339
1340 PROGRAM_EXT=".exe"
1341 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1342 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1343 ;;
1344
6fa882bd 1345 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1346 cat >> confdefs.h <<\EOF
10f2d63a 1347#define __EMX__ 1
a0b9e27f 1348EOF
10f2d63a 1349
cf27ef00 1350 PROGRAM_EXT=".exe"
e07802fc 1351 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1352 ;;
1353
d08b457b
GD
1354 powerpc-*-darwin* )
1355 USE_BSD=1
f11bdd03 1356 USE_DARWIN=1
3a922bb4 1357 SO_SUFFIX=dylib
a0b9e27f 1358 cat >> confdefs.h <<\EOF
f11bdd03 1359#define __BSD__ 1
a0b9e27f 1360EOF
b4085ce6 1361
a0b9e27f 1362 cat >> confdefs.h <<\EOF
f11bdd03 1363#define __DARWIN__ 1
a0b9e27f 1364EOF
d08b457b 1365
a0b9e27f 1366 cat >> confdefs.h <<\EOF
d08b457b 1367#define __POWERPC__ 1
82d43113
GD
1368EOF
1369
1370 cat >> confdefs.h <<\EOF
1371#define TARGET_CARBON 1
a0b9e27f 1372EOF
b4085ce6
GD
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
b12915c1
VZ
1377 *-*-beos* )
1378 USE_BEOS=1
a0b9e27f 1379 cat >> confdefs.h <<\EOF
b12915c1 1380#define __BEOS__ 1
a0b9e27f 1381EOF
b12915c1
VZ
1382
1383 ;;
1384
10f2d63a 1385 *)
a0b9e27f 1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1387esac
1388
8284b0c5
MB
1389
1390
1391
1392 wx_arg_cache_file="configarg.cache"
1393 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1394 rm -f ${wx_arg_cache_file}.tmp
1395 touch ${wx_arg_cache_file}.tmp
1396 touch ${wx_arg_cache_file}
a0b9e27f 1397
10f2d63a
VZ
1398
1399DEBUG_CONFIGURE=0
1400if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1401 DEFAULT_wxUSE_UNIVERSAL=no
1402
d8356fa3
VZ
1403 DEFAULT_wxUSE_NANOX=no
1404
10f2d63a
VZ
1405 DEFAULT_wxUSE_THREADS=yes
1406
1407 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1408 DEFAULT_wxUSE_SONAME=no
1e6feb95 1409 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1410 DEFAULT_wxUSE_PROFILE=no
1411 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1412 DEFAULT_wxUSE_NO_RTTI=no
1413 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1414 DEFAULT_wxUSE_PERMISSIVE=no
1415 DEFAULT_wxUSE_DEBUG_FLAG=yes
1416 DEFAULT_wxUSE_DEBUG_INFO=yes
1417 DEFAULT_wxUSE_DEBUG_GDB=yes
1418 DEFAULT_wxUSE_MEM_TRACING=no
1419 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1420 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1421 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1422 DEFAULT_wxUSE_APPLE_IEEE=no
1423
1424 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1425 DEFAULT_wxUSE_LOGWINDOW=no
1426 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1427 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1428
1429 DEFAULT_wxUSE_GUI=yes
1e6feb95 1430 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1431
3e44f09d 1432 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1433 DEFAULT_wxUSE_ZLIB=no
1434 DEFAULT_wxUSE_LIBPNG=no
1435 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1436 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1437 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1438 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1439
eb4efbdc 1440 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1441 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1442 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1443 DEFAULT_wxUSE_CMDLINE_PARSER=no
1444 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1445 DEFAULT_wxUSE_TIMER=no
1446 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1447 DEFAULT_wxUSE_FILE=no
1e6feb95 1448 DEFAULT_wxUSE_FFILE=no
a3a584a7 1449 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1450 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1451 DEFAULT_wxUSE_WAVE=no
1452 DEFAULT_wxUSE_INTL=no
1453 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1454 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1455 DEFAULT_wxUSE_STREAMS=no
1456 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1457 DEFAULT_wxUSE_OLE=no
1458 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1459 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1460 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1461 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1462 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1463 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1464 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1465
1466 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1467 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1468 DEFAULT_wxUSE_POSTSCRIPT=no
1469
1470 DEFAULT_wxUSE_X_RESOURCES=no
1471 DEFAULT_wxUSE_CLIPBOARD=no
1472 DEFAULT_wxUSE_TOOLTIPS=no
1473 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1474 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1475 DEFAULT_wxUSE_SPLINES=no
1476
1477 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1478 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1479 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1480
10f2d63a
VZ
1481 DEFAULT_wxUSE_RESOURCES=no
1482 DEFAULT_wxUSE_CONSTRAINTS=no
1483 DEFAULT_wxUSE_IPC=no
1484 DEFAULT_wxUSE_HELP=no
29fd3c0c 1485 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1486 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1487 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1488 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1489 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1490 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1491 DEFAULT_wxUSE_PROTOCOL=no
1492 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FTP=no
1494 DEFAULT_wxUSE_PROTOCOL_FILE=no
1495 DEFAULT_wxUSE_URL=no
3bd8fb5f 1496
10f2d63a 1497 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1498 DEFAULT_wxUSE_CHOICEDLG=no
1499 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1500 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1501 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1502 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1503 DEFAULT_wxUSE_FONTDLG=no
1504 DEFAULT_wxUSE_MSGDLG=no
1505 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1506 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1507 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1508 DEFAULT_wxUSE_STARTUP_TIPS=no
1509 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1510 DEFAULT_wxUSE_WIZARDDLG=no
1511
1e6feb95 1512 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_MINIFRAME=no
1514 DEFAULT_wxUSE_HTML=no
24528b0c 1515 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_FS_INET=no
1517 DEFAULT_wxUSE_FS_ZIP=no
1518 DEFAULT_wxUSE_BUSYINFO=no
1519 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1520 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1521
1522 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1523 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1524 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1525 DEFAULT_wxUSE_CALCTRL=no
1526 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_CHECKBOX=no
1528 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1529 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1530 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1531 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1532 DEFAULT_wxUSE_GAUGE=no
1533 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1534 DEFAULT_wxUSE_IMAGLIST=no
1535 DEFAULT_wxUSE_LISTBOX=no
1536 DEFAULT_wxUSE_LISTCTRL=no
1537 DEFAULT_wxUSE_NOTEBOOK=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1544 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1549 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1552 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1553 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1554 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1557 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1558 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1559 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1560
1561 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1562 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
edae8572 1565 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1566 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1570 DEFAULT_wxUSE_IFF=no
0046ff7c 1571 DEFAULT_wxUSE_XPM=no
658974ae 1572 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1573else
1e6feb95
VZ
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
d8356fa3
VZ
1576 DEFAULT_wxUSE_NANOX=no
1577
10f2d63a
VZ
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1581 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1594 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1600 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
831b3152 1604 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1608 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1609 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1610 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1611
eb4efbdc 1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1617 DEFAULT_wxUSE_TIMER=yes
1618 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1619 DEFAULT_wxUSE_FILE=yes
1e6feb95 1620 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1621 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1622 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1623 DEFAULT_wxUSE_WAVE=no
1624 DEFAULT_wxUSE_INTL=yes
1625 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1626 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_STREAMS=yes
1628 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1629 DEFAULT_wxUSE_OLE=yes
1630 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1631 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1632 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1633 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1634 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1635 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1636 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1637
1638 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1639 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1640 DEFAULT_wxUSE_POSTSCRIPT=yes
1641
1642 DEFAULT_wxUSE_X_RESOURCES=no
1643 DEFAULT_wxUSE_CLIPBOARD=yes
1644 DEFAULT_wxUSE_TOOLTIPS=yes
1645 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1646 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1647 DEFAULT_wxUSE_SPLINES=yes
1648
1649 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1650 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1652
2b5f62a0 1653 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1654 DEFAULT_wxUSE_CONSTRAINTS=yes
1655 DEFAULT_wxUSE_IPC=yes
1656 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1657 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1658 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1659 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1660 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1661 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1662 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1663 DEFAULT_wxUSE_PROTOCOL=yes
1664 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1665 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1666 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1667 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1668
1669 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1670 DEFAULT_wxUSE_CHOICEDLG=yes
1671 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1672 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1673 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1674 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1675 DEFAULT_wxUSE_FONTDLG=yes
1676 DEFAULT_wxUSE_MSGDLG=yes
1677 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1678 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1679 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1680 DEFAULT_wxUSE_STARTUP_TIPS=yes
1681 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1682 DEFAULT_wxUSE_WIZARDDLG=yes
1683
1e6feb95 1684 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1685 DEFAULT_wxUSE_MINIFRAME=yes
1686 DEFAULT_wxUSE_HTML=yes
24528b0c 1687 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1688 DEFAULT_wxUSE_FS_INET=yes
1689 DEFAULT_wxUSE_FS_ZIP=yes
1690 DEFAULT_wxUSE_BUSYINFO=yes
1691 DEFAULT_wxUSE_ZIPSTREAM=yes
1692 DEFAULT_wxUSE_VALIDATORS=yes
1693
1694 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1695 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1696 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1697 DEFAULT_wxUSE_CALCTRL=yes
1698 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_CHECKBOX=yes
1700 DEFAULT_wxUSE_CHECKLST=yes
1701 DEFAULT_wxUSE_CHOICE=yes
1702 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1703 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1704 DEFAULT_wxUSE_GAUGE=yes
1705 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1706 DEFAULT_wxUSE_IMAGLIST=yes
1707 DEFAULT_wxUSE_LISTBOX=yes
1708 DEFAULT_wxUSE_LISTCTRL=yes
1709 DEFAULT_wxUSE_NOTEBOOK=yes
1710 DEFAULT_wxUSE_RADIOBOX=yes
1711 DEFAULT_wxUSE_RADIOBTN=yes
1712 DEFAULT_wxUSE_SASH=yes
1713 DEFAULT_wxUSE_SCROLLBAR=yes
1714 DEFAULT_wxUSE_SLIDER=yes
1715 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1716 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_SPLITTER=yes
1718 DEFAULT_wxUSE_STATBMP=yes
1719 DEFAULT_wxUSE_STATBOX=yes
1720 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1721 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1722 DEFAULT_wxUSE_STATUSBAR=yes
1723 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1724 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1725 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1726 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1729 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1730 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1731 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1732
1733 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1734 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1735 DEFAULT_wxUSE_WCSRTOMBS=no
1736
edae8572 1737 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1738 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1739 DEFAULT_wxUSE_GIF=yes
1740 DEFAULT_wxUSE_PCX=yes
cc0e8480 1741 DEFAULT_wxUSE_IFF=no
10f2d63a 1742 DEFAULT_wxUSE_PNM=yes
0046ff7c 1743 DEFAULT_wxUSE_XPM=yes
658974ae 1744 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1745fi
1746
8284b0c5
MB
1747
1748
10f2d63a 1749for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1750 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1752 has_toolkit_in_cache=1
1753 eval "DEFAULT_$LINE"
1754 eval "CACHE_$toolkit=1"
1755 fi
1756done
1757
8284b0c5
MB
1758
1759
5005acfe
VZ
1760 enablestring=
1761 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
dfa2a1d9 1762echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1763 no_cache=0
1764 # Check whether --enable-gui or --disable-gui was given.
1765if test "${enable_gui+set}" = set; then
1766 enableval="$enable_gui"
a0b9e27f 1767
10f2d63a
VZ
1768 if test "$enableval" = yes; then
1769 ac_cv_use_gui='wxUSE_GUI=yes'
1770 else
1771 ac_cv_use_gui='wxUSE_GUI=no'
1772 fi
a0b9e27f 1773
10f2d63a 1774else
a0b9e27f 1775
10f2d63a
VZ
1776 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1777 if test "x$LINE" != x ; then
1778 eval "DEFAULT_$LINE"
1779 else
1780 no_cache=1
1781 fi
1782
1783 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1784
1785fi
10f2d63a
VZ
1786
1787
1788 eval "$ac_cv_use_gui"
1789 if test "$no_cache" != 1; then
1790 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1791 fi
1792
1793 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1794 echo "$ac_t""yes" 1>&6
10f2d63a 1795 else
a0b9e27f 1796 echo "$ac_t""no" 1>&6
10f2d63a 1797 fi
a0b9e27f 1798
10f2d63a 1799
b12915c1 1800if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1801
8284b0c5 1802
5005acfe
VZ
1803 enablestring=
1804 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
dfa2a1d9 1805echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1806 no_cache=0
1807 # Check whether --enable-universal or --disable-universal was given.
1808if test "${enable_universal+set}" = set; then
1809 enableval="$enable_universal"
a0b9e27f 1810
1e6feb95
VZ
1811 if test "$enableval" = yes; then
1812 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1813 else
1814 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1815 fi
a0b9e27f 1816
1e6feb95 1817else
a0b9e27f 1818
1e6feb95
VZ
1819 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1827
1828fi
1e6feb95
VZ
1829
1830
1831 eval "$ac_cv_use_universal"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1837 echo "$ac_t""yes" 1>&6
1e6feb95 1838 else
a0b9e27f 1839 echo "$ac_t""no" 1>&6
1e6feb95 1840 fi
a0b9e27f 1841
10f2d63a
VZ
1842# Check whether --with-gtk or --without-gtk was given.
1843if test "${with_gtk+set}" = set; then
1844 withval="$with_gtk"
1845 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1846fi
10f2d63a
VZ
1847
1848# Check whether --with-motif or --without-motif was given.
1849if test "${with_motif+set}" = set; then
1850 withval="$with_motif"
1851 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1852fi
10f2d63a 1853
b4085ce6
GD
1854# Check whether --with-mac or --without-mac was given.
1855if test "${with_mac+set}" = set; then
1856 withval="$with_mac"
1857 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1858fi
b4085ce6 1859
ac0c4cc3
DE
1860# Check whether --with-cocoa or --without-cocoa was given.
1861if test "${with_cocoa+set}" = set; then
1862 withval="$with_cocoa"
1863 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1864fi
1865
10f2d63a
VZ
1866# Check whether --with-wine or --without-wine was given.
1867if test "${with_wine+set}" = set; then
1868 withval="$with_wine"
89e6bf6d 1869 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1870fi
10f2d63a 1871
77e13408
RL
1872# Check whether --with-msw or --without-msw was given.
1873if test "${with_msw+set}" = set; then
1874 withval="$with_msw"
b4efce5e 1875 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1876fi
10f2d63a 1877
e07802fc
VZ
1878# Check whether --with-pm or --without-pm was given.
1879if test "${with_pm+set}" = set; then
1880 withval="$with_pm"
1881 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1882fi
698dcdb6 1883
1e6feb95
VZ
1884# Check whether --with-mgl or --without-mgl was given.
1885if test "${with_mgl+set}" = set; then
1886 withval="$with_mgl"
6c657b52 1887 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1888fi
1e6feb95 1889
1725144d
RR
1890# Check whether --with-microwin or --without-microwin was given.
1891if test "${with_microwin+set}" = set; then
1892 withval="$with_microwin"
1893 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1894fi
1725144d 1895
f79bd02d
JS
1896# Check whether --with-x11 or --without-x11 was given.
1897if test "${with_x11+set}" = set; then
1898 withval="$with_x11"
3c011993 1899 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1900fi
10f2d63a 1901
a0b9e27f 1902
5005acfe
VZ
1903 enablestring=
1904 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
dfa2a1d9 1905echo "configure:1906: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1906 no_cache=0
ba875e66
VZ
1907 # Check whether --enable-nanox or --disable-nanox was given.
1908if test "${enable_nanox+set}" = set; then
1909 enableval="$enable_nanox"
a0b9e27f 1910
d8356fa3 1911 if test "$enableval" = yes; then
ba875e66 1912 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1913 else
ba875e66 1914 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1915 fi
a0b9e27f 1916
d8356fa3 1917else
a0b9e27f 1918
d8356fa3
VZ
1919 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1920 if test "x$LINE" != x ; then
1921 eval "DEFAULT_$LINE"
1922 else
1923 no_cache=1
1924 fi
1925
ba875e66 1926 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1927
1928fi
d8356fa3
VZ
1929
1930
ba875e66 1931 eval "$ac_cv_use_nanox"
d8356fa3 1932 if test "$no_cache" != 1; then
ba875e66 1933 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1934 fi
1935
1936 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1937 echo "$ac_t""yes" 1>&6
d8356fa3 1938 else
a0b9e27f 1939 echo "$ac_t""no" 1>&6
d8356fa3 1940 fi
a0b9e27f 1941
8284b0c5 1942
d74f4b5a 1943
5005acfe
VZ
1944 enablestring=
1945 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
dfa2a1d9 1946echo "configure:1947: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1947 no_cache=0
1948 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1949if test "${enable_gtk2+set}" = set; then
1950 enableval="$enable_gtk2"
a0b9e27f 1951
d74f4b5a
VZ
1952 if test "$enableval" = yes; then
1953 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1954 else
1955 ac_cv_use_gtk2='wxUSE_GTK2=no'
1956 fi
a0b9e27f 1957
10f2d63a 1958else
a0b9e27f 1959
d74f4b5a
VZ
1960 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1961 if test "x$LINE" != x ; then
1962 eval "DEFAULT_$LINE"
1963 else
1964 no_cache=1
1965 fi
1966
1967 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1968
1969fi
52127426 1970
328a083c 1971
d74f4b5a
VZ
1972 eval "$ac_cv_use_gtk2"
1973 if test "$no_cache" != 1; then
1974 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1975 fi
1976
1977 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1978 echo "$ac_t""yes" 1>&6
d74f4b5a 1979 else
a0b9e27f 1980 echo "$ac_t""no" 1>&6
d74f4b5a 1981 fi
a0b9e27f 1982
d74f4b5a 1983
5c6fa7d2 1984
a0b9e27f 1985 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
dfa2a1d9 1986echo "configure:1987: checking for --with-libpng" >&5
8284b0c5 1987 no_cache=0
a0b9e27f 1988 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1989if test "${with_libpng+set}" = set; then
1990 withval="$with_libpng"
a0b9e27f 1991
10f2d63a 1992 if test "$withval" = yes; then
b12915c1 1993 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1994 elif test "$withval" = no; then
b12915c1 1995 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1996 elif test "$withval" = sys; then
1997 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1998 elif test "$withval" = builtin; then
1999 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2000 else
a0b9e27f 2001 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2002 fi
a0b9e27f 2003
10f2d63a 2004else
a0b9e27f 2005
b12915c1 2006 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2007 if test "x$LINE" != x ; then
2008 eval "DEFAULT_$LINE"
2009 else
2010 no_cache=1
2011 fi
2012
b12915c1 2013 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2014
2015fi
10f2d63a
VZ
2016
2017
b12915c1 2018 eval "$ac_cv_use_libpng"
10f2d63a 2019 if test "$no_cache" != 1; then
b12915c1 2020 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2021 fi
2022
b12915c1 2023 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2024 echo "$ac_t""yes" 1>&6
422107f9 2025 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2026 echo "$ac_t""no" 1>&6
422107f9 2027 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2028 echo "$ac_t""system version" 1>&6
4f14bcd8 2029 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2030 echo "$ac_t""builtin version" 1>&6
422107f9 2031 else
a0b9e27f 2032 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2033 fi
a0b9e27f 2034
10f2d63a 2035
a0b9e27f 2036 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
dfa2a1d9 2037echo "configure:2038: checking for --with-libjpeg" >&5
10f2d63a 2038 no_cache=0
a0b9e27f 2039 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2040if test "${with_libjpeg+set}" = set; then
2041 withval="$with_libjpeg"
a0b9e27f 2042
10f2d63a 2043 if test "$withval" = yes; then
b12915c1 2044 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2045 elif test "$withval" = no; then
b12915c1 2046 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2047 elif test "$withval" = sys; then
2048 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2049 elif test "$withval" = builtin; then
2050 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2051 else
a0b9e27f 2052 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2053 fi
a0b9e27f 2054
10f2d63a 2055else
a0b9e27f 2056
b12915c1 2057 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2058 if test "x$LINE" != x ; then
2059 eval "DEFAULT_$LINE"
2060 else
2061 no_cache=1
2062 fi
2063
b12915c1 2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2065
2066fi
10f2d63a
VZ
2067
2068
b12915c1 2069 eval "$ac_cv_use_libjpeg"
10f2d63a 2070 if test "$no_cache" != 1; then
b12915c1 2071 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2072 fi
2073
b12915c1 2074 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2075 echo "$ac_t""yes" 1>&6
422107f9 2076 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2077 echo "$ac_t""no" 1>&6
422107f9 2078 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2079 echo "$ac_t""system version" 1>&6
4f14bcd8 2080 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2081 echo "$ac_t""builtin version" 1>&6
422107f9 2082 else
a0b9e27f 2083 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2084 fi
a0b9e27f 2085
10f2d63a 2086
a0b9e27f 2087 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
dfa2a1d9 2088echo "configure:2089: checking for --with-libtiff" >&5
10f2d63a 2089 no_cache=0
a0b9e27f 2090 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2091if test "${with_libtiff+set}" = set; then
2092 withval="$with_libtiff"
a0b9e27f 2093
10f2d63a 2094 if test "$withval" = yes; then
b12915c1 2095 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2096 elif test "$withval" = no; then
b12915c1 2097 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2098 elif test "$withval" = sys; then
2099 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2100 elif test "$withval" = builtin; then
2101 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2102 else
a0b9e27f 2103 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2104 fi
a0b9e27f 2105
10f2d63a 2106else
a0b9e27f 2107
b12915c1 2108 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
b12915c1 2115 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2116
2117fi
10f2d63a
VZ
2118
2119
b12915c1 2120 eval "$ac_cv_use_libtiff"
10f2d63a 2121 if test "$no_cache" != 1; then
b12915c1 2122 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2123 fi
2124
b12915c1 2125 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2126 echo "$ac_t""yes" 1>&6
0dcf9893 2127 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2128 echo "$ac_t""no" 1>&6
0dcf9893 2129 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2130 echo "$ac_t""system version" 1>&6
4f14bcd8 2131 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2132 echo "$ac_t""builtin version" 1>&6
0dcf9893 2133 else
a0b9e27f 2134 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2135 fi
a0b9e27f 2136
10f2d63a 2137
a0b9e27f 2138 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
dfa2a1d9 2139echo "configure:2140: checking for --with-opengl" >&5
10f2d63a 2140 no_cache=0
a0b9e27f 2141 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2142if test "${with_opengl+set}" = set; then
2143 withval="$with_opengl"
a0b9e27f 2144
10f2d63a 2145 if test "$withval" = yes; then
b12915c1 2146 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2147 else
b12915c1 2148 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2149 fi
a0b9e27f 2150
10f2d63a 2151else
a0b9e27f 2152
b12915c1 2153 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2154 if test "x$LINE" != x ; then
2155 eval "DEFAULT_$LINE"
2156 else
2157 no_cache=1
2158 fi
2159
b12915c1 2160 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2161
2162fi
10f2d63a
VZ
2163
2164
b12915c1 2165 eval "$ac_cv_use_opengl"
10f2d63a 2166 if test "$no_cache" != 1; then
b12915c1 2167 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2168 fi
2169
b12915c1 2170 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2171 echo "$ac_t""yes" 1>&6
10f2d63a 2172 else
a0b9e27f 2173 echo "$ac_t""no" 1>&6
10f2d63a 2174 fi
a0b9e27f 2175
10f2d63a 2176
b12915c1
VZ
2177fi
2178
5c6fa7d2 2179
a0b9e27f 2180 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
dfa2a1d9 2181echo "configure:2182: checking for --with-dmalloc" >&5
8284b0c5 2182 no_cache=0
a0b9e27f 2183 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2184if test "${with_dmalloc+set}" = set; then
2185 withval="$with_dmalloc"
a0b9e27f 2186
c7a2bf27 2187 if test "$withval" = yes; then
b12915c1 2188 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2189 else
b12915c1 2190 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2191 fi
a0b9e27f 2192
c7a2bf27 2193else
a0b9e27f 2194
b12915c1 2195 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2196 if test "x$LINE" != x ; then
2197 eval "DEFAULT_$LINE"
2198 else
2199 no_cache=1
2200 fi
2201
b12915c1 2202 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2203
2204fi
c7a2bf27
RR
2205
2206
b12915c1 2207 eval "$ac_cv_use_dmalloc"
c7a2bf27 2208 if test "$no_cache" != 1; then
b12915c1 2209 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2210 fi
2211
b12915c1 2212 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2213 echo "$ac_t""yes" 1>&6
c7a2bf27 2214 else
a0b9e27f 2215 echo "$ac_t""no" 1>&6
c7a2bf27 2216 fi
a0b9e27f 2217
c7a2bf27 2218
a0b9e27f 2219 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
dfa2a1d9 2220echo "configure:2221: checking for --with-regex" >&5
3e44f09d 2221 no_cache=0
a0b9e27f 2222 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2223if test "${with_regex+set}" = set; then
2224 withval="$with_regex"
a0b9e27f 2225
3e44f09d
VZ
2226 if test "$withval" = yes; then
2227 ac_cv_use_regex='wxUSE_REGEX=yes'
2228 elif test "$withval" = no; then
2229 ac_cv_use_regex='wxUSE_REGEX=no'
2230 elif test "$withval" = sys; then
2231 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2232 elif test "$withval" = builtin; then
2233 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2234 else
a0b9e27f 2235 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2236 fi
a0b9e27f 2237
3e44f09d 2238else
a0b9e27f 2239
3e44f09d
VZ
2240 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2241 if test "x$LINE" != x ; then
2242 eval "DEFAULT_$LINE"
2243 else
2244 no_cache=1
2245 fi
2246
2247 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2248
2249fi
3e44f09d
VZ
2250
2251
2252 eval "$ac_cv_use_regex"
2253 if test "$no_cache" != 1; then
2254 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2255 fi
2256
2257 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2258 echo "$ac_t""yes" 1>&6
3e44f09d 2259 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2260 echo "$ac_t""no" 1>&6
3e44f09d 2261 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2262 echo "$ac_t""system version" 1>&6
4f14bcd8 2263 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2264 echo "$ac_t""builtin version" 1>&6
3e44f09d 2265 else
a0b9e27f 2266 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2267 fi
a0b9e27f 2268
3e44f09d 2269
a0b9e27f 2270 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
dfa2a1d9 2271echo "configure:2272: checking for --with-zlib" >&5
10f2d63a 2272 no_cache=0
a0b9e27f 2273 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2274if test "${with_zlib+set}" = set; then
2275 withval="$with_zlib"
a0b9e27f 2276
10f2d63a 2277 if test "$withval" = yes; then
b12915c1 2278 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2279 elif test "$withval" = no; then
b12915c1 2280 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2281 elif test "$withval" = sys; then
2282 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2283 elif test "$withval" = builtin; then
2284 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2285 else
a0b9e27f 2286 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2287 fi
a0b9e27f 2288
10f2d63a 2289else
a0b9e27f 2290
b12915c1 2291 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2292 if test "x$LINE" != x ; then
2293 eval "DEFAULT_$LINE"
2294 else
2295 no_cache=1
2296 fi
2297
b12915c1 2298 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2299
2300fi
10f2d63a
VZ
2301
2302
b12915c1 2303 eval "$ac_cv_use_zlib"
10f2d63a 2304 if test "$no_cache" != 1; then
b12915c1 2305 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2306 fi
2307
b12915c1 2308 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2309 echo "$ac_t""yes" 1>&6
422107f9 2310 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2311 echo "$ac_t""no" 1>&6
422107f9 2312 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2313 echo "$ac_t""system version" 1>&6
4f14bcd8 2314 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2315 echo "$ac_t""builtin version" 1>&6
422107f9 2316 else
a0b9e27f 2317 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2318 fi
a0b9e27f 2319
10f2d63a 2320
a0b9e27f 2321 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
dfa2a1d9 2322echo "configure:2323: checking for --with-odbc" >&5
10f2d63a 2323 no_cache=0
a0b9e27f 2324 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2325if test "${with_odbc+set}" = set; then
2326 withval="$with_odbc"
a0b9e27f 2327
10f2d63a
VZ
2328 if test "$withval" = yes; then
2329 ac_cv_use_odbc='wxUSE_ODBC=yes'
2330 else
2331 ac_cv_use_odbc='wxUSE_ODBC=no'
2332 fi
a0b9e27f 2333
10f2d63a 2334else
a0b9e27f 2335
10f2d63a
VZ
2336 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
2343 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2344
2345fi
10f2d63a
VZ
2346
2347
2348 eval "$ac_cv_use_odbc"
2349 if test "$no_cache" != 1; then
2350 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2351 fi
2352
2353 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2354 echo "$ac_t""yes" 1>&6
10f2d63a 2355 else
a0b9e27f 2356 echo "$ac_t""no" 1>&6
10f2d63a 2357 fi
a0b9e27f 2358
52127426 2359
8284b0c5
MB
2360
2361
5005acfe
VZ
2362 enablestring=
2363 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
dfa2a1d9 2364echo "configure:2365: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2365 no_cache=0
2366 # Check whether --enable-shared or --disable-shared was given.
2367if test "${enable_shared+set}" = set; then
2368 enableval="$enable_shared"
a0b9e27f 2369
10f2d63a
VZ
2370 if test "$enableval" = yes; then
2371 ac_cv_use_shared='wxUSE_SHARED=yes'
2372 else
2373 ac_cv_use_shared='wxUSE_SHARED=no'
2374 fi
a0b9e27f 2375
10f2d63a 2376else
a0b9e27f 2377
10f2d63a
VZ
2378 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2386
2387fi
10f2d63a
VZ
2388
2389
2390 eval "$ac_cv_use_shared"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2396 echo "$ac_t""yes" 1>&6
10f2d63a 2397 else
a0b9e27f 2398 echo "$ac_t""no" 1>&6
10f2d63a 2399 fi
a0b9e27f 2400
10f2d63a 2401
5005acfe
VZ
2402 enablestring=
2403 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
dfa2a1d9 2404echo "configure:2405: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2405 no_cache=0
3a922bb4
RL
2406 # Check whether --enable-soname or --disable-soname was given.
2407if test "${enable_soname+set}" = set; then
2408 enableval="$enable_soname"
a0b9e27f 2409
00cf1208 2410 if test "$enableval" = yes; then
3a922bb4 2411 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2412 else
3a922bb4 2413 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2414 fi
a0b9e27f 2415
00cf1208 2416else
a0b9e27f 2417
3a922bb4 2418 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
3a922bb4 2425 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2426
2427fi
00cf1208
RR
2428
2429
3a922bb4 2430 eval "$ac_cv_use_soname"
00cf1208 2431 if test "$no_cache" != 1; then
3a922bb4 2432 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2433 fi
2434
3a922bb4 2435 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2436 echo "$ac_t""yes" 1>&6
00cf1208 2437 else
a0b9e27f 2438 echo "$ac_t""no" 1>&6
00cf1208 2439 fi
a0b9e27f 2440
00cf1208 2441
5005acfe
VZ
2442 enablestring=
2443 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
dfa2a1d9 2444echo "configure:2445: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2445 no_cache=0
2446 # Check whether --enable-optimise or --disable-optimise was given.
2447if test "${enable_optimise+set}" = set; then
2448 enableval="$enable_optimise"
a0b9e27f 2449
10f2d63a
VZ
2450 if test "$enableval" = yes; then
2451 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2452 else
2453 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2454 fi
a0b9e27f 2455
10f2d63a 2456else
a0b9e27f 2457
10f2d63a
VZ
2458 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2459 if test "x$LINE" != x ; then
2460 eval "DEFAULT_$LINE"
2461 else
2462 no_cache=1
2463 fi
2464
2465 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2466
2467fi
10f2d63a
VZ
2468
2469
2470 eval "$ac_cv_use_optimise"
2471 if test "$no_cache" != 1; then
2472 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2473 fi
2474
2475 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2476 echo "$ac_t""yes" 1>&6
10f2d63a 2477 else
a0b9e27f 2478 echo "$ac_t""no" 1>&6
10f2d63a 2479 fi
a0b9e27f 2480
10f2d63a 2481
5005acfe
VZ
2482 enablestring=
2483 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
dfa2a1d9 2484echo "configure:2485: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2485 no_cache=0
2486 # Check whether --enable-debug or --disable-debug was given.
2487if test "${enable_debug+set}" = set; then
2488 enableval="$enable_debug"
a0b9e27f 2489
10f2d63a
VZ
2490 if test "$enableval" = yes; then
2491 ac_cv_use_debug='wxUSE_DEBUG=yes'
2492 else
2493 ac_cv_use_debug='wxUSE_DEBUG=no'
2494 fi
a0b9e27f 2495
10f2d63a 2496else
a0b9e27f 2497
10f2d63a
VZ
2498 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2506
2507fi
10f2d63a
VZ
2508
2509
2510 eval "$ac_cv_use_debug"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2516 echo "$ac_t""yes" 1>&6
10f2d63a 2517 else
a0b9e27f 2518 echo "$ac_t""no" 1>&6
10f2d63a 2519 fi
a0b9e27f 2520
52127426 2521
8284b0c5 2522
5005acfe
VZ
2523 enablestring=
2524 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
dfa2a1d9 2525echo "configure:2526: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2526 no_cache=0
2527 # Check whether --enable-precomp or --disable-precomp was given.
2528if test "${enable_precomp+set}" = set; then
2529 enableval="$enable_precomp"
a0b9e27f 2530
683dccda
GD
2531 if test "$enableval" = yes; then
2532 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2533 else
2534 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2535 fi
a0b9e27f 2536
683dccda 2537else
a0b9e27f 2538
683dccda
GD
2539 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2547
2548fi
683dccda
GD
2549
2550
2551 eval "$ac_cv_use_precomp"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2557 echo "$ac_t""yes" 1>&6
683dccda 2558 else
a0b9e27f 2559 echo "$ac_t""no" 1>&6
683dccda 2560 fi
a0b9e27f 2561
683dccda 2562
10f2d63a
VZ
2563if test "$wxUSE_DEBUG" = "yes"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=yes
2565 DEFAULT_wxUSE_DEBUG_INFO=yes
2566elif test "$wxUSE_DEBUG" = "no"; then
2567 DEFAULT_wxUSE_DEBUG_FLAG=no
2568 DEFAULT_wxUSE_DEBUG_INFO=no
2569fi
2570
8284b0c5 2571
5005acfe
VZ
2572 enablestring=
2573 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
dfa2a1d9 2574echo "configure:2575: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2575 no_cache=0
2576 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2577if test "${enable_debug_flag+set}" = set; then
2578 enableval="$enable_debug_flag"
a0b9e27f 2579
10f2d63a
VZ
2580 if test "$enableval" = yes; then
2581 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2582 else
2583 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2584 fi
a0b9e27f 2585
10f2d63a 2586else
a0b9e27f 2587
10f2d63a
VZ
2588 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2596
2597fi
10f2d63a
VZ
2598
2599
2600 eval "$ac_cv_use_debug_flag"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2606 echo "$ac_t""yes" 1>&6
10f2d63a 2607 else
a0b9e27f 2608 echo "$ac_t""no" 1>&6
10f2d63a 2609 fi
a0b9e27f 2610
10f2d63a 2611
5005acfe
VZ
2612 enablestring=
2613 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
dfa2a1d9 2614echo "configure:2615: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2615 no_cache=0
2616 # Check whether --enable-debug_info or --disable-debug_info was given.
2617if test "${enable_debug_info+set}" = set; then
2618 enableval="$enable_debug_info"
a0b9e27f 2619
10f2d63a
VZ
2620 if test "$enableval" = yes; then
2621 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2622 else
2623 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2624 fi
a0b9e27f 2625
10f2d63a 2626else
a0b9e27f 2627
10f2d63a
VZ
2628 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2629 if test "x$LINE" != x ; then
2630 eval "DEFAULT_$LINE"
2631 else
2632 no_cache=1
2633 fi
2634
2635 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2636
2637fi
10f2d63a
VZ
2638
2639
2640 eval "$ac_cv_use_debug_info"
2641 if test "$no_cache" != 1; then
2642 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2643 fi
2644
2645 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2646 echo "$ac_t""yes" 1>&6
10f2d63a 2647 else
a0b9e27f 2648 echo "$ac_t""no" 1>&6
10f2d63a 2649 fi
a0b9e27f 2650
10f2d63a 2651
5005acfe
VZ
2652 enablestring=
2653 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
dfa2a1d9 2654echo "configure:2655: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2655 no_cache=0
2656 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2657if test "${enable_debug_gdb+set}" = set; then
2658 enableval="$enable_debug_gdb"
a0b9e27f 2659
10f2d63a
VZ
2660 if test "$enableval" = yes; then
2661 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2662 else
2663 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2664 fi
a0b9e27f 2665
10f2d63a 2666else
a0b9e27f 2667
10f2d63a
VZ
2668 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2676
2677fi
10f2d63a
VZ
2678
2679
2680 eval "$ac_cv_use_debug_gdb"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2686 echo "$ac_t""yes" 1>&6
10f2d63a 2687 else
a0b9e27f 2688 echo "$ac_t""no" 1>&6
10f2d63a 2689 fi
a0b9e27f 2690
10f2d63a 2691
5005acfe
VZ
2692 enablestring=
2693 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
dfa2a1d9 2694echo "configure:2695: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2695 no_cache=0
2696 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2697if test "${enable_debug_cntxt+set}" = set; then
2698 enableval="$enable_debug_cntxt"
a0b9e27f 2699
10f2d63a
VZ
2700 if test "$enableval" = yes; then
2701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2702 else
2703 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2704 fi
a0b9e27f 2705
10f2d63a 2706else
a0b9e27f 2707
10f2d63a
VZ
2708 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2716
2717fi
10f2d63a
VZ
2718
2719
2720 eval "$ac_cv_use_debug_cntxt"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2726 echo "$ac_t""yes" 1>&6
10f2d63a 2727 else
a0b9e27f 2728 echo "$ac_t""no" 1>&6
10f2d63a 2729 fi
a0b9e27f 2730
10f2d63a 2731
5005acfe
VZ
2732 enablestring=
2733 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
dfa2a1d9 2734echo "configure:2735: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2735 no_cache=0
2736 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2737if test "${enable_mem_tracing+set}" = set; then
2738 enableval="$enable_mem_tracing"
a0b9e27f 2739
10f2d63a
VZ
2740 if test "$enableval" = yes; then
2741 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2742 else
2743 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2744 fi
a0b9e27f 2745
10f2d63a 2746else
a0b9e27f 2747
10f2d63a
VZ
2748 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2756
2757fi
10f2d63a
VZ
2758
2759
2760 eval "$ac_cv_use_mem_tracing"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2766 echo "$ac_t""yes" 1>&6
10f2d63a 2767 else
a0b9e27f 2768 echo "$ac_t""no" 1>&6
10f2d63a 2769 fi
a0b9e27f 2770
10f2d63a 2771
5005acfe
VZ
2772 enablestring=
2773 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
dfa2a1d9 2774echo "configure:2775: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2775 no_cache=0
2776 # Check whether --enable-profile or --disable-profile was given.
2777if test "${enable_profile+set}" = set; then
2778 enableval="$enable_profile"
a0b9e27f 2779
10f2d63a
VZ
2780 if test "$enableval" = yes; then
2781 ac_cv_use_profile='wxUSE_PROFILE=yes'
2782 else
2783 ac_cv_use_profile='wxUSE_PROFILE=no'
2784 fi
a0b9e27f 2785
10f2d63a 2786else
a0b9e27f 2787
10f2d63a
VZ
2788 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2796
2797fi
10f2d63a
VZ
2798
2799
2800 eval "$ac_cv_use_profile"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2806 echo "$ac_t""yes" 1>&6
10f2d63a 2807 else
a0b9e27f 2808 echo "$ac_t""no" 1>&6
10f2d63a 2809 fi
a0b9e27f 2810
10f2d63a 2811
5005acfe
VZ
2812 enablestring=
2813 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
dfa2a1d9 2814echo "configure:2815: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2815 no_cache=0
2816 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2817if test "${enable_no_rtti+set}" = set; then
2818 enableval="$enable_no_rtti"
a0b9e27f 2819
10f2d63a
VZ
2820 if test "$enableval" = yes; then
2821 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2822 else
2823 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2824 fi
a0b9e27f 2825
10f2d63a 2826else
a0b9e27f 2827
10f2d63a
VZ
2828 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2836
2837fi
10f2d63a
VZ
2838
2839
2840 eval "$ac_cv_use_no_rtti"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2846 echo "$ac_t""yes" 1>&6
10f2d63a 2847 else
a0b9e27f 2848 echo "$ac_t""no" 1>&6
10f2d63a 2849 fi
a0b9e27f 2850
10f2d63a 2851
5005acfe
VZ
2852 enablestring=
2853 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
dfa2a1d9 2854echo "configure:2855: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2855 no_cache=0
2856 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2857if test "${enable_no_exceptions+set}" = set; then
2858 enableval="$enable_no_exceptions"
a0b9e27f 2859
10f2d63a
VZ
2860 if test "$enableval" = yes; then
2861 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2862 else
2863 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2864 fi
a0b9e27f 2865
10f2d63a 2866else
a0b9e27f 2867
10f2d63a
VZ
2868 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2876
2877fi
10f2d63a
VZ
2878
2879
2880 eval "$ac_cv_use_no_exceptions"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2886 echo "$ac_t""yes" 1>&6
10f2d63a 2887 else
a0b9e27f 2888 echo "$ac_t""no" 1>&6
10f2d63a 2889 fi
a0b9e27f 2890
10f2d63a 2891
5005acfe
VZ
2892 enablestring=
2893 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
dfa2a1d9 2894echo "configure:2895: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2895 no_cache=0
2896 # Check whether --enable-permissive or --disable-permissive was given.
2897if test "${enable_permissive+set}" = set; then
2898 enableval="$enable_permissive"
a0b9e27f 2899
10f2d63a
VZ
2900 if test "$enableval" = yes; then
2901 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2902 else
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2904 fi
a0b9e27f 2905
10f2d63a 2906else
a0b9e27f 2907
10f2d63a
VZ
2908 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2916
2917fi
10f2d63a
VZ
2918
2919
2920 eval "$ac_cv_use_permissive"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2926 echo "$ac_t""yes" 1>&6
10f2d63a 2927 else
a0b9e27f 2928 echo "$ac_t""no" 1>&6
10f2d63a 2929 fi
a0b9e27f 2930
10f2d63a 2931
5005acfe
VZ
2932 enablestring=
2933 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
dfa2a1d9 2934echo "configure:2935: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2935 no_cache=0
2936 # Check whether --enable-no_deps or --disable-no_deps was given.
2937if test "${enable_no_deps+set}" = set; then
2938 enableval="$enable_no_deps"
a0b9e27f 2939
10f2d63a
VZ
2940 if test "$enableval" = yes; then
2941 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2942 else
2943 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2944 fi
a0b9e27f 2945
10f2d63a 2946else
a0b9e27f 2947
10f2d63a
VZ
2948 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2956
2957fi
10f2d63a
VZ
2958
2959
2960 eval "$ac_cv_use_no_deps"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2966 echo "$ac_t""yes" 1>&6
10f2d63a 2967 else
a0b9e27f 2968 echo "$ac_t""no" 1>&6
10f2d63a 2969 fi
a0b9e27f 2970
52127426 2971
8284b0c5 2972
5005acfe
VZ
2973 enablestring=
2974 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
dfa2a1d9 2975echo "configure:2976: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2976 no_cache=0
2977 # Check whether --enable-compat20 or --disable-compat20 was given.
2978if test "${enable_compat20+set}" = set; then
2979 enableval="$enable_compat20"
a0b9e27f 2980
54276ccf
VZ
2981 if test "$enableval" = yes; then
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2983 else
2984 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2985 fi
a0b9e27f 2986
54276ccf 2987else
a0b9e27f 2988
54276ccf
VZ
2989 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2997
2998fi
54276ccf
VZ
2999
3000
3001 eval "$ac_cv_use_compat20"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3007 echo "$ac_t""yes" 1>&6
54276ccf 3008 else
a0b9e27f 3009 echo "$ac_t""no" 1>&6
54276ccf 3010 fi
a0b9e27f 3011
54276ccf 3012
65d8ef1e 3013 enablestring=
5005acfe 3014 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
dfa2a1d9 3015echo "configure:3016: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3016 no_cache=0
3017 # Check whether --enable-compat22 or --disable-compat22 was given.
3018if test "${enable_compat22+set}" = set; then
3019 enableval="$enable_compat22"
a0b9e27f 3020
54276ccf
VZ
3021 if test "$enableval" = yes; then
3022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3023 else
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3025 fi
a0b9e27f 3026
54276ccf 3027else
a0b9e27f 3028
54276ccf
VZ
3029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3037
3038fi
54276ccf
VZ
3039
3040
3041 eval "$ac_cv_use_compat22"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3047 echo "$ac_t""yes" 1>&6
54276ccf 3048 else
a0b9e27f 3049 echo "$ac_t""no" 1>&6
54276ccf 3050 fi
a0b9e27f 3051
54276ccf 3052
65d8ef1e
VS
3053 enablestring=disable
3054 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
dfa2a1d9 3055echo "configure:3056: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3056 no_cache=0
3057 # Check whether --enable-compat24 or --disable-compat24 was given.
3058if test "${enable_compat24+set}" = set; then
3059 enableval="$enable_compat24"
3060
3061 if test "$enableval" = yes; then
3062 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3063 else
3064 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3065 fi
3066
3067else
3068
3069 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
3076 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3077
3078fi
3079
3080
3081 eval "$ac_cv_use_compat24"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3087 echo "$ac_t""yes" 1>&6
3088 else
3089 echo "$ac_t""no" 1>&6
3090 fi
3091
3092
3bd8fb5f
RD
3093# Check whether --enable-rpath or --disable-rpath was given.
3094if test "${enable_rpath+set}" = set; then
3095 enableval="$enable_rpath"
3096 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3097fi
3098
3bd8fb5f
RD
3099
3100if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3101 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3102fi
3103
8284b0c5
MB
3104
3105
3106
5005acfe
VZ
3107 enablestring=
3108 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
dfa2a1d9 3109echo "configure:3110: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3110 no_cache=0
3111 # Check whether --enable-intl or --disable-intl was given.
3112if test "${enable_intl+set}" = set; then
3113 enableval="$enable_intl"
a0b9e27f 3114
10f2d63a
VZ
3115 if test "$enableval" = yes; then
3116 ac_cv_use_intl='wxUSE_INTL=yes'
3117 else
3118 ac_cv_use_intl='wxUSE_INTL=no'
3119 fi
a0b9e27f 3120
10f2d63a 3121else
a0b9e27f 3122
10f2d63a
VZ
3123 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3124 if test "x$LINE" != x ; then
3125 eval "DEFAULT_$LINE"
3126 else
3127 no_cache=1
3128 fi
3129
3130 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3131
3132fi
10f2d63a
VZ
3133
3134
3135 eval "$ac_cv_use_intl"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3141 echo "$ac_t""yes" 1>&6
10f2d63a 3142 else
a0b9e27f 3143 echo "$ac_t""no" 1>&6
10f2d63a 3144 fi
a0b9e27f 3145
10f2d63a 3146
5005acfe
VZ
3147 enablestring=
3148 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
dfa2a1d9 3149echo "configure:3150: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3150 no_cache=0
3151 # Check whether --enable-config or --disable-config was given.
3152if test "${enable_config+set}" = set; then
3153 enableval="$enable_config"
a0b9e27f 3154
10f2d63a
VZ
3155 if test "$enableval" = yes; then
3156 ac_cv_use_config='wxUSE_CONFIG=yes'
3157 else
3158 ac_cv_use_config='wxUSE_CONFIG=no'
3159 fi
a0b9e27f 3160
10f2d63a 3161else
a0b9e27f 3162
10f2d63a
VZ
3163 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3171
3172fi
10f2d63a
VZ
3173
3174
3175 eval "$ac_cv_use_config"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3181 echo "$ac_t""yes" 1>&6
10f2d63a 3182 else
a0b9e27f 3183 echo "$ac_t""no" 1>&6
10f2d63a 3184 fi
a0b9e27f 3185
52127426 3186
8284b0c5 3187
5005acfe
VZ
3188 enablestring=
3189 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
dfa2a1d9 3190echo "configure:3191: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3191 no_cache=0
3192 # Check whether --enable-protocols or --disable-protocols was given.
3193if test "${enable_protocols+set}" = set; then
3194 enableval="$enable_protocols"
a0b9e27f 3195
a1622950
VZ
3196 if test "$enableval" = yes; then
3197 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3198 else
3199 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3200 fi
a0b9e27f 3201
a1622950 3202else
a0b9e27f 3203
a1622950
VZ
3204 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3212
3213fi
a1622950
VZ
3214
3215
3216 eval "$ac_cv_use_protocols"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3222 echo "$ac_t""yes" 1>&6
a1622950 3223 else
a0b9e27f 3224 echo "$ac_t""no" 1>&6
a1622950 3225 fi
a0b9e27f 3226
a1622950 3227
5005acfe
VZ
3228 enablestring=
3229 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
dfa2a1d9 3230echo "configure:3231: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3231 no_cache=0
3232 # Check whether --enable-ftp or --disable-ftp was given.
3233if test "${enable_ftp+set}" = set; then
3234 enableval="$enable_ftp"
a0b9e27f 3235
a1622950
VZ
3236 if test "$enableval" = yes; then
3237 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3238 else
3239 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3240 fi
a0b9e27f 3241
a1622950 3242else
a0b9e27f 3243
a1622950
VZ
3244 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3252
3253fi
a1622950
VZ
3254
3255
3256 eval "$ac_cv_use_ftp"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3262 echo "$ac_t""yes" 1>&6
a1622950 3263 else
a0b9e27f 3264 echo "$ac_t""no" 1>&6
a1622950 3265 fi
a0b9e27f 3266
a1622950 3267
5005acfe
VZ
3268 enablestring=
3269 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
dfa2a1d9 3270echo "configure:3271: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3271 no_cache=0
3272 # Check whether --enable-http or --disable-http was given.
3273if test "${enable_http+set}" = set; then
3274 enableval="$enable_http"
a0b9e27f 3275
a1622950
VZ
3276 if test "$enableval" = yes; then
3277 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3278 else
3279 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3280 fi
a0b9e27f 3281
a1622950 3282else
a0b9e27f 3283
a1622950
VZ
3284 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3292
3293fi
a1622950
VZ
3294
3295
3296 eval "$ac_cv_use_http"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3302 echo "$ac_t""yes" 1>&6
a1622950 3303 else
a0b9e27f 3304 echo "$ac_t""no" 1>&6
a1622950 3305 fi
a0b9e27f 3306
a1622950 3307
5005acfe
VZ
3308 enablestring=
3309 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
dfa2a1d9 3310echo "configure:3311: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3311 no_cache=0
3312 # Check whether --enable-fileproto or --disable-fileproto was given.
3313if test "${enable_fileproto+set}" = set; then
3314 enableval="$enable_fileproto"
a0b9e27f 3315
a1622950
VZ
3316 if test "$enableval" = yes; then
3317 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3318 else
3319 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3320 fi
a0b9e27f 3321
a1622950 3322else
a0b9e27f 3323
a1622950
VZ
3324 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3332
3333fi
a1622950
VZ
3334
3335
3336 eval "$ac_cv_use_fileproto"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3342 echo "$ac_t""yes" 1>&6
a1622950 3343 else
a0b9e27f 3344 echo "$ac_t""no" 1>&6
a1622950 3345 fi
a0b9e27f 3346
a1622950 3347
5005acfe
VZ
3348 enablestring=
3349 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
dfa2a1d9 3350echo "configure:3351: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3351 no_cache=0
3352 # Check whether --enable-sockets or --disable-sockets was given.
3353if test "${enable_sockets+set}" = set; then
3354 enableval="$enable_sockets"
a0b9e27f 3355
10f2d63a
VZ
3356 if test "$enableval" = yes; then
3357 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3358 else
3359 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3360 fi
a0b9e27f 3361
10f2d63a 3362else
a0b9e27f 3363
10f2d63a
VZ
3364 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3372
3373fi
10f2d63a
VZ
3374
3375
3376 eval "$ac_cv_use_sockets"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3382 echo "$ac_t""yes" 1>&6
10f2d63a 3383 else
a0b9e27f 3384 echo "$ac_t""no" 1>&6
10f2d63a 3385 fi
a0b9e27f 3386
8284b0c5 3387
5005acfe
VZ
3388 enablestring=
3389 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
dfa2a1d9 3390echo "configure:3391: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3391 no_cache=0
3392 # Check whether --enable-ole or --disable-ole was given.
3393if test "${enable_ole+set}" = set; then
3394 enableval="$enable_ole"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_ole='wxUSE_OLE=yes'
3398 else
3399 ac_cv_use_ole='wxUSE_OLE=no'
3400 fi
3401
3402else
3403
3404 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3412
3413fi
3414
3415
3416 eval "$ac_cv_use_ole"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_OLE" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
5005acfe
VZ
3428 enablestring=
3429 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
dfa2a1d9 3430echo "configure:3431: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3431 no_cache=0
3432 # Check whether --enable-dataobj or --disable-dataobj was given.
3433if test "${enable_dataobj+set}" = set; then
3434 enableval="$enable_dataobj"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3438 else
3439 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_dataobj"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_DATAOBJ" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
52127426 3468
5005acfe
VZ
3469 enablestring=
3470 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
dfa2a1d9 3471echo "configure:3472: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3472 no_cache=0
eb4efbdc
VZ
3473 # Check whether --enable-ipc or --disable-ipc was given.
3474if test "${enable_ipc+set}" = set; then
3475 enableval="$enable_ipc"
a0b9e27f 3476
10f2d63a 3477 if test "$enableval" = yes; then
eb4efbdc 3478 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3479 else
eb4efbdc 3480 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3481 fi
a0b9e27f 3482
10f2d63a 3483else
a0b9e27f 3484
eb4efbdc 3485 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
eb4efbdc 3492 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3493
3494fi
10f2d63a
VZ
3495
3496
eb4efbdc 3497 eval "$ac_cv_use_ipc"
10f2d63a 3498 if test "$no_cache" != 1; then
eb4efbdc 3499 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3500 fi
3501
eb4efbdc 3502 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3503 echo "$ac_t""yes" 1>&6
10f2d63a 3504 else
a0b9e27f 3505 echo "$ac_t""no" 1>&6
10f2d63a 3506 fi
a0b9e27f 3507
52127426 3508
8284b0c5 3509
5005acfe
VZ
3510 enablestring=
3511 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
dfa2a1d9 3512echo "configure:3513: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3513 no_cache=0
3514 # Check whether --enable-cmdline or --disable-cmdline was given.
3515if test "${enable_cmdline+set}" = set; then
3516 enableval="$enable_cmdline"
a0b9e27f 3517
1e6feb95
VZ
3518 if test "$enableval" = yes; then
3519 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3520 else
3521 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3522 fi
a0b9e27f 3523
1e6feb95 3524else
a0b9e27f 3525
1e6feb95
VZ
3526 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3534
3535fi
1e6feb95
VZ
3536
3537
3538 eval "$ac_cv_use_cmdline"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3544 echo "$ac_t""yes" 1>&6
1e6feb95 3545 else
a0b9e27f 3546 echo "$ac_t""no" 1>&6
1e6feb95 3547 fi
a0b9e27f 3548
1e6feb95 3549
5005acfe
VZ
3550 enablestring=
3551 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
dfa2a1d9 3552echo "configure:3553: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3553 no_cache=0
3554 # Check whether --enable-datetime or --disable-datetime was given.
3555if test "${enable_datetime+set}" = set; then
3556 enableval="$enable_datetime"
a0b9e27f 3557
1e6feb95
VZ
3558 if test "$enableval" = yes; then
3559 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3560 else
3561 ac_cv_use_datetime='wxUSE_DATETIME=no'
3562 fi
a0b9e27f 3563
1e6feb95 3564else
a0b9e27f 3565
1e6feb95
VZ
3566 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3574
3575fi
1e6feb95
VZ
3576
3577
3578 eval "$ac_cv_use_datetime"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3584 echo "$ac_t""yes" 1>&6
1e6feb95 3585 else
a0b9e27f 3586 echo "$ac_t""no" 1>&6
1e6feb95 3587 fi
a0b9e27f 3588
1e6feb95 3589
5005acfe
VZ
3590 enablestring=
3591 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
dfa2a1d9 3592echo "configure:3593: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3593 no_cache=0
3594 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3595if test "${enable_stopwatch+set}" = set; then
3596 enableval="$enable_stopwatch"
a0b9e27f 3597
1e6feb95
VZ
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3600 else
3601 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3602 fi
a0b9e27f 3603
1e6feb95 3604else
a0b9e27f 3605
1e6feb95
VZ
3606 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3614
3615fi
1e6feb95
VZ
3616
3617
3618 eval "$ac_cv_use_stopwatch"
3619 if test "$no_cache" != 1; then
3620 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3621 fi
3622
3623 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3624 echo "$ac_t""yes" 1>&6
1e6feb95 3625 else
a0b9e27f 3626 echo "$ac_t""no" 1>&6
1e6feb95 3627 fi
a0b9e27f 3628
1e6feb95 3629
5005acfe
VZ
3630 enablestring=
3631 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
dfa2a1d9 3632echo "configure:3633: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3633 no_cache=0
eb4efbdc
VZ
3634 # Check whether --enable-dialupman or --disable-dialupman was given.
3635if test "${enable_dialupman+set}" = set; then
3636 enableval="$enable_dialupman"
a0b9e27f 3637
10f2d63a 3638 if test "$enableval" = yes; then
eb4efbdc 3639 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3640 else
eb4efbdc 3641 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3642 fi
a0b9e27f 3643
10f2d63a 3644else
a0b9e27f 3645
eb4efbdc 3646 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
eb4efbdc 3653 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3654
3655fi
10f2d63a
VZ
3656
3657
eb4efbdc 3658 eval "$ac_cv_use_dialupman"
10f2d63a 3659 if test "$no_cache" != 1; then
eb4efbdc 3660 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3661 fi
3662
eb4efbdc 3663 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3664 echo "$ac_t""yes" 1>&6
10f2d63a 3665 else
a0b9e27f 3666 echo "$ac_t""no" 1>&6
10f2d63a 3667 fi
a0b9e27f 3668
10f2d63a 3669
5005acfe
VZ
3670 enablestring=
3671 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
dfa2a1d9 3672echo "configure:3673: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3673 no_cache=0
3674 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3675if test "${enable_apple_ieee+set}" = set; then
3676 enableval="$enable_apple_ieee"
a0b9e27f 3677
10f2d63a
VZ
3678 if test "$enableval" = yes; then
3679 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3680 else
3681 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3682 fi
a0b9e27f 3683
10f2d63a 3684else
a0b9e27f 3685
10f2d63a
VZ
3686 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3694
3695fi
10f2d63a
VZ
3696
3697
3698 eval "$ac_cv_use_apple_ieee"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3704 echo "$ac_t""yes" 1>&6
10f2d63a 3705 else
a0b9e27f 3706 echo "$ac_t""no" 1>&6
10f2d63a 3707 fi
a0b9e27f 3708
10f2d63a 3709
5005acfe
VZ
3710 enablestring=
3711 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
dfa2a1d9 3712echo "configure:3713: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3713 no_cache=0
1e6feb95
VZ
3714 # Check whether --enable-timer or --disable-timer was given.
3715if test "${enable_timer+set}" = set; then
3716 enableval="$enable_timer"
a0b9e27f 3717
10f2d63a 3718 if test "$enableval" = yes; then
1e6feb95 3719 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3720 else
1e6feb95 3721 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3722 fi
a0b9e27f 3723
10f2d63a 3724else
a0b9e27f 3725
1e6feb95 3726 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
1e6feb95 3733 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3734
3735fi
10f2d63a
VZ
3736
3737
1e6feb95 3738 eval "$ac_cv_use_timer"
10f2d63a 3739 if test "$no_cache" != 1; then
1e6feb95 3740 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3741 fi
3742
1e6feb95 3743 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3744 echo "$ac_t""yes" 1>&6
10f2d63a 3745 else
a0b9e27f 3746 echo "$ac_t""no" 1>&6
10f2d63a 3747 fi
a0b9e27f 3748
10f2d63a 3749
5005acfe
VZ
3750 enablestring=
3751 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
dfa2a1d9 3752echo "configure:3753: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-wave or --disable-wave was given.
3755if test "${enable_wave+set}" = set; then
3756 enableval="$enable_wave"
a0b9e27f 3757
10f2d63a
VZ
3758 if test "$enableval" = yes; then
3759 ac_cv_use_wave='wxUSE_WAVE=yes'
3760 else
3761 ac_cv_use_wave='wxUSE_WAVE=no'
3762 fi
a0b9e27f 3763
10f2d63a 3764else
a0b9e27f 3765
10f2d63a
VZ
3766 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3774
3775fi
10f2d63a
VZ
3776
3777
3778 eval "$ac_cv_use_wave"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3784 echo "$ac_t""yes" 1>&6
10f2d63a 3785 else
a0b9e27f 3786 echo "$ac_t""no" 1>&6
10f2d63a 3787 fi
a0b9e27f 3788
10f2d63a 3789
5005acfe
VZ
3790 enablestring=
3791 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
dfa2a1d9 3792echo "configure:3793: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3793 no_cache=0
3794 # Check whether --enable-fraction or --disable-fraction was given.
3795if test "${enable_fraction+set}" = set; then
3796 enableval="$enable_fraction"
a0b9e27f 3797
10f2d63a
VZ
3798 if test "$enableval" = yes; then
3799 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3800 else
3801 ac_cv_use_fraction='wxUSE_FRACTION=no'
3802 fi
a0b9e27f 3803
10f2d63a 3804else
a0b9e27f 3805
10f2d63a
VZ
3806 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3814
3815fi
10f2d63a
VZ
3816
3817
3818 eval "$ac_cv_use_fraction"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3824 echo "$ac_t""yes" 1>&6
10f2d63a 3825 else
a0b9e27f 3826 echo "$ac_t""no" 1>&6
10f2d63a 3827 fi
a0b9e27f 3828
10f2d63a 3829
5005acfe
VZ
3830 enablestring=
3831 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
dfa2a1d9 3832echo "configure:3833: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3833 no_cache=0
3834 # Check whether --enable-dynlib or --disable-dynlib was given.
3835if test "${enable_dynlib+set}" = set; then
3836 enableval="$enable_dynlib"
a0b9e27f 3837
10f2d63a
VZ
3838 if test "$enableval" = yes; then
3839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3840 else
3841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3842 fi
a0b9e27f 3843
10f2d63a 3844else
a0b9e27f 3845
10f2d63a
VZ
3846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3854
3855fi
10f2d63a
VZ
3856
3857
3858 eval "$ac_cv_use_dynlib"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3864 echo "$ac_t""yes" 1>&6
10f2d63a 3865 else
a0b9e27f 3866 echo "$ac_t""no" 1>&6
10f2d63a 3867 fi
a0b9e27f 3868
10f2d63a 3869
5005acfe
VZ
3870 enablestring=
3871 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
dfa2a1d9 3872echo "configure:3873: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3873 no_cache=0
3874 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3875if test "${enable_dynamicloader+set}" = set; then
3876 enableval="$enable_dynamicloader"
a0b9e27f 3877
0b9ab0bd
RL
3878 if test "$enableval" = yes; then
3879 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3880 else
3881 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3882 fi
a0b9e27f 3883
0b9ab0bd 3884else
a0b9e27f 3885
0b9ab0bd
RL
3886 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3894
3895fi
0b9ab0bd
RL
3896
3897
3898 eval "$ac_cv_use_dynamicloader"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3904 echo "$ac_t""yes" 1>&6
0b9ab0bd 3905 else
a0b9e27f 3906 echo "$ac_t""no" 1>&6
0b9ab0bd 3907 fi
a0b9e27f 3908
0b9ab0bd 3909
5005acfe
VZ
3910 enablestring=
3911 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
dfa2a1d9 3912echo "configure:3913: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3913 no_cache=0
3914 # Check whether --enable-longlong or --disable-longlong was given.
3915if test "${enable_longlong+set}" = set; then
3916 enableval="$enable_longlong"
a0b9e27f 3917
10f2d63a
VZ
3918 if test "$enableval" = yes; then
3919 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3920 else
3921 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3922 fi
a0b9e27f 3923
10f2d63a 3924else
a0b9e27f 3925
10f2d63a
VZ
3926 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3934
3935fi
10f2d63a
VZ
3936
3937
3938 eval "$ac_cv_use_longlong"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3944 echo "$ac_t""yes" 1>&6
10f2d63a 3945 else
a0b9e27f 3946 echo "$ac_t""no" 1>&6
10f2d63a 3947 fi
a0b9e27f 3948
10f2d63a 3949
5005acfe
VZ
3950 enablestring=
3951 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
dfa2a1d9 3952echo "configure:3953: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3953 no_cache=0
3954 # Check whether --enable-geometry or --disable-geometry was given.
3955if test "${enable_geometry+set}" = set; then
3956 enableval="$enable_geometry"
a0b9e27f 3957
e8f65ba6
RR
3958 if test "$enableval" = yes; then
3959 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3960 else
3961 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3962 fi
a0b9e27f 3963
e8f65ba6 3964else
a0b9e27f 3965
e8f65ba6
RR
3966 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3974
3975fi
e8f65ba6
RR
3976
3977
3978 eval "$ac_cv_use_geometry"
3979 if test "$no_cache" != 1; then
3980 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3981 fi
3982
3983 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3984 echo "$ac_t""yes" 1>&6
e8f65ba6 3985 else
a0b9e27f 3986 echo "$ac_t""no" 1>&6
e8f65ba6 3987 fi
a0b9e27f 3988
e8f65ba6 3989
5005acfe
VZ
3990 enablestring=
3991 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
dfa2a1d9 3992echo "configure:3993: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
3993 no_cache=0
3994 # Check whether --enable-log or --disable-log was given.
3995if test "${enable_log+set}" = set; then
3996 enableval="$enable_log"
a0b9e27f 3997
10f2d63a
VZ
3998 if test "$enableval" = yes; then
3999 ac_cv_use_log='wxUSE_LOG=yes'
4000 else
4001 ac_cv_use_log='wxUSE_LOG=no'
4002 fi
a0b9e27f 4003
10f2d63a 4004else
a0b9e27f 4005
10f2d63a
VZ
4006 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4014
4015fi
10f2d63a
VZ
4016
4017
4018 eval "$ac_cv_use_log"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4024 echo "$ac_t""yes" 1>&6
10f2d63a 4025 else
a0b9e27f 4026 echo "$ac_t""no" 1>&6
10f2d63a 4027 fi
a0b9e27f 4028
10f2d63a 4029
5005acfe
VZ
4030 enablestring=
4031 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
dfa2a1d9 4032echo "configure:4033: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4033 no_cache=0
4034 # Check whether --enable-streams or --disable-streams was given.
4035if test "${enable_streams+set}" = set; then
4036 enableval="$enable_streams"
a0b9e27f 4037
10f2d63a
VZ
4038 if test "$enableval" = yes; then
4039 ac_cv_use_streams='wxUSE_STREAMS=yes'
4040 else
4041 ac_cv_use_streams='wxUSE_STREAMS=no'
4042 fi
a0b9e27f 4043
10f2d63a 4044else
a0b9e27f 4045
10f2d63a
VZ
4046 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4054
4055fi
10f2d63a
VZ
4056
4057
4058 eval "$ac_cv_use_streams"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4064 echo "$ac_t""yes" 1>&6
10f2d63a 4065 else
a0b9e27f 4066 echo "$ac_t""no" 1>&6
10f2d63a 4067 fi
a0b9e27f 4068
10f2d63a 4069
5005acfe
VZ
4070 enablestring=
4071 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
dfa2a1d9 4072echo "configure:4073: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4073 no_cache=0
4074 # Check whether --enable-file or --disable-file was given.
4075if test "${enable_file+set}" = set; then
4076 enableval="$enable_file"
a0b9e27f 4077
10f2d63a
VZ
4078 if test "$enableval" = yes; then
4079 ac_cv_use_file='wxUSE_FILE=yes'
4080 else
4081 ac_cv_use_file='wxUSE_FILE=no'
4082 fi
a0b9e27f 4083
10f2d63a 4084else
a0b9e27f 4085
10f2d63a
VZ
4086 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4094
4095fi
10f2d63a
VZ
4096
4097
4098 eval "$ac_cv_use_file"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4104 echo "$ac_t""yes" 1>&6
10f2d63a 4105 else
a0b9e27f 4106 echo "$ac_t""no" 1>&6
10f2d63a 4107 fi
a0b9e27f 4108
10f2d63a 4109
5005acfe
VZ
4110 enablestring=
4111 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
dfa2a1d9 4112echo "configure:4113: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4113 no_cache=0
1e6feb95
VZ
4114 # Check whether --enable-ffile or --disable-ffile was given.
4115if test "${enable_ffile+set}" = set; then
4116 enableval="$enable_ffile"
a0b9e27f 4117
10f2d63a 4118 if test "$enableval" = yes; then
1e6feb95 4119 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4120 else
1e6feb95 4121 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4122 fi
a0b9e27f 4123
10f2d63a 4124else
a0b9e27f 4125
1e6feb95 4126 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
1e6feb95 4133 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4134
4135fi
10f2d63a
VZ
4136
4137
1e6feb95 4138 eval "$ac_cv_use_ffile"
10f2d63a 4139 if test "$no_cache" != 1; then
1e6feb95 4140 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4141 fi
4142
1e6feb95 4143 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4144 echo "$ac_t""yes" 1>&6
10f2d63a 4145 else
a0b9e27f 4146 echo "$ac_t""no" 1>&6
10f2d63a 4147 fi
a0b9e27f 4148
10f2d63a 4149
5005acfe
VZ
4150 enablestring=
4151 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
dfa2a1d9 4152echo "configure:4153: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4153 no_cache=0
4154 # Check whether --enable-textbuf or --disable-textbuf was given.
4155if test "${enable_textbuf+set}" = set; then
4156 enableval="$enable_textbuf"
a0b9e27f 4157
a3a584a7
VZ
4158 if test "$enableval" = yes; then
4159 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4160 else
4161 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4162 fi
a0b9e27f 4163
a3a584a7 4164else
a0b9e27f 4165
a3a584a7
VZ
4166 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4174
4175fi
a3a584a7
VZ
4176
4177
4178 eval "$ac_cv_use_textbuf"
4179 if test "$no_cache" != 1; then
4180 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4181 fi
4182
4183 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4184 echo "$ac_t""yes" 1>&6
a3a584a7 4185 else
a0b9e27f 4186 echo "$ac_t""no" 1>&6
a3a584a7 4187 fi
a0b9e27f 4188
a3a584a7 4189
5005acfe
VZ
4190 enablestring=
4191 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
dfa2a1d9 4192echo "configure:4193: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4193 no_cache=0
1e6feb95
VZ
4194 # Check whether --enable-textfile or --disable-textfile was given.
4195if test "${enable_textfile+set}" = set; then
4196 enableval="$enable_textfile"
a0b9e27f 4197
10f2d63a 4198 if test "$enableval" = yes; then
1e6feb95 4199 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4200 else
1e6feb95 4201 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4202 fi
a0b9e27f 4203
10f2d63a 4204else
a0b9e27f 4205
1e6feb95 4206 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4207 if test "x$LINE" != x ; then
4208 eval "DEFAULT_$LINE"
4209 else
4210 no_cache=1
4211 fi
4212
1e6feb95 4213 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4214
4215fi
10f2d63a
VZ
4216
4217
1e6feb95 4218 eval "$ac_cv_use_textfile"
10f2d63a 4219 if test "$no_cache" != 1; then
1e6feb95 4220 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4221 fi
4222
1e6feb95 4223 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4224 echo "$ac_t""yes" 1>&6
10f2d63a 4225 else
a0b9e27f 4226 echo "$ac_t""no" 1>&6
10f2d63a 4227 fi
a0b9e27f 4228
10f2d63a 4229
5005acfe
VZ
4230 enablestring=
4231 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
dfa2a1d9 4232echo "configure:4233: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4233 no_cache=0
1e6feb95
VZ
4234 # Check whether --enable-fontmap or --disable-fontmap was given.
4235if test "${enable_fontmap+set}" = set; then
4236 enableval="$enable_fontmap"
a0b9e27f 4237
10f2d63a 4238 if test "$enableval" = yes; then
1e6feb95 4239 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4240 else
1e6feb95 4241 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4242 fi
a0b9e27f 4243
10f2d63a 4244else
a0b9e27f 4245
1e6feb95 4246 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
1e6feb95 4253 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4254
4255fi
10f2d63a
VZ
4256
4257
1e6feb95 4258 eval "$ac_cv_use_fontmap"
10f2d63a 4259 if test "$no_cache" != 1; then
1e6feb95 4260 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4261 fi
4262
1e6feb95 4263 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4264 echo "$ac_t""yes" 1>&6
10f2d63a 4265 else
a0b9e27f 4266 echo "$ac_t""no" 1>&6
10f2d63a 4267 fi
a0b9e27f 4268
10f2d63a 4269
5005acfe
VZ
4270 enablestring=
4271 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
dfa2a1d9 4272echo "configure:4273: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4273 no_cache=0
1e6feb95
VZ
4274 # Check whether --enable-unicode or --disable-unicode was given.
4275if test "${enable_unicode+set}" = set; then
4276 enableval="$enable_unicode"
a0b9e27f 4277
1e6feb95
VZ
4278 if test "$enableval" = yes; then
4279 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4280 else
4281 ac_cv_use_unicode='wxUSE_UNICODE=no'
4282 fi
a0b9e27f 4283
1e6feb95 4284else
a0b9e27f 4285
1e6feb95
VZ
4286 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4294
4295fi
1e6feb95
VZ
4296
4297
4298 eval "$ac_cv_use_unicode"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4304 echo "$ac_t""yes" 1>&6
1e6feb95 4305 else
a0b9e27f 4306 echo "$ac_t""no" 1>&6
1e6feb95 4307 fi
a0b9e27f 4308
1e6feb95 4309
5005acfe
VZ
4310 enablestring=
4311 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
dfa2a1d9 4312echo "configure:4313: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4313 no_cache=0
4314 # Check whether --enable-mslu or --disable-mslu was given.
4315if test "${enable_mslu+set}" = set; then
4316 enableval="$enable_mslu"
a0b9e27f 4317
a72a4bfa
VS
4318 if test "$enableval" = yes; then
4319 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4320 else
4321 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4322 fi
a0b9e27f 4323
a72a4bfa 4324else
a0b9e27f 4325
a72a4bfa
VS
4326 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4334
4335fi
a72a4bfa
VS
4336
4337
4338 eval "$ac_cv_use_mslu"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4344 echo "$ac_t""yes" 1>&6
a72a4bfa 4345 else
a0b9e27f 4346 echo "$ac_t""no" 1>&6
a72a4bfa 4347 fi
a0b9e27f 4348
a72a4bfa 4349
5005acfe
VZ
4350 enablestring=
4351 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
dfa2a1d9 4352echo "configure:4353: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4353 no_cache=0
4354 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4355if test "${enable_wxprintfv+set}" = set; then
4356 enableval="$enable_wxprintfv"
a0b9e27f 4357
1e6feb95 4358 if test "$enableval" = yes; then
10f2d63a
VZ
4359 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4360 else
4361 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4362 fi
a0b9e27f 4363
10f2d63a 4364else
a0b9e27f 4365
10f2d63a
VZ
4366 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4367 if test "x$LINE" != x ; then
4368 eval "DEFAULT_$LINE"
4369 else
4370 no_cache=1
4371 fi
4372
4373 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4374
4375fi
10f2d63a
VZ
4376
4377
4378 eval "$ac_cv_use_wxprintfv"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4384 echo "$ac_t""yes" 1>&6
10f2d63a 4385 else
a0b9e27f 4386 echo "$ac_t""no" 1>&6
10f2d63a 4387 fi
a0b9e27f 4388
10f2d63a 4389
5005acfe
VZ
4390 enablestring=
4391 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
dfa2a1d9 4392echo "configure:4393: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4393 no_cache=0
4394 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4395if test "${enable_std_iostreams+set}" = set; then
4396 enableval="$enable_std_iostreams"
a0b9e27f 4397
10f2d63a
VZ
4398 if test "$enableval" = yes; then
4399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4400 else
4401 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4402 fi
a0b9e27f 4403
10f2d63a 4404else
a0b9e27f 4405
10f2d63a
VZ
4406 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4414
4415fi
10f2d63a
VZ
4416
4417
4418 eval "$ac_cv_use_std_iostreams"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4424 echo "$ac_t""yes" 1>&6
10f2d63a 4425 else
a0b9e27f 4426 echo "$ac_t""no" 1>&6
10f2d63a 4427 fi
a0b9e27f 4428
10f2d63a 4429
5005acfe
VZ
4430 enablestring=
4431 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
dfa2a1d9 4432echo "configure:4433: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4433 no_cache=0
4434 # Check whether --enable-filesystem or --disable-filesystem was given.
4435if test "${enable_filesystem+set}" = set; then
4436 enableval="$enable_filesystem"
a0b9e27f 4437
24528b0c
VS
4438 if test "$enableval" = yes; then
4439 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4440 else
4441 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4442 fi
a0b9e27f 4443
24528b0c 4444else
a0b9e27f 4445
24528b0c
VS
4446 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4454
4455fi
24528b0c
VS
4456
4457
4458 eval "$ac_cv_use_filesystem"
4459 if test "$no_cache" != 1; then
4460 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4461 fi
4462
4463 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4464 echo "$ac_t""yes" 1>&6
24528b0c 4465 else
a0b9e27f 4466 echo "$ac_t""no" 1>&6
24528b0c 4467 fi
a0b9e27f 4468
24528b0c 4469
5005acfe
VZ
4470 enablestring=
4471 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
dfa2a1d9 4472echo "configure:4473: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4473 no_cache=0
4474 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4475if test "${enable_fs_inet+set}" = set; then
4476 enableval="$enable_fs_inet"
a0b9e27f 4477
10f2d63a
VZ
4478 if test "$enableval" = yes; then
4479 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4480 else
4481 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4482 fi
a0b9e27f 4483
10f2d63a 4484else
a0b9e27f 4485
10f2d63a
VZ
4486 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4494
4495fi
10f2d63a
VZ
4496
4497
4498 eval "$ac_cv_use_fs_inet"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4504 echo "$ac_t""yes" 1>&6
10f2d63a 4505 else
a0b9e27f 4506 echo "$ac_t""no" 1>&6
10f2d63a 4507 fi
a0b9e27f 4508
10f2d63a 4509
5005acfe
VZ
4510 enablestring=
4511 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
dfa2a1d9 4512echo "configure:4513: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4513 no_cache=0
4514 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4515if test "${enable_fs_zip+set}" = set; then
4516 enableval="$enable_fs_zip"
a0b9e27f 4517
10f2d63a
VZ
4518 if test "$enableval" = yes; then
4519 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4520 else
4521 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4522 fi
a0b9e27f 4523
10f2d63a 4524else
a0b9e27f 4525
10f2d63a
VZ
4526 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4534
4535fi
10f2d63a
VZ
4536
4537
4538 eval "$ac_cv_use_fs_zip"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4544 echo "$ac_t""yes" 1>&6
10f2d63a 4545 else
a0b9e27f 4546 echo "$ac_t""no" 1>&6
10f2d63a 4547 fi
a0b9e27f 4548
10f2d63a 4549
5005acfe
VZ
4550 enablestring=
4551 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
dfa2a1d9 4552echo "configure:4553: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4553 no_cache=0
4554 # Check whether --enable-zipstream or --disable-zipstream was given.
4555if test "${enable_zipstream+set}" = set; then
4556 enableval="$enable_zipstream"
a0b9e27f 4557
10f2d63a
VZ
4558 if test "$enableval" = yes; then
4559 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4560 else
4561 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4562 fi
a0b9e27f 4563
10f2d63a 4564else
a0b9e27f 4565
10f2d63a
VZ
4566 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4574
4575fi
10f2d63a
VZ
4576
4577
4578 eval "$ac_cv_use_zipstream"
4579 if test "$no_cache" != 1; then
4580 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4581 fi
4582
4583 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4584 echo "$ac_t""yes" 1>&6
10f2d63a 4585 else
a0b9e27f 4586 echo "$ac_t""no" 1>&6
10f2d63a 4587 fi
a0b9e27f 4588
8284b0c5 4589
52127426 4590
5005acfe
VZ
4591 enablestring=
4592 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
dfa2a1d9 4593echo "configure:4594: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4594 no_cache=0
4595 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4596if test "${enable_catch_segvs+set}" = set; then
4597 enableval="$enable_catch_segvs"
a0b9e27f 4598
eb4efbdc
VZ
4599 if test "$enableval" = yes; then
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4601 else
4602 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4603 fi
a0b9e27f 4604
eb4efbdc 4605else
a0b9e27f 4606
eb4efbdc
VZ
4607 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${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_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4615
4616fi
eb4efbdc
VZ
4617
4618
4619 eval "$ac_cv_use_catch_segvs"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4625 echo "$ac_t""yes" 1>&6
eb4efbdc 4626 else
a0b9e27f 4627 echo "$ac_t""no" 1>&6
eb4efbdc 4628 fi
a0b9e27f 4629
eb4efbdc 4630
5005acfe
VZ
4631 enablestring=
4632 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
dfa2a1d9 4633echo "configure:4634: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4634 no_cache=0
4635 # Check whether --enable-snglinst or --disable-snglinst was given.
4636if test "${enable_snglinst+set}" = set; then
4637 enableval="$enable_snglinst"
a0b9e27f 4638
4f3c5f06
VZ
4639 if test "$enableval" = yes; then
4640 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4641 else
4642 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4643 fi
a0b9e27f 4644
4f3c5f06 4645else
a0b9e27f 4646
4f3c5f06
VZ
4647 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4655
4656fi
4f3c5f06
VZ
4657
4658
4659 eval "$ac_cv_use_snglinst"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4665 echo "$ac_t""yes" 1>&6
4f3c5f06 4666 else
a0b9e27f 4667 echo "$ac_t""no" 1>&6
4f3c5f06 4668 fi
a0b9e27f 4669
52127426 4670
8284b0c5 4671
5005acfe
VZ
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
dfa2a1d9 4674echo "configure:4675: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4675 no_cache=0
4676 # Check whether --enable-mimetype or --disable-mimetype was given.
4677if test "${enable_mimetype+set}" = set; then
4678 enableval="$enable_mimetype"
a0b9e27f 4679
1e6feb95
VZ
4680 if test "$enableval" = yes; then
4681 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4682 else
4683 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4684 fi
a0b9e27f 4685
1e6feb95 4686else
a0b9e27f 4687
1e6feb95
VZ
4688 LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4696
4697fi
1e6feb95
VZ
4698
4699
4700 eval "$ac_cv_use_mimetype"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4706 echo "$ac_t""yes" 1>&6
1e6feb95 4707 else
a0b9e27f 4708 echo "$ac_t""no" 1>&6
1e6feb95 4709 fi
a0b9e27f 4710
1e6feb95 4711
5005acfe
VZ
4712 enablestring=
4713 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
dfa2a1d9 4714echo "configure:4715: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4715 no_cache=0
4716 # Check whether --enable-system_options or --disable-system_options was given.
4717if test "${enable_system_options+set}" = set; then
4718 enableval="$enable_system_options"
a0b9e27f 4719
3e44f09d
VZ
4720 if test "$enableval" = yes; then
4721 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4722 else
4723 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4724 fi
a0b9e27f 4725
3e44f09d 4726else
a0b9e27f 4727
3e44f09d
VZ
4728 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4736
4737fi
3e44f09d
VZ
4738
4739
4740 eval "$ac_cv_use_system_options"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4746 echo "$ac_t""yes" 1>&6
3e44f09d 4747 else
a0b9e27f 4748 echo "$ac_t""no" 1>&6
3e44f09d 4749 fi
a0b9e27f 4750
8284b0c5 4751
52127426 4752
5005acfe
VZ
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
dfa2a1d9 4755echo "configure:4756: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4756 no_cache=0
4757 # Check whether --enable-url or --disable-url was given.
4758if test "${enable_url+set}" = set; then
4759 enableval="$enable_url"
a0b9e27f 4760
4cdb0ab0
VS
4761 if test "$enableval" = yes; then
4762 ac_cv_use_url='wxUSE_URL=yes'
4763 else
4764 ac_cv_use_url='wxUSE_URL=no'
4765 fi
a0b9e27f 4766
4cdb0ab0 4767else
a0b9e27f 4768
4cdb0ab0
VS
4769 LINE=`grep "wxUSE_URL" ${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_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4777
4778fi
4cdb0ab0
VS
4779
4780
4781 eval "$ac_cv_use_url"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_URL" = yes; then
a0b9e27f 4787 echo "$ac_t""yes" 1>&6
4cdb0ab0 4788 else
a0b9e27f 4789 echo "$ac_t""no" 1>&6
4cdb0ab0 4790 fi
a0b9e27f 4791
4cdb0ab0 4792
5005acfe
VZ
4793 enablestring=
4794 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
dfa2a1d9 4795echo "configure:4796: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4796 no_cache=0
4797 # Check whether --enable-protocol or --disable-protocol was given.
4798if test "${enable_protocol+set}" = set; then
4799 enableval="$enable_protocol"
a0b9e27f 4800
4cdb0ab0
VS
4801 if test "$enableval" = yes; then
4802 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4803 else
4804 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4805 fi
a0b9e27f 4806
4cdb0ab0 4807else
a0b9e27f 4808
4cdb0ab0
VS
4809 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4817
4818fi
4cdb0ab0
VS
4819
4820
4821 eval "$ac_cv_use_protocol"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4827 echo "$ac_t""yes" 1>&6
4cdb0ab0 4828 else
a0b9e27f 4829 echo "$ac_t""no" 1>&6
4cdb0ab0 4830 fi
a0b9e27f 4831
4cdb0ab0 4832
5005acfe
VZ
4833 enablestring=
4834 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
dfa2a1d9 4835echo "configure:4836: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4836 no_cache=0
4837 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4838if test "${enable_protocol_http+set}" = set; then
4839 enableval="$enable_protocol_http"
a0b9e27f 4840
4cdb0ab0
VS
4841 if test "$enableval" = yes; then
4842 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4843 else
4844 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4845 fi
a0b9e27f 4846
4cdb0ab0 4847else
a0b9e27f 4848
4cdb0ab0
VS
4849 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4857
4858fi
4cdb0ab0
VS
4859
4860
4861 eval "$ac_cv_use_protocol_http"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4867 echo "$ac_t""yes" 1>&6
4cdb0ab0 4868 else
a0b9e27f 4869 echo "$ac_t""no" 1>&6
4cdb0ab0 4870 fi
a0b9e27f 4871
4cdb0ab0 4872
5005acfe
VZ
4873 enablestring=
4874 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
dfa2a1d9 4875echo "configure:4876: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4876 no_cache=0
4877 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4878if test "${enable_protocol_ftp+set}" = set; then
4879 enableval="$enable_protocol_ftp"
a0b9e27f 4880
4cdb0ab0
VS
4881 if test "$enableval" = yes; then
4882 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4883 else
4884 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4885 fi
a0b9e27f 4886
4cdb0ab0 4887else
a0b9e27f 4888
4cdb0ab0
VS
4889 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4897
4898fi
4cdb0ab0
VS
4899
4900
4901 eval "$ac_cv_use_protocol_ftp"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4907 echo "$ac_t""yes" 1>&6
4cdb0ab0 4908 else
a0b9e27f 4909 echo "$ac_t""no" 1>&6
4cdb0ab0 4910 fi
a0b9e27f 4911
4cdb0ab0 4912
5005acfe
VZ
4913 enablestring=
4914 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
dfa2a1d9 4915echo "configure:4916: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4916 no_cache=0
4917 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4918if test "${enable_protocol_file+set}" = set; then
4919 enableval="$enable_protocol_file"
a0b9e27f 4920
4cdb0ab0
VS
4921 if test "$enableval" = yes; then
4922 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4923 else
4924 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4925 fi
a0b9e27f 4926
4cdb0ab0 4927else
a0b9e27f 4928
4cdb0ab0
VS
4929 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
4936 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4937
4938fi
4cdb0ab0
VS
4939
4940
4941 eval "$ac_cv_use_protocol_file"
4942 if test "$no_cache" != 1; then
4943 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4944 fi
4945
4946 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4947 echo "$ac_t""yes" 1>&6
4cdb0ab0 4948 else
a0b9e27f 4949 echo "$ac_t""no" 1>&6
4cdb0ab0 4950 fi
a0b9e27f 4951
52127426 4952
8284b0c5
MB
4953
4954
4955
5005acfe
VZ
4956 enablestring=
4957 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
dfa2a1d9 4958echo "configure:4959: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4959 no_cache=0
4960 # Check whether --enable-threads or --disable-threads was given.
4961if test "${enable_threads+set}" = set; then
4962 enableval="$enable_threads"
a0b9e27f 4963
10f2d63a
VZ
4964 if test "$enableval" = yes; then
4965 ac_cv_use_threads='wxUSE_THREADS=yes'
4966 else
4967 ac_cv_use_threads='wxUSE_THREADS=no'
4968 fi
a0b9e27f 4969
10f2d63a 4970else
a0b9e27f 4971
10f2d63a
VZ
4972 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4980
4981fi
10f2d63a
VZ
4982
4983
4984 eval "$ac_cv_use_threads"
4985 if test "$no_cache" != 1; then
4986 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4987 fi
4988
4989 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 4990 echo "$ac_t""yes" 1>&6
10f2d63a 4991 else
a0b9e27f 4992 echo "$ac_t""no" 1>&6
10f2d63a 4993 fi
a0b9e27f 4994
10f2d63a 4995
b12915c1
VZ
4996if test "$wxUSE_GUI" = "yes"; then
4997
8284b0c5
MB
4998
4999
5005acfe
VZ
5000 enablestring=
5001 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
dfa2a1d9 5002echo "configure:5003: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5003 no_cache=0
5004 # Check whether --enable-docview or --disable-docview was given.
5005if test "${enable_docview+set}" = set; then
5006 enableval="$enable_docview"
a0b9e27f 5007
10f2d63a
VZ
5008 if test "$enableval" = yes; then
5009 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5010 else
5011 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5012 fi
a0b9e27f 5013
10f2d63a 5014else
a0b9e27f 5015
10f2d63a
VZ
5016 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5024
5025fi
10f2d63a
VZ
5026
5027
5028 eval "$ac_cv_use_docview"
5029 if test "$no_cache" != 1; then
5030 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5031 fi
5032
5033 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5034 echo "$ac_t""yes" 1>&6
10f2d63a 5035 else
a0b9e27f 5036 echo "$ac_t""no" 1>&6
10f2d63a 5037 fi
a0b9e27f 5038
10f2d63a 5039
5005acfe
VZ
5040 enablestring=
5041 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
dfa2a1d9 5042echo "configure:5043: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5043 no_cache=0
5044 # Check whether --enable-help or --disable-help was given.
5045if test "${enable_help+set}" = set; then
5046 enableval="$enable_help"
a0b9e27f 5047
10f2d63a
VZ
5048 if test "$enableval" = yes; then
5049 ac_cv_use_help='wxUSE_HELP=yes'
5050 else
5051 ac_cv_use_help='wxUSE_HELP=no'
5052 fi
a0b9e27f 5053
10f2d63a 5054else
a0b9e27f 5055
10f2d63a
VZ
5056 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5064
5065fi
10f2d63a
VZ
5066
5067
5068 eval "$ac_cv_use_help"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5074 echo "$ac_t""yes" 1>&6
10f2d63a 5075 else
a0b9e27f 5076 echo "$ac_t""no" 1>&6
10f2d63a 5077 fi
a0b9e27f 5078
10f2d63a 5079
5005acfe
VZ
5080 enablestring=
5081 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
dfa2a1d9 5082echo "configure:5083: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5083 no_cache=0
5084 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5085if test "${enable_mshtmlhelp+set}" = set; then
5086 enableval="$enable_mshtmlhelp"
a0b9e27f 5087
29fd3c0c
VS
5088 if test "$enableval" = yes; then
5089 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5090 else
5091 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5092 fi
a0b9e27f 5093
29fd3c0c 5094else
a0b9e27f 5095
29fd3c0c
VS
5096 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5104
5105fi
29fd3c0c
VS
5106
5107
5108 eval "$ac_cv_use_mshtmlhelp"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5114 echo "$ac_t""yes" 1>&6
29fd3c0c 5115 else
a0b9e27f 5116 echo "$ac_t""no" 1>&6
29fd3c0c 5117 fi
a0b9e27f 5118
29fd3c0c 5119
5005acfe
VZ
5120 enablestring=
5121 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
dfa2a1d9 5122echo "configure:5123: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5123 no_cache=0
5124 # Check whether --enable-html or --disable-html was given.
5125if test "${enable_html+set}" = set; then
5126 enableval="$enable_html"
a0b9e27f 5127
3379ed37
VZ
5128 if test "$enableval" = yes; then
5129 ac_cv_use_html='wxUSE_HTML=yes'
5130 else
5131 ac_cv_use_html='wxUSE_HTML=no'
5132 fi
a0b9e27f 5133
3379ed37 5134else
a0b9e27f 5135
3379ed37
VZ
5136 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5144
5145fi
3379ed37
VZ
5146
5147
5148 eval "$ac_cv_use_html"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5154 echo "$ac_t""yes" 1>&6
3379ed37 5155 else
a0b9e27f 5156 echo "$ac_t""no" 1>&6
3379ed37 5157 fi
a0b9e27f 5158
3379ed37 5159
5005acfe
VZ
5160 enablestring=
5161 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
dfa2a1d9 5162echo "configure:5163: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5163 no_cache=0
5164 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5165if test "${enable_htmlhelp+set}" = set; then
5166 enableval="$enable_htmlhelp"
a0b9e27f 5167
3379ed37
VZ
5168 if test "$enableval" = yes; then
5169 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5170 else
5171 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5172 fi
a0b9e27f 5173
3379ed37 5174else
a0b9e27f 5175
3379ed37
VZ
5176 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5177 if test "x$LINE" != x ; then
5178 eval "DEFAULT_$LINE"
5179 else
5180 no_cache=1
5181 fi
5182
5183 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5184
5185fi
3379ed37
VZ
5186
5187
5188 eval "$ac_cv_use_htmlhelp"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5194 echo "$ac_t""yes" 1>&6
3379ed37 5195 else
a0b9e27f 5196 echo "$ac_t""no" 1>&6
3379ed37 5197 fi
a0b9e27f 5198
3379ed37 5199
5005acfe
VZ
5200 enablestring=
5201 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
dfa2a1d9 5202echo "configure:5203: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5203 no_cache=0
5204 # Check whether --enable-constraints or --disable-constraints was given.
5205if test "${enable_constraints+set}" = set; then
5206 enableval="$enable_constraints"
a0b9e27f 5207
10f2d63a
VZ
5208 if test "$enableval" = yes; then
5209 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5210 else
5211 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5212 fi
a0b9e27f 5213
10f2d63a 5214else
a0b9e27f 5215
10f2d63a
VZ
5216 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5217 if test "x$LINE" != x ; then
5218 eval "DEFAULT_$LINE"
5219 else
5220 no_cache=1
5221 fi
5222
5223 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5224
5225fi
10f2d63a
VZ
5226
5227
5228 eval "$ac_cv_use_constraints"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5234 echo "$ac_t""yes" 1>&6
10f2d63a 5235 else
a0b9e27f 5236 echo "$ac_t""no" 1>&6
10f2d63a 5237 fi
a0b9e27f 5238
10f2d63a 5239
5005acfe
VZ
5240 enablestring=
5241 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
dfa2a1d9 5242echo "configure:5243: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5243 no_cache=0
5244 # Check whether --enable-printarch or --disable-printarch was given.
5245if test "${enable_printarch+set}" = set; then
5246 enableval="$enable_printarch"
a0b9e27f 5247
10f2d63a
VZ
5248 if test "$enableval" = yes; then
5249 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5250 else
5251 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5252 fi
a0b9e27f 5253
10f2d63a 5254else
a0b9e27f 5255
10f2d63a
VZ
5256 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5264
5265fi
10f2d63a
VZ
5266
5267
5268 eval "$ac_cv_use_printarch"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5274 echo "$ac_t""yes" 1>&6
10f2d63a 5275 else
a0b9e27f 5276 echo "$ac_t""no" 1>&6
10f2d63a 5277 fi
a0b9e27f 5278
10f2d63a 5279
5005acfe
VZ
5280 enablestring=
5281 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
dfa2a1d9 5282echo "configure:5283: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5283 no_cache=0
5284 # Check whether --enable-mdi or --disable-mdi was given.
5285if test "${enable_mdi+set}" = set; then
5286 enableval="$enable_mdi"
a0b9e27f 5287
10f2d63a
VZ
5288 if test "$enableval" = yes; then
5289 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5290 else
5291 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5292 fi
a0b9e27f 5293
10f2d63a 5294else
a0b9e27f 5295
10f2d63a
VZ
5296 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5304
5305fi
10f2d63a
VZ
5306
5307
5308 eval "$ac_cv_use_mdi"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5314 echo "$ac_t""yes" 1>&6
10f2d63a 5315 else
a0b9e27f 5316 echo "$ac_t""no" 1>&6
10f2d63a 5317 fi
a0b9e27f 5318
698dcdb6 5319
5005acfe
VZ
5320 enablestring=
5321 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
dfa2a1d9 5322echo "configure:5323: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5323 no_cache=0
5324 # Check whether --enable-loggui or --disable-loggui was given.
5325if test "${enable_loggui+set}" = set; then
5326 enableval="$enable_loggui"
a0b9e27f 5327
1e6feb95
VZ
5328 if test "$enableval" = yes; then
5329 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5330 else
5331 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5332 fi
a0b9e27f 5333
1e6feb95 5334else
a0b9e27f 5335
1e6feb95
VZ
5336 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5344
5345fi
1e6feb95
VZ
5346
5347
5348 eval "$ac_cv_use_loggui"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5354 echo "$ac_t""yes" 1>&6
1e6feb95 5355 else
a0b9e27f 5356 echo "$ac_t""no" 1>&6
1e6feb95 5357 fi
a0b9e27f 5358
1e6feb95 5359
5005acfe
VZ
5360 enablestring=
5361 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
dfa2a1d9 5362echo "configure:5363: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5363 no_cache=0
5364 # Check whether --enable-logwin or --disable-logwin was given.
5365if test "${enable_logwin+set}" = set; then
5366 enableval="$enable_logwin"
a0b9e27f 5367
1e6feb95
VZ
5368 if test "$enableval" = yes; then
5369 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5370 else
5371 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5372 fi
a0b9e27f 5373
1e6feb95 5374else
a0b9e27f 5375
1e6feb95
VZ
5376 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5384
5385fi
1e6feb95
VZ
5386
5387
5388 eval "$ac_cv_use_logwin"
5389 if test "$no_cache" != 1; then
5390 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5391 fi
5392
5393 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5394 echo "$ac_t""yes" 1>&6
1e6feb95 5395 else
a0b9e27f 5396 echo "$ac_t""no" 1>&6
1e6feb95 5397 fi
a0b9e27f 5398
1e6feb95 5399
5005acfe
VZ
5400 enablestring=
5401 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
dfa2a1d9 5402echo "configure:5403: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5403 no_cache=0
5404 # Check whether --enable-logdialog or --disable-logdialog was given.
5405if test "${enable_logdialog+set}" = set; then
5406 enableval="$enable_logdialog"
a0b9e27f 5407
69d27ff7
MB
5408 if test "$enableval" = yes; then
5409 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5410 else
5411 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5412 fi
a0b9e27f 5413
69d27ff7 5414else
a0b9e27f 5415
69d27ff7
MB
5416 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5424
5425fi
69d27ff7
MB
5426
5427
5428 eval "$ac_cv_use_logdialog"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5434 echo "$ac_t""yes" 1>&6
69d27ff7 5435 else
a0b9e27f 5436 echo "$ac_t""no" 1>&6
69d27ff7 5437 fi
a0b9e27f 5438
8284b0c5 5439
52127426 5440
5005acfe
VZ
5441 enablestring=
5442 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
dfa2a1d9 5443echo "configure:5444: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5444 no_cache=0
5445 # Check whether --enable-postscript or --disable-postscript was given.
5446if test "${enable_postscript+set}" = set; then
5447 enableval="$enable_postscript"
a0b9e27f 5448
10f2d63a
VZ
5449 if test "$enableval" = yes; then
5450 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5451 else
5452 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5453 fi
a0b9e27f 5454
10f2d63a 5455else
a0b9e27f 5456
10f2d63a
VZ
5457 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5465
5466fi
10f2d63a
VZ
5467
5468
5469 eval "$ac_cv_use_postscript"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5475 echo "$ac_t""yes" 1>&6
10f2d63a 5476 else
a0b9e27f 5477 echo "$ac_t""no" 1>&6
10f2d63a 5478 fi
a0b9e27f 5479
8284b0c5
MB
5480
5481
52127426 5482
8284b0c5 5483
5005acfe
VZ
5484 enablestring=
5485 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
dfa2a1d9 5486echo "configure:5487: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5487 no_cache=0
5488 # Check whether --enable-resources or --disable-resources was given.
5489if test "${enable_resources+set}" = set; then
5490 enableval="$enable_resources"
a0b9e27f 5491
10f2d63a
VZ
5492 if test "$enableval" = yes; then
5493 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5494 else
5495 ac_cv_use_resources='wxUSE_RESOURCES=no'
5496 fi
a0b9e27f 5497
10f2d63a 5498else
a0b9e27f 5499
10f2d63a
VZ
5500 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5501 if test "x$LINE" != x ; then
5502 eval "DEFAULT_$LINE"
5503 else
5504 no_cache=1
5505 fi
5506
5507 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5508
5509fi
10f2d63a
VZ
5510
5511
5512 eval "$ac_cv_use_resources"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5518 echo "$ac_t""yes" 1>&6
10f2d63a 5519 else
a0b9e27f 5520 echo "$ac_t""no" 1>&6
10f2d63a 5521 fi
a0b9e27f 5522
8284b0c5 5523
52127426 5524
5005acfe
VZ
5525 enablestring=
5526 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
dfa2a1d9 5527echo "configure:5528: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5528 no_cache=0
5529 # Check whether --enable-xresources or --disable-xresources was given.
5530if test "${enable_xresources+set}" = set; then
5531 enableval="$enable_xresources"
a0b9e27f 5532
10f2d63a
VZ
5533 if test "$enableval" = yes; then
5534 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5535 else
5536 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5537 fi
a0b9e27f 5538
10f2d63a 5539else
a0b9e27f 5540
10f2d63a
VZ
5541 LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5549
5550fi
10f2d63a
VZ
5551
5552
5553 eval "$ac_cv_use_xresources"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_X_RESOURCES" = 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
8284b0c5
MB
5564
5565
52127426 5566
5005acfe
VZ
5567 enablestring=
5568 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
dfa2a1d9 5569echo "configure:5570: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5570 no_cache=0
5571 # Check whether --enable-clipboard or --disable-clipboard was given.
5572if test "${enable_clipboard+set}" = set; then
5573 enableval="$enable_clipboard"
a0b9e27f 5574
10f2d63a
VZ
5575 if test "$enableval" = yes; then
5576 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5577 else
5578 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5579 fi
a0b9e27f 5580
10f2d63a 5581else
a0b9e27f 5582
10f2d63a
VZ
5583 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5591
5592fi
10f2d63a
VZ
5593
5594
5595 eval "$ac_cv_use_clipboard"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5601 echo "$ac_t""yes" 1>&6
10f2d63a 5602 else
a0b9e27f 5603 echo "$ac_t""no" 1>&6
10f2d63a 5604 fi
a0b9e27f 5605
10f2d63a 5606
5005acfe
VZ
5607 enablestring=
5608 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
dfa2a1d9 5609echo "configure:5610: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5610 no_cache=0
5611 # Check whether --enable-dnd or --disable-dnd was given.
5612if test "${enable_dnd+set}" = set; then
5613 enableval="$enable_dnd"
a0b9e27f 5614
10f2d63a
VZ
5615 if test "$enableval" = yes; then
5616 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5617 else
5618 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5619 fi
a0b9e27f 5620
10f2d63a 5621else
a0b9e27f 5622
10f2d63a
VZ
5623 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5624 if test "x$LINE" != x ; then
5625 eval "DEFAULT_$LINE"
5626 else
5627 no_cache=1
5628 fi
5629
5630 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5631
5632fi
10f2d63a
VZ
5633
5634
5635 eval "$ac_cv_use_dnd"
5636 if test "$no_cache" != 1; then
5637 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5638 fi
5639
5640 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5641 echo "$ac_t""yes" 1>&6
10f2d63a 5642 else
a0b9e27f 5643 echo "$ac_t""no" 1>&6
10f2d63a 5644 fi
a0b9e27f 5645
10f2d63a 5646
5005acfe
VZ
5647 enablestring=
5648 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
dfa2a1d9 5649echo "configure:5650: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5650 no_cache=0
5651 # Check whether --enable-metafile or --disable-metafile was given.
5652if test "${enable_metafile+set}" = set; then
5653 enableval="$enable_metafile"
a0b9e27f 5654
b64f0a5f
RL
5655 if test "$enableval" = yes; then
5656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5657 else
5658 ac_cv_use_metafile='wxUSE_METAFILE=no'
5659 fi
a0b9e27f 5660
b64f0a5f 5661else
a0b9e27f 5662
b64f0a5f
RL
5663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5671
5672fi
b64f0a5f
RL
5673
5674
5675 eval "$ac_cv_use_metafile"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5681 echo "$ac_t""yes" 1>&6
b64f0a5f 5682 else
a0b9e27f 5683 echo "$ac_t""no" 1>&6
b64f0a5f 5684 fi
a0b9e27f 5685
52127426 5686
8284b0c5 5687
52127426 5688
8284b0c5 5689
5005acfe
VZ
5690 enablestring=
5691 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
dfa2a1d9 5692echo "configure:5693: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5693 no_cache=0
5694 # Check whether --enable-controls or --disable-controls was given.
5695if test "${enable_controls+set}" = set; then
5696 enableval="$enable_controls"
a0b9e27f 5697
10f2d63a
VZ
5698 if test "$enableval" = yes; then
5699 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5700 else
5701 ac_cv_use_controls='wxUSE_CONTROLS=no'
5702 fi
a0b9e27f 5703
10f2d63a 5704else
a0b9e27f 5705
10f2d63a
VZ
5706 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5707 if test "x$LINE" != x ; then
5708 eval "DEFAULT_$LINE"
5709 else
5710 no_cache=1
5711 fi
5712
5713 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5714
5715fi
10f2d63a
VZ
5716
5717
5718 eval "$ac_cv_use_controls"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5724 echo "$ac_t""yes" 1>&6
10f2d63a 5725 else
a0b9e27f 5726 echo "$ac_t""no" 1>&6
10f2d63a 5727 fi
a0b9e27f 5728
10f2d63a
VZ
5729
5730if test "$wxUSE_CONTROLS" = "yes"; then
5731 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5732 DEFAULT_wxUSE_BMPBUTTON=yes
5733 DEFAULT_wxUSE_BUTTON=yes
5734 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5735 DEFAULT_wxUSE_CARET=yes
5736 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5737 DEFAULT_wxUSE_CHECKBOX=yes
5738 DEFAULT_wxUSE_CHECKLISTBOX=yes
5739 DEFAULT_wxUSE_CHOICE=yes
5740 DEFAULT_wxUSE_GAUGE=yes
5741 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5742 DEFAULT_wxUSE_IMAGLIST=yes
5743 DEFAULT_wxUSE_LISTBOX=yes
5744 DEFAULT_wxUSE_LISTCTRL=yes
5745 DEFAULT_wxUSE_NOTEBOOK=yes
5746 DEFAULT_wxUSE_RADIOBOX=yes
5747 DEFAULT_wxUSE_RADIOBTN=yes
5748 DEFAULT_wxUSE_SASH=yes
5749 DEFAULT_wxUSE_SCROLLBAR=yes
5750 DEFAULT_wxUSE_SLIDER=yes
5751 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5752 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5753 DEFAULT_wxUSE_SPLITTER=yes
5754 DEFAULT_wxUSE_STATBMP=yes
5755 DEFAULT_wxUSE_STATBOX=yes
5756 DEFAULT_wxUSE_STATLINE=yes
5757 DEFAULT_wxUSE_STATUSBAR=yes
5758 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5759 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5760 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5763 DEFAULT_wxUSE_TOOLTIPS=yes
5764 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5765 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5766 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5767elif test "$wxUSE_CONTROLS" = "no"; then
5768 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5769 DEFAULT_wxUSE_BMPBUTTON=no
5770 DEFAULT_wxUSE_BUTTON=no
5771 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5772 DEFAULT_wxUSE_CARET=no
5773 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5774 DEFAULT_wxUSE_CHECKBOX=no
5775 DEFAULT_wxUSE_CHECKLISTBOX=no
5776 DEFAULT_wxUSE_CHOICE=no
5777 DEFAULT_wxUSE_GAUGE=no
5778 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5779 DEFAULT_wxUSE_IMAGLIST=no
5780 DEFAULT_wxUSE_LISTBOX=no
5781 DEFAULT_wxUSE_LISTCTRL=no
5782 DEFAULT_wxUSE_NOTEBOOK=no
5783 DEFAULT_wxUSE_RADIOBOX=no
5784 DEFAULT_wxUSE_RADIOBTN=no
5785 DEFAULT_wxUSE_SASH=no
5786 DEFAULT_wxUSE_SCROLLBAR=no
5787 DEFAULT_wxUSE_SLIDER=no
5788 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5789 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5790 DEFAULT_wxUSE_SPLITTER=no
5791 DEFAULT_wxUSE_STATBMP=no
5792 DEFAULT_wxUSE_STATBOX=no
5793 DEFAULT_wxUSE_STATLINE=no
5794 DEFAULT_wxUSE_STATUSBAR=no
5795 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5796 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5797 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5798 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5799 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5800 DEFAULT_wxUSE_TOOLTIPS=no
5801 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5802 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5803 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5804fi
5805
ac0c4cc3
DE
5806## FIXME: This is a blatant hack
5807if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5808 wxUSE_PRINTING_ARCHITECTURE=no
5809 wxUSE_HELP=no
5810 wxUSE_CLIPBOARD=no
5811 wxUSE_DRAG_AND_DROP=no
5812 wxUSE_DATAOBJ=no
5813 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5814 DEFAULT_wxUSE_TEXTDLG=no
5815 DEFAULT_wxUSE_GAUGE=no
5816 DEFAULT_wxUSE_SCROLLBAR=no
5817 DEFAULT_wxUSE_SLIDER=no
5818 DEFAULT_wxUSE_COMBOBOX=no
5819 DEFAULT_wxUSE_CALCTRL=no
5820 DEFAULT_wxUSE_SPINBTN=no
5821 DEFAULT_wxUSE_SPINCTRL=no
5822 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
5823 DEFAULT_wxUSE_COLOURDLG=no
5824 DEFAULT_wxUSE_DIRDLG=no
5825 DEFAULT_wxUSE_DRAGIMAGE=no
5826 DEFAULT_wxUSE_FINDREPLDLG=no
5827 DEFAULT_wxUSE_FONTDLG=no
5828 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5829 DEFAULT_wxUSE_NUMBERDLG=no
5830 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5831 DEFAULT_wxUSE_SASH=no
5832 DEFAULT_wxUSE_SPLITTER=no
5833 DEFAULT_wxUSE_WIZARDDLG=no
5834 DEFAULT_wxUSE_SPLITTER=no
5835 DEFAULT_wxUSE_STARTUP_TIPS=no
5836 DEFAULT_wxUSE_TREECTRL=no
5837fi
5838
8284b0c5 5839
5005acfe
VZ
5840 enablestring=
5841 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
dfa2a1d9 5842echo "configure:5843: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5843 no_cache=0
5844 # Check whether --enable-accel or --disable-accel was given.
5845if test "${enable_accel+set}" = set; then
5846 enableval="$enable_accel"
a0b9e27f 5847
10f2d63a
VZ
5848 if test "$enableval" = yes; then
5849 ac_cv_use_accel='wxUSE_ACCEL=yes'
5850 else
5851 ac_cv_use_accel='wxUSE_ACCEL=no'
5852 fi
a0b9e27f 5853
10f2d63a 5854else
a0b9e27f 5855
10f2d63a
VZ
5856 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5864
5865fi
10f2d63a
VZ
5866
5867
5868 eval "$ac_cv_use_accel"
5869 if test "$no_cache" != 1; then
5870 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5871 fi
5872
5873 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5874 echo "$ac_t""yes" 1>&6
10f2d63a 5875 else
a0b9e27f 5876 echo "$ac_t""no" 1>&6
10f2d63a 5877 fi
a0b9e27f 5878
10f2d63a 5879
5005acfe
VZ
5880 enablestring=
5881 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
dfa2a1d9 5882echo "configure:5883: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5883 no_cache=0
1e6feb95
VZ
5884 # Check whether --enable-button or --disable-button was given.
5885if test "${enable_button+set}" = set; then
5886 enableval="$enable_button"
a0b9e27f 5887
10f2d63a 5888 if test "$enableval" = yes; then
1e6feb95 5889 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5890 else
1e6feb95 5891 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5892 fi
a0b9e27f 5893
10f2d63a 5894else
a0b9e27f 5895
1e6feb95 5896 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
1e6feb95 5903 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5904
5905fi
10f2d63a
VZ
5906
5907
1e6feb95 5908 eval "$ac_cv_use_button"
10f2d63a 5909 if test "$no_cache" != 1; then
1e6feb95 5910 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5911 fi
5912
1e6feb95 5913 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5914 echo "$ac_t""yes" 1>&6
10f2d63a 5915 else
a0b9e27f 5916 echo "$ac_t""no" 1>&6
10f2d63a 5917 fi
a0b9e27f 5918
10f2d63a 5919
5005acfe
VZ
5920 enablestring=
5921 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
dfa2a1d9 5922echo "configure:5923: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5923 no_cache=0
5924 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5925if test "${enable_bmpbutton+set}" = set; then
5926 enableval="$enable_bmpbutton"
a0b9e27f 5927
10f2d63a
VZ
5928 if test "$enableval" = yes; then
5929 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5930 else
5931 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5932 fi
a0b9e27f 5933
10f2d63a 5934else
a0b9e27f 5935
10f2d63a
VZ
5936 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5944
5945fi
10f2d63a
VZ
5946
5947
5948 eval "$ac_cv_use_bmpbutton"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5954 echo "$ac_t""yes" 1>&6
10f2d63a 5955 else
a0b9e27f 5956 echo "$ac_t""no" 1>&6
10f2d63a 5957 fi
a0b9e27f 5958
10f2d63a 5959
5005acfe
VZ
5960 enablestring=
5961 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
dfa2a1d9 5962echo "configure:5963: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
5963 no_cache=0
5964 # Check whether --enable-calendar or --disable-calendar was given.
5965if test "${enable_calendar+set}" = set; then
5966 enableval="$enable_calendar"
a0b9e27f 5967
1e6feb95
VZ
5968 if test "$enableval" = yes; then
5969 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5970 else
5971 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5972 fi
a0b9e27f 5973
1e6feb95 5974else
a0b9e27f 5975
1e6feb95
VZ
5976 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5984
5985fi
1e6feb95
VZ
5986
5987
5988 eval "$ac_cv_use_calendar"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 5994 echo "$ac_t""yes" 1>&6
1e6feb95 5995 else
a0b9e27f 5996 echo "$ac_t""no" 1>&6
1e6feb95 5997 fi
a0b9e27f 5998
1e6feb95 5999
5005acfe
VZ
6000 enablestring=
6001 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
dfa2a1d9 6002echo "configure:6003: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6003 no_cache=0
6004 # Check whether --enable-caret or --disable-caret was given.
6005if test "${enable_caret+set}" = set; then
6006 enableval="$enable_caret"
a0b9e27f 6007
1e6feb95
VZ
6008 if test "$enableval" = yes; then
6009 ac_cv_use_caret='wxUSE_CARET=yes'
6010 else
6011 ac_cv_use_caret='wxUSE_CARET=no'
6012 fi
a0b9e27f 6013
1e6feb95 6014else
a0b9e27f 6015
1e6feb95
VZ
6016 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6017 if test "x$LINE" != x ; then
6018 eval "DEFAULT_$LINE"
6019 else
6020 no_cache=1
6021 fi
6022
6023 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6024
6025fi
1e6feb95
VZ
6026
6027
6028 eval "$ac_cv_use_caret"
6029 if test "$no_cache" != 1; then
6030 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6031 fi
6032
6033 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6034 echo "$ac_t""yes" 1>&6
1e6feb95 6035 else
a0b9e27f 6036 echo "$ac_t""no" 1>&6
1e6feb95 6037 fi
a0b9e27f 6038
1e6feb95 6039
5005acfe
VZ
6040 enablestring=
6041 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
dfa2a1d9 6042echo "configure:6043: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6043 no_cache=0
6044 # Check whether --enable-checkbox or --disable-checkbox was given.
6045if test "${enable_checkbox+set}" = set; then
6046 enableval="$enable_checkbox"
a0b9e27f 6047
10f2d63a
VZ
6048 if test "$enableval" = yes; then
6049 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6050 else
6051 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6052 fi
a0b9e27f 6053
10f2d63a 6054else
a0b9e27f 6055
10f2d63a
VZ
6056 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6064
6065fi
10f2d63a
VZ
6066
6067
6068 eval "$ac_cv_use_checkbox"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6074 echo "$ac_t""yes" 1>&6
10f2d63a 6075 else
a0b9e27f 6076 echo "$ac_t""no" 1>&6
10f2d63a 6077 fi
a0b9e27f 6078
10f2d63a 6079
5005acfe
VZ
6080 enablestring=
6081 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
dfa2a1d9 6082echo "configure:6083: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6083 no_cache=0
6084 # Check whether --enable-checklst or --disable-checklst was given.
6085if test "${enable_checklst+set}" = set; then
6086 enableval="$enable_checklst"
a0b9e27f 6087
10f2d63a
VZ
6088 if test "$enableval" = yes; then
6089 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6090 else
6091 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6092 fi
a0b9e27f 6093
10f2d63a 6094else
a0b9e27f 6095
10f2d63a
VZ
6096 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6097 if test "x$LINE" != x ; then
6098 eval "DEFAULT_$LINE"
6099 else
6100 no_cache=1
6101 fi
6102
6103 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6104
6105fi
10f2d63a
VZ
6106
6107
6108 eval "$ac_cv_use_checklst"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6114 echo "$ac_t""yes" 1>&6
10f2d63a 6115 else
a0b9e27f 6116 echo "$ac_t""no" 1>&6
10f2d63a 6117 fi
a0b9e27f 6118
10f2d63a 6119
5005acfe
VZ
6120 enablestring=
6121 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
dfa2a1d9 6122echo "configure:6123: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6123 no_cache=0
6124 # Check whether --enable-choice or --disable-choice was given.
6125if test "${enable_choice+set}" = set; then
6126 enableval="$enable_choice"
a0b9e27f 6127
10f2d63a
VZ
6128 if test "$enableval" = yes; then
6129 ac_cv_use_choice='wxUSE_CHOICE=yes'
6130 else
6131 ac_cv_use_choice='wxUSE_CHOICE=no'
6132 fi
a0b9e27f 6133
10f2d63a 6134else
a0b9e27f 6135
10f2d63a
VZ
6136 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6137 if test "x$LINE" != x ; then
6138 eval "DEFAULT_$LINE"
6139 else
6140 no_cache=1
6141 fi
6142
6143 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6144
6145fi
10f2d63a
VZ
6146
6147
6148 eval "$ac_cv_use_choice"
6149 if test "$no_cache" != 1; then
6150 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6151 fi
6152
6153 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6154 echo "$ac_t""yes" 1>&6
10f2d63a 6155 else
a0b9e27f 6156 echo "$ac_t""no" 1>&6
10f2d63a 6157 fi
a0b9e27f 6158
10f2d63a 6159
5005acfe
VZ
6160 enablestring=
6161 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
dfa2a1d9 6162echo "configure:6163: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6163 no_cache=0
6164 # Check whether --enable-combobox or --disable-combobox was given.
6165if test "${enable_combobox+set}" = set; then
6166 enableval="$enable_combobox"
a0b9e27f 6167
10f2d63a
VZ
6168 if test "$enableval" = yes; then
6169 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6170 else
6171 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6172 fi
a0b9e27f 6173
10f2d63a 6174else
a0b9e27f 6175
10f2d63a
VZ
6176 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6177 if test "x$LINE" != x ; then
6178 eval "DEFAULT_$LINE"
6179 else
6180 no_cache=1
6181 fi
6182
6183 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6184
6185fi
10f2d63a
VZ
6186
6187
6188 eval "$ac_cv_use_combobox"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6194 echo "$ac_t""yes" 1>&6
10f2d63a 6195 else
a0b9e27f 6196 echo "$ac_t""no" 1>&6
10f2d63a 6197 fi
a0b9e27f 6198
10f2d63a 6199
da494b40
MB
6200 enablestring=
6201 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
dfa2a1d9 6202echo "configure:6203: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6203 no_cache=0
6204 # Check whether --enable-display or --disable-display was given.
6205if test "${enable_display+set}" = set; then
6206 enableval="$enable_display"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_display='wxUSE_DISPLAY=yes'
6210 else
6211 ac_cv_use_display='wxUSE_DISPLAY=no'
6212 fi
6213
6214else
6215
6216 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6224
6225fi
6226
6227
6228 eval "$ac_cv_use_display"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_DISPLAY" = yes; then
6234 echo "$ac_t""yes" 1>&6
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238
6239
5005acfe
VZ
6240 enablestring=
6241 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
dfa2a1d9 6242echo "configure:6243: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6243 no_cache=0
6244 # Check whether --enable-gauge or --disable-gauge was given.
6245if test "${enable_gauge+set}" = set; then
6246 enableval="$enable_gauge"
a0b9e27f 6247
10f2d63a
VZ
6248 if test "$enableval" = yes; then
6249 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6250 else
6251 ac_cv_use_gauge='wxUSE_GAUGE=no'
6252 fi
a0b9e27f 6253
10f2d63a 6254else
a0b9e27f 6255
10f2d63a
VZ
6256 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
6263 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6264
6265fi
10f2d63a
VZ
6266
6267
6268 eval "$ac_cv_use_gauge"
6269 if test "$no_cache" != 1; then
6270 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6271 fi
6272
6273 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6274 echo "$ac_t""yes" 1>&6
10f2d63a 6275 else
a0b9e27f 6276 echo "$ac_t""no" 1>&6
10f2d63a 6277 fi
a0b9e27f 6278
10f2d63a 6279
5005acfe
VZ
6280 enablestring=
6281 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
dfa2a1d9 6282echo "configure:6283: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6283 no_cache=0
6284 # Check whether --enable-grid or --disable-grid was given.
6285if test "${enable_grid+set}" = set; then
6286 enableval="$enable_grid"
a0b9e27f 6287
10f2d63a
VZ
6288 if test "$enableval" = yes; then
6289 ac_cv_use_grid='wxUSE_GRID=yes'
6290 else
6291 ac_cv_use_grid='wxUSE_GRID=no'
6292 fi
a0b9e27f 6293
10f2d63a 6294else
a0b9e27f 6295
10f2d63a
VZ
6296 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6304
6305fi
10f2d63a
VZ
6306
6307
6308 eval "$ac_cv_use_grid"
6309 if test "$no_cache" != 1; then
6310 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6311 fi
6312
6313 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6314 echo "$ac_t""yes" 1>&6
10f2d63a 6315 else
a0b9e27f 6316 echo "$ac_t""no" 1>&6
10f2d63a 6317 fi
a0b9e27f 6318
10f2d63a 6319
5005acfe
VZ
6320 enablestring=
6321 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
dfa2a1d9 6322echo "configure:6323: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6323 no_cache=0
6324 # Check whether --enable-imaglist or --disable-imaglist was given.
6325if test "${enable_imaglist+set}" = set; then
6326 enableval="$enable_imaglist"
a0b9e27f 6327
10f2d63a
VZ
6328 if test "$enableval" = yes; then
6329 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6330 else
6331 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6332 fi
a0b9e27f 6333
10f2d63a 6334else
a0b9e27f 6335
10f2d63a
VZ
6336 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6344
6345fi
10f2d63a
VZ
6346
6347
6348 eval "$ac_cv_use_imaglist"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6354 echo "$ac_t""yes" 1>&6
10f2d63a 6355 else
a0b9e27f 6356 echo "$ac_t""no" 1>&6
10f2d63a 6357 fi
a0b9e27f 6358
10f2d63a 6359
5005acfe
VZ
6360 enablestring=
6361 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
dfa2a1d9 6362echo "configure:6363: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6363 no_cache=0
6364 # Check whether --enable-listbox or --disable-listbox was given.
6365if test "${enable_listbox+set}" = set; then
6366 enableval="$enable_listbox"
a0b9e27f 6367
10f2d63a
VZ
6368 if test "$enableval" = yes; then
6369 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6370 else
6371 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6372 fi
a0b9e27f 6373
10f2d63a 6374else
a0b9e27f 6375
10f2d63a
VZ
6376 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6377 if test "x$LINE" != x ; then
6378 eval "DEFAULT_$LINE"
6379 else
6380 no_cache=1
6381 fi
6382
6383 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6384
6385fi
10f2d63a
VZ
6386
6387
6388 eval "$ac_cv_use_listbox"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6394 echo "$ac_t""yes" 1>&6
10f2d63a 6395 else
a0b9e27f 6396 echo "$ac_t""no" 1>&6
10f2d63a 6397 fi
a0b9e27f 6398
10f2d63a 6399
5005acfe
VZ
6400 enablestring=
6401 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
dfa2a1d9 6402echo "configure:6403: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6403 no_cache=0
6404 # Check whether --enable-listctrl or --disable-listctrl was given.
6405if test "${enable_listctrl+set}" = set; then
6406 enableval="$enable_listctrl"
a0b9e27f 6407
10f2d63a
VZ
6408 if test "$enableval" = yes; then
6409 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6410 else
6411 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6412 fi
a0b9e27f 6413
10f2d63a 6414else
a0b9e27f 6415
10f2d63a
VZ
6416 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
6423 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6424
6425fi
10f2d63a
VZ
6426
6427
6428 eval "$ac_cv_use_listctrl"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6434 echo "$ac_t""yes" 1>&6
10f2d63a 6435 else
a0b9e27f 6436 echo "$ac_t""no" 1>&6
10f2d63a 6437 fi
a0b9e27f 6438
10f2d63a 6439
5005acfe
VZ
6440 enablestring=
6441 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
dfa2a1d9 6442echo "configure:6443: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6443 no_cache=0
6444 # Check whether --enable-notebook or --disable-notebook was given.
6445if test "${enable_notebook+set}" = set; then
6446 enableval="$enable_notebook"
a0b9e27f 6447
10f2d63a
VZ
6448 if test "$enableval" = yes; then
6449 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6450 else
6451 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6452 fi
a0b9e27f 6453
10f2d63a 6454else
a0b9e27f 6455
10f2d63a
VZ
6456 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6464
6465fi
10f2d63a
VZ
6466
6467
6468 eval "$ac_cv_use_notebook"
6469 if test "$no_cache" != 1; then
6470 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6471 fi
6472
6473 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6474 echo "$ac_t""yes" 1>&6
10f2d63a 6475 else
a0b9e27f 6476 echo "$ac_t""no" 1>&6
10f2d63a 6477 fi
a0b9e27f 6478
10f2d63a 6479
5005acfe
VZ
6480 enablestring=
6481 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
dfa2a1d9 6482echo "configure:6483: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6483 no_cache=0
6484 # Check whether --enable-radiobox or --disable-radiobox was given.
6485if test "${enable_radiobox+set}" = set; then
6486 enableval="$enable_radiobox"
a0b9e27f 6487
10f2d63a
VZ
6488 if test "$enableval" = yes; then
6489 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6490 else
6491 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6492 fi
a0b9e27f 6493
10f2d63a 6494else
a0b9e27f 6495
10f2d63a
VZ
6496 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6497 if test "x$LINE" != x ; then
6498 eval "DEFAULT_$LINE"
6499 else
6500 no_cache=1
6501 fi
6502
6503 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6504
6505fi
10f2d63a
VZ
6506
6507
6508 eval "$ac_cv_use_radiobox"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6514 echo "$ac_t""yes" 1>&6
10f2d63a 6515 else
a0b9e27f 6516 echo "$ac_t""no" 1>&6
10f2d63a 6517 fi
a0b9e27f 6518
10f2d63a 6519
5005acfe
VZ
6520 enablestring=
6521 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
dfa2a1d9 6522echo "configure:6523: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6523 no_cache=0
6524 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6525if test "${enable_radiobtn+set}" = set; then
6526 enableval="$enable_radiobtn"
a0b9e27f 6527
10f2d63a
VZ
6528 if test "$enableval" = yes; then
6529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6530 else
6531 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6532 fi
a0b9e27f 6533
10f2d63a 6534else
a0b9e27f 6535
10f2d63a
VZ
6536 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6537 if test "x$LINE" != x ; then
6538 eval "DEFAULT_$LINE"
6539 else
6540 no_cache=1
6541 fi
6542
6543 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6544
6545fi
10f2d63a
VZ
6546
6547
6548 eval "$ac_cv_use_radiobtn"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6554 echo "$ac_t""yes" 1>&6
10f2d63a 6555 else
a0b9e27f 6556 echo "$ac_t""no" 1>&6
10f2d63a 6557 fi
a0b9e27f 6558
10f2d63a 6559
5005acfe
VZ
6560 enablestring=
6561 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
dfa2a1d9 6562echo "configure:6563: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6563 no_cache=0
6564 # Check whether --enable-sash or --disable-sash was given.
6565if test "${enable_sash+set}" = set; then
6566 enableval="$enable_sash"
a0b9e27f 6567
10f2d63a
VZ
6568 if test "$enableval" = yes; then
6569 ac_cv_use_sash='wxUSE_SASH=yes'
6570 else
6571 ac_cv_use_sash='wxUSE_SASH=no'
6572 fi
a0b9e27f 6573
10f2d63a 6574else
a0b9e27f 6575
10f2d63a
VZ
6576 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6584
6585fi
10f2d63a
VZ
6586
6587
6588 eval "$ac_cv_use_sash"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6594 echo "$ac_t""yes" 1>&6
10f2d63a 6595 else
a0b9e27f 6596 echo "$ac_t""no" 1>&6
10f2d63a 6597 fi
a0b9e27f 6598
10f2d63a 6599
5005acfe
VZ
6600 enablestring=
6601 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
dfa2a1d9 6602echo "configure:6603: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6603 no_cache=0
6604 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6605if test "${enable_scrollbar+set}" = set; then
6606 enableval="$enable_scrollbar"
a0b9e27f 6607
10f2d63a
VZ
6608 if test "$enableval" = yes; then
6609 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6610 else
6611 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6612 fi
a0b9e27f 6613
10f2d63a 6614else
a0b9e27f 6615
10f2d63a
VZ
6616 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6617 if test "x$LINE" != x ; then
6618 eval "DEFAULT_$LINE"
6619 else
6620 no_cache=1
6621 fi
6622
6623 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6624
6625fi
10f2d63a
VZ
6626
6627
6628 eval "$ac_cv_use_scrollbar"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6634 echo "$ac_t""yes" 1>&6
10f2d63a 6635 else
a0b9e27f 6636 echo "$ac_t""no" 1>&6
10f2d63a 6637 fi
a0b9e27f 6638
10f2d63a 6639
5005acfe
VZ
6640 enablestring=
6641 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
dfa2a1d9 6642echo "configure:6643: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6643 no_cache=0
6644 # Check whether --enable-slider or --disable-slider was given.
6645if test "${enable_slider+set}" = set; then
6646 enableval="$enable_slider"
a0b9e27f 6647
10f2d63a
VZ
6648 if test "$enableval" = yes; then
6649 ac_cv_use_slider='wxUSE_SLIDER=yes'
6650 else
6651 ac_cv_use_slider='wxUSE_SLIDER=no'
6652 fi
a0b9e27f 6653
10f2d63a 6654else
a0b9e27f 6655
10f2d63a
VZ
6656 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6657 if test "x$LINE" != x ; then
6658 eval "DEFAULT_$LINE"
6659 else
6660 no_cache=1
6661 fi
6662
6663 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6664
6665fi
10f2d63a
VZ
6666
6667
6668 eval "$ac_cv_use_slider"
6669 if test "$no_cache" != 1; then
6670 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6671 fi
6672
6673 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6674 echo "$ac_t""yes" 1>&6
10f2d63a 6675 else
a0b9e27f 6676 echo "$ac_t""no" 1>&6
10f2d63a 6677 fi
a0b9e27f 6678
10f2d63a 6679
5005acfe
VZ
6680 enablestring=
6681 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
dfa2a1d9 6682echo "configure:6683: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6683 no_cache=0
6684 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6685if test "${enable_spinbtn+set}" = set; then
6686 enableval="$enable_spinbtn"
a0b9e27f 6687
10f2d63a
VZ
6688 if test "$enableval" = yes; then
6689 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6690 else
6691 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6692 fi
a0b9e27f 6693
10f2d63a 6694else
a0b9e27f 6695
10f2d63a
VZ
6696 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6704
6705fi
10f2d63a
VZ
6706
6707
6708 eval "$ac_cv_use_spinbtn"
6709 if test "$no_cache" != 1; then
6710 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6711 fi
6712
6713 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6714 echo "$ac_t""yes" 1>&6
10f2d63a 6715 else
a0b9e27f 6716 echo "$ac_t""no" 1>&6
10f2d63a 6717 fi
a0b9e27f 6718
10f2d63a 6719
5005acfe
VZ
6720 enablestring=
6721 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
dfa2a1d9 6722echo "configure:6723: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6723 no_cache=0
6724 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6725if test "${enable_spinctrl+set}" = set; then
6726 enableval="$enable_spinctrl"
a0b9e27f 6727
56cfaa52
RR
6728 if test "$enableval" = yes; then
6729 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6730 else
6731 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6732 fi
a0b9e27f 6733
56cfaa52 6734else
a0b9e27f 6735
56cfaa52
RR
6736 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6737 if test "x$LINE" != x ; then
6738 eval "DEFAULT_$LINE"
6739 else
6740 no_cache=1
6741 fi
6742
6743 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6744
6745fi
56cfaa52
RR
6746
6747
6748 eval "$ac_cv_use_spinctrl"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6754 echo "$ac_t""yes" 1>&6
56cfaa52 6755 else
a0b9e27f 6756 echo "$ac_t""no" 1>&6
56cfaa52 6757 fi
a0b9e27f 6758
56cfaa52 6759
5005acfe
VZ
6760 enablestring=
6761 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
dfa2a1d9 6762echo "configure:6763: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6763 no_cache=0
6764 # Check whether --enable-splitter or --disable-splitter was given.
6765if test "${enable_splitter+set}" = set; then
6766 enableval="$enable_splitter"
a0b9e27f 6767
10f2d63a
VZ
6768 if test "$enableval" = yes; then
6769 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6770 else
6771 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6772 fi
a0b9e27f 6773
10f2d63a 6774else
a0b9e27f 6775
10f2d63a
VZ
6776 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6784
6785fi
10f2d63a
VZ
6786
6787
6788 eval "$ac_cv_use_splitter"
6789 if test "$no_cache" != 1; then
6790 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6791 fi
6792
6793 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6794 echo "$ac_t""yes" 1>&6
10f2d63a 6795 else
a0b9e27f 6796 echo "$ac_t""no" 1>&6
10f2d63a 6797 fi
a0b9e27f 6798
10f2d63a 6799
5005acfe
VZ
6800 enablestring=
6801 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
dfa2a1d9 6802echo "configure:6803: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6803 no_cache=0
6804 # Check whether --enable-statbmp or --disable-statbmp was given.
6805if test "${enable_statbmp+set}" = set; then
6806 enableval="$enable_statbmp"
a0b9e27f 6807
10f2d63a
VZ
6808 if test "$enableval" = yes; then
6809 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6810 else
6811 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6812 fi
a0b9e27f 6813
10f2d63a 6814else
a0b9e27f 6815
10f2d63a
VZ
6816 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6824
6825fi
10f2d63a
VZ
6826
6827
6828 eval "$ac_cv_use_statbmp"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6834 echo "$ac_t""yes" 1>&6
10f2d63a 6835 else
a0b9e27f 6836 echo "$ac_t""no" 1>&6
10f2d63a 6837 fi
a0b9e27f 6838
10f2d63a 6839
5005acfe
VZ
6840 enablestring=
6841 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
dfa2a1d9 6842echo "configure:6843: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6843 no_cache=0
6844 # Check whether --enable-statbox or --disable-statbox was given.
6845if test "${enable_statbox+set}" = set; then
6846 enableval="$enable_statbox"
a0b9e27f 6847
10f2d63a
VZ
6848 if test "$enableval" = yes; then
6849 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6850 else
6851 ac_cv_use_statbox='wxUSE_STATBOX=no'
6852 fi
a0b9e27f 6853
10f2d63a 6854else
a0b9e27f 6855
10f2d63a
VZ
6856 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6864
6865fi
10f2d63a
VZ
6866
6867
6868 eval "$ac_cv_use_statbox"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6874 echo "$ac_t""yes" 1>&6
10f2d63a 6875 else
a0b9e27f 6876 echo "$ac_t""no" 1>&6
10f2d63a 6877 fi
a0b9e27f 6878
10f2d63a 6879
5005acfe
VZ
6880 enablestring=
6881 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
dfa2a1d9 6882echo "configure:6883: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6883 no_cache=0
6884 # Check whether --enable-statline or --disable-statline was given.
6885if test "${enable_statline+set}" = set; then
6886 enableval="$enable_statline"
a0b9e27f 6887
10f2d63a
VZ
6888 if test "$enableval" = yes; then
6889 ac_cv_use_statline='wxUSE_STATLINE=yes'
6890 else
6891 ac_cv_use_statline='wxUSE_STATLINE=no'
6892 fi
a0b9e27f 6893
10f2d63a 6894else
a0b9e27f 6895
10f2d63a
VZ
6896 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6904
6905fi
10f2d63a
VZ
6906
6907
6908 eval "$ac_cv_use_statline"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6914 echo "$ac_t""yes" 1>&6
10f2d63a 6915 else
a0b9e27f 6916 echo "$ac_t""no" 1>&6
10f2d63a 6917 fi
a0b9e27f 6918
10f2d63a 6919
5005acfe
VZ
6920 enablestring=
6921 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
dfa2a1d9 6922echo "configure:6923: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
6923 no_cache=0
6924 # Check whether --enable-stattext or --disable-stattext was given.
6925if test "${enable_stattext+set}" = set; then
6926 enableval="$enable_stattext"
a0b9e27f 6927
1e6feb95
VZ
6928 if test "$enableval" = yes; then
6929 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6930 else
6931 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6932 fi
a0b9e27f 6933
1e6feb95 6934else
a0b9e27f 6935
1e6feb95
VZ
6936 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6944
6945fi
1e6feb95
VZ
6946
6947
6948 eval "$ac_cv_use_stattext"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6954 echo "$ac_t""yes" 1>&6
1e6feb95 6955 else
a0b9e27f 6956 echo "$ac_t""no" 1>&6
1e6feb95 6957 fi
a0b9e27f 6958
1e6feb95 6959
5005acfe
VZ
6960 enablestring=
6961 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
dfa2a1d9 6962echo "configure:6963: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
6963 no_cache=0
6964 # Check whether --enable-statusbar or --disable-statusbar was given.
6965if test "${enable_statusbar+set}" = set; then
6966 enableval="$enable_statusbar"
a0b9e27f 6967
10f2d63a
VZ
6968 if test "$enableval" = yes; then
6969 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6970 else
6971 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6972 fi
a0b9e27f 6973
10f2d63a 6974else
a0b9e27f 6975
10f2d63a
VZ
6976 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6984
6985fi
10f2d63a
VZ
6986
6987
6988 eval "$ac_cv_use_statusbar"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 6994 echo "$ac_t""yes" 1>&6
10f2d63a 6995 else
a0b9e27f 6996 echo "$ac_t""no" 1>&6
10f2d63a 6997 fi
a0b9e27f 6998
10f2d63a 6999
5005acfe
VZ
7000 enablestring=
7001 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
dfa2a1d9 7002echo "configure:7003: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7003 no_cache=0
7004 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7005if test "${enable_tabdialog+set}" = set; then
7006 enableval="$enable_tabdialog"
a0b9e27f 7007
10f2d63a
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7010 else
7011 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7012 fi
a0b9e27f 7013
10f2d63a 7014else
a0b9e27f 7015
10f2d63a
VZ
7016 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7024
7025fi
10f2d63a
VZ
7026
7027
7028 eval "$ac_cv_use_tabdialog"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7034 echo "$ac_t""yes" 1>&6
10f2d63a 7035 else
a0b9e27f 7036 echo "$ac_t""no" 1>&6
10f2d63a 7037 fi
a0b9e27f 7038
10f2d63a 7039
5005acfe
VZ
7040 enablestring=
7041 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
dfa2a1d9 7042echo "configure:7043: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7043 no_cache=0
7044 # Check whether --enable-textctrl or --disable-textctrl was given.
7045if test "${enable_textctrl+set}" = set; then
7046 enableval="$enable_textctrl"
a0b9e27f 7047
1e6feb95
VZ
7048 if test "$enableval" = yes; then
7049 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7050 else
7051 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7052 fi
a0b9e27f 7053
1e6feb95 7054else
a0b9e27f 7055
1e6feb95
VZ
7056 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7064
7065fi
1e6feb95
VZ
7066
7067
7068 eval "$ac_cv_use_textctrl"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7074 echo "$ac_t""yes" 1>&6
1e6feb95 7075 else
a0b9e27f 7076 echo "$ac_t""no" 1>&6
1e6feb95 7077 fi
a0b9e27f 7078
1e6feb95 7079
5005acfe
VZ
7080 enablestring=
7081 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
dfa2a1d9 7082echo "configure:7083: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7083 no_cache=0
7084 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7085if test "${enable_togglebtn+set}" = set; then
7086 enableval="$enable_togglebtn"
a0b9e27f 7087
1db8dc4a
VZ
7088 if test "$enableval" = yes; then
7089 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7090 else
7091 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7092 fi
a0b9e27f 7093
1db8dc4a 7094else
a0b9e27f 7095
1db8dc4a
VZ
7096 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
7103 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7104
7105fi
1db8dc4a
VZ
7106
7107
7108 eval "$ac_cv_use_togglebtn"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7114 echo "$ac_t""yes" 1>&6
1db8dc4a 7115 else
a0b9e27f 7116 echo "$ac_t""no" 1>&6
1db8dc4a 7117 fi
a0b9e27f 7118
1db8dc4a 7119
5005acfe
VZ
7120 enablestring=
7121 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
dfa2a1d9 7122echo "configure:7123: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7123 no_cache=0
7124 # Check whether --enable-toolbar or --disable-toolbar was given.
7125if test "${enable_toolbar+set}" = set; then
7126 enableval="$enable_toolbar"
a0b9e27f 7127
10f2d63a
VZ
7128 if test "$enableval" = yes; then
7129 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7130 else
7131 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7132 fi
a0b9e27f 7133
10f2d63a 7134else
a0b9e27f 7135
10f2d63a
VZ
7136 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7144
7145fi
10f2d63a
VZ
7146
7147
7148 eval "$ac_cv_use_toolbar"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7154 echo "$ac_t""yes" 1>&6
10f2d63a 7155 else
a0b9e27f 7156 echo "$ac_t""no" 1>&6
10f2d63a 7157 fi
a0b9e27f 7158
10f2d63a 7159
5005acfe
VZ
7160 enablestring=
7161 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
dfa2a1d9 7162echo "configure:7163: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7163 no_cache=0
7164 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7165if test "${enable_tbarnative+set}" = set; then
7166 enableval="$enable_tbarnative"
a0b9e27f 7167
360d6699
VZ
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7170 else
7171 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7172 fi
a0b9e27f 7173
360d6699 7174else
a0b9e27f 7175
360d6699
VZ
7176 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7177 if test "x$LINE" != x ; then
7178 eval "DEFAULT_$LINE"
7179 else
7180 no_cache=1
7181 fi
7182
7183 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7184
7185fi
360d6699
VZ
7186
7187
7188 eval "$ac_cv_use_tbarnative"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7194 echo "$ac_t""yes" 1>&6
360d6699 7195 else
a0b9e27f 7196 echo "$ac_t""no" 1>&6
360d6699 7197 fi
a0b9e27f 7198
360d6699 7199
5005acfe
VZ
7200 enablestring=
7201 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
dfa2a1d9 7202echo "configure:7203: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7203 no_cache=0
7204 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7205if test "${enable_tbarsmpl+set}" = set; then
7206 enableval="$enable_tbarsmpl"
a0b9e27f 7207
360d6699
VZ
7208 if test "$enableval" = yes; then
7209 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7210 else
7211 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7212 fi
a0b9e27f 7213
360d6699 7214else
a0b9e27f 7215
360d6699
VZ
7216 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
7223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7224
7225fi
360d6699
VZ
7226
7227
7228 eval "$ac_cv_use_tbarsmpl"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7234 echo "$ac_t""yes" 1>&6
360d6699 7235 else
a0b9e27f 7236 echo "$ac_t""no" 1>&6
360d6699 7237 fi
a0b9e27f 7238
360d6699 7239
5005acfe
VZ
7240 enablestring=
7241 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
dfa2a1d9 7242echo "configure:7243: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7243 no_cache=0
7244 # Check whether --enable-treectrl or --disable-treectrl was given.
7245if test "${enable_treectrl+set}" = set; then
7246 enableval="$enable_treectrl"
a0b9e27f 7247
10f2d63a
VZ
7248 if test "$enableval" = yes; then
7249 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7250 else
7251 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7252 fi
a0b9e27f 7253
10f2d63a 7254else
a0b9e27f 7255
10f2d63a
VZ
7256 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7264
7265fi
10f2d63a
VZ
7266
7267
1e6feb95
VZ
7268 eval "$ac_cv_use_treectrl"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7274 echo "$ac_t""yes" 1>&6
1e6feb95 7275 else
a0b9e27f 7276 echo "$ac_t""no" 1>&6
1e6feb95 7277 fi
a0b9e27f 7278
1e6feb95 7279
5005acfe
VZ
7280 enablestring=
7281 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
dfa2a1d9 7282echo "configure:7283: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7283 no_cache=0
7284 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7285if test "${enable_tipwindow+set}" = set; then
7286 enableval="$enable_tipwindow"
a0b9e27f 7287
9926e4a4
VZ
7288 if test "$enableval" = yes; then
7289 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7290 else
7291 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7292 fi
a0b9e27f 7293
9926e4a4 7294else
a0b9e27f 7295
9926e4a4
VZ
7296 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7304
7305fi
9926e4a4
VZ
7306
7307
7308 eval "$ac_cv_use_tipwindow"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7314 echo "$ac_t""yes" 1>&6
9926e4a4 7315 else
a0b9e27f 7316 echo "$ac_t""no" 1>&6
9926e4a4 7317 fi
a0b9e27f 7318
9926e4a4 7319
5005acfe
VZ
7320 enablestring=
7321 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
dfa2a1d9 7322echo "configure:7323: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7323 no_cache=0
7324 # Check whether --enable-popupwin or --disable-popupwin was given.
7325if test "${enable_popupwin+set}" = set; then
7326 enableval="$enable_popupwin"
a0b9e27f 7327
9f41d601
RR
7328 if test "$enableval" = yes; then
7329 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7330 else
7331 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7332 fi
a0b9e27f 7333
9f41d601 7334else
a0b9e27f 7335
9f41d601
RR
7336 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7344
7345fi
9f41d601
RR
7346
7347
7348 eval "$ac_cv_use_popupwin"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7354 echo "$ac_t""yes" 1>&6
9f41d601 7355 else
a0b9e27f 7356 echo "$ac_t""no" 1>&6
9f41d601 7357 fi
a0b9e27f 7358
52127426 7359
8284b0c5
MB
7360
7361
5005acfe
VZ
7362 enablestring=
7363 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
dfa2a1d9 7364echo "configure:7365: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7365 no_cache=0
7366 # Check whether --enable-commondlg or --disable-commondlg was given.
7367if test "${enable_commondlg+set}" = set; then
7368 enableval="$enable_commondlg"
a0b9e27f 7369
1e6feb95
VZ
7370 if test "$enableval" = yes; then
7371 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7372 else
7373 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7374 fi
a0b9e27f 7375
1e6feb95 7376else
a0b9e27f 7377
1e6feb95
VZ
7378 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7386
7387fi
1e6feb95
VZ
7388
7389
7390 eval "$ac_cv_use_commondlg"
7391 if test "$no_cache" != 1; then
7392 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7393 fi
7394
7395 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7396 echo "$ac_t""yes" 1>&6
1e6feb95 7397 else
a0b9e27f 7398 echo "$ac_t""no" 1>&6
1e6feb95 7399 fi
a0b9e27f 7400
1e6feb95 7401
5005acfe
VZ
7402 enablestring=
7403 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
dfa2a1d9 7404echo "configure:7405: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7405 no_cache=0
7406 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7407if test "${enable_choicedlg+set}" = set; then
7408 enableval="$enable_choicedlg"
a0b9e27f 7409
1e6feb95
VZ
7410 if test "$enableval" = yes; then
7411 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7412 else
7413 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7414 fi
a0b9e27f 7415
1e6feb95 7416else
a0b9e27f 7417
1e6feb95
VZ
7418 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7426
7427fi
1e6feb95
VZ
7428
7429
7430 eval "$ac_cv_use_choicedlg"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7436 echo "$ac_t""yes" 1>&6
1e6feb95 7437 else
a0b9e27f 7438 echo "$ac_t""no" 1>&6
1e6feb95 7439 fi
a0b9e27f 7440
1e6feb95 7441
5005acfe
VZ
7442 enablestring=
7443 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
dfa2a1d9 7444echo "configure:7445: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7445 no_cache=0
7446 # Check whether --enable-coldlg or --disable-coldlg was given.
7447if test "${enable_coldlg+set}" = set; then
7448 enableval="$enable_coldlg"
a0b9e27f 7449
1e6feb95
VZ
7450 if test "$enableval" = yes; then
7451 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7452 else
7453 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7454 fi
a0b9e27f 7455
1e6feb95 7456else
a0b9e27f 7457
1e6feb95
VZ
7458 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7466
7467fi
1e6feb95
VZ
7468
7469
7470 eval "$ac_cv_use_coldlg"
7471 if test "$no_cache" != 1; then
7472 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7473 fi
7474
7475 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7476 echo "$ac_t""yes" 1>&6
1e6feb95 7477 else
a0b9e27f 7478 echo "$ac_t""no" 1>&6
1e6feb95 7479 fi
a0b9e27f 7480
1e6feb95 7481
5005acfe
VZ
7482 enablestring=
7483 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
dfa2a1d9 7484echo "configure:7485: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7485 no_cache=0
7486 # Check whether --enable-filedlg or --disable-filedlg was given.
7487if test "${enable_filedlg+set}" = set; then
7488 enableval="$enable_filedlg"
a0b9e27f 7489
1e6feb95
VZ
7490 if test "$enableval" = yes; then
7491 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7492 else
7493 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7494 fi
a0b9e27f 7495
1e6feb95 7496else
a0b9e27f 7497
1e6feb95
VZ
7498 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7506
7507fi
1e6feb95
VZ
7508
7509
7510 eval "$ac_cv_use_filedlg"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7516 echo "$ac_t""yes" 1>&6
1e6feb95 7517 else
a0b9e27f 7518 echo "$ac_t""no" 1>&6
1e6feb95 7519 fi
a0b9e27f 7520
1e6feb95 7521
5005acfe
VZ
7522 enablestring=
7523 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
dfa2a1d9 7524echo "configure:7525: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7525 no_cache=0
69d27ff7
MB
7526 # Check whether --enable-finddlg or --disable-finddlg was given.
7527if test "${enable_finddlg+set}" = set; then
7528 enableval="$enable_finddlg"
a0b9e27f 7529
8db37e06 7530 if test "$enableval" = yes; then
69d27ff7 7531 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7532 else
69d27ff7 7533 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7534 fi
a0b9e27f 7535
8db37e06 7536else
a0b9e27f 7537
8db37e06
VZ
7538 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
69d27ff7 7545 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7546
7547fi
8db37e06
VZ
7548
7549
69d27ff7 7550 eval "$ac_cv_use_finddlg"
8db37e06 7551 if test "$no_cache" != 1; then
69d27ff7 7552 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7553 fi
7554
7555 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7556 echo "$ac_t""yes" 1>&6
8db37e06 7557 else
a0b9e27f 7558 echo "$ac_t""no" 1>&6
8db37e06 7559 fi
a0b9e27f 7560
8db37e06 7561
5005acfe
VZ
7562 enablestring=
7563 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
dfa2a1d9 7564echo "configure:7565: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7565 no_cache=0
7566 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7567if test "${enable_fontdlg+set}" = set; then
7568 enableval="$enable_fontdlg"
a0b9e27f 7569
1e6feb95
VZ
7570 if test "$enableval" = yes; then
7571 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7572 else
7573 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7574 fi
a0b9e27f 7575
1e6feb95 7576else
a0b9e27f 7577
1e6feb95
VZ
7578 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7586
7587fi
1e6feb95
VZ
7588
7589
7590 eval "$ac_cv_use_fontdlg"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7596 echo "$ac_t""yes" 1>&6
1e6feb95 7597 else
a0b9e27f 7598 echo "$ac_t""no" 1>&6
1e6feb95 7599 fi
a0b9e27f 7600
1e6feb95 7601
5005acfe
VZ
7602 enablestring=
7603 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
dfa2a1d9 7604echo "configure:7605: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7605 no_cache=0
7606 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7607if test "${enable_dirdlg+set}" = set; then
7608 enableval="$enable_dirdlg"
a0b9e27f 7609
1e6feb95
VZ
7610 if test "$enableval" = yes; then
7611 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7612 else
7613 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7614 fi
a0b9e27f 7615
1e6feb95 7616else
a0b9e27f 7617
1e6feb95
VZ
7618 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7626
7627fi
1e6feb95
VZ
7628
7629
7630 eval "$ac_cv_use_dirdlg"
10f2d63a 7631 if test "$no_cache" != 1; then
1e6feb95 7632 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7633 fi
7634
1e6feb95 7635 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7636 echo "$ac_t""yes" 1>&6
10f2d63a 7637 else
a0b9e27f 7638 echo "$ac_t""no" 1>&6
10f2d63a 7639 fi
a0b9e27f 7640
698dcdb6 7641
5005acfe
VZ
7642 enablestring=
7643 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
dfa2a1d9 7644echo "configure:7645: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7645 no_cache=0
1e6feb95
VZ
7646 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7647if test "${enable_msgdlg+set}" = set; then
7648 enableval="$enable_msgdlg"
a0b9e27f 7649
10f2d63a 7650 if test "$enableval" = yes; then
1e6feb95 7651 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7652 else
1e6feb95 7653 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7654 fi
a0b9e27f 7655
10f2d63a 7656else
a0b9e27f 7657
1e6feb95 7658 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
1e6feb95 7665 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7666
7667fi
10f2d63a
VZ
7668
7669
1e6feb95 7670 eval "$ac_cv_use_msgdlg"
10f2d63a 7671 if test "$no_cache" != 1; then
1e6feb95 7672 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7673 fi
7674
1e6feb95 7675 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7676 echo "$ac_t""yes" 1>&6
10f2d63a 7677 else
a0b9e27f 7678 echo "$ac_t""no" 1>&6
10f2d63a 7679 fi
a0b9e27f 7680
10f2d63a 7681
5005acfe
VZ
7682 enablestring=
7683 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
dfa2a1d9 7684echo "configure:7685: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7685 no_cache=0
1e6feb95
VZ
7686 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7687if test "${enable_numberdlg+set}" = set; then
7688 enableval="$enable_numberdlg"
a0b9e27f 7689
10f2d63a 7690 if test "$enableval" = yes; then
1e6feb95 7691 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7692 else
1e6feb95 7693 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7694 fi
a0b9e27f 7695
10f2d63a 7696else
a0b9e27f 7697
1e6feb95 7698 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
1e6feb95 7705 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7706
7707fi
10f2d63a
VZ
7708
7709
1e6feb95 7710 eval "$ac_cv_use_numberdlg"
10f2d63a 7711 if test "$no_cache" != 1; then
1e6feb95 7712 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7713 fi
7714
1e6feb95 7715 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7716 echo "$ac_t""yes" 1>&6
10f2d63a 7717 else
a0b9e27f 7718 echo "$ac_t""no" 1>&6
10f2d63a 7719 fi
a0b9e27f 7720
10f2d63a 7721
5005acfe
VZ
7722 enablestring=
7723 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
dfa2a1d9 7724echo "configure:7725: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7725 no_cache=0
7726 # Check whether --enable-splash or --disable-splash was given.
7727if test "${enable_splash+set}" = set; then
7728 enableval="$enable_splash"
a0b9e27f 7729
cbca9943
VZ
7730 if test "$enableval" = yes; then
7731 ac_cv_use_splash='wxUSE_SPLASH=yes'
7732 else
7733 ac_cv_use_splash='wxUSE_SPLASH=no'
7734 fi
a0b9e27f 7735
cbca9943 7736else
a0b9e27f 7737
cbca9943
VZ
7738 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7746
7747fi
cbca9943
VZ
7748
7749
7750 eval "$ac_cv_use_splash"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7756 echo "$ac_t""yes" 1>&6
cbca9943 7757 else
a0b9e27f 7758 echo "$ac_t""no" 1>&6
cbca9943 7759 fi
a0b9e27f 7760
cbca9943 7761
5005acfe
VZ
7762 enablestring=
7763 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
dfa2a1d9 7764echo "configure:7765: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7765 no_cache=0
7766 # Check whether --enable-textdlg or --disable-textdlg was given.
7767if test "${enable_textdlg+set}" = set; then
7768 enableval="$enable_textdlg"
a0b9e27f 7769
10f2d63a
VZ
7770 if test "$enableval" = yes; then
7771 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7772 else
7773 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7774 fi
a0b9e27f 7775
10f2d63a 7776else
a0b9e27f 7777
10f2d63a
VZ
7778 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7779 if test "x$LINE" != x ; then
7780 eval "DEFAULT_$LINE"
7781 else
7782 no_cache=1
7783 fi
7784
7785 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7786
7787fi
10f2d63a
VZ
7788
7789
7790 eval "$ac_cv_use_textdlg"
7791 if test "$no_cache" != 1; then
7792 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7793 fi
7794
7795 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7796 echo "$ac_t""yes" 1>&6
10f2d63a 7797 else
a0b9e27f 7798 echo "$ac_t""no" 1>&6
10f2d63a 7799 fi
a0b9e27f 7800
10f2d63a 7801
5005acfe
VZ
7802 enablestring=
7803 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
dfa2a1d9 7804echo "configure:7805: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7805 no_cache=0
7806 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7807if test "${enable_tipdlg+set}" = set; then
7808 enableval="$enable_tipdlg"
a0b9e27f 7809
10f2d63a
VZ
7810 if test "$enableval" = yes; then
7811 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7812 else
7813 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7814 fi
a0b9e27f 7815
10f2d63a 7816else
a0b9e27f 7817
10f2d63a
VZ
7818 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7826
7827fi
10f2d63a
VZ
7828
7829
7830 eval "$ac_cv_use_tipdlg"
7831 if test "$no_cache" != 1; then
7832 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7833 fi
7834
7835 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7836 echo "$ac_t""yes" 1>&6
10f2d63a 7837 else
a0b9e27f 7838 echo "$ac_t""no" 1>&6
10f2d63a 7839 fi
a0b9e27f 7840
10f2d63a 7841
5005acfe
VZ
7842 enablestring=
7843 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
dfa2a1d9 7844echo "configure:7845: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7845 no_cache=0
7846 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7847if test "${enable_progressdlg+set}" = set; then
7848 enableval="$enable_progressdlg"
a0b9e27f 7849
10f2d63a
VZ
7850 if test "$enableval" = yes; then
7851 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7852 else
7853 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7854 fi
a0b9e27f 7855
10f2d63a 7856else
a0b9e27f 7857
10f2d63a
VZ
7858 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7866
7867fi
10f2d63a
VZ
7868
7869
7870 eval "$ac_cv_use_progressdlg"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7876 echo "$ac_t""yes" 1>&6
10f2d63a 7877 else
a0b9e27f 7878 echo "$ac_t""no" 1>&6
10f2d63a 7879 fi
a0b9e27f 7880
10f2d63a 7881
5005acfe
VZ
7882 enablestring=
7883 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
dfa2a1d9 7884echo "configure:7885: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7885 no_cache=0
7886 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7887if test "${enable_wizarddlg+set}" = set; then
7888 enableval="$enable_wizarddlg"
a0b9e27f 7889
b1f5d087
VZ
7890 if test "$enableval" = yes; then
7891 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7892 else
7893 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7894 fi
a0b9e27f 7895
b1f5d087 7896else
a0b9e27f 7897
b1f5d087
VZ
7898 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7899 if test "x$LINE" != x ; then
7900 eval "DEFAULT_$LINE"
7901 else
7902 no_cache=1
7903 fi
7904
7905 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7906
7907fi
b1f5d087
VZ
7908
7909
7910 eval "$ac_cv_use_wizarddlg"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7916 echo "$ac_t""yes" 1>&6
b1f5d087 7917 else
a0b9e27f 7918 echo "$ac_t""no" 1>&6
b1f5d087 7919 fi
a0b9e27f 7920
8284b0c5
MB
7921
7922
52127426 7923
5005acfe
VZ
7924 enablestring=
7925 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
dfa2a1d9 7926echo "configure:7927: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
7927 no_cache=0
7928 # Check whether --enable-menus or --disable-menus was given.
7929if test "${enable_menus+set}" = set; then
7930 enableval="$enable_menus"
a0b9e27f 7931
1e6feb95
VZ
7932 if test "$enableval" = yes; then
7933 ac_cv_use_menus='wxUSE_MENUS=yes'
7934 else
7935 ac_cv_use_menus='wxUSE_MENUS=no'
7936 fi
a0b9e27f 7937
1e6feb95 7938else
a0b9e27f 7939
1e6feb95
VZ
7940 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7948
7949fi
1e6feb95
VZ
7950
7951
7952 eval "$ac_cv_use_menus"
7953 if test "$no_cache" != 1; then
7954 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7955 fi
7956
7957 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7958 echo "$ac_t""yes" 1>&6
1e6feb95 7959 else
a0b9e27f 7960 echo "$ac_t""no" 1>&6
1e6feb95 7961 fi
a0b9e27f 7962
1e6feb95 7963
5005acfe
VZ
7964 enablestring=
7965 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
dfa2a1d9 7966echo "configure:7967: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
7967 no_cache=0
7968 # Check whether --enable-miniframe or --disable-miniframe was given.
7969if test "${enable_miniframe+set}" = set; then
7970 enableval="$enable_miniframe"
a0b9e27f 7971
10f2d63a
VZ
7972 if test "$enableval" = yes; then
7973 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7974 else
7975 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7976 fi
a0b9e27f 7977
10f2d63a 7978else
a0b9e27f 7979
10f2d63a
VZ
7980 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
7988
7989fi
10f2d63a
VZ
7990
7991
7992 eval "$ac_cv_use_miniframe"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 7998 echo "$ac_t""yes" 1>&6
10f2d63a 7999 else
a0b9e27f 8000 echo "$ac_t""no" 1>&6
10f2d63a 8001 fi
a0b9e27f 8002
10f2d63a 8003
5005acfe
VZ
8004 enablestring=
8005 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
dfa2a1d9 8006echo "configure:8007: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8007 no_cache=0
8008 # Check whether --enable-tooltips or --disable-tooltips was given.
8009if test "${enable_tooltips+set}" = set; then
8010 enableval="$enable_tooltips"
a0b9e27f 8011
10f2d63a
VZ
8012 if test "$enableval" = yes; then
8013 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8014 else
8015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8016 fi
a0b9e27f 8017
10f2d63a 8018else
a0b9e27f 8019
10f2d63a
VZ
8020 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8028
8029fi
10f2d63a
VZ
8030
8031
8032 eval "$ac_cv_use_tooltips"
8033 if test "$no_cache" != 1; then
8034 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8035 fi
8036
8037 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8038 echo "$ac_t""yes" 1>&6
10f2d63a 8039 else
a0b9e27f 8040 echo "$ac_t""no" 1>&6
10f2d63a 8041 fi
a0b9e27f 8042
10f2d63a 8043
5005acfe
VZ
8044 enablestring=
8045 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
dfa2a1d9 8046echo "configure:8047: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8047 no_cache=0
8048 # Check whether --enable-splines or --disable-splines was given.
8049if test "${enable_splines+set}" = set; then
8050 enableval="$enable_splines"
a0b9e27f 8051
10f2d63a
VZ
8052 if test "$enableval" = yes; then
8053 ac_cv_use_splines='wxUSE_SPLINES=yes'
8054 else
8055 ac_cv_use_splines='wxUSE_SPLINES=no'
8056 fi
a0b9e27f 8057
10f2d63a 8058else
a0b9e27f 8059
10f2d63a
VZ
8060 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8068
8069fi
10f2d63a
VZ
8070
8071
8072 eval "$ac_cv_use_splines"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8078 echo "$ac_t""yes" 1>&6
10f2d63a 8079 else
a0b9e27f 8080 echo "$ac_t""no" 1>&6
10f2d63a 8081 fi
a0b9e27f 8082
10f2d63a 8083
5005acfe
VZ
8084 enablestring=
8085 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
dfa2a1d9 8086echo "configure:8087: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8087 no_cache=0
8088 # Check whether --enable-validators or --disable-validators was given.
8089if test "${enable_validators+set}" = set; then
8090 enableval="$enable_validators"
a0b9e27f 8091
10f2d63a
VZ
8092 if test "$enableval" = yes; then
8093 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8094 else
8095 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8096 fi
a0b9e27f 8097
10f2d63a 8098else
a0b9e27f 8099
10f2d63a
VZ
8100 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8108
8109fi
10f2d63a
VZ
8110
8111
8112 eval "$ac_cv_use_validators"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8118 echo "$ac_t""yes" 1>&6
10f2d63a 8119 else
a0b9e27f 8120 echo "$ac_t""no" 1>&6
10f2d63a 8121 fi
a0b9e27f 8122
10f2d63a 8123
5005acfe
VZ
8124 enablestring=
8125 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
dfa2a1d9 8126echo "configure:8127: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8127 no_cache=0
8128 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8129if test "${enable_busyinfo+set}" = set; then
8130 enableval="$enable_busyinfo"
a0b9e27f 8131
10f2d63a
VZ
8132 if test "$enableval" = yes; then
8133 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8134 else
8135 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8136 fi
a0b9e27f 8137
10f2d63a 8138else
a0b9e27f 8139
10f2d63a
VZ
8140 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8141 if test "x$LINE" != x ; then
8142 eval "DEFAULT_$LINE"
8143 else
8144 no_cache=1
8145 fi
8146
8147 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8148
8149fi
10f2d63a
VZ
8150
8151
8152 eval "$ac_cv_use_busyinfo"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8158 echo "$ac_t""yes" 1>&6
10f2d63a 8159 else
a0b9e27f 8160 echo "$ac_t""no" 1>&6
10f2d63a 8161 fi
a0b9e27f 8162
10f2d63a 8163
5005acfe
VZ
8164 enablestring=
8165 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
dfa2a1d9 8166echo "configure:8167: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8167 no_cache=0
8168 # Check whether --enable-joystick or --disable-joystick was given.
8169if test "${enable_joystick+set}" = set; then
8170 enableval="$enable_joystick"
a0b9e27f 8171
f6bcfd97
BP
8172 if test "$enableval" = yes; then
8173 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8174 else
8175 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8176 fi
a0b9e27f 8177
f6bcfd97 8178else
a0b9e27f 8179
f6bcfd97
BP
8180 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8181 if test "x$LINE" != x ; then
8182 eval "DEFAULT_$LINE"
8183 else
8184 no_cache=1
8185 fi
8186
8187 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8188
8189fi
f6bcfd97
BP
8190
8191
8192 eval "$ac_cv_use_joystick"
8193 if test "$no_cache" != 1; then
8194 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8195 fi
8196
8197 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8198 echo "$ac_t""yes" 1>&6
f6bcfd97 8199 else
a0b9e27f 8200 echo "$ac_t""no" 1>&6
f6bcfd97 8201 fi
a0b9e27f 8202
698dcdb6 8203
5005acfe
VZ
8204 enablestring=
8205 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
dfa2a1d9 8206echo "configure:8207: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8207 no_cache=0
8208 # Check whether --enable-metafile or --disable-metafile was given.
8209if test "${enable_metafile+set}" = set; then
8210 enableval="$enable_metafile"
a0b9e27f 8211
1e6feb95
VZ
8212 if test "$enableval" = yes; then
8213 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8214 else
8215 ac_cv_use_metafile='wxUSE_METAFILE=no'
8216 fi
a0b9e27f 8217
1e6feb95 8218else
a0b9e27f 8219
1e6feb95
VZ
8220 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8228
8229fi
1e6feb95
VZ
8230
8231
8232 eval "$ac_cv_use_metafile"
8233 if test "$no_cache" != 1; then
8234 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8235 fi
8236
8237 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8238 echo "$ac_t""yes" 1>&6
1e6feb95 8239 else
a0b9e27f 8240 echo "$ac_t""no" 1>&6
1e6feb95 8241 fi
a0b9e27f 8242
1e6feb95 8243
5005acfe
VZ
8244 enablestring=
8245 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
dfa2a1d9 8246echo "configure:8247: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8247 no_cache=0
8248 # Check whether --enable-dragimage or --disable-dragimage was given.
8249if test "${enable_dragimage+set}" = set; then
8250 enableval="$enable_dragimage"
a0b9e27f 8251
24fd6d87
VZ
8252 if test "$enableval" = yes; then
8253 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8254 else
8255 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8256 fi
a0b9e27f 8257
24fd6d87 8258else
a0b9e27f 8259
24fd6d87
VZ
8260 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8268
8269fi
24fd6d87
VZ
8270
8271
8272 eval "$ac_cv_use_dragimage"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8278 echo "$ac_t""yes" 1>&6
24fd6d87 8279 else
a0b9e27f 8280 echo "$ac_t""no" 1>&6
24fd6d87 8281 fi
a0b9e27f 8282
52127426 8283
8284b0c5
MB
8284
8285
5005acfe
VZ
8286 enablestring=
8287 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
dfa2a1d9 8288echo "configure:8289: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8289 no_cache=0
8290 # Check whether --enable-palette or --disable-palette was given.
8291if test "${enable_palette+set}" = set; then
8292 enableval="$enable_palette"
a0b9e27f 8293
edae8572
VZ
8294 if test "$enableval" = yes; then
8295 ac_cv_use_palette='wxUSE_PALETTE=yes'
8296 else
8297 ac_cv_use_palette='wxUSE_PALETTE=no'
8298 fi
a0b9e27f 8299
edae8572 8300else
a0b9e27f 8301
edae8572
VZ
8302 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8310
8311fi
edae8572
VZ
8312
8313
8314 eval "$ac_cv_use_palette"
8315 if test "$no_cache" != 1; then
8316 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8317 fi
8318
8319 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8320 echo "$ac_t""yes" 1>&6
edae8572 8321 else
a0b9e27f 8322 echo "$ac_t""no" 1>&6
edae8572 8323 fi
a0b9e27f 8324
edae8572 8325
5005acfe
VZ
8326 enablestring=
8327 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
dfa2a1d9 8328echo "configure:8329: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8329 no_cache=0
8330 # Check whether --enable-image or --disable-image was given.
8331if test "${enable_image+set}" = set; then
8332 enableval="$enable_image"
a0b9e27f 8333
0046ff7c
VS
8334 if test "$enableval" = yes; then
8335 ac_cv_use_image='wxUSE_IMAGE=yes'
8336 else
8337 ac_cv_use_image='wxUSE_IMAGE=no'
8338 fi
a0b9e27f 8339
0046ff7c 8340else
a0b9e27f 8341
0046ff7c
VS
8342 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8350
8351fi
0046ff7c
VS
8352
8353
8354 eval "$ac_cv_use_image"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8360 echo "$ac_t""yes" 1>&6
0046ff7c 8361 else
a0b9e27f 8362 echo "$ac_t""no" 1>&6
0046ff7c 8363 fi
a0b9e27f 8364
0046ff7c 8365
5005acfe
VZ
8366 enablestring=
8367 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
dfa2a1d9 8368echo "configure:8369: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8369 no_cache=0
8370 # Check whether --enable-gif or --disable-gif was given.
8371if test "${enable_gif+set}" = set; then
8372 enableval="$enable_gif"
a0b9e27f 8373
10f2d63a
VZ
8374 if test "$enableval" = yes; then
8375 ac_cv_use_gif='wxUSE_GIF=yes'
8376 else
8377 ac_cv_use_gif='wxUSE_GIF=no'
8378 fi
a0b9e27f 8379
10f2d63a 8380else
a0b9e27f 8381
10f2d63a
VZ
8382 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8383 if test "x$LINE" != x ; then
8384 eval "DEFAULT_$LINE"
8385 else
8386 no_cache=1
8387 fi
8388
8389 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8390
8391fi
10f2d63a
VZ
8392
8393
8394 eval "$ac_cv_use_gif"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8400 echo "$ac_t""yes" 1>&6
10f2d63a 8401 else
a0b9e27f 8402 echo "$ac_t""no" 1>&6
10f2d63a 8403 fi
a0b9e27f 8404
10f2d63a 8405
5005acfe
VZ
8406 enablestring=
8407 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
dfa2a1d9 8408echo "configure:8409: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8409 no_cache=0
8410 # Check whether --enable-pcx or --disable-pcx was given.
8411if test "${enable_pcx+set}" = set; then
8412 enableval="$enable_pcx"
a0b9e27f 8413
10f2d63a
VZ
8414 if test "$enableval" = yes; then
8415 ac_cv_use_pcx='wxUSE_PCX=yes'
8416 else
8417 ac_cv_use_pcx='wxUSE_PCX=no'
8418 fi
a0b9e27f 8419
10f2d63a 8420else
a0b9e27f 8421
10f2d63a
VZ
8422 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8430
8431fi
10f2d63a
VZ
8432
8433
8434 eval "$ac_cv_use_pcx"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8440 echo "$ac_t""yes" 1>&6
10f2d63a 8441 else
a0b9e27f 8442 echo "$ac_t""no" 1>&6
10f2d63a 8443 fi
a0b9e27f 8444
10f2d63a 8445
5005acfe
VZ
8446 enablestring=
8447 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
dfa2a1d9 8448echo "configure:8449: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8449 no_cache=0
8450 # Check whether --enable-iff or --disable-iff was given.
8451if test "${enable_iff+set}" = set; then
8452 enableval="$enable_iff"
a0b9e27f 8453
4b6b4dfc
RR
8454 if test "$enableval" = yes; then
8455 ac_cv_use_iff='wxUSE_IFF=yes'
8456 else
8457 ac_cv_use_iff='wxUSE_IFF=no'
8458 fi
a0b9e27f 8459
4b6b4dfc 8460else
a0b9e27f 8461
4b6b4dfc
RR
8462 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8463 if test "x$LINE" != x ; then
8464 eval "DEFAULT_$LINE"
8465 else
8466 no_cache=1
8467 fi
8468
8469 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8470
8471fi
4b6b4dfc
RR
8472
8473
8474 eval "$ac_cv_use_iff"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8480 echo "$ac_t""yes" 1>&6
4b6b4dfc 8481 else
a0b9e27f 8482 echo "$ac_t""no" 1>&6
4b6b4dfc 8483 fi
a0b9e27f 8484
4b6b4dfc 8485
5005acfe
VZ
8486 enablestring=
8487 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
dfa2a1d9 8488echo "configure:8489: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8489 no_cache=0
8490 # Check whether --enable-pnm or --disable-pnm was given.
8491if test "${enable_pnm+set}" = set; then
8492 enableval="$enable_pnm"
a0b9e27f 8493
10f2d63a
VZ
8494 if test "$enableval" = yes; then
8495 ac_cv_use_pnm='wxUSE_PNM=yes'
8496 else
8497 ac_cv_use_pnm='wxUSE_PNM=no'
8498 fi
a0b9e27f 8499
10f2d63a 8500else
a0b9e27f 8501
10f2d63a
VZ
8502 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8510
8511fi
10f2d63a
VZ
8512
8513
8514 eval "$ac_cv_use_pnm"
8515 if test "$no_cache" != 1; then
8516 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8517 fi
8518
8519 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8520 echo "$ac_t""yes" 1>&6
10f2d63a 8521 else
a0b9e27f 8522 echo "$ac_t""no" 1>&6
10f2d63a 8523 fi
a0b9e27f 8524
10f2d63a 8525
5005acfe
VZ
8526 enablestring=
8527 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
dfa2a1d9 8528echo "configure:8529: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8529 no_cache=0
69d27ff7
MB
8530 # Check whether --enable-xpm or --disable-xpm was given.
8531if test "${enable_xpm+set}" = set; then
8532 enableval="$enable_xpm"
a0b9e27f 8533
0046ff7c 8534 if test "$enableval" = yes; then
69d27ff7 8535 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8536 else
69d27ff7 8537 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8538 fi
a0b9e27f 8539
0046ff7c 8540else
a0b9e27f 8541
0046ff7c
VS
8542 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
69d27ff7 8549 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8550
8551fi
0046ff7c
VS
8552
8553
69d27ff7 8554 eval "$ac_cv_use_xpm"
0046ff7c 8555 if test "$no_cache" != 1; then
69d27ff7 8556 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8557 fi
8558
8559 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8560 echo "$ac_t""yes" 1>&6
0046ff7c 8561 else
a0b9e27f 8562 echo "$ac_t""no" 1>&6
0046ff7c 8563 fi
a0b9e27f 8564
0046ff7c 8565
5005acfe
VZ
8566 enablestring=
8567 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
dfa2a1d9 8568echo "configure:8569: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8569 no_cache=0
c7206e64
VS
8570 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8571if test "${enable_ico_cur+set}" = set; then
8572 enableval="$enable_ico_cur"
a0b9e27f 8573
658974ae 8574 if test "$enableval" = yes; then
c7206e64 8575 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8576 else
c7206e64 8577 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8578 fi
a0b9e27f 8579
658974ae 8580else
a0b9e27f 8581
658974ae
VS
8582 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
c7206e64 8589 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8590
8591fi
658974ae
VS
8592
8593
c7206e64 8594 eval "$ac_cv_use_ico_cur"
658974ae 8595 if test "$no_cache" != 1; then
c7206e64 8596 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8597 fi
8598
8599 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8600 echo "$ac_t""yes" 1>&6
658974ae 8601 else
a0b9e27f 8602 echo "$ac_t""no" 1>&6
658974ae 8603 fi
a0b9e27f 8604
658974ae 8605
b12915c1
VZ
8606fi
8607
d558c907
VS
8608case "${host}" in
8609 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8610 PATH_IFS=';'
8611 LEX_STEM="lexyy"
d558c907
VS
8612 ;;
8613 *)
8614 PATH_IFS=':'
8615 LEX_STEM="lex.yy"
8616 ;;
8617esac
8618
8284b0c5
MB
8619
8620
10f2d63a
VZ
8621 echo "saving argument cache $wx_arg_cache_file"
8622 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8623
52127426 8624
8284b0c5 8625
a0b9e27f 8626echo $ac_n "checking for toolkit""... $ac_c" 1>&6
dfa2a1d9 8627echo "configure:8628: checking for toolkit" >&5
89e6bf6d
VZ
8628
8629# In Wine, we need to default to MSW, not GTK or MOTIF
8630if test "$wxUSE_WINE" = "yes"; then
8631 DEFAULT_DEFAULT_wxUSE_GTK=0
8632 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8633 DEFAULT_DEFAULT_wxUSE_MSW=1
8634fi
10f2d63a
VZ
8635
8636if test "$wxUSE_GUI" = "yes"; then
8637
3a922bb4 8638 if test "$USE_BEOS" = 1; then
a0b9e27f 8639 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8640 fi
b12915c1 8641
3a922bb4
RL
8642 if test "$TOOLKIT_GIVEN" = 1; then
8643 for toolkit in `echo $ALL_TOOLKITS`; do
8644 var=wxUSE_$toolkit
8645 eval "value=\$${var}"
8646 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8647 done
10f2d63a 8648 else
3a922bb4
RL
8649 for toolkit in `echo $ALL_TOOLKITS`; do
8650 if test "$has_toolkit_in_cache" != 1; then
8651 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8652 else
8653 var=DEFAULT_wxUSE_$toolkit
8654 fi
8655 eval "wxUSE_$toolkit=\$${var}"
8656 done
10f2d63a 8657 fi
10f2d63a 8658
ac0c4cc3
DE
8659 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8660 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8661 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8662
d558c907 8663 case "${host}" in
6fa882bd 8664 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8665 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8666 esac
10f2d63a 8667
3a922bb4
RL
8668 case "$NUM_TOOLKITS" in
8669 1)
8670 ;;
8671 0)
a0b9e27f 8672 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8673 ;;
8674 *)
a0b9e27f 8675 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8676 esac
10f2d63a 8677
3a922bb4
RL
8678 for toolkit in `echo $ALL_TOOLKITS`; do
8679 var=wxUSE_$toolkit
8680 eval "value=\$${var}"
8681 if test "x$value" != x; then
8682 cache_var=CACHE_$toolkit
8683 eval "cache=\$${cache_var}"
8684 if test "$cache" = 1; then
8685 echo "$var=$value" >> ${wx_arg_cache_file}
8686 fi
8687 if test "$value" = 1; then
8688 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8689 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8690 fi
8691 fi
8692 done
10f2d63a 8693else
a0b9e27f 8694 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8695fi
8696
43d99b6d
VS
8697wants_win32=0
8698doesnt_want_win32=0
17234b26
MB
8699case "${host}" in
8700 *-*-cygwin*)
8701 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8702 wants_win32=1
8703 else
8704 doesnt_want_win32=1
17234b26
MB
8705 fi
8706 ;;
8707 *-*-mingw*)
43d99b6d 8708 wants_win32=1
17234b26
MB
8709 ;;
8710esac
8711
89e6bf6d
VZ
8712if test "$wxUSE_WINE" = "yes"; then
8713 wants_win32=1
8714 CC=winegcc
8715 CXX=wineg++
8716 RESCOMP=wrc
8717fi
8718
43d99b6d 8719if test "$wants_win32" = 1 ; then
17234b26
MB
8720 USE_UNIX=0
8721 USE_WIN32=1
a0b9e27f 8722 cat >> confdefs.h <<\EOF
17234b26 8723#define __WIN32__ 1
a0b9e27f 8724EOF
17234b26 8725
a0b9e27f 8726 cat >> confdefs.h <<\EOF
17234b26 8727#define __WIN95__ 1
a0b9e27f 8728EOF
17234b26 8729
a0b9e27f 8730 cat >> confdefs.h <<\EOF
17234b26 8731#define __WINDOWS__ 1
a0b9e27f 8732EOF
17234b26 8733
a0b9e27f 8734 cat >> confdefs.h <<\EOF
17234b26 8735#define __GNUWIN32__ 1
a0b9e27f 8736EOF
17234b26 8737
a0b9e27f 8738 cat >> confdefs.h <<\EOF
17234b26 8739#define STRICT 1
a0b9e27f 8740EOF
17234b26 8741
a0b9e27f 8742 cat >> confdefs.h <<\EOF
17234b26 8743#define WINVER 0x0400
a0b9e27f 8744EOF
17234b26 8745
43d99b6d
VS
8746fi
8747if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8748 USE_UNIX=1
8749 USE_WIN32=0
8750fi
8751
8752if test "$USE_UNIX" = 1 ; then
8753 wxUSE_UNIX=yes
a0b9e27f 8754 cat >> confdefs.h <<\EOF
17234b26 8755#define __UNIX__ 1
a0b9e27f 8756EOF
17234b26
MB
8757
8758fi
8759
8284b0c5 8760
a0b9e27f 8761cat > confcache <<\EOF
10f2d63a
VZ
8762# This file is a shell script that caches the results of configure
8763# tests run on this system so they can be shared between configure
a0b9e27f
MB
8764# scripts and configure runs. It is not useful on other systems.
8765# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8766#
a0b9e27f
MB
8767# By default, configure uses ./config.cache as the cache file,
8768# creating it if it does not exist already. You can give configure
8769# the --cache-file=FILE option to use a different cache file; that is
8770# what configure does when it calls configure scripts in
8771# subdirectories, so they share the cache.
8772# Giving --cache-file=/dev/null disables caching, for debugging configure.
8773# config.status only pays attention to the cache file if you give it the
8774# --recheck option to rerun configure.
10f2d63a 8775#
a0b9e27f 8776EOF
10f2d63a
VZ
8777# The following way of writing the cache mishandles newlines in values,
8778# but we know of no workaround that is simple, portable, and efficient.
8779# So, don't put newlines in cache variables' values.
8780# Ultrix sh set writes to stderr and can't be redirected directly,
8781# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8782(set) 2>&1 |
8783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8784 *ac_space=\ *)
8785 # `set' does not quote correctly, so add quotes (double-quote substitution
8786 # turns \\\\ into \\, and sed turns \\ into \).
8787 sed -n \
8788 -e "s/'/'\\\\''/g" \
8789 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8790 ;;
8791 *)
8792 # `set' quotes correctly as required by POSIX, so do not add quotes.
8793 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8794 ;;
8795 esac >> confcache
8796if cmp -s $cache_file confcache; then
8797 :
8798else
10f2d63a 8799 if test -w $cache_file; then
a0b9e27f
MB
8800 echo "updating cache $cache_file"
8801 cat confcache > $cache_file
10f2d63a
VZ
8802 else
8803 echo "not updating unwritable cache $cache_file"
8804 fi
8805fi
8806rm -f confcache
8807
a0b9e27f 8808
e59890c3 8809if test "$build" != "$host" ; then
9d353d4a 8810 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8811 CC=$host_alias-gcc
8812 CXX=$host_alias-c++
8813 AR=$host_alias-ar
8814 RANLIB=$host_alias-ranlib
8815 DLLTOOL=$host_alias-dlltool
8816 RESCOMP=$host_alias-windres
8817 LD=$host_alias-ld
8818 NM=$host_alias-nm
8819 STRIP=$host_alias-strip
8820 else
a0b9e27f 8821 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8822 fi
10f2d63a
VZ
8823fi
8824
ec603395 8825CFLAGS=${CFLAGS:=}
a0b9e27f 8826# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8827set dummy gcc; ac_word=$2
a0b9e27f 8828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 8829echo "configure:8830: checking for $ac_word" >&5
a0b9e27f
MB
8830if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8832else
8833 if test -n "$CC"; then
8834 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8835else
a0b9e27f
MB
8836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8837 ac_dummy="$PATH"
8838 for ac_dir in $ac_dummy; do
8839 test -z "$ac_dir" && ac_dir=.
8840 if test -f $ac_dir/$ac_word; then
8841 ac_cv_prog_CC="gcc"
8842 break
8843 fi
8844 done
8845 IFS="$ac_save_ifs"
10f2d63a 8846fi
6232543b 8847fi
a0b9e27f 8848CC="$ac_cv_prog_CC"
6232543b 8849if test -n "$CC"; then
a0b9e27f 8850 echo "$ac_t""$CC" 1>&6
247f5006 8851else
a0b9e27f 8852 echo "$ac_t""no" 1>&6
247f5006
VZ
8853fi
8854
5c6fa7d2
RR
8855if test -z "$CC"; then
8856 # Extract the first word of "cc", so it can be a program name with args.
8857set dummy cc; ac_word=$2
a0b9e27f 8858echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 8859echo "configure:8860: checking for $ac_word" >&5
a0b9e27f
MB
8860if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8862else
8863 if test -n "$CC"; then
8864 ac_cv_prog_CC="$CC" # Let the user override the test.
8865else
a0b9e27f 8866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8867 ac_prog_rejected=no
a0b9e27f
MB
8868 ac_dummy="$PATH"
8869 for ac_dir in $ac_dummy; do
8870 test -z "$ac_dir" && ac_dir=.
8871 if test -f $ac_dir/$ac_word; then
8872 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8873 ac_prog_rejected=yes
8874 continue
8875 fi
8876 ac_cv_prog_CC="cc"
8877 break
8878 fi
8879 done
8880 IFS="$ac_save_ifs"
328a083c
RR
8881if test $ac_prog_rejected = yes; then
8882 # We found a bogon in the path, so make sure we never use it.
8883 set dummy $ac_cv_prog_CC
8884 shift
a0b9e27f 8885 if test $# -gt 0; then
328a083c 8886 # We chose a different compiler from the bogus one.
1e487827
VS
8887 # However, it has the same basename, so the bogon will be chosen
8888 # first if we set CC to just the basename; use the full file name.
8889 shift
a0b9e27f 8890 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8891 shift
8892 ac_cv_prog_CC="$@"
703e0a69 8893 fi
1e487827
VS
8894fi
8895fi
8896fi
a0b9e27f 8897CC="$ac_cv_prog_CC"
1e487827 8898if test -n "$CC"; then
a0b9e27f 8899 echo "$ac_t""$CC" 1>&6
703e0a69 8900else
a0b9e27f 8901 echo "$ac_t""no" 1>&6
703e0a69 8902fi
1e487827 8903
a0b9e27f
MB
8904 if test -z "$CC"; then
8905 case "`uname -s`" in
8906 *win32* | *WIN32*)
8907 # Extract the first word of "cl", so it can be a program name with args.
8908set dummy cl; ac_word=$2
8909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 8910echo "configure:8911: checking for $ac_word" >&5
a0b9e27f
MB
8911if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8913else
8914 if test -n "$CC"; then
8915 ac_cv_prog_CC="$CC" # Let the user override the test.
8916else
a0b9e27f
MB
8917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8918 ac_dummy="$PATH"
8919 for ac_dir in $ac_dummy; do
8920 test -z "$ac_dir" && ac_dir=.
8921 if test -f $ac_dir/$ac_word; then
8922 ac_cv_prog_CC="cl"
8923 break
8924 fi
8925 done
8926 IFS="$ac_save_ifs"
f09359cf
VS
8927fi
8928fi
a0b9e27f 8929CC="$ac_cv_prog_CC"
f09359cf 8930if test -n "$CC"; then
a0b9e27f 8931 echo "$ac_t""$CC" 1>&6
f09359cf 8932else
a0b9e27f 8933 echo "$ac_t""no" 1>&6
247f5006 8934fi
a0b9e27f
MB
8935 ;;
8936 esac
8284b0c5 8937 fi
a0b9e27f 8938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8939fi
1e487827 8940
a0b9e27f 8941echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
dfa2a1d9 8942echo "configure:8943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8943
a0b9e27f
MB
8944ac_ext=c
8945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8946ac_cpp='$CPP $CPPFLAGS'
8947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8949cross_compiling=$ac_cv_prog_cc_cross
f09359cf 8950
a0b9e27f 8951cat > conftest.$ac_ext << EOF
247f5006 8952
dfa2a1d9 8953#line 8954 "configure"
a0b9e27f 8954#include "confdefs.h"
247f5006 8955
a0b9e27f
MB
8956main(){return(0);}
8957EOF
dfa2a1d9 8958if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
8959 ac_cv_prog_cc_works=yes
8960 # If we can't run a trivial program, we are probably using a cross compiler.
8961 if (./conftest; exit) 2>/dev/null; then
8962 ac_cv_prog_cc_cross=no
698dcdb6 8963 else
a0b9e27f 8964 ac_cv_prog_cc_cross=yes
698dcdb6 8965 fi
7b4a847f 8966else
a0b9e27f
MB
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_cv_prog_cc_works=no
52127426 8970fi
a0b9e27f
MB
8971rm -fr conftest*
8972ac_ext=c
8973# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8974ac_cpp='$CPP $CPPFLAGS'
8975ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8976ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8977cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8978
a0b9e27f
MB
8979echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8980if test $ac_cv_prog_cc_works = no; then
8981 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8982fi
8983echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
dfa2a1d9 8984echo "configure:8985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
8985echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8986cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8987
a0b9e27f 8988echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
dfa2a1d9 8989echo "configure:8990: checking whether we are using GNU C" >&5
a0b9e27f
MB
8990if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 8992else
a0b9e27f
MB
8993 cat > conftest.c <<EOF
8994#ifdef __GNUC__
8995 yes;
8284b0c5 8996#endif
a0b9e27f 8997EOF
dfa2a1d9 8998if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 8999 ac_cv_prog_gcc=yes
5c6fa7d2 9000else
a0b9e27f 9001 ac_cv_prog_gcc=no
8284b0c5
MB
9002fi
9003fi
1e487827 9004
a0b9e27f 9005echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9006
a0b9e27f
MB
9007if test $ac_cv_prog_gcc = yes; then
9008 GCC=yes
9009else
9010 GCC=
9011fi
247f5006 9012
a0b9e27f
MB
9013ac_test_CFLAGS="${CFLAGS+set}"
9014ac_save_CFLAGS="$CFLAGS"
9015CFLAGS=
9016echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
dfa2a1d9 9017echo "configure:9018: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9018if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9020else
9021 echo 'void f(){}' > conftest.c
9022if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9023 ac_cv_prog_cc_g=yes
9024else
a0b9e27f 9025 ac_cv_prog_cc_g=no
10f2d63a 9026fi
a0b9e27f
MB
9027rm -f conftest*
9028
10f2d63a 9029fi
a0b9e27f
MB
9030
9031echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9032if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9033 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9034elif test $ac_cv_prog_cc_g = yes; then
9035 if test "$GCC" = yes; then
10f2d63a
VZ
9036 CFLAGS="-g -O2"
9037 else
f09359cf 9038 CFLAGS="-g"
10f2d63a 9039 fi
5c0a20c3 9040else
f09359cf
VS
9041 if test "$GCC" = yes; then
9042 CFLAGS="-O2"
9043 else
9044 CFLAGS=
9045 fi
10f2d63a
VZ
9046fi
9047
9048
a0b9e27f 9049echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
dfa2a1d9 9050echo "configure:9051: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9051# On Suns, sometimes $CPP names a directory.
9052if test -n "$CPP" && test -d "$CPP"; then
9053 CPP=
9054fi
9055if test -z "$CPP"; then
a0b9e27f
MB
9056if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058else
9059 # This must be in double quotes, not single quotes, because CPP may get
9060 # substituted into the Makefile and "${CC-cc}" will confuse make.
9061 CPP="${CC-cc} -E"
10f2d63a 9062 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9063 # not just through cpp.
9064 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9065#line 9066 "configure"
10f2d63a
VZ
9066#include "confdefs.h"
9067#include <assert.h>
a0b9e27f
MB
9068Syntax Error
9069EOF
9070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9071{ (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9073if test -z "$ac_err"; then
10f2d63a
VZ
9074 :
9075else
a0b9e27f
MB
9076 echo "$ac_err" >&5
9077 echo "configure: failed program was:" >&5
10f2d63a 9078 cat conftest.$ac_ext >&5
a0b9e27f
MB
9079 rm -rf conftest*
9080 CPP="${CC-cc} -E -traditional-cpp"
9081 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9082#line 9083 "configure"
f09359cf 9083#include "confdefs.h"
a0b9e27f
MB
9084#include <assert.h>
9085Syntax Error
9086EOF
9087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9088{ (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9089ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9090if test -z "$ac_err"; then
9091 :
247f5006 9092else
a0b9e27f
MB
9093 echo "$ac_err" >&5
9094 echo "configure: failed program was:" >&5
f09359cf 9095 cat conftest.$ac_ext >&5
a0b9e27f
MB
9096 rm -rf conftest*
9097 CPP="${CC-cc} -nologo -E"
9098 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9099#line 9100 "configure"
10f2d63a
VZ
9100#include "confdefs.h"
9101#include <assert.h>
a0b9e27f
MB
9102Syntax Error
9103EOF
9104ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9105{ (eval echo configure:9106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9106ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9107if test -z "$ac_err"; then
10f2d63a
VZ
9108 :
9109else
a0b9e27f
MB
9110 echo "$ac_err" >&5
9111 echo "configure: failed program was:" >&5
10f2d63a 9112 cat conftest.$ac_ext >&5
a0b9e27f
MB
9113 rm -rf conftest*
9114 CPP=/lib/cpp
579d8138 9115fi
a0b9e27f 9116rm -f conftest*
52127426 9117fi
a0b9e27f 9118rm -f conftest*
8284b0c5 9119fi
a0b9e27f
MB
9120rm -f conftest*
9121 ac_cv_prog_CPP="$CPP"
9122fi
9123 CPP="$ac_cv_prog_CPP"
10f2d63a 9124else
a0b9e27f 9125 ac_cv_prog_CPP="$CPP"
10f2d63a 9126fi
a0b9e27f 9127echo "$ac_t""$CPP" 1>&6
10f2d63a 9128
a0b9e27f
MB
9129if test $ac_cv_prog_gcc = yes; then
9130 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
dfa2a1d9 9131echo "configure:9132: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9132if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9134else
9135 ac_pattern="Autoconf.*'x'"
a0b9e27f 9136 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9137#line 9138 "configure"
10f2d63a
VZ
9138#include "confdefs.h"
9139#include <sgtty.h>
9140Autoconf TIOCGETP
a0b9e27f 9141EOF
10f2d63a
VZ
9142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9143 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9144 rm -rf conftest*
10f2d63a
VZ
9145 ac_cv_prog_gcc_traditional=yes
9146else
a0b9e27f 9147 rm -rf conftest*
10f2d63a
VZ
9148 ac_cv_prog_gcc_traditional=no
9149fi
9150rm -f conftest*
9151
8284b0c5 9152
10f2d63a 9153 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9154 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9155#line 9156 "configure"
10f2d63a
VZ
9156#include "confdefs.h"
9157#include <termio.h>
9158Autoconf TCGETA
a0b9e27f 9159EOF
10f2d63a
VZ
9160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9162 rm -rf conftest*
10f2d63a
VZ
9163 ac_cv_prog_gcc_traditional=yes
9164fi
9165rm -f conftest*
9166
9167 fi
9168fi
a0b9e27f
MB
9169
9170echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9171 if test $ac_cv_prog_gcc_traditional = yes; then
9172 CC="$CC -traditional"
9173 fi
9174fi
9175
8284b0c5
MB
9176
9177
a0b9e27f
MB
9178ac_ext=C
9179# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9180ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9181ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9182ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9183cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9184
698dcdb6 9185
ec603395 9186CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9187for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9188do
9189# Extract the first word of "$ac_prog", so it can be a program name with args.
9190set dummy $ac_prog; ac_word=$2
9191echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9192echo "configure:9193: checking for $ac_word" >&5
a0b9e27f
MB
9193if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9195else
9196 if test -n "$CXX"; then
9197 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9198else
a0b9e27f
MB
9199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9200 ac_dummy="$PATH"
9201 for ac_dir in $ac_dummy; do
9202 test -z "$ac_dir" && ac_dir=.
9203 if test -f $ac_dir/$ac_word; then
9204 ac_cv_prog_CXX="$ac_prog"
9205 break
9206 fi
9207 done
9208 IFS="$ac_save_ifs"
10f2d63a
VZ
9209fi
9210fi
a0b9e27f 9211CXX="$ac_cv_prog_CXX"
10f2d63a 9212if test -n "$CXX"; then
a0b9e27f 9213 echo "$ac_t""$CXX" 1>&6
10f2d63a 9214else
a0b9e27f 9215 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9216fi
9217
a0b9e27f 9218test -n "$CXX" && break
10f2d63a 9219done
a0b9e27f 9220test -n "$CXX" || CXX="gcc"
f09359cf 9221
a0b9e27f
MB
9222
9223echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
dfa2a1d9 9224echo "configure:9225: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9225
9226ac_ext=C
9227# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9228ac_cpp='$CXXCPP $CPPFLAGS'
9229ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9230ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9231cross_compiling=$ac_cv_prog_cxx_cross
9232
9233cat > conftest.$ac_ext << EOF
9234
dfa2a1d9 9235#line 9236 "configure"
a0b9e27f
MB
9236#include "confdefs.h"
9237
9238int main(){return(0);}
9239EOF
dfa2a1d9 9240if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9241 ac_cv_prog_cxx_works=yes
9242 # If we can't run a trivial program, we are probably using a cross compiler.
9243 if (./conftest; exit) 2>/dev/null; then
9244 ac_cv_prog_cxx_cross=no
9245 else
9246 ac_cv_prog_cxx_cross=yes
9247 fi
8284b0c5 9248else
a0b9e27f
MB
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 ac_cv_prog_cxx_works=no
8284b0c5 9252fi
a0b9e27f
MB
9253rm -fr conftest*
9254ac_ext=C
9255# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9256ac_cpp='$CXXCPP $CPPFLAGS'
9257ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9258ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9259cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9260
a0b9e27f
MB
9261echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9262if test $ac_cv_prog_cxx_works = no; then
9263 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9264fi
9265echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
dfa2a1d9 9266echo "configure:9267: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9267echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9268cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9269
a0b9e27f 9270echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
dfa2a1d9 9271echo "configure:9272: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9272if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274else
9275 cat > conftest.C <<EOF
9276#ifdef __GNUC__
9277 yes;
10f2d63a 9278#endif
a0b9e27f 9279EOF
dfa2a1d9 9280if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9281 ac_cv_prog_gxx=yes
9282else
9283 ac_cv_prog_gxx=no
9284fi
9285fi
10f2d63a 9286
a0b9e27f 9287echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9288
a0b9e27f
MB
9289if test $ac_cv_prog_gxx = yes; then
9290 GXX=yes
9291else
9292 GXX=
9293fi
f09359cf 9294
a0b9e27f
MB
9295ac_test_CXXFLAGS="${CXXFLAGS+set}"
9296ac_save_CXXFLAGS="$CXXFLAGS"
9297CXXFLAGS=
9298echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
dfa2a1d9 9299echo "configure:9300: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9300if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9302else
9303 echo 'void f(){}' > conftest.cc
9304if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9305 ac_cv_prog_cxx_g=yes
9306else
a0b9e27f 9307 ac_cv_prog_cxx_g=no
10f2d63a 9308fi
a0b9e27f
MB
9309rm -f conftest*
9310
10f2d63a 9311fi
a0b9e27f
MB
9312
9313echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9314if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9315 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9316elif test $ac_cv_prog_cxx_g = yes; then
9317 if test "$GXX" = yes; then
10f2d63a
VZ
9318 CXXFLAGS="-g -O2"
9319 else
f09359cf 9320 CXXFLAGS="-g"
10f2d63a 9321 fi
5c0a20c3 9322else
f09359cf
VS
9323 if test "$GXX" = yes; then
9324 CXXFLAGS="-O2"
9325 else
9326 CXXFLAGS=
9327 fi
10f2d63a
VZ
9328fi
9329
9330
10f2d63a 9331ac_ext=c
a0b9e27f 9332# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9333ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9334ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9335ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9336cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9337
9338
a0b9e27f
MB
9339# Extract the first word of "ranlib", so it can be a program name with args.
9340set dummy ranlib; ac_word=$2
9341echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9342echo "configure:9343: checking for $ac_word" >&5
a0b9e27f
MB
9343if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9345else
9346 if test -n "$RANLIB"; then
9347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9348else
a0b9e27f
MB
9349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9350 ac_dummy="$PATH"
9351 for ac_dir in $ac_dummy; do
9352 test -z "$ac_dir" && ac_dir=.
9353 if test -f $ac_dir/$ac_word; then
9354 ac_cv_prog_RANLIB="ranlib"
9355 break
9356 fi
9357 done
9358 IFS="$ac_save_ifs"
9359 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9360fi
9361fi
a0b9e27f 9362RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9363if test -n "$RANLIB"; then
a0b9e27f 9364 echo "$ac_t""$RANLIB" 1>&6
328a083c 9365else
a0b9e27f 9366 echo "$ac_t""no" 1>&6
328a083c
RR
9367fi
9368
10f2d63a
VZ
9369
9370# Extract the first word of "ar", so it can be a program name with args.
9371set dummy ar; ac_word=$2
a0b9e27f 9372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9373echo "configure:9374: checking for $ac_word" >&5
a0b9e27f
MB
9374if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9376else
9377 if test -n "$AR"; then
9378 ac_cv_prog_AR="$AR" # Let the user override the test.
9379else
a0b9e27f
MB
9380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9381 ac_dummy="$PATH"
9382 for ac_dir in $ac_dummy; do
9383 test -z "$ac_dir" && ac_dir=.
9384 if test -f $ac_dir/$ac_word; then
9385 ac_cv_prog_AR="ar"
9386 break
9387 fi
9388 done
9389 IFS="$ac_save_ifs"
10f2d63a
VZ
9390 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9391fi
9392fi
a0b9e27f 9393AR="$ac_cv_prog_AR"
10f2d63a 9394if test -n "$AR"; then
a0b9e27f 9395 echo "$ac_t""$AR" 1>&6
10f2d63a 9396else
a0b9e27f 9397 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9398fi
9399
8284b0c5 9400
6054113a 9401# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9402# so one script is as good as another. But avoid the broken or
9403# incompatible versions:
9404# SysV /etc/install, /usr/sbin/install
9405# SunOS /usr/etc/install
9406# IRIX /sbin/install
9407# AIX /bin/install
f09359cf 9408# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9409# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9410# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9411# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9412echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
dfa2a1d9 9413echo "configure:9414: checking for a BSD compatible install" >&5
10f2d63a 9414if test -z "$INSTALL"; then
a0b9e27f
MB
9415if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417else
9418 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9419 for ac_dir in $PATH; do
9420 # Account for people who put trailing slashes in PATH elements.
9421 case "$ac_dir/" in
9422 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9423 *)
9424 # OSF1 and SCO ODT 3.0 have their own names for install.
9425 # Don't use installbsd from OSF since it installs stuff as root
9426 # by default.
9427 for ac_prog in ginstall scoinst install; do
9428 if test -f $ac_dir/$ac_prog; then
9429 if test $ac_prog = install &&
9430 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9431 # AIX install. It has an incompatible calling convention.
9432 :
9433 else
9434 ac_cv_path_install="$ac_dir/$ac_prog -c"
9435 break 2
9436 fi
9437 fi
10f2d63a 9438 done
a0b9e27f
MB
9439 ;;
9440 esac
9441 done
9442 IFS="$ac_save_IFS"
10f2d63a
VZ
9443
9444fi
9445 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9446 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9447 else
9448 # As a last resort, use the slow shell script. We don't cache a
9449 # path for INSTALL within a source directory, because that will
9450 # break other packages using the cache if that directory is
9451 # removed, or if the path is relative.
a0b9e27f 9452 INSTALL="$ac_install_sh"
10f2d63a
VZ
9453 fi
9454fi
a0b9e27f 9455echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9456
9457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9458# It thinks the first close brace ends the variable substitution.
9459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9460
a0b9e27f 9461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9462
10f2d63a
VZ
9463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9464
8284b0c5 9465
1d1b75ac
VZ
9466case ${INSTALL} in
9467 /* ) # Absolute
9468 ;;
4f5a7f74
VZ
9469 ?:* ) # Drive letter, considered as absolute.
9470 ;;
3bd8fb5f 9471 *)
1d1b75ac
VZ
9472 INSTALL=`pwd`/${INSTALL} ;;
9473esac
9474
4f5a7f74
VZ
9475case ${host} in
9476 *-hp-hpux* )
9477 INSTALL_DIR="mkdir"
9478 ;;
9479
9480 *) INSTALL_DIR="$INSTALL -d"
9481 ;;
9482esac
9483
8284b0c5 9484
6054113a
GD
9485case "${host}" in
9486
b5853384 9487 powerpc-*-darwin* )
eb99ae0b
GD
9488 INSTALL_PROGRAM="cp -fp"
9489 INSTALL_DATA="cp -fp"
6054113a
GD
9490 ;;
9491 *)
9492 ;;
d6853540 9493esac
698dcdb6 9494
10f2d63a
VZ
9495# Extract the first word of "strip", so it can be a program name with args.
9496set dummy strip; ac_word=$2
a0b9e27f 9497echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9498echo "configure:9499: checking for $ac_word" >&5
a0b9e27f
MB
9499if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9501else
9502 if test -n "$STRIP"; then
9503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9504else
a0b9e27f
MB
9505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9506 ac_dummy="$PATH"
9507 for ac_dir in $ac_dummy; do
9508 test -z "$ac_dir" && ac_dir=.
9509 if test -f $ac_dir/$ac_word; then
9510 ac_cv_prog_STRIP="strip"
9511 break
9512 fi
9513 done
9514 IFS="$ac_save_ifs"
10f2d63a
VZ
9515 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9516fi
9517fi
a0b9e27f 9518STRIP="$ac_cv_prog_STRIP"
10f2d63a 9519if test -n "$STRIP"; then
a0b9e27f 9520 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9521else
a0b9e27f 9522 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9523fi
9524
5c6fa7d2 9525
a0b9e27f 9526echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
dfa2a1d9 9527echo "configure:9528: checking if make is GNU make" >&5
a0b9e27f
MB
9528if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9530else
a0b9e27f 9531
414eab6d 9532 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9533 egrep -s GNU > /dev/null); then
414eab6d
VZ
9534 wx_cv_prog_makeisgnu="yes"
9535 else
9536 wx_cv_prog_makeisgnu="no"
9537 fi
9538
9539fi
a0b9e27f
MB
9540
9541echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9542
9543if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9544 IF_GNU_MAKE=""
9545else
9546 IF_GNU_MAKE="#"
9547fi
9548
8284b0c5
MB
9549
9550
414eab6d 9551if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9552echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
dfa2a1d9 9553echo "configure:9554: checking if make supports VPATH" >&5
a0b9e27f
MB
9554if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9555 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9556else
a0b9e27f 9557
10f2d63a
VZ
9558cat - << EOF > confMake
9559check : file
9560 cp \$? \$@
9561 cp \$? final_file
9562EOF
9563
9564if test ! -d sub ; then
9565 mkdir sub
9566fi
9567echo dummy > sub/file
f6bcfd97 9568${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9569RESULT=$?
9570rm -f sub/file check final_file confMake
9571rmdir sub
9572if test "$RESULT" = 0; then
04e7a216 9573 wx_cv_prog_makevpath="yes"
10f2d63a 9574else
04e7a216
VZ
9575 wx_cv_prog_makevpath="no"
9576fi
9577
9578fi
a0b9e27f
MB
9579
9580echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9581
9582if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9583{ echo "configure: error:
5c6fa7d2
RR
9584You need a make-utility that is able to use the variable
9585VPATH correctly.
9586If your version of make does not support VPATH correctly,
9587please install GNU-make (possibly as gmake), and start
9588configure with the following command:
9589export MAKE=gmake; ./configure for sh-type shells
9590setenv MAKE gmake; ./configure for csh-type shells
9591Also please do remember to use gmake in this case every time
9592you are trying to compile.
a0b9e27f
MB
9593" 1>&2; exit 1; }
9594fi fi
10f2d63a
VZ
9595for ac_prog in 'bison -y' byacc
9596do
a0b9e27f 9597# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9598set dummy $ac_prog; ac_word=$2
a0b9e27f 9599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9600echo "configure:9601: checking for $ac_word" >&5
a0b9e27f
MB
9601if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9603else
9604 if test -n "$YACC"; then
9605 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9606else
a0b9e27f
MB
9607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9608 ac_dummy="$PATH"
9609 for ac_dir in $ac_dummy; do
9610 test -z "$ac_dir" && ac_dir=.
9611 if test -f $ac_dir/$ac_word; then
9612 ac_cv_prog_YACC="$ac_prog"
9613 break
9614 fi
9615 done
9616 IFS="$ac_save_ifs"
10f2d63a
VZ
9617fi
9618fi
a0b9e27f 9619YACC="$ac_cv_prog_YACC"
10f2d63a 9620if test -n "$YACC"; then
a0b9e27f 9621 echo "$ac_t""$YACC" 1>&6
10f2d63a 9622else
a0b9e27f 9623 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9624fi
9625
a0b9e27f 9626test -n "$YACC" && break
10f2d63a
VZ
9627done
9628test -n "$YACC" || YACC="yacc"
9629
8284b0c5 9630
a0b9e27f
MB
9631# Extract the first word of "flex", so it can be a program name with args.
9632set dummy flex; ac_word=$2
9633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 9634echo "configure:9635: checking for $ac_word" >&5
a0b9e27f
MB
9635if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9637else
9638 if test -n "$LEX"; then
9639 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9640else
a0b9e27f
MB
9641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9642 ac_dummy="$PATH"
9643 for ac_dir in $ac_dummy; do
9644 test -z "$ac_dir" && ac_dir=.
9645 if test -f $ac_dir/$ac_word; then
9646 ac_cv_prog_LEX="flex"
9647 break
9648 fi
9649 done
9650 IFS="$ac_save_ifs"
9651 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9652fi
9653fi
a0b9e27f 9654LEX="$ac_cv_prog_LEX"
10f2d63a 9655if test -n "$LEX"; then
a0b9e27f 9656 echo "$ac_t""$LEX" 1>&6
10f2d63a 9657else
a0b9e27f 9658 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9659fi
9660
9661if test -z "$LEXLIB"
9662then
a0b9e27f
MB
9663 case "$LEX" in
9664 flex*) ac_lib=fl ;;
9665 *) ac_lib=l ;;
9666 esac
9667 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
dfa2a1d9 9668echo "configure:9669: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9669ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672else
9673 ac_save_LIBS="$LIBS"
9674LIBS="-l$ac_lib $LIBS"
9675cat > conftest.$ac_ext <<EOF
dfa2a1d9 9676#line 9677 "configure"
247f5006 9677#include "confdefs.h"
247f5006 9678/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9679/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9680 builtin and then its argument prototype would still apply. */
9681char yywrap();
10f2d63a 9682
a0b9e27f
MB
9683int main() {
9684yywrap()
9685; return 0; }
9686EOF
dfa2a1d9 9687if { (eval echo configure:9688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9688 rm -rf conftest*
9689 eval "ac_cv_lib_$ac_lib_var=yes"
9690else
9691 echo "configure: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9693 rm -rf conftest*
9694 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9695fi
a0b9e27f
MB
9696rm -f conftest*
9697LIBS="$ac_save_LIBS"
8284b0c5 9698
10f2d63a 9699fi
a0b9e27f
MB
9700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9701 echo "$ac_t""yes" 1>&6
9702 LEXLIB="-l$ac_lib"
8284b0c5 9703else
a0b9e27f 9704 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9705fi
9706
a0b9e27f 9707fi
10f2d63a
VZ
9708
9709
a0b9e27f 9710echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
dfa2a1d9 9711echo "configure:9712: checking whether ln -s works" >&5
a0b9e27f
MB
9712if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9714else
a0b9e27f
MB
9715 rm -f conftestdata
9716if ln -s X conftestdata 2>/dev/null
9717then
9718 rm -f conftestdata
9719 ac_cv_prog_LN_S="ln -s"
10f2d63a 9720else
a0b9e27f 9721 ac_cv_prog_LN_S=ln
10f2d63a 9722fi
a0b9e27f
MB
9723fi
9724LN_S="$ac_cv_prog_LN_S"
9725if test "$ac_cv_prog_LN_S" = "ln -s"; then
9726 echo "$ac_t""yes" 1>&6
10f2d63a 9727else
a0b9e27f 9728 echo "$ac_t""no" 1>&6
5c6fa7d2 9729fi
5c6fa7d2 9730
247f5006 9731
2b5f62a0
VZ
9732case "${host}" in
9733 *-pc-os2_emx | *-pc-os2-emx )
9734 LIBS="$LIBS -lstdcpp"
9735 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9736 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
dfa2a1d9 9737echo "configure:9738: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9738ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9739if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741else
9742 ac_save_LIBS="$LIBS"
9743LIBS="-lcExt $LIBS"
9744cat > conftest.$ac_ext <<EOF
dfa2a1d9 9745#line 9746 "configure"
2b5f62a0
VZ
9746#include "confdefs.h"
9747/* Override any gcc2 internal prototype to avoid an error. */
9748/* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750char drand48();
9751
9752int main() {
9753drand48()
9754; return 0; }
9755EOF
dfa2a1d9 9756if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9757 rm -rf conftest*
9758 eval "ac_cv_lib_$ac_lib_var=yes"
9759else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_lib_$ac_lib_var=no"
9764fi
9765rm -f conftest*
9766LIBS="$ac_save_LIBS"
9767
9768fi
9769if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 LIBS="$LIBS -lcExt"
9772else
9773 echo "$ac_t""no" 1>&6
9774fi
9775
9776 else
9777 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9778 fi
9779 ;;
9780esac
9781
a0b9e27f 9782
ac0c4cc3 9783if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9784 for ac_hdr in strings.h
9785do
9786ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9787echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 9788echo "configure:9789: checking for $ac_hdr" >&5
a0b9e27f
MB
9789if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9790 echo $ac_n "(cached) $ac_c" 1>&6
9791else
9792 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9793#line 9794 "configure"
a0b9e27f
MB
9794#include "confdefs.h"
9795#include <$ac_hdr>
9796EOF
9797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9798{ (eval echo configure:9799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9799ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9800if test -z "$ac_err"; then
9801 rm -rf conftest*
9802 eval "ac_cv_header_$ac_safe=yes"
9803else
9804 echo "$ac_err" >&5
9805 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 rm -rf conftest*
9808 eval "ac_cv_header_$ac_safe=no"
21d1c967 9809fi
247f5006 9810rm -f conftest*
19bc6aad 9811fi
a0b9e27f
MB
9812if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9813 echo "$ac_t""yes" 1>&6
9814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9815 cat >> confdefs.h <<EOF
9816#define $ac_tr_hdr 1
9817EOF
9818
247f5006 9819else
a0b9e27f 9820 echo "$ac_t""no" 1>&6
18dbb1f6 9821fi
a0b9e27f 9822done
247f5006 9823
90dd450c 9824fi
90dd450c 9825
a0b9e27f
MB
9826for ac_hdr in stdlib.h
9827do
9828ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9829echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 9830echo "configure:9831: checking for $ac_hdr" >&5
a0b9e27f
MB
9831if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9835#line 9836 "configure"
90dd450c 9836#include "confdefs.h"
a0b9e27f
MB
9837#include <$ac_hdr>
9838EOF
9839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9840{ (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842if test -z "$ac_err"; then
9843 rm -rf conftest*
9844 eval "ac_cv_header_$ac_safe=yes"
9845else
9846 echo "$ac_err" >&5
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 eval "ac_cv_header_$ac_safe=no"
9851fi
9852rm -f conftest*
9853fi
9854if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9855 echo "$ac_t""yes" 1>&6
9856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9857 cat >> confdefs.h <<EOF
9858#define $ac_tr_hdr 1
9859EOF
9860
8284b0c5 9861else
a0b9e27f 9862 echo "$ac_t""no" 1>&6
21d1c967 9863fi
a0b9e27f
MB
9864done
9865
9866for ac_hdr in malloc.h
9867do
9868ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9869echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 9870echo "configure:9871: checking for $ac_hdr" >&5
a0b9e27f
MB
9871if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873else
9874 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9875#line 9876 "configure"
a0b9e27f
MB
9876#include "confdefs.h"
9877#include <$ac_hdr>
9878EOF
9879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9880{ (eval echo configure:9881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9881ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9882if test -z "$ac_err"; then
9883 rm -rf conftest*
9884 eval "ac_cv_header_$ac_safe=yes"
9885else
9886 echo "$ac_err" >&5
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -rf conftest*
9890 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9891fi
a0b9e27f 9892rm -f conftest*
90dd450c 9893fi
a0b9e27f
MB
9894if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9895 echo "$ac_t""yes" 1>&6
9896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9897 cat >> confdefs.h <<EOF
9898#define $ac_tr_hdr 1
9899EOF
9900
9901else
9902 echo "$ac_t""no" 1>&6
21d1c967 9903fi
a0b9e27f 9904done
247f5006 9905
a0b9e27f
MB
9906for ac_hdr in unistd.h
9907do
9908ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9909echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 9910echo "configure:9911: checking for $ac_hdr" >&5
a0b9e27f
MB
9911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9913else
9914 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9915#line 9916 "configure"
a0b9e27f
MB
9916#include "confdefs.h"
9917#include <$ac_hdr>
9918EOF
9919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 9920{ (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9922if test -z "$ac_err"; then
9923 rm -rf conftest*
9924 eval "ac_cv_header_$ac_safe=yes"
9925else
9926 echo "$ac_err" >&5
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 eval "ac_cv_header_$ac_safe=no"
247f5006 9931fi
a0b9e27f
MB
9932rm -f conftest*
9933fi
9934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9935 echo "$ac_t""yes" 1>&6
9936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9937 cat >> confdefs.h <<EOF
9938#define $ac_tr_hdr 1
9939EOF
9940
9941else
9942 echo "$ac_t""no" 1>&6
9943fi
9944done
90dd450c 9945
a0b9e27f 9946for ac_hdr in wchar.h
21d1c967 9947do
a0b9e27f
MB
9948ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9949echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 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
dfa2a1d9 9955#line 9956 "configure"
4f14bcd8 9956#include "confdefs.h"
a0b9e27f
MB
9957#include <$ac_hdr>
9958EOF
9959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 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
9981else
9982 echo "$ac_t""no" 1>&6
21d1c967
GD
9983fi
9984done
4f14bcd8 9985
5c6fa7d2 9986
a0b9e27f
MB
9987if test "$ac_cv_header_wchar_h" != "yes"; then
9988 for ac_hdr in wcstr.h
21d1c967 9989do
a0b9e27f
MB
9990ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9991echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 9992echo "configure:9993: checking for $ac_hdr" >&5
a0b9e27f
MB
9993if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9995else
9996 cat > conftest.$ac_ext <<EOF
dfa2a1d9 9997#line 9998 "configure"
d4158b5d 9998#include "confdefs.h"
a0b9e27f
MB
9999#include <$ac_hdr>
10000EOF
10001ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 10002{ (eval echo configure:10003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10003ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10004if test -z "$ac_err"; then
10005 rm -rf conftest*
10006 eval "ac_cv_header_$ac_safe=yes"
10007else
10008 echo "$ac_err" >&5
10009 echo "configure: failed program was:" >&5
d4158b5d 10010 cat conftest.$ac_ext >&5
a0b9e27f
MB
10011 rm -rf conftest*
10012 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10013fi
a0b9e27f 10014rm -f conftest*
21d1c967 10015fi
a0b9e27f
MB
10016if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10017 echo "$ac_t""yes" 1>&6
10018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10019 cat >> confdefs.h <<EOF
10020#define $ac_tr_hdr 1
10021EOF
10022
10023else
10024 echo "$ac_t""no" 1>&6
d4158b5d 10025fi
21d1c967 10026done
f6bcfd97 10027
90dd450c 10028fi
90dd450c 10029
a0b9e27f 10030for ac_hdr in fnmatch.h
21d1c967 10031do
a0b9e27f
MB
10032ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10033echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 10034echo "configure:10035: checking for $ac_hdr" >&5
a0b9e27f
MB
10035if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037else
10038 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10039#line 10040 "configure"
90dd450c 10040#include "confdefs.h"
a0b9e27f
MB
10041#include <$ac_hdr>
10042EOF
10043ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 10044{ (eval echo configure:10045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10045ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10046if test -z "$ac_err"; then
10047 rm -rf conftest*
10048 eval "ac_cv_header_$ac_safe=yes"
10049else
10050 echo "$ac_err" >&5
10051 echo "configure: failed program was:" >&5
3a922bb4 10052 cat conftest.$ac_ext >&5
a0b9e27f
MB
10053 rm -rf conftest*
10054 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10055fi
a0b9e27f 10056rm -f conftest*
4f14bcd8 10057fi
a0b9e27f
MB
10058if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10059 echo "$ac_t""yes" 1>&6
10060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10061 cat >> confdefs.h <<EOF
10062#define $ac_tr_hdr 1
10063EOF
10064
10065else
10066 echo "$ac_t""no" 1>&6
21d1c967
GD
10067fi
10068done
90dd450c 10069
5c6fa7d2 10070
a0b9e27f
MB
10071if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10072 for ac_func in fnmatch
21d1c967 10073do
a0b9e27f 10074echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 10075echo "configure:10076: checking for $ac_func" >&5
a0b9e27f
MB
10076if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10078else
a0b9e27f 10079 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10080#line 10081 "configure"
a0b9e27f
MB
10081#include "confdefs.h"
10082/* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func(); below. */
10084#include <assert.h>
10085/* Override any gcc2 internal prototype to avoid an error. */
10086/* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088char $ac_func();
10089
10090int main() {
10091
10092/* The GNU C library defines this for functions which it implements
10093 to always fail with ENOSYS. Some functions are actually named
10094 something starting with __ and the normal name is an alias. */
10095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096choke me
10097#else
10098$ac_func();
10099#endif
10100
10101; return 0; }
10102EOF
dfa2a1d9 10103if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10104 rm -rf conftest*
10105 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10106else
a0b9e27f 10107 echo "configure: failed program was:" >&5
8284b0c5 10108 cat conftest.$ac_ext >&5
a0b9e27f
MB
10109 rm -rf conftest*
10110 eval "ac_cv_func_$ac_func=no"
8284b0c5 10111fi
a0b9e27f 10112rm -f conftest*
8284b0c5 10113fi
32832908 10114
a0b9e27f
MB
10115if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10116 echo "$ac_t""yes" 1>&6
10117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10118 cat >> confdefs.h <<EOF
10119#define $ac_tr_func 1
10120EOF
10121
10122else
10123 echo "$ac_t""no" 1>&6
21d1c967
GD
10124fi
10125done
90dd450c 10126
a0b9e27f 10127fi
90dd450c 10128
a0b9e27f 10129for ac_hdr in langinfo.h
21d1c967 10130do
a0b9e27f
MB
10131ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10132echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 10133echo "configure:10134: checking for $ac_hdr" >&5
a0b9e27f
MB
10134if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10135 echo $ac_n "(cached) $ac_c" 1>&6
10136else
10137 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10138#line 10139 "configure"
247f5006 10139#include "confdefs.h"
a0b9e27f
MB
10140#include <$ac_hdr>
10141EOF
10142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 10143{ (eval echo configure:10144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10145if test -z "$ac_err"; then
10146 rm -rf conftest*
10147 eval "ac_cv_header_$ac_safe=yes"
10148else
10149 echo "$ac_err" >&5
10150 echo "configure: failed program was:" >&5
90dd450c 10151 cat conftest.$ac_ext >&5
a0b9e27f
MB
10152 rm -rf conftest*
10153 eval "ac_cv_header_$ac_safe=no"
90dd450c 10154fi
a0b9e27f 10155rm -f conftest*
4f14bcd8 10156fi
a0b9e27f
MB
10157if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10158 echo "$ac_t""yes" 1>&6
10159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10160 cat >> confdefs.h <<EOF
10161#define $ac_tr_hdr 1
10162EOF
10163
10164else
10165 echo "$ac_t""no" 1>&6
21d1c967
GD
10166fi
10167done
3a922bb4 10168
8284b0c5 10169
4f5a7f74
VZ
10170case "${host}" in
10171 *-pc-os2_emx | *-pc-os2-emx )
10172 if test $ac_cv_header_langinfo_h = "yes"; then
10173 LIBS="$LIBS -lintl"
10174 fi
10175 ;;
10176esac
1542ea39 10177
a0b9e27f
MB
10178if test "$wxUSE_GUI" = "yes"; then
10179 if test "$wxUSE_UNIX" = "yes"; then
10180 for ac_hdr in X11/XKBlib.h
21d1c967 10181do
a0b9e27f
MB
10182ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10183echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 10184echo "configure:10185: checking for $ac_hdr" >&5
a0b9e27f
MB
10185if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10187else
10188 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10189#line 10190 "configure"
90dd450c 10190#include "confdefs.h"
a0b9e27f
MB
10191#include <$ac_hdr>
10192EOF
10193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 10194{ (eval echo configure:10195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10195ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10196if test -z "$ac_err"; then
10197 rm -rf conftest*
10198 eval "ac_cv_header_$ac_safe=yes"
10199else
10200 echo "$ac_err" >&5
10201 echo "configure: failed program was:" >&5
90dd450c 10202 cat conftest.$ac_ext >&5
a0b9e27f
MB
10203 rm -rf conftest*
10204 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10205fi
a0b9e27f 10206rm -f conftest*
90dd450c 10207fi
a0b9e27f
MB
10208if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10211 cat >> confdefs.h <<EOF
10212#define $ac_tr_hdr 1
10213EOF
10214
10215else
10216 echo "$ac_t""no" 1>&6
247f5006 10217fi
247f5006
VZ
10218done
10219
a0b9e27f
MB
10220 fi
10221fi
247f5006 10222
247f5006 10223
a0b9e27f 10224echo $ac_n "checking for working const""... $ac_c" 1>&6
dfa2a1d9 10225echo "configure:10226: checking for working const" >&5
a0b9e27f
MB
10226if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10228else
a0b9e27f 10229 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10230#line 10231 "configure"
a0b9e27f
MB
10231#include "confdefs.h"
10232
10233int main() {
10234
10235/* Ultrix mips cc rejects this. */
10236typedef int charset[2]; const charset x;
10237/* SunOS 4.1.1 cc rejects this. */
10238char const *const *ccp;
10239char **p;
10240/* NEC SVR4.0.2 mips cc rejects this. */
10241struct point {int x, y;};
10242static struct point const zero = {0,0};
10243/* AIX XL C 1.02.0.0 rejects this.
10244 It does not let you subtract one const X* pointer from another in an arm
10245 of an if-expression whose if-part is not a constant expression */
10246const char *g = "string";
10247ccp = &g + (g ? g-g : 0);
10248/* HPUX 7.0 cc rejects these. */
10249++ccp;
10250p = (char**) ccp;
10251ccp = (char const *const *) p;
10252{ /* SCO 3.2v4 cc rejects this. */
10253 char *t;
10254 char const *s = 0 ? (char *) 0 : (char const *) 0;
10255
10256 *t++ = 0;
10257}
10258{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10259 int x[] = {25, 17};
10260 const int *foo = &x[0];
10261 ++foo;
10262}
10263{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10264 typedef const int *iptr;
10265 iptr p = 0;
10266 ++p;
10267}
10268{ /* AIX XL C 1.02.0.0 rejects this saying
10269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10270 struct s { int j; const int *ap[3]; };
10271 struct s *b; b->j = 5;
10272}
10273{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10274 const int foo = 10;
10275}
10276
10277; return 0; }
10278EOF
dfa2a1d9 10279if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10280 rm -rf conftest*
10281 ac_cv_c_const=yes
247f5006 10282else
a0b9e27f 10283 echo "configure: failed program was:" >&5
247f5006 10284 cat conftest.$ac_ext >&5
a0b9e27f
MB
10285 rm -rf conftest*
10286 ac_cv_c_const=no
247f5006 10287fi
a0b9e27f 10288rm -f conftest*
21d1c967 10289fi
247f5006 10290
a0b9e27f
MB
10291echo "$ac_t""$ac_cv_c_const" 1>&6
10292if test $ac_cv_c_const = no; then
10293 cat >> confdefs.h <<\EOF
10294#define const
10295EOF
10f2d63a 10296
90dd450c 10297fi
81809c07 10298
a0b9e27f 10299echo $ac_n "checking for inline""... $ac_c" 1>&6
dfa2a1d9 10300echo "configure:10301: checking for inline" >&5
a0b9e27f
MB
10301if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10303else
a0b9e27f
MB
10304 ac_cv_c_inline=no
10305for ac_kw in inline __inline__ __inline; do
10306 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10307#line 10308 "configure"
a0b9e27f
MB
10308#include "confdefs.h"
10309
10310int main() {
10311} $ac_kw foo() {
10312; return 0; }
10313EOF
dfa2a1d9 10314if { (eval echo configure:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10315 rm -rf conftest*
10316 ac_cv_c_inline=$ac_kw; break
247f5006 10317else
a0b9e27f 10318 echo "configure: failed program was:" >&5
247f5006 10319 cat conftest.$ac_ext >&5
247f5006 10320fi
a0b9e27f
MB
10321rm -f conftest*
10322done
247f5006
VZ
10323
10324fi
10325
a0b9e27f
MB
10326echo "$ac_t""$ac_cv_c_inline" 1>&6
10327case "$ac_cv_c_inline" in
10328 inline | yes) ;;
10329 no) cat >> confdefs.h <<\EOF
10330#define inline
10331EOF
10332 ;;
10333 *) cat >> confdefs.h <<EOF
10334#define inline $ac_cv_c_inline
10335EOF
10336 ;;
10337esac
247f5006 10338
247f5006 10339
a0b9e27f 10340echo $ac_n "checking size of char""... $ac_c" 1>&6
dfa2a1d9 10341echo "configure:10342: checking size of char" >&5
a0b9e27f
MB
10342if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10344else
10345 if test "$cross_compiling" = yes; then
10346 ac_cv_sizeof_char=1
10347else
10348 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10349#line 10350 "configure"
4f14bcd8 10350#include "confdefs.h"
a0b9e27f 10351#include <stdio.h>
dfa2a1d9 10352#include <sys/types.h>
a0b9e27f 10353main()
247f5006 10354{
a0b9e27f
MB
10355 FILE *f=fopen("conftestval", "w");
10356 if (!f) exit(1);
10357 fprintf(f, "%d\n", sizeof(char));
10358 exit(0);
52127426 10359}
a0b9e27f 10360EOF
dfa2a1d9 10361if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10362then
10363 ac_cv_sizeof_char=`cat conftestval`
247f5006 10364else
a0b9e27f 10365 echo "configure: failed program was:" >&5
247f5006 10366 cat conftest.$ac_ext >&5
a0b9e27f
MB
10367 rm -fr conftest*
10368 ac_cv_sizeof_char=0
247f5006 10369fi
a0b9e27f 10370rm -fr conftest*
247f5006 10371fi
247f5006
VZ
10372
10373fi
a0b9e27f
MB
10374echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10375cat >> confdefs.h <<EOF
10376#define SIZEOF_CHAR $ac_cv_sizeof_char
10377EOF
247f5006 10378
247f5006 10379
a0b9e27f 10380echo $ac_n "checking size of short""... $ac_c" 1>&6
dfa2a1d9 10381echo "configure:10382: checking size of short" >&5
a0b9e27f
MB
10382if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10383 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10384else
a0b9e27f
MB
10385 if test "$cross_compiling" = yes; then
10386 ac_cv_sizeof_short=2
247f5006 10387else
a0b9e27f 10388 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10389#line 10390 "configure"
a0b9e27f
MB
10390#include "confdefs.h"
10391#include <stdio.h>
dfa2a1d9 10392#include <sys/types.h>
a0b9e27f
MB
10393main()
10394{
10395 FILE *f=fopen("conftestval", "w");
10396 if (!f) exit(1);
10397 fprintf(f, "%d\n", sizeof(short));
10398 exit(0);
10399}
10400EOF
dfa2a1d9 10401if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10402then
10403 ac_cv_sizeof_short=`cat conftestval`
247f5006 10404else
a0b9e27f
MB
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 rm -fr conftest*
10408 ac_cv_sizeof_short=0
247f5006 10409fi
a0b9e27f 10410rm -fr conftest*
247f5006
VZ
10411fi
10412
247f5006 10413fi
a0b9e27f
MB
10414echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10415cat >> confdefs.h <<EOF
10416#define SIZEOF_SHORT $ac_cv_sizeof_short
10417EOF
247f5006
VZ
10418
10419
a0b9e27f 10420echo $ac_n "checking size of void *""... $ac_c" 1>&6
dfa2a1d9 10421echo "configure:10422: checking size of void *" >&5
a0b9e27f
MB
10422if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424else
10425 if test "$cross_compiling" = yes; then
10426 ac_cv_sizeof_void_p=4
247f5006 10427else
a0b9e27f 10428 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10429#line 10430 "configure"
247f5006 10430#include "confdefs.h"
247f5006 10431#include <stdio.h>
dfa2a1d9 10432#include <sys/types.h>
a0b9e27f 10433main()
247f5006 10434{
a0b9e27f
MB
10435 FILE *f=fopen("conftestval", "w");
10436 if (!f) exit(1);
10437 fprintf(f, "%d\n", sizeof(void *));
10438 exit(0);
5c6fa7d2 10439}
a0b9e27f 10440EOF
dfa2a1d9 10441if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10442then
10443 ac_cv_sizeof_void_p=`cat conftestval`
10444else
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -fr conftest*
10448 ac_cv_sizeof_void_p=0
10449fi
10450rm -fr conftest*
10451fi
8284b0c5 10452
247f5006 10453fi
a0b9e27f
MB
10454echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10455cat >> confdefs.h <<EOF
10456#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10457EOF
247f5006 10458
247f5006 10459
a0b9e27f 10460echo $ac_n "checking size of int""... $ac_c" 1>&6
dfa2a1d9 10461echo "configure:10462: checking size of int" >&5
a0b9e27f
MB
10462if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10463 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10464else
a0b9e27f
MB
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_sizeof_int=4
10467else
10468 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10469#line 10470 "configure"
247f5006 10470#include "confdefs.h"
a0b9e27f 10471#include <stdio.h>
dfa2a1d9 10472#include <sys/types.h>
a0b9e27f 10473main()
247f5006 10474{
a0b9e27f
MB
10475 FILE *f=fopen("conftestval", "w");
10476 if (!f) exit(1);
10477 fprintf(f, "%d\n", sizeof(int));
10478 exit(0);
247f5006 10479}
a0b9e27f 10480EOF
dfa2a1d9 10481if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10482then
10483 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10484else
a0b9e27f
MB
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 rm -fr conftest*
10488 ac_cv_sizeof_int=0
21d1c967 10489fi
a0b9e27f 10490rm -fr conftest*
698dcdb6 10491fi
4f14bcd8 10492
21d1c967 10493fi
a0b9e27f
MB
10494echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10495cat >> confdefs.h <<EOF
10496#define SIZEOF_INT $ac_cv_sizeof_int
10497EOF
4f14bcd8 10498
5c6fa7d2 10499
a0b9e27f 10500echo $ac_n "checking size of long""... $ac_c" 1>&6
dfa2a1d9 10501echo "configure:10502: checking size of long" >&5
a0b9e27f
MB
10502if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10504else
247f5006 10505 if test "$cross_compiling" = yes; then
a0b9e27f 10506 ac_cv_sizeof_long=4
247f5006 10507else
a0b9e27f 10508 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10509#line 10510 "configure"
247f5006 10510#include "confdefs.h"
a0b9e27f 10511#include <stdio.h>
dfa2a1d9 10512#include <sys/types.h>
a0b9e27f 10513main()
247f5006 10514{
a0b9e27f
MB
10515 FILE *f=fopen("conftestval", "w");
10516 if (!f) exit(1);
10517 fprintf(f, "%d\n", sizeof(long));
10518 exit(0);
247f5006 10519}
a0b9e27f 10520EOF
dfa2a1d9 10521if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10522then
10523 ac_cv_sizeof_long=`cat conftestval`
247f5006 10524else
a0b9e27f
MB
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10527 rm -fr conftest*
10528 ac_cv_sizeof_long=0
247f5006 10529fi
a0b9e27f 10530rm -fr conftest*
247f5006 10531fi
247f5006 10532
5c6fa7d2 10533fi
a0b9e27f
MB
10534echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10535cat >> confdefs.h <<EOF
10536#define SIZEOF_LONG $ac_cv_sizeof_long
10537EOF
247f5006 10538
a0b9e27f
MB
10539
10540
10541case "${host}" in
10542 arm-*-linux* )
10543 echo $ac_n "checking size of long long""... $ac_c" 1>&6
dfa2a1d9 10544echo "configure:10545: checking size of long long" >&5
a0b9e27f
MB
10545if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547else
10548 if test "$cross_compiling" = yes; then
10549 ac_cv_sizeof_long_long=8
10550else
10551 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10552#line 10553 "configure"
247f5006 10553#include "confdefs.h"
a0b9e27f 10554#include <stdio.h>
dfa2a1d9 10555#include <sys/types.h>
a0b9e27f 10556main()
247f5006 10557{
a0b9e27f
MB
10558 FILE *f=fopen("conftestval", "w");
10559 if (!f) exit(1);
10560 fprintf(f, "%d\n", sizeof(long long));
10561 exit(0);
247f5006 10562}
a0b9e27f 10563EOF
dfa2a1d9 10564if { (eval echo configure:10565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10565then
10566 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10567else
a0b9e27f
MB
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 rm -fr conftest*
10571 ac_cv_sizeof_long_long=0
5c6fa7d2 10572fi
a0b9e27f 10573rm -fr conftest*
5c6fa7d2 10574fi
8284b0c5 10575
a0b9e27f
MB
10576fi
10577echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10578cat >> confdefs.h <<EOF
10579#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10580EOF
10581
10582
10583 ;;
4f57cf11 10584 *-hp-hpux* )
a0b9e27f 10585 echo $ac_n "checking size of long long""... $ac_c" 1>&6
dfa2a1d9 10586echo "configure:10587: checking size of long long" >&5
a0b9e27f
MB
10587if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10589else
10590 if test "$cross_compiling" = yes; then
a0b9e27f 10591 ac_cv_sizeof_long_long=0
8284b0c5 10592else
a0b9e27f 10593 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10594#line 10595 "configure"
8284b0c5
MB
10595#include "confdefs.h"
10596#include <stdio.h>
dfa2a1d9 10597#include <sys/types.h>
a0b9e27f 10598main()
8284b0c5 10599{
a0b9e27f
MB
10600 FILE *f=fopen("conftestval", "w");
10601 if (!f) exit(1);
10602 fprintf(f, "%d\n", sizeof(long long));
10603 exit(0);
8284b0c5 10604}
a0b9e27f 10605EOF
dfa2a1d9 10606if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10607then
10608 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10609else
a0b9e27f
MB
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -fr conftest*
5c6fa7d2 10613 ac_cv_sizeof_long_long=0
52127426 10614fi
a0b9e27f
MB
10615rm -fr conftest*
10616fi
10617
4f57cf11
GD
10618fi
10619echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10620cat >> confdefs.h <<EOF
10621#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10622EOF
10623
10624
10625 if test "$ac_cv_sizeof_long_long" != "0"; then
10626 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10627 fi
10628 ;;
10629 * )
10630 echo $ac_n "checking size of long long""... $ac_c" 1>&6
dfa2a1d9 10631echo "configure:10632: checking size of long long" >&5
4f57cf11
GD
10632if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10634else
10635 if test "$cross_compiling" = yes; then
10636 ac_cv_sizeof_long_long=0
10637else
10638 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10639#line 10640 "configure"
4f57cf11
GD
10640#include "confdefs.h"
10641#include <stdio.h>
dfa2a1d9 10642#include <sys/types.h>
4f57cf11
GD
10643main()
10644{
10645 FILE *f=fopen("conftestval", "w");
10646 if (!f) exit(1);
10647 fprintf(f, "%d\n", sizeof(long long));
10648 exit(0);
10649}
10650EOF
dfa2a1d9 10651if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10652then
10653 ac_cv_sizeof_long_long=`cat conftestval`
10654else
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 rm -fr conftest*
10658 ac_cv_sizeof_long_long=0
10659fi
10660rm -fr conftest*
10661fi
10662
7b4a847f 10663fi
a0b9e27f
MB
10664echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10665cat >> confdefs.h <<EOF
21d1c967 10666#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10667EOF
9e691f46 10668
8284b0c5 10669
21d1c967
GD
10670esac
10671
a0b9e27f 10672echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
dfa2a1d9 10673echo "configure:10674: checking size of wchar_t" >&5
a0b9e27f
MB
10674if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10676else
a0b9e27f 10677
21d1c967 10678 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10679
10680 case "${host}" in
10681 *-pc-msdosdjgpp )
10682 wx_cv_sizeof_wchar_t=0
10683 ;;
10684 * )
10685 wx_cv_sizeof_wchar_t=4
10686 ;;
10687 esac
10688
a0b9e27f 10689
6f72b082 10690else
a0b9e27f 10691 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10692#line 10693 "configure"
6f72b082 10693#include "confdefs.h"
21d1c967 10694
2b5f62a0
VZ
10695 /* DJGPP only has fake wchar_t: */
10696 #ifdef __DJGPP__
10697 # error "fake wchar_t"
10698 #endif
21d1c967
GD
10699 #ifdef HAVE_WCHAR_H
10700 # ifdef __CYGWIN__
10701 # include <stddef.h>
10702 # endif
10703 # include <wchar.h>
10704 #endif
10705 #ifdef HAVE_STDLIB_H
10706 # include <stdlib.h>
10707 #endif
10708 #include <stdio.h>
10709 int main()
10710 {
10711 FILE *f=fopen("conftestval", "w");
10712 if (!f) exit(1);
10713 fprintf(f, "%i", sizeof(wchar_t));
10714 exit(0);
10715 }
a0b9e27f
MB
10716
10717EOF
dfa2a1d9 10718if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10719then
21d1c967 10720 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10721else
a0b9e27f
MB
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -fr conftest*
10725 wx_cv_sizeof_wchar_t=0
6f72b082 10726fi
a0b9e27f 10727rm -fr conftest*
6f72b082 10728fi
6f72b082 10729
a0b9e27f 10730
3f345b47
VZ
10731fi
10732
a0b9e27f
MB
10733echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10734
10735cat >> confdefs.h <<EOF
21d1c967 10736#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10737EOF
90dd450c 10738
8284b0c5 10739
21d1c967
GD
10740# Check whether --enable-largefile or --disable-largefile was given.
10741if test "${enable_largefile+set}" = set; then
10742 enableval="$enable_largefile"
a0b9e27f
MB
10743 :
10744fi
3f345b47 10745
21d1c967
GD
10746if test "$enable_largefile" != no; then
10747 wx_largefile=no
a0b9e27f
MB
10748
10749 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
dfa2a1d9 10750echo "configure:10751: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10751if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753else
10754
10755 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10756#line 10757 "configure"
90dd450c 10757#include "confdefs.h"
21d1c967
GD
10758#define _FILE_OFFSET_BITS 64
10759 #include <sys/types.h>
a0b9e27f 10760int main() {
21d1c967
GD
10761typedef struct {
10762 unsigned int field: sizeof(off_t) == 8;
10763} wxlf;
10764
a0b9e27f
MB
10765; return 0; }
10766EOF
dfa2a1d9 10767if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10768 rm -rf conftest*
21d1c967 10769 ac_cv_sys_file_offset_bits=64
f6bcfd97 10770else
a0b9e27f
MB
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10775fi
a0b9e27f
MB
10776rm -f conftest*
10777
10778
247f5006 10779fi
a0b9e27f
MB
10780
10781echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10782
10783 if test "$ac_cv_sys_file_offset_bits" != no; then
10784 wx_largefile=yes
a0b9e27f 10785 cat >> confdefs.h <<EOF
21d1c967 10786#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10787EOF
21d1c967
GD
10788
10789 fi
10790
10791 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10792
10793 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
dfa2a1d9 10794echo "configure:10795: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10795if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797else
10798
10799 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10800#line 10801 "configure"
f6bcfd97 10801#include "confdefs.h"
21d1c967
GD
10802#define _LARGE_FILES 1
10803 #include <sys/types.h>
a0b9e27f 10804int main() {
21d1c967
GD
10805typedef struct {
10806 unsigned int field: sizeof(off_t) == 8;
10807} wxlf;
10808
a0b9e27f
MB
10809; return 0; }
10810EOF
dfa2a1d9 10811if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10812 rm -rf conftest*
21d1c967 10813 ac_cv_sys_large_files=1
f6bcfd97 10814else
a0b9e27f
MB
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 ac_cv_sys_large_files=no
5c6fa7d2 10819fi
a0b9e27f
MB
10820rm -f conftest*
10821
10822
247f5006 10823fi
a0b9e27f
MB
10824
10825echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10826
21d1c967
GD
10827 if test "$ac_cv_sys_large_files" != no; then
10828 wx_largefile=yes
a0b9e27f 10829 cat >> confdefs.h <<EOF
21d1c967 10830#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10831EOF
90dd450c 10832
90dd450c
VZ
10833 fi
10834
90dd450c 10835 fi
90dd450c 10836
a0b9e27f 10837 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
dfa2a1d9 10838echo "configure:10839: checking if large file support is available" >&5
21d1c967 10839 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10840 cat >> confdefs.h <<\EOF
21d1c967 10841#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10842EOF
90dd450c 10843
90dd450c 10844 fi
a0b9e27f 10845 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10846fi
90dd450c 10847
8284b0c5 10848
f02444d0 10849if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10850 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10851 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10852 else
e26c13cf 10853 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10854 fi
e26c13cf 10855 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10856fi
10857
a0b9e27f 10858echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
dfa2a1d9 10859echo "configure:10860: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10860if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10862else
21d1c967
GD
10863 ac_cv_c_bigendian=unknown
10864# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10865cat > conftest.$ac_ext <<EOF
dfa2a1d9 10866#line 10867 "configure"
90dd450c 10867#include "confdefs.h"
21d1c967
GD
10868#include <sys/types.h>
10869#include <sys/param.h>
a0b9e27f 10870int main() {
21d1c967
GD
10871
10872#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10873 bogus endian macros
10874#endif
a0b9e27f
MB
10875; return 0; }
10876EOF
dfa2a1d9 10877if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10878 rm -rf conftest*
21d1c967 10879 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10880cat > conftest.$ac_ext <<EOF
dfa2a1d9 10881#line 10882 "configure"
90dd450c 10882#include "confdefs.h"
21d1c967
GD
10883#include <sys/types.h>
10884#include <sys/param.h>
a0b9e27f 10885int main() {
21d1c967
GD
10886
10887#if BYTE_ORDER != BIG_ENDIAN
10888 not big endian
10889#endif
a0b9e27f
MB
10890; return 0; }
10891EOF
dfa2a1d9 10892if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10893 rm -rf conftest*
21d1c967 10894 ac_cv_c_bigendian=yes
3f345b47 10895else
a0b9e27f
MB
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 ac_cv_c_bigendian=no
3f345b47 10900fi
a0b9e27f 10901rm -f conftest*
3f345b47 10902else
a0b9e27f
MB
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
3f345b47 10905fi
a0b9e27f 10906rm -f conftest*
21d1c967
GD
10907if test $ac_cv_c_bigendian = unknown; then
10908if test "$cross_compiling" = yes; then
10909 ac_cv_c_bigendian=unknown
10f2d63a 10910else
a0b9e27f 10911 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10912#line 10913 "configure"
90dd450c 10913#include "confdefs.h"
21d1c967
GD
10914main () {
10915 /* Are we little or big endian? From Harbison&Steele. */
10916 union
10917 {
10918 long l;
10919 char c[sizeof (long)];
10920 } u;
10921 u.l = 1;
10922 exit (u.c[sizeof (long) - 1] == 1);
10923}
a0b9e27f 10924EOF
dfa2a1d9 10925if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10926then
21d1c967 10927 ac_cv_c_bigendian=no
3f345b47 10928else
a0b9e27f
MB
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -fr conftest*
10932 ac_cv_c_bigendian=yes
247f5006 10933fi
a0b9e27f 10934rm -fr conftest*
247f5006 10935fi
a0b9e27f 10936
3f345b47 10937fi
8168de4c 10938fi
a0b9e27f
MB
10939
10940echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10941if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10942 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
10943fi
10944if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10945 cat >> confdefs.h <<\EOF
247f5006 10946#define WORDS_BIGENDIAN 1
a0b9e27f 10947EOF
247f5006
VZ
10948
10949fi
10950
10951
a0b9e27f 10952echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
dfa2a1d9 10953echo "configure:10954: checking how to run the C++ preprocessor" >&5
247f5006 10954if test -z "$CXXCPP"; then
a0b9e27f
MB
10955if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10957else
a0b9e27f
MB
10958 ac_ext=C
10959# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10960ac_cpp='$CXXCPP $CPPFLAGS'
10961ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10962ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10963cross_compiling=$ac_cv_prog_cxx_cross
10964 CXXCPP="${CXX-g++} -E"
10965 cat > conftest.$ac_ext <<EOF
dfa2a1d9 10966#line 10967 "configure"
5c6fa7d2 10967#include "confdefs.h"
a0b9e27f
MB
10968#include <stdlib.h>
10969EOF
10970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 10971{ (eval echo configure:10972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10973if test -z "$ac_err"; then
21d1c967 10974 :
698dcdb6 10975else
a0b9e27f
MB
10976 echo "$ac_err" >&5
10977 echo "configure: failed program was:" >&5
698dcdb6 10978 cat conftest.$ac_ext >&5
a0b9e27f
MB
10979 rm -rf conftest*
10980 CXXCPP=/lib/cpp
247f5006 10981fi
a0b9e27f
MB
10982rm -f conftest*
10983 ac_cv_prog_CXXCPP="$CXXCPP"
10984ac_ext=C
10985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10986ac_cpp='$CXXCPP $CPPFLAGS'
10987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10989cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10990fi
90dd450c 10991fi
a0b9e27f
MB
10992CXXCPP="$ac_cv_prog_CXXCPP"
10993echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10994
1725144d 10995
21d1c967 10996 if test "$cross_compiling" = "yes"; then
a0b9e27f 10997 cat >> confdefs.h <<\EOF
21d1c967 10998#define wxUSE_IOSTREAMH 1
a0b9e27f 10999EOF
ab9b9eab 11000
21d1c967 11001 else
a0b9e27f
MB
11002
11003 ac_ext=C
11004# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11005ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11006ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008cross_compiling=$ac_cv_prog_cxx_cross
52127426 11009
247f5006 11010
a0b9e27f 11011 for ac_hdr in iostream
21d1c967 11012do
a0b9e27f
MB
11013ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11014echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 11015echo "configure:11016: checking for $ac_hdr" >&5
a0b9e27f
MB
11016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018else
11019 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11020#line 11021 "configure"
ab9b9eab 11021#include "confdefs.h"
a0b9e27f
MB
11022#include <$ac_hdr>
11023EOF
11024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 11025{ (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027if test -z "$ac_err"; then
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=yes"
11030else
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
ab9b9eab 11033 cat conftest.$ac_ext >&5
a0b9e27f
MB
11034 rm -rf conftest*
11035 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11036fi
a0b9e27f 11037rm -f conftest*
90dd450c 11038fi
a0b9e27f
MB
11039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11042 cat >> confdefs.h <<EOF
11043#define $ac_tr_hdr 1
11044EOF
11045
11046else
11047 echo "$ac_t""no" 1>&6
90dd450c 11048fi
21d1c967 11049done
10f2d63a 11050
8284b0c5 11051
21d1c967
GD
11052 if test "$ac_cv_header_iostream" = "yes" ; then
11053 :
11054 else
a0b9e27f 11055 cat >> confdefs.h <<\EOF
21d1c967 11056#define wxUSE_IOSTREAMH 1
a0b9e27f 11057EOF
788deba1 11058
90dd450c 11059 fi
ab9b9eab 11060
21d1c967 11061 ac_ext=c
a0b9e27f 11062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11063ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11067
21d1c967 11068 fi
ab9b9eab 11069
52127426 11070
8284b0c5 11071
a0b9e27f 11072 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
dfa2a1d9 11073echo "configure:11074: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11074if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11076else
a0b9e27f
MB
11077
11078
11079 ac_ext=C
11080# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11081ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11082ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11083ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11084cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11085
8284b0c5 11086
a0b9e27f 11087 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11088#line 11089 "configure"
ab9b9eab 11089#include "confdefs.h"
21d1c967 11090
a0b9e27f
MB
11091
11092int main() {
21d1c967
GD
11093
11094 bool b = true;
11095
11096 return 0;
a0b9e27f
MB
11097
11098; return 0; }
11099EOF
dfa2a1d9 11100if { (eval echo configure:11101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11101 rm -rf conftest*
11102
21d1c967 11103 wx_cv_cpp_bool=yes
a0b9e27f 11104
698dcdb6 11105else
a0b9e27f
MB
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11108 rm -rf conftest*
11109
21d1c967 11110 wx_cv_cpp_bool=no
a0b9e27f
MB
11111
11112
698dcdb6 11113fi
a0b9e27f 11114rm -f conftest*
21d1c967
GD
11115
11116 ac_ext=c
a0b9e27f 11117# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11118ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11119ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11122
a0b9e27f 11123
247f5006 11124fi
a0b9e27f
MB
11125
11126echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11127
11128 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11129 cat >> confdefs.h <<\EOF
21d1c967 11130#define HAVE_BOOL 1
a0b9e27f 11131EOF
ab9b9eab 11132
21d1c967
GD
11133 fi
11134
52127426 11135
8284b0c5 11136
a0b9e27f 11137 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
dfa2a1d9 11138echo "configure:11139: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11139if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11141else
a0b9e27f
MB
11142
11143
11144 ac_ext=C
11145# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11146ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11147ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11150
8284b0c5 11151
a0b9e27f 11152 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11153#line 11154 "configure"
986ecc86
VZ
11154#include "confdefs.h"
11155
11156 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11157
11158int main() {
986ecc86
VZ
11159
11160 return 0;
a0b9e27f
MB
11161
11162; return 0; }
11163EOF
dfa2a1d9 11164if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11165 rm -rf conftest*
11166
11167 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11168#line 11169 "configure"
986ecc86
VZ
11169#include "confdefs.h"
11170
11171 class Foo { public: explicit Foo(int) {} };
11172 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11173
11174int main() {
986ecc86
VZ
11175
11176 TakeFoo(17);
11177 return 0;
a0b9e27f
MB
11178
11179; return 0; }
11180EOF
dfa2a1d9 11181if { (eval echo configure:11182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11182 rm -rf conftest*
986ecc86
VZ
11183 wx_cv_explicit=no
11184else
a0b9e27f
MB
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 rm -rf conftest*
11188 wx_cv_explicit=yes
11189
986ecc86 11190fi
a0b9e27f
MB
11191rm -f conftest*
11192
986ecc86 11193else
a0b9e27f
MB
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 wx_cv_explicit=no
11198
986ecc86 11199fi
a0b9e27f 11200rm -f conftest*
986ecc86
VZ
11201
11202 ac_ext=c
a0b9e27f 11203# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11204ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11205ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11206ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11207cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11208
a0b9e27f 11209
247f5006 11210fi
a0b9e27f
MB
11211
11212echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11213
11214 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11215 cat >> confdefs.h <<\EOF
986ecc86 11216#define HAVE_EXPLICIT 1
a0b9e27f 11217EOF
986ecc86
VZ
11218
11219 fi
11220
8284b0c5 11221
521196a2 11222echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
dfa2a1d9 11223echo "configure:11224: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11224if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226else
11227
11228 ac_ext=C
11229# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11230ac_cpp='$CXXCPP $CPPFLAGS'
11231ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11232ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11233cross_compiling=$ac_cv_prog_cxx_cross
11234
11235 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11236#line 11237 "configure"
521196a2
MB
11237#include "confdefs.h"
11238
11239int main() {
11240int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11241; return 0; }
11242EOF
dfa2a1d9 11243if { (eval echo configure:11244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11244 rm -rf conftest*
11245 ac_cv_cxx_const_cast=yes
11246else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 ac_cv_cxx_const_cast=no
11251fi
11252rm -f conftest*
11253 ac_ext=c
11254# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11255ac_cpp='$CPP $CPPFLAGS'
11256ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11257ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11258cross_compiling=$ac_cv_prog_cc_cross
11259
11260
11261fi
11262
11263echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11264if test "$ac_cv_cxx_const_cast" = yes; then
11265 cat >> confdefs.h <<\EOF
11266#define HAVE_CONST_CAST
11267EOF
11268
11269fi
11270
11271
8284b0c5 11272
21d1c967
GD
11273SEARCH_INCLUDE="\
11274 /usr/local/include \
11275 \
11276 /usr/Motif-1.2/include \
11277 /usr/Motif-2.1/include \
11278 \
11279 /usr/include/Motif1.2 \
11280 /opt/xpm/include/X11 \
11281 /opt/GBxpm/include/ \
11282 /opt/GBxpm/X11/include/ \
11283 \
11284 /usr/Motif1.2/include \
11285 /usr/dt/include \
11286 /usr/openwin/include \
11287 \
11288 /usr/include/Xm \
11289 \
11290 /usr/X11R6/include \
11291 /usr/X11R6.4/include \
11292 /usr/X11R5/include \
11293 /usr/X11R4/include \
11294 \
11295 /usr/include/X11R6 \
11296 /usr/include/X11R5 \
11297 /usr/include/X11R4 \
11298 \
11299 /usr/local/X11R6/include \
11300 /usr/local/X11R5/include \
11301 /usr/local/X11R4/include \
11302 \
11303 /usr/local/include/X11R6 \
11304 /usr/local/include/X11R5 \
11305 /usr/local/include/X11R4 \
11306 \
11307 /usr/X11/include \
11308 /usr/include/X11 \
11309 /usr/local/X11/include \
11310 /usr/local/include/X11 \
11311 \
11312 /usr/X386/include \
11313 /usr/x386/include \
11314 /usr/XFree86/include/X11 \
11315 \
11316 X:/XFree86/include \
11317 X:/XFree86/include/X11 \
11318 \
11319 /usr/include/gtk \
11320 /usr/local/include/gtk \
11321 /usr/include/glib \
11322 /usr/local/include/glib \
11323 \
11324 /usr/include/qt \
11325 /usr/local/include/qt \
11326 \
11327 /usr/include/windows \
11328 /usr/include/wine \
11329 /usr/local/include/wine \
11330 \
11331 /usr/unsupported/include \
11332 /usr/athena/include \
11333 /usr/local/x11r5/include \
11334 /usr/lpp/Xamples/include \
11335 \
2b5f62a0 11336 /usr/openwin/share/include"
21d1c967
GD
11337
11338SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11339
8284b0c5 11340
a0b9e27f 11341cat > confcache <<\EOF
21d1c967
GD
11342# This file is a shell script that caches the results of configure
11343# tests run on this system so they can be shared between configure
a0b9e27f
MB
11344# scripts and configure runs. It is not useful on other systems.
11345# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11346#
a0b9e27f
MB
11347# By default, configure uses ./config.cache as the cache file,
11348# creating it if it does not exist already. You can give configure
11349# the --cache-file=FILE option to use a different cache file; that is
11350# what configure does when it calls configure scripts in
11351# subdirectories, so they share the cache.
11352# Giving --cache-file=/dev/null disables caching, for debugging configure.
11353# config.status only pays attention to the cache file if you give it the
11354# --recheck option to rerun configure.
21d1c967 11355#
a0b9e27f 11356EOF
21d1c967
GD
11357# The following way of writing the cache mishandles newlines in values,
11358# but we know of no workaround that is simple, portable, and efficient.
11359# So, don't put newlines in cache variables' values.
11360# Ultrix sh set writes to stderr and can't be redirected directly,
11361# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11362(set) 2>&1 |
11363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11364 *ac_space=\ *)
11365 # `set' does not quote correctly, so add quotes (double-quote substitution
11366 # turns \\\\ into \\, and sed turns \\ into \).
11367 sed -n \
11368 -e "s/'/'\\\\''/g" \
11369 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11370 ;;
11371 *)
11372 # `set' quotes correctly as required by POSIX, so do not add quotes.
11373 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11374 ;;
11375 esac >> confcache
11376if cmp -s $cache_file confcache; then
11377 :
11378else
21d1c967 11379 if test -w $cache_file; then
a0b9e27f
MB
11380 echo "updating cache $cache_file"
11381 cat confcache > $cache_file
21d1c967
GD
11382 else
11383 echo "not updating unwritable cache $cache_file"
11384 fi
ab9b9eab 11385fi
21d1c967 11386rm -f confcache
ab9b9eab 11387
247f5006 11388
a0b9e27f
MB
11389if test "$USE_LINUX" = 1; then
11390 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
dfa2a1d9 11391echo "configure:11392: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11392if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11394else
11395
11396 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11397#line 11398 "configure"
ab9b9eab 11398#include "confdefs.h"
21d1c967 11399#include <features.h>
a0b9e27f 11400int main() {
ab9b9eab 11401
21d1c967
GD
11402 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11403 #error not glibc2.1
11404 #endif
a0b9e27f
MB
11405
11406; return 0; }
11407EOF
dfa2a1d9 11408if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11409 rm -rf conftest*
11410
21d1c967 11411 wx_cv_lib_glibc21=yes
a0b9e27f 11412
698dcdb6 11413else
a0b9e27f
MB
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -rf conftest*
11417
21d1c967 11418 wx_cv_lib_glibc21=no
a0b9e27f
MB
11419
11420
5c6fa7d2 11421fi
a0b9e27f
MB
11422rm -f conftest*
11423
247f5006 11424fi
a0b9e27f
MB
11425
11426echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11427 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11428 cat >> confdefs.h <<\EOF
21d1c967 11429#define wxHAVE_GLIBC2 1
a0b9e27f 11430EOF
1e487827 11431
90dd450c 11432 fi
ab9b9eab
VZ
11433fi
11434
5c0a20c3
VZ
11435if test "x$wx_cv_lib_glibc21" = "xyes"; then
11436 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11437 cat >> confdefs.h <<\EOF
5c0a20c3 11438#define _GNU_SOURCE 1
a0b9e27f 11439EOF
5c0a20c3
VZ
11440
11441 fi
11442fi
11443
8284b0c5
MB
11444
11445
21d1c967
GD
11446REGEX_INCLUDE=
11447if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11448 cat >> confdefs.h <<\EOF
21d1c967 11449#define wxUSE_REGEX 1
a0b9e27f 11450EOF
698dcdb6 11451
8284b0c5 11452
21d1c967 11453 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11454 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11455echo $ac_n "checking for regex.h""... $ac_c" 1>&6
dfa2a1d9 11456echo "configure:11457: checking for regex.h" >&5
a0b9e27f
MB
11457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459else
11460 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11461#line 11462 "configure"
247f5006
VZ
11462#include "confdefs.h"
11463#include <regex.h>
a0b9e27f
MB
11464EOF
11465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 11466{ (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468if test -z "$ac_err"; then
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=yes"
11471else
11472 echo "$ac_err" >&5
11473 echo "configure: failed program was:" >&5
21d1c967 11474 cat conftest.$ac_ext >&5
a0b9e27f
MB
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=no"
21d1c967 11477fi
a0b9e27f 11478rm -f conftest*
698dcdb6 11479fi
a0b9e27f
MB
11480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 for ac_func in regcomp
21d1c967 11483do
a0b9e27f 11484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 11485echo "configure:11486: checking for $ac_func" >&5
a0b9e27f
MB
11486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11488else
a0b9e27f 11489 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11490#line 11491 "configure"
a0b9e27f
MB
11491#include "confdefs.h"
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
21d1c967
GD
11494#include <assert.h>
11495/* Override any gcc2 internal prototype to avoid an error. */
11496/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11497 builtin and then its argument prototype would still apply. */
11498char $ac_func();
11499
11500int main() {
11501
21d1c967
GD
11502/* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506choke me
11507#else
a0b9e27f 11508$ac_func();
21d1c967 11509#endif
90dd450c 11510
a0b9e27f
MB
11511; return 0; }
11512EOF
dfa2a1d9 11513if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11514 rm -rf conftest*
11515 eval "ac_cv_func_$ac_func=yes"
11516else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 eval "ac_cv_func_$ac_func=no"
11521fi
11522rm -f conftest*
11523fi
5c6fa7d2 11524
a0b9e27f
MB
11525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11528 cat >> confdefs.h <<EOF
11529#define $ac_tr_func 1
11530EOF
11531
11532else
11533 echo "$ac_t""no" 1>&6
698dcdb6 11534fi
21d1c967
GD
11535done
11536
a0b9e27f
MB
11537else
11538 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11539fi
11540
8284b0c5 11541
21d1c967
GD
11542 if test "x$ac_cv_func_regcomp" != "xyes"; then
11543 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11544 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11545 else
a0b9e27f 11546 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11547 wxUSE_REGEX=builtin
11548 fi
11549 else
11550 wxUSE_REGEX=sys
11551 fi
ab9b9eab 11552 fi
90dd450c 11553
21d1c967
GD
11554 if test "$wxUSE_REGEX" = "builtin" ; then
11555 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11556 fi
21d1c967 11557fi
90dd450c 11558
8284b0c5 11559
21d1c967
GD
11560ZLIB_INCLUDE=
11561ZLIB_LINK=
11562if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11563 cat >> confdefs.h <<\EOF
21d1c967 11564#define wxUSE_ZLIB 1
a0b9e27f 11565EOF
21d1c967 11566
8284b0c5 11567
21d1c967 11568 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11569 if test "$USE_DARWIN" = 1; then
11570 system_zlib_h_ok="yes"
11571 else
11572 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
dfa2a1d9 11573echo "configure:11574: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11574if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11576else
11577 if test "$cross_compiling" = yes; then
89e6bf6d 11578 unset ac_cv_header_zlib_h
d775acfa 11579
d643b80e
VZ
11580else
11581 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11582#line 11583 "configure"
d643b80e
VZ
11583#include "confdefs.h"
11584
d775acfa
VZ
11585 #include <zlib.h>
11586 #include <stdio.h>
d643b80e 11587
d775acfa
VZ
11588
11589 int main()
11590 {
11591 FILE *f=fopen("conftestval", "w");
11592 if (!f) exit(1);
11593 fprintf(f, "%s",
11594 ZLIB_VERSION[0] == '1' &&
11595 (ZLIB_VERSION[2] > '1' ||
11596 (ZLIB_VERSION[2] == '1' &&
11597 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11598 exit(0);
11599 }
11600
d643b80e 11601
d643b80e 11602EOF
dfa2a1d9 11603if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11604then
11605 ac_cv_header_zlib_h=`cat conftestval`
11606else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -fr conftest*
11610 ac_cv_header_zlib_h=no
11611fi
11612rm -fr conftest*
11613fi
11614
d775acfa 11615
d643b80e
VZ
11616fi
11617
11618echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11619 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11620echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
dfa2a1d9 11621echo "configure:11622: checking for zlib.h" >&5
89e6bf6d
VZ
11622if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624else
11625 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11626#line 11627 "configure"
89e6bf6d
VZ
11627#include "confdefs.h"
11628#include <zlib.h>
11629EOF
11630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 11631{ (eval echo configure:11632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11633if test -z "$ac_err"; then
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=yes"
11636else
11637 echo "$ac_err" >&5
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 rm -rf conftest*
11641 eval "ac_cv_header_$ac_safe=no"
11642fi
11643rm -f conftest*
11644fi
11645if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 :
11648else
11649 echo "$ac_t""no" 1>&6
11650fi
11651
d643b80e 11652
d775acfa
VZ
11653 system_zlib_h_ok=$ac_cv_header_zlib_h
11654 fi
11655
11656 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11657 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
dfa2a1d9 11658echo "configure:11659: checking for deflate in -lz" >&5
a0b9e27f
MB
11659ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11660if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11662else
a0b9e27f 11663 ac_save_LIBS="$LIBS"
21d1c967 11664LIBS="-lz $LIBS"
a0b9e27f 11665cat > conftest.$ac_ext <<EOF
dfa2a1d9 11666#line 11667 "configure"
ab9b9eab 11667#include "confdefs.h"
21d1c967
GD
11668/* Override any gcc2 internal prototype to avoid an error. */
11669/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11670 builtin and then its argument prototype would still apply. */
11671char deflate();
11672
11673int main() {
11674deflate()
11675; return 0; }
11676EOF
dfa2a1d9 11677if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11678 rm -rf conftest*
11679 eval "ac_cv_lib_$ac_lib_var=yes"
11680else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11685fi
a0b9e27f
MB
11686rm -f conftest*
11687LIBS="$ac_save_LIBS"
698dcdb6 11688
698dcdb6 11689fi
a0b9e27f
MB
11690if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 ZLIB_LINK=" -lz"
11693else
11694 echo "$ac_t""no" 1>&6
11695fi
698dcdb6 11696
d643b80e 11697 fi
247f5006 11698
21d1c967
GD
11699 if test "x$ZLIB_LINK" = "x" ; then
11700 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11701 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11702 else
d643b80e 11703 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11704 wxUSE_ZLIB=builtin
11705 fi
11706 else
11707 wxUSE_ZLIB=sys
11708 fi
11709 fi
11710
11711 if test "$wxUSE_ZLIB" = "builtin" ; then
11712 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11713 fi
ab9b9eab
VZ
11714fi
11715
8284b0c5 11716
21d1c967
GD
11717PNG_INCLUDE=
11718PNG_LINK=
11719if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11720 cat >> confdefs.h <<\EOF
21d1c967 11721#define wxUSE_LIBPNG 1
a0b9e27f 11722EOF
90dd450c 11723
8284b0c5 11724
21d1c967 11725 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11726 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11727 wxUSE_LIBPNG=sys
11728 fi
90dd450c 11729
21d1c967 11730 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11731 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11732 wxUSE_LIBPNG=builtin
11733 fi
11734
11735 if test "$wxUSE_MGL" != 1 ; then
11736 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11737 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
dfa2a1d9 11738echo "configure:11739: checking for png.h > 0.90" >&5
5d3f766d
VZ
11739if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11741else
11742 if test "$cross_compiling" = yes; then
89e6bf6d 11743 unset ac_cv_header_png_h
5d3f766d
VZ
11744
11745else
11746 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11747#line 11748 "configure"
5d3f766d
VZ
11748#include "confdefs.h"
11749
11750 #include <png.h>
11751 #include <stdio.h>
11752
11753 int main()
11754 {
11755 FILE *f=fopen("conftestval", "w");
11756 if (!f) exit(1);
11757 fprintf(f, "%s",
11758 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11759 exit(0);
11760 }
11761
11762EOF
dfa2a1d9 11763if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11764then
11765 ac_cv_header_png_h=`cat conftestval`
11766else
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 rm -fr conftest*
11770 ac_cv_header_png_h=no
11771fi
11772rm -fr conftest*
11773fi
11774
11775
11776fi
11777
11778echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11779 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11780echo $ac_n "checking for png.h""... $ac_c" 1>&6
dfa2a1d9 11781echo "configure:11782: checking for png.h" >&5
89e6bf6d
VZ
11782if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784else
11785 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11786#line 11787 "configure"
89e6bf6d
VZ
11787#include "confdefs.h"
11788#include <png.h>
11789EOF
11790ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 11791{ (eval echo configure:11792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11792ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11793if test -z "$ac_err"; then
11794 rm -rf conftest*
11795 eval "ac_cv_header_$ac_safe=yes"
11796else
11797 echo "$ac_err" >&5
11798 echo "configure: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11800 rm -rf conftest*
11801 eval "ac_cv_header_$ac_safe=no"
11802fi
11803rm -f conftest*
11804fi
11805if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11806 echo "$ac_t""yes" 1>&6
11807 :
11808else
11809 echo "$ac_t""no" 1>&6
11810fi
11811
5d3f766d
VZ
11812
11813 if test "$ac_cv_header_png_h" = "yes"; then
11814 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
dfa2a1d9 11815echo "configure:11816: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11816ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11817if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11819else
a0b9e27f 11820 ac_save_LIBS="$LIBS"
21d1c967 11821LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11822cat > conftest.$ac_ext <<EOF
dfa2a1d9 11823#line 11824 "configure"
90dd450c 11824#include "confdefs.h"
21d1c967
GD
11825/* Override any gcc2 internal prototype to avoid an error. */
11826/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11827 builtin and then its argument prototype would still apply. */
11828char png_check_sig();
90dd450c 11829
a0b9e27f
MB
11830int main() {
11831png_check_sig()
11832; return 0; }
11833EOF
dfa2a1d9 11834if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11835 rm -rf conftest*
11836 eval "ac_cv_lib_$ac_lib_var=yes"
11837else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 eval "ac_cv_lib_$ac_lib_var=no"
11842fi
11843rm -f conftest*
11844LIBS="$ac_save_LIBS"
247f5006 11845
90dd450c 11846fi
a0b9e27f
MB
11847if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 PNG_LINK=" -lpng"
11850else
11851 echo "$ac_t""no" 1>&6
11852fi
90dd450c 11853
5d3f766d 11854 fi
247f5006 11855
21d1c967
GD
11856 if test "x$PNG_LINK" = "x" ; then
11857 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11858 { 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 11859 else
0c98a14e 11860 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11861 wxUSE_LIBPNG=builtin
11862 fi
11863 else
2b5f62a0 11864 wxUSE_LIBPNG=sys
21d1c967
GD
11865 fi
11866 fi
11867 fi
90dd450c 11868
21d1c967
GD
11869 if test "$wxUSE_LIBPNG" = "builtin" ; then
11870 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11871 fi
90dd450c 11872
21d1c967 11873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11874fi
11875
8284b0c5 11876
21d1c967
GD
11877JPEG_INCLUDE=
11878JPEG_LINK=
11879if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11880 cat >> confdefs.h <<\EOF
21d1c967 11881#define wxUSE_LIBJPEG 1
a0b9e27f 11882EOF
90dd450c 11883
8284b0c5 11884
21d1c967 11885 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11886 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11887 wxUSE_LIBJPEG=sys
11888 fi
90dd450c 11889
21d1c967
GD
11890 if test "$wxUSE_MGL" != 1 ; then
11891 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11892 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
dfa2a1d9 11893echo "configure:11894: checking for jpeglib.h" >&5
a0b9e27f
MB
11894 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11895 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11896else
a0b9e27f 11897 cat > conftest.$ac_ext <<EOF
dfa2a1d9 11898#line 11899 "configure"
21d1c967 11899#include "confdefs.h"
90dd450c 11900
21d1c967
GD
11901 #undef HAVE_STDLIB_H
11902 #include <stdio.h>
11903 #include <jpeglib.h>
a0b9e27f
MB
11904
11905int main() {
90dd450c 11906
a0b9e27f
MB
11907
11908; return 0; }
11909EOF
dfa2a1d9 11910if { (eval echo configure:11911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11911 rm -rf conftest*
21d1c967 11912 ac_cv_header_jpeglib_h=yes
90dd450c 11913else
a0b9e27f
MB
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -rf conftest*
11917 ac_cv_header_jpeglib_h=no
11918
90dd450c 11919fi
a0b9e27f
MB
11920rm -f conftest*
11921
90dd450c
VZ
11922fi
11923
a0b9e27f 11924 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11925
21d1c967 11926 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11927 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
dfa2a1d9 11928echo "configure:11929: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11929ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11930if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11932else
a0b9e27f 11933 ac_save_LIBS="$LIBS"
21d1c967 11934LIBS="-ljpeg $LIBS"
a0b9e27f 11935cat > conftest.$ac_ext <<EOF
dfa2a1d9 11936#line 11937 "configure"
21d1c967
GD
11937#include "confdefs.h"
11938/* Override any gcc2 internal prototype to avoid an error. */
11939/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11940 builtin and then its argument prototype would still apply. */
11941char jpeg_read_header();
11942
11943int main() {
11944jpeg_read_header()
11945; return 0; }
11946EOF
dfa2a1d9 11947if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11948 rm -rf conftest*
11949 eval "ac_cv_lib_$ac_lib_var=yes"
11950else
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 rm -rf conftest*
11954 eval "ac_cv_lib_$ac_lib_var=no"
11955fi
11956rm -f conftest*
11957LIBS="$ac_save_LIBS"
11958
11959fi
11960if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
21d1c967 11962 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11963else
11964 echo "$ac_t""no" 1>&6
90dd450c
VZ
11965fi
11966
21d1c967 11967 fi
90dd450c 11968
21d1c967
GD
11969 if test "x$JPEG_LINK" = "x" ; then
11970 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11971 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11972 else
a0b9e27f 11973 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11974 wxUSE_LIBJPEG=builtin
11975 fi
11976 else
11977 wxUSE_LIBJPEG=sys
11978 fi
11979 fi
11980 fi
90dd450c 11981
21d1c967
GD
11982 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11983 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11984 fi
11985fi
90dd450c 11986
8284b0c5 11987
21d1c967
GD
11988TIFF_INCLUDE=
11989TIFF_LINK=
2b5f62a0 11990TIFF_PREREQ_LINKS=-lm
21d1c967 11991if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 11992 cat >> confdefs.h <<\EOF
21d1c967 11993#define wxUSE_LIBTIFF 1
a0b9e27f 11994EOF
21d1c967 11995
8284b0c5 11996
21d1c967 11997 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
11998 if test "$wxUSE_LIBJPEG" = "sys"; then
11999 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12000 fi
12001 if test "$wxUSE_ZLIB" = "sys"; then
12002 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12003 fi
a0b9e27f
MB
12004 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12005echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
dfa2a1d9 12006echo "configure:12007: checking for tiffio.h" >&5
a0b9e27f
MB
12007if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009else
12010 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12011#line 12012 "configure"
247f5006
VZ
12012#include "confdefs.h"
12013#include <tiffio.h>
a0b9e27f
MB
12014EOF
12015ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 12016{ (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12017ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018if test -z "$ac_err"; then
12019 rm -rf conftest*
12020 eval "ac_cv_header_$ac_safe=yes"
12021else
12022 echo "$ac_err" >&5
12023 echo "configure: failed program was:" >&5
21d1c967 12024 cat conftest.$ac_ext >&5
a0b9e27f
MB
12025 rm -rf conftest*
12026 eval "ac_cv_header_$ac_safe=no"
21d1c967 12027fi
a0b9e27f 12028rm -f conftest*
21d1c967 12029fi
a0b9e27f
MB
12030if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12032 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
dfa2a1d9 12033echo "configure:12034: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12034ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12037else
a0b9e27f 12038 ac_save_LIBS="$LIBS"
2b5f62a0 12039LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12040cat > conftest.$ac_ext <<EOF
dfa2a1d9 12041#line 12042 "configure"
ab9b9eab
VZ
12042#include "confdefs.h"
12043/* Override any gcc2 internal prototype to avoid an error. */
12044/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12045 builtin and then its argument prototype would still apply. */
12046char TIFFError();
ab9b9eab 12047
a0b9e27f
MB
12048int main() {
12049TIFFError()
12050; return 0; }
12051EOF
dfa2a1d9 12052if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=yes"
12055else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_lib_$ac_lib_var=no"
12060fi
12061rm -f conftest*
12062LIBS="$ac_save_LIBS"
247f5006 12063
21d1c967 12064fi
a0b9e27f
MB
12065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 TIFF_LINK=" -ltiff"
12068else
12069 echo "$ac_t""no" 1>&6
12070fi
cd6d6d5b 12071
a0b9e27f
MB
12072
12073else
12074 echo "$ac_t""no" 1>&6
12075fi
8284b0c5 12076
247f5006 12077
21d1c967
GD
12078 if test "x$TIFF_LINK" = "x" ; then
12079 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12080 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12081 else
a0b9e27f 12082 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12083 wxUSE_LIBTIFF=builtin
d8356fa3 12084 fi
d8356fa3 12085 else
21d1c967 12086 wxUSE_LIBTIFF=sys
d8356fa3 12087 fi
21d1c967 12088 fi
d8356fa3 12089
21d1c967
GD
12090 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12091 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12092 fi
21d1c967 12093fi
10f2d63a 12094
8284b0c5 12095
21d1c967 12096AFMINSTALL=
2b5f62a0 12097WIN32INSTALL=
90dd450c 12098
21d1c967
GD
12099TOOLKIT=
12100TOOLKIT_INCLUDE=
12101WIDGET_SET=
12102
12103if test "$USE_WIN32" = 1 ; then
a0b9e27f 12104 for ac_hdr in w32api.h
21d1c967 12105do
a0b9e27f
MB
12106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 12108echo "configure:12109: checking for $ac_hdr" >&5
a0b9e27f
MB
12109if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12110 echo $ac_n "(cached) $ac_c" 1>&6
12111else
12112 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12113#line 12114 "configure"
247f5006 12114#include "confdefs.h"
a0b9e27f
MB
12115#include <$ac_hdr>
12116EOF
12117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 12118{ (eval echo configure:12119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12120if test -z "$ac_err"; then
12121 rm -rf conftest*
12122 eval "ac_cv_header_$ac_safe=yes"
12123else
12124 echo "$ac_err" >&5
12125 echo "configure: failed program was:" >&5
f79bd02d 12126 cat conftest.$ac_ext >&5
a0b9e27f
MB
12127 rm -rf conftest*
12128 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12129fi
a0b9e27f 12130rm -f conftest*
21d1c967 12131fi
a0b9e27f
MB
12132if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12135 cat >> confdefs.h <<EOF
12136#define $ac_tr_hdr 1
12137EOF
12138
12139else
12140 echo "$ac_t""no" 1>&6
21d1c967
GD
12141fi
12142done
f79bd02d 12143
a0b9e27f
MB
12144 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12145echo $ac_n "checking for windows.h""... $ac_c" 1>&6
dfa2a1d9 12146echo "configure:12147: checking for windows.h" >&5
a0b9e27f
MB
12147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12149else
a0b9e27f 12150 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12151#line 12152 "configure"
247f5006
VZ
12152#include "confdefs.h"
12153#include <windows.h>
a0b9e27f
MB
12154EOF
12155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 12156{ (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12158if test -z "$ac_err"; then
12159 rm -rf conftest*
12160 eval "ac_cv_header_$ac_safe=yes"
12161else
12162 echo "$ac_err" >&5
12163 echo "configure: failed program was:" >&5
90dd450c 12164 cat conftest.$ac_ext >&5
a0b9e27f
MB
12165 rm -rf conftest*
12166 eval "ac_cv_header_$ac_safe=no"
90dd450c 12167fi
a0b9e27f 12168rm -f conftest*
90dd450c 12169fi
a0b9e27f
MB
12170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12171 echo "$ac_t""yes" 1>&6
21d1c967 12172 :
90dd450c 12173else
a0b9e27f 12174 echo "$ac_t""no" 1>&6
21d1c967 12175
a0b9e27f
MB
12176 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12177
5c6fa7d2 12178fi
7b4a847f 12179
5c6fa7d2 12180
a0b9e27f 12181 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
dfa2a1d9 12182echo "configure:12183: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12183if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12185else
a0b9e27f
MB
12186
12187 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12188#line 12189 "configure"
f79bd02d 12189#include "confdefs.h"
21d1c967 12190#include <w32api.h>
a0b9e27f 12191int main() {
f79bd02d 12192
21d1c967
GD
12193 #define wxCHECK_W32API_VERSION( major, minor ) \
12194 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12195 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12196 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12197
12198 #if !wxCHECK_W32API_VERSION(1,1)
12199 #error You need w32api 1.1 or newer
12200 #endif
a0b9e27f
MB
12201
12202; return 0; }
12203EOF
dfa2a1d9 12204if { (eval echo configure:12205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12205 rm -rf conftest*
12206
21d1c967 12207 wx_cv_w32api_win32_ie=yes
a0b9e27f 12208
f79bd02d 12209else
a0b9e27f
MB
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -rf conftest*
12213
21d1c967 12214 wx_cv_w32api_win32_ie=no
a0b9e27f 12215
5c6fa7d2 12216fi
a0b9e27f
MB
12217rm -f conftest*
12218
247f5006 12219fi
a0b9e27f
MB
12220
12221echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12222 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12223 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12224 fi
f79bd02d 12225
21d1c967
GD
12226 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12227
12228 case "${host}" in
12229 *-*-cygwin* )
12230 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12231 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12232 esac
f79bd02d 12233
21d1c967
GD
12234 if test "$wxUSE_ODBC" = "yes" ; then
12235 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12236 fi
f79bd02d 12237
21d1c967
GD
12238 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12239 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12240
12241 WIN32INSTALL=win32install
f79bd02d 12242fi
f79bd02d 12243
b2fee376 12244if test "$USE_DARWIN" = 1; then
50bcbd3d 12245 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12246 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12247 else
12248 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12249 fi
12250fi
12251
21d1c967
GD
12252if test "$wxUSE_GUI" = "yes"; then
12253 USE_GUI=1
f79bd02d 12254
21d1c967 12255 GUI_TK_LIBRARY=
f79bd02d 12256
21d1c967
GD
12257 WXGTK12=
12258 WXGTK127=
12259 WXGTK20=
f79bd02d 12260
21d1c967
GD
12261 if test "$wxUSE_MSW" = 1 ; then
12262 TOOLKIT=MSW
12263 GUIDIST=MSW_DIST
f79bd02d 12264
89e6bf6d 12265 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12266 fi
12267
21d1c967 12268 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12269 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
dfa2a1d9 12270echo "configure:12271: checking for GTK+ version" >&5
21d1c967
GD
12271
12272 gtk_version_cached=1
a0b9e27f
MB
12273 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12275else
a0b9e27f 12276
21d1c967 12277 gtk_version_cached=0
a0b9e27f 12278 echo "$ac_t""" 1>&6
f79bd02d 12279
21d1c967
GD
12280 GTK_MODULES=
12281 if test "$wxUSE_THREADS" = "yes"; then
12282 GTK_MODULES=gthread
12283 fi
f79bd02d 12284
2b5f62a0 12285 wx_cv_lib_gtk=
21d1c967
GD
12286 if test "x$wxUSE_GTK2" = "xyes"; then
12287 # Check whether --enable-gtktest or --disable-gtktest was given.
12288if test "${enable_gtktest+set}" = set; then
12289 enableval="$enable_gtktest"
a0b9e27f 12290 :
f79bd02d 12291else
21d1c967 12292 enable_gtktest=yes
a0b9e27f
MB
12293fi
12294
f79bd02d 12295
21d1c967
GD
12296 pkg_config_args=gtk+-2.0
12297 for module in . $GTK_MODULES
12298 do
12299 case "$module" in
a0b9e27f 12300 gthread)
21d1c967
GD
12301 pkg_config_args="$pkg_config_args gthread-2.0"
12302 ;;
12303 esac
12304 done
12305
12306 no_gtk=""
f79bd02d 12307
21d1c967
GD
12308 # Extract the first word of "pkg-config", so it can be a program name with args.
12309set dummy pkg-config; ac_word=$2
a0b9e27f 12310echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 12311echo "configure:12312: checking for $ac_word" >&5
a0b9e27f
MB
12312if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12314else
a0b9e27f
MB
12315 case "$PKG_CONFIG" in
12316 /*)
21d1c967
GD
12317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12318 ;;
a0b9e27f
MB
12319 ?:/*)
12320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12321 ;;
21d1c967 12322 *)
a0b9e27f
MB
12323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12324 ac_dummy="$PATH"
12325 for ac_dir in $ac_dummy; do
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f $ac_dir/$ac_word; then
12328 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12329 break
12330 fi
12331 done
12332 IFS="$ac_save_ifs"
21d1c967
GD
12333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12334 ;;
12335esac
f79bd02d 12336fi
a0b9e27f 12337PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12338if test -n "$PKG_CONFIG"; then
a0b9e27f 12339 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12340else
a0b9e27f 12341 echo "$ac_t""no" 1>&6
f79bd02d
JS
12342fi
12343
8284b0c5 12344
21d1c967
GD
12345 if test x$PKG_CONFIG != xno ; then
12346 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12347 :
12348 else
12349 echo *** pkg-config too old; version 0.7 or better required.
12350 no_gtk=yes
12351 PKG_CONFIG=no
12352 fi
12353 else
12354 no_gtk=yes
12355 fi
f79bd02d 12356
21d1c967 12357 min_gtk_version=2.0.0
a0b9e27f 12358 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
dfa2a1d9 12359echo "configure:12360: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12360
21d1c967
GD
12361 if test x$PKG_CONFIG != xno ; then
12362 ## don't try to run the test against uninstalled libtool libs
12363 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12364 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12365 enable_gtktest=no
12366 fi
f79bd02d 12367
21d1c967
GD
12368 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12369 :
12370 else
12371 no_gtk=yes
12372 fi
12373 fi
f79bd02d 12374
21d1c967
GD
12375 if test x"$no_gtk" = x ; then
12376 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12377 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12378 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12380 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12382 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12384 if test "x$enable_gtktest" = "xyes" ; then
12385 ac_save_CFLAGS="$CFLAGS"
12386 ac_save_LIBS="$LIBS"
12387 CFLAGS="$CFLAGS $GTK_CFLAGS"
12388 LIBS="$GTK_LIBS $LIBS"
12389 rm -f conf.gtktest
12390 if test "$cross_compiling" = yes; then
12391 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12392else
a0b9e27f 12393 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12394#line 12395 "configure"
f79bd02d 12395#include "confdefs.h"
f79bd02d 12396
21d1c967
GD
12397#include <gtk/gtk.h>
12398#include <stdio.h>
12399#include <stdlib.h>
f79bd02d 12400
a0b9e27f 12401int
21d1c967
GD
12402main ()
12403{
12404 int major, minor, micro;
12405 char *tmp_version;
f79bd02d 12406
21d1c967 12407 system ("touch conf.gtktest");
f79bd02d 12408
21d1c967
GD
12409 /* HP/UX 9 (%@#!) writes to sscanf strings */
12410 tmp_version = g_strdup("$min_gtk_version");
12411 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12412 printf("%s, bad version string\n", "$min_gtk_version");
12413 exit(1);
12414 }
f79bd02d 12415
21d1c967
GD
12416 if ((gtk_major_version != $gtk_config_major_version) ||
12417 (gtk_minor_version != $gtk_config_minor_version) ||
12418 (gtk_micro_version != $gtk_config_micro_version))
12419 {
a0b9e27f 12420 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12421 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12422 gtk_major_version, gtk_minor_version, gtk_micro_version);
12423 printf ("*** was found! If pkg-config was correct, then it is best\n");
12424 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12425 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12426 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12427 printf("*** required on your system.\n");
12428 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12429 printf("*** to point to the correct configuration files\n");
a0b9e27f 12430 }
21d1c967
GD
12431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12432 (gtk_minor_version != GTK_MINOR_VERSION) ||
12433 (gtk_micro_version != GTK_MICRO_VERSION))
12434 {
12435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12437 printf("*** library (version %d.%d.%d)\n",
12438 gtk_major_version, gtk_minor_version, gtk_micro_version);
12439 }
12440 else
12441 {
12442 if ((gtk_major_version > major) ||
12443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12445 {
12446 return 0;
12447 }
12448 else
12449 {
12450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12451 gtk_major_version, gtk_minor_version, gtk_micro_version);
12452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12453 major, minor, micro);
12454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12455 printf("***\n");
12456 printf("*** If you have already installed a sufficiently new version, this error\n");
12457 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12459 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12460 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12462 printf("*** so that the correct libraries are found at run-time))\n");
12463 }
12464 }
12465 return 1;
12466}
f79bd02d 12467
a0b9e27f 12468EOF
dfa2a1d9 12469if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12470then
21d1c967 12471 :
f79bd02d 12472else
a0b9e27f
MB
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -fr conftest*
12476 no_gtk=yes
f79bd02d 12477fi
a0b9e27f 12478rm -fr conftest*
f79bd02d 12479fi
a0b9e27f 12480
21d1c967
GD
12481 CFLAGS="$ac_save_CFLAGS"
12482 LIBS="$ac_save_LIBS"
12483 fi
12484 fi
12485 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12486 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12487 wx_cv_lib_gtk=2.0
21d1c967 12488 else
a0b9e27f 12489 echo "$ac_t""no" 1>&6
21d1c967
GD
12490 if test "$PKG_CONFIG" = "no" ; then
12491 echo "*** A new enough version of pkg-config was not found."
12492 echo "*** See http://pkgconfig.sourceforge.net"
12493 else
12494 if test -f conf.gtktest ; then
12495 :
12496 else
12497 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12498 ac_save_CFLAGS="$CFLAGS"
12499 ac_save_LIBS="$LIBS"
21d1c967
GD
12500 CFLAGS="$CFLAGS $GTK_CFLAGS"
12501 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12502 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12503#line 12504 "configure"
f79bd02d 12504#include "confdefs.h"
21d1c967
GD
12505
12506#include <gtk/gtk.h>
12507#include <stdio.h>
f79bd02d 12508
a0b9e27f
MB
12509int main() {
12510 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12511; return 0; }
12512EOF
dfa2a1d9 12513if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12514 rm -rf conftest*
21d1c967
GD
12515 echo "*** The test program compiled, but did not run. This usually means"
12516 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12517 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12520 echo "*** is required on your system"
12521 echo "***"
12522 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12524else
a0b9e27f
MB
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 rm -rf conftest*
12528 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12529 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12530fi
a0b9e27f 12531rm -f conftest*
21d1c967
GD
12532 CFLAGS="$ac_save_CFLAGS"
12533 LIBS="$ac_save_LIBS"
12534 fi
12535 fi
12536 GTK_CFLAGS=""
12537 GTK_LIBS=""
12538 :
12539 fi
a0b9e27f
MB
12540
12541
21d1c967 12542 rm -f conf.gtktest
f79bd02d 12543
2b5f62a0 12544 else
a0b9e27f 12545 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12546if test "${with_gtk_prefix+set}" = set; then
12547 withval="$with_gtk_prefix"
12548 gtk_config_prefix="$withval"
12549else
12550 gtk_config_prefix=""
a0b9e27f 12551fi
f79bd02d 12552
21d1c967
GD
12553# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12554if test "${with_gtk_exec_prefix+set}" = set; then
12555 withval="$with_gtk_exec_prefix"
12556 gtk_config_exec_prefix="$withval"
12557else
12558 gtk_config_exec_prefix=""
a0b9e27f
MB
12559fi
12560
21d1c967
GD
12561# Check whether --enable-gtktest or --disable-gtktest was given.
12562if test "${enable_gtktest+set}" = set; then
12563 enableval="$enable_gtktest"
a0b9e27f 12564 :
21d1c967
GD
12565else
12566 enable_gtktest=yes
a0b9e27f
MB
12567fi
12568
21d1c967
GD
12569
12570 for module in . $GTK_MODULES
12571 do
12572 case "$module" in
a0b9e27f 12573 gthread)
21d1c967
GD
12574 gtk_config_args="$gtk_config_args gthread"
12575 ;;
12576 esac
12577 done
12578
12579 if test x$gtk_config_exec_prefix != x ; then
12580 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12581 if test x${GTK_CONFIG+set} != xset ; then
12582 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12583 fi
12584 fi
12585 if test x$gtk_config_prefix != x ; then
12586 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12587 if test x${GTK_CONFIG+set} != xset ; then
12588 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12589 fi
12590 fi
12591
12592 # Extract the first word of "gtk-config", so it can be a program name with args.
12593set dummy gtk-config; ac_word=$2
a0b9e27f 12594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 12595echo "configure:12596: checking for $ac_word" >&5
a0b9e27f
MB
12596if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12597 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12598else
a0b9e27f
MB
12599 case "$GTK_CONFIG" in
12600 /*)
21d1c967
GD
12601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12602 ;;
a0b9e27f
MB
12603 ?:/*)
12604 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12605 ;;
21d1c967 12606 *)
a0b9e27f
MB
12607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12608 ac_dummy="$PATH"
12609 for ac_dir in $ac_dummy; do
12610 test -z "$ac_dir" && ac_dir=.
12611 if test -f $ac_dir/$ac_word; then
12612 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12613 break
12614 fi
12615 done
12616 IFS="$ac_save_ifs"
21d1c967
GD
12617 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12618 ;;
12619esac
12620fi
a0b9e27f 12621GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12622if test -n "$GTK_CONFIG"; then
a0b9e27f 12623 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12624else
a0b9e27f 12625 echo "$ac_t""no" 1>&6
21d1c967
GD
12626fi
12627
12628 min_gtk_version=1.2.7
a0b9e27f 12629 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
dfa2a1d9 12630echo "configure:12631: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12631 no_gtk=""
12632 if test "$GTK_CONFIG" = "no" ; then
12633 no_gtk=yes
12634 else
12635 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12636 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12637 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12638 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12639 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12641 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12643 if test "x$enable_gtktest" = "xyes" ; then
12644 ac_save_CFLAGS="$CFLAGS"
12645 ac_save_LIBS="$LIBS"
12646 CFLAGS="$CFLAGS $GTK_CFLAGS"
12647 LIBS="$GTK_LIBS $LIBS"
12648 rm -f conf.gtktest
12649 if test "$cross_compiling" = yes; then
12650 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12651else
a0b9e27f 12652 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12653#line 12654 "configure"
f79bd02d
JS
12654#include "confdefs.h"
12655
21d1c967
GD
12656#include <gtk/gtk.h>
12657#include <stdio.h>
12658#include <stdlib.h>
f79bd02d 12659
a0b9e27f 12660int
21d1c967
GD
12661main ()
12662{
12663 int major, minor, micro;
12664 char *tmp_version;
12665
12666 system ("touch conf.gtktest");
12667
12668 /* HP/UX 9 (%@#!) writes to sscanf strings */
12669 tmp_version = g_strdup("$min_gtk_version");
12670 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12671 printf("%s, bad version string\n", "$min_gtk_version");
12672 exit(1);
12673 }
90dd450c 12674
21d1c967
GD
12675 if ((gtk_major_version != $gtk_config_major_version) ||
12676 (gtk_minor_version != $gtk_config_minor_version) ||
12677 (gtk_micro_version != $gtk_config_micro_version))
12678 {
a0b9e27f 12679 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12680 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12681 gtk_major_version, gtk_minor_version, gtk_micro_version);
12682 printf ("*** was found! If gtk-config was correct, then it is best\n");
12683 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12684 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12685 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12686 printf("*** required on your system.\n");
12687 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12688 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12689 printf("*** before re-running configure\n");
a0b9e27f 12690 }
21d1c967
GD
12691#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12692 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12693 (gtk_minor_version != GTK_MINOR_VERSION) ||
12694 (gtk_micro_version != GTK_MICRO_VERSION))
12695 {
12696 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12697 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12698 printf("*** library (version %d.%d.%d)\n",
12699 gtk_major_version, gtk_minor_version, gtk_micro_version);
12700 }
12701#endif /* defined (GTK_MAJOR_VERSION) ... */
12702 else
12703 {
12704 if ((gtk_major_version > major) ||
12705 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12706 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12707 {
12708 return 0;
12709 }
12710 else
12711 {
12712 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12713 gtk_major_version, gtk_minor_version, gtk_micro_version);
12714 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12715 major, minor, micro);
12716 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12717 printf("***\n");
12718 printf("*** If you have already installed a sufficiently new version, this error\n");
12719 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12720 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12721 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12722 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12723 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12724 printf("*** so that the correct libraries are found at run-time))\n");
12725 }
12726 }
12727 return 1;
12728}
12729
a0b9e27f 12730EOF
dfa2a1d9 12731if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12732then
21d1c967
GD
12733 :
12734else
a0b9e27f
MB
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -fr conftest*
12738 no_gtk=yes
21d1c967 12739fi
a0b9e27f 12740rm -fr conftest*
21d1c967 12741fi
a0b9e27f 12742
21d1c967
GD
12743 CFLAGS="$ac_save_CFLAGS"
12744 LIBS="$ac_save_LIBS"
12745 fi
12746 fi
12747 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12748 echo "$ac_t""yes" 1>&6
12749 wx_cv_lib_gtk=1.2.7
21d1c967 12750 else
a0b9e27f 12751 echo "$ac_t""no" 1>&6
21d1c967
GD
12752 if test "$GTK_CONFIG" = "no" ; then
12753 echo "*** The gtk-config script installed by GTK could not be found"
12754 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12755 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12756 echo "*** full path to gtk-config."
12757 else
12758 if test -f conf.gtktest ; then
12759 :
12760 else
12761 echo "*** Could not run GTK test program, checking why..."
12762 CFLAGS="$CFLAGS $GTK_CFLAGS"
12763 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12764 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12765#line 12766 "configure"
21d1c967
GD
12766#include "confdefs.h"
12767
12768#include <gtk/gtk.h>
12769#include <stdio.h>
12770
a0b9e27f
MB
12771int main() {
12772 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12773; return 0; }
12774EOF
dfa2a1d9 12775if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12776 rm -rf conftest*
21d1c967
GD
12777 echo "*** The test program compiled, but did not run. This usually means"
12778 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12779 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12780 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12781 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12782 echo "*** is required on your system"
12783 echo "***"
12784 echo "*** If you have an old version installed, it is best to remove it, although"
12785 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12786 echo "***"
12787 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12788 echo "*** came with the system with the command"
12789 echo "***"
a0b9e27f 12790 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12791else
a0b9e27f
MB
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 rm -rf conftest*
12795 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12796 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12797 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12798 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12799fi
a0b9e27f 12800rm -f conftest*
21d1c967
GD
12801 CFLAGS="$ac_save_CFLAGS"
12802 LIBS="$ac_save_LIBS"
12803 fi
12804 fi
12805 GTK_CFLAGS=""
12806 GTK_LIBS=""
12807 :
12808 fi
a0b9e27f
MB
12809
12810
21d1c967
GD
12811 rm -f conf.gtktest
12812
21d1c967 12813
2b5f62a0
VZ
12814 if test -z "$wx_cv_lib_gtk"; then
12815 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12816if test "${with_gtk_prefix+set}" = set; then
12817 withval="$with_gtk_prefix"
12818 gtk_config_prefix="$withval"
12819else
12820 gtk_config_prefix=""
a0b9e27f 12821fi
f79bd02d 12822
21d1c967
GD
12823# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12824if test "${with_gtk_exec_prefix+set}" = set; then
12825 withval="$with_gtk_exec_prefix"
12826 gtk_config_exec_prefix="$withval"
12827else
12828 gtk_config_exec_prefix=""
a0b9e27f
MB
12829fi
12830
21d1c967
GD
12831# Check whether --enable-gtktest or --disable-gtktest was given.
12832if test "${enable_gtktest+set}" = set; then
12833 enableval="$enable_gtktest"
a0b9e27f 12834 :
90dd450c 12835else
21d1c967 12836 enable_gtktest=yes
a0b9e27f
MB
12837fi
12838
21d1c967
GD
12839
12840 for module in . $GTK_MODULES
12841 do
12842 case "$module" in
a0b9e27f 12843 gthread)
21d1c967
GD
12844 gtk_config_args="$gtk_config_args gthread"
12845 ;;
12846 esac
12847 done
12848
12849 if test x$gtk_config_exec_prefix != x ; then
12850 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12851 if test x${GTK_CONFIG+set} != xset ; then
12852 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12853 fi
12854 fi
12855 if test x$gtk_config_prefix != x ; then
12856 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12857 if test x${GTK_CONFIG+set} != xset ; then
12858 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12859 fi
12860 fi
12861
12862 # Extract the first word of "gtk-config", so it can be a program name with args.
12863set dummy gtk-config; ac_word=$2
a0b9e27f 12864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 12865echo "configure:12866: checking for $ac_word" >&5
a0b9e27f
MB
12866if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12868else
a0b9e27f
MB
12869 case "$GTK_CONFIG" in
12870 /*)
21d1c967
GD
12871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12872 ;;
a0b9e27f
MB
12873 ?:/*)
12874 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12875 ;;
21d1c967 12876 *)
a0b9e27f
MB
12877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12878 ac_dummy="$PATH"
12879 for ac_dir in $ac_dummy; do
12880 test -z "$ac_dir" && ac_dir=.
12881 if test -f $ac_dir/$ac_word; then
12882 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12883 break
12884 fi
12885 done
12886 IFS="$ac_save_ifs"
21d1c967
GD
12887 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12888 ;;
12889esac
12890fi
a0b9e27f 12891GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12892if test -n "$GTK_CONFIG"; then
a0b9e27f 12893 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12894else
a0b9e27f 12895 echo "$ac_t""no" 1>&6
21d1c967
GD
12896fi
12897
12898 min_gtk_version=1.2.3
a0b9e27f 12899 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
dfa2a1d9 12900echo "configure:12901: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12901 no_gtk=""
12902 if test "$GTK_CONFIG" = "no" ; then
12903 no_gtk=yes
12904 else
12905 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12906 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12907 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12909 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12911 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12913 if test "x$enable_gtktest" = "xyes" ; then
12914 ac_save_CFLAGS="$CFLAGS"
12915 ac_save_LIBS="$LIBS"
12916 CFLAGS="$CFLAGS $GTK_CFLAGS"
12917 LIBS="$GTK_LIBS $LIBS"
12918 rm -f conf.gtktest
12919 if test "$cross_compiling" = yes; then
12920 echo $ac_n "cross compiling; assumed OK... $ac_c"
12921else
a0b9e27f 12922 cat > conftest.$ac_ext <<EOF
dfa2a1d9 12923#line 12924 "configure"
f79bd02d 12924#include "confdefs.h"
21d1c967
GD
12925
12926#include <gtk/gtk.h>
12927#include <stdio.h>
12928#include <stdlib.h>
12929
a0b9e27f 12930int
21d1c967
GD
12931main ()
12932{
12933 int major, minor, micro;
12934 char *tmp_version;
12935
12936 system ("touch conf.gtktest");
12937
12938 /* HP/UX 9 (%@#!) writes to sscanf strings */
12939 tmp_version = g_strdup("$min_gtk_version");
12940 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12941 printf("%s, bad version string\n", "$min_gtk_version");
12942 exit(1);
12943 }
12944
12945 if ((gtk_major_version != $gtk_config_major_version) ||
12946 (gtk_minor_version != $gtk_config_minor_version) ||
12947 (gtk_micro_version != $gtk_config_micro_version))
12948 {
a0b9e27f 12949 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12950 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12951 gtk_major_version, gtk_minor_version, gtk_micro_version);
12952 printf ("*** was found! If gtk-config was correct, then it is best\n");
12953 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12954 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12955 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12956 printf("*** required on your system.\n");
12957 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12958 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12959 printf("*** before re-running configure\n");
a0b9e27f 12960 }
21d1c967
GD
12961#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12962 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12963 (gtk_minor_version != GTK_MINOR_VERSION) ||
12964 (gtk_micro_version != GTK_MICRO_VERSION))
12965 {
12966 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12967 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12968 printf("*** library (version %d.%d.%d)\n",
12969 gtk_major_version, gtk_minor_version, gtk_micro_version);
12970 }
12971#endif /* defined (GTK_MAJOR_VERSION) ... */
12972 else
12973 {
12974 if ((gtk_major_version > major) ||
12975 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12976 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12977 {
12978 return 0;
12979 }
12980 else
12981 {
12982 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12983 gtk_major_version, gtk_minor_version, gtk_micro_version);
12984 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12985 major, minor, micro);
12986 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12987 printf("***\n");
12988 printf("*** If you have already installed a sufficiently new version, this error\n");
12989 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12990 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12991 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12992 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12993 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12994 printf("*** so that the correct libraries are found at run-time))\n");
12995 }
12996 }
12997 return 1;
12998}
12999
a0b9e27f 13000EOF
dfa2a1d9 13001if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13002then
21d1c967
GD
13003 :
13004else
a0b9e27f
MB
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -fr conftest*
13008 no_gtk=yes
21d1c967 13009fi
a0b9e27f 13010rm -fr conftest*
21d1c967 13011fi
a0b9e27f 13012
21d1c967
GD
13013 CFLAGS="$ac_save_CFLAGS"
13014 LIBS="$ac_save_LIBS"
13015 fi
13016 fi
13017 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13018 echo "$ac_t""yes" 1>&6
13019 wx_cv_lib_gtk=1.2.3
21d1c967 13020 else
a0b9e27f 13021 echo "$ac_t""no" 1>&6
21d1c967
GD
13022 if test "$GTK_CONFIG" = "no" ; then
13023 echo "*** The gtk-config script installed by GTK could not be found"
13024 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13025 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13026 echo "*** full path to gtk-config."
13027 else
13028 if test -f conf.gtktest ; then
13029 :
13030 else
13031 echo "*** Could not run GTK test program, checking why..."
13032 CFLAGS="$CFLAGS $GTK_CFLAGS"
13033 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13034 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13035#line 13036 "configure"
21d1c967
GD
13036#include "confdefs.h"
13037
13038#include <gtk/gtk.h>
13039#include <stdio.h>
f79bd02d 13040
a0b9e27f
MB
13041int main() {
13042 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13043; return 0; }
13044EOF
dfa2a1d9 13045if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13046 rm -rf conftest*
21d1c967
GD
13047 echo "*** The test program compiled, but did not run. This usually means"
13048 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13049 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13050 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13051 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13052 echo "*** is required on your system"
13053 echo "***"
13054 echo "*** If you have an old version installed, it is best to remove it, although"
13055 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13056 echo "***"
13057 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13058 echo "*** came with the system with the command"
13059 echo "***"
a0b9e27f 13060 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13061else
a0b9e27f
MB
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13066 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13067 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13068 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13069fi
a0b9e27f 13070rm -f conftest*
21d1c967
GD
13071 CFLAGS="$ac_save_CFLAGS"
13072 LIBS="$ac_save_LIBS"
13073 fi
13074 fi
13075 GTK_CFLAGS=""
13076 GTK_LIBS=""
13077 :
13078 fi
a0b9e27f
MB
13079
13080
21d1c967 13081 rm -f conf.gtktest
f79bd02d 13082
2b5f62a0 13083 fi
21d1c967
GD
13084 fi
13085
13086 if test -z "$wx_cv_lib_gtk"; then
13087 wx_cv_lib_gtk=none
13088 else
13089 wx_cv_cflags_gtk=$GTK_CFLAGS
13090 wx_cv_libs_gtk=$GTK_LIBS
13091 fi
a0b9e27f
MB
13092
13093
5c6fa7d2 13094fi
52127426 13095
8284b0c5 13096
21d1c967 13097 if test "$gtk_version_cached" = 1; then
a0b9e27f 13098 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13099 fi
13100
13101 case "$wx_cv_lib_gtk" in
13102 2.0) WXGTK20=1
2b5f62a0 13103 TOOLKIT_VERSION=2
21d1c967
GD
13104 ;;
13105 1.2.7) WXGTK127=1
13106 WXGTK12=1
13107 ;;
13108 1.2.3) WXGTK12=1
13109 ;;
a0b9e27f 13110 *) { echo "configure: error:
247f5006
VZ
13111Please check that gtk-config is in path, the directory
13112where GTK+ libraries are installed (returned by
13113'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13114equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13115 " 1>&2; exit 1; }
21d1c967
GD
13116 ;;
13117 esac
13118
b13cd66e
VZ
13119 if test "$WXGTK20" = 1; then
13120 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13121
f09359cf
VS
13122 succeeded=no
13123
13124 if test -z "$PKG_CONFIG"; then
13125 # Extract the first word of "pkg-config", so it can be a program name with args.
13126set dummy pkg-config; ac_word=$2
a0b9e27f 13127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 13128echo "configure:13129: checking for $ac_word" >&5
a0b9e27f
MB
13129if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13131else
a0b9e27f
MB
13132 case "$PKG_CONFIG" in
13133 /*)
f09359cf
VS
13134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13135 ;;
a0b9e27f
MB
13136 ?:/*)
13137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13138 ;;
f09359cf 13139 *)
a0b9e27f
MB
13140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13141 ac_dummy="$PATH"
13142 for ac_dir in $ac_dummy; do
13143 test -z "$ac_dir" && ac_dir=.
13144 if test -f $ac_dir/$ac_word; then
13145 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13146 break
13147 fi
13148 done
13149 IFS="$ac_save_ifs"
f09359cf
VS
13150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13151 ;;
13152esac
13153fi
a0b9e27f 13154PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13155if test -n "$PKG_CONFIG"; then
a0b9e27f 13156 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13157else
a0b9e27f 13158 echo "$ac_t""no" 1>&6
f09359cf
VS
13159fi
13160
13161 fi
13162
13163 if test "$PKG_CONFIG" = "no" ; then
13164 echo "*** The pkg-config script could not be found. Make sure it is"
13165 echo "*** in your path, or set the PKG_CONFIG environment variable"
13166 echo "*** to the full path to pkg-config."
13167 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13168 else
13169 PKG_CONFIG_MIN_VERSION=0.9.0
13170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13171 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
dfa2a1d9 13172echo "configure:13173: checking for pangoft2" >&5
f09359cf
VS
13173
13174 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13175 echo "$ac_t""yes" 1>&6
f09359cf
VS
13176 succeeded=yes
13177
a0b9e27f 13178 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
dfa2a1d9 13179echo "configure:13180: checking PANGOFT2_CFLAGS" >&5
f09359cf 13180 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13181 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13182
a0b9e27f 13183 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
dfa2a1d9 13184echo "configure:13185: checking PANGOFT2_LIBS" >&5
f09359cf 13185 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13186 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13187 else
13188 PANGOFT2_CFLAGS=""
13189 PANGOFT2_LIBS=""
a0b9e27f 13190 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13191 ## do set a variable so people can do so.
13192 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13193
f09359cf
VS
13194 fi
13195
a0b9e27f
MB
13196
13197
f09359cf
VS
13198 else
13199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13201 fi
13202 fi
13203
13204 if test $succeeded = yes; then
a0b9e27f 13205
b13cd66e
VZ
13206 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13207 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13208
f09359cf 13209 else
a0b9e27f
MB
13210
13211 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13212 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13213
13214
f09359cf
VS
13215 fi
13216
b13cd66e 13217 fi
2b5f62a0
VZ
13218 else
13219 if test "$wxUSE_UNICODE" = "yes"; then
13220 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13221 wxUSE_UNICODE=no
13222 fi
13223 fi
13224
13225 if test "$USE_DARWIN" != 1; then
13226 for ac_func in poll
13227do
13228echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 13229echo "configure:13230: checking for $ac_func" >&5
2b5f62a0
VZ
13230if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232else
13233 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13234#line 13235 "configure"
2b5f62a0
VZ
13235#include "confdefs.h"
13236/* System header to define __stub macros and hopefully few prototypes,
13237 which can conflict with char $ac_func(); below. */
13238#include <assert.h>
13239/* Override any gcc2 internal prototype to avoid an error. */
13240/* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242char $ac_func();
13243
13244int main() {
13245
13246/* The GNU C library defines this for functions which it implements
13247 to always fail with ENOSYS. Some functions are actually named
13248 something starting with __ and the normal name is an alias. */
13249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13250choke me
13251#else
13252$ac_func();
13253#endif
13254
13255; return 0; }
13256EOF
dfa2a1d9 13257if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13258 rm -rf conftest*
13259 eval "ac_cv_func_$ac_func=yes"
13260else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_func_$ac_func=no"
13265fi
13266rm -f conftest*
13267fi
13268
13269if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13270 echo "$ac_t""yes" 1>&6
13271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13272 cat >> confdefs.h <<EOF
13273#define $ac_tr_func 1
13274EOF
13275
13276else
13277 echo "$ac_t""no" 1>&6
13278fi
13279done
13280
f09359cf
VS
13281 fi
13282
21d1c967
GD
13283 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13284 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13285
13286 AFMINSTALL=afminstall
13287 TOOLKIT=GTK
13288 GUIDIST=GTK_DIST
13289
a0b9e27f 13290 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
dfa2a1d9 13291echo "configure:13292: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13292ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13295else
a0b9e27f 13296 ac_save_LIBS="$LIBS"
21d1c967 13297LIBS="-lgdk $LIBS"
a0b9e27f 13298cat > conftest.$ac_ext <<EOF
dfa2a1d9 13299#line 13300 "configure"
90dd450c 13300#include "confdefs.h"
5c6fa7d2 13301/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13302/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13303 builtin and then its argument prototype would still apply. */
13304char gdk_im_open();
13305
13306int main() {
13307gdk_im_open()
13308; return 0; }
13309EOF
dfa2a1d9 13310if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13311 rm -rf conftest*
13312 eval "ac_cv_lib_$ac_lib_var=yes"
13313else
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 rm -rf conftest*
13317 eval "ac_cv_lib_$ac_lib_var=no"
13318fi
13319rm -f conftest*
13320LIBS="$ac_save_LIBS"
13321
13322fi
13323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 cat >> confdefs.h <<\EOF
21d1c967 13326#define HAVE_XIM 1
a0b9e27f 13327EOF
21d1c967 13328
a0b9e27f
MB
13329else
13330 echo "$ac_t""no" 1>&6
90dd450c 13331fi
1e6feb95 13332
21d1c967 13333 fi
1e6feb95 13334
21d1c967 13335 if test "$wxUSE_MGL" = 1; then
63a76696 13336 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
dfa2a1d9 13337echo "configure:13338: checking for SciTech MGL library" >&5
21d1c967 13338 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13339 echo "$ac_t""not found" 1>&6
13340 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13341 else
a0b9e27f 13342 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13343 fi
13344
63a76696 13345 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
dfa2a1d9 13346echo "configure:13347: checking for libmgl location" >&5
21d1c967
GD
13347 case "${host}" in
13348 *-*-linux* )
63a76696
VS
13349 if test "x$wxUSE_SHARED" = xyes ; then
13350 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13351 else
13352 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13353 fi
21d1c967
GD
13354 ;;
13355 *-pc-msdosdjgpp )
63a76696 13356 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13357 ;;
13358 *)
a0b9e27f 13359 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13360 esac
1e6feb95 13361
21d1c967 13362 mgl_lib_type=""
63a76696
VS
13363 mgl_os=""
13364
13365 for mgl_os_i in $mgl_os_candidates ; do
13366 if test "x$mgl_os" = x ; then
13367 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13368 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13369 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13370 mgl_lib_type=debug
13371 mgl_os=$mgl_os_i
13372 fi
13373 fi
13374 if test "x$mgl_lib_type" = x ; then
13375 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13376 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13377 mgl_lib_type=release
13378 mgl_os=$mgl_os_i
13379 fi
13380 fi
21d1c967 13381 fi
63a76696 13382 done
2224580a 13383
63a76696
VS
13384 if test "x$mgl_os" = x ; then
13385 echo "$ac_t""not found" 1>&6
13386 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13387 fi
13388 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13389
1d1b75ac
VZ
13390 wxUSE_UNIVERSAL="yes"
13391
21d1c967
GD
13392 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13393 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13394
90dd450c 13395 AFMINSTALL=afminstall
21d1c967
GD
13396 TOOLKIT=MGL
13397 GUIDIST=MGL_DIST
13398 fi
dad6c0ea 13399
21d1c967 13400 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13401 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
dfa2a1d9 13402echo "configure:13403: checking for MicroWindows" >&5
21d1c967 13403 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13404 echo "$ac_t""not found" 1>&6
13405 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13406 else
a0b9e27f 13407 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13408 fi
f6bcfd97 13409
21d1c967 13410 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13411 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13412 else
a0b9e27f 13413 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13414 fi
0b2effe9 13415
21d1c967
GD
13416 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13417 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13418
1d1b75ac
VZ
13419 wxUSE_UNIVERSAL="yes"
13420
21d1c967
GD
13421 AFMINSTALL=afminstall
13422 TOOLKIT=MICROWIN
13423 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13424
13425 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13426 fi
f6bcfd97 13427
21d1c967 13428 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13429 # If we find X, set shell vars x_includes and x_libraries to the
13430# paths, otherwise set no_x=yes.
13431# Uses ac_ vars as temps to allow command line to override cache and checks.
13432# --without-x overrides everything else, but does not touch the cache.
13433echo $ac_n "checking for X""... $ac_c" 1>&6
dfa2a1d9 13434echo "configure:13435: checking for X" >&5
d8356fa3 13435
21d1c967
GD
13436# Check whether --with-x or --without-x was given.
13437if test "${with_x+set}" = set; then
13438 withval="$with_x"
a0b9e27f
MB
13439 :
13440fi
2224580a 13441
21d1c967
GD
13442# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13443if test "x$with_x" = xno; then
13444 # The user explicitly disabled X.
13445 have_x=disabled
13446else
13447 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13448 # Both variables are already set.
13449 have_x=yes
13450 else
a0b9e27f
MB
13451if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13453else
13454 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13455ac_x_includes=NO ac_x_libraries=NO
13456rm -fr conftestdir
13457if mkdir conftestdir; then
13458 cd conftestdir
21d1c967 13459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13460 cat > Imakefile <<'EOF'
21d1c967
GD
13461acfindx:
13462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13463EOF
21d1c967
GD
13464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13468 for ac_extension in a so sl; do
13469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13470 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13471 ac_im_usrlibdir=$ac_im_libdir; break
13472 fi
13473 done
13474 # Screen out bogus values from the imake configuration. They are
13475 # bogus both because they are the default anyway, and because
13476 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13477 case "$ac_im_incroot" in
21d1c967 13478 /usr/include) ;;
a0b9e27f 13479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13480 esac
a0b9e27f 13481 case "$ac_im_usrlibdir" in
21d1c967 13482 /usr/lib | /lib) ;;
a0b9e27f 13483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13484 esac
13485 fi
13486 cd ..
a0b9e27f 13487 rm -fr conftestdir
21d1c967 13488fi
10f2d63a 13489
a0b9e27f
MB
13490if test "$ac_x_includes" = NO; then
13491 # Guess where to find include files, by looking for this one X11 .h file.
13492 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13493
21d1c967 13494 # First, try using that file with no special directory specified.
a0b9e27f 13495cat > conftest.$ac_ext <<EOF
dfa2a1d9 13496#line 13497 "configure"
21d1c967 13497#include "confdefs.h"
a0b9e27f
MB
13498#include <$x_direct_test_include>
13499EOF
13500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 13501{ (eval echo configure:13502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13503if test -z "$ac_err"; then
13504 rm -rf conftest*
21d1c967
GD
13505 # We can compile using X headers with no special include directory.
13506ac_x_includes=
90dd450c 13507else
a0b9e27f
MB
13508 echo "$ac_err" >&5
13509 echo "configure: failed program was:" >&5
90dd450c 13510 cat conftest.$ac_ext >&5
a0b9e27f
MB
13511 rm -rf conftest*
13512 # Look for the header file in a standard set of common directories.
13513# Check X11 before X11Rn because it is often a symlink to the current release.
13514 for ac_dir in \
13515 /usr/X11/include \
13516 /usr/X11R6/include \
13517 /usr/X11R5/include \
13518 /usr/X11R4/include \
13519 \
13520 /usr/include/X11 \
13521 /usr/include/X11R6 \
13522 /usr/include/X11R5 \
13523 /usr/include/X11R4 \
13524 \
13525 /usr/local/X11/include \
13526 /usr/local/X11R6/include \
13527 /usr/local/X11R5/include \
13528 /usr/local/X11R4/include \
13529 \
13530 /usr/local/include/X11 \
13531 /usr/local/include/X11R6 \
13532 /usr/local/include/X11R5 \
13533 /usr/local/include/X11R4 \
13534 \
13535 /usr/X386/include \
13536 /usr/x386/include \
13537 /usr/XFree86/include/X11 \
13538 \
13539 /usr/include \
13540 /usr/local/include \
13541 /usr/unsupported/include \
13542 /usr/athena/include \
13543 /usr/local/x11r5/include \
13544 /usr/lpp/Xamples/include \
13545 \
13546 /usr/openwin/include \
13547 /usr/openwin/share/include \
13548 ; \
13549 do
13550 if test -r "$ac_dir/$x_direct_test_include"; then
13551 ac_x_includes=$ac_dir
13552 break
13553 fi
13554 done
3a922bb4 13555fi
a0b9e27f
MB
13556rm -f conftest*
13557fi # $ac_x_includes = NO
10f2d63a 13558
a0b9e27f 13559if test "$ac_x_libraries" = NO; then
21d1c967 13560 # Check for the libraries.
a0b9e27f
MB
13561
13562 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13563 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13564
21d1c967
GD
13565 # See if we find them without any special options.
13566 # Don't add to $LIBS permanently.
a0b9e27f
MB
13567 ac_save_LIBS="$LIBS"
13568 LIBS="-l$x_direct_test_library $LIBS"
13569cat > conftest.$ac_ext <<EOF
dfa2a1d9 13570#line 13571 "configure"
3a922bb4 13571#include "confdefs.h"
a0b9e27f
MB
13572
13573int main() {
13574${x_direct_test_function}()
13575; return 0; }
13576EOF
dfa2a1d9 13577if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13578 rm -rf conftest*
13579 LIBS="$ac_save_LIBS"
21d1c967
GD
13580# We can link X programs with no special library path.
13581ac_x_libraries=
3a922bb4 13582else
a0b9e27f
MB
13583 echo "configure: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 rm -rf conftest*
13586 LIBS="$ac_save_LIBS"
13587# First see if replacing the include by lib works.
13588# Check X11 before X11Rn because it is often a symlink to the current release.
13589for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13590 /usr/X11/lib \
13591 /usr/X11R6/lib \
13592 /usr/X11R5/lib \
13593 /usr/X11R4/lib \
13594 \
13595 /usr/lib/X11 \
13596 /usr/lib/X11R6 \
13597 /usr/lib/X11R5 \
13598 /usr/lib/X11R4 \
13599 \
13600 /usr/local/X11/lib \
13601 /usr/local/X11R6/lib \
13602 /usr/local/X11R5/lib \
13603 /usr/local/X11R4/lib \
13604 \
13605 /usr/local/lib/X11 \
13606 /usr/local/lib/X11R6 \
13607 /usr/local/lib/X11R5 \
13608 /usr/local/lib/X11R4 \
13609 \
13610 /usr/X386/lib \
13611 /usr/x386/lib \
13612 /usr/XFree86/lib/X11 \
13613 \
13614 /usr/lib \
13615 /usr/local/lib \
13616 /usr/unsupported/lib \
13617 /usr/athena/lib \
13618 /usr/local/x11r5/lib \
13619 /usr/lpp/Xamples/lib \
13620 /lib/usr/lib/X11 \
13621 \
13622 /usr/openwin/lib \
13623 /usr/openwin/share/lib \
13624 ; \
21d1c967
GD
13625do
13626 for ac_extension in a so sl; do
a0b9e27f 13627 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13628 ac_x_libraries=$ac_dir
13629 break 2
13630 fi
13631 done
13632done
3a922bb4 13633fi
a0b9e27f
MB
13634rm -f conftest*
13635fi # $ac_x_libraries = NO
90dd450c 13636
a0b9e27f 13637if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13638 # Didn't find X anywhere. Cache the known absence of X.
13639 ac_cv_have_x="have_x=no"
13640else
13641 # Record where we found X for the cache.
13642 ac_cv_have_x="have_x=yes \
13643 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13644fi
21d1c967
GD
13645fi
13646 fi
13647 eval "$ac_cv_have_x"
13648fi # $with_x != no
90dd450c 13649
21d1c967 13650if test "$have_x" != yes; then
a0b9e27f 13651 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13652 no_x=yes
13653else
13654 # If each of the values was on the command line, it overrides each guess.
13655 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13656 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13657 # Update the cache value to reflect the command line values.
13658 ac_cv_have_x="have_x=yes \
13659 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13660 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13661fi
90dd450c 13662
21d1c967 13663if test "$no_x" = yes; then
90dd450c 13664 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13665 cat >> confdefs.h <<\EOF
90dd450c 13666#define X_DISPLAY_MISSING 1
a0b9e27f 13667EOF
90dd450c
VZ
13668
13669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13670else
13671 if test -n "$x_includes"; then
13672 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13673 fi
3a922bb4 13674
90dd450c
VZ
13675 # It would also be nice to do this for all -L options, not just this one.
13676 if test -n "$x_libraries"; then
13677 X_LIBS="$X_LIBS -L$x_libraries"
13678 # For Solaris; some versions of Sun CC require a space after -R and
13679 # others require no space. Words are not sufficient . . . .
a0b9e27f 13680 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13681 "SunOS 5"*)
a0b9e27f 13682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
dfa2a1d9 13683echo "configure:13684: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13685 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13686#line 13687 "configure"
90dd450c
VZ
13687#include "confdefs.h"
13688
a0b9e27f 13689int main() {
90dd450c 13690
a0b9e27f
MB
13691; return 0; }
13692EOF
dfa2a1d9 13693if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13694 rm -rf conftest*
90dd450c 13695 ac_R_nospace=yes
3a922bb4 13696else
a0b9e27f
MB
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 rm -rf conftest*
13700 ac_R_nospace=no
3a922bb4 13701fi
a0b9e27f 13702rm -f conftest*
90dd450c 13703 if test $ac_R_nospace = yes; then
a0b9e27f 13704 echo "$ac_t""no" 1>&6
90dd450c
VZ
13705 X_LIBS="$X_LIBS -R$x_libraries"
13706 else
13707 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13708 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13709#line 13710 "configure"
90dd450c 13710#include "confdefs.h"
3a922bb4 13711
a0b9e27f 13712int main() {
6f754473 13713
a0b9e27f
MB
13714; return 0; }
13715EOF
dfa2a1d9 13716if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13717 rm -rf conftest*
90dd450c
VZ
13718 ac_R_space=yes
13719else
a0b9e27f
MB
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 ac_R_space=no
90dd450c 13724fi
a0b9e27f 13725rm -f conftest*
90dd450c 13726 if test $ac_R_space = yes; then
a0b9e27f 13727 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13728 X_LIBS="$X_LIBS -R $x_libraries"
13729 else
a0b9e27f 13730 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13731 fi
13732 fi
a0b9e27f 13733 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13734 esac
13735 fi
13736
13737 # Check for system-dependent libraries X programs must link with.
13738 # Do this before checking for the system-independent R6 libraries
13739 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13740
90dd450c
VZ
13741 if test "$ISC" = yes; then
13742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13743 else
a0b9e27f
MB
13744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13745 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13746 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
dfa2a1d9 13748echo "configure:13749: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13749ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13752else
a0b9e27f 13753 ac_save_LIBS="$LIBS"
247f5006 13754LIBS="-ldnet $LIBS"
a0b9e27f 13755cat > conftest.$ac_ext <<EOF
dfa2a1d9 13756#line 13757 "configure"
247f5006 13757#include "confdefs.h"
247f5006 13758/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13759/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13760 builtin and then its argument prototype would still apply. */
13761char dnet_ntoa();
13762
13763int main() {
13764dnet_ntoa()
13765; return 0; }
13766EOF
dfa2a1d9 13767if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13768 rm -rf conftest*
13769 eval "ac_cv_lib_$ac_lib_var=yes"
13770else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 rm -rf conftest*
13774 eval "ac_cv_lib_$ac_lib_var=no"
13775fi
13776rm -f conftest*
13777LIBS="$ac_save_LIBS"
13778
13779fi
13780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13781 echo "$ac_t""yes" 1>&6
90dd450c 13782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13783else
13784 echo "$ac_t""no" 1>&6
3a922bb4
RL
13785fi
13786
90dd450c 13787 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
dfa2a1d9 13789echo "configure:13790: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13790ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13793else
a0b9e27f 13794 ac_save_LIBS="$LIBS"
90dd450c 13795LIBS="-ldnet_stub $LIBS"
a0b9e27f 13796cat > conftest.$ac_ext <<EOF
dfa2a1d9 13797#line 13798 "configure"
90dd450c
VZ
13798#include "confdefs.h"
13799/* Override any gcc2 internal prototype to avoid an error. */
13800/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13801 builtin and then its argument prototype would still apply. */
13802char dnet_ntoa();
13803
13804int main() {
13805dnet_ntoa()
13806; return 0; }
13807EOF
dfa2a1d9 13808if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13809 rm -rf conftest*
13810 eval "ac_cv_lib_$ac_lib_var=yes"
13811else
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 rm -rf conftest*
13815 eval "ac_cv_lib_$ac_lib_var=no"
13816fi
13817rm -f conftest*
13818LIBS="$ac_save_LIBS"
13819
13820fi
13821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13822 echo "$ac_t""yes" 1>&6
90dd450c 13823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13824else
13825 echo "$ac_t""no" 1>&6
3a922bb4
RL
13826fi
13827
90dd450c 13828 fi
978f1259 13829
90dd450c
VZ
13830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13831 # to get the SysV transport functions.
a0b9e27f 13832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13833 # needs -lnsl.
13834 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13835 # on Irix 5.2, according to dickey@clark.net.
13836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
dfa2a1d9 13837echo "configure:13838: checking for gethostbyname" >&5
a0b9e27f
MB
13838if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840else
13841 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13842#line 13843 "configure"
90dd450c
VZ
13843#include "confdefs.h"
13844/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13845 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13846#include <assert.h>
13847/* Override any gcc2 internal prototype to avoid an error. */
13848/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13849 builtin and then its argument prototype would still apply. */
13850char gethostbyname();
13851
13852int main() {
13853
90dd450c
VZ
13854/* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13858choke me
13859#else
a0b9e27f 13860gethostbyname();
90dd450c 13861#endif
978f1259 13862
a0b9e27f
MB
13863; return 0; }
13864EOF
dfa2a1d9 13865if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13866 rm -rf conftest*
13867 eval "ac_cv_func_gethostbyname=yes"
13868else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_func_gethostbyname=no"
13873fi
13874rm -f conftest*
13875fi
13876
13877if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 :
13880else
13881 echo "$ac_t""no" 1>&6
13882fi
698dcdb6 13883
90dd450c 13884 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
dfa2a1d9 13886echo "configure:13887: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13887ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13890else
a0b9e27f 13891 ac_save_LIBS="$LIBS"
90dd450c 13892LIBS="-lnsl $LIBS"
a0b9e27f 13893cat > conftest.$ac_ext <<EOF
dfa2a1d9 13894#line 13895 "configure"
90dd450c
VZ
13895#include "confdefs.h"
13896/* Override any gcc2 internal prototype to avoid an error. */
13897/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13898 builtin and then its argument prototype would still apply. */
13899char gethostbyname();
5c6fa7d2 13900
a0b9e27f
MB
13901int main() {
13902gethostbyname()
13903; return 0; }
13904EOF
dfa2a1d9 13905if { (eval echo configure:13906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13906 rm -rf conftest*
13907 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13908else
a0b9e27f
MB
13909 echo "configure: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 rm -rf conftest*
13912 eval "ac_cv_lib_$ac_lib_var=no"
13913fi
13914rm -f conftest*
13915LIBS="$ac_save_LIBS"
247f5006 13916
a0b9e27f
MB
13917fi
13918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13921else
13922 echo "$ac_t""no" 1>&6
90dd450c 13923fi
b12915c1 13924
90dd450c
VZ
13925 fi
13926
13927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13928 # socket/setsockopt and other routines are undefined under SCO ODT
13929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13930 # on later versions), says simon@lia.di.epfl.ch: it contains
13931 # gethostby* variants that don't use the nameserver (or something).
13932 # -lsocket must be given before -lnsl if both are needed.
13933 # We assume that if connect needs -lnsl, so does gethostbyname.
13934 echo $ac_n "checking for connect""... $ac_c" 1>&6
dfa2a1d9 13935echo "configure:13936: checking for connect" >&5
a0b9e27f
MB
13936if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938else
13939 cat > conftest.$ac_ext <<EOF
dfa2a1d9 13940#line 13941 "configure"
55e80573 13941#include "confdefs.h"
90dd450c 13942/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13943 which can conflict with char connect(); below. */
90dd450c
VZ
13944#include <assert.h>
13945/* Override any gcc2 internal prototype to avoid an error. */
13946/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13947 builtin and then its argument prototype would still apply. */
13948char connect();
13949
13950int main() {
13951
90dd450c
VZ
13952/* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955#if defined (__stub_connect) || defined (__stub___connect)
13956choke me
13957#else
a0b9e27f 13958connect();
90dd450c
VZ
13959#endif
13960
a0b9e27f
MB
13961; return 0; }
13962EOF
dfa2a1d9 13963if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13964 rm -rf conftest*
13965 eval "ac_cv_func_connect=yes"
13966else
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13969 rm -rf conftest*
13970 eval "ac_cv_func_connect=no"
13971fi
13972rm -f conftest*
13973fi
13974
13975if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13976 echo "$ac_t""yes" 1>&6
13977 :
13978else
13979 echo "$ac_t""no" 1>&6
13980fi
55e80573 13981
90dd450c 13982 if test $ac_cv_func_connect = no; then
a0b9e27f 13983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
dfa2a1d9 13984echo "configure:13985: checking for connect in -lsocket" >&5
a0b9e27f
MB
13985ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13988else
a0b9e27f 13989 ac_save_LIBS="$LIBS"
90dd450c 13990LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 13991cat > conftest.$ac_ext <<EOF
dfa2a1d9 13992#line 13993 "configure"
90dd450c
VZ
13993#include "confdefs.h"
13994/* Override any gcc2 internal prototype to avoid an error. */
13995/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13996 builtin and then its argument prototype would still apply. */
13997char connect();
13998
13999int main() {
14000connect()
14001; return 0; }
14002EOF
dfa2a1d9 14003if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14004 rm -rf conftest*
14005 eval "ac_cv_lib_$ac_lib_var=yes"
14006else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 eval "ac_cv_lib_$ac_lib_var=no"
14011fi
14012rm -f conftest*
14013LIBS="$ac_save_LIBS"
14014
14015fi
14016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
90dd450c 14018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14019else
14020 echo "$ac_t""no" 1>&6
90dd450c 14021fi
77e13408 14022
90dd450c 14023 fi
25d0687a 14024
a0b9e27f
MB
14025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14026 echo $ac_n "checking for remove""... $ac_c" 1>&6
dfa2a1d9 14027echo "configure:14028: checking for remove" >&5
a0b9e27f
MB
14028if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14030else
a0b9e27f 14031 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14032#line 14033 "configure"
90dd450c
VZ
14033#include "confdefs.h"
14034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14035 which can conflict with char remove(); below. */
90dd450c
VZ
14036#include <assert.h>
14037/* Override any gcc2 internal prototype to avoid an error. */
14038/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14039 builtin and then its argument prototype would still apply. */
14040char remove();
14041
14042int main() {
14043
90dd450c
VZ
14044/* The GNU C library defines this for functions which it implements
14045 to always fail with ENOSYS. Some functions are actually named
14046 something starting with __ and the normal name is an alias. */
14047#if defined (__stub_remove) || defined (__stub___remove)
14048choke me
14049#else
a0b9e27f 14050remove();
90dd450c 14051#endif
55e80573 14052
a0b9e27f
MB
14053; return 0; }
14054EOF
dfa2a1d9 14055if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14056 rm -rf conftest*
14057 eval "ac_cv_func_remove=yes"
14058else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_func_remove=no"
14063fi
14064rm -f conftest*
14065fi
14066
14067if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 :
14070else
14071 echo "$ac_t""no" 1>&6
14072fi
10f2d63a 14073
90dd450c 14074 if test $ac_cv_func_remove = no; then
a0b9e27f 14075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
dfa2a1d9 14076echo "configure:14077: checking for remove in -lposix" >&5
a0b9e27f
MB
14077ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14080else
a0b9e27f 14081 ac_save_LIBS="$LIBS"
90dd450c 14082LIBS="-lposix $LIBS"
a0b9e27f 14083cat > conftest.$ac_ext <<EOF
dfa2a1d9 14084#line 14085 "configure"
90dd450c
VZ
14085#include "confdefs.h"
14086/* Override any gcc2 internal prototype to avoid an error. */
14087/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14088 builtin and then its argument prototype would still apply. */
14089char remove();
14090
14091int main() {
14092remove()
14093; return 0; }
14094EOF
dfa2a1d9 14095if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14096 rm -rf conftest*
14097 eval "ac_cv_lib_$ac_lib_var=yes"
14098else
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 eval "ac_cv_lib_$ac_lib_var=no"
14103fi
14104rm -f conftest*
14105LIBS="$ac_save_LIBS"
14106
14107fi
14108if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14109 echo "$ac_t""yes" 1>&6
90dd450c 14110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14111else
14112 echo "$ac_t""no" 1>&6
90dd450c 14113fi
f6bcfd97 14114
6fa882bd
RR
14115 fi
14116
90dd450c 14117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
dfa2a1d9 14119echo "configure:14120: checking for shmat" >&5
a0b9e27f
MB
14120if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14122else
a0b9e27f 14123 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14124#line 14125 "configure"
90dd450c
VZ
14125#include "confdefs.h"
14126/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14127 which can conflict with char shmat(); below. */
90dd450c
VZ
14128#include <assert.h>
14129/* Override any gcc2 internal prototype to avoid an error. */
14130/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14131 builtin and then its argument prototype would still apply. */
14132char shmat();
14133
14134int main() {
14135
90dd450c
VZ
14136/* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139#if defined (__stub_shmat) || defined (__stub___shmat)
14140choke me
14141#else
a0b9e27f 14142shmat();
90dd450c 14143#endif
10f2d63a 14144
a0b9e27f
MB
14145; return 0; }
14146EOF
dfa2a1d9 14147if { (eval echo configure:14148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14148 rm -rf conftest*
14149 eval "ac_cv_func_shmat=yes"
14150else
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14153 rm -rf conftest*
14154 eval "ac_cv_func_shmat=no"
14155fi
14156rm -f conftest*
14157fi
14158
14159if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14160 echo "$ac_t""yes" 1>&6
14161 :
14162else
14163 echo "$ac_t""no" 1>&6
14164fi
d08b457b 14165
90dd450c 14166 if test $ac_cv_func_shmat = no; then
a0b9e27f 14167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
dfa2a1d9 14168echo "configure:14169: checking for shmat in -lipc" >&5
a0b9e27f
MB
14169ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14172else
a0b9e27f 14173 ac_save_LIBS="$LIBS"
90dd450c 14174LIBS="-lipc $LIBS"
a0b9e27f 14175cat > conftest.$ac_ext <<EOF
dfa2a1d9 14176#line 14177 "configure"
90dd450c 14177#include "confdefs.h"
8284b0c5 14178/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14179/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14180 builtin and then its argument prototype would still apply. */
14181char shmat();
14182
14183int main() {
14184shmat()
14185; return 0; }
14186EOF
dfa2a1d9 14187if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14188 rm -rf conftest*
14189 eval "ac_cv_lib_$ac_lib_var=yes"
14190else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_lib_$ac_lib_var=no"
14195fi
14196rm -f conftest*
14197LIBS="$ac_save_LIBS"
14198
14199fi
14200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14201 echo "$ac_t""yes" 1>&6
90dd450c 14202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14203else
14204 echo "$ac_t""no" 1>&6
d08b457b
GD
14205fi
14206
d558c907 14207 fi
90dd450c 14208 fi
3a922bb4 14209
90dd450c 14210 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14211 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14214 # check for ICE first), but we must link in the order -lSM -lICE or
14215 # we get undefined symbols. So assume we have SM if we have ICE.
14216 # These have to be linked with before -lX11, unlike the other
14217 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
dfa2a1d9 14220echo "configure:14221: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14221ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
14224else
14225 ac_save_LIBS="$LIBS"
f09359cf 14226LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14227cat > conftest.$ac_ext <<EOF
dfa2a1d9 14228#line 14229 "configure"
9cfadba2 14229#include "confdefs.h"
90dd450c
VZ
14230/* Override any gcc2 internal prototype to avoid an error. */
14231/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14232 builtin and then its argument prototype would still apply. */
14233char IceConnectionNumber();
14234
14235int main() {
14236IceConnectionNumber()
14237; return 0; }
14238EOF
dfa2a1d9 14239if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14240 rm -rf conftest*
14241 eval "ac_cv_lib_$ac_lib_var=yes"
14242else
14243 echo "configure: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 rm -rf conftest*
14246 eval "ac_cv_lib_$ac_lib_var=no"
14247fi
14248rm -f conftest*
14249LIBS="$ac_save_LIBS"
14250
14251fi
14252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14253 echo "$ac_t""yes" 1>&6
90dd450c 14254 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14255else
14256 echo "$ac_t""no" 1>&6
9cfadba2 14257fi
10f2d63a 14258
a0b9e27f 14259 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14260
14261fi
14262
8284b0c5 14263
90dd450c 14264 if test "$no_x" = "yes"; then
a0b9e27f 14265 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14266 fi
14267
14268 GUI_TK_LIBRARY="$X_LIBS"
14269 TOOLKIT_INCLUDE="$X_CFLAGS"
14270 AFMINSTALL=afminstall
14271 COMPILED_X_PROGRAM=0
14272
21d1c967 14273 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14274 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
dfa2a1d9 14275echo "configure:14276: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14276 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14277 echo "$ac_t""not found" 1>&6
14278 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14279 else
a0b9e27f
MB
14280 echo "$ac_t""$MICROWIN" 1>&6
14281 cat >> confdefs.h <<\EOF
21d1c967 14282#define wxUSE_NANOX 1
a0b9e27f 14283EOF
21d1c967 14284
90dd450c
VZ
14285 fi
14286 fi
14287
14288 xpm_link=
a0b9e27f 14289 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
dfa2a1d9 14290echo "configure:14291: checking for Xpm library" >&5
a0b9e27f 14291
90dd450c 14292ac_find_libraries=
2b5f62a0 14293for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14294 do
14295 for ac_extension in a so sl dylib; do
14296 if test -f "$ac_dir/libXpm.$ac_extension"; then
14297 ac_find_libraries=$ac_dir
14298 break 2
14299 fi
14300 done
14301 done
14302
14303 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14304
90dd450c
VZ
14305 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14306 result=$?
14307 if test $result = 0; then
14308 ac_path_to_link=""
14309 else
14310 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14311 fi
90dd450c 14312
21d1c967
GD
14313 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14314 xpm_link=" -lXpm"
a0b9e27f 14315 cat >> confdefs.h <<\EOF
21d1c967 14316#define wxHAVE_LIB_XPM 1
a0b9e27f 14317EOF
90dd450c 14318
a0b9e27f 14319 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14320 else
a0b9e27f 14321 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14322#line 14323 "configure"
21d1c967 14323#include "confdefs.h"
90dd450c 14324
21d1c967 14325 #include <X11/xpm.h>
a0b9e27f
MB
14326
14327int main() {
6f72b082 14328
21d1c967
GD
14329 int version;
14330 version = XpmLibraryVersion();
a0b9e27f
MB
14331
14332; return 0; }
14333EOF
dfa2a1d9 14334if { (eval echo configure:14335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14335 rm -rf conftest*
14336
21d1c967 14337 xpm_link=" -lXpm"
a0b9e27f 14338 cat >> confdefs.h <<\EOF
21d1c967 14339#define wxHAVE_LIB_XPM 1
a0b9e27f 14340EOF
90dd450c 14341
a0b9e27f 14342 echo "$ac_t""found in default search path" 1>&6
21d1c967 14343 COMPILED_X_PROGRAM=0
a0b9e27f 14344
21d1c967 14345else
a0b9e27f
MB
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 rm -rf conftest*
14349
14350 echo "$ac_t""no" 1>&6
14351 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14352
14353
6f72b082 14354fi
a0b9e27f 14355rm -f conftest*
21d1c967 14356 fi
90dd450c 14357
2b5f62a0
VZ
14358 if test "$wxUSE_UNICODE" = "yes"; then
14359
14360 succeeded=no
90dd450c 14361
2b5f62a0
VZ
14362 if test -z "$PKG_CONFIG"; then
14363 # Extract the first word of "pkg-config", so it can be a program name with args.
14364set dummy pkg-config; ac_word=$2
14365echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 14366echo "configure:14367: checking for $ac_word" >&5
2b5f62a0 14367if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369else
2b5f62a0
VZ
14370 case "$PKG_CONFIG" in
14371 /*)
14372 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14373 ;;
14374 ?:/*)
14375 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14376 ;;
14377 *)
14378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14379 ac_dummy="$PATH"
14380 for ac_dir in $ac_dummy; do
14381 test -z "$ac_dir" && ac_dir=.
14382 if test -f $ac_dir/$ac_word; then
14383 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14384 break
14385 fi
14386 done
14387 IFS="$ac_save_ifs"
14388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14389 ;;
14390esac
14391fi
14392PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14393if test -n "$PKG_CONFIG"; then
14394 echo "$ac_t""$PKG_CONFIG" 1>&6
14395else
14396 echo "$ac_t""no" 1>&6
14397fi
14398
14399 fi
14400
14401 if test "$PKG_CONFIG" = "no" ; then
14402 echo "*** The pkg-config script could not be found. Make sure it is"
14403 echo "*** in your path, or set the PKG_CONFIG environment variable"
14404 echo "*** to the full path to pkg-config."
14405 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14406 else
14407 PKG_CONFIG_MIN_VERSION=0.9.0
14408 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14409 echo $ac_n "checking for pangox""... $ac_c" 1>&6
dfa2a1d9 14410echo "configure:14411: checking for pangox" >&5
2b5f62a0
VZ
14411
14412 if $PKG_CONFIG --exists "pangox" ; then
14413 echo "$ac_t""yes" 1>&6
14414 succeeded=yes
14415
14416 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
dfa2a1d9 14417echo "configure:14418: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14418 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14419 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14420
14421 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
dfa2a1d9 14422echo "configure:14423: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14423 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14424 echo "$ac_t""$PANGOX_LIBS" 1>&6
14425 else
14426 PANGOX_CFLAGS=""
14427 PANGOX_LIBS=""
14428 ## If we have a custom action on failure, don't print errors, but
14429 ## do set a variable so people can do so.
14430 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14431
14432 fi
14433
14434
14435
14436 else
14437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14439 fi
14440 fi
14441
14442 if test $succeeded = yes; then
14443
14444 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14445 LIBS="$LIBS $PANGOX_LIBS"
14446
14447 else
14448
14449 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14450
14451
14452 fi
14453
14454
14455 succeeded=no
14456
14457 if test -z "$PKG_CONFIG"; then
14458 # Extract the first word of "pkg-config", so it can be a program name with args.
14459set dummy pkg-config; ac_word=$2
14460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 14461echo "configure:14462: checking for $ac_word" >&5
2b5f62a0
VZ
14462if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14464else
14465 case "$PKG_CONFIG" in
14466 /*)
14467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14468 ;;
14469 ?:/*)
14470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14471 ;;
14472 *)
14473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14474 ac_dummy="$PATH"
14475 for ac_dir in $ac_dummy; do
14476 test -z "$ac_dir" && ac_dir=.
14477 if test -f $ac_dir/$ac_word; then
14478 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14479 break
14480 fi
14481 done
14482 IFS="$ac_save_ifs"
14483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14484 ;;
14485esac
14486fi
14487PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14488if test -n "$PKG_CONFIG"; then
14489 echo "$ac_t""$PKG_CONFIG" 1>&6
14490else
14491 echo "$ac_t""no" 1>&6
14492fi
14493
14494 fi
14495
14496 if test "$PKG_CONFIG" = "no" ; then
14497 echo "*** The pkg-config script could not be found. Make sure it is"
14498 echo "*** in your path, or set the PKG_CONFIG environment variable"
14499 echo "*** to the full path to pkg-config."
14500 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14501 else
14502 PKG_CONFIG_MIN_VERSION=0.9.0
14503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14504 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
dfa2a1d9 14505echo "configure:14506: checking for pangoft2" >&5
2b5f62a0
VZ
14506
14507 if $PKG_CONFIG --exists "pangoft2" ; then
14508 echo "$ac_t""yes" 1>&6
14509 succeeded=yes
14510
14511 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
dfa2a1d9 14512echo "configure:14513: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14513 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14514 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14515
14516 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
dfa2a1d9 14517echo "configure:14518: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14518 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14519 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14520 else
14521 PANGOFT2_CFLAGS=""
14522 PANGOFT2_LIBS=""
14523 ## If we have a custom action on failure, don't print errors, but
14524 ## do set a variable so people can do so.
14525 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14526
14527 fi
14528
14529
14530
14531 else
14532 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14533 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14534 fi
14535 fi
14536
14537 if test $succeeded = yes; then
14538
14539 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14540 LIBS="$LIBS $PANGOFT2_LIBS"
14541
14542 else
14543
14544 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14545 wxUSE_PRINTING_ARCHITECTURE="no"
14546
14547
14548 fi
14549
14550
14551 succeeded=no
14552
14553 if test -z "$PKG_CONFIG"; then
14554 # Extract the first word of "pkg-config", so it can be a program name with args.
14555set dummy pkg-config; ac_word=$2
14556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 14557echo "configure:14558: checking for $ac_word" >&5
2b5f62a0
VZ
14558if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
14560else
14561 case "$PKG_CONFIG" in
14562 /*)
14563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14564 ;;
14565 ?:/*)
14566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14567 ;;
14568 *)
14569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14570 ac_dummy="$PATH"
14571 for ac_dir in $ac_dummy; do
14572 test -z "$ac_dir" && ac_dir=.
14573 if test -f $ac_dir/$ac_word; then
14574 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14575 break
14576 fi
14577 done
14578 IFS="$ac_save_ifs"
14579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14580 ;;
14581esac
14582fi
14583PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14584if test -n "$PKG_CONFIG"; then
14585 echo "$ac_t""$PKG_CONFIG" 1>&6
14586else
14587 echo "$ac_t""no" 1>&6
14588fi
14589
14590 fi
14591
14592 if test "$PKG_CONFIG" = "no" ; then
14593 echo "*** The pkg-config script could not be found. Make sure it is"
14594 echo "*** in your path, or set the PKG_CONFIG environment variable"
14595 echo "*** to the full path to pkg-config."
14596 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14597 else
14598 PKG_CONFIG_MIN_VERSION=0.9.0
14599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14600 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
dfa2a1d9 14601echo "configure:14602: checking for pangoxft" >&5
2b5f62a0
VZ
14602
14603 if $PKG_CONFIG --exists "pangoxft" ; then
14604 echo "$ac_t""yes" 1>&6
14605 succeeded=yes
14606
14607 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
dfa2a1d9 14608echo "configure:14609: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14609 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14610 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14611
14612 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
dfa2a1d9 14613echo "configure:14614: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14614 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14615 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14616 else
14617 PANGOXFT_CFLAGS=""
14618 PANGOXFT_LIBS=""
14619 ## If we have a custom action on failure, don't print errors, but
14620 ## do set a variable so people can do so.
14621 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14622
14623 fi
14624
14625
14626
14627 else
14628 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14629 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14630 fi
14631 fi
14632
14633 if test $succeeded = yes; then
14634
14635 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14636 LIBS="$LIBS $PANGOXFT_LIBS"
14637
14638 else
14639
14640 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14641
14642
14643 fi
14644
14645 fi
14646
14647 wxUSE_UNIVERSAL="yes"
14648
14649 if test "$wxUSE_NANOX" = "yes"; then
14650 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14651 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"
14652 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14653 else
14654 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14655 fi
14656
14657 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14658 TOOLKIT=X11
14659 GUIDIST=X11_DIST
14660 fi
14661
21d1c967
GD
14662 if test "$wxUSE_MOTIF" = 1; then
14663 if test "$no_x" = yes; then
14664 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14665 cat >> confdefs.h <<\EOF
21d1c967 14666#define X_DISPLAY_MISSING 1
a0b9e27f 14667EOF
21d1c967
GD
14668
14669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14670else
14671 if test -n "$x_includes"; then
14672 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14673 fi
14674
21d1c967
GD
14675 # It would also be nice to do this for all -L options, not just this one.
14676 if test -n "$x_libraries"; then
14677 X_LIBS="$X_LIBS -L$x_libraries"
14678 # For Solaris; some versions of Sun CC require a space after -R and
14679 # others require no space. Words are not sufficient . . . .
a0b9e27f 14680 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14681 "SunOS 5"*)
a0b9e27f 14682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
dfa2a1d9 14683echo "configure:14684: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14685 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14686#line 14687 "configure"
21d1c967
GD
14687#include "confdefs.h"
14688
a0b9e27f 14689int main() {
21d1c967 14690
a0b9e27f
MB
14691; return 0; }
14692EOF
dfa2a1d9 14693if { (eval echo configure:14694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14694 rm -rf conftest*
21d1c967 14695 ac_R_nospace=yes
698dcdb6 14696else
a0b9e27f
MB
14697 echo "configure: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 rm -rf conftest*
14700 ac_R_nospace=no
10f2d63a 14701fi
a0b9e27f 14702rm -f conftest*
21d1c967 14703 if test $ac_R_nospace = yes; then
a0b9e27f 14704 echo "$ac_t""no" 1>&6
21d1c967
GD
14705 X_LIBS="$X_LIBS -R$x_libraries"
14706 else
14707 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14708 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14709#line 14710 "configure"
21d1c967 14710#include "confdefs.h"
10f2d63a 14711
a0b9e27f 14712int main() {
f0c87536 14713
a0b9e27f
MB
14714; return 0; }
14715EOF
dfa2a1d9 14716if { (eval echo configure:14717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14717 rm -rf conftest*
21d1c967
GD
14718 ac_R_space=yes
14719else
a0b9e27f
MB
14720 echo "configure: failed program was:" >&5
14721 cat conftest.$ac_ext >&5
14722 rm -rf conftest*
14723 ac_R_space=no
21d1c967 14724fi
a0b9e27f 14725rm -f conftest*
21d1c967 14726 if test $ac_R_space = yes; then
a0b9e27f 14727 echo "$ac_t""yes" 1>&6
21d1c967
GD
14728 X_LIBS="$X_LIBS -R $x_libraries"
14729 else
a0b9e27f 14730 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14731 fi
14732 fi
a0b9e27f 14733 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14734 esac
14735 fi
90dd450c 14736
21d1c967
GD
14737 # Check for system-dependent libraries X programs must link with.
14738 # Do this before checking for the system-independent R6 libraries
14739 # (-lICE), since we may need -lsocket or whatever for X linking.
14740
14741 if test "$ISC" = yes; then
14742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14743 else
a0b9e27f
MB
14744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14745 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14746 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
dfa2a1d9 14748echo "configure:14749: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14749ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14751 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14752else
a0b9e27f 14753 ac_save_LIBS="$LIBS"
247f5006 14754LIBS="-ldnet $LIBS"
a0b9e27f 14755cat > conftest.$ac_ext <<EOF
dfa2a1d9 14756#line 14757 "configure"
247f5006 14757#include "confdefs.h"
247f5006 14758/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14759/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14760 builtin and then its argument prototype would still apply. */
14761char dnet_ntoa();
14762
14763int main() {
14764dnet_ntoa()
14765; return 0; }
14766EOF
dfa2a1d9 14767if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14768 rm -rf conftest*
14769 eval "ac_cv_lib_$ac_lib_var=yes"
14770else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 eval "ac_cv_lib_$ac_lib_var=no"
14775fi
14776rm -f conftest*
14777LIBS="$ac_save_LIBS"
14778
14779fi
14780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14781 echo "$ac_t""yes" 1>&6
21d1c967 14782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14783else
14784 echo "$ac_t""no" 1>&6
0fb0dd83 14785fi
0fb0dd83 14786
21d1c967 14787 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
dfa2a1d9 14789echo "configure:14790: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14790ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14793else
a0b9e27f 14794 ac_save_LIBS="$LIBS"
21d1c967 14795LIBS="-ldnet_stub $LIBS"
a0b9e27f 14796cat > conftest.$ac_ext <<EOF
dfa2a1d9 14797#line 14798 "configure"
21d1c967
GD
14798#include "confdefs.h"
14799/* Override any gcc2 internal prototype to avoid an error. */
14800/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14801 builtin and then its argument prototype would still apply. */
14802char dnet_ntoa();
14803
14804int main() {
14805dnet_ntoa()
14806; return 0; }
14807EOF
dfa2a1d9 14808if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14809 rm -rf conftest*
14810 eval "ac_cv_lib_$ac_lib_var=yes"
14811else
14812 echo "configure: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 rm -rf conftest*
14815 eval "ac_cv_lib_$ac_lib_var=no"
14816fi
14817rm -f conftest*
14818LIBS="$ac_save_LIBS"
14819
14820fi
14821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14822 echo "$ac_t""yes" 1>&6
21d1c967 14823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14824else
14825 echo "$ac_t""no" 1>&6
90dd450c
VZ
14826fi
14827
21d1c967 14828 fi
90dd450c 14829
21d1c967
GD
14830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14831 # to get the SysV transport functions.
a0b9e27f 14832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14833 # needs -lnsl.
14834 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14835 # on Irix 5.2, according to dickey@clark.net.
14836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
dfa2a1d9 14837echo "configure:14838: checking for gethostbyname" >&5
a0b9e27f
MB
14838if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14839 echo $ac_n "(cached) $ac_c" 1>&6
14840else
14841 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14842#line 14843 "configure"
21d1c967
GD
14843#include "confdefs.h"
14844/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14845 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14846#include <assert.h>
14847/* Override any gcc2 internal prototype to avoid an error. */
14848/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14849 builtin and then its argument prototype would still apply. */
14850char gethostbyname();
14851
14852int main() {
14853
21d1c967
GD
14854/* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14858choke me
14859#else
a0b9e27f 14860gethostbyname();
21d1c967 14861#endif
90dd450c 14862
a0b9e27f
MB
14863; return 0; }
14864EOF
dfa2a1d9 14865if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14866 rm -rf conftest*
14867 eval "ac_cv_func_gethostbyname=yes"
14868else
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
14872 eval "ac_cv_func_gethostbyname=no"
14873fi
14874rm -f conftest*
14875fi
14876
14877if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14878 echo "$ac_t""yes" 1>&6
14879 :
14880else
14881 echo "$ac_t""no" 1>&6
14882fi
90dd450c 14883
21d1c967 14884 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
dfa2a1d9 14886echo "configure:14887: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14887ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14890else
a0b9e27f 14891 ac_save_LIBS="$LIBS"
21d1c967 14892LIBS="-lnsl $LIBS"
a0b9e27f 14893cat > conftest.$ac_ext <<EOF
dfa2a1d9 14894#line 14895 "configure"
21d1c967
GD
14895#include "confdefs.h"
14896/* Override any gcc2 internal prototype to avoid an error. */
14897/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14898 builtin and then its argument prototype would still apply. */
14899char gethostbyname();
5c6fa7d2 14900
a0b9e27f
MB
14901int main() {
14902gethostbyname()
14903; return 0; }
14904EOF
dfa2a1d9 14905if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14906 rm -rf conftest*
14907 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14908else
a0b9e27f
MB
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 rm -rf conftest*
14912 eval "ac_cv_lib_$ac_lib_var=no"
14913fi
14914rm -f conftest*
14915LIBS="$ac_save_LIBS"
247f5006 14916
a0b9e27f
MB
14917fi
14918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14919 echo "$ac_t""yes" 1>&6
14920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14921else
14922 echo "$ac_t""no" 1>&6
21d1c967 14923fi
90dd450c 14924
90dd450c
VZ
14925 fi
14926
21d1c967
GD
14927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14928 # socket/setsockopt and other routines are undefined under SCO ODT
14929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14930 # on later versions), says simon@lia.di.epfl.ch: it contains
14931 # gethostby* variants that don't use the nameserver (or something).
14932 # -lsocket must be given before -lnsl if both are needed.
14933 # We assume that if connect needs -lnsl, so does gethostbyname.
14934 echo $ac_n "checking for connect""... $ac_c" 1>&6
dfa2a1d9 14935echo "configure:14936: checking for connect" >&5
a0b9e27f
MB
14936if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938else
14939 cat > conftest.$ac_ext <<EOF
dfa2a1d9 14940#line 14941 "configure"
21d1c967
GD
14941#include "confdefs.h"
14942/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14943 which can conflict with char connect(); below. */
21d1c967
GD
14944#include <assert.h>
14945/* Override any gcc2 internal prototype to avoid an error. */
14946/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14947 builtin and then its argument prototype would still apply. */
14948char connect();
14949
14950int main() {
14951
21d1c967
GD
14952/* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955#if defined (__stub_connect) || defined (__stub___connect)
14956choke me
14957#else
a0b9e27f 14958connect();
21d1c967 14959#endif
90dd450c 14960
a0b9e27f
MB
14961; return 0; }
14962EOF
dfa2a1d9 14963if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14964 rm -rf conftest*
14965 eval "ac_cv_func_connect=yes"
14966else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 eval "ac_cv_func_connect=no"
14971fi
14972rm -f conftest*
14973fi
14974
14975if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 :
14978else
14979 echo "$ac_t""no" 1>&6
14980fi
1f8ae82f 14981
21d1c967 14982 if test $ac_cv_func_connect = no; then
a0b9e27f 14983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
dfa2a1d9 14984echo "configure:14985: checking for connect in -lsocket" >&5
a0b9e27f
MB
14985ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 14988else
a0b9e27f 14989 ac_save_LIBS="$LIBS"
21d1c967 14990LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14991cat > conftest.$ac_ext <<EOF
dfa2a1d9 14992#line 14993 "configure"
0fbb762e 14993#include "confdefs.h"
21d1c967
GD
14994/* Override any gcc2 internal prototype to avoid an error. */
14995/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14996 builtin and then its argument prototype would still apply. */
14997char connect();
14998
14999int main() {
15000connect()
15001; return 0; }
15002EOF
dfa2a1d9 15003if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15004 rm -rf conftest*
15005 eval "ac_cv_lib_$ac_lib_var=yes"
15006else
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 rm -rf conftest*
15010 eval "ac_cv_lib_$ac_lib_var=no"
15011fi
15012rm -f conftest*
15013LIBS="$ac_save_LIBS"
15014
15015fi
15016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15017 echo "$ac_t""yes" 1>&6
21d1c967 15018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15019else
15020 echo "$ac_t""no" 1>&6
21d1c967 15021fi
90dd450c 15022
21d1c967 15023 fi
90dd450c 15024
a0b9e27f
MB
15025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15026 echo $ac_n "checking for remove""... $ac_c" 1>&6
dfa2a1d9 15027echo "configure:15028: checking for remove" >&5
a0b9e27f
MB
15028if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15029 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15030else
a0b9e27f 15031 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15032#line 15033 "configure"
21d1c967
GD
15033#include "confdefs.h"
15034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15035 which can conflict with char remove(); below. */
21d1c967
GD
15036#include <assert.h>
15037/* Override any gcc2 internal prototype to avoid an error. */
15038/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15039 builtin and then its argument prototype would still apply. */
15040char remove();
15041
15042int main() {
15043
21d1c967
GD
15044/* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047#if defined (__stub_remove) || defined (__stub___remove)
15048choke me
15049#else
a0b9e27f 15050remove();
21d1c967 15051#endif
90dd450c 15052
a0b9e27f
MB
15053; return 0; }
15054EOF
dfa2a1d9 15055if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15056 rm -rf conftest*
15057 eval "ac_cv_func_remove=yes"
15058else
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 rm -rf conftest*
15062 eval "ac_cv_func_remove=no"
15063fi
15064rm -f conftest*
15065fi
15066
15067if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 :
15070else
15071 echo "$ac_t""no" 1>&6
15072fi
90dd450c 15073
21d1c967 15074 if test $ac_cv_func_remove = no; then
a0b9e27f 15075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
dfa2a1d9 15076echo "configure:15077: checking for remove in -lposix" >&5
a0b9e27f
MB
15077ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15080else
a0b9e27f 15081 ac_save_LIBS="$LIBS"
21d1c967 15082LIBS="-lposix $LIBS"
a0b9e27f 15083cat > conftest.$ac_ext <<EOF
dfa2a1d9 15084#line 15085 "configure"
21d1c967
GD
15085#include "confdefs.h"
15086/* Override any gcc2 internal prototype to avoid an error. */
15087/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15088 builtin and then its argument prototype would still apply. */
15089char remove();
15090
15091int main() {
15092remove()
15093; return 0; }
15094EOF
dfa2a1d9 15095if { (eval echo configure:15096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15096 rm -rf conftest*
15097 eval "ac_cv_lib_$ac_lib_var=yes"
15098else
15099 echo "configure: failed program was:" >&5
15100 cat conftest.$ac_ext >&5
15101 rm -rf conftest*
15102 eval "ac_cv_lib_$ac_lib_var=no"
15103fi
15104rm -f conftest*
15105LIBS="$ac_save_LIBS"
15106
15107fi
15108if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15109 echo "$ac_t""yes" 1>&6
21d1c967 15110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15111else
15112 echo "$ac_t""no" 1>&6
21d1c967 15113fi
19bc6aad 15114
90dd450c 15115 fi
19bc6aad 15116
21d1c967 15117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
dfa2a1d9 15119echo "configure:15120: checking for shmat" >&5
a0b9e27f
MB
15120if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15121 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15122else
a0b9e27f 15123 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15124#line 15125 "configure"
21d1c967
GD
15125#include "confdefs.h"
15126/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15127 which can conflict with char shmat(); below. */
21d1c967
GD
15128#include <assert.h>
15129/* Override any gcc2 internal prototype to avoid an error. */
15130/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15131 builtin and then its argument prototype would still apply. */
15132char shmat();
15133
15134int main() {
15135
21d1c967
GD
15136/* The GNU C library defines this for functions which it implements
15137 to always fail with ENOSYS. Some functions are actually named
15138 something starting with __ and the normal name is an alias. */
15139#if defined (__stub_shmat) || defined (__stub___shmat)
15140choke me
15141#else
a0b9e27f 15142shmat();
21d1c967 15143#endif
90dd450c 15144
a0b9e27f
MB
15145; return 0; }
15146EOF
dfa2a1d9 15147if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15148 rm -rf conftest*
15149 eval "ac_cv_func_shmat=yes"
15150else
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 rm -rf conftest*
15154 eval "ac_cv_func_shmat=no"
15155fi
15156rm -f conftest*
15157fi
15158
15159if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15160 echo "$ac_t""yes" 1>&6
15161 :
15162else
15163 echo "$ac_t""no" 1>&6
15164fi
19bc6aad 15165
21d1c967 15166 if test $ac_cv_func_shmat = no; then
a0b9e27f 15167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
dfa2a1d9 15168echo "configure:15169: checking for shmat in -lipc" >&5
a0b9e27f
MB
15169ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15172else
a0b9e27f 15173 ac_save_LIBS="$LIBS"
5c6fa7d2 15174LIBS="-lipc $LIBS"
a0b9e27f 15175cat > conftest.$ac_ext <<EOF
dfa2a1d9 15176#line 15177 "configure"
5c6fa7d2 15177#include "confdefs.h"
5c6fa7d2 15178/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15179/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15180 builtin and then its argument prototype would still apply. */
15181char shmat();
15182
15183int main() {
15184shmat()
15185; return 0; }
15186EOF
dfa2a1d9 15187if { (eval echo configure:15188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15188 rm -rf conftest*
15189 eval "ac_cv_lib_$ac_lib_var=yes"
15190else
15191 echo "configure: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15193 rm -rf conftest*
15194 eval "ac_cv_lib_$ac_lib_var=no"
15195fi
15196rm -f conftest*
15197LIBS="$ac_save_LIBS"
15198
15199fi
15200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15201 echo "$ac_t""yes" 1>&6
21d1c967 15202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15203else
15204 echo "$ac_t""no" 1>&6
9f8148b1 15205fi
90dd450c 15206
90dd450c 15207 fi
21d1c967 15208 fi
10f2d63a 15209
21d1c967 15210 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15211 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15214 # check for ICE first), but we must link in the order -lSM -lICE or
15215 # we get undefined symbols. So assume we have SM if we have ICE.
15216 # These have to be linked with before -lX11, unlike the other
15217 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
dfa2a1d9 15220echo "configure:15221: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15221ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15223 echo $ac_n "(cached) $ac_c" 1>&6
15224else
15225 ac_save_LIBS="$LIBS"
f09359cf 15226LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15227cat > conftest.$ac_ext <<EOF
dfa2a1d9 15228#line 15229 "configure"
29fd3c0c 15229#include "confdefs.h"
21d1c967
GD
15230/* Override any gcc2 internal prototype to avoid an error. */
15231/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15232 builtin and then its argument prototype would still apply. */
15233char IceConnectionNumber();
15234
15235int main() {
15236IceConnectionNumber()
15237; return 0; }
15238EOF
dfa2a1d9 15239if { (eval echo configure:15240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15240 rm -rf conftest*
15241 eval "ac_cv_lib_$ac_lib_var=yes"
15242else
15243 echo "configure: failed program was:" >&5
15244 cat conftest.$ac_ext >&5
15245 rm -rf conftest*
15246 eval "ac_cv_lib_$ac_lib_var=no"
15247fi
15248rm -f conftest*
15249LIBS="$ac_save_LIBS"
15250
15251fi
15252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15253 echo "$ac_t""yes" 1>&6
21d1c967 15254 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15255else
15256 echo "$ac_t""no" 1>&6
29fd3c0c 15257fi
21d1c967 15258
a0b9e27f 15259 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15260
10f2d63a
VZ
15261fi
15262
8284b0c5 15263
21d1c967 15264 if test "$no_x" = "yes"; then
a0b9e27f 15265 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15266 fi
15267
2b5f62a0
VZ
15268 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15269 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15270 AFMINSTALL=afminstall
15271 COMPILED_X_PROGRAM=0
15272
a0b9e27f 15273 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
dfa2a1d9 15274echo "configure:15275: checking for Motif/Lesstif headers" >&5
a0b9e27f 15275
21d1c967 15276ac_find_includes=
2b5f62a0 15277for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15278 do
15279 if test -f "$ac_dir/Xm/Xm.h"; then
15280 ac_find_includes=$ac_dir
15281 break
15282 fi
15283 done
15284
15285 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15286 echo "$ac_t""found in $ac_find_includes" 1>&6
15287
2b5f62a0 15288 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15289 ac_path_to_include=""
15290 else
2b5f62a0
VZ
15291 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15292 result=$?
15293 if test $result = 0; then
15294 ac_path_to_include=""
15295 else
15296 ac_path_to_include=" -I$ac_find_includes"
15297 fi
dd0e4a90
VZ
15298 fi
15299
15300 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15301 else
a0b9e27f 15302 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15303#line 15304 "configure"
10f2d63a 15304#include "confdefs.h"
21d1c967
GD
15305
15306 #include <Xm/Xm.h>
a0b9e27f
MB
15307
15308int main() {
21d1c967
GD
15309
15310 int version;
15311 version = xmUseVersion;
a0b9e27f
MB
15312
15313; return 0; }
15314EOF
dfa2a1d9 15315if { (eval echo configure:15316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15316 rm -rf conftest*
15317
15318 echo "$ac_t""found in default search path" 1>&6
21d1c967 15319 COMPILED_X_PROGRAM=1
a0b9e27f 15320
10f2d63a 15321else
a0b9e27f
MB
15322 echo "configure: failed program was:" >&5
15323 cat conftest.$ac_ext >&5
15324 rm -rf conftest*
15325
15326 echo "$ac_t""no" 1>&6
15327 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15328
15329
10f2d63a 15330fi
a0b9e27f 15331rm -f conftest*
21d1c967 15332 fi
10f2d63a 15333
21d1c967 15334 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15335 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
dfa2a1d9 15336echo "configure:15337: checking for Motif/Lesstif library" >&5
a0b9e27f 15337
21d1c967 15338ac_find_libraries=
2b5f62a0 15339for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15340 do
15341 for ac_extension in a so sl dylib; do
15342 if test -f "$ac_dir/libXm.$ac_extension"; then
15343 ac_find_libraries=$ac_dir
15344 break 2
15345 fi
15346 done
15347 done
15348
15349 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15350 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15351
a0b9e27f 15352
21d1c967
GD
15353 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15354 result=$?
15355 if test $result = 0; then
15356 ac_path_to_link=""
15357 else
15358 ac_path_to_link=" -L$ac_find_libraries"
15359 fi
15360
21d1c967 15361 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15362 else
dd0e4a90
VZ
15363 save_CFLAGS=$CFLAGS
15364 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15365
a0b9e27f 15366 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15367#line 15368 "configure"
d836ee96 15368#include "confdefs.h"
21d1c967
GD
15369
15370 #include <Xm/Xm.h>
a0b9e27f
MB
15371
15372int main() {
21d1c967
GD
15373
15374 int version;
15375 version = xmUseVersion;
a0b9e27f
MB
15376
15377; return 0; }
15378EOF
dfa2a1d9 15379if { (eval echo configure:15380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15380 rm -rf conftest*
15381
15382 echo "$ac_t""found in default search path" 1>&6
21d1c967 15383 COMPILED_X_PROGRAM=1
a0b9e27f 15384
d836ee96 15385else
a0b9e27f
MB
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389
15390 echo "$ac_t""no" 1>&6
15391 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15392
15393
d836ee96 15394fi
a0b9e27f 15395rm -f conftest*
dd0e4a90
VZ
15396
15397 CFLAGS=$save_CFLAGS
21d1c967
GD
15398 fi
15399 fi
15400
15401 xpm_link=
a0b9e27f 15402 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
dfa2a1d9 15403echo "configure:15404: checking for Xpm library" >&5
a0b9e27f 15404
21d1c967 15405ac_find_libraries=
2b5f62a0 15406for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15407 do
15408 for ac_extension in a so sl dylib; do
15409 if test -f "$ac_dir/libXpm.$ac_extension"; then
15410 ac_find_libraries=$ac_dir
15411 break 2
15412 fi
15413 done
15414 done
15415
15416 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15417
21d1c967
GD
15418 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15419 result=$?
15420 if test $result = 0; then
15421 ac_path_to_link=""
15422 else
15423 ac_path_to_link=" -L$ac_find_libraries"
15424 fi
15425
15426 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15427
21d1c967 15428 xpm_link=" -lXpm"
a0b9e27f 15429 cat >> confdefs.h <<\EOF
21d1c967 15430#define wxHAVE_LIB_XPM 1
a0b9e27f 15431EOF
90dd450c 15432
a0b9e27f 15433 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15434 else
dd0e4a90
VZ
15435 save_CFLAGS=$CFLAGS
15436 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15437
a0b9e27f 15438 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15439#line 15440 "configure"
d836ee96 15440#include "confdefs.h"
21d1c967
GD
15441
15442 #include <X11/xpm.h>
a0b9e27f
MB
15443
15444int main() {
21d1c967
GD
15445
15446 int version;
15447 version = XpmLibraryVersion();
a0b9e27f
MB
15448
15449; return 0; }
15450EOF
dfa2a1d9 15451if { (eval echo configure:15452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15452 rm -rf conftest*
15453
21d1c967 15454 xpm_link=" -lXpm"
a0b9e27f 15455 cat >> confdefs.h <<\EOF
21d1c967 15456#define wxHAVE_LIB_XPM 1
a0b9e27f 15457EOF
21d1c967 15458
a0b9e27f 15459 echo "$ac_t""found in default search path" 1>&6
21d1c967 15460 COMPILED_X_PROGRAM=0
a0b9e27f 15461
d836ee96 15462else
a0b9e27f
MB
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 rm -rf conftest*
15466
15467 echo "$ac_t""no" 1>&6
15468 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15469
15470
d836ee96 15471fi
a0b9e27f 15472rm -f conftest*
dd0e4a90
VZ
15473
15474 CFLAGS=$save_CFLAGS
21d1c967
GD
15475 fi
15476
a0b9e27f 15477 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
dfa2a1d9 15478echo "configure:15479: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15479 libp_link=""
15480 libsm_ice_link=""
15481 libs_found=0
15482 for libp in "" " -lXp"; do
15483 if test "$libs_found" = "0"; then
15484 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15485 if test "$libs_found" = "0"; then
6a30f1c8
MB
15486 save_LIBS="$LIBS"
15487 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
a0b9e27f 15491 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15492#line 15493 "configure"
6a30f1c8 15493#include "confdefs.h"
17234b26 15494
6a30f1c8
MB
15495 #include <Xm/Xm.h>
15496 #include <Xm/List.h>
a0b9e27f
MB
15497
15498int main() {
6a30f1c8
MB
15499
15500 XmString string = NULL;
15501 Widget w = NULL;
15502 int position = 0;
15503 XmListAddItem(w, string, position);
a0b9e27f
MB
15504
15505; return 0; }
15506EOF
dfa2a1d9 15507if { (eval echo configure:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15508 rm -rf conftest*
15509
6a30f1c8
MB
15510 libp_link="$libp"
15511 libsm_ice_link="$libsm_ice"
a0b9e27f 15512 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15513 libs_found=1
a0b9e27f 15514
6a30f1c8 15515else
a0b9e27f
MB
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 rm -rf conftest*
15519
15520
6a30f1c8 15521fi
a0b9e27f 15522rm -f conftest*
dd0e4a90 15523
6a30f1c8 15524 LIBS="$save_LIBS"
dd0e4a90 15525 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15526 fi
15527 done
15528 fi
15529 done
15530
15531 if test "$libs_found" = "0"; then
a0b9e27f
MB
15532 echo "$ac_t""can't find the right libraries" 1>&6
15533 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15534 fi
15535
da494b40
MB
15536 save_CFLAGS=$CFLAGS
15537 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15538 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
dfa2a1d9 15539echo "configure:15540: checking for Motif 2" >&5
da494b40 15540 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15541#line 15542 "configure"
da494b40
MB
15542#include "confdefs.h"
15543
15544 #include <Xm/Xm.h>
15545
15546int main() {
15547
15548 #if XmVersion < 2000
15549 #error "Not Motif 2"
15550 #endif
15551
15552; return 0; }
15553EOF
dfa2a1d9 15554if { (eval echo configure:15555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15555 rm -rf conftest*
15556
15557 cat >> confdefs.h <<\EOF
15558#define __WXMOTIF20__ 1
15559EOF
15560
15561 echo "$ac_t""found" 1>&6
15562
15563else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567
15568 cat >> confdefs.h <<\EOF
15569#define __WXMOTIF20__ 0
15570EOF
15571
15572 echo "$ac_t""not found" 1>&6
15573
15574fi
15575rm -f conftest*
15576 CFLAGS=$save_CFLAGS
15577
6a30f1c8 15578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15579 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15580 TOOLKIT=MOTIF
15581 GUIDIST=MOTIF_DIST
15582 fi
15583
15584 if test "$wxUSE_MAC" = 1; then
0c98a14e 15585 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15586
0c98a14e 15587 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15588 TOOLKIT=MAC
15589 GUIDIST=MACX_DIST
15590 fi
15591
ac0c4cc3
DE
15592 if test "$wxUSE_COCOA" = 1; then
15593 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15594 TOOLKIT=COCOA
15595 GUIDIST=COCOA_DIST
15596 fi
15597
21d1c967
GD
15598 if test "$wxUSE_PM" = 1; then
15599 TOOLKIT=PM
15600 GUIDIST=GTK_DIST
2b5f62a0 15601 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15602 wxUSE_THREADS="no"
21d1c967
GD
15603 fi
15604
15605 if test "$TOOLKIT" = "PM" ; then
15606 TOOLKIT_DIR="os2"
15607 else
15608 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15609 fi
15610
15611 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15612
15613 if test "$wxUSE_UNIVERSAL" = "yes"; then
15614 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15615
15616 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15617 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15618
15619 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15620 if test "$wxUSE_X11" = 1; then
15621 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15622 else
15623 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15624 fi
15625 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15626 WIDGET_SET=univ
15627 else
15628 ALL_OBJECTS="\$(GUIOBJS)"
15629 ALL_SOURCES="\$(ALL_SOURCES)"
15630 ALL_HEADERS="\$(ALL_HEADERS)"
15631 fi
15632
15633 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15634
15635 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15636 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15637 fi
15638
15639 if test "$wxUSE_HTML" = "yes"; then
15640 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15641 fi
15642
15643 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15644 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15645 fi
15646 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15647 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15648 fi
15649 if test "$wxUSE_LIBPNG" = "builtin" ; then
15650 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15651 fi
15652
15653 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15654 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15655else
21d1c967
GD
15656 USE_GUI=0
15657
15658 TOOLKIT_DIR="base"
15659
15660 if test "$USE_WIN32" = 1 ; then
15661 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15662 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15663
15664 TOOLKIT="MSW"
15665 else
15666 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15667 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15668 fi
15669
15670 ALL_SOURCES="\$(ALL_SOURCES)"
15671 ALL_HEADERS="\$(ALL_HEADERS)"
15672
15673 PORT_FILES="\${top_srcdir}/src/files.lst"
15674
15675 GUIDIST="BASE_DIST"
15676 DISTDIR="wxBase"
d836ee96
VZ
15677fi
15678
8284b0c5 15679
21d1c967
GD
15680if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15681 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15682fi
21d1c967
GD
15683
15684if test "$wxUSE_REGEX" = "builtin" ; then
15685 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15686fi
21d1c967
GD
15687if test "$wxUSE_ZLIB" = "builtin" ; then
15688 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15689fi
15690
8284b0c5 15691
21d1c967 15692if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15693 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15694 OPENGL_LIBS="-framework OpenGL -framework AGL"
15695 elif test "$wxUSE_MSW" = 1; then
15696 OPENGL_LIBS="-lopengl32 -lglu32"
15697 else
a0b9e27f
MB
15698 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15699echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
dfa2a1d9 15700echo "configure:15701: checking for GL/gl.h" >&5
a0b9e27f
MB
15701if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703else
15704 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15705#line 15706 "configure"
10f2d63a 15706#include "confdefs.h"
21d1c967 15707#include <GL/gl.h>
a0b9e27f
MB
15708EOF
15709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 15710{ (eval echo configure:15711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15712if test -z "$ac_err"; then
15713 rm -rf conftest*
15714 eval "ac_cv_header_$ac_safe=yes"
15715else
15716 echo "$ac_err" >&5
15717 echo "configure: failed program was:" >&5
698dcdb6 15718 cat conftest.$ac_ext >&5
a0b9e27f
MB
15719 rm -rf conftest*
15720 eval "ac_cv_header_$ac_safe=no"
703e0a69 15721fi
a0b9e27f 15722rm -f conftest*
698dcdb6 15723fi
a0b9e27f
MB
15724if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15725 echo "$ac_t""yes" 1>&6
15726
15727 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
dfa2a1d9 15728echo "configure:15729: checking for -lGL" >&5
a0b9e27f 15729
21d1c967 15730ac_find_libraries=
2b5f62a0 15731for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15732 do
15733 for ac_extension in a so sl dylib; do
15734 if test -f "$ac_dir/libGL.$ac_extension"; then
15735 ac_find_libraries=$ac_dir
15736 break 2
15737 fi
15738 done
15739 done
15740
15741 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15742
21d1c967
GD
15743 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15744 result=$?
15745 if test $result = 0; then
15746 ac_path_to_link=""
15747 else
15748 ac_path_to_link=" -L$ac_find_libraries"
15749 fi
15750
15751 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15752 LDFLAGS_GL="$LDFLAGS"
15753 else
15754 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15755 fi
15756 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15757 echo "$ac_t""yes" 1>&6
21d1c967 15758 else
a0b9e27f
MB
15759 echo "$ac_t""no" 1>&6
15760 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
dfa2a1d9 15761echo "configure:15762: checking for -lMesaGL" >&5
a0b9e27f 15762
21d1c967 15763ac_find_libraries=
2b5f62a0 15764for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15765 do
15766 for ac_extension in a so sl dylib; do
15767 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15768 ac_find_libraries=$ac_dir
15769 break 2
15770 fi
15771 done
15772 done
15773
15774 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15775
21d1c967
GD
15776 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15777 result=$?
15778 if test $result = 0; then
15779 ac_path_to_link=""
15780 else
15781 ac_path_to_link=" -L$ac_find_libraries"
15782 fi
15783
15784 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15785 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15786 echo "$ac_t""yes" 1>&6
21d1c967 15787 else
a0b9e27f 15788 echo "$ac_t""no" 1>&6
21d1c967
GD
15789 fi
15790 fi
a0b9e27f
MB
15791
15792else
15793 echo "$ac_t""no" 1>&6
5c6fa7d2 15794fi
52127426 15795
8284b0c5 15796
21d1c967 15797 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15798 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15799 fi
15800 fi
90dd450c 15801
21d1c967 15802 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15803 cat >> confdefs.h <<\EOF
21d1c967 15804#define wxUSE_OPENGL 1
a0b9e27f 15805EOF
21d1c967 15806
a0b9e27f 15807 cat >> confdefs.h <<\EOF
21d1c967 15808#define wxUSE_GLCANVAS 1
a0b9e27f 15809EOF
21d1c967
GD
15810
15811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15812 fi
10f2d63a 15813fi
21d1c967
GD
15814
15815if test -z "$TOOLKIT_VPATH" ; then
15816 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15817fi
21d1c967
GD
15818
15819if test -n "$TOOLKIT" ; then
15820 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15821fi
15822
15823lib_unicode_suffix=
15824if test "$wxUSE_UNICODE" = "yes"; then
15825 lib_unicode_suffix=u
90dd450c 15826fi
698dcdb6 15827
21d1c967
GD
15828lib_debug_suffix=
15829if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15830 lib_debug_suffix=d
15831fi
698dcdb6 15832
2b5f62a0
VZ
15833WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15834
15835TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15836TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15837
15838if test "$cross_compiling" = "yes"; then
15839 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15840 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15841fi
15842
15843WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15844WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15845WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15846
15847WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15848WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15849
15850WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15851WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15852WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15853WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15854
15855case "${host}" in
15856 *-*-cygwin* | *-*-mingw32* )
15857
a0b9e27f
MB
15858
15859
17234b26 15860 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15861 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15862 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15863 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15864 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15865 else
15866 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15867 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15868 fi
15869 ;;
15870
15871 *-*-darwin* )
1542ea39 15872
05159a27
GD
15873 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15874 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15875
15876 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15877 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15878 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15879 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15880
21d1c967 15881 if test "$wxUSE_MAC" = 1; then
f346733b
GD
15882 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15883 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
15884 fi
15885 ;;
15886esac
15887
15888WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15889WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15890
15891WXCONFIG_LIBS="-l${WX_LIBRARY}"
15892WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15893
15894if test "$wxUSE_OPENGL" = "yes"; then
15895 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15896 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15897fi
15898
8284b0c5
MB
15899
15900
21d1c967
GD
15901if test "$wxUSE_SHARED" = "yes"; then
15902 case "${host}" in
15903 *-pc-os2_emx | *-pc-os2-emx | \
15904 *-pc-msdosdjgpp )
15905 wxUSE_SHARED=no
a0b9e27f 15906 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15907 ;;
15908 esac
15909fi
15910
2b5f62a0
VZ
15911if test "$wxUSE_SHARED" = "yes"; then
15912
15913 if test "$wxUSE_OPENGL" = "yes"; then
15914 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15915 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15916 else
15917 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15918 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15919 fi
15920
15921 if test "$GCC" = "yes"; then
15922 PIC_FLAG="-fPIC"
15923 fi
15924
15925
15926
15927 found_versioning=no
15928
b4eecb7e 15929
2b5f62a0
VZ
15930 if test $found_versioning = no ; then
15931 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
dfa2a1d9 15932echo "configure:15933: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
15933if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15934 echo $ac_n "(cached) $ac_c" 1>&6
15935else
15936
15937 echo "VER_1 { *; };" >conftest.sym
15938 echo "int main() { return 0; }" >conftest.cpp
15939
15940 if { ac_try='
15941 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
dfa2a1d9 15942 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
15943 if test -s conftest.stderr ; then
15944 wx_cv_version_script=no
15945 else
15946 wx_cv_version_script=yes
15947 fi
15948 else
15949 wx_cv_version_script=no
15950 fi
15951 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15952
15953fi
15954
15955echo "$ac_t""$wx_cv_version_script" 1>&6
15956 if test $wx_cv_version_script = yes ; then
15957 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15958 fi
15959 fi
21d1c967 15960
21d1c967
GD
15961
15962 SHARED_LD="${CXX} -shared -o"
15963
15964 case "${host}" in
15965 *-hp-hpux* )
ad2622f1 15966 if test "$GCC" = "yes"; then
85d5e282 15967 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
15968 else
15969 LDFLAGS="$LDFLAGS -L/usr/lib"
15970
15971 SHARED_LD="${CXX} -b -o"
15972 PIC_FLAG="+Z"
15973 fi
15974
15975 if test "$wxUSE_OPENGL" = "yes"; then
15976 WX_ALL_INSTALLED="preinstall_gl"
15977 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15978 else
15979 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15980 fi
15981 ;;
15982
15983 *-*-linux* )
15984 if test "$GCC" != "yes"; then
a0b9e27f 15985 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
dfa2a1d9 15986echo "configure:15987: checking for Intel compiler" >&5
a0b9e27f
MB
15987if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15989else
15990
15991 cat > conftest.$ac_ext <<EOF
dfa2a1d9 15992#line 15993 "configure"
698dcdb6 15993#include "confdefs.h"
90dd450c 15994
a0b9e27f 15995int main() {
90dd450c 15996
21d1c967
GD
15997 #ifndef __INTEL_COMPILER
15998 #error Not icc
15999 #endif
a0b9e27f
MB
16000
16001; return 0; }
16002EOF
dfa2a1d9 16003if { (eval echo configure:16004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16004 rm -rf conftest*
21d1c967 16005 wx_cv_prog_icc=yes
6232543b 16006else
a0b9e27f
MB
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 rm -rf conftest*
16010 wx_cv_prog_icc=no
16011
5c6fa7d2 16012fi
a0b9e27f
MB
16013rm -f conftest*
16014
247f5006 16015fi
a0b9e27f
MB
16016
16017echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16018 if test "$wx_cv_prog_icc" = "yes"; then
16019 PIC_FLAG="-KPIC"
16020 fi
16021 fi
16022
16023 if test "$wxUSE_SONAME" = "yes" ; then
16024 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16025 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16026 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16027 fi
16028 ;;
16029
16030 *-*-solaris2* )
16031 if test "$GCC" = yes ; then
16032 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16033 else
16034 SHARED_LD="${CXX} -G -o"
16035 PIC_FLAG="-KPIC"
16036 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16037 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16038 fi
16039 ;;
16040
16041 *-*-darwin* )
b2fee376
GD
16042 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16043 CFLAGS="$CFLAGS -fno-common"
16044 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16045 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16046 PIC_FLAG="-dynamic -fPIC"
f346733b 16047 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16048 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16049 ;;
16050
16051 *-*-aix* )
2b5f62a0
VZ
16052 if test "$GCC" != "yes"; then
16053 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16054set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16055echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 16056echo "configure:16057: checking for $ac_word" >&5
a0b9e27f
MB
16057if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16058 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16059else
16060 if test -n "$AIX_CXX_LD"; then
16061 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16062else
a0b9e27f
MB
16063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16064 ac_dummy="$PATH"
16065 for ac_dir in $ac_dummy; do
16066 test -z "$ac_dir" && ac_dir=.
16067 if test -f $ac_dir/$ac_word; then
16068 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16069 break
16070 fi
16071 done
16072 IFS="$ac_save_ifs"
321d2b14
VZ
16073 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16074fi
16075fi
a0b9e27f 16076AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16077if test -n "$AIX_CXX_LD"; then
a0b9e27f 16078 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16079else
a0b9e27f 16080 echo "$ac_t""no" 1>&6
321d2b14
VZ
16081fi
16082
8284b0c5 16083
2b5f62a0
VZ
16084 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16085 fi
21d1c967
GD
16086 ;;
16087
16088 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16089 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16090
16091 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16092 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16093
16094 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16095
f657dbe7
MB
16096 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16097 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16098
16099 if test "$wxUSE_OPENGL" = "yes"; then
16100 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16101 fi
16102 ;;
16103
16104 *-*-beos* )
16105 SHARED_LD="${LD} -shared -o"
16106 ;;
16107
2b5f62a0
VZ
16108 *-*-irix* )
16109 if test "$GCC" != "yes"; then
16110 PIC_FLAG="-KPIC"
16111 fi
16112 ;;
16113
21d1c967
GD
16114 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16115 *-*-sunos4* | \
21d1c967
GD
16116 *-*-osf* | \
16117 *-*-dgux5* | \
16118 *-*-sysv5* )
16119 ;;
16120
16121 *)
a0b9e27f 16122 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16123 esac
16124
16125 if test "x$WX_TARGET_LIBRARY" = "x"; then
16126 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16127 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16128 fi
16129
16130 WX_TARGET_LIBRARY_TYPE="so"
16131 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16132fi
10f2d63a 16133
21d1c967
GD
16134if test "$wxUSE_SHARED" = "no"; then
16135
16136 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16137 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16138 fi
16139
ac0c4cc3 16140 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16141 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16142 fi
16143
16144 if test "$wxUSE_OPENGL" = "yes"; then
16145 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16146 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16147 else
16148 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16149 fi
16150
16151 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16152 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16153
16154 WX_TARGET_LIBRARY_TYPE="a"
16155 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16156
16157 STATIC_FLAG="yes"
16158else
16159 STATIC_FLAG="no"
90dd450c 16160fi
1e487827 16161
93fac604
VZ
16162MACRESCOMP="@#"
16163MACSETFILE="@#"
36825681 16164MACRESWXCONFIG="#"
21d1c967
GD
16165if test "$wxUSE_MAC" = 1; then
16166 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16167 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16168 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16169 # Extract the first word of "Rez", so it can be a program name with args.
16170set dummy Rez; ac_word=$2
a0b9e27f 16171echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 16172echo "configure:16173: checking for $ac_word" >&5
a0b9e27f
MB
16173if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16175else
21d1c967
GD
16176 if test -n "$RESCOMP"; then
16177 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16178else
a0b9e27f
MB
16179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16180 ac_dummy="$PATH"
16181 for ac_dir in $ac_dummy; do
16182 test -z "$ac_dir" && ac_dir=.
16183 if test -f $ac_dir/$ac_word; then
16184 ac_cv_prog_RESCOMP="Rez"
16185 break
16186 fi
16187 done
16188 IFS="$ac_save_ifs"
21d1c967 16189 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16190fi
b93d0d08 16191fi
a0b9e27f 16192RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16193if test -n "$RESCOMP"; then
a0b9e27f 16194 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16195else
a0b9e27f 16196 echo "$ac_t""no" 1>&6
90dd450c 16197fi
b93d0d08 16198
21d1c967
GD
16199 # Extract the first word of "DeRez", so it can be a program name with args.
16200set dummy DeRez; ac_word=$2
a0b9e27f 16201echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 16202echo "configure:16203: checking for $ac_word" >&5
a0b9e27f
MB
16203if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16204 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16205else
21d1c967
GD
16206 if test -n "$DEREZ"; then
16207 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16208else
a0b9e27f
MB
16209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16210 ac_dummy="$PATH"
16211 for ac_dir in $ac_dummy; do
16212 test -z "$ac_dir" && ac_dir=.
16213 if test -f $ac_dir/$ac_word; then
16214 ac_cv_prog_DEREZ="DeRez"
16215 break
16216 fi
16217 done
16218 IFS="$ac_save_ifs"
21d1c967 16219 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16220fi
90dd450c 16221fi
a0b9e27f 16222DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16223if test -n "$DEREZ"; then
a0b9e27f 16224 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16225else
a0b9e27f 16226 echo "$ac_t""no" 1>&6
3a922bb4 16227fi
698dcdb6 16228
36825681
GD
16229 # Extract the first word of "SetFile", so it can be a program name with args.
16230set dummy SetFile; ac_word=$2
16231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dfa2a1d9 16232echo "configure:16233: checking for $ac_word" >&5
36825681
GD
16233if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16234 echo $ac_n "(cached) $ac_c" 1>&6
16235else
16236 if test -n "$SETFILE"; then
16237 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16238else
16239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16240 ac_dummy="$PATH"
16241 for ac_dir in $ac_dummy; do
16242 test -z "$ac_dir" && ac_dir=.
16243 if test -f $ac_dir/$ac_word; then
16244 ac_cv_prog_SETFILE="SetFile"
16245 break
16246 fi
16247 done
16248 IFS="$ac_save_ifs"
16249 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16250fi
16251fi
16252SETFILE="$ac_cv_prog_SETFILE"
16253if test -n "$SETFILE"; then
16254 echo "$ac_t""$SETFILE" 1>&6
16255else
16256 echo "$ac_t""no" 1>&6
16257fi
16258
21d1c967 16259 MACOSX_BUNDLE="bundle"
36825681
GD
16260 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16261 MACSETFILE="\$(SETFILE)"
16262 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16263else
16264 if test "$wxUSE_PM" = 1; then
36825681 16265 MACRESCOMP="emxbind -ep"
90dd450c 16266 fi
4f14bcd8 16267fi
10f2d63a 16268
8284b0c5 16269
a0b9e27f 16270echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
dfa2a1d9 16271echo "configure:16272: checking for ANSI C header files" >&5
a0b9e27f
MB
16272if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16274else
a0b9e27f 16275 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16276#line 16277 "configure"
52127426 16277#include "confdefs.h"
a0b9e27f
MB
16278#include <stdlib.h>
16279#include <stdarg.h>
16280#include <string.h>
16281#include <float.h>
16282EOF
16283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 16284{ (eval echo configure:16285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16286if test -z "$ac_err"; then
16287 rm -rf conftest*
16288 ac_cv_header_stdc=yes
16289else
16290 echo "$ac_err" >&5
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16293 rm -rf conftest*
16294 ac_cv_header_stdc=no
16295fi
16296rm -f conftest*
16297
16298if test $ac_cv_header_stdc = yes; then
16299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16300cat > conftest.$ac_ext <<EOF
dfa2a1d9 16301#line 16302 "configure"
a0b9e27f
MB
16302#include "confdefs.h"
16303#include <string.h>
16304EOF
16305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306 egrep "memchr" >/dev/null 2>&1; then
16307 :
16308else
16309 rm -rf conftest*
16310 ac_cv_header_stdc=no
16311fi
16312rm -f conftest*
16313
16314fi
16315
16316if test $ac_cv_header_stdc = yes; then
16317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16318cat > conftest.$ac_ext <<EOF
dfa2a1d9 16319#line 16320 "configure"
a0b9e27f
MB
16320#include "confdefs.h"
16321#include <stdlib.h>
16322EOF
16323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324 egrep "free" >/dev/null 2>&1; then
16325 :
7b4a847f 16326else
a0b9e27f
MB
16327 rm -rf conftest*
16328 ac_cv_header_stdc=no
52127426 16329fi
a0b9e27f
MB
16330rm -f conftest*
16331
52127426 16332fi
a0b9e27f
MB
16333
16334if test $ac_cv_header_stdc = yes; then
16335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16336if test "$cross_compiling" = yes; then
247f5006
VZ
16337 :
16338else
a0b9e27f 16339 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16340#line 16341 "configure"
a0b9e27f
MB
16341#include "confdefs.h"
16342#include <ctype.h>
16343#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16344#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16345#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16346int main () { int i; for (i = 0; i < 256; i++)
16347if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16348exit (0); }
247f5006 16349
a0b9e27f 16350EOF
dfa2a1d9 16351if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16352then
16353 :
16354else
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16357 rm -fr conftest*
16358 ac_cv_header_stdc=no
16359fi
16360rm -fr conftest*
16361fi
16362
16363fi
16364fi
16365
16366echo "$ac_t""$ac_cv_header_stdc" 1>&6
16367if test $ac_cv_header_stdc = yes; then
16368 cat >> confdefs.h <<\EOF
16369#define STDC_HEADERS 1
16370EOF
8284b0c5
MB
16371
16372fi
16373
a0b9e27f 16374echo $ac_n "checking for mode_t""... $ac_c" 1>&6
dfa2a1d9 16375echo "configure:16376: checking for mode_t" >&5
a0b9e27f
MB
16376if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16377 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16378else
a0b9e27f 16379 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16380#line 16381 "configure"
8284b0c5 16381#include "confdefs.h"
a0b9e27f
MB
16382#include <sys/types.h>
16383#if STDC_HEADERS
16384#include <stdlib.h>
16385#include <stddef.h>
8284b0c5 16386#endif
a0b9e27f
MB
16387EOF
16388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16389 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16390 rm -rf conftest*
16391 ac_cv_type_mode_t=yes
5c6fa7d2 16392else
a0b9e27f
MB
16393 rm -rf conftest*
16394 ac_cv_type_mode_t=no
16395fi
16396rm -f conftest*
16397
8284b0c5 16398fi
a0b9e27f
MB
16399echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16400if test $ac_cv_type_mode_t = no; then
16401 cat >> confdefs.h <<\EOF
16402#define mode_t int
16403EOF
16404
8284b0c5 16405fi
a0b9e27f
MB
16406
16407echo $ac_n "checking for off_t""... $ac_c" 1>&6
dfa2a1d9 16408echo "configure:16409: checking for off_t" >&5
a0b9e27f
MB
16409if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16410 echo $ac_n "(cached) $ac_c" 1>&6
16411else
16412 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16413#line 16414 "configure"
a0b9e27f
MB
16414#include "confdefs.h"
16415#include <sys/types.h>
16416#if STDC_HEADERS
16417#include <stdlib.h>
16418#include <stddef.h>
16419#endif
16420EOF
16421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16422 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16423 rm -rf conftest*
16424 ac_cv_type_off_t=yes
247f5006 16425else
a0b9e27f
MB
16426 rm -rf conftest*
16427 ac_cv_type_off_t=no
16428fi
16429rm -f conftest*
247f5006 16430
a0b9e27f
MB
16431fi
16432echo "$ac_t""$ac_cv_type_off_t" 1>&6
16433if test $ac_cv_type_off_t = no; then
16434 cat >> confdefs.h <<\EOF
90dd450c 16435#define off_t long
a0b9e27f 16436EOF
10f2d63a 16437
90dd450c 16438fi
10f2d63a 16439
a0b9e27f 16440echo $ac_n "checking for pid_t""... $ac_c" 1>&6
dfa2a1d9 16441echo "configure:16442: checking for pid_t" >&5
a0b9e27f
MB
16442if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16443 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16444else
a0b9e27f 16445 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16446#line 16447 "configure"
10f2d63a 16447#include "confdefs.h"
a0b9e27f
MB
16448#include <sys/types.h>
16449#if STDC_HEADERS
16450#include <stdlib.h>
16451#include <stddef.h>
8284b0c5 16452#endif
a0b9e27f
MB
16453EOF
16454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16455 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16456 rm -rf conftest*
90dd450c 16457 ac_cv_type_pid_t=yes
698dcdb6 16458else
a0b9e27f
MB
16459 rm -rf conftest*
16460 ac_cv_type_pid_t=no
8284b0c5 16461fi
a0b9e27f 16462rm -f conftest*
247f5006 16463
a0b9e27f
MB
16464fi
16465echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16466if test $ac_cv_type_pid_t = no; then
16467 cat >> confdefs.h <<\EOF
90dd450c 16468#define pid_t int
a0b9e27f 16469EOF
10f2d63a 16470
7b4a847f
RR
16471fi
16472
a0b9e27f 16473echo $ac_n "checking for size_t""... $ac_c" 1>&6
dfa2a1d9 16474echo "configure:16475: checking for size_t" >&5
a0b9e27f
MB
16475if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16476 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16477else
a0b9e27f 16478 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16479#line 16480 "configure"
7b4a847f 16480#include "confdefs.h"
a0b9e27f
MB
16481#include <sys/types.h>
16482#if STDC_HEADERS
16483#include <stdlib.h>
16484#include <stddef.h>
8284b0c5 16485#endif
a0b9e27f
MB
16486EOF
16487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16488 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16489 rm -rf conftest*
90dd450c 16490 ac_cv_type_size_t=yes
18dbb1f6 16491else
a0b9e27f
MB
16492 rm -rf conftest*
16493 ac_cv_type_size_t=no
52127426 16494fi
a0b9e27f 16495rm -f conftest*
247f5006 16496
a0b9e27f
MB
16497fi
16498echo "$ac_t""$ac_cv_type_size_t" 1>&6
16499if test $ac_cv_type_size_t = no; then
16500 cat >> confdefs.h <<\EOF
90dd450c 16501#define size_t unsigned
a0b9e27f 16502EOF
90dd450c
VZ
16503
16504fi
16505
a0b9e27f 16506echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
dfa2a1d9 16507echo "configure:16508: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16508if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16509 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16510else
a0b9e27f 16511 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16512#line 16513 "configure"
b3e8d00a 16513#include "confdefs.h"
90dd450c 16514#include <sys/types.h>
a0b9e27f 16515EOF
90dd450c
VZ
16516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16518 rm -rf conftest*
90dd450c 16519 ac_cv_type_uid_t=yes
b3e8d00a 16520else
a0b9e27f 16521 rm -rf conftest*
90dd450c 16522 ac_cv_type_uid_t=no
b3e8d00a 16523fi
90dd450c 16524rm -f conftest*
b3e8d00a 16525
4f14bcd8 16526fi
247f5006 16527
a0b9e27f
MB
16528echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16529if test $ac_cv_type_uid_t = no; then
16530 cat >> confdefs.h <<\EOF
90dd450c 16531#define uid_t int
a0b9e27f 16532EOF
247f5006 16533
a0b9e27f 16534 cat >> confdefs.h <<\EOF
90dd450c 16535#define gid_t int
a0b9e27f 16536EOF
4f14bcd8 16537
b3e8d00a 16538fi
b3e8d00a 16539
8284b0c5
MB
16540
16541
a0b9e27f
MB
16542ac_ext=C
16543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16544ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16547cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16548
a0b9e27f 16549echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
dfa2a1d9 16550echo "configure:16551: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16551if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16552 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16553else
a0b9e27f 16554 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16555#line 16556 "configure"
10f2d63a 16556#include "confdefs.h"
90dd450c 16557#include <stddef.h>
a0b9e27f 16558int main() {
90dd450c
VZ
16559
16560 return 0; }
16561
16562 struct Foo { void foo(size_t); void foo(unsigned int); };
16563
16564 int bar() {
a0b9e27f
MB
16565
16566; return 0; }
16567EOF
dfa2a1d9 16568if { (eval echo configure:16569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16569 rm -rf conftest*
90dd450c 16570 wx_cv_size_t_is_uint=no
698dcdb6 16571else
a0b9e27f
MB
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 rm -rf conftest*
16575 wx_cv_size_t_is_uint=yes
16576
5c6fa7d2 16577fi
a0b9e27f 16578rm -f conftest*
8284b0c5 16579
247f5006 16580fi
a0b9e27f
MB
16581
16582echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16583
90dd450c 16584if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16585 cat >> confdefs.h <<\EOF
90dd450c 16586#define wxSIZE_T_IS_UINT 1
a0b9e27f 16587EOF
698dcdb6 16588
90dd450c 16589else
a0b9e27f 16590 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
dfa2a1d9 16591echo "configure:16592: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16592if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16594else
a0b9e27f 16595 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16596#line 16597 "configure"
10f2d63a 16597#include "confdefs.h"
90dd450c 16598#include <stddef.h>
a0b9e27f 16599int main() {
90dd450c
VZ
16600
16601 return 0; }
16602
16603 struct Foo { void foo(size_t); void foo(unsigned long); };
16604
16605 int bar() {
a0b9e27f
MB
16606
16607; return 0; }
16608EOF
dfa2a1d9 16609if { (eval echo configure:16610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16610 rm -rf conftest*
90dd450c 16611 wx_cv_size_t_is_ulong=no
698dcdb6 16612else
a0b9e27f
MB
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16615 rm -rf conftest*
16616 wx_cv_size_t_is_ulong=yes
16617
5c6fa7d2 16618fi
a0b9e27f
MB
16619rm -f conftest*
16620
247f5006 16621fi
a0b9e27f
MB
16622
16623echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16624
90dd450c 16625 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16626 cat >> confdefs.h <<\EOF
90dd450c 16627#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16628EOF
4f14bcd8
GD
16629
16630 fi
90dd450c 16631fi
1e487827 16632
90dd450c 16633ac_ext=c
a0b9e27f 16634# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16635ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16636ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16637ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16638cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16639
5c6fa7d2 16640
8284b0c5 16641
a0b9e27f 16642echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
dfa2a1d9 16643echo "configure:16644: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16644if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16646else
a0b9e27f
MB
16647
16648 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16649#line 16650 "configure"
4f14bcd8 16650#include "confdefs.h"
90dd450c 16651#include <pwd.h>
a0b9e27f 16652int main() {
f6bcfd97 16653
90dd450c
VZ
16654 char *p;
16655 struct passwd *pw;
16656 p = pw->pw_gecos;
a0b9e27f
MB
16657
16658; return 0; }
16659EOF
dfa2a1d9 16660if { (eval echo configure:16661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16661 rm -rf conftest*
16662
90dd450c 16663 wx_cv_struct_pw_gecos=yes
a0b9e27f 16664
10f2d63a 16665else
a0b9e27f
MB
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 rm -rf conftest*
16669
90dd450c 16670 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16671
16672
5c6fa7d2 16673fi
a0b9e27f
MB
16674rm -f conftest*
16675
247f5006
VZ
16676
16677fi
a0b9e27f
MB
16678
16679echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16680
90dd450c 16681if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16682 cat >> confdefs.h <<\EOF
90dd450c 16683#define HAVE_PW_GECOS 1
a0b9e27f 16684EOF
c521c494 16685
90dd450c 16686fi
4f14bcd8 16687
8284b0c5 16688
d29b553b 16689if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16690 cat >> confdefs.h <<\EOF
d74f4b5a 16691#define wxUSE_WCHAR_T 1
a0b9e27f 16692EOF
d74f4b5a 16693
8284b0c5 16694
d74f4b5a
VZ
16695 WCSLEN_FOUND=0
16696 WCHAR_LINK=
a0b9e27f 16697 for ac_func in wcslen
7a30264c 16698do
a0b9e27f 16699echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 16700echo "configure:16701: checking for $ac_func" >&5
a0b9e27f
MB
16701if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703else
16704 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16705#line 16706 "configure"
4f14bcd8 16706#include "confdefs.h"
7a30264c 16707/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16708 which can conflict with char $ac_func(); below. */
7a30264c 16709#include <assert.h>
4f14bcd8
GD
16710/* Override any gcc2 internal prototype to avoid an error. */
16711/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16712 builtin and then its argument prototype would still apply. */
16713char $ac_func();
16714
16715int main() {
16716
7a30264c
VZ
16717/* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721choke me
16722#else
a0b9e27f 16723$ac_func();
7a30264c
VZ
16724#endif
16725
a0b9e27f
MB
16726; return 0; }
16727EOF
dfa2a1d9 16728if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16729 rm -rf conftest*
16730 eval "ac_cv_func_$ac_func=yes"
16731else
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=no"
16736fi
16737rm -f conftest*
16738fi
16739
16740if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16741 echo "$ac_t""yes" 1>&6
16742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16743 cat >> confdefs.h <<EOF
16744#define $ac_tr_func 1
16745EOF
d74f4b5a 16746 WCSLEN_FOUND=1
a0b9e27f
MB
16747else
16748 echo "$ac_t""no" 1>&6
7a30264c
VZ
16749fi
16750done
9d8deca0 16751
8284b0c5 16752
d74f4b5a 16753 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16754 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16755 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
dfa2a1d9 16756echo "configure:16757: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16757ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16758if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16759 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16760else
a0b9e27f 16761 ac_save_LIBS="$LIBS"
7a30264c 16762LIBS="-lmsvcrt $LIBS"
a0b9e27f 16763cat > conftest.$ac_ext <<EOF
dfa2a1d9 16764#line 16765 "configure"
10f2d63a 16765#include "confdefs.h"
4f14bcd8
GD
16766/* Override any gcc2 internal prototype to avoid an error. */
16767/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16768 builtin and then its argument prototype would still apply. */
16769char wcslen();
16770
16771int main() {
16772wcslen()
16773; return 0; }
16774EOF
dfa2a1d9 16775if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16776 rm -rf conftest*
16777 eval "ac_cv_lib_$ac_lib_var=yes"
16778else
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 rm -rf conftest*
16782 eval "ac_cv_lib_$ac_lib_var=no"
16783fi
16784rm -f conftest*
16785LIBS="$ac_save_LIBS"
16786
16787fi
16788if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16789 echo "$ac_t""yes" 1>&6
d74f4b5a 16790 WCHAR_OK=1
a0b9e27f
MB
16791else
16792 echo "$ac_t""no" 1>&6
d29b553b 16793fi
698dcdb6 16794
7a30264c 16795 else
a0b9e27f 16796 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
dfa2a1d9 16797echo "configure:16798: checking for wcslen in -lw" >&5
a0b9e27f
MB
16798ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16800 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16801else
a0b9e27f 16802 ac_save_LIBS="$LIBS"
7a30264c 16803LIBS="-lw $LIBS"
a0b9e27f 16804cat > conftest.$ac_ext <<EOF
dfa2a1d9 16805#line 16806 "configure"
95c8801c 16806#include "confdefs.h"
4f14bcd8
GD
16807/* Override any gcc2 internal prototype to avoid an error. */
16808/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16809 builtin and then its argument prototype would still apply. */
16810char wcslen();
52127426 16811
a0b9e27f
MB
16812int main() {
16813wcslen()
16814; return 0; }
16815EOF
dfa2a1d9 16816if { (eval echo configure:16817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=yes"
16819else
16820 echo "configure: failed program was:" >&5
16821 cat conftest.$ac_ext >&5
16822 rm -rf conftest*
16823 eval "ac_cv_lib_$ac_lib_var=no"
16824fi
16825rm -f conftest*
16826LIBS="$ac_save_LIBS"
16827
16828fi
16829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16830 echo "$ac_t""yes" 1>&6
16831
7a30264c 16832 WCHAR_LINK=" -lw"
d74f4b5a 16833 WCSLEN_FOUND=1
a0b9e27f
MB
16834
16835else
16836 echo "$ac_t""no" 1>&6
4f14bcd8 16837fi
10f2d63a 16838
7a30264c 16839 fi
d29b553b 16840 fi
95c8801c 16841
d74f4b5a 16842 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16843 cat >> confdefs.h <<\EOF
d74f4b5a 16844#define HAVE_WCSLEN 1
a0b9e27f 16845EOF
10f2d63a 16846
d74f4b5a 16847 fi
52127426 16848
a0b9e27f 16849 for ac_func in wcsrtombs
eb4efbdc 16850do
a0b9e27f 16851echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 16852echo "configure:16853: checking for $ac_func" >&5
a0b9e27f
MB
16853if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16854 echo $ac_n "(cached) $ac_c" 1>&6
16855else
16856 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16857#line 16858 "configure"
eb4efbdc
VZ
16858#include "confdefs.h"
16859/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16860 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16861#include <assert.h>
16862/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16863/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16864 builtin and then its argument prototype would still apply. */
16865char $ac_func();
16866
16867int main() {
16868
10f2d63a
VZ
16869/* The GNU C library defines this for functions which it implements
16870 to always fail with ENOSYS. Some functions are actually named
16871 something starting with __ and the normal name is an alias. */
247f5006 16872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16873choke me
16874#else
a0b9e27f 16875$ac_func();
10f2d63a
VZ
16876#endif
16877
a0b9e27f
MB
16878; return 0; }
16879EOF
dfa2a1d9 16880if { (eval echo configure:16881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16881 rm -rf conftest*
16882 eval "ac_cv_func_$ac_func=yes"
16883else
16884 echo "configure: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 rm -rf conftest*
16887 eval "ac_cv_func_$ac_func=no"
16888fi
16889rm -f conftest*
16890fi
270a909e 16891
a0b9e27f
MB
16892if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16893 echo "$ac_t""yes" 1>&6
16894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16895 cat >> confdefs.h <<EOF
16896#define $ac_tr_func 1
16897EOF
16898
16899else
16900 echo "$ac_t""no" 1>&6
4f14bcd8 16901fi
247f5006 16902done
1e487827 16903
af15babd 16904else
a0b9e27f 16905 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16906fi
52127426 16907
8284b0c5 16908
a0b9e27f
MB
16909ac_ext=C
16910# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16911ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16912ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16913ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16914cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16915
247f5006
VZ
16916
16917for ac_func in vsnprintf
16918do
a0b9e27f 16919echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 16920echo "configure:16921: checking for $ac_func" >&5
a0b9e27f
MB
16921if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923else
16924 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16925#line 16926 "configure"
af15babd 16926#include "confdefs.h"
247f5006 16927/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16928 which can conflict with char $ac_func(); below. */
247f5006
VZ
16929#include <assert.h>
16930/* Override any gcc2 internal prototype to avoid an error. */
16931#ifdef __cplusplus
16932extern "C"
16933#endif
16934/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16935 builtin and then its argument prototype would still apply. */
16936char $ac_func();
16937
16938int main() {
16939
247f5006
VZ
16940/* The GNU C library defines this for functions which it implements
16941 to always fail with ENOSYS. Some functions are actually named
16942 something starting with __ and the normal name is an alias. */
16943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16944choke me
16945#else
a0b9e27f 16946$ac_func();
247f5006 16947#endif
af15babd 16948
a0b9e27f
MB
16949; return 0; }
16950EOF
dfa2a1d9 16951if { (eval echo configure:16952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16952 rm -rf conftest*
16953 eval "ac_cv_func_$ac_func=yes"
16954else
16955 echo "configure: failed program was:" >&5
16956 cat conftest.$ac_ext >&5
16957 rm -rf conftest*
16958 eval "ac_cv_func_$ac_func=no"
16959fi
16960rm -f conftest*
16961fi
52127426 16962
a0b9e27f
MB
16963if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16966 cat >> confdefs.h <<EOF
16967#define $ac_tr_func 1
16968EOF
16969
16970else
16971 echo "$ac_t""no" 1>&6
5c6fa7d2 16972fi
247f5006 16973done
8284b0c5 16974
4f14bcd8 16975
8d90d2f2
VZ
16976if test "$ac_cv_func_vsnprintf" = "yes"; then
16977 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
dfa2a1d9 16978echo "configure:16979: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
16979if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16981else
16982
16983 cat > conftest.$ac_ext <<EOF
dfa2a1d9 16984#line 16985 "configure"
8d90d2f2
VZ
16985#include "confdefs.h"
16986
16987 #include <stdio.h>
16988 #include <stdarg.h>
16989
16990int main() {
16991
16992 char *buf;
16993 va_list ap;
16994 vsnprintf(buf, 10u, "%s", ap);
16995
16996; return 0; }
16997EOF
dfa2a1d9 16998if { (eval echo configure:16999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
16999 rm -rf conftest*
17000 wx_cv_func_vsnprintf_decl=yes
17001else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 wx_cv_func_vsnprintf_decl=no
17006
17007fi
17008rm -f conftest*
17009
17010
17011fi
17012
17013echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17014
17015 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17016 cat >> confdefs.h <<\EOF
17017#define HAVE_VSNPRINTF_DECL 1
17018EOF
17019
17020 fi
17021fi
17022
247f5006 17023if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17024 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17025do
a0b9e27f 17026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17027echo "configure:17028: checking for $ac_func" >&5
a0b9e27f
MB
17028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030else
17031 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17032#line 17033 "configure"
d74f4b5a
VZ
17033#include "confdefs.h"
17034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17035 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17036#include <assert.h>
17037/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17038#ifdef __cplusplus
17039extern "C"
17040#endif
d74f4b5a 17041/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17042 builtin and then its argument prototype would still apply. */
17043char $ac_func();
17044
17045int main() {
17046
d74f4b5a
VZ
17047/* The GNU C library defines this for functions which it implements
17048 to always fail with ENOSYS. Some functions are actually named
17049 something starting with __ and the normal name is an alias. */
17050#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17051choke me
17052#else
a0b9e27f 17053$ac_func();
d74f4b5a
VZ
17054#endif
17055
a0b9e27f
MB
17056; return 0; }
17057EOF
dfa2a1d9 17058if { (eval echo configure:17059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17059 rm -rf conftest*
17060 eval "ac_cv_func_$ac_func=yes"
17061else
17062 echo "configure: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 rm -rf conftest*
17065 eval "ac_cv_func_$ac_func=no"
17066fi
17067rm -f conftest*
17068fi
d74f4b5a 17069
a0b9e27f
MB
17070if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17071 echo "$ac_t""yes" 1>&6
17072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17073 cat >> confdefs.h <<EOF
17074#define $ac_tr_func 1
17075EOF
17076
17077else
17078 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17079fi
17080done
17081
8d90d2f2 17082
79668cae 17083 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
dfa2a1d9 17084echo "configure:17085: checking for _vsnwprintf" >&5
79668cae 17085 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17086#line 17087 "configure"
79668cae
MB
17087#include "confdefs.h"
17088#include <wchar.h>
17089int main() {
17090&_vsnwprintf;
17091; return 0; }
17092EOF
dfa2a1d9 17093if { (eval echo configure:17094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17094 rm -rf conftest*
17095 echo "$ac_t""yes" 1>&6
17096 cat >> confdefs.h <<\EOF
17097#define HAVE__VSNWPRINTF 1
17098EOF
17099
17100else
17101 echo "configure: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17103 rm -rf conftest*
17104 echo "$ac_t""no" 1>&6
17105fi
17106rm -f conftest*;
d74f4b5a
VZ
17107fi
17108
247f5006 17109ac_ext=c
a0b9e27f 17110# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17111ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17112ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17113ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17114cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17115
17116
17117
17118
4f14bcd8 17119if test "$TOOLKIT" != "MSW"; then
af15babd 17120
8284b0c5
MB
17121
17122
a0b9e27f
MB
17123ac_ext=C
17124# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17125ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17126ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17127ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17128cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17129
52127426 17130
a0b9e27f
MB
17131
17132 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17133if test "${with_libiconv_prefix+set}" = set; then
17134 withval="$with_libiconv_prefix"
a0b9e27f 17135
b040e242
VS
17136 for dir in `echo "$withval" | tr : ' '`; do
17137 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17138 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17139 done
a0b9e27f
MB
17140
17141fi
b040e242
VS
17142
17143
a0b9e27f 17144 echo $ac_n "checking for iconv""... $ac_c" 1>&6
dfa2a1d9 17145echo "configure:17146: checking for iconv" >&5
a0b9e27f
MB
17146if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17147 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17148else
a0b9e27f 17149
b040e242
VS
17150 am_cv_func_iconv="no, consider installing GNU libiconv"
17151 am_cv_lib_iconv=no
a0b9e27f 17152 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17153#line 17154 "configure"
af15babd 17154#include "confdefs.h"
b040e242 17155#include <stdlib.h>
4f14bcd8 17156#include <iconv.h>
a0b9e27f 17157int main() {
b040e242
VS
17158iconv_t cd = iconv_open("","");
17159 iconv(cd,NULL,NULL,NULL,NULL);
17160 iconv_close(cd);
a0b9e27f
MB
17161; return 0; }
17162EOF
dfa2a1d9 17163if { (eval echo configure:17164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17164 rm -rf conftest*
b040e242 17165 am_cv_func_iconv=yes
af15babd 17166else
a0b9e27f
MB
17167 echo "configure: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
b040e242 17169fi
a0b9e27f 17170rm -f conftest*
b040e242
VS
17171 if test "$am_cv_func_iconv" != yes; then
17172 am_save_LIBS="$LIBS"
17173 LIBS="$LIBS -liconv"
a0b9e27f 17174 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17175#line 17176 "configure"
b040e242
VS
17176#include "confdefs.h"
17177#include <stdlib.h>
17178#include <iconv.h>
a0b9e27f 17179int main() {
b040e242
VS
17180iconv_t cd = iconv_open("","");
17181 iconv(cd,NULL,NULL,NULL,NULL);
17182 iconv_close(cd);
a0b9e27f
MB
17183; return 0; }
17184EOF
dfa2a1d9 17185if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17186 rm -rf conftest*
b040e242
VS
17187 am_cv_lib_iconv=yes
17188 am_cv_func_iconv=yes
17189else
a0b9e27f
MB
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
af15babd 17192fi
a0b9e27f 17193rm -f conftest*
b040e242
VS
17194 LIBS="$am_save_LIBS"
17195 fi
a0b9e27f 17196
247f5006 17197fi
247f5006 17198
a0b9e27f
MB
17199echo "$ac_t""$am_cv_func_iconv" 1>&6
17200 if test "$am_cv_func_iconv" = yes; then
17201 cat >> confdefs.h <<\EOF
b040e242 17202#define HAVE_ICONV 1
a0b9e27f 17203EOF
b040e242 17204
a0b9e27f 17205 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
dfa2a1d9 17206echo "configure:17207: checking if iconv needs const" >&5
a0b9e27f
MB
17207if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17209else
a0b9e27f 17210 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17211#line 17212 "configure"
b040e242
VS
17212#include "confdefs.h"
17213
17214#include <stdlib.h>
17215#include <iconv.h>
17216extern
17217#ifdef __cplusplus
17218"C"
17219#endif
17220#if defined(__STDC__) || defined(__cplusplus)
17221size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17222#else
17223size_t iconv();
17224#endif
a0b9e27f
MB
17225
17226int main() {
af15babd 17227
a0b9e27f
MB
17228; return 0; }
17229EOF
dfa2a1d9 17230if { (eval echo configure:17231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17231 rm -rf conftest*
b7043674 17232 wx_cv_func_iconv_const="no"
b040e242 17233else
a0b9e27f
MB
17234 echo "configure: failed program was:" >&5
17235 cat conftest.$ac_ext >&5
17236 rm -rf conftest*
17237 wx_cv_func_iconv_const="yes"
17238
5c6fa7d2 17239fi
a0b9e27f
MB
17240rm -f conftest*
17241
247f5006 17242fi
a0b9e27f
MB
17243
17244echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17245
17246 iconv_const=
1c405bb5 17247 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17248 iconv_const="const"
17249 fi
17250
a0b9e27f 17251 cat >> confdefs.h <<EOF
f09359cf 17252#define ICONV_CONST $iconv_const
a0b9e27f 17253EOF
b040e242
VS
17254
17255 fi
17256 LIBICONV=
17257 if test "$am_cv_lib_iconv" = yes; then
17258 LIBICONV="-liconv"
17259 fi
a0b9e27f 17260
b040e242
VS
17261
17262LIBS="$LIBICONV $LIBS"
4f14bcd8 17263ac_ext=c
a0b9e27f 17264# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17265ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17266ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17267ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17268cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17269
5c6fa7d2 17270
8284b0c5 17271if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17272 for ac_func in sigaction
af15babd 17273do
a0b9e27f 17274echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17275echo "configure:17276: checking for $ac_func" >&5
a0b9e27f
MB
17276if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278else
17279 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17280#line 17281 "configure"
af15babd
VZ
17281#include "confdefs.h"
17282/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17283 which can conflict with char $ac_func(); below. */
af15babd
VZ
17284#include <assert.h>
17285/* Override any gcc2 internal prototype to avoid an error. */
17286/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17287 builtin and then its argument prototype would still apply. */
17288char $ac_func();
17289
17290int main() {
17291
af15babd
VZ
17292/* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17296choke me
17297#else
a0b9e27f 17298$ac_func();
af15babd
VZ
17299#endif
17300
a0b9e27f
MB
17301; return 0; }
17302EOF
dfa2a1d9 17303if { (eval echo configure:17304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17304 rm -rf conftest*
17305 eval "ac_cv_func_$ac_func=yes"
17306else
17307 echo "configure: failed program was:" >&5
17308 cat conftest.$ac_ext >&5
17309 rm -rf conftest*
17310 eval "ac_cv_func_$ac_func=no"
17311fi
17312rm -f conftest*
17313fi
7b4a847f 17314
a0b9e27f
MB
17315if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17316 echo "$ac_t""yes" 1>&6
17317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17318 cat >> confdefs.h <<EOF
17319#define $ac_tr_func 1
17320EOF
17321
17322else
17323 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17324fi
17325done
17326
8284b0c5 17327
4f14bcd8 17328 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17329 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17330 wxUSE_ON_FATAL_EXCEPTION=no
17331 fi
17332
17333 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17334
17335 ac_ext=C
17336# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17337ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17338ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17339ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17340cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17341
5c6fa7d2 17342
a0b9e27f 17343 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
dfa2a1d9 17344echo "configure:17345: checking for sa_handler type" >&5
a0b9e27f
MB
17345if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17346 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17347else
a0b9e27f
MB
17348
17349 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17350#line 17351 "configure"
af15babd 17351#include "confdefs.h"
4f14bcd8 17352#include <signal.h>
a0b9e27f 17353int main() {
4f14bcd8
GD
17354
17355 extern void testSigHandler(int);
17356
17357 struct sigaction sa;
17358 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17359
17360; return 0; }
17361EOF
dfa2a1d9 17362if { (eval echo configure:17363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17363 rm -rf conftest*
17364
4f14bcd8 17365 wx_cv_type_sa_handler=int
a0b9e27f 17366
af15babd 17367else
a0b9e27f
MB
17368 echo "configure: failed program was:" >&5
17369 cat conftest.$ac_ext >&5
17370 rm -rf conftest*
17371
4f14bcd8 17372 wx_cv_type_sa_handler=void
a0b9e27f 17373
5c6fa7d2 17374fi
a0b9e27f
MB
17375rm -f conftest*
17376
247f5006 17377fi
a0b9e27f
MB
17378
17379echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17380
17381 ac_ext=c
a0b9e27f 17382# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17383ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17384ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17385ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17386cross_compiling=$ac_cv_prog_cc_cross
579d8138 17387
8284b0c5 17388
a0b9e27f 17389 cat >> confdefs.h <<EOF
4f14bcd8 17390#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17391EOF
af15babd 17392
4f14bcd8
GD
17393 fi
17394fi
af15babd 17395
a1d22ad7 17396for ac_func in mkstemp mktemp
af15babd 17397do
a0b9e27f 17398echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17399echo "configure:17400: checking for $ac_func" >&5
a0b9e27f
MB
17400if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17401 echo $ac_n "(cached) $ac_c" 1>&6
17402else
17403 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17404#line 17405 "configure"
af15babd
VZ
17405#include "confdefs.h"
17406/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17407 which can conflict with char $ac_func(); below. */
af15babd
VZ
17408#include <assert.h>
17409/* Override any gcc2 internal prototype to avoid an error. */
17410/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17411 builtin and then its argument prototype would still apply. */
17412char $ac_func();
17413
17414int main() {
17415
af15babd
VZ
17416/* The GNU C library defines this for functions which it implements
17417 to always fail with ENOSYS. Some functions are actually named
17418 something starting with __ and the normal name is an alias. */
17419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17420choke me
17421#else
a0b9e27f 17422$ac_func();
af15babd
VZ
17423#endif
17424
a0b9e27f
MB
17425; return 0; }
17426EOF
dfa2a1d9 17427if { (eval echo configure:17428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17428 rm -rf conftest*
17429 eval "ac_cv_func_$ac_func=yes"
17430else
17431 echo "configure: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 rm -rf conftest*
17434 eval "ac_cv_func_$ac_func=no"
17435fi
17436rm -f conftest*
17437fi
af15babd 17438
a0b9e27f
MB
17439if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17440 echo "$ac_t""yes" 1>&6
17441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17442 cat >> confdefs.h <<EOF
17443#define $ac_tr_func 1
17444EOF
ade35f11 17445 break
a0b9e27f
MB
17446else
17447 echo "$ac_t""no" 1>&6
ade35f11
VZ
17448fi
17449done
17450
8284b0c5 17451
a0b9e27f 17452echo $ac_n "checking for statfs""... $ac_c" 1>&6
dfa2a1d9 17453echo "configure:17454: checking for statfs" >&5
a0b9e27f
MB
17454if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17455 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17456else
a0b9e27f 17457 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17458#line 17459 "configure"
4f14bcd8
GD
17459#include "confdefs.h"
17460
17461 #if defined(__BSD__)
17462 #include <sys/param.h>
17463 #include <sys/mount.h>
17464 #else
17465 #include <sys/vfs.h>
17466 #endif
a0b9e27f
MB
17467
17468int main() {
4f14bcd8
GD
17469
17470 long l;
17471 struct statfs fs;
17472 statfs("/", &fs);
17473 l = fs.f_bsize;
17474 l += fs.f_blocks;
17475 l += fs.f_bavail;
a0b9e27f
MB
17476
17477; return 0; }
17478EOF
dfa2a1d9 17479if { (eval echo configure:17480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17480 rm -rf conftest*
17481
4f14bcd8 17482 wx_cv_func_statfs=yes
a0b9e27f 17483
4f14bcd8 17484else
a0b9e27f
MB
17485 echo "configure: failed program was:" >&5
17486 cat conftest.$ac_ext >&5
17487 rm -rf conftest*
17488
4f14bcd8 17489 wx_cv_func_statfs=no
a0b9e27f
MB
17490
17491
5c6fa7d2 17492fi
a0b9e27f 17493rm -f conftest*
8284b0c5 17494
247f5006 17495fi
a0b9e27f
MB
17496
17497echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17498
17499if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17500 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17501 cat >> confdefs.h <<\EOF
4f14bcd8 17502#define HAVE_STATFS 1
a0b9e27f 17503EOF
4f14bcd8
GD
17504
17505else
a0b9e27f 17506 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
dfa2a1d9 17507echo "configure:17508: checking for statvfs" >&5
a0b9e27f
MB
17508if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17510else
a0b9e27f 17511 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17512#line 17513 "configure"
af15babd 17513#include "confdefs.h"
af15babd 17514
54ab82b3
VZ
17515 #include <stddef.h>
17516 #include <sys/statvfs.h>
a0b9e27f
MB
17517
17518int main() {
af15babd 17519
54ab82b3 17520 statvfs("/", NULL);
a0b9e27f
MB
17521
17522; return 0; }
17523EOF
dfa2a1d9 17524if { (eval echo configure:17525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17525 rm -rf conftest*
54ab82b3 17526 wx_cv_func_statvfs=yes
af15babd 17527else
a0b9e27f
MB
17528 echo "configure: failed program was:" >&5
17529 cat conftest.$ac_ext >&5
17530 rm -rf conftest*
54ab82b3 17531 wx_cv_func_statvfs=no
a0b9e27f 17532
5c6fa7d2 17533fi
a0b9e27f
MB
17534rm -f conftest*
17535
247f5006 17536fi
a0b9e27f
MB
17537
17538echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17539
4f14bcd8 17540 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17541
17542 ac_ext=C
17543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17544ac_cpp='$CXXCPP $CPPFLAGS'
17545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17547cross_compiling=$ac_cv_prog_cxx_cross
17548
17549
17550 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
dfa2a1d9 17551echo "configure:17552: checking for statvfs argument type" >&5
54ab82b3
VZ
17552if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17553 echo $ac_n "(cached) $ac_c" 1>&6
17554else
17555 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17556#line 17557 "configure"
54ab82b3
VZ
17557#include "confdefs.h"
17558
17559 #include <sys/statvfs.h>
17560
17561int main() {
17562
17563 long l;
17564 statvfs_t fs;
17565 statvfs("/", &fs);
17566 l = fs.f_bsize;
17567 l += fs.f_blocks;
17568 l += fs.f_bavail;
17569
17570; return 0; }
17571EOF
dfa2a1d9 17572if { (eval echo configure:17573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17573 rm -rf conftest*
17574 wx_cv_type_statvfs_t=statvfs_t
17575else
17576 echo "configure: failed program was:" >&5
17577 cat conftest.$ac_ext >&5
17578 rm -rf conftest*
17579
17580 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17581#line 17582 "configure"
54ab82b3
VZ
17582#include "confdefs.h"
17583
17584 #include <sys/statvfs.h>
17585
17586int main() {
17587
17588 long l;
65d8ef1e 17589 struct statvfs fs;
54ab82b3
VZ
17590 statvfs("/", &fs);
17591 l = fs.f_bsize;
17592 l += fs.f_blocks;
17593 l += fs.f_bavail;
17594
17595; return 0; }
17596EOF
dfa2a1d9 17597if { (eval echo configure:17598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17598 rm -rf conftest*
17599 wx_cv_type_statvfs_t="struct statvfs"
17600else
17601 echo "configure: failed program was:" >&5
17602 cat conftest.$ac_ext >&5
17603 rm -rf conftest*
17604 wx_cv_type_statvfs_t="unknown"
17605
17606fi
17607rm -f conftest*
17608
17609
17610fi
17611rm -f conftest*
17612
17613fi
17614
17615echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17616
17617 ac_ext=c
17618# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17619ac_cpp='$CPP $CPPFLAGS'
17620ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17621ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17622cross_compiling=$ac_cv_prog_cc_cross
17623
17624
17625 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17626 cat >> confdefs.h <<\EOF
4f14bcd8 17627#define HAVE_STATVFS 1
a0b9e27f 17628EOF
af15babd 17629
54ab82b3 17630 fi
4f14bcd8 17631 else
54ab82b3 17632 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17633 fi
17634fi
af15babd 17635
54ab82b3
VZ
17636if test "$wx_cv_type_statvfs_t" != "unknown"; then
17637 cat >> confdefs.h <<EOF
17638#define WX_STATFS_T $wx_cv_type_statvfs_t
17639EOF
17640
17641else
17642 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17643fi
17644
4f14bcd8 17645if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17646 for ac_func in fcntl flock
af15babd 17647do
a0b9e27f 17648echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17649echo "configure:17650: checking for $ac_func" >&5
a0b9e27f
MB
17650if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17651 echo $ac_n "(cached) $ac_c" 1>&6
17652else
17653 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17654#line 17655 "configure"
af15babd
VZ
17655#include "confdefs.h"
17656/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17657 which can conflict with char $ac_func(); below. */
af15babd
VZ
17658#include <assert.h>
17659/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17660/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17661 builtin and then its argument prototype would still apply. */
17662char $ac_func();
17663
17664int main() {
17665
af15babd
VZ
17666/* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17670choke me
17671#else
a0b9e27f 17672$ac_func();
af15babd
VZ
17673#endif
17674
a0b9e27f
MB
17675; return 0; }
17676EOF
dfa2a1d9 17677if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17678 rm -rf conftest*
17679 eval "ac_cv_func_$ac_func=yes"
17680else
17681 echo "configure: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=no"
17685fi
17686rm -f conftest*
17687fi
17688
17689if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17690 echo "$ac_t""yes" 1>&6
17691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17692 cat >> confdefs.h <<EOF
17693#define $ac_tr_func 1
17694EOF
4f14bcd8 17695 break
a0b9e27f
MB
17696else
17697 echo "$ac_t""no" 1>&6
af15babd
VZ
17698fi
17699done
17700
8284b0c5 17701
4f14bcd8 17702 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17703 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17704 wxUSE_SNGLINST_CHECKER=no
17705 fi
17706fi
af15babd 17707
4f14bcd8 17708for ac_func in timegm
af15babd 17709do
a0b9e27f 17710echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17711echo "configure:17712: checking for $ac_func" >&5
a0b9e27f
MB
17712if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17713 echo $ac_n "(cached) $ac_c" 1>&6
17714else
17715 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17716#line 17717 "configure"
af15babd
VZ
17717#include "confdefs.h"
17718/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17719 which can conflict with char $ac_func(); below. */
af15babd
VZ
17720#include <assert.h>
17721/* Override any gcc2 internal prototype to avoid an error. */
17722/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17723 builtin and then its argument prototype would still apply. */
17724char $ac_func();
17725
17726int main() {
17727
af15babd
VZ
17728/* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
247f5006
VZ
17731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17732choke me
17733#else
a0b9e27f 17734$ac_func();
247f5006
VZ
17735#endif
17736
a0b9e27f
MB
17737; return 0; }
17738EOF
dfa2a1d9 17739if { (eval echo configure:17740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17740 rm -rf conftest*
17741 eval "ac_cv_func_$ac_func=yes"
17742else
17743 echo "configure: failed program was:" >&5
17744 cat conftest.$ac_ext >&5
17745 rm -rf conftest*
17746 eval "ac_cv_func_$ac_func=no"
17747fi
17748rm -f conftest*
17749fi
703e0a69 17750
a0b9e27f
MB
17751if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17752 echo "$ac_t""yes" 1>&6
17753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17754 cat >> confdefs.h <<EOF
17755#define $ac_tr_func 1
17756EOF
17757
17758else
17759 echo "$ac_t""no" 1>&6
af15babd
VZ
17760fi
17761done
17762
8284b0c5 17763
4f14bcd8 17764for ac_func in putenv setenv
10f2d63a 17765do
a0b9e27f 17766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17767echo "configure:17768: checking for $ac_func" >&5
a0b9e27f
MB
17768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17769 echo $ac_n "(cached) $ac_c" 1>&6
17770else
17771 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17772#line 17773 "configure"
af15babd
VZ
17773#include "confdefs.h"
17774/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17775 which can conflict with char $ac_func(); below. */
af15babd
VZ
17776#include <assert.h>
17777/* Override any gcc2 internal prototype to avoid an error. */
17778/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17779 builtin and then its argument prototype would still apply. */
17780char $ac_func();
17781
17782int main() {
17783
af15babd
VZ
17784/* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17788choke me
17789#else
a0b9e27f 17790$ac_func();
af15babd
VZ
17791#endif
17792
a0b9e27f
MB
17793; return 0; }
17794EOF
dfa2a1d9 17795if { (eval echo configure:17796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17796 rm -rf conftest*
17797 eval "ac_cv_func_$ac_func=yes"
17798else
17799 echo "configure: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 rm -rf conftest*
17802 eval "ac_cv_func_$ac_func=no"
17803fi
17804rm -f conftest*
17805fi
17806
17807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17808 echo "$ac_t""yes" 1>&6
17809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17810 cat >> confdefs.h <<EOF
17811#define $ac_tr_func 1
17812EOF
4f14bcd8 17813 break
a0b9e27f
MB
17814else
17815 echo "$ac_t""no" 1>&6
af15babd 17816fi
af15babd
VZ
17817done
17818
8284b0c5 17819
4f14bcd8
GD
17820HAVE_SOME_SLEEP_FUNC=0
17821if test "$USE_BEOS" = 1; then
a0b9e27f 17822 cat >> confdefs.h <<\EOF
4f14bcd8 17823#define HAVE_SLEEP 1
a0b9e27f 17824EOF
af15babd 17825
4f14bcd8 17826 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17827fi
17828
4f14bcd8 17829if test "$USE_DARWIN" = 1; then
a0b9e27f 17830 cat >> confdefs.h <<\EOF
4f14bcd8 17831#define HAVE_USLEEP 1
a0b9e27f 17832EOF
10f2d63a 17833
4f14bcd8 17834 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17835fi
17836
4f14bcd8
GD
17837if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17838 POSIX4_LINK=
a0b9e27f 17839 for ac_func in nanosleep
4f14bcd8 17840do
a0b9e27f 17841echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17842echo "configure:17843: checking for $ac_func" >&5
a0b9e27f
MB
17843if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17844 echo $ac_n "(cached) $ac_c" 1>&6
17845else
17846 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17847#line 17848 "configure"
10f2d63a 17848#include "confdefs.h"
4f14bcd8 17849/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17850 which can conflict with char $ac_func(); below. */
4f14bcd8 17851#include <assert.h>
10f2d63a
VZ
17852/* Override any gcc2 internal prototype to avoid an error. */
17853/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17854 builtin and then its argument prototype would still apply. */
17855char $ac_func();
17856
17857int main() {
17858
4f14bcd8
GD
17859/* The GNU C library defines this for functions which it implements
17860 to always fail with ENOSYS. Some functions are actually named
17861 something starting with __ and the normal name is an alias. */
17862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17863choke me
17864#else
a0b9e27f 17865$ac_func();
4f14bcd8
GD
17866#endif
17867
a0b9e27f
MB
17868; return 0; }
17869EOF
dfa2a1d9 17870if { (eval echo configure:17871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17871 rm -rf conftest*
17872 eval "ac_cv_func_$ac_func=yes"
17873else
17874 echo "configure: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17876 rm -rf conftest*
17877 eval "ac_cv_func_$ac_func=no"
17878fi
17879rm -f conftest*
17880fi
17881
17882if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17883 echo "$ac_t""yes" 1>&6
17884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17885 cat >> confdefs.h <<EOF
17886#define $ac_tr_func 1
17887EOF
17888 cat >> confdefs.h <<\EOF
4f14bcd8 17889#define HAVE_NANOSLEEP 1
a0b9e27f 17890EOF
4f14bcd8 17891
10f2d63a 17892else
a0b9e27f
MB
17893 echo "$ac_t""no" 1>&6
17894echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
dfa2a1d9 17895echo "configure:17896: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
17896ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17897if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17898 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17899else
a0b9e27f 17900 ac_save_LIBS="$LIBS"
4f14bcd8 17901LIBS="-lposix4 $LIBS"
a0b9e27f 17902cat > conftest.$ac_ext <<EOF
dfa2a1d9 17903#line 17904 "configure"
10f2d63a
VZ
17904#include "confdefs.h"
17905/* Override any gcc2 internal prototype to avoid an error. */
17906/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17907 builtin and then its argument prototype would still apply. */
17908char nanosleep();
17909
17910int main() {
17911nanosleep()
17912; return 0; }
17913EOF
dfa2a1d9 17914if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17915 rm -rf conftest*
17916 eval "ac_cv_lib_$ac_lib_var=yes"
17917else
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17920 rm -rf conftest*
17921 eval "ac_cv_lib_$ac_lib_var=no"
17922fi
17923rm -f conftest*
17924LIBS="$ac_save_LIBS"
17925
17926fi
17927if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17928 echo "$ac_t""yes" 1>&6
17929
17930 cat >> confdefs.h <<\EOF
4f14bcd8 17931#define HAVE_NANOSLEEP 1
a0b9e27f 17932EOF
4f14bcd8 17933
3d63bc3a 17934 POSIX4_LINK=" -lposix4"
a0b9e27f 17935
10f2d63a 17936else
a0b9e27f 17937 echo "$ac_t""no" 1>&6
10f2d63a 17938
a0b9e27f 17939 for ac_func in usleep
4f14bcd8 17940do
a0b9e27f 17941echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 17942echo "configure:17943: checking for $ac_func" >&5
a0b9e27f
MB
17943if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17945else
17946 cat > conftest.$ac_ext <<EOF
dfa2a1d9 17947#line 17948 "configure"
10f2d63a 17948#include "confdefs.h"
4f14bcd8 17949/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17950 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17951#include <assert.h>
17952/* Override any gcc2 internal prototype to avoid an error. */
17953/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17954 builtin and then its argument prototype would still apply. */
17955char $ac_func();
17956
17957int main() {
17958
4f14bcd8
GD
17959/* The GNU C library defines this for functions which it implements
17960 to always fail with ENOSYS. Some functions are actually named
17961 something starting with __ and the normal name is an alias. */
17962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963choke me
17964#else
a0b9e27f 17965$ac_func();
4f14bcd8
GD
17966#endif
17967
a0b9e27f
MB
17968; return 0; }
17969EOF
dfa2a1d9 17970if { (eval echo configure:17971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17971 rm -rf conftest*
17972 eval "ac_cv_func_$ac_func=yes"
17973else
17974 echo "configure: failed program was:" >&5
17975 cat conftest.$ac_ext >&5
17976 rm -rf conftest*
17977 eval "ac_cv_func_$ac_func=no"
17978fi
17979rm -f conftest*
17980fi
17981
17982if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17983 echo "$ac_t""yes" 1>&6
17984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17985 cat >> confdefs.h <<EOF
17986#define $ac_tr_func 1
17987EOF
17988 cat >> confdefs.h <<\EOF
4f14bcd8 17989#define HAVE_USLEEP 1
a0b9e27f 17990EOF
4f14bcd8 17991
698dcdb6 17992else
a0b9e27f
MB
17993 echo "$ac_t""no" 1>&6
17994echo "configure: warning: wxSleep() function will not work" 1>&2
17995
10f2d63a 17996fi
4f14bcd8 17997done
10f2d63a 17998
a0b9e27f
MB
17999
18000
6232543b 18001fi
10f2d63a 18002
a0b9e27f
MB
18003
18004
1e487827 18005fi
4f14bcd8 18006done
703e0a69 18007
10f2d63a
VZ
18008fi
18009
4f14bcd8 18010for ac_func in uname gethostname
70846f0a 18011do
a0b9e27f 18012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 18013echo "configure:18014: checking for $ac_func" >&5
a0b9e27f
MB
18014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18015 echo $ac_n "(cached) $ac_c" 1>&6
18016else
18017 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18018#line 18019 "configure"
70846f0a
VZ
18019#include "confdefs.h"
18020/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18021 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18022#include <assert.h>
18023/* Override any gcc2 internal prototype to avoid an error. */
18024/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18025 builtin and then its argument prototype would still apply. */
18026char $ac_func();
18027
18028int main() {
18029
70846f0a
VZ
18030/* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18034choke me
18035#else
a0b9e27f 18036$ac_func();
70846f0a
VZ
18037#endif
18038
a0b9e27f
MB
18039; return 0; }
18040EOF
dfa2a1d9 18041if { (eval echo configure:18042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18042 rm -rf conftest*
18043 eval "ac_cv_func_$ac_func=yes"
18044else
18045 echo "configure: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18047 rm -rf conftest*
18048 eval "ac_cv_func_$ac_func=no"
18049fi
18050rm -f conftest*
18051fi
18052
18053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18054 echo "$ac_t""yes" 1>&6
18055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18056 cat >> confdefs.h <<EOF
18057#define $ac_tr_func 1
18058EOF
4f14bcd8 18059 break
a0b9e27f
MB
18060else
18061 echo "$ac_t""no" 1>&6
70846f0a
VZ
18062fi
18063done
18064
8284b0c5
MB
18065
18066
a0b9e27f
MB
18067ac_ext=C
18068# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18069ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18070ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18071ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18072cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18073
4f14bcd8
GD
18074
18075for ac_func in strtok_r
10f2d63a 18076do
a0b9e27f 18077echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 18078echo "configure:18079: checking for $ac_func" >&5
a0b9e27f
MB
18079if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18080 echo $ac_n "(cached) $ac_c" 1>&6
18081else
18082 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18083#line 18084 "configure"
10f2d63a 18084#include "confdefs.h"
4f14bcd8 18085/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18086 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18087#include <assert.h>
18088/* Override any gcc2 internal prototype to avoid an error. */
18089#ifdef __cplusplus
18090extern "C"
18091#endif
18092/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18093 builtin and then its argument prototype would still apply. */
18094char $ac_func();
18095
18096int main() {
18097
4f14bcd8
GD
18098/* The GNU C library defines this for functions which it implements
18099 to always fail with ENOSYS. Some functions are actually named
18100 something starting with __ and the normal name is an alias. */
18101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18102choke me
18103#else
a0b9e27f 18104$ac_func();
4f14bcd8
GD
18105#endif
18106
a0b9e27f
MB
18107; return 0; }
18108EOF
dfa2a1d9 18109if { (eval echo configure:18110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18110 rm -rf conftest*
18111 eval "ac_cv_func_$ac_func=yes"
18112else
18113 echo "configure: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18115 rm -rf conftest*
18116 eval "ac_cv_func_$ac_func=no"
18117fi
18118rm -f conftest*
18119fi
4f14bcd8 18120
a0b9e27f
MB
18121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18122 echo "$ac_t""yes" 1>&6
18123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18124 cat >> confdefs.h <<EOF
18125#define $ac_tr_func 1
18126EOF
18127
18128else
18129 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18130fi
18131done
18132
8284b0c5 18133
4f14bcd8 18134ac_ext=c
a0b9e27f 18135# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18136ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18137ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18138ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18139cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18140
5c6fa7d2 18141
8284b0c5 18142INET_LINK=
4f14bcd8
GD
18143for ac_func in inet_addr
18144do
a0b9e27f 18145echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 18146echo "configure:18147: checking for $ac_func" >&5
a0b9e27f
MB
18147if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18148 echo $ac_n "(cached) $ac_c" 1>&6
18149else
18150 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18151#line 18152 "configure"
10f2d63a 18152#include "confdefs.h"
4f14bcd8 18153/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18154 which can conflict with char $ac_func(); below. */
4f14bcd8 18155#include <assert.h>
10f2d63a
VZ
18156/* Override any gcc2 internal prototype to avoid an error. */
18157/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18158 builtin and then its argument prototype would still apply. */
18159char $ac_func();
18160
18161int main() {
18162
4f14bcd8
GD
18163/* The GNU C library defines this for functions which it implements
18164 to always fail with ENOSYS. Some functions are actually named
18165 something starting with __ and the normal name is an alias. */
18166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18167choke me
18168#else
a0b9e27f 18169$ac_func();
4f14bcd8
GD
18170#endif
18171
a0b9e27f
MB
18172; return 0; }
18173EOF
dfa2a1d9 18174if { (eval echo configure:18175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18175 rm -rf conftest*
18176 eval "ac_cv_func_$ac_func=yes"
18177else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181 eval "ac_cv_func_$ac_func=no"
18182fi
18183rm -f conftest*
18184fi
18185
18186if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18187 echo "$ac_t""yes" 1>&6
18188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18189 cat >> confdefs.h <<EOF
18190#define $ac_tr_func 1
18191EOF
18192 cat >> confdefs.h <<\EOF
4f14bcd8 18193#define HAVE_INET_ADDR 1
a0b9e27f 18194EOF
10f2d63a
VZ
18195
18196else
a0b9e27f
MB
18197 echo "$ac_t""no" 1>&6
18198echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
dfa2a1d9 18199echo "configure:18200: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18200ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18202 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18203else
a0b9e27f 18204 ac_save_LIBS="$LIBS"
4f14bcd8 18205LIBS="-lnsl $LIBS"
a0b9e27f 18206cat > conftest.$ac_ext <<EOF
dfa2a1d9 18207#line 18208 "configure"
10f2d63a
VZ
18208#include "confdefs.h"
18209/* Override any gcc2 internal prototype to avoid an error. */
18210/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18211 builtin and then its argument prototype would still apply. */
18212char inet_addr();
18213
18214int main() {
18215inet_addr()
18216; return 0; }
18217EOF
dfa2a1d9 18218if { (eval echo configure:18219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18219 rm -rf conftest*
18220 eval "ac_cv_lib_$ac_lib_var=yes"
18221else
18222 echo "configure: failed program was:" >&5
18223 cat conftest.$ac_ext >&5
18224 rm -rf conftest*
18225 eval "ac_cv_lib_$ac_lib_var=no"
18226fi
18227rm -f conftest*
18228LIBS="$ac_save_LIBS"
18229
18230fi
18231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18232 echo "$ac_t""yes" 1>&6
4f14bcd8 18233 INET_LINK="nsl"
10f2d63a 18234else
a0b9e27f
MB
18235 echo "$ac_t""no" 1>&6
18236echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
dfa2a1d9 18237echo "configure:18238: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18238ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18241else
a0b9e27f 18242 ac_save_LIBS="$LIBS"
4f14bcd8 18243LIBS="-lresolv $LIBS"
a0b9e27f 18244cat > conftest.$ac_ext <<EOF
dfa2a1d9 18245#line 18246 "configure"
7b4a847f 18246#include "confdefs.h"
5c6fa7d2 18247/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18248/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18249 builtin and then its argument prototype would still apply. */
18250char inet_addr();
18251
18252int main() {
18253inet_addr()
18254; return 0; }
18255EOF
dfa2a1d9 18256if { (eval echo configure:18257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18257 rm -rf conftest*
18258 eval "ac_cv_lib_$ac_lib_var=yes"
18259else
18260 echo "configure: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18262 rm -rf conftest*
18263 eval "ac_cv_lib_$ac_lib_var=no"
18264fi
18265rm -f conftest*
18266LIBS="$ac_save_LIBS"
18267
18268fi
18269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18270 echo "$ac_t""yes" 1>&6
4f14bcd8 18271 INET_LINK="resolv"
698dcdb6 18272else
a0b9e27f
MB
18273 echo "$ac_t""no" 1>&6
18274echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
dfa2a1d9 18275echo "configure:18276: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18276ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18278 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18279else
a0b9e27f 18280 ac_save_LIBS="$LIBS"
3c011993 18281LIBS="-lsocket $LIBS"
a0b9e27f 18282cat > conftest.$ac_ext <<EOF
dfa2a1d9 18283#line 18284 "configure"
3c011993
VZ
18284#include "confdefs.h"
18285/* Override any gcc2 internal prototype to avoid an error. */
18286/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18287 builtin and then its argument prototype would still apply. */
18288char inet_addr();
4f14bcd8 18289
a0b9e27f
MB
18290int main() {
18291inet_addr()
18292; return 0; }
18293EOF
dfa2a1d9 18294if { (eval echo configure:18295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18295 rm -rf conftest*
18296 eval "ac_cv_lib_$ac_lib_var=yes"
18297else
18298 echo "configure: failed program was:" >&5
18299 cat conftest.$ac_ext >&5
18300 rm -rf conftest*
18301 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18302fi
a0b9e27f
MB
18303rm -f conftest*
18304LIBS="$ac_save_LIBS"
698dcdb6 18305
7b4a847f 18306fi
a0b9e27f
MB
18307if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18308 echo "$ac_t""yes" 1>&6
18309 INET_LINK="socket"
18310
18311else
18312 echo "$ac_t""no" 1>&6
18313fi
579d8138 18314
a0b9e27f 18315
5c6fa7d2 18316fi
52127426 18317
a0b9e27f
MB
18318
18319fi
247f5006 18320
a0b9e27f 18321
8284b0c5 18322
698dcdb6 18323fi
4f14bcd8
GD
18324done
18325
8284b0c5 18326
4f14bcd8
GD
18327for ac_func in inet_aton
18328do
a0b9e27f 18329echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 18330echo "configure:18331: checking for $ac_func" >&5
a0b9e27f
MB
18331if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18332 echo $ac_n "(cached) $ac_c" 1>&6
18333else
18334 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18335#line 18336 "configure"
f6bcfd97 18336#include "confdefs.h"
4f14bcd8 18337/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18338 which can conflict with char $ac_func(); below. */
4f14bcd8 18339#include <assert.h>
f6bcfd97
BP
18340/* Override any gcc2 internal prototype to avoid an error. */
18341/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18342 builtin and then its argument prototype would still apply. */
18343char $ac_func();
18344
18345int main() {
18346
4f14bcd8
GD
18347/* The GNU C library defines this for functions which it implements
18348 to always fail with ENOSYS. Some functions are actually named
18349 something starting with __ and the normal name is an alias. */
18350#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18351choke me
18352#else
a0b9e27f 18353$ac_func();
4f14bcd8
GD
18354#endif
18355
a0b9e27f
MB
18356; return 0; }
18357EOF
dfa2a1d9 18358if { (eval echo configure:18359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18359 rm -rf conftest*
18360 eval "ac_cv_func_$ac_func=yes"
18361else
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18364 rm -rf conftest*
18365 eval "ac_cv_func_$ac_func=no"
18366fi
18367rm -f conftest*
18368fi
18369
18370if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18371 echo "$ac_t""yes" 1>&6
18372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18373 cat >> confdefs.h <<EOF
18374#define $ac_tr_func 1
18375EOF
18376 cat >> confdefs.h <<\EOF
4f14bcd8 18377#define HAVE_INET_ATON 1
a0b9e27f 18378EOF
4f14bcd8 18379
10f2d63a 18380else
a0b9e27f
MB
18381 echo "$ac_t""no" 1>&6
18382 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
dfa2a1d9 18383echo "configure:18384: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18384ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18386 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18387else
a0b9e27f 18388 ac_save_LIBS="$LIBS"
4f14bcd8 18389LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18390cat > conftest.$ac_ext <<EOF
dfa2a1d9 18391#line 18392 "configure"
10f2d63a 18392#include "confdefs.h"
6232543b 18393/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18394/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18395 builtin and then its argument prototype would still apply. */
18396char inet_aton();
18397
18398int main() {
18399inet_aton()
18400; return 0; }
18401EOF
dfa2a1d9 18402if { (eval echo configure:18403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18403 rm -rf conftest*
18404 eval "ac_cv_lib_$ac_lib_var=yes"
18405else
18406 echo "configure: failed program was:" >&5
18407 cat conftest.$ac_ext >&5
18408 rm -rf conftest*
18409 eval "ac_cv_lib_$ac_lib_var=no"
18410fi
18411rm -f conftest*
18412LIBS="$ac_save_LIBS"
4f14bcd8 18413
10f2d63a 18414fi
a0b9e27f
MB
18415if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18416 echo "$ac_t""yes" 1>&6
18417 cat >> confdefs.h <<\EOF
18418#define HAVE_INET_ATON 1
18419EOF
10f2d63a 18420
a0b9e27f
MB
18421else
18422 echo "$ac_t""no" 1>&6
18423fi
247f5006 18424
a0b9e27f 18425
10f2d63a 18426fi
4f14bcd8 18427done
10f2d63a 18428
8284b0c5 18429
4f14bcd8 18430if test "x$INET_LINK" != "x"; then
a0b9e27f 18431 cat >> confdefs.h <<\EOF
4f14bcd8 18432#define HAVE_INET_ADDR 1
a0b9e27f 18433EOF
4f14bcd8 18434
3d63bc3a 18435 INET_LINK=" -l$INET_LINK"
6232543b 18436fi
10f2d63a 18437
1e487827 18438fi
703e0a69 18439
8284b0c5 18440
a0b9e27f 18441cat > confcache <<\EOF
4f14bcd8
GD
18442# This file is a shell script that caches the results of configure
18443# tests run on this system so they can be shared between configure
a0b9e27f
MB
18444# scripts and configure runs. It is not useful on other systems.
18445# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18446#
a0b9e27f
MB
18447# By default, configure uses ./config.cache as the cache file,
18448# creating it if it does not exist already. You can give configure
18449# the --cache-file=FILE option to use a different cache file; that is
18450# what configure does when it calls configure scripts in
18451# subdirectories, so they share the cache.
18452# Giving --cache-file=/dev/null disables caching, for debugging configure.
18453# config.status only pays attention to the cache file if you give it the
18454# --recheck option to rerun configure.
4f14bcd8 18455#
a0b9e27f 18456EOF
4f14bcd8
GD
18457# The following way of writing the cache mishandles newlines in values,
18458# but we know of no workaround that is simple, portable, and efficient.
18459# So, don't put newlines in cache variables' values.
18460# Ultrix sh set writes to stderr and can't be redirected directly,
18461# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18462(set) 2>&1 |
18463 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18464 *ac_space=\ *)
18465 # `set' does not quote correctly, so add quotes (double-quote substitution
18466 # turns \\\\ into \\, and sed turns \\ into \).
18467 sed -n \
18468 -e "s/'/'\\\\''/g" \
18469 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18470 ;;
18471 *)
18472 # `set' quotes correctly as required by POSIX, so do not add quotes.
18473 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18474 ;;
18475 esac >> confcache
18476if cmp -s $cache_file confcache; then
18477 :
18478else
4f14bcd8 18479 if test -w $cache_file; then
a0b9e27f
MB
18480 echo "updating cache $cache_file"
18481 cat confcache > $cache_file
f6bcfd97 18482 else
4f14bcd8 18483 echo "not updating unwritable cache $cache_file"
f6bcfd97 18484 fi
4f14bcd8
GD
18485fi
18486rm -f confcache
f6bcfd97 18487
8284b0c5 18488
a0b9e27f 18489
009fead0 18490CPP_MT_FLAG=
4f14bcd8
GD
18491if test "$TOOLKIT" != "MSW"; then
18492
a0b9e27f 18493
7274f1c7 18494 THREADS_LINK=
009fead0 18495 THREADS_CFLAGS=
7274f1c7
RL
18496
18497 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18498 if test "$USE_BEOS" = 1; then
a0b9e27f 18499 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18500 wxUSE_THREADS="no"
18501 fi
4f14bcd8 18502 fi
4f14bcd8 18503
7274f1c7 18504 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18505
18506
009fead0
VZ
18507 THREAD_OPTS="-pthread"
18508 case "${host}" in
18509 *-*-solaris2* | *-*-sunos4* )
18510 if test "x$GCC" = "xyes"; then
126be6b4 18511 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18512 else
18513 THREAD_OPTS="-mt $THREAD_OPTS"
18514 fi
18515 ;;
18516 *-*-freebsd*)
18517 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18518 ;;
17234b26
MB
18519 *-*-darwin* | *-*-cygwin* )
18520 THREAD_OPTS=""
4101db81 18521 ;;
8f4a9a10 18522 *-*-aix*)
009fead0
VZ
18523 THREAD_OPTS="pthreads"
18524 ;;
4f5a7f74
VZ
18525 *-hp-hpux* )
18526 if test "x$GCC" != "xyes"; then
18527 THREAD_OPTS=""
18528 fi
009fead0 18529 esac
4f14bcd8 18530
02a1dfba 18531 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18532
009fead0
VZ
18533 THREADS_OK=no
18534 for flag in $THREAD_OPTS; do
18535 case $flag in
18536 none)
a0b9e27f 18537 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
dfa2a1d9 18538echo "configure:18539: checking whether pthreads work without any flags" >&5
009fead0 18539 ;;
698dcdb6 18540
009fead0 18541 -*)
a0b9e27f 18542 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
dfa2a1d9 18543echo "configure:18544: checking whether pthreads work with $flag" >&5
009fead0
VZ
18544 THREADS_CFLAGS="$flag"
18545 ;;
698dcdb6 18546
009fead0 18547 *)
a0b9e27f 18548 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
dfa2a1d9 18549echo "configure:18550: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18550 THREADS_LINK="-l$flag"
18551 ;;
18552 esac
10f2d63a 18553
009fead0
VZ
18554 save_LIBS="$LIBS"
18555 save_CFLAGS="$CFLAGS"
18556 LIBS="$THREADS_LINK $LIBS"
04727afd 18557 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18558
a0b9e27f 18559 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18560#line 18561 "configure"
009fead0
VZ
18561#include "confdefs.h"
18562#include <pthread.h>
a0b9e27f 18563int main() {
009fead0 18564pthread_create(0,0,0,0);
a0b9e27f
MB
18565; return 0; }
18566EOF
dfa2a1d9 18567if { (eval echo configure:18568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18568 rm -rf conftest*
009fead0 18569 THREADS_OK=yes
10f2d63a 18570else
a0b9e27f
MB
18571 echo "configure: failed program was:" >&5
18572 cat conftest.$ac_ext >&5
6232543b 18573fi
a0b9e27f 18574rm -f conftest*
698dcdb6 18575
009fead0
VZ
18576 LIBS="$save_LIBS"
18577 CFLAGS="$save_CFLAGS"
d9b9876f 18578
a0b9e27f 18579 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18580 if test "x$THREADS_OK" = "xyes"; then
18581 break;
18582 fi
d9b9876f 18583
009fead0
VZ
18584 THREADS_LINK=""
18585 THREADS_CFLAGS=""
18586 done
4f14bcd8 18587
009fead0
VZ
18588 if test "x$THREADS_OK" != "xyes"; then
18589 wxUSE_THREADS=no
a0b9e27f 18590 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18591 else
db82f09e
VZ
18592 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18593 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18594
a0b9e27f 18595 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
dfa2a1d9 18596echo "configure:18597: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18597 flag=no
18598 case "${host}" in
2b5f62a0
VZ
18599 *-aix*)
18600 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18601 flag="-D_THREAD_SAFE"
18602 ;;
18603 *-freebsd*)
009fead0
VZ
18604 flag="-D_THREAD_SAFE"
18605 ;;
06313569
GD
18606 *-hp-hpux* )
18607 flag="-D_REENTRANT"
4f5a7f74
VZ
18608 if test "x$GCC" != "xyes"; then
18609 flag="$flag -D_RWSTD_MULTI_THREAD"
18610 fi
06313569 18611 ;;
009fead0
VZ
18612 *solaris* | alpha*-osf*)
18613 flag="-D_REENTRANT"
18614 ;;
18615 esac
a0b9e27f 18616 echo "$ac_t""${flag}" 1>&6
009fead0 18617 if test "x$flag" != xno; then
04727afd 18618 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18619 fi
18620
009fead0 18621 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18622 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18623 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18624 fi
18625 fi
4f14bcd8 18626 fi
4f14bcd8 18627
7274f1c7 18628 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18629 for ac_func in thr_setconcurrency
4f14bcd8 18630do
a0b9e27f 18631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 18632echo "configure:18633: checking for $ac_func" >&5
a0b9e27f
MB
18633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
18635else
18636 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18637#line 18638 "configure"
d9b9876f 18638#include "confdefs.h"
4f14bcd8 18639/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18640 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18641#include <assert.h>
18642/* Override any gcc2 internal prototype to avoid an error. */
18643/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18644 builtin and then its argument prototype would still apply. */
18645char $ac_func();
18646
18647int main() {
18648
4f14bcd8
GD
18649/* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18653choke me
18654#else
a0b9e27f 18655$ac_func();
4f14bcd8
GD
18656#endif
18657
a0b9e27f
MB
18658; return 0; }
18659EOF
dfa2a1d9 18660if { (eval echo configure:18661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18661 rm -rf conftest*
18662 eval "ac_cv_func_$ac_func=yes"
18663else
18664 echo "configure: failed program was:" >&5
18665 cat conftest.$ac_ext >&5
18666 rm -rf conftest*
18667 eval "ac_cv_func_$ac_func=no"
18668fi
18669rm -f conftest*
18670fi
698dcdb6 18671
a0b9e27f
MB
18672if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18673 echo "$ac_t""yes" 1>&6
18674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18675 cat >> confdefs.h <<EOF
18676#define $ac_tr_func 1
18677EOF
18678
18679else
18680 echo "$ac_t""no" 1>&6
10f2d63a 18681fi
4f14bcd8 18682done
10f2d63a 18683
8284b0c5 18684
a0b9e27f 18685 for ac_hdr in sched.h
4f14bcd8 18686do
a0b9e27f
MB
18687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 18689echo "configure:18690: checking for $ac_hdr" >&5
a0b9e27f
MB
18690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18691 echo $ac_n "(cached) $ac_c" 1>&6
18692else
18693 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18694#line 18695 "configure"
247f5006 18695#include "confdefs.h"
a0b9e27f
MB
18696#include <$ac_hdr>
18697EOF
18698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 18699{ (eval echo configure:18700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18701if test -z "$ac_err"; then
18702 rm -rf conftest*
18703 eval "ac_cv_header_$ac_safe=yes"
18704else
18705 echo "$ac_err" >&5
18706 echo "configure: failed program was:" >&5
4f14bcd8 18707 cat conftest.$ac_ext >&5
a0b9e27f
MB
18708 rm -rf conftest*
18709 eval "ac_cv_header_$ac_safe=no"
13111b2a 18710fi
a0b9e27f 18711rm -f conftest*
10f2d63a 18712fi
a0b9e27f
MB
18713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18714 echo "$ac_t""yes" 1>&6
18715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18716 cat >> confdefs.h <<EOF
18717#define $ac_tr_hdr 1
18718EOF
18719
18720else
18721 echo "$ac_t""no" 1>&6
f6bcfd97 18722fi
4f14bcd8 18723done
f6bcfd97 18724
009fead0 18725 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18726 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
dfa2a1d9 18727echo "configure:18728: checking for sched_yield" >&5
a0b9e27f
MB
18728if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18729 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18730else
a0b9e27f 18731 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18732#line 18733 "configure"
4f14bcd8 18733#include "confdefs.h"
009fead0 18734/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18735 which can conflict with char sched_yield(); below. */
009fead0 18736#include <assert.h>
4f14bcd8
GD
18737/* Override any gcc2 internal prototype to avoid an error. */
18738/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18739 builtin and then its argument prototype would still apply. */
18740char sched_yield();
18741
18742int main() {
18743
009fead0
VZ
18744/* The GNU C library defines this for functions which it implements
18745 to always fail with ENOSYS. Some functions are actually named
18746 something starting with __ and the normal name is an alias. */
18747#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18748choke me
18749#else
a0b9e27f 18750sched_yield();
009fead0
VZ
18751#endif
18752
a0b9e27f
MB
18753; return 0; }
18754EOF
dfa2a1d9 18755if { (eval echo configure:18756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18756 rm -rf conftest*
18757 eval "ac_cv_func_sched_yield=yes"
18758else
18759 echo "configure: failed program was:" >&5
18760 cat conftest.$ac_ext >&5
18761 rm -rf conftest*
18762 eval "ac_cv_func_sched_yield=no"
18763fi
18764rm -f conftest*
18765fi
18766
18767if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18768 echo "$ac_t""yes" 1>&6
18769 cat >> confdefs.h <<\EOF
4f14bcd8 18770#define HAVE_SCHED_YIELD 1
a0b9e27f 18771EOF
10f2d63a 18772
4f14bcd8 18773else
a0b9e27f 18774 echo "$ac_t""no" 1>&6
009fead0 18775
a0b9e27f 18776 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
dfa2a1d9 18777echo "configure:18778: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18778ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18780 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18781else
a0b9e27f 18782 ac_save_LIBS="$LIBS"
4f14bcd8 18783LIBS="-lposix4 $LIBS"
a0b9e27f 18784cat > conftest.$ac_ext <<EOF
dfa2a1d9 18785#line 18786 "configure"
4f14bcd8
GD
18786#include "confdefs.h"
18787/* Override any gcc2 internal prototype to avoid an error. */
18788/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18789 builtin and then its argument prototype would still apply. */
18790char sched_yield();
18791
18792int main() {
18793sched_yield()
18794; return 0; }
18795EOF
dfa2a1d9 18796if { (eval echo configure:18797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18797 rm -rf conftest*
18798 eval "ac_cv_lib_$ac_lib_var=yes"
18799else
18800 echo "configure: failed program was:" >&5
18801 cat conftest.$ac_ext >&5
18802 rm -rf conftest*
18803 eval "ac_cv_lib_$ac_lib_var=no"
18804fi
18805rm -f conftest*
18806LIBS="$ac_save_LIBS"
18807
18808fi
18809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18810 echo "$ac_t""yes" 1>&6
18811 cat >> confdefs.h <<\EOF
4f14bcd8 18812#define HAVE_SCHED_YIELD 1
a0b9e27f 18813EOF
3d63bc3a 18814 POSIX4_LINK=" -lposix4"
4f14bcd8 18815else
a0b9e27f
MB
18816 echo "$ac_t""no" 1>&6
18817echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18818
54276ccf
VZ
18819fi
18820
a0b9e27f
MB
18821
18822
4f14bcd8 18823fi
698dcdb6 18824
009fead0 18825 fi
10f2d63a 18826
7274f1c7 18827 HAVE_PRIOR_FUNCS=0
a0b9e27f 18828 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
dfa2a1d9 18829echo "configure:18830: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
18830if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18831 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18832else
a0b9e27f 18833 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18834#line 18835 "configure"
422107f9 18835#include "confdefs.h"
009fead0 18836/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18837 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 18838#include <assert.h>
4f14bcd8
GD
18839/* Override any gcc2 internal prototype to avoid an error. */
18840/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18841 builtin and then its argument prototype would still apply. */
18842char pthread_attr_getschedpolicy();
18843
18844int main() {
18845
009fead0
VZ
18846/* The GNU C library defines this for functions which it implements
18847 to always fail with ENOSYS. Some functions are actually named
18848 something starting with __ and the normal name is an alias. */
18849#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18850choke me
18851#else
a0b9e27f 18852pthread_attr_getschedpolicy();
009fead0
VZ
18853#endif
18854
a0b9e27f
MB
18855; return 0; }
18856EOF
dfa2a1d9 18857if { (eval echo configure:18858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18858 rm -rf conftest*
18859 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18860else
18861 echo "configure: failed program was:" >&5
18862 cat conftest.$ac_ext >&5
18863 rm -rf conftest*
18864 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18865fi
18866rm -f conftest*
18867fi
18868
18869if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18870 echo "$ac_t""yes" 1>&6
18871 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
dfa2a1d9 18872echo "configure:18873: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
18873if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18874 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 18875else
a0b9e27f 18876 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18877#line 18878 "configure"
a0b9e27f
MB
18878#include "confdefs.h"
18879/* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 18881#include <assert.h>
422107f9
VZ
18882/* Override any gcc2 internal prototype to avoid an error. */
18883/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18884 builtin and then its argument prototype would still apply. */
18885char pthread_attr_setschedparam();
18886
18887int main() {
18888
009fead0
VZ
18889/* The GNU C library defines this for functions which it implements
18890 to always fail with ENOSYS. Some functions are actually named
18891 something starting with __ and the normal name is an alias. */
18892#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18893choke me
18894#else
a0b9e27f 18895pthread_attr_setschedparam();
009fead0
VZ
18896#endif
18897
a0b9e27f
MB
18898; return 0; }
18899EOF
dfa2a1d9 18900if { (eval echo configure:18901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18901 rm -rf conftest*
18902 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18903else
18904 echo "configure: failed program was:" >&5
18905 cat conftest.$ac_ext >&5
18906 rm -rf conftest*
18907 eval "ac_cv_func_pthread_attr_setschedparam=no"
18908fi
18909rm -f conftest*
18910fi
18911
18912if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18913 echo "$ac_t""yes" 1>&6
18914 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
dfa2a1d9 18915echo "configure:18916: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18916if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18917 echo $ac_n "(cached) $ac_c" 1>&6
18918else
18919 cat > conftest.$ac_ext <<EOF
dfa2a1d9 18920#line 18921 "configure"
422107f9 18921#include "confdefs.h"
009fead0
VZ
18922/* System header to define __stub macros and hopefully few prototypes
18923else
a0b9e27f
MB
18924 echo "$ac_t""no" 1>&6
18925which can conflict with char sched_get_priority_max(); below. */
009fead0 18926#include <assert.h>
4f14bcd8
GD
18927/* Override any gcc2 internal prototype to avoid an error. */
18928/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18929 builtin and then its argument prototype would still apply. */
18930char sched_get_priority_max();
18931
18932int main() {
18933
009fead0
VZ
18934/* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18938choke me
18939#else
a0b9e27f 18940sched_get_priority_max();
009fead0
VZ
18941#endif
18942
a0b9e27f
MB
18943; return 0; }
18944EOF
dfa2a1d9 18945if { (eval echo configure:18946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18946 rm -rf conftest*
18947 eval "ac_cv_func_sched_get_priority_max=yes"
18948else
18949 echo "configure: failed program was:" >&5
18950 cat conftest.$ac_ext >&5
18951 rm -rf conftest*
18952 eval "ac_cv_func_sched_get_priority_max=no"
18953fi
18954rm -f conftest*
18955fi
18956
18957if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18958 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18959 HAVE_PRIOR_FUNCS=1
18960else
a0b9e27f
MB
18961 echo "$ac_t""no" 1>&6
18962echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
dfa2a1d9 18963echo "configure:18964: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18964ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18966 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18967else
a0b9e27f 18968 ac_save_LIBS="$LIBS"
4f14bcd8 18969LIBS="-lposix4 $LIBS"
a0b9e27f 18970cat > conftest.$ac_ext <<EOF
dfa2a1d9 18971#line 18972 "configure"
422107f9
VZ
18972#include "confdefs.h"
18973/* Override any gcc2 internal prototype to avoid an error. */
18974/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18975 builtin and then its argument prototype would still apply. */
18976char sched_get_priority_max();
18977
18978int main() {
18979sched_get_priority_max()
18980; return 0; }
18981EOF
dfa2a1d9 18982if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18983 rm -rf conftest*
18984 eval "ac_cv_lib_$ac_lib_var=yes"
18985else
18986 echo "configure: failed program was:" >&5
18987 cat conftest.$ac_ext >&5
18988 rm -rf conftest*
18989 eval "ac_cv_lib_$ac_lib_var=no"
18990fi
18991rm -f conftest*
18992LIBS="$ac_save_LIBS"
698dcdb6 18993
a0b9e27f
MB
18994fi
18995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18996 echo "$ac_t""yes" 1>&6
18997
7274f1c7
RL
18998 HAVE_PRIOR_FUNCS=1
18999 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19000
19001else
19002 echo "$ac_t""no" 1>&6
4f14bcd8 19003fi
463abc64 19004
a0b9e27f 19005
328a083c 19006fi
463abc64 19007
a0b9e27f
MB
19008
19009else
19010 echo "$ac_t""no" 1>&6
7b4a847f 19011fi
579d8138 19012
a0b9e27f 19013
5c6fa7d2 19014fi
52127426 19015
8284b0c5 19016
7274f1c7 19017 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19018 cat >> confdefs.h <<\EOF
4f14bcd8 19019#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19020EOF
463abc64 19021
7274f1c7 19022 else
a0b9e27f 19023 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19024 fi
463abc64 19025
a0b9e27f 19026 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
dfa2a1d9 19027echo "configure:19028: checking for pthread_cancel" >&5
a0b9e27f
MB
19028if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19030else
a0b9e27f 19031 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19032#line 19033 "configure"
422107f9 19033#include "confdefs.h"
009fead0 19034/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19035 which can conflict with char pthread_cancel(); below. */
009fead0 19036#include <assert.h>
422107f9
VZ
19037/* Override any gcc2 internal prototype to avoid an error. */
19038/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19039 builtin and then its argument prototype would still apply. */
19040char pthread_cancel();
19041
19042int main() {
19043
009fead0
VZ
19044/* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19048choke me
19049#else
a0b9e27f 19050pthread_cancel();
009fead0
VZ
19051#endif
19052
a0b9e27f
MB
19053; return 0; }
19054EOF
dfa2a1d9 19055if { (eval echo configure:19056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19056 rm -rf conftest*
19057 eval "ac_cv_func_pthread_cancel=yes"
19058else
19059 echo "configure: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19061 rm -rf conftest*
19062 eval "ac_cv_func_pthread_cancel=no"
19063fi
19064rm -f conftest*
19065fi
19066
19067if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19068 echo "$ac_t""yes" 1>&6
19069 cat >> confdefs.h <<\EOF
4f14bcd8 19070#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19071EOF
4f14bcd8 19072
698dcdb6 19073else
a0b9e27f
MB
19074 echo "$ac_t""no" 1>&6
19075echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19076fi
19077
5c6fa7d2 19078
a0b9e27f 19079 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
dfa2a1d9 19080echo "configure:19081: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19081if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19082 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19083else
a0b9e27f
MB
19084
19085 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19086#line 19087 "configure"
4f14bcd8
GD
19087#include "confdefs.h"
19088#include <pthread.h>
a0b9e27f 19089int main() {
4f14bcd8 19090
7274f1c7
RL
19091 pthread_cleanup_push(NULL, NULL);
19092 pthread_cleanup_pop(0);
a0b9e27f
MB
19093
19094; return 0; }
19095EOF
dfa2a1d9 19096if { (eval echo configure:19097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19097 rm -rf conftest*
19098
7274f1c7 19099 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19100
4f14bcd8 19101else
a0b9e27f
MB
19102 echo "configure: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 rm -rf conftest*
19105
7274f1c7 19106 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19107
5c6fa7d2 19108fi
a0b9e27f
MB
19109rm -f conftest*
19110
247f5006 19111fi
a0b9e27f
MB
19112
19113echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19114
7274f1c7 19115 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19116 cat >> confdefs.h <<\EOF
4f14bcd8 19117#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19118EOF
c7a2bf27 19119
7274f1c7 19120 fi
4f14bcd8 19121
a0b9e27f
MB
19122
19123 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
dfa2a1d9 19124echo "configure:19125: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19125if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19126 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19127else
a0b9e27f
MB
19128
19129 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19130#line 19131 "configure"
0dcf9893 19131#include "confdefs.h"
4f14bcd8 19132#include <pthread.h>
a0b9e27f 19133int main() {
4f14bcd8 19134
7274f1c7
RL
19135 pthread_mutexattr_t attr;
19136 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19137
19138; return 0; }
19139EOF
dfa2a1d9 19140if { (eval echo configure:19141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19141 rm -rf conftest*
19142
7274f1c7 19143 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19144
3fed1840 19145else
a0b9e27f
MB
19146 echo "configure: failed program was:" >&5
19147 cat conftest.$ac_ext >&5
19148 rm -rf conftest*
19149
7274f1c7 19150 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19151
19152
5c6fa7d2 19153fi
a0b9e27f
MB
19154rm -f conftest*
19155
247f5006 19156fi
a0b9e27f
MB
19157
19158echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19159
7274f1c7 19160 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19161 cat >> confdefs.h <<\EOF
4f14bcd8 19162#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19163EOF
4f14bcd8 19164
7274f1c7 19165 else
a0b9e27f 19166 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
dfa2a1d9 19167echo "configure:19168: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19168if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19169 echo $ac_n "(cached) $ac_c" 1>&6
19170else
19171
19172 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19173#line 19174 "configure"
3fed1840 19174#include "confdefs.h"
4f14bcd8 19175#include <pthread.h>
a0b9e27f 19176int main() {
4f14bcd8 19177
7274f1c7 19178 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19179
19180; return 0; }
19181EOF
dfa2a1d9 19182if { (eval echo configure:19183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19183 rm -rf conftest*
19184
7274f1c7 19185 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19186
698dcdb6 19187else
a0b9e27f
MB
19188 echo "configure: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 rm -rf conftest*
19191
7274f1c7 19192 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19193
19194
5c6fa7d2 19195fi
a0b9e27f
MB
19196rm -f conftest*
19197
247f5006 19198fi
a0b9e27f
MB
19199
19200echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19201 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19202 cat >> confdefs.h <<\EOF
4f14bcd8 19203#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19204EOF
3fed1840 19205
7274f1c7 19206 else
a0b9e27f 19207 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19208 fi
19209 fi
7274f1c7 19210 fi
3fed1840 19211
a0b9e27f
MB
19212else
19213 if test "$wxUSE_THREADS" = "yes" ; then
19214 case "${host}" in
19215 *-*-mingw32* )
ca8e52b3 19216 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
dfa2a1d9 19217echo "configure:19218: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19218if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19219 echo $ac_n "(cached) $ac_c" 1>&6
19220else
19221
19222 CFLAGS_OLD="$CFLAGS"
19223 CFLAGS="$CFLAGS -mthreads"
19224 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19225#line 19226 "configure"
ca8e52b3
VZ
19226#include "confdefs.h"
19227
19228int main() {
19229
19230; return 0; }
19231EOF
dfa2a1d9 19232if { (eval echo configure:19233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19233 rm -rf conftest*
19234 wx_cv_cflags_mthread=yes
19235else
19236 echo "configure: failed program was:" >&5
19237 cat conftest.$ac_ext >&5
19238 rm -rf conftest*
19239 wx_cv_cflags_mthread=no
19240
19241fi
19242rm -f conftest*
19243
19244
19245fi
19246
19247echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19248
19249 if test "$wx_cv_cflags_mthread" = "yes"; then
19250 CXXFLAGS="$CXXFLAGS -mthreads"
19251 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19252 LDFLAGS="$LDFLAGS -mthreads"
19253 else
19254 CFLAGS="$CFLAGS_OLD"
19255 fi
a0b9e27f
MB
19256 ;;
19257 esac
19258 fi
4f14bcd8
GD
19259fi
19260
19261if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19262 cat >> confdefs.h <<\EOF
4f14bcd8 19263#define wxUSE_THREADS 1
a0b9e27f 19264EOF
7b6058cd 19265
8284b0c5 19266
4f14bcd8 19267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19268else
4f14bcd8 19269 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19270 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
dfa2a1d9 19271echo "configure:19272: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19272 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19273 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19274 echo "$ac_t""yes" 1>&6
4f14bcd8 19275 else
a0b9e27f 19276 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19277 fi
19278 fi
19279fi
19280
19281if test "$WXGTK20" = 1 ; then
a0b9e27f 19282 cat >> confdefs.h <<EOF
4f14bcd8 19283#define __WXGTK20__ $WXGTK20
a0b9e27f 19284EOF
4f14bcd8
GD
19285
19286 WXGTK12=1
10f2d63a 19287fi
4f14bcd8
GD
19288
19289if test "$WXGTK12" = 1 ; then
a0b9e27f 19290 cat >> confdefs.h <<EOF
4f14bcd8 19291#define __WXGTK12__ $WXGTK12
a0b9e27f 19292EOF
4f14bcd8 19293
10f2d63a 19294fi
698dcdb6 19295
4f14bcd8 19296if test "$WXGTK127" = 1 ; then
a0b9e27f 19297 cat >> confdefs.h <<EOF
4f14bcd8 19298#define __WXGTK127__ $WXGTK127
a0b9e27f 19299EOF
4f14bcd8 19300
698dcdb6 19301fi
10f2d63a 19302
4f14bcd8
GD
19303WXDEBUG=
19304
19305if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19306 WXDEBUG="-g"
19307 wxUSE_OPTIMISE=no
698dcdb6 19308fi
4f14bcd8
GD
19309
19310if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19311 wxUSE_DEBUG_INFO=yes
19312 WXDEBUG="-ggdb"
10f2d63a
VZ
19313fi
19314
4f14bcd8 19315if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19316 cat >> confdefs.h <<\EOF
4f14bcd8 19317#define WXDEBUG 1
a0b9e27f 19318EOF
4f14bcd8
GD
19319
19320 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19321else
4f14bcd8
GD
19322 if test "$wxUSE_GTK" = 1 ; then
19323 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19324 fi
19325fi
19326
19327if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19328 cat >> confdefs.h <<\EOF
4f14bcd8 19329#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19330EOF
4f14bcd8 19331
a0b9e27f 19332 cat >> confdefs.h <<\EOF
4f14bcd8 19333#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19334EOF
4f14bcd8 19335
a0b9e27f 19336 cat >> confdefs.h <<\EOF
4f14bcd8 19337#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19338EOF
4f14bcd8
GD
19339
19340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19341fi
19342
19343if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19344 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19345fi
19346
19347PROFILE=
19348if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19349 PROFILE=" -pg"
10f2d63a
VZ
19350fi
19351
009fead0
VZ
19352CODE_GEN_FLAGS=
19353CODE_GEN_FLAGS_CXX=
88e30f2b 19354if test "$GCC" = "yes" ; then
4f14bcd8
GD
19355 if test "$wxUSE_NO_RTTI" = "yes" ; then
19356 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19357 fi
4f14bcd8
GD
19358 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19359 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19360 fi
19361 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19362 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19363 fi
4f14bcd8
GD
19364 if test "$USE_WIN32" = 1 ; then
19365 # I'm not even really sure what this was ever added to solve,
19366 # but someone added it for mingw native builds, so I guess
19367 # they had a reason, right??
19368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19369 fi
1d1b75ac 19370
2b5f62a0 19371 case "${host}" in
1d1b75ac
VZ
19372 powerpc*-*-aix* )
19373 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19374 ;;
2b5f62a0
VZ
19375 *-hppa* )
19376 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19377 ;;
1d1b75ac 19378 esac
4f14bcd8
GD
19379fi
19380
af7b5345 19381OPTIMISE=
4f14bcd8 19382if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19383 if test "$GCC" = yes ; then
19384 OPTIMISE="-O0"
19385 fi
4f14bcd8
GD
19386else
19387 if test "$GCC" = yes ; then
19388 OPTIMISE="-O2"
af7b5345
VZ
19389
19390 case "${host}" in
4f14bcd8
GD
19391 i586-*-*|i686-*-* )
19392 OPTIMISE="${OPTIMISE} "
19393 ;;
19394 esac
19395 else
19396 OPTIMISE="-O"
19397 fi
19398fi
19399
8d90d2f2 19400
4f14bcd8 19401if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19402 cat >> confdefs.h <<\EOF
4f14bcd8 19403#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19404EOF
4f14bcd8 19405
8284b0c5 19406
4f14bcd8
GD
19407 WXWIN_COMPATIBILITY_2_2="yes"
19408fi
19409
65d8ef1e 19410if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19411 cat >> confdefs.h <<\EOF
4f14bcd8 19412#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19413EOF
4f14bcd8 19414
8d90d2f2
VZ
19415
19416 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19417fi
19418
65d8ef1e
VS
19419if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19420 cat >> confdefs.h <<\EOF
19421#define WXWIN_COMPATIBILITY_2_4 1
19422EOF
19423
19424fi
19425
8284b0c5 19426
10f2d63a 19427if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19428 cat >> confdefs.h <<\EOF
10f2d63a 19429#define wxUSE_GUI 1
a0b9e27f 19430EOF
10f2d63a 19431
8284b0c5 19432
10f2d63a 19433 else
a0b9e27f 19434 cat >> confdefs.h <<\EOF
10f2d63a 19435#define wxUSE_NOGUI 1
a0b9e27f 19436EOF
10f2d63a
VZ
19437
19438fi
19439
8284b0c5 19440
10f2d63a 19441if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19442 cat >> confdefs.h <<\EOF
10f2d63a 19443#define wxUSE_UNIX 1
a0b9e27f 19444EOF
10f2d63a
VZ
19445
19446fi
19447
8284b0c5 19448
10f2d63a 19449if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19450 cat >> confdefs.h <<\EOF
10f2d63a 19451#define wxUSE_APPLE_IEEE 1
a0b9e27f 19452EOF
10f2d63a
VZ
19453
19454fi
19455
1e6feb95 19456if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19457 cat >> confdefs.h <<\EOF
1e6feb95 19458#define wxUSE_TIMER 1
a0b9e27f 19459EOF
1e6feb95
VZ
19460
19461fi
19462
10f2d63a 19463if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19464 cat >> confdefs.h <<\EOF
10f2d63a 19465#define wxUSE_WAVE 1
a0b9e27f 19466EOF
10f2d63a
VZ
19467
19468fi
19469
1e6feb95 19470if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19471 cat >> confdefs.h <<\EOF
1e6feb95 19472#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19473EOF
1e6feb95
VZ
19474
19475fi
19476
19477if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19478 cat >> confdefs.h <<\EOF
1e6feb95 19479#define wxUSE_STOPWATCH 1
a0b9e27f 19480EOF
1e6feb95
VZ
19481
19482fi
19483
19484if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19485 cat >> confdefs.h <<\EOF
1e6feb95 19486#define wxUSE_DATETIME 1
a0b9e27f 19487EOF
1e6feb95
VZ
19488
19489fi
19490
10f2d63a 19491if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19492 cat >> confdefs.h <<\EOF
10f2d63a 19493#define wxUSE_FILE 1
a0b9e27f 19494EOF
10f2d63a
VZ
19495
19496fi
19497
1e6feb95 19498if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19499 cat >> confdefs.h <<\EOF
1e6feb95 19500#define wxUSE_FFILE 1
a0b9e27f 19501EOF
1e6feb95
VZ
19502
19503fi
19504
24528b0c 19505if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19506 cat >> confdefs.h <<\EOF
24528b0c 19507#define wxUSE_FILESYSTEM 1
a0b9e27f 19508EOF
24528b0c
VS
19509
19510fi
19511
10f2d63a 19512if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19513 cat >> confdefs.h <<\EOF
10f2d63a 19514#define wxUSE_FS_INET 1
a0b9e27f 19515EOF
10f2d63a
VZ
19516
19517fi
19518
19519if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19520 cat >> confdefs.h <<\EOF
10f2d63a 19521#define wxUSE_FS_ZIP 1
a0b9e27f 19522EOF
10f2d63a
VZ
19523
19524fi
19525
19526if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19527 cat >> confdefs.h <<\EOF
10f2d63a 19528#define wxUSE_ZIPSTREAM 1
a0b9e27f 19529EOF
10f2d63a
VZ
19530
19531fi
19532
eb4efbdc 19533if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19534 cat >> confdefs.h <<\EOF
eb4efbdc 19535#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19536EOF
eb4efbdc
VZ
19537
19538fi
19539
4f3c5f06 19540if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19541 cat >> confdefs.h <<\EOF
4f3c5f06 19542#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19543EOF
4f3c5f06
VZ
19544
19545fi
19546
10f2d63a 19547if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19548 cat >> confdefs.h <<\EOF
10f2d63a 19549#define wxUSE_BUSYINFO 1
a0b9e27f 19550EOF
10f2d63a
VZ
19551
19552fi
19553
19554if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19555 cat >> confdefs.h <<\EOF
10f2d63a 19556#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19557EOF
10f2d63a
VZ
19558
19559fi
19560
a3a584a7 19561if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19562 cat >> confdefs.h <<\EOF
a3a584a7 19563#define wxUSE_TEXTBUFFER 1
a0b9e27f 19564EOF
a3a584a7
VZ
19565
19566fi
19567
10f2d63a 19568if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19569 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19570 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19571 else
a0b9e27f 19572 cat >> confdefs.h <<\EOF
10f2d63a 19573#define wxUSE_TEXTFILE 1
a0b9e27f 19574EOF
10f2d63a
VZ
19575
19576 fi
19577fi
19578
19579if test "$wxUSE_CONFIG" = "yes" ; then
19580 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19581 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19582 else
a0b9e27f 19583 cat >> confdefs.h <<\EOF
10f2d63a 19584#define wxUSE_CONFIG 1
a0b9e27f 19585EOF
10f2d63a
VZ
19586
19587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19588 fi
19589fi
19590
19591if test "$wxUSE_INTL" = "yes" ; then
19592 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19593 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19594 else
a0b9e27f 19595 cat >> confdefs.h <<\EOF
10f2d63a 19596#define wxUSE_INTL 1
a0b9e27f 19597EOF
10f2d63a
VZ
19598
19599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19600 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19601 fi
19602fi
19603
19604if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19605 cat >> confdefs.h <<\EOF
10f2d63a 19606#define wxUSE_LOG 1
a0b9e27f 19607EOF
10f2d63a 19608
8284b0c5 19609
d73be714 19610 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19611 cat >> confdefs.h <<\EOF
d73be714 19612#define wxUSE_LOGGUI 1
a0b9e27f 19613EOF
d73be714
VZ
19614
19615 fi
19616
19617 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19618 cat >> confdefs.h <<\EOF
d73be714 19619#define wxUSE_LOGWINDOW 1
a0b9e27f 19620EOF
69d27ff7
MB
19621
19622 fi
19623
19624 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19625 cat >> confdefs.h <<\EOF
69d27ff7 19626#define wxUSE_LOG_DIALOG 1
a0b9e27f 19627EOF
d73be714
VZ
19628
19629 fi
10f2d63a
VZ
19630fi
19631
19632if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19633 cat >> confdefs.h <<\EOF
10f2d63a 19634#define wxUSE_LONGLONG 1
a0b9e27f 19635EOF
10f2d63a
VZ
19636
19637fi
19638
e8f65ba6 19639if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19640 cat >> confdefs.h <<\EOF
e8f65ba6 19641#define wxUSE_GEOMETRY 1
a0b9e27f 19642EOF
e8f65ba6
RR
19643
19644fi
19645
10f2d63a 19646if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19647 cat >> confdefs.h <<\EOF
10f2d63a 19648#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19649EOF
10f2d63a 19650
70f7a477 19651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19652fi
19653
19654if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19655 cat >> confdefs.h <<\EOF
10f2d63a 19656#define wxUSE_STREAMS 1
a0b9e27f 19657EOF
10f2d63a
VZ
19658
19659fi
19660
5c6fa7d2 19661
8284b0c5 19662if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19663 for ac_func in strptime
83307f33 19664do
a0b9e27f 19665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 19666echo "configure:19667: checking for $ac_func" >&5
a0b9e27f
MB
19667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19668 echo $ac_n "(cached) $ac_c" 1>&6
19669else
19670 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19671#line 19672 "configure"
83307f33
VZ
19672#include "confdefs.h"
19673/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19674 which can conflict with char $ac_func(); below. */
83307f33
VZ
19675#include <assert.h>
19676/* Override any gcc2 internal prototype to avoid an error. */
19677/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19678 builtin and then its argument prototype would still apply. */
19679char $ac_func();
19680
19681int main() {
19682
83307f33
VZ
19683/* The GNU C library defines this for functions which it implements
19684 to always fail with ENOSYS. Some functions are actually named
19685 something starting with __ and the normal name is an alias. */
19686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19687choke me
19688#else
a0b9e27f 19689$ac_func();
83307f33
VZ
19690#endif
19691
a0b9e27f
MB
19692; return 0; }
19693EOF
dfa2a1d9 19694if { (eval echo configure:19695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19695 rm -rf conftest*
19696 eval "ac_cv_func_$ac_func=yes"
19697else
19698 echo "configure: failed program was:" >&5
19699 cat conftest.$ac_ext >&5
19700 rm -rf conftest*
19701 eval "ac_cv_func_$ac_func=no"
19702fi
19703rm -f conftest*
19704fi
83307f33 19705
a0b9e27f
MB
19706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19707 echo "$ac_t""yes" 1>&6
19708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19709 cat >> confdefs.h <<EOF
19710#define $ac_tr_func 1
19711EOF
19712
19713else
19714 echo "$ac_t""no" 1>&6
83307f33
VZ
19715fi
19716done
19717
5c6fa7d2 19718
a0b9e27f 19719 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
dfa2a1d9 19720echo "configure:19721: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19721if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19722 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19723else
a0b9e27f
MB
19724
19725 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19726#line 19727 "configure"
360d6699
VZ
19727#include "confdefs.h"
19728
b4085ce6 19729 #include <time.h>
a0b9e27f
MB
19730
19731int main() {
360d6699
VZ
19732
19733 int tz;
4f11a343 19734 tz = timezone;
a0b9e27f
MB
19735
19736; return 0; }
19737EOF
dfa2a1d9 19738if { (eval echo configure:19739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19739 rm -rf conftest*
19740
4f11a343 19741 wx_cv_var_timezone=timezone
a0b9e27f 19742
360d6699 19743else
a0b9e27f
MB
19744 echo "configure: failed program was:" >&5
19745 cat conftest.$ac_ext >&5
19746 rm -rf conftest*
19747
19748 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19749#line 19750 "configure"
360d6699
VZ
19750#include "confdefs.h"
19751
b4085ce6 19752 #include <time.h>
a0b9e27f
MB
19753
19754int main() {
360d6699
VZ
19755
19756 int tz;
19757 tz = _timezone;
a0b9e27f
MB
19758
19759; return 0; }
19760EOF
dfa2a1d9 19761if { (eval echo configure:19762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19762 rm -rf conftest*
19763
360d6699 19764 wx_cv_var_timezone=_timezone
a0b9e27f 19765
5357c8e8 19766else
a0b9e27f
MB
19767 echo "configure: failed program was:" >&5
19768 cat conftest.$ac_ext >&5
19769 rm -rf conftest*
19770
19771 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19772#line 19773 "configure"
5357c8e8
VZ
19773#include "confdefs.h"
19774
b4085ce6 19775 #include <time.h>
a0b9e27f
MB
19776
19777int main() {
5357c8e8
VZ
19778
19779 int tz;
4f11a343 19780 tz = __timezone;
a0b9e27f
MB
19781
19782; return 0; }
19783EOF
dfa2a1d9 19784if { (eval echo configure:19785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19785 rm -rf conftest*
19786
4f11a343 19787 wx_cv_var_timezone=__timezone
a0b9e27f 19788
360d6699 19789else
a0b9e27f
MB
19790 echo "configure: failed program was:" >&5
19791 cat conftest.$ac_ext >&5
19792 rm -rf conftest*
19793
f9bc1684 19794 if test "$USE_DOS" = 0 ; then
a0b9e27f 19795 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19796 fi
a0b9e27f
MB
19797
19798
328a083c 19799fi
a0b9e27f
MB
19800rm -f conftest*
19801
19802
7b4a847f 19803fi
a0b9e27f
MB
19804rm -f conftest*
19805
19806
5c6fa7d2 19807fi
a0b9e27f
MB
19808rm -f conftest*
19809
19810
247f5006 19811fi
a0b9e27f
MB
19812
19813echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19814
f9bc1684 19815 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19816 cat >> confdefs.h <<EOF
360d6699 19817#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 19818EOF
360d6699 19819
f9bc1684 19820 fi
698dcdb6 19821
a0b9e27f 19822 for ac_func in localtime
afc31813 19823do
a0b9e27f 19824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 19825echo "configure:19826: checking for $ac_func" >&5
a0b9e27f
MB
19826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19827 echo $ac_n "(cached) $ac_c" 1>&6
19828else
19829 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19830#line 19831 "configure"
10f2d63a 19831#include "confdefs.h"
afc31813 19832/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19833 which can conflict with char $ac_func(); below. */
afc31813
VZ
19834#include <assert.h>
19835/* Override any gcc2 internal prototype to avoid an error. */
19836/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19837 builtin and then its argument prototype would still apply. */
19838char $ac_func();
19839
19840int main() {
19841
afc31813
VZ
19842/* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19846choke me
19847#else
a0b9e27f 19848$ac_func();
afc31813
VZ
19849#endif
19850
a0b9e27f
MB
19851; return 0; }
19852EOF
dfa2a1d9 19853if { (eval echo configure:19854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19854 rm -rf conftest*
19855 eval "ac_cv_func_$ac_func=yes"
19856else
19857 echo "configure: failed program was:" >&5
19858 cat conftest.$ac_ext >&5
19859 rm -rf conftest*
19860 eval "ac_cv_func_$ac_func=no"
19861fi
19862rm -f conftest*
19863fi
afc31813 19864
a0b9e27f
MB
19865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19866 echo "$ac_t""yes" 1>&6
19867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19868 cat >> confdefs.h <<EOF
19869#define $ac_tr_func 1
19870EOF
19871
19872else
19873 echo "$ac_t""no" 1>&6
afc31813
VZ
19874fi
19875done
19876
5c6fa7d2 19877
8284b0c5 19878 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 19879 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
dfa2a1d9 19880echo "configure:19881: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
19881if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19882 echo $ac_n "(cached) $ac_c" 1>&6
19883else
19884
19885 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19886#line 19887 "configure"
0470b1e6
VZ
19887#include "confdefs.h"
19888
b4085ce6 19889 #include <time.h>
a0b9e27f
MB
19890
19891int main() {
0470b1e6
VZ
19892
19893 struct tm tm;
19894 tm.tm_gmtoff++;
a0b9e27f
MB
19895
19896; return 0; }
19897EOF
dfa2a1d9 19898if { (eval echo configure:19899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19899 rm -rf conftest*
19900
f03a98d8 19901 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 19902
0470b1e6 19903else
a0b9e27f
MB
19904 echo "configure: failed program was:" >&5
19905 cat conftest.$ac_ext >&5
19906 rm -rf conftest*
19907 wx_cv_struct_tm_has_gmtoff=no
19908
5c6fa7d2 19909fi
a0b9e27f
MB
19910rm -f conftest*
19911
247f5006 19912fi
a0b9e27f
MB
19913
19914echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
19915 fi
19916
19917 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 19918 cat >> confdefs.h <<\EOF
6232543b 19919#define WX_GMTOFF_IN_TM 1
a0b9e27f 19920EOF
0470b1e6 19921
3fcdd07b
VZ
19922 fi
19923
a0b9e27f 19924 for ac_func in gettimeofday ftime
3fcdd07b 19925do
a0b9e27f 19926echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 19927echo "configure:19928: checking for $ac_func" >&5
a0b9e27f
MB
19928if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19929 echo $ac_n "(cached) $ac_c" 1>&6
19930else
19931 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19932#line 19933 "configure"
3fcdd07b
VZ
19933#include "confdefs.h"
19934/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19935 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
19936#include <assert.h>
19937/* Override any gcc2 internal prototype to avoid an error. */
19938/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19939 builtin and then its argument prototype would still apply. */
19940char $ac_func();
19941
19942int main() {
19943
3fcdd07b
VZ
19944/* The GNU C library defines this for functions which it implements
19945 to always fail with ENOSYS. Some functions are actually named
19946 something starting with __ and the normal name is an alias. */
19947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19948choke me
19949#else
a0b9e27f 19950$ac_func();
3fcdd07b
VZ
19951#endif
19952
a0b9e27f
MB
19953; return 0; }
19954EOF
dfa2a1d9 19955if { (eval echo configure:19956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19956 rm -rf conftest*
19957 eval "ac_cv_func_$ac_func=yes"
19958else
19959 echo "configure: failed program was:" >&5
19960 cat conftest.$ac_ext >&5
19961 rm -rf conftest*
19962 eval "ac_cv_func_$ac_func=no"
19963fi
19964rm -f conftest*
19965fi
19966
19967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19968 echo "$ac_t""yes" 1>&6
19969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19970 cat >> confdefs.h <<EOF
19971#define $ac_tr_func 1
19972EOF
3fcdd07b 19973 break
a0b9e27f
MB
19974else
19975 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19976fi
19977done
19978
698dcdb6 19979
8284b0c5 19980 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19981 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
dfa2a1d9 19982echo "configure:19983: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19983if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19984 echo $ac_n "(cached) $ac_c" 1>&6
19985else
19986
19987
19988 ac_ext=C
19989# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19990ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19991ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19992ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19993cross_compiling=$ac_cv_prog_cxx_cross
52127426 19994
8284b0c5 19995
a0b9e27f 19996 cat > conftest.$ac_ext <<EOF
dfa2a1d9 19997#line 19998 "configure"
10f2d63a 19998#include "confdefs.h"
afc31813
VZ
19999
20000 #include <sys/time.h>
20001 #include <unistd.h>
a0b9e27f
MB
20002
20003int main() {
afc31813
VZ
20004
20005 struct timeval tv;
776862b4 20006 gettimeofday(&tv, NULL);
a0b9e27f
MB
20007
20008; return 0; }
20009EOF
dfa2a1d9 20010if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20011 rm -rf conftest*
afc31813 20012 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20013else
a0b9e27f
MB
20014 echo "configure: failed program was:" >&5
20015 cat conftest.$ac_ext >&5
20016 rm -rf conftest*
20017 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20018#line 20019 "configure"
10f2d63a 20019#include "confdefs.h"
afc31813
VZ
20020
20021 #include <sys/time.h>
20022 #include <unistd.h>
a0b9e27f
MB
20023
20024int main() {
afc31813
VZ
20025
20026 struct timeval tv;
20027 gettimeofday(&tv);
a0b9e27f
MB
20028
20029; return 0; }
20030EOF
dfa2a1d9 20031if { (eval echo configure:20032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20032 rm -rf conftest*
afc31813 20033 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20034else
a0b9e27f
MB
20035 echo "configure: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20037 rm -rf conftest*
20038
20039 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20040 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20041
20042
10f2d63a 20043fi
a0b9e27f
MB
20044rm -f conftest*
20045
10f2d63a 20046fi
a0b9e27f 20047rm -f conftest*
afc31813 20048 ac_ext=c
a0b9e27f 20049# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20050ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20051ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20052ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20053cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20054
a0b9e27f 20055
247f5006 20056fi
a0b9e27f
MB
20057
20058echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20059
afc31813 20060 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20061 cat >> confdefs.h <<\EOF
afc31813 20062#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20063EOF
afc31813
VZ
20064
20065 fi
20066 fi
20067
afc31813
VZ
20068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20069fi
20070
8284b0c5 20071
52127426 20072if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20073 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20074 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20075 wxUSE_SOCKETS="no"
20076 fi
0feee163 20077fi
b089607b 20078
0feee163
VZ
20079if test "$wxUSE_SOCKETS" = "yes"; then
20080 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20081 echo $ac_n "checking for socket""... $ac_c" 1>&6
dfa2a1d9 20082echo "configure:20083: checking for socket" >&5
a0b9e27f
MB
20083if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20084 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20085else
a0b9e27f 20086 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20087#line 20088 "configure"
c63c7106
VZ
20088#include "confdefs.h"
20089/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20090 which can conflict with char socket(); below. */
c63c7106
VZ
20091#include <assert.h>
20092/* Override any gcc2 internal prototype to avoid an error. */
20093/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20094 builtin and then its argument prototype would still apply. */
20095char socket();
20096
20097int main() {
20098
c63c7106
VZ
20099/* The GNU C library defines this for functions which it implements
20100 to always fail with ENOSYS. Some functions are actually named
20101 something starting with __ and the normal name is an alias. */
20102#if defined (__stub_socket) || defined (__stub___socket)
20103choke me
20104#else
a0b9e27f 20105socket();
c63c7106
VZ
20106#endif
20107
a0b9e27f
MB
20108; return 0; }
20109EOF
dfa2a1d9 20110if { (eval echo configure:20111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20111 rm -rf conftest*
20112 eval "ac_cv_func_socket=yes"
20113else
20114 echo "configure: failed program was:" >&5
20115 cat conftest.$ac_ext >&5
20116 rm -rf conftest*
20117 eval "ac_cv_func_socket=no"
20118fi
20119rm -f conftest*
20120fi
20121
20122if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20123 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20124 :
20125else
a0b9e27f
MB
20126 echo "$ac_t""no" 1>&6
20127echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
dfa2a1d9 20128echo "configure:20129: checking for socket in -lsocket" >&5
a0b9e27f
MB
20129ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20131 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20132else
a0b9e27f 20133 ac_save_LIBS="$LIBS"
c63c7106 20134LIBS="-lsocket $LIBS"
a0b9e27f 20135cat > conftest.$ac_ext <<EOF
dfa2a1d9 20136#line 20137 "configure"
c63c7106
VZ
20137#include "confdefs.h"
20138/* Override any gcc2 internal prototype to avoid an error. */
20139/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20140 builtin and then its argument prototype would still apply. */
20141char socket();
20142
20143int main() {
20144socket()
20145; return 0; }
20146EOF
dfa2a1d9 20147if { (eval echo configure:20148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20148 rm -rf conftest*
20149 eval "ac_cv_lib_$ac_lib_var=yes"
20150else
20151 echo "configure: failed program was:" >&5
20152 cat conftest.$ac_ext >&5
20153 rm -rf conftest*
20154 eval "ac_cv_lib_$ac_lib_var=no"
20155fi
20156rm -f conftest*
20157LIBS="$ac_save_LIBS"
20158
20159fi
20160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20161 echo "$ac_t""yes" 1>&6
d558c907
VS
20162 if test "$INET_LINK" != " -lsocket"; then
20163 INET_LINK="$INET_LINK -lsocket"
20164 fi
c63c7106 20165else
a0b9e27f 20166 echo "$ac_t""no" 1>&6
afc31813 20167
a0b9e27f 20168 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20169 wxUSE_SOCKETS=no
a0b9e27f
MB
20170
20171
6232543b 20172fi
b089607b 20173
a0b9e27f 20174
1e487827 20175fi
afc31813 20176
3a922bb4 20177 fi
0feee163 20178fi
51a9faba 20179
0feee163
VZ
20180if test "$wxUSE_SOCKETS" = "yes" ; then
20181 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20182 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
dfa2a1d9 20183echo "configure:20184: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20184if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20185 echo $ac_n "(cached) $ac_c" 1>&6
20186else
20187
20188
20189 ac_ext=C
20190# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20191ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20192ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20193ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20194cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20195
8284b0c5 20196
a0b9e27f 20197 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20198#line 20199 "configure"
afc31813 20199#include "confdefs.h"
51a9faba 20200
3a922bb4
RL
20201 #include <sys/types.h>
20202 #include <sys/socket.h>
a0b9e27f
MB
20203
20204int main() {
51a9faba 20205
3a922bb4
RL
20206 socklen_t len;
20207 getsockname(0, 0, &len);
a0b9e27f
MB
20208
20209; return 0; }
20210EOF
dfa2a1d9 20211if { (eval echo configure:20212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20212 rm -rf conftest*
51a9faba 20213 wx_cv_type_getsockname3=socklen_t
afc31813 20214else
a0b9e27f
MB
20215 echo "configure: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20217 rm -rf conftest*
20218 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20219#line 20220 "configure"
afc31813 20220#include "confdefs.h"
51a9faba 20221
3a922bb4
RL
20222 #include <sys/types.h>
20223 #include <sys/socket.h>
a0b9e27f
MB
20224
20225int main() {
51a9faba 20226
3a922bb4
RL
20227 size_t len;
20228 getsockname(0, 0, &len);
a0b9e27f
MB
20229
20230; return 0; }
20231EOF
dfa2a1d9 20232if { (eval echo configure:20233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20233 rm -rf conftest*
51a9faba 20234 wx_cv_type_getsockname3=size_t
afc31813 20235else
a0b9e27f
MB
20236 echo "configure: failed program was:" >&5
20237 cat conftest.$ac_ext >&5
20238 rm -rf conftest*
20239 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20240#line 20241 "configure"
afc31813 20241#include "confdefs.h"
51a9faba 20242
3a922bb4
RL
20243 #include <sys/types.h>
20244 #include <sys/socket.h>
a0b9e27f
MB
20245
20246int main() {
51a9faba 20247
3a922bb4
RL
20248 int len;
20249 getsockname(0, 0, &len);
a0b9e27f
MB
20250
20251; return 0; }
20252EOF
dfa2a1d9 20253if { (eval echo configure:20254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20254 rm -rf conftest*
51a9faba 20255 wx_cv_type_getsockname3=int
afc31813 20256else
a0b9e27f
MB
20257 echo "configure: failed program was:" >&5
20258 cat conftest.$ac_ext >&5
20259 rm -rf conftest*
20260 wx_cv_type_getsockname3=unknown
20261
afc31813 20262fi
a0b9e27f
MB
20263rm -f conftest*
20264
afc31813 20265fi
a0b9e27f
MB
20266rm -f conftest*
20267
afc31813 20268fi
a0b9e27f 20269rm -f conftest*
51a9faba 20270
3a922bb4 20271 ac_ext=c
a0b9e27f 20272# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20273ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20274ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20275ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20276cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20277
a0b9e27f 20278
247f5006 20279fi
a0b9e27f
MB
20280
20281echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20282
3a922bb4
RL
20283 if test "$wx_cv_type_getsockname3" = "unknown"; then
20284 wxUSE_SOCKETS=no
a0b9e27f 20285 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20286 else
a0b9e27f 20287 cat >> confdefs.h <<EOF
51a9faba 20288#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20289EOF
51a9faba 20290
3a922bb4 20291 fi
51a9faba
VZ
20292 fi
20293fi
afc31813 20294
51a9faba 20295if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20296 cat >> confdefs.h <<\EOF
afc31813 20297#define wxUSE_SOCKETS 1
a0b9e27f 20298EOF
afc31813 20299
70f7a477 20300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20301fi
20302
8284b0c5 20303
dc3d889d
VZ
20304if test "$wxUSE_GUI" = "yes"; then
20305
ac0c4cc3 20306 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20307 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20308 wxUSE_JOYSTICK=no
20309 fi
20310 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20311 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20312 wxUSE_JOYSTICK=no
f79bd02d
JS
20313 fi
20314 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20315 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20316 wxUSE_JOYSTICK=no
156b2523
GD
20317 fi
20318
3a922bb4
RL
20319 if test "$TOOLKIT" != "MSW"; then
20320 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20321 for ac_hdr in linux/joystick.h
10f2d63a 20322do
a0b9e27f
MB
20323ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20324echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 20325echo "configure:20326: checking for $ac_hdr" >&5
a0b9e27f
MB
20326if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20327 echo $ac_n "(cached) $ac_c" 1>&6
20328else
20329 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20330#line 20331 "configure"
247f5006 20331#include "confdefs.h"
a0b9e27f
MB
20332#include <$ac_hdr>
20333EOF
20334ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 20335{ (eval echo configure:20336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20336ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20337if test -z "$ac_err"; then
20338 rm -rf conftest*
20339 eval "ac_cv_header_$ac_safe=yes"
20340else
20341 echo "$ac_err" >&5
20342 echo "configure: failed program was:" >&5
247f5006 20343 cat conftest.$ac_ext >&5
a0b9e27f
MB
20344 rm -rf conftest*
20345 eval "ac_cv_header_$ac_safe=no"
247f5006 20346fi
a0b9e27f 20347rm -f conftest*
10f2d63a 20348fi
a0b9e27f
MB
20349if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20350 echo "$ac_t""yes" 1>&6
20351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20352 cat >> confdefs.h <<EOF
20353#define $ac_tr_hdr 1
20354EOF
20355
20356else
20357 echo "$ac_t""no" 1>&6
247f5006 20358fi
10f2d63a
VZ
20359done
20360
3a922bb4
RL
20361 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20362 wxUSE_JOYSTICK=no
a0b9e27f 20363 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20364 fi
20365 fi
20366 fi
b089607b 20367
3a922bb4 20368 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20369 cat >> confdefs.h <<\EOF
10f2d63a 20370#define wxUSE_JOYSTICK 1
a0b9e27f 20371EOF
10f2d63a 20372
3a922bb4
RL
20373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20374 fi
dc3d889d
VZ
20375fi
20376
8284b0c5 20377
b089607b
VZ
20378if test "$TOOLKIT" != "MSW"; then
20379
3a922bb4
RL
20380 HAVE_DL_FUNCS=0
20381 HAVE_SHL_FUNCS=0
0b9ab0bd 20382 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20383 if test "$USE_DARWIN" = 1; then
20384 HAVE_DL_FUNCS=1
20385 else
a0b9e27f 20386 for ac_func in dlopen
10f2d63a 20387do
a0b9e27f 20388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 20389echo "configure:20390: checking for $ac_func" >&5
a0b9e27f
MB
20390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20391 echo $ac_n "(cached) $ac_c" 1>&6
20392else
20393 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20394#line 20395 "configure"
10f2d63a
VZ
20395#include "confdefs.h"
20396/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20397 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20398#include <assert.h>
20399/* Override any gcc2 internal prototype to avoid an error. */
20400/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20401 builtin and then its argument prototype would still apply. */
20402char $ac_func();
20403
20404int main() {
20405
10f2d63a
VZ
20406/* The GNU C library defines this for functions which it implements
20407 to always fail with ENOSYS. Some functions are actually named
20408 something starting with __ and the normal name is an alias. */
20409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20410choke me
20411#else
a0b9e27f 20412$ac_func();
10f2d63a
VZ
20413#endif
20414
a0b9e27f
MB
20415; return 0; }
20416EOF
dfa2a1d9 20417if { (eval echo configure:20418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20418 rm -rf conftest*
20419 eval "ac_cv_func_$ac_func=yes"
20420else
20421 echo "configure: failed program was:" >&5
20422 cat conftest.$ac_ext >&5
20423 rm -rf conftest*
20424 eval "ac_cv_func_$ac_func=no"
20425fi
20426rm -f conftest*
20427fi
20428
20429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20430 echo "$ac_t""yes" 1>&6
20431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20432 cat >> confdefs.h <<EOF
20433#define $ac_tr_func 1
20434EOF
20435
20436 cat >> confdefs.h <<\EOF
10f2d63a 20437#define HAVE_DLOPEN 1
a0b9e27f 20438EOF
10f2d63a 20439
3a922bb4 20440 HAVE_DL_FUNCS=1
a0b9e27f 20441
10f2d63a 20442else
a0b9e27f
MB
20443 echo "$ac_t""no" 1>&6
20444echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
dfa2a1d9 20445echo "configure:20446: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20446ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20447if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20448 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20449else
a0b9e27f 20450 ac_save_LIBS="$LIBS"
10f2d63a 20451LIBS="-ldl $LIBS"
a0b9e27f 20452cat > conftest.$ac_ext <<EOF
dfa2a1d9 20453#line 20454 "configure"
10f2d63a
VZ
20454#include "confdefs.h"
20455/* Override any gcc2 internal prototype to avoid an error. */
20456/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20457 builtin and then its argument prototype would still apply. */
20458char dlopen();
20459
20460int main() {
20461dlopen()
20462; return 0; }
20463EOF
dfa2a1d9 20464if { (eval echo configure:20465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20465 rm -rf conftest*
20466 eval "ac_cv_lib_$ac_lib_var=yes"
20467else
20468 echo "configure: failed program was:" >&5
20469 cat conftest.$ac_ext >&5
20470 rm -rf conftest*
20471 eval "ac_cv_lib_$ac_lib_var=no"
20472fi
20473rm -f conftest*
20474LIBS="$ac_save_LIBS"
20475
20476fi
20477if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20478 echo "$ac_t""yes" 1>&6
20479
20480 cat >> confdefs.h <<\EOF
10f2d63a 20481#define HAVE_DLOPEN 1
a0b9e27f 20482EOF
10f2d63a 20483
3a922bb4 20484 HAVE_DL_FUNCS=1
3d63bc3a 20485 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20486
10f2d63a 20487else
a0b9e27f 20488 echo "$ac_t""no" 1>&6
10f2d63a 20489
a0b9e27f 20490 for ac_func in shl_load
10f2d63a 20491do
a0b9e27f 20492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 20493echo "configure:20494: checking for $ac_func" >&5
a0b9e27f
MB
20494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20495 echo $ac_n "(cached) $ac_c" 1>&6
20496else
20497 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20498#line 20499 "configure"
10f2d63a
VZ
20499#include "confdefs.h"
20500/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20501 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20502#include <assert.h>
20503/* Override any gcc2 internal prototype to avoid an error. */
20504/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20505 builtin and then its argument prototype would still apply. */
20506char $ac_func();
20507
20508int main() {
20509
10f2d63a
VZ
20510/* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20514choke me
20515#else
a0b9e27f 20516$ac_func();
10f2d63a
VZ
20517#endif
20518
a0b9e27f
MB
20519; return 0; }
20520EOF
dfa2a1d9 20521if { (eval echo configure:20522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20522 rm -rf conftest*
20523 eval "ac_cv_func_$ac_func=yes"
20524else
20525 echo "configure: failed program was:" >&5
20526 cat conftest.$ac_ext >&5
20527 rm -rf conftest*
20528 eval "ac_cv_func_$ac_func=no"
20529fi
20530rm -f conftest*
20531fi
20532
20533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20534 echo "$ac_t""yes" 1>&6
20535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20536 cat >> confdefs.h <<EOF
20537#define $ac_tr_func 1
20538EOF
20539
20540 cat >> confdefs.h <<\EOF
10f2d63a 20541#define HAVE_SHL_LOAD 1
a0b9e27f 20542EOF
10f2d63a 20543
3a922bb4 20544 HAVE_SHL_FUNCS=1
a0b9e27f 20545
10f2d63a 20546else
a0b9e27f
MB
20547 echo "$ac_t""no" 1>&6
20548echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
dfa2a1d9 20549echo "configure:20550: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20550ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20552 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20553else
a0b9e27f 20554 ac_save_LIBS="$LIBS"
f6bcfd97 20555LIBS="-lshl_load $LIBS"
a0b9e27f 20556cat > conftest.$ac_ext <<EOF
dfa2a1d9 20557#line 20558 "configure"
f6bcfd97 20558#include "confdefs.h"
8284b0c5 20559/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20560/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20561 builtin and then its argument prototype would still apply. */
20562char dld();
20563
20564int main() {
20565dld()
20566; return 0; }
20567EOF
dfa2a1d9 20568if { (eval echo configure:20569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20569 rm -rf conftest*
20570 eval "ac_cv_lib_$ac_lib_var=yes"
20571else
20572 echo "configure: failed program was:" >&5
20573 cat conftest.$ac_ext >&5
20574 rm -rf conftest*
20575 eval "ac_cv_lib_$ac_lib_var=no"
20576fi
20577rm -f conftest*
20578LIBS="$ac_save_LIBS"
f6bcfd97 20579
a0b9e27f
MB
20580fi
20581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20582 echo "$ac_t""yes" 1>&6
20583
3a922bb4 20584 HAVE_SHL_FUNCS=1
3d63bc3a 20585 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20586
20587else
20588 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20589fi
20590
a0b9e27f 20591
10f2d63a
VZ
20592fi
20593done
20594
a0b9e27f 20595
10f2d63a
VZ
20596fi
20597
a0b9e27f 20598
10f2d63a
VZ
20599fi
20600done
20601
5c6fa7d2 20602
8284b0c5 20603 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20604 for ac_func in dlerror
f6bcfd97 20605do
a0b9e27f 20606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 20607echo "configure:20608: checking for $ac_func" >&5
a0b9e27f
MB
20608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20609 echo $ac_n "(cached) $ac_c" 1>&6
20610else
20611 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20612#line 20613 "configure"
f6bcfd97
BP
20613#include "confdefs.h"
20614/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20615 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20616#include <assert.h>
20617/* Override any gcc2 internal prototype to avoid an error. */
20618/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20619 builtin and then its argument prototype would still apply. */
20620char $ac_func();
20621
20622int main() {
20623
f6bcfd97
BP
20624/* The GNU C library defines this for functions which it implements
20625 to always fail with ENOSYS. Some functions are actually named
20626 something starting with __ and the normal name is an alias. */
20627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20628choke me
20629#else
a0b9e27f 20630$ac_func();
f6bcfd97
BP
20631#endif
20632
a0b9e27f
MB
20633; return 0; }
20634EOF
dfa2a1d9 20635if { (eval echo configure:20636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20636 rm -rf conftest*
20637 eval "ac_cv_func_$ac_func=yes"
20638else
20639 echo "configure: failed program was:" >&5
20640 cat conftest.$ac_ext >&5
20641 rm -rf conftest*
20642 eval "ac_cv_func_$ac_func=no"
20643fi
20644rm -f conftest*
20645fi
20646
20647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20648 echo "$ac_t""yes" 1>&6
20649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20650 cat >> confdefs.h <<EOF
20651#define $ac_tr_func 1
20652EOF
20653 cat >> confdefs.h <<\EOF
f6bcfd97 20654#define HAVE_DLERROR 1
a0b9e27f 20655EOF
f6bcfd97
BP
20656
20657else
a0b9e27f
MB
20658 echo "$ac_t""no" 1>&6
20659echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
dfa2a1d9 20660echo "configure:20661: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20661ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20662if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20663 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20664else
a0b9e27f 20665 ac_save_LIBS="$LIBS"
f6bcfd97 20666LIBS="-ldl $LIBS"
a0b9e27f 20667cat > conftest.$ac_ext <<EOF
dfa2a1d9 20668#line 20669 "configure"
f6bcfd97
BP
20669#include "confdefs.h"
20670/* Override any gcc2 internal prototype to avoid an error. */
20671/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20672 builtin and then its argument prototype would still apply. */
20673char dlerror();
20674
20675int main() {
20676dlerror()
20677; return 0; }
20678EOF
dfa2a1d9 20679if { (eval echo configure:20680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20680 rm -rf conftest*
20681 eval "ac_cv_lib_$ac_lib_var=yes"
20682else
20683 echo "configure: failed program was:" >&5
20684 cat conftest.$ac_ext >&5
20685 rm -rf conftest*
20686 eval "ac_cv_lib_$ac_lib_var=no"
20687fi
20688rm -f conftest*
20689LIBS="$ac_save_LIBS"
20690
20691fi
20692if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20693 echo "$ac_t""yes" 1>&6
20694 cat >> confdefs.h <<\EOF
f6bcfd97 20695#define HAVE_DLERROR 1
a0b9e27f 20696EOF
f6bcfd97 20697
a0b9e27f
MB
20698else
20699 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20700fi
20701
20702fi
20703done
20704
3a922bb4
RL
20705 fi
20706 fi
f6bcfd97 20707
3a922bb4
RL
20708 if test "$HAVE_DL_FUNCS" = 0; then
20709 if test "$HAVE_SHL_FUNCS" = 0; then
20710 if test "$USE_UNIX" = 1; then
a0b9e27f 20711 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20712 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20713 wxUSE_DYNLIB_CLASS=no
20714 else
a0b9e27f 20715 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20716 fi
20717 fi
10f2d63a
VZ
20718 fi
20719 fi
20720fi
20721
0b9ab0bd 20722if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20723 cat >> confdefs.h <<\EOF
0b9ab0bd 20724#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20725EOF
0b9ab0bd
RL
20726
20727elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20728 cat >> confdefs.h <<\EOF
10f2d63a 20729#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20730EOF
10f2d63a
VZ
20731
20732fi
20733
8284b0c5 20734
1e6feb95 20735if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20736 cat >> confdefs.h <<\EOF
1e6feb95 20737#define wxUSE_FONTMAP 1
a0b9e27f 20738EOF
1e6feb95
VZ
20739
20740fi
20741
10f2d63a 20742if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20743 cat >> confdefs.h <<\EOF
10f2d63a 20744#define wxUSE_UNICODE 1
a0b9e27f 20745EOF
10f2d63a 20746
8284b0c5 20747
bbc3925a
VS
20748 if test "$wxUSE_MSW" != 1; then
20749 wxUSE_UNICODE_MSLU=no
20750 fi
a72a4bfa
VS
20751
20752 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20753 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
dfa2a1d9 20754echo "configure:20755: checking for main in -lunicows" >&5
a0b9e27f
MB
20755ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20756if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20757 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20758else
a0b9e27f 20759 ac_save_LIBS="$LIBS"
a72a4bfa 20760LIBS="-lunicows $LIBS"
a0b9e27f 20761cat > conftest.$ac_ext <<EOF
dfa2a1d9 20762#line 20763 "configure"
a72a4bfa
VS
20763#include "confdefs.h"
20764
a0b9e27f
MB
20765int main() {
20766main()
20767; return 0; }
20768EOF
dfa2a1d9 20769if { (eval echo configure:20770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20770 rm -rf conftest*
20771 eval "ac_cv_lib_$ac_lib_var=yes"
20772else
20773 echo "configure: failed program was:" >&5
20774 cat conftest.$ac_ext >&5
20775 rm -rf conftest*
20776 eval "ac_cv_lib_$ac_lib_var=no"
20777fi
20778rm -f conftest*
20779LIBS="$ac_save_LIBS"
8284b0c5 20780
a0b9e27f
MB
20781fi
20782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20783 echo "$ac_t""yes" 1>&6
20784
20785 cat >> confdefs.h <<\EOF
a72a4bfa 20786#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20787EOF
a72a4bfa 20788
a0b9e27f 20789
a72a4bfa 20790else
a0b9e27f 20791 echo "$ac_t""no" 1>&6
a72a4bfa 20792
a0b9e27f
MB
20793 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20794 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20795 wxUSE_UNICODE_MSLU=no
a0b9e27f 20796
a72a4bfa
VS
20797fi
20798
20799 fi
10f2d63a
VZ
20800fi
20801
10f2d63a 20802if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20803 cat >> confdefs.h <<\EOF
10f2d63a 20804#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20805EOF
10f2d63a
VZ
20806
20807fi
20808
8284b0c5
MB
20809
20810
10f2d63a
VZ
20811IODBC_C_SRC=""
20812if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20813 cat >> confdefs.h <<\EOF
10f2d63a 20814#define wxUSE_ODBC 1
a0b9e27f 20815EOF
10f2d63a
VZ
20816
20817 WXODBCFLAG="-D_IODBC_"
20818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
20819fi
20820
8284b0c5 20821
10f2d63a 20822if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 20823 cat >> confdefs.h <<\EOF
10f2d63a 20824#define wxUSE_POSTSCRIPT 1
a0b9e27f 20825EOF
10f2d63a
VZ
20826
20827fi
20828
a0b9e27f 20829cat >> confdefs.h <<\EOF
10f2d63a 20830#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 20831EOF
10f2d63a 20832
8284b0c5 20833
a0b9e27f 20834cat >> confdefs.h <<\EOF
10f2d63a 20835#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 20836EOF
10f2d63a 20837
8284b0c5
MB
20838
20839
10f2d63a 20840if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 20841 cat >> confdefs.h <<\EOF
10f2d63a 20842#define wxUSE_CONSTRAINTS 1
a0b9e27f 20843EOF
10f2d63a
VZ
20844
20845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20846fi
20847
20848if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 20849
8284b0c5 20850
bb811f17 20851 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 20852 cat >> confdefs.h <<\EOF
10f2d63a 20853#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 20854EOF
10f2d63a 20855
bb811f17
JS
20856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20857 fi
10f2d63a
VZ
20858fi
20859
20860if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 20861 cat >> confdefs.h <<\EOF
10f2d63a 20862#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 20863EOF
10f2d63a
VZ
20864
20865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20866 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20868 fi
20869fi
20870
20871if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 20872 cat >> confdefs.h <<\EOF
10f2d63a 20873#define wxUSE_HELP 1
a0b9e27f 20874EOF
10f2d63a
VZ
20875
20876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 20877
77e13408 20878 if test "$wxUSE_MSW" = 1; then
031d8228 20879 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 20880 cat >> confdefs.h <<\EOF
29fd3c0c 20881#define wxUSE_MS_HTML_HELP 1
a0b9e27f 20882EOF
29fd3c0c 20883
3e44f09d 20884 fi
3379ed37 20885 fi
031d8228
VS
20886
20887 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20888 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20889 cat >> confdefs.h <<\EOF
031d8228 20890#define wxUSE_WXHTML_HELP 1
a0b9e27f 20891EOF
031d8228
VS
20892
20893 else
a0b9e27f 20894 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
20895 wxUSE_WXHTML_HELP=no
20896 fi
20897 fi
10f2d63a
VZ
20898fi
20899
20900if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20901 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20902 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 20903 else
a0b9e27f 20904 cat >> confdefs.h <<\EOF
10f2d63a 20905#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 20906EOF
10f2d63a
VZ
20907
20908 fi
20909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20910fi
20911
10f2d63a 20912
10f2d63a
VZ
20913
20914if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 20915 cat >> confdefs.h <<\EOF
10f2d63a 20916#define wxUSE_X_RESOURCES 1
a0b9e27f 20917EOF
10f2d63a
VZ
20918
20919fi
20920
8284b0c5 20921
77e13408
RL
20922if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20923 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 20924 -o "$wxUSE_OLE" = "yes" \
77e13408 20925 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 20926 for ac_hdr in ole2.h
10f2d63a 20927do
a0b9e27f
MB
20928ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20929echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dfa2a1d9 20930echo "configure:20931: checking for $ac_hdr" >&5
a0b9e27f
MB
20931if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20932 echo $ac_n "(cached) $ac_c" 1>&6
20933else
20934 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20935#line 20936 "configure"
10f2d63a 20936#include "confdefs.h"
a0b9e27f
MB
20937#include <$ac_hdr>
20938EOF
20939ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dfa2a1d9 20940{ (eval echo configure:20941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20941ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20942if test -z "$ac_err"; then
20943 rm -rf conftest*
20944 eval "ac_cv_header_$ac_safe=yes"
20945else
20946 echo "$ac_err" >&5
20947 echo "configure: failed program was:" >&5
10f2d63a 20948 cat conftest.$ac_ext >&5
a0b9e27f
MB
20949 rm -rf conftest*
20950 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20951fi
a0b9e27f 20952rm -f conftest*
10f2d63a 20953fi
a0b9e27f
MB
20954if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20955 echo "$ac_t""yes" 1>&6
20956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20957 cat >> confdefs.h <<EOF
20958#define $ac_tr_hdr 1
20959EOF
20960
20961else
20962 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20963fi
20964done
20965
8284b0c5 20966
2b9bdf71
VZ
20967 if test "$ac_cv_header_ole2_h" = "yes" ; then
20968 if test "$GCC" = yes ; then
a0b9e27f
MB
20969
20970 ac_ext=C
20971# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20972ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20973ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20974ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20975cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
20976
20977
a0b9e27f 20978 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
dfa2a1d9 20979echo "configure:20980: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 20980 cat > conftest.$ac_ext <<EOF
dfa2a1d9 20981#line 20982 "configure"
8284b0c5
MB
20982#include "confdefs.h"
20983#include <windows.h>
20984 #include <ole2.h>
a0b9e27f 20985int main() {
8284b0c5 20986
a0b9e27f
MB
20987; return 0; }
20988EOF
dfa2a1d9 20989if { (eval echo configure:20990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20990 rm -rf conftest*
20991 echo "$ac_t""no" 1>&6
20992else
20993 echo "configure: failed program was:" >&5
20994 cat conftest.$ac_ext >&5
20995 rm -rf conftest*
20996 echo "$ac_t""yes" 1>&6
8284b0c5
MB
20997 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20998fi
a0b9e27f 20999rm -f conftest*
8284b0c5 21000 ac_ext=c
a0b9e27f 21001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21002ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21005cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21006
2b9bdf71 21007 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21008 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21009 cat >> confdefs.h <<\EOF
4f11a343 21010#define wxUSE_OLE 1
a0b9e27f 21011EOF
4f11a343 21012
8284b0c5 21013
2b9bdf71
VZ
21014 fi
21015
a0b9e27f 21016 cat >> confdefs.h <<\EOF
2b9bdf71 21017#define wxUSE_DATAOBJ 1
a0b9e27f 21018EOF
2b9bdf71
VZ
21019
21020 else
a0b9e27f 21021 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21022
21023 wxUSE_CLIPBOARD=no
21024 wxUSE_DRAG_AND_DROP=no
21025 wxUSE_DATAOBJ=no
3bce6687
JS
21026 wxUSE_OLE=no
21027 fi
21028
21029 if test "$wxUSE_METAFILE" = "yes"; then
21030 cat >> confdefs.h <<\EOF
21031#define wxUSE_METAFILE 1
21032EOF
21033
21034
21035 cat >> confdefs.h <<\EOF
21036#define wxUSE_ENH_METAFILE 1
21037EOF
21038
21039 fi
21040fi
21041
2b9bdf71
VZ
21042if test "$wxUSE_IPC" = "yes"; then
21043 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21044 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21045 fi
21046
a0b9e27f 21047 cat >> confdefs.h <<\EOF
2b9bdf71 21048#define wxUSE_IPC 1
a0b9e27f 21049EOF
2b9bdf71
VZ
21050
21051fi
21052
21053if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21054 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21055 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21056 wxUSE_CLIPBOARD=no
21057 fi
21058
21059 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21060 cat >> confdefs.h <<\EOF
2b9bdf71 21061#define wxUSE_CLIPBOARD 1
a0b9e27f 21062EOF
2b9bdf71 21063
8284b0c5 21064
a0b9e27f 21065 cat >> confdefs.h <<\EOF
673f4220 21066#define wxUSE_DATAOBJ 1
a0b9e27f 21067EOF
673f4220 21068
6c657b52 21069 fi
2b9bdf71
VZ
21070fi
21071
21072if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21073 if test "$wxUSE_GTK" = 1; then
21074 if test "$WXGTK12" != 1; then
a0b9e27f 21075 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21076 wxUSE_DRAG_AND_DROP=no
21077 fi
21078 fi
21079
2b9bdf71 21080 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21081 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21082 wxUSE_DRAG_AND_DROP=no
21083 fi
21084
f79bd02d 21085 if test "$wxUSE_X11" = 1; then
a0b9e27f 21086 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21087 wxUSE_DRAG_AND_DROP=no
21088 fi
21089
6c657b52 21090 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21091 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21092 wxUSE_DRAG_AND_DROP=no
21093 fi
21094
10f2d63a 21095 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21096 cat >> confdefs.h <<\EOF
10f2d63a 21097#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21098EOF
10f2d63a
VZ
21099
21100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21101 fi
21102
21103fi
21104
21105if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21106 cat >> confdefs.h <<\EOF
10f2d63a 21107#define wxUSE_SPLINES 1
a0b9e27f 21108EOF
10f2d63a
VZ
21109
21110fi
21111
8284b0c5 21112
1e6feb95
VZ
21113USES_CONTROLS=0
21114if test "$wxUSE_CONTROLS" = "yes"; then
21115 USES_CONTROLS=1
21116fi
21117
10f2d63a 21118if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21119 cat >> confdefs.h <<\EOF
10f2d63a 21120#define wxUSE_ACCEL 1
a0b9e27f 21121EOF
10f2d63a 21122
1e6feb95
VZ
21123 USES_CONTROLS=1
21124fi
21125
21126if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21127 cat >> confdefs.h <<\EOF
1e6feb95 21128#define wxUSE_BUTTON 1
a0b9e27f 21129EOF
1e6feb95
VZ
21130
21131 USES_CONTROLS=1
21132fi
21133
21134if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21135 cat >> confdefs.h <<\EOF
1e6feb95 21136#define wxUSE_BMPBUTTON 1
a0b9e27f 21137EOF
1e6feb95
VZ
21138
21139 USES_CONTROLS=1
21140fi
21141
21142if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21143 cat >> confdefs.h <<\EOF
1e6feb95 21144#define wxUSE_CALENDARCTRL 1
a0b9e27f 21145EOF
1e6feb95
VZ
21146
21147 USES_CONTROLS=1
21148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21149fi
21150
21151if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21152 cat >> confdefs.h <<\EOF
10f2d63a 21153#define wxUSE_CARET 1
a0b9e27f 21154EOF
10f2d63a 21155
1e6feb95 21156 USES_CONTROLS=1
10f2d63a
VZ
21157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21158fi
21159
21160if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21161 cat >> confdefs.h <<\EOF
10f2d63a 21162#define wxUSE_COMBOBOX 1
a0b9e27f 21163EOF
10f2d63a 21164
1e6feb95 21165 USES_CONTROLS=1
10f2d63a
VZ
21166fi
21167
21168if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21169 cat >> confdefs.h <<\EOF
10f2d63a 21170#define wxUSE_CHOICE 1
a0b9e27f 21171EOF
10f2d63a 21172
1e6feb95 21173 USES_CONTROLS=1
10f2d63a
VZ
21174fi
21175
21176if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21177 cat >> confdefs.h <<\EOF
10f2d63a 21178#define wxUSE_CHECKBOX 1
a0b9e27f 21179EOF
10f2d63a 21180
1e6feb95 21181 USES_CONTROLS=1
10f2d63a
VZ
21182fi
21183
21184if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21185 cat >> confdefs.h <<\EOF
10f2d63a 21186#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21187EOF
10f2d63a 21188
1e6feb95 21189 USES_CONTROLS=1
10f2d63a
VZ
21190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21191fi
21192
da494b40
MB
21193if test "$wxUSE_DISPLAY" = "yes"; then
21194 cat >> confdefs.h <<\EOF
21195#define wxUSE_DISPLAY 1
21196EOF
21197
21198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21199fi
21200
10f2d63a 21201if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21202 cat >> confdefs.h <<\EOF
10f2d63a 21203#define wxUSE_GAUGE 1
a0b9e27f 21204EOF
10f2d63a 21205
1e6feb95 21206 USES_CONTROLS=1
10f2d63a
VZ
21207fi
21208
d6a55c4b 21209if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21210 cat >> confdefs.h <<\EOF
d6a55c4b 21211#define wxUSE_GRID 1
a0b9e27f 21212EOF
10f2d63a 21213
1e6feb95 21214 USES_CONTROLS=1
d6a55c4b 21215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21216fi
21217
21218if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21219 cat >> confdefs.h <<\EOF
10f2d63a 21220#define wxUSE_IMAGLIST 1
a0b9e27f 21221EOF
10f2d63a
VZ
21222
21223fi
21224
21225if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21226 cat >> confdefs.h <<\EOF
10f2d63a 21227#define wxUSE_LISTBOX 1
a0b9e27f 21228EOF
10f2d63a 21229
1e6feb95 21230 USES_CONTROLS=1
10f2d63a
VZ
21231fi
21232
21233if test "$wxUSE_LISTCTRL" = "yes"; then
21234 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21235 cat >> confdefs.h <<\EOF
10f2d63a 21236#define wxUSE_LISTCTRL 1
a0b9e27f 21237EOF
10f2d63a 21238
1e6feb95 21239 USES_CONTROLS=1
10f2d63a
VZ
21240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21241 else
a0b9e27f 21242 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21243 fi
21244fi
21245
21246if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21247 cat >> confdefs.h <<\EOF
10f2d63a 21248#define wxUSE_NOTEBOOK 1
a0b9e27f 21249EOF
10f2d63a 21250
1e6feb95 21251 USES_CONTROLS=1
10f2d63a
VZ
21252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21253fi
21254
24176f2c 21255
10f2d63a 21256if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21257 cat >> confdefs.h <<\EOF
10f2d63a 21258#define wxUSE_RADIOBOX 1
a0b9e27f 21259EOF
10f2d63a 21260
1e6feb95 21261 USES_CONTROLS=1
10f2d63a
VZ
21262fi
21263
21264if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21265 cat >> confdefs.h <<\EOF
10f2d63a 21266#define wxUSE_RADIOBTN 1
a0b9e27f 21267EOF
10f2d63a 21268
1e6feb95 21269 USES_CONTROLS=1
10f2d63a
VZ
21270fi
21271
21272if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21273 cat >> confdefs.h <<\EOF
10f2d63a 21274#define wxUSE_SASH 1
a0b9e27f 21275EOF
10f2d63a
VZ
21276
21277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21278fi
21279
21280if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21281 cat >> confdefs.h <<\EOF
10f2d63a 21282#define wxUSE_SCROLLBAR 1
a0b9e27f 21283EOF
10f2d63a 21284
1e6feb95 21285 USES_CONTROLS=1
741a9306 21286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21287fi
21288
21289if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21290 cat >> confdefs.h <<\EOF
10f2d63a 21291#define wxUSE_SLIDER 1
a0b9e27f 21292EOF
10f2d63a 21293
1e6feb95 21294 USES_CONTROLS=1
10f2d63a
VZ
21295fi
21296
21297if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21298 cat >> confdefs.h <<\EOF
10f2d63a 21299#define wxUSE_SPINBTN 1
a0b9e27f 21300EOF
10f2d63a 21301
1e6feb95 21302 USES_CONTROLS=1
10f2d63a
VZ
21303fi
21304
56cfaa52 21305if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21306 cat >> confdefs.h <<\EOF
56cfaa52 21307#define wxUSE_SPINCTRL 1
a0b9e27f 21308EOF
56cfaa52 21309
1e6feb95 21310 USES_CONTROLS=1
56cfaa52
RR
21311fi
21312
10f2d63a 21313if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21314 cat >> confdefs.h <<\EOF
10f2d63a 21315#define wxUSE_SPLITTER 1
a0b9e27f 21316EOF
10f2d63a
VZ
21317
21318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21319fi
21320
21321if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21322 cat >> confdefs.h <<\EOF
10f2d63a 21323#define wxUSE_STATBMP 1
a0b9e27f 21324EOF
10f2d63a 21325
1e6feb95 21326 USES_CONTROLS=1
10f2d63a
VZ
21327fi
21328
21329if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21330 cat >> confdefs.h <<\EOF
10f2d63a 21331#define wxUSE_STATBOX 1
a0b9e27f 21332EOF
10f2d63a 21333
1e6feb95
VZ
21334 USES_CONTROLS=1
21335fi
21336
21337if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21338 cat >> confdefs.h <<\EOF
1e6feb95 21339#define wxUSE_STATTEXT 1
a0b9e27f 21340EOF
1e6feb95
VZ
21341
21342 USES_CONTROLS=1
10f2d63a
VZ
21343fi
21344
21345if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21346 cat >> confdefs.h <<\EOF
10f2d63a 21347#define wxUSE_STATLINE 1
a0b9e27f 21348EOF
10f2d63a 21349
89e6bf6d 21350 USES_CONTROLS=1
10f2d63a
VZ
21351fi
21352
21353if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21354 cat >> confdefs.h <<\EOF
10f2d63a 21355#define wxUSE_STATUSBAR 1
a0b9e27f 21356EOF
10f2d63a 21357
1e6feb95 21358 USES_CONTROLS=1
698dcdb6 21359
2286341c 21360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21361fi
21362
21363if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21364 cat >> confdefs.h <<\EOF
10f2d63a 21365#define wxUSE_TAB_DIALOG 1
a0b9e27f 21366EOF
10f2d63a
VZ
21367
21368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21369fi
21370
1e6feb95 21371if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21372 cat >> confdefs.h <<\EOF
1e6feb95 21373#define wxUSE_TEXTCTRL 1
a0b9e27f 21374EOF
1e6feb95
VZ
21375
21376 USES_CONTROLS=1
21377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21378fi
21379
1db8dc4a 21380if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21381 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21382 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21383 wxUSE_TOGGLEBTN=no
21384 fi
21385 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21386 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21387 wxUSE_TOGGLEBTN=no
21388 fi
21389
21390 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21391 cat >> confdefs.h <<\EOF
1db8dc4a 21392#define wxUSE_TOGGLEBTN 1
a0b9e27f 21393EOF
1db8dc4a 21394
1e6feb95 21395 USES_CONTROLS=1
a45d7ab7 21396 fi
1db8dc4a
VZ
21397fi
21398
360d6699 21399if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21400 cat >> confdefs.h <<\EOF
360d6699 21401#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21402EOF
360d6699
VZ
21403
21404 wxUSE_TOOLBAR="yes"
1e6feb95 21405 USES_CONTROLS=1
360d6699
VZ
21406fi
21407
10f2d63a 21408if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21409 cat >> confdefs.h <<\EOF
10f2d63a 21410#define wxUSE_TOOLBAR 1
a0b9e27f 21411EOF
10f2d63a 21412
1e6feb95 21413 USES_CONTROLS=1
698dcdb6 21414
360d6699
VZ
21415 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21416 wxUSE_TOOLBAR_NATIVE="yes"
21417 fi
21418
1e6feb95 21419 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21420 cat >> confdefs.h <<\EOF
360d6699 21421#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21422EOF
360d6699 21423
1e6feb95
VZ
21424 USES_CONTROLS=1
21425 fi
21426
21427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21428fi
21429
10f2d63a
VZ
21430if test "$wxUSE_TOOLTIPS" = "yes"; then
21431 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21432 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21433 else
89e6bf6d
VZ
21434 if test "$wxUSE_UNIVERSAL" = "yes"; then
21435 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21436 else
89e6bf6d 21437 cat >> confdefs.h <<\EOF
10f2d63a 21438#define wxUSE_TOOLTIPS 1
a0b9e27f 21439EOF
10f2d63a
VZ
21440
21441 fi
21442 fi
21443fi
21444
21445if test "$wxUSE_TREECTRL" = "yes"; then
21446 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21447 cat >> confdefs.h <<\EOF
10f2d63a 21448#define wxUSE_TREECTRL 1
a0b9e27f 21449EOF
10f2d63a 21450
1e6feb95 21451 USES_CONTROLS=1
10f2d63a
VZ
21452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21453 else
a0b9e27f 21454 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21455 fi
21456fi
21457
9f41d601 21458if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21459 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21460 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21461 else
485cf710 21462 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21463 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21464 else
3c011993 21465 if test "$wxUSE_PM" = 1; then
a0b9e27f 21466 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21467 else
a0b9e27f 21468 cat >> confdefs.h <<\EOF
9f41d601 21469#define wxUSE_POPUPWIN 1
a0b9e27f 21470EOF
9f41d601 21471
8284b0c5 21472
3c011993
VZ
21473 USES_CONTROLS=1
21474 fi
485cf710 21475 fi
6abe4b65 21476 fi
9f41d601
RR
21477fi
21478
dd964dcc 21479if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21480 if test "$wxUSE_PM" = 1; then
a0b9e27f 21481 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21482 else
a0b9e27f 21483 cat >> confdefs.h <<\EOF
dd964dcc 21484#define wxUSE_TIPWINDOW 1
a0b9e27f 21485EOF
dd964dcc 21486
3c011993 21487 fi
dd964dcc
VZ
21488fi
21489
1e6feb95 21490if test "$USES_CONTROLS" = 1; then
a0b9e27f 21491 cat >> confdefs.h <<\EOF
1e6feb95 21492#define wxUSE_CONTROLS 1
a0b9e27f 21493EOF
10f2d63a 21494
10f2d63a
VZ
21495fi
21496
8284b0c5 21497
1e6feb95 21498
24fd6d87 21499if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21500 cat >> confdefs.h <<\EOF
24fd6d87 21501#define wxUSE_DRAGIMAGE 1
a0b9e27f 21502EOF
24fd6d87
VZ
21503
21504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21505fi
21506
1e6feb95 21507if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21508 cat >> confdefs.h <<\EOF
1e6feb95 21509#define wxUSE_MENUS 1
a0b9e27f 21510EOF
10f2d63a 21511
1e6feb95 21512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21513fi
21514
1e6feb95 21515if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21516 cat >> confdefs.h <<\EOF
1e6feb95 21517#define wxUSE_METAFILE 1
a0b9e27f 21518EOF
10f2d63a 21519
10f2d63a
VZ
21520fi
21521
1e6feb95 21522if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21523 cat >> confdefs.h <<\EOF
1e6feb95 21524#define wxUSE_MIMETYPE 1
a0b9e27f 21525EOF
10f2d63a 21526
10f2d63a
VZ
21527fi
21528
3e44f09d 21529if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21530 cat >> confdefs.h <<\EOF
3e44f09d 21531#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21532EOF
3e44f09d 21533
321d2b14
VZ
21534if test "$TOOLKIT" = "MSW"; then
21535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21536fi
21537
3e44f09d
VZ
21538fi
21539
4cdb0ab0 21540if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21541 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21542 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21543 wxUSE_PROTOCOL=no
21544 fi
21545
21546 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21547 cat >> confdefs.h <<\EOF
4cdb0ab0 21548#define wxUSE_PROTOCOL 1
a0b9e27f 21549EOF
4cdb0ab0 21550
8284b0c5 21551
3954f9ca 21552 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21553 cat >> confdefs.h <<\EOF
4cdb0ab0 21554#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21555EOF
4cdb0ab0 21556
3954f9ca
VS
21557 fi
21558 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21559 cat >> confdefs.h <<\EOF
4cdb0ab0 21560#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21561EOF
4cdb0ab0 21562
3954f9ca
VS
21563 fi
21564 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21565 cat >> confdefs.h <<\EOF
3954f9ca 21566#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21567EOF
3954f9ca
VS
21568
21569 fi
4cdb0ab0 21570 fi
3954f9ca
VS
21571fi
21572
21573if test "$wxUSE_URL" = "yes"; then
21574 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21575 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21576 wxUSE_URL=no
21577 fi
21578 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21579 cat >> confdefs.h <<\EOF
3954f9ca 21580#define wxUSE_URL 1
a0b9e27f 21581EOF
4cdb0ab0
VS
21582
21583 fi
21584fi
21585
10f2d63a 21586if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21587 cat >> confdefs.h <<\EOF
10f2d63a 21588#define wxUSE_MINIFRAME 1
a0b9e27f 21589EOF
10f2d63a
VZ
21590
21591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21592fi
21593
21594if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21595 cat >> confdefs.h <<\EOF
10f2d63a 21596#define wxUSE_HTML 1
a0b9e27f 21597EOF
10f2d63a
VZ
21598
21599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21600fi
21601
21602if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21603 cat >> confdefs.h <<\EOF
1e487827 21604#define wxUSE_VALIDATORS 1
a0b9e27f 21605EOF
703e0a69 21606
698dcdb6
VZ
21607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21608fi
21609
edae8572 21610if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21611 cat >> confdefs.h <<\EOF
edae8572 21612#define wxUSE_PALETTE 1
a0b9e27f 21613EOF
edae8572
VZ
21614
21615fi
21616
698dcdb6 21617if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21618 cat >> confdefs.h <<\EOF
698dcdb6 21619#define wxUSE_IMAGE 1
a0b9e27f 21620EOF
698dcdb6
VZ
21621
21622fi
21623
21624if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21625 cat >> confdefs.h <<\EOF
698dcdb6 21626#define wxUSE_GIF 1
a0b9e27f 21627EOF
698dcdb6
VZ
21628
21629fi
21630
21631if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21632 cat >> confdefs.h <<\EOF
698dcdb6 21633#define wxUSE_PCX 1
a0b9e27f 21634EOF
698dcdb6
VZ
21635
21636fi
21637
4b6b4dfc 21638if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21639 cat >> confdefs.h <<\EOF
4b6b4dfc 21640#define wxUSE_IFF 1
a0b9e27f 21641EOF
4b6b4dfc
RR
21642
21643fi
21644
698dcdb6 21645if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21646 cat >> confdefs.h <<\EOF
698dcdb6 21647#define wxUSE_PNM 1
a0b9e27f 21648EOF
698dcdb6
VZ
21649
21650fi
21651
21652if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21653 cat >> confdefs.h <<\EOF
698dcdb6 21654#define wxUSE_XPM 1
a0b9e27f 21655EOF
698dcdb6
VZ
21656
21657fi
21658
658974ae 21659if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21660 cat >> confdefs.h <<\EOF
658974ae 21661#define wxUSE_ICO_CUR 1
a0b9e27f 21662EOF
658974ae
VS
21663
21664fi
21665
a72a4bfa
VS
21666if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21667 LIBS=" -lunicows $LIBS"
21668fi
21669
8284b0c5 21670
1e6feb95 21671if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21672 cat >> confdefs.h <<\EOF
1e6feb95 21673#define wxUSE_CHOICEDLG 1
a0b9e27f 21674EOF
1e6feb95
VZ
21675
21676fi
21677
21678if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21679 cat >> confdefs.h <<\EOF
1e6feb95 21680#define wxUSE_COLOURDLG 1
a0b9e27f 21681EOF
1e6feb95
VZ
21682
21683fi
21684
21685if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21686 cat >> confdefs.h <<\EOF
1e6feb95 21687#define wxUSE_FILEDLG 1
a0b9e27f 21688EOF
1e6feb95
VZ
21689
21690fi
21691
8db37e06 21692if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21693 cat >> confdefs.h <<\EOF
8db37e06 21694#define wxUSE_FINDREPLDLG 1
a0b9e27f 21695EOF
8db37e06
VZ
21696
21697fi
21698
1e6feb95 21699if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21700 cat >> confdefs.h <<\EOF
1e6feb95 21701#define wxUSE_FONTDLG 1
a0b9e27f 21702EOF
1e6feb95
VZ
21703
21704fi
21705
21706if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21707 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21708 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21709 else
a0b9e27f 21710 cat >> confdefs.h <<\EOF
1e6feb95 21711#define wxUSE_DIRDLG 1
a0b9e27f 21712EOF
1e6feb95 21713
1e6feb95
VZ
21714 fi
21715fi
21716
21717if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21718 cat >> confdefs.h <<\EOF
1e6feb95 21719#define wxUSE_MSGDLG 1
a0b9e27f 21720EOF
1e6feb95
VZ
21721
21722fi
21723
21724if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21725 cat >> confdefs.h <<\EOF
1e6feb95 21726#define wxUSE_NUMBERDLG 1
a0b9e27f 21727EOF
1e6feb95
VZ
21728
21729fi
21730
21731if test "$wxUSE_PROGRESSDLG" = "yes"; then
21732 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21733 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21734 else
a0b9e27f 21735 cat >> confdefs.h <<\EOF
1e6feb95 21736#define wxUSE_PROGRESSDLG 1
a0b9e27f 21737EOF
1e6feb95
VZ
21738
21739 fi
21740fi
21741
cbca9943 21742if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21743 cat >> confdefs.h <<\EOF
cbca9943 21744#define wxUSE_SPLASH 1
a0b9e27f 21745EOF
cbca9943
VZ
21746
21747fi
21748
1e6feb95
VZ
21749if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21750 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21751 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21752 else
a0b9e27f 21753 cat >> confdefs.h <<\EOF
1e6feb95 21754#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21755EOF
1e6feb95 21756
7b4a847f
RR
21757 fi
21758fi
579d8138 21759
8284b0c5 21760if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21761 cat >> confdefs.h <<\EOF
8284b0c5 21762#define wxUSE_TEXTDLG 1
a0b9e27f 21763EOF
8284b0c5
MB
21764
21765fi
21766
21767if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21768 cat >> confdefs.h <<\EOF
8284b0c5 21769#define wxUSE_WIZARDDLG 1
a0b9e27f 21770EOF
8284b0c5
MB
21771
21772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21773fi
21774
21775
21776if test "$cross_compiling" = "yes"; then
21777 OSINFO="\"$host\""
21778else
21779 OSINFO=`uname -s -r -m`
21780 OSINFO="\"$OSINFO\""
21781fi
21782
a0b9e27f 21783cat >> confdefs.h <<EOF
8284b0c5 21784#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21785EOF
8284b0c5
MB
21786
21787
21788
21789if test "x$prefix" != "xNONE"; then
21790 wxPREFIX=$prefix
21791else
21792 wxPREFIX=$ac_default_prefix
21793fi
21794
a0b9e27f 21795cat >> confdefs.h <<EOF
8284b0c5 21796#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21797EOF
8284b0c5
MB
21798
21799
52c71b80
VZ
21800top_builddir=`pwd`
21801
8284b0c5
MB
21802
21803
21804
21805if test "$wxUSE_MAC" = 1 ; then
21806 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21807fi
ac0c4cc3
DE
21808if test "$wxUSE_COCOA" = 1 ; then
21809 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
21810fi
8284b0c5
MB
21811
21812
2b5f62a0
VZ
21813LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21814
21815have_cos=0
21816have_floor=0
21817for ac_func in cos
21818do
21819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 21820echo "configure:21821: checking for $ac_func" >&5
2b5f62a0
VZ
21821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21822 echo $ac_n "(cached) $ac_c" 1>&6
21823else
21824 cat > conftest.$ac_ext <<EOF
dfa2a1d9 21825#line 21826 "configure"
2b5f62a0
VZ
21826#include "confdefs.h"
21827/* System header to define __stub macros and hopefully few prototypes,
21828 which can conflict with char $ac_func(); below. */
21829#include <assert.h>
21830/* Override any gcc2 internal prototype to avoid an error. */
21831/* We use char because int might match the return type of a gcc2
21832 builtin and then its argument prototype would still apply. */
21833char $ac_func();
21834
21835int main() {
21836
21837/* The GNU C library defines this for functions which it implements
21838 to always fail with ENOSYS. Some functions are actually named
21839 something starting with __ and the normal name is an alias. */
21840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21841choke me
21842#else
21843$ac_func();
21844#endif
21845
21846; return 0; }
21847EOF
dfa2a1d9 21848if { (eval echo configure:21849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21849 rm -rf conftest*
21850 eval "ac_cv_func_$ac_func=yes"
21851else
21852 echo "configure: failed program was:" >&5
21853 cat conftest.$ac_ext >&5
21854 rm -rf conftest*
21855 eval "ac_cv_func_$ac_func=no"
21856fi
21857rm -f conftest*
21858fi
21859
21860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21861 echo "$ac_t""yes" 1>&6
21862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21863 cat >> confdefs.h <<EOF
21864#define $ac_tr_func 1
21865EOF
21866 have_cos=1
21867else
21868 echo "$ac_t""no" 1>&6
21869fi
21870done
21871
21872for ac_func in floor
21873do
21874echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 21875echo "configure:21876: checking for $ac_func" >&5
2b5f62a0
VZ
21876if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21877 echo $ac_n "(cached) $ac_c" 1>&6
21878else
21879 cat > conftest.$ac_ext <<EOF
dfa2a1d9 21880#line 21881 "configure"
2b5f62a0
VZ
21881#include "confdefs.h"
21882/* System header to define __stub macros and hopefully few prototypes,
21883 which can conflict with char $ac_func(); below. */
21884#include <assert.h>
21885/* Override any gcc2 internal prototype to avoid an error. */
21886/* We use char because int might match the return type of a gcc2
21887 builtin and then its argument prototype would still apply. */
21888char $ac_func();
21889
21890int main() {
21891
21892/* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21896choke me
21897#else
21898$ac_func();
21899#endif
21900
21901; return 0; }
21902EOF
dfa2a1d9 21903if { (eval echo configure:21904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21904 rm -rf conftest*
21905 eval "ac_cv_func_$ac_func=yes"
21906else
21907 echo "configure: failed program was:" >&5
21908 cat conftest.$ac_ext >&5
21909 rm -rf conftest*
21910 eval "ac_cv_func_$ac_func=no"
21911fi
21912rm -f conftest*
21913fi
21914
21915if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21916 echo "$ac_t""yes" 1>&6
21917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21918 cat >> confdefs.h <<EOF
21919#define $ac_tr_func 1
21920EOF
21921 have_floor=1
21922else
21923 echo "$ac_t""no" 1>&6
21924fi
21925done
21926
21927echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
dfa2a1d9 21928echo "configure:21929: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
21929if test "$have_cos" = 1 -a "$have_floor" = 1; then
21930 echo "$ac_t""yes" 1>&6
21931else
21932 echo "$ac_t""no" 1>&6
21933 LIBS="$LIBS -lm"
21934 # use different functions to avoid configure caching
21935 have_sin=0
21936 have_ceil=0
21937 for ac_func in sin
21938do
21939echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 21940echo "configure:21941: checking for $ac_func" >&5
2b5f62a0
VZ
21941if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21942 echo $ac_n "(cached) $ac_c" 1>&6
21943else
21944 cat > conftest.$ac_ext <<EOF
dfa2a1d9 21945#line 21946 "configure"
2b5f62a0
VZ
21946#include "confdefs.h"
21947/* System header to define __stub macros and hopefully few prototypes,
21948 which can conflict with char $ac_func(); below. */
21949#include <assert.h>
21950/* Override any gcc2 internal prototype to avoid an error. */
21951/* We use char because int might match the return type of a gcc2
21952 builtin and then its argument prototype would still apply. */
21953char $ac_func();
21954
21955int main() {
21956
21957/* The GNU C library defines this for functions which it implements
21958 to always fail with ENOSYS. Some functions are actually named
21959 something starting with __ and the normal name is an alias. */
21960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21961choke me
21962#else
21963$ac_func();
21964#endif
21965
21966; return 0; }
21967EOF
dfa2a1d9 21968if { (eval echo configure:21969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21969 rm -rf conftest*
21970 eval "ac_cv_func_$ac_func=yes"
21971else
21972 echo "configure: failed program was:" >&5
21973 cat conftest.$ac_ext >&5
21974 rm -rf conftest*
21975 eval "ac_cv_func_$ac_func=no"
21976fi
21977rm -f conftest*
21978fi
21979
21980if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21981 echo "$ac_t""yes" 1>&6
21982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21983 cat >> confdefs.h <<EOF
21984#define $ac_tr_func 1
21985EOF
21986 have_sin=1
21987else
21988 echo "$ac_t""no" 1>&6
21989fi
21990done
21991
21992 for ac_func in ceil
21993do
21994echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dfa2a1d9 21995echo "configure:21996: checking for $ac_func" >&5
2b5f62a0
VZ
21996if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21997 echo $ac_n "(cached) $ac_c" 1>&6
21998else
21999 cat > conftest.$ac_ext <<EOF
dfa2a1d9 22000#line 22001 "configure"
2b5f62a0
VZ
22001#include "confdefs.h"
22002/* System header to define __stub macros and hopefully few prototypes,
22003 which can conflict with char $ac_func(); below. */
22004#include <assert.h>
22005/* Override any gcc2 internal prototype to avoid an error. */
22006/* We use char because int might match the return type of a gcc2
22007 builtin and then its argument prototype would still apply. */
22008char $ac_func();
22009
22010int main() {
22011
22012/* The GNU C library defines this for functions which it implements
22013 to always fail with ENOSYS. Some functions are actually named
22014 something starting with __ and the normal name is an alias. */
22015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22016choke me
22017#else
22018$ac_func();
22019#endif
22020
22021; return 0; }
22022EOF
dfa2a1d9 22023if { (eval echo configure:22024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22024 rm -rf conftest*
22025 eval "ac_cv_func_$ac_func=yes"
22026else
22027 echo "configure: failed program was:" >&5
22028 cat conftest.$ac_ext >&5
22029 rm -rf conftest*
22030 eval "ac_cv_func_$ac_func=no"
22031fi
22032rm -f conftest*
22033fi
22034
22035if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22036 echo "$ac_t""yes" 1>&6
22037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22038 cat >> confdefs.h <<EOF
22039#define $ac_tr_func 1
22040EOF
22041 have_ceil=1
22042else
22043 echo "$ac_t""no" 1>&6
22044fi
22045done
22046
22047 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
dfa2a1d9 22048echo "configure:22049: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22049 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22050 echo "$ac_t""yes" 1>&6
22051 else
22052 echo "$ac_t""no" 1>&6
22053 # not sure we should warn the user, crash, etc.
22054 fi
22055fi
8284b0c5
MB
22056
22057if test "$wxUSE_GUI" = "yes"; then
22058
22059 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22060
a0b9e27f 22061
8284b0c5
MB
22062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22063 drawing dynamic erase event exec font image \
1542ea39 22064 minimal propsize rotate shaped widgets"
8284b0c5
MB
22065
22066 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22067else
22068 SAMPLES_SUBDIRS="console"
22069fi
22070
22071
22072INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22073-I\${top_srcdir}/include \
22074$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22075$TOOLKIT_INCLUDE"
22076
22077if test "$wxUSE_GTK" = 1; then
22078 WXCONFIG_INCLUDE=
22079else
22080 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22081fi
22082
22083if test "$GXX" = yes ; then
22084 CXXWARNINGS="-Wall"
a0b9e27f 22085
8284b0c5
MB
22086 if test "$wxUSE_NO_DEPS" = "no" ; then
22087 CFLAGS="-MMD $CFLAGS"
22088 CXXFLAGS="-MMD $CXXFLAGS"
22089 fi
22090fi
22091
b2fee376 22092EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22093
b2fee376 22094CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22095CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22096CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22097LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22098
22099LDFLAGS="$LDFLAGS $PROFILE"
22100
22101SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
2f51a9ec
GD
22170
22171
22172
22173
f6bcfd97 22174
dad6c0ea 22175
caa2c79b 22176
3711412e 22177
1e6feb95
VZ
22178
22179
885d4bf5
VS
22180
22181
22182
22183
9b695262
VZ
22184
22185
62d0491b 22186
ef7f2189 22187
40f7145c 22188
2b5f62a0
VZ
22189
22190
22191
22192
22193
2bffed64
VZ
22194
22195
3bd8fb5f 22196
e26c13cf 22197
52c71b80 22198
36825681 22199
4f5a7f74 22200
10f2d63a 22201
a0b9e27f
MB
22202
22203echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
dfa2a1d9 22204echo "configure:22205: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22205set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22206if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22207 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22208else
a0b9e27f 22209 cat > conftestmake <<\EOF
10f2d63a
VZ
22210all:
22211 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22212EOF
10f2d63a 22213# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22214eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22215if test -n "$ac_maketemp"; then
22216 eval ac_cv_prog_make_${ac_make}_set=yes
22217else
22218 eval ac_cv_prog_make_${ac_make}_set=no
22219fi
a0b9e27f 22220rm -f conftestmake
10f2d63a
VZ
22221fi
22222if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22223 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22224 SET_MAKE=
22225else
a0b9e27f 22226 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22227 SET_MAKE="MAKE=${MAKE-make}"
22228fi
22229
8284b0c5 22230
3a922bb4
RL
22231if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22232 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22233fi
665bbe97 22234
8284b0c5 22235
10f2d63a 22236
57973b9c
VZ
22237wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22238wx_cv_if_gnu_make=$IF_GNU_MAKE
22239wx_cv_path_ifs=$PATH_IFS
22240wx_cv_program_ext=$PROGRAM_EXT
22241wx_cv_target_library=$WX_TARGET_LIBRARY
22242wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22243wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22244wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22245wx_cv_release=${WX_RELEASE}
22246wx_cv_current=${WX_CURRENT}
22247wx_cv_revision=${WX_REVISION}
22248wx_cv_age=${WX_AGE}
27635a90 22249wx_cv_use_gui=${USE_GUI}
5e66eee1 22250wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22251export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22252 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22253 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22254 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22255 wx_cv_use_gui wx_cv_use_resources
57973b9c 22256
a0b9e27f 22257subdirs="demos samples utils contrib"
8284b0c5 22258
10f2d63a 22259
a0b9e27f
MB
22260trap '' 1 2 15
22261cat > confcache <<\EOF
10f2d63a
VZ
22262# This file is a shell script that caches the results of configure
22263# tests run on this system so they can be shared between configure
a0b9e27f
MB
22264# scripts and configure runs. It is not useful on other systems.
22265# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22266#
a0b9e27f
MB
22267# By default, configure uses ./config.cache as the cache file,
22268# creating it if it does not exist already. You can give configure
22269# the --cache-file=FILE option to use a different cache file; that is
22270# what configure does when it calls configure scripts in
22271# subdirectories, so they share the cache.
22272# Giving --cache-file=/dev/null disables caching, for debugging configure.
22273# config.status only pays attention to the cache file if you give it the
22274# --recheck option to rerun configure.
10f2d63a 22275#
a0b9e27f 22276EOF
10f2d63a
VZ
22277# The following way of writing the cache mishandles newlines in values,
22278# but we know of no workaround that is simple, portable, and efficient.
22279# So, don't put newlines in cache variables' values.
22280# Ultrix sh set writes to stderr and can't be redirected directly,
22281# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22282(set) 2>&1 |
22283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22284 *ac_space=\ *)
22285 # `set' does not quote correctly, so add quotes (double-quote substitution
22286 # turns \\\\ into \\, and sed turns \\ into \).
22287 sed -n \
22288 -e "s/'/'\\\\''/g" \
22289 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22290 ;;
22291 *)
22292 # `set' quotes correctly as required by POSIX, so do not add quotes.
22293 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22294 ;;
22295 esac >> confcache
22296if cmp -s $cache_file confcache; then
22297 :
22298else
10f2d63a 22299 if test -w $cache_file; then
a0b9e27f
MB
22300 echo "updating cache $cache_file"
22301 cat confcache > $cache_file
10f2d63a
VZ
22302 else
22303 echo "not updating unwritable cache $cache_file"
22304 fi
22305fi
22306rm -f confcache
22307
a0b9e27f
MB
22308trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22309
10f2d63a
VZ
22310test "x$prefix" = xNONE && prefix=$ac_default_prefix
22311# Let make expand exec_prefix.
22312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22313
a0b9e27f
MB
22314# Any assignment to VPATH causes Sun make to only execute
22315# the first set of double-colon rules, so remove it if not needed.
22316# If there is a colon in the path, we need to keep it.
10f2d63a 22317if test "x$srcdir" = x.; then
a0b9e27f 22318 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22319fi
22320
a0b9e27f 22321trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22322
a0b9e27f 22323DEFS=-DHAVE_CONFIG_H
8284b0c5 22324
a0b9e27f 22325# Without the "./", some shells look in PATH for config.status.
247f5006 22326: ${CONFIG_STATUS=./config.status}
52127426 22327
a0b9e27f
MB
22328echo creating $CONFIG_STATUS
22329rm -f $CONFIG_STATUS
22330cat > $CONFIG_STATUS <<EOF
22331#! /bin/sh
22332# Generated automatically by configure.
22333# Run this file to recreate the current configuration.
22334# This directory was configured as follows,
22335# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22336#
a0b9e27f 22337# $0 $ac_configure_args
247f5006 22338#
a0b9e27f
MB
22339# Compiler output produced by configure, useful for debugging
22340# configure, is in ./config.log if it exists.
247f5006 22341
a0b9e27f
MB
22342ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22343for ac_option
247f5006 22344do
a0b9e27f
MB
22345 case "\$ac_option" in
22346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22347 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22348 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22349 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22350 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22351 exit 0 ;;
22352 -help | --help | --hel | --he | --h)
22353 echo "\$ac_cs_usage"; exit 0 ;;
22354 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22355 esac
22356done
22357
a0b9e27f
MB
22358ac_given_srcdir=$srcdir
22359ac_given_INSTALL="$INSTALL"
247f5006 22360
a0b9e27f
MB
22361trap 'rm -fr `echo "
22362 wx-config
2b5f62a0 22363 version-script
a0b9e27f
MB
22364 src/make.env
22365 src/makeprog.env
22366 src/makelib.env
22367 Makefile
22368 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22369EOF
22370cat >> $CONFIG_STATUS <<EOF
247f5006 22371
a0b9e27f
MB
22372# Protect against being on the right side of a sed subst in config.status.
22373sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22374 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22375$ac_vpsub
22376$extrasub
22377s%@SHELL@%$SHELL%g
22378s%@CFLAGS@%$CFLAGS%g
22379s%@CPPFLAGS@%$CPPFLAGS%g
22380s%@CXXFLAGS@%$CXXFLAGS%g
22381s%@FFLAGS@%$FFLAGS%g
22382s%@DEFS@%$DEFS%g
22383s%@LDFLAGS@%$LDFLAGS%g
22384s%@LIBS@%$LIBS%g
22385s%@exec_prefix@%$exec_prefix%g
22386s%@prefix@%$prefix%g
22387s%@program_transform_name@%$program_transform_name%g
22388s%@bindir@%$bindir%g
22389s%@sbindir@%$sbindir%g
22390s%@libexecdir@%$libexecdir%g
22391s%@datadir@%$datadir%g
22392s%@sysconfdir@%$sysconfdir%g
22393s%@sharedstatedir@%$sharedstatedir%g
22394s%@localstatedir@%$localstatedir%g
22395s%@libdir@%$libdir%g
22396s%@includedir@%$includedir%g
22397s%@oldincludedir@%$oldincludedir%g
22398s%@infodir@%$infodir%g
22399s%@mandir@%$mandir%g
22400s%@host@%$host%g
22401s%@host_alias@%$host_alias%g
22402s%@host_cpu@%$host_cpu%g
22403s%@host_vendor@%$host_vendor%g
22404s%@host_os@%$host_os%g
22405s%@target@%$target%g
22406s%@target_alias@%$target_alias%g
22407s%@target_cpu@%$target_cpu%g
22408s%@target_vendor@%$target_vendor%g
22409s%@target_os@%$target_os%g
22410s%@build@%$build%g
22411s%@build_alias@%$build_alias%g
22412s%@build_cpu@%$build_cpu%g
22413s%@build_vendor@%$build_vendor%g
22414s%@build_os@%$build_os%g
22415s%@CC@%$CC%g
22416s%@CPP@%$CPP%g
22417s%@CXX@%$CXX%g
22418s%@RANLIB@%$RANLIB%g
22419s%@AR@%$AR%g
22420s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22421s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22422s%@INSTALL_DATA@%$INSTALL_DATA%g
22423s%@STRIP@%$STRIP%g
22424s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22425s%@YACC@%$YACC%g
22426s%@LEX@%$LEX%g
22427s%@LEXLIB@%$LEXLIB%g
22428s%@LN_S@%$LN_S%g
22429s%@CXXCPP@%$CXXCPP%g
22430s%@PKG_CONFIG@%$PKG_CONFIG%g
22431s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22432s%@GTK_LIBS@%$GTK_LIBS%g
22433s%@GTK_CONFIG@%$GTK_CONFIG%g
22434s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22435s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22436s%@X_CFLAGS@%$X_CFLAGS%g
22437s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22438s%@X_LIBS@%$X_LIBS%g
22439s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22440s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22441s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22442s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22443s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22444s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22445s%@RESCOMP@%$RESCOMP%g
22446s%@DEREZ@%$DEREZ%g
36825681 22447s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22448s%@LIBICONV@%$LIBICONV%g
22449s%@LEX_STEM@%$LEX_STEM%g
22450s%@PATH_IFS@%$PATH_IFS%g
22451s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22452s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22453s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22454s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22455s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22456s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22457s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22458s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22459s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22460s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22461s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22462s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22463s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22464s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22465s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22466s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22467s%@WX_ALL@%$WX_ALL%g
22468s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22469s%@SHARED_LD@%$SHARED_LD%g
22470s%@PIC_FLAG@%$PIC_FLAG%g
22471s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22472s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22473s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22474s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22475s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22476s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22477s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22478s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22479s%@USE_GUI@%$USE_GUI%g
22480s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22481s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22482s%@TOOLKIT@%$TOOLKIT%g
22483s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22484s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22485s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22486s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22487s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22488s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22489s%@cross_compiling@%$cross_compiling%g
22490s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22491s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22492s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22493s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22494s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22495s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22496s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22497s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22498s%@ALL_HEADERS@%$ALL_HEADERS%g
22499s%@ALL_SOURCES@%$ALL_SOURCES%g
22500s%@GUIDIST@%$GUIDIST%g
22501s%@PORT_FILES@%$PORT_FILES%g
22502s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22503s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22504s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22505s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22506s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22507s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22508s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22509s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22510s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22511s%@RESFLAGS@%$RESFLAGS%g
22512s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22513s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22514s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22515s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22516s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22517s%@MACRESCOMP@%$MACRESCOMP%g
22518s%@MACSETFILE@%$MACSETFILE%g
22519s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22520s%@GCC@%$GCC%g
a0b9e27f
MB
22521s%@DLLTOOL@%$DLLTOOL%g
22522s%@AS@%$AS%g
22523s%@NM@%$NM%g
22524s%@LD@%$LD%g
22525s%@MAKEINFO@%$MAKEINFO%g
22526s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22527s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22528s%@SET_MAKE@%$SET_MAKE%g
22529s%@subdirs@%$subdirs%g
247f5006 22530
247f5006 22531CEOF
a0b9e27f 22532EOF
247f5006 22533
a0b9e27f
MB
22534cat >> $CONFIG_STATUS <<\EOF
22535
22536# Split the substitutions into bite-sized pieces for seds with
22537# small command number limits, like on Digital OSF/1 and HP-UX.
22538ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22539ac_file=1 # Number of current file.
22540ac_beg=1 # First line for current file.
22541ac_end=$ac_max_sed_cmds # Line after last line for current file.
22542ac_more_lines=:
22543ac_sed_cmds=""
22544while $ac_more_lines; do
22545 if test $ac_beg -gt 1; then
22546 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22547 else
22548 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22549 fi
22550 if test ! -s conftest.s$ac_file; then
22551 ac_more_lines=false
22552 rm -f conftest.s$ac_file
22553 else
22554 if test -z "$ac_sed_cmds"; then
22555 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22556 else
a0b9e27f 22557 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22558 fi
a0b9e27f
MB
22559 ac_file=`expr $ac_file + 1`
22560 ac_beg=$ac_end
22561 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22562 fi
a0b9e27f
MB
22563done
22564if test -z "$ac_sed_cmds"; then
22565 ac_sed_cmds=cat
22566fi
22567EOF
10f2d63a 22568
a0b9e27f 22569cat >> $CONFIG_STATUS <<EOF
10f2d63a 22570
a0b9e27f 22571CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22572 version-script
a0b9e27f
MB
22573 src/make.env
22574 src/makeprog.env
22575 src/makelib.env
22576 Makefile
22577 "}
22578EOF
22579cat >> $CONFIG_STATUS <<\EOF
22580for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22582 case "$ac_file" in
22583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22585 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22586 esac
247f5006 22587
a0b9e27f 22588 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22589
a0b9e27f
MB
22590 # Remove last slash and all that follows it. Not all systems have dirname.
22591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22593 # The file is in a subdirectory.
22594 test ! -d "$ac_dir" && mkdir "$ac_dir"
22595 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22596 # A "../" for each directory in $ac_dir_suffix.
22597 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22598 else
22599 ac_dir_suffix= ac_dots=
22600 fi
247f5006 22601
a0b9e27f
MB
22602 case "$ac_given_srcdir" in
22603 .) srcdir=.
22604 if test -z "$ac_dots"; then top_srcdir=.
22605 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22606 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22607 *) # Relative path.
a0b9e27f
MB
22608 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22609 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22610 esac
10f2d63a 22611
a0b9e27f
MB
22612 case "$ac_given_INSTALL" in
22613 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22614 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22615 esac
247f5006 22616
a0b9e27f
MB
22617 echo creating "$ac_file"
22618 rm -f "$ac_file"
22619 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22620 case "$ac_file" in
22621 *Makefile*) ac_comsub="1i\\
22622# $configure_input" ;;
22623 *) ac_comsub= ;;
22624 esac
247f5006 22625
a0b9e27f
MB
22626 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22627 sed -e "$ac_comsub
22628s%@configure_input@%$configure_input%g
22629s%@srcdir@%$srcdir%g
22630s%@top_srcdir@%$top_srcdir%g
22631s%@INSTALL@%$INSTALL%g
22632" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22633fi; done
22634rm -f conftest.s*
10f2d63a
VZ
22635
22636# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22637# NAME is the cpp macro being defined and VALUE is the value it is being given.
22638#
22639# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22640ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22641ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22642ac_dC='\3'
22643ac_dD='%g'
22644# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22645ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22646ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22647ac_uC=' '
a0b9e27f
MB
22648ac_uD='\4%g'
22649# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22650ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22651ac_eB='$%\1#\2define\3'
22652ac_eC=' '
22653ac_eD='%g'
22654
22655if test "${CONFIG_HEADERS+set}" != set; then
22656EOF
22657cat >> $CONFIG_STATUS <<EOF
22658 CONFIG_HEADERS="setup.h:setup.h.in"
22659EOF
22660cat >> $CONFIG_STATUS <<\EOF
22661fi
22662for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22664 case "$ac_file" in
22665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22667 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22668 esac
22669
a0b9e27f
MB
22670 echo creating $ac_file
22671
22672 rm -f conftest.frag conftest.in conftest.out
22673 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22674 cat $ac_file_inputs > conftest.in
22675
22676EOF
22677
22678# Transform confdefs.h into a sed script conftest.vals that substitutes
22679# the proper values into config.h.in to produce config.h. And first:
22680# Protect against being on the right side of a sed subst in config.status.
22681# Protect against being in an unquoted here document in config.status.
22682rm -f conftest.vals
22683cat > conftest.hdr <<\EOF
22684s/[\\&%]/\\&/g
22685s%[\\$`]%\\&%g
22686s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22687s%ac_d%ac_u%gp
22688s%ac_u%ac_e%gp
22689EOF
22690sed -n -f conftest.hdr confdefs.h > conftest.vals
22691rm -f conftest.hdr
10f2d63a
VZ
22692
22693# This sed command replaces #undef with comments. This is necessary, for
22694# example, in the case of _POSIX_SOURCE, which is predefined and required
22695# on some systems where configure will not decide to define it.
a0b9e27f
MB
22696cat >> conftest.vals <<\EOF
22697s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22698EOF
22699
22700# Break up conftest.vals because some shells have a limit on
22701# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22702
22703rm -f conftest.tail
a0b9e27f 22704while :
10f2d63a 22705do
a0b9e27f
MB
22706 ac_lines=`grep -c . conftest.vals`
22707 # grep -c gives empty output for an empty file on some AIX systems.
22708 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22709 # Write a limited-size here document to conftest.frag.
22710 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22711 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22712 echo 'CEOF
a0b9e27f
MB
22713 sed -f conftest.frag conftest.in > conftest.out
22714 rm -f conftest.in
22715 mv conftest.out conftest.in
22716' >> $CONFIG_STATUS
22717 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22718 rm -f conftest.vals
22719 mv conftest.tail conftest.vals
10f2d63a 22720done
a0b9e27f
MB
22721rm -f conftest.vals
22722
22723cat >> $CONFIG_STATUS <<\EOF
22724 rm -f conftest.frag conftest.h
22725 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22726 cat conftest.in >> conftest.h
22727 rm -f conftest.in
22728 if cmp -s $ac_file conftest.h 2>/dev/null; then
22729 echo "$ac_file is unchanged"
22730 rm -f conftest.h
10f2d63a 22731 else
a0b9e27f
MB
22732 # Remove last slash and all that follows it. Not all systems have dirname.
22733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22735 # The file is in a subdirectory.
22736 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22737 fi
a0b9e27f
MB
22738 rm -f $ac_file
22739 mv conftest.h $ac_file
247f5006 22740 fi
a0b9e27f
MB
22741fi; done
22742
22743EOF
22744cat >> $CONFIG_STATUS <<EOF
22745
22746 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22747 LN_S="${LN_S}"
22748
22749
22750EOF
22751cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22752
652d930d 22753 if test ! -h wx-config; then
991a5759 22754 chmod +x wx-config
3a922bb4
RL
22755 mv wx-config wx${TOOLCHAIN_NAME}-config
22756 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22757 fi
665bbe97 22758
00cf1208
RR
22759 if test ! -d lib; then
22760 mkdir lib
22761 fi
22762 if test ! -d lib/wx; then
22763 mkdir lib/wx
22764 fi
22765 if test ! -d lib/wx/include; then
22766 mkdir lib/wx/include
22767 fi
3a922bb4
RL
22768 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22769 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22770 fi
3a922bb4
RL
22771 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22772 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
22773 fi
22774 if test -f setup.h; then
3a922bb4 22775 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 22776 fi
a0b9e27f
MB
22777
22778exit 0
22779EOF
10f2d63a 22780chmod +x $CONFIG_STATUS
a0b9e27f
MB
22781rm -fr confdefs* $ac_clean_files
22782test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 22783
2224580a
VZ
22784if test "$no_recursion" != yes; then
22785
22786 # Remove --cache-file and --srcdir arguments so they do not pile up.
22787 ac_sub_configure_args=
22788 ac_prev=
22789 for ac_arg in $ac_configure_args; do
22790 if test -n "$ac_prev"; then
22791 ac_prev=
22792 continue
22793 fi
a0b9e27f 22794 case "$ac_arg" in
2224580a
VZ
22795 -cache-file | --cache-file | --cache-fil | --cache-fi \
22796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22797 ac_prev=cache_file ;;
22798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 22799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
22800 ;;
22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22802 ac_prev=srcdir ;;
22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22804 ;;
22805 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22806 esac
22807 done
22808
a0b9e27f 22809 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
22810
22811 # Do not complain, so a configure script can configure whichever
22812 # parts of a large source tree are present.
a0b9e27f
MB
22813 if test ! -d $srcdir/$ac_config_dir; then
22814 continue
22815 fi
2224580a 22816
a0b9e27f 22817 echo configuring in $ac_config_dir
2224580a 22818
a0b9e27f
MB
22819 case "$srcdir" in
22820 .) ;;
22821 *)
22822 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22823 else
22824 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22825 fi
22826 ;;
22827 esac
2224580a 22828
a0b9e27f
MB
22829 ac_popdir=`pwd`
22830 cd $ac_config_dir
247f5006 22831
a0b9e27f
MB
22832 # A "../" for each directory in /$ac_config_dir.
22833 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 22834
a0b9e27f
MB
22835 case "$srcdir" in
22836 .) # No --srcdir option. We are building in place.
22837 ac_sub_srcdir=$srcdir ;;
22838 /*) # Absolute path.
22839 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22840 *) # Relative path.
22841 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22842 esac
2224580a
VZ
22843
22844 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
22845 if test -f $ac_sub_srcdir/configure; then
22846 ac_sub_configure=$ac_sub_srcdir/configure
22847 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
22848 ac_sub_configure=$ac_configure
22849 else
a0b9e27f 22850 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
22851 ac_sub_configure=
22852 fi
22853
22854 # The recursion is here.
22855 if test -n "$ac_sub_configure"; then
a0b9e27f 22856
2224580a 22857 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
22858 case "$cache_file" in
22859 /*) ac_sub_cache_file=$cache_file ;;
2224580a 22860 *) # Relative path.
a0b9e27f 22861 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 22862 esac
a0b9e27f
MB
22863 case "$ac_given_INSTALL" in
22864 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22865 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22866 esac
2224580a 22867
a0b9e27f 22868 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 22869 # The eval makes quoting arguments work.
a0b9e27f
MB
22870 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22871 then :
22872 else
22873 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22874 fi
2224580a
VZ
22875 fi
22876
22877 cd $ac_popdir
22878 done
22879fi
22880
8284b0c5 22881
2b5f62a0
VZ
22882echo
22883echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22884echo ""
22885echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22886
22887echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22888echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22889echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22890
0c98a14e
GD
22891echo " What level of wxWindows compatibility should be enabled?"
22892echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
22893echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22894echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 22895
2b5f62a0
VZ
22896echo " Which libraries should wxWindows use?"
22897echo " jpeg ${wxUSE_LIBJPEG-none}"
22898echo " png ${wxUSE_LIBPNG-none}"
22899echo " regex ${wxUSE_REGEX}"
22900echo " tiff ${wxUSE_LIBTIFF-none}"
22901echo " zlib ${wxUSE_ZLIB}"
22902
22903echo ""
22904