]> git.saurik.com Git - wxWidgets.git/blame - configure
Add bmpmotif.cpp to descrip.mms.
[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+)"
291ac_help="$ac_help
292 --enable-prologio use Prolog IO library"
293ac_help="$ac_help
294 --enable-resources use wxWindows resources"
295ac_help="$ac_help
296 --enable-xresources use X resources for save (default for gtk+)"
297ac_help="$ac_help
da494b40 298 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
299ac_help="$ac_help
300 --enable-dnd use Drag'n'Drop classes"
301ac_help="$ac_help
302 --enable-metafile use win32 metafiles"
303ac_help="$ac_help
da494b40 304 --enable-treelayout use wxTreeLayout class"
a0b9e27f
MB
305ac_help="$ac_help
306 --enable-controls use all usual controls"
307ac_help="$ac_help
308 --enable-accel use accelerators"
309ac_help="$ac_help
310 --enable-button use wxButton class"
311ac_help="$ac_help
312 --enable-bmpbutton use wxBitmapButton class"
313ac_help="$ac_help
314 --enable-calendar use wxCalendarCtrl class"
315ac_help="$ac_help
316 --enable-caret use wxCaret class"
317ac_help="$ac_help
318 --enable-checkbox use wxCheckBox class"
319ac_help="$ac_help
320 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
321ac_help="$ac_help
322 --enable-choice use wxChoice class"
323ac_help="$ac_help
da494b40
MB
324 --enable-combobox use wxComboBox class"
325ac_help="$ac_help
326 --enable-display use wxDisplay class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-gauge use wxGauge class"
329ac_help="$ac_help
330 --enable-grid use wxGrid class"
a0b9e27f
MB
331ac_help="$ac_help
332 --enable-imaglist use wxImageList class"
333ac_help="$ac_help
334 --enable-listbox use wxListBox class"
335ac_help="$ac_help
336 --enable-listctrl use wxListCtrl class"
337ac_help="$ac_help
338 --enable-notebook use wxNotebook class"
339ac_help="$ac_help
340 --enable-propsheet use wxPropertySheet class"
341ac_help="$ac_help
342 --enable-radiobox use wxRadioBox class"
343ac_help="$ac_help
344 --enable-radiobtn use wxRadioButton class"
345ac_help="$ac_help
346 --enable-sash use wxSashWindow class"
347ac_help="$ac_help
348 --enable-scrollbar use wxScrollBar class and scrollable windows"
349ac_help="$ac_help
350 --enable-slider use wxSlider class"
351ac_help="$ac_help
352 --enable-spinbtn use wxSpinButton class"
353ac_help="$ac_help
354 --enable-spinctrl use wxSpinCtrl class"
355ac_help="$ac_help
356 --enable-splitter use wxSplitterWindow class"
357ac_help="$ac_help
358 --enable-statbmp use wxStaticBitmap class"
359ac_help="$ac_help
360 --enable-statbox use wxStaticBox class"
361ac_help="$ac_help
362 --enable-statline use wxStaticLine class"
363ac_help="$ac_help
364 --enable-stattext use wxStaticText class"
365ac_help="$ac_help
366 --enable-statusbar use wxStatusBar class"
367ac_help="$ac_help
368 --enable-tabdialog use wxTabControl class"
369ac_help="$ac_help
370 --enable-textctrl use wxTextCtrl class"
371ac_help="$ac_help
372 --enable-togglebtn use wxToggleButton class"
373ac_help="$ac_help
374 --enable-toolbar use wxToolBar class"
375ac_help="$ac_help
376 --enable-tbarnative use native wxToolBar class"
377ac_help="$ac_help
378 --enable-tbarsmpl use wxToolBarSimple class"
379ac_help="$ac_help
380 --enable-treectrl use wxTreeCtrl class"
381ac_help="$ac_help
382 --enable-tipwindow use wxTipWindow class"
383ac_help="$ac_help
384 --enable-popupwin use wxPopUpWindow class"
385ac_help="$ac_help
386 --enable-commondlg use all common dialogs"
387ac_help="$ac_help
388 --enable-choicedlg use wxChoiceDialog"
389ac_help="$ac_help
390 --enable-coldlg use wxColourDialog"
391ac_help="$ac_help
392 --enable-filedlg use wxFileDialog"
393ac_help="$ac_help
394 --enable-finddlg use wxFindReplaceDialog"
395ac_help="$ac_help
396 --enable-fontdlg use wxFontDialog"
397ac_help="$ac_help
398 --enable-dirdlg use wxDirDialog"
399ac_help="$ac_help
400 --enable-msgdlg use wxMessageDialog"
401ac_help="$ac_help
402 --enable-numberdlg use wxNumberEntryDialog"
403ac_help="$ac_help
404 --enable-splash use wxSplashScreen"
405ac_help="$ac_help
406 --enable-textdlg use wxTextDialog"
407ac_help="$ac_help
408 --enable-tipdlg use startup tips"
409ac_help="$ac_help
410 --enable-progressdlg use wxProgressDialog"
411ac_help="$ac_help
412 --enable-wizarddlg use wxWizard"
413ac_help="$ac_help
414 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
415ac_help="$ac_help
416 --enable-miniframe use wxMiniFrame class"
417ac_help="$ac_help
418 --enable-tooltips use wxToolTip class"
419ac_help="$ac_help
420 --enable-splines use spline drawing code"
421ac_help="$ac_help
422 --enable-validators use wxValidator and derived classes"
423ac_help="$ac_help
424 --enable-busyinfo use wxBusyInfo"
425ac_help="$ac_help
426 --enable-joystick use wxJoystick (Linux only)"
427ac_help="$ac_help
428 --enable-metafiles use wxMetaFile (Windows only)"
429ac_help="$ac_help
430 --enable-dragimage use wxDragImage"
431ac_help="$ac_help
432 --enable-palette use wxPalette class"
433ac_help="$ac_help
434 --enable-image use wxImage class"
435ac_help="$ac_help
436 --enable-gif use gif images (GIF file format)"
437ac_help="$ac_help
438 --enable-pcx use pcx images (PCX file format)"
439ac_help="$ac_help
440 --enable-iff use iff images (IFF file format)"
441ac_help="$ac_help
442 --enable-pnm use pnm images (PNM file format)"
443ac_help="$ac_help
444 --enable-xpm use xpm images (XPM file format)"
445ac_help="$ac_help
446 --enable-icocur use Windows ICO and CUR formats"
447ac_help="$ac_help
448 --disable-largefile omit support for large files"
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-gtk-prefix=PFX Prefix where GTK is installed (optional)"
459ac_help="$ac_help
460 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
461ac_help="$ac_help
462 --disable-gtktest Do not try to compile and run a test GTK program"
463ac_help="$ac_help
464 --with-x use the X Window System"
465ac_help="$ac_help
466 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
467
468# Initialize some variables set by options.
469# The variables have the same names as the options, with
470# dashes changed to underlines.
a0b9e27f
MB
471build=NONE
472cache_file=./config.cache
10f2d63a 473exec_prefix=NONE
a0b9e27f 474host=NONE
10f2d63a 475no_create=
a0b9e27f 476nonopt=NONE
10f2d63a
VZ
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
a0b9e27f 485target=NONE
10f2d63a
VZ
486verbose=
487x_includes=NONE
488x_libraries=NONE
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
a0b9e27f
MB
502# Initialize some other variables.
503subdirs=
504MFLAGS= MAKEFLAGS=
505SHELL=${CONFIG_SHELL-/bin/sh}
506# Maximum number of lines to put in a shell here document.
507ac_max_here_lines=12
508
10f2d63a
VZ
509ac_prev=
510for ac_option
511do
a0b9e27f 512
10f2d63a
VZ
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
a0b9e27f
MB
520 case "$ac_option" in
521 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
522 *) ac_optarg= ;;
523 esac
10f2d63a
VZ
524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
a0b9e27f 527 case "$ac_option" in
10f2d63a
VZ
528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 532 bindir="$ac_optarg" ;;
10f2d63a
VZ
533
534 -build | --build | --buil | --bui | --bu)
a0b9e27f 535 ac_prev=build ;;
10f2d63a 536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 537 build="$ac_optarg" ;;
10f2d63a
VZ
538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 544 cache_file="$ac_optarg" ;;
10f2d63a
VZ
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
a0b9e27f 550 datadir="$ac_optarg" ;;
10f2d63a
VZ
551
552 -disable-* | --disable-*)
a0b9e27f 553 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 554 # Reject names that are not valid shell variable names.
a0b9e27f
MB
555 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
556 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
557 fi
558 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
559 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
560
561 -enable-* | --enable-*)
a0b9e27f 562 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 563 # Reject names that are not valid shell variable names.
a0b9e27f
MB
564 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
565 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
566 fi
567 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
568 case "$ac_option" in
569 *=*) ;;
10f2d63a
VZ
570 *) ac_optarg=yes ;;
571 esac
a0b9e27f 572 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
a0b9e27f 581 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
a0b9e27f
MB
587 -help | --help | --hel | --he)
588 # Omit some internal or obsolete options to make the list less imposing.
589 # This message is too long to be a string in the A/UX 3.1 sh.
590 cat << EOF
591Usage: configure [options] [host]
592Options: [defaults in brackets after descriptions]
593Configuration:
594 --cache-file=FILE cache test results in FILE
595 --help print this message
596 --no-create do not create output files
597 --quiet, --silent do not print \`checking...' messages
598 --version print the version of autoconf that created configure
599Directory and file names:
600 --prefix=PREFIX install architecture-independent files in PREFIX
601 [$ac_default_prefix]
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
603 [same as prefix]
604 --bindir=DIR user executables in DIR [EPREFIX/bin]
605 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
606 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
607 --datadir=DIR read-only architecture-independent data in DIR
608 [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data in DIR
611 [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
613 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
614 --includedir=DIR C header files in DIR [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
616 --infodir=DIR info documentation in DIR [PREFIX/info]
617 --mandir=DIR man documentation in DIR [PREFIX/man]
618 --srcdir=DIR find the sources in DIR [configure dir or ..]
619 --program-prefix=PREFIX prepend PREFIX to installed program names
620 --program-suffix=SUFFIX append SUFFIX to installed program names
621 --program-transform-name=PROGRAM
622 run sed PROGRAM on installed program names
623EOF
624 cat << EOF
625Host type:
626 --build=BUILD configure for building on BUILD [BUILD=HOST]
627 --host=HOST configure for HOST [guessed]
628 --target=TARGET configure for TARGET [TARGET=HOST]
629Features and packages:
630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
634 --x-includes=DIR X include files are in DIR
635 --x-libraries=DIR X library files are in DIR
636EOF
637 if test -n "$ac_help"; then
638 echo "--enable and --with options recognized:$ac_help"
639 fi
640 exit 0 ;;
10f2d63a
VZ
641
642 -host | --host | --hos | --ho)
a0b9e27f 643 ac_prev=host ;;
10f2d63a 644 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 645 host="$ac_optarg" ;;
10f2d63a
VZ
646
647 -includedir | --includedir | --includedi | --included | --include \
648 | --includ | --inclu | --incl | --inc)
649 ac_prev=includedir ;;
650 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
651 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 652 includedir="$ac_optarg" ;;
10f2d63a
VZ
653
654 -infodir | --infodir | --infodi | --infod | --info | --inf)
655 ac_prev=infodir ;;
656 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 657 infodir="$ac_optarg" ;;
10f2d63a
VZ
658
659 -libdir | --libdir | --libdi | --libd)
660 ac_prev=libdir ;;
661 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 662 libdir="$ac_optarg" ;;
10f2d63a
VZ
663
664 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
665 | --libexe | --libex | --libe)
666 ac_prev=libexecdir ;;
667 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
668 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 669 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
670
671 -localstatedir | --localstatedir | --localstatedi | --localstated \
672 | --localstate | --localstat | --localsta | --localst \
673 | --locals | --local | --loca | --loc | --lo)
674 ac_prev=localstatedir ;;
675 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
676 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
677 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 678 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
681 ac_prev=mandir ;;
682 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 683 mandir="$ac_optarg" ;;
10f2d63a
VZ
684
685 -nfp | --nfp | --nf)
686 # Obsolete; use --without-fp.
687 with_fp=no ;;
688
689 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 690 | --no-cr | --no-c)
10f2d63a
VZ
691 no_create=yes ;;
692
693 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
694 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
695 no_recursion=yes ;;
696
697 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
698 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
699 | --oldin | --oldi | --old | --ol | --o)
700 ac_prev=oldincludedir ;;
701 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
702 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
703 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 704 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
705
706 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
707 ac_prev=prefix ;;
708 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 709 prefix="$ac_optarg" ;;
10f2d63a
VZ
710
711 -program-prefix | --program-prefix | --program-prefi | --program-pref \
712 | --program-pre | --program-pr | --program-p)
713 ac_prev=program_prefix ;;
714 -program-prefix=* | --program-prefix=* | --program-prefi=* \
715 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 716 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
717
718 -program-suffix | --program-suffix | --program-suffi | --program-suff \
719 | --program-suf | --program-su | --program-s)
720 ac_prev=program_suffix ;;
721 -program-suffix=* | --program-suffix=* | --program-suffi=* \
722 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 723 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
724
725 -program-transform-name | --program-transform-name \
726 | --program-transform-nam | --program-transform-na \
727 | --program-transform-n | --program-transform- \
728 | --program-transform | --program-transfor \
729 | --program-transfo | --program-transf \
730 | --program-trans | --program-tran \
731 | --progr-tra | --program-tr | --program-t)
732 ac_prev=program_transform_name ;;
733 -program-transform-name=* | --program-transform-name=* \
734 | --program-transform-nam=* | --program-transform-na=* \
735 | --program-transform-n=* | --program-transform-=* \
736 | --program-transform=* | --program-transfor=* \
737 | --program-transfo=* | --program-transf=* \
738 | --program-trans=* | --program-tran=* \
739 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 740 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
741
742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
743 | -silent | --silent | --silen | --sile | --sil)
744 silent=yes ;;
745
746 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
747 ac_prev=sbindir ;;
748 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
749 | --sbi=* | --sb=*)
a0b9e27f 750 sbindir="$ac_optarg" ;;
10f2d63a
VZ
751
752 -sharedstatedir | --sharedstatedir | --sharedstatedi \
753 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
754 | --sharedst | --shareds | --shared | --share | --shar \
755 | --sha | --sh)
756 ac_prev=sharedstatedir ;;
757 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
758 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
759 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
760 | --sha=* | --sh=*)
a0b9e27f 761 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
762
763 -site | --site | --sit)
764 ac_prev=site ;;
765 -site=* | --site=* | --sit=*)
a0b9e27f 766 site="$ac_optarg" ;;
10f2d63a
VZ
767
768 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
769 ac_prev=srcdir ;;
770 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 771 srcdir="$ac_optarg" ;;
10f2d63a
VZ
772
773 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
774 | --syscon | --sysco | --sysc | --sys | --sy)
775 ac_prev=sysconfdir ;;
776 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
777 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 778 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
779
780 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 781 ac_prev=target ;;
10f2d63a 782 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 783 target="$ac_optarg" ;;
10f2d63a
VZ
784
785 -v | -verbose | --verbose | --verbos | --verbo | --verb)
786 verbose=yes ;;
787
a0b9e27f
MB
788 -version | --version | --versio | --versi | --vers)
789 echo "configure generated by autoconf version 2.13"
790 exit 0 ;;
10f2d63a
VZ
791
792 -with-* | --with-*)
a0b9e27f 793 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 794 # Reject names that are not valid shell variable names.
a0b9e27f
MB
795 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
796 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
797 fi
10f2d63a 798 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
799 case "$ac_option" in
800 *=*) ;;
10f2d63a
VZ
801 *) ac_optarg=yes ;;
802 esac
a0b9e27f 803 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
804
805 -without-* | --without-*)
a0b9e27f 806 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 807 # Reject names that are not valid shell variable names.
a0b9e27f
MB
808 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
809 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
810 fi
811 ac_package=`echo $ac_package| sed 's/-/_/g'`
812 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
813
814 --x)
815 # Obsolete; use --with-x.
816 with_x=yes ;;
817
818 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
819 | --x-incl | --x-inc | --x-in | --x-i)
820 ac_prev=x_includes ;;
821 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
822 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 823 x_includes="$ac_optarg" ;;
10f2d63a
VZ
824
825 -x-libraries | --x-libraries | --x-librarie | --x-librari \
826 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
827 ac_prev=x_libraries ;;
828 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
829 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 830 x_libraries="$ac_optarg" ;;
10f2d63a 831
a0b9e27f 832 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
833 ;;
834
835 *)
a0b9e27f
MB
836 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
837 echo "configure: warning: $ac_option: invalid host type" 1>&2
838 fi
839 if test "x$nonopt" != xNONE; then
840 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
841 fi
842 nonopt="$ac_option"
10f2d63a
VZ
843 ;;
844
845 esac
846done
847
848if test -n "$ac_prev"; then
a0b9e27f 849 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 850fi
8284b0c5 851
a0b9e27f
MB
852trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
853
854# File descriptor usage:
855# 0 standard input
856# 1 file creation
857# 2 errors and warnings
858# 3 some systems may open it to /dev/tty
859# 4 used on the Kubota Titan
860# 6 checking for... messages and results
861# 5 compiler messages saved in config.log
862if test "$silent" = yes; then
863 exec 6>/dev/null
864else
865 exec 6>&1
866fi
867exec 5>./config.log
868
869echo "\
870This file contains any messages produced by compilers while
871running configure, to aid debugging if configure makes a mistake.
872" 1>&5
8284b0c5 873
a0b9e27f
MB
874# Strip out --no-create and --no-recursion so they do not pile up.
875# Also quote any args containing shell metacharacters.
876ac_configure_args=
877for ac_arg
10f2d63a 878do
a0b9e27f
MB
879 case "$ac_arg" in
880 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
881 | --no-cr | --no-c) ;;
882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
884 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
885 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
886 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
887 esac
888done
889
a0b9e27f
MB
890# NLS nuisances.
891# Only set these to C if already set. These must not be set unconditionally
892# because not all systems understand e.g. LANG=C (notably SCO).
893# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
894# Non-C LC_CTYPE values break the ctype check.
895if test "${LANG+set}" = set; then LANG=C; export LANG; fi
896if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
897if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
898if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 899
a0b9e27f
MB
900# confdefs.h avoids OS command line length limits that DEFS can exceed.
901rm -rf conftest* confdefs.h
902# AIX cpp loses on an empty file, so make sure it contains at least a newline.
903echo > confdefs.h
10f2d63a 904
a0b9e27f
MB
905# A filename unique to this package, relative to the directory that
906# configure is in, which we can look for to find out if srcdir is correct.
907ac_unique_file=wx-config.in
10f2d63a
VZ
908
909# Find the source files, if location was not specified.
910if test -z "$srcdir"; then
911 ac_srcdir_defaulted=yes
912 # Try the directory containing this script, then its parent.
a0b9e27f
MB
913 ac_prog=$0
914 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
915 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
916 srcdir=$ac_confdir
917 if test ! -r $srcdir/$ac_unique_file; then
918 srcdir=..
919 fi
920else
921 ac_srcdir_defaulted=no
922fi
923if test ! -r $srcdir/$ac_unique_file; then
924 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 925 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 926 else
a0b9e27f 927 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
928 fi
929fi
a0b9e27f 930srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 931
10f2d63a
VZ
932# Prefer explicitly selected file to automatically selected ones.
933if test -z "$CONFIG_SITE"; then
934 if test "x$prefix" != xNONE; then
935 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
936 else
937 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
938 fi
939fi
940for ac_site_file in $CONFIG_SITE; do
941 if test -r "$ac_site_file"; then
a0b9e27f 942 echo "loading site script $ac_site_file"
10f2d63a
VZ
943 . "$ac_site_file"
944 fi
945done
946
947if test -r "$cache_file"; then
a0b9e27f
MB
948 echo "loading cache $cache_file"
949 . $cache_file
10f2d63a 950else
a0b9e27f
MB
951 echo "creating cache $cache_file"
952 > $cache_file
10f2d63a
VZ
953fi
954
955ac_ext=c
a0b9e27f 956# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 957ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
958ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960cross_compiling=$ac_cv_prog_cc_cross
961
962ac_exeext=
963ac_objext=o
964if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
965 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
966 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
967 ac_n= ac_c='
968' ac_t=' '
969 else
970 ac_n=-n ac_c= ac_t=
971 fi
972else
973 ac_n= ac_c='\c' ac_t=
974fi
8284b0c5
MB
975
976
10f2d63a 977
7c66a493
VZ
978ac_aux_dir=
979for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
980 if test -f $ac_dir/install-sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install-sh -c"
983 break
984 elif test -f $ac_dir/install.sh; then
985 ac_aux_dir=$ac_dir
986 ac_install_sh="$ac_aux_dir/install.sh -c"
987 break
247f5006 988 fi
7c66a493
VZ
989done
990if test -z "$ac_aux_dir"; then
a0b9e27f 991 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 992fi
a0b9e27f
MB
993ac_config_guess=$ac_aux_dir/config.guess
994ac_config_sub=$ac_aux_dir/config.sub
995ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 996
8284b0c5 997
a0b9e27f
MB
998# Do some error checking and defaulting for the host and target type.
999# The inputs are:
1000# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001#
1002# The rules are:
1003# 1. You are not allowed to specify --host, --target, and nonopt at the
1004# same time.
1005# 2. Host defaults to nonopt.
1006# 3. If nonopt is not specified, then host defaults to the current host,
1007# as determined by config.guess.
1008# 4. Target and build default to nonopt.
1009# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1010
1011# The aliases save the names the user supplied, while $host etc.
1012# will get canonicalized.
a0b9e27f
MB
1013case $host---$target---$nonopt in
1014NONE---*---* | *---NONE---* | *---*---NONE) ;;
1015*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016esac
1017
1018
1019# Make sure we can run config.sub.
1020if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1021else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1022fi
1023
1024echo $ac_n "checking host system type""... $ac_c" 1>&6
1542ea39 1025echo "configure:1026: checking host system type" >&5
a0b9e27f
MB
1026
1027host_alias=$host
1028case "$host_alias" in
1029NONE)
1030 case $nonopt in
1031 NONE)
1032 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1033 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1034 fi ;;
1035 *) host_alias=$nonopt ;;
1036 esac ;;
1037esac
1038
1039host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1040host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1041host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1042host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1043echo "$ac_t""$host" 1>&6
1044
1045echo $ac_n "checking target system type""... $ac_c" 1>&6
1542ea39 1046echo "configure:1047: checking target system type" >&5
a0b9e27f
MB
1047
1048target_alias=$target
1049case "$target_alias" in
1050NONE)
1051 case $nonopt in
1052 NONE) target_alias=$host_alias ;;
1053 *) target_alias=$nonopt ;;
1054 esac ;;
1055esac
1056
1057target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1058target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1061echo "$ac_t""$target" 1>&6
1062
1063echo $ac_n "checking build system type""... $ac_c" 1>&6
1542ea39 1064echo "configure:1065: checking build system type" >&5
a0b9e27f
MB
1065
1066build_alias=$build
1067case "$build_alias" in
1068NONE)
1069 case $nonopt in
1070 NONE) build_alias=$host_alias ;;
1071 *) build_alias=$nonopt ;;
1072 esac ;;
1073esac
1074
1075build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1076build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079echo "$ac_t""$build" 1>&6
1080
1081test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1082 test "$program_prefix$program_suffix$program_transform_name" = \
1083 NONENONEs,x,x, &&
1084 program_prefix=${target_alias}-
8284b0c5
MB
1085
1086
a0b9e27f 1087
10f2d63a 1088WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1089WX_MINOR_VERSION_NUMBER=5
1090WX_RELEASE_NUMBER=0
10f2d63a 1091
10f2d63a 1092WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1093WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1094
978f1259
RL
1095WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1096
34bed6d9 1097WX_CURRENT=0
6426998c
RL
1098WX_REVISION=0
1099WX_AGE=0
1100
8284b0c5
MB
1101
1102
10f2d63a
VZ
1103USE_UNIX=1
1104USE_WIN32=0
f9bc1684 1105USE_DOS=0
b12915c1 1106USE_BEOS=0
1216f52d 1107USE_MAC=0
b12915c1 1108
10f2d63a
VZ
1109USE_LINUX=
1110USE_SGI=
1111USE_HPUX=
1112USE_SYSV=
1113USE_SVR4=
1114USE_AIX=
1115USE_SUN=
1116USE_SOLARIS=
1117USE_SUNOS=
1118USE_ALPHA=
1119USE_OSF=
1120USE_BSD=
f11bdd03 1121USE_DARWIN=
10f2d63a 1122USE_FREEBSD=
95c8801c 1123USE_OPENBSD=
f6bcfd97 1124USE_NETBSD=
10f2d63a
VZ
1125USE_VMS=
1126USE_ULTRIX=
10f2d63a
VZ
1127USE_DATA_GENERAL=
1128
ab9b9eab
VZ
1129NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1130
ac0c4cc3 1131ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1132
ac0c4cc3 1133DEFAULT_wxUSE_COCOA=0
10f2d63a 1134DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1135DEFAULT_wxUSE_MAC=0
1136DEFAULT_wxUSE_MGL=0
1725144d 1137DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1138DEFAULT_wxUSE_MOTIF=0
1139DEFAULT_wxUSE_MSW=0
e07802fc 1140DEFAULT_wxUSE_PM=0
f79bd02d 1141DEFAULT_wxUSE_X11=0
10f2d63a 1142
ac0c4cc3 1143DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1144DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1145DEFAULT_DEFAULT_wxUSE_MAC=0
1146DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1147DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1148DEFAULT_DEFAULT_wxUSE_MOTIF=0
1149DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1150DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1151DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1152
d6a55c4b 1153PROGRAM_EXT=
3a922bb4 1154SO_SUFFIX=so
d6a55c4b 1155
10f2d63a
VZ
1156case "${host}" in
1157 *-hp-hpux* )
1158 USE_HPUX=1
1159 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1160 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1161 SO_SUFFIX=sl
a0b9e27f 1162 cat >> confdefs.h <<\EOF
10f2d63a 1163#define __HPUX__ 1
a0b9e27f 1164EOF
10f2d63a
VZ
1165
1166 ;;
1167 *-*-linux* )
1168 USE_LINUX=1
a0b9e27f 1169 cat >> confdefs.h <<\EOF
10f2d63a 1170#define __LINUX__ 1
a0b9e27f 1171EOF
10f2d63a
VZ
1172
1173 TMP=`uname -m`
1174 if test "x$TMP" = "xalpha"; then
1175 USE_ALPHA=1
a0b9e27f 1176 cat >> confdefs.h <<\EOF
10f2d63a 1177#define __ALPHA__ 1
a0b9e27f 1178EOF
10f2d63a
VZ
1179
1180 fi
1181 DEFAULT_DEFAULT_wxUSE_GTK=1
1182 ;;
1183 *-*-irix5* | *-*-irix6* )
1184 USE_SGI=1
1185 USE_SVR4=1
a0b9e27f 1186 cat >> confdefs.h <<\EOF
10f2d63a 1187#define __SGI__ 1
a0b9e27f 1188EOF
10f2d63a 1189
a0b9e27f 1190 cat >> confdefs.h <<\EOF
10f2d63a 1191#define __SVR4__ 1
a0b9e27f 1192EOF
10f2d63a
VZ
1193
1194 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1195 ;;
1196 *-*-solaris2* )
1197 USE_SUN=1
1198 USE_SOLARIS=1
1199 USE_SVR4=1
a0b9e27f 1200 cat >> confdefs.h <<\EOF
10f2d63a 1201#define __SUN__ 1
a0b9e27f 1202EOF
10f2d63a 1203
a0b9e27f 1204 cat >> confdefs.h <<\EOF
10f2d63a 1205#define __SOLARIS__ 1
a0b9e27f 1206EOF
10f2d63a 1207
a0b9e27f 1208 cat >> confdefs.h <<\EOF
10f2d63a 1209#define __SVR4__ 1
a0b9e27f 1210EOF
10f2d63a
VZ
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1213 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1214 ;;
1215 *-*-sunos4* )
1216 USE_SUN=1
1217 USE_SUNOS=1
1218 USE_BSD=1
a0b9e27f 1219 cat >> confdefs.h <<\EOF
10f2d63a 1220#define __SUN__ 1
a0b9e27f 1221EOF
10f2d63a 1222
a0b9e27f 1223 cat >> confdefs.h <<\EOF
10f2d63a 1224#define __SUNOS__ 1
a0b9e27f 1225EOF
10f2d63a 1226
a0b9e27f 1227 cat >> confdefs.h <<\EOF
10f2d63a 1228#define __BSD__ 1
a0b9e27f 1229EOF
10f2d63a
VZ
1230
1231 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1232 ;;
f6bcfd97 1233 *-*-freebsd*)
10f2d63a
VZ
1234 USE_BSD=1
1235 USE_FREEBSD=1
a0b9e27f 1236 cat >> confdefs.h <<\EOF
10f2d63a 1237#define __FREEBSD__ 1
a0b9e27f 1238EOF
10f2d63a 1239
a0b9e27f 1240 cat >> confdefs.h <<\EOF
10f2d63a 1241#define __BSD__ 1
a0b9e27f 1242EOF
95c8801c
VS
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-openbsd*)
1247 USE_BSD=1
1248 USE_OPENBSD=1
a0b9e27f 1249 cat >> confdefs.h <<\EOF
2b5f62a0 1250#define __OPENBSD__ 1
a0b9e27f 1251EOF
95c8801c 1252
a0b9e27f 1253 cat >> confdefs.h <<\EOF
2b5f62a0 1254#define __BSD__ 1
a0b9e27f 1255EOF
f6bcfd97
BP
1256
1257 DEFAULT_DEFAULT_wxUSE_GTK=1
1258 ;;
1259 *-*-netbsd*)
1260 USE_BSD=1
1261 USE_NETBSD=1
a0b9e27f 1262 cat >> confdefs.h <<\EOF
2b5f62a0 1263#define __NETBSD__ 1
a0b9e27f 1264EOF
f6bcfd97 1265
a0b9e27f 1266 cat >> confdefs.h <<\EOF
2b5f62a0 1267#define __BSD__ 1
a0b9e27f 1268EOF
10f2d63a
VZ
1269
1270 DEFAULT_DEFAULT_wxUSE_GTK=1
1271 ;;
1272 *-*-osf* )
1273 USE_ALPHA=1
1274 USE_OSF=1
a0b9e27f 1275 cat >> confdefs.h <<\EOF
10f2d63a 1276#define __ALPHA__ 1
a0b9e27f 1277EOF
10f2d63a 1278
a0b9e27f 1279 cat >> confdefs.h <<\EOF
10f2d63a 1280#define __OSF__ 1
a0b9e27f 1281EOF
10f2d63a
VZ
1282
1283 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1284 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1285 ;;
1286 *-*-dgux5* )
1287 USE_ALPHA=1
1288 USE_SVR4=1
a0b9e27f 1289 cat >> confdefs.h <<\EOF
10f2d63a 1290#define __ALPHA__ 1
a0b9e27f 1291EOF
10f2d63a 1292
a0b9e27f 1293 cat >> confdefs.h <<\EOF
10f2d63a 1294#define __SVR4__ 1
a0b9e27f 1295EOF
10f2d63a
VZ
1296
1297 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1298 ;;
1299 *-*-sysv5* )
1300 USE_SYSV=1
1301 USE_SVR4=1
a0b9e27f 1302 cat >> confdefs.h <<\EOF
10f2d63a 1303#define __SYSV__ 1
a0b9e27f 1304EOF
10f2d63a 1305
a0b9e27f 1306 cat >> confdefs.h <<\EOF
10f2d63a 1307#define __SVR4__ 1
a0b9e27f 1308EOF
10f2d63a
VZ
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312 *-*-aix* )
1313 USE_AIX=1
1314 USE_SYSV=1
1315 USE_SVR4=1
2b5f62a0 1316 SO_SUFFIX=a
a0b9e27f 1317 cat >> confdefs.h <<\EOF
10f2d63a 1318#define __AIX__ 1
a0b9e27f 1319EOF
10f2d63a 1320
a0b9e27f 1321 cat >> confdefs.h <<\EOF
10f2d63a 1322#define __SYSV__ 1
a0b9e27f 1323EOF
10f2d63a 1324
a0b9e27f 1325 cat >> confdefs.h <<\EOF
10f2d63a 1326#define __SVR4__ 1
a0b9e27f 1327EOF
10f2d63a
VZ
1328
1329 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1330 ;;
1331
1c8183e2 1332 *-*-cygwin* | *-*-mingw32* )
17234b26 1333 SO_SUFFIX=dll
cf27ef00 1334 PROGRAM_EXT=".exe"
7b7a7637 1335 RESCOMP=windres
10f2d63a
VZ
1336 DEFAULT_DEFAULT_wxUSE_MSW=1
1337 ;;
1338
f9bc1684
VS
1339 *-pc-msdosdjgpp )
1340 USE_UNIX=0
1341 USE_DOS=1
a0b9e27f 1342 cat >> confdefs.h <<\EOF
f9bc1684 1343#define __DOS__ 1
a0b9e27f 1344EOF
f9bc1684
VS
1345
1346 PROGRAM_EXT=".exe"
1347 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1348 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1349 ;;
1350
6fa882bd 1351 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1352 cat >> confdefs.h <<\EOF
10f2d63a 1353#define __EMX__ 1
a0b9e27f 1354EOF
10f2d63a 1355
cf27ef00 1356 PROGRAM_EXT=".exe"
e07802fc 1357 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1358 ;;
1359
d08b457b
GD
1360 powerpc-*-darwin* )
1361 USE_BSD=1
f11bdd03 1362 USE_DARWIN=1
3a922bb4 1363 SO_SUFFIX=dylib
a0b9e27f 1364 cat >> confdefs.h <<\EOF
f11bdd03 1365#define __BSD__ 1
a0b9e27f 1366EOF
b4085ce6 1367
a0b9e27f 1368 cat >> confdefs.h <<\EOF
f11bdd03 1369#define __DARWIN__ 1
a0b9e27f 1370EOF
d08b457b 1371
a0b9e27f 1372 cat >> confdefs.h <<\EOF
d08b457b 1373#define __POWERPC__ 1
82d43113
GD
1374EOF
1375
1376 cat >> confdefs.h <<\EOF
1377#define TARGET_CARBON 1
a0b9e27f 1378EOF
b4085ce6
GD
1379
1380 DEFAULT_DEFAULT_wxUSE_MAC=1
1381 ;;
1382
b12915c1
VZ
1383 *-*-beos* )
1384 USE_BEOS=1
a0b9e27f 1385 cat >> confdefs.h <<\EOF
b12915c1 1386#define __BEOS__ 1
a0b9e27f 1387EOF
b12915c1
VZ
1388
1389 ;;
1390
10f2d63a 1391 *)
a0b9e27f 1392 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1393esac
1394
8284b0c5
MB
1395
1396
1397
1398 wx_arg_cache_file="configarg.cache"
1399 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1400 rm -f ${wx_arg_cache_file}.tmp
1401 touch ${wx_arg_cache_file}.tmp
1402 touch ${wx_arg_cache_file}
a0b9e27f 1403
10f2d63a
VZ
1404
1405DEBUG_CONFIGURE=0
1406if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1407 DEFAULT_wxUSE_UNIVERSAL=no
1408
d8356fa3
VZ
1409 DEFAULT_wxUSE_NANOX=no
1410
10f2d63a
VZ
1411 DEFAULT_wxUSE_THREADS=yes
1412
1413 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1414 DEFAULT_wxUSE_SONAME=no
1e6feb95 1415 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_PROFILE=no
1417 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1418 DEFAULT_wxUSE_NO_RTTI=no
1419 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1420 DEFAULT_wxUSE_PERMISSIVE=no
1421 DEFAULT_wxUSE_DEBUG_FLAG=yes
1422 DEFAULT_wxUSE_DEBUG_INFO=yes
1423 DEFAULT_wxUSE_DEBUG_GDB=yes
1424 DEFAULT_wxUSE_MEM_TRACING=no
1425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1426 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1427 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_APPLE_IEEE=no
1429
1430 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1431 DEFAULT_wxUSE_LOGWINDOW=no
1432 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1433 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1434
1435 DEFAULT_wxUSE_GUI=yes
1e6feb95 1436 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1437
3e44f09d 1438 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_ZLIB=no
1440 DEFAULT_wxUSE_LIBPNG=no
1441 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1442 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1443 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1444 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1445
eb4efbdc 1446 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1447 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1448 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1449 DEFAULT_wxUSE_CMDLINE_PARSER=no
1450 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1451 DEFAULT_wxUSE_TIMER=no
1452 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1453 DEFAULT_wxUSE_FILE=no
1e6feb95 1454 DEFAULT_wxUSE_FFILE=no
a3a584a7 1455 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1456 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_WAVE=no
1458 DEFAULT_wxUSE_INTL=no
1459 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1460 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1461 DEFAULT_wxUSE_STREAMS=no
1462 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1463 DEFAULT_wxUSE_OLE=no
1464 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1465 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1466 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1467 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1468 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1469 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1470 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1471
1472 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1473 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1474 DEFAULT_wxUSE_POSTSCRIPT=no
1475
1476 DEFAULT_wxUSE_X_RESOURCES=no
1477 DEFAULT_wxUSE_CLIPBOARD=no
1478 DEFAULT_wxUSE_TOOLTIPS=no
1479 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1480 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1481 DEFAULT_wxUSE_SPLINES=no
1482
1483 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1484 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1485 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1486
1487 DEFAULT_wxUSE_PROLOGIO=no
1488 DEFAULT_wxUSE_RESOURCES=no
1489 DEFAULT_wxUSE_CONSTRAINTS=no
1490 DEFAULT_wxUSE_IPC=no
1491 DEFAULT_wxUSE_HELP=no
29fd3c0c 1492 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1493 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1494 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1495 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1496 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1497 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1498 DEFAULT_wxUSE_PROTOCOL=no
1499 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1500 DEFAULT_wxUSE_PROTOCOL_FTP=no
1501 DEFAULT_wxUSE_PROTOCOL_FILE=no
1502 DEFAULT_wxUSE_URL=no
3bd8fb5f 1503
10f2d63a 1504 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1505 DEFAULT_wxUSE_CHOICEDLG=no
1506 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1507 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1508 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1509 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1510 DEFAULT_wxUSE_FONTDLG=no
1511 DEFAULT_wxUSE_MSGDLG=no
1512 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1513 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1514 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_STARTUP_TIPS=no
1516 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1517 DEFAULT_wxUSE_WIZARDDLG=no
1518
1e6feb95 1519 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1520 DEFAULT_wxUSE_MINIFRAME=no
1521 DEFAULT_wxUSE_HTML=no
24528b0c 1522 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1523 DEFAULT_wxUSE_FS_INET=no
1524 DEFAULT_wxUSE_FS_ZIP=no
1525 DEFAULT_wxUSE_BUSYINFO=no
1526 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1527 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1528
1529 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1530 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1531 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1532 DEFAULT_wxUSE_CALCTRL=no
1533 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1534 DEFAULT_wxUSE_CHECKBOX=no
1535 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1536 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1537 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1538 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1539 DEFAULT_wxUSE_GAUGE=no
1540 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1541 DEFAULT_wxUSE_IMAGLIST=no
1542 DEFAULT_wxUSE_LISTBOX=no
1543 DEFAULT_wxUSE_LISTCTRL=no
1544 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1545 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1546 DEFAULT_wxUSE_RADIOBOX=no
1547 DEFAULT_wxUSE_RADIOBTN=no
1548 DEFAULT_wxUSE_SASH=no
1549 DEFAULT_wxUSE_SCROLLBAR=no
1550 DEFAULT_wxUSE_SLIDER=no
1551 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1552 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1553 DEFAULT_wxUSE_SPLITTER=no
1554 DEFAULT_wxUSE_STATBMP=no
1555 DEFAULT_wxUSE_STATBOX=no
1556 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1557 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1558 DEFAULT_wxUSE_STATUSBAR=yes
1559 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1560 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1561 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1562 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1563 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1564 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1565 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1566 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1567 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1568
1569 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1570 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1571 DEFAULT_wxUSE_WCSRTOMBS=no
1572
edae8572 1573 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1574 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1575 DEFAULT_wxUSE_GIF=no
1576 DEFAULT_wxUSE_PCX=no
1577 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1578 DEFAULT_wxUSE_IFF=no
0046ff7c 1579 DEFAULT_wxUSE_XPM=no
658974ae 1580 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1581else
1e6feb95
VZ
1582 DEFAULT_wxUSE_UNIVERSAL=no
1583
d8356fa3
VZ
1584 DEFAULT_wxUSE_NANOX=no
1585
10f2d63a
VZ
1586 DEFAULT_wxUSE_THREADS=yes
1587
1588 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1589 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1590 DEFAULT_wxUSE_OPTIMISE=yes
1591 DEFAULT_wxUSE_PROFILE=no
1592 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1593 DEFAULT_wxUSE_NO_RTTI=no
1594 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_PERMISSIVE=no
1596 DEFAULT_wxUSE_DEBUG_FLAG=no
1597 DEFAULT_wxUSE_DEBUG_INFO=no
1598 DEFAULT_wxUSE_DEBUG_GDB=no
1599 DEFAULT_wxUSE_MEM_TRACING=no
1600 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1601 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1602 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1603 DEFAULT_wxUSE_APPLE_IEEE=yes
1604
1605 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1606 DEFAULT_wxUSE_LOGWINDOW=yes
1607 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1608 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1609
1610 DEFAULT_wxUSE_GUI=yes
1611
831b3152 1612 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1613 DEFAULT_wxUSE_ZLIB=yes
1614 DEFAULT_wxUSE_LIBPNG=yes
1615 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1616 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1617 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1618 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1619
eb4efbdc 1620 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1621 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1622 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1623 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1624 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1625 DEFAULT_wxUSE_TIMER=yes
1626 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1627 DEFAULT_wxUSE_FILE=yes
1e6feb95 1628 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1629 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1630 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1631 DEFAULT_wxUSE_WAVE=no
1632 DEFAULT_wxUSE_INTL=yes
1633 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1634 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_STREAMS=yes
1636 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1637 DEFAULT_wxUSE_OLE=yes
1638 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1639 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1640 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1641 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1642 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1643 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1644 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1645
1646 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1647 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1648 DEFAULT_wxUSE_POSTSCRIPT=yes
1649
1650 DEFAULT_wxUSE_X_RESOURCES=no
1651 DEFAULT_wxUSE_CLIPBOARD=yes
1652 DEFAULT_wxUSE_TOOLTIPS=yes
1653 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1654 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1655 DEFAULT_wxUSE_SPLINES=yes
1656
1657 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1658 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1659 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1660
2b5f62a0
VZ
1661 DEFAULT_wxUSE_PROLOGIO=no
1662 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1663 DEFAULT_wxUSE_CONSTRAINTS=yes
1664 DEFAULT_wxUSE_IPC=yes
1665 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1666 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1667 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1668 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1669 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1670 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1671 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1672 DEFAULT_wxUSE_PROTOCOL=yes
1673 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1674 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1675 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1676 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1677
1678 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1679 DEFAULT_wxUSE_CHOICEDLG=yes
1680 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1681 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1682 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1683 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_FONTDLG=yes
1685 DEFAULT_wxUSE_MSGDLG=yes
1686 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1687 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1688 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1689 DEFAULT_wxUSE_STARTUP_TIPS=yes
1690 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1691 DEFAULT_wxUSE_WIZARDDLG=yes
1692
1e6feb95 1693 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1694 DEFAULT_wxUSE_MINIFRAME=yes
1695 DEFAULT_wxUSE_HTML=yes
24528b0c 1696 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_FS_INET=yes
1698 DEFAULT_wxUSE_FS_ZIP=yes
1699 DEFAULT_wxUSE_BUSYINFO=yes
1700 DEFAULT_wxUSE_ZIPSTREAM=yes
1701 DEFAULT_wxUSE_VALIDATORS=yes
1702
1703 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1704 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1705 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1706 DEFAULT_wxUSE_CALCTRL=yes
1707 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1708 DEFAULT_wxUSE_CHECKBOX=yes
1709 DEFAULT_wxUSE_CHECKLST=yes
1710 DEFAULT_wxUSE_CHOICE=yes
1711 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1712 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1713 DEFAULT_wxUSE_GAUGE=yes
1714 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1715 DEFAULT_wxUSE_IMAGLIST=yes
1716 DEFAULT_wxUSE_LISTBOX=yes
1717 DEFAULT_wxUSE_LISTCTRL=yes
1718 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1719 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_RADIOBOX=yes
1721 DEFAULT_wxUSE_RADIOBTN=yes
1722 DEFAULT_wxUSE_SASH=yes
1723 DEFAULT_wxUSE_SCROLLBAR=yes
1724 DEFAULT_wxUSE_SLIDER=yes
1725 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1726 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1727 DEFAULT_wxUSE_SPLITTER=yes
1728 DEFAULT_wxUSE_STATBMP=yes
1729 DEFAULT_wxUSE_STATBOX=yes
1730 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1731 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1732 DEFAULT_wxUSE_STATUSBAR=yes
1733 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1734 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1735 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1736 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1737 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1738 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1739 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1740 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1741 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1742
1743 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1744 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1745 DEFAULT_wxUSE_WCSRTOMBS=no
1746
edae8572 1747 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1748 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1749 DEFAULT_wxUSE_GIF=yes
1750 DEFAULT_wxUSE_PCX=yes
cc0e8480 1751 DEFAULT_wxUSE_IFF=no
10f2d63a 1752 DEFAULT_wxUSE_PNM=yes
0046ff7c 1753 DEFAULT_wxUSE_XPM=yes
658974ae 1754 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1755fi
1756
8284b0c5
MB
1757
1758
10f2d63a 1759for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1760 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1761 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1762 has_toolkit_in_cache=1
1763 eval "DEFAULT_$LINE"
1764 eval "CACHE_$toolkit=1"
1765 fi
1766done
1767
8284b0c5
MB
1768
1769
5005acfe
VZ
1770 enablestring=
1771 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1542ea39 1772echo "configure:1773: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1773 no_cache=0
1774 # Check whether --enable-gui or --disable-gui was given.
1775if test "${enable_gui+set}" = set; then
1776 enableval="$enable_gui"
a0b9e27f 1777
10f2d63a
VZ
1778 if test "$enableval" = yes; then
1779 ac_cv_use_gui='wxUSE_GUI=yes'
1780 else
1781 ac_cv_use_gui='wxUSE_GUI=no'
1782 fi
a0b9e27f 1783
10f2d63a 1784else
a0b9e27f 1785
10f2d63a
VZ
1786 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1787 if test "x$LINE" != x ; then
1788 eval "DEFAULT_$LINE"
1789 else
1790 no_cache=1
1791 fi
1792
1793 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1794
1795fi
10f2d63a
VZ
1796
1797
1798 eval "$ac_cv_use_gui"
1799 if test "$no_cache" != 1; then
1800 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1801 fi
1802
1803 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1804 echo "$ac_t""yes" 1>&6
10f2d63a 1805 else
a0b9e27f 1806 echo "$ac_t""no" 1>&6
10f2d63a 1807 fi
a0b9e27f 1808
10f2d63a 1809
b12915c1 1810if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1811
8284b0c5 1812
5005acfe
VZ
1813 enablestring=
1814 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1542ea39 1815echo "configure:1816: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1816 no_cache=0
1817 # Check whether --enable-universal or --disable-universal was given.
1818if test "${enable_universal+set}" = set; then
1819 enableval="$enable_universal"
a0b9e27f 1820
1e6feb95
VZ
1821 if test "$enableval" = yes; then
1822 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1823 else
1824 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1825 fi
a0b9e27f 1826
1e6feb95 1827else
a0b9e27f 1828
1e6feb95
VZ
1829 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
1836 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1837
1838fi
1e6feb95
VZ
1839
1840
1841 eval "$ac_cv_use_universal"
1842 if test "$no_cache" != 1; then
1843 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1844 fi
1845
1846 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1847 echo "$ac_t""yes" 1>&6
1e6feb95 1848 else
a0b9e27f 1849 echo "$ac_t""no" 1>&6
1e6feb95 1850 fi
a0b9e27f 1851
10f2d63a
VZ
1852# Check whether --with-gtk or --without-gtk was given.
1853if test "${with_gtk+set}" = set; then
1854 withval="$with_gtk"
1855 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1856fi
10f2d63a
VZ
1857
1858# Check whether --with-motif or --without-motif was given.
1859if test "${with_motif+set}" = set; then
1860 withval="$with_motif"
1861 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1862fi
10f2d63a 1863
b4085ce6
GD
1864# Check whether --with-mac or --without-mac was given.
1865if test "${with_mac+set}" = set; then
1866 withval="$with_mac"
1867 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1868fi
b4085ce6 1869
ac0c4cc3
DE
1870# Check whether --with-cocoa or --without-cocoa was given.
1871if test "${with_cocoa+set}" = set; then
1872 withval="$with_cocoa"
1873 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1874fi
1875
10f2d63a
VZ
1876# Check whether --with-wine or --without-wine was given.
1877if test "${with_wine+set}" = set; then
1878 withval="$with_wine"
89e6bf6d 1879 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1880fi
10f2d63a 1881
77e13408
RL
1882# Check whether --with-msw or --without-msw was given.
1883if test "${with_msw+set}" = set; then
1884 withval="$with_msw"
b4efce5e 1885 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1886fi
10f2d63a 1887
e07802fc
VZ
1888# Check whether --with-pm or --without-pm was given.
1889if test "${with_pm+set}" = set; then
1890 withval="$with_pm"
1891 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1892fi
698dcdb6 1893
1e6feb95
VZ
1894# Check whether --with-mgl or --without-mgl was given.
1895if test "${with_mgl+set}" = set; then
1896 withval="$with_mgl"
6c657b52 1897 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1898fi
1e6feb95 1899
1725144d
RR
1900# Check whether --with-microwin or --without-microwin was given.
1901if test "${with_microwin+set}" = set; then
1902 withval="$with_microwin"
1903 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1904fi
1725144d 1905
f79bd02d
JS
1906# Check whether --with-x11 or --without-x11 was given.
1907if test "${with_x11+set}" = set; then
1908 withval="$with_x11"
3c011993 1909 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1910fi
10f2d63a 1911
a0b9e27f 1912
5005acfe
VZ
1913 enablestring=
1914 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1542ea39 1915echo "configure:1916: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1916 no_cache=0
ba875e66
VZ
1917 # Check whether --enable-nanox or --disable-nanox was given.
1918if test "${enable_nanox+set}" = set; then
1919 enableval="$enable_nanox"
a0b9e27f 1920
d8356fa3 1921 if test "$enableval" = yes; then
ba875e66 1922 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1923 else
ba875e66 1924 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1925 fi
a0b9e27f 1926
d8356fa3 1927else
a0b9e27f 1928
d8356fa3
VZ
1929 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
ba875e66 1936 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1937
1938fi
d8356fa3
VZ
1939
1940
ba875e66 1941 eval "$ac_cv_use_nanox"
d8356fa3 1942 if test "$no_cache" != 1; then
ba875e66 1943 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1944 fi
1945
1946 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1947 echo "$ac_t""yes" 1>&6
d8356fa3 1948 else
a0b9e27f 1949 echo "$ac_t""no" 1>&6
d8356fa3 1950 fi
a0b9e27f 1951
8284b0c5 1952
d74f4b5a 1953
5005acfe
VZ
1954 enablestring=
1955 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1542ea39 1956echo "configure:1957: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1957 no_cache=0
1958 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1959if test "${enable_gtk2+set}" = set; then
1960 enableval="$enable_gtk2"
a0b9e27f 1961
d74f4b5a
VZ
1962 if test "$enableval" = yes; then
1963 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1964 else
1965 ac_cv_use_gtk2='wxUSE_GTK2=no'
1966 fi
a0b9e27f 1967
10f2d63a 1968else
a0b9e27f 1969
d74f4b5a
VZ
1970 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1971 if test "x$LINE" != x ; then
1972 eval "DEFAULT_$LINE"
1973 else
1974 no_cache=1
1975 fi
1976
1977 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1978
1979fi
52127426 1980
328a083c 1981
d74f4b5a
VZ
1982 eval "$ac_cv_use_gtk2"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1988 echo "$ac_t""yes" 1>&6
d74f4b5a 1989 else
a0b9e27f 1990 echo "$ac_t""no" 1>&6
d74f4b5a 1991 fi
a0b9e27f 1992
d74f4b5a 1993
5c6fa7d2 1994
a0b9e27f 1995 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1542ea39 1996echo "configure:1997: checking for --with-libpng" >&5
8284b0c5 1997 no_cache=0
a0b9e27f 1998 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1999if test "${with_libpng+set}" = set; then
2000 withval="$with_libpng"
a0b9e27f 2001
10f2d63a 2002 if test "$withval" = yes; then
b12915c1 2003 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2004 elif test "$withval" = no; then
b12915c1 2005 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2006 elif test "$withval" = sys; then
2007 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2008 elif test "$withval" = builtin; then
2009 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2010 else
a0b9e27f 2011 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2012 fi
a0b9e27f 2013
10f2d63a 2014else
a0b9e27f 2015
b12915c1 2016 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
b12915c1 2023 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2024
2025fi
10f2d63a
VZ
2026
2027
b12915c1 2028 eval "$ac_cv_use_libpng"
10f2d63a 2029 if test "$no_cache" != 1; then
b12915c1 2030 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2031 fi
2032
b12915c1 2033 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2034 echo "$ac_t""yes" 1>&6
422107f9 2035 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2036 echo "$ac_t""no" 1>&6
422107f9 2037 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2038 echo "$ac_t""system version" 1>&6
4f14bcd8 2039 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2040 echo "$ac_t""builtin version" 1>&6
422107f9 2041 else
a0b9e27f 2042 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2043 fi
a0b9e27f 2044
10f2d63a 2045
a0b9e27f 2046 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1542ea39 2047echo "configure:2048: checking for --with-libjpeg" >&5
10f2d63a 2048 no_cache=0
a0b9e27f 2049 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2050if test "${with_libjpeg+set}" = set; then
2051 withval="$with_libjpeg"
a0b9e27f 2052
10f2d63a 2053 if test "$withval" = yes; then
b12915c1 2054 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2055 elif test "$withval" = no; then
b12915c1 2056 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2057 elif test "$withval" = sys; then
2058 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2059 elif test "$withval" = builtin; then
2060 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2061 else
a0b9e27f 2062 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2063 fi
a0b9e27f 2064
10f2d63a 2065else
a0b9e27f 2066
b12915c1 2067 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2068 if test "x$LINE" != x ; then
2069 eval "DEFAULT_$LINE"
2070 else
2071 no_cache=1
2072 fi
2073
b12915c1 2074 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2075
2076fi
10f2d63a
VZ
2077
2078
b12915c1 2079 eval "$ac_cv_use_libjpeg"
10f2d63a 2080 if test "$no_cache" != 1; then
b12915c1 2081 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2082 fi
2083
b12915c1 2084 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2085 echo "$ac_t""yes" 1>&6
422107f9 2086 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2087 echo "$ac_t""no" 1>&6
422107f9 2088 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2089 echo "$ac_t""system version" 1>&6
4f14bcd8 2090 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2091 echo "$ac_t""builtin version" 1>&6
422107f9 2092 else
a0b9e27f 2093 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2094 fi
a0b9e27f 2095
10f2d63a 2096
a0b9e27f 2097 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1542ea39 2098echo "configure:2099: checking for --with-libtiff" >&5
10f2d63a 2099 no_cache=0
a0b9e27f 2100 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2101if test "${with_libtiff+set}" = set; then
2102 withval="$with_libtiff"
a0b9e27f 2103
10f2d63a 2104 if test "$withval" = yes; then
b12915c1 2105 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2106 elif test "$withval" = no; then
b12915c1 2107 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2108 elif test "$withval" = sys; then
2109 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2110 elif test "$withval" = builtin; then
2111 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2112 else
a0b9e27f 2113 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2114 fi
a0b9e27f 2115
10f2d63a 2116else
a0b9e27f 2117
b12915c1 2118 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2119 if test "x$LINE" != x ; then
2120 eval "DEFAULT_$LINE"
2121 else
2122 no_cache=1
2123 fi
2124
b12915c1 2125 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2126
2127fi
10f2d63a
VZ
2128
2129
b12915c1 2130 eval "$ac_cv_use_libtiff"
10f2d63a 2131 if test "$no_cache" != 1; then
b12915c1 2132 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2133 fi
2134
b12915c1 2135 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2136 echo "$ac_t""yes" 1>&6
0dcf9893 2137 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2138 echo "$ac_t""no" 1>&6
0dcf9893 2139 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2140 echo "$ac_t""system version" 1>&6
4f14bcd8 2141 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2142 echo "$ac_t""builtin version" 1>&6
0dcf9893 2143 else
a0b9e27f 2144 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2145 fi
a0b9e27f 2146
10f2d63a 2147
a0b9e27f 2148 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1542ea39 2149echo "configure:2150: checking for --with-opengl" >&5
10f2d63a 2150 no_cache=0
a0b9e27f 2151 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2152if test "${with_opengl+set}" = set; then
2153 withval="$with_opengl"
a0b9e27f 2154
10f2d63a 2155 if test "$withval" = yes; then
b12915c1 2156 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2157 else
b12915c1 2158 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2159 fi
a0b9e27f 2160
10f2d63a 2161else
a0b9e27f 2162
b12915c1 2163 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
b12915c1 2170 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2171
2172fi
10f2d63a
VZ
2173
2174
b12915c1 2175 eval "$ac_cv_use_opengl"
10f2d63a 2176 if test "$no_cache" != 1; then
b12915c1 2177 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2178 fi
2179
b12915c1 2180 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2181 echo "$ac_t""yes" 1>&6
10f2d63a 2182 else
a0b9e27f 2183 echo "$ac_t""no" 1>&6
10f2d63a 2184 fi
a0b9e27f 2185
10f2d63a 2186
b12915c1
VZ
2187fi
2188
5c6fa7d2 2189
a0b9e27f 2190 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
1542ea39 2191echo "configure:2192: checking for --with-dmalloc" >&5
8284b0c5 2192 no_cache=0
a0b9e27f 2193 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2194if test "${with_dmalloc+set}" = set; then
2195 withval="$with_dmalloc"
a0b9e27f 2196
c7a2bf27 2197 if test "$withval" = yes; then
b12915c1 2198 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2199 else
b12915c1 2200 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2201 fi
a0b9e27f 2202
c7a2bf27 2203else
a0b9e27f 2204
b12915c1 2205 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2206 if test "x$LINE" != x ; then
2207 eval "DEFAULT_$LINE"
2208 else
2209 no_cache=1
2210 fi
2211
b12915c1 2212 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2213
2214fi
c7a2bf27
RR
2215
2216
b12915c1 2217 eval "$ac_cv_use_dmalloc"
c7a2bf27 2218 if test "$no_cache" != 1; then
b12915c1 2219 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2220 fi
2221
b12915c1 2222 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2223 echo "$ac_t""yes" 1>&6
c7a2bf27 2224 else
a0b9e27f 2225 echo "$ac_t""no" 1>&6
c7a2bf27 2226 fi
a0b9e27f 2227
c7a2bf27 2228
a0b9e27f 2229 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
1542ea39 2230echo "configure:2231: checking for --with-regex" >&5
3e44f09d 2231 no_cache=0
a0b9e27f 2232 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2233if test "${with_regex+set}" = set; then
2234 withval="$with_regex"
a0b9e27f 2235
3e44f09d
VZ
2236 if test "$withval" = yes; then
2237 ac_cv_use_regex='wxUSE_REGEX=yes'
2238 elif test "$withval" = no; then
2239 ac_cv_use_regex='wxUSE_REGEX=no'
2240 elif test "$withval" = sys; then
2241 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2242 elif test "$withval" = builtin; then
2243 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2244 else
a0b9e27f 2245 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2246 fi
a0b9e27f 2247
3e44f09d 2248else
a0b9e27f 2249
3e44f09d
VZ
2250 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
2257 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2258
2259fi
3e44f09d
VZ
2260
2261
2262 eval "$ac_cv_use_regex"
2263 if test "$no_cache" != 1; then
2264 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2265 fi
2266
2267 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2268 echo "$ac_t""yes" 1>&6
3e44f09d 2269 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2270 echo "$ac_t""no" 1>&6
3e44f09d 2271 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2272 echo "$ac_t""system version" 1>&6
4f14bcd8 2273 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2274 echo "$ac_t""builtin version" 1>&6
3e44f09d 2275 else
a0b9e27f 2276 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2277 fi
a0b9e27f 2278
3e44f09d 2279
a0b9e27f 2280 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
1542ea39 2281echo "configure:2282: checking for --with-zlib" >&5
10f2d63a 2282 no_cache=0
a0b9e27f 2283 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2284if test "${with_zlib+set}" = set; then
2285 withval="$with_zlib"
a0b9e27f 2286
10f2d63a 2287 if test "$withval" = yes; then
b12915c1 2288 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2289 elif test "$withval" = no; then
b12915c1 2290 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2291 elif test "$withval" = sys; then
2292 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2293 elif test "$withval" = builtin; then
2294 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2295 else
a0b9e27f 2296 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2297 fi
a0b9e27f 2298
10f2d63a 2299else
a0b9e27f 2300
b12915c1 2301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
b12915c1 2308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2309
2310fi
10f2d63a
VZ
2311
2312
b12915c1 2313 eval "$ac_cv_use_zlib"
10f2d63a 2314 if test "$no_cache" != 1; then
b12915c1 2315 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2316 fi
2317
b12915c1 2318 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2319 echo "$ac_t""yes" 1>&6
422107f9 2320 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2321 echo "$ac_t""no" 1>&6
422107f9 2322 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2323 echo "$ac_t""system version" 1>&6
4f14bcd8 2324 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2325 echo "$ac_t""builtin version" 1>&6
422107f9 2326 else
a0b9e27f 2327 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2328 fi
a0b9e27f 2329
10f2d63a 2330
a0b9e27f 2331 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
1542ea39 2332echo "configure:2333: checking for --with-odbc" >&5
10f2d63a 2333 no_cache=0
a0b9e27f 2334 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2335if test "${with_odbc+set}" = set; then
2336 withval="$with_odbc"
a0b9e27f 2337
10f2d63a
VZ
2338 if test "$withval" = yes; then
2339 ac_cv_use_odbc='wxUSE_ODBC=yes'
2340 else
2341 ac_cv_use_odbc='wxUSE_ODBC=no'
2342 fi
a0b9e27f 2343
10f2d63a 2344else
a0b9e27f 2345
10f2d63a
VZ
2346 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2354
2355fi
10f2d63a
VZ
2356
2357
2358 eval "$ac_cv_use_odbc"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2364 echo "$ac_t""yes" 1>&6
10f2d63a 2365 else
a0b9e27f 2366 echo "$ac_t""no" 1>&6
10f2d63a 2367 fi
a0b9e27f 2368
52127426 2369
8284b0c5
MB
2370
2371
5005acfe
VZ
2372 enablestring=
2373 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
1542ea39 2374echo "configure:2375: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-shared or --disable-shared was given.
2377if test "${enable_shared+set}" = set; then
2378 enableval="$enable_shared"
a0b9e27f 2379
10f2d63a
VZ
2380 if test "$enableval" = yes; then
2381 ac_cv_use_shared='wxUSE_SHARED=yes'
2382 else
2383 ac_cv_use_shared='wxUSE_SHARED=no'
2384 fi
a0b9e27f 2385
10f2d63a 2386else
a0b9e27f 2387
10f2d63a
VZ
2388 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2396
2397fi
10f2d63a
VZ
2398
2399
2400 eval "$ac_cv_use_shared"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2406 echo "$ac_t""yes" 1>&6
10f2d63a 2407 else
a0b9e27f 2408 echo "$ac_t""no" 1>&6
10f2d63a 2409 fi
a0b9e27f 2410
10f2d63a 2411
5005acfe
VZ
2412 enablestring=
2413 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
1542ea39 2414echo "configure:2415: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2415 no_cache=0
3a922bb4
RL
2416 # Check whether --enable-soname or --disable-soname was given.
2417if test "${enable_soname+set}" = set; then
2418 enableval="$enable_soname"
a0b9e27f 2419
00cf1208 2420 if test "$enableval" = yes; then
3a922bb4 2421 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2422 else
3a922bb4 2423 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2424 fi
a0b9e27f 2425
00cf1208 2426else
a0b9e27f 2427
3a922bb4 2428 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2429 if test "x$LINE" != x ; then
2430 eval "DEFAULT_$LINE"
2431 else
2432 no_cache=1
2433 fi
2434
3a922bb4 2435 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2436
2437fi
00cf1208
RR
2438
2439
3a922bb4 2440 eval "$ac_cv_use_soname"
00cf1208 2441 if test "$no_cache" != 1; then
3a922bb4 2442 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2443 fi
2444
3a922bb4 2445 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2446 echo "$ac_t""yes" 1>&6
00cf1208 2447 else
a0b9e27f 2448 echo "$ac_t""no" 1>&6
00cf1208 2449 fi
a0b9e27f 2450
00cf1208 2451
5005acfe
VZ
2452 enablestring=
2453 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
1542ea39 2454echo "configure:2455: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-optimise or --disable-optimise was given.
2457if test "${enable_optimise+set}" = set; then
2458 enableval="$enable_optimise"
a0b9e27f 2459
10f2d63a
VZ
2460 if test "$enableval" = yes; then
2461 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2462 else
2463 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2464 fi
a0b9e27f 2465
10f2d63a 2466else
a0b9e27f 2467
10f2d63a
VZ
2468 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2476
2477fi
10f2d63a
VZ
2478
2479
2480 eval "$ac_cv_use_optimise"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2486 echo "$ac_t""yes" 1>&6
10f2d63a 2487 else
a0b9e27f 2488 echo "$ac_t""no" 1>&6
10f2d63a 2489 fi
a0b9e27f 2490
10f2d63a 2491
5005acfe
VZ
2492 enablestring=
2493 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
1542ea39 2494echo "configure:2495: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2495 no_cache=0
2496 # Check whether --enable-debug or --disable-debug was given.
2497if test "${enable_debug+set}" = set; then
2498 enableval="$enable_debug"
a0b9e27f 2499
10f2d63a
VZ
2500 if test "$enableval" = yes; then
2501 ac_cv_use_debug='wxUSE_DEBUG=yes'
2502 else
2503 ac_cv_use_debug='wxUSE_DEBUG=no'
2504 fi
a0b9e27f 2505
10f2d63a 2506else
a0b9e27f 2507
10f2d63a
VZ
2508 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2516
2517fi
10f2d63a
VZ
2518
2519
2520 eval "$ac_cv_use_debug"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2526 echo "$ac_t""yes" 1>&6
10f2d63a 2527 else
a0b9e27f 2528 echo "$ac_t""no" 1>&6
10f2d63a 2529 fi
a0b9e27f 2530
52127426 2531
8284b0c5 2532
5005acfe
VZ
2533 enablestring=
2534 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
1542ea39 2535echo "configure:2536: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2536 no_cache=0
2537 # Check whether --enable-precomp or --disable-precomp was given.
2538if test "${enable_precomp+set}" = set; then
2539 enableval="$enable_precomp"
a0b9e27f 2540
683dccda
GD
2541 if test "$enableval" = yes; then
2542 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2543 else
2544 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2545 fi
a0b9e27f 2546
683dccda 2547else
a0b9e27f 2548
683dccda
GD
2549 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2557
2558fi
683dccda
GD
2559
2560
2561 eval "$ac_cv_use_precomp"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2567 echo "$ac_t""yes" 1>&6
683dccda 2568 else
a0b9e27f 2569 echo "$ac_t""no" 1>&6
683dccda 2570 fi
a0b9e27f 2571
683dccda 2572
10f2d63a
VZ
2573if test "$wxUSE_DEBUG" = "yes"; then
2574 DEFAULT_wxUSE_DEBUG_FLAG=yes
2575 DEFAULT_wxUSE_DEBUG_INFO=yes
2576elif test "$wxUSE_DEBUG" = "no"; then
2577 DEFAULT_wxUSE_DEBUG_FLAG=no
2578 DEFAULT_wxUSE_DEBUG_INFO=no
2579fi
2580
8284b0c5 2581
5005acfe
VZ
2582 enablestring=
2583 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
1542ea39 2584echo "configure:2585: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2585 no_cache=0
2586 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2587if test "${enable_debug_flag+set}" = set; then
2588 enableval="$enable_debug_flag"
a0b9e27f 2589
10f2d63a
VZ
2590 if test "$enableval" = yes; then
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2592 else
2593 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2594 fi
a0b9e27f 2595
10f2d63a 2596else
a0b9e27f 2597
10f2d63a
VZ
2598 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2599 if test "x$LINE" != x ; then
2600 eval "DEFAULT_$LINE"
2601 else
2602 no_cache=1
2603 fi
2604
2605 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2606
2607fi
10f2d63a
VZ
2608
2609
2610 eval "$ac_cv_use_debug_flag"
2611 if test "$no_cache" != 1; then
2612 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2613 fi
2614
2615 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2616 echo "$ac_t""yes" 1>&6
10f2d63a 2617 else
a0b9e27f 2618 echo "$ac_t""no" 1>&6
10f2d63a 2619 fi
a0b9e27f 2620
10f2d63a 2621
5005acfe
VZ
2622 enablestring=
2623 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
1542ea39 2624echo "configure:2625: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2625 no_cache=0
2626 # Check whether --enable-debug_info or --disable-debug_info was given.
2627if test "${enable_debug_info+set}" = set; then
2628 enableval="$enable_debug_info"
a0b9e27f 2629
10f2d63a
VZ
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2632 else
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2634 fi
a0b9e27f 2635
10f2d63a 2636else
a0b9e27f 2637
10f2d63a
VZ
2638 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2646
2647fi
10f2d63a
VZ
2648
2649
2650 eval "$ac_cv_use_debug_info"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2656 echo "$ac_t""yes" 1>&6
10f2d63a 2657 else
a0b9e27f 2658 echo "$ac_t""no" 1>&6
10f2d63a 2659 fi
a0b9e27f 2660
10f2d63a 2661
5005acfe
VZ
2662 enablestring=
2663 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
1542ea39 2664echo "configure:2665: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2665 no_cache=0
2666 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2667if test "${enable_debug_gdb+set}" = set; then
2668 enableval="$enable_debug_gdb"
a0b9e27f 2669
10f2d63a
VZ
2670 if test "$enableval" = yes; then
2671 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2672 else
2673 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2674 fi
a0b9e27f 2675
10f2d63a 2676else
a0b9e27f 2677
10f2d63a
VZ
2678 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2686
2687fi
10f2d63a
VZ
2688
2689
2690 eval "$ac_cv_use_debug_gdb"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2696 echo "$ac_t""yes" 1>&6
10f2d63a 2697 else
a0b9e27f 2698 echo "$ac_t""no" 1>&6
10f2d63a 2699 fi
a0b9e27f 2700
10f2d63a 2701
5005acfe
VZ
2702 enablestring=
2703 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
1542ea39 2704echo "configure:2705: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2705 no_cache=0
2706 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2707if test "${enable_debug_cntxt+set}" = set; then
2708 enableval="$enable_debug_cntxt"
a0b9e27f 2709
10f2d63a
VZ
2710 if test "$enableval" = yes; then
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2712 else
2713 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2714 fi
a0b9e27f 2715
10f2d63a 2716else
a0b9e27f 2717
10f2d63a
VZ
2718 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2726
2727fi
10f2d63a
VZ
2728
2729
2730 eval "$ac_cv_use_debug_cntxt"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2736 echo "$ac_t""yes" 1>&6
10f2d63a 2737 else
a0b9e27f 2738 echo "$ac_t""no" 1>&6
10f2d63a 2739 fi
a0b9e27f 2740
10f2d63a 2741
5005acfe
VZ
2742 enablestring=
2743 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
1542ea39 2744echo "configure:2745: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2745 no_cache=0
2746 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2747if test "${enable_mem_tracing+set}" = set; then
2748 enableval="$enable_mem_tracing"
a0b9e27f 2749
10f2d63a
VZ
2750 if test "$enableval" = yes; then
2751 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2752 else
2753 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2754 fi
a0b9e27f 2755
10f2d63a 2756else
a0b9e27f 2757
10f2d63a
VZ
2758 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2759 if test "x$LINE" != x ; then
2760 eval "DEFAULT_$LINE"
2761 else
2762 no_cache=1
2763 fi
2764
2765 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2766
2767fi
10f2d63a
VZ
2768
2769
2770 eval "$ac_cv_use_mem_tracing"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2776 echo "$ac_t""yes" 1>&6
10f2d63a 2777 else
a0b9e27f 2778 echo "$ac_t""no" 1>&6
10f2d63a 2779 fi
a0b9e27f 2780
10f2d63a 2781
5005acfe
VZ
2782 enablestring=
2783 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
1542ea39 2784echo "configure:2785: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2785 no_cache=0
2786 # Check whether --enable-profile or --disable-profile was given.
2787if test "${enable_profile+set}" = set; then
2788 enableval="$enable_profile"
a0b9e27f 2789
10f2d63a
VZ
2790 if test "$enableval" = yes; then
2791 ac_cv_use_profile='wxUSE_PROFILE=yes'
2792 else
2793 ac_cv_use_profile='wxUSE_PROFILE=no'
2794 fi
a0b9e27f 2795
10f2d63a 2796else
a0b9e27f 2797
10f2d63a
VZ
2798 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2806
2807fi
10f2d63a
VZ
2808
2809
2810 eval "$ac_cv_use_profile"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2816 echo "$ac_t""yes" 1>&6
10f2d63a 2817 else
a0b9e27f 2818 echo "$ac_t""no" 1>&6
10f2d63a 2819 fi
a0b9e27f 2820
10f2d63a 2821
5005acfe
VZ
2822 enablestring=
2823 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
1542ea39 2824echo "configure:2825: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2825 no_cache=0
2826 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2827if test "${enable_no_rtti+set}" = set; then
2828 enableval="$enable_no_rtti"
a0b9e27f 2829
10f2d63a
VZ
2830 if test "$enableval" = yes; then
2831 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2832 else
2833 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2834 fi
a0b9e27f 2835
10f2d63a 2836else
a0b9e27f 2837
10f2d63a
VZ
2838 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2846
2847fi
10f2d63a
VZ
2848
2849
2850 eval "$ac_cv_use_no_rtti"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2856 echo "$ac_t""yes" 1>&6
10f2d63a 2857 else
a0b9e27f 2858 echo "$ac_t""no" 1>&6
10f2d63a 2859 fi
a0b9e27f 2860
10f2d63a 2861
5005acfe
VZ
2862 enablestring=
2863 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
1542ea39 2864echo "configure:2865: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2865 no_cache=0
2866 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2867if test "${enable_no_exceptions+set}" = set; then
2868 enableval="$enable_no_exceptions"
a0b9e27f 2869
10f2d63a
VZ
2870 if test "$enableval" = yes; then
2871 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2872 else
2873 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2874 fi
a0b9e27f 2875
10f2d63a 2876else
a0b9e27f 2877
10f2d63a
VZ
2878 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2879 if test "x$LINE" != x ; then
2880 eval "DEFAULT_$LINE"
2881 else
2882 no_cache=1
2883 fi
2884
2885 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2886
2887fi
10f2d63a
VZ
2888
2889
2890 eval "$ac_cv_use_no_exceptions"
2891 if test "$no_cache" != 1; then
2892 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2893 fi
2894
2895 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2896 echo "$ac_t""yes" 1>&6
10f2d63a 2897 else
a0b9e27f 2898 echo "$ac_t""no" 1>&6
10f2d63a 2899 fi
a0b9e27f 2900
10f2d63a 2901
5005acfe
VZ
2902 enablestring=
2903 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
1542ea39 2904echo "configure:2905: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2905 no_cache=0
2906 # Check whether --enable-permissive or --disable-permissive was given.
2907if test "${enable_permissive+set}" = set; then
2908 enableval="$enable_permissive"
a0b9e27f 2909
10f2d63a
VZ
2910 if test "$enableval" = yes; then
2911 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2912 else
2913 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2914 fi
a0b9e27f 2915
10f2d63a 2916else
a0b9e27f 2917
10f2d63a
VZ
2918 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2926
2927fi
10f2d63a
VZ
2928
2929
2930 eval "$ac_cv_use_permissive"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2936 echo "$ac_t""yes" 1>&6
10f2d63a 2937 else
a0b9e27f 2938 echo "$ac_t""no" 1>&6
10f2d63a 2939 fi
a0b9e27f 2940
10f2d63a 2941
5005acfe
VZ
2942 enablestring=
2943 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
1542ea39 2944echo "configure:2945: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2945 no_cache=0
2946 # Check whether --enable-no_deps or --disable-no_deps was given.
2947if test "${enable_no_deps+set}" = set; then
2948 enableval="$enable_no_deps"
a0b9e27f 2949
10f2d63a
VZ
2950 if test "$enableval" = yes; then
2951 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2952 else
2953 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2954 fi
a0b9e27f 2955
10f2d63a 2956else
a0b9e27f 2957
10f2d63a
VZ
2958 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2959 if test "x$LINE" != x ; then
2960 eval "DEFAULT_$LINE"
2961 else
2962 no_cache=1
2963 fi
2964
2965 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2966
2967fi
10f2d63a
VZ
2968
2969
2970 eval "$ac_cv_use_no_deps"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2976 echo "$ac_t""yes" 1>&6
10f2d63a 2977 else
a0b9e27f 2978 echo "$ac_t""no" 1>&6
10f2d63a 2979 fi
a0b9e27f 2980
52127426 2981
8284b0c5 2982
5005acfe
VZ
2983 enablestring=
2984 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
1542ea39 2985echo "configure:2986: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2986 no_cache=0
2987 # Check whether --enable-compat20 or --disable-compat20 was given.
2988if test "${enable_compat20+set}" = set; then
2989 enableval="$enable_compat20"
a0b9e27f 2990
54276ccf
VZ
2991 if test "$enableval" = yes; then
2992 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2993 else
2994 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2995 fi
a0b9e27f 2996
54276ccf 2997else
a0b9e27f 2998
54276ccf
VZ
2999 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3000 if test "x$LINE" != x ; then
3001 eval "DEFAULT_$LINE"
3002 else
3003 no_cache=1
3004 fi
3005
3006 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3007
3008fi
54276ccf
VZ
3009
3010
3011 eval "$ac_cv_use_compat20"
3012 if test "$no_cache" != 1; then
3013 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3014 fi
3015
3016 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3017 echo "$ac_t""yes" 1>&6
54276ccf 3018 else
a0b9e27f 3019 echo "$ac_t""no" 1>&6
54276ccf 3020 fi
a0b9e27f 3021
54276ccf 3022
65d8ef1e 3023 enablestring=
5005acfe 3024 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
1542ea39 3025echo "configure:3026: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3026 no_cache=0
3027 # Check whether --enable-compat22 or --disable-compat22 was given.
3028if test "${enable_compat22+set}" = set; then
3029 enableval="$enable_compat22"
a0b9e27f 3030
54276ccf
VZ
3031 if test "$enableval" = yes; then
3032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3033 else
3034 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3035 fi
a0b9e27f 3036
54276ccf 3037else
a0b9e27f 3038
54276ccf
VZ
3039 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3047
3048fi
54276ccf
VZ
3049
3050
3051 eval "$ac_cv_use_compat22"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3057 echo "$ac_t""yes" 1>&6
54276ccf 3058 else
a0b9e27f 3059 echo "$ac_t""no" 1>&6
54276ccf 3060 fi
a0b9e27f 3061
54276ccf 3062
65d8ef1e
VS
3063 enablestring=disable
3064 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
1542ea39 3065echo "configure:3066: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3066 no_cache=0
3067 # Check whether --enable-compat24 or --disable-compat24 was given.
3068if test "${enable_compat24+set}" = set; then
3069 enableval="$enable_compat24"
3070
3071 if test "$enableval" = yes; then
3072 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3073 else
3074 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3075 fi
3076
3077else
3078
3079 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3087
3088fi
3089
3090
3091 eval "$ac_cv_use_compat24"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3097 echo "$ac_t""yes" 1>&6
3098 else
3099 echo "$ac_t""no" 1>&6
3100 fi
3101
3102
3bd8fb5f
RD
3103# Check whether --enable-rpath or --disable-rpath was given.
3104if test "${enable_rpath+set}" = set; then
3105 enableval="$enable_rpath"
3106 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3107fi
3108
3bd8fb5f
RD
3109
3110if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3111 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3112fi
3113
8284b0c5
MB
3114
3115
3116
5005acfe
VZ
3117 enablestring=
3118 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
1542ea39 3119echo "configure:3120: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3120 no_cache=0
3121 # Check whether --enable-intl or --disable-intl was given.
3122if test "${enable_intl+set}" = set; then
3123 enableval="$enable_intl"
a0b9e27f 3124
10f2d63a
VZ
3125 if test "$enableval" = yes; then
3126 ac_cv_use_intl='wxUSE_INTL=yes'
3127 else
3128 ac_cv_use_intl='wxUSE_INTL=no'
3129 fi
a0b9e27f 3130
10f2d63a 3131else
a0b9e27f 3132
10f2d63a
VZ
3133 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3141
3142fi
10f2d63a
VZ
3143
3144
3145 eval "$ac_cv_use_intl"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3151 echo "$ac_t""yes" 1>&6
10f2d63a 3152 else
a0b9e27f 3153 echo "$ac_t""no" 1>&6
10f2d63a 3154 fi
a0b9e27f 3155
10f2d63a 3156
5005acfe
VZ
3157 enablestring=
3158 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
1542ea39 3159echo "configure:3160: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3160 no_cache=0
3161 # Check whether --enable-config or --disable-config was given.
3162if test "${enable_config+set}" = set; then
3163 enableval="$enable_config"
a0b9e27f 3164
10f2d63a
VZ
3165 if test "$enableval" = yes; then
3166 ac_cv_use_config='wxUSE_CONFIG=yes'
3167 else
3168 ac_cv_use_config='wxUSE_CONFIG=no'
3169 fi
a0b9e27f 3170
10f2d63a 3171else
a0b9e27f 3172
10f2d63a
VZ
3173 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3181
3182fi
10f2d63a
VZ
3183
3184
3185 eval "$ac_cv_use_config"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3191 echo "$ac_t""yes" 1>&6
10f2d63a 3192 else
a0b9e27f 3193 echo "$ac_t""no" 1>&6
10f2d63a 3194 fi
a0b9e27f 3195
52127426 3196
8284b0c5 3197
5005acfe
VZ
3198 enablestring=
3199 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
1542ea39 3200echo "configure:3201: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3201 no_cache=0
3202 # Check whether --enable-protocols or --disable-protocols was given.
3203if test "${enable_protocols+set}" = set; then
3204 enableval="$enable_protocols"
a0b9e27f 3205
a1622950
VZ
3206 if test "$enableval" = yes; then
3207 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3208 else
3209 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3210 fi
a0b9e27f 3211
a1622950 3212else
a0b9e27f 3213
a1622950
VZ
3214 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3222
3223fi
a1622950
VZ
3224
3225
3226 eval "$ac_cv_use_protocols"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3232 echo "$ac_t""yes" 1>&6
a1622950 3233 else
a0b9e27f 3234 echo "$ac_t""no" 1>&6
a1622950 3235 fi
a0b9e27f 3236
a1622950 3237
5005acfe
VZ
3238 enablestring=
3239 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
1542ea39 3240echo "configure:3241: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3241 no_cache=0
3242 # Check whether --enable-ftp or --disable-ftp was given.
3243if test "${enable_ftp+set}" = set; then
3244 enableval="$enable_ftp"
a0b9e27f 3245
a1622950
VZ
3246 if test "$enableval" = yes; then
3247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3248 else
3249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3250 fi
a0b9e27f 3251
a1622950 3252else
a0b9e27f 3253
a1622950
VZ
3254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3262
3263fi
a1622950
VZ
3264
3265
3266 eval "$ac_cv_use_ftp"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3272 echo "$ac_t""yes" 1>&6
a1622950 3273 else
a0b9e27f 3274 echo "$ac_t""no" 1>&6
a1622950 3275 fi
a0b9e27f 3276
a1622950 3277
5005acfe
VZ
3278 enablestring=
3279 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
1542ea39 3280echo "configure:3281: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3281 no_cache=0
3282 # Check whether --enable-http or --disable-http was given.
3283if test "${enable_http+set}" = set; then
3284 enableval="$enable_http"
a0b9e27f 3285
a1622950
VZ
3286 if test "$enableval" = yes; then
3287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3288 else
3289 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3290 fi
a0b9e27f 3291
a1622950 3292else
a0b9e27f 3293
a1622950
VZ
3294 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3302
3303fi
a1622950
VZ
3304
3305
3306 eval "$ac_cv_use_http"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3312 echo "$ac_t""yes" 1>&6
a1622950 3313 else
a0b9e27f 3314 echo "$ac_t""no" 1>&6
a1622950 3315 fi
a0b9e27f 3316
a1622950 3317
5005acfe
VZ
3318 enablestring=
3319 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
1542ea39 3320echo "configure:3321: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3321 no_cache=0
3322 # Check whether --enable-fileproto or --disable-fileproto was given.
3323if test "${enable_fileproto+set}" = set; then
3324 enableval="$enable_fileproto"
a0b9e27f 3325
a1622950
VZ
3326 if test "$enableval" = yes; then
3327 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3328 else
3329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3330 fi
a0b9e27f 3331
a1622950 3332else
a0b9e27f 3333
a1622950
VZ
3334 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3335 if test "x$LINE" != x ; then
3336 eval "DEFAULT_$LINE"
3337 else
3338 no_cache=1
3339 fi
3340
3341 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3342
3343fi
a1622950
VZ
3344
3345
3346 eval "$ac_cv_use_fileproto"
3347 if test "$no_cache" != 1; then
3348 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3349 fi
3350
3351 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3352 echo "$ac_t""yes" 1>&6
a1622950 3353 else
a0b9e27f 3354 echo "$ac_t""no" 1>&6
a1622950 3355 fi
a0b9e27f 3356
a1622950 3357
5005acfe
VZ
3358 enablestring=
3359 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
1542ea39 3360echo "configure:3361: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3361 no_cache=0
3362 # Check whether --enable-sockets or --disable-sockets was given.
3363if test "${enable_sockets+set}" = set; then
3364 enableval="$enable_sockets"
a0b9e27f 3365
10f2d63a
VZ
3366 if test "$enableval" = yes; then
3367 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3368 else
3369 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3370 fi
a0b9e27f 3371
10f2d63a 3372else
a0b9e27f 3373
10f2d63a
VZ
3374 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3382
3383fi
10f2d63a
VZ
3384
3385
3386 eval "$ac_cv_use_sockets"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3392 echo "$ac_t""yes" 1>&6
10f2d63a 3393 else
a0b9e27f 3394 echo "$ac_t""no" 1>&6
10f2d63a 3395 fi
a0b9e27f 3396
8284b0c5 3397
5005acfe
VZ
3398 enablestring=
3399 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
1542ea39 3400echo "configure:3401: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3401 no_cache=0
3402 # Check whether --enable-ole or --disable-ole was given.
3403if test "${enable_ole+set}" = set; then
3404 enableval="$enable_ole"
3405
3406 if test "$enableval" = yes; then
3407 ac_cv_use_ole='wxUSE_OLE=yes'
3408 else
3409 ac_cv_use_ole='wxUSE_OLE=no'
3410 fi
3411
3412else
3413
3414 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3415 if test "x$LINE" != x ; then
3416 eval "DEFAULT_$LINE"
3417 else
3418 no_cache=1
3419 fi
3420
3421 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3422
3423fi
3424
3425
3426 eval "$ac_cv_use_ole"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_OLE" = yes; then
3432 echo "$ac_t""yes" 1>&6
3433 else
3434 echo "$ac_t""no" 1>&6
3435 fi
3436
3437
5005acfe
VZ
3438 enablestring=
3439 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
1542ea39 3440echo "configure:3441: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3441 no_cache=0
3442 # Check whether --enable-dataobj or --disable-dataobj was given.
3443if test "${enable_dataobj+set}" = set; then
3444 enableval="$enable_dataobj"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3448 else
3449 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3450 fi
3451
3452else
3453
3454 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3462
3463fi
3464
3465
3466 eval "$ac_cv_use_dataobj"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_DATAOBJ" = yes; then
3472 echo "$ac_t""yes" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477
52127426 3478
5005acfe
VZ
3479 enablestring=
3480 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
1542ea39 3481echo "configure:3482: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3482 no_cache=0
eb4efbdc
VZ
3483 # Check whether --enable-ipc or --disable-ipc was given.
3484if test "${enable_ipc+set}" = set; then
3485 enableval="$enable_ipc"
a0b9e27f 3486
10f2d63a 3487 if test "$enableval" = yes; then
eb4efbdc 3488 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3489 else
eb4efbdc 3490 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3491 fi
a0b9e27f 3492
10f2d63a 3493else
a0b9e27f 3494
eb4efbdc 3495 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
eb4efbdc 3502 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3503
3504fi
10f2d63a
VZ
3505
3506
eb4efbdc 3507 eval "$ac_cv_use_ipc"
10f2d63a 3508 if test "$no_cache" != 1; then
eb4efbdc 3509 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3510 fi
3511
eb4efbdc 3512 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3513 echo "$ac_t""yes" 1>&6
10f2d63a 3514 else
a0b9e27f 3515 echo "$ac_t""no" 1>&6
10f2d63a 3516 fi
a0b9e27f 3517
52127426 3518
8284b0c5 3519
5005acfe
VZ
3520 enablestring=
3521 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
1542ea39 3522echo "configure:3523: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3523 no_cache=0
3524 # Check whether --enable-cmdline or --disable-cmdline was given.
3525if test "${enable_cmdline+set}" = set; then
3526 enableval="$enable_cmdline"
a0b9e27f 3527
1e6feb95
VZ
3528 if test "$enableval" = yes; then
3529 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3530 else
3531 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3532 fi
a0b9e27f 3533
1e6feb95 3534else
a0b9e27f 3535
1e6feb95
VZ
3536 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3544
3545fi
1e6feb95
VZ
3546
3547
3548 eval "$ac_cv_use_cmdline"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3554 echo "$ac_t""yes" 1>&6
1e6feb95 3555 else
a0b9e27f 3556 echo "$ac_t""no" 1>&6
1e6feb95 3557 fi
a0b9e27f 3558
1e6feb95 3559
5005acfe
VZ
3560 enablestring=
3561 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
1542ea39 3562echo "configure:3563: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3563 no_cache=0
3564 # Check whether --enable-datetime or --disable-datetime was given.
3565if test "${enable_datetime+set}" = set; then
3566 enableval="$enable_datetime"
a0b9e27f 3567
1e6feb95
VZ
3568 if test "$enableval" = yes; then
3569 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3570 else
3571 ac_cv_use_datetime='wxUSE_DATETIME=no'
3572 fi
a0b9e27f 3573
1e6feb95 3574else
a0b9e27f 3575
1e6feb95
VZ
3576 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3584
3585fi
1e6feb95
VZ
3586
3587
3588 eval "$ac_cv_use_datetime"
3589 if test "$no_cache" != 1; then
3590 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3591 fi
3592
3593 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3594 echo "$ac_t""yes" 1>&6
1e6feb95 3595 else
a0b9e27f 3596 echo "$ac_t""no" 1>&6
1e6feb95 3597 fi
a0b9e27f 3598
1e6feb95 3599
5005acfe
VZ
3600 enablestring=
3601 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
1542ea39 3602echo "configure:3603: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3603 no_cache=0
3604 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3605if test "${enable_stopwatch+set}" = set; then
3606 enableval="$enable_stopwatch"
a0b9e27f 3607
1e6feb95
VZ
3608 if test "$enableval" = yes; then
3609 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3610 else
3611 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3612 fi
a0b9e27f 3613
1e6feb95 3614else
a0b9e27f 3615
1e6feb95
VZ
3616 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3624
3625fi
1e6feb95
VZ
3626
3627
3628 eval "$ac_cv_use_stopwatch"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3634 echo "$ac_t""yes" 1>&6
1e6feb95 3635 else
a0b9e27f 3636 echo "$ac_t""no" 1>&6
1e6feb95 3637 fi
a0b9e27f 3638
1e6feb95 3639
5005acfe
VZ
3640 enablestring=
3641 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
1542ea39 3642echo "configure:3643: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3643 no_cache=0
eb4efbdc
VZ
3644 # Check whether --enable-dialupman or --disable-dialupman was given.
3645if test "${enable_dialupman+set}" = set; then
3646 enableval="$enable_dialupman"
a0b9e27f 3647
10f2d63a 3648 if test "$enableval" = yes; then
eb4efbdc 3649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3650 else
eb4efbdc 3651 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3652 fi
a0b9e27f 3653
10f2d63a 3654else
a0b9e27f 3655
eb4efbdc 3656 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
eb4efbdc 3663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3664
3665fi
10f2d63a
VZ
3666
3667
eb4efbdc 3668 eval "$ac_cv_use_dialupman"
10f2d63a 3669 if test "$no_cache" != 1; then
eb4efbdc 3670 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3671 fi
3672
eb4efbdc 3673 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3674 echo "$ac_t""yes" 1>&6
10f2d63a 3675 else
a0b9e27f 3676 echo "$ac_t""no" 1>&6
10f2d63a 3677 fi
a0b9e27f 3678
10f2d63a 3679
5005acfe
VZ
3680 enablestring=
3681 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
1542ea39 3682echo "configure:3683: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3683 no_cache=0
3684 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3685if test "${enable_apple_ieee+set}" = set; then
3686 enableval="$enable_apple_ieee"
a0b9e27f 3687
10f2d63a
VZ
3688 if test "$enableval" = yes; then
3689 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3690 else
3691 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3692 fi
a0b9e27f 3693
10f2d63a 3694else
a0b9e27f 3695
10f2d63a
VZ
3696 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3704
3705fi
10f2d63a
VZ
3706
3707
3708 eval "$ac_cv_use_apple_ieee"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3714 echo "$ac_t""yes" 1>&6
10f2d63a 3715 else
a0b9e27f 3716 echo "$ac_t""no" 1>&6
10f2d63a 3717 fi
a0b9e27f 3718
10f2d63a 3719
5005acfe
VZ
3720 enablestring=
3721 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
1542ea39 3722echo "configure:3723: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3723 no_cache=0
1e6feb95
VZ
3724 # Check whether --enable-timer or --disable-timer was given.
3725if test "${enable_timer+set}" = set; then
3726 enableval="$enable_timer"
a0b9e27f 3727
10f2d63a 3728 if test "$enableval" = yes; then
1e6feb95 3729 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3730 else
1e6feb95 3731 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3732 fi
a0b9e27f 3733
10f2d63a 3734else
a0b9e27f 3735
1e6feb95 3736 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
1e6feb95 3743 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3744
3745fi
10f2d63a
VZ
3746
3747
1e6feb95 3748 eval "$ac_cv_use_timer"
10f2d63a 3749 if test "$no_cache" != 1; then
1e6feb95 3750 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3751 fi
3752
1e6feb95 3753 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3754 echo "$ac_t""yes" 1>&6
10f2d63a 3755 else
a0b9e27f 3756 echo "$ac_t""no" 1>&6
10f2d63a 3757 fi
a0b9e27f 3758
10f2d63a 3759
5005acfe
VZ
3760 enablestring=
3761 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
1542ea39 3762echo "configure:3763: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3763 no_cache=0
3764 # Check whether --enable-wave or --disable-wave was given.
3765if test "${enable_wave+set}" = set; then
3766 enableval="$enable_wave"
a0b9e27f 3767
10f2d63a
VZ
3768 if test "$enableval" = yes; then
3769 ac_cv_use_wave='wxUSE_WAVE=yes'
3770 else
3771 ac_cv_use_wave='wxUSE_WAVE=no'
3772 fi
a0b9e27f 3773
10f2d63a 3774else
a0b9e27f 3775
10f2d63a
VZ
3776 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3784
3785fi
10f2d63a
VZ
3786
3787
3788 eval "$ac_cv_use_wave"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3794 echo "$ac_t""yes" 1>&6
10f2d63a 3795 else
a0b9e27f 3796 echo "$ac_t""no" 1>&6
10f2d63a 3797 fi
a0b9e27f 3798
10f2d63a 3799
5005acfe
VZ
3800 enablestring=
3801 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
1542ea39 3802echo "configure:3803: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3803 no_cache=0
3804 # Check whether --enable-fraction or --disable-fraction was given.
3805if test "${enable_fraction+set}" = set; then
3806 enableval="$enable_fraction"
a0b9e27f 3807
10f2d63a
VZ
3808 if test "$enableval" = yes; then
3809 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3810 else
3811 ac_cv_use_fraction='wxUSE_FRACTION=no'
3812 fi
a0b9e27f 3813
10f2d63a 3814else
a0b9e27f 3815
10f2d63a
VZ
3816 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3824
3825fi
10f2d63a
VZ
3826
3827
3828 eval "$ac_cv_use_fraction"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3834 echo "$ac_t""yes" 1>&6
10f2d63a 3835 else
a0b9e27f 3836 echo "$ac_t""no" 1>&6
10f2d63a 3837 fi
a0b9e27f 3838
10f2d63a 3839
5005acfe
VZ
3840 enablestring=
3841 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
1542ea39 3842echo "configure:3843: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3843 no_cache=0
3844 # Check whether --enable-dynlib or --disable-dynlib was given.
3845if test "${enable_dynlib+set}" = set; then
3846 enableval="$enable_dynlib"
a0b9e27f 3847
10f2d63a
VZ
3848 if test "$enableval" = yes; then
3849 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3850 else
3851 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3852 fi
a0b9e27f 3853
10f2d63a 3854else
a0b9e27f 3855
10f2d63a
VZ
3856 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3857 if test "x$LINE" != x ; then
3858 eval "DEFAULT_$LINE"
3859 else
3860 no_cache=1
3861 fi
3862
3863 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3864
3865fi
10f2d63a
VZ
3866
3867
3868 eval "$ac_cv_use_dynlib"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3874 echo "$ac_t""yes" 1>&6
10f2d63a 3875 else
a0b9e27f 3876 echo "$ac_t""no" 1>&6
10f2d63a 3877 fi
a0b9e27f 3878
10f2d63a 3879
5005acfe
VZ
3880 enablestring=
3881 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
1542ea39 3882echo "configure:3883: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3883 no_cache=0
3884 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3885if test "${enable_dynamicloader+set}" = set; then
3886 enableval="$enable_dynamicloader"
a0b9e27f 3887
0b9ab0bd
RL
3888 if test "$enableval" = yes; then
3889 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3890 else
3891 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3892 fi
a0b9e27f 3893
0b9ab0bd 3894else
a0b9e27f 3895
0b9ab0bd
RL
3896 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3897 if test "x$LINE" != x ; then
3898 eval "DEFAULT_$LINE"
3899 else
3900 no_cache=1
3901 fi
3902
3903 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3904
3905fi
0b9ab0bd
RL
3906
3907
3908 eval "$ac_cv_use_dynamicloader"
3909 if test "$no_cache" != 1; then
3910 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3911 fi
3912
3913 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3914 echo "$ac_t""yes" 1>&6
0b9ab0bd 3915 else
a0b9e27f 3916 echo "$ac_t""no" 1>&6
0b9ab0bd 3917 fi
a0b9e27f 3918
0b9ab0bd 3919
5005acfe
VZ
3920 enablestring=
3921 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
1542ea39 3922echo "configure:3923: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3923 no_cache=0
3924 # Check whether --enable-longlong or --disable-longlong was given.
3925if test "${enable_longlong+set}" = set; then
3926 enableval="$enable_longlong"
a0b9e27f 3927
10f2d63a
VZ
3928 if test "$enableval" = yes; then
3929 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3930 else
3931 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3932 fi
a0b9e27f 3933
10f2d63a 3934else
a0b9e27f 3935
10f2d63a
VZ
3936 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3944
3945fi
10f2d63a
VZ
3946
3947
3948 eval "$ac_cv_use_longlong"
3949 if test "$no_cache" != 1; then
3950 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3951 fi
3952
3953 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3954 echo "$ac_t""yes" 1>&6
10f2d63a 3955 else
a0b9e27f 3956 echo "$ac_t""no" 1>&6
10f2d63a 3957 fi
a0b9e27f 3958
10f2d63a 3959
5005acfe
VZ
3960 enablestring=
3961 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
1542ea39 3962echo "configure:3963: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3963 no_cache=0
3964 # Check whether --enable-geometry or --disable-geometry was given.
3965if test "${enable_geometry+set}" = set; then
3966 enableval="$enable_geometry"
a0b9e27f 3967
e8f65ba6
RR
3968 if test "$enableval" = yes; then
3969 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3970 else
3971 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3972 fi
a0b9e27f 3973
e8f65ba6 3974else
a0b9e27f 3975
e8f65ba6
RR
3976 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3977 if test "x$LINE" != x ; then
3978 eval "DEFAULT_$LINE"
3979 else
3980 no_cache=1
3981 fi
3982
3983 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3984
3985fi
e8f65ba6
RR
3986
3987
3988 eval "$ac_cv_use_geometry"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3994 echo "$ac_t""yes" 1>&6
e8f65ba6 3995 else
a0b9e27f 3996 echo "$ac_t""no" 1>&6
e8f65ba6 3997 fi
a0b9e27f 3998
e8f65ba6 3999
5005acfe
VZ
4000 enablestring=
4001 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
1542ea39 4002echo "configure:4003: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4003 no_cache=0
4004 # Check whether --enable-log or --disable-log was given.
4005if test "${enable_log+set}" = set; then
4006 enableval="$enable_log"
a0b9e27f 4007
10f2d63a
VZ
4008 if test "$enableval" = yes; then
4009 ac_cv_use_log='wxUSE_LOG=yes'
4010 else
4011 ac_cv_use_log='wxUSE_LOG=no'
4012 fi
a0b9e27f 4013
10f2d63a 4014else
a0b9e27f 4015
10f2d63a
VZ
4016 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4024
4025fi
10f2d63a
VZ
4026
4027
4028 eval "$ac_cv_use_log"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4034 echo "$ac_t""yes" 1>&6
10f2d63a 4035 else
a0b9e27f 4036 echo "$ac_t""no" 1>&6
10f2d63a 4037 fi
a0b9e27f 4038
10f2d63a 4039
5005acfe
VZ
4040 enablestring=
4041 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
1542ea39 4042echo "configure:4043: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4043 no_cache=0
4044 # Check whether --enable-streams or --disable-streams was given.
4045if test "${enable_streams+set}" = set; then
4046 enableval="$enable_streams"
a0b9e27f 4047
10f2d63a
VZ
4048 if test "$enableval" = yes; then
4049 ac_cv_use_streams='wxUSE_STREAMS=yes'
4050 else
4051 ac_cv_use_streams='wxUSE_STREAMS=no'
4052 fi
a0b9e27f 4053
10f2d63a 4054else
a0b9e27f 4055
10f2d63a
VZ
4056 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4064
4065fi
10f2d63a
VZ
4066
4067
4068 eval "$ac_cv_use_streams"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4074 echo "$ac_t""yes" 1>&6
10f2d63a 4075 else
a0b9e27f 4076 echo "$ac_t""no" 1>&6
10f2d63a 4077 fi
a0b9e27f 4078
10f2d63a 4079
5005acfe
VZ
4080 enablestring=
4081 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
1542ea39 4082echo "configure:4083: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4083 no_cache=0
4084 # Check whether --enable-file or --disable-file was given.
4085if test "${enable_file+set}" = set; then
4086 enableval="$enable_file"
a0b9e27f 4087
10f2d63a
VZ
4088 if test "$enableval" = yes; then
4089 ac_cv_use_file='wxUSE_FILE=yes'
4090 else
4091 ac_cv_use_file='wxUSE_FILE=no'
4092 fi
a0b9e27f 4093
10f2d63a 4094else
a0b9e27f 4095
10f2d63a
VZ
4096 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4097 if test "x$LINE" != x ; then
4098 eval "DEFAULT_$LINE"
4099 else
4100 no_cache=1
4101 fi
4102
4103 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4104
4105fi
10f2d63a
VZ
4106
4107
4108 eval "$ac_cv_use_file"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4114 echo "$ac_t""yes" 1>&6
10f2d63a 4115 else
a0b9e27f 4116 echo "$ac_t""no" 1>&6
10f2d63a 4117 fi
a0b9e27f 4118
10f2d63a 4119
5005acfe
VZ
4120 enablestring=
4121 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
1542ea39 4122echo "configure:4123: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4123 no_cache=0
1e6feb95
VZ
4124 # Check whether --enable-ffile or --disable-ffile was given.
4125if test "${enable_ffile+set}" = set; then
4126 enableval="$enable_ffile"
a0b9e27f 4127
10f2d63a 4128 if test "$enableval" = yes; then
1e6feb95 4129 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4130 else
1e6feb95 4131 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4132 fi
a0b9e27f 4133
10f2d63a 4134else
a0b9e27f 4135
1e6feb95 4136 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
1e6feb95 4143 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4144
4145fi
10f2d63a
VZ
4146
4147
1e6feb95 4148 eval "$ac_cv_use_ffile"
10f2d63a 4149 if test "$no_cache" != 1; then
1e6feb95 4150 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4151 fi
4152
1e6feb95 4153 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4154 echo "$ac_t""yes" 1>&6
10f2d63a 4155 else
a0b9e27f 4156 echo "$ac_t""no" 1>&6
10f2d63a 4157 fi
a0b9e27f 4158
10f2d63a 4159
5005acfe
VZ
4160 enablestring=
4161 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
1542ea39 4162echo "configure:4163: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4163 no_cache=0
4164 # Check whether --enable-textbuf or --disable-textbuf was given.
4165if test "${enable_textbuf+set}" = set; then
4166 enableval="$enable_textbuf"
a0b9e27f 4167
a3a584a7
VZ
4168 if test "$enableval" = yes; then
4169 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4170 else
4171 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4172 fi
a0b9e27f 4173
a3a584a7 4174else
a0b9e27f 4175
a3a584a7
VZ
4176 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4177 if test "x$LINE" != x ; then
4178 eval "DEFAULT_$LINE"
4179 else
4180 no_cache=1
4181 fi
4182
4183 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4184
4185fi
a3a584a7
VZ
4186
4187
4188 eval "$ac_cv_use_textbuf"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4194 echo "$ac_t""yes" 1>&6
a3a584a7 4195 else
a0b9e27f 4196 echo "$ac_t""no" 1>&6
a3a584a7 4197 fi
a0b9e27f 4198
a3a584a7 4199
5005acfe
VZ
4200 enablestring=
4201 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
1542ea39 4202echo "configure:4203: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4203 no_cache=0
1e6feb95
VZ
4204 # Check whether --enable-textfile or --disable-textfile was given.
4205if test "${enable_textfile+set}" = set; then
4206 enableval="$enable_textfile"
a0b9e27f 4207
10f2d63a 4208 if test "$enableval" = yes; then
1e6feb95 4209 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4210 else
1e6feb95 4211 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4212 fi
a0b9e27f 4213
10f2d63a 4214else
a0b9e27f 4215
1e6feb95 4216 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
1e6feb95 4223 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4224
4225fi
10f2d63a
VZ
4226
4227
1e6feb95 4228 eval "$ac_cv_use_textfile"
10f2d63a 4229 if test "$no_cache" != 1; then
1e6feb95 4230 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4231 fi
4232
1e6feb95 4233 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4234 echo "$ac_t""yes" 1>&6
10f2d63a 4235 else
a0b9e27f 4236 echo "$ac_t""no" 1>&6
10f2d63a 4237 fi
a0b9e27f 4238
10f2d63a 4239
5005acfe
VZ
4240 enablestring=
4241 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
1542ea39 4242echo "configure:4243: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4243 no_cache=0
1e6feb95
VZ
4244 # Check whether --enable-fontmap or --disable-fontmap was given.
4245if test "${enable_fontmap+set}" = set; then
4246 enableval="$enable_fontmap"
a0b9e27f 4247
10f2d63a 4248 if test "$enableval" = yes; then
1e6feb95 4249 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4250 else
1e6feb95 4251 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4252 fi
a0b9e27f 4253
10f2d63a 4254else
a0b9e27f 4255
1e6feb95 4256 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
1e6feb95 4263 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4264
4265fi
10f2d63a
VZ
4266
4267
1e6feb95 4268 eval "$ac_cv_use_fontmap"
10f2d63a 4269 if test "$no_cache" != 1; then
1e6feb95 4270 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4271 fi
4272
1e6feb95 4273 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4274 echo "$ac_t""yes" 1>&6
10f2d63a 4275 else
a0b9e27f 4276 echo "$ac_t""no" 1>&6
10f2d63a 4277 fi
a0b9e27f 4278
10f2d63a 4279
5005acfe
VZ
4280 enablestring=
4281 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
1542ea39 4282echo "configure:4283: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4283 no_cache=0
1e6feb95
VZ
4284 # Check whether --enable-unicode or --disable-unicode was given.
4285if test "${enable_unicode+set}" = set; then
4286 enableval="$enable_unicode"
a0b9e27f 4287
1e6feb95
VZ
4288 if test "$enableval" = yes; then
4289 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4290 else
4291 ac_cv_use_unicode='wxUSE_UNICODE=no'
4292 fi
a0b9e27f 4293
1e6feb95 4294else
a0b9e27f 4295
1e6feb95
VZ
4296 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4304
4305fi
1e6feb95
VZ
4306
4307
4308 eval "$ac_cv_use_unicode"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4314 echo "$ac_t""yes" 1>&6
1e6feb95 4315 else
a0b9e27f 4316 echo "$ac_t""no" 1>&6
1e6feb95 4317 fi
a0b9e27f 4318
1e6feb95 4319
5005acfe
VZ
4320 enablestring=
4321 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
1542ea39 4322echo "configure:4323: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4323 no_cache=0
4324 # Check whether --enable-mslu or --disable-mslu was given.
4325if test "${enable_mslu+set}" = set; then
4326 enableval="$enable_mslu"
a0b9e27f 4327
a72a4bfa
VS
4328 if test "$enableval" = yes; then
4329 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4330 else
4331 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4332 fi
a0b9e27f 4333
a72a4bfa 4334else
a0b9e27f 4335
a72a4bfa
VS
4336 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4344
4345fi
a72a4bfa
VS
4346
4347
4348 eval "$ac_cv_use_mslu"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4354 echo "$ac_t""yes" 1>&6
a72a4bfa 4355 else
a0b9e27f 4356 echo "$ac_t""no" 1>&6
a72a4bfa 4357 fi
a0b9e27f 4358
a72a4bfa 4359
5005acfe
VZ
4360 enablestring=
4361 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
1542ea39 4362echo "configure:4363: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4363 no_cache=0
4364 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4365if test "${enable_wxprintfv+set}" = set; then
4366 enableval="$enable_wxprintfv"
a0b9e27f 4367
1e6feb95 4368 if test "$enableval" = yes; then
10f2d63a
VZ
4369 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4370 else
4371 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4372 fi
a0b9e27f 4373
10f2d63a 4374else
a0b9e27f 4375
10f2d63a
VZ
4376 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4384
4385fi
10f2d63a
VZ
4386
4387
4388 eval "$ac_cv_use_wxprintfv"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4394 echo "$ac_t""yes" 1>&6
10f2d63a 4395 else
a0b9e27f 4396 echo "$ac_t""no" 1>&6
10f2d63a 4397 fi
a0b9e27f 4398
10f2d63a 4399
5005acfe
VZ
4400 enablestring=
4401 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
1542ea39 4402echo "configure:4403: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4403 no_cache=0
4404 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4405if test "${enable_std_iostreams+set}" = set; then
4406 enableval="$enable_std_iostreams"
a0b9e27f 4407
10f2d63a
VZ
4408 if test "$enableval" = yes; then
4409 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4410 else
4411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4412 fi
a0b9e27f 4413
10f2d63a 4414else
a0b9e27f 4415
10f2d63a
VZ
4416 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4417 if test "x$LINE" != x ; then
4418 eval "DEFAULT_$LINE"
4419 else
4420 no_cache=1
4421 fi
4422
4423 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4424
4425fi
10f2d63a
VZ
4426
4427
4428 eval "$ac_cv_use_std_iostreams"
4429 if test "$no_cache" != 1; then
4430 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4431 fi
4432
4433 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4434 echo "$ac_t""yes" 1>&6
10f2d63a 4435 else
a0b9e27f 4436 echo "$ac_t""no" 1>&6
10f2d63a 4437 fi
a0b9e27f 4438
10f2d63a 4439
5005acfe
VZ
4440 enablestring=
4441 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
1542ea39 4442echo "configure:4443: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4443 no_cache=0
4444 # Check whether --enable-filesystem or --disable-filesystem was given.
4445if test "${enable_filesystem+set}" = set; then
4446 enableval="$enable_filesystem"
a0b9e27f 4447
24528b0c
VS
4448 if test "$enableval" = yes; then
4449 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4450 else
4451 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4452 fi
a0b9e27f 4453
24528b0c 4454else
a0b9e27f 4455
24528b0c
VS
4456 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4464
4465fi
24528b0c
VS
4466
4467
4468 eval "$ac_cv_use_filesystem"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4474 echo "$ac_t""yes" 1>&6
24528b0c 4475 else
a0b9e27f 4476 echo "$ac_t""no" 1>&6
24528b0c 4477 fi
a0b9e27f 4478
24528b0c 4479
5005acfe
VZ
4480 enablestring=
4481 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
1542ea39 4482echo "configure:4483: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4483 no_cache=0
4484 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4485if test "${enable_fs_inet+set}" = set; then
4486 enableval="$enable_fs_inet"
a0b9e27f 4487
10f2d63a
VZ
4488 if test "$enableval" = yes; then
4489 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4490 else
4491 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4492 fi
a0b9e27f 4493
10f2d63a 4494else
a0b9e27f 4495
10f2d63a
VZ
4496 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4497 if test "x$LINE" != x ; then
4498 eval "DEFAULT_$LINE"
4499 else
4500 no_cache=1
4501 fi
4502
4503 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4504
4505fi
10f2d63a
VZ
4506
4507
4508 eval "$ac_cv_use_fs_inet"
4509 if test "$no_cache" != 1; then
4510 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4511 fi
4512
4513 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4514 echo "$ac_t""yes" 1>&6
10f2d63a 4515 else
a0b9e27f 4516 echo "$ac_t""no" 1>&6
10f2d63a 4517 fi
a0b9e27f 4518
10f2d63a 4519
5005acfe
VZ
4520 enablestring=
4521 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
1542ea39 4522echo "configure:4523: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4523 no_cache=0
4524 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4525if test "${enable_fs_zip+set}" = set; then
4526 enableval="$enable_fs_zip"
a0b9e27f 4527
10f2d63a
VZ
4528 if test "$enableval" = yes; then
4529 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4530 else
4531 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4532 fi
a0b9e27f 4533
10f2d63a 4534else
a0b9e27f 4535
10f2d63a
VZ
4536 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4544
4545fi
10f2d63a
VZ
4546
4547
4548 eval "$ac_cv_use_fs_zip"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4554 echo "$ac_t""yes" 1>&6
10f2d63a 4555 else
a0b9e27f 4556 echo "$ac_t""no" 1>&6
10f2d63a 4557 fi
a0b9e27f 4558
10f2d63a 4559
5005acfe
VZ
4560 enablestring=
4561 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
1542ea39 4562echo "configure:4563: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4563 no_cache=0
4564 # Check whether --enable-zipstream or --disable-zipstream was given.
4565if test "${enable_zipstream+set}" = set; then
4566 enableval="$enable_zipstream"
a0b9e27f 4567
10f2d63a
VZ
4568 if test "$enableval" = yes; then
4569 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4570 else
4571 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4572 fi
a0b9e27f 4573
10f2d63a 4574else
a0b9e27f 4575
10f2d63a
VZ
4576 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4577 if test "x$LINE" != x ; then
4578 eval "DEFAULT_$LINE"
4579 else
4580 no_cache=1
4581 fi
4582
4583 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4584
4585fi
10f2d63a
VZ
4586
4587
4588 eval "$ac_cv_use_zipstream"
4589 if test "$no_cache" != 1; then
4590 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4591 fi
4592
4593 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4594 echo "$ac_t""yes" 1>&6
10f2d63a 4595 else
a0b9e27f 4596 echo "$ac_t""no" 1>&6
10f2d63a 4597 fi
a0b9e27f 4598
8284b0c5 4599
52127426 4600
5005acfe
VZ
4601 enablestring=
4602 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
1542ea39 4603echo "configure:4604: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4604 no_cache=0
4605 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4606if test "${enable_catch_segvs+set}" = set; then
4607 enableval="$enable_catch_segvs"
a0b9e27f 4608
eb4efbdc
VZ
4609 if test "$enableval" = yes; then
4610 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4611 else
4612 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4613 fi
a0b9e27f 4614
eb4efbdc 4615else
a0b9e27f 4616
eb4efbdc
VZ
4617 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4625
4626fi
eb4efbdc
VZ
4627
4628
4629 eval "$ac_cv_use_catch_segvs"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4635 echo "$ac_t""yes" 1>&6
eb4efbdc 4636 else
a0b9e27f 4637 echo "$ac_t""no" 1>&6
eb4efbdc 4638 fi
a0b9e27f 4639
eb4efbdc 4640
5005acfe
VZ
4641 enablestring=
4642 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
1542ea39 4643echo "configure:4644: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4644 no_cache=0
4645 # Check whether --enable-snglinst or --disable-snglinst was given.
4646if test "${enable_snglinst+set}" = set; then
4647 enableval="$enable_snglinst"
a0b9e27f 4648
4f3c5f06
VZ
4649 if test "$enableval" = yes; then
4650 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4651 else
4652 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4653 fi
a0b9e27f 4654
4f3c5f06 4655else
a0b9e27f 4656
4f3c5f06
VZ
4657 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4665
4666fi
4f3c5f06
VZ
4667
4668
4669 eval "$ac_cv_use_snglinst"
4670 if test "$no_cache" != 1; then
4671 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4672 fi
4673
4674 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4675 echo "$ac_t""yes" 1>&6
4f3c5f06 4676 else
a0b9e27f 4677 echo "$ac_t""no" 1>&6
4f3c5f06 4678 fi
a0b9e27f 4679
52127426 4680
8284b0c5 4681
5005acfe
VZ
4682 enablestring=
4683 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
1542ea39 4684echo "configure:4685: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4685 no_cache=0
4686 # Check whether --enable-mimetype or --disable-mimetype was given.
4687if test "${enable_mimetype+set}" = set; then
4688 enableval="$enable_mimetype"
a0b9e27f 4689
1e6feb95
VZ
4690 if test "$enableval" = yes; then
4691 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4692 else
4693 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4694 fi
a0b9e27f 4695
1e6feb95 4696else
a0b9e27f 4697
1e6feb95
VZ
4698 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4699 if test "x$LINE" != x ; then
4700 eval "DEFAULT_$LINE"
4701 else
4702 no_cache=1
4703 fi
4704
4705 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4706
4707fi
1e6feb95
VZ
4708
4709
4710 eval "$ac_cv_use_mimetype"
4711 if test "$no_cache" != 1; then
4712 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4713 fi
4714
4715 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4716 echo "$ac_t""yes" 1>&6
1e6feb95 4717 else
a0b9e27f 4718 echo "$ac_t""no" 1>&6
1e6feb95 4719 fi
a0b9e27f 4720
1e6feb95 4721
5005acfe
VZ
4722 enablestring=
4723 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
1542ea39 4724echo "configure:4725: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4725 no_cache=0
4726 # Check whether --enable-system_options or --disable-system_options was given.
4727if test "${enable_system_options+set}" = set; then
4728 enableval="$enable_system_options"
a0b9e27f 4729
3e44f09d
VZ
4730 if test "$enableval" = yes; then
4731 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4732 else
4733 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4734 fi
a0b9e27f 4735
3e44f09d 4736else
a0b9e27f 4737
3e44f09d
VZ
4738 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4746
4747fi
3e44f09d
VZ
4748
4749
4750 eval "$ac_cv_use_system_options"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4756 echo "$ac_t""yes" 1>&6
3e44f09d 4757 else
a0b9e27f 4758 echo "$ac_t""no" 1>&6
3e44f09d 4759 fi
a0b9e27f 4760
8284b0c5 4761
52127426 4762
5005acfe
VZ
4763 enablestring=
4764 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
1542ea39 4765echo "configure:4766: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4766 no_cache=0
4767 # Check whether --enable-url or --disable-url was given.
4768if test "${enable_url+set}" = set; then
4769 enableval="$enable_url"
a0b9e27f 4770
4cdb0ab0
VS
4771 if test "$enableval" = yes; then
4772 ac_cv_use_url='wxUSE_URL=yes'
4773 else
4774 ac_cv_use_url='wxUSE_URL=no'
4775 fi
a0b9e27f 4776
4cdb0ab0 4777else
a0b9e27f 4778
4cdb0ab0
VS
4779 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4787
4788fi
4cdb0ab0
VS
4789
4790
4791 eval "$ac_cv_use_url"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_URL" = yes; then
a0b9e27f 4797 echo "$ac_t""yes" 1>&6
4cdb0ab0 4798 else
a0b9e27f 4799 echo "$ac_t""no" 1>&6
4cdb0ab0 4800 fi
a0b9e27f 4801
4cdb0ab0 4802
5005acfe
VZ
4803 enablestring=
4804 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
1542ea39 4805echo "configure:4806: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4806 no_cache=0
4807 # Check whether --enable-protocol or --disable-protocol was given.
4808if test "${enable_protocol+set}" = set; then
4809 enableval="$enable_protocol"
a0b9e27f 4810
4cdb0ab0
VS
4811 if test "$enableval" = yes; then
4812 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4813 else
4814 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4815 fi
a0b9e27f 4816
4cdb0ab0 4817else
a0b9e27f 4818
4cdb0ab0
VS
4819 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4827
4828fi
4cdb0ab0
VS
4829
4830
4831 eval "$ac_cv_use_protocol"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4837 echo "$ac_t""yes" 1>&6
4cdb0ab0 4838 else
a0b9e27f 4839 echo "$ac_t""no" 1>&6
4cdb0ab0 4840 fi
a0b9e27f 4841
4cdb0ab0 4842
5005acfe
VZ
4843 enablestring=
4844 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
1542ea39 4845echo "configure:4846: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4846 no_cache=0
4847 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4848if test "${enable_protocol_http+set}" = set; then
4849 enableval="$enable_protocol_http"
a0b9e27f 4850
4cdb0ab0
VS
4851 if test "$enableval" = yes; then
4852 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4853 else
4854 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4855 fi
a0b9e27f 4856
4cdb0ab0 4857else
a0b9e27f 4858
4cdb0ab0
VS
4859 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4867
4868fi
4cdb0ab0
VS
4869
4870
4871 eval "$ac_cv_use_protocol_http"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4877 echo "$ac_t""yes" 1>&6
4cdb0ab0 4878 else
a0b9e27f 4879 echo "$ac_t""no" 1>&6
4cdb0ab0 4880 fi
a0b9e27f 4881
4cdb0ab0 4882
5005acfe
VZ
4883 enablestring=
4884 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
1542ea39 4885echo "configure:4886: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4886 no_cache=0
4887 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4888if test "${enable_protocol_ftp+set}" = set; then
4889 enableval="$enable_protocol_ftp"
a0b9e27f 4890
4cdb0ab0
VS
4891 if test "$enableval" = yes; then
4892 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4893 else
4894 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4895 fi
a0b9e27f 4896
4cdb0ab0 4897else
a0b9e27f 4898
4cdb0ab0
VS
4899 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4907
4908fi
4cdb0ab0
VS
4909
4910
4911 eval "$ac_cv_use_protocol_ftp"
4912 if test "$no_cache" != 1; then
4913 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4914 fi
4915
4916 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4917 echo "$ac_t""yes" 1>&6
4cdb0ab0 4918 else
a0b9e27f 4919 echo "$ac_t""no" 1>&6
4cdb0ab0 4920 fi
a0b9e27f 4921
4cdb0ab0 4922
5005acfe
VZ
4923 enablestring=
4924 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
1542ea39 4925echo "configure:4926: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4926 no_cache=0
4927 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4928if test "${enable_protocol_file+set}" = set; then
4929 enableval="$enable_protocol_file"
a0b9e27f 4930
4cdb0ab0
VS
4931 if test "$enableval" = yes; then
4932 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4933 else
4934 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4935 fi
a0b9e27f 4936
4cdb0ab0 4937else
a0b9e27f 4938
4cdb0ab0
VS
4939 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4947
4948fi
4cdb0ab0
VS
4949
4950
4951 eval "$ac_cv_use_protocol_file"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4957 echo "$ac_t""yes" 1>&6
4cdb0ab0 4958 else
a0b9e27f 4959 echo "$ac_t""no" 1>&6
4cdb0ab0 4960 fi
a0b9e27f 4961
52127426 4962
8284b0c5
MB
4963
4964
4965
5005acfe
VZ
4966 enablestring=
4967 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
1542ea39 4968echo "configure:4969: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4969 no_cache=0
4970 # Check whether --enable-threads or --disable-threads was given.
4971if test "${enable_threads+set}" = set; then
4972 enableval="$enable_threads"
a0b9e27f 4973
10f2d63a
VZ
4974 if test "$enableval" = yes; then
4975 ac_cv_use_threads='wxUSE_THREADS=yes'
4976 else
4977 ac_cv_use_threads='wxUSE_THREADS=no'
4978 fi
a0b9e27f 4979
10f2d63a 4980else
a0b9e27f 4981
10f2d63a
VZ
4982 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4990
4991fi
10f2d63a
VZ
4992
4993
4994 eval "$ac_cv_use_threads"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5000 echo "$ac_t""yes" 1>&6
10f2d63a 5001 else
a0b9e27f 5002 echo "$ac_t""no" 1>&6
10f2d63a 5003 fi
a0b9e27f 5004
10f2d63a 5005
b12915c1
VZ
5006if test "$wxUSE_GUI" = "yes"; then
5007
8284b0c5
MB
5008
5009
5005acfe
VZ
5010 enablestring=
5011 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
1542ea39 5012echo "configure:5013: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5013 no_cache=0
5014 # Check whether --enable-docview or --disable-docview was given.
5015if test "${enable_docview+set}" = set; then
5016 enableval="$enable_docview"
a0b9e27f 5017
10f2d63a
VZ
5018 if test "$enableval" = yes; then
5019 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5020 else
5021 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5022 fi
a0b9e27f 5023
10f2d63a 5024else
a0b9e27f 5025
10f2d63a
VZ
5026 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5034
5035fi
10f2d63a
VZ
5036
5037
5038 eval "$ac_cv_use_docview"
5039 if test "$no_cache" != 1; then
5040 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5041 fi
5042
5043 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5044 echo "$ac_t""yes" 1>&6
10f2d63a 5045 else
a0b9e27f 5046 echo "$ac_t""no" 1>&6
10f2d63a 5047 fi
a0b9e27f 5048
10f2d63a 5049
5005acfe
VZ
5050 enablestring=
5051 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
1542ea39 5052echo "configure:5053: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5053 no_cache=0
5054 # Check whether --enable-help or --disable-help was given.
5055if test "${enable_help+set}" = set; then
5056 enableval="$enable_help"
a0b9e27f 5057
10f2d63a
VZ
5058 if test "$enableval" = yes; then
5059 ac_cv_use_help='wxUSE_HELP=yes'
5060 else
5061 ac_cv_use_help='wxUSE_HELP=no'
5062 fi
a0b9e27f 5063
10f2d63a 5064else
a0b9e27f 5065
10f2d63a
VZ
5066 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5074
5075fi
10f2d63a
VZ
5076
5077
5078 eval "$ac_cv_use_help"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5084 echo "$ac_t""yes" 1>&6
10f2d63a 5085 else
a0b9e27f 5086 echo "$ac_t""no" 1>&6
10f2d63a 5087 fi
a0b9e27f 5088
10f2d63a 5089
5005acfe
VZ
5090 enablestring=
5091 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
1542ea39 5092echo "configure:5093: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5093 no_cache=0
5094 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5095if test "${enable_mshtmlhelp+set}" = set; then
5096 enableval="$enable_mshtmlhelp"
a0b9e27f 5097
29fd3c0c
VS
5098 if test "$enableval" = yes; then
5099 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5100 else
5101 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5102 fi
a0b9e27f 5103
29fd3c0c 5104else
a0b9e27f 5105
29fd3c0c
VS
5106 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
5113 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5114
5115fi
29fd3c0c
VS
5116
5117
5118 eval "$ac_cv_use_mshtmlhelp"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5124 echo "$ac_t""yes" 1>&6
29fd3c0c 5125 else
a0b9e27f 5126 echo "$ac_t""no" 1>&6
29fd3c0c 5127 fi
a0b9e27f 5128
29fd3c0c 5129
5005acfe
VZ
5130 enablestring=
5131 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
1542ea39 5132echo "configure:5133: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5133 no_cache=0
5134 # Check whether --enable-html or --disable-html was given.
5135if test "${enable_html+set}" = set; then
5136 enableval="$enable_html"
a0b9e27f 5137
3379ed37
VZ
5138 if test "$enableval" = yes; then
5139 ac_cv_use_html='wxUSE_HTML=yes'
5140 else
5141 ac_cv_use_html='wxUSE_HTML=no'
5142 fi
a0b9e27f 5143
3379ed37 5144else
a0b9e27f 5145
3379ed37
VZ
5146 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5154
5155fi
3379ed37
VZ
5156
5157
5158 eval "$ac_cv_use_html"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5164 echo "$ac_t""yes" 1>&6
3379ed37 5165 else
a0b9e27f 5166 echo "$ac_t""no" 1>&6
3379ed37 5167 fi
a0b9e27f 5168
3379ed37 5169
5005acfe
VZ
5170 enablestring=
5171 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
1542ea39 5172echo "configure:5173: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5173 no_cache=0
5174 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5175if test "${enable_htmlhelp+set}" = set; then
5176 enableval="$enable_htmlhelp"
a0b9e27f 5177
3379ed37
VZ
5178 if test "$enableval" = yes; then
5179 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5180 else
5181 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5182 fi
a0b9e27f 5183
3379ed37 5184else
a0b9e27f 5185
3379ed37
VZ
5186 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5194
5195fi
3379ed37
VZ
5196
5197
5198 eval "$ac_cv_use_htmlhelp"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5204 echo "$ac_t""yes" 1>&6
3379ed37 5205 else
a0b9e27f 5206 echo "$ac_t""no" 1>&6
3379ed37 5207 fi
a0b9e27f 5208
3379ed37 5209
5005acfe
VZ
5210 enablestring=
5211 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
1542ea39 5212echo "configure:5213: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5213 no_cache=0
5214 # Check whether --enable-constraints or --disable-constraints was given.
5215if test "${enable_constraints+set}" = set; then
5216 enableval="$enable_constraints"
a0b9e27f 5217
10f2d63a
VZ
5218 if test "$enableval" = yes; then
5219 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5220 else
5221 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5222 fi
a0b9e27f 5223
10f2d63a 5224else
a0b9e27f 5225
10f2d63a
VZ
5226 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5234
5235fi
10f2d63a
VZ
5236
5237
5238 eval "$ac_cv_use_constraints"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5244 echo "$ac_t""yes" 1>&6
10f2d63a 5245 else
a0b9e27f 5246 echo "$ac_t""no" 1>&6
10f2d63a 5247 fi
a0b9e27f 5248
10f2d63a 5249
5005acfe
VZ
5250 enablestring=
5251 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
1542ea39 5252echo "configure:5253: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5253 no_cache=0
5254 # Check whether --enable-printarch or --disable-printarch was given.
5255if test "${enable_printarch+set}" = set; then
5256 enableval="$enable_printarch"
a0b9e27f 5257
10f2d63a
VZ
5258 if test "$enableval" = yes; then
5259 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5260 else
5261 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5262 fi
a0b9e27f 5263
10f2d63a 5264else
a0b9e27f 5265
10f2d63a
VZ
5266 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5274
5275fi
10f2d63a
VZ
5276
5277
5278 eval "$ac_cv_use_printarch"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5284 echo "$ac_t""yes" 1>&6
10f2d63a 5285 else
a0b9e27f 5286 echo "$ac_t""no" 1>&6
10f2d63a 5287 fi
a0b9e27f 5288
10f2d63a 5289
5005acfe
VZ
5290 enablestring=
5291 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
1542ea39 5292echo "configure:5293: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5293 no_cache=0
5294 # Check whether --enable-mdi or --disable-mdi was given.
5295if test "${enable_mdi+set}" = set; then
5296 enableval="$enable_mdi"
a0b9e27f 5297
10f2d63a
VZ
5298 if test "$enableval" = yes; then
5299 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5300 else
5301 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5302 fi
a0b9e27f 5303
10f2d63a 5304else
a0b9e27f 5305
10f2d63a
VZ
5306 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5314
5315fi
10f2d63a
VZ
5316
5317
5318 eval "$ac_cv_use_mdi"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5324 echo "$ac_t""yes" 1>&6
10f2d63a 5325 else
a0b9e27f 5326 echo "$ac_t""no" 1>&6
10f2d63a 5327 fi
a0b9e27f 5328
698dcdb6 5329
5005acfe
VZ
5330 enablestring=
5331 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
1542ea39 5332echo "configure:5333: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5333 no_cache=0
5334 # Check whether --enable-loggui or --disable-loggui was given.
5335if test "${enable_loggui+set}" = set; then
5336 enableval="$enable_loggui"
a0b9e27f 5337
1e6feb95
VZ
5338 if test "$enableval" = yes; then
5339 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5340 else
5341 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5342 fi
a0b9e27f 5343
1e6feb95 5344else
a0b9e27f 5345
1e6feb95
VZ
5346 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5354
5355fi
1e6feb95
VZ
5356
5357
5358 eval "$ac_cv_use_loggui"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5364 echo "$ac_t""yes" 1>&6
1e6feb95 5365 else
a0b9e27f 5366 echo "$ac_t""no" 1>&6
1e6feb95 5367 fi
a0b9e27f 5368
1e6feb95 5369
5005acfe
VZ
5370 enablestring=
5371 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
1542ea39 5372echo "configure:5373: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5373 no_cache=0
5374 # Check whether --enable-logwin or --disable-logwin was given.
5375if test "${enable_logwin+set}" = set; then
5376 enableval="$enable_logwin"
a0b9e27f 5377
1e6feb95
VZ
5378 if test "$enableval" = yes; then
5379 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5380 else
5381 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5382 fi
a0b9e27f 5383
1e6feb95 5384else
a0b9e27f 5385
1e6feb95
VZ
5386 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5394
5395fi
1e6feb95
VZ
5396
5397
5398 eval "$ac_cv_use_logwin"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5404 echo "$ac_t""yes" 1>&6
1e6feb95 5405 else
a0b9e27f 5406 echo "$ac_t""no" 1>&6
1e6feb95 5407 fi
a0b9e27f 5408
1e6feb95 5409
5005acfe
VZ
5410 enablestring=
5411 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
1542ea39 5412echo "configure:5413: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5413 no_cache=0
5414 # Check whether --enable-logdialog or --disable-logdialog was given.
5415if test "${enable_logdialog+set}" = set; then
5416 enableval="$enable_logdialog"
a0b9e27f 5417
69d27ff7
MB
5418 if test "$enableval" = yes; then
5419 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5420 else
5421 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5422 fi
a0b9e27f 5423
69d27ff7 5424else
a0b9e27f 5425
69d27ff7
MB
5426 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5434
5435fi
69d27ff7
MB
5436
5437
5438 eval "$ac_cv_use_logdialog"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5444 echo "$ac_t""yes" 1>&6
69d27ff7 5445 else
a0b9e27f 5446 echo "$ac_t""no" 1>&6
69d27ff7 5447 fi
a0b9e27f 5448
8284b0c5 5449
52127426 5450
5005acfe
VZ
5451 enablestring=
5452 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
1542ea39 5453echo "configure:5454: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5454 no_cache=0
5455 # Check whether --enable-postscript or --disable-postscript was given.
5456if test "${enable_postscript+set}" = set; then
5457 enableval="$enable_postscript"
a0b9e27f 5458
10f2d63a
VZ
5459 if test "$enableval" = yes; then
5460 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5461 else
5462 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5463 fi
a0b9e27f 5464
10f2d63a 5465else
a0b9e27f 5466
10f2d63a
VZ
5467 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5475
5476fi
10f2d63a
VZ
5477
5478
5479 eval "$ac_cv_use_postscript"
5480 if test "$no_cache" != 1; then
5481 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5482 fi
5483
5484 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5485 echo "$ac_t""yes" 1>&6
10f2d63a 5486 else
a0b9e27f 5487 echo "$ac_t""no" 1>&6
10f2d63a 5488 fi
a0b9e27f 5489
8284b0c5
MB
5490
5491
52127426 5492
8284b0c5 5493
5005acfe
VZ
5494 enablestring=
5495 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
1542ea39 5496echo "configure:5497: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a
VZ
5497 no_cache=0
5498 # Check whether --enable-prologio or --disable-prologio was given.
5499if test "${enable_prologio+set}" = set; then
5500 enableval="$enable_prologio"
a0b9e27f 5501
10f2d63a
VZ
5502 if test "$enableval" = yes; then
5503 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5504 else
5505 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5506 fi
a0b9e27f 5507
10f2d63a 5508else
a0b9e27f 5509
10f2d63a
VZ
5510 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5518
5519fi
10f2d63a
VZ
5520
5521
5522 eval "$ac_cv_use_prologio"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5528 echo "$ac_t""yes" 1>&6
10f2d63a 5529 else
a0b9e27f 5530 echo "$ac_t""no" 1>&6
10f2d63a 5531 fi
a0b9e27f 5532
10f2d63a 5533
5005acfe
VZ
5534 enablestring=
5535 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
1542ea39 5536echo "configure:5537: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5537 no_cache=0
5538 # Check whether --enable-resources or --disable-resources was given.
5539if test "${enable_resources+set}" = set; then
5540 enableval="$enable_resources"
a0b9e27f 5541
10f2d63a
VZ
5542 if test "$enableval" = yes; then
5543 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5544 else
5545 ac_cv_use_resources='wxUSE_RESOURCES=no'
5546 fi
a0b9e27f 5547
10f2d63a 5548else
a0b9e27f 5549
10f2d63a
VZ
5550 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5558
5559fi
10f2d63a
VZ
5560
5561
5562 eval "$ac_cv_use_resources"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5568 echo "$ac_t""yes" 1>&6
10f2d63a 5569 else
a0b9e27f 5570 echo "$ac_t""no" 1>&6
10f2d63a 5571 fi
a0b9e27f 5572
8284b0c5 5573
52127426 5574
5005acfe
VZ
5575 enablestring=
5576 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
1542ea39 5577echo "configure:5578: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5578 no_cache=0
5579 # Check whether --enable-xresources or --disable-xresources was given.
5580if test "${enable_xresources+set}" = set; then
5581 enableval="$enable_xresources"
a0b9e27f 5582
10f2d63a
VZ
5583 if test "$enableval" = yes; then
5584 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5585 else
5586 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5587 fi
a0b9e27f 5588
10f2d63a 5589else
a0b9e27f 5590
10f2d63a
VZ
5591 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5599
5600fi
10f2d63a
VZ
5601
5602
5603 eval "$ac_cv_use_xresources"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5609 echo "$ac_t""yes" 1>&6
10f2d63a 5610 else
a0b9e27f 5611 echo "$ac_t""no" 1>&6
10f2d63a 5612 fi
a0b9e27f 5613
8284b0c5
MB
5614
5615
52127426 5616
5005acfe
VZ
5617 enablestring=
5618 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
1542ea39 5619echo "configure:5620: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5620 no_cache=0
5621 # Check whether --enable-clipboard or --disable-clipboard was given.
5622if test "${enable_clipboard+set}" = set; then
5623 enableval="$enable_clipboard"
a0b9e27f 5624
10f2d63a
VZ
5625 if test "$enableval" = yes; then
5626 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5627 else
5628 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5629 fi
a0b9e27f 5630
10f2d63a 5631else
a0b9e27f 5632
10f2d63a
VZ
5633 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5641
5642fi
10f2d63a
VZ
5643
5644
5645 eval "$ac_cv_use_clipboard"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5651 echo "$ac_t""yes" 1>&6
10f2d63a 5652 else
a0b9e27f 5653 echo "$ac_t""no" 1>&6
10f2d63a 5654 fi
a0b9e27f 5655
10f2d63a 5656
5005acfe
VZ
5657 enablestring=
5658 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
1542ea39 5659echo "configure:5660: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5660 no_cache=0
5661 # Check whether --enable-dnd or --disable-dnd was given.
5662if test "${enable_dnd+set}" = set; then
5663 enableval="$enable_dnd"
a0b9e27f 5664
10f2d63a
VZ
5665 if test "$enableval" = yes; then
5666 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5667 else
5668 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5669 fi
a0b9e27f 5670
10f2d63a 5671else
a0b9e27f 5672
10f2d63a
VZ
5673 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5674 if test "x$LINE" != x ; then
5675 eval "DEFAULT_$LINE"
5676 else
5677 no_cache=1
5678 fi
5679
5680 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5681
5682fi
10f2d63a
VZ
5683
5684
5685 eval "$ac_cv_use_dnd"
5686 if test "$no_cache" != 1; then
5687 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5688 fi
5689
5690 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5691 echo "$ac_t""yes" 1>&6
10f2d63a 5692 else
a0b9e27f 5693 echo "$ac_t""no" 1>&6
10f2d63a 5694 fi
a0b9e27f 5695
10f2d63a 5696
5005acfe
VZ
5697 enablestring=
5698 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
1542ea39 5699echo "configure:5700: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5700 no_cache=0
5701 # Check whether --enable-metafile or --disable-metafile was given.
5702if test "${enable_metafile+set}" = set; then
5703 enableval="$enable_metafile"
a0b9e27f 5704
b64f0a5f
RL
5705 if test "$enableval" = yes; then
5706 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5707 else
5708 ac_cv_use_metafile='wxUSE_METAFILE=no'
5709 fi
a0b9e27f 5710
b64f0a5f 5711else
a0b9e27f 5712
b64f0a5f
RL
5713 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5721
5722fi
b64f0a5f
RL
5723
5724
5725 eval "$ac_cv_use_metafile"
5726 if test "$no_cache" != 1; then
5727 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5728 fi
5729
5730 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5731 echo "$ac_t""yes" 1>&6
b64f0a5f 5732 else
a0b9e27f 5733 echo "$ac_t""no" 1>&6
b64f0a5f 5734 fi
a0b9e27f 5735
52127426 5736
8284b0c5 5737
5005acfe
VZ
5738 enablestring=
5739 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
1542ea39 5740echo "configure:5741: checking for --${enablestring:-enable}-treelayout" >&5
10f2d63a 5741 no_cache=0
24176f2c
GD
5742 # Check whether --enable-treelayout or --disable-treelayout was given.
5743if test "${enable_treelayout+set}" = set; then
5744 enableval="$enable_treelayout"
a0b9e27f 5745
10f2d63a 5746 if test "$enableval" = yes; then
24176f2c 5747 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5748 else
24176f2c 5749 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5750 fi
a0b9e27f 5751
10f2d63a 5752else
a0b9e27f 5753
24176f2c 5754 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
24176f2c 5761 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5762
5763fi
10f2d63a
VZ
5764
5765
24176f2c 5766 eval "$ac_cv_use_treelayout"
10f2d63a 5767 if test "$no_cache" != 1; then
24176f2c 5768 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5769 fi
5770
24176f2c 5771 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5772 echo "$ac_t""yes" 1>&6
10f2d63a 5773 else
a0b9e27f 5774 echo "$ac_t""no" 1>&6
10f2d63a 5775 fi
a0b9e27f 5776
8284b0c5 5777
52127426 5778
8284b0c5 5779
5005acfe
VZ
5780 enablestring=
5781 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
1542ea39 5782echo "configure:5783: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5783 no_cache=0
5784 # Check whether --enable-controls or --disable-controls was given.
5785if test "${enable_controls+set}" = set; then
5786 enableval="$enable_controls"
a0b9e27f 5787
10f2d63a
VZ
5788 if test "$enableval" = yes; then
5789 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5790 else
5791 ac_cv_use_controls='wxUSE_CONTROLS=no'
5792 fi
a0b9e27f 5793
10f2d63a 5794else
a0b9e27f 5795
10f2d63a
VZ
5796 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5797 if test "x$LINE" != x ; then
5798 eval "DEFAULT_$LINE"
5799 else
5800 no_cache=1
5801 fi
5802
5803 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5804
5805fi
10f2d63a
VZ
5806
5807
5808 eval "$ac_cv_use_controls"
5809 if test "$no_cache" != 1; then
5810 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5811 fi
5812
5813 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5814 echo "$ac_t""yes" 1>&6
10f2d63a 5815 else
a0b9e27f 5816 echo "$ac_t""no" 1>&6
10f2d63a 5817 fi
a0b9e27f 5818
10f2d63a
VZ
5819
5820if test "$wxUSE_CONTROLS" = "yes"; then
5821 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5822 DEFAULT_wxUSE_BMPBUTTON=yes
5823 DEFAULT_wxUSE_BUTTON=yes
5824 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5825 DEFAULT_wxUSE_CARET=yes
5826 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5827 DEFAULT_wxUSE_CHECKBOX=yes
5828 DEFAULT_wxUSE_CHECKLISTBOX=yes
5829 DEFAULT_wxUSE_CHOICE=yes
5830 DEFAULT_wxUSE_GAUGE=yes
5831 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5832 DEFAULT_wxUSE_IMAGLIST=yes
5833 DEFAULT_wxUSE_LISTBOX=yes
5834 DEFAULT_wxUSE_LISTCTRL=yes
5835 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5836 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5837 DEFAULT_wxUSE_RADIOBOX=yes
5838 DEFAULT_wxUSE_RADIOBTN=yes
5839 DEFAULT_wxUSE_SASH=yes
5840 DEFAULT_wxUSE_SCROLLBAR=yes
5841 DEFAULT_wxUSE_SLIDER=yes
5842 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5843 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5844 DEFAULT_wxUSE_SPLITTER=yes
5845 DEFAULT_wxUSE_STATBMP=yes
5846 DEFAULT_wxUSE_STATBOX=yes
5847 DEFAULT_wxUSE_STATLINE=yes
5848 DEFAULT_wxUSE_STATUSBAR=yes
5849 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5850 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5851 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5852 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5853 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5854 DEFAULT_wxUSE_TOOLTIPS=yes
5855 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5856 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5857 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5858elif test "$wxUSE_CONTROLS" = "no"; then
5859 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5860 DEFAULT_wxUSE_BMPBUTTON=no
5861 DEFAULT_wxUSE_BUTTON=no
5862 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5863 DEFAULT_wxUSE_CARET=no
5864 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5865 DEFAULT_wxUSE_CHECKBOX=no
5866 DEFAULT_wxUSE_CHECKLISTBOX=no
5867 DEFAULT_wxUSE_CHOICE=no
5868 DEFAULT_wxUSE_GAUGE=no
5869 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5870 DEFAULT_wxUSE_IMAGLIST=no
5871 DEFAULT_wxUSE_LISTBOX=no
5872 DEFAULT_wxUSE_LISTCTRL=no
5873 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5874 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5875 DEFAULT_wxUSE_RADIOBOX=no
5876 DEFAULT_wxUSE_RADIOBTN=no
5877 DEFAULT_wxUSE_SASH=no
5878 DEFAULT_wxUSE_SCROLLBAR=no
5879 DEFAULT_wxUSE_SLIDER=no
5880 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5881 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5882 DEFAULT_wxUSE_SPLITTER=no
5883 DEFAULT_wxUSE_STATBMP=no
5884 DEFAULT_wxUSE_STATBOX=no
5885 DEFAULT_wxUSE_STATLINE=no
5886 DEFAULT_wxUSE_STATUSBAR=no
5887 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5888 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5889 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5890 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5891 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5892 DEFAULT_wxUSE_TOOLTIPS=no
5893 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5894 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5895 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5896fi
5897
ac0c4cc3
DE
5898## FIXME: This is a blatant hack
5899if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5900 wxUSE_PRINTING_ARCHITECTURE=no
5901 wxUSE_HELP=no
5902 wxUSE_CLIPBOARD=no
5903 wxUSE_DRAG_AND_DROP=no
5904 wxUSE_DATAOBJ=no
5905 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5906 DEFAULT_wxUSE_TEXTDLG=no
5907 DEFAULT_wxUSE_GAUGE=no
5908 DEFAULT_wxUSE_SCROLLBAR=no
5909 DEFAULT_wxUSE_SLIDER=no
5910 DEFAULT_wxUSE_COMBOBOX=no
5911 DEFAULT_wxUSE_CALCTRL=no
5912 DEFAULT_wxUSE_SPINBTN=no
5913 DEFAULT_wxUSE_SPINCTRL=no
5914 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
5915 DEFAULT_wxUSE_COLOURDLG=no
5916 DEFAULT_wxUSE_DIRDLG=no
5917 DEFAULT_wxUSE_DRAGIMAGE=no
5918 DEFAULT_wxUSE_FINDREPLDLG=no
5919 DEFAULT_wxUSE_FONTDLG=no
5920 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5921 DEFAULT_wxUSE_NUMBERDLG=no
5922 DEFAULT_wxUSE_PROGRESSDLG=no
5923 DEFAULT_wxUSE_PROPSHEET=no
5924 DEFAULT_wxUSE_SASH=no
5925 DEFAULT_wxUSE_SPLITTER=no
5926 DEFAULT_wxUSE_WIZARDDLG=no
5927 DEFAULT_wxUSE_SPLITTER=no
5928 DEFAULT_wxUSE_STARTUP_TIPS=no
5929 DEFAULT_wxUSE_TREECTRL=no
5930fi
5931
8284b0c5 5932
5005acfe
VZ
5933 enablestring=
5934 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
1542ea39 5935echo "configure:5936: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5936 no_cache=0
5937 # Check whether --enable-accel or --disable-accel was given.
5938if test "${enable_accel+set}" = set; then
5939 enableval="$enable_accel"
a0b9e27f 5940
10f2d63a
VZ
5941 if test "$enableval" = yes; then
5942 ac_cv_use_accel='wxUSE_ACCEL=yes'
5943 else
5944 ac_cv_use_accel='wxUSE_ACCEL=no'
5945 fi
a0b9e27f 5946
10f2d63a 5947else
a0b9e27f 5948
10f2d63a
VZ
5949 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5950 if test "x$LINE" != x ; then
5951 eval "DEFAULT_$LINE"
5952 else
5953 no_cache=1
5954 fi
5955
5956 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5957
5958fi
10f2d63a
VZ
5959
5960
5961 eval "$ac_cv_use_accel"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5967 echo "$ac_t""yes" 1>&6
10f2d63a 5968 else
a0b9e27f 5969 echo "$ac_t""no" 1>&6
10f2d63a 5970 fi
a0b9e27f 5971
10f2d63a 5972
5005acfe
VZ
5973 enablestring=
5974 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
1542ea39 5975echo "configure:5976: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5976 no_cache=0
1e6feb95
VZ
5977 # Check whether --enable-button or --disable-button was given.
5978if test "${enable_button+set}" = set; then
5979 enableval="$enable_button"
a0b9e27f 5980
10f2d63a 5981 if test "$enableval" = yes; then
1e6feb95 5982 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5983 else
1e6feb95 5984 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5985 fi
a0b9e27f 5986
10f2d63a 5987else
a0b9e27f 5988
1e6feb95 5989 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
1e6feb95 5996 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5997
5998fi
10f2d63a
VZ
5999
6000
1e6feb95 6001 eval "$ac_cv_use_button"
10f2d63a 6002 if test "$no_cache" != 1; then
1e6feb95 6003 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6004 fi
6005
1e6feb95 6006 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 6007 echo "$ac_t""yes" 1>&6
10f2d63a 6008 else
a0b9e27f 6009 echo "$ac_t""no" 1>&6
10f2d63a 6010 fi
a0b9e27f 6011
10f2d63a 6012
5005acfe
VZ
6013 enablestring=
6014 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
1542ea39 6015echo "configure:6016: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
6016 no_cache=0
6017 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6018if test "${enable_bmpbutton+set}" = set; then
6019 enableval="$enable_bmpbutton"
a0b9e27f 6020
10f2d63a
VZ
6021 if test "$enableval" = yes; then
6022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6023 else
6024 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6025 fi
a0b9e27f 6026
10f2d63a 6027else
a0b9e27f 6028
10f2d63a
VZ
6029 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
6037
6038fi
10f2d63a
VZ
6039
6040
6041 eval "$ac_cv_use_bmpbutton"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6047 echo "$ac_t""yes" 1>&6
10f2d63a 6048 else
a0b9e27f 6049 echo "$ac_t""no" 1>&6
10f2d63a 6050 fi
a0b9e27f 6051
10f2d63a 6052
5005acfe
VZ
6053 enablestring=
6054 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
1542ea39 6055echo "configure:6056: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6056 no_cache=0
6057 # Check whether --enable-calendar or --disable-calendar was given.
6058if test "${enable_calendar+set}" = set; then
6059 enableval="$enable_calendar"
a0b9e27f 6060
1e6feb95
VZ
6061 if test "$enableval" = yes; then
6062 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6063 else
6064 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6065 fi
a0b9e27f 6066
1e6feb95 6067else
a0b9e27f 6068
1e6feb95
VZ
6069 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6077
6078fi
1e6feb95
VZ
6079
6080
6081 eval "$ac_cv_use_calendar"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6087 echo "$ac_t""yes" 1>&6
1e6feb95 6088 else
a0b9e27f 6089 echo "$ac_t""no" 1>&6
1e6feb95 6090 fi
a0b9e27f 6091
1e6feb95 6092
5005acfe
VZ
6093 enablestring=
6094 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
1542ea39 6095echo "configure:6096: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6096 no_cache=0
6097 # Check whether --enable-caret or --disable-caret was given.
6098if test "${enable_caret+set}" = set; then
6099 enableval="$enable_caret"
a0b9e27f 6100
1e6feb95
VZ
6101 if test "$enableval" = yes; then
6102 ac_cv_use_caret='wxUSE_CARET=yes'
6103 else
6104 ac_cv_use_caret='wxUSE_CARET=no'
6105 fi
a0b9e27f 6106
1e6feb95 6107else
a0b9e27f 6108
1e6feb95
VZ
6109 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6117
6118fi
1e6feb95
VZ
6119
6120
6121 eval "$ac_cv_use_caret"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6127 echo "$ac_t""yes" 1>&6
1e6feb95 6128 else
a0b9e27f 6129 echo "$ac_t""no" 1>&6
1e6feb95 6130 fi
a0b9e27f 6131
1e6feb95 6132
5005acfe
VZ
6133 enablestring=
6134 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
1542ea39 6135echo "configure:6136: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6136 no_cache=0
6137 # Check whether --enable-checkbox or --disable-checkbox was given.
6138if test "${enable_checkbox+set}" = set; then
6139 enableval="$enable_checkbox"
a0b9e27f 6140
10f2d63a
VZ
6141 if test "$enableval" = yes; then
6142 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6143 else
6144 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6145 fi
a0b9e27f 6146
10f2d63a 6147else
a0b9e27f 6148
10f2d63a
VZ
6149 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6157
6158fi
10f2d63a
VZ
6159
6160
6161 eval "$ac_cv_use_checkbox"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6167 echo "$ac_t""yes" 1>&6
10f2d63a 6168 else
a0b9e27f 6169 echo "$ac_t""no" 1>&6
10f2d63a 6170 fi
a0b9e27f 6171
10f2d63a 6172
5005acfe
VZ
6173 enablestring=
6174 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
1542ea39 6175echo "configure:6176: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6176 no_cache=0
6177 # Check whether --enable-checklst or --disable-checklst was given.
6178if test "${enable_checklst+set}" = set; then
6179 enableval="$enable_checklst"
a0b9e27f 6180
10f2d63a
VZ
6181 if test "$enableval" = yes; then
6182 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6183 else
6184 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6185 fi
a0b9e27f 6186
10f2d63a 6187else
a0b9e27f 6188
10f2d63a
VZ
6189 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6197
6198fi
10f2d63a
VZ
6199
6200
6201 eval "$ac_cv_use_checklst"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6207 echo "$ac_t""yes" 1>&6
10f2d63a 6208 else
a0b9e27f 6209 echo "$ac_t""no" 1>&6
10f2d63a 6210 fi
a0b9e27f 6211
10f2d63a 6212
5005acfe
VZ
6213 enablestring=
6214 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
1542ea39 6215echo "configure:6216: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6216 no_cache=0
6217 # Check whether --enable-choice or --disable-choice was given.
6218if test "${enable_choice+set}" = set; then
6219 enableval="$enable_choice"
a0b9e27f 6220
10f2d63a
VZ
6221 if test "$enableval" = yes; then
6222 ac_cv_use_choice='wxUSE_CHOICE=yes'
6223 else
6224 ac_cv_use_choice='wxUSE_CHOICE=no'
6225 fi
a0b9e27f 6226
10f2d63a 6227else
a0b9e27f 6228
10f2d63a
VZ
6229 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6237
6238fi
10f2d63a
VZ
6239
6240
6241 eval "$ac_cv_use_choice"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6247 echo "$ac_t""yes" 1>&6
10f2d63a 6248 else
a0b9e27f 6249 echo "$ac_t""no" 1>&6
10f2d63a 6250 fi
a0b9e27f 6251
10f2d63a 6252
5005acfe
VZ
6253 enablestring=
6254 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
1542ea39 6255echo "configure:6256: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6256 no_cache=0
6257 # Check whether --enable-combobox or --disable-combobox was given.
6258if test "${enable_combobox+set}" = set; then
6259 enableval="$enable_combobox"
a0b9e27f 6260
10f2d63a
VZ
6261 if test "$enableval" = yes; then
6262 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6263 else
6264 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6265 fi
a0b9e27f 6266
10f2d63a 6267else
a0b9e27f 6268
10f2d63a
VZ
6269 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6277
6278fi
10f2d63a
VZ
6279
6280
6281 eval "$ac_cv_use_combobox"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6287 echo "$ac_t""yes" 1>&6
10f2d63a 6288 else
a0b9e27f 6289 echo "$ac_t""no" 1>&6
10f2d63a 6290 fi
a0b9e27f 6291
10f2d63a 6292
da494b40
MB
6293 enablestring=
6294 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
1542ea39 6295echo "configure:6296: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6296 no_cache=0
6297 # Check whether --enable-display or --disable-display was given.
6298if test "${enable_display+set}" = set; then
6299 enableval="$enable_display"
6300
6301 if test "$enableval" = yes; then
6302 ac_cv_use_display='wxUSE_DISPLAY=yes'
6303 else
6304 ac_cv_use_display='wxUSE_DISPLAY=no'
6305 fi
6306
6307else
6308
6309 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6317
6318fi
6319
6320
6321 eval "$ac_cv_use_display"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_DISPLAY" = yes; then
6327 echo "$ac_t""yes" 1>&6
6328 else
6329 echo "$ac_t""no" 1>&6
6330 fi
6331
6332
5005acfe
VZ
6333 enablestring=
6334 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
1542ea39 6335echo "configure:6336: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6336 no_cache=0
6337 # Check whether --enable-gauge or --disable-gauge was given.
6338if test "${enable_gauge+set}" = set; then
6339 enableval="$enable_gauge"
a0b9e27f 6340
10f2d63a
VZ
6341 if test "$enableval" = yes; then
6342 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6343 else
6344 ac_cv_use_gauge='wxUSE_GAUGE=no'
6345 fi
a0b9e27f 6346
10f2d63a 6347else
a0b9e27f 6348
10f2d63a
VZ
6349 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6357
6358fi
10f2d63a
VZ
6359
6360
6361 eval "$ac_cv_use_gauge"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6367 echo "$ac_t""yes" 1>&6
10f2d63a 6368 else
a0b9e27f 6369 echo "$ac_t""no" 1>&6
10f2d63a 6370 fi
a0b9e27f 6371
10f2d63a 6372
5005acfe
VZ
6373 enablestring=
6374 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
1542ea39 6375echo "configure:6376: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6376 no_cache=0
6377 # Check whether --enable-grid or --disable-grid was given.
6378if test "${enable_grid+set}" = set; then
6379 enableval="$enable_grid"
a0b9e27f 6380
10f2d63a
VZ
6381 if test "$enableval" = yes; then
6382 ac_cv_use_grid='wxUSE_GRID=yes'
6383 else
6384 ac_cv_use_grid='wxUSE_GRID=no'
6385 fi
a0b9e27f 6386
10f2d63a 6387else
a0b9e27f 6388
10f2d63a
VZ
6389 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6397
6398fi
10f2d63a
VZ
6399
6400
6401 eval "$ac_cv_use_grid"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6407 echo "$ac_t""yes" 1>&6
10f2d63a 6408 else
a0b9e27f 6409 echo "$ac_t""no" 1>&6
10f2d63a 6410 fi
a0b9e27f 6411
10f2d63a 6412
5005acfe
VZ
6413 enablestring=
6414 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
1542ea39 6415echo "configure:6416: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6416 no_cache=0
6417 # Check whether --enable-imaglist or --disable-imaglist was given.
6418if test "${enable_imaglist+set}" = set; then
6419 enableval="$enable_imaglist"
a0b9e27f 6420
10f2d63a
VZ
6421 if test "$enableval" = yes; then
6422 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6423 else
6424 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6425 fi
a0b9e27f 6426
10f2d63a 6427else
a0b9e27f 6428
10f2d63a
VZ
6429 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6437
6438fi
10f2d63a
VZ
6439
6440
6441 eval "$ac_cv_use_imaglist"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6447 echo "$ac_t""yes" 1>&6
10f2d63a 6448 else
a0b9e27f 6449 echo "$ac_t""no" 1>&6
10f2d63a 6450 fi
a0b9e27f 6451
10f2d63a 6452
5005acfe
VZ
6453 enablestring=
6454 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
1542ea39 6455echo "configure:6456: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6456 no_cache=0
6457 # Check whether --enable-listbox or --disable-listbox was given.
6458if test "${enable_listbox+set}" = set; then
6459 enableval="$enable_listbox"
a0b9e27f 6460
10f2d63a
VZ
6461 if test "$enableval" = yes; then
6462 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6463 else
6464 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6465 fi
a0b9e27f 6466
10f2d63a 6467else
a0b9e27f 6468
10f2d63a
VZ
6469 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6470 if test "x$LINE" != x ; then
6471 eval "DEFAULT_$LINE"
6472 else
6473 no_cache=1
6474 fi
6475
6476 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6477
6478fi
10f2d63a
VZ
6479
6480
6481 eval "$ac_cv_use_listbox"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6487 echo "$ac_t""yes" 1>&6
10f2d63a 6488 else
a0b9e27f 6489 echo "$ac_t""no" 1>&6
10f2d63a 6490 fi
a0b9e27f 6491
10f2d63a 6492
5005acfe
VZ
6493 enablestring=
6494 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
1542ea39 6495echo "configure:6496: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6496 no_cache=0
6497 # Check whether --enable-listctrl or --disable-listctrl was given.
6498if test "${enable_listctrl+set}" = set; then
6499 enableval="$enable_listctrl"
a0b9e27f 6500
10f2d63a
VZ
6501 if test "$enableval" = yes; then
6502 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6503 else
6504 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6505 fi
a0b9e27f 6506
10f2d63a 6507else
a0b9e27f 6508
10f2d63a
VZ
6509 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6517
6518fi
10f2d63a
VZ
6519
6520
6521 eval "$ac_cv_use_listctrl"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6527 echo "$ac_t""yes" 1>&6
10f2d63a 6528 else
a0b9e27f 6529 echo "$ac_t""no" 1>&6
10f2d63a 6530 fi
a0b9e27f 6531
10f2d63a 6532
5005acfe
VZ
6533 enablestring=
6534 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
1542ea39 6535echo "configure:6536: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6536 no_cache=0
6537 # Check whether --enable-notebook or --disable-notebook was given.
6538if test "${enable_notebook+set}" = set; then
6539 enableval="$enable_notebook"
a0b9e27f 6540
10f2d63a
VZ
6541 if test "$enableval" = yes; then
6542 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6543 else
6544 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6545 fi
a0b9e27f 6546
10f2d63a 6547else
a0b9e27f 6548
10f2d63a
VZ
6549 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6557
6558fi
10f2d63a
VZ
6559
6560
6561 eval "$ac_cv_use_notebook"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6567 echo "$ac_t""yes" 1>&6
10f2d63a 6568 else
a0b9e27f 6569 echo "$ac_t""no" 1>&6
10f2d63a 6570 fi
a0b9e27f 6571
10f2d63a 6572
5005acfe
VZ
6573 enablestring=
6574 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
1542ea39 6575echo "configure:6576: checking for --${enablestring:-enable}-propsheet" >&5
24176f2c
GD
6576 no_cache=0
6577 # Check whether --enable-propsheet or --disable-propsheet was given.
6578if test "${enable_propsheet+set}" = set; then
6579 enableval="$enable_propsheet"
a0b9e27f 6580
24176f2c
GD
6581 if test "$enableval" = yes; then
6582 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6583 else
6584 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6585 fi
a0b9e27f 6586
24176f2c 6587else
a0b9e27f 6588
24176f2c
GD
6589 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6590 if test "x$LINE" != x ; then
6591 eval "DEFAULT_$LINE"
6592 else
6593 no_cache=1
6594 fi
6595
6596 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6597
6598fi
24176f2c
GD
6599
6600
6601 eval "$ac_cv_use_propsheet"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6607 echo "$ac_t""yes" 1>&6
24176f2c 6608 else
a0b9e27f 6609 echo "$ac_t""no" 1>&6
24176f2c 6610 fi
a0b9e27f 6611
24176f2c 6612
5005acfe
VZ
6613 enablestring=
6614 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
1542ea39 6615echo "configure:6616: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6616 no_cache=0
6617 # Check whether --enable-radiobox or --disable-radiobox was given.
6618if test "${enable_radiobox+set}" = set; then
6619 enableval="$enable_radiobox"
a0b9e27f 6620
10f2d63a
VZ
6621 if test "$enableval" = yes; then
6622 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6623 else
6624 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6625 fi
a0b9e27f 6626
10f2d63a 6627else
a0b9e27f 6628
10f2d63a
VZ
6629 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6637
6638fi
10f2d63a
VZ
6639
6640
6641 eval "$ac_cv_use_radiobox"
6642 if test "$no_cache" != 1; then
6643 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6644 fi
6645
6646 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6647 echo "$ac_t""yes" 1>&6
10f2d63a 6648 else
a0b9e27f 6649 echo "$ac_t""no" 1>&6
10f2d63a 6650 fi
a0b9e27f 6651
10f2d63a 6652
5005acfe
VZ
6653 enablestring=
6654 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
1542ea39 6655echo "configure:6656: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6656 no_cache=0
6657 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6658if test "${enable_radiobtn+set}" = set; then
6659 enableval="$enable_radiobtn"
a0b9e27f 6660
10f2d63a
VZ
6661 if test "$enableval" = yes; then
6662 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6663 else
6664 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6665 fi
a0b9e27f 6666
10f2d63a 6667else
a0b9e27f 6668
10f2d63a
VZ
6669 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6677
6678fi
10f2d63a
VZ
6679
6680
6681 eval "$ac_cv_use_radiobtn"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6687 echo "$ac_t""yes" 1>&6
10f2d63a 6688 else
a0b9e27f 6689 echo "$ac_t""no" 1>&6
10f2d63a 6690 fi
a0b9e27f 6691
10f2d63a 6692
5005acfe
VZ
6693 enablestring=
6694 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
1542ea39 6695echo "configure:6696: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6696 no_cache=0
6697 # Check whether --enable-sash or --disable-sash was given.
6698if test "${enable_sash+set}" = set; then
6699 enableval="$enable_sash"
a0b9e27f 6700
10f2d63a
VZ
6701 if test "$enableval" = yes; then
6702 ac_cv_use_sash='wxUSE_SASH=yes'
6703 else
6704 ac_cv_use_sash='wxUSE_SASH=no'
6705 fi
a0b9e27f 6706
10f2d63a 6707else
a0b9e27f 6708
10f2d63a
VZ
6709 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6717
6718fi
10f2d63a
VZ
6719
6720
6721 eval "$ac_cv_use_sash"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6727 echo "$ac_t""yes" 1>&6
10f2d63a 6728 else
a0b9e27f 6729 echo "$ac_t""no" 1>&6
10f2d63a 6730 fi
a0b9e27f 6731
10f2d63a 6732
5005acfe
VZ
6733 enablestring=
6734 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
1542ea39 6735echo "configure:6736: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6736 no_cache=0
6737 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6738if test "${enable_scrollbar+set}" = set; then
6739 enableval="$enable_scrollbar"
a0b9e27f 6740
10f2d63a
VZ
6741 if test "$enableval" = yes; then
6742 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6743 else
6744 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6745 fi
a0b9e27f 6746
10f2d63a 6747else
a0b9e27f 6748
10f2d63a
VZ
6749 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6757
6758fi
10f2d63a
VZ
6759
6760
6761 eval "$ac_cv_use_scrollbar"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6767 echo "$ac_t""yes" 1>&6
10f2d63a 6768 else
a0b9e27f 6769 echo "$ac_t""no" 1>&6
10f2d63a 6770 fi
a0b9e27f 6771
10f2d63a 6772
5005acfe
VZ
6773 enablestring=
6774 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
1542ea39 6775echo "configure:6776: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6776 no_cache=0
6777 # Check whether --enable-slider or --disable-slider was given.
6778if test "${enable_slider+set}" = set; then
6779 enableval="$enable_slider"
a0b9e27f 6780
10f2d63a
VZ
6781 if test "$enableval" = yes; then
6782 ac_cv_use_slider='wxUSE_SLIDER=yes'
6783 else
6784 ac_cv_use_slider='wxUSE_SLIDER=no'
6785 fi
a0b9e27f 6786
10f2d63a 6787else
a0b9e27f 6788
10f2d63a
VZ
6789 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6790 if test "x$LINE" != x ; then
6791 eval "DEFAULT_$LINE"
6792 else
6793 no_cache=1
6794 fi
6795
6796 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6797
6798fi
10f2d63a
VZ
6799
6800
6801 eval "$ac_cv_use_slider"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6807 echo "$ac_t""yes" 1>&6
10f2d63a 6808 else
a0b9e27f 6809 echo "$ac_t""no" 1>&6
10f2d63a 6810 fi
a0b9e27f 6811
10f2d63a 6812
5005acfe
VZ
6813 enablestring=
6814 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
1542ea39 6815echo "configure:6816: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6816 no_cache=0
6817 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6818if test "${enable_spinbtn+set}" = set; then
6819 enableval="$enable_spinbtn"
a0b9e27f 6820
10f2d63a
VZ
6821 if test "$enableval" = yes; then
6822 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6823 else
6824 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6825 fi
a0b9e27f 6826
10f2d63a 6827else
a0b9e27f 6828
10f2d63a
VZ
6829 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6837
6838fi
10f2d63a
VZ
6839
6840
6841 eval "$ac_cv_use_spinbtn"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6847 echo "$ac_t""yes" 1>&6
10f2d63a 6848 else
a0b9e27f 6849 echo "$ac_t""no" 1>&6
10f2d63a 6850 fi
a0b9e27f 6851
10f2d63a 6852
5005acfe
VZ
6853 enablestring=
6854 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
1542ea39 6855echo "configure:6856: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6856 no_cache=0
6857 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6858if test "${enable_spinctrl+set}" = set; then
6859 enableval="$enable_spinctrl"
a0b9e27f 6860
56cfaa52
RR
6861 if test "$enableval" = yes; then
6862 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6863 else
6864 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6865 fi
a0b9e27f 6866
56cfaa52 6867else
a0b9e27f 6868
56cfaa52
RR
6869 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6877
6878fi
56cfaa52
RR
6879
6880
6881 eval "$ac_cv_use_spinctrl"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6887 echo "$ac_t""yes" 1>&6
56cfaa52 6888 else
a0b9e27f 6889 echo "$ac_t""no" 1>&6
56cfaa52 6890 fi
a0b9e27f 6891
56cfaa52 6892
5005acfe
VZ
6893 enablestring=
6894 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
1542ea39 6895echo "configure:6896: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6896 no_cache=0
6897 # Check whether --enable-splitter or --disable-splitter was given.
6898if test "${enable_splitter+set}" = set; then
6899 enableval="$enable_splitter"
a0b9e27f 6900
10f2d63a
VZ
6901 if test "$enableval" = yes; then
6902 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6903 else
6904 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6905 fi
a0b9e27f 6906
10f2d63a 6907else
a0b9e27f 6908
10f2d63a
VZ
6909 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6917
6918fi
10f2d63a
VZ
6919
6920
6921 eval "$ac_cv_use_splitter"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6927 echo "$ac_t""yes" 1>&6
10f2d63a 6928 else
a0b9e27f 6929 echo "$ac_t""no" 1>&6
10f2d63a 6930 fi
a0b9e27f 6931
10f2d63a 6932
5005acfe
VZ
6933 enablestring=
6934 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
1542ea39 6935echo "configure:6936: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6936 no_cache=0
6937 # Check whether --enable-statbmp or --disable-statbmp was given.
6938if test "${enable_statbmp+set}" = set; then
6939 enableval="$enable_statbmp"
a0b9e27f 6940
10f2d63a
VZ
6941 if test "$enableval" = yes; then
6942 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6943 else
6944 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6945 fi
a0b9e27f 6946
10f2d63a 6947else
a0b9e27f 6948
10f2d63a
VZ
6949 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6950 if test "x$LINE" != x ; then
6951 eval "DEFAULT_$LINE"
6952 else
6953 no_cache=1
6954 fi
6955
6956 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6957
6958fi
10f2d63a
VZ
6959
6960
6961 eval "$ac_cv_use_statbmp"
6962 if test "$no_cache" != 1; then
6963 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6964 fi
6965
6966 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6967 echo "$ac_t""yes" 1>&6
10f2d63a 6968 else
a0b9e27f 6969 echo "$ac_t""no" 1>&6
10f2d63a 6970 fi
a0b9e27f 6971
10f2d63a 6972
5005acfe
VZ
6973 enablestring=
6974 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
1542ea39 6975echo "configure:6976: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6976 no_cache=0
6977 # Check whether --enable-statbox or --disable-statbox was given.
6978if test "${enable_statbox+set}" = set; then
6979 enableval="$enable_statbox"
a0b9e27f 6980
10f2d63a
VZ
6981 if test "$enableval" = yes; then
6982 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6983 else
6984 ac_cv_use_statbox='wxUSE_STATBOX=no'
6985 fi
a0b9e27f 6986
10f2d63a 6987else
a0b9e27f 6988
10f2d63a
VZ
6989 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6997
6998fi
10f2d63a
VZ
6999
7000
7001 eval "$ac_cv_use_statbox"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 7007 echo "$ac_t""yes" 1>&6
10f2d63a 7008 else
a0b9e27f 7009 echo "$ac_t""no" 1>&6
10f2d63a 7010 fi
a0b9e27f 7011
10f2d63a 7012
5005acfe
VZ
7013 enablestring=
7014 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
1542ea39 7015echo "configure:7016: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
7016 no_cache=0
7017 # Check whether --enable-statline or --disable-statline was given.
7018if test "${enable_statline+set}" = set; then
7019 enableval="$enable_statline"
a0b9e27f 7020
10f2d63a
VZ
7021 if test "$enableval" = yes; then
7022 ac_cv_use_statline='wxUSE_STATLINE=yes'
7023 else
7024 ac_cv_use_statline='wxUSE_STATLINE=no'
7025 fi
a0b9e27f 7026
10f2d63a 7027else
a0b9e27f 7028
10f2d63a
VZ
7029 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
7037
7038fi
10f2d63a
VZ
7039
7040
7041 eval "$ac_cv_use_statline"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 7047 echo "$ac_t""yes" 1>&6
10f2d63a 7048 else
a0b9e27f 7049 echo "$ac_t""no" 1>&6
10f2d63a 7050 fi
a0b9e27f 7051
10f2d63a 7052
5005acfe
VZ
7053 enablestring=
7054 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
1542ea39 7055echo "configure:7056: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7056 no_cache=0
7057 # Check whether --enable-stattext or --disable-stattext was given.
7058if test "${enable_stattext+set}" = set; then
7059 enableval="$enable_stattext"
a0b9e27f 7060
1e6feb95
VZ
7061 if test "$enableval" = yes; then
7062 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7063 else
7064 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7065 fi
a0b9e27f 7066
1e6feb95 7067else
a0b9e27f 7068
1e6feb95
VZ
7069 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7077
7078fi
1e6feb95
VZ
7079
7080
7081 eval "$ac_cv_use_stattext"
7082 if test "$no_cache" != 1; then
7083 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7084 fi
7085
7086 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7087 echo "$ac_t""yes" 1>&6
1e6feb95 7088 else
a0b9e27f 7089 echo "$ac_t""no" 1>&6
1e6feb95 7090 fi
a0b9e27f 7091
1e6feb95 7092
5005acfe
VZ
7093 enablestring=
7094 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
1542ea39 7095echo "configure:7096: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-statusbar or --disable-statusbar was given.
7098if test "${enable_statusbar+set}" = set; then
7099 enableval="$enable_statusbar"
a0b9e27f 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7103 else
7104 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7105 fi
a0b9e27f 7106
10f2d63a 7107else
a0b9e27f 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7117
7118fi
10f2d63a
VZ
7119
7120
7121 eval "$ac_cv_use_statusbar"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7127 echo "$ac_t""yes" 1>&6
10f2d63a 7128 else
a0b9e27f 7129 echo "$ac_t""no" 1>&6
10f2d63a 7130 fi
a0b9e27f 7131
10f2d63a 7132
5005acfe
VZ
7133 enablestring=
7134 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
1542ea39 7135echo "configure:7136: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7136 no_cache=0
7137 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7138if test "${enable_tabdialog+set}" = set; then
7139 enableval="$enable_tabdialog"
a0b9e27f 7140
10f2d63a
VZ
7141 if test "$enableval" = yes; then
7142 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7143 else
7144 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7145 fi
a0b9e27f 7146
10f2d63a 7147else
a0b9e27f 7148
10f2d63a
VZ
7149 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7157
7158fi
10f2d63a
VZ
7159
7160
7161 eval "$ac_cv_use_tabdialog"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7167 echo "$ac_t""yes" 1>&6
10f2d63a 7168 else
a0b9e27f 7169 echo "$ac_t""no" 1>&6
10f2d63a 7170 fi
a0b9e27f 7171
10f2d63a 7172
5005acfe
VZ
7173 enablestring=
7174 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
1542ea39 7175echo "configure:7176: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7176 no_cache=0
7177 # Check whether --enable-textctrl or --disable-textctrl was given.
7178if test "${enable_textctrl+set}" = set; then
7179 enableval="$enable_textctrl"
a0b9e27f 7180
1e6feb95
VZ
7181 if test "$enableval" = yes; then
7182 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7183 else
7184 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7185 fi
a0b9e27f 7186
1e6feb95 7187else
a0b9e27f 7188
1e6feb95
VZ
7189 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7197
7198fi
1e6feb95
VZ
7199
7200
7201 eval "$ac_cv_use_textctrl"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7207 echo "$ac_t""yes" 1>&6
1e6feb95 7208 else
a0b9e27f 7209 echo "$ac_t""no" 1>&6
1e6feb95 7210 fi
a0b9e27f 7211
1e6feb95 7212
5005acfe
VZ
7213 enablestring=
7214 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
1542ea39 7215echo "configure:7216: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7216 no_cache=0
7217 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7218if test "${enable_togglebtn+set}" = set; then
7219 enableval="$enable_togglebtn"
a0b9e27f 7220
1db8dc4a
VZ
7221 if test "$enableval" = yes; then
7222 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7223 else
7224 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7225 fi
a0b9e27f 7226
1db8dc4a 7227else
a0b9e27f 7228
1db8dc4a
VZ
7229 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7237
7238fi
1db8dc4a
VZ
7239
7240
7241 eval "$ac_cv_use_togglebtn"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7247 echo "$ac_t""yes" 1>&6
1db8dc4a 7248 else
a0b9e27f 7249 echo "$ac_t""no" 1>&6
1db8dc4a 7250 fi
a0b9e27f 7251
1db8dc4a 7252
5005acfe
VZ
7253 enablestring=
7254 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
1542ea39 7255echo "configure:7256: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7256 no_cache=0
7257 # Check whether --enable-toolbar or --disable-toolbar was given.
7258if test "${enable_toolbar+set}" = set; then
7259 enableval="$enable_toolbar"
a0b9e27f 7260
10f2d63a
VZ
7261 if test "$enableval" = yes; then
7262 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7263 else
7264 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7265 fi
a0b9e27f 7266
10f2d63a 7267else
a0b9e27f 7268
10f2d63a
VZ
7269 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7270 if test "x$LINE" != x ; then
7271 eval "DEFAULT_$LINE"
7272 else
7273 no_cache=1
7274 fi
7275
7276 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7277
7278fi
10f2d63a
VZ
7279
7280
7281 eval "$ac_cv_use_toolbar"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7287 echo "$ac_t""yes" 1>&6
10f2d63a 7288 else
a0b9e27f 7289 echo "$ac_t""no" 1>&6
10f2d63a 7290 fi
a0b9e27f 7291
10f2d63a 7292
5005acfe
VZ
7293 enablestring=
7294 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
1542ea39 7295echo "configure:7296: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7296 no_cache=0
7297 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7298if test "${enable_tbarnative+set}" = set; then
7299 enableval="$enable_tbarnative"
a0b9e27f 7300
360d6699
VZ
7301 if test "$enableval" = yes; then
7302 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7303 else
7304 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7305 fi
a0b9e27f 7306
360d6699 7307else
a0b9e27f 7308
360d6699
VZ
7309 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7317
7318fi
360d6699
VZ
7319
7320
7321 eval "$ac_cv_use_tbarnative"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7327 echo "$ac_t""yes" 1>&6
360d6699 7328 else
a0b9e27f 7329 echo "$ac_t""no" 1>&6
360d6699 7330 fi
a0b9e27f 7331
360d6699 7332
5005acfe
VZ
7333 enablestring=
7334 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
1542ea39 7335echo "configure:7336: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7336 no_cache=0
7337 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7338if test "${enable_tbarsmpl+set}" = set; then
7339 enableval="$enable_tbarsmpl"
a0b9e27f 7340
360d6699
VZ
7341 if test "$enableval" = yes; then
7342 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7343 else
7344 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7345 fi
a0b9e27f 7346
360d6699 7347else
a0b9e27f 7348
360d6699
VZ
7349 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7357
7358fi
360d6699
VZ
7359
7360
7361 eval "$ac_cv_use_tbarsmpl"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7367 echo "$ac_t""yes" 1>&6
360d6699 7368 else
a0b9e27f 7369 echo "$ac_t""no" 1>&6
360d6699 7370 fi
a0b9e27f 7371
360d6699 7372
5005acfe
VZ
7373 enablestring=
7374 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
1542ea39 7375echo "configure:7376: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7376 no_cache=0
7377 # Check whether --enable-treectrl or --disable-treectrl was given.
7378if test "${enable_treectrl+set}" = set; then
7379 enableval="$enable_treectrl"
a0b9e27f 7380
10f2d63a
VZ
7381 if test "$enableval" = yes; then
7382 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7383 else
7384 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7385 fi
a0b9e27f 7386
10f2d63a 7387else
a0b9e27f 7388
10f2d63a
VZ
7389 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7390 if test "x$LINE" != x ; then
7391 eval "DEFAULT_$LINE"
7392 else
7393 no_cache=1
7394 fi
7395
7396 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7397
7398fi
10f2d63a
VZ
7399
7400
1e6feb95
VZ
7401 eval "$ac_cv_use_treectrl"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7407 echo "$ac_t""yes" 1>&6
1e6feb95 7408 else
a0b9e27f 7409 echo "$ac_t""no" 1>&6
1e6feb95 7410 fi
a0b9e27f 7411
1e6feb95 7412
5005acfe
VZ
7413 enablestring=
7414 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
1542ea39 7415echo "configure:7416: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7416 no_cache=0
7417 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7418if test "${enable_tipwindow+set}" = set; then
7419 enableval="$enable_tipwindow"
a0b9e27f 7420
9926e4a4
VZ
7421 if test "$enableval" = yes; then
7422 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7423 else
7424 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7425 fi
a0b9e27f 7426
9926e4a4 7427else
a0b9e27f 7428
9926e4a4
VZ
7429 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7437
7438fi
9926e4a4
VZ
7439
7440
7441 eval "$ac_cv_use_tipwindow"
7442 if test "$no_cache" != 1; then
7443 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7444 fi
7445
7446 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7447 echo "$ac_t""yes" 1>&6
9926e4a4 7448 else
a0b9e27f 7449 echo "$ac_t""no" 1>&6
9926e4a4 7450 fi
a0b9e27f 7451
9926e4a4 7452
5005acfe
VZ
7453 enablestring=
7454 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
1542ea39 7455echo "configure:7456: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7456 no_cache=0
7457 # Check whether --enable-popupwin or --disable-popupwin was given.
7458if test "${enable_popupwin+set}" = set; then
7459 enableval="$enable_popupwin"
a0b9e27f 7460
9f41d601
RR
7461 if test "$enableval" = yes; then
7462 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7463 else
7464 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7465 fi
a0b9e27f 7466
9f41d601 7467else
a0b9e27f 7468
9f41d601
RR
7469 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7470 if test "x$LINE" != x ; then
7471 eval "DEFAULT_$LINE"
7472 else
7473 no_cache=1
7474 fi
7475
7476 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7477
7478fi
9f41d601
RR
7479
7480
7481 eval "$ac_cv_use_popupwin"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7487 echo "$ac_t""yes" 1>&6
9f41d601 7488 else
a0b9e27f 7489 echo "$ac_t""no" 1>&6
9f41d601 7490 fi
a0b9e27f 7491
52127426 7492
8284b0c5
MB
7493
7494
5005acfe
VZ
7495 enablestring=
7496 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
1542ea39 7497echo "configure:7498: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7498 no_cache=0
7499 # Check whether --enable-commondlg or --disable-commondlg was given.
7500if test "${enable_commondlg+set}" = set; then
7501 enableval="$enable_commondlg"
a0b9e27f 7502
1e6feb95
VZ
7503 if test "$enableval" = yes; then
7504 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7505 else
7506 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7507 fi
a0b9e27f 7508
1e6feb95 7509else
a0b9e27f 7510
1e6feb95
VZ
7511 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7519
7520fi
1e6feb95
VZ
7521
7522
7523 eval "$ac_cv_use_commondlg"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7529 echo "$ac_t""yes" 1>&6
1e6feb95 7530 else
a0b9e27f 7531 echo "$ac_t""no" 1>&6
1e6feb95 7532 fi
a0b9e27f 7533
1e6feb95 7534
5005acfe
VZ
7535 enablestring=
7536 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
1542ea39 7537echo "configure:7538: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7538 no_cache=0
7539 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7540if test "${enable_choicedlg+set}" = set; then
7541 enableval="$enable_choicedlg"
a0b9e27f 7542
1e6feb95
VZ
7543 if test "$enableval" = yes; then
7544 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7545 else
7546 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7547 fi
a0b9e27f 7548
1e6feb95 7549else
a0b9e27f 7550
1e6feb95
VZ
7551 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7552 if test "x$LINE" != x ; then
7553 eval "DEFAULT_$LINE"
7554 else
7555 no_cache=1
7556 fi
7557
7558 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7559
7560fi
1e6feb95
VZ
7561
7562
7563 eval "$ac_cv_use_choicedlg"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7569 echo "$ac_t""yes" 1>&6
1e6feb95 7570 else
a0b9e27f 7571 echo "$ac_t""no" 1>&6
1e6feb95 7572 fi
a0b9e27f 7573
1e6feb95 7574
5005acfe
VZ
7575 enablestring=
7576 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
1542ea39 7577echo "configure:7578: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7578 no_cache=0
7579 # Check whether --enable-coldlg or --disable-coldlg was given.
7580if test "${enable_coldlg+set}" = set; then
7581 enableval="$enable_coldlg"
a0b9e27f 7582
1e6feb95
VZ
7583 if test "$enableval" = yes; then
7584 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7585 else
7586 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7587 fi
a0b9e27f 7588
1e6feb95 7589else
a0b9e27f 7590
1e6feb95
VZ
7591 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7592 if test "x$LINE" != x ; then
7593 eval "DEFAULT_$LINE"
7594 else
7595 no_cache=1
7596 fi
7597
7598 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7599
7600fi
1e6feb95
VZ
7601
7602
7603 eval "$ac_cv_use_coldlg"
7604 if test "$no_cache" != 1; then
7605 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7606 fi
7607
7608 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7609 echo "$ac_t""yes" 1>&6
1e6feb95 7610 else
a0b9e27f 7611 echo "$ac_t""no" 1>&6
1e6feb95 7612 fi
a0b9e27f 7613
1e6feb95 7614
5005acfe
VZ
7615 enablestring=
7616 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
1542ea39 7617echo "configure:7618: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7618 no_cache=0
7619 # Check whether --enable-filedlg or --disable-filedlg was given.
7620if test "${enable_filedlg+set}" = set; then
7621 enableval="$enable_filedlg"
a0b9e27f 7622
1e6feb95
VZ
7623 if test "$enableval" = yes; then
7624 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7625 else
7626 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7627 fi
a0b9e27f 7628
1e6feb95 7629else
a0b9e27f 7630
1e6feb95
VZ
7631 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7632 if test "x$LINE" != x ; then
7633 eval "DEFAULT_$LINE"
7634 else
7635 no_cache=1
7636 fi
7637
7638 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7639
7640fi
1e6feb95
VZ
7641
7642
7643 eval "$ac_cv_use_filedlg"
7644 if test "$no_cache" != 1; then
7645 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7646 fi
7647
7648 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7649 echo "$ac_t""yes" 1>&6
1e6feb95 7650 else
a0b9e27f 7651 echo "$ac_t""no" 1>&6
1e6feb95 7652 fi
a0b9e27f 7653
1e6feb95 7654
5005acfe
VZ
7655 enablestring=
7656 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
1542ea39 7657echo "configure:7658: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7658 no_cache=0
69d27ff7
MB
7659 # Check whether --enable-finddlg or --disable-finddlg was given.
7660if test "${enable_finddlg+set}" = set; then
7661 enableval="$enable_finddlg"
a0b9e27f 7662
8db37e06 7663 if test "$enableval" = yes; then
69d27ff7 7664 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7665 else
69d27ff7 7666 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7667 fi
a0b9e27f 7668
8db37e06 7669else
a0b9e27f 7670
8db37e06
VZ
7671 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7672 if test "x$LINE" != x ; then
7673 eval "DEFAULT_$LINE"
7674 else
7675 no_cache=1
7676 fi
7677
69d27ff7 7678 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7679
7680fi
8db37e06
VZ
7681
7682
69d27ff7 7683 eval "$ac_cv_use_finddlg"
8db37e06 7684 if test "$no_cache" != 1; then
69d27ff7 7685 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7686 fi
7687
7688 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7689 echo "$ac_t""yes" 1>&6
8db37e06 7690 else
a0b9e27f 7691 echo "$ac_t""no" 1>&6
8db37e06 7692 fi
a0b9e27f 7693
8db37e06 7694
5005acfe
VZ
7695 enablestring=
7696 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
1542ea39 7697echo "configure:7698: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7698 no_cache=0
7699 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7700if test "${enable_fontdlg+set}" = set; then
7701 enableval="$enable_fontdlg"
a0b9e27f 7702
1e6feb95
VZ
7703 if test "$enableval" = yes; then
7704 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7705 else
7706 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7707 fi
a0b9e27f 7708
1e6feb95 7709else
a0b9e27f 7710
1e6feb95
VZ
7711 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7712 if test "x$LINE" != x ; then
7713 eval "DEFAULT_$LINE"
7714 else
7715 no_cache=1
7716 fi
7717
7718 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7719
7720fi
1e6feb95
VZ
7721
7722
7723 eval "$ac_cv_use_fontdlg"
7724 if test "$no_cache" != 1; then
7725 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7726 fi
7727
7728 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7729 echo "$ac_t""yes" 1>&6
1e6feb95 7730 else
a0b9e27f 7731 echo "$ac_t""no" 1>&6
1e6feb95 7732 fi
a0b9e27f 7733
1e6feb95 7734
5005acfe
VZ
7735 enablestring=
7736 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
1542ea39 7737echo "configure:7738: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7738 no_cache=0
7739 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7740if test "${enable_dirdlg+set}" = set; then
7741 enableval="$enable_dirdlg"
a0b9e27f 7742
1e6feb95
VZ
7743 if test "$enableval" = yes; then
7744 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7745 else
7746 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7747 fi
a0b9e27f 7748
1e6feb95 7749else
a0b9e27f 7750
1e6feb95
VZ
7751 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7752 if test "x$LINE" != x ; then
7753 eval "DEFAULT_$LINE"
7754 else
7755 no_cache=1
7756 fi
7757
7758 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7759
7760fi
1e6feb95
VZ
7761
7762
7763 eval "$ac_cv_use_dirdlg"
10f2d63a 7764 if test "$no_cache" != 1; then
1e6feb95 7765 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7766 fi
7767
1e6feb95 7768 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7769 echo "$ac_t""yes" 1>&6
10f2d63a 7770 else
a0b9e27f 7771 echo "$ac_t""no" 1>&6
10f2d63a 7772 fi
a0b9e27f 7773
698dcdb6 7774
5005acfe
VZ
7775 enablestring=
7776 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
1542ea39 7777echo "configure:7778: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7778 no_cache=0
1e6feb95
VZ
7779 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7780if test "${enable_msgdlg+set}" = set; then
7781 enableval="$enable_msgdlg"
a0b9e27f 7782
10f2d63a 7783 if test "$enableval" = yes; then
1e6feb95 7784 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7785 else
1e6feb95 7786 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7787 fi
a0b9e27f 7788
10f2d63a 7789else
a0b9e27f 7790
1e6feb95 7791 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7792 if test "x$LINE" != x ; then
7793 eval "DEFAULT_$LINE"
7794 else
7795 no_cache=1
7796 fi
7797
1e6feb95 7798 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7799
7800fi
10f2d63a
VZ
7801
7802
1e6feb95 7803 eval "$ac_cv_use_msgdlg"
10f2d63a 7804 if test "$no_cache" != 1; then
1e6feb95 7805 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7806 fi
7807
1e6feb95 7808 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7809 echo "$ac_t""yes" 1>&6
10f2d63a 7810 else
a0b9e27f 7811 echo "$ac_t""no" 1>&6
10f2d63a 7812 fi
a0b9e27f 7813
10f2d63a 7814
5005acfe
VZ
7815 enablestring=
7816 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
1542ea39 7817echo "configure:7818: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7818 no_cache=0
1e6feb95
VZ
7819 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7820if test "${enable_numberdlg+set}" = set; then
7821 enableval="$enable_numberdlg"
a0b9e27f 7822
10f2d63a 7823 if test "$enableval" = yes; then
1e6feb95 7824 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7825 else
1e6feb95 7826 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7827 fi
a0b9e27f 7828
10f2d63a 7829else
a0b9e27f 7830
1e6feb95 7831 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7832 if test "x$LINE" != x ; then
7833 eval "DEFAULT_$LINE"
7834 else
7835 no_cache=1
7836 fi
7837
1e6feb95 7838 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7839
7840fi
10f2d63a
VZ
7841
7842
1e6feb95 7843 eval "$ac_cv_use_numberdlg"
10f2d63a 7844 if test "$no_cache" != 1; then
1e6feb95 7845 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7846 fi
7847
1e6feb95 7848 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7849 echo "$ac_t""yes" 1>&6
10f2d63a 7850 else
a0b9e27f 7851 echo "$ac_t""no" 1>&6
10f2d63a 7852 fi
a0b9e27f 7853
10f2d63a 7854
5005acfe
VZ
7855 enablestring=
7856 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
1542ea39 7857echo "configure:7858: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7858 no_cache=0
7859 # Check whether --enable-splash or --disable-splash was given.
7860if test "${enable_splash+set}" = set; then
7861 enableval="$enable_splash"
a0b9e27f 7862
cbca9943
VZ
7863 if test "$enableval" = yes; then
7864 ac_cv_use_splash='wxUSE_SPLASH=yes'
7865 else
7866 ac_cv_use_splash='wxUSE_SPLASH=no'
7867 fi
a0b9e27f 7868
cbca9943 7869else
a0b9e27f 7870
cbca9943
VZ
7871 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7872 if test "x$LINE" != x ; then
7873 eval "DEFAULT_$LINE"
7874 else
7875 no_cache=1
7876 fi
7877
7878 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7879
7880fi
cbca9943
VZ
7881
7882
7883 eval "$ac_cv_use_splash"
7884 if test "$no_cache" != 1; then
7885 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7886 fi
7887
7888 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7889 echo "$ac_t""yes" 1>&6
cbca9943 7890 else
a0b9e27f 7891 echo "$ac_t""no" 1>&6
cbca9943 7892 fi
a0b9e27f 7893
cbca9943 7894
5005acfe
VZ
7895 enablestring=
7896 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
1542ea39 7897echo "configure:7898: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7898 no_cache=0
7899 # Check whether --enable-textdlg or --disable-textdlg was given.
7900if test "${enable_textdlg+set}" = set; then
7901 enableval="$enable_textdlg"
a0b9e27f 7902
10f2d63a
VZ
7903 if test "$enableval" = yes; then
7904 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7905 else
7906 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7907 fi
a0b9e27f 7908
10f2d63a 7909else
a0b9e27f 7910
10f2d63a
VZ
7911 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7912 if test "x$LINE" != x ; then
7913 eval "DEFAULT_$LINE"
7914 else
7915 no_cache=1
7916 fi
7917
7918 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7919
7920fi
10f2d63a
VZ
7921
7922
7923 eval "$ac_cv_use_textdlg"
7924 if test "$no_cache" != 1; then
7925 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7926 fi
7927
7928 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7929 echo "$ac_t""yes" 1>&6
10f2d63a 7930 else
a0b9e27f 7931 echo "$ac_t""no" 1>&6
10f2d63a 7932 fi
a0b9e27f 7933
10f2d63a 7934
5005acfe
VZ
7935 enablestring=
7936 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
1542ea39 7937echo "configure:7938: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7938 no_cache=0
7939 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7940if test "${enable_tipdlg+set}" = set; then
7941 enableval="$enable_tipdlg"
a0b9e27f 7942
10f2d63a
VZ
7943 if test "$enableval" = yes; then
7944 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7945 else
7946 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7947 fi
a0b9e27f 7948
10f2d63a 7949else
a0b9e27f 7950
10f2d63a
VZ
7951 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7952 if test "x$LINE" != x ; then
7953 eval "DEFAULT_$LINE"
7954 else
7955 no_cache=1
7956 fi
7957
7958 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7959
7960fi
10f2d63a
VZ
7961
7962
7963 eval "$ac_cv_use_tipdlg"
7964 if test "$no_cache" != 1; then
7965 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7966 fi
7967
7968 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7969 echo "$ac_t""yes" 1>&6
10f2d63a 7970 else
a0b9e27f 7971 echo "$ac_t""no" 1>&6
10f2d63a 7972 fi
a0b9e27f 7973
10f2d63a 7974
5005acfe
VZ
7975 enablestring=
7976 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
1542ea39 7977echo "configure:7978: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7978 no_cache=0
7979 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7980if test "${enable_progressdlg+set}" = set; then
7981 enableval="$enable_progressdlg"
a0b9e27f 7982
10f2d63a
VZ
7983 if test "$enableval" = yes; then
7984 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7985 else
7986 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7987 fi
a0b9e27f 7988
10f2d63a 7989else
a0b9e27f 7990
10f2d63a
VZ
7991 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7999
8000fi
10f2d63a
VZ
8001
8002
8003 eval "$ac_cv_use_progressdlg"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 8009 echo "$ac_t""yes" 1>&6
10f2d63a 8010 else
a0b9e27f 8011 echo "$ac_t""no" 1>&6
10f2d63a 8012 fi
a0b9e27f 8013
10f2d63a 8014
5005acfe
VZ
8015 enablestring=
8016 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
1542ea39 8017echo "configure:8018: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
8018 no_cache=0
8019 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8020if test "${enable_wizarddlg+set}" = set; then
8021 enableval="$enable_wizarddlg"
a0b9e27f 8022
b1f5d087
VZ
8023 if test "$enableval" = yes; then
8024 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8025 else
8026 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8027 fi
a0b9e27f 8028
b1f5d087 8029else
a0b9e27f 8030
b1f5d087
VZ
8031 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8032 if test "x$LINE" != x ; then
8033 eval "DEFAULT_$LINE"
8034 else
8035 no_cache=1
8036 fi
8037
8038 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
8039
8040fi
b1f5d087
VZ
8041
8042
8043 eval "$ac_cv_use_wizarddlg"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 8049 echo "$ac_t""yes" 1>&6
b1f5d087 8050 else
a0b9e27f 8051 echo "$ac_t""no" 1>&6
b1f5d087 8052 fi
a0b9e27f 8053
8284b0c5
MB
8054
8055
52127426 8056
5005acfe
VZ
8057 enablestring=
8058 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
1542ea39 8059echo "configure:8060: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8060 no_cache=0
8061 # Check whether --enable-menus or --disable-menus was given.
8062if test "${enable_menus+set}" = set; then
8063 enableval="$enable_menus"
a0b9e27f 8064
1e6feb95
VZ
8065 if test "$enableval" = yes; then
8066 ac_cv_use_menus='wxUSE_MENUS=yes'
8067 else
8068 ac_cv_use_menus='wxUSE_MENUS=no'
8069 fi
a0b9e27f 8070
1e6feb95 8071else
a0b9e27f 8072
1e6feb95
VZ
8073 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8081
8082fi
1e6feb95
VZ
8083
8084
8085 eval "$ac_cv_use_menus"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8091 echo "$ac_t""yes" 1>&6
1e6feb95 8092 else
a0b9e27f 8093 echo "$ac_t""no" 1>&6
1e6feb95 8094 fi
a0b9e27f 8095
1e6feb95 8096
5005acfe
VZ
8097 enablestring=
8098 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
1542ea39 8099echo "configure:8100: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8100 no_cache=0
8101 # Check whether --enable-miniframe or --disable-miniframe was given.
8102if test "${enable_miniframe+set}" = set; then
8103 enableval="$enable_miniframe"
a0b9e27f 8104
10f2d63a
VZ
8105 if test "$enableval" = yes; then
8106 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8107 else
8108 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8109 fi
a0b9e27f 8110
10f2d63a 8111else
a0b9e27f 8112
10f2d63a
VZ
8113 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8114 if test "x$LINE" != x ; then
8115 eval "DEFAULT_$LINE"
8116 else
8117 no_cache=1
8118 fi
8119
8120 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8121
8122fi
10f2d63a
VZ
8123
8124
8125 eval "$ac_cv_use_miniframe"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8131 echo "$ac_t""yes" 1>&6
10f2d63a 8132 else
a0b9e27f 8133 echo "$ac_t""no" 1>&6
10f2d63a 8134 fi
a0b9e27f 8135
10f2d63a 8136
5005acfe
VZ
8137 enablestring=
8138 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
1542ea39 8139echo "configure:8140: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8140 no_cache=0
8141 # Check whether --enable-tooltips or --disable-tooltips was given.
8142if test "${enable_tooltips+set}" = set; then
8143 enableval="$enable_tooltips"
a0b9e27f 8144
10f2d63a
VZ
8145 if test "$enableval" = yes; then
8146 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8147 else
8148 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8149 fi
a0b9e27f 8150
10f2d63a 8151else
a0b9e27f 8152
10f2d63a
VZ
8153 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8161
8162fi
10f2d63a
VZ
8163
8164
8165 eval "$ac_cv_use_tooltips"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8171 echo "$ac_t""yes" 1>&6
10f2d63a 8172 else
a0b9e27f 8173 echo "$ac_t""no" 1>&6
10f2d63a 8174 fi
a0b9e27f 8175
10f2d63a 8176
5005acfe
VZ
8177 enablestring=
8178 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
1542ea39 8179echo "configure:8180: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8180 no_cache=0
8181 # Check whether --enable-splines or --disable-splines was given.
8182if test "${enable_splines+set}" = set; then
8183 enableval="$enable_splines"
a0b9e27f 8184
10f2d63a
VZ
8185 if test "$enableval" = yes; then
8186 ac_cv_use_splines='wxUSE_SPLINES=yes'
8187 else
8188 ac_cv_use_splines='wxUSE_SPLINES=no'
8189 fi
a0b9e27f 8190
10f2d63a 8191else
a0b9e27f 8192
10f2d63a
VZ
8193 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8194 if test "x$LINE" != x ; then
8195 eval "DEFAULT_$LINE"
8196 else
8197 no_cache=1
8198 fi
8199
8200 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8201
8202fi
10f2d63a
VZ
8203
8204
8205 eval "$ac_cv_use_splines"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8211 echo "$ac_t""yes" 1>&6
10f2d63a 8212 else
a0b9e27f 8213 echo "$ac_t""no" 1>&6
10f2d63a 8214 fi
a0b9e27f 8215
10f2d63a 8216
5005acfe
VZ
8217 enablestring=
8218 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
1542ea39 8219echo "configure:8220: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8220 no_cache=0
8221 # Check whether --enable-validators or --disable-validators was given.
8222if test "${enable_validators+set}" = set; then
8223 enableval="$enable_validators"
a0b9e27f 8224
10f2d63a
VZ
8225 if test "$enableval" = yes; then
8226 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8227 else
8228 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8229 fi
a0b9e27f 8230
10f2d63a 8231else
a0b9e27f 8232
10f2d63a
VZ
8233 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8241
8242fi
10f2d63a
VZ
8243
8244
8245 eval "$ac_cv_use_validators"
8246 if test "$no_cache" != 1; then
8247 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8248 fi
8249
8250 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8251 echo "$ac_t""yes" 1>&6
10f2d63a 8252 else
a0b9e27f 8253 echo "$ac_t""no" 1>&6
10f2d63a 8254 fi
a0b9e27f 8255
10f2d63a 8256
5005acfe
VZ
8257 enablestring=
8258 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
1542ea39 8259echo "configure:8260: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8260 no_cache=0
8261 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8262if test "${enable_busyinfo+set}" = set; then
8263 enableval="$enable_busyinfo"
a0b9e27f 8264
10f2d63a
VZ
8265 if test "$enableval" = yes; then
8266 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8267 else
8268 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8269 fi
a0b9e27f 8270
10f2d63a 8271else
a0b9e27f 8272
10f2d63a
VZ
8273 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8274 if test "x$LINE" != x ; then
8275 eval "DEFAULT_$LINE"
8276 else
8277 no_cache=1
8278 fi
8279
8280 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8281
8282fi
10f2d63a
VZ
8283
8284
8285 eval "$ac_cv_use_busyinfo"
8286 if test "$no_cache" != 1; then
8287 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8288 fi
8289
8290 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8291 echo "$ac_t""yes" 1>&6
10f2d63a 8292 else
a0b9e27f 8293 echo "$ac_t""no" 1>&6
10f2d63a 8294 fi
a0b9e27f 8295
10f2d63a 8296
5005acfe
VZ
8297 enablestring=
8298 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
1542ea39 8299echo "configure:8300: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8300 no_cache=0
8301 # Check whether --enable-joystick or --disable-joystick was given.
8302if test "${enable_joystick+set}" = set; then
8303 enableval="$enable_joystick"
a0b9e27f 8304
f6bcfd97
BP
8305 if test "$enableval" = yes; then
8306 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8307 else
8308 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8309 fi
a0b9e27f 8310
f6bcfd97 8311else
a0b9e27f 8312
f6bcfd97
BP
8313 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8321
8322fi
f6bcfd97
BP
8323
8324
8325 eval "$ac_cv_use_joystick"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8331 echo "$ac_t""yes" 1>&6
f6bcfd97 8332 else
a0b9e27f 8333 echo "$ac_t""no" 1>&6
f6bcfd97 8334 fi
a0b9e27f 8335
698dcdb6 8336
5005acfe
VZ
8337 enablestring=
8338 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
1542ea39 8339echo "configure:8340: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8340 no_cache=0
8341 # Check whether --enable-metafile or --disable-metafile was given.
8342if test "${enable_metafile+set}" = set; then
8343 enableval="$enable_metafile"
a0b9e27f 8344
1e6feb95
VZ
8345 if test "$enableval" = yes; then
8346 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8347 else
8348 ac_cv_use_metafile='wxUSE_METAFILE=no'
8349 fi
a0b9e27f 8350
1e6feb95 8351else
a0b9e27f 8352
1e6feb95
VZ
8353 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
8360 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8361
8362fi
1e6feb95
VZ
8363
8364
8365 eval "$ac_cv_use_metafile"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8371 echo "$ac_t""yes" 1>&6
1e6feb95 8372 else
a0b9e27f 8373 echo "$ac_t""no" 1>&6
1e6feb95 8374 fi
a0b9e27f 8375
1e6feb95 8376
5005acfe
VZ
8377 enablestring=
8378 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
1542ea39 8379echo "configure:8380: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8380 no_cache=0
8381 # Check whether --enable-dragimage or --disable-dragimage was given.
8382if test "${enable_dragimage+set}" = set; then
8383 enableval="$enable_dragimage"
a0b9e27f 8384
24fd6d87
VZ
8385 if test "$enableval" = yes; then
8386 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8387 else
8388 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8389 fi
a0b9e27f 8390
24fd6d87 8391else
a0b9e27f 8392
24fd6d87
VZ
8393 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8394 if test "x$LINE" != x ; then
8395 eval "DEFAULT_$LINE"
8396 else
8397 no_cache=1
8398 fi
8399
8400 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8401
8402fi
24fd6d87
VZ
8403
8404
8405 eval "$ac_cv_use_dragimage"
8406 if test "$no_cache" != 1; then
8407 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8408 fi
8409
8410 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8411 echo "$ac_t""yes" 1>&6
24fd6d87 8412 else
a0b9e27f 8413 echo "$ac_t""no" 1>&6
24fd6d87 8414 fi
a0b9e27f 8415
52127426 8416
8284b0c5
MB
8417
8418
5005acfe
VZ
8419 enablestring=
8420 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
1542ea39 8421echo "configure:8422: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8422 no_cache=0
8423 # Check whether --enable-palette or --disable-palette was given.
8424if test "${enable_palette+set}" = set; then
8425 enableval="$enable_palette"
a0b9e27f 8426
edae8572
VZ
8427 if test "$enableval" = yes; then
8428 ac_cv_use_palette='wxUSE_PALETTE=yes'
8429 else
8430 ac_cv_use_palette='wxUSE_PALETTE=no'
8431 fi
a0b9e27f 8432
edae8572 8433else
a0b9e27f 8434
edae8572
VZ
8435 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8436 if test "x$LINE" != x ; then
8437 eval "DEFAULT_$LINE"
8438 else
8439 no_cache=1
8440 fi
8441
8442 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8443
8444fi
edae8572
VZ
8445
8446
8447 eval "$ac_cv_use_palette"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8453 echo "$ac_t""yes" 1>&6
edae8572 8454 else
a0b9e27f 8455 echo "$ac_t""no" 1>&6
edae8572 8456 fi
a0b9e27f 8457
edae8572 8458
5005acfe
VZ
8459 enablestring=
8460 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
1542ea39 8461echo "configure:8462: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8462 no_cache=0
8463 # Check whether --enable-image or --disable-image was given.
8464if test "${enable_image+set}" = set; then
8465 enableval="$enable_image"
a0b9e27f 8466
0046ff7c
VS
8467 if test "$enableval" = yes; then
8468 ac_cv_use_image='wxUSE_IMAGE=yes'
8469 else
8470 ac_cv_use_image='wxUSE_IMAGE=no'
8471 fi
a0b9e27f 8472
0046ff7c 8473else
a0b9e27f 8474
0046ff7c
VS
8475 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8476 if test "x$LINE" != x ; then
8477 eval "DEFAULT_$LINE"
8478 else
8479 no_cache=1
8480 fi
8481
8482 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8483
8484fi
0046ff7c
VS
8485
8486
8487 eval "$ac_cv_use_image"
8488 if test "$no_cache" != 1; then
8489 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8490 fi
8491
8492 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8493 echo "$ac_t""yes" 1>&6
0046ff7c 8494 else
a0b9e27f 8495 echo "$ac_t""no" 1>&6
0046ff7c 8496 fi
a0b9e27f 8497
0046ff7c 8498
5005acfe
VZ
8499 enablestring=
8500 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
1542ea39 8501echo "configure:8502: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8502 no_cache=0
8503 # Check whether --enable-gif or --disable-gif was given.
8504if test "${enable_gif+set}" = set; then
8505 enableval="$enable_gif"
a0b9e27f 8506
10f2d63a
VZ
8507 if test "$enableval" = yes; then
8508 ac_cv_use_gif='wxUSE_GIF=yes'
8509 else
8510 ac_cv_use_gif='wxUSE_GIF=no'
8511 fi
a0b9e27f 8512
10f2d63a 8513else
a0b9e27f 8514
10f2d63a
VZ
8515 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8516 if test "x$LINE" != x ; then
8517 eval "DEFAULT_$LINE"
8518 else
8519 no_cache=1
8520 fi
8521
8522 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8523
8524fi
10f2d63a
VZ
8525
8526
8527 eval "$ac_cv_use_gif"
8528 if test "$no_cache" != 1; then
8529 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8530 fi
8531
8532 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8533 echo "$ac_t""yes" 1>&6
10f2d63a 8534 else
a0b9e27f 8535 echo "$ac_t""no" 1>&6
10f2d63a 8536 fi
a0b9e27f 8537
10f2d63a 8538
5005acfe
VZ
8539 enablestring=
8540 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
1542ea39 8541echo "configure:8542: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8542 no_cache=0
8543 # Check whether --enable-pcx or --disable-pcx was given.
8544if test "${enable_pcx+set}" = set; then
8545 enableval="$enable_pcx"
a0b9e27f 8546
10f2d63a
VZ
8547 if test "$enableval" = yes; then
8548 ac_cv_use_pcx='wxUSE_PCX=yes'
8549 else
8550 ac_cv_use_pcx='wxUSE_PCX=no'
8551 fi
a0b9e27f 8552
10f2d63a 8553else
a0b9e27f 8554
10f2d63a
VZ
8555 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8563
8564fi
10f2d63a
VZ
8565
8566
8567 eval "$ac_cv_use_pcx"
8568 if test "$no_cache" != 1; then
8569 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8570 fi
8571
8572 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8573 echo "$ac_t""yes" 1>&6
10f2d63a 8574 else
a0b9e27f 8575 echo "$ac_t""no" 1>&6
10f2d63a 8576 fi
a0b9e27f 8577
10f2d63a 8578
5005acfe
VZ
8579 enablestring=
8580 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
1542ea39 8581echo "configure:8582: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8582 no_cache=0
8583 # Check whether --enable-iff or --disable-iff was given.
8584if test "${enable_iff+set}" = set; then
8585 enableval="$enable_iff"
a0b9e27f 8586
4b6b4dfc
RR
8587 if test "$enableval" = yes; then
8588 ac_cv_use_iff='wxUSE_IFF=yes'
8589 else
8590 ac_cv_use_iff='wxUSE_IFF=no'
8591 fi
a0b9e27f 8592
4b6b4dfc 8593else
a0b9e27f 8594
4b6b4dfc
RR
8595 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8596 if test "x$LINE" != x ; then
8597 eval "DEFAULT_$LINE"
8598 else
8599 no_cache=1
8600 fi
8601
8602 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8603
8604fi
4b6b4dfc
RR
8605
8606
8607 eval "$ac_cv_use_iff"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8613 echo "$ac_t""yes" 1>&6
4b6b4dfc 8614 else
a0b9e27f 8615 echo "$ac_t""no" 1>&6
4b6b4dfc 8616 fi
a0b9e27f 8617
4b6b4dfc 8618
5005acfe
VZ
8619 enablestring=
8620 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
1542ea39 8621echo "configure:8622: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8622 no_cache=0
8623 # Check whether --enable-pnm or --disable-pnm was given.
8624if test "${enable_pnm+set}" = set; then
8625 enableval="$enable_pnm"
a0b9e27f 8626
10f2d63a
VZ
8627 if test "$enableval" = yes; then
8628 ac_cv_use_pnm='wxUSE_PNM=yes'
8629 else
8630 ac_cv_use_pnm='wxUSE_PNM=no'
8631 fi
a0b9e27f 8632
10f2d63a 8633else
a0b9e27f 8634
10f2d63a
VZ
8635 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8636 if test "x$LINE" != x ; then
8637 eval "DEFAULT_$LINE"
8638 else
8639 no_cache=1
8640 fi
8641
8642 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8643
8644fi
10f2d63a
VZ
8645
8646
8647 eval "$ac_cv_use_pnm"
8648 if test "$no_cache" != 1; then
8649 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8650 fi
8651
8652 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8653 echo "$ac_t""yes" 1>&6
10f2d63a 8654 else
a0b9e27f 8655 echo "$ac_t""no" 1>&6
10f2d63a 8656 fi
a0b9e27f 8657
10f2d63a 8658
5005acfe
VZ
8659 enablestring=
8660 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
1542ea39 8661echo "configure:8662: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8662 no_cache=0
69d27ff7
MB
8663 # Check whether --enable-xpm or --disable-xpm was given.
8664if test "${enable_xpm+set}" = set; then
8665 enableval="$enable_xpm"
a0b9e27f 8666
0046ff7c 8667 if test "$enableval" = yes; then
69d27ff7 8668 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8669 else
69d27ff7 8670 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8671 fi
a0b9e27f 8672
0046ff7c 8673else
a0b9e27f 8674
0046ff7c
VS
8675 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
69d27ff7 8682 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8683
8684fi
0046ff7c
VS
8685
8686
69d27ff7 8687 eval "$ac_cv_use_xpm"
0046ff7c 8688 if test "$no_cache" != 1; then
69d27ff7 8689 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8690 fi
8691
8692 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8693 echo "$ac_t""yes" 1>&6
0046ff7c 8694 else
a0b9e27f 8695 echo "$ac_t""no" 1>&6
0046ff7c 8696 fi
a0b9e27f 8697
0046ff7c 8698
5005acfe
VZ
8699 enablestring=
8700 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
1542ea39 8701echo "configure:8702: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8702 no_cache=0
c7206e64
VS
8703 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8704if test "${enable_ico_cur+set}" = set; then
8705 enableval="$enable_ico_cur"
a0b9e27f 8706
658974ae 8707 if test "$enableval" = yes; then
c7206e64 8708 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8709 else
c7206e64 8710 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8711 fi
a0b9e27f 8712
658974ae 8713else
a0b9e27f 8714
658974ae
VS
8715 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8716 if test "x$LINE" != x ; then
8717 eval "DEFAULT_$LINE"
8718 else
8719 no_cache=1
8720 fi
8721
c7206e64 8722 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8723
8724fi
658974ae
VS
8725
8726
c7206e64 8727 eval "$ac_cv_use_ico_cur"
658974ae 8728 if test "$no_cache" != 1; then
c7206e64 8729 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8730 fi
8731
8732 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8733 echo "$ac_t""yes" 1>&6
658974ae 8734 else
a0b9e27f 8735 echo "$ac_t""no" 1>&6
658974ae 8736 fi
a0b9e27f 8737
658974ae 8738
b12915c1
VZ
8739fi
8740
d558c907
VS
8741case "${host}" in
8742 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8743 PATH_IFS=';'
8744 LEX_STEM="lexyy"
d558c907
VS
8745 ;;
8746 *)
8747 PATH_IFS=':'
8748 LEX_STEM="lex.yy"
8749 ;;
8750esac
8751
8284b0c5
MB
8752
8753
10f2d63a
VZ
8754 echo "saving argument cache $wx_arg_cache_file"
8755 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8756
52127426 8757
8284b0c5 8758
a0b9e27f 8759echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1542ea39 8760echo "configure:8761: checking for toolkit" >&5
89e6bf6d
VZ
8761
8762# In Wine, we need to default to MSW, not GTK or MOTIF
8763if test "$wxUSE_WINE" = "yes"; then
8764 DEFAULT_DEFAULT_wxUSE_GTK=0
8765 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8766 DEFAULT_DEFAULT_wxUSE_MSW=1
8767fi
10f2d63a
VZ
8768
8769if test "$wxUSE_GUI" = "yes"; then
8770
3a922bb4 8771 if test "$USE_BEOS" = 1; then
a0b9e27f 8772 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8773 fi
b12915c1 8774
3a922bb4
RL
8775 if test "$TOOLKIT_GIVEN" = 1; then
8776 for toolkit in `echo $ALL_TOOLKITS`; do
8777 var=wxUSE_$toolkit
8778 eval "value=\$${var}"
8779 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8780 done
10f2d63a 8781 else
3a922bb4
RL
8782 for toolkit in `echo $ALL_TOOLKITS`; do
8783 if test "$has_toolkit_in_cache" != 1; then
8784 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8785 else
8786 var=DEFAULT_wxUSE_$toolkit
8787 fi
8788 eval "wxUSE_$toolkit=\$${var}"
8789 done
10f2d63a 8790 fi
10f2d63a 8791
ac0c4cc3
DE
8792 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8793 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8794 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8795
d558c907 8796 case "${host}" in
6fa882bd 8797 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8798 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8799 esac
10f2d63a 8800
3a922bb4
RL
8801 case "$NUM_TOOLKITS" in
8802 1)
8803 ;;
8804 0)
a0b9e27f 8805 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8806 ;;
8807 *)
a0b9e27f 8808 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8809 esac
10f2d63a 8810
3a922bb4
RL
8811 for toolkit in `echo $ALL_TOOLKITS`; do
8812 var=wxUSE_$toolkit
8813 eval "value=\$${var}"
8814 if test "x$value" != x; then
8815 cache_var=CACHE_$toolkit
8816 eval "cache=\$${cache_var}"
8817 if test "$cache" = 1; then
8818 echo "$var=$value" >> ${wx_arg_cache_file}
8819 fi
8820 if test "$value" = 1; then
8821 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8822 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8823 fi
8824 fi
8825 done
10f2d63a 8826else
a0b9e27f 8827 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8828fi
8829
43d99b6d
VS
8830wants_win32=0
8831doesnt_want_win32=0
17234b26
MB
8832case "${host}" in
8833 *-*-cygwin*)
8834 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8835 wants_win32=1
8836 else
8837 doesnt_want_win32=1
17234b26
MB
8838 fi
8839 ;;
8840 *-*-mingw*)
43d99b6d 8841 wants_win32=1
17234b26
MB
8842 ;;
8843esac
8844
89e6bf6d
VZ
8845if test "$wxUSE_WINE" = "yes"; then
8846 wants_win32=1
8847 CC=winegcc
8848 CXX=wineg++
8849 RESCOMP=wrc
8850fi
8851
43d99b6d 8852if test "$wants_win32" = 1 ; then
17234b26
MB
8853 USE_UNIX=0
8854 USE_WIN32=1
a0b9e27f 8855 cat >> confdefs.h <<\EOF
17234b26 8856#define __WIN32__ 1
a0b9e27f 8857EOF
17234b26 8858
a0b9e27f 8859 cat >> confdefs.h <<\EOF
17234b26 8860#define __WIN95__ 1
a0b9e27f 8861EOF
17234b26 8862
a0b9e27f 8863 cat >> confdefs.h <<\EOF
17234b26 8864#define __WINDOWS__ 1
a0b9e27f 8865EOF
17234b26 8866
a0b9e27f 8867 cat >> confdefs.h <<\EOF
17234b26 8868#define __GNUWIN32__ 1
a0b9e27f 8869EOF
17234b26 8870
a0b9e27f 8871 cat >> confdefs.h <<\EOF
17234b26 8872#define STRICT 1
a0b9e27f 8873EOF
17234b26 8874
a0b9e27f 8875 cat >> confdefs.h <<\EOF
17234b26 8876#define WINVER 0x0400
a0b9e27f 8877EOF
17234b26 8878
43d99b6d
VS
8879fi
8880if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8881 USE_UNIX=1
8882 USE_WIN32=0
8883fi
8884
8885if test "$USE_UNIX" = 1 ; then
8886 wxUSE_UNIX=yes
a0b9e27f 8887 cat >> confdefs.h <<\EOF
17234b26 8888#define __UNIX__ 1
a0b9e27f 8889EOF
17234b26
MB
8890
8891fi
8892
8284b0c5 8893
a0b9e27f 8894cat > confcache <<\EOF
10f2d63a
VZ
8895# This file is a shell script that caches the results of configure
8896# tests run on this system so they can be shared between configure
a0b9e27f
MB
8897# scripts and configure runs. It is not useful on other systems.
8898# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8899#
a0b9e27f
MB
8900# By default, configure uses ./config.cache as the cache file,
8901# creating it if it does not exist already. You can give configure
8902# the --cache-file=FILE option to use a different cache file; that is
8903# what configure does when it calls configure scripts in
8904# subdirectories, so they share the cache.
8905# Giving --cache-file=/dev/null disables caching, for debugging configure.
8906# config.status only pays attention to the cache file if you give it the
8907# --recheck option to rerun configure.
10f2d63a 8908#
a0b9e27f 8909EOF
10f2d63a
VZ
8910# The following way of writing the cache mishandles newlines in values,
8911# but we know of no workaround that is simple, portable, and efficient.
8912# So, don't put newlines in cache variables' values.
8913# Ultrix sh set writes to stderr and can't be redirected directly,
8914# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8915(set) 2>&1 |
8916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8917 *ac_space=\ *)
8918 # `set' does not quote correctly, so add quotes (double-quote substitution
8919 # turns \\\\ into \\, and sed turns \\ into \).
8920 sed -n \
8921 -e "s/'/'\\\\''/g" \
8922 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8923 ;;
8924 *)
8925 # `set' quotes correctly as required by POSIX, so do not add quotes.
8926 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8927 ;;
8928 esac >> confcache
8929if cmp -s $cache_file confcache; then
8930 :
8931else
10f2d63a 8932 if test -w $cache_file; then
a0b9e27f
MB
8933 echo "updating cache $cache_file"
8934 cat confcache > $cache_file
10f2d63a
VZ
8935 else
8936 echo "not updating unwritable cache $cache_file"
8937 fi
8938fi
8939rm -f confcache
8940
a0b9e27f 8941
e59890c3 8942if test "$build" != "$host" ; then
9d353d4a 8943 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8944 CC=$host_alias-gcc
8945 CXX=$host_alias-c++
8946 AR=$host_alias-ar
8947 RANLIB=$host_alias-ranlib
8948 DLLTOOL=$host_alias-dlltool
8949 RESCOMP=$host_alias-windres
8950 LD=$host_alias-ld
8951 NM=$host_alias-nm
8952 STRIP=$host_alias-strip
8953 else
a0b9e27f 8954 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8955 fi
10f2d63a
VZ
8956fi
8957
ec603395 8958CFLAGS=${CFLAGS:=}
a0b9e27f 8959# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8960set dummy gcc; ac_word=$2
a0b9e27f 8961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 8962echo "configure:8963: checking for $ac_word" >&5
a0b9e27f
MB
8963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8965else
8966 if test -n "$CC"; then
8967 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8968else
a0b9e27f
MB
8969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8970 ac_dummy="$PATH"
8971 for ac_dir in $ac_dummy; do
8972 test -z "$ac_dir" && ac_dir=.
8973 if test -f $ac_dir/$ac_word; then
8974 ac_cv_prog_CC="gcc"
8975 break
8976 fi
8977 done
8978 IFS="$ac_save_ifs"
10f2d63a 8979fi
6232543b 8980fi
a0b9e27f 8981CC="$ac_cv_prog_CC"
6232543b 8982if test -n "$CC"; then
a0b9e27f 8983 echo "$ac_t""$CC" 1>&6
247f5006 8984else
a0b9e27f 8985 echo "$ac_t""no" 1>&6
247f5006
VZ
8986fi
8987
5c6fa7d2
RR
8988if test -z "$CC"; then
8989 # Extract the first word of "cc", so it can be a program name with args.
8990set dummy cc; ac_word=$2
a0b9e27f 8991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 8992echo "configure:8993: checking for $ac_word" >&5
a0b9e27f
MB
8993if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8995else
8996 if test -n "$CC"; then
8997 ac_cv_prog_CC="$CC" # Let the user override the test.
8998else
a0b9e27f 8999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 9000 ac_prog_rejected=no
a0b9e27f
MB
9001 ac_dummy="$PATH"
9002 for ac_dir in $ac_dummy; do
9003 test -z "$ac_dir" && ac_dir=.
9004 if test -f $ac_dir/$ac_word; then
9005 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9006 ac_prog_rejected=yes
9007 continue
9008 fi
9009 ac_cv_prog_CC="cc"
9010 break
9011 fi
9012 done
9013 IFS="$ac_save_ifs"
328a083c
RR
9014if test $ac_prog_rejected = yes; then
9015 # We found a bogon in the path, so make sure we never use it.
9016 set dummy $ac_cv_prog_CC
9017 shift
a0b9e27f 9018 if test $# -gt 0; then
328a083c 9019 # We chose a different compiler from the bogus one.
1e487827
VS
9020 # However, it has the same basename, so the bogon will be chosen
9021 # first if we set CC to just the basename; use the full file name.
9022 shift
a0b9e27f 9023 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
9024 shift
9025 ac_cv_prog_CC="$@"
703e0a69 9026 fi
1e487827
VS
9027fi
9028fi
9029fi
a0b9e27f 9030CC="$ac_cv_prog_CC"
1e487827 9031if test -n "$CC"; then
a0b9e27f 9032 echo "$ac_t""$CC" 1>&6
703e0a69 9033else
a0b9e27f 9034 echo "$ac_t""no" 1>&6
703e0a69 9035fi
1e487827 9036
a0b9e27f
MB
9037 if test -z "$CC"; then
9038 case "`uname -s`" in
9039 *win32* | *WIN32*)
9040 # Extract the first word of "cl", so it can be a program name with args.
9041set dummy cl; ac_word=$2
9042echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9043echo "configure:9044: checking for $ac_word" >&5
a0b9e27f
MB
9044if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
9046else
9047 if test -n "$CC"; then
9048 ac_cv_prog_CC="$CC" # Let the user override the test.
9049else
a0b9e27f
MB
9050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9051 ac_dummy="$PATH"
9052 for ac_dir in $ac_dummy; do
9053 test -z "$ac_dir" && ac_dir=.
9054 if test -f $ac_dir/$ac_word; then
9055 ac_cv_prog_CC="cl"
9056 break
9057 fi
9058 done
9059 IFS="$ac_save_ifs"
f09359cf
VS
9060fi
9061fi
a0b9e27f 9062CC="$ac_cv_prog_CC"
f09359cf 9063if test -n "$CC"; then
a0b9e27f 9064 echo "$ac_t""$CC" 1>&6
f09359cf 9065else
a0b9e27f 9066 echo "$ac_t""no" 1>&6
247f5006 9067fi
a0b9e27f
MB
9068 ;;
9069 esac
8284b0c5 9070 fi
a0b9e27f 9071 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9072fi
1e487827 9073
a0b9e27f 9074echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1542ea39 9075echo "configure:9076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9076
a0b9e27f
MB
9077ac_ext=c
9078# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9079ac_cpp='$CPP $CPPFLAGS'
9080ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9081ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9082cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9083
a0b9e27f 9084cat > conftest.$ac_ext << EOF
247f5006 9085
1542ea39 9086#line 9087 "configure"
a0b9e27f 9087#include "confdefs.h"
247f5006 9088
a0b9e27f
MB
9089main(){return(0);}
9090EOF
1542ea39 9091if { (eval echo configure:9092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9092 ac_cv_prog_cc_works=yes
9093 # If we can't run a trivial program, we are probably using a cross compiler.
9094 if (./conftest; exit) 2>/dev/null; then
9095 ac_cv_prog_cc_cross=no
698dcdb6 9096 else
a0b9e27f 9097 ac_cv_prog_cc_cross=yes
698dcdb6 9098 fi
7b4a847f 9099else
a0b9e27f
MB
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9102 ac_cv_prog_cc_works=no
52127426 9103fi
a0b9e27f
MB
9104rm -fr conftest*
9105ac_ext=c
9106# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9107ac_cpp='$CPP $CPPFLAGS'
9108ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9109ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9110cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9111
a0b9e27f
MB
9112echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9113if test $ac_cv_prog_cc_works = no; then
9114 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9115fi
9116echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1542ea39 9117echo "configure:9118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9118echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9119cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9120
a0b9e27f 9121echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1542ea39 9122echo "configure:9123: checking whether we are using GNU C" >&5
a0b9e27f
MB
9123if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9125else
a0b9e27f
MB
9126 cat > conftest.c <<EOF
9127#ifdef __GNUC__
9128 yes;
8284b0c5 9129#endif
a0b9e27f 9130EOF
1542ea39 9131if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9132 ac_cv_prog_gcc=yes
5c6fa7d2 9133else
a0b9e27f 9134 ac_cv_prog_gcc=no
8284b0c5
MB
9135fi
9136fi
1e487827 9137
a0b9e27f 9138echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9139
a0b9e27f
MB
9140if test $ac_cv_prog_gcc = yes; then
9141 GCC=yes
9142else
9143 GCC=
9144fi
247f5006 9145
a0b9e27f
MB
9146ac_test_CFLAGS="${CFLAGS+set}"
9147ac_save_CFLAGS="$CFLAGS"
9148CFLAGS=
9149echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1542ea39 9150echo "configure:9151: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9151if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9153else
9154 echo 'void f(){}' > conftest.c
9155if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9156 ac_cv_prog_cc_g=yes
9157else
a0b9e27f 9158 ac_cv_prog_cc_g=no
10f2d63a 9159fi
a0b9e27f
MB
9160rm -f conftest*
9161
10f2d63a 9162fi
a0b9e27f
MB
9163
9164echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9165if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9166 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9167elif test $ac_cv_prog_cc_g = yes; then
9168 if test "$GCC" = yes; then
10f2d63a
VZ
9169 CFLAGS="-g -O2"
9170 else
f09359cf 9171 CFLAGS="-g"
10f2d63a 9172 fi
5c0a20c3 9173else
f09359cf
VS
9174 if test "$GCC" = yes; then
9175 CFLAGS="-O2"
9176 else
9177 CFLAGS=
9178 fi
10f2d63a
VZ
9179fi
9180
9181
a0b9e27f 9182echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1542ea39 9183echo "configure:9184: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9184# On Suns, sometimes $CPP names a directory.
9185if test -n "$CPP" && test -d "$CPP"; then
9186 CPP=
9187fi
9188if test -z "$CPP"; then
a0b9e27f
MB
9189if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6
9191else
9192 # This must be in double quotes, not single quotes, because CPP may get
9193 # substituted into the Makefile and "${CC-cc}" will confuse make.
9194 CPP="${CC-cc} -E"
10f2d63a 9195 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9196 # not just through cpp.
9197 cat > conftest.$ac_ext <<EOF
1542ea39 9198#line 9199 "configure"
10f2d63a
VZ
9199#include "confdefs.h"
9200#include <assert.h>
a0b9e27f
MB
9201Syntax Error
9202EOF
9203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 9204{ (eval echo configure:9205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9206if test -z "$ac_err"; then
10f2d63a
VZ
9207 :
9208else
a0b9e27f
MB
9209 echo "$ac_err" >&5
9210 echo "configure: failed program was:" >&5
10f2d63a 9211 cat conftest.$ac_ext >&5
a0b9e27f
MB
9212 rm -rf conftest*
9213 CPP="${CC-cc} -E -traditional-cpp"
9214 cat > conftest.$ac_ext <<EOF
1542ea39 9215#line 9216 "configure"
f09359cf 9216#include "confdefs.h"
a0b9e27f
MB
9217#include <assert.h>
9218Syntax Error
9219EOF
9220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 9221{ (eval echo configure:9222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9222ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9223if test -z "$ac_err"; then
9224 :
247f5006 9225else
a0b9e27f
MB
9226 echo "$ac_err" >&5
9227 echo "configure: failed program was:" >&5
f09359cf 9228 cat conftest.$ac_ext >&5
a0b9e27f
MB
9229 rm -rf conftest*
9230 CPP="${CC-cc} -nologo -E"
9231 cat > conftest.$ac_ext <<EOF
1542ea39 9232#line 9233 "configure"
10f2d63a
VZ
9233#include "confdefs.h"
9234#include <assert.h>
a0b9e27f
MB
9235Syntax Error
9236EOF
9237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 9238{ (eval echo configure:9239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9240if test -z "$ac_err"; then
10f2d63a
VZ
9241 :
9242else
a0b9e27f
MB
9243 echo "$ac_err" >&5
9244 echo "configure: failed program was:" >&5
10f2d63a 9245 cat conftest.$ac_ext >&5
a0b9e27f
MB
9246 rm -rf conftest*
9247 CPP=/lib/cpp
579d8138 9248fi
a0b9e27f 9249rm -f conftest*
52127426 9250fi
a0b9e27f 9251rm -f conftest*
8284b0c5 9252fi
a0b9e27f
MB
9253rm -f conftest*
9254 ac_cv_prog_CPP="$CPP"
9255fi
9256 CPP="$ac_cv_prog_CPP"
10f2d63a 9257else
a0b9e27f 9258 ac_cv_prog_CPP="$CPP"
10f2d63a 9259fi
a0b9e27f 9260echo "$ac_t""$CPP" 1>&6
10f2d63a 9261
a0b9e27f
MB
9262if test $ac_cv_prog_gcc = yes; then
9263 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1542ea39 9264echo "configure:9265: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9265if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9267else
9268 ac_pattern="Autoconf.*'x'"
a0b9e27f 9269 cat > conftest.$ac_ext <<EOF
1542ea39 9270#line 9271 "configure"
10f2d63a
VZ
9271#include "confdefs.h"
9272#include <sgtty.h>
9273Autoconf TIOCGETP
a0b9e27f 9274EOF
10f2d63a
VZ
9275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9276 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9277 rm -rf conftest*
10f2d63a
VZ
9278 ac_cv_prog_gcc_traditional=yes
9279else
a0b9e27f 9280 rm -rf conftest*
10f2d63a
VZ
9281 ac_cv_prog_gcc_traditional=no
9282fi
9283rm -f conftest*
9284
8284b0c5 9285
10f2d63a 9286 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9287 cat > conftest.$ac_ext <<EOF
1542ea39 9288#line 9289 "configure"
10f2d63a
VZ
9289#include "confdefs.h"
9290#include <termio.h>
9291Autoconf TCGETA
a0b9e27f 9292EOF
10f2d63a
VZ
9293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9295 rm -rf conftest*
10f2d63a
VZ
9296 ac_cv_prog_gcc_traditional=yes
9297fi
9298rm -f conftest*
9299
9300 fi
9301fi
a0b9e27f
MB
9302
9303echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9304 if test $ac_cv_prog_gcc_traditional = yes; then
9305 CC="$CC -traditional"
9306 fi
9307fi
9308
8284b0c5
MB
9309
9310
a0b9e27f
MB
9311ac_ext=C
9312# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9313ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9314ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9317
698dcdb6 9318
ec603395 9319CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9320for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9321do
9322# Extract the first word of "$ac_prog", so it can be a program name with args.
9323set dummy $ac_prog; ac_word=$2
9324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9325echo "configure:9326: checking for $ac_word" >&5
a0b9e27f
MB
9326if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9328else
9329 if test -n "$CXX"; then
9330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9331else
a0b9e27f
MB
9332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9333 ac_dummy="$PATH"
9334 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/$ac_word; then
9337 ac_cv_prog_CXX="$ac_prog"
9338 break
9339 fi
9340 done
9341 IFS="$ac_save_ifs"
10f2d63a
VZ
9342fi
9343fi
a0b9e27f 9344CXX="$ac_cv_prog_CXX"
10f2d63a 9345if test -n "$CXX"; then
a0b9e27f 9346 echo "$ac_t""$CXX" 1>&6
10f2d63a 9347else
a0b9e27f 9348 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9349fi
9350
a0b9e27f 9351test -n "$CXX" && break
10f2d63a 9352done
a0b9e27f 9353test -n "$CXX" || CXX="gcc"
f09359cf 9354
a0b9e27f
MB
9355
9356echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1542ea39 9357echo "configure:9358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9358
9359ac_ext=C
9360# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9361ac_cpp='$CXXCPP $CPPFLAGS'
9362ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9363ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9364cross_compiling=$ac_cv_prog_cxx_cross
9365
9366cat > conftest.$ac_ext << EOF
9367
1542ea39 9368#line 9369 "configure"
a0b9e27f
MB
9369#include "confdefs.h"
9370
9371int main(){return(0);}
9372EOF
1542ea39 9373if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9374 ac_cv_prog_cxx_works=yes
9375 # If we can't run a trivial program, we are probably using a cross compiler.
9376 if (./conftest; exit) 2>/dev/null; then
9377 ac_cv_prog_cxx_cross=no
9378 else
9379 ac_cv_prog_cxx_cross=yes
9380 fi
8284b0c5 9381else
a0b9e27f
MB
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 ac_cv_prog_cxx_works=no
8284b0c5 9385fi
a0b9e27f
MB
9386rm -fr conftest*
9387ac_ext=C
9388# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9389ac_cpp='$CXXCPP $CPPFLAGS'
9390ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9391ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9392cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9393
a0b9e27f
MB
9394echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9395if test $ac_cv_prog_cxx_works = no; then
9396 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9397fi
9398echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1542ea39 9399echo "configure:9400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9400echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9401cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9402
a0b9e27f 9403echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1542ea39 9404echo "configure:9405: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9405if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407else
9408 cat > conftest.C <<EOF
9409#ifdef __GNUC__
9410 yes;
10f2d63a 9411#endif
a0b9e27f 9412EOF
1542ea39 9413if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9414 ac_cv_prog_gxx=yes
9415else
9416 ac_cv_prog_gxx=no
9417fi
9418fi
10f2d63a 9419
a0b9e27f 9420echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9421
a0b9e27f
MB
9422if test $ac_cv_prog_gxx = yes; then
9423 GXX=yes
9424else
9425 GXX=
9426fi
f09359cf 9427
a0b9e27f
MB
9428ac_test_CXXFLAGS="${CXXFLAGS+set}"
9429ac_save_CXXFLAGS="$CXXFLAGS"
9430CXXFLAGS=
9431echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1542ea39 9432echo "configure:9433: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9433if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435else
9436 echo 'void f(){}' > conftest.cc
9437if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9438 ac_cv_prog_cxx_g=yes
9439else
a0b9e27f 9440 ac_cv_prog_cxx_g=no
10f2d63a 9441fi
a0b9e27f
MB
9442rm -f conftest*
9443
10f2d63a 9444fi
a0b9e27f
MB
9445
9446echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9447if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9448 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9449elif test $ac_cv_prog_cxx_g = yes; then
9450 if test "$GXX" = yes; then
10f2d63a
VZ
9451 CXXFLAGS="-g -O2"
9452 else
f09359cf 9453 CXXFLAGS="-g"
10f2d63a 9454 fi
5c0a20c3 9455else
f09359cf
VS
9456 if test "$GXX" = yes; then
9457 CXXFLAGS="-O2"
9458 else
9459 CXXFLAGS=
9460 fi
10f2d63a
VZ
9461fi
9462
9463
10f2d63a 9464ac_ext=c
a0b9e27f 9465# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9466ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9467ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9468ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9469cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9470
9471
a0b9e27f
MB
9472# Extract the first word of "ranlib", so it can be a program name with args.
9473set dummy ranlib; ac_word=$2
9474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9475echo "configure:9476: checking for $ac_word" >&5
a0b9e27f
MB
9476if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9478else
9479 if test -n "$RANLIB"; then
9480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9481else
a0b9e27f
MB
9482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9483 ac_dummy="$PATH"
9484 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f $ac_dir/$ac_word; then
9487 ac_cv_prog_RANLIB="ranlib"
9488 break
9489 fi
9490 done
9491 IFS="$ac_save_ifs"
9492 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9493fi
9494fi
a0b9e27f 9495RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9496if test -n "$RANLIB"; then
a0b9e27f 9497 echo "$ac_t""$RANLIB" 1>&6
328a083c 9498else
a0b9e27f 9499 echo "$ac_t""no" 1>&6
328a083c
RR
9500fi
9501
10f2d63a
VZ
9502
9503# Extract the first word of "ar", so it can be a program name with args.
9504set dummy ar; ac_word=$2
a0b9e27f 9505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9506echo "configure:9507: checking for $ac_word" >&5
a0b9e27f
MB
9507if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9509else
9510 if test -n "$AR"; then
9511 ac_cv_prog_AR="$AR" # Let the user override the test.
9512else
a0b9e27f
MB
9513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9514 ac_dummy="$PATH"
9515 for ac_dir in $ac_dummy; do
9516 test -z "$ac_dir" && ac_dir=.
9517 if test -f $ac_dir/$ac_word; then
9518 ac_cv_prog_AR="ar"
9519 break
9520 fi
9521 done
9522 IFS="$ac_save_ifs"
10f2d63a
VZ
9523 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9524fi
9525fi
a0b9e27f 9526AR="$ac_cv_prog_AR"
10f2d63a 9527if test -n "$AR"; then
a0b9e27f 9528 echo "$ac_t""$AR" 1>&6
10f2d63a 9529else
a0b9e27f 9530 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9531fi
9532
8284b0c5 9533
6054113a 9534# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9535# so one script is as good as another. But avoid the broken or
9536# incompatible versions:
9537# SysV /etc/install, /usr/sbin/install
9538# SunOS /usr/etc/install
9539# IRIX /sbin/install
9540# AIX /bin/install
f09359cf 9541# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9542# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9543# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9544# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9545echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1542ea39 9546echo "configure:9547: checking for a BSD compatible install" >&5
10f2d63a 9547if test -z "$INSTALL"; then
a0b9e27f
MB
9548if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9550else
9551 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9552 for ac_dir in $PATH; do
9553 # Account for people who put trailing slashes in PATH elements.
9554 case "$ac_dir/" in
9555 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9556 *)
9557 # OSF1 and SCO ODT 3.0 have their own names for install.
9558 # Don't use installbsd from OSF since it installs stuff as root
9559 # by default.
9560 for ac_prog in ginstall scoinst install; do
9561 if test -f $ac_dir/$ac_prog; then
9562 if test $ac_prog = install &&
9563 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9564 # AIX install. It has an incompatible calling convention.
9565 :
9566 else
9567 ac_cv_path_install="$ac_dir/$ac_prog -c"
9568 break 2
9569 fi
9570 fi
10f2d63a 9571 done
a0b9e27f
MB
9572 ;;
9573 esac
9574 done
9575 IFS="$ac_save_IFS"
10f2d63a
VZ
9576
9577fi
9578 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9579 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9580 else
9581 # As a last resort, use the slow shell script. We don't cache a
9582 # path for INSTALL within a source directory, because that will
9583 # break other packages using the cache if that directory is
9584 # removed, or if the path is relative.
a0b9e27f 9585 INSTALL="$ac_install_sh"
10f2d63a
VZ
9586 fi
9587fi
a0b9e27f 9588echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9589
9590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9591# It thinks the first close brace ends the variable substitution.
9592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9593
a0b9e27f 9594test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9595
10f2d63a
VZ
9596test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9597
8284b0c5 9598
1d1b75ac
VZ
9599case ${INSTALL} in
9600 /* ) # Absolute
9601 ;;
4f5a7f74
VZ
9602 ?:* ) # Drive letter, considered as absolute.
9603 ;;
3bd8fb5f 9604 *)
1d1b75ac
VZ
9605 INSTALL=`pwd`/${INSTALL} ;;
9606esac
9607
4f5a7f74
VZ
9608case ${host} in
9609 *-hp-hpux* )
9610 INSTALL_DIR="mkdir"
9611 ;;
9612
9613 *) INSTALL_DIR="$INSTALL -d"
9614 ;;
9615esac
9616
8284b0c5 9617
6054113a
GD
9618case "${host}" in
9619
b5853384 9620 powerpc-*-darwin* )
eb99ae0b
GD
9621 INSTALL_PROGRAM="cp -fp"
9622 INSTALL_DATA="cp -fp"
6054113a
GD
9623 ;;
9624 *)
9625 ;;
d6853540 9626esac
698dcdb6 9627
10f2d63a
VZ
9628# Extract the first word of "strip", so it can be a program name with args.
9629set dummy strip; ac_word=$2
a0b9e27f 9630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9631echo "configure:9632: checking for $ac_word" >&5
a0b9e27f
MB
9632if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9634else
9635 if test -n "$STRIP"; then
9636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9637else
a0b9e27f
MB
9638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9639 ac_dummy="$PATH"
9640 for ac_dir in $ac_dummy; do
9641 test -z "$ac_dir" && ac_dir=.
9642 if test -f $ac_dir/$ac_word; then
9643 ac_cv_prog_STRIP="strip"
9644 break
9645 fi
9646 done
9647 IFS="$ac_save_ifs"
10f2d63a
VZ
9648 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9649fi
9650fi
a0b9e27f 9651STRIP="$ac_cv_prog_STRIP"
10f2d63a 9652if test -n "$STRIP"; then
a0b9e27f 9653 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9654else
a0b9e27f 9655 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9656fi
9657
5c6fa7d2 9658
a0b9e27f 9659echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
1542ea39 9660echo "configure:9661: checking if make is GNU make" >&5
a0b9e27f
MB
9661if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9663else
a0b9e27f 9664
414eab6d 9665 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9666 egrep -s GNU > /dev/null); then
414eab6d
VZ
9667 wx_cv_prog_makeisgnu="yes"
9668 else
9669 wx_cv_prog_makeisgnu="no"
9670 fi
9671
9672fi
a0b9e27f
MB
9673
9674echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9675
9676if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9677 IF_GNU_MAKE=""
9678else
9679 IF_GNU_MAKE="#"
9680fi
9681
8284b0c5
MB
9682
9683
414eab6d 9684if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9685echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
1542ea39 9686echo "configure:9687: checking if make supports VPATH" >&5
a0b9e27f
MB
9687if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9689else
a0b9e27f 9690
10f2d63a
VZ
9691cat - << EOF > confMake
9692check : file
9693 cp \$? \$@
9694 cp \$? final_file
9695EOF
9696
9697if test ! -d sub ; then
9698 mkdir sub
9699fi
9700echo dummy > sub/file
f6bcfd97 9701${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9702RESULT=$?
9703rm -f sub/file check final_file confMake
9704rmdir sub
9705if test "$RESULT" = 0; then
04e7a216 9706 wx_cv_prog_makevpath="yes"
10f2d63a 9707else
04e7a216
VZ
9708 wx_cv_prog_makevpath="no"
9709fi
9710
9711fi
a0b9e27f
MB
9712
9713echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9714
9715if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9716{ echo "configure: error:
5c6fa7d2
RR
9717You need a make-utility that is able to use the variable
9718VPATH correctly.
9719If your version of make does not support VPATH correctly,
9720please install GNU-make (possibly as gmake), and start
9721configure with the following command:
9722export MAKE=gmake; ./configure for sh-type shells
9723setenv MAKE gmake; ./configure for csh-type shells
9724Also please do remember to use gmake in this case every time
9725you are trying to compile.
a0b9e27f
MB
9726" 1>&2; exit 1; }
9727fi fi
10f2d63a
VZ
9728for ac_prog in 'bison -y' byacc
9729do
a0b9e27f 9730# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9731set dummy $ac_prog; ac_word=$2
a0b9e27f 9732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9733echo "configure:9734: checking for $ac_word" >&5
a0b9e27f
MB
9734if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9736else
9737 if test -n "$YACC"; then
9738 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9739else
a0b9e27f
MB
9740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9741 ac_dummy="$PATH"
9742 for ac_dir in $ac_dummy; do
9743 test -z "$ac_dir" && ac_dir=.
9744 if test -f $ac_dir/$ac_word; then
9745 ac_cv_prog_YACC="$ac_prog"
9746 break
9747 fi
9748 done
9749 IFS="$ac_save_ifs"
10f2d63a
VZ
9750fi
9751fi
a0b9e27f 9752YACC="$ac_cv_prog_YACC"
10f2d63a 9753if test -n "$YACC"; then
a0b9e27f 9754 echo "$ac_t""$YACC" 1>&6
10f2d63a 9755else
a0b9e27f 9756 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9757fi
9758
a0b9e27f 9759test -n "$YACC" && break
10f2d63a
VZ
9760done
9761test -n "$YACC" || YACC="yacc"
9762
8284b0c5 9763
a0b9e27f
MB
9764# Extract the first word of "flex", so it can be a program name with args.
9765set dummy flex; ac_word=$2
9766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 9767echo "configure:9768: checking for $ac_word" >&5
a0b9e27f
MB
9768if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9770else
9771 if test -n "$LEX"; then
9772 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9773else
a0b9e27f
MB
9774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9775 ac_dummy="$PATH"
9776 for ac_dir in $ac_dummy; do
9777 test -z "$ac_dir" && ac_dir=.
9778 if test -f $ac_dir/$ac_word; then
9779 ac_cv_prog_LEX="flex"
9780 break
9781 fi
9782 done
9783 IFS="$ac_save_ifs"
9784 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9785fi
9786fi
a0b9e27f 9787LEX="$ac_cv_prog_LEX"
10f2d63a 9788if test -n "$LEX"; then
a0b9e27f 9789 echo "$ac_t""$LEX" 1>&6
10f2d63a 9790else
a0b9e27f 9791 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9792fi
9793
9794if test -z "$LEXLIB"
9795then
a0b9e27f
MB
9796 case "$LEX" in
9797 flex*) ac_lib=fl ;;
9798 *) ac_lib=l ;;
9799 esac
9800 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1542ea39 9801echo "configure:9802: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9802ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805else
9806 ac_save_LIBS="$LIBS"
9807LIBS="-l$ac_lib $LIBS"
9808cat > conftest.$ac_ext <<EOF
1542ea39 9809#line 9810 "configure"
247f5006 9810#include "confdefs.h"
247f5006 9811/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9812/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9813 builtin and then its argument prototype would still apply. */
9814char yywrap();
10f2d63a 9815
a0b9e27f
MB
9816int main() {
9817yywrap()
9818; return 0; }
9819EOF
1542ea39 9820if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9821 rm -rf conftest*
9822 eval "ac_cv_lib_$ac_lib_var=yes"
9823else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9828fi
a0b9e27f
MB
9829rm -f conftest*
9830LIBS="$ac_save_LIBS"
8284b0c5 9831
10f2d63a 9832fi
a0b9e27f
MB
9833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
9835 LEXLIB="-l$ac_lib"
8284b0c5 9836else
a0b9e27f 9837 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9838fi
9839
a0b9e27f 9840fi
10f2d63a
VZ
9841
9842
a0b9e27f 9843echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1542ea39 9844echo "configure:9845: checking whether ln -s works" >&5
a0b9e27f
MB
9845if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9847else
a0b9e27f
MB
9848 rm -f conftestdata
9849if ln -s X conftestdata 2>/dev/null
9850then
9851 rm -f conftestdata
9852 ac_cv_prog_LN_S="ln -s"
10f2d63a 9853else
a0b9e27f 9854 ac_cv_prog_LN_S=ln
10f2d63a 9855fi
a0b9e27f
MB
9856fi
9857LN_S="$ac_cv_prog_LN_S"
9858if test "$ac_cv_prog_LN_S" = "ln -s"; then
9859 echo "$ac_t""yes" 1>&6
10f2d63a 9860else
a0b9e27f 9861 echo "$ac_t""no" 1>&6
5c6fa7d2 9862fi
5c6fa7d2 9863
247f5006 9864
2b5f62a0
VZ
9865case "${host}" in
9866 *-pc-os2_emx | *-pc-os2-emx )
9867 LIBS="$LIBS -lstdcpp"
9868 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9869 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
1542ea39 9870echo "configure:9871: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9871ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9872if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874else
9875 ac_save_LIBS="$LIBS"
9876LIBS="-lcExt $LIBS"
9877cat > conftest.$ac_ext <<EOF
1542ea39 9878#line 9879 "configure"
2b5f62a0
VZ
9879#include "confdefs.h"
9880/* Override any gcc2 internal prototype to avoid an error. */
9881/* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9883char drand48();
9884
9885int main() {
9886drand48()
9887; return 0; }
9888EOF
1542ea39 9889if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9890 rm -rf conftest*
9891 eval "ac_cv_lib_$ac_lib_var=yes"
9892else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 eval "ac_cv_lib_$ac_lib_var=no"
9897fi
9898rm -f conftest*
9899LIBS="$ac_save_LIBS"
9900
9901fi
9902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9904 LIBS="$LIBS -lcExt"
9905else
9906 echo "$ac_t""no" 1>&6
9907fi
9908
9909 else
9910 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9911 fi
9912 ;;
9913esac
9914
a0b9e27f 9915
ac0c4cc3 9916if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9917 for ac_hdr in strings.h
9918do
9919ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9920echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 9921echo "configure:9922: checking for $ac_hdr" >&5
a0b9e27f
MB
9922if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924else
9925 cat > conftest.$ac_ext <<EOF
1542ea39 9926#line 9927 "configure"
a0b9e27f
MB
9927#include "confdefs.h"
9928#include <$ac_hdr>
9929EOF
9930ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 9931{ (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9932ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9933if test -z "$ac_err"; then
9934 rm -rf conftest*
9935 eval "ac_cv_header_$ac_safe=yes"
9936else
9937 echo "$ac_err" >&5
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 eval "ac_cv_header_$ac_safe=no"
21d1c967 9942fi
247f5006 9943rm -f conftest*
19bc6aad 9944fi
a0b9e27f
MB
9945if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9946 echo "$ac_t""yes" 1>&6
9947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9948 cat >> confdefs.h <<EOF
9949#define $ac_tr_hdr 1
9950EOF
9951
247f5006 9952else
a0b9e27f 9953 echo "$ac_t""no" 1>&6
18dbb1f6 9954fi
a0b9e27f 9955done
247f5006 9956
90dd450c 9957fi
90dd450c 9958
a0b9e27f
MB
9959for ac_hdr in stdlib.h
9960do
9961ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9962echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 9963echo "configure:9964: checking for $ac_hdr" >&5
a0b9e27f
MB
9964if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966else
9967 cat > conftest.$ac_ext <<EOF
1542ea39 9968#line 9969 "configure"
90dd450c 9969#include "confdefs.h"
a0b9e27f
MB
9970#include <$ac_hdr>
9971EOF
9972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 9973{ (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9975if test -z "$ac_err"; then
9976 rm -rf conftest*
9977 eval "ac_cv_header_$ac_safe=yes"
9978else
9979 echo "$ac_err" >&5
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -rf conftest*
9983 eval "ac_cv_header_$ac_safe=no"
9984fi
9985rm -f conftest*
9986fi
9987if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9990 cat >> confdefs.h <<EOF
9991#define $ac_tr_hdr 1
9992EOF
9993
8284b0c5 9994else
a0b9e27f 9995 echo "$ac_t""no" 1>&6
21d1c967 9996fi
a0b9e27f
MB
9997done
9998
9999for ac_hdr in malloc.h
10000do
10001ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10002echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10003echo "configure:10004: checking for $ac_hdr" >&5
a0b9e27f
MB
10004if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006else
10007 cat > conftest.$ac_ext <<EOF
1542ea39 10008#line 10009 "configure"
a0b9e27f
MB
10009#include "confdefs.h"
10010#include <$ac_hdr>
10011EOF
10012ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10013{ (eval echo configure:10014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10014ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10015if test -z "$ac_err"; then
10016 rm -rf conftest*
10017 eval "ac_cv_header_$ac_safe=yes"
10018else
10019 echo "$ac_err" >&5
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -rf conftest*
10023 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10024fi
a0b9e27f 10025rm -f conftest*
90dd450c 10026fi
a0b9e27f
MB
10027if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10028 echo "$ac_t""yes" 1>&6
10029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10030 cat >> confdefs.h <<EOF
10031#define $ac_tr_hdr 1
10032EOF
10033
10034else
10035 echo "$ac_t""no" 1>&6
21d1c967 10036fi
a0b9e27f 10037done
247f5006 10038
a0b9e27f
MB
10039for ac_hdr in unistd.h
10040do
10041ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10042echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10043echo "configure:10044: checking for $ac_hdr" >&5
a0b9e27f
MB
10044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046else
10047 cat > conftest.$ac_ext <<EOF
1542ea39 10048#line 10049 "configure"
a0b9e27f
MB
10049#include "confdefs.h"
10050#include <$ac_hdr>
10051EOF
10052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10053{ (eval echo configure:10054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10055if test -z "$ac_err"; then
10056 rm -rf conftest*
10057 eval "ac_cv_header_$ac_safe=yes"
10058else
10059 echo "$ac_err" >&5
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 eval "ac_cv_header_$ac_safe=no"
247f5006 10064fi
a0b9e27f
MB
10065rm -f conftest*
10066fi
10067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10070 cat >> confdefs.h <<EOF
10071#define $ac_tr_hdr 1
10072EOF
10073
10074else
10075 echo "$ac_t""no" 1>&6
10076fi
10077done
90dd450c 10078
a0b9e27f 10079for ac_hdr in wchar.h
21d1c967 10080do
a0b9e27f
MB
10081ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10082echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10083echo "configure:10084: checking for $ac_hdr" >&5
a0b9e27f
MB
10084if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10086else
10087 cat > conftest.$ac_ext <<EOF
1542ea39 10088#line 10089 "configure"
4f14bcd8 10089#include "confdefs.h"
a0b9e27f
MB
10090#include <$ac_hdr>
10091EOF
10092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10093{ (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10095if test -z "$ac_err"; then
10096 rm -rf conftest*
10097 eval "ac_cv_header_$ac_safe=yes"
10098else
10099 echo "$ac_err" >&5
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 eval "ac_cv_header_$ac_safe=no"
10104fi
10105rm -f conftest*
10106fi
10107if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10108 echo "$ac_t""yes" 1>&6
10109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10110 cat >> confdefs.h <<EOF
10111#define $ac_tr_hdr 1
10112EOF
10113
10114else
10115 echo "$ac_t""no" 1>&6
21d1c967
GD
10116fi
10117done
4f14bcd8 10118
5c6fa7d2 10119
a0b9e27f
MB
10120if test "$ac_cv_header_wchar_h" != "yes"; then
10121 for ac_hdr in wcstr.h
21d1c967 10122do
a0b9e27f
MB
10123ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10124echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10125echo "configure:10126: checking for $ac_hdr" >&5
a0b9e27f
MB
10126if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129 cat > conftest.$ac_ext <<EOF
1542ea39 10130#line 10131 "configure"
d4158b5d 10131#include "confdefs.h"
a0b9e27f
MB
10132#include <$ac_hdr>
10133EOF
10134ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10135{ (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10136ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10137if test -z "$ac_err"; then
10138 rm -rf conftest*
10139 eval "ac_cv_header_$ac_safe=yes"
10140else
10141 echo "$ac_err" >&5
10142 echo "configure: failed program was:" >&5
d4158b5d 10143 cat conftest.$ac_ext >&5
a0b9e27f
MB
10144 rm -rf conftest*
10145 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10146fi
a0b9e27f 10147rm -f conftest*
21d1c967 10148fi
a0b9e27f
MB
10149if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10152 cat >> confdefs.h <<EOF
10153#define $ac_tr_hdr 1
10154EOF
10155
10156else
10157 echo "$ac_t""no" 1>&6
d4158b5d 10158fi
21d1c967 10159done
f6bcfd97 10160
90dd450c 10161fi
90dd450c 10162
a0b9e27f 10163for ac_hdr in fnmatch.h
21d1c967 10164do
a0b9e27f
MB
10165ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10166echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10167echo "configure:10168: checking for $ac_hdr" >&5
a0b9e27f
MB
10168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170else
10171 cat > conftest.$ac_ext <<EOF
1542ea39 10172#line 10173 "configure"
90dd450c 10173#include "confdefs.h"
a0b9e27f
MB
10174#include <$ac_hdr>
10175EOF
10176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10177{ (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179if test -z "$ac_err"; then
10180 rm -rf conftest*
10181 eval "ac_cv_header_$ac_safe=yes"
10182else
10183 echo "$ac_err" >&5
10184 echo "configure: failed program was:" >&5
3a922bb4 10185 cat conftest.$ac_ext >&5
a0b9e27f
MB
10186 rm -rf conftest*
10187 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10188fi
a0b9e27f 10189rm -f conftest*
4f14bcd8 10190fi
a0b9e27f
MB
10191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10194 cat >> confdefs.h <<EOF
10195#define $ac_tr_hdr 1
10196EOF
10197
10198else
10199 echo "$ac_t""no" 1>&6
21d1c967
GD
10200fi
10201done
90dd450c 10202
5c6fa7d2 10203
a0b9e27f
MB
10204if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10205 for ac_func in fnmatch
21d1c967 10206do
a0b9e27f 10207echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 10208echo "configure:10209: checking for $ac_func" >&5
a0b9e27f
MB
10209if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10211else
a0b9e27f 10212 cat > conftest.$ac_ext <<EOF
1542ea39 10213#line 10214 "configure"
a0b9e27f
MB
10214#include "confdefs.h"
10215/* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func(); below. */
10217#include <assert.h>
10218/* Override any gcc2 internal prototype to avoid an error. */
10219/* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221char $ac_func();
10222
10223int main() {
10224
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10229choke me
10230#else
10231$ac_func();
10232#endif
10233
10234; return 0; }
10235EOF
1542ea39 10236if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10237 rm -rf conftest*
10238 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10239else
a0b9e27f 10240 echo "configure: failed program was:" >&5
8284b0c5 10241 cat conftest.$ac_ext >&5
a0b9e27f
MB
10242 rm -rf conftest*
10243 eval "ac_cv_func_$ac_func=no"
8284b0c5 10244fi
a0b9e27f 10245rm -f conftest*
8284b0c5 10246fi
32832908 10247
a0b9e27f
MB
10248if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6
10250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10251 cat >> confdefs.h <<EOF
10252#define $ac_tr_func 1
10253EOF
10254
10255else
10256 echo "$ac_t""no" 1>&6
21d1c967
GD
10257fi
10258done
90dd450c 10259
a0b9e27f 10260fi
90dd450c 10261
a0b9e27f 10262for ac_hdr in langinfo.h
21d1c967 10263do
a0b9e27f
MB
10264ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10265echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10266echo "configure:10267: checking for $ac_hdr" >&5
a0b9e27f
MB
10267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269else
10270 cat > conftest.$ac_ext <<EOF
1542ea39 10271#line 10272 "configure"
247f5006 10272#include "confdefs.h"
a0b9e27f
MB
10273#include <$ac_hdr>
10274EOF
10275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10276{ (eval echo configure:10277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10278if test -z "$ac_err"; then
10279 rm -rf conftest*
10280 eval "ac_cv_header_$ac_safe=yes"
10281else
10282 echo "$ac_err" >&5
10283 echo "configure: failed program was:" >&5
90dd450c 10284 cat conftest.$ac_ext >&5
a0b9e27f
MB
10285 rm -rf conftest*
10286 eval "ac_cv_header_$ac_safe=no"
90dd450c 10287fi
a0b9e27f 10288rm -f conftest*
4f14bcd8 10289fi
a0b9e27f
MB
10290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10293 cat >> confdefs.h <<EOF
10294#define $ac_tr_hdr 1
10295EOF
10296
10297else
10298 echo "$ac_t""no" 1>&6
21d1c967
GD
10299fi
10300done
3a922bb4 10301
8284b0c5 10302
4f5a7f74
VZ
10303case "${host}" in
10304 *-pc-os2_emx | *-pc-os2-emx )
10305 if test $ac_cv_header_langinfo_h = "yes"; then
10306 LIBS="$LIBS -lintl"
10307 fi
10308 ;;
10309esac
1542ea39 10310
a0b9e27f
MB
10311if test "$wxUSE_GUI" = "yes"; then
10312 if test "$wxUSE_UNIX" = "yes"; then
10313 for ac_hdr in X11/XKBlib.h
21d1c967 10314do
a0b9e27f
MB
10315ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10316echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 10317echo "configure:10318: checking for $ac_hdr" >&5
a0b9e27f
MB
10318if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10320else
10321 cat > conftest.$ac_ext <<EOF
1542ea39 10322#line 10323 "configure"
90dd450c 10323#include "confdefs.h"
a0b9e27f
MB
10324#include <$ac_hdr>
10325EOF
10326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 10327{ (eval echo configure:10328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10328ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10329if test -z "$ac_err"; then
10330 rm -rf conftest*
10331 eval "ac_cv_header_$ac_safe=yes"
10332else
10333 echo "$ac_err" >&5
10334 echo "configure: failed program was:" >&5
90dd450c 10335 cat conftest.$ac_ext >&5
a0b9e27f
MB
10336 rm -rf conftest*
10337 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10338fi
a0b9e27f 10339rm -f conftest*
90dd450c 10340fi
a0b9e27f
MB
10341if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10344 cat >> confdefs.h <<EOF
10345#define $ac_tr_hdr 1
10346EOF
10347
10348else
10349 echo "$ac_t""no" 1>&6
247f5006 10350fi
247f5006
VZ
10351done
10352
a0b9e27f
MB
10353 fi
10354fi
247f5006 10355
247f5006 10356
a0b9e27f 10357echo $ac_n "checking for working const""... $ac_c" 1>&6
1542ea39 10358echo "configure:10359: checking for working const" >&5
a0b9e27f
MB
10359if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10361else
a0b9e27f 10362 cat > conftest.$ac_ext <<EOF
1542ea39 10363#line 10364 "configure"
a0b9e27f
MB
10364#include "confdefs.h"
10365
10366int main() {
10367
10368/* Ultrix mips cc rejects this. */
10369typedef int charset[2]; const charset x;
10370/* SunOS 4.1.1 cc rejects this. */
10371char const *const *ccp;
10372char **p;
10373/* NEC SVR4.0.2 mips cc rejects this. */
10374struct point {int x, y;};
10375static struct point const zero = {0,0};
10376/* AIX XL C 1.02.0.0 rejects this.
10377 It does not let you subtract one const X* pointer from another in an arm
10378 of an if-expression whose if-part is not a constant expression */
10379const char *g = "string";
10380ccp = &g + (g ? g-g : 0);
10381/* HPUX 7.0 cc rejects these. */
10382++ccp;
10383p = (char**) ccp;
10384ccp = (char const *const *) p;
10385{ /* SCO 3.2v4 cc rejects this. */
10386 char *t;
10387 char const *s = 0 ? (char *) 0 : (char const *) 0;
10388
10389 *t++ = 0;
10390}
10391{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10392 int x[] = {25, 17};
10393 const int *foo = &x[0];
10394 ++foo;
10395}
10396{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10397 typedef const int *iptr;
10398 iptr p = 0;
10399 ++p;
10400}
10401{ /* AIX XL C 1.02.0.0 rejects this saying
10402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10403 struct s { int j; const int *ap[3]; };
10404 struct s *b; b->j = 5;
10405}
10406{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10407 const int foo = 10;
10408}
10409
10410; return 0; }
10411EOF
1542ea39 10412if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10413 rm -rf conftest*
10414 ac_cv_c_const=yes
247f5006 10415else
a0b9e27f 10416 echo "configure: failed program was:" >&5
247f5006 10417 cat conftest.$ac_ext >&5
a0b9e27f
MB
10418 rm -rf conftest*
10419 ac_cv_c_const=no
247f5006 10420fi
a0b9e27f 10421rm -f conftest*
21d1c967 10422fi
247f5006 10423
a0b9e27f
MB
10424echo "$ac_t""$ac_cv_c_const" 1>&6
10425if test $ac_cv_c_const = no; then
10426 cat >> confdefs.h <<\EOF
10427#define const
10428EOF
10f2d63a 10429
90dd450c 10430fi
81809c07 10431
a0b9e27f 10432echo $ac_n "checking for inline""... $ac_c" 1>&6
1542ea39 10433echo "configure:10434: checking for inline" >&5
a0b9e27f
MB
10434if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10436else
a0b9e27f
MB
10437 ac_cv_c_inline=no
10438for ac_kw in inline __inline__ __inline; do
10439 cat > conftest.$ac_ext <<EOF
1542ea39 10440#line 10441 "configure"
a0b9e27f
MB
10441#include "confdefs.h"
10442
10443int main() {
10444} $ac_kw foo() {
10445; return 0; }
10446EOF
1542ea39 10447if { (eval echo configure:10448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10448 rm -rf conftest*
10449 ac_cv_c_inline=$ac_kw; break
247f5006 10450else
a0b9e27f 10451 echo "configure: failed program was:" >&5
247f5006 10452 cat conftest.$ac_ext >&5
247f5006 10453fi
a0b9e27f
MB
10454rm -f conftest*
10455done
247f5006
VZ
10456
10457fi
10458
a0b9e27f
MB
10459echo "$ac_t""$ac_cv_c_inline" 1>&6
10460case "$ac_cv_c_inline" in
10461 inline | yes) ;;
10462 no) cat >> confdefs.h <<\EOF
10463#define inline
10464EOF
10465 ;;
10466 *) cat >> confdefs.h <<EOF
10467#define inline $ac_cv_c_inline
10468EOF
10469 ;;
10470esac
247f5006 10471
247f5006 10472
a0b9e27f 10473echo $ac_n "checking size of char""... $ac_c" 1>&6
1542ea39 10474echo "configure:10475: checking size of char" >&5
a0b9e27f
MB
10475if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10477else
10478 if test "$cross_compiling" = yes; then
10479 ac_cv_sizeof_char=1
10480else
10481 cat > conftest.$ac_ext <<EOF
1542ea39 10482#line 10483 "configure"
4f14bcd8 10483#include "confdefs.h"
a0b9e27f 10484#include <stdio.h>
a0b9e27f 10485main()
247f5006 10486{
a0b9e27f
MB
10487 FILE *f=fopen("conftestval", "w");
10488 if (!f) exit(1);
10489 fprintf(f, "%d\n", sizeof(char));
10490 exit(0);
52127426 10491}
a0b9e27f 10492EOF
1542ea39 10493if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10494then
10495 ac_cv_sizeof_char=`cat conftestval`
247f5006 10496else
a0b9e27f 10497 echo "configure: failed program was:" >&5
247f5006 10498 cat conftest.$ac_ext >&5
a0b9e27f
MB
10499 rm -fr conftest*
10500 ac_cv_sizeof_char=0
247f5006 10501fi
a0b9e27f 10502rm -fr conftest*
247f5006 10503fi
247f5006
VZ
10504
10505fi
a0b9e27f
MB
10506echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10507cat >> confdefs.h <<EOF
10508#define SIZEOF_CHAR $ac_cv_sizeof_char
10509EOF
247f5006 10510
247f5006 10511
a0b9e27f 10512echo $ac_n "checking size of short""... $ac_c" 1>&6
1542ea39 10513echo "configure:10514: checking size of short" >&5
a0b9e27f
MB
10514if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10516else
a0b9e27f
MB
10517 if test "$cross_compiling" = yes; then
10518 ac_cv_sizeof_short=2
247f5006 10519else
a0b9e27f 10520 cat > conftest.$ac_ext <<EOF
1542ea39 10521#line 10522 "configure"
a0b9e27f
MB
10522#include "confdefs.h"
10523#include <stdio.h>
a0b9e27f
MB
10524main()
10525{
10526 FILE *f=fopen("conftestval", "w");
10527 if (!f) exit(1);
10528 fprintf(f, "%d\n", sizeof(short));
10529 exit(0);
10530}
10531EOF
1542ea39 10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10533then
10534 ac_cv_sizeof_short=`cat conftestval`
247f5006 10535else
a0b9e27f
MB
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 ac_cv_sizeof_short=0
247f5006 10540fi
a0b9e27f 10541rm -fr conftest*
247f5006
VZ
10542fi
10543
247f5006 10544fi
a0b9e27f
MB
10545echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10546cat >> confdefs.h <<EOF
10547#define SIZEOF_SHORT $ac_cv_sizeof_short
10548EOF
247f5006
VZ
10549
10550
a0b9e27f 10551echo $ac_n "checking size of void *""... $ac_c" 1>&6
1542ea39 10552echo "configure:10553: checking size of void *" >&5
a0b9e27f
MB
10553if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555else
10556 if test "$cross_compiling" = yes; then
10557 ac_cv_sizeof_void_p=4
247f5006 10558else
a0b9e27f 10559 cat > conftest.$ac_ext <<EOF
1542ea39 10560#line 10561 "configure"
247f5006 10561#include "confdefs.h"
247f5006 10562#include <stdio.h>
a0b9e27f 10563main()
247f5006 10564{
a0b9e27f
MB
10565 FILE *f=fopen("conftestval", "w");
10566 if (!f) exit(1);
10567 fprintf(f, "%d\n", sizeof(void *));
10568 exit(0);
5c6fa7d2 10569}
a0b9e27f 10570EOF
1542ea39 10571if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10572then
10573 ac_cv_sizeof_void_p=`cat conftestval`
10574else
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 rm -fr conftest*
10578 ac_cv_sizeof_void_p=0
10579fi
10580rm -fr conftest*
10581fi
8284b0c5 10582
247f5006 10583fi
a0b9e27f
MB
10584echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10585cat >> confdefs.h <<EOF
10586#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10587EOF
247f5006 10588
247f5006 10589
a0b9e27f 10590echo $ac_n "checking size of int""... $ac_c" 1>&6
1542ea39 10591echo "configure:10592: checking size of int" >&5
a0b9e27f
MB
10592if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10593 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10594else
a0b9e27f
MB
10595 if test "$cross_compiling" = yes; then
10596 ac_cv_sizeof_int=4
10597else
10598 cat > conftest.$ac_ext <<EOF
1542ea39 10599#line 10600 "configure"
247f5006 10600#include "confdefs.h"
a0b9e27f 10601#include <stdio.h>
a0b9e27f 10602main()
247f5006 10603{
a0b9e27f
MB
10604 FILE *f=fopen("conftestval", "w");
10605 if (!f) exit(1);
10606 fprintf(f, "%d\n", sizeof(int));
10607 exit(0);
247f5006 10608}
a0b9e27f 10609EOF
1542ea39 10610if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10611then
10612 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10613else
a0b9e27f
MB
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -fr conftest*
10617 ac_cv_sizeof_int=0
21d1c967 10618fi
a0b9e27f 10619rm -fr conftest*
698dcdb6 10620fi
4f14bcd8 10621
21d1c967 10622fi
a0b9e27f
MB
10623echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10624cat >> confdefs.h <<EOF
10625#define SIZEOF_INT $ac_cv_sizeof_int
10626EOF
4f14bcd8 10627
5c6fa7d2 10628
a0b9e27f 10629echo $ac_n "checking size of long""... $ac_c" 1>&6
1542ea39 10630echo "configure:10631: checking size of long" >&5
a0b9e27f
MB
10631if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10633else
247f5006 10634 if test "$cross_compiling" = yes; then
a0b9e27f 10635 ac_cv_sizeof_long=4
247f5006 10636else
a0b9e27f 10637 cat > conftest.$ac_ext <<EOF
1542ea39 10638#line 10639 "configure"
247f5006 10639#include "confdefs.h"
a0b9e27f 10640#include <stdio.h>
a0b9e27f 10641main()
247f5006 10642{
a0b9e27f
MB
10643 FILE *f=fopen("conftestval", "w");
10644 if (!f) exit(1);
10645 fprintf(f, "%d\n", sizeof(long));
10646 exit(0);
247f5006 10647}
a0b9e27f 10648EOF
1542ea39 10649if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10650then
10651 ac_cv_sizeof_long=`cat conftestval`
247f5006 10652else
a0b9e27f
MB
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -fr conftest*
10656 ac_cv_sizeof_long=0
247f5006 10657fi
a0b9e27f 10658rm -fr conftest*
247f5006 10659fi
247f5006 10660
5c6fa7d2 10661fi
a0b9e27f
MB
10662echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10663cat >> confdefs.h <<EOF
10664#define SIZEOF_LONG $ac_cv_sizeof_long
10665EOF
247f5006 10666
a0b9e27f
MB
10667
10668
10669case "${host}" in
10670 arm-*-linux* )
10671 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1542ea39 10672echo "configure:10673: checking size of long long" >&5
a0b9e27f
MB
10673if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10675else
10676 if test "$cross_compiling" = yes; then
10677 ac_cv_sizeof_long_long=8
10678else
10679 cat > conftest.$ac_ext <<EOF
1542ea39 10680#line 10681 "configure"
247f5006 10681#include "confdefs.h"
a0b9e27f 10682#include <stdio.h>
a0b9e27f 10683main()
247f5006 10684{
a0b9e27f
MB
10685 FILE *f=fopen("conftestval", "w");
10686 if (!f) exit(1);
10687 fprintf(f, "%d\n", sizeof(long long));
10688 exit(0);
247f5006 10689}
a0b9e27f 10690EOF
1542ea39 10691if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10692then
10693 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10694else
a0b9e27f
MB
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -fr conftest*
10698 ac_cv_sizeof_long_long=0
5c6fa7d2 10699fi
a0b9e27f 10700rm -fr conftest*
5c6fa7d2 10701fi
8284b0c5 10702
a0b9e27f
MB
10703fi
10704echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10705cat >> confdefs.h <<EOF
10706#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10707EOF
10708
10709
10710 ;;
4f57cf11 10711 *-hp-hpux* )
a0b9e27f 10712 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1542ea39 10713echo "configure:10714: checking size of long long" >&5
a0b9e27f
MB
10714if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10716else
10717 if test "$cross_compiling" = yes; then
a0b9e27f 10718 ac_cv_sizeof_long_long=0
8284b0c5 10719else
a0b9e27f 10720 cat > conftest.$ac_ext <<EOF
1542ea39 10721#line 10722 "configure"
8284b0c5
MB
10722#include "confdefs.h"
10723#include <stdio.h>
a0b9e27f 10724main()
8284b0c5 10725{
a0b9e27f
MB
10726 FILE *f=fopen("conftestval", "w");
10727 if (!f) exit(1);
10728 fprintf(f, "%d\n", sizeof(long long));
10729 exit(0);
8284b0c5 10730}
a0b9e27f 10731EOF
1542ea39 10732if { (eval echo configure:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10733then
10734 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10735else
a0b9e27f
MB
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10738 rm -fr conftest*
5c6fa7d2 10739 ac_cv_sizeof_long_long=0
52127426 10740fi
a0b9e27f
MB
10741rm -fr conftest*
10742fi
10743
4f57cf11
GD
10744fi
10745echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10746cat >> confdefs.h <<EOF
10747#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10748EOF
10749
10750
10751 if test "$ac_cv_sizeof_long_long" != "0"; then
10752 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10753 fi
10754 ;;
10755 * )
10756 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1542ea39 10757echo "configure:10758: checking size of long long" >&5
4f57cf11
GD
10758if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760else
10761 if test "$cross_compiling" = yes; then
10762 ac_cv_sizeof_long_long=0
10763else
10764 cat > conftest.$ac_ext <<EOF
1542ea39 10765#line 10766 "configure"
4f57cf11
GD
10766#include "confdefs.h"
10767#include <stdio.h>
10768main()
10769{
10770 FILE *f=fopen("conftestval", "w");
10771 if (!f) exit(1);
10772 fprintf(f, "%d\n", sizeof(long long));
10773 exit(0);
10774}
10775EOF
1542ea39 10776if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10777then
10778 ac_cv_sizeof_long_long=`cat conftestval`
10779else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -fr conftest*
10783 ac_cv_sizeof_long_long=0
10784fi
10785rm -fr conftest*
10786fi
10787
7b4a847f 10788fi
a0b9e27f
MB
10789echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10790cat >> confdefs.h <<EOF
21d1c967 10791#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10792EOF
9e691f46 10793
8284b0c5 10794
21d1c967
GD
10795esac
10796
a0b9e27f 10797echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1542ea39 10798echo "configure:10799: checking size of wchar_t" >&5
a0b9e27f
MB
10799if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10801else
a0b9e27f 10802
21d1c967 10803 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10804
10805 case "${host}" in
10806 *-pc-msdosdjgpp )
10807 wx_cv_sizeof_wchar_t=0
10808 ;;
10809 * )
10810 wx_cv_sizeof_wchar_t=4
10811 ;;
10812 esac
10813
a0b9e27f 10814
6f72b082 10815else
a0b9e27f 10816 cat > conftest.$ac_ext <<EOF
1542ea39 10817#line 10818 "configure"
6f72b082 10818#include "confdefs.h"
21d1c967 10819
2b5f62a0
VZ
10820 /* DJGPP only has fake wchar_t: */
10821 #ifdef __DJGPP__
10822 # error "fake wchar_t"
10823 #endif
21d1c967
GD
10824 #ifdef HAVE_WCHAR_H
10825 # ifdef __CYGWIN__
10826 # include <stddef.h>
10827 # endif
10828 # include <wchar.h>
10829 #endif
10830 #ifdef HAVE_STDLIB_H
10831 # include <stdlib.h>
10832 #endif
10833 #include <stdio.h>
10834 int main()
10835 {
10836 FILE *f=fopen("conftestval", "w");
10837 if (!f) exit(1);
10838 fprintf(f, "%i", sizeof(wchar_t));
10839 exit(0);
10840 }
a0b9e27f
MB
10841
10842EOF
1542ea39 10843if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10844then
21d1c967 10845 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10846else
a0b9e27f
MB
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -fr conftest*
10850 wx_cv_sizeof_wchar_t=0
6f72b082 10851fi
a0b9e27f 10852rm -fr conftest*
6f72b082 10853fi
6f72b082 10854
a0b9e27f 10855
3f345b47
VZ
10856fi
10857
a0b9e27f
MB
10858echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10859
10860cat >> confdefs.h <<EOF
21d1c967 10861#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10862EOF
90dd450c 10863
8284b0c5 10864
21d1c967
GD
10865# Check whether --enable-largefile or --disable-largefile was given.
10866if test "${enable_largefile+set}" = set; then
10867 enableval="$enable_largefile"
a0b9e27f
MB
10868 :
10869fi
3f345b47 10870
21d1c967
GD
10871if test "$enable_largefile" != no; then
10872 wx_largefile=no
a0b9e27f
MB
10873
10874 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
1542ea39 10875echo "configure:10876: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10876if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10877 echo $ac_n "(cached) $ac_c" 1>&6
10878else
10879
10880 cat > conftest.$ac_ext <<EOF
1542ea39 10881#line 10882 "configure"
90dd450c 10882#include "confdefs.h"
21d1c967
GD
10883#define _FILE_OFFSET_BITS 64
10884 #include <sys/types.h>
a0b9e27f 10885int main() {
21d1c967
GD
10886typedef struct {
10887 unsigned int field: sizeof(off_t) == 8;
10888} wxlf;
10889
a0b9e27f
MB
10890; return 0; }
10891EOF
1542ea39 10892if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10893 rm -rf conftest*
21d1c967 10894 ac_cv_sys_file_offset_bits=64
f6bcfd97 10895else
a0b9e27f
MB
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10900fi
a0b9e27f
MB
10901rm -f conftest*
10902
10903
247f5006 10904fi
a0b9e27f
MB
10905
10906echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10907
10908 if test "$ac_cv_sys_file_offset_bits" != no; then
10909 wx_largefile=yes
a0b9e27f 10910 cat >> confdefs.h <<EOF
21d1c967 10911#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10912EOF
21d1c967
GD
10913
10914 fi
10915
10916 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10917
10918 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
1542ea39 10919echo "configure:10920: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10920if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10922else
10923
10924 cat > conftest.$ac_ext <<EOF
1542ea39 10925#line 10926 "configure"
f6bcfd97 10926#include "confdefs.h"
21d1c967
GD
10927#define _LARGE_FILES 1
10928 #include <sys/types.h>
a0b9e27f 10929int main() {
21d1c967
GD
10930typedef struct {
10931 unsigned int field: sizeof(off_t) == 8;
10932} wxlf;
10933
a0b9e27f
MB
10934; return 0; }
10935EOF
1542ea39 10936if { (eval echo configure:10937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10937 rm -rf conftest*
21d1c967 10938 ac_cv_sys_large_files=1
f6bcfd97 10939else
a0b9e27f
MB
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 rm -rf conftest*
10943 ac_cv_sys_large_files=no
5c6fa7d2 10944fi
a0b9e27f
MB
10945rm -f conftest*
10946
10947
247f5006 10948fi
a0b9e27f
MB
10949
10950echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10951
21d1c967
GD
10952 if test "$ac_cv_sys_large_files" != no; then
10953 wx_largefile=yes
a0b9e27f 10954 cat >> confdefs.h <<EOF
21d1c967 10955#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10956EOF
90dd450c 10957
90dd450c
VZ
10958 fi
10959
90dd450c 10960 fi
90dd450c 10961
a0b9e27f 10962 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
1542ea39 10963echo "configure:10964: checking if large file support is available" >&5
21d1c967 10964 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10965 cat >> confdefs.h <<\EOF
21d1c967 10966#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10967EOF
90dd450c 10968
90dd450c 10969 fi
a0b9e27f 10970 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10971fi
90dd450c 10972
8284b0c5 10973
f02444d0 10974if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10975 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10976 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10977 else
e26c13cf 10978 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10979 fi
e26c13cf 10980 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10981fi
10982
a0b9e27f 10983echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1542ea39 10984echo "configure:10985: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10985if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10987else
21d1c967
GD
10988 ac_cv_c_bigendian=unknown
10989# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10990cat > conftest.$ac_ext <<EOF
1542ea39 10991#line 10992 "configure"
90dd450c 10992#include "confdefs.h"
21d1c967
GD
10993#include <sys/types.h>
10994#include <sys/param.h>
a0b9e27f 10995int main() {
21d1c967
GD
10996
10997#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10998 bogus endian macros
10999#endif
a0b9e27f
MB
11000; return 0; }
11001EOF
1542ea39 11002if { (eval echo configure:11003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11003 rm -rf conftest*
21d1c967 11004 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 11005cat > conftest.$ac_ext <<EOF
1542ea39 11006#line 11007 "configure"
90dd450c 11007#include "confdefs.h"
21d1c967
GD
11008#include <sys/types.h>
11009#include <sys/param.h>
a0b9e27f 11010int main() {
21d1c967
GD
11011
11012#if BYTE_ORDER != BIG_ENDIAN
11013 not big endian
11014#endif
a0b9e27f
MB
11015; return 0; }
11016EOF
1542ea39 11017if { (eval echo configure:11018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11018 rm -rf conftest*
21d1c967 11019 ac_cv_c_bigendian=yes
3f345b47 11020else
a0b9e27f
MB
11021 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 rm -rf conftest*
11024 ac_cv_c_bigendian=no
3f345b47 11025fi
a0b9e27f 11026rm -f conftest*
3f345b47 11027else
a0b9e27f
MB
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
3f345b47 11030fi
a0b9e27f 11031rm -f conftest*
21d1c967
GD
11032if test $ac_cv_c_bigendian = unknown; then
11033if test "$cross_compiling" = yes; then
11034 ac_cv_c_bigendian=unknown
10f2d63a 11035else
a0b9e27f 11036 cat > conftest.$ac_ext <<EOF
1542ea39 11037#line 11038 "configure"
90dd450c 11038#include "confdefs.h"
21d1c967
GD
11039main () {
11040 /* Are we little or big endian? From Harbison&Steele. */
11041 union
11042 {
11043 long l;
11044 char c[sizeof (long)];
11045 } u;
11046 u.l = 1;
11047 exit (u.c[sizeof (long) - 1] == 1);
11048}
a0b9e27f 11049EOF
1542ea39 11050if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 11051then
21d1c967 11052 ac_cv_c_bigendian=no
3f345b47 11053else
a0b9e27f
MB
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -fr conftest*
11057 ac_cv_c_bigendian=yes
247f5006 11058fi
a0b9e27f 11059rm -fr conftest*
247f5006 11060fi
a0b9e27f 11061
3f345b47 11062fi
8168de4c 11063fi
a0b9e27f
MB
11064
11065echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 11066if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 11067 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
11068fi
11069if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11070 cat >> confdefs.h <<\EOF
247f5006 11071#define WORDS_BIGENDIAN 1
a0b9e27f 11072EOF
247f5006
VZ
11073
11074fi
11075
11076
a0b9e27f 11077echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1542ea39 11078echo "configure:11079: checking how to run the C++ preprocessor" >&5
247f5006 11079if test -z "$CXXCPP"; then
a0b9e27f
MB
11080if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11082else
a0b9e27f
MB
11083 ac_ext=C
11084# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11085ac_cpp='$CXXCPP $CPPFLAGS'
11086ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11087ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11088cross_compiling=$ac_cv_prog_cxx_cross
11089 CXXCPP="${CXX-g++} -E"
11090 cat > conftest.$ac_ext <<EOF
1542ea39 11091#line 11092 "configure"
5c6fa7d2 11092#include "confdefs.h"
a0b9e27f
MB
11093#include <stdlib.h>
11094EOF
11095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 11096{ (eval echo configure:11097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11098if test -z "$ac_err"; then
21d1c967 11099 :
698dcdb6 11100else
a0b9e27f
MB
11101 echo "$ac_err" >&5
11102 echo "configure: failed program was:" >&5
698dcdb6 11103 cat conftest.$ac_ext >&5
a0b9e27f
MB
11104 rm -rf conftest*
11105 CXXCPP=/lib/cpp
247f5006 11106fi
a0b9e27f
MB
11107rm -f conftest*
11108 ac_cv_prog_CXXCPP="$CXXCPP"
11109ac_ext=C
11110# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11111ac_cpp='$CXXCPP $CPPFLAGS'
11112ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11113ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11114cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11115fi
90dd450c 11116fi
a0b9e27f
MB
11117CXXCPP="$ac_cv_prog_CXXCPP"
11118echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11119
1725144d 11120
21d1c967 11121 if test "$cross_compiling" = "yes"; then
a0b9e27f 11122 cat >> confdefs.h <<\EOF
21d1c967 11123#define wxUSE_IOSTREAMH 1
a0b9e27f 11124EOF
ab9b9eab 11125
21d1c967 11126 else
a0b9e27f
MB
11127
11128 ac_ext=C
11129# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11130ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11131ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11132ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11133cross_compiling=$ac_cv_prog_cxx_cross
52127426 11134
247f5006 11135
a0b9e27f 11136 for ac_hdr in iostream
21d1c967 11137do
a0b9e27f
MB
11138ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11139echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 11140echo "configure:11141: checking for $ac_hdr" >&5
a0b9e27f
MB
11141if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11143else
11144 cat > conftest.$ac_ext <<EOF
1542ea39 11145#line 11146 "configure"
ab9b9eab 11146#include "confdefs.h"
a0b9e27f
MB
11147#include <$ac_hdr>
11148EOF
11149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 11150{ (eval echo configure:11151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11152if test -z "$ac_err"; then
11153 rm -rf conftest*
11154 eval "ac_cv_header_$ac_safe=yes"
11155else
11156 echo "$ac_err" >&5
11157 echo "configure: failed program was:" >&5
ab9b9eab 11158 cat conftest.$ac_ext >&5
a0b9e27f
MB
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11161fi
a0b9e27f 11162rm -f conftest*
90dd450c 11163fi
a0b9e27f
MB
11164if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11165 echo "$ac_t""yes" 1>&6
11166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11167 cat >> confdefs.h <<EOF
11168#define $ac_tr_hdr 1
11169EOF
11170
11171else
11172 echo "$ac_t""no" 1>&6
90dd450c 11173fi
21d1c967 11174done
10f2d63a 11175
8284b0c5 11176
21d1c967
GD
11177 if test "$ac_cv_header_iostream" = "yes" ; then
11178 :
11179 else
a0b9e27f 11180 cat >> confdefs.h <<\EOF
21d1c967 11181#define wxUSE_IOSTREAMH 1
a0b9e27f 11182EOF
788deba1 11183
90dd450c 11184 fi
ab9b9eab 11185
21d1c967 11186 ac_ext=c
a0b9e27f 11187# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11188ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11189ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11190ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11191cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11192
21d1c967 11193 fi
ab9b9eab 11194
52127426 11195
8284b0c5 11196
a0b9e27f 11197 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1542ea39 11198echo "configure:11199: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11199if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11200 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11201else
a0b9e27f
MB
11202
11203
11204 ac_ext=C
11205# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11206ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11207ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11208ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11209cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11210
8284b0c5 11211
a0b9e27f 11212 cat > conftest.$ac_ext <<EOF
1542ea39 11213#line 11214 "configure"
ab9b9eab 11214#include "confdefs.h"
21d1c967 11215
a0b9e27f
MB
11216
11217int main() {
21d1c967
GD
11218
11219 bool b = true;
11220
11221 return 0;
a0b9e27f
MB
11222
11223; return 0; }
11224EOF
1542ea39 11225if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11226 rm -rf conftest*
11227
21d1c967 11228 wx_cv_cpp_bool=yes
a0b9e27f 11229
698dcdb6 11230else
a0b9e27f
MB
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234
21d1c967 11235 wx_cv_cpp_bool=no
a0b9e27f
MB
11236
11237
698dcdb6 11238fi
a0b9e27f 11239rm -f conftest*
21d1c967
GD
11240
11241 ac_ext=c
a0b9e27f 11242# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11243ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11244ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11247
a0b9e27f 11248
247f5006 11249fi
a0b9e27f
MB
11250
11251echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11252
11253 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11254 cat >> confdefs.h <<\EOF
21d1c967 11255#define HAVE_BOOL 1
a0b9e27f 11256EOF
ab9b9eab 11257
21d1c967
GD
11258 fi
11259
52127426 11260
8284b0c5 11261
a0b9e27f 11262 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
1542ea39 11263echo "configure:11264: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11264if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11266else
a0b9e27f
MB
11267
11268
11269 ac_ext=C
11270# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11271ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11272ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11273ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11274cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11275
8284b0c5 11276
a0b9e27f 11277 cat > conftest.$ac_ext <<EOF
1542ea39 11278#line 11279 "configure"
986ecc86
VZ
11279#include "confdefs.h"
11280
11281 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11282
11283int main() {
986ecc86
VZ
11284
11285 return 0;
a0b9e27f
MB
11286
11287; return 0; }
11288EOF
1542ea39 11289if { (eval echo configure:11290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11290 rm -rf conftest*
11291
11292 cat > conftest.$ac_ext <<EOF
1542ea39 11293#line 11294 "configure"
986ecc86
VZ
11294#include "confdefs.h"
11295
11296 class Foo { public: explicit Foo(int) {} };
11297 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11298
11299int main() {
986ecc86
VZ
11300
11301 TakeFoo(17);
11302 return 0;
a0b9e27f
MB
11303
11304; return 0; }
11305EOF
1542ea39 11306if { (eval echo configure:11307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11307 rm -rf conftest*
986ecc86
VZ
11308 wx_cv_explicit=no
11309else
a0b9e27f
MB
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 rm -rf conftest*
11313 wx_cv_explicit=yes
11314
986ecc86 11315fi
a0b9e27f
MB
11316rm -f conftest*
11317
986ecc86 11318else
a0b9e27f
MB
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 wx_cv_explicit=no
11323
986ecc86 11324fi
a0b9e27f 11325rm -f conftest*
986ecc86
VZ
11326
11327 ac_ext=c
a0b9e27f 11328# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11329ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11330ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11331ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11332cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11333
a0b9e27f 11334
247f5006 11335fi
a0b9e27f
MB
11336
11337echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11338
11339 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11340 cat >> confdefs.h <<\EOF
986ecc86 11341#define HAVE_EXPLICIT 1
a0b9e27f 11342EOF
986ecc86
VZ
11343
11344 fi
11345
8284b0c5 11346
521196a2 11347echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
1542ea39 11348echo "configure:11349: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11349if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11350 echo $ac_n "(cached) $ac_c" 1>&6
11351else
11352
11353 ac_ext=C
11354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11355ac_cpp='$CXXCPP $CPPFLAGS'
11356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11358cross_compiling=$ac_cv_prog_cxx_cross
11359
11360 cat > conftest.$ac_ext <<EOF
1542ea39 11361#line 11362 "configure"
521196a2
MB
11362#include "confdefs.h"
11363
11364int main() {
11365int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11366; return 0; }
11367EOF
1542ea39 11368if { (eval echo configure:11369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11369 rm -rf conftest*
11370 ac_cv_cxx_const_cast=yes
11371else
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11374 rm -rf conftest*
11375 ac_cv_cxx_const_cast=no
11376fi
11377rm -f conftest*
11378 ac_ext=c
11379# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11380ac_cpp='$CPP $CPPFLAGS'
11381ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11382ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11383cross_compiling=$ac_cv_prog_cc_cross
11384
11385
11386fi
11387
11388echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11389if test "$ac_cv_cxx_const_cast" = yes; then
11390 cat >> confdefs.h <<\EOF
11391#define HAVE_CONST_CAST
11392EOF
11393
11394fi
11395
11396
8284b0c5 11397
21d1c967
GD
11398SEARCH_INCLUDE="\
11399 /usr/local/include \
11400 \
11401 /usr/Motif-1.2/include \
11402 /usr/Motif-2.1/include \
11403 \
11404 /usr/include/Motif1.2 \
11405 /opt/xpm/include/X11 \
11406 /opt/GBxpm/include/ \
11407 /opt/GBxpm/X11/include/ \
11408 \
11409 /usr/Motif1.2/include \
11410 /usr/dt/include \
11411 /usr/openwin/include \
11412 \
11413 /usr/include/Xm \
11414 \
11415 /usr/X11R6/include \
11416 /usr/X11R6.4/include \
11417 /usr/X11R5/include \
11418 /usr/X11R4/include \
11419 \
11420 /usr/include/X11R6 \
11421 /usr/include/X11R5 \
11422 /usr/include/X11R4 \
11423 \
11424 /usr/local/X11R6/include \
11425 /usr/local/X11R5/include \
11426 /usr/local/X11R4/include \
11427 \
11428 /usr/local/include/X11R6 \
11429 /usr/local/include/X11R5 \
11430 /usr/local/include/X11R4 \
11431 \
11432 /usr/X11/include \
11433 /usr/include/X11 \
11434 /usr/local/X11/include \
11435 /usr/local/include/X11 \
11436 \
11437 /usr/X386/include \
11438 /usr/x386/include \
11439 /usr/XFree86/include/X11 \
11440 \
11441 X:/XFree86/include \
11442 X:/XFree86/include/X11 \
11443 \
11444 /usr/include/gtk \
11445 /usr/local/include/gtk \
11446 /usr/include/glib \
11447 /usr/local/include/glib \
11448 \
11449 /usr/include/qt \
11450 /usr/local/include/qt \
11451 \
11452 /usr/include/windows \
11453 /usr/include/wine \
11454 /usr/local/include/wine \
11455 \
11456 /usr/unsupported/include \
11457 /usr/athena/include \
11458 /usr/local/x11r5/include \
11459 /usr/lpp/Xamples/include \
11460 \
2b5f62a0 11461 /usr/openwin/share/include"
21d1c967
GD
11462
11463SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11464
8284b0c5 11465
a0b9e27f 11466cat > confcache <<\EOF
21d1c967
GD
11467# This file is a shell script that caches the results of configure
11468# tests run on this system so they can be shared between configure
a0b9e27f
MB
11469# scripts and configure runs. It is not useful on other systems.
11470# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11471#
a0b9e27f
MB
11472# By default, configure uses ./config.cache as the cache file,
11473# creating it if it does not exist already. You can give configure
11474# the --cache-file=FILE option to use a different cache file; that is
11475# what configure does when it calls configure scripts in
11476# subdirectories, so they share the cache.
11477# Giving --cache-file=/dev/null disables caching, for debugging configure.
11478# config.status only pays attention to the cache file if you give it the
11479# --recheck option to rerun configure.
21d1c967 11480#
a0b9e27f 11481EOF
21d1c967
GD
11482# The following way of writing the cache mishandles newlines in values,
11483# but we know of no workaround that is simple, portable, and efficient.
11484# So, don't put newlines in cache variables' values.
11485# Ultrix sh set writes to stderr and can't be redirected directly,
11486# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11487(set) 2>&1 |
11488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11489 *ac_space=\ *)
11490 # `set' does not quote correctly, so add quotes (double-quote substitution
11491 # turns \\\\ into \\, and sed turns \\ into \).
11492 sed -n \
11493 -e "s/'/'\\\\''/g" \
11494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11495 ;;
11496 *)
11497 # `set' quotes correctly as required by POSIX, so do not add quotes.
11498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11499 ;;
11500 esac >> confcache
11501if cmp -s $cache_file confcache; then
11502 :
11503else
21d1c967 11504 if test -w $cache_file; then
a0b9e27f
MB
11505 echo "updating cache $cache_file"
11506 cat confcache > $cache_file
21d1c967
GD
11507 else
11508 echo "not updating unwritable cache $cache_file"
11509 fi
ab9b9eab 11510fi
21d1c967 11511rm -f confcache
ab9b9eab 11512
247f5006 11513
a0b9e27f
MB
11514if test "$USE_LINUX" = 1; then
11515 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1542ea39 11516echo "configure:11517: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11517if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519else
11520
11521 cat > conftest.$ac_ext <<EOF
1542ea39 11522#line 11523 "configure"
ab9b9eab 11523#include "confdefs.h"
21d1c967 11524#include <features.h>
a0b9e27f 11525int main() {
ab9b9eab 11526
21d1c967
GD
11527 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11528 #error not glibc2.1
11529 #endif
a0b9e27f
MB
11530
11531; return 0; }
11532EOF
1542ea39 11533if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11534 rm -rf conftest*
11535
21d1c967 11536 wx_cv_lib_glibc21=yes
a0b9e27f 11537
698dcdb6 11538else
a0b9e27f
MB
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542
21d1c967 11543 wx_cv_lib_glibc21=no
a0b9e27f
MB
11544
11545
5c6fa7d2 11546fi
a0b9e27f
MB
11547rm -f conftest*
11548
247f5006 11549fi
a0b9e27f
MB
11550
11551echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11552 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11553 cat >> confdefs.h <<\EOF
21d1c967 11554#define wxHAVE_GLIBC2 1
a0b9e27f 11555EOF
1e487827 11556
90dd450c 11557 fi
ab9b9eab
VZ
11558fi
11559
5c0a20c3
VZ
11560if test "x$wx_cv_lib_glibc21" = "xyes"; then
11561 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11562 cat >> confdefs.h <<\EOF
5c0a20c3 11563#define _GNU_SOURCE 1
a0b9e27f 11564EOF
5c0a20c3
VZ
11565
11566 fi
11567fi
11568
8284b0c5
MB
11569
11570
21d1c967
GD
11571REGEX_INCLUDE=
11572if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11573 cat >> confdefs.h <<\EOF
21d1c967 11574#define wxUSE_REGEX 1
a0b9e27f 11575EOF
698dcdb6 11576
8284b0c5 11577
21d1c967 11578 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11579 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11580echo $ac_n "checking for regex.h""... $ac_c" 1>&6
1542ea39 11581echo "configure:11582: checking for regex.h" >&5
a0b9e27f
MB
11582if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584else
11585 cat > conftest.$ac_ext <<EOF
1542ea39 11586#line 11587 "configure"
247f5006
VZ
11587#include "confdefs.h"
11588#include <regex.h>
a0b9e27f
MB
11589EOF
11590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 11591{ (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593if test -z "$ac_err"; then
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=yes"
11596else
11597 echo "$ac_err" >&5
11598 echo "configure: failed program was:" >&5
21d1c967 11599 cat conftest.$ac_ext >&5
a0b9e27f
MB
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=no"
21d1c967 11602fi
a0b9e27f 11603rm -f conftest*
698dcdb6 11604fi
a0b9e27f
MB
11605if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 for ac_func in regcomp
21d1c967 11608do
a0b9e27f 11609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 11610echo "configure:11611: checking for $ac_func" >&5
a0b9e27f
MB
11611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11613else
a0b9e27f 11614 cat > conftest.$ac_ext <<EOF
1542ea39 11615#line 11616 "configure"
a0b9e27f
MB
11616#include "confdefs.h"
11617/* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func(); below. */
21d1c967
GD
11619#include <assert.h>
11620/* Override any gcc2 internal prototype to avoid an error. */
11621/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11622 builtin and then its argument prototype would still apply. */
11623char $ac_func();
11624
11625int main() {
11626
21d1c967
GD
11627/* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631choke me
11632#else
a0b9e27f 11633$ac_func();
21d1c967 11634#endif
90dd450c 11635
a0b9e27f
MB
11636; return 0; }
11637EOF
1542ea39 11638if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes"
11641else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=no"
11646fi
11647rm -f conftest*
11648fi
5c6fa7d2 11649
a0b9e27f
MB
11650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654#define $ac_tr_func 1
11655EOF
11656
11657else
11658 echo "$ac_t""no" 1>&6
698dcdb6 11659fi
21d1c967
GD
11660done
11661
a0b9e27f
MB
11662else
11663 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11664fi
11665
8284b0c5 11666
21d1c967
GD
11667 if test "x$ac_cv_func_regcomp" != "xyes"; then
11668 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11669 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11670 else
a0b9e27f 11671 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11672 wxUSE_REGEX=builtin
11673 fi
11674 else
11675 wxUSE_REGEX=sys
11676 fi
ab9b9eab 11677 fi
90dd450c 11678
21d1c967
GD
11679 if test "$wxUSE_REGEX" = "builtin" ; then
11680 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11681 fi
21d1c967 11682fi
90dd450c 11683
8284b0c5 11684
21d1c967
GD
11685ZLIB_INCLUDE=
11686ZLIB_LINK=
11687if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11688 cat >> confdefs.h <<\EOF
21d1c967 11689#define wxUSE_ZLIB 1
a0b9e27f 11690EOF
21d1c967 11691
8284b0c5 11692
21d1c967 11693 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11694 if test "$USE_DARWIN" = 1; then
11695 system_zlib_h_ok="yes"
11696 else
11697 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
1542ea39 11698echo "configure:11699: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11699if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11700 echo $ac_n "(cached) $ac_c" 1>&6
11701else
11702 if test "$cross_compiling" = yes; then
89e6bf6d 11703 unset ac_cv_header_zlib_h
d775acfa 11704
d643b80e
VZ
11705else
11706 cat > conftest.$ac_ext <<EOF
1542ea39 11707#line 11708 "configure"
d643b80e
VZ
11708#include "confdefs.h"
11709
d775acfa
VZ
11710 #include <zlib.h>
11711 #include <stdio.h>
d643b80e 11712
d775acfa
VZ
11713
11714 int main()
11715 {
11716 FILE *f=fopen("conftestval", "w");
11717 if (!f) exit(1);
11718 fprintf(f, "%s",
11719 ZLIB_VERSION[0] == '1' &&
11720 (ZLIB_VERSION[2] > '1' ||
11721 (ZLIB_VERSION[2] == '1' &&
11722 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11723 exit(0);
11724 }
11725
d643b80e 11726
d643b80e 11727EOF
1542ea39 11728if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11729then
11730 ac_cv_header_zlib_h=`cat conftestval`
11731else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -fr conftest*
11735 ac_cv_header_zlib_h=no
11736fi
11737rm -fr conftest*
11738fi
11739
d775acfa 11740
d643b80e
VZ
11741fi
11742
11743echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11744 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11745echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1542ea39 11746echo "configure:11747: checking for zlib.h" >&5
89e6bf6d
VZ
11747if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11749else
11750 cat > conftest.$ac_ext <<EOF
1542ea39 11751#line 11752 "configure"
89e6bf6d
VZ
11752#include "confdefs.h"
11753#include <zlib.h>
11754EOF
11755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 11756{ (eval echo configure:11757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11758if test -z "$ac_err"; then
11759 rm -rf conftest*
11760 eval "ac_cv_header_$ac_safe=yes"
11761else
11762 echo "$ac_err" >&5
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_header_$ac_safe=no"
11767fi
11768rm -f conftest*
11769fi
11770if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 :
11773else
11774 echo "$ac_t""no" 1>&6
11775fi
11776
d643b80e 11777
d775acfa
VZ
11778 system_zlib_h_ok=$ac_cv_header_zlib_h
11779 fi
11780
11781 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11782 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1542ea39 11783echo "configure:11784: checking for deflate in -lz" >&5
a0b9e27f
MB
11784ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11787else
a0b9e27f 11788 ac_save_LIBS="$LIBS"
21d1c967 11789LIBS="-lz $LIBS"
a0b9e27f 11790cat > conftest.$ac_ext <<EOF
1542ea39 11791#line 11792 "configure"
ab9b9eab 11792#include "confdefs.h"
21d1c967
GD
11793/* Override any gcc2 internal prototype to avoid an error. */
11794/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11795 builtin and then its argument prototype would still apply. */
11796char deflate();
11797
11798int main() {
11799deflate()
11800; return 0; }
11801EOF
1542ea39 11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11803 rm -rf conftest*
11804 eval "ac_cv_lib_$ac_lib_var=yes"
11805else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11810fi
a0b9e27f
MB
11811rm -f conftest*
11812LIBS="$ac_save_LIBS"
698dcdb6 11813
698dcdb6 11814fi
a0b9e27f
MB
11815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11816 echo "$ac_t""yes" 1>&6
11817 ZLIB_LINK=" -lz"
11818else
11819 echo "$ac_t""no" 1>&6
11820fi
698dcdb6 11821
d643b80e 11822 fi
247f5006 11823
21d1c967
GD
11824 if test "x$ZLIB_LINK" = "x" ; then
11825 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11826 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11827 else
d643b80e 11828 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11829 wxUSE_ZLIB=builtin
11830 fi
11831 else
11832 wxUSE_ZLIB=sys
11833 fi
11834 fi
11835
11836 if test "$wxUSE_ZLIB" = "builtin" ; then
11837 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11838 fi
ab9b9eab
VZ
11839fi
11840
8284b0c5 11841
21d1c967
GD
11842PNG_INCLUDE=
11843PNG_LINK=
11844if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11845 cat >> confdefs.h <<\EOF
21d1c967 11846#define wxUSE_LIBPNG 1
a0b9e27f 11847EOF
90dd450c 11848
8284b0c5 11849
21d1c967 11850 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11851 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11852 wxUSE_LIBPNG=sys
11853 fi
90dd450c 11854
21d1c967 11855 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11856 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11857 wxUSE_LIBPNG=builtin
11858 fi
11859
11860 if test "$wxUSE_MGL" != 1 ; then
11861 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11862 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
1542ea39 11863echo "configure:11864: checking for png.h > 0.90" >&5
5d3f766d
VZ
11864if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11866else
11867 if test "$cross_compiling" = yes; then
89e6bf6d 11868 unset ac_cv_header_png_h
5d3f766d
VZ
11869
11870else
11871 cat > conftest.$ac_ext <<EOF
1542ea39 11872#line 11873 "configure"
5d3f766d
VZ
11873#include "confdefs.h"
11874
11875 #include <png.h>
11876 #include <stdio.h>
11877
11878 int main()
11879 {
11880 FILE *f=fopen("conftestval", "w");
11881 if (!f) exit(1);
11882 fprintf(f, "%s",
11883 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11884 exit(0);
11885 }
11886
11887EOF
1542ea39 11888if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11889then
11890 ac_cv_header_png_h=`cat conftestval`
11891else
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11894 rm -fr conftest*
11895 ac_cv_header_png_h=no
11896fi
11897rm -fr conftest*
11898fi
11899
11900
11901fi
11902
11903echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11904 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11905echo $ac_n "checking for png.h""... $ac_c" 1>&6
1542ea39 11906echo "configure:11907: checking for png.h" >&5
89e6bf6d
VZ
11907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909else
11910 cat > conftest.$ac_ext <<EOF
1542ea39 11911#line 11912 "configure"
89e6bf6d
VZ
11912#include "confdefs.h"
11913#include <png.h>
11914EOF
11915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 11916{ (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11918if test -z "$ac_err"; then
11919 rm -rf conftest*
11920 eval "ac_cv_header_$ac_safe=yes"
11921else
11922 echo "$ac_err" >&5
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 eval "ac_cv_header_$ac_safe=no"
11927fi
11928rm -f conftest*
11929fi
11930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932 :
11933else
11934 echo "$ac_t""no" 1>&6
11935fi
11936
5d3f766d
VZ
11937
11938 if test "$ac_cv_header_png_h" = "yes"; then
11939 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1542ea39 11940echo "configure:11941: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11941ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11944else
a0b9e27f 11945 ac_save_LIBS="$LIBS"
21d1c967 11946LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11947cat > conftest.$ac_ext <<EOF
1542ea39 11948#line 11949 "configure"
90dd450c 11949#include "confdefs.h"
21d1c967
GD
11950/* Override any gcc2 internal prototype to avoid an error. */
11951/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11952 builtin and then its argument prototype would still apply. */
11953char png_check_sig();
90dd450c 11954
a0b9e27f
MB
11955int main() {
11956png_check_sig()
11957; return 0; }
11958EOF
1542ea39 11959if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=yes"
11962else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 eval "ac_cv_lib_$ac_lib_var=no"
11967fi
11968rm -f conftest*
11969LIBS="$ac_save_LIBS"
247f5006 11970
90dd450c 11971fi
a0b9e27f
MB
11972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11973 echo "$ac_t""yes" 1>&6
11974 PNG_LINK=" -lpng"
11975else
11976 echo "$ac_t""no" 1>&6
11977fi
90dd450c 11978
5d3f766d 11979 fi
247f5006 11980
21d1c967
GD
11981 if test "x$PNG_LINK" = "x" ; then
11982 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11983 { 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 11984 else
0c98a14e 11985 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11986 wxUSE_LIBPNG=builtin
11987 fi
11988 else
2b5f62a0 11989 wxUSE_LIBPNG=sys
21d1c967
GD
11990 fi
11991 fi
11992 fi
90dd450c 11993
21d1c967
GD
11994 if test "$wxUSE_LIBPNG" = "builtin" ; then
11995 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11996 fi
90dd450c 11997
21d1c967 11998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11999fi
12000
8284b0c5 12001
21d1c967
GD
12002JPEG_INCLUDE=
12003JPEG_LINK=
12004if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 12005 cat >> confdefs.h <<\EOF
21d1c967 12006#define wxUSE_LIBJPEG 1
a0b9e27f 12007EOF
90dd450c 12008
8284b0c5 12009
21d1c967 12010 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 12011 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
12012 wxUSE_LIBJPEG=sys
12013 fi
90dd450c 12014
21d1c967
GD
12015 if test "$wxUSE_MGL" != 1 ; then
12016 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 12017 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1542ea39 12018echo "configure:12019: checking for jpeglib.h" >&5
a0b9e27f
MB
12019 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12021else
a0b9e27f 12022 cat > conftest.$ac_ext <<EOF
1542ea39 12023#line 12024 "configure"
21d1c967 12024#include "confdefs.h"
90dd450c 12025
21d1c967
GD
12026 #undef HAVE_STDLIB_H
12027 #include <stdio.h>
12028 #include <jpeglib.h>
a0b9e27f
MB
12029
12030int main() {
90dd450c 12031
a0b9e27f
MB
12032
12033; return 0; }
12034EOF
1542ea39 12035if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 12036 rm -rf conftest*
21d1c967 12037 ac_cv_header_jpeglib_h=yes
90dd450c 12038else
a0b9e27f
MB
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 ac_cv_header_jpeglib_h=no
12043
90dd450c 12044fi
a0b9e27f
MB
12045rm -f conftest*
12046
90dd450c
VZ
12047fi
12048
a0b9e27f 12049 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 12050
21d1c967 12051 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 12052 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1542ea39 12053echo "configure:12054: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
12054ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12057else
a0b9e27f 12058 ac_save_LIBS="$LIBS"
21d1c967 12059LIBS="-ljpeg $LIBS"
a0b9e27f 12060cat > conftest.$ac_ext <<EOF
1542ea39 12061#line 12062 "configure"
21d1c967
GD
12062#include "confdefs.h"
12063/* Override any gcc2 internal prototype to avoid an error. */
12064/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12065 builtin and then its argument prototype would still apply. */
12066char jpeg_read_header();
12067
12068int main() {
12069jpeg_read_header()
12070; return 0; }
12071EOF
1542ea39 12072if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=yes"
12075else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 eval "ac_cv_lib_$ac_lib_var=no"
12080fi
12081rm -f conftest*
12082LIBS="$ac_save_LIBS"
12083
12084fi
12085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
21d1c967 12087 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12088else
12089 echo "$ac_t""no" 1>&6
90dd450c
VZ
12090fi
12091
21d1c967 12092 fi
90dd450c 12093
21d1c967
GD
12094 if test "x$JPEG_LINK" = "x" ; then
12095 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12096 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12097 else
a0b9e27f 12098 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12099 wxUSE_LIBJPEG=builtin
12100 fi
12101 else
12102 wxUSE_LIBJPEG=sys
12103 fi
12104 fi
12105 fi
90dd450c 12106
21d1c967
GD
12107 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12108 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12109 fi
12110fi
90dd450c 12111
8284b0c5 12112
21d1c967
GD
12113TIFF_INCLUDE=
12114TIFF_LINK=
2b5f62a0 12115TIFF_PREREQ_LINKS=-lm
21d1c967 12116if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12117 cat >> confdefs.h <<\EOF
21d1c967 12118#define wxUSE_LIBTIFF 1
a0b9e27f 12119EOF
21d1c967 12120
8284b0c5 12121
21d1c967 12122 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12123 if test "$wxUSE_LIBJPEG" = "sys"; then
12124 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12125 fi
12126 if test "$wxUSE_ZLIB" = "sys"; then
12127 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12128 fi
a0b9e27f
MB
12129 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12130echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1542ea39 12131echo "configure:12132: checking for tiffio.h" >&5
a0b9e27f
MB
12132if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134else
12135 cat > conftest.$ac_ext <<EOF
1542ea39 12136#line 12137 "configure"
247f5006
VZ
12137#include "confdefs.h"
12138#include <tiffio.h>
a0b9e27f
MB
12139EOF
12140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 12141{ (eval echo configure:12142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12143if test -z "$ac_err"; then
12144 rm -rf conftest*
12145 eval "ac_cv_header_$ac_safe=yes"
12146else
12147 echo "$ac_err" >&5
12148 echo "configure: failed program was:" >&5
21d1c967 12149 cat conftest.$ac_ext >&5
a0b9e27f
MB
12150 rm -rf conftest*
12151 eval "ac_cv_header_$ac_safe=no"
21d1c967 12152fi
a0b9e27f 12153rm -f conftest*
21d1c967 12154fi
a0b9e27f
MB
12155if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12156 echo "$ac_t""yes" 1>&6
12157 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1542ea39 12158echo "configure:12159: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12159ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12162else
a0b9e27f 12163 ac_save_LIBS="$LIBS"
2b5f62a0 12164LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12165cat > conftest.$ac_ext <<EOF
1542ea39 12166#line 12167 "configure"
ab9b9eab
VZ
12167#include "confdefs.h"
12168/* Override any gcc2 internal prototype to avoid an error. */
12169/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12170 builtin and then its argument prototype would still apply. */
12171char TIFFError();
ab9b9eab 12172
a0b9e27f
MB
12173int main() {
12174TIFFError()
12175; return 0; }
12176EOF
1542ea39 12177if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12178 rm -rf conftest*
12179 eval "ac_cv_lib_$ac_lib_var=yes"
12180else
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184 eval "ac_cv_lib_$ac_lib_var=no"
12185fi
12186rm -f conftest*
12187LIBS="$ac_save_LIBS"
247f5006 12188
21d1c967 12189fi
a0b9e27f
MB
12190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 TIFF_LINK=" -ltiff"
12193else
12194 echo "$ac_t""no" 1>&6
12195fi
cd6d6d5b 12196
a0b9e27f
MB
12197
12198else
12199 echo "$ac_t""no" 1>&6
12200fi
8284b0c5 12201
247f5006 12202
21d1c967
GD
12203 if test "x$TIFF_LINK" = "x" ; then
12204 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12205 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12206 else
a0b9e27f 12207 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12208 wxUSE_LIBTIFF=builtin
d8356fa3 12209 fi
d8356fa3 12210 else
21d1c967 12211 wxUSE_LIBTIFF=sys
d8356fa3 12212 fi
21d1c967 12213 fi
d8356fa3 12214
21d1c967
GD
12215 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12216 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12217 fi
21d1c967 12218fi
10f2d63a 12219
8284b0c5 12220
21d1c967 12221AFMINSTALL=
2b5f62a0 12222WIN32INSTALL=
90dd450c 12223
21d1c967
GD
12224TOOLKIT=
12225TOOLKIT_INCLUDE=
12226WIDGET_SET=
12227
12228if test "$USE_WIN32" = 1 ; then
a0b9e27f 12229 for ac_hdr in w32api.h
21d1c967 12230do
a0b9e27f
MB
12231ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12232echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 12233echo "configure:12234: checking for $ac_hdr" >&5
a0b9e27f
MB
12234if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12236else
12237 cat > conftest.$ac_ext <<EOF
1542ea39 12238#line 12239 "configure"
247f5006 12239#include "confdefs.h"
a0b9e27f
MB
12240#include <$ac_hdr>
12241EOF
12242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 12243{ (eval echo configure:12244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12244ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12245if test -z "$ac_err"; then
12246 rm -rf conftest*
12247 eval "ac_cv_header_$ac_safe=yes"
12248else
12249 echo "$ac_err" >&5
12250 echo "configure: failed program was:" >&5
f79bd02d 12251 cat conftest.$ac_ext >&5
a0b9e27f
MB
12252 rm -rf conftest*
12253 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12254fi
a0b9e27f 12255rm -f conftest*
21d1c967 12256fi
a0b9e27f
MB
12257if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12260 cat >> confdefs.h <<EOF
12261#define $ac_tr_hdr 1
12262EOF
12263
12264else
12265 echo "$ac_t""no" 1>&6
21d1c967
GD
12266fi
12267done
f79bd02d 12268
a0b9e27f
MB
12269 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12270echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1542ea39 12271echo "configure:12272: checking for windows.h" >&5
a0b9e27f
MB
12272if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12274else
a0b9e27f 12275 cat > conftest.$ac_ext <<EOF
1542ea39 12276#line 12277 "configure"
247f5006
VZ
12277#include "confdefs.h"
12278#include <windows.h>
a0b9e27f
MB
12279EOF
12280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 12281{ (eval echo configure:12282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12283if test -z "$ac_err"; then
12284 rm -rf conftest*
12285 eval "ac_cv_header_$ac_safe=yes"
12286else
12287 echo "$ac_err" >&5
12288 echo "configure: failed program was:" >&5
90dd450c 12289 cat conftest.$ac_ext >&5
a0b9e27f
MB
12290 rm -rf conftest*
12291 eval "ac_cv_header_$ac_safe=no"
90dd450c 12292fi
a0b9e27f 12293rm -f conftest*
90dd450c 12294fi
a0b9e27f
MB
12295if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12296 echo "$ac_t""yes" 1>&6
21d1c967 12297 :
90dd450c 12298else
a0b9e27f 12299 echo "$ac_t""no" 1>&6
21d1c967 12300
a0b9e27f
MB
12301 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12302
5c6fa7d2 12303fi
7b4a847f 12304
5c6fa7d2 12305
a0b9e27f 12306 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
1542ea39 12307echo "configure:12308: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12308if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12310else
a0b9e27f
MB
12311
12312 cat > conftest.$ac_ext <<EOF
1542ea39 12313#line 12314 "configure"
f79bd02d 12314#include "confdefs.h"
21d1c967 12315#include <w32api.h>
a0b9e27f 12316int main() {
f79bd02d 12317
21d1c967
GD
12318 #define wxCHECK_W32API_VERSION( major, minor ) \
12319 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12320 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12321 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12322
12323 #if !wxCHECK_W32API_VERSION(1,1)
12324 #error You need w32api 1.1 or newer
12325 #endif
a0b9e27f
MB
12326
12327; return 0; }
12328EOF
1542ea39 12329if { (eval echo configure:12330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12330 rm -rf conftest*
12331
21d1c967 12332 wx_cv_w32api_win32_ie=yes
a0b9e27f 12333
f79bd02d 12334else
a0b9e27f
MB
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338
21d1c967 12339 wx_cv_w32api_win32_ie=no
a0b9e27f 12340
5c6fa7d2 12341fi
a0b9e27f
MB
12342rm -f conftest*
12343
247f5006 12344fi
a0b9e27f
MB
12345
12346echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12347 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12348 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12349 fi
f79bd02d 12350
21d1c967
GD
12351 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12352
12353 case "${host}" in
12354 *-*-cygwin* )
12355 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12356 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12357 esac
f79bd02d 12358
21d1c967
GD
12359 if test "$wxUSE_ODBC" = "yes" ; then
12360 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12361 fi
f79bd02d 12362
21d1c967
GD
12363 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12364 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12365
12366 WIN32INSTALL=win32install
f79bd02d 12367fi
f79bd02d 12368
b2fee376 12369if test "$USE_DARWIN" = 1; then
50bcbd3d 12370 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12371 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12372 else
12373 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12374 fi
12375fi
12376
21d1c967
GD
12377if test "$wxUSE_GUI" = "yes"; then
12378 USE_GUI=1
f79bd02d 12379
21d1c967 12380 GUI_TK_LIBRARY=
f79bd02d 12381
21d1c967
GD
12382 WXGTK12=
12383 WXGTK127=
12384 WXGTK20=
f79bd02d 12385
21d1c967
GD
12386 if test "$wxUSE_MSW" = 1 ; then
12387 TOOLKIT=MSW
12388 GUIDIST=MSW_DIST
f79bd02d 12389
89e6bf6d 12390 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12391 fi
12392
21d1c967 12393 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12394 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
1542ea39 12395echo "configure:12396: checking for GTK+ version" >&5
21d1c967
GD
12396
12397 gtk_version_cached=1
a0b9e27f
MB
12398 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12400else
a0b9e27f 12401
21d1c967 12402 gtk_version_cached=0
a0b9e27f 12403 echo "$ac_t""" 1>&6
f79bd02d 12404
21d1c967
GD
12405 GTK_MODULES=
12406 if test "$wxUSE_THREADS" = "yes"; then
12407 GTK_MODULES=gthread
12408 fi
f79bd02d 12409
2b5f62a0 12410 wx_cv_lib_gtk=
21d1c967
GD
12411 if test "x$wxUSE_GTK2" = "xyes"; then
12412 # Check whether --enable-gtktest or --disable-gtktest was given.
12413if test "${enable_gtktest+set}" = set; then
12414 enableval="$enable_gtktest"
a0b9e27f 12415 :
f79bd02d 12416else
21d1c967 12417 enable_gtktest=yes
a0b9e27f
MB
12418fi
12419
f79bd02d 12420
21d1c967
GD
12421 pkg_config_args=gtk+-2.0
12422 for module in . $GTK_MODULES
12423 do
12424 case "$module" in
a0b9e27f 12425 gthread)
21d1c967
GD
12426 pkg_config_args="$pkg_config_args gthread-2.0"
12427 ;;
12428 esac
12429 done
12430
12431 no_gtk=""
f79bd02d 12432
21d1c967
GD
12433 # Extract the first word of "pkg-config", so it can be a program name with args.
12434set dummy pkg-config; ac_word=$2
a0b9e27f 12435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 12436echo "configure:12437: checking for $ac_word" >&5
a0b9e27f
MB
12437if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12439else
a0b9e27f
MB
12440 case "$PKG_CONFIG" in
12441 /*)
21d1c967
GD
12442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 ;;
a0b9e27f
MB
12444 ?:/*)
12445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12446 ;;
21d1c967 12447 *)
a0b9e27f
MB
12448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12449 ac_dummy="$PATH"
12450 for ac_dir in $ac_dummy; do
12451 test -z "$ac_dir" && ac_dir=.
12452 if test -f $ac_dir/$ac_word; then
12453 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12454 break
12455 fi
12456 done
12457 IFS="$ac_save_ifs"
21d1c967
GD
12458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12459 ;;
12460esac
f79bd02d 12461fi
a0b9e27f 12462PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12463if test -n "$PKG_CONFIG"; then
a0b9e27f 12464 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12465else
a0b9e27f 12466 echo "$ac_t""no" 1>&6
f79bd02d
JS
12467fi
12468
8284b0c5 12469
21d1c967
GD
12470 if test x$PKG_CONFIG != xno ; then
12471 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12472 :
12473 else
12474 echo *** pkg-config too old; version 0.7 or better required.
12475 no_gtk=yes
12476 PKG_CONFIG=no
12477 fi
12478 else
12479 no_gtk=yes
12480 fi
f79bd02d 12481
21d1c967 12482 min_gtk_version=2.0.0
a0b9e27f 12483 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
1542ea39 12484echo "configure:12485: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12485
21d1c967
GD
12486 if test x$PKG_CONFIG != xno ; then
12487 ## don't try to run the test against uninstalled libtool libs
12488 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12489 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12490 enable_gtktest=no
12491 fi
f79bd02d 12492
21d1c967
GD
12493 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12494 :
12495 else
12496 no_gtk=yes
12497 fi
12498 fi
f79bd02d 12499
21d1c967
GD
12500 if test x"$no_gtk" = x ; then
12501 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12502 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12503 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12505 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12507 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12509 if test "x$enable_gtktest" = "xyes" ; then
12510 ac_save_CFLAGS="$CFLAGS"
12511 ac_save_LIBS="$LIBS"
12512 CFLAGS="$CFLAGS $GTK_CFLAGS"
12513 LIBS="$GTK_LIBS $LIBS"
12514 rm -f conf.gtktest
12515 if test "$cross_compiling" = yes; then
12516 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12517else
a0b9e27f 12518 cat > conftest.$ac_ext <<EOF
1542ea39 12519#line 12520 "configure"
f79bd02d 12520#include "confdefs.h"
f79bd02d 12521
21d1c967
GD
12522#include <gtk/gtk.h>
12523#include <stdio.h>
12524#include <stdlib.h>
f79bd02d 12525
a0b9e27f 12526int
21d1c967
GD
12527main ()
12528{
12529 int major, minor, micro;
12530 char *tmp_version;
f79bd02d 12531
21d1c967 12532 system ("touch conf.gtktest");
f79bd02d 12533
21d1c967
GD
12534 /* HP/UX 9 (%@#!) writes to sscanf strings */
12535 tmp_version = g_strdup("$min_gtk_version");
12536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12537 printf("%s, bad version string\n", "$min_gtk_version");
12538 exit(1);
12539 }
f79bd02d 12540
21d1c967
GD
12541 if ((gtk_major_version != $gtk_config_major_version) ||
12542 (gtk_minor_version != $gtk_config_minor_version) ||
12543 (gtk_micro_version != $gtk_config_micro_version))
12544 {
a0b9e27f 12545 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12547 gtk_major_version, gtk_minor_version, gtk_micro_version);
12548 printf ("*** was found! If pkg-config was correct, then it is best\n");
12549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12552 printf("*** required on your system.\n");
12553 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12554 printf("*** to point to the correct configuration files\n");
a0b9e27f 12555 }
21d1c967
GD
12556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12557 (gtk_minor_version != GTK_MINOR_VERSION) ||
12558 (gtk_micro_version != GTK_MICRO_VERSION))
12559 {
12560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12562 printf("*** library (version %d.%d.%d)\n",
12563 gtk_major_version, gtk_minor_version, gtk_micro_version);
12564 }
12565 else
12566 {
12567 if ((gtk_major_version > major) ||
12568 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12569 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12570 {
12571 return 0;
12572 }
12573 else
12574 {
12575 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12576 gtk_major_version, gtk_minor_version, gtk_micro_version);
12577 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12578 major, minor, micro);
12579 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12580 printf("***\n");
12581 printf("*** If you have already installed a sufficiently new version, this error\n");
12582 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12583 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12584 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12585 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12586 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12587 printf("*** so that the correct libraries are found at run-time))\n");
12588 }
12589 }
12590 return 1;
12591}
f79bd02d 12592
a0b9e27f 12593EOF
1542ea39 12594if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12595then
21d1c967 12596 :
f79bd02d 12597else
a0b9e27f
MB
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -fr conftest*
12601 no_gtk=yes
f79bd02d 12602fi
a0b9e27f 12603rm -fr conftest*
f79bd02d 12604fi
a0b9e27f 12605
21d1c967
GD
12606 CFLAGS="$ac_save_CFLAGS"
12607 LIBS="$ac_save_LIBS"
12608 fi
12609 fi
12610 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12611 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12612 wx_cv_lib_gtk=2.0
21d1c967 12613 else
a0b9e27f 12614 echo "$ac_t""no" 1>&6
21d1c967
GD
12615 if test "$PKG_CONFIG" = "no" ; then
12616 echo "*** A new enough version of pkg-config was not found."
12617 echo "*** See http://pkgconfig.sourceforge.net"
12618 else
12619 if test -f conf.gtktest ; then
12620 :
12621 else
12622 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12623 ac_save_CFLAGS="$CFLAGS"
12624 ac_save_LIBS="$LIBS"
21d1c967
GD
12625 CFLAGS="$CFLAGS $GTK_CFLAGS"
12626 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12627 cat > conftest.$ac_ext <<EOF
1542ea39 12628#line 12629 "configure"
f79bd02d 12629#include "confdefs.h"
21d1c967
GD
12630
12631#include <gtk/gtk.h>
12632#include <stdio.h>
f79bd02d 12633
a0b9e27f
MB
12634int main() {
12635 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12636; return 0; }
12637EOF
1542ea39 12638if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12639 rm -rf conftest*
21d1c967
GD
12640 echo "*** The test program compiled, but did not run. This usually means"
12641 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12642 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12643 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12644 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12645 echo "*** is required on your system"
12646 echo "***"
12647 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12648 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12649else
a0b9e27f
MB
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 rm -rf conftest*
12653 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12654 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12655fi
a0b9e27f 12656rm -f conftest*
21d1c967
GD
12657 CFLAGS="$ac_save_CFLAGS"
12658 LIBS="$ac_save_LIBS"
12659 fi
12660 fi
12661 GTK_CFLAGS=""
12662 GTK_LIBS=""
12663 :
12664 fi
a0b9e27f
MB
12665
12666
21d1c967 12667 rm -f conf.gtktest
f79bd02d 12668
2b5f62a0 12669 else
a0b9e27f 12670 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12671if test "${with_gtk_prefix+set}" = set; then
12672 withval="$with_gtk_prefix"
12673 gtk_config_prefix="$withval"
12674else
12675 gtk_config_prefix=""
a0b9e27f 12676fi
f79bd02d 12677
21d1c967
GD
12678# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12679if test "${with_gtk_exec_prefix+set}" = set; then
12680 withval="$with_gtk_exec_prefix"
12681 gtk_config_exec_prefix="$withval"
12682else
12683 gtk_config_exec_prefix=""
a0b9e27f
MB
12684fi
12685
21d1c967
GD
12686# Check whether --enable-gtktest or --disable-gtktest was given.
12687if test "${enable_gtktest+set}" = set; then
12688 enableval="$enable_gtktest"
a0b9e27f 12689 :
21d1c967
GD
12690else
12691 enable_gtktest=yes
a0b9e27f
MB
12692fi
12693
21d1c967
GD
12694
12695 for module in . $GTK_MODULES
12696 do
12697 case "$module" in
a0b9e27f 12698 gthread)
21d1c967
GD
12699 gtk_config_args="$gtk_config_args gthread"
12700 ;;
12701 esac
12702 done
12703
12704 if test x$gtk_config_exec_prefix != x ; then
12705 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12706 if test x${GTK_CONFIG+set} != xset ; then
12707 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12708 fi
12709 fi
12710 if test x$gtk_config_prefix != x ; then
12711 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12712 if test x${GTK_CONFIG+set} != xset ; then
12713 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12714 fi
12715 fi
12716
12717 # Extract the first word of "gtk-config", so it can be a program name with args.
12718set dummy gtk-config; ac_word=$2
a0b9e27f 12719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 12720echo "configure:12721: checking for $ac_word" >&5
a0b9e27f
MB
12721if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12723else
a0b9e27f
MB
12724 case "$GTK_CONFIG" in
12725 /*)
21d1c967
GD
12726 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12727 ;;
a0b9e27f
MB
12728 ?:/*)
12729 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12730 ;;
21d1c967 12731 *)
a0b9e27f
MB
12732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12733 ac_dummy="$PATH"
12734 for ac_dir in $ac_dummy; do
12735 test -z "$ac_dir" && ac_dir=.
12736 if test -f $ac_dir/$ac_word; then
12737 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12738 break
12739 fi
12740 done
12741 IFS="$ac_save_ifs"
21d1c967
GD
12742 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12743 ;;
12744esac
12745fi
a0b9e27f 12746GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12747if test -n "$GTK_CONFIG"; then
a0b9e27f 12748 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12749else
a0b9e27f 12750 echo "$ac_t""no" 1>&6
21d1c967
GD
12751fi
12752
12753 min_gtk_version=1.2.7
a0b9e27f 12754 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1542ea39 12755echo "configure:12756: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12756 no_gtk=""
12757 if test "$GTK_CONFIG" = "no" ; then
12758 no_gtk=yes
12759 else
12760 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12761 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12762 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12764 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12766 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12768 if test "x$enable_gtktest" = "xyes" ; then
12769 ac_save_CFLAGS="$CFLAGS"
12770 ac_save_LIBS="$LIBS"
12771 CFLAGS="$CFLAGS $GTK_CFLAGS"
12772 LIBS="$GTK_LIBS $LIBS"
12773 rm -f conf.gtktest
12774 if test "$cross_compiling" = yes; then
12775 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12776else
a0b9e27f 12777 cat > conftest.$ac_ext <<EOF
1542ea39 12778#line 12779 "configure"
f79bd02d
JS
12779#include "confdefs.h"
12780
21d1c967
GD
12781#include <gtk/gtk.h>
12782#include <stdio.h>
12783#include <stdlib.h>
f79bd02d 12784
a0b9e27f 12785int
21d1c967
GD
12786main ()
12787{
12788 int major, minor, micro;
12789 char *tmp_version;
12790
12791 system ("touch conf.gtktest");
12792
12793 /* HP/UX 9 (%@#!) writes to sscanf strings */
12794 tmp_version = g_strdup("$min_gtk_version");
12795 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12796 printf("%s, bad version string\n", "$min_gtk_version");
12797 exit(1);
12798 }
90dd450c 12799
21d1c967
GD
12800 if ((gtk_major_version != $gtk_config_major_version) ||
12801 (gtk_minor_version != $gtk_config_minor_version) ||
12802 (gtk_micro_version != $gtk_config_micro_version))
12803 {
a0b9e27f 12804 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12805 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12806 gtk_major_version, gtk_minor_version, gtk_micro_version);
12807 printf ("*** was found! If gtk-config was correct, then it is best\n");
12808 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12809 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12810 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12811 printf("*** required on your system.\n");
12812 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12813 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12814 printf("*** before re-running configure\n");
a0b9e27f 12815 }
21d1c967
GD
12816#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12817 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12818 (gtk_minor_version != GTK_MINOR_VERSION) ||
12819 (gtk_micro_version != GTK_MICRO_VERSION))
12820 {
12821 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12822 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12823 printf("*** library (version %d.%d.%d)\n",
12824 gtk_major_version, gtk_minor_version, gtk_micro_version);
12825 }
12826#endif /* defined (GTK_MAJOR_VERSION) ... */
12827 else
12828 {
12829 if ((gtk_major_version > major) ||
12830 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12831 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12832 {
12833 return 0;
12834 }
12835 else
12836 {
12837 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12838 gtk_major_version, gtk_minor_version, gtk_micro_version);
12839 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12840 major, minor, micro);
12841 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12842 printf("***\n");
12843 printf("*** If you have already installed a sufficiently new version, this error\n");
12844 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12845 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12846 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12847 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12848 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12849 printf("*** so that the correct libraries are found at run-time))\n");
12850 }
12851 }
12852 return 1;
12853}
12854
a0b9e27f 12855EOF
1542ea39 12856if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12857then
21d1c967
GD
12858 :
12859else
a0b9e27f
MB
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -fr conftest*
12863 no_gtk=yes
21d1c967 12864fi
a0b9e27f 12865rm -fr conftest*
21d1c967 12866fi
a0b9e27f 12867
21d1c967
GD
12868 CFLAGS="$ac_save_CFLAGS"
12869 LIBS="$ac_save_LIBS"
12870 fi
12871 fi
12872 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12873 echo "$ac_t""yes" 1>&6
12874 wx_cv_lib_gtk=1.2.7
21d1c967 12875 else
a0b9e27f 12876 echo "$ac_t""no" 1>&6
21d1c967
GD
12877 if test "$GTK_CONFIG" = "no" ; then
12878 echo "*** The gtk-config script installed by GTK could not be found"
12879 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12880 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12881 echo "*** full path to gtk-config."
12882 else
12883 if test -f conf.gtktest ; then
12884 :
12885 else
12886 echo "*** Could not run GTK test program, checking why..."
12887 CFLAGS="$CFLAGS $GTK_CFLAGS"
12888 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12889 cat > conftest.$ac_ext <<EOF
1542ea39 12890#line 12891 "configure"
21d1c967
GD
12891#include "confdefs.h"
12892
12893#include <gtk/gtk.h>
12894#include <stdio.h>
12895
a0b9e27f
MB
12896int main() {
12897 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12898; return 0; }
12899EOF
1542ea39 12900if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12901 rm -rf conftest*
21d1c967
GD
12902 echo "*** The test program compiled, but did not run. This usually means"
12903 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12904 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12905 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12906 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12907 echo "*** is required on your system"
12908 echo "***"
12909 echo "*** If you have an old version installed, it is best to remove it, although"
12910 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12911 echo "***"
12912 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12913 echo "*** came with the system with the command"
12914 echo "***"
a0b9e27f 12915 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12916else
a0b9e27f
MB
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12921 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12922 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12923 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12924fi
a0b9e27f 12925rm -f conftest*
21d1c967
GD
12926 CFLAGS="$ac_save_CFLAGS"
12927 LIBS="$ac_save_LIBS"
12928 fi
12929 fi
12930 GTK_CFLAGS=""
12931 GTK_LIBS=""
12932 :
12933 fi
a0b9e27f
MB
12934
12935
21d1c967
GD
12936 rm -f conf.gtktest
12937
21d1c967 12938
2b5f62a0
VZ
12939 if test -z "$wx_cv_lib_gtk"; then
12940 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12941if test "${with_gtk_prefix+set}" = set; then
12942 withval="$with_gtk_prefix"
12943 gtk_config_prefix="$withval"
12944else
12945 gtk_config_prefix=""
a0b9e27f 12946fi
f79bd02d 12947
21d1c967
GD
12948# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12949if test "${with_gtk_exec_prefix+set}" = set; then
12950 withval="$with_gtk_exec_prefix"
12951 gtk_config_exec_prefix="$withval"
12952else
12953 gtk_config_exec_prefix=""
a0b9e27f
MB
12954fi
12955
21d1c967
GD
12956# Check whether --enable-gtktest or --disable-gtktest was given.
12957if test "${enable_gtktest+set}" = set; then
12958 enableval="$enable_gtktest"
a0b9e27f 12959 :
90dd450c 12960else
21d1c967 12961 enable_gtktest=yes
a0b9e27f
MB
12962fi
12963
21d1c967
GD
12964
12965 for module in . $GTK_MODULES
12966 do
12967 case "$module" in
a0b9e27f 12968 gthread)
21d1c967
GD
12969 gtk_config_args="$gtk_config_args gthread"
12970 ;;
12971 esac
12972 done
12973
12974 if test x$gtk_config_exec_prefix != x ; then
12975 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12976 if test x${GTK_CONFIG+set} != xset ; then
12977 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12978 fi
12979 fi
12980 if test x$gtk_config_prefix != x ; then
12981 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12982 if test x${GTK_CONFIG+set} != xset ; then
12983 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12984 fi
12985 fi
12986
12987 # Extract the first word of "gtk-config", so it can be a program name with args.
12988set dummy gtk-config; ac_word=$2
a0b9e27f 12989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 12990echo "configure:12991: checking for $ac_word" >&5
a0b9e27f
MB
12991if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12993else
a0b9e27f
MB
12994 case "$GTK_CONFIG" in
12995 /*)
21d1c967
GD
12996 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12997 ;;
a0b9e27f
MB
12998 ?:/*)
12999 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13000 ;;
21d1c967 13001 *)
a0b9e27f
MB
13002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13003 ac_dummy="$PATH"
13004 for ac_dir in $ac_dummy; do
13005 test -z "$ac_dir" && ac_dir=.
13006 if test -f $ac_dir/$ac_word; then
13007 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13008 break
13009 fi
13010 done
13011 IFS="$ac_save_ifs"
21d1c967
GD
13012 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13013 ;;
13014esac
13015fi
a0b9e27f 13016GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 13017if test -n "$GTK_CONFIG"; then
a0b9e27f 13018 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 13019else
a0b9e27f 13020 echo "$ac_t""no" 1>&6
21d1c967
GD
13021fi
13022
13023 min_gtk_version=1.2.3
a0b9e27f 13024 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1542ea39 13025echo "configure:13026: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
13026 no_gtk=""
13027 if test "$GTK_CONFIG" = "no" ; then
13028 no_gtk=yes
13029 else
13030 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13031 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13032 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13034 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13036 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13038 if test "x$enable_gtktest" = "xyes" ; then
13039 ac_save_CFLAGS="$CFLAGS"
13040 ac_save_LIBS="$LIBS"
13041 CFLAGS="$CFLAGS $GTK_CFLAGS"
13042 LIBS="$GTK_LIBS $LIBS"
13043 rm -f conf.gtktest
13044 if test "$cross_compiling" = yes; then
13045 echo $ac_n "cross compiling; assumed OK... $ac_c"
13046else
a0b9e27f 13047 cat > conftest.$ac_ext <<EOF
1542ea39 13048#line 13049 "configure"
f79bd02d 13049#include "confdefs.h"
21d1c967
GD
13050
13051#include <gtk/gtk.h>
13052#include <stdio.h>
13053#include <stdlib.h>
13054
a0b9e27f 13055int
21d1c967
GD
13056main ()
13057{
13058 int major, minor, micro;
13059 char *tmp_version;
13060
13061 system ("touch conf.gtktest");
13062
13063 /* HP/UX 9 (%@#!) writes to sscanf strings */
13064 tmp_version = g_strdup("$min_gtk_version");
13065 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13066 printf("%s, bad version string\n", "$min_gtk_version");
13067 exit(1);
13068 }
13069
13070 if ((gtk_major_version != $gtk_config_major_version) ||
13071 (gtk_minor_version != $gtk_config_minor_version) ||
13072 (gtk_micro_version != $gtk_config_micro_version))
13073 {
a0b9e27f 13074 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13075 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13076 gtk_major_version, gtk_minor_version, gtk_micro_version);
13077 printf ("*** was found! If gtk-config was correct, then it is best\n");
13078 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13079 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13080 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13081 printf("*** required on your system.\n");
13082 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13083 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13084 printf("*** before re-running configure\n");
a0b9e27f 13085 }
21d1c967
GD
13086#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13087 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13088 (gtk_minor_version != GTK_MINOR_VERSION) ||
13089 (gtk_micro_version != GTK_MICRO_VERSION))
13090 {
13091 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13092 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13093 printf("*** library (version %d.%d.%d)\n",
13094 gtk_major_version, gtk_minor_version, gtk_micro_version);
13095 }
13096#endif /* defined (GTK_MAJOR_VERSION) ... */
13097 else
13098 {
13099 if ((gtk_major_version > major) ||
13100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13102 {
13103 return 0;
13104 }
13105 else
13106 {
13107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13108 gtk_major_version, gtk_minor_version, gtk_micro_version);
13109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13110 major, minor, micro);
13111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13112 printf("***\n");
13113 printf("*** If you have already installed a sufficiently new version, this error\n");
13114 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13116 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13117 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13119 printf("*** so that the correct libraries are found at run-time))\n");
13120 }
13121 }
13122 return 1;
13123}
13124
a0b9e27f 13125EOF
1542ea39 13126if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13127then
21d1c967
GD
13128 :
13129else
a0b9e27f
MB
13130 echo "configure: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13132 rm -fr conftest*
13133 no_gtk=yes
21d1c967 13134fi
a0b9e27f 13135rm -fr conftest*
21d1c967 13136fi
a0b9e27f 13137
21d1c967
GD
13138 CFLAGS="$ac_save_CFLAGS"
13139 LIBS="$ac_save_LIBS"
13140 fi
13141 fi
13142 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13143 echo "$ac_t""yes" 1>&6
13144 wx_cv_lib_gtk=1.2.3
21d1c967 13145 else
a0b9e27f 13146 echo "$ac_t""no" 1>&6
21d1c967
GD
13147 if test "$GTK_CONFIG" = "no" ; then
13148 echo "*** The gtk-config script installed by GTK could not be found"
13149 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13150 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13151 echo "*** full path to gtk-config."
13152 else
13153 if test -f conf.gtktest ; then
13154 :
13155 else
13156 echo "*** Could not run GTK test program, checking why..."
13157 CFLAGS="$CFLAGS $GTK_CFLAGS"
13158 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13159 cat > conftest.$ac_ext <<EOF
1542ea39 13160#line 13161 "configure"
21d1c967
GD
13161#include "confdefs.h"
13162
13163#include <gtk/gtk.h>
13164#include <stdio.h>
f79bd02d 13165
a0b9e27f
MB
13166int main() {
13167 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13168; return 0; }
13169EOF
1542ea39 13170if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13171 rm -rf conftest*
21d1c967
GD
13172 echo "*** The test program compiled, but did not run. This usually means"
13173 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13174 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13175 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13176 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13177 echo "*** is required on your system"
13178 echo "***"
13179 echo "*** If you have an old version installed, it is best to remove it, although"
13180 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13181 echo "***"
13182 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13183 echo "*** came with the system with the command"
13184 echo "***"
a0b9e27f 13185 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13186else
a0b9e27f
MB
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13191 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13192 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13193 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13194fi
a0b9e27f 13195rm -f conftest*
21d1c967
GD
13196 CFLAGS="$ac_save_CFLAGS"
13197 LIBS="$ac_save_LIBS"
13198 fi
13199 fi
13200 GTK_CFLAGS=""
13201 GTK_LIBS=""
13202 :
13203 fi
a0b9e27f
MB
13204
13205
21d1c967 13206 rm -f conf.gtktest
f79bd02d 13207
2b5f62a0 13208 fi
21d1c967
GD
13209 fi
13210
13211 if test -z "$wx_cv_lib_gtk"; then
13212 wx_cv_lib_gtk=none
13213 else
13214 wx_cv_cflags_gtk=$GTK_CFLAGS
13215 wx_cv_libs_gtk=$GTK_LIBS
13216 fi
a0b9e27f
MB
13217
13218
5c6fa7d2 13219fi
52127426 13220
8284b0c5 13221
21d1c967 13222 if test "$gtk_version_cached" = 1; then
a0b9e27f 13223 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13224 fi
13225
13226 case "$wx_cv_lib_gtk" in
13227 2.0) WXGTK20=1
2b5f62a0 13228 TOOLKIT_VERSION=2
21d1c967
GD
13229 ;;
13230 1.2.7) WXGTK127=1
13231 WXGTK12=1
13232 ;;
13233 1.2.3) WXGTK12=1
13234 ;;
a0b9e27f 13235 *) { echo "configure: error:
247f5006
VZ
13236Please check that gtk-config is in path, the directory
13237where GTK+ libraries are installed (returned by
13238'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13239equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13240 " 1>&2; exit 1; }
21d1c967
GD
13241 ;;
13242 esac
13243
b13cd66e
VZ
13244 if test "$WXGTK20" = 1; then
13245 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13246
f09359cf
VS
13247 succeeded=no
13248
13249 if test -z "$PKG_CONFIG"; then
13250 # Extract the first word of "pkg-config", so it can be a program name with args.
13251set dummy pkg-config; ac_word=$2
a0b9e27f 13252echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 13253echo "configure:13254: checking for $ac_word" >&5
a0b9e27f
MB
13254if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13256else
a0b9e27f
MB
13257 case "$PKG_CONFIG" in
13258 /*)
f09359cf
VS
13259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13260 ;;
a0b9e27f
MB
13261 ?:/*)
13262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13263 ;;
f09359cf 13264 *)
a0b9e27f
MB
13265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13266 ac_dummy="$PATH"
13267 for ac_dir in $ac_dummy; do
13268 test -z "$ac_dir" && ac_dir=.
13269 if test -f $ac_dir/$ac_word; then
13270 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13271 break
13272 fi
13273 done
13274 IFS="$ac_save_ifs"
f09359cf
VS
13275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13276 ;;
13277esac
13278fi
a0b9e27f 13279PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13280if test -n "$PKG_CONFIG"; then
a0b9e27f 13281 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13282else
a0b9e27f 13283 echo "$ac_t""no" 1>&6
f09359cf
VS
13284fi
13285
13286 fi
13287
13288 if test "$PKG_CONFIG" = "no" ; then
13289 echo "*** The pkg-config script could not be found. Make sure it is"
13290 echo "*** in your path, or set the PKG_CONFIG environment variable"
13291 echo "*** to the full path to pkg-config."
13292 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13293 else
13294 PKG_CONFIG_MIN_VERSION=0.9.0
13295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13296 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
1542ea39 13297echo "configure:13298: checking for pangoft2" >&5
f09359cf
VS
13298
13299 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13300 echo "$ac_t""yes" 1>&6
f09359cf
VS
13301 succeeded=yes
13302
a0b9e27f 13303 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
1542ea39 13304echo "configure:13305: checking PANGOFT2_CFLAGS" >&5
f09359cf 13305 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13306 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13307
a0b9e27f 13308 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
1542ea39 13309echo "configure:13310: checking PANGOFT2_LIBS" >&5
f09359cf 13310 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13311 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13312 else
13313 PANGOFT2_CFLAGS=""
13314 PANGOFT2_LIBS=""
a0b9e27f 13315 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13316 ## do set a variable so people can do so.
13317 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13318
f09359cf
VS
13319 fi
13320
a0b9e27f
MB
13321
13322
f09359cf
VS
13323 else
13324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13326 fi
13327 fi
13328
13329 if test $succeeded = yes; then
a0b9e27f 13330
b13cd66e
VZ
13331 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13332 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13333
f09359cf 13334 else
a0b9e27f
MB
13335
13336 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13337 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13338
13339
f09359cf
VS
13340 fi
13341
b13cd66e 13342 fi
2b5f62a0
VZ
13343 else
13344 if test "$wxUSE_UNICODE" = "yes"; then
13345 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13346 wxUSE_UNICODE=no
13347 fi
13348 fi
13349
13350 if test "$USE_DARWIN" != 1; then
13351 for ac_func in poll
13352do
13353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 13354echo "configure:13355: checking for $ac_func" >&5
2b5f62a0
VZ
13355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357else
13358 cat > conftest.$ac_ext <<EOF
1542ea39 13359#line 13360 "configure"
2b5f62a0
VZ
13360#include "confdefs.h"
13361/* System header to define __stub macros and hopefully few prototypes,
13362 which can conflict with char $ac_func(); below. */
13363#include <assert.h>
13364/* Override any gcc2 internal prototype to avoid an error. */
13365/* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367char $ac_func();
13368
13369int main() {
13370
13371/* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13375choke me
13376#else
13377$ac_func();
13378#endif
13379
13380; return 0; }
13381EOF
1542ea39 13382if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13383 rm -rf conftest*
13384 eval "ac_cv_func_$ac_func=yes"
13385else
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=no"
13390fi
13391rm -f conftest*
13392fi
13393
13394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13397 cat >> confdefs.h <<EOF
13398#define $ac_tr_func 1
13399EOF
13400
13401else
13402 echo "$ac_t""no" 1>&6
13403fi
13404done
13405
f09359cf
VS
13406 fi
13407
21d1c967
GD
13408 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13409 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13410
13411 AFMINSTALL=afminstall
13412 TOOLKIT=GTK
13413 GUIDIST=GTK_DIST
13414
a0b9e27f 13415 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1542ea39 13416echo "configure:13417: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13417ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13418if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13420else
a0b9e27f 13421 ac_save_LIBS="$LIBS"
21d1c967 13422LIBS="-lgdk $LIBS"
a0b9e27f 13423cat > conftest.$ac_ext <<EOF
1542ea39 13424#line 13425 "configure"
90dd450c 13425#include "confdefs.h"
5c6fa7d2 13426/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13427/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13428 builtin and then its argument prototype would still apply. */
13429char gdk_im_open();
13430
13431int main() {
13432gdk_im_open()
13433; return 0; }
13434EOF
1542ea39 13435if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13436 rm -rf conftest*
13437 eval "ac_cv_lib_$ac_lib_var=yes"
13438else
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13441 rm -rf conftest*
13442 eval "ac_cv_lib_$ac_lib_var=no"
13443fi
13444rm -f conftest*
13445LIBS="$ac_save_LIBS"
13446
13447fi
13448if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 cat >> confdefs.h <<\EOF
21d1c967 13451#define HAVE_XIM 1
a0b9e27f 13452EOF
21d1c967 13453
a0b9e27f
MB
13454else
13455 echo "$ac_t""no" 1>&6
90dd450c 13456fi
1e6feb95 13457
21d1c967 13458 fi
1e6feb95 13459
21d1c967 13460 if test "$wxUSE_MGL" = 1; then
63a76696 13461 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
1542ea39 13462echo "configure:13463: checking for SciTech MGL library" >&5
21d1c967 13463 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13464 echo "$ac_t""not found" 1>&6
13465 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13466 else
a0b9e27f 13467 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13468 fi
13469
63a76696 13470 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
1542ea39 13471echo "configure:13472: checking for libmgl location" >&5
21d1c967
GD
13472 case "${host}" in
13473 *-*-linux* )
63a76696
VS
13474 if test "x$wxUSE_SHARED" = xyes ; then
13475 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13476 else
13477 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13478 fi
21d1c967
GD
13479 ;;
13480 *-pc-msdosdjgpp )
63a76696 13481 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13482 ;;
13483 *)
a0b9e27f 13484 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13485 esac
1e6feb95 13486
21d1c967 13487 mgl_lib_type=""
63a76696
VS
13488 mgl_os=""
13489
13490 for mgl_os_i in $mgl_os_candidates ; do
13491 if test "x$mgl_os" = x ; then
13492 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13493 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13494 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13495 mgl_lib_type=debug
13496 mgl_os=$mgl_os_i
13497 fi
13498 fi
13499 if test "x$mgl_lib_type" = x ; then
13500 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13501 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13502 mgl_lib_type=release
13503 mgl_os=$mgl_os_i
13504 fi
13505 fi
21d1c967 13506 fi
63a76696 13507 done
2224580a 13508
63a76696
VS
13509 if test "x$mgl_os" = x ; then
13510 echo "$ac_t""not found" 1>&6
13511 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13512 fi
13513 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13514
1d1b75ac
VZ
13515 wxUSE_UNIVERSAL="yes"
13516
21d1c967
GD
13517 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13518 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13519
90dd450c 13520 AFMINSTALL=afminstall
21d1c967
GD
13521 TOOLKIT=MGL
13522 GUIDIST=MGL_DIST
13523 fi
dad6c0ea 13524
21d1c967 13525 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13526 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
1542ea39 13527echo "configure:13528: checking for MicroWindows" >&5
21d1c967 13528 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13529 echo "$ac_t""not found" 1>&6
13530 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13531 else
a0b9e27f 13532 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13533 fi
f6bcfd97 13534
21d1c967 13535 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13536 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13537 else
a0b9e27f 13538 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13539 fi
0b2effe9 13540
21d1c967
GD
13541 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13542 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13543
1d1b75ac
VZ
13544 wxUSE_UNIVERSAL="yes"
13545
21d1c967
GD
13546 AFMINSTALL=afminstall
13547 TOOLKIT=MICROWIN
13548 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13549
13550 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13551 fi
f6bcfd97 13552
21d1c967 13553 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13554 # If we find X, set shell vars x_includes and x_libraries to the
13555# paths, otherwise set no_x=yes.
13556# Uses ac_ vars as temps to allow command line to override cache and checks.
13557# --without-x overrides everything else, but does not touch the cache.
13558echo $ac_n "checking for X""... $ac_c" 1>&6
1542ea39 13559echo "configure:13560: checking for X" >&5
d8356fa3 13560
21d1c967
GD
13561# Check whether --with-x or --without-x was given.
13562if test "${with_x+set}" = set; then
13563 withval="$with_x"
a0b9e27f
MB
13564 :
13565fi
2224580a 13566
21d1c967
GD
13567# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13568if test "x$with_x" = xno; then
13569 # The user explicitly disabled X.
13570 have_x=disabled
13571else
13572 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13573 # Both variables are already set.
13574 have_x=yes
13575 else
a0b9e27f
MB
13576if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13577 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13578else
13579 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13580ac_x_includes=NO ac_x_libraries=NO
13581rm -fr conftestdir
13582if mkdir conftestdir; then
13583 cd conftestdir
21d1c967 13584 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13585 cat > Imakefile <<'EOF'
21d1c967
GD
13586acfindx:
13587 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13588EOF
21d1c967
GD
13589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13591 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13593 for ac_extension in a so sl; do
13594 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13595 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13596 ac_im_usrlibdir=$ac_im_libdir; break
13597 fi
13598 done
13599 # Screen out bogus values from the imake configuration. They are
13600 # bogus both because they are the default anyway, and because
13601 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13602 case "$ac_im_incroot" in
21d1c967 13603 /usr/include) ;;
a0b9e27f 13604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13605 esac
a0b9e27f 13606 case "$ac_im_usrlibdir" in
21d1c967 13607 /usr/lib | /lib) ;;
a0b9e27f 13608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13609 esac
13610 fi
13611 cd ..
a0b9e27f 13612 rm -fr conftestdir
21d1c967 13613fi
10f2d63a 13614
a0b9e27f
MB
13615if test "$ac_x_includes" = NO; then
13616 # Guess where to find include files, by looking for this one X11 .h file.
13617 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13618
21d1c967 13619 # First, try using that file with no special directory specified.
a0b9e27f 13620cat > conftest.$ac_ext <<EOF
1542ea39 13621#line 13622 "configure"
21d1c967 13622#include "confdefs.h"
a0b9e27f
MB
13623#include <$x_direct_test_include>
13624EOF
13625ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 13626{ (eval echo configure:13627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13627ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13628if test -z "$ac_err"; then
13629 rm -rf conftest*
21d1c967
GD
13630 # We can compile using X headers with no special include directory.
13631ac_x_includes=
90dd450c 13632else
a0b9e27f
MB
13633 echo "$ac_err" >&5
13634 echo "configure: failed program was:" >&5
90dd450c 13635 cat conftest.$ac_ext >&5
a0b9e27f
MB
13636 rm -rf conftest*
13637 # Look for the header file in a standard set of common directories.
13638# Check X11 before X11Rn because it is often a symlink to the current release.
13639 for ac_dir in \
13640 /usr/X11/include \
13641 /usr/X11R6/include \
13642 /usr/X11R5/include \
13643 /usr/X11R4/include \
13644 \
13645 /usr/include/X11 \
13646 /usr/include/X11R6 \
13647 /usr/include/X11R5 \
13648 /usr/include/X11R4 \
13649 \
13650 /usr/local/X11/include \
13651 /usr/local/X11R6/include \
13652 /usr/local/X11R5/include \
13653 /usr/local/X11R4/include \
13654 \
13655 /usr/local/include/X11 \
13656 /usr/local/include/X11R6 \
13657 /usr/local/include/X11R5 \
13658 /usr/local/include/X11R4 \
13659 \
13660 /usr/X386/include \
13661 /usr/x386/include \
13662 /usr/XFree86/include/X11 \
13663 \
13664 /usr/include \
13665 /usr/local/include \
13666 /usr/unsupported/include \
13667 /usr/athena/include \
13668 /usr/local/x11r5/include \
13669 /usr/lpp/Xamples/include \
13670 \
13671 /usr/openwin/include \
13672 /usr/openwin/share/include \
13673 ; \
13674 do
13675 if test -r "$ac_dir/$x_direct_test_include"; then
13676 ac_x_includes=$ac_dir
13677 break
13678 fi
13679 done
3a922bb4 13680fi
a0b9e27f
MB
13681rm -f conftest*
13682fi # $ac_x_includes = NO
10f2d63a 13683
a0b9e27f 13684if test "$ac_x_libraries" = NO; then
21d1c967 13685 # Check for the libraries.
a0b9e27f
MB
13686
13687 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13688 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13689
21d1c967
GD
13690 # See if we find them without any special options.
13691 # Don't add to $LIBS permanently.
a0b9e27f
MB
13692 ac_save_LIBS="$LIBS"
13693 LIBS="-l$x_direct_test_library $LIBS"
13694cat > conftest.$ac_ext <<EOF
1542ea39 13695#line 13696 "configure"
3a922bb4 13696#include "confdefs.h"
a0b9e27f
MB
13697
13698int main() {
13699${x_direct_test_function}()
13700; return 0; }
13701EOF
1542ea39 13702if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13703 rm -rf conftest*
13704 LIBS="$ac_save_LIBS"
21d1c967
GD
13705# We can link X programs with no special library path.
13706ac_x_libraries=
3a922bb4 13707else
a0b9e27f
MB
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 LIBS="$ac_save_LIBS"
13712# First see if replacing the include by lib works.
13713# Check X11 before X11Rn because it is often a symlink to the current release.
13714for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13715 /usr/X11/lib \
13716 /usr/X11R6/lib \
13717 /usr/X11R5/lib \
13718 /usr/X11R4/lib \
13719 \
13720 /usr/lib/X11 \
13721 /usr/lib/X11R6 \
13722 /usr/lib/X11R5 \
13723 /usr/lib/X11R4 \
13724 \
13725 /usr/local/X11/lib \
13726 /usr/local/X11R6/lib \
13727 /usr/local/X11R5/lib \
13728 /usr/local/X11R4/lib \
13729 \
13730 /usr/local/lib/X11 \
13731 /usr/local/lib/X11R6 \
13732 /usr/local/lib/X11R5 \
13733 /usr/local/lib/X11R4 \
13734 \
13735 /usr/X386/lib \
13736 /usr/x386/lib \
13737 /usr/XFree86/lib/X11 \
13738 \
13739 /usr/lib \
13740 /usr/local/lib \
13741 /usr/unsupported/lib \
13742 /usr/athena/lib \
13743 /usr/local/x11r5/lib \
13744 /usr/lpp/Xamples/lib \
13745 /lib/usr/lib/X11 \
13746 \
13747 /usr/openwin/lib \
13748 /usr/openwin/share/lib \
13749 ; \
21d1c967
GD
13750do
13751 for ac_extension in a so sl; do
a0b9e27f 13752 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13753 ac_x_libraries=$ac_dir
13754 break 2
13755 fi
13756 done
13757done
3a922bb4 13758fi
a0b9e27f
MB
13759rm -f conftest*
13760fi # $ac_x_libraries = NO
90dd450c 13761
a0b9e27f 13762if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13763 # Didn't find X anywhere. Cache the known absence of X.
13764 ac_cv_have_x="have_x=no"
13765else
13766 # Record where we found X for the cache.
13767 ac_cv_have_x="have_x=yes \
13768 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13769fi
21d1c967
GD
13770fi
13771 fi
13772 eval "$ac_cv_have_x"
13773fi # $with_x != no
90dd450c 13774
21d1c967 13775if test "$have_x" != yes; then
a0b9e27f 13776 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13777 no_x=yes
13778else
13779 # If each of the values was on the command line, it overrides each guess.
13780 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13781 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13782 # Update the cache value to reflect the command line values.
13783 ac_cv_have_x="have_x=yes \
13784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13785 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13786fi
90dd450c 13787
21d1c967 13788if test "$no_x" = yes; then
90dd450c 13789 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13790 cat >> confdefs.h <<\EOF
90dd450c 13791#define X_DISPLAY_MISSING 1
a0b9e27f 13792EOF
90dd450c
VZ
13793
13794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13795else
13796 if test -n "$x_includes"; then
13797 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13798 fi
3a922bb4 13799
90dd450c
VZ
13800 # It would also be nice to do this for all -L options, not just this one.
13801 if test -n "$x_libraries"; then
13802 X_LIBS="$X_LIBS -L$x_libraries"
13803 # For Solaris; some versions of Sun CC require a space after -R and
13804 # others require no space. Words are not sufficient . . . .
a0b9e27f 13805 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13806 "SunOS 5"*)
a0b9e27f 13807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1542ea39 13808echo "configure:13809: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13810 cat > conftest.$ac_ext <<EOF
1542ea39 13811#line 13812 "configure"
90dd450c
VZ
13812#include "confdefs.h"
13813
a0b9e27f 13814int main() {
90dd450c 13815
a0b9e27f
MB
13816; return 0; }
13817EOF
1542ea39 13818if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13819 rm -rf conftest*
90dd450c 13820 ac_R_nospace=yes
3a922bb4 13821else
a0b9e27f
MB
13822 echo "configure: failed program was:" >&5
13823 cat conftest.$ac_ext >&5
13824 rm -rf conftest*
13825 ac_R_nospace=no
3a922bb4 13826fi
a0b9e27f 13827rm -f conftest*
90dd450c 13828 if test $ac_R_nospace = yes; then
a0b9e27f 13829 echo "$ac_t""no" 1>&6
90dd450c
VZ
13830 X_LIBS="$X_LIBS -R$x_libraries"
13831 else
13832 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13833 cat > conftest.$ac_ext <<EOF
1542ea39 13834#line 13835 "configure"
90dd450c 13835#include "confdefs.h"
3a922bb4 13836
a0b9e27f 13837int main() {
6f754473 13838
a0b9e27f
MB
13839; return 0; }
13840EOF
1542ea39 13841if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13842 rm -rf conftest*
90dd450c
VZ
13843 ac_R_space=yes
13844else
a0b9e27f
MB
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 rm -rf conftest*
13848 ac_R_space=no
90dd450c 13849fi
a0b9e27f 13850rm -f conftest*
90dd450c 13851 if test $ac_R_space = yes; then
a0b9e27f 13852 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13853 X_LIBS="$X_LIBS -R $x_libraries"
13854 else
a0b9e27f 13855 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13856 fi
13857 fi
a0b9e27f 13858 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13859 esac
13860 fi
13861
13862 # Check for system-dependent libraries X programs must link with.
13863 # Do this before checking for the system-independent R6 libraries
13864 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13865
90dd450c
VZ
13866 if test "$ISC" = yes; then
13867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13868 else
a0b9e27f
MB
13869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13870 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13871 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1542ea39 13873echo "configure:13874: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13874ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13877else
a0b9e27f 13878 ac_save_LIBS="$LIBS"
247f5006 13879LIBS="-ldnet $LIBS"
a0b9e27f 13880cat > conftest.$ac_ext <<EOF
1542ea39 13881#line 13882 "configure"
247f5006 13882#include "confdefs.h"
247f5006 13883/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13884/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13885 builtin and then its argument prototype would still apply. */
13886char dnet_ntoa();
13887
13888int main() {
13889dnet_ntoa()
13890; return 0; }
13891EOF
1542ea39 13892if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13893 rm -rf conftest*
13894 eval "ac_cv_lib_$ac_lib_var=yes"
13895else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 eval "ac_cv_lib_$ac_lib_var=no"
13900fi
13901rm -f conftest*
13902LIBS="$ac_save_LIBS"
13903
13904fi
13905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13906 echo "$ac_t""yes" 1>&6
90dd450c 13907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13908else
13909 echo "$ac_t""no" 1>&6
3a922bb4
RL
13910fi
13911
90dd450c 13912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1542ea39 13914echo "configure:13915: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13915ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13918else
a0b9e27f 13919 ac_save_LIBS="$LIBS"
90dd450c 13920LIBS="-ldnet_stub $LIBS"
a0b9e27f 13921cat > conftest.$ac_ext <<EOF
1542ea39 13922#line 13923 "configure"
90dd450c
VZ
13923#include "confdefs.h"
13924/* Override any gcc2 internal prototype to avoid an error. */
13925/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13926 builtin and then its argument prototype would still apply. */
13927char dnet_ntoa();
13928
13929int main() {
13930dnet_ntoa()
13931; return 0; }
13932EOF
1542ea39 13933if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13934 rm -rf conftest*
13935 eval "ac_cv_lib_$ac_lib_var=yes"
13936else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 eval "ac_cv_lib_$ac_lib_var=no"
13941fi
13942rm -f conftest*
13943LIBS="$ac_save_LIBS"
13944
13945fi
13946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
90dd450c 13948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13949else
13950 echo "$ac_t""no" 1>&6
3a922bb4
RL
13951fi
13952
90dd450c 13953 fi
978f1259 13954
90dd450c
VZ
13955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13956 # to get the SysV transport functions.
a0b9e27f 13957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13958 # needs -lnsl.
13959 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13960 # on Irix 5.2, according to dickey@clark.net.
13961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1542ea39 13962echo "configure:13963: checking for gethostbyname" >&5
a0b9e27f
MB
13963if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965else
13966 cat > conftest.$ac_ext <<EOF
1542ea39 13967#line 13968 "configure"
90dd450c
VZ
13968#include "confdefs.h"
13969/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13970 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13971#include <assert.h>
13972/* Override any gcc2 internal prototype to avoid an error. */
13973/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13974 builtin and then its argument prototype would still apply. */
13975char gethostbyname();
13976
13977int main() {
13978
90dd450c
VZ
13979/* The GNU C library defines this for functions which it implements
13980 to always fail with ENOSYS. Some functions are actually named
13981 something starting with __ and the normal name is an alias. */
13982#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13983choke me
13984#else
a0b9e27f 13985gethostbyname();
90dd450c 13986#endif
978f1259 13987
a0b9e27f
MB
13988; return 0; }
13989EOF
1542ea39 13990if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13991 rm -rf conftest*
13992 eval "ac_cv_func_gethostbyname=yes"
13993else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_func_gethostbyname=no"
13998fi
13999rm -f conftest*
14000fi
14001
14002if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14003 echo "$ac_t""yes" 1>&6
14004 :
14005else
14006 echo "$ac_t""no" 1>&6
14007fi
698dcdb6 14008
90dd450c 14009 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1542ea39 14011echo "configure:14012: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14012ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14015else
a0b9e27f 14016 ac_save_LIBS="$LIBS"
90dd450c 14017LIBS="-lnsl $LIBS"
a0b9e27f 14018cat > conftest.$ac_ext <<EOF
1542ea39 14019#line 14020 "configure"
90dd450c
VZ
14020#include "confdefs.h"
14021/* Override any gcc2 internal prototype to avoid an error. */
14022/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14023 builtin and then its argument prototype would still apply. */
14024char gethostbyname();
5c6fa7d2 14025
a0b9e27f
MB
14026int main() {
14027gethostbyname()
14028; return 0; }
14029EOF
1542ea39 14030if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14031 rm -rf conftest*
14032 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14033else
a0b9e27f
MB
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
14037 eval "ac_cv_lib_$ac_lib_var=no"
14038fi
14039rm -f conftest*
14040LIBS="$ac_save_LIBS"
247f5006 14041
a0b9e27f
MB
14042fi
14043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14046else
14047 echo "$ac_t""no" 1>&6
90dd450c 14048fi
b12915c1 14049
90dd450c
VZ
14050 fi
14051
14052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14053 # socket/setsockopt and other routines are undefined under SCO ODT
14054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14055 # on later versions), says simon@lia.di.epfl.ch: it contains
14056 # gethostby* variants that don't use the nameserver (or something).
14057 # -lsocket must be given before -lnsl if both are needed.
14058 # We assume that if connect needs -lnsl, so does gethostbyname.
14059 echo $ac_n "checking for connect""... $ac_c" 1>&6
1542ea39 14060echo "configure:14061: checking for connect" >&5
a0b9e27f
MB
14061if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063else
14064 cat > conftest.$ac_ext <<EOF
1542ea39 14065#line 14066 "configure"
55e80573 14066#include "confdefs.h"
90dd450c 14067/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14068 which can conflict with char connect(); below. */
90dd450c
VZ
14069#include <assert.h>
14070/* Override any gcc2 internal prototype to avoid an error. */
14071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14072 builtin and then its argument prototype would still apply. */
14073char connect();
14074
14075int main() {
14076
90dd450c
VZ
14077/* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080#if defined (__stub_connect) || defined (__stub___connect)
14081choke me
14082#else
a0b9e27f 14083connect();
90dd450c
VZ
14084#endif
14085
a0b9e27f
MB
14086; return 0; }
14087EOF
1542ea39 14088if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14089 rm -rf conftest*
14090 eval "ac_cv_func_connect=yes"
14091else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -rf conftest*
14095 eval "ac_cv_func_connect=no"
14096fi
14097rm -f conftest*
14098fi
14099
14100if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14101 echo "$ac_t""yes" 1>&6
14102 :
14103else
14104 echo "$ac_t""no" 1>&6
14105fi
55e80573 14106
90dd450c 14107 if test $ac_cv_func_connect = no; then
a0b9e27f 14108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1542ea39 14109echo "configure:14110: checking for connect in -lsocket" >&5
a0b9e27f
MB
14110ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14113else
a0b9e27f 14114 ac_save_LIBS="$LIBS"
90dd450c 14115LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14116cat > conftest.$ac_ext <<EOF
1542ea39 14117#line 14118 "configure"
90dd450c
VZ
14118#include "confdefs.h"
14119/* Override any gcc2 internal prototype to avoid an error. */
14120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14121 builtin and then its argument prototype would still apply. */
14122char connect();
14123
14124int main() {
14125connect()
14126; return 0; }
14127EOF
1542ea39 14128if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14129 rm -rf conftest*
14130 eval "ac_cv_lib_$ac_lib_var=yes"
14131else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_lib_$ac_lib_var=no"
14136fi
14137rm -f conftest*
14138LIBS="$ac_save_LIBS"
14139
14140fi
14141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14142 echo "$ac_t""yes" 1>&6
90dd450c 14143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14144else
14145 echo "$ac_t""no" 1>&6
90dd450c 14146fi
77e13408 14147
90dd450c 14148 fi
25d0687a 14149
a0b9e27f
MB
14150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14151 echo $ac_n "checking for remove""... $ac_c" 1>&6
1542ea39 14152echo "configure:14153: checking for remove" >&5
a0b9e27f
MB
14153if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14154 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14155else
a0b9e27f 14156 cat > conftest.$ac_ext <<EOF
1542ea39 14157#line 14158 "configure"
90dd450c
VZ
14158#include "confdefs.h"
14159/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14160 which can conflict with char remove(); below. */
90dd450c
VZ
14161#include <assert.h>
14162/* Override any gcc2 internal prototype to avoid an error. */
14163/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14164 builtin and then its argument prototype would still apply. */
14165char remove();
14166
14167int main() {
14168
90dd450c
VZ
14169/* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172#if defined (__stub_remove) || defined (__stub___remove)
14173choke me
14174#else
a0b9e27f 14175remove();
90dd450c 14176#endif
55e80573 14177
a0b9e27f
MB
14178; return 0; }
14179EOF
1542ea39 14180if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14181 rm -rf conftest*
14182 eval "ac_cv_func_remove=yes"
14183else
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_func_remove=no"
14188fi
14189rm -f conftest*
14190fi
14191
14192if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14193 echo "$ac_t""yes" 1>&6
14194 :
14195else
14196 echo "$ac_t""no" 1>&6
14197fi
10f2d63a 14198
90dd450c 14199 if test $ac_cv_func_remove = no; then
a0b9e27f 14200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542ea39 14201echo "configure:14202: checking for remove in -lposix" >&5
a0b9e27f
MB
14202ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14205else
a0b9e27f 14206 ac_save_LIBS="$LIBS"
90dd450c 14207LIBS="-lposix $LIBS"
a0b9e27f 14208cat > conftest.$ac_ext <<EOF
1542ea39 14209#line 14210 "configure"
90dd450c
VZ
14210#include "confdefs.h"
14211/* Override any gcc2 internal prototype to avoid an error. */
14212/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14213 builtin and then its argument prototype would still apply. */
14214char remove();
14215
14216int main() {
14217remove()
14218; return 0; }
14219EOF
1542ea39 14220if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14221 rm -rf conftest*
14222 eval "ac_cv_lib_$ac_lib_var=yes"
14223else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=no"
14228fi
14229rm -f conftest*
14230LIBS="$ac_save_LIBS"
14231
14232fi
14233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14234 echo "$ac_t""yes" 1>&6
90dd450c 14235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14236else
14237 echo "$ac_t""no" 1>&6
90dd450c 14238fi
f6bcfd97 14239
6fa882bd
RR
14240 fi
14241
90dd450c 14242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1542ea39 14244echo "configure:14245: checking for shmat" >&5
a0b9e27f
MB
14245if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14247else
a0b9e27f 14248 cat > conftest.$ac_ext <<EOF
1542ea39 14249#line 14250 "configure"
90dd450c
VZ
14250#include "confdefs.h"
14251/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14252 which can conflict with char shmat(); below. */
90dd450c
VZ
14253#include <assert.h>
14254/* Override any gcc2 internal prototype to avoid an error. */
14255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14256 builtin and then its argument prototype would still apply. */
14257char shmat();
14258
14259int main() {
14260
90dd450c
VZ
14261/* The GNU C library defines this for functions which it implements
14262 to always fail with ENOSYS. Some functions are actually named
14263 something starting with __ and the normal name is an alias. */
14264#if defined (__stub_shmat) || defined (__stub___shmat)
14265choke me
14266#else
a0b9e27f 14267shmat();
90dd450c 14268#endif
10f2d63a 14269
a0b9e27f
MB
14270; return 0; }
14271EOF
1542ea39 14272if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14273 rm -rf conftest*
14274 eval "ac_cv_func_shmat=yes"
14275else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_func_shmat=no"
14280fi
14281rm -f conftest*
14282fi
14283
14284if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14285 echo "$ac_t""yes" 1>&6
14286 :
14287else
14288 echo "$ac_t""no" 1>&6
14289fi
d08b457b 14290
90dd450c 14291 if test $ac_cv_func_shmat = no; then
a0b9e27f 14292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1542ea39 14293echo "configure:14294: checking for shmat in -lipc" >&5
a0b9e27f
MB
14294ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14297else
a0b9e27f 14298 ac_save_LIBS="$LIBS"
90dd450c 14299LIBS="-lipc $LIBS"
a0b9e27f 14300cat > conftest.$ac_ext <<EOF
1542ea39 14301#line 14302 "configure"
90dd450c 14302#include "confdefs.h"
8284b0c5 14303/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14304/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14305 builtin and then its argument prototype would still apply. */
14306char shmat();
14307
14308int main() {
14309shmat()
14310; return 0; }
14311EOF
1542ea39 14312if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14313 rm -rf conftest*
14314 eval "ac_cv_lib_$ac_lib_var=yes"
14315else
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 rm -rf conftest*
14319 eval "ac_cv_lib_$ac_lib_var=no"
14320fi
14321rm -f conftest*
14322LIBS="$ac_save_LIBS"
14323
14324fi
14325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
90dd450c 14327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14328else
14329 echo "$ac_t""no" 1>&6
d08b457b
GD
14330fi
14331
d558c907 14332 fi
90dd450c 14333 fi
3a922bb4 14334
90dd450c 14335 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14336 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14339 # check for ICE first), but we must link in the order -lSM -lICE or
14340 # we get undefined symbols. So assume we have SM if we have ICE.
14341 # These have to be linked with before -lX11, unlike the other
14342 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1542ea39 14345echo "configure:14346: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14346ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349else
14350 ac_save_LIBS="$LIBS"
f09359cf 14351LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14352cat > conftest.$ac_ext <<EOF
1542ea39 14353#line 14354 "configure"
9cfadba2 14354#include "confdefs.h"
90dd450c
VZ
14355/* Override any gcc2 internal prototype to avoid an error. */
14356/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14357 builtin and then its argument prototype would still apply. */
14358char IceConnectionNumber();
14359
14360int main() {
14361IceConnectionNumber()
14362; return 0; }
14363EOF
1542ea39 14364if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14365 rm -rf conftest*
14366 eval "ac_cv_lib_$ac_lib_var=yes"
14367else
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 rm -rf conftest*
14371 eval "ac_cv_lib_$ac_lib_var=no"
14372fi
14373rm -f conftest*
14374LIBS="$ac_save_LIBS"
14375
14376fi
14377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
90dd450c 14379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14380else
14381 echo "$ac_t""no" 1>&6
9cfadba2 14382fi
10f2d63a 14383
a0b9e27f 14384 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14385
14386fi
14387
8284b0c5 14388
90dd450c 14389 if test "$no_x" = "yes"; then
a0b9e27f 14390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14391 fi
14392
14393 GUI_TK_LIBRARY="$X_LIBS"
14394 TOOLKIT_INCLUDE="$X_CFLAGS"
14395 AFMINSTALL=afminstall
14396 COMPILED_X_PROGRAM=0
14397
21d1c967 14398 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14399 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
1542ea39 14400echo "configure:14401: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14401 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14402 echo "$ac_t""not found" 1>&6
14403 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14404 else
a0b9e27f
MB
14405 echo "$ac_t""$MICROWIN" 1>&6
14406 cat >> confdefs.h <<\EOF
21d1c967 14407#define wxUSE_NANOX 1
a0b9e27f 14408EOF
21d1c967 14409
90dd450c
VZ
14410 fi
14411 fi
14412
14413 xpm_link=
a0b9e27f 14414 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1542ea39 14415echo "configure:14416: checking for Xpm library" >&5
a0b9e27f 14416
90dd450c 14417ac_find_libraries=
2b5f62a0 14418for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14419 do
14420 for ac_extension in a so sl dylib; do
14421 if test -f "$ac_dir/libXpm.$ac_extension"; then
14422 ac_find_libraries=$ac_dir
14423 break 2
14424 fi
14425 done
14426 done
14427
14428 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14429
90dd450c
VZ
14430 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14431 result=$?
14432 if test $result = 0; then
14433 ac_path_to_link=""
14434 else
14435 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14436 fi
90dd450c 14437
21d1c967
GD
14438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14439 xpm_link=" -lXpm"
a0b9e27f 14440 cat >> confdefs.h <<\EOF
21d1c967 14441#define wxHAVE_LIB_XPM 1
a0b9e27f 14442EOF
90dd450c 14443
a0b9e27f 14444 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14445 else
a0b9e27f 14446 cat > conftest.$ac_ext <<EOF
1542ea39 14447#line 14448 "configure"
21d1c967 14448#include "confdefs.h"
90dd450c 14449
21d1c967 14450 #include <X11/xpm.h>
a0b9e27f
MB
14451
14452int main() {
6f72b082 14453
21d1c967
GD
14454 int version;
14455 version = XpmLibraryVersion();
a0b9e27f
MB
14456
14457; return 0; }
14458EOF
1542ea39 14459if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14460 rm -rf conftest*
14461
21d1c967 14462 xpm_link=" -lXpm"
a0b9e27f 14463 cat >> confdefs.h <<\EOF
21d1c967 14464#define wxHAVE_LIB_XPM 1
a0b9e27f 14465EOF
90dd450c 14466
a0b9e27f 14467 echo "$ac_t""found in default search path" 1>&6
21d1c967 14468 COMPILED_X_PROGRAM=0
a0b9e27f 14469
21d1c967 14470else
a0b9e27f
MB
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474
14475 echo "$ac_t""no" 1>&6
14476 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14477
14478
6f72b082 14479fi
a0b9e27f 14480rm -f conftest*
21d1c967 14481 fi
90dd450c 14482
2b5f62a0
VZ
14483 if test "$wxUSE_UNICODE" = "yes"; then
14484
14485 succeeded=no
90dd450c 14486
2b5f62a0
VZ
14487 if test -z "$PKG_CONFIG"; then
14488 # Extract the first word of "pkg-config", so it can be a program name with args.
14489set dummy pkg-config; ac_word=$2
14490echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 14491echo "configure:14492: checking for $ac_word" >&5
2b5f62a0 14492if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14493 echo $ac_n "(cached) $ac_c" 1>&6
14494else
2b5f62a0
VZ
14495 case "$PKG_CONFIG" in
14496 /*)
14497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14498 ;;
14499 ?:/*)
14500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14501 ;;
14502 *)
14503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14504 ac_dummy="$PATH"
14505 for ac_dir in $ac_dummy; do
14506 test -z "$ac_dir" && ac_dir=.
14507 if test -f $ac_dir/$ac_word; then
14508 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14509 break
14510 fi
14511 done
14512 IFS="$ac_save_ifs"
14513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14514 ;;
14515esac
14516fi
14517PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14518if test -n "$PKG_CONFIG"; then
14519 echo "$ac_t""$PKG_CONFIG" 1>&6
14520else
14521 echo "$ac_t""no" 1>&6
14522fi
14523
14524 fi
14525
14526 if test "$PKG_CONFIG" = "no" ; then
14527 echo "*** The pkg-config script could not be found. Make sure it is"
14528 echo "*** in your path, or set the PKG_CONFIG environment variable"
14529 echo "*** to the full path to pkg-config."
14530 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14531 else
14532 PKG_CONFIG_MIN_VERSION=0.9.0
14533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14534 echo $ac_n "checking for pangox""... $ac_c" 1>&6
1542ea39 14535echo "configure:14536: checking for pangox" >&5
2b5f62a0
VZ
14536
14537 if $PKG_CONFIG --exists "pangox" ; then
14538 echo "$ac_t""yes" 1>&6
14539 succeeded=yes
14540
14541 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
1542ea39 14542echo "configure:14543: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14543 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14544 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14545
14546 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
1542ea39 14547echo "configure:14548: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14548 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14549 echo "$ac_t""$PANGOX_LIBS" 1>&6
14550 else
14551 PANGOX_CFLAGS=""
14552 PANGOX_LIBS=""
14553 ## If we have a custom action on failure, don't print errors, but
14554 ## do set a variable so people can do so.
14555 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14556
14557 fi
14558
14559
14560
14561 else
14562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14564 fi
14565 fi
14566
14567 if test $succeeded = yes; then
14568
14569 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14570 LIBS="$LIBS $PANGOX_LIBS"
14571
14572 else
14573
14574 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14575
14576
14577 fi
14578
14579
14580 succeeded=no
14581
14582 if test -z "$PKG_CONFIG"; then
14583 # Extract the first word of "pkg-config", so it can be a program name with args.
14584set dummy pkg-config; ac_word=$2
14585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 14586echo "configure:14587: checking for $ac_word" >&5
2b5f62a0
VZ
14587if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589else
14590 case "$PKG_CONFIG" in
14591 /*)
14592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14593 ;;
14594 ?:/*)
14595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14596 ;;
14597 *)
14598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14599 ac_dummy="$PATH"
14600 for ac_dir in $ac_dummy; do
14601 test -z "$ac_dir" && ac_dir=.
14602 if test -f $ac_dir/$ac_word; then
14603 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14604 break
14605 fi
14606 done
14607 IFS="$ac_save_ifs"
14608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14609 ;;
14610esac
14611fi
14612PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14613if test -n "$PKG_CONFIG"; then
14614 echo "$ac_t""$PKG_CONFIG" 1>&6
14615else
14616 echo "$ac_t""no" 1>&6
14617fi
14618
14619 fi
14620
14621 if test "$PKG_CONFIG" = "no" ; then
14622 echo "*** The pkg-config script could not be found. Make sure it is"
14623 echo "*** in your path, or set the PKG_CONFIG environment variable"
14624 echo "*** to the full path to pkg-config."
14625 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14626 else
14627 PKG_CONFIG_MIN_VERSION=0.9.0
14628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14629 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
1542ea39 14630echo "configure:14631: checking for pangoft2" >&5
2b5f62a0
VZ
14631
14632 if $PKG_CONFIG --exists "pangoft2" ; then
14633 echo "$ac_t""yes" 1>&6
14634 succeeded=yes
14635
14636 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
1542ea39 14637echo "configure:14638: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14638 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14639 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14640
14641 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
1542ea39 14642echo "configure:14643: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14643 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14644 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14645 else
14646 PANGOFT2_CFLAGS=""
14647 PANGOFT2_LIBS=""
14648 ## If we have a custom action on failure, don't print errors, but
14649 ## do set a variable so people can do so.
14650 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14651
14652 fi
14653
14654
14655
14656 else
14657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14659 fi
14660 fi
14661
14662 if test $succeeded = yes; then
14663
14664 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14665 LIBS="$LIBS $PANGOFT2_LIBS"
14666
14667 else
14668
14669 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14670 wxUSE_PRINTING_ARCHITECTURE="no"
14671
14672
14673 fi
14674
14675
14676 succeeded=no
14677
14678 if test -z "$PKG_CONFIG"; then
14679 # Extract the first word of "pkg-config", so it can be a program name with args.
14680set dummy pkg-config; ac_word=$2
14681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 14682echo "configure:14683: checking for $ac_word" >&5
2b5f62a0
VZ
14683if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685else
14686 case "$PKG_CONFIG" in
14687 /*)
14688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14689 ;;
14690 ?:/*)
14691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14692 ;;
14693 *)
14694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14695 ac_dummy="$PATH"
14696 for ac_dir in $ac_dummy; do
14697 test -z "$ac_dir" && ac_dir=.
14698 if test -f $ac_dir/$ac_word; then
14699 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14700 break
14701 fi
14702 done
14703 IFS="$ac_save_ifs"
14704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14705 ;;
14706esac
14707fi
14708PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14709if test -n "$PKG_CONFIG"; then
14710 echo "$ac_t""$PKG_CONFIG" 1>&6
14711else
14712 echo "$ac_t""no" 1>&6
14713fi
14714
14715 fi
14716
14717 if test "$PKG_CONFIG" = "no" ; then
14718 echo "*** The pkg-config script could not be found. Make sure it is"
14719 echo "*** in your path, or set the PKG_CONFIG environment variable"
14720 echo "*** to the full path to pkg-config."
14721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14722 else
14723 PKG_CONFIG_MIN_VERSION=0.9.0
14724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14725 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
1542ea39 14726echo "configure:14727: checking for pangoxft" >&5
2b5f62a0
VZ
14727
14728 if $PKG_CONFIG --exists "pangoxft" ; then
14729 echo "$ac_t""yes" 1>&6
14730 succeeded=yes
14731
14732 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
1542ea39 14733echo "configure:14734: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14734 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14735 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14736
14737 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
1542ea39 14738echo "configure:14739: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14739 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14740 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14741 else
14742 PANGOXFT_CFLAGS=""
14743 PANGOXFT_LIBS=""
14744 ## If we have a custom action on failure, don't print errors, but
14745 ## do set a variable so people can do so.
14746 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14747
14748 fi
14749
14750
14751
14752 else
14753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14755 fi
14756 fi
14757
14758 if test $succeeded = yes; then
14759
14760 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14761 LIBS="$LIBS $PANGOXFT_LIBS"
14762
14763 else
14764
14765 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14766
14767
14768 fi
14769
14770 fi
14771
14772 wxUSE_UNIVERSAL="yes"
14773
14774 if test "$wxUSE_NANOX" = "yes"; then
14775 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14776 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"
14777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14778 else
14779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14780 fi
14781
14782 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14783 TOOLKIT=X11
14784 GUIDIST=X11_DIST
14785 fi
14786
21d1c967
GD
14787 if test "$wxUSE_MOTIF" = 1; then
14788 if test "$no_x" = yes; then
14789 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14790 cat >> confdefs.h <<\EOF
21d1c967 14791#define X_DISPLAY_MISSING 1
a0b9e27f 14792EOF
21d1c967
GD
14793
14794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14795else
14796 if test -n "$x_includes"; then
14797 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14798 fi
14799
21d1c967
GD
14800 # It would also be nice to do this for all -L options, not just this one.
14801 if test -n "$x_libraries"; then
14802 X_LIBS="$X_LIBS -L$x_libraries"
14803 # For Solaris; some versions of Sun CC require a space after -R and
14804 # others require no space. Words are not sufficient . . . .
a0b9e27f 14805 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14806 "SunOS 5"*)
a0b9e27f 14807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1542ea39 14808echo "configure:14809: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14810 cat > conftest.$ac_ext <<EOF
1542ea39 14811#line 14812 "configure"
21d1c967
GD
14812#include "confdefs.h"
14813
a0b9e27f 14814int main() {
21d1c967 14815
a0b9e27f
MB
14816; return 0; }
14817EOF
1542ea39 14818if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14819 rm -rf conftest*
21d1c967 14820 ac_R_nospace=yes
698dcdb6 14821else
a0b9e27f
MB
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
14825 ac_R_nospace=no
10f2d63a 14826fi
a0b9e27f 14827rm -f conftest*
21d1c967 14828 if test $ac_R_nospace = yes; then
a0b9e27f 14829 echo "$ac_t""no" 1>&6
21d1c967
GD
14830 X_LIBS="$X_LIBS -R$x_libraries"
14831 else
14832 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14833 cat > conftest.$ac_ext <<EOF
1542ea39 14834#line 14835 "configure"
21d1c967 14835#include "confdefs.h"
10f2d63a 14836
a0b9e27f 14837int main() {
f0c87536 14838
a0b9e27f
MB
14839; return 0; }
14840EOF
1542ea39 14841if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14842 rm -rf conftest*
21d1c967
GD
14843 ac_R_space=yes
14844else
a0b9e27f
MB
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 ac_R_space=no
21d1c967 14849fi
a0b9e27f 14850rm -f conftest*
21d1c967 14851 if test $ac_R_space = yes; then
a0b9e27f 14852 echo "$ac_t""yes" 1>&6
21d1c967
GD
14853 X_LIBS="$X_LIBS -R $x_libraries"
14854 else
a0b9e27f 14855 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14856 fi
14857 fi
a0b9e27f 14858 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14859 esac
14860 fi
90dd450c 14861
21d1c967
GD
14862 # Check for system-dependent libraries X programs must link with.
14863 # Do this before checking for the system-independent R6 libraries
14864 # (-lICE), since we may need -lsocket or whatever for X linking.
14865
14866 if test "$ISC" = yes; then
14867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14868 else
a0b9e27f
MB
14869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14870 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14871 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1542ea39 14873echo "configure:14874: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14874ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14877else
a0b9e27f 14878 ac_save_LIBS="$LIBS"
247f5006 14879LIBS="-ldnet $LIBS"
a0b9e27f 14880cat > conftest.$ac_ext <<EOF
1542ea39 14881#line 14882 "configure"
247f5006 14882#include "confdefs.h"
247f5006 14883/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14884/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14885 builtin and then its argument prototype would still apply. */
14886char dnet_ntoa();
14887
14888int main() {
14889dnet_ntoa()
14890; return 0; }
14891EOF
1542ea39 14892if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14893 rm -rf conftest*
14894 eval "ac_cv_lib_$ac_lib_var=yes"
14895else
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 rm -rf conftest*
14899 eval "ac_cv_lib_$ac_lib_var=no"
14900fi
14901rm -f conftest*
14902LIBS="$ac_save_LIBS"
14903
14904fi
14905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14906 echo "$ac_t""yes" 1>&6
21d1c967 14907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14908else
14909 echo "$ac_t""no" 1>&6
0fb0dd83 14910fi
0fb0dd83 14911
21d1c967 14912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1542ea39 14914echo "configure:14915: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14915ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14918else
a0b9e27f 14919 ac_save_LIBS="$LIBS"
21d1c967 14920LIBS="-ldnet_stub $LIBS"
a0b9e27f 14921cat > conftest.$ac_ext <<EOF
1542ea39 14922#line 14923 "configure"
21d1c967
GD
14923#include "confdefs.h"
14924/* Override any gcc2 internal prototype to avoid an error. */
14925/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14926 builtin and then its argument prototype would still apply. */
14927char dnet_ntoa();
14928
14929int main() {
14930dnet_ntoa()
14931; return 0; }
14932EOF
1542ea39 14933if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14934 rm -rf conftest*
14935 eval "ac_cv_lib_$ac_lib_var=yes"
14936else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=no"
14941fi
14942rm -f conftest*
14943LIBS="$ac_save_LIBS"
14944
14945fi
14946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14947 echo "$ac_t""yes" 1>&6
21d1c967 14948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14949else
14950 echo "$ac_t""no" 1>&6
90dd450c
VZ
14951fi
14952
21d1c967 14953 fi
90dd450c 14954
21d1c967
GD
14955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14956 # to get the SysV transport functions.
a0b9e27f 14957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14958 # needs -lnsl.
14959 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14960 # on Irix 5.2, according to dickey@clark.net.
14961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1542ea39 14962echo "configure:14963: checking for gethostbyname" >&5
a0b9e27f
MB
14963if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14964 echo $ac_n "(cached) $ac_c" 1>&6
14965else
14966 cat > conftest.$ac_ext <<EOF
1542ea39 14967#line 14968 "configure"
21d1c967
GD
14968#include "confdefs.h"
14969/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14970 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14971#include <assert.h>
14972/* Override any gcc2 internal prototype to avoid an error. */
14973/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14974 builtin and then its argument prototype would still apply. */
14975char gethostbyname();
14976
14977int main() {
14978
21d1c967
GD
14979/* The GNU C library defines this for functions which it implements
14980 to always fail with ENOSYS. Some functions are actually named
14981 something starting with __ and the normal name is an alias. */
14982#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14983choke me
14984#else
a0b9e27f 14985gethostbyname();
21d1c967 14986#endif
90dd450c 14987
a0b9e27f
MB
14988; return 0; }
14989EOF
1542ea39 14990if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14991 rm -rf conftest*
14992 eval "ac_cv_func_gethostbyname=yes"
14993else
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -rf conftest*
14997 eval "ac_cv_func_gethostbyname=no"
14998fi
14999rm -f conftest*
15000fi
15001
15002if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15003 echo "$ac_t""yes" 1>&6
15004 :
15005else
15006 echo "$ac_t""no" 1>&6
15007fi
90dd450c 15008
21d1c967 15009 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 15010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1542ea39 15011echo "configure:15012: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
15012ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15015else
a0b9e27f 15016 ac_save_LIBS="$LIBS"
21d1c967 15017LIBS="-lnsl $LIBS"
a0b9e27f 15018cat > conftest.$ac_ext <<EOF
1542ea39 15019#line 15020 "configure"
21d1c967
GD
15020#include "confdefs.h"
15021/* Override any gcc2 internal prototype to avoid an error. */
15022/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15023 builtin and then its argument prototype would still apply. */
15024char gethostbyname();
5c6fa7d2 15025
a0b9e27f
MB
15026int main() {
15027gethostbyname()
15028; return 0; }
15029EOF
1542ea39 15030if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15031 rm -rf conftest*
15032 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 15033else
a0b9e27f
MB
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
15037 eval "ac_cv_lib_$ac_lib_var=no"
15038fi
15039rm -f conftest*
15040LIBS="$ac_save_LIBS"
247f5006 15041
a0b9e27f
MB
15042fi
15043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15044 echo "$ac_t""yes" 1>&6
15045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15046else
15047 echo "$ac_t""no" 1>&6
21d1c967 15048fi
90dd450c 15049
90dd450c
VZ
15050 fi
15051
21d1c967
GD
15052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15053 # socket/setsockopt and other routines are undefined under SCO ODT
15054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15055 # on later versions), says simon@lia.di.epfl.ch: it contains
15056 # gethostby* variants that don't use the nameserver (or something).
15057 # -lsocket must be given before -lnsl if both are needed.
15058 # We assume that if connect needs -lnsl, so does gethostbyname.
15059 echo $ac_n "checking for connect""... $ac_c" 1>&6
1542ea39 15060echo "configure:15061: checking for connect" >&5
a0b9e27f
MB
15061if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15063else
15064 cat > conftest.$ac_ext <<EOF
1542ea39 15065#line 15066 "configure"
21d1c967
GD
15066#include "confdefs.h"
15067/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15068 which can conflict with char connect(); below. */
21d1c967
GD
15069#include <assert.h>
15070/* Override any gcc2 internal prototype to avoid an error. */
15071/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15072 builtin and then its argument prototype would still apply. */
15073char connect();
15074
15075int main() {
15076
21d1c967
GD
15077/* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080#if defined (__stub_connect) || defined (__stub___connect)
15081choke me
15082#else
a0b9e27f 15083connect();
21d1c967 15084#endif
90dd450c 15085
a0b9e27f
MB
15086; return 0; }
15087EOF
1542ea39 15088if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15089 rm -rf conftest*
15090 eval "ac_cv_func_connect=yes"
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_func_connect=no"
15096fi
15097rm -f conftest*
15098fi
15099
15100if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 :
15103else
15104 echo "$ac_t""no" 1>&6
15105fi
1f8ae82f 15106
21d1c967 15107 if test $ac_cv_func_connect = no; then
a0b9e27f 15108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1542ea39 15109echo "configure:15110: checking for connect in -lsocket" >&5
a0b9e27f
MB
15110ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15113else
a0b9e27f 15114 ac_save_LIBS="$LIBS"
21d1c967 15115LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15116cat > conftest.$ac_ext <<EOF
1542ea39 15117#line 15118 "configure"
0fbb762e 15118#include "confdefs.h"
21d1c967
GD
15119/* Override any gcc2 internal prototype to avoid an error. */
15120/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15121 builtin and then its argument prototype would still apply. */
15122char connect();
15123
15124int main() {
15125connect()
15126; return 0; }
15127EOF
1542ea39 15128if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15129 rm -rf conftest*
15130 eval "ac_cv_lib_$ac_lib_var=yes"
15131else
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15134 rm -rf conftest*
15135 eval "ac_cv_lib_$ac_lib_var=no"
15136fi
15137rm -f conftest*
15138LIBS="$ac_save_LIBS"
15139
15140fi
15141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
21d1c967 15143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15144else
15145 echo "$ac_t""no" 1>&6
21d1c967 15146fi
90dd450c 15147
21d1c967 15148 fi
90dd450c 15149
a0b9e27f
MB
15150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15151 echo $ac_n "checking for remove""... $ac_c" 1>&6
1542ea39 15152echo "configure:15153: checking for remove" >&5
a0b9e27f
MB
15153if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15155else
a0b9e27f 15156 cat > conftest.$ac_ext <<EOF
1542ea39 15157#line 15158 "configure"
21d1c967
GD
15158#include "confdefs.h"
15159/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15160 which can conflict with char remove(); below. */
21d1c967
GD
15161#include <assert.h>
15162/* Override any gcc2 internal prototype to avoid an error. */
15163/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15164 builtin and then its argument prototype would still apply. */
15165char remove();
15166
15167int main() {
15168
21d1c967
GD
15169/* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172#if defined (__stub_remove) || defined (__stub___remove)
15173choke me
15174#else
a0b9e27f 15175remove();
21d1c967 15176#endif
90dd450c 15177
a0b9e27f
MB
15178; return 0; }
15179EOF
1542ea39 15180if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15181 rm -rf conftest*
15182 eval "ac_cv_func_remove=yes"
15183else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_remove=no"
15188fi
15189rm -f conftest*
15190fi
15191
15192if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 :
15195else
15196 echo "$ac_t""no" 1>&6
15197fi
90dd450c 15198
21d1c967 15199 if test $ac_cv_func_remove = no; then
a0b9e27f 15200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542ea39 15201echo "configure:15202: checking for remove in -lposix" >&5
a0b9e27f
MB
15202ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15205else
a0b9e27f 15206 ac_save_LIBS="$LIBS"
21d1c967 15207LIBS="-lposix $LIBS"
a0b9e27f 15208cat > conftest.$ac_ext <<EOF
1542ea39 15209#line 15210 "configure"
21d1c967
GD
15210#include "confdefs.h"
15211/* Override any gcc2 internal prototype to avoid an error. */
15212/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15213 builtin and then its argument prototype would still apply. */
15214char remove();
15215
15216int main() {
15217remove()
15218; return 0; }
15219EOF
1542ea39 15220if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15221 rm -rf conftest*
15222 eval "ac_cv_lib_$ac_lib_var=yes"
15223else
15224 echo "configure: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15226 rm -rf conftest*
15227 eval "ac_cv_lib_$ac_lib_var=no"
15228fi
15229rm -f conftest*
15230LIBS="$ac_save_LIBS"
15231
15232fi
15233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
21d1c967 15235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15236else
15237 echo "$ac_t""no" 1>&6
21d1c967 15238fi
19bc6aad 15239
90dd450c 15240 fi
19bc6aad 15241
21d1c967 15242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1542ea39 15244echo "configure:15245: checking for shmat" >&5
a0b9e27f
MB
15245if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15246 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15247else
a0b9e27f 15248 cat > conftest.$ac_ext <<EOF
1542ea39 15249#line 15250 "configure"
21d1c967
GD
15250#include "confdefs.h"
15251/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15252 which can conflict with char shmat(); below. */
21d1c967
GD
15253#include <assert.h>
15254/* Override any gcc2 internal prototype to avoid an error. */
15255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15256 builtin and then its argument prototype would still apply. */
15257char shmat();
15258
15259int main() {
15260
21d1c967
GD
15261/* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264#if defined (__stub_shmat) || defined (__stub___shmat)
15265choke me
15266#else
a0b9e27f 15267shmat();
21d1c967 15268#endif
90dd450c 15269
a0b9e27f
MB
15270; return 0; }
15271EOF
1542ea39 15272if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15273 rm -rf conftest*
15274 eval "ac_cv_func_shmat=yes"
15275else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 eval "ac_cv_func_shmat=no"
15280fi
15281rm -f conftest*
15282fi
15283
15284if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15285 echo "$ac_t""yes" 1>&6
15286 :
15287else
15288 echo "$ac_t""no" 1>&6
15289fi
19bc6aad 15290
21d1c967 15291 if test $ac_cv_func_shmat = no; then
a0b9e27f 15292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1542ea39 15293echo "configure:15294: checking for shmat in -lipc" >&5
a0b9e27f
MB
15294ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15296 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15297else
a0b9e27f 15298 ac_save_LIBS="$LIBS"
5c6fa7d2 15299LIBS="-lipc $LIBS"
a0b9e27f 15300cat > conftest.$ac_ext <<EOF
1542ea39 15301#line 15302 "configure"
5c6fa7d2 15302#include "confdefs.h"
5c6fa7d2 15303/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15304/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15305 builtin and then its argument prototype would still apply. */
15306char shmat();
15307
15308int main() {
15309shmat()
15310; return 0; }
15311EOF
1542ea39 15312if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15313 rm -rf conftest*
15314 eval "ac_cv_lib_$ac_lib_var=yes"
15315else
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15318 rm -rf conftest*
15319 eval "ac_cv_lib_$ac_lib_var=no"
15320fi
15321rm -f conftest*
15322LIBS="$ac_save_LIBS"
15323
15324fi
15325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15326 echo "$ac_t""yes" 1>&6
21d1c967 15327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15328else
15329 echo "$ac_t""no" 1>&6
9f8148b1 15330fi
90dd450c 15331
90dd450c 15332 fi
21d1c967 15333 fi
10f2d63a 15334
21d1c967 15335 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15336 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15339 # check for ICE first), but we must link in the order -lSM -lICE or
15340 # we get undefined symbols. So assume we have SM if we have ICE.
15341 # These have to be linked with before -lX11, unlike the other
15342 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1542ea39 15345echo "configure:15346: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15346ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15349else
15350 ac_save_LIBS="$LIBS"
f09359cf 15351LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15352cat > conftest.$ac_ext <<EOF
1542ea39 15353#line 15354 "configure"
29fd3c0c 15354#include "confdefs.h"
21d1c967
GD
15355/* Override any gcc2 internal prototype to avoid an error. */
15356/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15357 builtin and then its argument prototype would still apply. */
15358char IceConnectionNumber();
15359
15360int main() {
15361IceConnectionNumber()
15362; return 0; }
15363EOF
1542ea39 15364if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15365 rm -rf conftest*
15366 eval "ac_cv_lib_$ac_lib_var=yes"
15367else
15368 echo "configure: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15370 rm -rf conftest*
15371 eval "ac_cv_lib_$ac_lib_var=no"
15372fi
15373rm -f conftest*
15374LIBS="$ac_save_LIBS"
15375
15376fi
15377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15378 echo "$ac_t""yes" 1>&6
21d1c967 15379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15380else
15381 echo "$ac_t""no" 1>&6
29fd3c0c 15382fi
21d1c967 15383
a0b9e27f 15384 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15385
10f2d63a
VZ
15386fi
15387
8284b0c5 15388
21d1c967 15389 if test "$no_x" = "yes"; then
a0b9e27f 15390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15391 fi
15392
2b5f62a0
VZ
15393 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15394 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15395 AFMINSTALL=afminstall
15396 COMPILED_X_PROGRAM=0
15397
a0b9e27f 15398 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1542ea39 15399echo "configure:15400: checking for Motif/Lesstif headers" >&5
a0b9e27f 15400
21d1c967 15401ac_find_includes=
2b5f62a0 15402for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15403 do
15404 if test -f "$ac_dir/Xm/Xm.h"; then
15405 ac_find_includes=$ac_dir
15406 break
15407 fi
15408 done
15409
15410 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15411 echo "$ac_t""found in $ac_find_includes" 1>&6
15412
2b5f62a0 15413 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15414 ac_path_to_include=""
15415 else
2b5f62a0
VZ
15416 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15417 result=$?
15418 if test $result = 0; then
15419 ac_path_to_include=""
15420 else
15421 ac_path_to_include=" -I$ac_find_includes"
15422 fi
dd0e4a90
VZ
15423 fi
15424
15425 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15426 else
a0b9e27f 15427 cat > conftest.$ac_ext <<EOF
1542ea39 15428#line 15429 "configure"
10f2d63a 15429#include "confdefs.h"
21d1c967
GD
15430
15431 #include <Xm/Xm.h>
a0b9e27f
MB
15432
15433int main() {
21d1c967
GD
15434
15435 int version;
15436 version = xmUseVersion;
a0b9e27f
MB
15437
15438; return 0; }
15439EOF
1542ea39 15440if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15441 rm -rf conftest*
15442
15443 echo "$ac_t""found in default search path" 1>&6
21d1c967 15444 COMPILED_X_PROGRAM=1
a0b9e27f 15445
10f2d63a 15446else
a0b9e27f
MB
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450
15451 echo "$ac_t""no" 1>&6
15452 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15453
15454
10f2d63a 15455fi
a0b9e27f 15456rm -f conftest*
21d1c967 15457 fi
10f2d63a 15458
21d1c967 15459 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15460 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1542ea39 15461echo "configure:15462: checking for Motif/Lesstif library" >&5
a0b9e27f 15462
21d1c967 15463ac_find_libraries=
2b5f62a0 15464for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15465 do
15466 for ac_extension in a so sl dylib; do
15467 if test -f "$ac_dir/libXm.$ac_extension"; then
15468 ac_find_libraries=$ac_dir
15469 break 2
15470 fi
15471 done
15472 done
15473
15474 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15475 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15476
a0b9e27f 15477
21d1c967
GD
15478 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15479 result=$?
15480 if test $result = 0; then
15481 ac_path_to_link=""
15482 else
15483 ac_path_to_link=" -L$ac_find_libraries"
15484 fi
15485
21d1c967 15486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15487 else
dd0e4a90
VZ
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
a0b9e27f 15491 cat > conftest.$ac_ext <<EOF
1542ea39 15492#line 15493 "configure"
d836ee96 15493#include "confdefs.h"
21d1c967
GD
15494
15495 #include <Xm/Xm.h>
a0b9e27f
MB
15496
15497int main() {
21d1c967
GD
15498
15499 int version;
15500 version = xmUseVersion;
a0b9e27f
MB
15501
15502; return 0; }
15503EOF
1542ea39 15504if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15505 rm -rf conftest*
15506
15507 echo "$ac_t""found in default search path" 1>&6
21d1c967 15508 COMPILED_X_PROGRAM=1
a0b9e27f 15509
d836ee96 15510else
a0b9e27f
MB
15511 echo "configure: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 rm -rf conftest*
15514
15515 echo "$ac_t""no" 1>&6
15516 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15517
15518
d836ee96 15519fi
a0b9e27f 15520rm -f conftest*
dd0e4a90
VZ
15521
15522 CFLAGS=$save_CFLAGS
21d1c967
GD
15523 fi
15524 fi
15525
15526 xpm_link=
a0b9e27f 15527 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1542ea39 15528echo "configure:15529: checking for Xpm library" >&5
a0b9e27f 15529
21d1c967 15530ac_find_libraries=
2b5f62a0 15531for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15532 do
15533 for ac_extension in a so sl dylib; do
15534 if test -f "$ac_dir/libXpm.$ac_extension"; then
15535 ac_find_libraries=$ac_dir
15536 break 2
15537 fi
15538 done
15539 done
15540
15541 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15542
21d1c967
GD
15543 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15544 result=$?
15545 if test $result = 0; then
15546 ac_path_to_link=""
15547 else
15548 ac_path_to_link=" -L$ac_find_libraries"
15549 fi
15550
15551 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15552
21d1c967 15553 xpm_link=" -lXpm"
a0b9e27f 15554 cat >> confdefs.h <<\EOF
21d1c967 15555#define wxHAVE_LIB_XPM 1
a0b9e27f 15556EOF
90dd450c 15557
a0b9e27f 15558 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15559 else
dd0e4a90
VZ
15560 save_CFLAGS=$CFLAGS
15561 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15562
a0b9e27f 15563 cat > conftest.$ac_ext <<EOF
1542ea39 15564#line 15565 "configure"
d836ee96 15565#include "confdefs.h"
21d1c967
GD
15566
15567 #include <X11/xpm.h>
a0b9e27f
MB
15568
15569int main() {
21d1c967
GD
15570
15571 int version;
15572 version = XpmLibraryVersion();
a0b9e27f
MB
15573
15574; return 0; }
15575EOF
1542ea39 15576if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15577 rm -rf conftest*
15578
21d1c967 15579 xpm_link=" -lXpm"
a0b9e27f 15580 cat >> confdefs.h <<\EOF
21d1c967 15581#define wxHAVE_LIB_XPM 1
a0b9e27f 15582EOF
21d1c967 15583
a0b9e27f 15584 echo "$ac_t""found in default search path" 1>&6
21d1c967 15585 COMPILED_X_PROGRAM=0
a0b9e27f 15586
d836ee96 15587else
a0b9e27f
MB
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591
15592 echo "$ac_t""no" 1>&6
15593 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15594
15595
d836ee96 15596fi
a0b9e27f 15597rm -f conftest*
dd0e4a90
VZ
15598
15599 CFLAGS=$save_CFLAGS
21d1c967
GD
15600 fi
15601
a0b9e27f 15602 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
1542ea39 15603echo "configure:15604: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15604 libp_link=""
15605 libsm_ice_link=""
15606 libs_found=0
15607 for libp in "" " -lXp"; do
15608 if test "$libs_found" = "0"; then
15609 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15610 if test "$libs_found" = "0"; then
6a30f1c8
MB
15611 save_LIBS="$LIBS"
15612 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15613 save_CFLAGS=$CFLAGS
15614 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15615
a0b9e27f 15616 cat > conftest.$ac_ext <<EOF
1542ea39 15617#line 15618 "configure"
6a30f1c8 15618#include "confdefs.h"
17234b26 15619
6a30f1c8
MB
15620 #include <Xm/Xm.h>
15621 #include <Xm/List.h>
a0b9e27f
MB
15622
15623int main() {
6a30f1c8
MB
15624
15625 XmString string = NULL;
15626 Widget w = NULL;
15627 int position = 0;
15628 XmListAddItem(w, string, position);
a0b9e27f
MB
15629
15630; return 0; }
15631EOF
1542ea39 15632if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15633 rm -rf conftest*
15634
6a30f1c8
MB
15635 libp_link="$libp"
15636 libsm_ice_link="$libsm_ice"
a0b9e27f 15637 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15638 libs_found=1
a0b9e27f 15639
6a30f1c8 15640else
a0b9e27f
MB
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644
15645
6a30f1c8 15646fi
a0b9e27f 15647rm -f conftest*
dd0e4a90 15648
6a30f1c8 15649 LIBS="$save_LIBS"
dd0e4a90 15650 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15651 fi
15652 done
15653 fi
15654 done
15655
15656 if test "$libs_found" = "0"; then
a0b9e27f
MB
15657 echo "$ac_t""can't find the right libraries" 1>&6
15658 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15659 fi
15660
da494b40
MB
15661 save_CFLAGS=$CFLAGS
15662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15663 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
1542ea39 15664echo "configure:15665: checking for Motif 2" >&5
da494b40 15665 cat > conftest.$ac_ext <<EOF
1542ea39 15666#line 15667 "configure"
da494b40
MB
15667#include "confdefs.h"
15668
15669 #include <Xm/Xm.h>
15670
15671int main() {
15672
15673 #if XmVersion < 2000
15674 #error "Not Motif 2"
15675 #endif
15676
15677; return 0; }
15678EOF
1542ea39 15679if { (eval echo configure:15680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15680 rm -rf conftest*
15681
15682 cat >> confdefs.h <<\EOF
15683#define __WXMOTIF20__ 1
15684EOF
15685
15686 echo "$ac_t""found" 1>&6
15687
15688else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692
15693 cat >> confdefs.h <<\EOF
15694#define __WXMOTIF20__ 0
15695EOF
15696
15697 echo "$ac_t""not found" 1>&6
15698
15699fi
15700rm -f conftest*
15701 CFLAGS=$save_CFLAGS
15702
6a30f1c8 15703 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15704 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15705 TOOLKIT=MOTIF
15706 GUIDIST=MOTIF_DIST
15707 fi
15708
15709 if test "$wxUSE_MAC" = 1; then
0c98a14e 15710 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15711
0c98a14e 15712 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15713 TOOLKIT=MAC
15714 GUIDIST=MACX_DIST
15715 fi
15716
ac0c4cc3
DE
15717 if test "$wxUSE_COCOA" = 1; then
15718 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15719 TOOLKIT=COCOA
15720 GUIDIST=COCOA_DIST
15721 fi
15722
21d1c967
GD
15723 if test "$wxUSE_PM" = 1; then
15724 TOOLKIT=PM
15725 GUIDIST=GTK_DIST
2b5f62a0 15726 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
f657dbe7
MB
15727 wxUSE_PROLOGIO="yes"
15728 wxUSE_RESOURCES="yes"
2b5f62a0 15729 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15730 wxUSE_THREADS="no"
21d1c967
GD
15731 fi
15732
15733 if test "$TOOLKIT" = "PM" ; then
15734 TOOLKIT_DIR="os2"
15735 else
15736 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15737 fi
15738
15739 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15740
15741 if test "$wxUSE_UNIVERSAL" = "yes"; then
15742 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15743
15744 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15745 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15746
15747 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15748 if test "$wxUSE_X11" = 1; then
15749 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15750 else
15751 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15752 fi
15753 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15754 WIDGET_SET=univ
15755 else
15756 ALL_OBJECTS="\$(GUIOBJS)"
15757 ALL_SOURCES="\$(ALL_SOURCES)"
15758 ALL_HEADERS="\$(ALL_HEADERS)"
15759 fi
15760
15761 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15762
15763 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15764 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15765 fi
15766
15767 if test "$wxUSE_HTML" = "yes"; then
15768 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15769 fi
15770
15771 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15772 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15773 fi
15774 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15775 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15776 fi
15777 if test "$wxUSE_LIBPNG" = "builtin" ; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15779 fi
15780
15781 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15782 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15783else
21d1c967
GD
15784 USE_GUI=0
15785
15786 TOOLKIT_DIR="base"
15787
15788 if test "$USE_WIN32" = 1 ; then
15789 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15790 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15791
15792 TOOLKIT="MSW"
15793 else
15794 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15795 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15796 fi
15797
15798 ALL_SOURCES="\$(ALL_SOURCES)"
15799 ALL_HEADERS="\$(ALL_HEADERS)"
15800
15801 PORT_FILES="\${top_srcdir}/src/files.lst"
15802
15803 GUIDIST="BASE_DIST"
15804 DISTDIR="wxBase"
d836ee96
VZ
15805fi
15806
8284b0c5 15807
21d1c967
GD
15808if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15809 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15810fi
21d1c967
GD
15811
15812if test "$wxUSE_REGEX" = "builtin" ; then
15813 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15814fi
21d1c967
GD
15815if test "$wxUSE_ZLIB" = "builtin" ; then
15816 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15817fi
15818
8284b0c5 15819
21d1c967 15820if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15821 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15822 OPENGL_LIBS="-framework OpenGL -framework AGL"
15823 elif test "$wxUSE_MSW" = 1; then
15824 OPENGL_LIBS="-lopengl32 -lglu32"
15825 else
a0b9e27f
MB
15826 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15827echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1542ea39 15828echo "configure:15829: checking for GL/gl.h" >&5
a0b9e27f
MB
15829if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15830 echo $ac_n "(cached) $ac_c" 1>&6
15831else
15832 cat > conftest.$ac_ext <<EOF
1542ea39 15833#line 15834 "configure"
10f2d63a 15834#include "confdefs.h"
21d1c967 15835#include <GL/gl.h>
a0b9e27f
MB
15836EOF
15837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 15838{ (eval echo configure:15839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15839ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15840if test -z "$ac_err"; then
15841 rm -rf conftest*
15842 eval "ac_cv_header_$ac_safe=yes"
15843else
15844 echo "$ac_err" >&5
15845 echo "configure: failed program was:" >&5
698dcdb6 15846 cat conftest.$ac_ext >&5
a0b9e27f
MB
15847 rm -rf conftest*
15848 eval "ac_cv_header_$ac_safe=no"
703e0a69 15849fi
a0b9e27f 15850rm -f conftest*
698dcdb6 15851fi
a0b9e27f
MB
15852if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15853 echo "$ac_t""yes" 1>&6
15854
15855 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
1542ea39 15856echo "configure:15857: checking for -lGL" >&5
a0b9e27f 15857
21d1c967 15858ac_find_libraries=
2b5f62a0 15859for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15860 do
15861 for ac_extension in a so sl dylib; do
15862 if test -f "$ac_dir/libGL.$ac_extension"; then
15863 ac_find_libraries=$ac_dir
15864 break 2
15865 fi
15866 done
15867 done
15868
15869 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15870
21d1c967
GD
15871 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15872 result=$?
15873 if test $result = 0; then
15874 ac_path_to_link=""
15875 else
15876 ac_path_to_link=" -L$ac_find_libraries"
15877 fi
15878
15879 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15880 LDFLAGS_GL="$LDFLAGS"
15881 else
15882 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15883 fi
15884 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15885 echo "$ac_t""yes" 1>&6
21d1c967 15886 else
a0b9e27f
MB
15887 echo "$ac_t""no" 1>&6
15888 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
1542ea39 15889echo "configure:15890: checking for -lMesaGL" >&5
a0b9e27f 15890
21d1c967 15891ac_find_libraries=
2b5f62a0 15892for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15893 do
15894 for ac_extension in a so sl dylib; do
15895 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15896 ac_find_libraries=$ac_dir
15897 break 2
15898 fi
15899 done
15900 done
15901
15902 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15903
21d1c967
GD
15904 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15905 result=$?
15906 if test $result = 0; then
15907 ac_path_to_link=""
15908 else
15909 ac_path_to_link=" -L$ac_find_libraries"
15910 fi
15911
15912 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15913 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15914 echo "$ac_t""yes" 1>&6
21d1c967 15915 else
a0b9e27f 15916 echo "$ac_t""no" 1>&6
21d1c967
GD
15917 fi
15918 fi
a0b9e27f
MB
15919
15920else
15921 echo "$ac_t""no" 1>&6
5c6fa7d2 15922fi
52127426 15923
8284b0c5 15924
21d1c967 15925 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15926 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15927 fi
15928 fi
90dd450c 15929
21d1c967 15930 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15931 cat >> confdefs.h <<\EOF
21d1c967 15932#define wxUSE_OPENGL 1
a0b9e27f 15933EOF
21d1c967 15934
a0b9e27f 15935 cat >> confdefs.h <<\EOF
21d1c967 15936#define wxUSE_GLCANVAS 1
a0b9e27f 15937EOF
21d1c967
GD
15938
15939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15940 fi
10f2d63a 15941fi
21d1c967
GD
15942
15943if test -z "$TOOLKIT_VPATH" ; then
15944 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15945fi
21d1c967
GD
15946
15947if test -n "$TOOLKIT" ; then
15948 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15949fi
15950
15951lib_unicode_suffix=
15952if test "$wxUSE_UNICODE" = "yes"; then
15953 lib_unicode_suffix=u
90dd450c 15954fi
698dcdb6 15955
21d1c967
GD
15956lib_debug_suffix=
15957if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15958 lib_debug_suffix=d
15959fi
698dcdb6 15960
2b5f62a0
VZ
15961WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15962
15963TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15964TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15965
15966if test "$cross_compiling" = "yes"; then
15967 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15968 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15969fi
15970
15971WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15972WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15973WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15974
15975WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15976WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15977
15978WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15979WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15980WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15981WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15982
15983case "${host}" in
15984 *-*-cygwin* | *-*-mingw32* )
15985
a0b9e27f
MB
15986
15987
17234b26 15988 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15989 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15990 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15991 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15992 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15993 else
15994 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15995 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15996 fi
15997 ;;
15998
15999 *-*-darwin* )
1542ea39 16000
05159a27
GD
16001 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16002 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16003
16004 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16005 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16006 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16007 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16008
21d1c967 16009 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16010 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16011 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16012 fi
16013 ;;
16014esac
16015
16016WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16017WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16018
16019WXCONFIG_LIBS="-l${WX_LIBRARY}"
16020WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16021
16022if test "$wxUSE_OPENGL" = "yes"; then
16023 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16024 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16025fi
16026
8284b0c5
MB
16027
16028
21d1c967
GD
16029if test "$wxUSE_SHARED" = "yes"; then
16030 case "${host}" in
16031 *-pc-os2_emx | *-pc-os2-emx | \
16032 *-pc-msdosdjgpp )
16033 wxUSE_SHARED=no
a0b9e27f 16034 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16035 ;;
16036 esac
16037fi
16038
2b5f62a0
VZ
16039if test "$wxUSE_SHARED" = "yes"; then
16040
16041 if test "$wxUSE_OPENGL" = "yes"; then
16042 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16043 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16044 else
16045 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16046 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16047 fi
16048
16049 if test "$GCC" = "yes"; then
16050 PIC_FLAG="-fPIC"
16051 fi
16052
16053
16054
16055 found_versioning=no
16056
b4eecb7e 16057
2b5f62a0
VZ
16058 if test $found_versioning = no ; then
16059 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
1542ea39 16060echo "configure:16061: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16061if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063else
16064
16065 echo "VER_1 { *; };" >conftest.sym
16066 echo "int main() { return 0; }" >conftest.cpp
16067
16068 if { ac_try='
16069 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
1542ea39 16070 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16071 if test -s conftest.stderr ; then
16072 wx_cv_version_script=no
16073 else
16074 wx_cv_version_script=yes
16075 fi
16076 else
16077 wx_cv_version_script=no
16078 fi
16079 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16080
16081fi
16082
16083echo "$ac_t""$wx_cv_version_script" 1>&6
16084 if test $wx_cv_version_script = yes ; then
16085 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16086 fi
16087 fi
21d1c967 16088
21d1c967
GD
16089
16090 SHARED_LD="${CXX} -shared -o"
16091
16092 case "${host}" in
16093 *-hp-hpux* )
ad2622f1 16094 if test "$GCC" = "yes"; then
85d5e282 16095 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16096 else
16097 LDFLAGS="$LDFLAGS -L/usr/lib"
16098
16099 SHARED_LD="${CXX} -b -o"
16100 PIC_FLAG="+Z"
16101 fi
16102
16103 if test "$wxUSE_OPENGL" = "yes"; then
16104 WX_ALL_INSTALLED="preinstall_gl"
16105 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16106 else
16107 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16108 fi
16109 ;;
16110
16111 *-*-linux* )
16112 if test "$GCC" != "yes"; then
a0b9e27f 16113 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
1542ea39 16114echo "configure:16115: checking for Intel compiler" >&5
a0b9e27f
MB
16115if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16116 echo $ac_n "(cached) $ac_c" 1>&6
16117else
16118
16119 cat > conftest.$ac_ext <<EOF
1542ea39 16120#line 16121 "configure"
698dcdb6 16121#include "confdefs.h"
90dd450c 16122
a0b9e27f 16123int main() {
90dd450c 16124
21d1c967
GD
16125 #ifndef __INTEL_COMPILER
16126 #error Not icc
16127 #endif
a0b9e27f
MB
16128
16129; return 0; }
16130EOF
1542ea39 16131if { (eval echo configure:16132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16132 rm -rf conftest*
21d1c967 16133 wx_cv_prog_icc=yes
6232543b 16134else
a0b9e27f
MB
16135 echo "configure: failed program was:" >&5
16136 cat conftest.$ac_ext >&5
16137 rm -rf conftest*
16138 wx_cv_prog_icc=no
16139
5c6fa7d2 16140fi
a0b9e27f
MB
16141rm -f conftest*
16142
247f5006 16143fi
a0b9e27f
MB
16144
16145echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16146 if test "$wx_cv_prog_icc" = "yes"; then
16147 PIC_FLAG="-KPIC"
16148 fi
16149 fi
16150
16151 if test "$wxUSE_SONAME" = "yes" ; then
16152 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16153 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16154 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16155 fi
16156 ;;
16157
16158 *-*-solaris2* )
16159 if test "$GCC" = yes ; then
16160 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16161 else
16162 SHARED_LD="${CXX} -G -o"
16163 PIC_FLAG="-KPIC"
16164 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16165 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16166 fi
16167 ;;
16168
16169 *-*-darwin* )
b2fee376
GD
16170 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16171 CFLAGS="$CFLAGS -fno-common"
16172 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16173 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16174 PIC_FLAG="-dynamic -fPIC"
f346733b 16175 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16176 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16177 ;;
16178
16179 *-*-aix* )
2b5f62a0
VZ
16180 if test "$GCC" != "yes"; then
16181 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16182set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16183echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 16184echo "configure:16185: checking for $ac_word" >&5
a0b9e27f
MB
16185if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16186 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16187else
16188 if test -n "$AIX_CXX_LD"; then
16189 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16190else
a0b9e27f
MB
16191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16192 ac_dummy="$PATH"
16193 for ac_dir in $ac_dummy; do
16194 test -z "$ac_dir" && ac_dir=.
16195 if test -f $ac_dir/$ac_word; then
16196 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16197 break
16198 fi
16199 done
16200 IFS="$ac_save_ifs"
321d2b14
VZ
16201 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16202fi
16203fi
a0b9e27f 16204AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16205if test -n "$AIX_CXX_LD"; then
a0b9e27f 16206 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16207else
a0b9e27f 16208 echo "$ac_t""no" 1>&6
321d2b14
VZ
16209fi
16210
8284b0c5 16211
2b5f62a0
VZ
16212 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16213 fi
21d1c967
GD
16214 ;;
16215
16216 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16217 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16218
16219 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16220 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16221
16222 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16223
f657dbe7
MB
16224 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16225 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16226
16227 if test "$wxUSE_OPENGL" = "yes"; then
16228 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16229 fi
16230 ;;
16231
16232 *-*-beos* )
16233 SHARED_LD="${LD} -shared -o"
16234 ;;
16235
2b5f62a0
VZ
16236 *-*-irix* )
16237 if test "$GCC" != "yes"; then
16238 PIC_FLAG="-KPIC"
16239 fi
16240 ;;
16241
21d1c967
GD
16242 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16243 *-*-sunos4* | \
21d1c967
GD
16244 *-*-osf* | \
16245 *-*-dgux5* | \
16246 *-*-sysv5* )
16247 ;;
16248
16249 *)
a0b9e27f 16250 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16251 esac
16252
16253 if test "x$WX_TARGET_LIBRARY" = "x"; then
16254 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16255 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16256 fi
16257
16258 WX_TARGET_LIBRARY_TYPE="so"
16259 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16260fi
10f2d63a 16261
21d1c967
GD
16262if test "$wxUSE_SHARED" = "no"; then
16263
16264 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16266 fi
16267
ac0c4cc3 16268 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16269 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16270 fi
16271
16272 if test "$wxUSE_OPENGL" = "yes"; then
16273 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16274 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16275 else
16276 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16277 fi
16278
16279 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16280 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16281
16282 WX_TARGET_LIBRARY_TYPE="a"
16283 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16284
16285 STATIC_FLAG="yes"
16286else
16287 STATIC_FLAG="no"
90dd450c 16288fi
1e487827 16289
93fac604
VZ
16290MACRESCOMP="@#"
16291MACSETFILE="@#"
36825681 16292MACRESWXCONFIG="#"
21d1c967
GD
16293if test "$wxUSE_MAC" = 1; then
16294 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16295 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16296 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16297 # Extract the first word of "Rez", so it can be a program name with args.
16298set dummy Rez; ac_word=$2
a0b9e27f 16299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 16300echo "configure:16301: checking for $ac_word" >&5
a0b9e27f
MB
16301if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16302 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16303else
21d1c967
GD
16304 if test -n "$RESCOMP"; then
16305 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16306else
a0b9e27f
MB
16307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16308 ac_dummy="$PATH"
16309 for ac_dir in $ac_dummy; do
16310 test -z "$ac_dir" && ac_dir=.
16311 if test -f $ac_dir/$ac_word; then
16312 ac_cv_prog_RESCOMP="Rez"
16313 break
16314 fi
16315 done
16316 IFS="$ac_save_ifs"
21d1c967 16317 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16318fi
b93d0d08 16319fi
a0b9e27f 16320RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16321if test -n "$RESCOMP"; then
a0b9e27f 16322 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16323else
a0b9e27f 16324 echo "$ac_t""no" 1>&6
90dd450c 16325fi
b93d0d08 16326
21d1c967
GD
16327 # Extract the first word of "DeRez", so it can be a program name with args.
16328set dummy DeRez; ac_word=$2
a0b9e27f 16329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 16330echo "configure:16331: checking for $ac_word" >&5
a0b9e27f
MB
16331if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16333else
21d1c967
GD
16334 if test -n "$DEREZ"; then
16335 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16336else
a0b9e27f
MB
16337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16338 ac_dummy="$PATH"
16339 for ac_dir in $ac_dummy; do
16340 test -z "$ac_dir" && ac_dir=.
16341 if test -f $ac_dir/$ac_word; then
16342 ac_cv_prog_DEREZ="DeRez"
16343 break
16344 fi
16345 done
16346 IFS="$ac_save_ifs"
21d1c967 16347 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16348fi
90dd450c 16349fi
a0b9e27f 16350DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16351if test -n "$DEREZ"; then
a0b9e27f 16352 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16353else
a0b9e27f 16354 echo "$ac_t""no" 1>&6
3a922bb4 16355fi
698dcdb6 16356
36825681
GD
16357 # Extract the first word of "SetFile", so it can be a program name with args.
16358set dummy SetFile; ac_word=$2
16359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542ea39 16360echo "configure:16361: checking for $ac_word" >&5
36825681
GD
16361if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16362 echo $ac_n "(cached) $ac_c" 1>&6
16363else
16364 if test -n "$SETFILE"; then
16365 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16366else
16367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16368 ac_dummy="$PATH"
16369 for ac_dir in $ac_dummy; do
16370 test -z "$ac_dir" && ac_dir=.
16371 if test -f $ac_dir/$ac_word; then
16372 ac_cv_prog_SETFILE="SetFile"
16373 break
16374 fi
16375 done
16376 IFS="$ac_save_ifs"
16377 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16378fi
16379fi
16380SETFILE="$ac_cv_prog_SETFILE"
16381if test -n "$SETFILE"; then
16382 echo "$ac_t""$SETFILE" 1>&6
16383else
16384 echo "$ac_t""no" 1>&6
16385fi
16386
21d1c967 16387 MACOSX_BUNDLE="bundle"
36825681
GD
16388 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16389 MACSETFILE="\$(SETFILE)"
16390 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
21d1c967
GD
16391else
16392 if test "$wxUSE_PM" = 1; then
36825681 16393 MACRESCOMP="emxbind -ep"
90dd450c 16394 fi
4f14bcd8 16395fi
10f2d63a 16396
8284b0c5 16397
a0b9e27f 16398echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1542ea39 16399echo "configure:16400: checking for ANSI C header files" >&5
a0b9e27f
MB
16400if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16401 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16402else
a0b9e27f 16403 cat > conftest.$ac_ext <<EOF
1542ea39 16404#line 16405 "configure"
52127426 16405#include "confdefs.h"
a0b9e27f
MB
16406#include <stdlib.h>
16407#include <stdarg.h>
16408#include <string.h>
16409#include <float.h>
16410EOF
16411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 16412{ (eval echo configure:16413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16413ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16414if test -z "$ac_err"; then
16415 rm -rf conftest*
16416 ac_cv_header_stdc=yes
16417else
16418 echo "$ac_err" >&5
16419 echo "configure: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16421 rm -rf conftest*
16422 ac_cv_header_stdc=no
16423fi
16424rm -f conftest*
16425
16426if test $ac_cv_header_stdc = yes; then
16427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16428cat > conftest.$ac_ext <<EOF
1542ea39 16429#line 16430 "configure"
a0b9e27f
MB
16430#include "confdefs.h"
16431#include <string.h>
16432EOF
16433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16434 egrep "memchr" >/dev/null 2>&1; then
16435 :
16436else
16437 rm -rf conftest*
16438 ac_cv_header_stdc=no
16439fi
16440rm -f conftest*
16441
16442fi
16443
16444if test $ac_cv_header_stdc = yes; then
16445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16446cat > conftest.$ac_ext <<EOF
1542ea39 16447#line 16448 "configure"
a0b9e27f
MB
16448#include "confdefs.h"
16449#include <stdlib.h>
16450EOF
16451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16452 egrep "free" >/dev/null 2>&1; then
16453 :
7b4a847f 16454else
a0b9e27f
MB
16455 rm -rf conftest*
16456 ac_cv_header_stdc=no
52127426 16457fi
a0b9e27f
MB
16458rm -f conftest*
16459
52127426 16460fi
a0b9e27f
MB
16461
16462if test $ac_cv_header_stdc = yes; then
16463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16464if test "$cross_compiling" = yes; then
247f5006
VZ
16465 :
16466else
a0b9e27f 16467 cat > conftest.$ac_ext <<EOF
1542ea39 16468#line 16469 "configure"
a0b9e27f
MB
16469#include "confdefs.h"
16470#include <ctype.h>
16471#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16472#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16474int main () { int i; for (i = 0; i < 256; i++)
16475if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16476exit (0); }
247f5006 16477
a0b9e27f 16478EOF
1542ea39 16479if { (eval echo configure:16480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16480then
16481 :
16482else
16483 echo "configure: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16485 rm -fr conftest*
16486 ac_cv_header_stdc=no
16487fi
16488rm -fr conftest*
16489fi
16490
16491fi
16492fi
16493
16494echo "$ac_t""$ac_cv_header_stdc" 1>&6
16495if test $ac_cv_header_stdc = yes; then
16496 cat >> confdefs.h <<\EOF
16497#define STDC_HEADERS 1
16498EOF
8284b0c5
MB
16499
16500fi
16501
a0b9e27f 16502echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1542ea39 16503echo "configure:16504: checking for mode_t" >&5
a0b9e27f
MB
16504if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16505 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16506else
a0b9e27f 16507 cat > conftest.$ac_ext <<EOF
1542ea39 16508#line 16509 "configure"
8284b0c5 16509#include "confdefs.h"
a0b9e27f
MB
16510#include <sys/types.h>
16511#if STDC_HEADERS
16512#include <stdlib.h>
16513#include <stddef.h>
8284b0c5 16514#endif
a0b9e27f
MB
16515EOF
16516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16518 rm -rf conftest*
16519 ac_cv_type_mode_t=yes
5c6fa7d2 16520else
a0b9e27f
MB
16521 rm -rf conftest*
16522 ac_cv_type_mode_t=no
16523fi
16524rm -f conftest*
16525
8284b0c5 16526fi
a0b9e27f
MB
16527echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16528if test $ac_cv_type_mode_t = no; then
16529 cat >> confdefs.h <<\EOF
16530#define mode_t int
16531EOF
16532
8284b0c5 16533fi
a0b9e27f
MB
16534
16535echo $ac_n "checking for off_t""... $ac_c" 1>&6
1542ea39 16536echo "configure:16537: checking for off_t" >&5
a0b9e27f
MB
16537if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16538 echo $ac_n "(cached) $ac_c" 1>&6
16539else
16540 cat > conftest.$ac_ext <<EOF
1542ea39 16541#line 16542 "configure"
a0b9e27f
MB
16542#include "confdefs.h"
16543#include <sys/types.h>
16544#if STDC_HEADERS
16545#include <stdlib.h>
16546#include <stddef.h>
16547#endif
16548EOF
16549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16550 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16551 rm -rf conftest*
16552 ac_cv_type_off_t=yes
247f5006 16553else
a0b9e27f
MB
16554 rm -rf conftest*
16555 ac_cv_type_off_t=no
16556fi
16557rm -f conftest*
247f5006 16558
a0b9e27f
MB
16559fi
16560echo "$ac_t""$ac_cv_type_off_t" 1>&6
16561if test $ac_cv_type_off_t = no; then
16562 cat >> confdefs.h <<\EOF
90dd450c 16563#define off_t long
a0b9e27f 16564EOF
10f2d63a 16565
90dd450c 16566fi
10f2d63a 16567
a0b9e27f 16568echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1542ea39 16569echo "configure:16570: checking for pid_t" >&5
a0b9e27f
MB
16570if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16571 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16572else
a0b9e27f 16573 cat > conftest.$ac_ext <<EOF
1542ea39 16574#line 16575 "configure"
10f2d63a 16575#include "confdefs.h"
a0b9e27f
MB
16576#include <sys/types.h>
16577#if STDC_HEADERS
16578#include <stdlib.h>
16579#include <stddef.h>
8284b0c5 16580#endif
a0b9e27f
MB
16581EOF
16582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16583 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16584 rm -rf conftest*
90dd450c 16585 ac_cv_type_pid_t=yes
698dcdb6 16586else
a0b9e27f
MB
16587 rm -rf conftest*
16588 ac_cv_type_pid_t=no
8284b0c5 16589fi
a0b9e27f 16590rm -f conftest*
247f5006 16591
a0b9e27f
MB
16592fi
16593echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16594if test $ac_cv_type_pid_t = no; then
16595 cat >> confdefs.h <<\EOF
90dd450c 16596#define pid_t int
a0b9e27f 16597EOF
10f2d63a 16598
7b4a847f
RR
16599fi
16600
a0b9e27f 16601echo $ac_n "checking for size_t""... $ac_c" 1>&6
1542ea39 16602echo "configure:16603: checking for size_t" >&5
a0b9e27f
MB
16603if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16604 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16605else
a0b9e27f 16606 cat > conftest.$ac_ext <<EOF
1542ea39 16607#line 16608 "configure"
7b4a847f 16608#include "confdefs.h"
a0b9e27f
MB
16609#include <sys/types.h>
16610#if STDC_HEADERS
16611#include <stdlib.h>
16612#include <stddef.h>
8284b0c5 16613#endif
a0b9e27f
MB
16614EOF
16615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16616 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16617 rm -rf conftest*
90dd450c 16618 ac_cv_type_size_t=yes
18dbb1f6 16619else
a0b9e27f
MB
16620 rm -rf conftest*
16621 ac_cv_type_size_t=no
52127426 16622fi
a0b9e27f 16623rm -f conftest*
247f5006 16624
a0b9e27f
MB
16625fi
16626echo "$ac_t""$ac_cv_type_size_t" 1>&6
16627if test $ac_cv_type_size_t = no; then
16628 cat >> confdefs.h <<\EOF
90dd450c 16629#define size_t unsigned
a0b9e27f 16630EOF
90dd450c
VZ
16631
16632fi
16633
a0b9e27f 16634echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1542ea39 16635echo "configure:16636: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16636if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16637 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16638else
a0b9e27f 16639 cat > conftest.$ac_ext <<EOF
1542ea39 16640#line 16641 "configure"
b3e8d00a 16641#include "confdefs.h"
90dd450c 16642#include <sys/types.h>
a0b9e27f 16643EOF
90dd450c
VZ
16644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16645 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16646 rm -rf conftest*
90dd450c 16647 ac_cv_type_uid_t=yes
b3e8d00a 16648else
a0b9e27f 16649 rm -rf conftest*
90dd450c 16650 ac_cv_type_uid_t=no
b3e8d00a 16651fi
90dd450c 16652rm -f conftest*
b3e8d00a 16653
4f14bcd8 16654fi
247f5006 16655
a0b9e27f
MB
16656echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16657if test $ac_cv_type_uid_t = no; then
16658 cat >> confdefs.h <<\EOF
90dd450c 16659#define uid_t int
a0b9e27f 16660EOF
247f5006 16661
a0b9e27f 16662 cat >> confdefs.h <<\EOF
90dd450c 16663#define gid_t int
a0b9e27f 16664EOF
4f14bcd8 16665
b3e8d00a 16666fi
b3e8d00a 16667
8284b0c5
MB
16668
16669
a0b9e27f
MB
16670ac_ext=C
16671# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16672ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16673ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16674ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16675cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16676
a0b9e27f 16677echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
1542ea39 16678echo "configure:16679: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16679if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16681else
a0b9e27f 16682 cat > conftest.$ac_ext <<EOF
1542ea39 16683#line 16684 "configure"
10f2d63a 16684#include "confdefs.h"
90dd450c 16685#include <stddef.h>
a0b9e27f 16686int main() {
90dd450c
VZ
16687
16688 return 0; }
16689
16690 struct Foo { void foo(size_t); void foo(unsigned int); };
16691
16692 int bar() {
a0b9e27f
MB
16693
16694; return 0; }
16695EOF
1542ea39 16696if { (eval echo configure:16697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16697 rm -rf conftest*
90dd450c 16698 wx_cv_size_t_is_uint=no
698dcdb6 16699else
a0b9e27f
MB
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
16703 wx_cv_size_t_is_uint=yes
16704
5c6fa7d2 16705fi
a0b9e27f 16706rm -f conftest*
8284b0c5 16707
247f5006 16708fi
a0b9e27f
MB
16709
16710echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16711
90dd450c 16712if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16713 cat >> confdefs.h <<\EOF
90dd450c 16714#define wxSIZE_T_IS_UINT 1
a0b9e27f 16715EOF
698dcdb6 16716
90dd450c 16717else
a0b9e27f 16718 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
1542ea39 16719echo "configure:16720: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16720if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16722else
a0b9e27f 16723 cat > conftest.$ac_ext <<EOF
1542ea39 16724#line 16725 "configure"
10f2d63a 16725#include "confdefs.h"
90dd450c 16726#include <stddef.h>
a0b9e27f 16727int main() {
90dd450c
VZ
16728
16729 return 0; }
16730
16731 struct Foo { void foo(size_t); void foo(unsigned long); };
16732
16733 int bar() {
a0b9e27f
MB
16734
16735; return 0; }
16736EOF
1542ea39 16737if { (eval echo configure:16738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16738 rm -rf conftest*
90dd450c 16739 wx_cv_size_t_is_ulong=no
698dcdb6 16740else
a0b9e27f
MB
16741 echo "configure: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 rm -rf conftest*
16744 wx_cv_size_t_is_ulong=yes
16745
5c6fa7d2 16746fi
a0b9e27f
MB
16747rm -f conftest*
16748
247f5006 16749fi
a0b9e27f
MB
16750
16751echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16752
90dd450c 16753 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16754 cat >> confdefs.h <<\EOF
90dd450c 16755#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16756EOF
4f14bcd8
GD
16757
16758 fi
90dd450c 16759fi
1e487827 16760
90dd450c 16761ac_ext=c
a0b9e27f 16762# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16763ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16764ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16765ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16766cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16767
5c6fa7d2 16768
8284b0c5 16769
a0b9e27f 16770echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1542ea39 16771echo "configure:16772: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16772if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16773 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16774else
a0b9e27f
MB
16775
16776 cat > conftest.$ac_ext <<EOF
1542ea39 16777#line 16778 "configure"
4f14bcd8 16778#include "confdefs.h"
90dd450c 16779#include <pwd.h>
a0b9e27f 16780int main() {
f6bcfd97 16781
90dd450c
VZ
16782 char *p;
16783 struct passwd *pw;
16784 p = pw->pw_gecos;
a0b9e27f
MB
16785
16786; return 0; }
16787EOF
1542ea39 16788if { (eval echo configure:16789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16789 rm -rf conftest*
16790
90dd450c 16791 wx_cv_struct_pw_gecos=yes
a0b9e27f 16792
10f2d63a 16793else
a0b9e27f
MB
16794 echo "configure: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16796 rm -rf conftest*
16797
90dd450c 16798 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16799
16800
5c6fa7d2 16801fi
a0b9e27f
MB
16802rm -f conftest*
16803
247f5006
VZ
16804
16805fi
a0b9e27f
MB
16806
16807echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16808
90dd450c 16809if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16810 cat >> confdefs.h <<\EOF
90dd450c 16811#define HAVE_PW_GECOS 1
a0b9e27f 16812EOF
c521c494 16813
90dd450c 16814fi
4f14bcd8 16815
8284b0c5 16816
d29b553b 16817if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16818 cat >> confdefs.h <<\EOF
d74f4b5a 16819#define wxUSE_WCHAR_T 1
a0b9e27f 16820EOF
d74f4b5a 16821
8284b0c5 16822
d74f4b5a
VZ
16823 WCSLEN_FOUND=0
16824 WCHAR_LINK=
a0b9e27f 16825 for ac_func in wcslen
7a30264c 16826do
a0b9e27f 16827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 16828echo "configure:16829: checking for $ac_func" >&5
a0b9e27f
MB
16829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16830 echo $ac_n "(cached) $ac_c" 1>&6
16831else
16832 cat > conftest.$ac_ext <<EOF
1542ea39 16833#line 16834 "configure"
4f14bcd8 16834#include "confdefs.h"
7a30264c 16835/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16836 which can conflict with char $ac_func(); below. */
7a30264c 16837#include <assert.h>
4f14bcd8
GD
16838/* Override any gcc2 internal prototype to avoid an error. */
16839/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16840 builtin and then its argument prototype would still apply. */
16841char $ac_func();
16842
16843int main() {
16844
7a30264c
VZ
16845/* The GNU C library defines this for functions which it implements
16846 to always fail with ENOSYS. Some functions are actually named
16847 something starting with __ and the normal name is an alias. */
16848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16849choke me
16850#else
a0b9e27f 16851$ac_func();
7a30264c
VZ
16852#endif
16853
a0b9e27f
MB
16854; return 0; }
16855EOF
1542ea39 16856if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16857 rm -rf conftest*
16858 eval "ac_cv_func_$ac_func=yes"
16859else
16860 echo "configure: failed program was:" >&5
16861 cat conftest.$ac_ext >&5
16862 rm -rf conftest*
16863 eval "ac_cv_func_$ac_func=no"
16864fi
16865rm -f conftest*
16866fi
16867
16868if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16869 echo "$ac_t""yes" 1>&6
16870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16871 cat >> confdefs.h <<EOF
16872#define $ac_tr_func 1
16873EOF
d74f4b5a 16874 WCSLEN_FOUND=1
a0b9e27f
MB
16875else
16876 echo "$ac_t""no" 1>&6
7a30264c
VZ
16877fi
16878done
9d8deca0 16879
8284b0c5 16880
d74f4b5a 16881 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16882 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16883 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
1542ea39 16884echo "configure:16885: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16885ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16886if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16888else
a0b9e27f 16889 ac_save_LIBS="$LIBS"
7a30264c 16890LIBS="-lmsvcrt $LIBS"
a0b9e27f 16891cat > conftest.$ac_ext <<EOF
1542ea39 16892#line 16893 "configure"
10f2d63a 16893#include "confdefs.h"
4f14bcd8
GD
16894/* Override any gcc2 internal prototype to avoid an error. */
16895/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16896 builtin and then its argument prototype would still apply. */
16897char wcslen();
16898
16899int main() {
16900wcslen()
16901; return 0; }
16902EOF
1542ea39 16903if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16904 rm -rf conftest*
16905 eval "ac_cv_lib_$ac_lib_var=yes"
16906else
16907 echo "configure: failed program was:" >&5
16908 cat conftest.$ac_ext >&5
16909 rm -rf conftest*
16910 eval "ac_cv_lib_$ac_lib_var=no"
16911fi
16912rm -f conftest*
16913LIBS="$ac_save_LIBS"
16914
16915fi
16916if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16917 echo "$ac_t""yes" 1>&6
d74f4b5a 16918 WCHAR_OK=1
a0b9e27f
MB
16919else
16920 echo "$ac_t""no" 1>&6
d29b553b 16921fi
698dcdb6 16922
7a30264c 16923 else
a0b9e27f 16924 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1542ea39 16925echo "configure:16926: checking for wcslen in -lw" >&5
a0b9e27f
MB
16926ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16927if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16928 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16929else
a0b9e27f 16930 ac_save_LIBS="$LIBS"
7a30264c 16931LIBS="-lw $LIBS"
a0b9e27f 16932cat > conftest.$ac_ext <<EOF
1542ea39 16933#line 16934 "configure"
95c8801c 16934#include "confdefs.h"
4f14bcd8
GD
16935/* Override any gcc2 internal prototype to avoid an error. */
16936/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16937 builtin and then its argument prototype would still apply. */
16938char wcslen();
52127426 16939
a0b9e27f
MB
16940int main() {
16941wcslen()
16942; return 0; }
16943EOF
1542ea39 16944if { (eval echo configure:16945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16945 rm -rf conftest*
16946 eval "ac_cv_lib_$ac_lib_var=yes"
16947else
16948 echo "configure: failed program was:" >&5
16949 cat conftest.$ac_ext >&5
16950 rm -rf conftest*
16951 eval "ac_cv_lib_$ac_lib_var=no"
16952fi
16953rm -f conftest*
16954LIBS="$ac_save_LIBS"
16955
16956fi
16957if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16958 echo "$ac_t""yes" 1>&6
16959
7a30264c 16960 WCHAR_LINK=" -lw"
d74f4b5a 16961 WCSLEN_FOUND=1
a0b9e27f
MB
16962
16963else
16964 echo "$ac_t""no" 1>&6
4f14bcd8 16965fi
10f2d63a 16966
7a30264c 16967 fi
d29b553b 16968 fi
95c8801c 16969
d74f4b5a 16970 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16971 cat >> confdefs.h <<\EOF
d74f4b5a 16972#define HAVE_WCSLEN 1
a0b9e27f 16973EOF
10f2d63a 16974
d74f4b5a 16975 fi
52127426 16976
a0b9e27f 16977 for ac_func in wcsrtombs
eb4efbdc 16978do
a0b9e27f 16979echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 16980echo "configure:16981: checking for $ac_func" >&5
a0b9e27f
MB
16981if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16982 echo $ac_n "(cached) $ac_c" 1>&6
16983else
16984 cat > conftest.$ac_ext <<EOF
1542ea39 16985#line 16986 "configure"
eb4efbdc
VZ
16986#include "confdefs.h"
16987/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16988 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16989#include <assert.h>
16990/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16991/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16992 builtin and then its argument prototype would still apply. */
16993char $ac_func();
16994
16995int main() {
16996
10f2d63a
VZ
16997/* The GNU C library defines this for functions which it implements
16998 to always fail with ENOSYS. Some functions are actually named
16999 something starting with __ and the normal name is an alias. */
247f5006 17000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17001choke me
17002#else
a0b9e27f 17003$ac_func();
10f2d63a
VZ
17004#endif
17005
a0b9e27f
MB
17006; return 0; }
17007EOF
1542ea39 17008if { (eval echo configure:17009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17009 rm -rf conftest*
17010 eval "ac_cv_func_$ac_func=yes"
17011else
17012 echo "configure: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17014 rm -rf conftest*
17015 eval "ac_cv_func_$ac_func=no"
17016fi
17017rm -f conftest*
17018fi
270a909e 17019
a0b9e27f
MB
17020if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17021 echo "$ac_t""yes" 1>&6
17022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17023 cat >> confdefs.h <<EOF
17024#define $ac_tr_func 1
17025EOF
17026
17027else
17028 echo "$ac_t""no" 1>&6
4f14bcd8 17029fi
247f5006 17030done
1e487827 17031
af15babd 17032else
a0b9e27f 17033 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17034fi
52127426 17035
8284b0c5 17036
a0b9e27f
MB
17037ac_ext=C
17038# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17039ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17040ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17041ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17042cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17043
247f5006
VZ
17044
17045for ac_func in vsnprintf
17046do
a0b9e27f 17047echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17048echo "configure:17049: checking for $ac_func" >&5
a0b9e27f
MB
17049if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17050 echo $ac_n "(cached) $ac_c" 1>&6
17051else
17052 cat > conftest.$ac_ext <<EOF
1542ea39 17053#line 17054 "configure"
af15babd 17054#include "confdefs.h"
247f5006 17055/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17056 which can conflict with char $ac_func(); below. */
247f5006
VZ
17057#include <assert.h>
17058/* Override any gcc2 internal prototype to avoid an error. */
17059#ifdef __cplusplus
17060extern "C"
17061#endif
17062/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17063 builtin and then its argument prototype would still apply. */
17064char $ac_func();
17065
17066int main() {
17067
247f5006
VZ
17068/* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072choke me
17073#else
a0b9e27f 17074$ac_func();
247f5006 17075#endif
af15babd 17076
a0b9e27f
MB
17077; return 0; }
17078EOF
1542ea39 17079if { (eval echo configure:17080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17080 rm -rf conftest*
17081 eval "ac_cv_func_$ac_func=yes"
17082else
17083 echo "configure: failed program was:" >&5
17084 cat conftest.$ac_ext >&5
17085 rm -rf conftest*
17086 eval "ac_cv_func_$ac_func=no"
17087fi
17088rm -f conftest*
17089fi
52127426 17090
a0b9e27f
MB
17091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17092 echo "$ac_t""yes" 1>&6
17093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17094 cat >> confdefs.h <<EOF
17095#define $ac_tr_func 1
17096EOF
17097
17098else
17099 echo "$ac_t""no" 1>&6
5c6fa7d2 17100fi
247f5006 17101done
8284b0c5 17102
4f14bcd8 17103
8d90d2f2
VZ
17104if test "$ac_cv_func_vsnprintf" = "yes"; then
17105 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
1542ea39 17106echo "configure:17107: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17107if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17108 echo $ac_n "(cached) $ac_c" 1>&6
17109else
17110
17111 cat > conftest.$ac_ext <<EOF
1542ea39 17112#line 17113 "configure"
8d90d2f2
VZ
17113#include "confdefs.h"
17114
17115 #include <stdio.h>
17116 #include <stdarg.h>
17117
17118int main() {
17119
17120 char *buf;
17121 va_list ap;
17122 vsnprintf(buf, 10u, "%s", ap);
17123
17124; return 0; }
17125EOF
1542ea39 17126if { (eval echo configure:17127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17127 rm -rf conftest*
17128 wx_cv_func_vsnprintf_decl=yes
17129else
17130 echo "configure: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17132 rm -rf conftest*
17133 wx_cv_func_vsnprintf_decl=no
17134
17135fi
17136rm -f conftest*
17137
17138
17139fi
17140
17141echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17142
17143 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17144 cat >> confdefs.h <<\EOF
17145#define HAVE_VSNPRINTF_DECL 1
17146EOF
17147
17148 fi
17149fi
17150
247f5006 17151if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17152 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17153do
a0b9e27f 17154echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17155echo "configure:17156: checking for $ac_func" >&5
a0b9e27f
MB
17156if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17157 echo $ac_n "(cached) $ac_c" 1>&6
17158else
17159 cat > conftest.$ac_ext <<EOF
1542ea39 17160#line 17161 "configure"
d74f4b5a
VZ
17161#include "confdefs.h"
17162/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17163 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17164#include <assert.h>
17165/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17166#ifdef __cplusplus
17167extern "C"
17168#endif
d74f4b5a 17169/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17170 builtin and then its argument prototype would still apply. */
17171char $ac_func();
17172
17173int main() {
17174
d74f4b5a
VZ
17175/* The GNU C library defines this for functions which it implements
17176 to always fail with ENOSYS. Some functions are actually named
17177 something starting with __ and the normal name is an alias. */
17178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17179choke me
17180#else
a0b9e27f 17181$ac_func();
d74f4b5a
VZ
17182#endif
17183
a0b9e27f
MB
17184; return 0; }
17185EOF
1542ea39 17186if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17187 rm -rf conftest*
17188 eval "ac_cv_func_$ac_func=yes"
17189else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 eval "ac_cv_func_$ac_func=no"
17194fi
17195rm -f conftest*
17196fi
d74f4b5a 17197
a0b9e27f
MB
17198if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17199 echo "$ac_t""yes" 1>&6
17200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17201 cat >> confdefs.h <<EOF
17202#define $ac_tr_func 1
17203EOF
17204
17205else
17206 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17207fi
17208done
17209
8d90d2f2 17210
79668cae 17211 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
1542ea39 17212echo "configure:17213: checking for _vsnwprintf" >&5
79668cae 17213 cat > conftest.$ac_ext <<EOF
1542ea39 17214#line 17215 "configure"
79668cae
MB
17215#include "confdefs.h"
17216#include <wchar.h>
17217int main() {
17218&_vsnwprintf;
17219; return 0; }
17220EOF
1542ea39 17221if { (eval echo configure:17222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17222 rm -rf conftest*
17223 echo "$ac_t""yes" 1>&6
17224 cat >> confdefs.h <<\EOF
17225#define HAVE__VSNWPRINTF 1
17226EOF
17227
17228else
17229 echo "configure: failed program was:" >&5
17230 cat conftest.$ac_ext >&5
17231 rm -rf conftest*
17232 echo "$ac_t""no" 1>&6
17233fi
17234rm -f conftest*;
d74f4b5a
VZ
17235fi
17236
247f5006 17237ac_ext=c
a0b9e27f 17238# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17239ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17240ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17241ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17242cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17243
17244
17245
17246
4f14bcd8 17247if test "$TOOLKIT" != "MSW"; then
af15babd 17248
8284b0c5
MB
17249
17250
a0b9e27f
MB
17251ac_ext=C
17252# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17253ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17254ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17255ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17256cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17257
52127426 17258
a0b9e27f
MB
17259
17260 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17261if test "${with_libiconv_prefix+set}" = set; then
17262 withval="$with_libiconv_prefix"
a0b9e27f 17263
b040e242
VS
17264 for dir in `echo "$withval" | tr : ' '`; do
17265 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17266 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17267 done
a0b9e27f
MB
17268
17269fi
b040e242
VS
17270
17271
a0b9e27f 17272 echo $ac_n "checking for iconv""... $ac_c" 1>&6
1542ea39 17273echo "configure:17274: checking for iconv" >&5
a0b9e27f
MB
17274if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17275 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17276else
a0b9e27f 17277
b040e242
VS
17278 am_cv_func_iconv="no, consider installing GNU libiconv"
17279 am_cv_lib_iconv=no
a0b9e27f 17280 cat > conftest.$ac_ext <<EOF
1542ea39 17281#line 17282 "configure"
af15babd 17282#include "confdefs.h"
b040e242 17283#include <stdlib.h>
4f14bcd8 17284#include <iconv.h>
a0b9e27f 17285int main() {
b040e242
VS
17286iconv_t cd = iconv_open("","");
17287 iconv(cd,NULL,NULL,NULL,NULL);
17288 iconv_close(cd);
a0b9e27f
MB
17289; return 0; }
17290EOF
1542ea39 17291if { (eval echo configure:17292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17292 rm -rf conftest*
b040e242 17293 am_cv_func_iconv=yes
af15babd 17294else
a0b9e27f
MB
17295 echo "configure: failed program was:" >&5
17296 cat conftest.$ac_ext >&5
b040e242 17297fi
a0b9e27f 17298rm -f conftest*
b040e242
VS
17299 if test "$am_cv_func_iconv" != yes; then
17300 am_save_LIBS="$LIBS"
17301 LIBS="$LIBS -liconv"
a0b9e27f 17302 cat > conftest.$ac_ext <<EOF
1542ea39 17303#line 17304 "configure"
b040e242
VS
17304#include "confdefs.h"
17305#include <stdlib.h>
17306#include <iconv.h>
a0b9e27f 17307int main() {
b040e242
VS
17308iconv_t cd = iconv_open("","");
17309 iconv(cd,NULL,NULL,NULL,NULL);
17310 iconv_close(cd);
a0b9e27f
MB
17311; return 0; }
17312EOF
1542ea39 17313if { (eval echo configure:17314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17314 rm -rf conftest*
b040e242
VS
17315 am_cv_lib_iconv=yes
17316 am_cv_func_iconv=yes
17317else
a0b9e27f
MB
17318 echo "configure: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
af15babd 17320fi
a0b9e27f 17321rm -f conftest*
b040e242
VS
17322 LIBS="$am_save_LIBS"
17323 fi
a0b9e27f 17324
247f5006 17325fi
247f5006 17326
a0b9e27f
MB
17327echo "$ac_t""$am_cv_func_iconv" 1>&6
17328 if test "$am_cv_func_iconv" = yes; then
17329 cat >> confdefs.h <<\EOF
b040e242 17330#define HAVE_ICONV 1
a0b9e27f 17331EOF
b040e242 17332
a0b9e27f 17333 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
1542ea39 17334echo "configure:17335: checking if iconv needs const" >&5
a0b9e27f
MB
17335if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17336 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17337else
a0b9e27f 17338 cat > conftest.$ac_ext <<EOF
1542ea39 17339#line 17340 "configure"
b040e242
VS
17340#include "confdefs.h"
17341
17342#include <stdlib.h>
17343#include <iconv.h>
17344extern
17345#ifdef __cplusplus
17346"C"
17347#endif
17348#if defined(__STDC__) || defined(__cplusplus)
17349size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17350#else
17351size_t iconv();
17352#endif
a0b9e27f
MB
17353
17354int main() {
af15babd 17355
a0b9e27f
MB
17356; return 0; }
17357EOF
1542ea39 17358if { (eval echo configure:17359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17359 rm -rf conftest*
b7043674 17360 wx_cv_func_iconv_const="no"
b040e242 17361else
a0b9e27f
MB
17362 echo "configure: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17364 rm -rf conftest*
17365 wx_cv_func_iconv_const="yes"
17366
5c6fa7d2 17367fi
a0b9e27f
MB
17368rm -f conftest*
17369
247f5006 17370fi
a0b9e27f
MB
17371
17372echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17373
17374 iconv_const=
1c405bb5 17375 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17376 iconv_const="const"
17377 fi
17378
a0b9e27f 17379 cat >> confdefs.h <<EOF
f09359cf 17380#define ICONV_CONST $iconv_const
a0b9e27f 17381EOF
b040e242
VS
17382
17383 fi
17384 LIBICONV=
17385 if test "$am_cv_lib_iconv" = yes; then
17386 LIBICONV="-liconv"
17387 fi
a0b9e27f 17388
b040e242
VS
17389
17390LIBS="$LIBICONV $LIBS"
4f14bcd8 17391ac_ext=c
a0b9e27f 17392# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17393ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17394ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17395ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17396cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17397
5c6fa7d2 17398
8284b0c5 17399if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17400 for ac_func in sigaction
af15babd 17401do
a0b9e27f 17402echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17403echo "configure:17404: checking for $ac_func" >&5
a0b9e27f
MB
17404if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17405 echo $ac_n "(cached) $ac_c" 1>&6
17406else
17407 cat > conftest.$ac_ext <<EOF
1542ea39 17408#line 17409 "configure"
af15babd
VZ
17409#include "confdefs.h"
17410/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17411 which can conflict with char $ac_func(); below. */
af15babd
VZ
17412#include <assert.h>
17413/* Override any gcc2 internal prototype to avoid an error. */
17414/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17415 builtin and then its argument prototype would still apply. */
17416char $ac_func();
17417
17418int main() {
17419
af15babd
VZ
17420/* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17424choke me
17425#else
a0b9e27f 17426$ac_func();
af15babd
VZ
17427#endif
17428
a0b9e27f
MB
17429; return 0; }
17430EOF
1542ea39 17431if { (eval echo configure:17432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17432 rm -rf conftest*
17433 eval "ac_cv_func_$ac_func=yes"
17434else
17435 echo "configure: failed program was:" >&5
17436 cat conftest.$ac_ext >&5
17437 rm -rf conftest*
17438 eval "ac_cv_func_$ac_func=no"
17439fi
17440rm -f conftest*
17441fi
7b4a847f 17442
a0b9e27f
MB
17443if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17444 echo "$ac_t""yes" 1>&6
17445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17446 cat >> confdefs.h <<EOF
17447#define $ac_tr_func 1
17448EOF
17449
17450else
17451 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17452fi
17453done
17454
8284b0c5 17455
4f14bcd8 17456 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17457 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17458 wxUSE_ON_FATAL_EXCEPTION=no
17459 fi
17460
17461 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17462
17463 ac_ext=C
17464# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17465ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17466ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17469
5c6fa7d2 17470
a0b9e27f 17471 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1542ea39 17472echo "configure:17473: checking for sa_handler type" >&5
a0b9e27f
MB
17473if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17474 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17475else
a0b9e27f
MB
17476
17477 cat > conftest.$ac_ext <<EOF
1542ea39 17478#line 17479 "configure"
af15babd 17479#include "confdefs.h"
4f14bcd8 17480#include <signal.h>
a0b9e27f 17481int main() {
4f14bcd8
GD
17482
17483 extern void testSigHandler(int);
17484
17485 struct sigaction sa;
17486 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17487
17488; return 0; }
17489EOF
1542ea39 17490if { (eval echo configure:17491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17491 rm -rf conftest*
17492
4f14bcd8 17493 wx_cv_type_sa_handler=int
a0b9e27f 17494
af15babd 17495else
a0b9e27f
MB
17496 echo "configure: failed program was:" >&5
17497 cat conftest.$ac_ext >&5
17498 rm -rf conftest*
17499
4f14bcd8 17500 wx_cv_type_sa_handler=void
a0b9e27f 17501
5c6fa7d2 17502fi
a0b9e27f
MB
17503rm -f conftest*
17504
247f5006 17505fi
a0b9e27f
MB
17506
17507echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17508
17509 ac_ext=c
a0b9e27f 17510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17511ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17513ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17514cross_compiling=$ac_cv_prog_cc_cross
579d8138 17515
8284b0c5 17516
a0b9e27f 17517 cat >> confdefs.h <<EOF
4f14bcd8 17518#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17519EOF
af15babd 17520
4f14bcd8
GD
17521 fi
17522fi
af15babd 17523
a1d22ad7 17524for ac_func in mkstemp mktemp
af15babd 17525do
a0b9e27f 17526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17527echo "configure:17528: checking for $ac_func" >&5
a0b9e27f
MB
17528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17529 echo $ac_n "(cached) $ac_c" 1>&6
17530else
17531 cat > conftest.$ac_ext <<EOF
1542ea39 17532#line 17533 "configure"
af15babd
VZ
17533#include "confdefs.h"
17534/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17535 which can conflict with char $ac_func(); below. */
af15babd
VZ
17536#include <assert.h>
17537/* Override any gcc2 internal prototype to avoid an error. */
17538/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17539 builtin and then its argument prototype would still apply. */
17540char $ac_func();
17541
17542int main() {
17543
af15babd
VZ
17544/* The GNU C library defines this for functions which it implements
17545 to always fail with ENOSYS. Some functions are actually named
17546 something starting with __ and the normal name is an alias. */
17547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17548choke me
17549#else
a0b9e27f 17550$ac_func();
af15babd
VZ
17551#endif
17552
a0b9e27f
MB
17553; return 0; }
17554EOF
1542ea39 17555if { (eval echo configure:17556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17556 rm -rf conftest*
17557 eval "ac_cv_func_$ac_func=yes"
17558else
17559 echo "configure: failed program was:" >&5
17560 cat conftest.$ac_ext >&5
17561 rm -rf conftest*
17562 eval "ac_cv_func_$ac_func=no"
17563fi
17564rm -f conftest*
17565fi
af15babd 17566
a0b9e27f
MB
17567if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17568 echo "$ac_t""yes" 1>&6
17569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17570 cat >> confdefs.h <<EOF
17571#define $ac_tr_func 1
17572EOF
ade35f11 17573 break
a0b9e27f
MB
17574else
17575 echo "$ac_t""no" 1>&6
ade35f11
VZ
17576fi
17577done
17578
8284b0c5 17579
a0b9e27f 17580echo $ac_n "checking for statfs""... $ac_c" 1>&6
1542ea39 17581echo "configure:17582: checking for statfs" >&5
a0b9e27f
MB
17582if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17583 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17584else
a0b9e27f 17585 cat > conftest.$ac_ext <<EOF
1542ea39 17586#line 17587 "configure"
4f14bcd8
GD
17587#include "confdefs.h"
17588
17589 #if defined(__BSD__)
17590 #include <sys/param.h>
17591 #include <sys/mount.h>
17592 #else
17593 #include <sys/vfs.h>
17594 #endif
a0b9e27f
MB
17595
17596int main() {
4f14bcd8
GD
17597
17598 long l;
17599 struct statfs fs;
17600 statfs("/", &fs);
17601 l = fs.f_bsize;
17602 l += fs.f_blocks;
17603 l += fs.f_bavail;
a0b9e27f
MB
17604
17605; return 0; }
17606EOF
1542ea39 17607if { (eval echo configure:17608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17608 rm -rf conftest*
17609
4f14bcd8 17610 wx_cv_func_statfs=yes
a0b9e27f 17611
4f14bcd8 17612else
a0b9e27f
MB
17613 echo "configure: failed program was:" >&5
17614 cat conftest.$ac_ext >&5
17615 rm -rf conftest*
17616
4f14bcd8 17617 wx_cv_func_statfs=no
a0b9e27f
MB
17618
17619
5c6fa7d2 17620fi
a0b9e27f 17621rm -f conftest*
8284b0c5 17622
247f5006 17623fi
a0b9e27f
MB
17624
17625echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17626
17627if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17628 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17629 cat >> confdefs.h <<\EOF
4f14bcd8 17630#define HAVE_STATFS 1
a0b9e27f 17631EOF
4f14bcd8
GD
17632
17633else
a0b9e27f 17634 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1542ea39 17635echo "configure:17636: checking for statvfs" >&5
a0b9e27f
MB
17636if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17637 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17638else
a0b9e27f 17639 cat > conftest.$ac_ext <<EOF
1542ea39 17640#line 17641 "configure"
af15babd 17641#include "confdefs.h"
af15babd 17642
54ab82b3
VZ
17643 #include <stddef.h>
17644 #include <sys/statvfs.h>
a0b9e27f
MB
17645
17646int main() {
af15babd 17647
54ab82b3 17648 statvfs("/", NULL);
a0b9e27f
MB
17649
17650; return 0; }
17651EOF
1542ea39 17652if { (eval echo configure:17653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17653 rm -rf conftest*
54ab82b3 17654 wx_cv_func_statvfs=yes
af15babd 17655else
a0b9e27f
MB
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 rm -rf conftest*
54ab82b3 17659 wx_cv_func_statvfs=no
a0b9e27f 17660
5c6fa7d2 17661fi
a0b9e27f
MB
17662rm -f conftest*
17663
247f5006 17664fi
a0b9e27f
MB
17665
17666echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17667
4f14bcd8 17668 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17669
17670 ac_ext=C
17671# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17672ac_cpp='$CXXCPP $CPPFLAGS'
17673ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17674ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17675cross_compiling=$ac_cv_prog_cxx_cross
17676
17677
17678 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
1542ea39 17679echo "configure:17680: checking for statvfs argument type" >&5
54ab82b3
VZ
17680if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17681 echo $ac_n "(cached) $ac_c" 1>&6
17682else
17683 cat > conftest.$ac_ext <<EOF
1542ea39 17684#line 17685 "configure"
54ab82b3
VZ
17685#include "confdefs.h"
17686
17687 #include <sys/statvfs.h>
17688
17689int main() {
17690
17691 long l;
17692 statvfs_t fs;
17693 statvfs("/", &fs);
17694 l = fs.f_bsize;
17695 l += fs.f_blocks;
17696 l += fs.f_bavail;
17697
17698; return 0; }
17699EOF
1542ea39 17700if { (eval echo configure:17701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17701 rm -rf conftest*
17702 wx_cv_type_statvfs_t=statvfs_t
17703else
17704 echo "configure: failed program was:" >&5
17705 cat conftest.$ac_ext >&5
17706 rm -rf conftest*
17707
17708 cat > conftest.$ac_ext <<EOF
1542ea39 17709#line 17710 "configure"
54ab82b3
VZ
17710#include "confdefs.h"
17711
17712 #include <sys/statvfs.h>
17713
17714int main() {
17715
17716 long l;
65d8ef1e 17717 struct statvfs fs;
54ab82b3
VZ
17718 statvfs("/", &fs);
17719 l = fs.f_bsize;
17720 l += fs.f_blocks;
17721 l += fs.f_bavail;
17722
17723; return 0; }
17724EOF
1542ea39 17725if { (eval echo configure:17726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17726 rm -rf conftest*
17727 wx_cv_type_statvfs_t="struct statvfs"
17728else
17729 echo "configure: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 rm -rf conftest*
17732 wx_cv_type_statvfs_t="unknown"
17733
17734fi
17735rm -f conftest*
17736
17737
17738fi
17739rm -f conftest*
17740
17741fi
17742
17743echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17744
17745 ac_ext=c
17746# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747ac_cpp='$CPP $CPPFLAGS'
17748ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750cross_compiling=$ac_cv_prog_cc_cross
17751
17752
17753 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17754 cat >> confdefs.h <<\EOF
4f14bcd8 17755#define HAVE_STATVFS 1
a0b9e27f 17756EOF
af15babd 17757
54ab82b3 17758 fi
4f14bcd8 17759 else
54ab82b3 17760 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17761 fi
17762fi
af15babd 17763
54ab82b3
VZ
17764if test "$wx_cv_type_statvfs_t" != "unknown"; then
17765 cat >> confdefs.h <<EOF
17766#define WX_STATFS_T $wx_cv_type_statvfs_t
17767EOF
17768
17769else
17770 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17771fi
17772
4f14bcd8 17773if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17774 for ac_func in fcntl flock
af15babd 17775do
a0b9e27f 17776echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17777echo "configure:17778: checking for $ac_func" >&5
a0b9e27f
MB
17778if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
17780else
17781 cat > conftest.$ac_ext <<EOF
1542ea39 17782#line 17783 "configure"
af15babd
VZ
17783#include "confdefs.h"
17784/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17785 which can conflict with char $ac_func(); below. */
af15babd
VZ
17786#include <assert.h>
17787/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17788/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17789 builtin and then its argument prototype would still apply. */
17790char $ac_func();
17791
17792int main() {
17793
af15babd
VZ
17794/* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798choke me
17799#else
a0b9e27f 17800$ac_func();
af15babd
VZ
17801#endif
17802
a0b9e27f
MB
17803; return 0; }
17804EOF
1542ea39 17805if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17806 rm -rf conftest*
17807 eval "ac_cv_func_$ac_func=yes"
17808else
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17811 rm -rf conftest*
17812 eval "ac_cv_func_$ac_func=no"
17813fi
17814rm -f conftest*
17815fi
17816
17817if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17818 echo "$ac_t""yes" 1>&6
17819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17820 cat >> confdefs.h <<EOF
17821#define $ac_tr_func 1
17822EOF
4f14bcd8 17823 break
a0b9e27f
MB
17824else
17825 echo "$ac_t""no" 1>&6
af15babd
VZ
17826fi
17827done
17828
8284b0c5 17829
4f14bcd8 17830 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17831 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17832 wxUSE_SNGLINST_CHECKER=no
17833 fi
17834fi
af15babd 17835
4f14bcd8 17836for ac_func in timegm
af15babd 17837do
a0b9e27f 17838echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17839echo "configure:17840: checking for $ac_func" >&5
a0b9e27f
MB
17840if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17841 echo $ac_n "(cached) $ac_c" 1>&6
17842else
17843 cat > conftest.$ac_ext <<EOF
1542ea39 17844#line 17845 "configure"
af15babd
VZ
17845#include "confdefs.h"
17846/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17847 which can conflict with char $ac_func(); below. */
af15babd
VZ
17848#include <assert.h>
17849/* Override any gcc2 internal prototype to avoid an error. */
17850/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17851 builtin and then its argument prototype would still apply. */
17852char $ac_func();
17853
17854int main() {
17855
af15babd
VZ
17856/* The GNU C library defines this for functions which it implements
17857 to always fail with ENOSYS. Some functions are actually named
17858 something starting with __ and the normal name is an alias. */
247f5006
VZ
17859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17860choke me
17861#else
a0b9e27f 17862$ac_func();
247f5006
VZ
17863#endif
17864
a0b9e27f
MB
17865; return 0; }
17866EOF
1542ea39 17867if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17868 rm -rf conftest*
17869 eval "ac_cv_func_$ac_func=yes"
17870else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 eval "ac_cv_func_$ac_func=no"
17875fi
17876rm -f conftest*
17877fi
703e0a69 17878
a0b9e27f
MB
17879if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17880 echo "$ac_t""yes" 1>&6
17881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17882 cat >> confdefs.h <<EOF
17883#define $ac_tr_func 1
17884EOF
17885
17886else
17887 echo "$ac_t""no" 1>&6
af15babd
VZ
17888fi
17889done
17890
8284b0c5 17891
4f14bcd8 17892for ac_func in putenv setenv
10f2d63a 17893do
a0b9e27f 17894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17895echo "configure:17896: checking for $ac_func" >&5
a0b9e27f
MB
17896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17897 echo $ac_n "(cached) $ac_c" 1>&6
17898else
17899 cat > conftest.$ac_ext <<EOF
1542ea39 17900#line 17901 "configure"
af15babd
VZ
17901#include "confdefs.h"
17902/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17903 which can conflict with char $ac_func(); below. */
af15babd
VZ
17904#include <assert.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 $ac_func();
17909
17910int main() {
17911
af15babd
VZ
17912/* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17916choke me
17917#else
a0b9e27f 17918$ac_func();
af15babd
VZ
17919#endif
17920
a0b9e27f
MB
17921; return 0; }
17922EOF
1542ea39 17923if { (eval echo configure:17924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17924 rm -rf conftest*
17925 eval "ac_cv_func_$ac_func=yes"
17926else
17927 echo "configure: failed program was:" >&5
17928 cat conftest.$ac_ext >&5
17929 rm -rf conftest*
17930 eval "ac_cv_func_$ac_func=no"
17931fi
17932rm -f conftest*
17933fi
17934
17935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17936 echo "$ac_t""yes" 1>&6
17937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17938 cat >> confdefs.h <<EOF
17939#define $ac_tr_func 1
17940EOF
4f14bcd8 17941 break
a0b9e27f
MB
17942else
17943 echo "$ac_t""no" 1>&6
af15babd 17944fi
af15babd
VZ
17945done
17946
8284b0c5 17947
4f14bcd8
GD
17948HAVE_SOME_SLEEP_FUNC=0
17949if test "$USE_BEOS" = 1; then
a0b9e27f 17950 cat >> confdefs.h <<\EOF
4f14bcd8 17951#define HAVE_SLEEP 1
a0b9e27f 17952EOF
af15babd 17953
4f14bcd8 17954 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17955fi
17956
4f14bcd8 17957if test "$USE_DARWIN" = 1; then
a0b9e27f 17958 cat >> confdefs.h <<\EOF
4f14bcd8 17959#define HAVE_USLEEP 1
a0b9e27f 17960EOF
10f2d63a 17961
4f14bcd8 17962 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17963fi
17964
4f14bcd8
GD
17965if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17966 POSIX4_LINK=
a0b9e27f 17967 for ac_func in nanosleep
4f14bcd8 17968do
a0b9e27f 17969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 17970echo "configure:17971: checking for $ac_func" >&5
a0b9e27f
MB
17971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17972 echo $ac_n "(cached) $ac_c" 1>&6
17973else
17974 cat > conftest.$ac_ext <<EOF
1542ea39 17975#line 17976 "configure"
10f2d63a 17976#include "confdefs.h"
4f14bcd8 17977/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17978 which can conflict with char $ac_func(); below. */
4f14bcd8 17979#include <assert.h>
10f2d63a
VZ
17980/* Override any gcc2 internal prototype to avoid an error. */
17981/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17982 builtin and then its argument prototype would still apply. */
17983char $ac_func();
17984
17985int main() {
17986
4f14bcd8
GD
17987/* The GNU C library defines this for functions which it implements
17988 to always fail with ENOSYS. Some functions are actually named
17989 something starting with __ and the normal name is an alias. */
17990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17991choke me
17992#else
a0b9e27f 17993$ac_func();
4f14bcd8
GD
17994#endif
17995
a0b9e27f
MB
17996; return 0; }
17997EOF
1542ea39 17998if { (eval echo configure:17999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17999 rm -rf conftest*
18000 eval "ac_cv_func_$ac_func=yes"
18001else
18002 echo "configure: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18004 rm -rf conftest*
18005 eval "ac_cv_func_$ac_func=no"
18006fi
18007rm -f conftest*
18008fi
18009
18010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18011 echo "$ac_t""yes" 1>&6
18012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18013 cat >> confdefs.h <<EOF
18014#define $ac_tr_func 1
18015EOF
18016 cat >> confdefs.h <<\EOF
4f14bcd8 18017#define HAVE_NANOSLEEP 1
a0b9e27f 18018EOF
4f14bcd8 18019
10f2d63a 18020else
a0b9e27f
MB
18021 echo "$ac_t""no" 1>&6
18022echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1542ea39 18023echo "configure:18024: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18024ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18025if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18026 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18027else
a0b9e27f 18028 ac_save_LIBS="$LIBS"
4f14bcd8 18029LIBS="-lposix4 $LIBS"
a0b9e27f 18030cat > conftest.$ac_ext <<EOF
1542ea39 18031#line 18032 "configure"
10f2d63a
VZ
18032#include "confdefs.h"
18033/* Override any gcc2 internal prototype to avoid an error. */
18034/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18035 builtin and then its argument prototype would still apply. */
18036char nanosleep();
18037
18038int main() {
18039nanosleep()
18040; return 0; }
18041EOF
1542ea39 18042if { (eval echo configure:18043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18043 rm -rf conftest*
18044 eval "ac_cv_lib_$ac_lib_var=yes"
18045else
18046 echo "configure: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048 rm -rf conftest*
18049 eval "ac_cv_lib_$ac_lib_var=no"
18050fi
18051rm -f conftest*
18052LIBS="$ac_save_LIBS"
18053
18054fi
18055if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18056 echo "$ac_t""yes" 1>&6
18057
18058 cat >> confdefs.h <<\EOF
4f14bcd8 18059#define HAVE_NANOSLEEP 1
a0b9e27f 18060EOF
4f14bcd8 18061
3d63bc3a 18062 POSIX4_LINK=" -lposix4"
a0b9e27f 18063
10f2d63a 18064else
a0b9e27f 18065 echo "$ac_t""no" 1>&6
10f2d63a 18066
a0b9e27f 18067 for ac_func in usleep
4f14bcd8 18068do
a0b9e27f 18069echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18070echo "configure:18071: checking for $ac_func" >&5
a0b9e27f
MB
18071if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18072 echo $ac_n "(cached) $ac_c" 1>&6
18073else
18074 cat > conftest.$ac_ext <<EOF
1542ea39 18075#line 18076 "configure"
10f2d63a 18076#include "confdefs.h"
4f14bcd8 18077/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18078 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18079#include <assert.h>
18080/* Override any gcc2 internal prototype to avoid an error. */
18081/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18082 builtin and then its argument prototype would still apply. */
18083char $ac_func();
18084
18085int main() {
18086
4f14bcd8
GD
18087/* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18091choke me
18092#else
a0b9e27f 18093$ac_func();
4f14bcd8
GD
18094#endif
18095
a0b9e27f
MB
18096; return 0; }
18097EOF
1542ea39 18098if { (eval echo configure:18099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18099 rm -rf conftest*
18100 eval "ac_cv_func_$ac_func=yes"
18101else
18102 echo "configure: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 rm -rf conftest*
18105 eval "ac_cv_func_$ac_func=no"
18106fi
18107rm -f conftest*
18108fi
18109
18110if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18111 echo "$ac_t""yes" 1>&6
18112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18113 cat >> confdefs.h <<EOF
18114#define $ac_tr_func 1
18115EOF
18116 cat >> confdefs.h <<\EOF
4f14bcd8 18117#define HAVE_USLEEP 1
a0b9e27f 18118EOF
4f14bcd8 18119
698dcdb6 18120else
a0b9e27f
MB
18121 echo "$ac_t""no" 1>&6
18122echo "configure: warning: wxSleep() function will not work" 1>&2
18123
10f2d63a 18124fi
4f14bcd8 18125done
10f2d63a 18126
a0b9e27f
MB
18127
18128
6232543b 18129fi
10f2d63a 18130
a0b9e27f
MB
18131
18132
1e487827 18133fi
4f14bcd8 18134done
703e0a69 18135
10f2d63a
VZ
18136fi
18137
4f14bcd8 18138for ac_func in uname gethostname
70846f0a 18139do
a0b9e27f 18140echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18141echo "configure:18142: checking for $ac_func" >&5
a0b9e27f
MB
18142if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18143 echo $ac_n "(cached) $ac_c" 1>&6
18144else
18145 cat > conftest.$ac_ext <<EOF
1542ea39 18146#line 18147 "configure"
70846f0a
VZ
18147#include "confdefs.h"
18148/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18149 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18150#include <assert.h>
18151/* Override any gcc2 internal prototype to avoid an error. */
18152/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18153 builtin and then its argument prototype would still apply. */
18154char $ac_func();
18155
18156int main() {
18157
70846f0a
VZ
18158/* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18162choke me
18163#else
a0b9e27f 18164$ac_func();
70846f0a
VZ
18165#endif
18166
a0b9e27f
MB
18167; return 0; }
18168EOF
1542ea39 18169if { (eval echo configure:18170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18170 rm -rf conftest*
18171 eval "ac_cv_func_$ac_func=yes"
18172else
18173 echo "configure: failed program was:" >&5
18174 cat conftest.$ac_ext >&5
18175 rm -rf conftest*
18176 eval "ac_cv_func_$ac_func=no"
18177fi
18178rm -f conftest*
18179fi
18180
18181if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18182 echo "$ac_t""yes" 1>&6
18183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18184 cat >> confdefs.h <<EOF
18185#define $ac_tr_func 1
18186EOF
4f14bcd8 18187 break
a0b9e27f
MB
18188else
18189 echo "$ac_t""no" 1>&6
70846f0a
VZ
18190fi
18191done
18192
8284b0c5
MB
18193
18194
a0b9e27f
MB
18195ac_ext=C
18196# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18197ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18198ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18199ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18200cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18201
4f14bcd8
GD
18202
18203for ac_func in strtok_r
10f2d63a 18204do
a0b9e27f 18205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18206echo "configure:18207: checking for $ac_func" >&5
a0b9e27f
MB
18207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18208 echo $ac_n "(cached) $ac_c" 1>&6
18209else
18210 cat > conftest.$ac_ext <<EOF
1542ea39 18211#line 18212 "configure"
10f2d63a 18212#include "confdefs.h"
4f14bcd8 18213/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18214 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18215#include <assert.h>
18216/* Override any gcc2 internal prototype to avoid an error. */
18217#ifdef __cplusplus
18218extern "C"
18219#endif
18220/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18221 builtin and then its argument prototype would still apply. */
18222char $ac_func();
18223
18224int main() {
18225
4f14bcd8
GD
18226/* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18230choke me
18231#else
a0b9e27f 18232$ac_func();
4f14bcd8
GD
18233#endif
18234
a0b9e27f
MB
18235; return 0; }
18236EOF
1542ea39 18237if { (eval echo configure:18238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18238 rm -rf conftest*
18239 eval "ac_cv_func_$ac_func=yes"
18240else
18241 echo "configure: failed program was:" >&5
18242 cat conftest.$ac_ext >&5
18243 rm -rf conftest*
18244 eval "ac_cv_func_$ac_func=no"
18245fi
18246rm -f conftest*
18247fi
4f14bcd8 18248
a0b9e27f
MB
18249if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18250 echo "$ac_t""yes" 1>&6
18251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18252 cat >> confdefs.h <<EOF
18253#define $ac_tr_func 1
18254EOF
18255
18256else
18257 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18258fi
18259done
18260
8284b0c5 18261
4f14bcd8 18262ac_ext=c
a0b9e27f 18263# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18264ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18265ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18266ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18267cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18268
5c6fa7d2 18269
8284b0c5 18270INET_LINK=
4f14bcd8
GD
18271for ac_func in inet_addr
18272do
a0b9e27f 18273echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18274echo "configure:18275: checking for $ac_func" >&5
a0b9e27f
MB
18275if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18276 echo $ac_n "(cached) $ac_c" 1>&6
18277else
18278 cat > conftest.$ac_ext <<EOF
1542ea39 18279#line 18280 "configure"
10f2d63a 18280#include "confdefs.h"
4f14bcd8 18281/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18282 which can conflict with char $ac_func(); below. */
4f14bcd8 18283#include <assert.h>
10f2d63a
VZ
18284/* Override any gcc2 internal prototype to avoid an error. */
18285/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18286 builtin and then its argument prototype would still apply. */
18287char $ac_func();
18288
18289int main() {
18290
4f14bcd8
GD
18291/* The GNU C library defines this for functions which it implements
18292 to always fail with ENOSYS. Some functions are actually named
18293 something starting with __ and the normal name is an alias. */
18294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18295choke me
18296#else
a0b9e27f 18297$ac_func();
4f14bcd8
GD
18298#endif
18299
a0b9e27f
MB
18300; return 0; }
18301EOF
1542ea39 18302if { (eval echo configure:18303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18303 rm -rf conftest*
18304 eval "ac_cv_func_$ac_func=yes"
18305else
18306 echo "configure: failed program was:" >&5
18307 cat conftest.$ac_ext >&5
18308 rm -rf conftest*
18309 eval "ac_cv_func_$ac_func=no"
18310fi
18311rm -f conftest*
18312fi
18313
18314if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18315 echo "$ac_t""yes" 1>&6
18316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18317 cat >> confdefs.h <<EOF
18318#define $ac_tr_func 1
18319EOF
18320 cat >> confdefs.h <<\EOF
4f14bcd8 18321#define HAVE_INET_ADDR 1
a0b9e27f 18322EOF
10f2d63a
VZ
18323
18324else
a0b9e27f
MB
18325 echo "$ac_t""no" 1>&6
18326echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1542ea39 18327echo "configure:18328: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18328ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18329if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18330 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18331else
a0b9e27f 18332 ac_save_LIBS="$LIBS"
4f14bcd8 18333LIBS="-lnsl $LIBS"
a0b9e27f 18334cat > conftest.$ac_ext <<EOF
1542ea39 18335#line 18336 "configure"
10f2d63a
VZ
18336#include "confdefs.h"
18337/* Override any gcc2 internal prototype to avoid an error. */
18338/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18339 builtin and then its argument prototype would still apply. */
18340char inet_addr();
18341
18342int main() {
18343inet_addr()
18344; return 0; }
18345EOF
1542ea39 18346if { (eval echo configure:18347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18347 rm -rf conftest*
18348 eval "ac_cv_lib_$ac_lib_var=yes"
18349else
18350 echo "configure: failed program was:" >&5
18351 cat conftest.$ac_ext >&5
18352 rm -rf conftest*
18353 eval "ac_cv_lib_$ac_lib_var=no"
18354fi
18355rm -f conftest*
18356LIBS="$ac_save_LIBS"
18357
18358fi
18359if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18360 echo "$ac_t""yes" 1>&6
4f14bcd8 18361 INET_LINK="nsl"
10f2d63a 18362else
a0b9e27f
MB
18363 echo "$ac_t""no" 1>&6
18364echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1542ea39 18365echo "configure:18366: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18366ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18369else
a0b9e27f 18370 ac_save_LIBS="$LIBS"
4f14bcd8 18371LIBS="-lresolv $LIBS"
a0b9e27f 18372cat > conftest.$ac_ext <<EOF
1542ea39 18373#line 18374 "configure"
7b4a847f 18374#include "confdefs.h"
5c6fa7d2 18375/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18376/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18377 builtin and then its argument prototype would still apply. */
18378char inet_addr();
18379
18380int main() {
18381inet_addr()
18382; return 0; }
18383EOF
1542ea39 18384if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18385 rm -rf conftest*
18386 eval "ac_cv_lib_$ac_lib_var=yes"
18387else
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 rm -rf conftest*
18391 eval "ac_cv_lib_$ac_lib_var=no"
18392fi
18393rm -f conftest*
18394LIBS="$ac_save_LIBS"
18395
18396fi
18397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18398 echo "$ac_t""yes" 1>&6
4f14bcd8 18399 INET_LINK="resolv"
698dcdb6 18400else
a0b9e27f
MB
18401 echo "$ac_t""no" 1>&6
18402echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
1542ea39 18403echo "configure:18404: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18404ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18405if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18406 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18407else
a0b9e27f 18408 ac_save_LIBS="$LIBS"
3c011993 18409LIBS="-lsocket $LIBS"
a0b9e27f 18410cat > conftest.$ac_ext <<EOF
1542ea39 18411#line 18412 "configure"
3c011993
VZ
18412#include "confdefs.h"
18413/* Override any gcc2 internal prototype to avoid an error. */
18414/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18415 builtin and then its argument prototype would still apply. */
18416char inet_addr();
4f14bcd8 18417
a0b9e27f
MB
18418int main() {
18419inet_addr()
18420; return 0; }
18421EOF
1542ea39 18422if { (eval echo configure:18423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18423 rm -rf conftest*
18424 eval "ac_cv_lib_$ac_lib_var=yes"
18425else
18426 echo "configure: failed program was:" >&5
18427 cat conftest.$ac_ext >&5
18428 rm -rf conftest*
18429 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18430fi
a0b9e27f
MB
18431rm -f conftest*
18432LIBS="$ac_save_LIBS"
698dcdb6 18433
7b4a847f 18434fi
a0b9e27f
MB
18435if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18436 echo "$ac_t""yes" 1>&6
18437 INET_LINK="socket"
18438
18439else
18440 echo "$ac_t""no" 1>&6
18441fi
579d8138 18442
a0b9e27f 18443
5c6fa7d2 18444fi
52127426 18445
a0b9e27f
MB
18446
18447fi
247f5006 18448
a0b9e27f 18449
8284b0c5 18450
698dcdb6 18451fi
4f14bcd8
GD
18452done
18453
8284b0c5 18454
4f14bcd8
GD
18455for ac_func in inet_aton
18456do
a0b9e27f 18457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18458echo "configure:18459: checking for $ac_func" >&5
a0b9e27f
MB
18459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18460 echo $ac_n "(cached) $ac_c" 1>&6
18461else
18462 cat > conftest.$ac_ext <<EOF
1542ea39 18463#line 18464 "configure"
f6bcfd97 18464#include "confdefs.h"
4f14bcd8 18465/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18466 which can conflict with char $ac_func(); below. */
4f14bcd8 18467#include <assert.h>
f6bcfd97
BP
18468/* Override any gcc2 internal prototype to avoid an error. */
18469/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18470 builtin and then its argument prototype would still apply. */
18471char $ac_func();
18472
18473int main() {
18474
4f14bcd8
GD
18475/* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18479choke me
18480#else
a0b9e27f 18481$ac_func();
4f14bcd8
GD
18482#endif
18483
a0b9e27f
MB
18484; return 0; }
18485EOF
1542ea39 18486if { (eval echo configure:18487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18487 rm -rf conftest*
18488 eval "ac_cv_func_$ac_func=yes"
18489else
18490 echo "configure: failed program was:" >&5
18491 cat conftest.$ac_ext >&5
18492 rm -rf conftest*
18493 eval "ac_cv_func_$ac_func=no"
18494fi
18495rm -f conftest*
18496fi
18497
18498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18499 echo "$ac_t""yes" 1>&6
18500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18501 cat >> confdefs.h <<EOF
18502#define $ac_tr_func 1
18503EOF
18504 cat >> confdefs.h <<\EOF
4f14bcd8 18505#define HAVE_INET_ATON 1
a0b9e27f 18506EOF
4f14bcd8 18507
10f2d63a 18508else
a0b9e27f
MB
18509 echo "$ac_t""no" 1>&6
18510 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1542ea39 18511echo "configure:18512: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18512ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18515else
a0b9e27f 18516 ac_save_LIBS="$LIBS"
4f14bcd8 18517LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18518cat > conftest.$ac_ext <<EOF
1542ea39 18519#line 18520 "configure"
10f2d63a 18520#include "confdefs.h"
6232543b 18521/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18522/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18523 builtin and then its argument prototype would still apply. */
18524char inet_aton();
18525
18526int main() {
18527inet_aton()
18528; return 0; }
18529EOF
1542ea39 18530if { (eval echo configure:18531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18531 rm -rf conftest*
18532 eval "ac_cv_lib_$ac_lib_var=yes"
18533else
18534 echo "configure: failed program was:" >&5
18535 cat conftest.$ac_ext >&5
18536 rm -rf conftest*
18537 eval "ac_cv_lib_$ac_lib_var=no"
18538fi
18539rm -f conftest*
18540LIBS="$ac_save_LIBS"
4f14bcd8 18541
10f2d63a 18542fi
a0b9e27f
MB
18543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18544 echo "$ac_t""yes" 1>&6
18545 cat >> confdefs.h <<\EOF
18546#define HAVE_INET_ATON 1
18547EOF
10f2d63a 18548
a0b9e27f
MB
18549else
18550 echo "$ac_t""no" 1>&6
18551fi
247f5006 18552
a0b9e27f 18553
10f2d63a 18554fi
4f14bcd8 18555done
10f2d63a 18556
8284b0c5 18557
4f14bcd8 18558if test "x$INET_LINK" != "x"; then
a0b9e27f 18559 cat >> confdefs.h <<\EOF
4f14bcd8 18560#define HAVE_INET_ADDR 1
a0b9e27f 18561EOF
4f14bcd8 18562
3d63bc3a 18563 INET_LINK=" -l$INET_LINK"
6232543b 18564fi
10f2d63a 18565
1e487827 18566fi
703e0a69 18567
8284b0c5 18568
a0b9e27f 18569cat > confcache <<\EOF
4f14bcd8
GD
18570# This file is a shell script that caches the results of configure
18571# tests run on this system so they can be shared between configure
a0b9e27f
MB
18572# scripts and configure runs. It is not useful on other systems.
18573# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18574#
a0b9e27f
MB
18575# By default, configure uses ./config.cache as the cache file,
18576# creating it if it does not exist already. You can give configure
18577# the --cache-file=FILE option to use a different cache file; that is
18578# what configure does when it calls configure scripts in
18579# subdirectories, so they share the cache.
18580# Giving --cache-file=/dev/null disables caching, for debugging configure.
18581# config.status only pays attention to the cache file if you give it the
18582# --recheck option to rerun configure.
4f14bcd8 18583#
a0b9e27f 18584EOF
4f14bcd8
GD
18585# The following way of writing the cache mishandles newlines in values,
18586# but we know of no workaround that is simple, portable, and efficient.
18587# So, don't put newlines in cache variables' values.
18588# Ultrix sh set writes to stderr and can't be redirected directly,
18589# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18590(set) 2>&1 |
18591 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18592 *ac_space=\ *)
18593 # `set' does not quote correctly, so add quotes (double-quote substitution
18594 # turns \\\\ into \\, and sed turns \\ into \).
18595 sed -n \
18596 -e "s/'/'\\\\''/g" \
18597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18598 ;;
18599 *)
18600 # `set' quotes correctly as required by POSIX, so do not add quotes.
18601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18602 ;;
18603 esac >> confcache
18604if cmp -s $cache_file confcache; then
18605 :
18606else
4f14bcd8 18607 if test -w $cache_file; then
a0b9e27f
MB
18608 echo "updating cache $cache_file"
18609 cat confcache > $cache_file
f6bcfd97 18610 else
4f14bcd8 18611 echo "not updating unwritable cache $cache_file"
f6bcfd97 18612 fi
4f14bcd8
GD
18613fi
18614rm -f confcache
f6bcfd97 18615
8284b0c5 18616
a0b9e27f 18617
009fead0 18618CPP_MT_FLAG=
4f14bcd8
GD
18619if test "$TOOLKIT" != "MSW"; then
18620
a0b9e27f 18621
7274f1c7 18622 THREADS_LINK=
009fead0 18623 THREADS_CFLAGS=
7274f1c7
RL
18624
18625 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18626 if test "$USE_BEOS" = 1; then
a0b9e27f 18627 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18628 wxUSE_THREADS="no"
18629 fi
4f14bcd8 18630 fi
4f14bcd8 18631
7274f1c7 18632 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18633
18634
009fead0
VZ
18635 THREAD_OPTS="-pthread"
18636 case "${host}" in
18637 *-*-solaris2* | *-*-sunos4* )
18638 if test "x$GCC" = "xyes"; then
126be6b4 18639 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18640 else
18641 THREAD_OPTS="-mt $THREAD_OPTS"
18642 fi
18643 ;;
18644 *-*-freebsd*)
18645 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18646 ;;
17234b26
MB
18647 *-*-darwin* | *-*-cygwin* )
18648 THREAD_OPTS=""
4101db81 18649 ;;
8f4a9a10 18650 *-*-aix*)
009fead0
VZ
18651 THREAD_OPTS="pthreads"
18652 ;;
4f5a7f74
VZ
18653 *-hp-hpux* )
18654 if test "x$GCC" != "xyes"; then
18655 THREAD_OPTS=""
18656 fi
009fead0 18657 esac
4f14bcd8 18658
02a1dfba 18659 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18660
009fead0
VZ
18661 THREADS_OK=no
18662 for flag in $THREAD_OPTS; do
18663 case $flag in
18664 none)
a0b9e27f 18665 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1542ea39 18666echo "configure:18667: checking whether pthreads work without any flags" >&5
009fead0 18667 ;;
698dcdb6 18668
009fead0 18669 -*)
a0b9e27f 18670 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1542ea39 18671echo "configure:18672: checking whether pthreads work with $flag" >&5
009fead0
VZ
18672 THREADS_CFLAGS="$flag"
18673 ;;
698dcdb6 18674
009fead0 18675 *)
a0b9e27f 18676 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1542ea39 18677echo "configure:18678: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18678 THREADS_LINK="-l$flag"
18679 ;;
18680 esac
10f2d63a 18681
009fead0
VZ
18682 save_LIBS="$LIBS"
18683 save_CFLAGS="$CFLAGS"
18684 LIBS="$THREADS_LINK $LIBS"
04727afd 18685 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18686
a0b9e27f 18687 cat > conftest.$ac_ext <<EOF
1542ea39 18688#line 18689 "configure"
009fead0
VZ
18689#include "confdefs.h"
18690#include <pthread.h>
a0b9e27f 18691int main() {
009fead0 18692pthread_create(0,0,0,0);
a0b9e27f
MB
18693; return 0; }
18694EOF
1542ea39 18695if { (eval echo configure:18696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18696 rm -rf conftest*
009fead0 18697 THREADS_OK=yes
10f2d63a 18698else
a0b9e27f
MB
18699 echo "configure: failed program was:" >&5
18700 cat conftest.$ac_ext >&5
6232543b 18701fi
a0b9e27f 18702rm -f conftest*
698dcdb6 18703
009fead0
VZ
18704 LIBS="$save_LIBS"
18705 CFLAGS="$save_CFLAGS"
d9b9876f 18706
a0b9e27f 18707 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18708 if test "x$THREADS_OK" = "xyes"; then
18709 break;
18710 fi
d9b9876f 18711
009fead0
VZ
18712 THREADS_LINK=""
18713 THREADS_CFLAGS=""
18714 done
4f14bcd8 18715
009fead0
VZ
18716 if test "x$THREADS_OK" != "xyes"; then
18717 wxUSE_THREADS=no
a0b9e27f 18718 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18719 else
db82f09e
VZ
18720 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18721 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18722
a0b9e27f 18723 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1542ea39 18724echo "configure:18725: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18725 flag=no
18726 case "${host}" in
2b5f62a0
VZ
18727 *-aix*)
18728 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18729 flag="-D_THREAD_SAFE"
18730 ;;
18731 *-freebsd*)
009fead0
VZ
18732 flag="-D_THREAD_SAFE"
18733 ;;
06313569
GD
18734 *-hp-hpux* )
18735 flag="-D_REENTRANT"
4f5a7f74
VZ
18736 if test "x$GCC" != "xyes"; then
18737 flag="$flag -D_RWSTD_MULTI_THREAD"
18738 fi
06313569 18739 ;;
009fead0
VZ
18740 *solaris* | alpha*-osf*)
18741 flag="-D_REENTRANT"
18742 ;;
18743 esac
a0b9e27f 18744 echo "$ac_t""${flag}" 1>&6
009fead0 18745 if test "x$flag" != xno; then
04727afd 18746 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18747 fi
18748
009fead0 18749 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18750 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18751 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18752 fi
18753 fi
4f14bcd8 18754 fi
4f14bcd8 18755
7274f1c7 18756 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18757 for ac_func in thr_setconcurrency
4f14bcd8 18758do
a0b9e27f 18759echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 18760echo "configure:18761: checking for $ac_func" >&5
a0b9e27f
MB
18761if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18762 echo $ac_n "(cached) $ac_c" 1>&6
18763else
18764 cat > conftest.$ac_ext <<EOF
1542ea39 18765#line 18766 "configure"
d9b9876f 18766#include "confdefs.h"
4f14bcd8 18767/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18768 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18769#include <assert.h>
18770/* Override any gcc2 internal prototype to avoid an error. */
18771/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18772 builtin and then its argument prototype would still apply. */
18773char $ac_func();
18774
18775int main() {
18776
4f14bcd8
GD
18777/* The GNU C library defines this for functions which it implements
18778 to always fail with ENOSYS. Some functions are actually named
18779 something starting with __ and the normal name is an alias. */
18780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18781choke me
18782#else
a0b9e27f 18783$ac_func();
4f14bcd8
GD
18784#endif
18785
a0b9e27f
MB
18786; return 0; }
18787EOF
1542ea39 18788if { (eval echo configure:18789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18789 rm -rf conftest*
18790 eval "ac_cv_func_$ac_func=yes"
18791else
18792 echo "configure: failed program was:" >&5
18793 cat conftest.$ac_ext >&5
18794 rm -rf conftest*
18795 eval "ac_cv_func_$ac_func=no"
18796fi
18797rm -f conftest*
18798fi
698dcdb6 18799
a0b9e27f
MB
18800if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18801 echo "$ac_t""yes" 1>&6
18802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18803 cat >> confdefs.h <<EOF
18804#define $ac_tr_func 1
18805EOF
18806
18807else
18808 echo "$ac_t""no" 1>&6
10f2d63a 18809fi
4f14bcd8 18810done
10f2d63a 18811
8284b0c5 18812
a0b9e27f 18813 for ac_hdr in sched.h
4f14bcd8 18814do
a0b9e27f
MB
18815ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18816echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 18817echo "configure:18818: checking for $ac_hdr" >&5
a0b9e27f
MB
18818if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18819 echo $ac_n "(cached) $ac_c" 1>&6
18820else
18821 cat > conftest.$ac_ext <<EOF
1542ea39 18822#line 18823 "configure"
247f5006 18823#include "confdefs.h"
a0b9e27f
MB
18824#include <$ac_hdr>
18825EOF
18826ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 18827{ (eval echo configure:18828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18828ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18829if test -z "$ac_err"; then
18830 rm -rf conftest*
18831 eval "ac_cv_header_$ac_safe=yes"
18832else
18833 echo "$ac_err" >&5
18834 echo "configure: failed program was:" >&5
4f14bcd8 18835 cat conftest.$ac_ext >&5
a0b9e27f
MB
18836 rm -rf conftest*
18837 eval "ac_cv_header_$ac_safe=no"
13111b2a 18838fi
a0b9e27f 18839rm -f conftest*
10f2d63a 18840fi
a0b9e27f
MB
18841if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18842 echo "$ac_t""yes" 1>&6
18843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18844 cat >> confdefs.h <<EOF
18845#define $ac_tr_hdr 1
18846EOF
18847
18848else
18849 echo "$ac_t""no" 1>&6
f6bcfd97 18850fi
4f14bcd8 18851done
f6bcfd97 18852
009fead0 18853 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18854 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
1542ea39 18855echo "configure:18856: checking for sched_yield" >&5
a0b9e27f
MB
18856if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18857 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18858else
a0b9e27f 18859 cat > conftest.$ac_ext <<EOF
1542ea39 18860#line 18861 "configure"
4f14bcd8 18861#include "confdefs.h"
009fead0 18862/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18863 which can conflict with char sched_yield(); below. */
009fead0 18864#include <assert.h>
4f14bcd8
GD
18865/* Override any gcc2 internal prototype to avoid an error. */
18866/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18867 builtin and then its argument prototype would still apply. */
18868char sched_yield();
18869
18870int main() {
18871
009fead0
VZ
18872/* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18876choke me
18877#else
a0b9e27f 18878sched_yield();
009fead0
VZ
18879#endif
18880
a0b9e27f
MB
18881; return 0; }
18882EOF
1542ea39 18883if { (eval echo configure:18884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18884 rm -rf conftest*
18885 eval "ac_cv_func_sched_yield=yes"
18886else
18887 echo "configure: failed program was:" >&5
18888 cat conftest.$ac_ext >&5
18889 rm -rf conftest*
18890 eval "ac_cv_func_sched_yield=no"
18891fi
18892rm -f conftest*
18893fi
18894
18895if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18896 echo "$ac_t""yes" 1>&6
18897 cat >> confdefs.h <<\EOF
4f14bcd8 18898#define HAVE_SCHED_YIELD 1
a0b9e27f 18899EOF
10f2d63a 18900
4f14bcd8 18901else
a0b9e27f 18902 echo "$ac_t""no" 1>&6
009fead0 18903
a0b9e27f 18904 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
1542ea39 18905echo "configure:18906: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18906ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18908 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18909else
a0b9e27f 18910 ac_save_LIBS="$LIBS"
4f14bcd8 18911LIBS="-lposix4 $LIBS"
a0b9e27f 18912cat > conftest.$ac_ext <<EOF
1542ea39 18913#line 18914 "configure"
4f14bcd8
GD
18914#include "confdefs.h"
18915/* Override any gcc2 internal prototype to avoid an error. */
18916/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18917 builtin and then its argument prototype would still apply. */
18918char sched_yield();
18919
18920int main() {
18921sched_yield()
18922; return 0; }
18923EOF
1542ea39 18924if { (eval echo configure:18925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18925 rm -rf conftest*
18926 eval "ac_cv_lib_$ac_lib_var=yes"
18927else
18928 echo "configure: failed program was:" >&5
18929 cat conftest.$ac_ext >&5
18930 rm -rf conftest*
18931 eval "ac_cv_lib_$ac_lib_var=no"
18932fi
18933rm -f conftest*
18934LIBS="$ac_save_LIBS"
18935
18936fi
18937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18938 echo "$ac_t""yes" 1>&6
18939 cat >> confdefs.h <<\EOF
4f14bcd8 18940#define HAVE_SCHED_YIELD 1
a0b9e27f 18941EOF
3d63bc3a 18942 POSIX4_LINK=" -lposix4"
4f14bcd8 18943else
a0b9e27f
MB
18944 echo "$ac_t""no" 1>&6
18945echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18946
54276ccf
VZ
18947fi
18948
a0b9e27f
MB
18949
18950
4f14bcd8 18951fi
698dcdb6 18952
009fead0 18953 fi
10f2d63a 18954
7274f1c7 18955 HAVE_PRIOR_FUNCS=0
a0b9e27f 18956 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
1542ea39 18957echo "configure:18958: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
18958if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18959 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18960else
a0b9e27f 18961 cat > conftest.$ac_ext <<EOF
1542ea39 18962#line 18963 "configure"
422107f9 18963#include "confdefs.h"
009fead0 18964/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18965 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 18966#include <assert.h>
4f14bcd8
GD
18967/* Override any gcc2 internal prototype to avoid an error. */
18968/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18969 builtin and then its argument prototype would still apply. */
18970char pthread_attr_getschedpolicy();
18971
18972int main() {
18973
009fead0
VZ
18974/* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18978choke me
18979#else
a0b9e27f 18980pthread_attr_getschedpolicy();
009fead0
VZ
18981#endif
18982
a0b9e27f
MB
18983; return 0; }
18984EOF
1542ea39 18985if { (eval echo configure:18986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18986 rm -rf conftest*
18987 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18988else
18989 echo "configure: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18991 rm -rf conftest*
18992 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18993fi
18994rm -f conftest*
18995fi
18996
18997if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18998 echo "$ac_t""yes" 1>&6
18999 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
1542ea39 19000echo "configure:19001: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19001if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19002 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19003else
a0b9e27f 19004 cat > conftest.$ac_ext <<EOF
1542ea39 19005#line 19006 "configure"
a0b9e27f
MB
19006#include "confdefs.h"
19007/* System header to define __stub macros and hopefully few prototypes,
19008 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19009#include <assert.h>
422107f9
VZ
19010/* Override any gcc2 internal prototype to avoid an error. */
19011/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19012 builtin and then its argument prototype would still apply. */
19013char pthread_attr_setschedparam();
19014
19015int main() {
19016
009fead0
VZ
19017/* The GNU C library defines this for functions which it implements
19018 to always fail with ENOSYS. Some functions are actually named
19019 something starting with __ and the normal name is an alias. */
19020#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19021choke me
19022#else
a0b9e27f 19023pthread_attr_setschedparam();
009fead0
VZ
19024#endif
19025
a0b9e27f
MB
19026; return 0; }
19027EOF
1542ea39 19028if { (eval echo configure:19029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19029 rm -rf conftest*
19030 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19031else
19032 echo "configure: failed program was:" >&5
19033 cat conftest.$ac_ext >&5
19034 rm -rf conftest*
19035 eval "ac_cv_func_pthread_attr_setschedparam=no"
19036fi
19037rm -f conftest*
19038fi
19039
19040if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19041 echo "$ac_t""yes" 1>&6
19042 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
1542ea39 19043echo "configure:19044: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19044if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19045 echo $ac_n "(cached) $ac_c" 1>&6
19046else
19047 cat > conftest.$ac_ext <<EOF
1542ea39 19048#line 19049 "configure"
422107f9 19049#include "confdefs.h"
009fead0
VZ
19050/* System header to define __stub macros and hopefully few prototypes
19051else
a0b9e27f
MB
19052 echo "$ac_t""no" 1>&6
19053which can conflict with char sched_get_priority_max(); below. */
009fead0 19054#include <assert.h>
4f14bcd8
GD
19055/* Override any gcc2 internal prototype to avoid an error. */
19056/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19057 builtin and then its argument prototype would still apply. */
19058char sched_get_priority_max();
19059
19060int main() {
19061
009fead0
VZ
19062/* The GNU C library defines this for functions which it implements
19063 to always fail with ENOSYS. Some functions are actually named
19064 something starting with __ and the normal name is an alias. */
19065#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19066choke me
19067#else
a0b9e27f 19068sched_get_priority_max();
009fead0
VZ
19069#endif
19070
a0b9e27f
MB
19071; return 0; }
19072EOF
1542ea39 19073if { (eval echo configure:19074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19074 rm -rf conftest*
19075 eval "ac_cv_func_sched_get_priority_max=yes"
19076else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 eval "ac_cv_func_sched_get_priority_max=no"
19081fi
19082rm -f conftest*
19083fi
19084
19085if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19086 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19087 HAVE_PRIOR_FUNCS=1
19088else
a0b9e27f
MB
19089 echo "$ac_t""no" 1>&6
19090echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
1542ea39 19091echo "configure:19092: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19092ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19094 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19095else
a0b9e27f 19096 ac_save_LIBS="$LIBS"
4f14bcd8 19097LIBS="-lposix4 $LIBS"
a0b9e27f 19098cat > conftest.$ac_ext <<EOF
1542ea39 19099#line 19100 "configure"
422107f9
VZ
19100#include "confdefs.h"
19101/* Override any gcc2 internal prototype to avoid an error. */
19102/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19103 builtin and then its argument prototype would still apply. */
19104char sched_get_priority_max();
19105
19106int main() {
19107sched_get_priority_max()
19108; return 0; }
19109EOF
1542ea39 19110if { (eval echo configure:19111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19111 rm -rf conftest*
19112 eval "ac_cv_lib_$ac_lib_var=yes"
19113else
19114 echo "configure: failed program was:" >&5
19115 cat conftest.$ac_ext >&5
19116 rm -rf conftest*
19117 eval "ac_cv_lib_$ac_lib_var=no"
19118fi
19119rm -f conftest*
19120LIBS="$ac_save_LIBS"
698dcdb6 19121
a0b9e27f
MB
19122fi
19123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19124 echo "$ac_t""yes" 1>&6
19125
7274f1c7
RL
19126 HAVE_PRIOR_FUNCS=1
19127 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19128
19129else
19130 echo "$ac_t""no" 1>&6
4f14bcd8 19131fi
463abc64 19132
a0b9e27f 19133
328a083c 19134fi
463abc64 19135
a0b9e27f
MB
19136
19137else
19138 echo "$ac_t""no" 1>&6
7b4a847f 19139fi
579d8138 19140
a0b9e27f 19141
5c6fa7d2 19142fi
52127426 19143
8284b0c5 19144
7274f1c7 19145 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19146 cat >> confdefs.h <<\EOF
4f14bcd8 19147#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19148EOF
463abc64 19149
7274f1c7 19150 else
a0b9e27f 19151 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19152 fi
463abc64 19153
a0b9e27f 19154 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
1542ea39 19155echo "configure:19156: checking for pthread_cancel" >&5
a0b9e27f
MB
19156if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19157 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19158else
a0b9e27f 19159 cat > conftest.$ac_ext <<EOF
1542ea39 19160#line 19161 "configure"
422107f9 19161#include "confdefs.h"
009fead0 19162/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19163 which can conflict with char pthread_cancel(); below. */
009fead0 19164#include <assert.h>
422107f9
VZ
19165/* Override any gcc2 internal prototype to avoid an error. */
19166/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19167 builtin and then its argument prototype would still apply. */
19168char pthread_cancel();
19169
19170int main() {
19171
009fead0
VZ
19172/* The GNU C library defines this for functions which it implements
19173 to always fail with ENOSYS. Some functions are actually named
19174 something starting with __ and the normal name is an alias. */
19175#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19176choke me
19177#else
a0b9e27f 19178pthread_cancel();
009fead0
VZ
19179#endif
19180
a0b9e27f
MB
19181; return 0; }
19182EOF
1542ea39 19183if { (eval echo configure:19184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19184 rm -rf conftest*
19185 eval "ac_cv_func_pthread_cancel=yes"
19186else
19187 echo "configure: failed program was:" >&5
19188 cat conftest.$ac_ext >&5
19189 rm -rf conftest*
19190 eval "ac_cv_func_pthread_cancel=no"
19191fi
19192rm -f conftest*
19193fi
19194
19195if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19196 echo "$ac_t""yes" 1>&6
19197 cat >> confdefs.h <<\EOF
4f14bcd8 19198#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19199EOF
4f14bcd8 19200
698dcdb6 19201else
a0b9e27f
MB
19202 echo "$ac_t""no" 1>&6
19203echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19204fi
19205
5c6fa7d2 19206
a0b9e27f 19207 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1542ea39 19208echo "configure:19209: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19209if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19210 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19211else
a0b9e27f
MB
19212
19213 cat > conftest.$ac_ext <<EOF
1542ea39 19214#line 19215 "configure"
4f14bcd8
GD
19215#include "confdefs.h"
19216#include <pthread.h>
a0b9e27f 19217int main() {
4f14bcd8 19218
7274f1c7
RL
19219 pthread_cleanup_push(NULL, NULL);
19220 pthread_cleanup_pop(0);
a0b9e27f
MB
19221
19222; return 0; }
19223EOF
1542ea39 19224if { (eval echo configure:19225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19225 rm -rf conftest*
19226
7274f1c7 19227 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19228
4f14bcd8 19229else
a0b9e27f
MB
19230 echo "configure: failed program was:" >&5
19231 cat conftest.$ac_ext >&5
19232 rm -rf conftest*
19233
7274f1c7 19234 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19235
5c6fa7d2 19236fi
a0b9e27f
MB
19237rm -f conftest*
19238
247f5006 19239fi
a0b9e27f
MB
19240
19241echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19242
7274f1c7 19243 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19244 cat >> confdefs.h <<\EOF
4f14bcd8 19245#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19246EOF
c7a2bf27 19247
7274f1c7 19248 fi
4f14bcd8 19249
a0b9e27f
MB
19250
19251 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1542ea39 19252echo "configure:19253: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19253if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19254 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19255else
a0b9e27f
MB
19256
19257 cat > conftest.$ac_ext <<EOF
1542ea39 19258#line 19259 "configure"
0dcf9893 19259#include "confdefs.h"
4f14bcd8 19260#include <pthread.h>
a0b9e27f 19261int main() {
4f14bcd8 19262
7274f1c7
RL
19263 pthread_mutexattr_t attr;
19264 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19265
19266; return 0; }
19267EOF
1542ea39 19268if { (eval echo configure:19269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19269 rm -rf conftest*
19270
7274f1c7 19271 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19272
3fed1840 19273else
a0b9e27f
MB
19274 echo "configure: failed program was:" >&5
19275 cat conftest.$ac_ext >&5
19276 rm -rf conftest*
19277
7274f1c7 19278 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19279
19280
5c6fa7d2 19281fi
a0b9e27f
MB
19282rm -f conftest*
19283
247f5006 19284fi
a0b9e27f
MB
19285
19286echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19287
7274f1c7 19288 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19289 cat >> confdefs.h <<\EOF
4f14bcd8 19290#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19291EOF
4f14bcd8 19292
7274f1c7 19293 else
a0b9e27f 19294 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1542ea39 19295echo "configure:19296: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19296if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19297 echo $ac_n "(cached) $ac_c" 1>&6
19298else
19299
19300 cat > conftest.$ac_ext <<EOF
1542ea39 19301#line 19302 "configure"
3fed1840 19302#include "confdefs.h"
4f14bcd8 19303#include <pthread.h>
a0b9e27f 19304int main() {
4f14bcd8 19305
7274f1c7 19306 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19307
19308; return 0; }
19309EOF
1542ea39 19310if { (eval echo configure:19311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19311 rm -rf conftest*
19312
7274f1c7 19313 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19314
698dcdb6 19315else
a0b9e27f
MB
19316 echo "configure: failed program was:" >&5
19317 cat conftest.$ac_ext >&5
19318 rm -rf conftest*
19319
7274f1c7 19320 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19321
19322
5c6fa7d2 19323fi
a0b9e27f
MB
19324rm -f conftest*
19325
247f5006 19326fi
a0b9e27f
MB
19327
19328echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19329 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19330 cat >> confdefs.h <<\EOF
4f14bcd8 19331#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19332EOF
3fed1840 19333
7274f1c7 19334 else
a0b9e27f 19335 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19336 fi
19337 fi
7274f1c7 19338 fi
3fed1840 19339
a0b9e27f
MB
19340else
19341 if test "$wxUSE_THREADS" = "yes" ; then
19342 case "${host}" in
19343 *-*-mingw32* )
ca8e52b3 19344 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
1542ea39 19345echo "configure:19346: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19346if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19347 echo $ac_n "(cached) $ac_c" 1>&6
19348else
19349
19350 CFLAGS_OLD="$CFLAGS"
19351 CFLAGS="$CFLAGS -mthreads"
19352 cat > conftest.$ac_ext <<EOF
1542ea39 19353#line 19354 "configure"
ca8e52b3
VZ
19354#include "confdefs.h"
19355
19356int main() {
19357
19358; return 0; }
19359EOF
1542ea39 19360if { (eval echo configure:19361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19361 rm -rf conftest*
19362 wx_cv_cflags_mthread=yes
19363else
19364 echo "configure: failed program was:" >&5
19365 cat conftest.$ac_ext >&5
19366 rm -rf conftest*
19367 wx_cv_cflags_mthread=no
19368
19369fi
19370rm -f conftest*
19371
19372
19373fi
19374
19375echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19376
19377 if test "$wx_cv_cflags_mthread" = "yes"; then
19378 CXXFLAGS="$CXXFLAGS -mthreads"
19379 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19380 LDFLAGS="$LDFLAGS -mthreads"
19381 else
19382 CFLAGS="$CFLAGS_OLD"
19383 fi
a0b9e27f
MB
19384 ;;
19385 esac
19386 fi
4f14bcd8
GD
19387fi
19388
19389if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19390 cat >> confdefs.h <<\EOF
4f14bcd8 19391#define wxUSE_THREADS 1
a0b9e27f 19392EOF
7b6058cd 19393
8284b0c5 19394
4f14bcd8 19395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19396else
4f14bcd8 19397 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19398 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1542ea39 19399echo "configure:19400: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19400 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19401 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19402 echo "$ac_t""yes" 1>&6
4f14bcd8 19403 else
a0b9e27f 19404 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19405 fi
19406 fi
19407fi
19408
19409if test "$WXGTK20" = 1 ; then
a0b9e27f 19410 cat >> confdefs.h <<EOF
4f14bcd8 19411#define __WXGTK20__ $WXGTK20
a0b9e27f 19412EOF
4f14bcd8
GD
19413
19414 WXGTK12=1
10f2d63a 19415fi
4f14bcd8
GD
19416
19417if test "$WXGTK12" = 1 ; then
a0b9e27f 19418 cat >> confdefs.h <<EOF
4f14bcd8 19419#define __WXGTK12__ $WXGTK12
a0b9e27f 19420EOF
4f14bcd8 19421
10f2d63a 19422fi
698dcdb6 19423
4f14bcd8 19424if test "$WXGTK127" = 1 ; then
a0b9e27f 19425 cat >> confdefs.h <<EOF
4f14bcd8 19426#define __WXGTK127__ $WXGTK127
a0b9e27f 19427EOF
4f14bcd8 19428
698dcdb6 19429fi
10f2d63a 19430
4f14bcd8
GD
19431WXDEBUG=
19432
19433if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19434 WXDEBUG="-g"
19435 wxUSE_OPTIMISE=no
698dcdb6 19436fi
4f14bcd8
GD
19437
19438if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19439 wxUSE_DEBUG_INFO=yes
19440 WXDEBUG="-ggdb"
10f2d63a
VZ
19441fi
19442
4f14bcd8 19443if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19444 cat >> confdefs.h <<\EOF
4f14bcd8 19445#define WXDEBUG 1
a0b9e27f 19446EOF
4f14bcd8
GD
19447
19448 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19449else
4f14bcd8
GD
19450 if test "$wxUSE_GTK" = 1 ; then
19451 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19452 fi
19453fi
19454
19455if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19456 cat >> confdefs.h <<\EOF
4f14bcd8 19457#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19458EOF
4f14bcd8 19459
a0b9e27f 19460 cat >> confdefs.h <<\EOF
4f14bcd8 19461#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19462EOF
4f14bcd8 19463
a0b9e27f 19464 cat >> confdefs.h <<\EOF
4f14bcd8 19465#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19466EOF
4f14bcd8
GD
19467
19468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19469fi
19470
19471if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19472 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19473fi
19474
19475PROFILE=
19476if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19477 PROFILE=" -pg"
10f2d63a
VZ
19478fi
19479
009fead0
VZ
19480CODE_GEN_FLAGS=
19481CODE_GEN_FLAGS_CXX=
88e30f2b 19482if test "$GCC" = "yes" ; then
4f14bcd8
GD
19483 if test "$wxUSE_NO_RTTI" = "yes" ; then
19484 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19485 fi
4f14bcd8
GD
19486 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19487 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19488 fi
19489 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19490 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19491 fi
4f14bcd8
GD
19492 if test "$USE_WIN32" = 1 ; then
19493 # I'm not even really sure what this was ever added to solve,
19494 # but someone added it for mingw native builds, so I guess
19495 # they had a reason, right??
19496 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19497 fi
1d1b75ac 19498
2b5f62a0 19499 case "${host}" in
1d1b75ac
VZ
19500 powerpc*-*-aix* )
19501 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19502 ;;
2b5f62a0
VZ
19503 *-hppa* )
19504 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19505 ;;
1d1b75ac 19506 esac
4f14bcd8
GD
19507fi
19508
af7b5345 19509OPTIMISE=
4f14bcd8 19510if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19511 if test "$GCC" = yes ; then
19512 OPTIMISE="-O0"
19513 fi
4f14bcd8
GD
19514else
19515 if test "$GCC" = yes ; then
19516 OPTIMISE="-O2"
af7b5345
VZ
19517
19518 case "${host}" in
4f14bcd8
GD
19519 i586-*-*|i686-*-* )
19520 OPTIMISE="${OPTIMISE} "
19521 ;;
19522 esac
19523 else
19524 OPTIMISE="-O"
19525 fi
19526fi
19527
8d90d2f2 19528
4f14bcd8 19529if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19530 cat >> confdefs.h <<\EOF
4f14bcd8 19531#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19532EOF
4f14bcd8 19533
8284b0c5 19534
4f14bcd8
GD
19535 WXWIN_COMPATIBILITY_2_2="yes"
19536fi
19537
65d8ef1e 19538if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19539 cat >> confdefs.h <<\EOF
4f14bcd8 19540#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19541EOF
4f14bcd8 19542
8d90d2f2
VZ
19543
19544 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19545fi
19546
65d8ef1e
VS
19547if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19548 cat >> confdefs.h <<\EOF
19549#define WXWIN_COMPATIBILITY_2_4 1
19550EOF
19551
19552fi
19553
8284b0c5 19554
10f2d63a 19555if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19556 cat >> confdefs.h <<\EOF
10f2d63a 19557#define wxUSE_GUI 1
a0b9e27f 19558EOF
10f2d63a 19559
8284b0c5 19560
10f2d63a 19561 else
a0b9e27f 19562 cat >> confdefs.h <<\EOF
10f2d63a 19563#define wxUSE_NOGUI 1
a0b9e27f 19564EOF
10f2d63a
VZ
19565
19566fi
19567
8284b0c5 19568
10f2d63a 19569if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19570 cat >> confdefs.h <<\EOF
10f2d63a 19571#define wxUSE_UNIX 1
a0b9e27f 19572EOF
10f2d63a
VZ
19573
19574fi
19575
8284b0c5 19576
10f2d63a 19577if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19578 cat >> confdefs.h <<\EOF
10f2d63a 19579#define wxUSE_APPLE_IEEE 1
a0b9e27f 19580EOF
10f2d63a
VZ
19581
19582fi
19583
1e6feb95 19584if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19585 cat >> confdefs.h <<\EOF
1e6feb95 19586#define wxUSE_TIMER 1
a0b9e27f 19587EOF
1e6feb95
VZ
19588
19589fi
19590
10f2d63a 19591if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19592 cat >> confdefs.h <<\EOF
10f2d63a 19593#define wxUSE_WAVE 1
a0b9e27f 19594EOF
10f2d63a
VZ
19595
19596fi
19597
1e6feb95 19598if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19599 cat >> confdefs.h <<\EOF
1e6feb95 19600#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19601EOF
1e6feb95
VZ
19602
19603fi
19604
19605if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19606 cat >> confdefs.h <<\EOF
1e6feb95 19607#define wxUSE_STOPWATCH 1
a0b9e27f 19608EOF
1e6feb95
VZ
19609
19610fi
19611
19612if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19613 cat >> confdefs.h <<\EOF
1e6feb95 19614#define wxUSE_DATETIME 1
a0b9e27f 19615EOF
1e6feb95
VZ
19616
19617fi
19618
10f2d63a 19619if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19620 cat >> confdefs.h <<\EOF
10f2d63a 19621#define wxUSE_FILE 1
a0b9e27f 19622EOF
10f2d63a
VZ
19623
19624fi
19625
1e6feb95 19626if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19627 cat >> confdefs.h <<\EOF
1e6feb95 19628#define wxUSE_FFILE 1
a0b9e27f 19629EOF
1e6feb95
VZ
19630
19631fi
19632
24528b0c 19633if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19634 cat >> confdefs.h <<\EOF
24528b0c 19635#define wxUSE_FILESYSTEM 1
a0b9e27f 19636EOF
24528b0c
VS
19637
19638fi
19639
10f2d63a 19640if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19641 cat >> confdefs.h <<\EOF
10f2d63a 19642#define wxUSE_FS_INET 1
a0b9e27f 19643EOF
10f2d63a
VZ
19644
19645fi
19646
19647if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19648 cat >> confdefs.h <<\EOF
10f2d63a 19649#define wxUSE_FS_ZIP 1
a0b9e27f 19650EOF
10f2d63a
VZ
19651
19652fi
19653
19654if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19655 cat >> confdefs.h <<\EOF
10f2d63a 19656#define wxUSE_ZIPSTREAM 1
a0b9e27f 19657EOF
10f2d63a
VZ
19658
19659fi
19660
eb4efbdc 19661if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19662 cat >> confdefs.h <<\EOF
eb4efbdc 19663#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19664EOF
eb4efbdc
VZ
19665
19666fi
19667
4f3c5f06 19668if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19669 cat >> confdefs.h <<\EOF
4f3c5f06 19670#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19671EOF
4f3c5f06
VZ
19672
19673fi
19674
10f2d63a 19675if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19676 cat >> confdefs.h <<\EOF
10f2d63a 19677#define wxUSE_BUSYINFO 1
a0b9e27f 19678EOF
10f2d63a
VZ
19679
19680fi
19681
19682if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19683 cat >> confdefs.h <<\EOF
10f2d63a 19684#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19685EOF
10f2d63a
VZ
19686
19687fi
19688
a3a584a7 19689if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19690 cat >> confdefs.h <<\EOF
a3a584a7 19691#define wxUSE_TEXTBUFFER 1
a0b9e27f 19692EOF
a3a584a7
VZ
19693
19694fi
19695
10f2d63a 19696if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19697 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19698 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19699 else
a0b9e27f 19700 cat >> confdefs.h <<\EOF
10f2d63a 19701#define wxUSE_TEXTFILE 1
a0b9e27f 19702EOF
10f2d63a
VZ
19703
19704 fi
19705fi
19706
19707if test "$wxUSE_CONFIG" = "yes" ; then
19708 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19709 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19710 else
a0b9e27f 19711 cat >> confdefs.h <<\EOF
10f2d63a 19712#define wxUSE_CONFIG 1
a0b9e27f 19713EOF
10f2d63a
VZ
19714
19715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19716 fi
19717fi
19718
19719if test "$wxUSE_INTL" = "yes" ; then
19720 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19721 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19722 else
a0b9e27f 19723 cat >> confdefs.h <<\EOF
10f2d63a 19724#define wxUSE_INTL 1
a0b9e27f 19725EOF
10f2d63a
VZ
19726
19727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19728 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19729 fi
19730fi
19731
19732if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19733 cat >> confdefs.h <<\EOF
10f2d63a 19734#define wxUSE_LOG 1
a0b9e27f 19735EOF
10f2d63a 19736
8284b0c5 19737
d73be714 19738 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19739 cat >> confdefs.h <<\EOF
d73be714 19740#define wxUSE_LOGGUI 1
a0b9e27f 19741EOF
d73be714
VZ
19742
19743 fi
19744
19745 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19746 cat >> confdefs.h <<\EOF
d73be714 19747#define wxUSE_LOGWINDOW 1
a0b9e27f 19748EOF
69d27ff7
MB
19749
19750 fi
19751
19752 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19753 cat >> confdefs.h <<\EOF
69d27ff7 19754#define wxUSE_LOG_DIALOG 1
a0b9e27f 19755EOF
d73be714
VZ
19756
19757 fi
10f2d63a
VZ
19758fi
19759
19760if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19761 cat >> confdefs.h <<\EOF
10f2d63a 19762#define wxUSE_LONGLONG 1
a0b9e27f 19763EOF
10f2d63a
VZ
19764
19765fi
19766
e8f65ba6 19767if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19768 cat >> confdefs.h <<\EOF
e8f65ba6 19769#define wxUSE_GEOMETRY 1
a0b9e27f 19770EOF
e8f65ba6
RR
19771
19772fi
19773
10f2d63a 19774if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19775 cat >> confdefs.h <<\EOF
10f2d63a 19776#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19777EOF
10f2d63a 19778
70f7a477 19779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19780fi
19781
19782if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19783 cat >> confdefs.h <<\EOF
10f2d63a 19784#define wxUSE_STREAMS 1
a0b9e27f 19785EOF
10f2d63a
VZ
19786
19787fi
19788
5c6fa7d2 19789
8284b0c5 19790if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19791 for ac_func in strptime
83307f33 19792do
a0b9e27f 19793echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 19794echo "configure:19795: checking for $ac_func" >&5
a0b9e27f
MB
19795if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19796 echo $ac_n "(cached) $ac_c" 1>&6
19797else
19798 cat > conftest.$ac_ext <<EOF
1542ea39 19799#line 19800 "configure"
83307f33
VZ
19800#include "confdefs.h"
19801/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19802 which can conflict with char $ac_func(); below. */
83307f33
VZ
19803#include <assert.h>
19804/* Override any gcc2 internal prototype to avoid an error. */
19805/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19806 builtin and then its argument prototype would still apply. */
19807char $ac_func();
19808
19809int main() {
19810
83307f33
VZ
19811/* The GNU C library defines this for functions which it implements
19812 to always fail with ENOSYS. Some functions are actually named
19813 something starting with __ and the normal name is an alias. */
19814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19815choke me
19816#else
a0b9e27f 19817$ac_func();
83307f33
VZ
19818#endif
19819
a0b9e27f
MB
19820; return 0; }
19821EOF
1542ea39 19822if { (eval echo configure:19823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19823 rm -rf conftest*
19824 eval "ac_cv_func_$ac_func=yes"
19825else
19826 echo "configure: failed program was:" >&5
19827 cat conftest.$ac_ext >&5
19828 rm -rf conftest*
19829 eval "ac_cv_func_$ac_func=no"
19830fi
19831rm -f conftest*
19832fi
83307f33 19833
a0b9e27f
MB
19834if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19835 echo "$ac_t""yes" 1>&6
19836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19837 cat >> confdefs.h <<EOF
19838#define $ac_tr_func 1
19839EOF
19840
19841else
19842 echo "$ac_t""no" 1>&6
83307f33
VZ
19843fi
19844done
19845
5c6fa7d2 19846
a0b9e27f 19847 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1542ea39 19848echo "configure:19849: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19849if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19850 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19851else
a0b9e27f
MB
19852
19853 cat > conftest.$ac_ext <<EOF
1542ea39 19854#line 19855 "configure"
360d6699
VZ
19855#include "confdefs.h"
19856
b4085ce6 19857 #include <time.h>
a0b9e27f
MB
19858
19859int main() {
360d6699
VZ
19860
19861 int tz;
4f11a343 19862 tz = timezone;
a0b9e27f
MB
19863
19864; return 0; }
19865EOF
1542ea39 19866if { (eval echo configure:19867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19867 rm -rf conftest*
19868
4f11a343 19869 wx_cv_var_timezone=timezone
a0b9e27f 19870
360d6699 19871else
a0b9e27f
MB
19872 echo "configure: failed program was:" >&5
19873 cat conftest.$ac_ext >&5
19874 rm -rf conftest*
19875
19876 cat > conftest.$ac_ext <<EOF
1542ea39 19877#line 19878 "configure"
360d6699
VZ
19878#include "confdefs.h"
19879
b4085ce6 19880 #include <time.h>
a0b9e27f
MB
19881
19882int main() {
360d6699
VZ
19883
19884 int tz;
19885 tz = _timezone;
a0b9e27f
MB
19886
19887; return 0; }
19888EOF
1542ea39 19889if { (eval echo configure:19890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19890 rm -rf conftest*
19891
360d6699 19892 wx_cv_var_timezone=_timezone
a0b9e27f 19893
5357c8e8 19894else
a0b9e27f
MB
19895 echo "configure: failed program was:" >&5
19896 cat conftest.$ac_ext >&5
19897 rm -rf conftest*
19898
19899 cat > conftest.$ac_ext <<EOF
1542ea39 19900#line 19901 "configure"
5357c8e8
VZ
19901#include "confdefs.h"
19902
b4085ce6 19903 #include <time.h>
a0b9e27f
MB
19904
19905int main() {
5357c8e8
VZ
19906
19907 int tz;
4f11a343 19908 tz = __timezone;
a0b9e27f
MB
19909
19910; return 0; }
19911EOF
1542ea39 19912if { (eval echo configure:19913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19913 rm -rf conftest*
19914
4f11a343 19915 wx_cv_var_timezone=__timezone
a0b9e27f 19916
360d6699 19917else
a0b9e27f
MB
19918 echo "configure: failed program was:" >&5
19919 cat conftest.$ac_ext >&5
19920 rm -rf conftest*
19921
f9bc1684 19922 if test "$USE_DOS" = 0 ; then
a0b9e27f 19923 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19924 fi
a0b9e27f
MB
19925
19926
328a083c 19927fi
a0b9e27f
MB
19928rm -f conftest*
19929
19930
7b4a847f 19931fi
a0b9e27f
MB
19932rm -f conftest*
19933
19934
5c6fa7d2 19935fi
a0b9e27f
MB
19936rm -f conftest*
19937
19938
247f5006 19939fi
a0b9e27f
MB
19940
19941echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19942
f9bc1684 19943 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19944 cat >> confdefs.h <<EOF
360d6699 19945#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 19946EOF
360d6699 19947
f9bc1684 19948 fi
698dcdb6 19949
a0b9e27f 19950 for ac_func in localtime
afc31813 19951do
a0b9e27f 19952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 19953echo "configure:19954: checking for $ac_func" >&5
a0b9e27f
MB
19954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19955 echo $ac_n "(cached) $ac_c" 1>&6
19956else
19957 cat > conftest.$ac_ext <<EOF
1542ea39 19958#line 19959 "configure"
10f2d63a 19959#include "confdefs.h"
afc31813 19960/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19961 which can conflict with char $ac_func(); below. */
afc31813
VZ
19962#include <assert.h>
19963/* Override any gcc2 internal prototype to avoid an error. */
19964/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19965 builtin and then its argument prototype would still apply. */
19966char $ac_func();
19967
19968int main() {
19969
afc31813
VZ
19970/* The GNU C library defines this for functions which it implements
19971 to always fail with ENOSYS. Some functions are actually named
19972 something starting with __ and the normal name is an alias. */
19973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19974choke me
19975#else
a0b9e27f 19976$ac_func();
afc31813
VZ
19977#endif
19978
a0b9e27f
MB
19979; return 0; }
19980EOF
1542ea39 19981if { (eval echo configure:19982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19982 rm -rf conftest*
19983 eval "ac_cv_func_$ac_func=yes"
19984else
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19987 rm -rf conftest*
19988 eval "ac_cv_func_$ac_func=no"
19989fi
19990rm -f conftest*
19991fi
afc31813 19992
a0b9e27f
MB
19993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19994 echo "$ac_t""yes" 1>&6
19995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19996 cat >> confdefs.h <<EOF
19997#define $ac_tr_func 1
19998EOF
19999
20000else
20001 echo "$ac_t""no" 1>&6
afc31813
VZ
20002fi
20003done
20004
5c6fa7d2 20005
8284b0c5 20006 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20007 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1542ea39 20008echo "configure:20009: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20009if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20010 echo $ac_n "(cached) $ac_c" 1>&6
20011else
20012
20013 cat > conftest.$ac_ext <<EOF
1542ea39 20014#line 20015 "configure"
0470b1e6
VZ
20015#include "confdefs.h"
20016
b4085ce6 20017 #include <time.h>
a0b9e27f
MB
20018
20019int main() {
0470b1e6
VZ
20020
20021 struct tm tm;
20022 tm.tm_gmtoff++;
a0b9e27f
MB
20023
20024; return 0; }
20025EOF
1542ea39 20026if { (eval echo configure:20027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20027 rm -rf conftest*
20028
f03a98d8 20029 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20030
0470b1e6 20031else
a0b9e27f
MB
20032 echo "configure: failed program was:" >&5
20033 cat conftest.$ac_ext >&5
20034 rm -rf conftest*
20035 wx_cv_struct_tm_has_gmtoff=no
20036
5c6fa7d2 20037fi
a0b9e27f
MB
20038rm -f conftest*
20039
247f5006 20040fi
a0b9e27f
MB
20041
20042echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20043 fi
20044
20045 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20046 cat >> confdefs.h <<\EOF
6232543b 20047#define WX_GMTOFF_IN_TM 1
a0b9e27f 20048EOF
0470b1e6 20049
3fcdd07b
VZ
20050 fi
20051
a0b9e27f 20052 for ac_func in gettimeofday ftime
3fcdd07b 20053do
a0b9e27f 20054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 20055echo "configure:20056: checking for $ac_func" >&5
a0b9e27f
MB
20056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20057 echo $ac_n "(cached) $ac_c" 1>&6
20058else
20059 cat > conftest.$ac_ext <<EOF
1542ea39 20060#line 20061 "configure"
3fcdd07b
VZ
20061#include "confdefs.h"
20062/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20063 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20064#include <assert.h>
20065/* Override any gcc2 internal prototype to avoid an error. */
20066/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20067 builtin and then its argument prototype would still apply. */
20068char $ac_func();
20069
20070int main() {
20071
3fcdd07b
VZ
20072/* The GNU C library defines this for functions which it implements
20073 to always fail with ENOSYS. Some functions are actually named
20074 something starting with __ and the normal name is an alias. */
20075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20076choke me
20077#else
a0b9e27f 20078$ac_func();
3fcdd07b
VZ
20079#endif
20080
a0b9e27f
MB
20081; return 0; }
20082EOF
1542ea39 20083if { (eval echo configure:20084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20084 rm -rf conftest*
20085 eval "ac_cv_func_$ac_func=yes"
20086else
20087 echo "configure: failed program was:" >&5
20088 cat conftest.$ac_ext >&5
20089 rm -rf conftest*
20090 eval "ac_cv_func_$ac_func=no"
20091fi
20092rm -f conftest*
20093fi
20094
20095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20096 echo "$ac_t""yes" 1>&6
20097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20098 cat >> confdefs.h <<EOF
20099#define $ac_tr_func 1
20100EOF
3fcdd07b 20101 break
a0b9e27f
MB
20102else
20103 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20104fi
20105done
20106
698dcdb6 20107
8284b0c5 20108 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20109 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1542ea39 20110echo "configure:20111: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20111if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20112 echo $ac_n "(cached) $ac_c" 1>&6
20113else
20114
20115
20116 ac_ext=C
20117# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20118ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20119ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20120ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20121cross_compiling=$ac_cv_prog_cxx_cross
52127426 20122
8284b0c5 20123
a0b9e27f 20124 cat > conftest.$ac_ext <<EOF
1542ea39 20125#line 20126 "configure"
10f2d63a 20126#include "confdefs.h"
afc31813
VZ
20127
20128 #include <sys/time.h>
20129 #include <unistd.h>
a0b9e27f
MB
20130
20131int main() {
afc31813
VZ
20132
20133 struct timeval tv;
776862b4 20134 gettimeofday(&tv, NULL);
a0b9e27f
MB
20135
20136; return 0; }
20137EOF
1542ea39 20138if { (eval echo configure:20139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20139 rm -rf conftest*
afc31813 20140 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20141else
a0b9e27f
MB
20142 echo "configure: failed program was:" >&5
20143 cat conftest.$ac_ext >&5
20144 rm -rf conftest*
20145 cat > conftest.$ac_ext <<EOF
1542ea39 20146#line 20147 "configure"
10f2d63a 20147#include "confdefs.h"
afc31813
VZ
20148
20149 #include <sys/time.h>
20150 #include <unistd.h>
a0b9e27f
MB
20151
20152int main() {
afc31813
VZ
20153
20154 struct timeval tv;
20155 gettimeofday(&tv);
a0b9e27f
MB
20156
20157; return 0; }
20158EOF
1542ea39 20159if { (eval echo configure:20160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20160 rm -rf conftest*
afc31813 20161 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20162else
a0b9e27f
MB
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20165 rm -rf conftest*
20166
20167 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20168 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20169
20170
10f2d63a 20171fi
a0b9e27f
MB
20172rm -f conftest*
20173
10f2d63a 20174fi
a0b9e27f 20175rm -f conftest*
afc31813 20176 ac_ext=c
a0b9e27f 20177# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20178ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20179ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20180ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20181cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20182
a0b9e27f 20183
247f5006 20184fi
a0b9e27f
MB
20185
20186echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20187
afc31813 20188 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20189 cat >> confdefs.h <<\EOF
afc31813 20190#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20191EOF
afc31813
VZ
20192
20193 fi
20194 fi
20195
afc31813
VZ
20196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20197fi
20198
8284b0c5 20199
52127426 20200if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20201 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20202 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20203 wxUSE_SOCKETS="no"
20204 fi
0feee163 20205fi
b089607b 20206
0feee163
VZ
20207if test "$wxUSE_SOCKETS" = "yes"; then
20208 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20209 echo $ac_n "checking for socket""... $ac_c" 1>&6
1542ea39 20210echo "configure:20211: checking for socket" >&5
a0b9e27f
MB
20211if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20213else
a0b9e27f 20214 cat > conftest.$ac_ext <<EOF
1542ea39 20215#line 20216 "configure"
c63c7106
VZ
20216#include "confdefs.h"
20217/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20218 which can conflict with char socket(); below. */
c63c7106
VZ
20219#include <assert.h>
20220/* Override any gcc2 internal prototype to avoid an error. */
20221/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20222 builtin and then its argument prototype would still apply. */
20223char socket();
20224
20225int main() {
20226
c63c7106
VZ
20227/* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230#if defined (__stub_socket) || defined (__stub___socket)
20231choke me
20232#else
a0b9e27f 20233socket();
c63c7106
VZ
20234#endif
20235
a0b9e27f
MB
20236; return 0; }
20237EOF
1542ea39 20238if { (eval echo configure:20239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20239 rm -rf conftest*
20240 eval "ac_cv_func_socket=yes"
20241else
20242 echo "configure: failed program was:" >&5
20243 cat conftest.$ac_ext >&5
20244 rm -rf conftest*
20245 eval "ac_cv_func_socket=no"
20246fi
20247rm -f conftest*
20248fi
20249
20250if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20252 :
20253else
a0b9e27f
MB
20254 echo "$ac_t""no" 1>&6
20255echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1542ea39 20256echo "configure:20257: checking for socket in -lsocket" >&5
a0b9e27f
MB
20257ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20259 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20260else
a0b9e27f 20261 ac_save_LIBS="$LIBS"
c63c7106 20262LIBS="-lsocket $LIBS"
a0b9e27f 20263cat > conftest.$ac_ext <<EOF
1542ea39 20264#line 20265 "configure"
c63c7106
VZ
20265#include "confdefs.h"
20266/* Override any gcc2 internal prototype to avoid an error. */
20267/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20268 builtin and then its argument prototype would still apply. */
20269char socket();
20270
20271int main() {
20272socket()
20273; return 0; }
20274EOF
1542ea39 20275if { (eval echo configure:20276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20276 rm -rf conftest*
20277 eval "ac_cv_lib_$ac_lib_var=yes"
20278else
20279 echo "configure: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20281 rm -rf conftest*
20282 eval "ac_cv_lib_$ac_lib_var=no"
20283fi
20284rm -f conftest*
20285LIBS="$ac_save_LIBS"
20286
20287fi
20288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20289 echo "$ac_t""yes" 1>&6
d558c907
VS
20290 if test "$INET_LINK" != " -lsocket"; then
20291 INET_LINK="$INET_LINK -lsocket"
20292 fi
c63c7106 20293else
a0b9e27f 20294 echo "$ac_t""no" 1>&6
afc31813 20295
a0b9e27f 20296 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20297 wxUSE_SOCKETS=no
a0b9e27f
MB
20298
20299
6232543b 20300fi
b089607b 20301
a0b9e27f 20302
1e487827 20303fi
afc31813 20304
3a922bb4 20305 fi
0feee163 20306fi
51a9faba 20307
0feee163
VZ
20308if test "$wxUSE_SOCKETS" = "yes" ; then
20309 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20310 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1542ea39 20311echo "configure:20312: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20312if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20314else
20315
20316
20317 ac_ext=C
20318# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20319ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20320ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20321ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20322cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20323
8284b0c5 20324
a0b9e27f 20325 cat > conftest.$ac_ext <<EOF
1542ea39 20326#line 20327 "configure"
afc31813 20327#include "confdefs.h"
51a9faba 20328
3a922bb4
RL
20329 #include <sys/types.h>
20330 #include <sys/socket.h>
a0b9e27f
MB
20331
20332int main() {
51a9faba 20333
3a922bb4
RL
20334 socklen_t len;
20335 getsockname(0, 0, &len);
a0b9e27f
MB
20336
20337; return 0; }
20338EOF
1542ea39 20339if { (eval echo configure:20340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20340 rm -rf conftest*
51a9faba 20341 wx_cv_type_getsockname3=socklen_t
afc31813 20342else
a0b9e27f
MB
20343 echo "configure: failed program was:" >&5
20344 cat conftest.$ac_ext >&5
20345 rm -rf conftest*
20346 cat > conftest.$ac_ext <<EOF
1542ea39 20347#line 20348 "configure"
afc31813 20348#include "confdefs.h"
51a9faba 20349
3a922bb4
RL
20350 #include <sys/types.h>
20351 #include <sys/socket.h>
a0b9e27f
MB
20352
20353int main() {
51a9faba 20354
3a922bb4
RL
20355 size_t len;
20356 getsockname(0, 0, &len);
a0b9e27f
MB
20357
20358; return 0; }
20359EOF
1542ea39 20360if { (eval echo configure:20361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20361 rm -rf conftest*
51a9faba 20362 wx_cv_type_getsockname3=size_t
afc31813 20363else
a0b9e27f
MB
20364 echo "configure: failed program was:" >&5
20365 cat conftest.$ac_ext >&5
20366 rm -rf conftest*
20367 cat > conftest.$ac_ext <<EOF
1542ea39 20368#line 20369 "configure"
afc31813 20369#include "confdefs.h"
51a9faba 20370
3a922bb4
RL
20371 #include <sys/types.h>
20372 #include <sys/socket.h>
a0b9e27f
MB
20373
20374int main() {
51a9faba 20375
3a922bb4
RL
20376 int len;
20377 getsockname(0, 0, &len);
a0b9e27f
MB
20378
20379; return 0; }
20380EOF
1542ea39 20381if { (eval echo configure:20382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20382 rm -rf conftest*
51a9faba 20383 wx_cv_type_getsockname3=int
afc31813 20384else
a0b9e27f
MB
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20387 rm -rf conftest*
20388 wx_cv_type_getsockname3=unknown
20389
afc31813 20390fi
a0b9e27f
MB
20391rm -f conftest*
20392
afc31813 20393fi
a0b9e27f
MB
20394rm -f conftest*
20395
afc31813 20396fi
a0b9e27f 20397rm -f conftest*
51a9faba 20398
3a922bb4 20399 ac_ext=c
a0b9e27f 20400# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20401ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20402ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20403ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20404cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20405
a0b9e27f 20406
247f5006 20407fi
a0b9e27f
MB
20408
20409echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20410
3a922bb4
RL
20411 if test "$wx_cv_type_getsockname3" = "unknown"; then
20412 wxUSE_SOCKETS=no
a0b9e27f 20413 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20414 else
a0b9e27f 20415 cat >> confdefs.h <<EOF
51a9faba 20416#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20417EOF
51a9faba 20418
3a922bb4 20419 fi
51a9faba
VZ
20420 fi
20421fi
afc31813 20422
51a9faba 20423if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20424 cat >> confdefs.h <<\EOF
afc31813 20425#define wxUSE_SOCKETS 1
a0b9e27f 20426EOF
afc31813 20427
70f7a477 20428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20429fi
20430
8284b0c5 20431
dc3d889d
VZ
20432if test "$wxUSE_GUI" = "yes"; then
20433
ac0c4cc3 20434 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20435 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20436 wxUSE_JOYSTICK=no
20437 fi
20438 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20439 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20440 wxUSE_JOYSTICK=no
f79bd02d
JS
20441 fi
20442 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20443 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20444 wxUSE_JOYSTICK=no
156b2523
GD
20445 fi
20446
3a922bb4
RL
20447 if test "$TOOLKIT" != "MSW"; then
20448 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20449 for ac_hdr in linux/joystick.h
10f2d63a 20450do
a0b9e27f
MB
20451ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20452echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 20453echo "configure:20454: checking for $ac_hdr" >&5
a0b9e27f
MB
20454if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20455 echo $ac_n "(cached) $ac_c" 1>&6
20456else
20457 cat > conftest.$ac_ext <<EOF
1542ea39 20458#line 20459 "configure"
247f5006 20459#include "confdefs.h"
a0b9e27f
MB
20460#include <$ac_hdr>
20461EOF
20462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 20463{ (eval echo configure:20464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20465if test -z "$ac_err"; then
20466 rm -rf conftest*
20467 eval "ac_cv_header_$ac_safe=yes"
20468else
20469 echo "$ac_err" >&5
20470 echo "configure: failed program was:" >&5
247f5006 20471 cat conftest.$ac_ext >&5
a0b9e27f
MB
20472 rm -rf conftest*
20473 eval "ac_cv_header_$ac_safe=no"
247f5006 20474fi
a0b9e27f 20475rm -f conftest*
10f2d63a 20476fi
a0b9e27f
MB
20477if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20478 echo "$ac_t""yes" 1>&6
20479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20480 cat >> confdefs.h <<EOF
20481#define $ac_tr_hdr 1
20482EOF
20483
20484else
20485 echo "$ac_t""no" 1>&6
247f5006 20486fi
10f2d63a
VZ
20487done
20488
3a922bb4
RL
20489 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20490 wxUSE_JOYSTICK=no
a0b9e27f 20491 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20492 fi
20493 fi
20494 fi
b089607b 20495
3a922bb4 20496 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20497 cat >> confdefs.h <<\EOF
10f2d63a 20498#define wxUSE_JOYSTICK 1
a0b9e27f 20499EOF
10f2d63a 20500
3a922bb4
RL
20501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20502 fi
dc3d889d
VZ
20503fi
20504
8284b0c5 20505
b089607b
VZ
20506if test "$TOOLKIT" != "MSW"; then
20507
3a922bb4
RL
20508 HAVE_DL_FUNCS=0
20509 HAVE_SHL_FUNCS=0
0b9ab0bd 20510 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20511 if test "$USE_DARWIN" = 1; then
20512 HAVE_DL_FUNCS=1
20513 else
a0b9e27f 20514 for ac_func in dlopen
10f2d63a 20515do
a0b9e27f 20516echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 20517echo "configure:20518: checking for $ac_func" >&5
a0b9e27f
MB
20518if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20519 echo $ac_n "(cached) $ac_c" 1>&6
20520else
20521 cat > conftest.$ac_ext <<EOF
1542ea39 20522#line 20523 "configure"
10f2d63a
VZ
20523#include "confdefs.h"
20524/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20525 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20526#include <assert.h>
20527/* Override any gcc2 internal prototype to avoid an error. */
20528/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20529 builtin and then its argument prototype would still apply. */
20530char $ac_func();
20531
20532int main() {
20533
10f2d63a
VZ
20534/* The GNU C library defines this for functions which it implements
20535 to always fail with ENOSYS. Some functions are actually named
20536 something starting with __ and the normal name is an alias. */
20537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20538choke me
20539#else
a0b9e27f 20540$ac_func();
10f2d63a
VZ
20541#endif
20542
a0b9e27f
MB
20543; return 0; }
20544EOF
1542ea39 20545if { (eval echo configure:20546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20546 rm -rf conftest*
20547 eval "ac_cv_func_$ac_func=yes"
20548else
20549 echo "configure: failed program was:" >&5
20550 cat conftest.$ac_ext >&5
20551 rm -rf conftest*
20552 eval "ac_cv_func_$ac_func=no"
20553fi
20554rm -f conftest*
20555fi
20556
20557if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20558 echo "$ac_t""yes" 1>&6
20559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20560 cat >> confdefs.h <<EOF
20561#define $ac_tr_func 1
20562EOF
20563
20564 cat >> confdefs.h <<\EOF
10f2d63a 20565#define HAVE_DLOPEN 1
a0b9e27f 20566EOF
10f2d63a 20567
3a922bb4 20568 HAVE_DL_FUNCS=1
a0b9e27f 20569
10f2d63a 20570else
a0b9e27f
MB
20571 echo "$ac_t""no" 1>&6
20572echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1542ea39 20573echo "configure:20574: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20574ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20575if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20576 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20577else
a0b9e27f 20578 ac_save_LIBS="$LIBS"
10f2d63a 20579LIBS="-ldl $LIBS"
a0b9e27f 20580cat > conftest.$ac_ext <<EOF
1542ea39 20581#line 20582 "configure"
10f2d63a
VZ
20582#include "confdefs.h"
20583/* Override any gcc2 internal prototype to avoid an error. */
20584/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20585 builtin and then its argument prototype would still apply. */
20586char dlopen();
20587
20588int main() {
20589dlopen()
20590; return 0; }
20591EOF
1542ea39 20592if { (eval echo configure:20593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20593 rm -rf conftest*
20594 eval "ac_cv_lib_$ac_lib_var=yes"
20595else
20596 echo "configure: failed program was:" >&5
20597 cat conftest.$ac_ext >&5
20598 rm -rf conftest*
20599 eval "ac_cv_lib_$ac_lib_var=no"
20600fi
20601rm -f conftest*
20602LIBS="$ac_save_LIBS"
20603
20604fi
20605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20606 echo "$ac_t""yes" 1>&6
20607
20608 cat >> confdefs.h <<\EOF
10f2d63a 20609#define HAVE_DLOPEN 1
a0b9e27f 20610EOF
10f2d63a 20611
3a922bb4 20612 HAVE_DL_FUNCS=1
3d63bc3a 20613 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20614
10f2d63a 20615else
a0b9e27f 20616 echo "$ac_t""no" 1>&6
10f2d63a 20617
a0b9e27f 20618 for ac_func in shl_load
10f2d63a 20619do
a0b9e27f 20620echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 20621echo "configure:20622: checking for $ac_func" >&5
a0b9e27f
MB
20622if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20623 echo $ac_n "(cached) $ac_c" 1>&6
20624else
20625 cat > conftest.$ac_ext <<EOF
1542ea39 20626#line 20627 "configure"
10f2d63a
VZ
20627#include "confdefs.h"
20628/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20629 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20630#include <assert.h>
20631/* Override any gcc2 internal prototype to avoid an error. */
20632/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20633 builtin and then its argument prototype would still apply. */
20634char $ac_func();
20635
20636int main() {
20637
10f2d63a
VZ
20638/* The GNU C library defines this for functions which it implements
20639 to always fail with ENOSYS. Some functions are actually named
20640 something starting with __ and the normal name is an alias. */
20641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20642choke me
20643#else
a0b9e27f 20644$ac_func();
10f2d63a
VZ
20645#endif
20646
a0b9e27f
MB
20647; return 0; }
20648EOF
1542ea39 20649if { (eval echo configure:20650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20650 rm -rf conftest*
20651 eval "ac_cv_func_$ac_func=yes"
20652else
20653 echo "configure: failed program was:" >&5
20654 cat conftest.$ac_ext >&5
20655 rm -rf conftest*
20656 eval "ac_cv_func_$ac_func=no"
20657fi
20658rm -f conftest*
20659fi
20660
20661if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20662 echo "$ac_t""yes" 1>&6
20663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20664 cat >> confdefs.h <<EOF
20665#define $ac_tr_func 1
20666EOF
20667
20668 cat >> confdefs.h <<\EOF
10f2d63a 20669#define HAVE_SHL_LOAD 1
a0b9e27f 20670EOF
10f2d63a 20671
3a922bb4 20672 HAVE_SHL_FUNCS=1
a0b9e27f 20673
10f2d63a 20674else
a0b9e27f
MB
20675 echo "$ac_t""no" 1>&6
20676echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1542ea39 20677echo "configure:20678: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20678ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20680 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20681else
a0b9e27f 20682 ac_save_LIBS="$LIBS"
f6bcfd97 20683LIBS="-lshl_load $LIBS"
a0b9e27f 20684cat > conftest.$ac_ext <<EOF
1542ea39 20685#line 20686 "configure"
f6bcfd97 20686#include "confdefs.h"
8284b0c5 20687/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20688/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20689 builtin and then its argument prototype would still apply. */
20690char dld();
20691
20692int main() {
20693dld()
20694; return 0; }
20695EOF
1542ea39 20696if { (eval echo configure:20697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20697 rm -rf conftest*
20698 eval "ac_cv_lib_$ac_lib_var=yes"
20699else
20700 echo "configure: failed program was:" >&5
20701 cat conftest.$ac_ext >&5
20702 rm -rf conftest*
20703 eval "ac_cv_lib_$ac_lib_var=no"
20704fi
20705rm -f conftest*
20706LIBS="$ac_save_LIBS"
f6bcfd97 20707
a0b9e27f
MB
20708fi
20709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20710 echo "$ac_t""yes" 1>&6
20711
3a922bb4 20712 HAVE_SHL_FUNCS=1
3d63bc3a 20713 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20714
20715else
20716 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20717fi
20718
a0b9e27f 20719
10f2d63a
VZ
20720fi
20721done
20722
a0b9e27f 20723
10f2d63a
VZ
20724fi
20725
a0b9e27f 20726
10f2d63a
VZ
20727fi
20728done
20729
5c6fa7d2 20730
8284b0c5 20731 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20732 for ac_func in dlerror
f6bcfd97 20733do
a0b9e27f 20734echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 20735echo "configure:20736: checking for $ac_func" >&5
a0b9e27f
MB
20736if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20737 echo $ac_n "(cached) $ac_c" 1>&6
20738else
20739 cat > conftest.$ac_ext <<EOF
1542ea39 20740#line 20741 "configure"
f6bcfd97
BP
20741#include "confdefs.h"
20742/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20743 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20744#include <assert.h>
20745/* Override any gcc2 internal prototype to avoid an error. */
20746/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20747 builtin and then its argument prototype would still apply. */
20748char $ac_func();
20749
20750int main() {
20751
f6bcfd97
BP
20752/* The GNU C library defines this for functions which it implements
20753 to always fail with ENOSYS. Some functions are actually named
20754 something starting with __ and the normal name is an alias. */
20755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20756choke me
20757#else
a0b9e27f 20758$ac_func();
f6bcfd97
BP
20759#endif
20760
a0b9e27f
MB
20761; return 0; }
20762EOF
1542ea39 20763if { (eval echo configure:20764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20764 rm -rf conftest*
20765 eval "ac_cv_func_$ac_func=yes"
20766else
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 rm -rf conftest*
20770 eval "ac_cv_func_$ac_func=no"
20771fi
20772rm -f conftest*
20773fi
20774
20775if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20776 echo "$ac_t""yes" 1>&6
20777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20778 cat >> confdefs.h <<EOF
20779#define $ac_tr_func 1
20780EOF
20781 cat >> confdefs.h <<\EOF
f6bcfd97 20782#define HAVE_DLERROR 1
a0b9e27f 20783EOF
f6bcfd97
BP
20784
20785else
a0b9e27f
MB
20786 echo "$ac_t""no" 1>&6
20787echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1542ea39 20788echo "configure:20789: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20789ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20791 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20792else
a0b9e27f 20793 ac_save_LIBS="$LIBS"
f6bcfd97 20794LIBS="-ldl $LIBS"
a0b9e27f 20795cat > conftest.$ac_ext <<EOF
1542ea39 20796#line 20797 "configure"
f6bcfd97
BP
20797#include "confdefs.h"
20798/* Override any gcc2 internal prototype to avoid an error. */
20799/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20800 builtin and then its argument prototype would still apply. */
20801char dlerror();
20802
20803int main() {
20804dlerror()
20805; return 0; }
20806EOF
1542ea39 20807if { (eval echo configure:20808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20808 rm -rf conftest*
20809 eval "ac_cv_lib_$ac_lib_var=yes"
20810else
20811 echo "configure: failed program was:" >&5
20812 cat conftest.$ac_ext >&5
20813 rm -rf conftest*
20814 eval "ac_cv_lib_$ac_lib_var=no"
20815fi
20816rm -f conftest*
20817LIBS="$ac_save_LIBS"
20818
20819fi
20820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20821 echo "$ac_t""yes" 1>&6
20822 cat >> confdefs.h <<\EOF
f6bcfd97 20823#define HAVE_DLERROR 1
a0b9e27f 20824EOF
f6bcfd97 20825
a0b9e27f
MB
20826else
20827 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20828fi
20829
20830fi
20831done
20832
3a922bb4
RL
20833 fi
20834 fi
f6bcfd97 20835
3a922bb4
RL
20836 if test "$HAVE_DL_FUNCS" = 0; then
20837 if test "$HAVE_SHL_FUNCS" = 0; then
20838 if test "$USE_UNIX" = 1; then
a0b9e27f 20839 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20840 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20841 wxUSE_DYNLIB_CLASS=no
20842 else
a0b9e27f 20843 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20844 fi
20845 fi
10f2d63a
VZ
20846 fi
20847 fi
20848fi
20849
0b9ab0bd 20850if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20851 cat >> confdefs.h <<\EOF
0b9ab0bd 20852#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20853EOF
0b9ab0bd
RL
20854
20855elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20856 cat >> confdefs.h <<\EOF
10f2d63a 20857#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20858EOF
10f2d63a
VZ
20859
20860fi
20861
8284b0c5 20862
1e6feb95 20863if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20864 cat >> confdefs.h <<\EOF
1e6feb95 20865#define wxUSE_FONTMAP 1
a0b9e27f 20866EOF
1e6feb95
VZ
20867
20868fi
20869
10f2d63a 20870if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20871 cat >> confdefs.h <<\EOF
10f2d63a 20872#define wxUSE_UNICODE 1
a0b9e27f 20873EOF
10f2d63a 20874
8284b0c5 20875
bbc3925a
VS
20876 if test "$wxUSE_MSW" != 1; then
20877 wxUSE_UNICODE_MSLU=no
20878 fi
a72a4bfa
VS
20879
20880 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20881 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
1542ea39 20882echo "configure:20883: checking for main in -lunicows" >&5
a0b9e27f
MB
20883ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20885 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20886else
a0b9e27f 20887 ac_save_LIBS="$LIBS"
a72a4bfa 20888LIBS="-lunicows $LIBS"
a0b9e27f 20889cat > conftest.$ac_ext <<EOF
1542ea39 20890#line 20891 "configure"
a72a4bfa
VS
20891#include "confdefs.h"
20892
a0b9e27f
MB
20893int main() {
20894main()
20895; return 0; }
20896EOF
1542ea39 20897if { (eval echo configure:20898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20898 rm -rf conftest*
20899 eval "ac_cv_lib_$ac_lib_var=yes"
20900else
20901 echo "configure: failed program was:" >&5
20902 cat conftest.$ac_ext >&5
20903 rm -rf conftest*
20904 eval "ac_cv_lib_$ac_lib_var=no"
20905fi
20906rm -f conftest*
20907LIBS="$ac_save_LIBS"
8284b0c5 20908
a0b9e27f
MB
20909fi
20910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20911 echo "$ac_t""yes" 1>&6
20912
20913 cat >> confdefs.h <<\EOF
a72a4bfa 20914#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20915EOF
a72a4bfa 20916
a0b9e27f 20917
a72a4bfa 20918else
a0b9e27f 20919 echo "$ac_t""no" 1>&6
a72a4bfa 20920
a0b9e27f
MB
20921 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20922 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20923 wxUSE_UNICODE_MSLU=no
a0b9e27f 20924
a72a4bfa
VS
20925fi
20926
20927 fi
10f2d63a
VZ
20928fi
20929
10f2d63a 20930if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20931 cat >> confdefs.h <<\EOF
10f2d63a 20932#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20933EOF
10f2d63a
VZ
20934
20935fi
20936
8284b0c5
MB
20937
20938
10f2d63a
VZ
20939IODBC_C_SRC=""
20940if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20941 cat >> confdefs.h <<\EOF
10f2d63a 20942#define wxUSE_ODBC 1
a0b9e27f 20943EOF
10f2d63a
VZ
20944
20945 WXODBCFLAG="-D_IODBC_"
20946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
20947fi
20948
8284b0c5 20949
10f2d63a 20950if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 20951 cat >> confdefs.h <<\EOF
10f2d63a 20952#define wxUSE_POSTSCRIPT 1
a0b9e27f 20953EOF
10f2d63a
VZ
20954
20955fi
20956
a0b9e27f 20957cat >> confdefs.h <<\EOF
10f2d63a 20958#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 20959EOF
10f2d63a 20960
8284b0c5 20961
a0b9e27f 20962cat >> confdefs.h <<\EOF
10f2d63a 20963#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 20964EOF
10f2d63a 20965
8284b0c5
MB
20966
20967
10f2d63a 20968if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 20969 cat >> confdefs.h <<\EOF
10f2d63a 20970#define wxUSE_CONSTRAINTS 1
a0b9e27f 20971EOF
10f2d63a
VZ
20972
20973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20974fi
20975
20976if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 20977
8284b0c5 20978
bb811f17 20979 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 20980 cat >> confdefs.h <<\EOF
10f2d63a 20981#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 20982EOF
10f2d63a 20983
bb811f17
JS
20984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20985 fi
10f2d63a
VZ
20986fi
20987
20988if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 20989 cat >> confdefs.h <<\EOF
10f2d63a 20990#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 20991EOF
10f2d63a
VZ
20992
20993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20994 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20996 fi
20997fi
20998
20999if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21000 cat >> confdefs.h <<\EOF
10f2d63a 21001#define wxUSE_HELP 1
a0b9e27f 21002EOF
10f2d63a
VZ
21003
21004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21005
77e13408 21006 if test "$wxUSE_MSW" = 1; then
031d8228 21007 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21008 cat >> confdefs.h <<\EOF
29fd3c0c 21009#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21010EOF
29fd3c0c 21011
3e44f09d 21012 fi
3379ed37 21013 fi
031d8228
VS
21014
21015 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21016 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21017 cat >> confdefs.h <<\EOF
031d8228 21018#define wxUSE_WXHTML_HELP 1
a0b9e27f 21019EOF
031d8228
VS
21020
21021 else
a0b9e27f 21022 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21023 wxUSE_WXHTML_HELP=no
21024 fi
21025 fi
10f2d63a
VZ
21026fi
21027
21028if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21029 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21030 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21031 else
a0b9e27f 21032 cat >> confdefs.h <<\EOF
10f2d63a 21033#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21034EOF
10f2d63a
VZ
21035
21036 fi
21037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21038fi
21039
21040if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 21041 cat >> confdefs.h <<\EOF
10f2d63a 21042#define wxUSE_PROLOGIO 1
a0b9e27f 21043EOF
10f2d63a 21044
2b5f62a0 21045 ALL_OBJECTS="$ALL_OBJECTS parser.o"
10f2d63a
VZ
21046fi
21047
21048if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 21049 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 21050 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
2b5f62a0
VZ
21051 else
21052 cat >> confdefs.h <<\EOF
10f2d63a 21053#define wxUSE_RESOURCES 1
a0b9e27f 21054EOF
10f2d63a 21055
2b5f62a0
VZ
21056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21057 fi
21058 if test "$wxUSE_PROLOGIO" != "yes" ; then
21059 ALL_OBJECTS="$ALL_OBJECTS parser.o"
e334d0ea 21060 fi
10f2d63a
VZ
21061fi
21062
21063if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 21064 cat >> confdefs.h <<\EOF
10f2d63a 21065#define wxUSE_X_RESOURCES 1
a0b9e27f 21066EOF
10f2d63a
VZ
21067
21068fi
21069
8284b0c5 21070
77e13408
RL
21071if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21072 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21073 -o "$wxUSE_OLE" = "yes" \
77e13408 21074 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21075 for ac_hdr in ole2.h
10f2d63a 21076do
a0b9e27f
MB
21077ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21078echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542ea39 21079echo "configure:21080: checking for $ac_hdr" >&5
a0b9e27f
MB
21080if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21081 echo $ac_n "(cached) $ac_c" 1>&6
21082else
21083 cat > conftest.$ac_ext <<EOF
1542ea39 21084#line 21085 "configure"
10f2d63a 21085#include "confdefs.h"
a0b9e27f
MB
21086#include <$ac_hdr>
21087EOF
21088ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542ea39 21089{ (eval echo configure:21090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21090ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21091if test -z "$ac_err"; then
21092 rm -rf conftest*
21093 eval "ac_cv_header_$ac_safe=yes"
21094else
21095 echo "$ac_err" >&5
21096 echo "configure: failed program was:" >&5
10f2d63a 21097 cat conftest.$ac_ext >&5
a0b9e27f
MB
21098 rm -rf conftest*
21099 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21100fi
a0b9e27f 21101rm -f conftest*
10f2d63a 21102fi
a0b9e27f
MB
21103if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21104 echo "$ac_t""yes" 1>&6
21105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21106 cat >> confdefs.h <<EOF
21107#define $ac_tr_hdr 1
21108EOF
21109
21110else
21111 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21112fi
21113done
21114
8284b0c5 21115
2b9bdf71
VZ
21116 if test "$ac_cv_header_ole2_h" = "yes" ; then
21117 if test "$GCC" = yes ; then
a0b9e27f
MB
21118
21119 ac_ext=C
21120# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21121ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21122ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21123ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21124cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21125
21126
a0b9e27f 21127 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
1542ea39 21128echo "configure:21129: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21129 cat > conftest.$ac_ext <<EOF
1542ea39 21130#line 21131 "configure"
8284b0c5
MB
21131#include "confdefs.h"
21132#include <windows.h>
21133 #include <ole2.h>
a0b9e27f 21134int main() {
8284b0c5 21135
a0b9e27f
MB
21136; return 0; }
21137EOF
1542ea39 21138if { (eval echo configure:21139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21139 rm -rf conftest*
21140 echo "$ac_t""no" 1>&6
21141else
21142 echo "configure: failed program was:" >&5
21143 cat conftest.$ac_ext >&5
21144 rm -rf conftest*
21145 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21146 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21147fi
a0b9e27f 21148rm -f conftest*
8284b0c5 21149 ac_ext=c
a0b9e27f 21150# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21151ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21152ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21153ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21154cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21155
2b9bdf71 21156 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21157 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21158 cat >> confdefs.h <<\EOF
4f11a343 21159#define wxUSE_OLE 1
a0b9e27f 21160EOF
4f11a343 21161
8284b0c5 21162
2b9bdf71
VZ
21163 fi
21164
a0b9e27f 21165 cat >> confdefs.h <<\EOF
2b9bdf71 21166#define wxUSE_DATAOBJ 1
a0b9e27f 21167EOF
2b9bdf71
VZ
21168
21169 else
a0b9e27f 21170 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21171
21172 wxUSE_CLIPBOARD=no
21173 wxUSE_DRAG_AND_DROP=no
21174 wxUSE_DATAOBJ=no
3bce6687
JS
21175 wxUSE_OLE=no
21176 fi
21177
21178 if test "$wxUSE_METAFILE" = "yes"; then
21179 cat >> confdefs.h <<\EOF
21180#define wxUSE_METAFILE 1
21181EOF
21182
21183
21184 cat >> confdefs.h <<\EOF
21185#define wxUSE_ENH_METAFILE 1
21186EOF
21187
21188 fi
21189fi
21190
2b9bdf71
VZ
21191if test "$wxUSE_IPC" = "yes"; then
21192 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21193 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21194 fi
21195
a0b9e27f 21196 cat >> confdefs.h <<\EOF
2b9bdf71 21197#define wxUSE_IPC 1
a0b9e27f 21198EOF
2b9bdf71
VZ
21199
21200fi
21201
21202if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21203 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21204 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21205 wxUSE_CLIPBOARD=no
21206 fi
21207
21208 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21209 cat >> confdefs.h <<\EOF
2b9bdf71 21210#define wxUSE_CLIPBOARD 1
a0b9e27f 21211EOF
2b9bdf71 21212
8284b0c5 21213
a0b9e27f 21214 cat >> confdefs.h <<\EOF
673f4220 21215#define wxUSE_DATAOBJ 1
a0b9e27f 21216EOF
673f4220 21217
6c657b52 21218 fi
2b9bdf71
VZ
21219fi
21220
21221if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21222 if test "$wxUSE_GTK" = 1; then
21223 if test "$WXGTK12" != 1; then
a0b9e27f 21224 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21225 wxUSE_DRAG_AND_DROP=no
21226 fi
21227 fi
21228
2b9bdf71 21229 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21230 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21231 wxUSE_DRAG_AND_DROP=no
21232 fi
21233
f79bd02d 21234 if test "$wxUSE_X11" = 1; then
a0b9e27f 21235 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21236 wxUSE_DRAG_AND_DROP=no
21237 fi
21238
6c657b52 21239 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21240 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21241 wxUSE_DRAG_AND_DROP=no
21242 fi
21243
10f2d63a 21244 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21245 cat >> confdefs.h <<\EOF
10f2d63a 21246#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21247EOF
10f2d63a
VZ
21248
21249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21250 fi
21251
21252fi
21253
21254if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21255 cat >> confdefs.h <<\EOF
10f2d63a 21256#define wxUSE_SPLINES 1
a0b9e27f 21257EOF
10f2d63a
VZ
21258
21259fi
21260
8284b0c5 21261
1e6feb95
VZ
21262USES_CONTROLS=0
21263if test "$wxUSE_CONTROLS" = "yes"; then
21264 USES_CONTROLS=1
21265fi
21266
10f2d63a 21267if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21268 cat >> confdefs.h <<\EOF
10f2d63a 21269#define wxUSE_ACCEL 1
a0b9e27f 21270EOF
10f2d63a 21271
1e6feb95
VZ
21272 USES_CONTROLS=1
21273fi
21274
21275if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21276 cat >> confdefs.h <<\EOF
1e6feb95 21277#define wxUSE_BUTTON 1
a0b9e27f 21278EOF
1e6feb95
VZ
21279
21280 USES_CONTROLS=1
21281fi
21282
21283if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21284 cat >> confdefs.h <<\EOF
1e6feb95 21285#define wxUSE_BMPBUTTON 1
a0b9e27f 21286EOF
1e6feb95
VZ
21287
21288 USES_CONTROLS=1
21289fi
21290
21291if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21292 cat >> confdefs.h <<\EOF
1e6feb95 21293#define wxUSE_CALENDARCTRL 1
a0b9e27f 21294EOF
1e6feb95
VZ
21295
21296 USES_CONTROLS=1
21297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21298fi
21299
21300if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21301 cat >> confdefs.h <<\EOF
10f2d63a 21302#define wxUSE_CARET 1
a0b9e27f 21303EOF
10f2d63a 21304
1e6feb95 21305 USES_CONTROLS=1
10f2d63a
VZ
21306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21307fi
21308
21309if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21310 cat >> confdefs.h <<\EOF
10f2d63a 21311#define wxUSE_COMBOBOX 1
a0b9e27f 21312EOF
10f2d63a 21313
1e6feb95 21314 USES_CONTROLS=1
10f2d63a
VZ
21315fi
21316
21317if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21318 cat >> confdefs.h <<\EOF
10f2d63a 21319#define wxUSE_CHOICE 1
a0b9e27f 21320EOF
10f2d63a 21321
1e6feb95 21322 USES_CONTROLS=1
10f2d63a
VZ
21323fi
21324
21325if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21326 cat >> confdefs.h <<\EOF
10f2d63a 21327#define wxUSE_CHECKBOX 1
a0b9e27f 21328EOF
10f2d63a 21329
1e6feb95 21330 USES_CONTROLS=1
10f2d63a
VZ
21331fi
21332
21333if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21334 cat >> confdefs.h <<\EOF
10f2d63a 21335#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21336EOF
10f2d63a 21337
1e6feb95 21338 USES_CONTROLS=1
10f2d63a
VZ
21339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21340fi
21341
da494b40
MB
21342if test "$wxUSE_DISPLAY" = "yes"; then
21343 cat >> confdefs.h <<\EOF
21344#define wxUSE_DISPLAY 1
21345EOF
21346
21347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21348fi
21349
10f2d63a 21350if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21351 cat >> confdefs.h <<\EOF
10f2d63a 21352#define wxUSE_GAUGE 1
a0b9e27f 21353EOF
10f2d63a 21354
1e6feb95 21355 USES_CONTROLS=1
10f2d63a
VZ
21356fi
21357
d6a55c4b 21358if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21359 cat >> confdefs.h <<\EOF
d6a55c4b 21360#define wxUSE_GRID 1
a0b9e27f 21361EOF
10f2d63a 21362
1e6feb95 21363 USES_CONTROLS=1
d6a55c4b 21364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21365fi
21366
21367if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21368 cat >> confdefs.h <<\EOF
10f2d63a 21369#define wxUSE_IMAGLIST 1
a0b9e27f 21370EOF
10f2d63a
VZ
21371
21372fi
21373
21374if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21375 cat >> confdefs.h <<\EOF
10f2d63a 21376#define wxUSE_LISTBOX 1
a0b9e27f 21377EOF
10f2d63a 21378
1e6feb95 21379 USES_CONTROLS=1
10f2d63a
VZ
21380fi
21381
21382if test "$wxUSE_LISTCTRL" = "yes"; then
21383 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21384 cat >> confdefs.h <<\EOF
10f2d63a 21385#define wxUSE_LISTCTRL 1
a0b9e27f 21386EOF
10f2d63a 21387
1e6feb95 21388 USES_CONTROLS=1
10f2d63a
VZ
21389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21390 else
a0b9e27f 21391 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21392 fi
21393fi
21394
21395if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21396 cat >> confdefs.h <<\EOF
10f2d63a 21397#define wxUSE_NOTEBOOK 1
a0b9e27f 21398EOF
10f2d63a 21399
1e6feb95 21400 USES_CONTROLS=1
10f2d63a
VZ
21401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21402fi
21403
24176f2c 21404if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 21405 cat >> confdefs.h <<\EOF
24176f2c 21406#define wxUSE_PROPSHEET 1
a0b9e27f 21407EOF
24176f2c
GD
21408
21409 USES_CONTROLS=1
21410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21411fi
21412
10f2d63a 21413if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21414 cat >> confdefs.h <<\EOF
10f2d63a 21415#define wxUSE_RADIOBOX 1
a0b9e27f 21416EOF
10f2d63a 21417
1e6feb95 21418 USES_CONTROLS=1
10f2d63a
VZ
21419fi
21420
21421if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21422 cat >> confdefs.h <<\EOF
10f2d63a 21423#define wxUSE_RADIOBTN 1
a0b9e27f 21424EOF
10f2d63a 21425
1e6feb95 21426 USES_CONTROLS=1
10f2d63a
VZ
21427fi
21428
21429if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21430 cat >> confdefs.h <<\EOF
10f2d63a 21431#define wxUSE_SASH 1
a0b9e27f 21432EOF
10f2d63a
VZ
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21435fi
21436
21437if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21438 cat >> confdefs.h <<\EOF
10f2d63a 21439#define wxUSE_SCROLLBAR 1
a0b9e27f 21440EOF
10f2d63a 21441
1e6feb95 21442 USES_CONTROLS=1
741a9306 21443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21444fi
21445
21446if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21447 cat >> confdefs.h <<\EOF
10f2d63a 21448#define wxUSE_SLIDER 1
a0b9e27f 21449EOF
10f2d63a 21450
1e6feb95 21451 USES_CONTROLS=1
10f2d63a
VZ
21452fi
21453
21454if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21455 cat >> confdefs.h <<\EOF
10f2d63a 21456#define wxUSE_SPINBTN 1
a0b9e27f 21457EOF
10f2d63a 21458
1e6feb95 21459 USES_CONTROLS=1
10f2d63a
VZ
21460fi
21461
56cfaa52 21462if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21463 cat >> confdefs.h <<\EOF
56cfaa52 21464#define wxUSE_SPINCTRL 1
a0b9e27f 21465EOF
56cfaa52 21466
1e6feb95 21467 USES_CONTROLS=1
56cfaa52
RR
21468fi
21469
10f2d63a 21470if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21471 cat >> confdefs.h <<\EOF
10f2d63a 21472#define wxUSE_SPLITTER 1
a0b9e27f 21473EOF
10f2d63a
VZ
21474
21475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21476fi
21477
21478if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21479 cat >> confdefs.h <<\EOF
10f2d63a 21480#define wxUSE_STATBMP 1
a0b9e27f 21481EOF
10f2d63a 21482
1e6feb95 21483 USES_CONTROLS=1
10f2d63a
VZ
21484fi
21485
21486if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21487 cat >> confdefs.h <<\EOF
10f2d63a 21488#define wxUSE_STATBOX 1
a0b9e27f 21489EOF
10f2d63a 21490
1e6feb95
VZ
21491 USES_CONTROLS=1
21492fi
21493
21494if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21495 cat >> confdefs.h <<\EOF
1e6feb95 21496#define wxUSE_STATTEXT 1
a0b9e27f 21497EOF
1e6feb95
VZ
21498
21499 USES_CONTROLS=1
10f2d63a
VZ
21500fi
21501
21502if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21503 cat >> confdefs.h <<\EOF
10f2d63a 21504#define wxUSE_STATLINE 1
a0b9e27f 21505EOF
10f2d63a 21506
89e6bf6d 21507 USES_CONTROLS=1
10f2d63a
VZ
21508fi
21509
21510if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21511 cat >> confdefs.h <<\EOF
10f2d63a 21512#define wxUSE_STATUSBAR 1
a0b9e27f 21513EOF
10f2d63a 21514
1e6feb95 21515 USES_CONTROLS=1
698dcdb6 21516
2286341c 21517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21518fi
21519
21520if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21521 cat >> confdefs.h <<\EOF
10f2d63a 21522#define wxUSE_TAB_DIALOG 1
a0b9e27f 21523EOF
10f2d63a
VZ
21524
21525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21526fi
21527
1e6feb95 21528if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21529 cat >> confdefs.h <<\EOF
1e6feb95 21530#define wxUSE_TEXTCTRL 1
a0b9e27f 21531EOF
1e6feb95
VZ
21532
21533 USES_CONTROLS=1
21534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21535fi
21536
1db8dc4a 21537if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21538 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21539 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21540 wxUSE_TOGGLEBTN=no
21541 fi
21542 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21543 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21544 wxUSE_TOGGLEBTN=no
21545 fi
21546
21547 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21548 cat >> confdefs.h <<\EOF
1db8dc4a 21549#define wxUSE_TOGGLEBTN 1
a0b9e27f 21550EOF
1db8dc4a 21551
1e6feb95 21552 USES_CONTROLS=1
a45d7ab7 21553 fi
1db8dc4a
VZ
21554fi
21555
360d6699 21556if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21557 cat >> confdefs.h <<\EOF
360d6699 21558#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21559EOF
360d6699
VZ
21560
21561 wxUSE_TOOLBAR="yes"
1e6feb95 21562 USES_CONTROLS=1
360d6699
VZ
21563fi
21564
10f2d63a 21565if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21566 cat >> confdefs.h <<\EOF
10f2d63a 21567#define wxUSE_TOOLBAR 1
a0b9e27f 21568EOF
10f2d63a 21569
1e6feb95 21570 USES_CONTROLS=1
698dcdb6 21571
360d6699
VZ
21572 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21573 wxUSE_TOOLBAR_NATIVE="yes"
21574 fi
21575
1e6feb95 21576 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21577 cat >> confdefs.h <<\EOF
360d6699 21578#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21579EOF
360d6699 21580
1e6feb95
VZ
21581 USES_CONTROLS=1
21582 fi
21583
21584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21585fi
21586
10f2d63a
VZ
21587if test "$wxUSE_TOOLTIPS" = "yes"; then
21588 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21589 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21590 else
89e6bf6d
VZ
21591 if test "$wxUSE_UNIVERSAL" = "yes"; then
21592 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21593 else
89e6bf6d 21594 cat >> confdefs.h <<\EOF
10f2d63a 21595#define wxUSE_TOOLTIPS 1
a0b9e27f 21596EOF
10f2d63a
VZ
21597
21598 fi
21599 fi
21600fi
21601
21602if test "$wxUSE_TREECTRL" = "yes"; then
21603 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21604 cat >> confdefs.h <<\EOF
10f2d63a 21605#define wxUSE_TREECTRL 1
a0b9e27f 21606EOF
10f2d63a 21607
1e6feb95 21608 USES_CONTROLS=1
10f2d63a
VZ
21609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21610 else
a0b9e27f 21611 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21612 fi
21613fi
21614
9f41d601 21615if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21616 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21617 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21618 else
485cf710 21619 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21620 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21621 else
3c011993 21622 if test "$wxUSE_PM" = 1; then
a0b9e27f 21623 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21624 else
a0b9e27f 21625 cat >> confdefs.h <<\EOF
9f41d601 21626#define wxUSE_POPUPWIN 1
a0b9e27f 21627EOF
9f41d601 21628
8284b0c5 21629
3c011993
VZ
21630 USES_CONTROLS=1
21631 fi
485cf710 21632 fi
6abe4b65 21633 fi
9f41d601
RR
21634fi
21635
dd964dcc 21636if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21637 if test "$wxUSE_PM" = 1; then
a0b9e27f 21638 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21639 else
a0b9e27f 21640 cat >> confdefs.h <<\EOF
dd964dcc 21641#define wxUSE_TIPWINDOW 1
a0b9e27f 21642EOF
dd964dcc 21643
3c011993 21644 fi
dd964dcc
VZ
21645fi
21646
1e6feb95 21647if test "$USES_CONTROLS" = 1; then
a0b9e27f 21648 cat >> confdefs.h <<\EOF
1e6feb95 21649#define wxUSE_CONTROLS 1
a0b9e27f 21650EOF
10f2d63a 21651
10f2d63a
VZ
21652fi
21653
8284b0c5 21654
24176f2c 21655if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 21656 cat >> confdefs.h <<\EOF
24176f2c 21657#define wxUSE_TREELAYOUT 1
a0b9e27f 21658EOF
24176f2c
GD
21659
21660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21661fi
1e6feb95 21662
24fd6d87 21663if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21664 cat >> confdefs.h <<\EOF
24fd6d87 21665#define wxUSE_DRAGIMAGE 1
a0b9e27f 21666EOF
24fd6d87
VZ
21667
21668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21669fi
21670
1e6feb95 21671if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21672 cat >> confdefs.h <<\EOF
1e6feb95 21673#define wxUSE_MENUS 1
a0b9e27f 21674EOF
10f2d63a 21675
1e6feb95 21676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21677fi
21678
1e6feb95 21679if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21680 cat >> confdefs.h <<\EOF
1e6feb95 21681#define wxUSE_METAFILE 1
a0b9e27f 21682EOF
10f2d63a 21683
10f2d63a
VZ
21684fi
21685
1e6feb95 21686if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21687 cat >> confdefs.h <<\EOF
1e6feb95 21688#define wxUSE_MIMETYPE 1
a0b9e27f 21689EOF
10f2d63a 21690
10f2d63a
VZ
21691fi
21692
3e44f09d 21693if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21694 cat >> confdefs.h <<\EOF
3e44f09d 21695#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21696EOF
3e44f09d 21697
321d2b14
VZ
21698if test "$TOOLKIT" = "MSW"; then
21699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21700fi
21701
3e44f09d
VZ
21702fi
21703
4cdb0ab0 21704if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21705 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21706 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21707 wxUSE_PROTOCOL=no
21708 fi
21709
21710 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21711 cat >> confdefs.h <<\EOF
4cdb0ab0 21712#define wxUSE_PROTOCOL 1
a0b9e27f 21713EOF
4cdb0ab0 21714
8284b0c5 21715
3954f9ca 21716 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21717 cat >> confdefs.h <<\EOF
4cdb0ab0 21718#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21719EOF
4cdb0ab0 21720
3954f9ca
VS
21721 fi
21722 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21723 cat >> confdefs.h <<\EOF
4cdb0ab0 21724#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21725EOF
4cdb0ab0 21726
3954f9ca
VS
21727 fi
21728 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21729 cat >> confdefs.h <<\EOF
3954f9ca 21730#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21731EOF
3954f9ca
VS
21732
21733 fi
4cdb0ab0 21734 fi
3954f9ca
VS
21735fi
21736
21737if test "$wxUSE_URL" = "yes"; then
21738 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21739 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21740 wxUSE_URL=no
21741 fi
21742 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21743 cat >> confdefs.h <<\EOF
3954f9ca 21744#define wxUSE_URL 1
a0b9e27f 21745EOF
4cdb0ab0
VS
21746
21747 fi
21748fi
21749
10f2d63a 21750if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21751 cat >> confdefs.h <<\EOF
10f2d63a 21752#define wxUSE_MINIFRAME 1
a0b9e27f 21753EOF
10f2d63a
VZ
21754
21755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21756fi
21757
21758if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21759 cat >> confdefs.h <<\EOF
10f2d63a 21760#define wxUSE_HTML 1
a0b9e27f 21761EOF
10f2d63a
VZ
21762
21763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21764fi
21765
21766if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21767 cat >> confdefs.h <<\EOF
1e487827 21768#define wxUSE_VALIDATORS 1
a0b9e27f 21769EOF
703e0a69 21770
698dcdb6
VZ
21771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21772fi
21773
edae8572 21774if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21775 cat >> confdefs.h <<\EOF
edae8572 21776#define wxUSE_PALETTE 1
a0b9e27f 21777EOF
edae8572
VZ
21778
21779fi
21780
698dcdb6 21781if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21782 cat >> confdefs.h <<\EOF
698dcdb6 21783#define wxUSE_IMAGE 1
a0b9e27f 21784EOF
698dcdb6
VZ
21785
21786fi
21787
21788if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21789 cat >> confdefs.h <<\EOF
698dcdb6 21790#define wxUSE_GIF 1
a0b9e27f 21791EOF
698dcdb6
VZ
21792
21793fi
21794
21795if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21796 cat >> confdefs.h <<\EOF
698dcdb6 21797#define wxUSE_PCX 1
a0b9e27f 21798EOF
698dcdb6
VZ
21799
21800fi
21801
4b6b4dfc 21802if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21803 cat >> confdefs.h <<\EOF
4b6b4dfc 21804#define wxUSE_IFF 1
a0b9e27f 21805EOF
4b6b4dfc
RR
21806
21807fi
21808
698dcdb6 21809if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21810 cat >> confdefs.h <<\EOF
698dcdb6 21811#define wxUSE_PNM 1
a0b9e27f 21812EOF
698dcdb6
VZ
21813
21814fi
21815
21816if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21817 cat >> confdefs.h <<\EOF
698dcdb6 21818#define wxUSE_XPM 1
a0b9e27f 21819EOF
698dcdb6
VZ
21820
21821fi
21822
658974ae 21823if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21824 cat >> confdefs.h <<\EOF
658974ae 21825#define wxUSE_ICO_CUR 1
a0b9e27f 21826EOF
658974ae
VS
21827
21828fi
21829
a72a4bfa
VS
21830if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21831 LIBS=" -lunicows $LIBS"
21832fi
21833
8284b0c5 21834
1e6feb95 21835if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21836 cat >> confdefs.h <<\EOF
1e6feb95 21837#define wxUSE_CHOICEDLG 1
a0b9e27f 21838EOF
1e6feb95
VZ
21839
21840fi
21841
21842if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21843 cat >> confdefs.h <<\EOF
1e6feb95 21844#define wxUSE_COLOURDLG 1
a0b9e27f 21845EOF
1e6feb95
VZ
21846
21847fi
21848
21849if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21850 cat >> confdefs.h <<\EOF
1e6feb95 21851#define wxUSE_FILEDLG 1
a0b9e27f 21852EOF
1e6feb95
VZ
21853
21854fi
21855
8db37e06 21856if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21857 cat >> confdefs.h <<\EOF
8db37e06 21858#define wxUSE_FINDREPLDLG 1
a0b9e27f 21859EOF
8db37e06
VZ
21860
21861fi
21862
1e6feb95 21863if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21864 cat >> confdefs.h <<\EOF
1e6feb95 21865#define wxUSE_FONTDLG 1
a0b9e27f 21866EOF
1e6feb95
VZ
21867
21868fi
21869
21870if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21871 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21872 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21873 else
a0b9e27f 21874 cat >> confdefs.h <<\EOF
1e6feb95 21875#define wxUSE_DIRDLG 1
a0b9e27f 21876EOF
1e6feb95 21877
1e6feb95
VZ
21878 fi
21879fi
21880
21881if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21882 cat >> confdefs.h <<\EOF
1e6feb95 21883#define wxUSE_MSGDLG 1
a0b9e27f 21884EOF
1e6feb95
VZ
21885
21886fi
21887
21888if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21889 cat >> confdefs.h <<\EOF
1e6feb95 21890#define wxUSE_NUMBERDLG 1
a0b9e27f 21891EOF
1e6feb95
VZ
21892
21893fi
21894
21895if test "$wxUSE_PROGRESSDLG" = "yes"; then
21896 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21897 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21898 else
a0b9e27f 21899 cat >> confdefs.h <<\EOF
1e6feb95 21900#define wxUSE_PROGRESSDLG 1
a0b9e27f 21901EOF
1e6feb95
VZ
21902
21903 fi
21904fi
21905
cbca9943 21906if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21907 cat >> confdefs.h <<\EOF
cbca9943 21908#define wxUSE_SPLASH 1
a0b9e27f 21909EOF
cbca9943
VZ
21910
21911fi
21912
1e6feb95
VZ
21913if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21914 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21915 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21916 else
a0b9e27f 21917 cat >> confdefs.h <<\EOF
1e6feb95 21918#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21919EOF
1e6feb95 21920
7b4a847f
RR
21921 fi
21922fi
579d8138 21923
8284b0c5 21924if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21925 cat >> confdefs.h <<\EOF
8284b0c5 21926#define wxUSE_TEXTDLG 1
a0b9e27f 21927EOF
8284b0c5
MB
21928
21929fi
21930
21931if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21932 cat >> confdefs.h <<\EOF
8284b0c5 21933#define wxUSE_WIZARDDLG 1
a0b9e27f 21934EOF
8284b0c5
MB
21935
21936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21937fi
21938
21939
21940if test "$cross_compiling" = "yes"; then
21941 OSINFO="\"$host\""
21942else
21943 OSINFO=`uname -s -r -m`
21944 OSINFO="\"$OSINFO\""
21945fi
21946
a0b9e27f 21947cat >> confdefs.h <<EOF
8284b0c5 21948#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21949EOF
8284b0c5
MB
21950
21951
21952
21953if test "x$prefix" != "xNONE"; then
21954 wxPREFIX=$prefix
21955else
21956 wxPREFIX=$ac_default_prefix
21957fi
21958
a0b9e27f 21959cat >> confdefs.h <<EOF
8284b0c5 21960#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21961EOF
8284b0c5
MB
21962
21963
52c71b80
VZ
21964top_builddir=`pwd`
21965
8284b0c5
MB
21966
21967
21968
21969if test "$wxUSE_MAC" = 1 ; then
21970 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21971fi
ac0c4cc3
DE
21972if test "$wxUSE_COCOA" = 1 ; then
21973 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
21974fi
8284b0c5
MB
21975
21976
2b5f62a0
VZ
21977LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21978
21979have_cos=0
21980have_floor=0
21981for ac_func in cos
21982do
21983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 21984echo "configure:21985: checking for $ac_func" >&5
2b5f62a0
VZ
21985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21986 echo $ac_n "(cached) $ac_c" 1>&6
21987else
21988 cat > conftest.$ac_ext <<EOF
1542ea39 21989#line 21990 "configure"
2b5f62a0
VZ
21990#include "confdefs.h"
21991/* System header to define __stub macros and hopefully few prototypes,
21992 which can conflict with char $ac_func(); below. */
21993#include <assert.h>
21994/* Override any gcc2 internal prototype to avoid an error. */
21995/* We use char because int might match the return type of a gcc2
21996 builtin and then its argument prototype would still apply. */
21997char $ac_func();
21998
21999int main() {
22000
22001/* The GNU C library defines this for functions which it implements
22002 to always fail with ENOSYS. Some functions are actually named
22003 something starting with __ and the normal name is an alias. */
22004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22005choke me
22006#else
22007$ac_func();
22008#endif
22009
22010; return 0; }
22011EOF
1542ea39 22012if { (eval echo configure:22013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22013 rm -rf conftest*
22014 eval "ac_cv_func_$ac_func=yes"
22015else
22016 echo "configure: failed program was:" >&5
22017 cat conftest.$ac_ext >&5
22018 rm -rf conftest*
22019 eval "ac_cv_func_$ac_func=no"
22020fi
22021rm -f conftest*
22022fi
22023
22024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22025 echo "$ac_t""yes" 1>&6
22026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22027 cat >> confdefs.h <<EOF
22028#define $ac_tr_func 1
22029EOF
22030 have_cos=1
22031else
22032 echo "$ac_t""no" 1>&6
22033fi
22034done
22035
22036for ac_func in floor
22037do
22038echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 22039echo "configure:22040: checking for $ac_func" >&5
2b5f62a0
VZ
22040if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22041 echo $ac_n "(cached) $ac_c" 1>&6
22042else
22043 cat > conftest.$ac_ext <<EOF
1542ea39 22044#line 22045 "configure"
2b5f62a0
VZ
22045#include "confdefs.h"
22046/* System header to define __stub macros and hopefully few prototypes,
22047 which can conflict with char $ac_func(); below. */
22048#include <assert.h>
22049/* Override any gcc2 internal prototype to avoid an error. */
22050/* We use char because int might match the return type of a gcc2
22051 builtin and then its argument prototype would still apply. */
22052char $ac_func();
22053
22054int main() {
22055
22056/* The GNU C library defines this for functions which it implements
22057 to always fail with ENOSYS. Some functions are actually named
22058 something starting with __ and the normal name is an alias. */
22059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22060choke me
22061#else
22062$ac_func();
22063#endif
22064
22065; return 0; }
22066EOF
1542ea39 22067if { (eval echo configure:22068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22068 rm -rf conftest*
22069 eval "ac_cv_func_$ac_func=yes"
22070else
22071 echo "configure: failed program was:" >&5
22072 cat conftest.$ac_ext >&5
22073 rm -rf conftest*
22074 eval "ac_cv_func_$ac_func=no"
22075fi
22076rm -f conftest*
22077fi
22078
22079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22080 echo "$ac_t""yes" 1>&6
22081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22082 cat >> confdefs.h <<EOF
22083#define $ac_tr_func 1
22084EOF
22085 have_floor=1
22086else
22087 echo "$ac_t""no" 1>&6
22088fi
22089done
22090
22091echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
1542ea39 22092echo "configure:22093: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22093if test "$have_cos" = 1 -a "$have_floor" = 1; then
22094 echo "$ac_t""yes" 1>&6
22095else
22096 echo "$ac_t""no" 1>&6
22097 LIBS="$LIBS -lm"
22098 # use different functions to avoid configure caching
22099 have_sin=0
22100 have_ceil=0
22101 for ac_func in sin
22102do
22103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 22104echo "configure:22105: checking for $ac_func" >&5
2b5f62a0
VZ
22105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22106 echo $ac_n "(cached) $ac_c" 1>&6
22107else
22108 cat > conftest.$ac_ext <<EOF
1542ea39 22109#line 22110 "configure"
2b5f62a0
VZ
22110#include "confdefs.h"
22111/* System header to define __stub macros and hopefully few prototypes,
22112 which can conflict with char $ac_func(); below. */
22113#include <assert.h>
22114/* Override any gcc2 internal prototype to avoid an error. */
22115/* We use char because int might match the return type of a gcc2
22116 builtin and then its argument prototype would still apply. */
22117char $ac_func();
22118
22119int main() {
22120
22121/* The GNU C library defines this for functions which it implements
22122 to always fail with ENOSYS. Some functions are actually named
22123 something starting with __ and the normal name is an alias. */
22124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22125choke me
22126#else
22127$ac_func();
22128#endif
22129
22130; return 0; }
22131EOF
1542ea39 22132if { (eval echo configure:22133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22133 rm -rf conftest*
22134 eval "ac_cv_func_$ac_func=yes"
22135else
22136 echo "configure: failed program was:" >&5
22137 cat conftest.$ac_ext >&5
22138 rm -rf conftest*
22139 eval "ac_cv_func_$ac_func=no"
22140fi
22141rm -f conftest*
22142fi
22143
22144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22145 echo "$ac_t""yes" 1>&6
22146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22147 cat >> confdefs.h <<EOF
22148#define $ac_tr_func 1
22149EOF
22150 have_sin=1
22151else
22152 echo "$ac_t""no" 1>&6
22153fi
22154done
22155
22156 for ac_func in ceil
22157do
22158echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1542ea39 22159echo "configure:22160: checking for $ac_func" >&5
2b5f62a0
VZ
22160if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22161 echo $ac_n "(cached) $ac_c" 1>&6
22162else
22163 cat > conftest.$ac_ext <<EOF
1542ea39 22164#line 22165 "configure"
2b5f62a0
VZ
22165#include "confdefs.h"
22166/* System header to define __stub macros and hopefully few prototypes,
22167 which can conflict with char $ac_func(); below. */
22168#include <assert.h>
22169/* Override any gcc2 internal prototype to avoid an error. */
22170/* We use char because int might match the return type of a gcc2
22171 builtin and then its argument prototype would still apply. */
22172char $ac_func();
22173
22174int main() {
22175
22176/* The GNU C library defines this for functions which it implements
22177 to always fail with ENOSYS. Some functions are actually named
22178 something starting with __ and the normal name is an alias. */
22179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22180choke me
22181#else
22182$ac_func();
22183#endif
22184
22185; return 0; }
22186EOF
1542ea39 22187if { (eval echo configure:22188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22188 rm -rf conftest*
22189 eval "ac_cv_func_$ac_func=yes"
22190else
22191 echo "configure: failed program was:" >&5
22192 cat conftest.$ac_ext >&5
22193 rm -rf conftest*
22194 eval "ac_cv_func_$ac_func=no"
22195fi
22196rm -f conftest*
22197fi
22198
22199if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22200 echo "$ac_t""yes" 1>&6
22201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22202 cat >> confdefs.h <<EOF
22203#define $ac_tr_func 1
22204EOF
22205 have_ceil=1
22206else
22207 echo "$ac_t""no" 1>&6
22208fi
22209done
22210
22211 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
1542ea39 22212echo "configure:22213: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22213 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22214 echo "$ac_t""yes" 1>&6
22215 else
22216 echo "$ac_t""no" 1>&6
22217 # not sure we should warn the user, crash, etc.
22218 fi
22219fi
8284b0c5
MB
22220
22221if test "$wxUSE_GUI" = "yes"; then
22222
22223 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22224
a0b9e27f 22225
8284b0c5
MB
22226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22227 drawing dynamic erase event exec font image \
1542ea39 22228 minimal propsize rotate shaped widgets"
8284b0c5
MB
22229
22230 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22231else
22232 SAMPLES_SUBDIRS="console"
22233fi
22234
22235
22236INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22237-I\${top_srcdir}/include \
22238$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22239$TOOLKIT_INCLUDE"
22240
22241if test "$wxUSE_GTK" = 1; then
22242 WXCONFIG_INCLUDE=
22243else
22244 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22245fi
22246
22247if test "$GXX" = yes ; then
22248 CXXWARNINGS="-Wall"
a0b9e27f 22249
8284b0c5
MB
22250 if test "$wxUSE_NO_DEPS" = "no" ; then
22251 CFLAGS="-MMD $CFLAGS"
22252 CXXFLAGS="-MMD $CXXFLAGS"
22253 fi
22254fi
22255
b2fee376 22256EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22257
b2fee376 22258CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22259CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22260CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22261LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22262
22263LDFLAGS="$LDFLAGS $PROFILE"
22264
22265SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
2f51a9ec
GD
22334
22335
22336
22337
f6bcfd97 22338
dad6c0ea 22339
caa2c79b 22340
3711412e 22341
1e6feb95
VZ
22342
22343
885d4bf5
VS
22344
22345
22346
22347
9b695262
VZ
22348
22349
62d0491b 22350
ef7f2189 22351
40f7145c 22352
2b5f62a0
VZ
22353
22354
22355
22356
22357
2bffed64
VZ
22358
22359
3bd8fb5f 22360
e26c13cf 22361
52c71b80 22362
36825681 22363
4f5a7f74 22364
10f2d63a 22365
a0b9e27f
MB
22366
22367echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1542ea39 22368echo "configure:22369: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22369set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22370if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22371 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22372else
a0b9e27f 22373 cat > conftestmake <<\EOF
10f2d63a
VZ
22374all:
22375 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22376EOF
10f2d63a 22377# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22378eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22379if test -n "$ac_maketemp"; then
22380 eval ac_cv_prog_make_${ac_make}_set=yes
22381else
22382 eval ac_cv_prog_make_${ac_make}_set=no
22383fi
a0b9e27f 22384rm -f conftestmake
10f2d63a
VZ
22385fi
22386if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22387 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22388 SET_MAKE=
22389else
a0b9e27f 22390 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22391 SET_MAKE="MAKE=${MAKE-make}"
22392fi
22393
8284b0c5 22394
3a922bb4
RL
22395if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22396 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22397fi
665bbe97 22398
8284b0c5 22399
10f2d63a 22400
57973b9c
VZ
22401wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22402wx_cv_if_gnu_make=$IF_GNU_MAKE
22403wx_cv_path_ifs=$PATH_IFS
22404wx_cv_program_ext=$PROGRAM_EXT
22405wx_cv_target_library=$WX_TARGET_LIBRARY
22406wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22407wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22408wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22409wx_cv_release=${WX_RELEASE}
22410wx_cv_current=${WX_CURRENT}
22411wx_cv_revision=${WX_REVISION}
22412wx_cv_age=${WX_AGE}
27635a90 22413wx_cv_use_gui=${USE_GUI}
5e66eee1 22414wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22415export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22416 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22417 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22418 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22419 wx_cv_use_gui wx_cv_use_resources
57973b9c 22420
a0b9e27f 22421subdirs="demos samples utils contrib"
8284b0c5 22422
10f2d63a 22423
a0b9e27f
MB
22424trap '' 1 2 15
22425cat > confcache <<\EOF
10f2d63a
VZ
22426# This file is a shell script that caches the results of configure
22427# tests run on this system so they can be shared between configure
a0b9e27f
MB
22428# scripts and configure runs. It is not useful on other systems.
22429# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22430#
a0b9e27f
MB
22431# By default, configure uses ./config.cache as the cache file,
22432# creating it if it does not exist already. You can give configure
22433# the --cache-file=FILE option to use a different cache file; that is
22434# what configure does when it calls configure scripts in
22435# subdirectories, so they share the cache.
22436# Giving --cache-file=/dev/null disables caching, for debugging configure.
22437# config.status only pays attention to the cache file if you give it the
22438# --recheck option to rerun configure.
10f2d63a 22439#
a0b9e27f 22440EOF
10f2d63a
VZ
22441# The following way of writing the cache mishandles newlines in values,
22442# but we know of no workaround that is simple, portable, and efficient.
22443# So, don't put newlines in cache variables' values.
22444# Ultrix sh set writes to stderr and can't be redirected directly,
22445# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22446(set) 2>&1 |
22447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22448 *ac_space=\ *)
22449 # `set' does not quote correctly, so add quotes (double-quote substitution
22450 # turns \\\\ into \\, and sed turns \\ into \).
22451 sed -n \
22452 -e "s/'/'\\\\''/g" \
22453 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22454 ;;
22455 *)
22456 # `set' quotes correctly as required by POSIX, so do not add quotes.
22457 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22458 ;;
22459 esac >> confcache
22460if cmp -s $cache_file confcache; then
22461 :
22462else
10f2d63a 22463 if test -w $cache_file; then
a0b9e27f
MB
22464 echo "updating cache $cache_file"
22465 cat confcache > $cache_file
10f2d63a
VZ
22466 else
22467 echo "not updating unwritable cache $cache_file"
22468 fi
22469fi
22470rm -f confcache
22471
a0b9e27f
MB
22472trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22473
10f2d63a
VZ
22474test "x$prefix" = xNONE && prefix=$ac_default_prefix
22475# Let make expand exec_prefix.
22476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22477
a0b9e27f
MB
22478# Any assignment to VPATH causes Sun make to only execute
22479# the first set of double-colon rules, so remove it if not needed.
22480# If there is a colon in the path, we need to keep it.
10f2d63a 22481if test "x$srcdir" = x.; then
a0b9e27f 22482 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22483fi
22484
a0b9e27f 22485trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22486
a0b9e27f 22487DEFS=-DHAVE_CONFIG_H
8284b0c5 22488
a0b9e27f 22489# Without the "./", some shells look in PATH for config.status.
247f5006 22490: ${CONFIG_STATUS=./config.status}
52127426 22491
a0b9e27f
MB
22492echo creating $CONFIG_STATUS
22493rm -f $CONFIG_STATUS
22494cat > $CONFIG_STATUS <<EOF
22495#! /bin/sh
22496# Generated automatically by configure.
22497# Run this file to recreate the current configuration.
22498# This directory was configured as follows,
22499# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22500#
a0b9e27f 22501# $0 $ac_configure_args
247f5006 22502#
a0b9e27f
MB
22503# Compiler output produced by configure, useful for debugging
22504# configure, is in ./config.log if it exists.
247f5006 22505
a0b9e27f
MB
22506ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22507for ac_option
247f5006 22508do
a0b9e27f
MB
22509 case "\$ac_option" in
22510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22511 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22512 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22513 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22514 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22515 exit 0 ;;
22516 -help | --help | --hel | --he | --h)
22517 echo "\$ac_cs_usage"; exit 0 ;;
22518 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22519 esac
22520done
22521
a0b9e27f
MB
22522ac_given_srcdir=$srcdir
22523ac_given_INSTALL="$INSTALL"
247f5006 22524
a0b9e27f
MB
22525trap 'rm -fr `echo "
22526 wx-config
2b5f62a0 22527 version-script
a0b9e27f
MB
22528 src/make.env
22529 src/makeprog.env
22530 src/makelib.env
22531 Makefile
22532 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22533EOF
22534cat >> $CONFIG_STATUS <<EOF
247f5006 22535
a0b9e27f
MB
22536# Protect against being on the right side of a sed subst in config.status.
22537sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22538 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22539$ac_vpsub
22540$extrasub
22541s%@SHELL@%$SHELL%g
22542s%@CFLAGS@%$CFLAGS%g
22543s%@CPPFLAGS@%$CPPFLAGS%g
22544s%@CXXFLAGS@%$CXXFLAGS%g
22545s%@FFLAGS@%$FFLAGS%g
22546s%@DEFS@%$DEFS%g
22547s%@LDFLAGS@%$LDFLAGS%g
22548s%@LIBS@%$LIBS%g
22549s%@exec_prefix@%$exec_prefix%g
22550s%@prefix@%$prefix%g
22551s%@program_transform_name@%$program_transform_name%g
22552s%@bindir@%$bindir%g
22553s%@sbindir@%$sbindir%g
22554s%@libexecdir@%$libexecdir%g
22555s%@datadir@%$datadir%g
22556s%@sysconfdir@%$sysconfdir%g
22557s%@sharedstatedir@%$sharedstatedir%g
22558s%@localstatedir@%$localstatedir%g
22559s%@libdir@%$libdir%g
22560s%@includedir@%$includedir%g
22561s%@oldincludedir@%$oldincludedir%g
22562s%@infodir@%$infodir%g
22563s%@mandir@%$mandir%g
22564s%@host@%$host%g
22565s%@host_alias@%$host_alias%g
22566s%@host_cpu@%$host_cpu%g
22567s%@host_vendor@%$host_vendor%g
22568s%@host_os@%$host_os%g
22569s%@target@%$target%g
22570s%@target_alias@%$target_alias%g
22571s%@target_cpu@%$target_cpu%g
22572s%@target_vendor@%$target_vendor%g
22573s%@target_os@%$target_os%g
22574s%@build@%$build%g
22575s%@build_alias@%$build_alias%g
22576s%@build_cpu@%$build_cpu%g
22577s%@build_vendor@%$build_vendor%g
22578s%@build_os@%$build_os%g
22579s%@CC@%$CC%g
22580s%@CPP@%$CPP%g
22581s%@CXX@%$CXX%g
22582s%@RANLIB@%$RANLIB%g
22583s%@AR@%$AR%g
22584s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22585s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22586s%@INSTALL_DATA@%$INSTALL_DATA%g
22587s%@STRIP@%$STRIP%g
22588s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22589s%@YACC@%$YACC%g
22590s%@LEX@%$LEX%g
22591s%@LEXLIB@%$LEXLIB%g
22592s%@LN_S@%$LN_S%g
22593s%@CXXCPP@%$CXXCPP%g
22594s%@PKG_CONFIG@%$PKG_CONFIG%g
22595s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22596s%@GTK_LIBS@%$GTK_LIBS%g
22597s%@GTK_CONFIG@%$GTK_CONFIG%g
22598s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22599s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22600s%@X_CFLAGS@%$X_CFLAGS%g
22601s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22602s%@X_LIBS@%$X_LIBS%g
22603s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22604s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22605s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22606s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22607s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22608s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22609s%@RESCOMP@%$RESCOMP%g
22610s%@DEREZ@%$DEREZ%g
36825681 22611s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22612s%@LIBICONV@%$LIBICONV%g
22613s%@LEX_STEM@%$LEX_STEM%g
22614s%@PATH_IFS@%$PATH_IFS%g
22615s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22616s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22617s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22618s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22619s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22620s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22621s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22622s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22623s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22624s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22625s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22626s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22627s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22628s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22629s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22630s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22631s%@WX_ALL@%$WX_ALL%g
22632s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22633s%@SHARED_LD@%$SHARED_LD%g
22634s%@PIC_FLAG@%$PIC_FLAG%g
22635s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22636s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22637s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22638s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22639s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22640s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22641s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22642s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22643s%@USE_GUI@%$USE_GUI%g
22644s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22645s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22646s%@TOOLKIT@%$TOOLKIT%g
22647s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22648s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22649s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22650s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22651s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22652s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22653s%@cross_compiling@%$cross_compiling%g
22654s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22655s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22656s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22657s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22658s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22659s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22660s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22661s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22662s%@ALL_HEADERS@%$ALL_HEADERS%g
22663s%@ALL_SOURCES@%$ALL_SOURCES%g
22664s%@GUIDIST@%$GUIDIST%g
22665s%@PORT_FILES@%$PORT_FILES%g
22666s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22667s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22668s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22669s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22670s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22671s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22672s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22673s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22674s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22675s%@RESFLAGS@%$RESFLAGS%g
22676s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22677s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22678s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22679s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22680s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22681s%@MACRESCOMP@%$MACRESCOMP%g
22682s%@MACSETFILE@%$MACSETFILE%g
22683s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22684s%@GCC@%$GCC%g
a0b9e27f
MB
22685s%@DLLTOOL@%$DLLTOOL%g
22686s%@AS@%$AS%g
22687s%@NM@%$NM%g
22688s%@LD@%$LD%g
22689s%@MAKEINFO@%$MAKEINFO%g
22690s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22691s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22692s%@SET_MAKE@%$SET_MAKE%g
22693s%@subdirs@%$subdirs%g
247f5006 22694
247f5006 22695CEOF
a0b9e27f 22696EOF
247f5006 22697
a0b9e27f
MB
22698cat >> $CONFIG_STATUS <<\EOF
22699
22700# Split the substitutions into bite-sized pieces for seds with
22701# small command number limits, like on Digital OSF/1 and HP-UX.
22702ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22703ac_file=1 # Number of current file.
22704ac_beg=1 # First line for current file.
22705ac_end=$ac_max_sed_cmds # Line after last line for current file.
22706ac_more_lines=:
22707ac_sed_cmds=""
22708while $ac_more_lines; do
22709 if test $ac_beg -gt 1; then
22710 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22711 else
22712 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22713 fi
22714 if test ! -s conftest.s$ac_file; then
22715 ac_more_lines=false
22716 rm -f conftest.s$ac_file
22717 else
22718 if test -z "$ac_sed_cmds"; then
22719 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22720 else
a0b9e27f 22721 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22722 fi
a0b9e27f
MB
22723 ac_file=`expr $ac_file + 1`
22724 ac_beg=$ac_end
22725 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22726 fi
a0b9e27f
MB
22727done
22728if test -z "$ac_sed_cmds"; then
22729 ac_sed_cmds=cat
22730fi
22731EOF
10f2d63a 22732
a0b9e27f 22733cat >> $CONFIG_STATUS <<EOF
10f2d63a 22734
a0b9e27f 22735CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22736 version-script
a0b9e27f
MB
22737 src/make.env
22738 src/makeprog.env
22739 src/makelib.env
22740 Makefile
22741 "}
22742EOF
22743cat >> $CONFIG_STATUS <<\EOF
22744for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22746 case "$ac_file" in
22747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22749 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22750 esac
247f5006 22751
a0b9e27f 22752 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22753
a0b9e27f
MB
22754 # Remove last slash and all that follows it. Not all systems have dirname.
22755 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22756 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22757 # The file is in a subdirectory.
22758 test ! -d "$ac_dir" && mkdir "$ac_dir"
22759 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22760 # A "../" for each directory in $ac_dir_suffix.
22761 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22762 else
22763 ac_dir_suffix= ac_dots=
22764 fi
247f5006 22765
a0b9e27f
MB
22766 case "$ac_given_srcdir" in
22767 .) srcdir=.
22768 if test -z "$ac_dots"; then top_srcdir=.
22769 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22770 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22771 *) # Relative path.
a0b9e27f
MB
22772 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22773 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22774 esac
10f2d63a 22775
a0b9e27f
MB
22776 case "$ac_given_INSTALL" in
22777 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22778 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22779 esac
247f5006 22780
a0b9e27f
MB
22781 echo creating "$ac_file"
22782 rm -f "$ac_file"
22783 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22784 case "$ac_file" in
22785 *Makefile*) ac_comsub="1i\\
22786# $configure_input" ;;
22787 *) ac_comsub= ;;
22788 esac
247f5006 22789
a0b9e27f
MB
22790 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22791 sed -e "$ac_comsub
22792s%@configure_input@%$configure_input%g
22793s%@srcdir@%$srcdir%g
22794s%@top_srcdir@%$top_srcdir%g
22795s%@INSTALL@%$INSTALL%g
22796" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22797fi; done
22798rm -f conftest.s*
10f2d63a
VZ
22799
22800# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22801# NAME is the cpp macro being defined and VALUE is the value it is being given.
22802#
22803# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22804ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22805ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22806ac_dC='\3'
22807ac_dD='%g'
22808# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22809ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22810ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22811ac_uC=' '
a0b9e27f
MB
22812ac_uD='\4%g'
22813# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22814ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22815ac_eB='$%\1#\2define\3'
22816ac_eC=' '
22817ac_eD='%g'
22818
22819if test "${CONFIG_HEADERS+set}" != set; then
22820EOF
22821cat >> $CONFIG_STATUS <<EOF
22822 CONFIG_HEADERS="setup.h:setup.h.in"
22823EOF
22824cat >> $CONFIG_STATUS <<\EOF
22825fi
22826for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22828 case "$ac_file" in
22829 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22830 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22831 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22832 esac
22833
a0b9e27f
MB
22834 echo creating $ac_file
22835
22836 rm -f conftest.frag conftest.in conftest.out
22837 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22838 cat $ac_file_inputs > conftest.in
22839
22840EOF
22841
22842# Transform confdefs.h into a sed script conftest.vals that substitutes
22843# the proper values into config.h.in to produce config.h. And first:
22844# Protect against being on the right side of a sed subst in config.status.
22845# Protect against being in an unquoted here document in config.status.
22846rm -f conftest.vals
22847cat > conftest.hdr <<\EOF
22848s/[\\&%]/\\&/g
22849s%[\\$`]%\\&%g
22850s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22851s%ac_d%ac_u%gp
22852s%ac_u%ac_e%gp
22853EOF
22854sed -n -f conftest.hdr confdefs.h > conftest.vals
22855rm -f conftest.hdr
10f2d63a
VZ
22856
22857# This sed command replaces #undef with comments. This is necessary, for
22858# example, in the case of _POSIX_SOURCE, which is predefined and required
22859# on some systems where configure will not decide to define it.
a0b9e27f
MB
22860cat >> conftest.vals <<\EOF
22861s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22862EOF
22863
22864# Break up conftest.vals because some shells have a limit on
22865# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22866
22867rm -f conftest.tail
a0b9e27f 22868while :
10f2d63a 22869do
a0b9e27f
MB
22870 ac_lines=`grep -c . conftest.vals`
22871 # grep -c gives empty output for an empty file on some AIX systems.
22872 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22873 # Write a limited-size here document to conftest.frag.
22874 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22875 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22876 echo 'CEOF
a0b9e27f
MB
22877 sed -f conftest.frag conftest.in > conftest.out
22878 rm -f conftest.in
22879 mv conftest.out conftest.in
22880' >> $CONFIG_STATUS
22881 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22882 rm -f conftest.vals
22883 mv conftest.tail conftest.vals
10f2d63a 22884done
a0b9e27f
MB
22885rm -f conftest.vals
22886
22887cat >> $CONFIG_STATUS <<\EOF
22888 rm -f conftest.frag conftest.h
22889 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22890 cat conftest.in >> conftest.h
22891 rm -f conftest.in
22892 if cmp -s $ac_file conftest.h 2>/dev/null; then
22893 echo "$ac_file is unchanged"
22894 rm -f conftest.h
10f2d63a 22895 else
a0b9e27f
MB
22896 # Remove last slash and all that follows it. Not all systems have dirname.
22897 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22898 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22899 # The file is in a subdirectory.
22900 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22901 fi
a0b9e27f
MB
22902 rm -f $ac_file
22903 mv conftest.h $ac_file
247f5006 22904 fi
a0b9e27f
MB
22905fi; done
22906
22907EOF
22908cat >> $CONFIG_STATUS <<EOF
22909
22910 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22911 LN_S="${LN_S}"
22912
22913
22914EOF
22915cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22916
652d930d 22917 if test ! -h wx-config; then
991a5759 22918 chmod +x wx-config
3a922bb4
RL
22919 mv wx-config wx${TOOLCHAIN_NAME}-config
22920 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22921 fi
665bbe97 22922
00cf1208
RR
22923 if test ! -d lib; then
22924 mkdir lib
22925 fi
22926 if test ! -d lib/wx; then
22927 mkdir lib/wx
22928 fi
22929 if test ! -d lib/wx/include; then
22930 mkdir lib/wx/include
22931 fi
3a922bb4
RL
22932 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22933 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22934 fi
3a922bb4
RL
22935 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22936 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
22937 fi
22938 if test -f setup.h; then
3a922bb4 22939 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 22940 fi
a0b9e27f
MB
22941
22942exit 0
22943EOF
10f2d63a 22944chmod +x $CONFIG_STATUS
a0b9e27f
MB
22945rm -fr confdefs* $ac_clean_files
22946test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 22947
2224580a
VZ
22948if test "$no_recursion" != yes; then
22949
22950 # Remove --cache-file and --srcdir arguments so they do not pile up.
22951 ac_sub_configure_args=
22952 ac_prev=
22953 for ac_arg in $ac_configure_args; do
22954 if test -n "$ac_prev"; then
22955 ac_prev=
22956 continue
22957 fi
a0b9e27f 22958 case "$ac_arg" in
2224580a
VZ
22959 -cache-file | --cache-file | --cache-fil | --cache-fi \
22960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22961 ac_prev=cache_file ;;
22962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 22963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
22964 ;;
22965 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22966 ac_prev=srcdir ;;
22967 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22968 ;;
22969 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22970 esac
22971 done
22972
a0b9e27f 22973 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
22974
22975 # Do not complain, so a configure script can configure whichever
22976 # parts of a large source tree are present.
a0b9e27f
MB
22977 if test ! -d $srcdir/$ac_config_dir; then
22978 continue
22979 fi
2224580a 22980
a0b9e27f 22981 echo configuring in $ac_config_dir
2224580a 22982
a0b9e27f
MB
22983 case "$srcdir" in
22984 .) ;;
22985 *)
22986 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22987 else
22988 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22989 fi
22990 ;;
22991 esac
2224580a 22992
a0b9e27f
MB
22993 ac_popdir=`pwd`
22994 cd $ac_config_dir
247f5006 22995
a0b9e27f
MB
22996 # A "../" for each directory in /$ac_config_dir.
22997 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 22998
a0b9e27f
MB
22999 case "$srcdir" in
23000 .) # No --srcdir option. We are building in place.
23001 ac_sub_srcdir=$srcdir ;;
23002 /*) # Absolute path.
23003 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23004 *) # Relative path.
23005 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23006 esac
2224580a
VZ
23007
23008 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23009 if test -f $ac_sub_srcdir/configure; then
23010 ac_sub_configure=$ac_sub_srcdir/configure
23011 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23012 ac_sub_configure=$ac_configure
23013 else
a0b9e27f 23014 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23015 ac_sub_configure=
23016 fi
23017
23018 # The recursion is here.
23019 if test -n "$ac_sub_configure"; then
a0b9e27f 23020
2224580a 23021 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23022 case "$cache_file" in
23023 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23024 *) # Relative path.
a0b9e27f 23025 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23026 esac
a0b9e27f
MB
23027 case "$ac_given_INSTALL" in
23028 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23029 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23030 esac
2224580a 23031
a0b9e27f 23032 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23033 # The eval makes quoting arguments work.
a0b9e27f
MB
23034 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23035 then :
23036 else
23037 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23038 fi
2224580a
VZ
23039 fi
23040
23041 cd $ac_popdir
23042 done
23043fi
23044
8284b0c5 23045
2b5f62a0
VZ
23046echo
23047echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23048echo ""
23049echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23050
23051echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23052echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23053echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23054
0c98a14e
GD
23055echo " What level of wxWindows compatibility should be enabled?"
23056echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23057echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23058echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23059
2b5f62a0
VZ
23060echo " Which libraries should wxWindows use?"
23061echo " jpeg ${wxUSE_LIBJPEG-none}"
23062echo " png ${wxUSE_LIBPNG-none}"
23063echo " regex ${wxUSE_REGEX}"
23064echo " tiff ${wxUSE_LIBTIFF-none}"
23065echo " zlib ${wxUSE_ZLIB}"
23066
23067echo ""
23068