]> git.saurik.com Git - wxWidgets.git/blame - configure
support Show() in wxFlexGridSizer (patch 737850)
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
2b5f62a0
VZ
55
56
57
521196a2
MB
58
59
60
a0b9e27f
MB
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
2b5f62a0
VZ
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
a0b9e27f
MB
72
73
74
75
76
a0b9e27f
MB
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
ac0c4cc3
DE
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
a0b9e27f 103ac_help="$ac_help
89e6bf6d 104 --with-wine use Wine"
a0b9e27f
MB
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
b2fee376 144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
65d8ef1e
VS
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
a0b9e27f
MB
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
3bce6687
JS
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
a0b9e27f
MB
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
a0b9e27f
MB
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
a0b9e27f 291ac_help="$ac_help
3c907f20 292 --enable-prologio not available; see contrib"
a0b9e27f 293ac_help="$ac_help
3c907f20 294 --enable-resources not available; see contrib"
a0b9e27f 295ac_help="$ac_help
da494b40 296 --enable-clipboard use wxClipboard class"
a0b9e27f
MB
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
a0b9e27f
MB
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
da494b40
MB
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
a0b9e27f
MB
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
a0b9e27f
MB
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
a0b9e27f
MB
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
7bb2947d
MB
425ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
a0b9e27f
MB
427ac_help="$ac_help
428 --enable-palette use wxPalette class"
429ac_help="$ac_help
430 --enable-image use wxImage class"
431ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443ac_help="$ac_help
444 --disable-largefile omit support for large files"
445ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --disable-gtktest Do not try to compile and run a test GTK program"
453ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459ac_help="$ac_help
460 --with-x use the X Window System"
461ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
463
464# Initialize some variables set by options.
465# The variables have the same names as the options, with
466# dashes changed to underlines.
a0b9e27f
MB
467build=NONE
468cache_file=./config.cache
10f2d63a 469exec_prefix=NONE
a0b9e27f 470host=NONE
10f2d63a 471no_create=
a0b9e27f 472nonopt=NONE
10f2d63a
VZ
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
a0b9e27f 481target=NONE
10f2d63a
VZ
482verbose=
483x_includes=NONE
484x_libraries=NONE
485bindir='${exec_prefix}/bin'
486sbindir='${exec_prefix}/sbin'
487libexecdir='${exec_prefix}/libexec'
488datadir='${prefix}/share'
489sysconfdir='${prefix}/etc'
490sharedstatedir='${prefix}/com'
491localstatedir='${prefix}/var'
492libdir='${exec_prefix}/lib'
493includedir='${prefix}/include'
494oldincludedir='/usr/include'
495infodir='${prefix}/info'
496mandir='${prefix}/man'
497
a0b9e27f
MB
498# Initialize some other variables.
499subdirs=
500MFLAGS= MAKEFLAGS=
501SHELL=${CONFIG_SHELL-/bin/sh}
502# Maximum number of lines to put in a shell here document.
503ac_max_here_lines=12
504
10f2d63a
VZ
505ac_prev=
506for ac_option
507do
a0b9e27f 508
10f2d63a
VZ
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
a0b9e27f
MB
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
10f2d63a
VZ
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
a0b9e27f 523 case "$ac_option" in
10f2d63a
VZ
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 528 bindir="$ac_optarg" ;;
10f2d63a
VZ
529
530 -build | --build | --buil | --bui | --bu)
a0b9e27f 531 ac_prev=build ;;
10f2d63a 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 533 build="$ac_optarg" ;;
10f2d63a
VZ
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 540 cache_file="$ac_optarg" ;;
10f2d63a
VZ
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
a0b9e27f 546 datadir="$ac_optarg" ;;
10f2d63a
VZ
547
548 -disable-* | --disable-*)
a0b9e27f 549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 550 # Reject names that are not valid shell variable names.
a0b9e27f
MB
551 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
556
557 -enable-* | --enable-*)
a0b9e27f 558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 559 # Reject names that are not valid shell variable names.
a0b9e27f
MB
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
10f2d63a
VZ
566 *) ac_optarg=yes ;;
567 esac
a0b9e27f 568 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
a0b9e27f 577 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
a0b9e27f
MB
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587Usage: configure [options] [host]
588Options: [defaults in brackets after descriptions]
589Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619EOF
620 cat << EOF
621Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
10f2d63a
VZ
637
638 -host | --host | --hos | --ho)
a0b9e27f 639 ac_prev=host ;;
10f2d63a 640 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 641 host="$ac_optarg" ;;
10f2d63a
VZ
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 648 includedir="$ac_optarg" ;;
10f2d63a
VZ
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 653 infodir="$ac_optarg" ;;
10f2d63a
VZ
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 658 libdir="$ac_optarg" ;;
10f2d63a
VZ
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 665 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 674 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 679 mandir="$ac_optarg" ;;
10f2d63a
VZ
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 686 | --no-cr | --no-c)
10f2d63a
VZ
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 700 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 705 prefix="$ac_optarg" ;;
10f2d63a
VZ
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 712 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 719 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
720
721 -program-transform-name | --program-transform-name \
722 | --program-transform-nam | --program-transform-na \
723 | --program-transform-n | --program-transform- \
724 | --program-transform | --program-transfor \
725 | --program-transfo | --program-transf \
726 | --program-trans | --program-tran \
727 | --progr-tra | --program-tr | --program-t)
728 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 736 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
a0b9e27f 746 sbindir="$ac_optarg" ;;
10f2d63a
VZ
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
a0b9e27f 757 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
a0b9e27f 762 site="$ac_optarg" ;;
10f2d63a
VZ
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 767 srcdir="$ac_optarg" ;;
10f2d63a
VZ
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 774 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 777 ac_prev=target ;;
10f2d63a 778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 779 target="$ac_optarg" ;;
10f2d63a
VZ
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
a0b9e27f
MB
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
10f2d63a
VZ
787
788 -with-* | --with-*)
a0b9e27f 789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 790 # Reject names that are not valid shell variable names.
a0b9e27f
MB
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
10f2d63a 794 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
795 case "$ac_option" in
796 *=*) ;;
10f2d63a
VZ
797 *) ac_optarg=yes ;;
798 esac
a0b9e27f 799 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
800
801 -without-* | --without-*)
a0b9e27f 802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 803 # Reject names that are not valid shell variable names.
a0b9e27f
MB
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 819 x_includes="$ac_optarg" ;;
10f2d63a
VZ
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 826 x_libraries="$ac_optarg" ;;
10f2d63a 827
a0b9e27f 828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
829 ;;
830
831 *)
a0b9e27f
MB
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
10f2d63a
VZ
839 ;;
840
841 esac
842done
843
844if test -n "$ac_prev"; then
a0b9e27f 845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 846fi
8284b0c5 847
a0b9e27f
MB
848trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850# File descriptor usage:
851# 0 standard input
852# 1 file creation
853# 2 errors and warnings
854# 3 some systems may open it to /dev/tty
855# 4 used on the Kubota Titan
856# 6 checking for... messages and results
857# 5 compiler messages saved in config.log
858if test "$silent" = yes; then
859 exec 6>/dev/null
860else
861 exec 6>&1
862fi
863exec 5>./config.log
864
865echo "\
866This file contains any messages produced by compilers while
867running configure, to aid debugging if configure makes a mistake.
868" 1>&5
8284b0c5 869
a0b9e27f
MB
870# Strip out --no-create and --no-recursion so they do not pile up.
871# Also quote any args containing shell metacharacters.
872ac_configure_args=
873for ac_arg
10f2d63a 874do
a0b9e27f
MB
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
883 esac
884done
885
a0b9e27f
MB
886# NLS nuisances.
887# Only set these to C if already set. These must not be set unconditionally
888# because not all systems understand e.g. LANG=C (notably SCO).
889# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890# Non-C LC_CTYPE values break the ctype check.
891if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 895
a0b9e27f
MB
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo > confdefs.h
10f2d63a 900
a0b9e27f
MB
901# A filename unique to this package, relative to the directory that
902# configure is in, which we can look for to find out if srcdir is correct.
903ac_unique_file=wx-config.in
10f2d63a
VZ
904
905# Find the source files, if location was not specified.
906if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
a0b9e27f
MB
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916else
917 ac_srcdir_defaulted=no
918fi
919if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 922 else
a0b9e27f 923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
924 fi
925fi
a0b9e27f 926srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 927
10f2d63a
VZ
928# Prefer explicitly selected file to automatically selected ones.
929if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935fi
936for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
a0b9e27f 938 echo "loading site script $ac_site_file"
10f2d63a
VZ
939 . "$ac_site_file"
940 fi
941done
942
943if test -r "$cache_file"; then
a0b9e27f
MB
944 echo "loading cache $cache_file"
945 . $cache_file
10f2d63a 946else
a0b9e27f
MB
947 echo "creating cache $cache_file"
948 > $cache_file
10f2d63a
VZ
949fi
950
951ac_ext=c
a0b9e27f 952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 953ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956cross_compiling=$ac_cv_prog_cc_cross
957
958ac_exeext=
959ac_objext=o
960if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968else
969 ac_n= ac_c='\c' ac_t=
970fi
8284b0c5
MB
971
972
10f2d63a 973
7c66a493
VZ
974ac_aux_dir=
975for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if test -f $ac_dir/install-sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install-sh -c"
979 break
980 elif 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
247f5006 984 fi
7c66a493
VZ
985done
986if test -z "$ac_aux_dir"; then
a0b9e27f 987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 988fi
a0b9e27f
MB
989ac_config_guess=$ac_aux_dir/config.guess
990ac_config_sub=$ac_aux_dir/config.sub
991ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 992
8284b0c5 993
a0b9e27f
MB
994# Do some error checking and defaulting for the host and target type.
995# The inputs are:
996# configure --host=HOST --target=TARGET --build=BUILD NONOPT
997#
998# The rules are:
999# 1. You are not allowed to specify --host, --target, and nonopt at the
1000# same time.
1001# 2. Host defaults to nonopt.
1002# 3. If nonopt is not specified, then host defaults to the current host,
1003# as determined by config.guess.
1004# 4. Target and build default to nonopt.
1005# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1006
1007# The aliases save the names the user supplied, while $host etc.
1008# will get canonicalized.
a0b9e27f
MB
1009case $host---$target---$nonopt in
1010NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012esac
1013
1014
1015# Make sure we can run config.sub.
1016if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018fi
1019
1020echo $ac_n "checking host system type""... $ac_c" 1>&6
7bb2947d 1021echo "configure:1022: checking host system type" >&5
a0b9e27f
MB
1022
1023host_alias=$host
1024case "$host_alias" in
1025NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$host" 1>&6
1040
1041echo $ac_n "checking target system type""... $ac_c" 1>&6
7bb2947d 1042echo "configure:1043: checking target system type" >&5
a0b9e27f
MB
1043
1044target_alias=$target
1045case "$target_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$target" 1>&6
1058
1059echo $ac_n "checking build system type""... $ac_c" 1>&6
7bb2947d 1060echo "configure:1061: checking build system type" >&5
a0b9e27f
MB
1061
1062build_alias=$build
1063case "$build_alias" in
1064NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069esac
1070
1071build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075echo "$ac_t""$build" 1>&6
1076
1077test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
8284b0c5
MB
1081
1082
a0b9e27f 1083
10f2d63a 1084WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1085WX_MINOR_VERSION_NUMBER=5
1086WX_RELEASE_NUMBER=0
10f2d63a 1087
10f2d63a 1088WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1089WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1090
978f1259
RL
1091WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
34bed6d9 1093WX_CURRENT=0
6426998c
RL
1094WX_REVISION=0
1095WX_AGE=0
1096
8284b0c5
MB
1097
1098
10f2d63a
VZ
1099USE_UNIX=1
1100USE_WIN32=0
f9bc1684 1101USE_DOS=0
b12915c1 1102USE_BEOS=0
1216f52d 1103USE_MAC=0
b12915c1 1104
10f2d63a 1105USE_AIX=
10f2d63a 1106USE_BSD=
f11bdd03 1107USE_DARWIN=
10f2d63a 1108USE_FREEBSD=
89e3b3e4
VZ
1109USE_HPUX=
1110USE_LINUX=
f6bcfd97 1111USE_NETBSD=
89e3b3e4
VZ
1112USE_OPENBSD=
1113USE_OSF=
1114USE_SGI=
1115USE_SOLARIS=
1116USE_SUN=
1117USE_SUNOS=
1118USE_SVR4=
1119USE_SYSV=
10f2d63a
VZ
1120USE_VMS=
1121USE_ULTRIX=
89e3b3e4
VZ
1122USE_UNIXWARE=
1123
1124USE_ALPHA=
10f2d63a 1125
ab9b9eab
VZ
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
ac0c4cc3 1128ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1129
ac0c4cc3 1130DEFAULT_wxUSE_COCOA=0
10f2d63a 1131DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1132DEFAULT_wxUSE_MAC=0
1133DEFAULT_wxUSE_MGL=0
1725144d 1134DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1135DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_wxUSE_MSW=0
e07802fc 1137DEFAULT_wxUSE_PM=0
f79bd02d 1138DEFAULT_wxUSE_X11=0
10f2d63a 1139
ac0c4cc3 1140DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1141DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1142DEFAULT_DEFAULT_wxUSE_MAC=0
1143DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1144DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1145DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1147DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1148DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1149
d6a55c4b 1150PROGRAM_EXT=
3a922bb4 1151SO_SUFFIX=so
d6a55c4b 1152
10f2d63a
VZ
1153case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1158 SO_SUFFIX=sl
a0b9e27f 1159 cat >> confdefs.h <<\EOF
10f2d63a 1160#define __HPUX__ 1
a0b9e27f 1161EOF
10f2d63a
VZ
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
a0b9e27f 1166 cat >> confdefs.h <<\EOF
10f2d63a 1167#define __LINUX__ 1
a0b9e27f 1168EOF
10f2d63a
VZ
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
a0b9e27f 1173 cat >> confdefs.h <<\EOF
10f2d63a 1174#define __ALPHA__ 1
a0b9e27f 1175EOF
10f2d63a
VZ
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
a0b9e27f 1183 cat >> confdefs.h <<\EOF
10f2d63a 1184#define __SGI__ 1
a0b9e27f 1185EOF
10f2d63a 1186
a0b9e27f 1187 cat >> confdefs.h <<\EOF
10f2d63a 1188#define __SVR4__ 1
a0b9e27f 1189EOF
10f2d63a
VZ
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
a0b9e27f 1197 cat >> confdefs.h <<\EOF
10f2d63a 1198#define __SUN__ 1
a0b9e27f 1199EOF
10f2d63a 1200
a0b9e27f 1201 cat >> confdefs.h <<\EOF
10f2d63a 1202#define __SOLARIS__ 1
a0b9e27f 1203EOF
10f2d63a 1204
a0b9e27f 1205 cat >> confdefs.h <<\EOF
10f2d63a 1206#define __SVR4__ 1
a0b9e27f 1207EOF
10f2d63a
VZ
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
a0b9e27f 1216 cat >> confdefs.h <<\EOF
10f2d63a 1217#define __SUN__ 1
a0b9e27f 1218EOF
10f2d63a 1219
a0b9e27f 1220 cat >> confdefs.h <<\EOF
10f2d63a 1221#define __SUNOS__ 1
a0b9e27f 1222EOF
10f2d63a 1223
a0b9e27f 1224 cat >> confdefs.h <<\EOF
10f2d63a 1225#define __BSD__ 1
a0b9e27f 1226EOF
10f2d63a
VZ
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
f6bcfd97 1230 *-*-freebsd*)
10f2d63a
VZ
1231 USE_BSD=1
1232 USE_FREEBSD=1
a0b9e27f 1233 cat >> confdefs.h <<\EOF
10f2d63a 1234#define __FREEBSD__ 1
a0b9e27f 1235EOF
10f2d63a 1236
a0b9e27f 1237 cat >> confdefs.h <<\EOF
10f2d63a 1238#define __BSD__ 1
a0b9e27f 1239EOF
95c8801c
VS
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
a0b9e27f 1246 cat >> confdefs.h <<\EOF
2b5f62a0 1247#define __OPENBSD__ 1
a0b9e27f 1248EOF
95c8801c 1249
a0b9e27f 1250 cat >> confdefs.h <<\EOF
2b5f62a0 1251#define __BSD__ 1
a0b9e27f 1252EOF
f6bcfd97
BP
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
a0b9e27f 1259 cat >> confdefs.h <<\EOF
2b5f62a0 1260#define __NETBSD__ 1
a0b9e27f 1261EOF
f6bcfd97 1262
a0b9e27f 1263 cat >> confdefs.h <<\EOF
2b5f62a0 1264#define __BSD__ 1
a0b9e27f 1265EOF
10f2d63a
VZ
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
a0b9e27f 1272 cat >> confdefs.h <<\EOF
10f2d63a 1273#define __ALPHA__ 1
a0b9e27f 1274EOF
10f2d63a 1275
a0b9e27f 1276 cat >> confdefs.h <<\EOF
10f2d63a 1277#define __OSF__ 1
a0b9e27f 1278EOF
10f2d63a
VZ
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
a0b9e27f 1286 cat >> confdefs.h <<\EOF
10f2d63a 1287#define __ALPHA__ 1
a0b9e27f 1288EOF
10f2d63a 1289
a0b9e27f 1290 cat >> confdefs.h <<\EOF
10f2d63a 1291#define __SVR4__ 1
a0b9e27f 1292EOF
10f2d63a
VZ
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
a0b9e27f 1299 cat >> confdefs.h <<\EOF
10f2d63a 1300#define __SYSV__ 1
a0b9e27f 1301EOF
10f2d63a 1302
a0b9e27f 1303 cat >> confdefs.h <<\EOF
10f2d63a 1304#define __SVR4__ 1
a0b9e27f 1305EOF
10f2d63a
VZ
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
2b5f62a0 1313 SO_SUFFIX=a
a0b9e27f 1314 cat >> confdefs.h <<\EOF
10f2d63a 1315#define __AIX__ 1
a0b9e27f 1316EOF
10f2d63a 1317
a0b9e27f 1318 cat >> confdefs.h <<\EOF
10f2d63a 1319#define __SYSV__ 1
a0b9e27f 1320EOF
10f2d63a 1321
a0b9e27f 1322 cat >> confdefs.h <<\EOF
10f2d63a 1323#define __SVR4__ 1
a0b9e27f 1324EOF
10f2d63a
VZ
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
89e3b3e4
VZ
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334#define __UNIXWARE__ 1
1335EOF
1336
1337 ;;
1338
1c8183e2 1339 *-*-cygwin* | *-*-mingw32* )
17234b26 1340 SO_SUFFIX=dll
cf27ef00 1341 PROGRAM_EXT=".exe"
7b7a7637 1342 RESCOMP=windres
10f2d63a
VZ
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
f9bc1684
VS
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
a0b9e27f 1349 cat >> confdefs.h <<\EOF
f9bc1684 1350#define __DOS__ 1
a0b9e27f 1351EOF
f9bc1684
VS
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1355 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1356 ;;
1357
6fa882bd 1358 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1359 cat >> confdefs.h <<\EOF
10f2d63a 1360#define __EMX__ 1
a0b9e27f 1361EOF
10f2d63a 1362
cf27ef00 1363 PROGRAM_EXT=".exe"
e07802fc 1364 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1365 ;;
1366
d08b457b
GD
1367 powerpc-*-darwin* )
1368 USE_BSD=1
f11bdd03 1369 USE_DARWIN=1
3a922bb4 1370 SO_SUFFIX=dylib
a0b9e27f 1371 cat >> confdefs.h <<\EOF
f11bdd03 1372#define __BSD__ 1
a0b9e27f 1373EOF
b4085ce6 1374
a0b9e27f 1375 cat >> confdefs.h <<\EOF
f11bdd03 1376#define __DARWIN__ 1
a0b9e27f 1377EOF
d08b457b 1378
a0b9e27f 1379 cat >> confdefs.h <<\EOF
d08b457b 1380#define __POWERPC__ 1
82d43113
GD
1381EOF
1382
1383 cat >> confdefs.h <<\EOF
1384#define TARGET_CARBON 1
a0b9e27f 1385EOF
b4085ce6
GD
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
b12915c1
VZ
1390 *-*-beos* )
1391 USE_BEOS=1
a0b9e27f 1392 cat >> confdefs.h <<\EOF
b12915c1 1393#define __BEOS__ 1
a0b9e27f 1394EOF
b12915c1
VZ
1395
1396 ;;
1397
10f2d63a 1398 *)
a0b9e27f 1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1400esac
1401
8284b0c5
MB
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
a0b9e27f 1410
10f2d63a
VZ
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
d8356fa3
VZ
1416 DEFAULT_wxUSE_NANOX=no
1417
10f2d63a
VZ
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1421 DEFAULT_wxUSE_SONAME=no
1e6feb95 1422 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1434 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1440 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1441
1442 DEFAULT_wxUSE_GUI=yes
1e6feb95 1443 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1444
3e44f09d 1445 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1449 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1450 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1451 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1452
eb4efbdc 1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1460 DEFAULT_wxUSE_FILE=no
1e6feb95 1461 DEFAULT_wxUSE_FFILE=no
a3a584a7 1462 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1463 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1467 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1473 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1476 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1477 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
10f2d63a
VZ
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1486 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
10f2d63a
VZ
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
29fd3c0c 1497 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1498 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1499 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1500 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1501 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
3bd8fb5f 1508
10f2d63a 1509 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1512 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1513 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1514 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1518 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1519 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1e6feb95 1524 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
24528b0c 1527 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1532 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1533
1534 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1535 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1536 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1541 DEFAULT_wxUSE_CHOICE=no
10f2d63a 1542 DEFAULT_wxUSE_COMBOBOX=no
da494b40 1543 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
1546 DEFAULT_wxUSE_IMAGLIST=no
1547 DEFAULT_wxUSE_LISTBOX=no
1548 DEFAULT_wxUSE_LISTCTRL=no
1549 DEFAULT_wxUSE_NOTEBOOK=no
1550 DEFAULT_wxUSE_RADIOBOX=no
1551 DEFAULT_wxUSE_RADIOBTN=no
1552 DEFAULT_wxUSE_SASH=no
1553 DEFAULT_wxUSE_SCROLLBAR=no
1554 DEFAULT_wxUSE_SLIDER=no
1555 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1556 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1557 DEFAULT_wxUSE_SPLITTER=no
1558 DEFAULT_wxUSE_STATBMP=no
1559 DEFAULT_wxUSE_STATBOX=no
1560 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1561 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1562 DEFAULT_wxUSE_STATUSBAR=yes
1563 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1564 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1565 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1566 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1567 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1568 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1569 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1570 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1571 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1572
1573 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1574 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1575 DEFAULT_wxUSE_WCSRTOMBS=no
1576
edae8572 1577 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1578 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_GIF=no
1580 DEFAULT_wxUSE_PCX=no
1581 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1582 DEFAULT_wxUSE_IFF=no
0046ff7c 1583 DEFAULT_wxUSE_XPM=no
658974ae 1584 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 1585 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a 1586else
1e6feb95
VZ
1587 DEFAULT_wxUSE_UNIVERSAL=no
1588
d8356fa3
VZ
1589 DEFAULT_wxUSE_NANOX=no
1590
10f2d63a
VZ
1591 DEFAULT_wxUSE_THREADS=yes
1592
1593 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1594 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_OPTIMISE=yes
1596 DEFAULT_wxUSE_PROFILE=no
1597 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1598 DEFAULT_wxUSE_NO_RTTI=no
1599 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1600 DEFAULT_wxUSE_PERMISSIVE=no
1601 DEFAULT_wxUSE_DEBUG_FLAG=no
1602 DEFAULT_wxUSE_DEBUG_INFO=no
1603 DEFAULT_wxUSE_DEBUG_GDB=no
1604 DEFAULT_wxUSE_MEM_TRACING=no
1605 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1606 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1607 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1608 DEFAULT_wxUSE_APPLE_IEEE=yes
1609
1610 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1611 DEFAULT_wxUSE_LOGWINDOW=yes
1612 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1613 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1614
1615 DEFAULT_wxUSE_GUI=yes
1616
831b3152 1617 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1618 DEFAULT_wxUSE_ZLIB=yes
1619 DEFAULT_wxUSE_LIBPNG=yes
1620 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1621 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1622 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1623 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1624
eb4efbdc 1625 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1626 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1627 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1628 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1629 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
1630 DEFAULT_wxUSE_TIMER=yes
1631 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1632 DEFAULT_wxUSE_FILE=yes
1e6feb95 1633 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1634 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1635 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1636 DEFAULT_wxUSE_WAVE=no
1637 DEFAULT_wxUSE_INTL=yes
1638 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1639 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_STREAMS=yes
1641 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1642 DEFAULT_wxUSE_OLE=yes
1643 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1645 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1648 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1649 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
10f2d63a
VZ
1655 DEFAULT_wxUSE_CLIPBOARD=yes
1656 DEFAULT_wxUSE_TOOLTIPS=yes
1657 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1658 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1659 DEFAULT_wxUSE_SPLINES=yes
1660
1661 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1664
2b5f62a0 1665 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1666 DEFAULT_wxUSE_CONSTRAINTS=yes
1667 DEFAULT_wxUSE_IPC=yes
1668 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1669 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1670 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1671 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1672 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1673 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1674 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1675 DEFAULT_wxUSE_PROTOCOL=yes
1676 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1680
1681 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1682 DEFAULT_wxUSE_CHOICEDLG=yes
1683 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1684 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1685 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1686 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1687 DEFAULT_wxUSE_FONTDLG=yes
1688 DEFAULT_wxUSE_MSGDLG=yes
1689 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1690 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1691 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1692 DEFAULT_wxUSE_STARTUP_TIPS=yes
1693 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1694 DEFAULT_wxUSE_WIZARDDLG=yes
1695
1e6feb95 1696 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_MINIFRAME=yes
1698 DEFAULT_wxUSE_HTML=yes
24528b0c 1699 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1700 DEFAULT_wxUSE_FS_INET=yes
1701 DEFAULT_wxUSE_FS_ZIP=yes
1702 DEFAULT_wxUSE_BUSYINFO=yes
1703 DEFAULT_wxUSE_ZIPSTREAM=yes
1704 DEFAULT_wxUSE_VALIDATORS=yes
1705
1706 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1707 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1708 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1709 DEFAULT_wxUSE_CALCTRL=yes
1710 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1711 DEFAULT_wxUSE_CHECKBOX=yes
1712 DEFAULT_wxUSE_CHECKLST=yes
1713 DEFAULT_wxUSE_CHOICE=yes
1714 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 1715 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
1716 DEFAULT_wxUSE_GAUGE=yes
1717 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
1718 DEFAULT_wxUSE_IMAGLIST=yes
1719 DEFAULT_wxUSE_LISTBOX=yes
1720 DEFAULT_wxUSE_LISTCTRL=yes
1721 DEFAULT_wxUSE_NOTEBOOK=yes
1722 DEFAULT_wxUSE_RADIOBOX=yes
1723 DEFAULT_wxUSE_RADIOBTN=yes
1724 DEFAULT_wxUSE_SASH=yes
1725 DEFAULT_wxUSE_SCROLLBAR=yes
1726 DEFAULT_wxUSE_SLIDER=yes
1727 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1728 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1729 DEFAULT_wxUSE_SPLITTER=yes
1730 DEFAULT_wxUSE_STATBMP=yes
1731 DEFAULT_wxUSE_STATBOX=yes
1732 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1733 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1734 DEFAULT_wxUSE_STATUSBAR=yes
1735 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1736 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1737 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1738 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1739 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1740 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1741 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1742 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1743 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1744
1745 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1746 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1747 DEFAULT_wxUSE_WCSRTOMBS=no
1748
edae8572 1749 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1750 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1751 DEFAULT_wxUSE_GIF=yes
1752 DEFAULT_wxUSE_PCX=yes
cc0e8480 1753 DEFAULT_wxUSE_IFF=no
10f2d63a 1754 DEFAULT_wxUSE_PNM=yes
0046ff7c 1755 DEFAULT_wxUSE_XPM=yes
658974ae 1756 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 1757 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a
VZ
1758fi
1759
8284b0c5
MB
1760
1761
10f2d63a 1762for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1763 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1764 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1765 has_toolkit_in_cache=1
1766 eval "DEFAULT_$LINE"
1767 eval "CACHE_$toolkit=1"
1768 fi
1769done
1770
8284b0c5
MB
1771
1772
5005acfe
VZ
1773 enablestring=
1774 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
3c907f20 1775echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1776 no_cache=0
1777 # Check whether --enable-gui or --disable-gui was given.
1778if test "${enable_gui+set}" = set; then
1779 enableval="$enable_gui"
a0b9e27f 1780
10f2d63a
VZ
1781 if test "$enableval" = yes; then
1782 ac_cv_use_gui='wxUSE_GUI=yes'
1783 else
1784 ac_cv_use_gui='wxUSE_GUI=no'
1785 fi
a0b9e27f 1786
10f2d63a 1787else
a0b9e27f 1788
10f2d63a
VZ
1789 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1790 if test "x$LINE" != x ; then
1791 eval "DEFAULT_$LINE"
1792 else
1793 no_cache=1
1794 fi
1795
1796 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1797
1798fi
10f2d63a
VZ
1799
1800
1801 eval "$ac_cv_use_gui"
1802 if test "$no_cache" != 1; then
1803 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1804 fi
1805
1806 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1807 echo "$ac_t""yes" 1>&6
10f2d63a 1808 else
a0b9e27f 1809 echo "$ac_t""no" 1>&6
10f2d63a 1810 fi
a0b9e27f 1811
10f2d63a 1812
b12915c1 1813if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1814
8284b0c5 1815
5005acfe
VZ
1816 enablestring=
1817 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
3c907f20 1818echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
a0b9e27f 1823
1e6feb95
VZ
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
a0b9e27f 1829
1e6feb95 1830else
a0b9e27f 1831
1e6feb95
VZ
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1840
1841fi
1e6feb95
VZ
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1850 echo "$ac_t""yes" 1>&6
1e6feb95 1851 else
a0b9e27f 1852 echo "$ac_t""no" 1>&6
1e6feb95 1853 fi
a0b9e27f 1854
10f2d63a
VZ
1855# Check whether --with-gtk or --without-gtk was given.
1856if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1859fi
10f2d63a
VZ
1860
1861# Check whether --with-motif or --without-motif was given.
1862if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1865fi
10f2d63a 1866
b4085ce6
GD
1867# Check whether --with-mac or --without-mac was given.
1868if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1871fi
b4085ce6 1872
ac0c4cc3
DE
1873# Check whether --with-cocoa or --without-cocoa was given.
1874if test "${with_cocoa+set}" = set; then
1875 withval="$with_cocoa"
1876 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1877fi
1878
10f2d63a
VZ
1879# Check whether --with-wine or --without-wine was given.
1880if test "${with_wine+set}" = set; then
1881 withval="$with_wine"
89e6bf6d 1882 wxUSE_WINE="$withval" CACHE_WINE=1
a0b9e27f 1883fi
10f2d63a 1884
77e13408
RL
1885# Check whether --with-msw or --without-msw was given.
1886if test "${with_msw+set}" = set; then
1887 withval="$with_msw"
b4efce5e 1888 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1889fi
10f2d63a 1890
e07802fc
VZ
1891# Check whether --with-pm or --without-pm was given.
1892if test "${with_pm+set}" = set; then
1893 withval="$with_pm"
1894 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1895fi
698dcdb6 1896
1e6feb95
VZ
1897# Check whether --with-mgl or --without-mgl was given.
1898if test "${with_mgl+set}" = set; then
1899 withval="$with_mgl"
6c657b52 1900 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1901fi
1e6feb95 1902
1725144d
RR
1903# Check whether --with-microwin or --without-microwin was given.
1904if test "${with_microwin+set}" = set; then
1905 withval="$with_microwin"
1906 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1907fi
1725144d 1908
f79bd02d
JS
1909# Check whether --with-x11 or --without-x11 was given.
1910if test "${with_x11+set}" = set; then
1911 withval="$with_x11"
3c011993 1912 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1913fi
10f2d63a 1914
a0b9e27f 1915
5005acfe
VZ
1916 enablestring=
1917 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
3c907f20 1918echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1919 no_cache=0
ba875e66
VZ
1920 # Check whether --enable-nanox or --disable-nanox was given.
1921if test "${enable_nanox+set}" = set; then
1922 enableval="$enable_nanox"
a0b9e27f 1923
d8356fa3 1924 if test "$enableval" = yes; then
ba875e66 1925 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1926 else
ba875e66 1927 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1928 fi
a0b9e27f 1929
d8356fa3 1930else
a0b9e27f 1931
d8356fa3
VZ
1932 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1933 if test "x$LINE" != x ; then
1934 eval "DEFAULT_$LINE"
1935 else
1936 no_cache=1
1937 fi
1938
ba875e66 1939 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1940
1941fi
d8356fa3
VZ
1942
1943
ba875e66 1944 eval "$ac_cv_use_nanox"
d8356fa3 1945 if test "$no_cache" != 1; then
ba875e66 1946 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1947 fi
1948
1949 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1950 echo "$ac_t""yes" 1>&6
d8356fa3 1951 else
a0b9e27f 1952 echo "$ac_t""no" 1>&6
d8356fa3 1953 fi
a0b9e27f 1954
8284b0c5 1955
d74f4b5a 1956
5005acfe
VZ
1957 enablestring=
1958 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
3c907f20 1959echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1960 no_cache=0
1961 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1962if test "${enable_gtk2+set}" = set; then
1963 enableval="$enable_gtk2"
a0b9e27f 1964
d74f4b5a
VZ
1965 if test "$enableval" = yes; then
1966 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1967 else
1968 ac_cv_use_gtk2='wxUSE_GTK2=no'
1969 fi
a0b9e27f 1970
10f2d63a 1971else
a0b9e27f 1972
d74f4b5a
VZ
1973 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1981
1982fi
52127426 1983
328a083c 1984
d74f4b5a
VZ
1985 eval "$ac_cv_use_gtk2"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1991 echo "$ac_t""yes" 1>&6
d74f4b5a 1992 else
a0b9e27f 1993 echo "$ac_t""no" 1>&6
d74f4b5a 1994 fi
a0b9e27f 1995
d74f4b5a 1996
5c6fa7d2 1997
a0b9e27f 1998 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3c907f20 1999echo "configure:2000: checking for --with-libpng" >&5
8284b0c5 2000 no_cache=0
a0b9e27f 2001 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2002if test "${with_libpng+set}" = set; then
2003 withval="$with_libpng"
a0b9e27f 2004
10f2d63a 2005 if test "$withval" = yes; then
b12915c1 2006 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2007 elif test "$withval" = no; then
b12915c1 2008 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2009 elif test "$withval" = sys; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2011 elif test "$withval" = builtin; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2013 else
a0b9e27f 2014 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2015 fi
a0b9e27f 2016
10f2d63a 2017else
a0b9e27f 2018
b12915c1 2019 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2020 if test "x$LINE" != x ; then
2021 eval "DEFAULT_$LINE"
2022 else
2023 no_cache=1
2024 fi
2025
b12915c1 2026 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2027
2028fi
10f2d63a
VZ
2029
2030
b12915c1 2031 eval "$ac_cv_use_libpng"
10f2d63a 2032 if test "$no_cache" != 1; then
b12915c1 2033 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2034 fi
2035
b12915c1 2036 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2037 echo "$ac_t""yes" 1>&6
422107f9 2038 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2039 echo "$ac_t""no" 1>&6
422107f9 2040 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2041 echo "$ac_t""system version" 1>&6
4f14bcd8 2042 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2043 echo "$ac_t""builtin version" 1>&6
422107f9 2044 else
a0b9e27f 2045 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2046 fi
a0b9e27f 2047
10f2d63a 2048
a0b9e27f 2049 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3c907f20 2050echo "configure:2051: checking for --with-libjpeg" >&5
10f2d63a 2051 no_cache=0
a0b9e27f 2052 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2053if test "${with_libjpeg+set}" = set; then
2054 withval="$with_libjpeg"
a0b9e27f 2055
10f2d63a 2056 if test "$withval" = yes; then
b12915c1 2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2058 elif test "$withval" = no; then
b12915c1 2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2060 elif test "$withval" = sys; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2062 elif test "$withval" = builtin; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2064 else
a0b9e27f 2065 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2066 fi
a0b9e27f 2067
10f2d63a 2068else
a0b9e27f 2069
b12915c1 2070 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
b12915c1 2077 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2078
2079fi
10f2d63a
VZ
2080
2081
b12915c1 2082 eval "$ac_cv_use_libjpeg"
10f2d63a 2083 if test "$no_cache" != 1; then
b12915c1 2084 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2085 fi
2086
b12915c1 2087 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2088 echo "$ac_t""yes" 1>&6
422107f9 2089 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2090 echo "$ac_t""no" 1>&6
422107f9 2091 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2092 echo "$ac_t""system version" 1>&6
4f14bcd8 2093 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2094 echo "$ac_t""builtin version" 1>&6
422107f9 2095 else
a0b9e27f 2096 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2097 fi
a0b9e27f 2098
10f2d63a 2099
a0b9e27f 2100 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3c907f20 2101echo "configure:2102: checking for --with-libtiff" >&5
10f2d63a 2102 no_cache=0
a0b9e27f 2103 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2104if test "${with_libtiff+set}" = set; then
2105 withval="$with_libtiff"
a0b9e27f 2106
10f2d63a 2107 if test "$withval" = yes; then
b12915c1 2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2109 elif test "$withval" = no; then
b12915c1 2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2111 elif test "$withval" = sys; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2113 elif test "$withval" = builtin; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2115 else
a0b9e27f 2116 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2117 fi
a0b9e27f 2118
10f2d63a 2119else
a0b9e27f 2120
b12915c1 2121 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2122 if test "x$LINE" != x ; then
2123 eval "DEFAULT_$LINE"
2124 else
2125 no_cache=1
2126 fi
2127
b12915c1 2128 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2129
2130fi
10f2d63a
VZ
2131
2132
b12915c1 2133 eval "$ac_cv_use_libtiff"
10f2d63a 2134 if test "$no_cache" != 1; then
b12915c1 2135 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2136 fi
2137
b12915c1 2138 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2139 echo "$ac_t""yes" 1>&6
0dcf9893 2140 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2141 echo "$ac_t""no" 1>&6
0dcf9893 2142 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2143 echo "$ac_t""system version" 1>&6
4f14bcd8 2144 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2145 echo "$ac_t""builtin version" 1>&6
0dcf9893 2146 else
a0b9e27f 2147 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2148 fi
a0b9e27f 2149
10f2d63a 2150
a0b9e27f 2151 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3c907f20 2152echo "configure:2153: checking for --with-opengl" >&5
10f2d63a 2153 no_cache=0
a0b9e27f 2154 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2155if test "${with_opengl+set}" = set; then
2156 withval="$with_opengl"
a0b9e27f 2157
10f2d63a 2158 if test "$withval" = yes; then
b12915c1 2159 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2160 else
b12915c1 2161 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2162 fi
a0b9e27f 2163
10f2d63a 2164else
a0b9e27f 2165
b12915c1 2166 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2167 if test "x$LINE" != x ; then
2168 eval "DEFAULT_$LINE"
2169 else
2170 no_cache=1
2171 fi
2172
b12915c1 2173 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2174
2175fi
10f2d63a
VZ
2176
2177
b12915c1 2178 eval "$ac_cv_use_opengl"
10f2d63a 2179 if test "$no_cache" != 1; then
b12915c1 2180 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2181 fi
2182
b12915c1 2183 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2184 echo "$ac_t""yes" 1>&6
10f2d63a 2185 else
a0b9e27f 2186 echo "$ac_t""no" 1>&6
10f2d63a 2187 fi
a0b9e27f 2188
10f2d63a 2189
b12915c1
VZ
2190fi
2191
5c6fa7d2 2192
a0b9e27f 2193 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3c907f20 2194echo "configure:2195: checking for --with-dmalloc" >&5
8284b0c5 2195 no_cache=0
a0b9e27f 2196 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2197if test "${with_dmalloc+set}" = set; then
2198 withval="$with_dmalloc"
a0b9e27f 2199
c7a2bf27 2200 if test "$withval" = yes; then
b12915c1 2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2202 else
b12915c1 2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2204 fi
a0b9e27f 2205
c7a2bf27 2206else
a0b9e27f 2207
b12915c1 2208 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
b12915c1 2215 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2216
2217fi
c7a2bf27
RR
2218
2219
b12915c1 2220 eval "$ac_cv_use_dmalloc"
c7a2bf27 2221 if test "$no_cache" != 1; then
b12915c1 2222 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2223 fi
2224
b12915c1 2225 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2226 echo "$ac_t""yes" 1>&6
c7a2bf27 2227 else
a0b9e27f 2228 echo "$ac_t""no" 1>&6
c7a2bf27 2229 fi
a0b9e27f 2230
c7a2bf27 2231
a0b9e27f 2232 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
3c907f20 2233echo "configure:2234: checking for --with-regex" >&5
3e44f09d 2234 no_cache=0
a0b9e27f 2235 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2236if test "${with_regex+set}" = set; then
2237 withval="$with_regex"
a0b9e27f 2238
3e44f09d
VZ
2239 if test "$withval" = yes; then
2240 ac_cv_use_regex='wxUSE_REGEX=yes'
2241 elif test "$withval" = no; then
2242 ac_cv_use_regex='wxUSE_REGEX=no'
2243 elif test "$withval" = sys; then
2244 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2245 elif test "$withval" = builtin; then
2246 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2247 else
a0b9e27f 2248 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2249 fi
a0b9e27f 2250
3e44f09d 2251else
a0b9e27f 2252
3e44f09d
VZ
2253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2254 if test "x$LINE" != x ; then
2255 eval "DEFAULT_$LINE"
2256 else
2257 no_cache=1
2258 fi
2259
2260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2261
2262fi
3e44f09d
VZ
2263
2264
2265 eval "$ac_cv_use_regex"
2266 if test "$no_cache" != 1; then
2267 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2268 fi
2269
2270 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2271 echo "$ac_t""yes" 1>&6
3e44f09d 2272 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2273 echo "$ac_t""no" 1>&6
3e44f09d 2274 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2275 echo "$ac_t""system version" 1>&6
4f14bcd8 2276 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2277 echo "$ac_t""builtin version" 1>&6
3e44f09d 2278 else
a0b9e27f 2279 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2280 fi
a0b9e27f 2281
3e44f09d 2282
a0b9e27f 2283 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3c907f20 2284echo "configure:2285: checking for --with-zlib" >&5
10f2d63a 2285 no_cache=0
a0b9e27f 2286 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2287if test "${with_zlib+set}" = set; then
2288 withval="$with_zlib"
a0b9e27f 2289
10f2d63a 2290 if test "$withval" = yes; then
b12915c1 2291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2292 elif test "$withval" = no; then
b12915c1 2293 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2294 elif test "$withval" = sys; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2296 elif test "$withval" = builtin; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2298 else
a0b9e27f 2299 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2300 fi
a0b9e27f 2301
10f2d63a 2302else
a0b9e27f 2303
b12915c1 2304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
b12915c1 2311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2312
2313fi
10f2d63a
VZ
2314
2315
b12915c1 2316 eval "$ac_cv_use_zlib"
10f2d63a 2317 if test "$no_cache" != 1; then
b12915c1 2318 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2319 fi
2320
b12915c1 2321 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2322 echo "$ac_t""yes" 1>&6
422107f9 2323 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2324 echo "$ac_t""no" 1>&6
422107f9 2325 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2326 echo "$ac_t""system version" 1>&6
4f14bcd8 2327 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2328 echo "$ac_t""builtin version" 1>&6
422107f9 2329 else
a0b9e27f 2330 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2331 fi
a0b9e27f 2332
10f2d63a 2333
a0b9e27f 2334 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3c907f20 2335echo "configure:2336: checking for --with-odbc" >&5
10f2d63a 2336 no_cache=0
a0b9e27f 2337 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2338if test "${with_odbc+set}" = set; then
2339 withval="$with_odbc"
a0b9e27f 2340
10f2d63a
VZ
2341 if test "$withval" = yes; then
2342 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2343 elif test "$withval" = no; then
10f2d63a 2344 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2345 elif test "$withval" = sys; then
2346 ac_cv_use_odbc='wxUSE_ODBC=sys'
2347 elif test "$withval" = builtin; then
2348 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2349 else
2350 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2351 fi
a0b9e27f 2352
10f2d63a 2353else
a0b9e27f 2354
10f2d63a
VZ
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2363
2364fi
10f2d63a
VZ
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2373 echo "$ac_t""yes" 1>&6
8647bec6 2374 elif test "$wxUSE_ODBC" = no; then
a0b9e27f 2375 echo "$ac_t""no" 1>&6
8647bec6
RG
2376 elif test "$wxUSE_ODBC" = sys; then
2377 echo "$ac_t""system version" 1>&6
2378 elif test "$wxUSE_ODBC" = builtin; then
2379 echo "$ac_t""builtin version" 1>&6
2380 else
2381 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2382 fi
a0b9e27f 2383
52127426 2384
8284b0c5
MB
2385
2386
5005acfe
VZ
2387 enablestring=
2388 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
3c907f20 2389echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2390 no_cache=0
2391 # Check whether --enable-shared or --disable-shared was given.
2392if test "${enable_shared+set}" = set; then
2393 enableval="$enable_shared"
a0b9e27f 2394
10f2d63a
VZ
2395 if test "$enableval" = yes; then
2396 ac_cv_use_shared='wxUSE_SHARED=yes'
2397 else
2398 ac_cv_use_shared='wxUSE_SHARED=no'
2399 fi
a0b9e27f 2400
10f2d63a 2401else
a0b9e27f 2402
10f2d63a
VZ
2403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2411
2412fi
10f2d63a
VZ
2413
2414
2415 eval "$ac_cv_use_shared"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2421 echo "$ac_t""yes" 1>&6
10f2d63a 2422 else
a0b9e27f 2423 echo "$ac_t""no" 1>&6
10f2d63a 2424 fi
a0b9e27f 2425
10f2d63a 2426
5005acfe
VZ
2427 enablestring=
2428 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
3c907f20 2429echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2430 no_cache=0
3a922bb4
RL
2431 # Check whether --enable-soname or --disable-soname was given.
2432if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
a0b9e27f 2434
00cf1208 2435 if test "$enableval" = yes; then
3a922bb4 2436 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2437 else
3a922bb4 2438 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2439 fi
a0b9e27f 2440
00cf1208 2441else
a0b9e27f 2442
3a922bb4 2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
3a922bb4 2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2451
2452fi
00cf1208
RR
2453
2454
3a922bb4 2455 eval "$ac_cv_use_soname"
00cf1208 2456 if test "$no_cache" != 1; then
3a922bb4 2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2458 fi
2459
3a922bb4 2460 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2461 echo "$ac_t""yes" 1>&6
00cf1208 2462 else
a0b9e27f 2463 echo "$ac_t""no" 1>&6
00cf1208 2464 fi
a0b9e27f 2465
00cf1208 2466
5005acfe
VZ
2467 enablestring=
2468 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
3c907f20 2469echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2470 no_cache=0
2471 # Check whether --enable-optimise or --disable-optimise was given.
2472if test "${enable_optimise+set}" = set; then
2473 enableval="$enable_optimise"
a0b9e27f 2474
10f2d63a
VZ
2475 if test "$enableval" = yes; then
2476 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2477 else
2478 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2479 fi
a0b9e27f 2480
10f2d63a 2481else
a0b9e27f 2482
10f2d63a
VZ
2483 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2491
2492fi
10f2d63a
VZ
2493
2494
2495 eval "$ac_cv_use_optimise"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2501 echo "$ac_t""yes" 1>&6
10f2d63a 2502 else
a0b9e27f 2503 echo "$ac_t""no" 1>&6
10f2d63a 2504 fi
a0b9e27f 2505
10f2d63a 2506
5005acfe
VZ
2507 enablestring=
2508 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
3c907f20 2509echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2510 no_cache=0
2511 # Check whether --enable-debug or --disable-debug was given.
2512if test "${enable_debug+set}" = set; then
2513 enableval="$enable_debug"
a0b9e27f 2514
10f2d63a
VZ
2515 if test "$enableval" = yes; then
2516 ac_cv_use_debug='wxUSE_DEBUG=yes'
2517 else
2518 ac_cv_use_debug='wxUSE_DEBUG=no'
2519 fi
a0b9e27f 2520
10f2d63a 2521else
a0b9e27f 2522
10f2d63a
VZ
2523 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2531
2532fi
10f2d63a
VZ
2533
2534
2535 eval "$ac_cv_use_debug"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2541 echo "$ac_t""yes" 1>&6
10f2d63a 2542 else
a0b9e27f 2543 echo "$ac_t""no" 1>&6
10f2d63a 2544 fi
a0b9e27f 2545
52127426 2546
8284b0c5 2547
5005acfe
VZ
2548 enablestring=
2549 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
3c907f20 2550echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2551 no_cache=0
2552 # Check whether --enable-precomp or --disable-precomp was given.
2553if test "${enable_precomp+set}" = set; then
2554 enableval="$enable_precomp"
a0b9e27f 2555
683dccda
GD
2556 if test "$enableval" = yes; then
2557 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2558 else
2559 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2560 fi
a0b9e27f 2561
683dccda 2562else
a0b9e27f 2563
683dccda
GD
2564 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2572
2573fi
683dccda
GD
2574
2575
2576 eval "$ac_cv_use_precomp"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2582 echo "$ac_t""yes" 1>&6
683dccda 2583 else
a0b9e27f 2584 echo "$ac_t""no" 1>&6
683dccda 2585 fi
a0b9e27f 2586
683dccda 2587
10f2d63a
VZ
2588if test "$wxUSE_DEBUG" = "yes"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=yes
2590 DEFAULT_wxUSE_DEBUG_INFO=yes
2591elif test "$wxUSE_DEBUG" = "no"; then
2592 DEFAULT_wxUSE_DEBUG_FLAG=no
2593 DEFAULT_wxUSE_DEBUG_INFO=no
2594fi
2595
8284b0c5 2596
5005acfe
VZ
2597 enablestring=
2598 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
3c907f20 2599echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2600 no_cache=0
2601 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2602if test "${enable_debug_flag+set}" = set; then
2603 enableval="$enable_debug_flag"
a0b9e27f 2604
10f2d63a
VZ
2605 if test "$enableval" = yes; then
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2607 else
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2609 fi
a0b9e27f 2610
10f2d63a 2611else
a0b9e27f 2612
10f2d63a
VZ
2613 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2621
2622fi
10f2d63a
VZ
2623
2624
2625 eval "$ac_cv_use_debug_flag"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2631 echo "$ac_t""yes" 1>&6
10f2d63a 2632 else
a0b9e27f 2633 echo "$ac_t""no" 1>&6
10f2d63a 2634 fi
a0b9e27f 2635
10f2d63a 2636
5005acfe
VZ
2637 enablestring=
2638 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
3c907f20 2639echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2640 no_cache=0
2641 # Check whether --enable-debug_info or --disable-debug_info was given.
2642if test "${enable_debug_info+set}" = set; then
2643 enableval="$enable_debug_info"
a0b9e27f 2644
10f2d63a
VZ
2645 if test "$enableval" = yes; then
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2647 else
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2649 fi
a0b9e27f 2650
10f2d63a 2651else
a0b9e27f 2652
10f2d63a
VZ
2653 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2661
2662fi
10f2d63a
VZ
2663
2664
2665 eval "$ac_cv_use_debug_info"
2666 if test "$no_cache" != 1; then
2667 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2668 fi
2669
2670 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2671 echo "$ac_t""yes" 1>&6
10f2d63a 2672 else
a0b9e27f 2673 echo "$ac_t""no" 1>&6
10f2d63a 2674 fi
a0b9e27f 2675
10f2d63a 2676
5005acfe
VZ
2677 enablestring=
2678 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
3c907f20 2679echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2680 no_cache=0
2681 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2682if test "${enable_debug_gdb+set}" = set; then
2683 enableval="$enable_debug_gdb"
a0b9e27f 2684
10f2d63a
VZ
2685 if test "$enableval" = yes; then
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2687 else
2688 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2689 fi
a0b9e27f 2690
10f2d63a 2691else
a0b9e27f 2692
10f2d63a
VZ
2693 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2701
2702fi
10f2d63a
VZ
2703
2704
2705 eval "$ac_cv_use_debug_gdb"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2711 echo "$ac_t""yes" 1>&6
10f2d63a 2712 else
a0b9e27f 2713 echo "$ac_t""no" 1>&6
10f2d63a 2714 fi
a0b9e27f 2715
10f2d63a 2716
5005acfe
VZ
2717 enablestring=
2718 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
3c907f20 2719echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2720 no_cache=0
2721 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2722if test "${enable_debug_cntxt+set}" = set; then
2723 enableval="$enable_debug_cntxt"
a0b9e27f 2724
10f2d63a
VZ
2725 if test "$enableval" = yes; then
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2727 else
2728 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2729 fi
a0b9e27f 2730
10f2d63a 2731else
a0b9e27f 2732
10f2d63a
VZ
2733 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2741
2742fi
10f2d63a
VZ
2743
2744
2745 eval "$ac_cv_use_debug_cntxt"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2751 echo "$ac_t""yes" 1>&6
10f2d63a 2752 else
a0b9e27f 2753 echo "$ac_t""no" 1>&6
10f2d63a 2754 fi
a0b9e27f 2755
10f2d63a 2756
5005acfe
VZ
2757 enablestring=
2758 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
3c907f20 2759echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2760 no_cache=0
2761 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2762if test "${enable_mem_tracing+set}" = set; then
2763 enableval="$enable_mem_tracing"
a0b9e27f 2764
10f2d63a
VZ
2765 if test "$enableval" = yes; then
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2767 else
2768 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2769 fi
a0b9e27f 2770
10f2d63a 2771else
a0b9e27f 2772
10f2d63a
VZ
2773 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2781
2782fi
10f2d63a
VZ
2783
2784
2785 eval "$ac_cv_use_mem_tracing"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2791 echo "$ac_t""yes" 1>&6
10f2d63a 2792 else
a0b9e27f 2793 echo "$ac_t""no" 1>&6
10f2d63a 2794 fi
a0b9e27f 2795
10f2d63a 2796
5005acfe
VZ
2797 enablestring=
2798 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
3c907f20 2799echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2800 no_cache=0
2801 # Check whether --enable-profile or --disable-profile was given.
2802if test "${enable_profile+set}" = set; then
2803 enableval="$enable_profile"
a0b9e27f 2804
10f2d63a
VZ
2805 if test "$enableval" = yes; then
2806 ac_cv_use_profile='wxUSE_PROFILE=yes'
2807 else
2808 ac_cv_use_profile='wxUSE_PROFILE=no'
2809 fi
a0b9e27f 2810
10f2d63a 2811else
a0b9e27f 2812
10f2d63a
VZ
2813 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2821
2822fi
10f2d63a
VZ
2823
2824
2825 eval "$ac_cv_use_profile"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2831 echo "$ac_t""yes" 1>&6
10f2d63a 2832 else
a0b9e27f 2833 echo "$ac_t""no" 1>&6
10f2d63a 2834 fi
a0b9e27f 2835
10f2d63a 2836
5005acfe
VZ
2837 enablestring=
2838 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
3c907f20 2839echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2840 no_cache=0
2841 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2842if test "${enable_no_rtti+set}" = set; then
2843 enableval="$enable_no_rtti"
a0b9e27f 2844
10f2d63a
VZ
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2847 else
2848 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2849 fi
a0b9e27f 2850
10f2d63a 2851else
a0b9e27f 2852
10f2d63a
VZ
2853 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2861
2862fi
10f2d63a
VZ
2863
2864
2865 eval "$ac_cv_use_no_rtti"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2871 echo "$ac_t""yes" 1>&6
10f2d63a 2872 else
a0b9e27f 2873 echo "$ac_t""no" 1>&6
10f2d63a 2874 fi
a0b9e27f 2875
10f2d63a 2876
5005acfe
VZ
2877 enablestring=
2878 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
3c907f20 2879echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2880 no_cache=0
2881 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2882if test "${enable_no_exceptions+set}" = set; then
2883 enableval="$enable_no_exceptions"
a0b9e27f 2884
10f2d63a
VZ
2885 if test "$enableval" = yes; then
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2887 else
2888 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2889 fi
a0b9e27f 2890
10f2d63a 2891else
a0b9e27f 2892
10f2d63a
VZ
2893 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2901
2902fi
10f2d63a
VZ
2903
2904
2905 eval "$ac_cv_use_no_exceptions"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2911 echo "$ac_t""yes" 1>&6
10f2d63a 2912 else
a0b9e27f 2913 echo "$ac_t""no" 1>&6
10f2d63a 2914 fi
a0b9e27f 2915
10f2d63a 2916
5005acfe
VZ
2917 enablestring=
2918 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
3c907f20 2919echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2920 no_cache=0
2921 # Check whether --enable-permissive or --disable-permissive was given.
2922if test "${enable_permissive+set}" = set; then
2923 enableval="$enable_permissive"
a0b9e27f 2924
10f2d63a
VZ
2925 if test "$enableval" = yes; then
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2927 else
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2929 fi
a0b9e27f 2930
10f2d63a 2931else
a0b9e27f 2932
10f2d63a
VZ
2933 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2941
2942fi
10f2d63a
VZ
2943
2944
2945 eval "$ac_cv_use_permissive"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2951 echo "$ac_t""yes" 1>&6
10f2d63a 2952 else
a0b9e27f 2953 echo "$ac_t""no" 1>&6
10f2d63a 2954 fi
a0b9e27f 2955
10f2d63a 2956
5005acfe
VZ
2957 enablestring=
2958 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
3c907f20 2959echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2960 no_cache=0
2961 # Check whether --enable-no_deps or --disable-no_deps was given.
2962if test "${enable_no_deps+set}" = set; then
2963 enableval="$enable_no_deps"
a0b9e27f 2964
10f2d63a
VZ
2965 if test "$enableval" = yes; then
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2967 else
2968 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2969 fi
a0b9e27f 2970
10f2d63a 2971else
a0b9e27f 2972
10f2d63a
VZ
2973 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2981
2982fi
10f2d63a
VZ
2983
2984
2985 eval "$ac_cv_use_no_deps"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2991 echo "$ac_t""yes" 1>&6
10f2d63a 2992 else
a0b9e27f 2993 echo "$ac_t""no" 1>&6
10f2d63a 2994 fi
a0b9e27f 2995
52127426 2996
8284b0c5 2997
5005acfe
VZ
2998 enablestring=
2999 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3c907f20 3000echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
3001 no_cache=0
3002 # Check whether --enable-compat20 or --disable-compat20 was given.
3003if test "${enable_compat20+set}" = set; then
3004 enableval="$enable_compat20"
a0b9e27f 3005
54276ccf
VZ
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3008 else
3009 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3010 fi
a0b9e27f 3011
54276ccf 3012else
a0b9e27f 3013
54276ccf
VZ
3014 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
3022
3023fi
54276ccf
VZ
3024
3025
3026 eval "$ac_cv_use_compat20"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3032 echo "$ac_t""yes" 1>&6
54276ccf 3033 else
a0b9e27f 3034 echo "$ac_t""no" 1>&6
54276ccf 3035 fi
a0b9e27f 3036
54276ccf 3037
65d8ef1e 3038 enablestring=
5005acfe 3039 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3c907f20 3040echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3041 no_cache=0
3042 # Check whether --enable-compat22 or --disable-compat22 was given.
3043if test "${enable_compat22+set}" = set; then
3044 enableval="$enable_compat22"
a0b9e27f 3045
54276ccf
VZ
3046 if test "$enableval" = yes; then
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3048 else
3049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3050 fi
a0b9e27f 3051
54276ccf 3052else
a0b9e27f 3053
54276ccf
VZ
3054 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3062
3063fi
54276ccf
VZ
3064
3065
3066 eval "$ac_cv_use_compat22"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3072 echo "$ac_t""yes" 1>&6
54276ccf 3073 else
a0b9e27f 3074 echo "$ac_t""no" 1>&6
54276ccf 3075 fi
a0b9e27f 3076
54276ccf 3077
65d8ef1e
VS
3078 enablestring=disable
3079 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3c907f20 3080echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5
65d8ef1e
VS
3081 no_cache=0
3082 # Check whether --enable-compat24 or --disable-compat24 was given.
3083if test "${enable_compat24+set}" = set; then
3084 enableval="$enable_compat24"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3088 else
3089 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3102
3103fi
3104
3105
3106 eval "$ac_cv_use_compat24"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3bd8fb5f
RD
3118# Check whether --enable-rpath or --disable-rpath was given.
3119if test "${enable_rpath+set}" = set; then
3120 enableval="$enable_rpath"
3121 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3122fi
3123
3bd8fb5f
RD
3124
3125if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3126 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3127fi
3128
8284b0c5
MB
3129
3130
3131
5005acfe
VZ
3132 enablestring=
3133 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3c907f20 3134echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3135 no_cache=0
3136 # Check whether --enable-intl or --disable-intl was given.
3137if test "${enable_intl+set}" = set; then
3138 enableval="$enable_intl"
a0b9e27f 3139
10f2d63a
VZ
3140 if test "$enableval" = yes; then
3141 ac_cv_use_intl='wxUSE_INTL=yes'
3142 else
3143 ac_cv_use_intl='wxUSE_INTL=no'
3144 fi
a0b9e27f 3145
10f2d63a 3146else
a0b9e27f 3147
10f2d63a
VZ
3148 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3156
3157fi
10f2d63a
VZ
3158
3159
3160 eval "$ac_cv_use_intl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3166 echo "$ac_t""yes" 1>&6
10f2d63a 3167 else
a0b9e27f 3168 echo "$ac_t""no" 1>&6
10f2d63a 3169 fi
a0b9e27f 3170
10f2d63a 3171
5005acfe
VZ
3172 enablestring=
3173 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3c907f20 3174echo "configure:3175: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3175 no_cache=0
3176 # Check whether --enable-config or --disable-config was given.
3177if test "${enable_config+set}" = set; then
3178 enableval="$enable_config"
a0b9e27f 3179
10f2d63a
VZ
3180 if test "$enableval" = yes; then
3181 ac_cv_use_config='wxUSE_CONFIG=yes'
3182 else
3183 ac_cv_use_config='wxUSE_CONFIG=no'
3184 fi
a0b9e27f 3185
10f2d63a 3186else
a0b9e27f 3187
10f2d63a
VZ
3188 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3196
3197fi
10f2d63a
VZ
3198
3199
3200 eval "$ac_cv_use_config"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3206 echo "$ac_t""yes" 1>&6
10f2d63a 3207 else
a0b9e27f 3208 echo "$ac_t""no" 1>&6
10f2d63a 3209 fi
a0b9e27f 3210
52127426 3211
8284b0c5 3212
5005acfe
VZ
3213 enablestring=
3214 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3c907f20 3215echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3216 no_cache=0
3217 # Check whether --enable-protocols or --disable-protocols was given.
3218if test "${enable_protocols+set}" = set; then
3219 enableval="$enable_protocols"
a0b9e27f 3220
a1622950
VZ
3221 if test "$enableval" = yes; then
3222 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3223 else
3224 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3225 fi
a0b9e27f 3226
a1622950 3227else
a0b9e27f 3228
a1622950
VZ
3229 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3237
3238fi
a1622950
VZ
3239
3240
3241 eval "$ac_cv_use_protocols"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3247 echo "$ac_t""yes" 1>&6
a1622950 3248 else
a0b9e27f 3249 echo "$ac_t""no" 1>&6
a1622950 3250 fi
a0b9e27f 3251
a1622950 3252
5005acfe
VZ
3253 enablestring=
3254 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3c907f20 3255echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3256 no_cache=0
3257 # Check whether --enable-ftp or --disable-ftp was given.
3258if test "${enable_ftp+set}" = set; then
3259 enableval="$enable_ftp"
a0b9e27f 3260
a1622950
VZ
3261 if test "$enableval" = yes; then
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3263 else
3264 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3265 fi
a0b9e27f 3266
a1622950 3267else
a0b9e27f 3268
a1622950
VZ
3269 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3277
3278fi
a1622950
VZ
3279
3280
3281 eval "$ac_cv_use_ftp"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3287 echo "$ac_t""yes" 1>&6
a1622950 3288 else
a0b9e27f 3289 echo "$ac_t""no" 1>&6
a1622950 3290 fi
a0b9e27f 3291
a1622950 3292
5005acfe
VZ
3293 enablestring=
3294 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3c907f20 3295echo "configure:3296: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3296 no_cache=0
3297 # Check whether --enable-http or --disable-http was given.
3298if test "${enable_http+set}" = set; then
3299 enableval="$enable_http"
a0b9e27f 3300
a1622950
VZ
3301 if test "$enableval" = yes; then
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3303 else
3304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3305 fi
a0b9e27f 3306
a1622950 3307else
a0b9e27f 3308
a1622950
VZ
3309 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3317
3318fi
a1622950
VZ
3319
3320
3321 eval "$ac_cv_use_http"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3327 echo "$ac_t""yes" 1>&6
a1622950 3328 else
a0b9e27f 3329 echo "$ac_t""no" 1>&6
a1622950 3330 fi
a0b9e27f 3331
a1622950 3332
5005acfe
VZ
3333 enablestring=
3334 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3c907f20 3335echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3336 no_cache=0
3337 # Check whether --enable-fileproto or --disable-fileproto was given.
3338if test "${enable_fileproto+set}" = set; then
3339 enableval="$enable_fileproto"
a0b9e27f 3340
a1622950
VZ
3341 if test "$enableval" = yes; then
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3343 else
3344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3345 fi
a0b9e27f 3346
a1622950 3347else
a0b9e27f 3348
a1622950
VZ
3349 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3357
3358fi
a1622950
VZ
3359
3360
3361 eval "$ac_cv_use_fileproto"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3367 echo "$ac_t""yes" 1>&6
a1622950 3368 else
a0b9e27f 3369 echo "$ac_t""no" 1>&6
a1622950 3370 fi
a0b9e27f 3371
a1622950 3372
5005acfe
VZ
3373 enablestring=
3374 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3c907f20 3375echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3376 no_cache=0
3377 # Check whether --enable-sockets or --disable-sockets was given.
3378if test "${enable_sockets+set}" = set; then
3379 enableval="$enable_sockets"
a0b9e27f 3380
10f2d63a
VZ
3381 if test "$enableval" = yes; then
3382 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3383 else
3384 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3385 fi
a0b9e27f 3386
10f2d63a 3387else
a0b9e27f 3388
10f2d63a
VZ
3389 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3397
3398fi
10f2d63a
VZ
3399
3400
3401 eval "$ac_cv_use_sockets"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3407 echo "$ac_t""yes" 1>&6
10f2d63a 3408 else
a0b9e27f 3409 echo "$ac_t""no" 1>&6
10f2d63a 3410 fi
a0b9e27f 3411
8284b0c5 3412
5005acfe
VZ
3413 enablestring=
3414 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3c907f20 3415echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3416 no_cache=0
3417 # Check whether --enable-ole or --disable-ole was given.
3418if test "${enable_ole+set}" = set; then
3419 enableval="$enable_ole"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_ole='wxUSE_OLE=yes'
3423 else
3424 ac_cv_use_ole='wxUSE_OLE=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_ole"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_OLE" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
5005acfe
VZ
3453 enablestring=
3454 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3c907f20 3455echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3456 no_cache=0
3457 # Check whether --enable-dataobj or --disable-dataobj was given.
3458if test "${enable_dataobj+set}" = set; then
3459 enableval="$enable_dataobj"
3460
3461 if test "$enableval" = yes; then
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3463 else
3464 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3465 fi
3466
3467else
3468
3469 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3477
3478fi
3479
3480
3481 eval "$ac_cv_use_dataobj"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_DATAOBJ" = yes; then
3487 echo "$ac_t""yes" 1>&6
3488 else
3489 echo "$ac_t""no" 1>&6
3490 fi
3491
3492
52127426 3493
5005acfe
VZ
3494 enablestring=
3495 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3c907f20 3496echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3497 no_cache=0
eb4efbdc
VZ
3498 # Check whether --enable-ipc or --disable-ipc was given.
3499if test "${enable_ipc+set}" = set; then
3500 enableval="$enable_ipc"
a0b9e27f 3501
10f2d63a 3502 if test "$enableval" = yes; then
eb4efbdc 3503 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3504 else
eb4efbdc 3505 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3506 fi
a0b9e27f 3507
10f2d63a 3508else
a0b9e27f 3509
eb4efbdc 3510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
eb4efbdc 3517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3518
3519fi
10f2d63a
VZ
3520
3521
eb4efbdc 3522 eval "$ac_cv_use_ipc"
10f2d63a 3523 if test "$no_cache" != 1; then
eb4efbdc 3524 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3525 fi
3526
eb4efbdc 3527 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3528 echo "$ac_t""yes" 1>&6
10f2d63a 3529 else
a0b9e27f 3530 echo "$ac_t""no" 1>&6
10f2d63a 3531 fi
a0b9e27f 3532
52127426 3533
8284b0c5 3534
5005acfe
VZ
3535 enablestring=
3536 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3c907f20 3537echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3538 no_cache=0
3539 # Check whether --enable-cmdline or --disable-cmdline was given.
3540if test "${enable_cmdline+set}" = set; then
3541 enableval="$enable_cmdline"
a0b9e27f 3542
1e6feb95
VZ
3543 if test "$enableval" = yes; then
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3545 else
3546 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3547 fi
a0b9e27f 3548
1e6feb95 3549else
a0b9e27f 3550
1e6feb95
VZ
3551 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3559
3560fi
1e6feb95
VZ
3561
3562
3563 eval "$ac_cv_use_cmdline"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3569 echo "$ac_t""yes" 1>&6
1e6feb95 3570 else
a0b9e27f 3571 echo "$ac_t""no" 1>&6
1e6feb95 3572 fi
a0b9e27f 3573
1e6feb95 3574
5005acfe
VZ
3575 enablestring=
3576 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3c907f20 3577echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3578 no_cache=0
3579 # Check whether --enable-datetime or --disable-datetime was given.
3580if test "${enable_datetime+set}" = set; then
3581 enableval="$enable_datetime"
a0b9e27f 3582
1e6feb95
VZ
3583 if test "$enableval" = yes; then
3584 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3585 else
3586 ac_cv_use_datetime='wxUSE_DATETIME=no'
3587 fi
a0b9e27f 3588
1e6feb95 3589else
a0b9e27f 3590
1e6feb95
VZ
3591 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3599
3600fi
1e6feb95
VZ
3601
3602
3603 eval "$ac_cv_use_datetime"
3604 if test "$no_cache" != 1; then
3605 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3606 fi
3607
3608 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3609 echo "$ac_t""yes" 1>&6
1e6feb95 3610 else
a0b9e27f 3611 echo "$ac_t""no" 1>&6
1e6feb95 3612 fi
a0b9e27f 3613
1e6feb95 3614
5005acfe
VZ
3615 enablestring=
3616 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3c907f20 3617echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3618 no_cache=0
3619 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3620if test "${enable_stopwatch+set}" = set; then
3621 enableval="$enable_stopwatch"
a0b9e27f 3622
1e6feb95
VZ
3623 if test "$enableval" = yes; then
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3625 else
3626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3627 fi
a0b9e27f 3628
1e6feb95 3629else
a0b9e27f 3630
1e6feb95
VZ
3631 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3639
3640fi
1e6feb95
VZ
3641
3642
3643 eval "$ac_cv_use_stopwatch"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3649 echo "$ac_t""yes" 1>&6
1e6feb95 3650 else
a0b9e27f 3651 echo "$ac_t""no" 1>&6
1e6feb95 3652 fi
a0b9e27f 3653
1e6feb95 3654
5005acfe
VZ
3655 enablestring=
3656 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3c907f20 3657echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3658 no_cache=0
eb4efbdc
VZ
3659 # Check whether --enable-dialupman or --disable-dialupman was given.
3660if test "${enable_dialupman+set}" = set; then
3661 enableval="$enable_dialupman"
a0b9e27f 3662
10f2d63a 3663 if test "$enableval" = yes; then
eb4efbdc 3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3665 else
eb4efbdc 3666 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3667 fi
a0b9e27f 3668
10f2d63a 3669else
a0b9e27f 3670
eb4efbdc 3671 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3672 if test "x$LINE" != x ; then
3673 eval "DEFAULT_$LINE"
3674 else
3675 no_cache=1
3676 fi
3677
eb4efbdc 3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3679
3680fi
10f2d63a
VZ
3681
3682
eb4efbdc 3683 eval "$ac_cv_use_dialupman"
10f2d63a 3684 if test "$no_cache" != 1; then
eb4efbdc 3685 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3686 fi
3687
eb4efbdc 3688 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3689 echo "$ac_t""yes" 1>&6
10f2d63a 3690 else
a0b9e27f 3691 echo "$ac_t""no" 1>&6
10f2d63a 3692 fi
a0b9e27f 3693
10f2d63a 3694
5005acfe
VZ
3695 enablestring=
3696 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3c907f20 3697echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3698 no_cache=0
3699 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3700if test "${enable_apple_ieee+set}" = set; then
3701 enableval="$enable_apple_ieee"
a0b9e27f 3702
10f2d63a
VZ
3703 if test "$enableval" = yes; then
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3705 else
3706 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3707 fi
a0b9e27f 3708
10f2d63a 3709else
a0b9e27f 3710
10f2d63a
VZ
3711 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3712 if test "x$LINE" != x ; then
3713 eval "DEFAULT_$LINE"
3714 else
3715 no_cache=1
3716 fi
3717
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3719
3720fi
10f2d63a
VZ
3721
3722
3723 eval "$ac_cv_use_apple_ieee"
3724 if test "$no_cache" != 1; then
3725 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3726 fi
3727
3728 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3729 echo "$ac_t""yes" 1>&6
10f2d63a 3730 else
a0b9e27f 3731 echo "$ac_t""no" 1>&6
10f2d63a 3732 fi
a0b9e27f 3733
10f2d63a 3734
5005acfe
VZ
3735 enablestring=
3736 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3c907f20 3737echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3738 no_cache=0
1e6feb95
VZ
3739 # Check whether --enable-timer or --disable-timer was given.
3740if test "${enable_timer+set}" = set; then
3741 enableval="$enable_timer"
a0b9e27f 3742
10f2d63a 3743 if test "$enableval" = yes; then
1e6feb95 3744 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3745 else
1e6feb95 3746 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3747 fi
a0b9e27f 3748
10f2d63a 3749else
a0b9e27f 3750
1e6feb95 3751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
1e6feb95 3758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3759
3760fi
10f2d63a
VZ
3761
3762
1e6feb95 3763 eval "$ac_cv_use_timer"
10f2d63a 3764 if test "$no_cache" != 1; then
1e6feb95 3765 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3766 fi
3767
1e6feb95 3768 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3769 echo "$ac_t""yes" 1>&6
10f2d63a 3770 else
a0b9e27f 3771 echo "$ac_t""no" 1>&6
10f2d63a 3772 fi
a0b9e27f 3773
10f2d63a 3774
5005acfe
VZ
3775 enablestring=
3776 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3c907f20 3777echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3778 no_cache=0
3779 # Check whether --enable-wave or --disable-wave was given.
3780if test "${enable_wave+set}" = set; then
3781 enableval="$enable_wave"
a0b9e27f 3782
10f2d63a
VZ
3783 if test "$enableval" = yes; then
3784 ac_cv_use_wave='wxUSE_WAVE=yes'
3785 else
3786 ac_cv_use_wave='wxUSE_WAVE=no'
3787 fi
a0b9e27f 3788
10f2d63a 3789else
a0b9e27f 3790
10f2d63a
VZ
3791 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3799
3800fi
10f2d63a
VZ
3801
3802
3803 eval "$ac_cv_use_wave"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3809 echo "$ac_t""yes" 1>&6
10f2d63a 3810 else
a0b9e27f 3811 echo "$ac_t""no" 1>&6
10f2d63a 3812 fi
a0b9e27f 3813
10f2d63a 3814
5005acfe
VZ
3815 enablestring=
3816 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3c907f20 3817echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3818 no_cache=0
3819 # Check whether --enable-fraction or --disable-fraction was given.
3820if test "${enable_fraction+set}" = set; then
3821 enableval="$enable_fraction"
a0b9e27f 3822
10f2d63a
VZ
3823 if test "$enableval" = yes; then
3824 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3825 else
3826 ac_cv_use_fraction='wxUSE_FRACTION=no'
3827 fi
a0b9e27f 3828
10f2d63a 3829else
a0b9e27f 3830
10f2d63a
VZ
3831 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3839
3840fi
10f2d63a
VZ
3841
3842
3843 eval "$ac_cv_use_fraction"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3849 echo "$ac_t""yes" 1>&6
10f2d63a 3850 else
a0b9e27f 3851 echo "$ac_t""no" 1>&6
10f2d63a 3852 fi
a0b9e27f 3853
10f2d63a 3854
5005acfe
VZ
3855 enablestring=
3856 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3c907f20 3857echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3858 no_cache=0
3859 # Check whether --enable-dynlib or --disable-dynlib was given.
3860if test "${enable_dynlib+set}" = set; then
3861 enableval="$enable_dynlib"
a0b9e27f 3862
10f2d63a
VZ
3863 if test "$enableval" = yes; then
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3865 else
3866 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3867 fi
a0b9e27f 3868
10f2d63a 3869else
a0b9e27f 3870
10f2d63a
VZ
3871 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3879
3880fi
10f2d63a
VZ
3881
3882
3883 eval "$ac_cv_use_dynlib"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3889 echo "$ac_t""yes" 1>&6
10f2d63a 3890 else
a0b9e27f 3891 echo "$ac_t""no" 1>&6
10f2d63a 3892 fi
a0b9e27f 3893
10f2d63a 3894
5005acfe
VZ
3895 enablestring=
3896 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3c907f20 3897echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3898 no_cache=0
3899 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3900if test "${enable_dynamicloader+set}" = set; then
3901 enableval="$enable_dynamicloader"
a0b9e27f 3902
0b9ab0bd
RL
3903 if test "$enableval" = yes; then
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3905 else
3906 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3907 fi
a0b9e27f 3908
0b9ab0bd 3909else
a0b9e27f 3910
0b9ab0bd
RL
3911 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3919
3920fi
0b9ab0bd
RL
3921
3922
3923 eval "$ac_cv_use_dynamicloader"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3929 echo "$ac_t""yes" 1>&6
0b9ab0bd 3930 else
a0b9e27f 3931 echo "$ac_t""no" 1>&6
0b9ab0bd 3932 fi
a0b9e27f 3933
0b9ab0bd 3934
5005acfe
VZ
3935 enablestring=
3936 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3c907f20 3937echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3938 no_cache=0
3939 # Check whether --enable-longlong or --disable-longlong was given.
3940if test "${enable_longlong+set}" = set; then
3941 enableval="$enable_longlong"
a0b9e27f 3942
10f2d63a
VZ
3943 if test "$enableval" = yes; then
3944 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945 else
3946 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947 fi
a0b9e27f 3948
10f2d63a 3949else
a0b9e27f 3950
10f2d63a
VZ
3951 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3959
3960fi
10f2d63a
VZ
3961
3962
3963 eval "$ac_cv_use_longlong"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3969 echo "$ac_t""yes" 1>&6
10f2d63a 3970 else
a0b9e27f 3971 echo "$ac_t""no" 1>&6
10f2d63a 3972 fi
a0b9e27f 3973
10f2d63a 3974
5005acfe
VZ
3975 enablestring=
3976 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3c907f20 3977echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3978 no_cache=0
3979 # Check whether --enable-geometry or --disable-geometry was given.
3980if test "${enable_geometry+set}" = set; then
3981 enableval="$enable_geometry"
a0b9e27f 3982
e8f65ba6
RR
3983 if test "$enableval" = yes; then
3984 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3985 else
3986 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3987 fi
a0b9e27f 3988
e8f65ba6 3989else
a0b9e27f 3990
e8f65ba6
RR
3991 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3999
4000fi
e8f65ba6
RR
4001
4002
4003 eval "$ac_cv_use_geometry"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 4009 echo "$ac_t""yes" 1>&6
e8f65ba6 4010 else
a0b9e27f 4011 echo "$ac_t""no" 1>&6
e8f65ba6 4012 fi
a0b9e27f 4013
e8f65ba6 4014
5005acfe
VZ
4015 enablestring=
4016 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3c907f20 4017echo "configure:4018: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
4018 no_cache=0
4019 # Check whether --enable-log or --disable-log was given.
4020if test "${enable_log+set}" = set; then
4021 enableval="$enable_log"
a0b9e27f 4022
10f2d63a
VZ
4023 if test "$enableval" = yes; then
4024 ac_cv_use_log='wxUSE_LOG=yes'
4025 else
4026 ac_cv_use_log='wxUSE_LOG=no'
4027 fi
a0b9e27f 4028
10f2d63a 4029else
a0b9e27f 4030
10f2d63a
VZ
4031 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4039
4040fi
10f2d63a
VZ
4041
4042
4043 eval "$ac_cv_use_log"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4049 echo "$ac_t""yes" 1>&6
10f2d63a 4050 else
a0b9e27f 4051 echo "$ac_t""no" 1>&6
10f2d63a 4052 fi
a0b9e27f 4053
10f2d63a 4054
5005acfe
VZ
4055 enablestring=
4056 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
3c907f20 4057echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4058 no_cache=0
4059 # Check whether --enable-streams or --disable-streams was given.
4060if test "${enable_streams+set}" = set; then
4061 enableval="$enable_streams"
a0b9e27f 4062
10f2d63a
VZ
4063 if test "$enableval" = yes; then
4064 ac_cv_use_streams='wxUSE_STREAMS=yes'
4065 else
4066 ac_cv_use_streams='wxUSE_STREAMS=no'
4067 fi
a0b9e27f 4068
10f2d63a 4069else
a0b9e27f 4070
10f2d63a
VZ
4071 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4079
4080fi
10f2d63a
VZ
4081
4082
4083 eval "$ac_cv_use_streams"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4089 echo "$ac_t""yes" 1>&6
10f2d63a 4090 else
a0b9e27f 4091 echo "$ac_t""no" 1>&6
10f2d63a 4092 fi
a0b9e27f 4093
10f2d63a 4094
5005acfe
VZ
4095 enablestring=
4096 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
3c907f20 4097echo "configure:4098: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4098 no_cache=0
4099 # Check whether --enable-file or --disable-file was given.
4100if test "${enable_file+set}" = set; then
4101 enableval="$enable_file"
a0b9e27f 4102
10f2d63a
VZ
4103 if test "$enableval" = yes; then
4104 ac_cv_use_file='wxUSE_FILE=yes'
4105 else
4106 ac_cv_use_file='wxUSE_FILE=no'
4107 fi
a0b9e27f 4108
10f2d63a 4109else
a0b9e27f 4110
10f2d63a
VZ
4111 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4119
4120fi
10f2d63a
VZ
4121
4122
4123 eval "$ac_cv_use_file"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4129 echo "$ac_t""yes" 1>&6
10f2d63a 4130 else
a0b9e27f 4131 echo "$ac_t""no" 1>&6
10f2d63a 4132 fi
a0b9e27f 4133
10f2d63a 4134
5005acfe
VZ
4135 enablestring=
4136 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
3c907f20 4137echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4138 no_cache=0
1e6feb95
VZ
4139 # Check whether --enable-ffile or --disable-ffile was given.
4140if test "${enable_ffile+set}" = set; then
4141 enableval="$enable_ffile"
a0b9e27f 4142
10f2d63a 4143 if test "$enableval" = yes; then
1e6feb95 4144 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4145 else
1e6feb95 4146 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4147 fi
a0b9e27f 4148
10f2d63a 4149else
a0b9e27f 4150
1e6feb95 4151 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
1e6feb95 4158 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4159
4160fi
10f2d63a
VZ
4161
4162
1e6feb95 4163 eval "$ac_cv_use_ffile"
10f2d63a 4164 if test "$no_cache" != 1; then
1e6feb95 4165 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4166 fi
4167
1e6feb95 4168 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4169 echo "$ac_t""yes" 1>&6
10f2d63a 4170 else
a0b9e27f 4171 echo "$ac_t""no" 1>&6
10f2d63a 4172 fi
a0b9e27f 4173
10f2d63a 4174
5005acfe
VZ
4175 enablestring=
4176 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
3c907f20 4177echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4178 no_cache=0
4179 # Check whether --enable-textbuf or --disable-textbuf was given.
4180if test "${enable_textbuf+set}" = set; then
4181 enableval="$enable_textbuf"
a0b9e27f 4182
a3a584a7
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4185 else
4186 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4187 fi
a0b9e27f 4188
a3a584a7 4189else
a0b9e27f 4190
a3a584a7
VZ
4191 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4199
4200fi
a3a584a7
VZ
4201
4202
4203 eval "$ac_cv_use_textbuf"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4209 echo "$ac_t""yes" 1>&6
a3a584a7 4210 else
a0b9e27f 4211 echo "$ac_t""no" 1>&6
a3a584a7 4212 fi
a0b9e27f 4213
a3a584a7 4214
5005acfe
VZ
4215 enablestring=
4216 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
3c907f20 4217echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4218 no_cache=0
1e6feb95
VZ
4219 # Check whether --enable-textfile or --disable-textfile was given.
4220if test "${enable_textfile+set}" = set; then
4221 enableval="$enable_textfile"
a0b9e27f 4222
10f2d63a 4223 if test "$enableval" = yes; then
1e6feb95 4224 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4225 else
1e6feb95 4226 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4227 fi
a0b9e27f 4228
10f2d63a 4229else
a0b9e27f 4230
1e6feb95 4231 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
1e6feb95 4238 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4239
4240fi
10f2d63a
VZ
4241
4242
1e6feb95 4243 eval "$ac_cv_use_textfile"
10f2d63a 4244 if test "$no_cache" != 1; then
1e6feb95 4245 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4246 fi
4247
1e6feb95 4248 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4249 echo "$ac_t""yes" 1>&6
10f2d63a 4250 else
a0b9e27f 4251 echo "$ac_t""no" 1>&6
10f2d63a 4252 fi
a0b9e27f 4253
10f2d63a 4254
5005acfe
VZ
4255 enablestring=
4256 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
3c907f20 4257echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4258 no_cache=0
1e6feb95
VZ
4259 # Check whether --enable-fontmap or --disable-fontmap was given.
4260if test "${enable_fontmap+set}" = set; then
4261 enableval="$enable_fontmap"
a0b9e27f 4262
10f2d63a 4263 if test "$enableval" = yes; then
1e6feb95 4264 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4265 else
1e6feb95 4266 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4267 fi
a0b9e27f 4268
10f2d63a 4269else
a0b9e27f 4270
1e6feb95 4271 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
1e6feb95 4278 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4279
4280fi
10f2d63a
VZ
4281
4282
1e6feb95 4283 eval "$ac_cv_use_fontmap"
10f2d63a 4284 if test "$no_cache" != 1; then
1e6feb95 4285 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4286 fi
4287
1e6feb95 4288 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4289 echo "$ac_t""yes" 1>&6
10f2d63a 4290 else
a0b9e27f 4291 echo "$ac_t""no" 1>&6
10f2d63a 4292 fi
a0b9e27f 4293
10f2d63a 4294
5005acfe
VZ
4295 enablestring=
4296 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
3c907f20 4297echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4298 no_cache=0
1e6feb95
VZ
4299 # Check whether --enable-unicode or --disable-unicode was given.
4300if test "${enable_unicode+set}" = set; then
4301 enableval="$enable_unicode"
a0b9e27f 4302
1e6feb95
VZ
4303 if test "$enableval" = yes; then
4304 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4305 else
4306 ac_cv_use_unicode='wxUSE_UNICODE=no'
4307 fi
a0b9e27f 4308
1e6feb95 4309else
a0b9e27f 4310
1e6feb95
VZ
4311 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4319
4320fi
1e6feb95
VZ
4321
4322
4323 eval "$ac_cv_use_unicode"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4329 echo "$ac_t""yes" 1>&6
1e6feb95 4330 else
a0b9e27f 4331 echo "$ac_t""no" 1>&6
1e6feb95 4332 fi
a0b9e27f 4333
1e6feb95 4334
5005acfe
VZ
4335 enablestring=
4336 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
3c907f20 4337echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4338 no_cache=0
4339 # Check whether --enable-mslu or --disable-mslu was given.
4340if test "${enable_mslu+set}" = set; then
4341 enableval="$enable_mslu"
a0b9e27f 4342
a72a4bfa
VS
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4345 else
4346 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4347 fi
a0b9e27f 4348
a72a4bfa 4349else
a0b9e27f 4350
a72a4bfa
VS
4351 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4359
4360fi
a72a4bfa
VS
4361
4362
4363 eval "$ac_cv_use_mslu"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4369 echo "$ac_t""yes" 1>&6
a72a4bfa 4370 else
a0b9e27f 4371 echo "$ac_t""no" 1>&6
a72a4bfa 4372 fi
a0b9e27f 4373
a72a4bfa 4374
5005acfe
VZ
4375 enablestring=
4376 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
3c907f20 4377echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4378 no_cache=0
4379 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4380if test "${enable_wxprintfv+set}" = set; then
4381 enableval="$enable_wxprintfv"
a0b9e27f 4382
1e6feb95 4383 if test "$enableval" = yes; then
10f2d63a
VZ
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4385 else
4386 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4387 fi
a0b9e27f 4388
10f2d63a 4389else
a0b9e27f 4390
10f2d63a
VZ
4391 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4399
4400fi
10f2d63a
VZ
4401
4402
4403 eval "$ac_cv_use_wxprintfv"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4409 echo "$ac_t""yes" 1>&6
10f2d63a 4410 else
a0b9e27f 4411 echo "$ac_t""no" 1>&6
10f2d63a 4412 fi
a0b9e27f 4413
10f2d63a 4414
5005acfe
VZ
4415 enablestring=
4416 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
3c907f20 4417echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4418 no_cache=0
4419 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4420if test "${enable_std_iostreams+set}" = set; then
4421 enableval="$enable_std_iostreams"
a0b9e27f 4422
10f2d63a
VZ
4423 if test "$enableval" = yes; then
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4425 else
4426 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4427 fi
a0b9e27f 4428
10f2d63a 4429else
a0b9e27f 4430
10f2d63a
VZ
4431 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4439
4440fi
10f2d63a
VZ
4441
4442
4443 eval "$ac_cv_use_std_iostreams"
4444 if test "$no_cache" != 1; then
4445 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4446 fi
4447
4448 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4449 echo "$ac_t""yes" 1>&6
10f2d63a 4450 else
a0b9e27f 4451 echo "$ac_t""no" 1>&6
10f2d63a 4452 fi
a0b9e27f 4453
10f2d63a 4454
5005acfe
VZ
4455 enablestring=
4456 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
3c907f20 4457echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4458 no_cache=0
4459 # Check whether --enable-filesystem or --disable-filesystem was given.
4460if test "${enable_filesystem+set}" = set; then
4461 enableval="$enable_filesystem"
a0b9e27f 4462
24528b0c
VS
4463 if test "$enableval" = yes; then
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4465 else
4466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4467 fi
a0b9e27f 4468
24528b0c 4469else
a0b9e27f 4470
24528b0c
VS
4471 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4479
4480fi
24528b0c
VS
4481
4482
4483 eval "$ac_cv_use_filesystem"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4489 echo "$ac_t""yes" 1>&6
24528b0c 4490 else
a0b9e27f 4491 echo "$ac_t""no" 1>&6
24528b0c 4492 fi
a0b9e27f 4493
24528b0c 4494
5005acfe
VZ
4495 enablestring=
4496 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
3c907f20 4497echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4498 no_cache=0
4499 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4500if test "${enable_fs_inet+set}" = set; then
4501 enableval="$enable_fs_inet"
a0b9e27f 4502
10f2d63a
VZ
4503 if test "$enableval" = yes; then
4504 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4505 else
4506 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4507 fi
a0b9e27f 4508
10f2d63a 4509else
a0b9e27f 4510
10f2d63a
VZ
4511 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4519
4520fi
10f2d63a
VZ
4521
4522
4523 eval "$ac_cv_use_fs_inet"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4529 echo "$ac_t""yes" 1>&6
10f2d63a 4530 else
a0b9e27f 4531 echo "$ac_t""no" 1>&6
10f2d63a 4532 fi
a0b9e27f 4533
10f2d63a 4534
5005acfe
VZ
4535 enablestring=
4536 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
3c907f20 4537echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4538 no_cache=0
4539 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4540if test "${enable_fs_zip+set}" = set; then
4541 enableval="$enable_fs_zip"
a0b9e27f 4542
10f2d63a
VZ
4543 if test "$enableval" = yes; then
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4545 else
4546 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4547 fi
a0b9e27f 4548
10f2d63a 4549else
a0b9e27f 4550
10f2d63a
VZ
4551 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4559
4560fi
10f2d63a
VZ
4561
4562
4563 eval "$ac_cv_use_fs_zip"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4569 echo "$ac_t""yes" 1>&6
10f2d63a 4570 else
a0b9e27f 4571 echo "$ac_t""no" 1>&6
10f2d63a 4572 fi
a0b9e27f 4573
10f2d63a 4574
5005acfe
VZ
4575 enablestring=
4576 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
3c907f20 4577echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4578 no_cache=0
4579 # Check whether --enable-zipstream or --disable-zipstream was given.
4580if test "${enable_zipstream+set}" = set; then
4581 enableval="$enable_zipstream"
a0b9e27f 4582
10f2d63a
VZ
4583 if test "$enableval" = yes; then
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4585 else
4586 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4587 fi
a0b9e27f 4588
10f2d63a 4589else
a0b9e27f 4590
10f2d63a
VZ
4591 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4599
4600fi
10f2d63a
VZ
4601
4602
4603 eval "$ac_cv_use_zipstream"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4609 echo "$ac_t""yes" 1>&6
10f2d63a 4610 else
a0b9e27f 4611 echo "$ac_t""no" 1>&6
10f2d63a 4612 fi
a0b9e27f 4613
8284b0c5 4614
52127426 4615
5005acfe
VZ
4616 enablestring=
4617 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
3c907f20 4618echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4619 no_cache=0
4620 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4621if test "${enable_catch_segvs+set}" = set; then
4622 enableval="$enable_catch_segvs"
a0b9e27f 4623
eb4efbdc
VZ
4624 if test "$enableval" = yes; then
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4626 else
4627 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4628 fi
a0b9e27f 4629
eb4efbdc 4630else
a0b9e27f 4631
eb4efbdc
VZ
4632 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4640
4641fi
eb4efbdc
VZ
4642
4643
4644 eval "$ac_cv_use_catch_segvs"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4650 echo "$ac_t""yes" 1>&6
eb4efbdc 4651 else
a0b9e27f 4652 echo "$ac_t""no" 1>&6
eb4efbdc 4653 fi
a0b9e27f 4654
eb4efbdc 4655
5005acfe
VZ
4656 enablestring=
4657 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
3c907f20 4658echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4659 no_cache=0
4660 # Check whether --enable-snglinst or --disable-snglinst was given.
4661if test "${enable_snglinst+set}" = set; then
4662 enableval="$enable_snglinst"
a0b9e27f 4663
4f3c5f06
VZ
4664 if test "$enableval" = yes; then
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4666 else
4667 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4668 fi
a0b9e27f 4669
4f3c5f06 4670else
a0b9e27f 4671
4f3c5f06
VZ
4672 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4673 if test "x$LINE" != x ; then
4674 eval "DEFAULT_$LINE"
4675 else
4676 no_cache=1
4677 fi
4678
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4680
4681fi
4f3c5f06
VZ
4682
4683
4684 eval "$ac_cv_use_snglinst"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4690 echo "$ac_t""yes" 1>&6
4f3c5f06 4691 else
a0b9e27f 4692 echo "$ac_t""no" 1>&6
4f3c5f06 4693 fi
a0b9e27f 4694
52127426 4695
8284b0c5 4696
5005acfe
VZ
4697 enablestring=
4698 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
3c907f20 4699echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4700 no_cache=0
4701 # Check whether --enable-mimetype or --disable-mimetype was given.
4702if test "${enable_mimetype+set}" = set; then
4703 enableval="$enable_mimetype"
a0b9e27f 4704
1e6feb95
VZ
4705 if test "$enableval" = yes; then
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4707 else
4708 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4709 fi
a0b9e27f 4710
1e6feb95 4711else
a0b9e27f 4712
1e6feb95
VZ
4713 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4721
4722fi
1e6feb95
VZ
4723
4724
4725 eval "$ac_cv_use_mimetype"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4731 echo "$ac_t""yes" 1>&6
1e6feb95 4732 else
a0b9e27f 4733 echo "$ac_t""no" 1>&6
1e6feb95 4734 fi
a0b9e27f 4735
1e6feb95 4736
5005acfe
VZ
4737 enablestring=
4738 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
3c907f20 4739echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4740 no_cache=0
4741 # Check whether --enable-system_options or --disable-system_options was given.
4742if test "${enable_system_options+set}" = set; then
4743 enableval="$enable_system_options"
a0b9e27f 4744
3e44f09d
VZ
4745 if test "$enableval" = yes; then
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4747 else
4748 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4749 fi
a0b9e27f 4750
3e44f09d 4751else
a0b9e27f 4752
3e44f09d
VZ
4753 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4761
4762fi
3e44f09d
VZ
4763
4764
4765 eval "$ac_cv_use_system_options"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4771 echo "$ac_t""yes" 1>&6
3e44f09d 4772 else
a0b9e27f 4773 echo "$ac_t""no" 1>&6
3e44f09d 4774 fi
a0b9e27f 4775
8284b0c5 4776
52127426 4777
5005acfe
VZ
4778 enablestring=
4779 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
3c907f20 4780echo "configure:4781: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4781 no_cache=0
4782 # Check whether --enable-url or --disable-url was given.
4783if test "${enable_url+set}" = set; then
4784 enableval="$enable_url"
a0b9e27f 4785
4cdb0ab0
VS
4786 if test "$enableval" = yes; then
4787 ac_cv_use_url='wxUSE_URL=yes'
4788 else
4789 ac_cv_use_url='wxUSE_URL=no'
4790 fi
a0b9e27f 4791
4cdb0ab0 4792else
a0b9e27f 4793
4cdb0ab0
VS
4794 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4802
4803fi
4cdb0ab0
VS
4804
4805
4806 eval "$ac_cv_use_url"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_URL" = yes; then
a0b9e27f 4812 echo "$ac_t""yes" 1>&6
4cdb0ab0 4813 else
a0b9e27f 4814 echo "$ac_t""no" 1>&6
4cdb0ab0 4815 fi
a0b9e27f 4816
4cdb0ab0 4817
5005acfe
VZ
4818 enablestring=
4819 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
3c907f20 4820echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4821 no_cache=0
4822 # Check whether --enable-protocol or --disable-protocol was given.
4823if test "${enable_protocol+set}" = set; then
4824 enableval="$enable_protocol"
a0b9e27f 4825
4cdb0ab0
VS
4826 if test "$enableval" = yes; then
4827 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4828 else
4829 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4830 fi
a0b9e27f 4831
4cdb0ab0 4832else
a0b9e27f 4833
4cdb0ab0
VS
4834 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4842
4843fi
4cdb0ab0
VS
4844
4845
4846 eval "$ac_cv_use_protocol"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4852 echo "$ac_t""yes" 1>&6
4cdb0ab0 4853 else
a0b9e27f 4854 echo "$ac_t""no" 1>&6
4cdb0ab0 4855 fi
a0b9e27f 4856
4cdb0ab0 4857
5005acfe
VZ
4858 enablestring=
4859 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
3c907f20 4860echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4861 no_cache=0
4862 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4863if test "${enable_protocol_http+set}" = set; then
4864 enableval="$enable_protocol_http"
a0b9e27f 4865
4cdb0ab0
VS
4866 if test "$enableval" = yes; then
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4868 else
4869 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4870 fi
a0b9e27f 4871
4cdb0ab0 4872else
a0b9e27f 4873
4cdb0ab0
VS
4874 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4882
4883fi
4cdb0ab0
VS
4884
4885
4886 eval "$ac_cv_use_protocol_http"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4892 echo "$ac_t""yes" 1>&6
4cdb0ab0 4893 else
a0b9e27f 4894 echo "$ac_t""no" 1>&6
4cdb0ab0 4895 fi
a0b9e27f 4896
4cdb0ab0 4897
5005acfe
VZ
4898 enablestring=
4899 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
3c907f20 4900echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4901 no_cache=0
4902 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4903if test "${enable_protocol_ftp+set}" = set; then
4904 enableval="$enable_protocol_ftp"
a0b9e27f 4905
4cdb0ab0
VS
4906 if test "$enableval" = yes; then
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4908 else
4909 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4910 fi
a0b9e27f 4911
4cdb0ab0 4912else
a0b9e27f 4913
4cdb0ab0
VS
4914 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4922
4923fi
4cdb0ab0
VS
4924
4925
4926 eval "$ac_cv_use_protocol_ftp"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4932 echo "$ac_t""yes" 1>&6
4cdb0ab0 4933 else
a0b9e27f 4934 echo "$ac_t""no" 1>&6
4cdb0ab0 4935 fi
a0b9e27f 4936
4cdb0ab0 4937
5005acfe
VZ
4938 enablestring=
4939 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
3c907f20 4940echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4941 no_cache=0
4942 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4943if test "${enable_protocol_file+set}" = set; then
4944 enableval="$enable_protocol_file"
a0b9e27f 4945
4cdb0ab0
VS
4946 if test "$enableval" = yes; then
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4948 else
4949 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4950 fi
a0b9e27f 4951
4cdb0ab0 4952else
a0b9e27f 4953
4cdb0ab0
VS
4954 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4962
4963fi
4cdb0ab0
VS
4964
4965
4966 eval "$ac_cv_use_protocol_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4972 echo "$ac_t""yes" 1>&6
4cdb0ab0 4973 else
a0b9e27f 4974 echo "$ac_t""no" 1>&6
4cdb0ab0 4975 fi
a0b9e27f 4976
52127426 4977
8284b0c5
MB
4978
4979
4980
5005acfe
VZ
4981 enablestring=
4982 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
3c907f20 4983echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4984 no_cache=0
4985 # Check whether --enable-threads or --disable-threads was given.
4986if test "${enable_threads+set}" = set; then
4987 enableval="$enable_threads"
a0b9e27f 4988
10f2d63a
VZ
4989 if test "$enableval" = yes; then
4990 ac_cv_use_threads='wxUSE_THREADS=yes'
4991 else
4992 ac_cv_use_threads='wxUSE_THREADS=no'
4993 fi
a0b9e27f 4994
10f2d63a 4995else
a0b9e27f 4996
10f2d63a
VZ
4997 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
5005
5006fi
10f2d63a
VZ
5007
5008
5009 eval "$ac_cv_use_threads"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 5015 echo "$ac_t""yes" 1>&6
10f2d63a 5016 else
a0b9e27f 5017 echo "$ac_t""no" 1>&6
10f2d63a 5018 fi
a0b9e27f 5019
10f2d63a 5020
b12915c1
VZ
5021if test "$wxUSE_GUI" = "yes"; then
5022
8284b0c5
MB
5023
5024
5005acfe
VZ
5025 enablestring=
5026 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
3c907f20 5027echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5028 no_cache=0
5029 # Check whether --enable-docview or --disable-docview was given.
5030if test "${enable_docview+set}" = set; then
5031 enableval="$enable_docview"
a0b9e27f 5032
10f2d63a
VZ
5033 if test "$enableval" = yes; then
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035 else
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037 fi
a0b9e27f 5038
10f2d63a 5039else
a0b9e27f 5040
10f2d63a
VZ
5041 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5049
5050fi
10f2d63a
VZ
5051
5052
5053 eval "$ac_cv_use_docview"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5059 echo "$ac_t""yes" 1>&6
10f2d63a 5060 else
a0b9e27f 5061 echo "$ac_t""no" 1>&6
10f2d63a 5062 fi
a0b9e27f 5063
10f2d63a 5064
5005acfe
VZ
5065 enablestring=
5066 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
3c907f20 5067echo "configure:5068: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5068 no_cache=0
5069 # Check whether --enable-help or --disable-help was given.
5070if test "${enable_help+set}" = set; then
5071 enableval="$enable_help"
a0b9e27f 5072
10f2d63a
VZ
5073 if test "$enableval" = yes; then
5074 ac_cv_use_help='wxUSE_HELP=yes'
5075 else
5076 ac_cv_use_help='wxUSE_HELP=no'
5077 fi
a0b9e27f 5078
10f2d63a 5079else
a0b9e27f 5080
10f2d63a
VZ
5081 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5089
5090fi
10f2d63a
VZ
5091
5092
5093 eval "$ac_cv_use_help"
5094 if test "$no_cache" != 1; then
5095 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5096 fi
5097
5098 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5099 echo "$ac_t""yes" 1>&6
10f2d63a 5100 else
a0b9e27f 5101 echo "$ac_t""no" 1>&6
10f2d63a 5102 fi
a0b9e27f 5103
10f2d63a 5104
5005acfe
VZ
5105 enablestring=
5106 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
3c907f20 5107echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5108 no_cache=0
5109 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5110if test "${enable_mshtmlhelp+set}" = set; then
5111 enableval="$enable_mshtmlhelp"
a0b9e27f 5112
29fd3c0c
VS
5113 if test "$enableval" = yes; then
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5115 else
5116 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5117 fi
a0b9e27f 5118
29fd3c0c 5119else
a0b9e27f 5120
29fd3c0c
VS
5121 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5129
5130fi
29fd3c0c
VS
5131
5132
5133 eval "$ac_cv_use_mshtmlhelp"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5139 echo "$ac_t""yes" 1>&6
29fd3c0c 5140 else
a0b9e27f 5141 echo "$ac_t""no" 1>&6
29fd3c0c 5142 fi
a0b9e27f 5143
29fd3c0c 5144
5005acfe
VZ
5145 enablestring=
5146 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
3c907f20 5147echo "configure:5148: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5148 no_cache=0
5149 # Check whether --enable-html or --disable-html was given.
5150if test "${enable_html+set}" = set; then
5151 enableval="$enable_html"
a0b9e27f 5152
3379ed37
VZ
5153 if test "$enableval" = yes; then
5154 ac_cv_use_html='wxUSE_HTML=yes'
5155 else
5156 ac_cv_use_html='wxUSE_HTML=no'
5157 fi
a0b9e27f 5158
3379ed37 5159else
a0b9e27f 5160
3379ed37
VZ
5161 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5162 if test "x$LINE" != x ; then
5163 eval "DEFAULT_$LINE"
5164 else
5165 no_cache=1
5166 fi
5167
5168 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5169
5170fi
3379ed37
VZ
5171
5172
5173 eval "$ac_cv_use_html"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5179 echo "$ac_t""yes" 1>&6
3379ed37 5180 else
a0b9e27f 5181 echo "$ac_t""no" 1>&6
3379ed37 5182 fi
a0b9e27f 5183
3379ed37 5184
5005acfe
VZ
5185 enablestring=
5186 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
3c907f20 5187echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5188 no_cache=0
5189 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5190if test "${enable_htmlhelp+set}" = set; then
5191 enableval="$enable_htmlhelp"
a0b9e27f 5192
3379ed37
VZ
5193 if test "$enableval" = yes; then
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5195 else
5196 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5197 fi
a0b9e27f 5198
3379ed37 5199else
a0b9e27f 5200
3379ed37
VZ
5201 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5209
5210fi
3379ed37
VZ
5211
5212
5213 eval "$ac_cv_use_htmlhelp"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5219 echo "$ac_t""yes" 1>&6
3379ed37 5220 else
a0b9e27f 5221 echo "$ac_t""no" 1>&6
3379ed37 5222 fi
a0b9e27f 5223
3379ed37 5224
5005acfe
VZ
5225 enablestring=
5226 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
3c907f20 5227echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5228 no_cache=0
5229 # Check whether --enable-constraints or --disable-constraints was given.
5230if test "${enable_constraints+set}" = set; then
5231 enableval="$enable_constraints"
a0b9e27f 5232
10f2d63a
VZ
5233 if test "$enableval" = yes; then
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5235 else
5236 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5237 fi
a0b9e27f 5238
10f2d63a 5239else
a0b9e27f 5240
10f2d63a
VZ
5241 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5249
5250fi
10f2d63a
VZ
5251
5252
5253 eval "$ac_cv_use_constraints"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5259 echo "$ac_t""yes" 1>&6
10f2d63a 5260 else
a0b9e27f 5261 echo "$ac_t""no" 1>&6
10f2d63a 5262 fi
a0b9e27f 5263
10f2d63a 5264
5005acfe
VZ
5265 enablestring=
5266 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
3c907f20 5267echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5268 no_cache=0
5269 # Check whether --enable-printarch or --disable-printarch was given.
5270if test "${enable_printarch+set}" = set; then
5271 enableval="$enable_printarch"
a0b9e27f 5272
10f2d63a
VZ
5273 if test "$enableval" = yes; then
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5275 else
5276 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5277 fi
a0b9e27f 5278
10f2d63a 5279else
a0b9e27f 5280
10f2d63a
VZ
5281 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5289
5290fi
10f2d63a
VZ
5291
5292
5293 eval "$ac_cv_use_printarch"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5299 echo "$ac_t""yes" 1>&6
10f2d63a 5300 else
a0b9e27f 5301 echo "$ac_t""no" 1>&6
10f2d63a 5302 fi
a0b9e27f 5303
10f2d63a 5304
5005acfe
VZ
5305 enablestring=
5306 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
3c907f20 5307echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5308 no_cache=0
5309 # Check whether --enable-mdi or --disable-mdi was given.
5310if test "${enable_mdi+set}" = set; then
5311 enableval="$enable_mdi"
a0b9e27f 5312
10f2d63a
VZ
5313 if test "$enableval" = yes; then
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5315 else
5316 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5317 fi
a0b9e27f 5318
10f2d63a 5319else
a0b9e27f 5320
10f2d63a
VZ
5321 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5329
5330fi
10f2d63a
VZ
5331
5332
5333 eval "$ac_cv_use_mdi"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5339 echo "$ac_t""yes" 1>&6
10f2d63a 5340 else
a0b9e27f 5341 echo "$ac_t""no" 1>&6
10f2d63a 5342 fi
a0b9e27f 5343
698dcdb6 5344
5005acfe
VZ
5345 enablestring=
5346 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
3c907f20 5347echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5348 no_cache=0
5349 # Check whether --enable-loggui or --disable-loggui was given.
5350if test "${enable_loggui+set}" = set; then
5351 enableval="$enable_loggui"
a0b9e27f 5352
1e6feb95
VZ
5353 if test "$enableval" = yes; then
5354 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5355 else
5356 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5357 fi
a0b9e27f 5358
1e6feb95 5359else
a0b9e27f 5360
1e6feb95
VZ
5361 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5369
5370fi
1e6feb95
VZ
5371
5372
5373 eval "$ac_cv_use_loggui"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5379 echo "$ac_t""yes" 1>&6
1e6feb95 5380 else
a0b9e27f 5381 echo "$ac_t""no" 1>&6
1e6feb95 5382 fi
a0b9e27f 5383
1e6feb95 5384
5005acfe
VZ
5385 enablestring=
5386 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
3c907f20 5387echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5388 no_cache=0
5389 # Check whether --enable-logwin or --disable-logwin was given.
5390if test "${enable_logwin+set}" = set; then
5391 enableval="$enable_logwin"
a0b9e27f 5392
1e6feb95
VZ
5393 if test "$enableval" = yes; then
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5395 else
5396 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5397 fi
a0b9e27f 5398
1e6feb95 5399else
a0b9e27f 5400
1e6feb95
VZ
5401 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5409
5410fi
1e6feb95
VZ
5411
5412
5413 eval "$ac_cv_use_logwin"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5419 echo "$ac_t""yes" 1>&6
1e6feb95 5420 else
a0b9e27f 5421 echo "$ac_t""no" 1>&6
1e6feb95 5422 fi
a0b9e27f 5423
1e6feb95 5424
5005acfe
VZ
5425 enablestring=
5426 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
3c907f20 5427echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5428 no_cache=0
5429 # Check whether --enable-logdialog or --disable-logdialog was given.
5430if test "${enable_logdialog+set}" = set; then
5431 enableval="$enable_logdialog"
a0b9e27f 5432
69d27ff7
MB
5433 if test "$enableval" = yes; then
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5435 else
5436 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5437 fi
a0b9e27f 5438
69d27ff7 5439else
a0b9e27f 5440
69d27ff7
MB
5441 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5442 if test "x$LINE" != x ; then
5443 eval "DEFAULT_$LINE"
5444 else
5445 no_cache=1
5446 fi
5447
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5449
5450fi
69d27ff7
MB
5451
5452
5453 eval "$ac_cv_use_logdialog"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5459 echo "$ac_t""yes" 1>&6
69d27ff7 5460 else
a0b9e27f 5461 echo "$ac_t""no" 1>&6
69d27ff7 5462 fi
a0b9e27f 5463
8284b0c5 5464
52127426 5465
5005acfe
VZ
5466 enablestring=
5467 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
3c907f20 5468echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5469 no_cache=0
5470 # Check whether --enable-postscript or --disable-postscript was given.
5471if test "${enable_postscript+set}" = set; then
5472 enableval="$enable_postscript"
a0b9e27f 5473
10f2d63a
VZ
5474 if test "$enableval" = yes; then
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5476 else
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5478 fi
a0b9e27f 5479
10f2d63a 5480else
a0b9e27f 5481
10f2d63a
VZ
5482 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5490
5491fi
10f2d63a
VZ
5492
5493
5494 eval "$ac_cv_use_postscript"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5500 echo "$ac_t""yes" 1>&6
10f2d63a 5501 else
a0b9e27f 5502 echo "$ac_t""no" 1>&6
10f2d63a 5503 fi
a0b9e27f 5504
8284b0c5
MB
5505
5506
52127426 5507
8284b0c5 5508
5005acfe 5509 enablestring=
3c907f20
VZ
5510 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5511echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a 5512 no_cache=0
3c907f20
VZ
5513 # Check whether --enable-prologio or --disable-prologio was given.
5514if test "${enable_prologio+set}" = set; then
5515 enableval="$enable_prologio"
a0b9e27f 5516
10f2d63a 5517 if test "$enableval" = yes; then
3c907f20 5518 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 5519 else
3c907f20 5520 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 5521 fi
a0b9e27f 5522
10f2d63a 5523else
a0b9e27f 5524
3c907f20 5525 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
5526 if test "x$LINE" != x ; then
5527 eval "DEFAULT_$LINE"
5528 else
5529 no_cache=1
5530 fi
5531
3c907f20 5532 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5533
5534fi
10f2d63a
VZ
5535
5536
3c907f20 5537 eval "$ac_cv_use_prologio"
10f2d63a 5538 if test "$no_cache" != 1; then
3c907f20 5539 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5540 fi
5541
3c907f20 5542 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5543 echo "$ac_t""yes" 1>&6
10f2d63a 5544 else
a0b9e27f 5545 echo "$ac_t""no" 1>&6
10f2d63a 5546 fi
a0b9e27f 5547
8284b0c5 5548
5005acfe 5549 enablestring=
3c907f20
VZ
5550 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5551echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5
10f2d63a 5552 no_cache=0
3c907f20
VZ
5553 # Check whether --enable-resources or --disable-resources was given.
5554if test "${enable_resources+set}" = set; then
5555 enableval="$enable_resources"
a0b9e27f 5556
10f2d63a 5557 if test "$enableval" = yes; then
3c907f20 5558 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 5559 else
3c907f20 5560 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 5561 fi
a0b9e27f 5562
10f2d63a 5563else
a0b9e27f 5564
3c907f20 5565 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
3c907f20 5572 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5573
5574fi
10f2d63a
VZ
5575
5576
3c907f20 5577 eval "$ac_cv_use_resources"
10f2d63a 5578 if test "$no_cache" != 1; then
3c907f20 5579 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5580 fi
5581
3c907f20 5582 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5583 echo "$ac_t""yes" 1>&6
10f2d63a 5584 else
a0b9e27f 5585 echo "$ac_t""no" 1>&6
10f2d63a 5586 fi
a0b9e27f 5587
8284b0c5
MB
5588
5589
52127426 5590
5005acfe
VZ
5591 enablestring=
5592 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
3c907f20 5593echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5594 no_cache=0
5595 # Check whether --enable-clipboard or --disable-clipboard was given.
5596if test "${enable_clipboard+set}" = set; then
5597 enableval="$enable_clipboard"
a0b9e27f 5598
10f2d63a
VZ
5599 if test "$enableval" = yes; then
5600 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5601 else
5602 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5603 fi
a0b9e27f 5604
10f2d63a 5605else
a0b9e27f 5606
10f2d63a
VZ
5607 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5615
5616fi
10f2d63a
VZ
5617
5618
5619 eval "$ac_cv_use_clipboard"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5625 echo "$ac_t""yes" 1>&6
10f2d63a 5626 else
a0b9e27f 5627 echo "$ac_t""no" 1>&6
10f2d63a 5628 fi
a0b9e27f 5629
10f2d63a 5630
5005acfe
VZ
5631 enablestring=
5632 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
3c907f20 5633echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5634 no_cache=0
5635 # Check whether --enable-dnd or --disable-dnd was given.
5636if test "${enable_dnd+set}" = set; then
5637 enableval="$enable_dnd"
a0b9e27f 5638
10f2d63a
VZ
5639 if test "$enableval" = yes; then
5640 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5641 else
5642 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5643 fi
a0b9e27f 5644
10f2d63a 5645else
a0b9e27f 5646
10f2d63a
VZ
5647 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5655
5656fi
10f2d63a
VZ
5657
5658
5659 eval "$ac_cv_use_dnd"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5665 echo "$ac_t""yes" 1>&6
10f2d63a 5666 else
a0b9e27f 5667 echo "$ac_t""no" 1>&6
10f2d63a 5668 fi
a0b9e27f 5669
10f2d63a 5670
5005acfe
VZ
5671 enablestring=
5672 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
3c907f20 5673echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5674 no_cache=0
5675 # Check whether --enable-metafile or --disable-metafile was given.
5676if test "${enable_metafile+set}" = set; then
5677 enableval="$enable_metafile"
a0b9e27f 5678
b64f0a5f
RL
5679 if test "$enableval" = yes; then
5680 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5681 else
5682 ac_cv_use_metafile='wxUSE_METAFILE=no'
5683 fi
a0b9e27f 5684
b64f0a5f 5685else
a0b9e27f 5686
b64f0a5f
RL
5687 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5695
5696fi
b64f0a5f
RL
5697
5698
5699 eval "$ac_cv_use_metafile"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5705 echo "$ac_t""yes" 1>&6
b64f0a5f 5706 else
a0b9e27f 5707 echo "$ac_t""no" 1>&6
b64f0a5f 5708 fi
a0b9e27f 5709
52127426 5710
8284b0c5 5711
52127426 5712
8284b0c5 5713
5005acfe
VZ
5714 enablestring=
5715 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
3c907f20 5716echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5717 no_cache=0
5718 # Check whether --enable-controls or --disable-controls was given.
5719if test "${enable_controls+set}" = set; then
5720 enableval="$enable_controls"
a0b9e27f 5721
10f2d63a
VZ
5722 if test "$enableval" = yes; then
5723 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5724 else
5725 ac_cv_use_controls='wxUSE_CONTROLS=no'
5726 fi
a0b9e27f 5727
10f2d63a 5728else
a0b9e27f 5729
10f2d63a
VZ
5730 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5738
5739fi
10f2d63a
VZ
5740
5741
5742 eval "$ac_cv_use_controls"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5748 echo "$ac_t""yes" 1>&6
10f2d63a 5749 else
a0b9e27f 5750 echo "$ac_t""no" 1>&6
10f2d63a 5751 fi
a0b9e27f 5752
10f2d63a
VZ
5753
5754if test "$wxUSE_CONTROLS" = "yes"; then
5755 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5756 DEFAULT_wxUSE_BMPBUTTON=yes
5757 DEFAULT_wxUSE_BUTTON=yes
5758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5759 DEFAULT_wxUSE_CARET=yes
5760 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5761 DEFAULT_wxUSE_CHECKBOX=yes
5762 DEFAULT_wxUSE_CHECKLISTBOX=yes
5763 DEFAULT_wxUSE_CHOICE=yes
5764 DEFAULT_wxUSE_GAUGE=yes
5765 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
5766 DEFAULT_wxUSE_IMAGLIST=yes
5767 DEFAULT_wxUSE_LISTBOX=yes
5768 DEFAULT_wxUSE_LISTCTRL=yes
5769 DEFAULT_wxUSE_NOTEBOOK=yes
5770 DEFAULT_wxUSE_RADIOBOX=yes
5771 DEFAULT_wxUSE_RADIOBTN=yes
5772 DEFAULT_wxUSE_SASH=yes
5773 DEFAULT_wxUSE_SCROLLBAR=yes
5774 DEFAULT_wxUSE_SLIDER=yes
5775 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5776 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5777 DEFAULT_wxUSE_SPLITTER=yes
5778 DEFAULT_wxUSE_STATBMP=yes
5779 DEFAULT_wxUSE_STATBOX=yes
5780 DEFAULT_wxUSE_STATLINE=yes
5781 DEFAULT_wxUSE_STATUSBAR=yes
5782 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5783 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5784 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5785 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5786 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5787 DEFAULT_wxUSE_TOOLTIPS=yes
5788 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5789 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5790 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5791elif test "$wxUSE_CONTROLS" = "no"; then
5792 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5793 DEFAULT_wxUSE_BMPBUTTON=no
5794 DEFAULT_wxUSE_BUTTON=no
5795 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5796 DEFAULT_wxUSE_CARET=no
5797 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5798 DEFAULT_wxUSE_CHECKBOX=no
5799 DEFAULT_wxUSE_CHECKLISTBOX=no
5800 DEFAULT_wxUSE_CHOICE=no
5801 DEFAULT_wxUSE_GAUGE=no
5802 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
5803 DEFAULT_wxUSE_IMAGLIST=no
5804 DEFAULT_wxUSE_LISTBOX=no
5805 DEFAULT_wxUSE_LISTCTRL=no
5806 DEFAULT_wxUSE_NOTEBOOK=no
5807 DEFAULT_wxUSE_RADIOBOX=no
5808 DEFAULT_wxUSE_RADIOBTN=no
5809 DEFAULT_wxUSE_SASH=no
5810 DEFAULT_wxUSE_SCROLLBAR=no
5811 DEFAULT_wxUSE_SLIDER=no
5812 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5813 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5814 DEFAULT_wxUSE_SPLITTER=no
5815 DEFAULT_wxUSE_STATBMP=no
5816 DEFAULT_wxUSE_STATBOX=no
5817 DEFAULT_wxUSE_STATLINE=no
5818 DEFAULT_wxUSE_STATUSBAR=no
5819 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5820 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5821 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5822 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5823 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5824 DEFAULT_wxUSE_TOOLTIPS=no
5825 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5826 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5827 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5828fi
5829
ac0c4cc3
DE
5830## FIXME: This is a blatant hack
5831if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5832 wxUSE_PRINTING_ARCHITECTURE=no
5833 wxUSE_HELP=no
5834 wxUSE_CLIPBOARD=no
5835 wxUSE_DRAG_AND_DROP=no
5836 wxUSE_DATAOBJ=no
8b389fab
DE
5837 # Generic notebook requires tab dialog
5838 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 5839 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
5840 DEFAULT_wxUSE_GAUGE=no
5841 DEFAULT_wxUSE_SCROLLBAR=no
5842 DEFAULT_wxUSE_SLIDER=no
5843 DEFAULT_wxUSE_COMBOBOX=no
5844 DEFAULT_wxUSE_CALCTRL=no
5845 DEFAULT_wxUSE_SPINBTN=no
5846 DEFAULT_wxUSE_SPINCTRL=no
5847 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 5848 DEFAULT_wxUSE_COLOURDLG=no
ac0c4cc3
DE
5849 DEFAULT_wxUSE_DRAGIMAGE=no
5850 DEFAULT_wxUSE_FINDREPLDLG=no
5851 DEFAULT_wxUSE_FONTDLG=no
5852 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
5853 DEFAULT_wxUSE_NUMBERDLG=no
5854 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
5855 DEFAULT_wxUSE_SASH=no
5856 DEFAULT_wxUSE_SPLITTER=no
5857 DEFAULT_wxUSE_WIZARDDLG=no
5858 DEFAULT_wxUSE_SPLITTER=no
5859 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
5860fi
5861
8284b0c5 5862
5005acfe
VZ
5863 enablestring=
5864 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
8b389fab 5865echo "configure:5866: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5866 no_cache=0
5867 # Check whether --enable-accel or --disable-accel was given.
5868if test "${enable_accel+set}" = set; then
5869 enableval="$enable_accel"
a0b9e27f 5870
10f2d63a
VZ
5871 if test "$enableval" = yes; then
5872 ac_cv_use_accel='wxUSE_ACCEL=yes'
5873 else
5874 ac_cv_use_accel='wxUSE_ACCEL=no'
5875 fi
a0b9e27f 5876
10f2d63a 5877else
a0b9e27f 5878
10f2d63a
VZ
5879 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5887
5888fi
10f2d63a
VZ
5889
5890
5891 eval "$ac_cv_use_accel"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5897 echo "$ac_t""yes" 1>&6
10f2d63a 5898 else
a0b9e27f 5899 echo "$ac_t""no" 1>&6
10f2d63a 5900 fi
a0b9e27f 5901
10f2d63a 5902
5005acfe
VZ
5903 enablestring=
5904 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
8b389fab 5905echo "configure:5906: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5906 no_cache=0
1e6feb95
VZ
5907 # Check whether --enable-button or --disable-button was given.
5908if test "${enable_button+set}" = set; then
5909 enableval="$enable_button"
a0b9e27f 5910
10f2d63a 5911 if test "$enableval" = yes; then
1e6feb95 5912 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5913 else
1e6feb95 5914 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5915 fi
a0b9e27f 5916
10f2d63a 5917else
a0b9e27f 5918
1e6feb95 5919 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5920 if test "x$LINE" != x ; then
5921 eval "DEFAULT_$LINE"
5922 else
5923 no_cache=1
5924 fi
5925
1e6feb95 5926 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5927
5928fi
10f2d63a
VZ
5929
5930
1e6feb95 5931 eval "$ac_cv_use_button"
10f2d63a 5932 if test "$no_cache" != 1; then
1e6feb95 5933 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5934 fi
5935
1e6feb95 5936 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5937 echo "$ac_t""yes" 1>&6
10f2d63a 5938 else
a0b9e27f 5939 echo "$ac_t""no" 1>&6
10f2d63a 5940 fi
a0b9e27f 5941
10f2d63a 5942
5005acfe
VZ
5943 enablestring=
5944 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
8b389fab 5945echo "configure:5946: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5946 no_cache=0
5947 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5948if test "${enable_bmpbutton+set}" = set; then
5949 enableval="$enable_bmpbutton"
a0b9e27f 5950
10f2d63a
VZ
5951 if test "$enableval" = yes; then
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5953 else
5954 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5955 fi
a0b9e27f 5956
10f2d63a 5957else
a0b9e27f 5958
10f2d63a
VZ
5959 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5967
5968fi
10f2d63a
VZ
5969
5970
5971 eval "$ac_cv_use_bmpbutton"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5977 echo "$ac_t""yes" 1>&6
10f2d63a 5978 else
a0b9e27f 5979 echo "$ac_t""no" 1>&6
10f2d63a 5980 fi
a0b9e27f 5981
10f2d63a 5982
5005acfe
VZ
5983 enablestring=
5984 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
8b389fab 5985echo "configure:5986: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
5986 no_cache=0
5987 # Check whether --enable-calendar or --disable-calendar was given.
5988if test "${enable_calendar+set}" = set; then
5989 enableval="$enable_calendar"
a0b9e27f 5990
1e6feb95
VZ
5991 if test "$enableval" = yes; then
5992 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5993 else
5994 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5995 fi
a0b9e27f 5996
1e6feb95 5997else
a0b9e27f 5998
1e6feb95
VZ
5999 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6007
6008fi
1e6feb95
VZ
6009
6010
6011 eval "$ac_cv_use_calendar"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6017 echo "$ac_t""yes" 1>&6
1e6feb95 6018 else
a0b9e27f 6019 echo "$ac_t""no" 1>&6
1e6feb95 6020 fi
a0b9e27f 6021
1e6feb95 6022
5005acfe
VZ
6023 enablestring=
6024 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
8b389fab 6025echo "configure:6026: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6026 no_cache=0
6027 # Check whether --enable-caret or --disable-caret was given.
6028if test "${enable_caret+set}" = set; then
6029 enableval="$enable_caret"
a0b9e27f 6030
1e6feb95
VZ
6031 if test "$enableval" = yes; then
6032 ac_cv_use_caret='wxUSE_CARET=yes'
6033 else
6034 ac_cv_use_caret='wxUSE_CARET=no'
6035 fi
a0b9e27f 6036
1e6feb95 6037else
a0b9e27f 6038
1e6feb95
VZ
6039 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6047
6048fi
1e6feb95
VZ
6049
6050
6051 eval "$ac_cv_use_caret"
6052 if test "$no_cache" != 1; then
6053 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6054 fi
6055
6056 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6057 echo "$ac_t""yes" 1>&6
1e6feb95 6058 else
a0b9e27f 6059 echo "$ac_t""no" 1>&6
1e6feb95 6060 fi
a0b9e27f 6061
1e6feb95 6062
5005acfe
VZ
6063 enablestring=
6064 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
8b389fab 6065echo "configure:6066: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6066 no_cache=0
6067 # Check whether --enable-checkbox or --disable-checkbox was given.
6068if test "${enable_checkbox+set}" = set; then
6069 enableval="$enable_checkbox"
a0b9e27f 6070
10f2d63a
VZ
6071 if test "$enableval" = yes; then
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6073 else
6074 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6075 fi
a0b9e27f 6076
10f2d63a 6077else
a0b9e27f 6078
10f2d63a
VZ
6079 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6087
6088fi
10f2d63a
VZ
6089
6090
6091 eval "$ac_cv_use_checkbox"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6097 echo "$ac_t""yes" 1>&6
10f2d63a 6098 else
a0b9e27f 6099 echo "$ac_t""no" 1>&6
10f2d63a 6100 fi
a0b9e27f 6101
10f2d63a 6102
5005acfe
VZ
6103 enablestring=
6104 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
8b389fab 6105echo "configure:6106: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6106 no_cache=0
6107 # Check whether --enable-checklst or --disable-checklst was given.
6108if test "${enable_checklst+set}" = set; then
6109 enableval="$enable_checklst"
a0b9e27f 6110
10f2d63a
VZ
6111 if test "$enableval" = yes; then
6112 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6113 else
6114 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6115 fi
a0b9e27f 6116
10f2d63a 6117else
a0b9e27f 6118
10f2d63a
VZ
6119 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6127
6128fi
10f2d63a
VZ
6129
6130
6131 eval "$ac_cv_use_checklst"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6137 echo "$ac_t""yes" 1>&6
10f2d63a 6138 else
a0b9e27f 6139 echo "$ac_t""no" 1>&6
10f2d63a 6140 fi
a0b9e27f 6141
10f2d63a 6142
5005acfe
VZ
6143 enablestring=
6144 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
8b389fab 6145echo "configure:6146: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6146 no_cache=0
6147 # Check whether --enable-choice or --disable-choice was given.
6148if test "${enable_choice+set}" = set; then
6149 enableval="$enable_choice"
a0b9e27f 6150
10f2d63a
VZ
6151 if test "$enableval" = yes; then
6152 ac_cv_use_choice='wxUSE_CHOICE=yes'
6153 else
6154 ac_cv_use_choice='wxUSE_CHOICE=no'
6155 fi
a0b9e27f 6156
10f2d63a 6157else
a0b9e27f 6158
10f2d63a
VZ
6159 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6167
6168fi
10f2d63a
VZ
6169
6170
6171 eval "$ac_cv_use_choice"
6172 if test "$no_cache" != 1; then
6173 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6174 fi
6175
6176 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6177 echo "$ac_t""yes" 1>&6
10f2d63a 6178 else
a0b9e27f 6179 echo "$ac_t""no" 1>&6
10f2d63a 6180 fi
a0b9e27f 6181
10f2d63a 6182
5005acfe
VZ
6183 enablestring=
6184 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
8b389fab 6185echo "configure:6186: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6186 no_cache=0
6187 # Check whether --enable-combobox or --disable-combobox was given.
6188if test "${enable_combobox+set}" = set; then
6189 enableval="$enable_combobox"
a0b9e27f 6190
10f2d63a
VZ
6191 if test "$enableval" = yes; then
6192 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6193 else
6194 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6195 fi
a0b9e27f 6196
10f2d63a 6197else
a0b9e27f 6198
10f2d63a
VZ
6199 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6207
6208fi
10f2d63a
VZ
6209
6210
6211 eval "$ac_cv_use_combobox"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6217 echo "$ac_t""yes" 1>&6
10f2d63a 6218 else
a0b9e27f 6219 echo "$ac_t""no" 1>&6
10f2d63a 6220 fi
a0b9e27f 6221
10f2d63a 6222
da494b40
MB
6223 enablestring=
6224 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
8b389fab 6225echo "configure:6226: checking for --${enablestring:-enable}-display" >&5
da494b40
MB
6226 no_cache=0
6227 # Check whether --enable-display or --disable-display was given.
6228if test "${enable_display+set}" = set; then
6229 enableval="$enable_display"
6230
6231 if test "$enableval" = yes; then
6232 ac_cv_use_display='wxUSE_DISPLAY=yes'
6233 else
6234 ac_cv_use_display='wxUSE_DISPLAY=no'
6235 fi
6236
6237else
6238
6239 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6240 if test "x$LINE" != x ; then
6241 eval "DEFAULT_$LINE"
6242 else
6243 no_cache=1
6244 fi
6245
6246 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6247
6248fi
6249
6250
6251 eval "$ac_cv_use_display"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_DISPLAY" = yes; then
6257 echo "$ac_t""yes" 1>&6
6258 else
6259 echo "$ac_t""no" 1>&6
6260 fi
6261
6262
5005acfe
VZ
6263 enablestring=
6264 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
8b389fab 6265echo "configure:6266: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6266 no_cache=0
6267 # Check whether --enable-gauge or --disable-gauge was given.
6268if test "${enable_gauge+set}" = set; then
6269 enableval="$enable_gauge"
a0b9e27f 6270
10f2d63a
VZ
6271 if test "$enableval" = yes; then
6272 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6273 else
6274 ac_cv_use_gauge='wxUSE_GAUGE=no'
6275 fi
a0b9e27f 6276
10f2d63a 6277else
a0b9e27f 6278
10f2d63a
VZ
6279 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6287
6288fi
10f2d63a
VZ
6289
6290
6291 eval "$ac_cv_use_gauge"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6297 echo "$ac_t""yes" 1>&6
10f2d63a 6298 else
a0b9e27f 6299 echo "$ac_t""no" 1>&6
10f2d63a 6300 fi
a0b9e27f 6301
10f2d63a 6302
5005acfe
VZ
6303 enablestring=
6304 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
8b389fab 6305echo "configure:6306: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6306 no_cache=0
6307 # Check whether --enable-grid or --disable-grid was given.
6308if test "${enable_grid+set}" = set; then
6309 enableval="$enable_grid"
a0b9e27f 6310
10f2d63a
VZ
6311 if test "$enableval" = yes; then
6312 ac_cv_use_grid='wxUSE_GRID=yes'
6313 else
6314 ac_cv_use_grid='wxUSE_GRID=no'
6315 fi
a0b9e27f 6316
10f2d63a 6317else
a0b9e27f 6318
10f2d63a
VZ
6319 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6327
6328fi
10f2d63a
VZ
6329
6330
6331 eval "$ac_cv_use_grid"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6337 echo "$ac_t""yes" 1>&6
10f2d63a 6338 else
a0b9e27f 6339 echo "$ac_t""no" 1>&6
10f2d63a 6340 fi
a0b9e27f 6341
10f2d63a 6342
5005acfe
VZ
6343 enablestring=
6344 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
8b389fab 6345echo "configure:6346: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6346 no_cache=0
6347 # Check whether --enable-imaglist or --disable-imaglist was given.
6348if test "${enable_imaglist+set}" = set; then
6349 enableval="$enable_imaglist"
a0b9e27f 6350
10f2d63a
VZ
6351 if test "$enableval" = yes; then
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6353 else
6354 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6355 fi
a0b9e27f 6356
10f2d63a 6357else
a0b9e27f 6358
10f2d63a
VZ
6359 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6367
6368fi
10f2d63a
VZ
6369
6370
6371 eval "$ac_cv_use_imaglist"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6377 echo "$ac_t""yes" 1>&6
10f2d63a 6378 else
a0b9e27f 6379 echo "$ac_t""no" 1>&6
10f2d63a 6380 fi
a0b9e27f 6381
10f2d63a 6382
5005acfe
VZ
6383 enablestring=
6384 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
8b389fab 6385echo "configure:6386: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6386 no_cache=0
6387 # Check whether --enable-listbox or --disable-listbox was given.
6388if test "${enable_listbox+set}" = set; then
6389 enableval="$enable_listbox"
a0b9e27f 6390
10f2d63a
VZ
6391 if test "$enableval" = yes; then
6392 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6393 else
6394 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6395 fi
a0b9e27f 6396
10f2d63a 6397else
a0b9e27f 6398
10f2d63a
VZ
6399 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6407
6408fi
10f2d63a
VZ
6409
6410
6411 eval "$ac_cv_use_listbox"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6417 echo "$ac_t""yes" 1>&6
10f2d63a 6418 else
a0b9e27f 6419 echo "$ac_t""no" 1>&6
10f2d63a 6420 fi
a0b9e27f 6421
10f2d63a 6422
5005acfe
VZ
6423 enablestring=
6424 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
8b389fab 6425echo "configure:6426: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6426 no_cache=0
6427 # Check whether --enable-listctrl or --disable-listctrl was given.
6428if test "${enable_listctrl+set}" = set; then
6429 enableval="$enable_listctrl"
a0b9e27f 6430
10f2d63a
VZ
6431 if test "$enableval" = yes; then
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6433 else
6434 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6435 fi
a0b9e27f 6436
10f2d63a 6437else
a0b9e27f 6438
10f2d63a
VZ
6439 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6447
6448fi
10f2d63a
VZ
6449
6450
6451 eval "$ac_cv_use_listctrl"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6457 echo "$ac_t""yes" 1>&6
10f2d63a 6458 else
a0b9e27f 6459 echo "$ac_t""no" 1>&6
10f2d63a 6460 fi
a0b9e27f 6461
10f2d63a 6462
5005acfe
VZ
6463 enablestring=
6464 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
8b389fab 6465echo "configure:6466: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6466 no_cache=0
6467 # Check whether --enable-notebook or --disable-notebook was given.
6468if test "${enable_notebook+set}" = set; then
6469 enableval="$enable_notebook"
a0b9e27f 6470
10f2d63a
VZ
6471 if test "$enableval" = yes; then
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6473 else
6474 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6475 fi
a0b9e27f 6476
10f2d63a 6477else
a0b9e27f 6478
10f2d63a
VZ
6479 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6480 if test "x$LINE" != x ; then
6481 eval "DEFAULT_$LINE"
6482 else
6483 no_cache=1
6484 fi
6485
6486 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6487
6488fi
10f2d63a
VZ
6489
6490
6491 eval "$ac_cv_use_notebook"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6497 echo "$ac_t""yes" 1>&6
10f2d63a 6498 else
a0b9e27f 6499 echo "$ac_t""no" 1>&6
10f2d63a 6500 fi
a0b9e27f 6501
10f2d63a 6502
5005acfe
VZ
6503 enablestring=
6504 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
8b389fab 6505echo "configure:6506: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6506 no_cache=0
6507 # Check whether --enable-radiobox or --disable-radiobox was given.
6508if test "${enable_radiobox+set}" = set; then
6509 enableval="$enable_radiobox"
a0b9e27f 6510
10f2d63a
VZ
6511 if test "$enableval" = yes; then
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6513 else
6514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6515 fi
a0b9e27f 6516
10f2d63a 6517else
a0b9e27f 6518
10f2d63a
VZ
6519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6527
6528fi
10f2d63a
VZ
6529
6530
6531 eval "$ac_cv_use_radiobox"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6537 echo "$ac_t""yes" 1>&6
10f2d63a 6538 else
a0b9e27f 6539 echo "$ac_t""no" 1>&6
10f2d63a 6540 fi
a0b9e27f 6541
10f2d63a 6542
5005acfe
VZ
6543 enablestring=
6544 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
8b389fab 6545echo "configure:6546: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6546 no_cache=0
6547 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6548if test "${enable_radiobtn+set}" = set; then
6549 enableval="$enable_radiobtn"
a0b9e27f 6550
10f2d63a
VZ
6551 if test "$enableval" = yes; then
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6553 else
6554 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6555 fi
a0b9e27f 6556
10f2d63a 6557else
a0b9e27f 6558
10f2d63a
VZ
6559 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6560 if test "x$LINE" != x ; then
6561 eval "DEFAULT_$LINE"
6562 else
6563 no_cache=1
6564 fi
6565
6566 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6567
6568fi
10f2d63a
VZ
6569
6570
6571 eval "$ac_cv_use_radiobtn"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6577 echo "$ac_t""yes" 1>&6
10f2d63a 6578 else
a0b9e27f 6579 echo "$ac_t""no" 1>&6
10f2d63a 6580 fi
a0b9e27f 6581
10f2d63a 6582
5005acfe
VZ
6583 enablestring=
6584 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
8b389fab 6585echo "configure:6586: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6586 no_cache=0
6587 # Check whether --enable-sash or --disable-sash was given.
6588if test "${enable_sash+set}" = set; then
6589 enableval="$enable_sash"
a0b9e27f 6590
10f2d63a
VZ
6591 if test "$enableval" = yes; then
6592 ac_cv_use_sash='wxUSE_SASH=yes'
6593 else
6594 ac_cv_use_sash='wxUSE_SASH=no'
6595 fi
a0b9e27f 6596
10f2d63a 6597else
a0b9e27f 6598
10f2d63a
VZ
6599 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6607
6608fi
10f2d63a
VZ
6609
6610
6611 eval "$ac_cv_use_sash"
6612 if test "$no_cache" != 1; then
6613 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6614 fi
6615
6616 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6617 echo "$ac_t""yes" 1>&6
10f2d63a 6618 else
a0b9e27f 6619 echo "$ac_t""no" 1>&6
10f2d63a 6620 fi
a0b9e27f 6621
10f2d63a 6622
5005acfe
VZ
6623 enablestring=
6624 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
8b389fab 6625echo "configure:6626: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6626 no_cache=0
6627 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6628if test "${enable_scrollbar+set}" = set; then
6629 enableval="$enable_scrollbar"
a0b9e27f 6630
10f2d63a
VZ
6631 if test "$enableval" = yes; then
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6633 else
6634 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6635 fi
a0b9e27f 6636
10f2d63a 6637else
a0b9e27f 6638
10f2d63a
VZ
6639 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6647
6648fi
10f2d63a
VZ
6649
6650
6651 eval "$ac_cv_use_scrollbar"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6657 echo "$ac_t""yes" 1>&6
10f2d63a 6658 else
a0b9e27f 6659 echo "$ac_t""no" 1>&6
10f2d63a 6660 fi
a0b9e27f 6661
10f2d63a 6662
5005acfe
VZ
6663 enablestring=
6664 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
8b389fab 6665echo "configure:6666: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6666 no_cache=0
6667 # Check whether --enable-slider or --disable-slider was given.
6668if test "${enable_slider+set}" = set; then
6669 enableval="$enable_slider"
a0b9e27f 6670
10f2d63a
VZ
6671 if test "$enableval" = yes; then
6672 ac_cv_use_slider='wxUSE_SLIDER=yes'
6673 else
6674 ac_cv_use_slider='wxUSE_SLIDER=no'
6675 fi
a0b9e27f 6676
10f2d63a 6677else
a0b9e27f 6678
10f2d63a
VZ
6679 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6687
6688fi
10f2d63a
VZ
6689
6690
6691 eval "$ac_cv_use_slider"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6697 echo "$ac_t""yes" 1>&6
10f2d63a 6698 else
a0b9e27f 6699 echo "$ac_t""no" 1>&6
10f2d63a 6700 fi
a0b9e27f 6701
10f2d63a 6702
5005acfe
VZ
6703 enablestring=
6704 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
8b389fab 6705echo "configure:6706: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6706 no_cache=0
6707 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6708if test "${enable_spinbtn+set}" = set; then
6709 enableval="$enable_spinbtn"
a0b9e27f 6710
10f2d63a
VZ
6711 if test "$enableval" = yes; then
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6713 else
6714 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6715 fi
a0b9e27f 6716
10f2d63a 6717else
a0b9e27f 6718
10f2d63a
VZ
6719 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6727
6728fi
10f2d63a
VZ
6729
6730
6731 eval "$ac_cv_use_spinbtn"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6737 echo "$ac_t""yes" 1>&6
10f2d63a 6738 else
a0b9e27f 6739 echo "$ac_t""no" 1>&6
10f2d63a 6740 fi
a0b9e27f 6741
10f2d63a 6742
5005acfe
VZ
6743 enablestring=
6744 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
8b389fab 6745echo "configure:6746: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6746 no_cache=0
6747 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6748if test "${enable_spinctrl+set}" = set; then
6749 enableval="$enable_spinctrl"
a0b9e27f 6750
56cfaa52
RR
6751 if test "$enableval" = yes; then
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6753 else
6754 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6755 fi
a0b9e27f 6756
56cfaa52 6757else
a0b9e27f 6758
56cfaa52
RR
6759 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6767
6768fi
56cfaa52
RR
6769
6770
6771 eval "$ac_cv_use_spinctrl"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6777 echo "$ac_t""yes" 1>&6
56cfaa52 6778 else
a0b9e27f 6779 echo "$ac_t""no" 1>&6
56cfaa52 6780 fi
a0b9e27f 6781
56cfaa52 6782
5005acfe
VZ
6783 enablestring=
6784 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
8b389fab 6785echo "configure:6786: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6786 no_cache=0
6787 # Check whether --enable-splitter or --disable-splitter was given.
6788if test "${enable_splitter+set}" = set; then
6789 enableval="$enable_splitter"
a0b9e27f 6790
10f2d63a
VZ
6791 if test "$enableval" = yes; then
6792 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6793 else
6794 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6795 fi
a0b9e27f 6796
10f2d63a 6797else
a0b9e27f 6798
10f2d63a
VZ
6799 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6800 if test "x$LINE" != x ; then
6801 eval "DEFAULT_$LINE"
6802 else
6803 no_cache=1
6804 fi
6805
6806 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6807
6808fi
10f2d63a
VZ
6809
6810
6811 eval "$ac_cv_use_splitter"
6812 if test "$no_cache" != 1; then
6813 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6814 fi
6815
6816 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6817 echo "$ac_t""yes" 1>&6
10f2d63a 6818 else
a0b9e27f 6819 echo "$ac_t""no" 1>&6
10f2d63a 6820 fi
a0b9e27f 6821
10f2d63a 6822
5005acfe
VZ
6823 enablestring=
6824 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
8b389fab 6825echo "configure:6826: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6826 no_cache=0
6827 # Check whether --enable-statbmp or --disable-statbmp was given.
6828if test "${enable_statbmp+set}" = set; then
6829 enableval="$enable_statbmp"
a0b9e27f 6830
10f2d63a
VZ
6831 if test "$enableval" = yes; then
6832 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6833 else
6834 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6835 fi
a0b9e27f 6836
10f2d63a 6837else
a0b9e27f 6838
10f2d63a
VZ
6839 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6840 if test "x$LINE" != x ; then
6841 eval "DEFAULT_$LINE"
6842 else
6843 no_cache=1
6844 fi
6845
6846 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6847
6848fi
10f2d63a
VZ
6849
6850
6851 eval "$ac_cv_use_statbmp"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6857 echo "$ac_t""yes" 1>&6
10f2d63a 6858 else
a0b9e27f 6859 echo "$ac_t""no" 1>&6
10f2d63a 6860 fi
a0b9e27f 6861
10f2d63a 6862
5005acfe
VZ
6863 enablestring=
6864 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
8b389fab 6865echo "configure:6866: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6866 no_cache=0
6867 # Check whether --enable-statbox or --disable-statbox was given.
6868if test "${enable_statbox+set}" = set; then
6869 enableval="$enable_statbox"
a0b9e27f 6870
10f2d63a
VZ
6871 if test "$enableval" = yes; then
6872 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6873 else
6874 ac_cv_use_statbox='wxUSE_STATBOX=no'
6875 fi
a0b9e27f 6876
10f2d63a 6877else
a0b9e27f 6878
10f2d63a
VZ
6879 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
6886 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6887
6888fi
10f2d63a
VZ
6889
6890
6891 eval "$ac_cv_use_statbox"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6897 echo "$ac_t""yes" 1>&6
10f2d63a 6898 else
a0b9e27f 6899 echo "$ac_t""no" 1>&6
10f2d63a 6900 fi
a0b9e27f 6901
10f2d63a 6902
5005acfe
VZ
6903 enablestring=
6904 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
8b389fab 6905echo "configure:6906: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6906 no_cache=0
6907 # Check whether --enable-statline or --disable-statline was given.
6908if test "${enable_statline+set}" = set; then
6909 enableval="$enable_statline"
a0b9e27f 6910
10f2d63a
VZ
6911 if test "$enableval" = yes; then
6912 ac_cv_use_statline='wxUSE_STATLINE=yes'
6913 else
6914 ac_cv_use_statline='wxUSE_STATLINE=no'
6915 fi
a0b9e27f 6916
10f2d63a 6917else
a0b9e27f 6918
10f2d63a
VZ
6919 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6920 if test "x$LINE" != x ; then
6921 eval "DEFAULT_$LINE"
6922 else
6923 no_cache=1
6924 fi
6925
6926 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6927
6928fi
10f2d63a
VZ
6929
6930
6931 eval "$ac_cv_use_statline"
6932 if test "$no_cache" != 1; then
6933 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6934 fi
6935
6936 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6937 echo "$ac_t""yes" 1>&6
10f2d63a 6938 else
a0b9e27f 6939 echo "$ac_t""no" 1>&6
10f2d63a 6940 fi
a0b9e27f 6941
10f2d63a 6942
5005acfe
VZ
6943 enablestring=
6944 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
8b389fab 6945echo "configure:6946: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
6946 no_cache=0
6947 # Check whether --enable-stattext or --disable-stattext was given.
6948if test "${enable_stattext+set}" = set; then
6949 enableval="$enable_stattext"
a0b9e27f 6950
1e6feb95
VZ
6951 if test "$enableval" = yes; then
6952 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6953 else
6954 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6955 fi
a0b9e27f 6956
1e6feb95 6957else
a0b9e27f 6958
1e6feb95
VZ
6959 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6967
6968fi
1e6feb95
VZ
6969
6970
6971 eval "$ac_cv_use_stattext"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6977 echo "$ac_t""yes" 1>&6
1e6feb95 6978 else
a0b9e27f 6979 echo "$ac_t""no" 1>&6
1e6feb95 6980 fi
a0b9e27f 6981
1e6feb95 6982
5005acfe
VZ
6983 enablestring=
6984 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
8b389fab 6985echo "configure:6986: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
6986 no_cache=0
6987 # Check whether --enable-statusbar or --disable-statusbar was given.
6988if test "${enable_statusbar+set}" = set; then
6989 enableval="$enable_statusbar"
a0b9e27f 6990
10f2d63a
VZ
6991 if test "$enableval" = yes; then
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6993 else
6994 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6995 fi
a0b9e27f 6996
10f2d63a 6997else
a0b9e27f 6998
10f2d63a
VZ
6999 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7000 if test "x$LINE" != x ; then
7001 eval "DEFAULT_$LINE"
7002 else
7003 no_cache=1
7004 fi
7005
7006 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7007
7008fi
10f2d63a
VZ
7009
7010
7011 eval "$ac_cv_use_statusbar"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7017 echo "$ac_t""yes" 1>&6
10f2d63a 7018 else
a0b9e27f 7019 echo "$ac_t""no" 1>&6
10f2d63a 7020 fi
a0b9e27f 7021
10f2d63a 7022
5005acfe
VZ
7023 enablestring=
7024 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
8b389fab 7025echo "configure:7026: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7026 no_cache=0
7027 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7028if test "${enable_tabdialog+set}" = set; then
7029 enableval="$enable_tabdialog"
a0b9e27f 7030
10f2d63a
VZ
7031 if test "$enableval" = yes; then
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7033 else
7034 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7035 fi
a0b9e27f 7036
10f2d63a 7037else
a0b9e27f 7038
10f2d63a
VZ
7039 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7047
7048fi
10f2d63a
VZ
7049
7050
7051 eval "$ac_cv_use_tabdialog"
7052 if test "$no_cache" != 1; then
7053 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7054 fi
7055
7056 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7057 echo "$ac_t""yes" 1>&6
10f2d63a 7058 else
a0b9e27f 7059 echo "$ac_t""no" 1>&6
10f2d63a 7060 fi
a0b9e27f 7061
10f2d63a 7062
5005acfe
VZ
7063 enablestring=
7064 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
8b389fab 7065echo "configure:7066: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7066 no_cache=0
7067 # Check whether --enable-textctrl or --disable-textctrl was given.
7068if test "${enable_textctrl+set}" = set; then
7069 enableval="$enable_textctrl"
a0b9e27f 7070
1e6feb95
VZ
7071 if test "$enableval" = yes; then
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7073 else
7074 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7075 fi
a0b9e27f 7076
1e6feb95 7077else
a0b9e27f 7078
1e6feb95
VZ
7079 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7087
7088fi
1e6feb95
VZ
7089
7090
7091 eval "$ac_cv_use_textctrl"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7097 echo "$ac_t""yes" 1>&6
1e6feb95 7098 else
a0b9e27f 7099 echo "$ac_t""no" 1>&6
1e6feb95 7100 fi
a0b9e27f 7101
1e6feb95 7102
5005acfe
VZ
7103 enablestring=
7104 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
8b389fab 7105echo "configure:7106: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7106 no_cache=0
7107 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7108if test "${enable_togglebtn+set}" = set; then
7109 enableval="$enable_togglebtn"
a0b9e27f 7110
1db8dc4a
VZ
7111 if test "$enableval" = yes; then
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7113 else
7114 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7115 fi
a0b9e27f 7116
1db8dc4a 7117else
a0b9e27f 7118
1db8dc4a
VZ
7119 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7120 if test "x$LINE" != x ; then
7121 eval "DEFAULT_$LINE"
7122 else
7123 no_cache=1
7124 fi
7125
7126 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7127
7128fi
1db8dc4a
VZ
7129
7130
7131 eval "$ac_cv_use_togglebtn"
7132 if test "$no_cache" != 1; then
7133 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7134 fi
7135
7136 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7137 echo "$ac_t""yes" 1>&6
1db8dc4a 7138 else
a0b9e27f 7139 echo "$ac_t""no" 1>&6
1db8dc4a 7140 fi
a0b9e27f 7141
1db8dc4a 7142
5005acfe
VZ
7143 enablestring=
7144 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
8b389fab 7145echo "configure:7146: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7146 no_cache=0
7147 # Check whether --enable-toolbar or --disable-toolbar was given.
7148if test "${enable_toolbar+set}" = set; then
7149 enableval="$enable_toolbar"
a0b9e27f 7150
10f2d63a
VZ
7151 if test "$enableval" = yes; then
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7153 else
7154 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7155 fi
a0b9e27f 7156
10f2d63a 7157else
a0b9e27f 7158
10f2d63a
VZ
7159 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7167
7168fi
10f2d63a
VZ
7169
7170
7171 eval "$ac_cv_use_toolbar"
7172 if test "$no_cache" != 1; then
7173 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7174 fi
7175
7176 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7177 echo "$ac_t""yes" 1>&6
10f2d63a 7178 else
a0b9e27f 7179 echo "$ac_t""no" 1>&6
10f2d63a 7180 fi
a0b9e27f 7181
10f2d63a 7182
5005acfe
VZ
7183 enablestring=
7184 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
8b389fab 7185echo "configure:7186: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7186 no_cache=0
7187 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7188if test "${enable_tbarnative+set}" = set; then
7189 enableval="$enable_tbarnative"
a0b9e27f 7190
360d6699
VZ
7191 if test "$enableval" = yes; then
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7193 else
7194 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7195 fi
a0b9e27f 7196
360d6699 7197else
a0b9e27f 7198
360d6699
VZ
7199 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7207
7208fi
360d6699
VZ
7209
7210
7211 eval "$ac_cv_use_tbarnative"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7217 echo "$ac_t""yes" 1>&6
360d6699 7218 else
a0b9e27f 7219 echo "$ac_t""no" 1>&6
360d6699 7220 fi
a0b9e27f 7221
360d6699 7222
5005acfe
VZ
7223 enablestring=
7224 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
8b389fab 7225echo "configure:7226: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7226 no_cache=0
7227 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7228if test "${enable_tbarsmpl+set}" = set; then
7229 enableval="$enable_tbarsmpl"
a0b9e27f 7230
360d6699
VZ
7231 if test "$enableval" = yes; then
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7233 else
7234 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7235 fi
a0b9e27f 7236
360d6699 7237else
a0b9e27f 7238
360d6699
VZ
7239 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7240 if test "x$LINE" != x ; then
7241 eval "DEFAULT_$LINE"
7242 else
7243 no_cache=1
7244 fi
7245
7246 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7247
7248fi
360d6699
VZ
7249
7250
7251 eval "$ac_cv_use_tbarsmpl"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7257 echo "$ac_t""yes" 1>&6
360d6699 7258 else
a0b9e27f 7259 echo "$ac_t""no" 1>&6
360d6699 7260 fi
a0b9e27f 7261
360d6699 7262
5005acfe
VZ
7263 enablestring=
7264 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
8b389fab 7265echo "configure:7266: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7266 no_cache=0
7267 # Check whether --enable-treectrl or --disable-treectrl was given.
7268if test "${enable_treectrl+set}" = set; then
7269 enableval="$enable_treectrl"
a0b9e27f 7270
10f2d63a
VZ
7271 if test "$enableval" = yes; then
7272 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7273 else
7274 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7275 fi
a0b9e27f 7276
10f2d63a 7277else
a0b9e27f 7278
10f2d63a
VZ
7279 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7287
7288fi
10f2d63a
VZ
7289
7290
1e6feb95
VZ
7291 eval "$ac_cv_use_treectrl"
7292 if test "$no_cache" != 1; then
7293 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7294 fi
7295
7296 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7297 echo "$ac_t""yes" 1>&6
1e6feb95 7298 else
a0b9e27f 7299 echo "$ac_t""no" 1>&6
1e6feb95 7300 fi
a0b9e27f 7301
1e6feb95 7302
5005acfe
VZ
7303 enablestring=
7304 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
8b389fab 7305echo "configure:7306: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7306 no_cache=0
7307 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7308if test "${enable_tipwindow+set}" = set; then
7309 enableval="$enable_tipwindow"
a0b9e27f 7310
9926e4a4
VZ
7311 if test "$enableval" = yes; then
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7313 else
7314 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7315 fi
a0b9e27f 7316
9926e4a4 7317else
a0b9e27f 7318
9926e4a4
VZ
7319 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7320 if test "x$LINE" != x ; then
7321 eval "DEFAULT_$LINE"
7322 else
7323 no_cache=1
7324 fi
7325
7326 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7327
7328fi
9926e4a4
VZ
7329
7330
7331 eval "$ac_cv_use_tipwindow"
7332 if test "$no_cache" != 1; then
7333 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7334 fi
7335
7336 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7337 echo "$ac_t""yes" 1>&6
9926e4a4 7338 else
a0b9e27f 7339 echo "$ac_t""no" 1>&6
9926e4a4 7340 fi
a0b9e27f 7341
9926e4a4 7342
5005acfe
VZ
7343 enablestring=
7344 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
8b389fab 7345echo "configure:7346: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7346 no_cache=0
7347 # Check whether --enable-popupwin or --disable-popupwin was given.
7348if test "${enable_popupwin+set}" = set; then
7349 enableval="$enable_popupwin"
a0b9e27f 7350
9f41d601
RR
7351 if test "$enableval" = yes; then
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7353 else
7354 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7355 fi
a0b9e27f 7356
9f41d601 7357else
a0b9e27f 7358
9f41d601
RR
7359 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7367
7368fi
9f41d601
RR
7369
7370
7371 eval "$ac_cv_use_popupwin"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7377 echo "$ac_t""yes" 1>&6
9f41d601 7378 else
a0b9e27f 7379 echo "$ac_t""no" 1>&6
9f41d601 7380 fi
a0b9e27f 7381
52127426 7382
8284b0c5
MB
7383
7384
5005acfe
VZ
7385 enablestring=
7386 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
8b389fab 7387echo "configure:7388: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7388 no_cache=0
7389 # Check whether --enable-commondlg or --disable-commondlg was given.
7390if test "${enable_commondlg+set}" = set; then
7391 enableval="$enable_commondlg"
a0b9e27f 7392
1e6feb95
VZ
7393 if test "$enableval" = yes; then
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7395 else
7396 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7397 fi
a0b9e27f 7398
1e6feb95 7399else
a0b9e27f 7400
1e6feb95
VZ
7401 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7409
7410fi
1e6feb95
VZ
7411
7412
7413 eval "$ac_cv_use_commondlg"
7414 if test "$no_cache" != 1; then
7415 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7416 fi
7417
7418 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7419 echo "$ac_t""yes" 1>&6
1e6feb95 7420 else
a0b9e27f 7421 echo "$ac_t""no" 1>&6
1e6feb95 7422 fi
a0b9e27f 7423
1e6feb95 7424
5005acfe
VZ
7425 enablestring=
7426 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
8b389fab 7427echo "configure:7428: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7428 no_cache=0
7429 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7430if test "${enable_choicedlg+set}" = set; then
7431 enableval="$enable_choicedlg"
a0b9e27f 7432
1e6feb95
VZ
7433 if test "$enableval" = yes; then
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7435 else
7436 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7437 fi
a0b9e27f 7438
1e6feb95 7439else
a0b9e27f 7440
1e6feb95
VZ
7441 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7449
7450fi
1e6feb95
VZ
7451
7452
7453 eval "$ac_cv_use_choicedlg"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7459 echo "$ac_t""yes" 1>&6
1e6feb95 7460 else
a0b9e27f 7461 echo "$ac_t""no" 1>&6
1e6feb95 7462 fi
a0b9e27f 7463
1e6feb95 7464
5005acfe
VZ
7465 enablestring=
7466 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
8b389fab 7467echo "configure:7468: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7468 no_cache=0
7469 # Check whether --enable-coldlg or --disable-coldlg was given.
7470if test "${enable_coldlg+set}" = set; then
7471 enableval="$enable_coldlg"
a0b9e27f 7472
1e6feb95
VZ
7473 if test "$enableval" = yes; then
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7475 else
7476 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7477 fi
a0b9e27f 7478
1e6feb95 7479else
a0b9e27f 7480
1e6feb95
VZ
7481 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7489
7490fi
1e6feb95
VZ
7491
7492
7493 eval "$ac_cv_use_coldlg"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7499 echo "$ac_t""yes" 1>&6
1e6feb95 7500 else
a0b9e27f 7501 echo "$ac_t""no" 1>&6
1e6feb95 7502 fi
a0b9e27f 7503
1e6feb95 7504
5005acfe
VZ
7505 enablestring=
7506 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
8b389fab 7507echo "configure:7508: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7508 no_cache=0
7509 # Check whether --enable-filedlg or --disable-filedlg was given.
7510if test "${enable_filedlg+set}" = set; then
7511 enableval="$enable_filedlg"
a0b9e27f 7512
1e6feb95
VZ
7513 if test "$enableval" = yes; then
7514 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7515 else
7516 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7517 fi
a0b9e27f 7518
1e6feb95 7519else
a0b9e27f 7520
1e6feb95
VZ
7521 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7529
7530fi
1e6feb95
VZ
7531
7532
7533 eval "$ac_cv_use_filedlg"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7539 echo "$ac_t""yes" 1>&6
1e6feb95 7540 else
a0b9e27f 7541 echo "$ac_t""no" 1>&6
1e6feb95 7542 fi
a0b9e27f 7543
1e6feb95 7544
5005acfe
VZ
7545 enablestring=
7546 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
8b389fab 7547echo "configure:7548: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7548 no_cache=0
69d27ff7
MB
7549 # Check whether --enable-finddlg or --disable-finddlg was given.
7550if test "${enable_finddlg+set}" = set; then
7551 enableval="$enable_finddlg"
a0b9e27f 7552
8db37e06 7553 if test "$enableval" = yes; then
69d27ff7 7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7555 else
69d27ff7 7556 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7557 fi
a0b9e27f 7558
8db37e06 7559else
a0b9e27f 7560
8db37e06
VZ
7561 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
69d27ff7 7568 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7569
7570fi
8db37e06
VZ
7571
7572
69d27ff7 7573 eval "$ac_cv_use_finddlg"
8db37e06 7574 if test "$no_cache" != 1; then
69d27ff7 7575 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7576 fi
7577
7578 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7579 echo "$ac_t""yes" 1>&6
8db37e06 7580 else
a0b9e27f 7581 echo "$ac_t""no" 1>&6
8db37e06 7582 fi
a0b9e27f 7583
8db37e06 7584
5005acfe
VZ
7585 enablestring=
7586 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
8b389fab 7587echo "configure:7588: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7588 no_cache=0
7589 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7590if test "${enable_fontdlg+set}" = set; then
7591 enableval="$enable_fontdlg"
a0b9e27f 7592
1e6feb95
VZ
7593 if test "$enableval" = yes; then
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7595 else
7596 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7597 fi
a0b9e27f 7598
1e6feb95 7599else
a0b9e27f 7600
1e6feb95
VZ
7601 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7609
7610fi
1e6feb95
VZ
7611
7612
7613 eval "$ac_cv_use_fontdlg"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7619 echo "$ac_t""yes" 1>&6
1e6feb95 7620 else
a0b9e27f 7621 echo "$ac_t""no" 1>&6
1e6feb95 7622 fi
a0b9e27f 7623
1e6feb95 7624
5005acfe
VZ
7625 enablestring=
7626 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
8b389fab 7627echo "configure:7628: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7628 no_cache=0
7629 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7630if test "${enable_dirdlg+set}" = set; then
7631 enableval="$enable_dirdlg"
a0b9e27f 7632
1e6feb95
VZ
7633 if test "$enableval" = yes; then
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7635 else
7636 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7637 fi
a0b9e27f 7638
1e6feb95 7639else
a0b9e27f 7640
1e6feb95
VZ
7641 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7649
7650fi
1e6feb95
VZ
7651
7652
7653 eval "$ac_cv_use_dirdlg"
10f2d63a 7654 if test "$no_cache" != 1; then
1e6feb95 7655 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7656 fi
7657
1e6feb95 7658 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7659 echo "$ac_t""yes" 1>&6
10f2d63a 7660 else
a0b9e27f 7661 echo "$ac_t""no" 1>&6
10f2d63a 7662 fi
a0b9e27f 7663
698dcdb6 7664
5005acfe
VZ
7665 enablestring=
7666 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
8b389fab 7667echo "configure:7668: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7668 no_cache=0
1e6feb95
VZ
7669 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7670if test "${enable_msgdlg+set}" = set; then
7671 enableval="$enable_msgdlg"
a0b9e27f 7672
10f2d63a 7673 if test "$enableval" = yes; then
1e6feb95 7674 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7675 else
1e6feb95 7676 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7677 fi
a0b9e27f 7678
10f2d63a 7679else
a0b9e27f 7680
1e6feb95 7681 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
1e6feb95 7688 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7689
7690fi
10f2d63a
VZ
7691
7692
1e6feb95 7693 eval "$ac_cv_use_msgdlg"
10f2d63a 7694 if test "$no_cache" != 1; then
1e6feb95 7695 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7696 fi
7697
1e6feb95 7698 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7699 echo "$ac_t""yes" 1>&6
10f2d63a 7700 else
a0b9e27f 7701 echo "$ac_t""no" 1>&6
10f2d63a 7702 fi
a0b9e27f 7703
10f2d63a 7704
5005acfe
VZ
7705 enablestring=
7706 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
8b389fab 7707echo "configure:7708: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7708 no_cache=0
1e6feb95
VZ
7709 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7710if test "${enable_numberdlg+set}" = set; then
7711 enableval="$enable_numberdlg"
a0b9e27f 7712
10f2d63a 7713 if test "$enableval" = yes; then
1e6feb95 7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7715 else
1e6feb95 7716 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7717 fi
a0b9e27f 7718
10f2d63a 7719else
a0b9e27f 7720
1e6feb95 7721 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
1e6feb95 7728 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7729
7730fi
10f2d63a
VZ
7731
7732
1e6feb95 7733 eval "$ac_cv_use_numberdlg"
10f2d63a 7734 if test "$no_cache" != 1; then
1e6feb95 7735 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7736 fi
7737
1e6feb95 7738 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7739 echo "$ac_t""yes" 1>&6
10f2d63a 7740 else
a0b9e27f 7741 echo "$ac_t""no" 1>&6
10f2d63a 7742 fi
a0b9e27f 7743
10f2d63a 7744
5005acfe
VZ
7745 enablestring=
7746 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
8b389fab 7747echo "configure:7748: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7748 no_cache=0
7749 # Check whether --enable-splash or --disable-splash was given.
7750if test "${enable_splash+set}" = set; then
7751 enableval="$enable_splash"
a0b9e27f 7752
cbca9943
VZ
7753 if test "$enableval" = yes; then
7754 ac_cv_use_splash='wxUSE_SPLASH=yes'
7755 else
7756 ac_cv_use_splash='wxUSE_SPLASH=no'
7757 fi
a0b9e27f 7758
cbca9943 7759else
a0b9e27f 7760
cbca9943
VZ
7761 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7762 if test "x$LINE" != x ; then
7763 eval "DEFAULT_$LINE"
7764 else
7765 no_cache=1
7766 fi
7767
7768 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7769
7770fi
cbca9943
VZ
7771
7772
7773 eval "$ac_cv_use_splash"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7779 echo "$ac_t""yes" 1>&6
cbca9943 7780 else
a0b9e27f 7781 echo "$ac_t""no" 1>&6
cbca9943 7782 fi
a0b9e27f 7783
cbca9943 7784
5005acfe
VZ
7785 enablestring=
7786 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
8b389fab 7787echo "configure:7788: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7788 no_cache=0
7789 # Check whether --enable-textdlg or --disable-textdlg was given.
7790if test "${enable_textdlg+set}" = set; then
7791 enableval="$enable_textdlg"
a0b9e27f 7792
10f2d63a
VZ
7793 if test "$enableval" = yes; then
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7795 else
7796 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7797 fi
a0b9e27f 7798
10f2d63a 7799else
a0b9e27f 7800
10f2d63a
VZ
7801 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7809
7810fi
10f2d63a
VZ
7811
7812
7813 eval "$ac_cv_use_textdlg"
7814 if test "$no_cache" != 1; then
7815 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7816 fi
7817
7818 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7819 echo "$ac_t""yes" 1>&6
10f2d63a 7820 else
a0b9e27f 7821 echo "$ac_t""no" 1>&6
10f2d63a 7822 fi
a0b9e27f 7823
10f2d63a 7824
5005acfe
VZ
7825 enablestring=
7826 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
8b389fab 7827echo "configure:7828: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7828 no_cache=0
7829 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7830if test "${enable_tipdlg+set}" = set; then
7831 enableval="$enable_tipdlg"
a0b9e27f 7832
10f2d63a
VZ
7833 if test "$enableval" = yes; then
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7835 else
7836 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7837 fi
a0b9e27f 7838
10f2d63a 7839else
a0b9e27f 7840
10f2d63a
VZ
7841 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7849
7850fi
10f2d63a
VZ
7851
7852
7853 eval "$ac_cv_use_tipdlg"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7859 echo "$ac_t""yes" 1>&6
10f2d63a 7860 else
a0b9e27f 7861 echo "$ac_t""no" 1>&6
10f2d63a 7862 fi
a0b9e27f 7863
10f2d63a 7864
5005acfe
VZ
7865 enablestring=
7866 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
8b389fab 7867echo "configure:7868: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7868 no_cache=0
7869 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7870if test "${enable_progressdlg+set}" = set; then
7871 enableval="$enable_progressdlg"
a0b9e27f 7872
10f2d63a
VZ
7873 if test "$enableval" = yes; then
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7875 else
7876 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7877 fi
a0b9e27f 7878
10f2d63a 7879else
a0b9e27f 7880
10f2d63a
VZ
7881 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7882 if test "x$LINE" != x ; then
7883 eval "DEFAULT_$LINE"
7884 else
7885 no_cache=1
7886 fi
7887
7888 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7889
7890fi
10f2d63a
VZ
7891
7892
7893 eval "$ac_cv_use_progressdlg"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7899 echo "$ac_t""yes" 1>&6
10f2d63a 7900 else
a0b9e27f 7901 echo "$ac_t""no" 1>&6
10f2d63a 7902 fi
a0b9e27f 7903
10f2d63a 7904
5005acfe
VZ
7905 enablestring=
7906 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8b389fab 7907echo "configure:7908: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7908 no_cache=0
7909 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7910if test "${enable_wizarddlg+set}" = set; then
7911 enableval="$enable_wizarddlg"
a0b9e27f 7912
b1f5d087
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7915 else
7916 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7917 fi
a0b9e27f 7918
b1f5d087 7919else
a0b9e27f 7920
b1f5d087
VZ
7921 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7929
7930fi
b1f5d087
VZ
7931
7932
7933 eval "$ac_cv_use_wizarddlg"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7939 echo "$ac_t""yes" 1>&6
b1f5d087 7940 else
a0b9e27f 7941 echo "$ac_t""no" 1>&6
b1f5d087 7942 fi
a0b9e27f 7943
8284b0c5
MB
7944
7945
52127426 7946
5005acfe
VZ
7947 enablestring=
7948 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8b389fab 7949echo "configure:7950: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
7950 no_cache=0
7951 # Check whether --enable-menus or --disable-menus was given.
7952if test "${enable_menus+set}" = set; then
7953 enableval="$enable_menus"
a0b9e27f 7954
1e6feb95
VZ
7955 if test "$enableval" = yes; then
7956 ac_cv_use_menus='wxUSE_MENUS=yes'
7957 else
7958 ac_cv_use_menus='wxUSE_MENUS=no'
7959 fi
a0b9e27f 7960
1e6feb95 7961else
a0b9e27f 7962
1e6feb95
VZ
7963 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7964 if test "x$LINE" != x ; then
7965 eval "DEFAULT_$LINE"
7966 else
7967 no_cache=1
7968 fi
7969
7970 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7971
7972fi
1e6feb95
VZ
7973
7974
7975 eval "$ac_cv_use_menus"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7981 echo "$ac_t""yes" 1>&6
1e6feb95 7982 else
a0b9e27f 7983 echo "$ac_t""no" 1>&6
1e6feb95 7984 fi
a0b9e27f 7985
1e6feb95 7986
5005acfe
VZ
7987 enablestring=
7988 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8b389fab 7989echo "configure:7990: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
7990 no_cache=0
7991 # Check whether --enable-miniframe or --disable-miniframe was given.
7992if test "${enable_miniframe+set}" = set; then
7993 enableval="$enable_miniframe"
a0b9e27f 7994
10f2d63a
VZ
7995 if test "$enableval" = yes; then
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7997 else
7998 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7999 fi
a0b9e27f 8000
10f2d63a 8001else
a0b9e27f 8002
10f2d63a
VZ
8003 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8011
8012fi
10f2d63a
VZ
8013
8014
8015 eval "$ac_cv_use_miniframe"
8016 if test "$no_cache" != 1; then
8017 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8018 fi
8019
8020 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8021 echo "$ac_t""yes" 1>&6
10f2d63a 8022 else
a0b9e27f 8023 echo "$ac_t""no" 1>&6
10f2d63a 8024 fi
a0b9e27f 8025
10f2d63a 8026
5005acfe
VZ
8027 enablestring=
8028 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8b389fab 8029echo "configure:8030: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8030 no_cache=0
8031 # Check whether --enable-tooltips or --disable-tooltips was given.
8032if test "${enable_tooltips+set}" = set; then
8033 enableval="$enable_tooltips"
a0b9e27f 8034
10f2d63a
VZ
8035 if test "$enableval" = yes; then
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8037 else
8038 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8039 fi
a0b9e27f 8040
10f2d63a 8041else
a0b9e27f 8042
10f2d63a
VZ
8043 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8044 if test "x$LINE" != x ; then
8045 eval "DEFAULT_$LINE"
8046 else
8047 no_cache=1
8048 fi
8049
8050 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8051
8052fi
10f2d63a
VZ
8053
8054
8055 eval "$ac_cv_use_tooltips"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8061 echo "$ac_t""yes" 1>&6
10f2d63a 8062 else
a0b9e27f 8063 echo "$ac_t""no" 1>&6
10f2d63a 8064 fi
a0b9e27f 8065
10f2d63a 8066
5005acfe
VZ
8067 enablestring=
8068 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8b389fab 8069echo "configure:8070: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8070 no_cache=0
8071 # Check whether --enable-splines or --disable-splines was given.
8072if test "${enable_splines+set}" = set; then
8073 enableval="$enable_splines"
a0b9e27f 8074
10f2d63a
VZ
8075 if test "$enableval" = yes; then
8076 ac_cv_use_splines='wxUSE_SPLINES=yes'
8077 else
8078 ac_cv_use_splines='wxUSE_SPLINES=no'
8079 fi
a0b9e27f 8080
10f2d63a 8081else
a0b9e27f 8082
10f2d63a
VZ
8083 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8091
8092fi
10f2d63a
VZ
8093
8094
8095 eval "$ac_cv_use_splines"
8096 if test "$no_cache" != 1; then
8097 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8098 fi
8099
8100 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8101 echo "$ac_t""yes" 1>&6
10f2d63a 8102 else
a0b9e27f 8103 echo "$ac_t""no" 1>&6
10f2d63a 8104 fi
a0b9e27f 8105
10f2d63a 8106
5005acfe
VZ
8107 enablestring=
8108 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8b389fab 8109echo "configure:8110: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8110 no_cache=0
8111 # Check whether --enable-validators or --disable-validators was given.
8112if test "${enable_validators+set}" = set; then
8113 enableval="$enable_validators"
a0b9e27f 8114
10f2d63a
VZ
8115 if test "$enableval" = yes; then
8116 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8117 else
8118 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8119 fi
a0b9e27f 8120
10f2d63a 8121else
a0b9e27f 8122
10f2d63a
VZ
8123 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8131
8132fi
10f2d63a
VZ
8133
8134
8135 eval "$ac_cv_use_validators"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8141 echo "$ac_t""yes" 1>&6
10f2d63a 8142 else
a0b9e27f 8143 echo "$ac_t""no" 1>&6
10f2d63a 8144 fi
a0b9e27f 8145
10f2d63a 8146
5005acfe
VZ
8147 enablestring=
8148 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8b389fab 8149echo "configure:8150: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8150 no_cache=0
8151 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8152if test "${enable_busyinfo+set}" = set; then
8153 enableval="$enable_busyinfo"
a0b9e27f 8154
10f2d63a
VZ
8155 if test "$enableval" = yes; then
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8157 else
8158 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8159 fi
a0b9e27f 8160
10f2d63a 8161else
a0b9e27f 8162
10f2d63a
VZ
8163 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8164 if test "x$LINE" != x ; then
8165 eval "DEFAULT_$LINE"
8166 else
8167 no_cache=1
8168 fi
8169
8170 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8171
8172fi
10f2d63a
VZ
8173
8174
8175 eval "$ac_cv_use_busyinfo"
8176 if test "$no_cache" != 1; then
8177 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8178 fi
8179
8180 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8181 echo "$ac_t""yes" 1>&6
10f2d63a 8182 else
a0b9e27f 8183 echo "$ac_t""no" 1>&6
10f2d63a 8184 fi
a0b9e27f 8185
10f2d63a 8186
5005acfe
VZ
8187 enablestring=
8188 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8b389fab 8189echo "configure:8190: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8190 no_cache=0
8191 # Check whether --enable-joystick or --disable-joystick was given.
8192if test "${enable_joystick+set}" = set; then
8193 enableval="$enable_joystick"
a0b9e27f 8194
f6bcfd97
BP
8195 if test "$enableval" = yes; then
8196 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8197 else
8198 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8199 fi
a0b9e27f 8200
f6bcfd97 8201else
a0b9e27f 8202
f6bcfd97
BP
8203 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8204 if test "x$LINE" != x ; then
8205 eval "DEFAULT_$LINE"
8206 else
8207 no_cache=1
8208 fi
8209
8210 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8211
8212fi
f6bcfd97
BP
8213
8214
8215 eval "$ac_cv_use_joystick"
8216 if test "$no_cache" != 1; then
8217 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8218 fi
8219
8220 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8221 echo "$ac_t""yes" 1>&6
f6bcfd97 8222 else
a0b9e27f 8223 echo "$ac_t""no" 1>&6
f6bcfd97 8224 fi
a0b9e27f 8225
698dcdb6 8226
5005acfe
VZ
8227 enablestring=
8228 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8b389fab 8229echo "configure:8230: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8230 no_cache=0
8231 # Check whether --enable-metafile or --disable-metafile was given.
8232if test "${enable_metafile+set}" = set; then
8233 enableval="$enable_metafile"
a0b9e27f 8234
1e6feb95
VZ
8235 if test "$enableval" = yes; then
8236 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8237 else
8238 ac_cv_use_metafile='wxUSE_METAFILE=no'
8239 fi
a0b9e27f 8240
1e6feb95 8241else
a0b9e27f 8242
1e6feb95
VZ
8243 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8244 if test "x$LINE" != x ; then
8245 eval "DEFAULT_$LINE"
8246 else
8247 no_cache=1
8248 fi
8249
8250 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8251
8252fi
1e6feb95
VZ
8253
8254
8255 eval "$ac_cv_use_metafile"
8256 if test "$no_cache" != 1; then
8257 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8258 fi
8259
8260 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8261 echo "$ac_t""yes" 1>&6
1e6feb95 8262 else
a0b9e27f 8263 echo "$ac_t""no" 1>&6
1e6feb95 8264 fi
a0b9e27f 8265
1e6feb95 8266
5005acfe
VZ
8267 enablestring=
8268 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8b389fab 8269echo "configure:8270: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8270 no_cache=0
8271 # Check whether --enable-dragimage or --disable-dragimage was given.
8272if test "${enable_dragimage+set}" = set; then
8273 enableval="$enable_dragimage"
a0b9e27f 8274
24fd6d87
VZ
8275 if test "$enableval" = yes; then
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8277 else
8278 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8279 fi
a0b9e27f 8280
24fd6d87 8281else
a0b9e27f 8282
24fd6d87
VZ
8283 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8284 if test "x$LINE" != x ; then
8285 eval "DEFAULT_$LINE"
8286 else
8287 no_cache=1
8288 fi
8289
8290 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8291
8292fi
24fd6d87
VZ
8293
8294
8295 eval "$ac_cv_use_dragimage"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8301 echo "$ac_t""yes" 1>&6
24fd6d87 8302 else
a0b9e27f 8303 echo "$ac_t""no" 1>&6
24fd6d87 8304 fi
a0b9e27f 8305
52127426 8306
7bb2947d
MB
8307 enablestring=
8308 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8b389fab 8309echo "configure:8310: checking for --${enablestring:-enable}-accessibility" >&5
7bb2947d
MB
8310 no_cache=0
8311 # Check whether --enable-accessibility or --disable-accessibility was given.
8312if test "${enable_accessibility+set}" = set; then
8313 enableval="$enable_accessibility"
8314
8315 if test "$enableval" = yes; then
8316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8317 else
8318 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8319 fi
8320
8321else
8322
8323 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8324 if test "x$LINE" != x ; then
8325 eval "DEFAULT_$LINE"
8326 else
8327 no_cache=1
8328 fi
8329
8330 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8331
8332fi
8333
8334
8335 eval "$ac_cv_use_accessibility"
8336 if test "$no_cache" != 1; then
8337 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8338 fi
8339
8340 if test "$wxUSE_ACCESSIBILITY" = yes; then
8341 echo "$ac_t""yes" 1>&6
8342 else
8343 echo "$ac_t""no" 1>&6
8344 fi
8345
8346
8284b0c5
MB
8347
8348
5005acfe
VZ
8349 enablestring=
8350 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8b389fab 8351echo "configure:8352: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8352 no_cache=0
8353 # Check whether --enable-palette or --disable-palette was given.
8354if test "${enable_palette+set}" = set; then
8355 enableval="$enable_palette"
a0b9e27f 8356
edae8572
VZ
8357 if test "$enableval" = yes; then
8358 ac_cv_use_palette='wxUSE_PALETTE=yes'
8359 else
8360 ac_cv_use_palette='wxUSE_PALETTE=no'
8361 fi
a0b9e27f 8362
edae8572 8363else
a0b9e27f 8364
edae8572
VZ
8365 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8366 if test "x$LINE" != x ; then
8367 eval "DEFAULT_$LINE"
8368 else
8369 no_cache=1
8370 fi
8371
8372 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8373
8374fi
edae8572
VZ
8375
8376
8377 eval "$ac_cv_use_palette"
8378 if test "$no_cache" != 1; then
8379 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8380 fi
8381
8382 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8383 echo "$ac_t""yes" 1>&6
edae8572 8384 else
a0b9e27f 8385 echo "$ac_t""no" 1>&6
edae8572 8386 fi
a0b9e27f 8387
edae8572 8388
5005acfe
VZ
8389 enablestring=
8390 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8b389fab 8391echo "configure:8392: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8392 no_cache=0
8393 # Check whether --enable-image or --disable-image was given.
8394if test "${enable_image+set}" = set; then
8395 enableval="$enable_image"
a0b9e27f 8396
0046ff7c
VS
8397 if test "$enableval" = yes; then
8398 ac_cv_use_image='wxUSE_IMAGE=yes'
8399 else
8400 ac_cv_use_image='wxUSE_IMAGE=no'
8401 fi
a0b9e27f 8402
0046ff7c 8403else
a0b9e27f 8404
0046ff7c
VS
8405 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8413
8414fi
0046ff7c
VS
8415
8416
8417 eval "$ac_cv_use_image"
8418 if test "$no_cache" != 1; then
8419 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8420 fi
8421
8422 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8423 echo "$ac_t""yes" 1>&6
0046ff7c 8424 else
a0b9e27f 8425 echo "$ac_t""no" 1>&6
0046ff7c 8426 fi
a0b9e27f 8427
0046ff7c 8428
5005acfe
VZ
8429 enablestring=
8430 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8b389fab 8431echo "configure:8432: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8432 no_cache=0
8433 # Check whether --enable-gif or --disable-gif was given.
8434if test "${enable_gif+set}" = set; then
8435 enableval="$enable_gif"
a0b9e27f 8436
10f2d63a
VZ
8437 if test "$enableval" = yes; then
8438 ac_cv_use_gif='wxUSE_GIF=yes'
8439 else
8440 ac_cv_use_gif='wxUSE_GIF=no'
8441 fi
a0b9e27f 8442
10f2d63a 8443else
a0b9e27f 8444
10f2d63a
VZ
8445 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8453
8454fi
10f2d63a
VZ
8455
8456
8457 eval "$ac_cv_use_gif"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8463 echo "$ac_t""yes" 1>&6
10f2d63a 8464 else
a0b9e27f 8465 echo "$ac_t""no" 1>&6
10f2d63a 8466 fi
a0b9e27f 8467
10f2d63a 8468
5005acfe
VZ
8469 enablestring=
8470 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8b389fab 8471echo "configure:8472: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8472 no_cache=0
8473 # Check whether --enable-pcx or --disable-pcx was given.
8474if test "${enable_pcx+set}" = set; then
8475 enableval="$enable_pcx"
a0b9e27f 8476
10f2d63a
VZ
8477 if test "$enableval" = yes; then
8478 ac_cv_use_pcx='wxUSE_PCX=yes'
8479 else
8480 ac_cv_use_pcx='wxUSE_PCX=no'
8481 fi
a0b9e27f 8482
10f2d63a 8483else
a0b9e27f 8484
10f2d63a
VZ
8485 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8493
8494fi
10f2d63a
VZ
8495
8496
8497 eval "$ac_cv_use_pcx"
8498 if test "$no_cache" != 1; then
8499 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8500 fi
8501
8502 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8503 echo "$ac_t""yes" 1>&6
10f2d63a 8504 else
a0b9e27f 8505 echo "$ac_t""no" 1>&6
10f2d63a 8506 fi
a0b9e27f 8507
10f2d63a 8508
5005acfe
VZ
8509 enablestring=
8510 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8b389fab 8511echo "configure:8512: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8512 no_cache=0
8513 # Check whether --enable-iff or --disable-iff was given.
8514if test "${enable_iff+set}" = set; then
8515 enableval="$enable_iff"
a0b9e27f 8516
4b6b4dfc
RR
8517 if test "$enableval" = yes; then
8518 ac_cv_use_iff='wxUSE_IFF=yes'
8519 else
8520 ac_cv_use_iff='wxUSE_IFF=no'
8521 fi
a0b9e27f 8522
4b6b4dfc 8523else
a0b9e27f 8524
4b6b4dfc
RR
8525 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8533
8534fi
4b6b4dfc
RR
8535
8536
8537 eval "$ac_cv_use_iff"
8538 if test "$no_cache" != 1; then
8539 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8540 fi
8541
8542 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8543 echo "$ac_t""yes" 1>&6
4b6b4dfc 8544 else
a0b9e27f 8545 echo "$ac_t""no" 1>&6
4b6b4dfc 8546 fi
a0b9e27f 8547
4b6b4dfc 8548
5005acfe
VZ
8549 enablestring=
8550 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8b389fab 8551echo "configure:8552: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8552 no_cache=0
8553 # Check whether --enable-pnm or --disable-pnm was given.
8554if test "${enable_pnm+set}" = set; then
8555 enableval="$enable_pnm"
a0b9e27f 8556
10f2d63a
VZ
8557 if test "$enableval" = yes; then
8558 ac_cv_use_pnm='wxUSE_PNM=yes'
8559 else
8560 ac_cv_use_pnm='wxUSE_PNM=no'
8561 fi
a0b9e27f 8562
10f2d63a 8563else
a0b9e27f 8564
10f2d63a
VZ
8565 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8573
8574fi
10f2d63a
VZ
8575
8576
8577 eval "$ac_cv_use_pnm"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8583 echo "$ac_t""yes" 1>&6
10f2d63a 8584 else
a0b9e27f 8585 echo "$ac_t""no" 1>&6
10f2d63a 8586 fi
a0b9e27f 8587
10f2d63a 8588
5005acfe
VZ
8589 enablestring=
8590 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8b389fab 8591echo "configure:8592: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8592 no_cache=0
69d27ff7
MB
8593 # Check whether --enable-xpm or --disable-xpm was given.
8594if test "${enable_xpm+set}" = set; then
8595 enableval="$enable_xpm"
a0b9e27f 8596
0046ff7c 8597 if test "$enableval" = yes; then
69d27ff7 8598 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8599 else
69d27ff7 8600 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8601 fi
a0b9e27f 8602
0046ff7c 8603else
a0b9e27f 8604
0046ff7c
VS
8605 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8606 if test "x$LINE" != x ; then
8607 eval "DEFAULT_$LINE"
8608 else
8609 no_cache=1
8610 fi
8611
69d27ff7 8612 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8613
8614fi
0046ff7c
VS
8615
8616
69d27ff7 8617 eval "$ac_cv_use_xpm"
0046ff7c 8618 if test "$no_cache" != 1; then
69d27ff7 8619 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8620 fi
8621
8622 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8623 echo "$ac_t""yes" 1>&6
0046ff7c 8624 else
a0b9e27f 8625 echo "$ac_t""no" 1>&6
0046ff7c 8626 fi
a0b9e27f 8627
0046ff7c 8628
5005acfe
VZ
8629 enablestring=
8630 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8b389fab 8631echo "configure:8632: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8632 no_cache=0
c7206e64
VS
8633 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8634if test "${enable_ico_cur+set}" = set; then
8635 enableval="$enable_ico_cur"
a0b9e27f 8636
658974ae 8637 if test "$enableval" = yes; then
c7206e64 8638 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8639 else
c7206e64 8640 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8641 fi
a0b9e27f 8642
658974ae 8643else
a0b9e27f 8644
658974ae
VS
8645 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8646 if test "x$LINE" != x ; then
8647 eval "DEFAULT_$LINE"
8648 else
8649 no_cache=1
8650 fi
8651
c7206e64 8652 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8653
8654fi
658974ae
VS
8655
8656
c7206e64 8657 eval "$ac_cv_use_ico_cur"
658974ae 8658 if test "$no_cache" != 1; then
c7206e64 8659 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8660 fi
8661
8662 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8663 echo "$ac_t""yes" 1>&6
658974ae 8664 else
a0b9e27f 8665 echo "$ac_t""no" 1>&6
658974ae 8666 fi
a0b9e27f 8667
658974ae 8668
b12915c1
VZ
8669fi
8670
d558c907
VS
8671case "${host}" in
8672 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8673 PATH_IFS=';'
8674 LEX_STEM="lexyy"
d558c907
VS
8675 ;;
8676 *)
8677 PATH_IFS=':'
8678 LEX_STEM="lex.yy"
8679 ;;
8680esac
8681
8284b0c5
MB
8682
8683
10f2d63a
VZ
8684 echo "saving argument cache $wx_arg_cache_file"
8685 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8686
52127426 8687
8284b0c5 8688
a0b9e27f 8689echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8b389fab 8690echo "configure:8691: checking for toolkit" >&5
89e6bf6d
VZ
8691
8692# In Wine, we need to default to MSW, not GTK or MOTIF
8693if test "$wxUSE_WINE" = "yes"; then
8694 DEFAULT_DEFAULT_wxUSE_GTK=0
8695 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8696 DEFAULT_DEFAULT_wxUSE_MSW=1
8697fi
10f2d63a
VZ
8698
8699if test "$wxUSE_GUI" = "yes"; then
8700
3a922bb4 8701 if test "$USE_BEOS" = 1; then
a0b9e27f 8702 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8703 fi
b12915c1 8704
3a922bb4
RL
8705 if test "$TOOLKIT_GIVEN" = 1; then
8706 for toolkit in `echo $ALL_TOOLKITS`; do
8707 var=wxUSE_$toolkit
8708 eval "value=\$${var}"
8709 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8710 done
10f2d63a 8711 else
3a922bb4
RL
8712 for toolkit in `echo $ALL_TOOLKITS`; do
8713 if test "$has_toolkit_in_cache" != 1; then
8714 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8715 else
8716 var=DEFAULT_wxUSE_$toolkit
8717 fi
8718 eval "wxUSE_$toolkit=\$${var}"
8719 done
10f2d63a 8720 fi
10f2d63a 8721
ac0c4cc3
DE
8722 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8723 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8724 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 8725
d558c907 8726 case "${host}" in
6fa882bd 8727 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8728 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8729 esac
10f2d63a 8730
3a922bb4
RL
8731 case "$NUM_TOOLKITS" in
8732 1)
8733 ;;
8734 0)
a0b9e27f 8735 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8736 ;;
8737 *)
a0b9e27f 8738 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8739 esac
10f2d63a 8740
3a922bb4
RL
8741 for toolkit in `echo $ALL_TOOLKITS`; do
8742 var=wxUSE_$toolkit
8743 eval "value=\$${var}"
8744 if test "x$value" != x; then
8745 cache_var=CACHE_$toolkit
8746 eval "cache=\$${cache_var}"
8747 if test "$cache" = 1; then
8748 echo "$var=$value" >> ${wx_arg_cache_file}
8749 fi
8750 if test "$value" = 1; then
8751 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8752 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8753 fi
8754 fi
8755 done
10f2d63a 8756else
a0b9e27f 8757 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8758fi
8759
43d99b6d
VS
8760wants_win32=0
8761doesnt_want_win32=0
17234b26
MB
8762case "${host}" in
8763 *-*-cygwin*)
8764 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8765 wants_win32=1
8766 else
8767 doesnt_want_win32=1
17234b26
MB
8768 fi
8769 ;;
8770 *-*-mingw*)
43d99b6d 8771 wants_win32=1
17234b26
MB
8772 ;;
8773esac
8774
89e6bf6d
VZ
8775if test "$wxUSE_WINE" = "yes"; then
8776 wants_win32=1
8777 CC=winegcc
8778 CXX=wineg++
8779 RESCOMP=wrc
8780fi
8781
43d99b6d 8782if test "$wants_win32" = 1 ; then
17234b26
MB
8783 USE_UNIX=0
8784 USE_WIN32=1
a0b9e27f 8785 cat >> confdefs.h <<\EOF
17234b26 8786#define __WIN32__ 1
a0b9e27f 8787EOF
17234b26 8788
a0b9e27f 8789 cat >> confdefs.h <<\EOF
17234b26 8790#define __WIN95__ 1
a0b9e27f 8791EOF
17234b26 8792
a0b9e27f 8793 cat >> confdefs.h <<\EOF
17234b26 8794#define __WINDOWS__ 1
a0b9e27f 8795EOF
17234b26 8796
a0b9e27f 8797 cat >> confdefs.h <<\EOF
17234b26 8798#define __GNUWIN32__ 1
a0b9e27f 8799EOF
17234b26 8800
a0b9e27f 8801 cat >> confdefs.h <<\EOF
17234b26 8802#define STRICT 1
a0b9e27f 8803EOF
17234b26 8804
a0b9e27f 8805 cat >> confdefs.h <<\EOF
17234b26 8806#define WINVER 0x0400
a0b9e27f 8807EOF
17234b26 8808
43d99b6d
VS
8809fi
8810if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8811 USE_UNIX=1
8812 USE_WIN32=0
8813fi
8814
8815if test "$USE_UNIX" = 1 ; then
8816 wxUSE_UNIX=yes
a0b9e27f 8817 cat >> confdefs.h <<\EOF
17234b26 8818#define __UNIX__ 1
a0b9e27f 8819EOF
17234b26
MB
8820
8821fi
8822
8284b0c5 8823
a0b9e27f 8824cat > confcache <<\EOF
10f2d63a
VZ
8825# This file is a shell script that caches the results of configure
8826# tests run on this system so they can be shared between configure
a0b9e27f
MB
8827# scripts and configure runs. It is not useful on other systems.
8828# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8829#
a0b9e27f
MB
8830# By default, configure uses ./config.cache as the cache file,
8831# creating it if it does not exist already. You can give configure
8832# the --cache-file=FILE option to use a different cache file; that is
8833# what configure does when it calls configure scripts in
8834# subdirectories, so they share the cache.
8835# Giving --cache-file=/dev/null disables caching, for debugging configure.
8836# config.status only pays attention to the cache file if you give it the
8837# --recheck option to rerun configure.
10f2d63a 8838#
a0b9e27f 8839EOF
10f2d63a
VZ
8840# The following way of writing the cache mishandles newlines in values,
8841# but we know of no workaround that is simple, portable, and efficient.
8842# So, don't put newlines in cache variables' values.
8843# Ultrix sh set writes to stderr and can't be redirected directly,
8844# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8845(set) 2>&1 |
8846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8847 *ac_space=\ *)
8848 # `set' does not quote correctly, so add quotes (double-quote substitution
8849 # turns \\\\ into \\, and sed turns \\ into \).
8850 sed -n \
8851 -e "s/'/'\\\\''/g" \
8852 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8853 ;;
8854 *)
8855 # `set' quotes correctly as required by POSIX, so do not add quotes.
8856 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8857 ;;
8858 esac >> confcache
8859if cmp -s $cache_file confcache; then
8860 :
8861else
10f2d63a 8862 if test -w $cache_file; then
a0b9e27f
MB
8863 echo "updating cache $cache_file"
8864 cat confcache > $cache_file
10f2d63a
VZ
8865 else
8866 echo "not updating unwritable cache $cache_file"
8867 fi
8868fi
8869rm -f confcache
8870
a0b9e27f 8871
e59890c3 8872if test "$build" != "$host" ; then
9d353d4a 8873 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8874 CC=$host_alias-gcc
8875 CXX=$host_alias-c++
8876 AR=$host_alias-ar
8877 RANLIB=$host_alias-ranlib
8878 DLLTOOL=$host_alias-dlltool
8879 RESCOMP=$host_alias-windres
8880 LD=$host_alias-ld
8881 NM=$host_alias-nm
8882 STRIP=$host_alias-strip
8883 else
a0b9e27f 8884 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8885 fi
10f2d63a
VZ
8886fi
8887
ec603395 8888CFLAGS=${CFLAGS:=}
a0b9e27f 8889# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8890set dummy gcc; ac_word=$2
a0b9e27f 8891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 8892echo "configure:8893: checking for $ac_word" >&5
a0b9e27f
MB
8893if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8895else
8896 if test -n "$CC"; then
8897 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8898else
a0b9e27f
MB
8899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8900 ac_dummy="$PATH"
8901 for ac_dir in $ac_dummy; do
8902 test -z "$ac_dir" && ac_dir=.
8903 if test -f $ac_dir/$ac_word; then
8904 ac_cv_prog_CC="gcc"
8905 break
8906 fi
8907 done
8908 IFS="$ac_save_ifs"
10f2d63a 8909fi
6232543b 8910fi
a0b9e27f 8911CC="$ac_cv_prog_CC"
6232543b 8912if test -n "$CC"; then
a0b9e27f 8913 echo "$ac_t""$CC" 1>&6
247f5006 8914else
a0b9e27f 8915 echo "$ac_t""no" 1>&6
247f5006
VZ
8916fi
8917
5c6fa7d2
RR
8918if test -z "$CC"; then
8919 # Extract the first word of "cc", so it can be a program name with args.
8920set dummy cc; ac_word=$2
a0b9e27f 8921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 8922echo "configure:8923: checking for $ac_word" >&5
a0b9e27f
MB
8923if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8925else
8926 if test -n "$CC"; then
8927 ac_cv_prog_CC="$CC" # Let the user override the test.
8928else
a0b9e27f 8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8930 ac_prog_rejected=no
a0b9e27f
MB
8931 ac_dummy="$PATH"
8932 for ac_dir in $ac_dummy; do
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/$ac_word; then
8935 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8936 ac_prog_rejected=yes
8937 continue
8938 fi
8939 ac_cv_prog_CC="cc"
8940 break
8941 fi
8942 done
8943 IFS="$ac_save_ifs"
328a083c
RR
8944if test $ac_prog_rejected = yes; then
8945 # We found a bogon in the path, so make sure we never use it.
8946 set dummy $ac_cv_prog_CC
8947 shift
a0b9e27f 8948 if test $# -gt 0; then
328a083c 8949 # We chose a different compiler from the bogus one.
1e487827
VS
8950 # However, it has the same basename, so the bogon will be chosen
8951 # first if we set CC to just the basename; use the full file name.
8952 shift
a0b9e27f 8953 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8954 shift
8955 ac_cv_prog_CC="$@"
703e0a69 8956 fi
1e487827
VS
8957fi
8958fi
8959fi
a0b9e27f 8960CC="$ac_cv_prog_CC"
1e487827 8961if test -n "$CC"; then
a0b9e27f 8962 echo "$ac_t""$CC" 1>&6
703e0a69 8963else
a0b9e27f 8964 echo "$ac_t""no" 1>&6
703e0a69 8965fi
1e487827 8966
a0b9e27f
MB
8967 if test -z "$CC"; then
8968 case "`uname -s`" in
8969 *win32* | *WIN32*)
8970 # Extract the first word of "cl", so it can be a program name with args.
8971set dummy cl; ac_word=$2
8972echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 8973echo "configure:8974: checking for $ac_word" >&5
a0b9e27f
MB
8974if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8975 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8976else
8977 if test -n "$CC"; then
8978 ac_cv_prog_CC="$CC" # Let the user override the test.
8979else
a0b9e27f
MB
8980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8981 ac_dummy="$PATH"
8982 for ac_dir in $ac_dummy; do
8983 test -z "$ac_dir" && ac_dir=.
8984 if test -f $ac_dir/$ac_word; then
8985 ac_cv_prog_CC="cl"
8986 break
8987 fi
8988 done
8989 IFS="$ac_save_ifs"
f09359cf
VS
8990fi
8991fi
a0b9e27f 8992CC="$ac_cv_prog_CC"
f09359cf 8993if test -n "$CC"; then
a0b9e27f 8994 echo "$ac_t""$CC" 1>&6
f09359cf 8995else
a0b9e27f 8996 echo "$ac_t""no" 1>&6
247f5006 8997fi
a0b9e27f
MB
8998 ;;
8999 esac
8284b0c5 9000 fi
a0b9e27f 9001 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9002fi
1e487827 9003
a0b9e27f 9004echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8b389fab 9005echo "configure:9006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9006
a0b9e27f
MB
9007ac_ext=c
9008# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9009ac_cpp='$CPP $CPPFLAGS'
9010ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9011ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9012cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9013
a0b9e27f 9014cat > conftest.$ac_ext << EOF
247f5006 9015
8b389fab 9016#line 9017 "configure"
a0b9e27f 9017#include "confdefs.h"
247f5006 9018
a0b9e27f
MB
9019main(){return(0);}
9020EOF
8b389fab 9021if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9022 ac_cv_prog_cc_works=yes
9023 # If we can't run a trivial program, we are probably using a cross compiler.
9024 if (./conftest; exit) 2>/dev/null; then
9025 ac_cv_prog_cc_cross=no
698dcdb6 9026 else
a0b9e27f 9027 ac_cv_prog_cc_cross=yes
698dcdb6 9028 fi
7b4a847f 9029else
a0b9e27f
MB
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_prog_cc_works=no
52127426 9033fi
a0b9e27f
MB
9034rm -fr conftest*
9035ac_ext=c
9036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9037ac_cpp='$CPP $CPPFLAGS'
9038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9040cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9041
a0b9e27f
MB
9042echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9043if test $ac_cv_prog_cc_works = no; then
9044 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9045fi
9046echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8b389fab 9047echo "configure:9048: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9048echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9049cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9050
a0b9e27f 9051echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8b389fab 9052echo "configure:9053: checking whether we are using GNU C" >&5
a0b9e27f
MB
9053if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9055else
a0b9e27f
MB
9056 cat > conftest.c <<EOF
9057#ifdef __GNUC__
9058 yes;
8284b0c5 9059#endif
a0b9e27f 9060EOF
8b389fab 9061if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9062 ac_cv_prog_gcc=yes
5c6fa7d2 9063else
a0b9e27f 9064 ac_cv_prog_gcc=no
8284b0c5
MB
9065fi
9066fi
1e487827 9067
a0b9e27f 9068echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9069
a0b9e27f
MB
9070if test $ac_cv_prog_gcc = yes; then
9071 GCC=yes
9072else
9073 GCC=
9074fi
247f5006 9075
a0b9e27f
MB
9076ac_test_CFLAGS="${CFLAGS+set}"
9077ac_save_CFLAGS="$CFLAGS"
9078CFLAGS=
9079echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8b389fab 9080echo "configure:9081: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9081if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9083else
9084 echo 'void f(){}' > conftest.c
9085if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9086 ac_cv_prog_cc_g=yes
9087else
a0b9e27f 9088 ac_cv_prog_cc_g=no
10f2d63a 9089fi
a0b9e27f
MB
9090rm -f conftest*
9091
10f2d63a 9092fi
a0b9e27f
MB
9093
9094echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9095if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9096 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9097elif test $ac_cv_prog_cc_g = yes; then
9098 if test "$GCC" = yes; then
10f2d63a
VZ
9099 CFLAGS="-g -O2"
9100 else
f09359cf 9101 CFLAGS="-g"
10f2d63a 9102 fi
5c0a20c3 9103else
f09359cf
VS
9104 if test "$GCC" = yes; then
9105 CFLAGS="-O2"
9106 else
9107 CFLAGS=
9108 fi
10f2d63a
VZ
9109fi
9110
9111
a0b9e27f 9112echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8b389fab 9113echo "configure:9114: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9114# On Suns, sometimes $CPP names a directory.
9115if test -n "$CPP" && test -d "$CPP"; then
9116 CPP=
9117fi
9118if test -z "$CPP"; then
a0b9e27f
MB
9119if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121else
9122 # This must be in double quotes, not single quotes, because CPP may get
9123 # substituted into the Makefile and "${CC-cc}" will confuse make.
9124 CPP="${CC-cc} -E"
10f2d63a 9125 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9126 # not just through cpp.
9127 cat > conftest.$ac_ext <<EOF
8b389fab 9128#line 9129 "configure"
10f2d63a
VZ
9129#include "confdefs.h"
9130#include <assert.h>
a0b9e27f
MB
9131Syntax Error
9132EOF
9133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9134{ (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9136if test -z "$ac_err"; then
10f2d63a
VZ
9137 :
9138else
a0b9e27f
MB
9139 echo "$ac_err" >&5
9140 echo "configure: failed program was:" >&5
10f2d63a 9141 cat conftest.$ac_ext >&5
a0b9e27f
MB
9142 rm -rf conftest*
9143 CPP="${CC-cc} -E -traditional-cpp"
9144 cat > conftest.$ac_ext <<EOF
8b389fab 9145#line 9146 "configure"
f09359cf 9146#include "confdefs.h"
a0b9e27f
MB
9147#include <assert.h>
9148Syntax Error
9149EOF
9150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9151{ (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153if test -z "$ac_err"; then
9154 :
247f5006 9155else
a0b9e27f
MB
9156 echo "$ac_err" >&5
9157 echo "configure: failed program was:" >&5
f09359cf 9158 cat conftest.$ac_ext >&5
a0b9e27f
MB
9159 rm -rf conftest*
9160 CPP="${CC-cc} -nologo -E"
9161 cat > conftest.$ac_ext <<EOF
8b389fab 9162#line 9163 "configure"
10f2d63a
VZ
9163#include "confdefs.h"
9164#include <assert.h>
a0b9e27f
MB
9165Syntax Error
9166EOF
9167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9168{ (eval echo configure:9169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9170if test -z "$ac_err"; then
10f2d63a
VZ
9171 :
9172else
a0b9e27f
MB
9173 echo "$ac_err" >&5
9174 echo "configure: failed program was:" >&5
10f2d63a 9175 cat conftest.$ac_ext >&5
a0b9e27f
MB
9176 rm -rf conftest*
9177 CPP=/lib/cpp
579d8138 9178fi
a0b9e27f 9179rm -f conftest*
52127426 9180fi
a0b9e27f 9181rm -f conftest*
8284b0c5 9182fi
a0b9e27f
MB
9183rm -f conftest*
9184 ac_cv_prog_CPP="$CPP"
9185fi
9186 CPP="$ac_cv_prog_CPP"
10f2d63a 9187else
a0b9e27f 9188 ac_cv_prog_CPP="$CPP"
10f2d63a 9189fi
a0b9e27f 9190echo "$ac_t""$CPP" 1>&6
10f2d63a 9191
a0b9e27f
MB
9192if test $ac_cv_prog_gcc = yes; then
9193 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8b389fab 9194echo "configure:9195: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9195if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9196 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9197else
9198 ac_pattern="Autoconf.*'x'"
a0b9e27f 9199 cat > conftest.$ac_ext <<EOF
8b389fab 9200#line 9201 "configure"
10f2d63a
VZ
9201#include "confdefs.h"
9202#include <sgtty.h>
9203Autoconf TIOCGETP
a0b9e27f 9204EOF
10f2d63a
VZ
9205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9206 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9207 rm -rf conftest*
10f2d63a
VZ
9208 ac_cv_prog_gcc_traditional=yes
9209else
a0b9e27f 9210 rm -rf conftest*
10f2d63a
VZ
9211 ac_cv_prog_gcc_traditional=no
9212fi
9213rm -f conftest*
9214
8284b0c5 9215
10f2d63a 9216 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9217 cat > conftest.$ac_ext <<EOF
8b389fab 9218#line 9219 "configure"
10f2d63a
VZ
9219#include "confdefs.h"
9220#include <termio.h>
9221Autoconf TCGETA
a0b9e27f 9222EOF
10f2d63a
VZ
9223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9225 rm -rf conftest*
10f2d63a
VZ
9226 ac_cv_prog_gcc_traditional=yes
9227fi
9228rm -f conftest*
9229
9230 fi
9231fi
a0b9e27f
MB
9232
9233echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9234 if test $ac_cv_prog_gcc_traditional = yes; then
9235 CC="$CC -traditional"
9236 fi
9237fi
9238
8284b0c5
MB
9239
9240
a0b9e27f
MB
9241ac_ext=C
9242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9243ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9247
698dcdb6 9248
ec603395 9249CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9250for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9251do
9252# Extract the first word of "$ac_prog", so it can be a program name with args.
9253set dummy $ac_prog; ac_word=$2
9254echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9255echo "configure:9256: checking for $ac_word" >&5
a0b9e27f
MB
9256if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9258else
9259 if test -n "$CXX"; then
9260 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9261else
a0b9e27f
MB
9262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9263 ac_dummy="$PATH"
9264 for ac_dir in $ac_dummy; do
9265 test -z "$ac_dir" && ac_dir=.
9266 if test -f $ac_dir/$ac_word; then
9267 ac_cv_prog_CXX="$ac_prog"
9268 break
9269 fi
9270 done
9271 IFS="$ac_save_ifs"
10f2d63a
VZ
9272fi
9273fi
a0b9e27f 9274CXX="$ac_cv_prog_CXX"
10f2d63a 9275if test -n "$CXX"; then
a0b9e27f 9276 echo "$ac_t""$CXX" 1>&6
10f2d63a 9277else
a0b9e27f 9278 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9279fi
9280
a0b9e27f 9281test -n "$CXX" && break
10f2d63a 9282done
a0b9e27f 9283test -n "$CXX" || CXX="gcc"
f09359cf 9284
a0b9e27f
MB
9285
9286echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8b389fab 9287echo "configure:9288: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9288
9289ac_ext=C
9290# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9291ac_cpp='$CXXCPP $CPPFLAGS'
9292ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9293ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9294cross_compiling=$ac_cv_prog_cxx_cross
9295
9296cat > conftest.$ac_ext << EOF
9297
8b389fab 9298#line 9299 "configure"
a0b9e27f
MB
9299#include "confdefs.h"
9300
9301int main(){return(0);}
9302EOF
8b389fab 9303if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9304 ac_cv_prog_cxx_works=yes
9305 # If we can't run a trivial program, we are probably using a cross compiler.
9306 if (./conftest; exit) 2>/dev/null; then
9307 ac_cv_prog_cxx_cross=no
9308 else
9309 ac_cv_prog_cxx_cross=yes
9310 fi
8284b0c5 9311else
a0b9e27f
MB
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 ac_cv_prog_cxx_works=no
8284b0c5 9315fi
a0b9e27f
MB
9316rm -fr conftest*
9317ac_ext=C
9318# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9319ac_cpp='$CXXCPP $CPPFLAGS'
9320ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9321ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9322cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9323
a0b9e27f
MB
9324echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9325if test $ac_cv_prog_cxx_works = no; then
9326 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9327fi
9328echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8b389fab 9329echo "configure:9330: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9330echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9331cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9332
a0b9e27f 9333echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8b389fab 9334echo "configure:9335: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9335if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9337else
9338 cat > conftest.C <<EOF
9339#ifdef __GNUC__
9340 yes;
10f2d63a 9341#endif
a0b9e27f 9342EOF
8b389fab 9343if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9344 ac_cv_prog_gxx=yes
9345else
9346 ac_cv_prog_gxx=no
9347fi
9348fi
10f2d63a 9349
a0b9e27f 9350echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9351
a0b9e27f
MB
9352if test $ac_cv_prog_gxx = yes; then
9353 GXX=yes
9354else
9355 GXX=
9356fi
f09359cf 9357
a0b9e27f
MB
9358ac_test_CXXFLAGS="${CXXFLAGS+set}"
9359ac_save_CXXFLAGS="$CXXFLAGS"
9360CXXFLAGS=
9361echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8b389fab 9362echo "configure:9363: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9363if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365else
9366 echo 'void f(){}' > conftest.cc
9367if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9368 ac_cv_prog_cxx_g=yes
9369else
a0b9e27f 9370 ac_cv_prog_cxx_g=no
10f2d63a 9371fi
a0b9e27f
MB
9372rm -f conftest*
9373
10f2d63a 9374fi
a0b9e27f
MB
9375
9376echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9377if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9378 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9379elif test $ac_cv_prog_cxx_g = yes; then
9380 if test "$GXX" = yes; then
10f2d63a
VZ
9381 CXXFLAGS="-g -O2"
9382 else
f09359cf 9383 CXXFLAGS="-g"
10f2d63a 9384 fi
5c0a20c3 9385else
f09359cf
VS
9386 if test "$GXX" = yes; then
9387 CXXFLAGS="-O2"
9388 else
9389 CXXFLAGS=
9390 fi
10f2d63a
VZ
9391fi
9392
9393
10f2d63a 9394ac_ext=c
a0b9e27f 9395# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9396ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9397ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9398ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9399cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9400
9401
a0b9e27f
MB
9402# Extract the first word of "ranlib", so it can be a program name with args.
9403set dummy ranlib; ac_word=$2
9404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9405echo "configure:9406: checking for $ac_word" >&5
a0b9e27f
MB
9406if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9408else
9409 if test -n "$RANLIB"; then
9410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9411else
a0b9e27f
MB
9412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9413 ac_dummy="$PATH"
9414 for ac_dir in $ac_dummy; do
9415 test -z "$ac_dir" && ac_dir=.
9416 if test -f $ac_dir/$ac_word; then
9417 ac_cv_prog_RANLIB="ranlib"
9418 break
9419 fi
9420 done
9421 IFS="$ac_save_ifs"
9422 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9423fi
9424fi
a0b9e27f 9425RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9426if test -n "$RANLIB"; then
a0b9e27f 9427 echo "$ac_t""$RANLIB" 1>&6
328a083c 9428else
a0b9e27f 9429 echo "$ac_t""no" 1>&6
328a083c
RR
9430fi
9431
10f2d63a
VZ
9432
9433# Extract the first word of "ar", so it can be a program name with args.
9434set dummy ar; ac_word=$2
a0b9e27f 9435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9436echo "configure:9437: checking for $ac_word" >&5
a0b9e27f
MB
9437if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9439else
9440 if test -n "$AR"; then
9441 ac_cv_prog_AR="$AR" # Let the user override the test.
9442else
a0b9e27f
MB
9443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9444 ac_dummy="$PATH"
9445 for ac_dir in $ac_dummy; do
9446 test -z "$ac_dir" && ac_dir=.
9447 if test -f $ac_dir/$ac_word; then
9448 ac_cv_prog_AR="ar"
9449 break
9450 fi
9451 done
9452 IFS="$ac_save_ifs"
10f2d63a
VZ
9453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9454fi
9455fi
a0b9e27f 9456AR="$ac_cv_prog_AR"
10f2d63a 9457if test -n "$AR"; then
a0b9e27f 9458 echo "$ac_t""$AR" 1>&6
10f2d63a 9459else
a0b9e27f 9460 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9461fi
9462
8284b0c5 9463
6054113a 9464# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9465# so one script is as good as another. But avoid the broken or
9466# incompatible versions:
9467# SysV /etc/install, /usr/sbin/install
9468# SunOS /usr/etc/install
9469# IRIX /sbin/install
9470# AIX /bin/install
f09359cf 9471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9474# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9475echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8b389fab 9476echo "configure:9477: checking for a BSD compatible install" >&5
10f2d63a 9477if test -z "$INSTALL"; then
a0b9e27f
MB
9478if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9480else
9481 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9482 for ac_dir in $PATH; do
9483 # Account for people who put trailing slashes in PATH elements.
9484 case "$ac_dir/" in
9485 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9486 *)
9487 # OSF1 and SCO ODT 3.0 have their own names for install.
9488 # Don't use installbsd from OSF since it installs stuff as root
9489 # by default.
9490 for ac_prog in ginstall scoinst install; do
9491 if test -f $ac_dir/$ac_prog; then
9492 if test $ac_prog = install &&
9493 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9494 # AIX install. It has an incompatible calling convention.
9495 :
9496 else
9497 ac_cv_path_install="$ac_dir/$ac_prog -c"
9498 break 2
9499 fi
9500 fi
10f2d63a 9501 done
a0b9e27f
MB
9502 ;;
9503 esac
9504 done
9505 IFS="$ac_save_IFS"
10f2d63a
VZ
9506
9507fi
9508 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9509 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9510 else
9511 # As a last resort, use the slow shell script. We don't cache a
9512 # path for INSTALL within a source directory, because that will
9513 # break other packages using the cache if that directory is
9514 # removed, or if the path is relative.
a0b9e27f 9515 INSTALL="$ac_install_sh"
10f2d63a
VZ
9516 fi
9517fi
a0b9e27f 9518echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9519
9520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9521# It thinks the first close brace ends the variable substitution.
9522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9523
a0b9e27f 9524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9525
10f2d63a
VZ
9526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9527
8284b0c5 9528
1d1b75ac
VZ
9529case ${INSTALL} in
9530 /* ) # Absolute
9531 ;;
4f5a7f74
VZ
9532 ?:* ) # Drive letter, considered as absolute.
9533 ;;
3bd8fb5f 9534 *)
1d1b75ac
VZ
9535 INSTALL=`pwd`/${INSTALL} ;;
9536esac
9537
4f5a7f74
VZ
9538case ${host} in
9539 *-hp-hpux* )
9540 INSTALL_DIR="mkdir"
9541 ;;
9542
9543 *) INSTALL_DIR="$INSTALL -d"
9544 ;;
9545esac
9546
8284b0c5 9547
6054113a
GD
9548case "${host}" in
9549
b5853384 9550 powerpc-*-darwin* )
eb99ae0b
GD
9551 INSTALL_PROGRAM="cp -fp"
9552 INSTALL_DATA="cp -fp"
6054113a
GD
9553 ;;
9554 *)
9555 ;;
d6853540 9556esac
698dcdb6 9557
10f2d63a
VZ
9558# Extract the first word of "strip", so it can be a program name with args.
9559set dummy strip; ac_word=$2
a0b9e27f 9560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9561echo "configure:9562: checking for $ac_word" >&5
a0b9e27f
MB
9562if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9564else
9565 if test -n "$STRIP"; then
9566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9567else
a0b9e27f
MB
9568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9569 ac_dummy="$PATH"
9570 for ac_dir in $ac_dummy; do
9571 test -z "$ac_dir" && ac_dir=.
9572 if test -f $ac_dir/$ac_word; then
9573 ac_cv_prog_STRIP="strip"
9574 break
9575 fi
9576 done
9577 IFS="$ac_save_ifs"
10f2d63a
VZ
9578 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9579fi
9580fi
a0b9e27f 9581STRIP="$ac_cv_prog_STRIP"
10f2d63a 9582if test -n "$STRIP"; then
a0b9e27f 9583 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9584else
a0b9e27f 9585 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9586fi
9587
5c6fa7d2 9588
a0b9e27f 9589echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
8b389fab 9590echo "configure:9591: checking if make is GNU make" >&5
a0b9e27f
MB
9591if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9593else
a0b9e27f 9594
414eab6d 9595 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9596 egrep -s GNU > /dev/null); then
414eab6d
VZ
9597 wx_cv_prog_makeisgnu="yes"
9598 else
9599 wx_cv_prog_makeisgnu="no"
9600 fi
9601
9602fi
a0b9e27f
MB
9603
9604echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9605
9606if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9607 IF_GNU_MAKE=""
9608else
9609 IF_GNU_MAKE="#"
9610fi
9611
8284b0c5
MB
9612
9613
414eab6d 9614if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9615echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
8b389fab 9616echo "configure:9617: checking if make supports VPATH" >&5
a0b9e27f
MB
9617if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9619else
a0b9e27f 9620
10f2d63a
VZ
9621cat - << EOF > confMake
9622check : file
9623 cp \$? \$@
9624 cp \$? final_file
9625EOF
9626
9627if test ! -d sub ; then
9628 mkdir sub
9629fi
9630echo dummy > sub/file
f6bcfd97 9631${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9632RESULT=$?
9633rm -f sub/file check final_file confMake
9634rmdir sub
9635if test "$RESULT" = 0; then
04e7a216 9636 wx_cv_prog_makevpath="yes"
10f2d63a 9637else
04e7a216
VZ
9638 wx_cv_prog_makevpath="no"
9639fi
9640
9641fi
a0b9e27f
MB
9642
9643echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9644
9645if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9646{ echo "configure: error:
5c6fa7d2
RR
9647You need a make-utility that is able to use the variable
9648VPATH correctly.
9649If your version of make does not support VPATH correctly,
9650please install GNU-make (possibly as gmake), and start
9651configure with the following command:
9652export MAKE=gmake; ./configure for sh-type shells
9653setenv MAKE gmake; ./configure for csh-type shells
9654Also please do remember to use gmake in this case every time
9655you are trying to compile.
a0b9e27f
MB
9656" 1>&2; exit 1; }
9657fi fi
10f2d63a
VZ
9658for ac_prog in 'bison -y' byacc
9659do
a0b9e27f 9660# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9661set dummy $ac_prog; ac_word=$2
a0b9e27f 9662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9663echo "configure:9664: checking for $ac_word" >&5
a0b9e27f
MB
9664if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9666else
9667 if test -n "$YACC"; then
9668 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9669else
a0b9e27f
MB
9670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9671 ac_dummy="$PATH"
9672 for ac_dir in $ac_dummy; do
9673 test -z "$ac_dir" && ac_dir=.
9674 if test -f $ac_dir/$ac_word; then
9675 ac_cv_prog_YACC="$ac_prog"
9676 break
9677 fi
9678 done
9679 IFS="$ac_save_ifs"
10f2d63a
VZ
9680fi
9681fi
a0b9e27f 9682YACC="$ac_cv_prog_YACC"
10f2d63a 9683if test -n "$YACC"; then
a0b9e27f 9684 echo "$ac_t""$YACC" 1>&6
10f2d63a 9685else
a0b9e27f 9686 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9687fi
9688
a0b9e27f 9689test -n "$YACC" && break
10f2d63a
VZ
9690done
9691test -n "$YACC" || YACC="yacc"
9692
8284b0c5 9693
a0b9e27f
MB
9694# Extract the first word of "flex", so it can be a program name with args.
9695set dummy flex; ac_word=$2
9696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 9697echo "configure:9698: checking for $ac_word" >&5
a0b9e27f
MB
9698if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9700else
9701 if test -n "$LEX"; then
9702 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9703else
a0b9e27f
MB
9704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9705 ac_dummy="$PATH"
9706 for ac_dir in $ac_dummy; do
9707 test -z "$ac_dir" && ac_dir=.
9708 if test -f $ac_dir/$ac_word; then
9709 ac_cv_prog_LEX="flex"
9710 break
9711 fi
9712 done
9713 IFS="$ac_save_ifs"
9714 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9715fi
9716fi
a0b9e27f 9717LEX="$ac_cv_prog_LEX"
10f2d63a 9718if test -n "$LEX"; then
a0b9e27f 9719 echo "$ac_t""$LEX" 1>&6
10f2d63a 9720else
a0b9e27f 9721 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9722fi
9723
9724if test -z "$LEXLIB"
9725then
a0b9e27f
MB
9726 case "$LEX" in
9727 flex*) ac_lib=fl ;;
9728 *) ac_lib=l ;;
9729 esac
9730 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8b389fab 9731echo "configure:9732: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9732ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9735else
9736 ac_save_LIBS="$LIBS"
9737LIBS="-l$ac_lib $LIBS"
9738cat > conftest.$ac_ext <<EOF
8b389fab 9739#line 9740 "configure"
247f5006 9740#include "confdefs.h"
247f5006 9741/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9742/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9743 builtin and then its argument prototype would still apply. */
9744char yywrap();
10f2d63a 9745
a0b9e27f
MB
9746int main() {
9747yywrap()
9748; return 0; }
9749EOF
8b389fab 9750if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9751 rm -rf conftest*
9752 eval "ac_cv_lib_$ac_lib_var=yes"
9753else
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9758fi
a0b9e27f
MB
9759rm -f conftest*
9760LIBS="$ac_save_LIBS"
8284b0c5 9761
10f2d63a 9762fi
a0b9e27f
MB
9763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 LEXLIB="-l$ac_lib"
8284b0c5 9766else
a0b9e27f 9767 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9768fi
9769
a0b9e27f 9770fi
10f2d63a
VZ
9771
9772
a0b9e27f 9773echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8b389fab 9774echo "configure:9775: checking whether ln -s works" >&5
a0b9e27f
MB
9775if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9777else
a0b9e27f
MB
9778 rm -f conftestdata
9779if ln -s X conftestdata 2>/dev/null
9780then
9781 rm -f conftestdata
9782 ac_cv_prog_LN_S="ln -s"
10f2d63a 9783else
a0b9e27f 9784 ac_cv_prog_LN_S=ln
10f2d63a 9785fi
a0b9e27f
MB
9786fi
9787LN_S="$ac_cv_prog_LN_S"
9788if test "$ac_cv_prog_LN_S" = "ln -s"; then
9789 echo "$ac_t""yes" 1>&6
10f2d63a 9790else
a0b9e27f 9791 echo "$ac_t""no" 1>&6
5c6fa7d2 9792fi
5c6fa7d2 9793
247f5006 9794
2b5f62a0
VZ
9795case "${host}" in
9796 *-pc-os2_emx | *-pc-os2-emx )
9797 LIBS="$LIBS -lstdcpp"
9798 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9799 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
8b389fab 9800echo "configure:9801: checking for drand48 in -lcExt" >&5
2b5f62a0
VZ
9801ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9802if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804else
9805 ac_save_LIBS="$LIBS"
9806LIBS="-lcExt $LIBS"
9807cat > conftest.$ac_ext <<EOF
8b389fab 9808#line 9809 "configure"
2b5f62a0
VZ
9809#include "confdefs.h"
9810/* Override any gcc2 internal prototype to avoid an error. */
9811/* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813char drand48();
9814
9815int main() {
9816drand48()
9817; return 0; }
9818EOF
8b389fab 9819if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
9820 rm -rf conftest*
9821 eval "ac_cv_lib_$ac_lib_var=yes"
9822else
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 rm -rf conftest*
9826 eval "ac_cv_lib_$ac_lib_var=no"
9827fi
9828rm -f conftest*
9829LIBS="$ac_save_LIBS"
9830
9831fi
9832if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9833 echo "$ac_t""yes" 1>&6
9834 LIBS="$LIBS -lcExt"
9835else
9836 echo "$ac_t""no" 1>&6
9837fi
9838
9839 else
9840 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9841 fi
9842 ;;
9843esac
9844
a0b9e27f 9845
ac0c4cc3 9846if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a0b9e27f
MB
9847 for ac_hdr in strings.h
9848do
9849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 9851echo "configure:9852: checking for $ac_hdr" >&5
a0b9e27f
MB
9852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9854else
9855 cat > conftest.$ac_ext <<EOF
8b389fab 9856#line 9857 "configure"
a0b9e27f
MB
9857#include "confdefs.h"
9858#include <$ac_hdr>
9859EOF
9860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9861{ (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9863if test -z "$ac_err"; then
9864 rm -rf conftest*
9865 eval "ac_cv_header_$ac_safe=yes"
9866else
9867 echo "$ac_err" >&5
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 rm -rf conftest*
9871 eval "ac_cv_header_$ac_safe=no"
21d1c967 9872fi
247f5006 9873rm -f conftest*
19bc6aad 9874fi
a0b9e27f
MB
9875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9876 echo "$ac_t""yes" 1>&6
9877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9878 cat >> confdefs.h <<EOF
9879#define $ac_tr_hdr 1
9880EOF
9881
247f5006 9882else
a0b9e27f 9883 echo "$ac_t""no" 1>&6
18dbb1f6 9884fi
a0b9e27f 9885done
247f5006 9886
90dd450c 9887fi
90dd450c 9888
a0b9e27f
MB
9889for ac_hdr in stdlib.h
9890do
9891ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9892echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 9893echo "configure:9894: checking for $ac_hdr" >&5
a0b9e27f
MB
9894if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896else
9897 cat > conftest.$ac_ext <<EOF
8b389fab 9898#line 9899 "configure"
90dd450c 9899#include "confdefs.h"
a0b9e27f
MB
9900#include <$ac_hdr>
9901EOF
9902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9903{ (eval echo configure:9904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9905if test -z "$ac_err"; then
9906 rm -rf conftest*
9907 eval "ac_cv_header_$ac_safe=yes"
9908else
9909 echo "$ac_err" >&5
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 rm -rf conftest*
9913 eval "ac_cv_header_$ac_safe=no"
9914fi
9915rm -f conftest*
9916fi
9917if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9918 echo "$ac_t""yes" 1>&6
9919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9920 cat >> confdefs.h <<EOF
9921#define $ac_tr_hdr 1
9922EOF
9923
8284b0c5 9924else
a0b9e27f 9925 echo "$ac_t""no" 1>&6
21d1c967 9926fi
a0b9e27f
MB
9927done
9928
9929for ac_hdr in malloc.h
9930do
9931ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9932echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 9933echo "configure:9934: checking for $ac_hdr" >&5
a0b9e27f
MB
9934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936else
9937 cat > conftest.$ac_ext <<EOF
8b389fab 9938#line 9939 "configure"
a0b9e27f
MB
9939#include "confdefs.h"
9940#include <$ac_hdr>
9941EOF
9942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9943{ (eval echo configure:9944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9945if test -z "$ac_err"; then
9946 rm -rf conftest*
9947 eval "ac_cv_header_$ac_safe=yes"
9948else
9949 echo "$ac_err" >&5
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9954fi
a0b9e27f 9955rm -f conftest*
90dd450c 9956fi
a0b9e27f
MB
9957if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9958 echo "$ac_t""yes" 1>&6
9959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9960 cat >> confdefs.h <<EOF
9961#define $ac_tr_hdr 1
9962EOF
9963
9964else
9965 echo "$ac_t""no" 1>&6
21d1c967 9966fi
a0b9e27f 9967done
247f5006 9968
a0b9e27f
MB
9969for ac_hdr in unistd.h
9970do
9971ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9972echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 9973echo "configure:9974: checking for $ac_hdr" >&5
a0b9e27f
MB
9974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9976else
9977 cat > conftest.$ac_ext <<EOF
8b389fab 9978#line 9979 "configure"
a0b9e27f
MB
9979#include "confdefs.h"
9980#include <$ac_hdr>
9981EOF
9982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 9983{ (eval echo configure:9984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9985if test -z "$ac_err"; then
9986 rm -rf conftest*
9987 eval "ac_cv_header_$ac_safe=yes"
9988else
9989 echo "$ac_err" >&5
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_header_$ac_safe=no"
247f5006 9994fi
a0b9e27f
MB
9995rm -f conftest*
9996fi
9997if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9998 echo "$ac_t""yes" 1>&6
9999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10000 cat >> confdefs.h <<EOF
10001#define $ac_tr_hdr 1
10002EOF
10003
10004else
10005 echo "$ac_t""no" 1>&6
10006fi
10007done
90dd450c 10008
a0b9e27f 10009for ac_hdr in wchar.h
21d1c967 10010do
a0b9e27f
MB
10011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 10013echo "configure:10014: checking for $ac_hdr" >&5
a0b9e27f
MB
10014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016else
10017 cat > conftest.$ac_ext <<EOF
8b389fab 10018#line 10019 "configure"
4f14bcd8 10019#include "confdefs.h"
a0b9e27f
MB
10020#include <$ac_hdr>
10021EOF
10022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 10023{ (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025if test -z "$ac_err"; then
10026 rm -rf conftest*
10027 eval "ac_cv_header_$ac_safe=yes"
10028else
10029 echo "$ac_err" >&5
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033 eval "ac_cv_header_$ac_safe=no"
10034fi
10035rm -f conftest*
10036fi
10037if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10040 cat >> confdefs.h <<EOF
10041#define $ac_tr_hdr 1
10042EOF
10043
10044else
10045 echo "$ac_t""no" 1>&6
21d1c967
GD
10046fi
10047done
4f14bcd8 10048
5c6fa7d2 10049
a0b9e27f
MB
10050if test "$ac_cv_header_wchar_h" != "yes"; then
10051 for ac_hdr in wcstr.h
21d1c967 10052do
a0b9e27f
MB
10053ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10054echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 10055echo "configure:10056: checking for $ac_hdr" >&5
a0b9e27f
MB
10056if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058else
10059 cat > conftest.$ac_ext <<EOF
8b389fab 10060#line 10061 "configure"
d4158b5d 10061#include "confdefs.h"
a0b9e27f
MB
10062#include <$ac_hdr>
10063EOF
10064ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 10065{ (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10066ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067if test -z "$ac_err"; then
10068 rm -rf conftest*
10069 eval "ac_cv_header_$ac_safe=yes"
10070else
10071 echo "$ac_err" >&5
10072 echo "configure: failed program was:" >&5
d4158b5d 10073 cat conftest.$ac_ext >&5
a0b9e27f
MB
10074 rm -rf conftest*
10075 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10076fi
a0b9e27f 10077rm -f conftest*
21d1c967 10078fi
a0b9e27f
MB
10079if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10080 echo "$ac_t""yes" 1>&6
10081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10082 cat >> confdefs.h <<EOF
10083#define $ac_tr_hdr 1
10084EOF
10085
10086else
10087 echo "$ac_t""no" 1>&6
d4158b5d 10088fi
21d1c967 10089done
f6bcfd97 10090
90dd450c 10091fi
90dd450c 10092
a0b9e27f 10093for ac_hdr in fnmatch.h
21d1c967 10094do
a0b9e27f
MB
10095ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10096echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 10097echo "configure:10098: checking for $ac_hdr" >&5
a0b9e27f
MB
10098if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10100else
10101 cat > conftest.$ac_ext <<EOF
8b389fab 10102#line 10103 "configure"
90dd450c 10103#include "confdefs.h"
a0b9e27f
MB
10104#include <$ac_hdr>
10105EOF
10106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 10107{ (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10108ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10109if test -z "$ac_err"; then
10110 rm -rf conftest*
10111 eval "ac_cv_header_$ac_safe=yes"
10112else
10113 echo "$ac_err" >&5
10114 echo "configure: failed program was:" >&5
3a922bb4 10115 cat conftest.$ac_ext >&5
a0b9e27f
MB
10116 rm -rf conftest*
10117 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10118fi
a0b9e27f 10119rm -f conftest*
4f14bcd8 10120fi
a0b9e27f
MB
10121if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10124 cat >> confdefs.h <<EOF
10125#define $ac_tr_hdr 1
10126EOF
10127
10128else
10129 echo "$ac_t""no" 1>&6
21d1c967
GD
10130fi
10131done
90dd450c 10132
5c6fa7d2 10133
a0b9e27f
MB
10134if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10135 for ac_func in fnmatch
21d1c967 10136do
a0b9e27f 10137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 10138echo "configure:10139: checking for $ac_func" >&5
a0b9e27f
MB
10139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10141else
a0b9e27f 10142 cat > conftest.$ac_ext <<EOF
8b389fab 10143#line 10144 "configure"
a0b9e27f
MB
10144#include "confdefs.h"
10145/* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func(); below. */
10147#include <assert.h>
10148/* Override any gcc2 internal prototype to avoid an error. */
10149/* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10151char $ac_func();
10152
10153int main() {
10154
10155/* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159choke me
10160#else
10161$ac_func();
10162#endif
10163
10164; return 0; }
10165EOF
8b389fab 10166if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10167 rm -rf conftest*
10168 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10169else
a0b9e27f 10170 echo "configure: failed program was:" >&5
8284b0c5 10171 cat conftest.$ac_ext >&5
a0b9e27f
MB
10172 rm -rf conftest*
10173 eval "ac_cv_func_$ac_func=no"
8284b0c5 10174fi
a0b9e27f 10175rm -f conftest*
8284b0c5 10176fi
32832908 10177
a0b9e27f
MB
10178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182#define $ac_tr_func 1
10183EOF
10184
10185else
10186 echo "$ac_t""no" 1>&6
21d1c967
GD
10187fi
10188done
90dd450c 10189
a0b9e27f 10190fi
90dd450c 10191
a0b9e27f 10192for ac_hdr in langinfo.h
21d1c967 10193do
a0b9e27f
MB
10194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 10196echo "configure:10197: checking for $ac_hdr" >&5
a0b9e27f
MB
10197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10199else
10200 cat > conftest.$ac_ext <<EOF
8b389fab 10201#line 10202 "configure"
247f5006 10202#include "confdefs.h"
a0b9e27f
MB
10203#include <$ac_hdr>
10204EOF
10205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 10206{ (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10208if test -z "$ac_err"; then
10209 rm -rf conftest*
10210 eval "ac_cv_header_$ac_safe=yes"
10211else
10212 echo "$ac_err" >&5
10213 echo "configure: failed program was:" >&5
90dd450c 10214 cat conftest.$ac_ext >&5
a0b9e27f
MB
10215 rm -rf conftest*
10216 eval "ac_cv_header_$ac_safe=no"
90dd450c 10217fi
a0b9e27f 10218rm -f conftest*
4f14bcd8 10219fi
a0b9e27f
MB
10220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10221 echo "$ac_t""yes" 1>&6
10222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10223 cat >> confdefs.h <<EOF
10224#define $ac_tr_hdr 1
10225EOF
10226
10227else
10228 echo "$ac_t""no" 1>&6
21d1c967
GD
10229fi
10230done
3a922bb4 10231
8284b0c5 10232
4f5a7f74
VZ
10233case "${host}" in
10234 *-pc-os2_emx | *-pc-os2-emx )
10235 if test $ac_cv_header_langinfo_h = "yes"; then
10236 LIBS="$LIBS -lintl"
10237 fi
10238 ;;
10239esac
1542ea39 10240
a0b9e27f
MB
10241if test "$wxUSE_GUI" = "yes"; then
10242 if test "$wxUSE_UNIX" = "yes"; then
10243 for ac_hdr in X11/XKBlib.h
21d1c967 10244do
a0b9e27f
MB
10245ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10246echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 10247echo "configure:10248: checking for $ac_hdr" >&5
a0b9e27f
MB
10248if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250else
10251 cat > conftest.$ac_ext <<EOF
8b389fab 10252#line 10253 "configure"
90dd450c 10253#include "confdefs.h"
a0b9e27f
MB
10254#include <$ac_hdr>
10255EOF
10256ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 10257{ (eval echo configure:10258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10258ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10259if test -z "$ac_err"; then
10260 rm -rf conftest*
10261 eval "ac_cv_header_$ac_safe=yes"
10262else
10263 echo "$ac_err" >&5
10264 echo "configure: failed program was:" >&5
90dd450c 10265 cat conftest.$ac_ext >&5
a0b9e27f
MB
10266 rm -rf conftest*
10267 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10268fi
a0b9e27f 10269rm -f conftest*
90dd450c 10270fi
a0b9e27f
MB
10271if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10274 cat >> confdefs.h <<EOF
10275#define $ac_tr_hdr 1
10276EOF
10277
10278else
10279 echo "$ac_t""no" 1>&6
247f5006 10280fi
247f5006
VZ
10281done
10282
a0b9e27f
MB
10283 fi
10284fi
247f5006 10285
247f5006 10286
a0b9e27f 10287echo $ac_n "checking for working const""... $ac_c" 1>&6
8b389fab 10288echo "configure:10289: checking for working const" >&5
a0b9e27f
MB
10289if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10291else
a0b9e27f 10292 cat > conftest.$ac_ext <<EOF
8b389fab 10293#line 10294 "configure"
a0b9e27f
MB
10294#include "confdefs.h"
10295
10296int main() {
10297
10298/* Ultrix mips cc rejects this. */
10299typedef int charset[2]; const charset x;
10300/* SunOS 4.1.1 cc rejects this. */
10301char const *const *ccp;
10302char **p;
10303/* NEC SVR4.0.2 mips cc rejects this. */
10304struct point {int x, y;};
10305static struct point const zero = {0,0};
10306/* AIX XL C 1.02.0.0 rejects this.
10307 It does not let you subtract one const X* pointer from another in an arm
10308 of an if-expression whose if-part is not a constant expression */
10309const char *g = "string";
10310ccp = &g + (g ? g-g : 0);
10311/* HPUX 7.0 cc rejects these. */
10312++ccp;
10313p = (char**) ccp;
10314ccp = (char const *const *) p;
10315{ /* SCO 3.2v4 cc rejects this. */
10316 char *t;
10317 char const *s = 0 ? (char *) 0 : (char const *) 0;
10318
10319 *t++ = 0;
10320}
10321{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10322 int x[] = {25, 17};
10323 const int *foo = &x[0];
10324 ++foo;
10325}
10326{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10327 typedef const int *iptr;
10328 iptr p = 0;
10329 ++p;
10330}
10331{ /* AIX XL C 1.02.0.0 rejects this saying
10332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10333 struct s { int j; const int *ap[3]; };
10334 struct s *b; b->j = 5;
10335}
10336{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10337 const int foo = 10;
10338}
10339
10340; return 0; }
10341EOF
8b389fab 10342if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10343 rm -rf conftest*
10344 ac_cv_c_const=yes
247f5006 10345else
a0b9e27f 10346 echo "configure: failed program was:" >&5
247f5006 10347 cat conftest.$ac_ext >&5
a0b9e27f
MB
10348 rm -rf conftest*
10349 ac_cv_c_const=no
247f5006 10350fi
a0b9e27f 10351rm -f conftest*
21d1c967 10352fi
247f5006 10353
a0b9e27f
MB
10354echo "$ac_t""$ac_cv_c_const" 1>&6
10355if test $ac_cv_c_const = no; then
10356 cat >> confdefs.h <<\EOF
10357#define const
10358EOF
10f2d63a 10359
90dd450c 10360fi
81809c07 10361
a0b9e27f 10362echo $ac_n "checking for inline""... $ac_c" 1>&6
8b389fab 10363echo "configure:10364: checking for inline" >&5
a0b9e27f
MB
10364if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10366else
a0b9e27f
MB
10367 ac_cv_c_inline=no
10368for ac_kw in inline __inline__ __inline; do
10369 cat > conftest.$ac_ext <<EOF
8b389fab 10370#line 10371 "configure"
a0b9e27f
MB
10371#include "confdefs.h"
10372
10373int main() {
10374} $ac_kw foo() {
10375; return 0; }
10376EOF
8b389fab 10377if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10378 rm -rf conftest*
10379 ac_cv_c_inline=$ac_kw; break
247f5006 10380else
a0b9e27f 10381 echo "configure: failed program was:" >&5
247f5006 10382 cat conftest.$ac_ext >&5
247f5006 10383fi
a0b9e27f
MB
10384rm -f conftest*
10385done
247f5006
VZ
10386
10387fi
10388
a0b9e27f
MB
10389echo "$ac_t""$ac_cv_c_inline" 1>&6
10390case "$ac_cv_c_inline" in
10391 inline | yes) ;;
10392 no) cat >> confdefs.h <<\EOF
10393#define inline
10394EOF
10395 ;;
10396 *) cat >> confdefs.h <<EOF
10397#define inline $ac_cv_c_inline
10398EOF
10399 ;;
10400esac
247f5006 10401
247f5006 10402
a0b9e27f 10403echo $ac_n "checking size of char""... $ac_c" 1>&6
8b389fab 10404echo "configure:10405: checking size of char" >&5
a0b9e27f
MB
10405if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407else
10408 if test "$cross_compiling" = yes; then
10409 ac_cv_sizeof_char=1
10410else
10411 cat > conftest.$ac_ext <<EOF
8b389fab 10412#line 10413 "configure"
4f14bcd8 10413#include "confdefs.h"
a0b9e27f 10414#include <stdio.h>
a0b9e27f 10415main()
247f5006 10416{
a0b9e27f
MB
10417 FILE *f=fopen("conftestval", "w");
10418 if (!f) exit(1);
10419 fprintf(f, "%d\n", sizeof(char));
10420 exit(0);
52127426 10421}
a0b9e27f 10422EOF
8b389fab 10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10424then
10425 ac_cv_sizeof_char=`cat conftestval`
247f5006 10426else
a0b9e27f 10427 echo "configure: failed program was:" >&5
247f5006 10428 cat conftest.$ac_ext >&5
a0b9e27f
MB
10429 rm -fr conftest*
10430 ac_cv_sizeof_char=0
247f5006 10431fi
a0b9e27f 10432rm -fr conftest*
247f5006 10433fi
247f5006
VZ
10434
10435fi
a0b9e27f
MB
10436echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10437cat >> confdefs.h <<EOF
10438#define SIZEOF_CHAR $ac_cv_sizeof_char
10439EOF
247f5006 10440
247f5006 10441
a0b9e27f 10442echo $ac_n "checking size of short""... $ac_c" 1>&6
8b389fab 10443echo "configure:10444: checking size of short" >&5
a0b9e27f
MB
10444if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10446else
a0b9e27f
MB
10447 if test "$cross_compiling" = yes; then
10448 ac_cv_sizeof_short=2
247f5006 10449else
a0b9e27f 10450 cat > conftest.$ac_ext <<EOF
8b389fab 10451#line 10452 "configure"
a0b9e27f
MB
10452#include "confdefs.h"
10453#include <stdio.h>
a0b9e27f
MB
10454main()
10455{
10456 FILE *f=fopen("conftestval", "w");
10457 if (!f) exit(1);
10458 fprintf(f, "%d\n", sizeof(short));
10459 exit(0);
10460}
10461EOF
8b389fab 10462if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10463then
10464 ac_cv_sizeof_short=`cat conftestval`
247f5006 10465else
a0b9e27f
MB
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 rm -fr conftest*
10469 ac_cv_sizeof_short=0
247f5006 10470fi
a0b9e27f 10471rm -fr conftest*
247f5006
VZ
10472fi
10473
247f5006 10474fi
a0b9e27f
MB
10475echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10476cat >> confdefs.h <<EOF
10477#define SIZEOF_SHORT $ac_cv_sizeof_short
10478EOF
247f5006
VZ
10479
10480
a0b9e27f 10481echo $ac_n "checking size of void *""... $ac_c" 1>&6
8b389fab 10482echo "configure:10483: checking size of void *" >&5
a0b9e27f
MB
10483if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10485else
10486 if test "$cross_compiling" = yes; then
10487 ac_cv_sizeof_void_p=4
247f5006 10488else
a0b9e27f 10489 cat > conftest.$ac_ext <<EOF
8b389fab 10490#line 10491 "configure"
247f5006 10491#include "confdefs.h"
247f5006 10492#include <stdio.h>
a0b9e27f 10493main()
247f5006 10494{
a0b9e27f
MB
10495 FILE *f=fopen("conftestval", "w");
10496 if (!f) exit(1);
10497 fprintf(f, "%d\n", sizeof(void *));
10498 exit(0);
5c6fa7d2 10499}
a0b9e27f 10500EOF
8b389fab 10501if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10502then
10503 ac_cv_sizeof_void_p=`cat conftestval`
10504else
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 rm -fr conftest*
10508 ac_cv_sizeof_void_p=0
10509fi
10510rm -fr conftest*
10511fi
8284b0c5 10512
247f5006 10513fi
a0b9e27f
MB
10514echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10515cat >> confdefs.h <<EOF
10516#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10517EOF
247f5006 10518
247f5006 10519
a0b9e27f 10520echo $ac_n "checking size of int""... $ac_c" 1>&6
8b389fab 10521echo "configure:10522: checking size of int" >&5
a0b9e27f
MB
10522if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10524else
a0b9e27f
MB
10525 if test "$cross_compiling" = yes; then
10526 ac_cv_sizeof_int=4
10527else
10528 cat > conftest.$ac_ext <<EOF
8b389fab 10529#line 10530 "configure"
247f5006 10530#include "confdefs.h"
a0b9e27f 10531#include <stdio.h>
a0b9e27f 10532main()
247f5006 10533{
a0b9e27f
MB
10534 FILE *f=fopen("conftestval", "w");
10535 if (!f) exit(1);
10536 fprintf(f, "%d\n", sizeof(int));
10537 exit(0);
247f5006 10538}
a0b9e27f 10539EOF
8b389fab 10540if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10541then
10542 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10543else
a0b9e27f
MB
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 rm -fr conftest*
10547 ac_cv_sizeof_int=0
21d1c967 10548fi
a0b9e27f 10549rm -fr conftest*
698dcdb6 10550fi
4f14bcd8 10551
21d1c967 10552fi
a0b9e27f
MB
10553echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10554cat >> confdefs.h <<EOF
10555#define SIZEOF_INT $ac_cv_sizeof_int
10556EOF
4f14bcd8 10557
5c6fa7d2 10558
a0b9e27f 10559echo $ac_n "checking size of long""... $ac_c" 1>&6
8b389fab 10560echo "configure:10561: checking size of long" >&5
a0b9e27f
MB
10561if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10563else
247f5006 10564 if test "$cross_compiling" = yes; then
a0b9e27f 10565 ac_cv_sizeof_long=4
247f5006 10566else
a0b9e27f 10567 cat > conftest.$ac_ext <<EOF
8b389fab 10568#line 10569 "configure"
247f5006 10569#include "confdefs.h"
a0b9e27f 10570#include <stdio.h>
a0b9e27f 10571main()
247f5006 10572{
a0b9e27f
MB
10573 FILE *f=fopen("conftestval", "w");
10574 if (!f) exit(1);
10575 fprintf(f, "%d\n", sizeof(long));
10576 exit(0);
247f5006 10577}
a0b9e27f 10578EOF
8b389fab 10579if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10580then
10581 ac_cv_sizeof_long=`cat conftestval`
247f5006 10582else
a0b9e27f
MB
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -fr conftest*
10586 ac_cv_sizeof_long=0
247f5006 10587fi
a0b9e27f 10588rm -fr conftest*
247f5006 10589fi
247f5006 10590
5c6fa7d2 10591fi
a0b9e27f
MB
10592echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10593cat >> confdefs.h <<EOF
10594#define SIZEOF_LONG $ac_cv_sizeof_long
10595EOF
247f5006 10596
a0b9e27f
MB
10597
10598
10599case "${host}" in
10600 arm-*-linux* )
10601 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8b389fab 10602echo "configure:10603: checking size of long long" >&5
a0b9e27f
MB
10603if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605else
10606 if test "$cross_compiling" = yes; then
10607 ac_cv_sizeof_long_long=8
10608else
10609 cat > conftest.$ac_ext <<EOF
8b389fab 10610#line 10611 "configure"
247f5006 10611#include "confdefs.h"
a0b9e27f 10612#include <stdio.h>
a0b9e27f 10613main()
247f5006 10614{
a0b9e27f
MB
10615 FILE *f=fopen("conftestval", "w");
10616 if (!f) exit(1);
10617 fprintf(f, "%d\n", sizeof(long long));
10618 exit(0);
247f5006 10619}
a0b9e27f 10620EOF
8b389fab 10621if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10622then
10623 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10624else
a0b9e27f
MB
10625 echo "configure: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 rm -fr conftest*
10628 ac_cv_sizeof_long_long=0
5c6fa7d2 10629fi
a0b9e27f 10630rm -fr conftest*
5c6fa7d2 10631fi
8284b0c5 10632
a0b9e27f
MB
10633fi
10634echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10635cat >> confdefs.h <<EOF
10636#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10637EOF
10638
10639
10640 ;;
4f57cf11 10641 *-hp-hpux* )
a0b9e27f 10642 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8b389fab 10643echo "configure:10644: checking size of long long" >&5
a0b9e27f
MB
10644if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10646else
10647 if test "$cross_compiling" = yes; then
a0b9e27f 10648 ac_cv_sizeof_long_long=0
8284b0c5 10649else
a0b9e27f 10650 cat > conftest.$ac_ext <<EOF
8b389fab 10651#line 10652 "configure"
8284b0c5
MB
10652#include "confdefs.h"
10653#include <stdio.h>
a0b9e27f 10654main()
8284b0c5 10655{
a0b9e27f
MB
10656 FILE *f=fopen("conftestval", "w");
10657 if (!f) exit(1);
10658 fprintf(f, "%d\n", sizeof(long long));
10659 exit(0);
8284b0c5 10660}
a0b9e27f 10661EOF
8b389fab 10662if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10663then
10664 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10665else
a0b9e27f
MB
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -fr conftest*
5c6fa7d2 10669 ac_cv_sizeof_long_long=0
52127426 10670fi
a0b9e27f
MB
10671rm -fr conftest*
10672fi
10673
4f57cf11
GD
10674fi
10675echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10676cat >> confdefs.h <<EOF
10677#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10678EOF
10679
10680
10681 if test "$ac_cv_sizeof_long_long" != "0"; then
10682 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10683 fi
10684 ;;
10685 * )
10686 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8b389fab 10687echo "configure:10688: checking size of long long" >&5
4f57cf11
GD
10688if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690else
10691 if test "$cross_compiling" = yes; then
10692 ac_cv_sizeof_long_long=0
10693else
10694 cat > conftest.$ac_ext <<EOF
8b389fab 10695#line 10696 "configure"
4f57cf11
GD
10696#include "confdefs.h"
10697#include <stdio.h>
10698main()
10699{
10700 FILE *f=fopen("conftestval", "w");
10701 if (!f) exit(1);
10702 fprintf(f, "%d\n", sizeof(long long));
10703 exit(0);
10704}
10705EOF
8b389fab 10706if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10707then
10708 ac_cv_sizeof_long_long=`cat conftestval`
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -fr conftest*
10713 ac_cv_sizeof_long_long=0
10714fi
10715rm -fr conftest*
10716fi
10717
7b4a847f 10718fi
a0b9e27f
MB
10719echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10720cat >> confdefs.h <<EOF
21d1c967 10721#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10722EOF
9e691f46 10723
8284b0c5 10724
21d1c967
GD
10725esac
10726
a0b9e27f 10727echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
8b389fab 10728echo "configure:10729: checking size of wchar_t" >&5
a0b9e27f
MB
10729if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10731else
a0b9e27f 10732
21d1c967 10733 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10734
10735 case "${host}" in
10736 *-pc-msdosdjgpp )
10737 wx_cv_sizeof_wchar_t=0
10738 ;;
10739 * )
10740 wx_cv_sizeof_wchar_t=4
10741 ;;
10742 esac
10743
a0b9e27f 10744
6f72b082 10745else
a0b9e27f 10746 cat > conftest.$ac_ext <<EOF
8b389fab 10747#line 10748 "configure"
6f72b082 10748#include "confdefs.h"
21d1c967 10749
2b5f62a0
VZ
10750 /* DJGPP only has fake wchar_t: */
10751 #ifdef __DJGPP__
10752 # error "fake wchar_t"
10753 #endif
21d1c967
GD
10754 #ifdef HAVE_WCHAR_H
10755 # ifdef __CYGWIN__
10756 # include <stddef.h>
10757 # endif
10758 # include <wchar.h>
10759 #endif
10760 #ifdef HAVE_STDLIB_H
10761 # include <stdlib.h>
10762 #endif
10763 #include <stdio.h>
10764 int main()
10765 {
10766 FILE *f=fopen("conftestval", "w");
10767 if (!f) exit(1);
10768 fprintf(f, "%i", sizeof(wchar_t));
10769 exit(0);
10770 }
a0b9e27f
MB
10771
10772EOF
8b389fab 10773if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10774then
21d1c967 10775 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10776else
a0b9e27f
MB
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 rm -fr conftest*
10780 wx_cv_sizeof_wchar_t=0
6f72b082 10781fi
a0b9e27f 10782rm -fr conftest*
6f72b082 10783fi
6f72b082 10784
a0b9e27f 10785
3f345b47
VZ
10786fi
10787
a0b9e27f
MB
10788echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10789
10790cat >> confdefs.h <<EOF
21d1c967 10791#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10792EOF
90dd450c 10793
8284b0c5 10794
21d1c967
GD
10795# Check whether --enable-largefile or --disable-largefile was given.
10796if test "${enable_largefile+set}" = set; then
10797 enableval="$enable_largefile"
a0b9e27f
MB
10798 :
10799fi
3f345b47 10800
21d1c967
GD
10801if test "$enable_largefile" != no; then
10802 wx_largefile=no
a0b9e27f
MB
10803
10804 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
8b389fab 10805echo "configure:10806: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10806if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10808else
10809
10810 cat > conftest.$ac_ext <<EOF
8b389fab 10811#line 10812 "configure"
90dd450c 10812#include "confdefs.h"
21d1c967
GD
10813#define _FILE_OFFSET_BITS 64
10814 #include <sys/types.h>
a0b9e27f 10815int main() {
21d1c967
GD
10816typedef struct {
10817 unsigned int field: sizeof(off_t) == 8;
10818} wxlf;
10819
a0b9e27f
MB
10820; return 0; }
10821EOF
8b389fab 10822if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10823 rm -rf conftest*
21d1c967 10824 ac_cv_sys_file_offset_bits=64
f6bcfd97 10825else
a0b9e27f
MB
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 rm -rf conftest*
10829 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10830fi
a0b9e27f
MB
10831rm -f conftest*
10832
10833
247f5006 10834fi
a0b9e27f
MB
10835
10836echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10837
10838 if test "$ac_cv_sys_file_offset_bits" != no; then
10839 wx_largefile=yes
a0b9e27f 10840 cat >> confdefs.h <<EOF
21d1c967 10841#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10842EOF
21d1c967
GD
10843
10844 fi
10845
10846 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10847
10848 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
8b389fab 10849echo "configure:10850: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10850if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852else
10853
10854 cat > conftest.$ac_ext <<EOF
8b389fab 10855#line 10856 "configure"
f6bcfd97 10856#include "confdefs.h"
21d1c967
GD
10857#define _LARGE_FILES 1
10858 #include <sys/types.h>
a0b9e27f 10859int main() {
21d1c967
GD
10860typedef struct {
10861 unsigned int field: sizeof(off_t) == 8;
10862} wxlf;
10863
a0b9e27f
MB
10864; return 0; }
10865EOF
8b389fab 10866if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10867 rm -rf conftest*
21d1c967 10868 ac_cv_sys_large_files=1
f6bcfd97 10869else
a0b9e27f
MB
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 rm -rf conftest*
10873 ac_cv_sys_large_files=no
5c6fa7d2 10874fi
a0b9e27f
MB
10875rm -f conftest*
10876
10877
247f5006 10878fi
a0b9e27f
MB
10879
10880echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10881
21d1c967
GD
10882 if test "$ac_cv_sys_large_files" != no; then
10883 wx_largefile=yes
a0b9e27f 10884 cat >> confdefs.h <<EOF
21d1c967 10885#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10886EOF
90dd450c 10887
90dd450c
VZ
10888 fi
10889
90dd450c 10890 fi
90dd450c 10891
a0b9e27f 10892 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
8b389fab 10893echo "configure:10894: checking if large file support is available" >&5
21d1c967 10894 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10895 cat >> confdefs.h <<\EOF
21d1c967 10896#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10897EOF
90dd450c 10898
90dd450c 10899 fi
a0b9e27f 10900 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10901fi
90dd450c 10902
8284b0c5 10903
f02444d0 10904if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10905 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10906 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10907 else
e26c13cf 10908 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10909 fi
e26c13cf 10910 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10911fi
10912
a0b9e27f 10913echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8b389fab 10914echo "configure:10915: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10915if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10917else
21d1c967
GD
10918 ac_cv_c_bigendian=unknown
10919# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10920cat > conftest.$ac_ext <<EOF
8b389fab 10921#line 10922 "configure"
90dd450c 10922#include "confdefs.h"
21d1c967
GD
10923#include <sys/types.h>
10924#include <sys/param.h>
a0b9e27f 10925int main() {
21d1c967
GD
10926
10927#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10928 bogus endian macros
10929#endif
a0b9e27f
MB
10930; return 0; }
10931EOF
8b389fab 10932if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10933 rm -rf conftest*
21d1c967 10934 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10935cat > conftest.$ac_ext <<EOF
8b389fab 10936#line 10937 "configure"
90dd450c 10937#include "confdefs.h"
21d1c967
GD
10938#include <sys/types.h>
10939#include <sys/param.h>
a0b9e27f 10940int main() {
21d1c967
GD
10941
10942#if BYTE_ORDER != BIG_ENDIAN
10943 not big endian
10944#endif
a0b9e27f
MB
10945; return 0; }
10946EOF
8b389fab 10947if { (eval echo configure:10948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10948 rm -rf conftest*
21d1c967 10949 ac_cv_c_bigendian=yes
3f345b47 10950else
a0b9e27f
MB
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -rf conftest*
10954 ac_cv_c_bigendian=no
3f345b47 10955fi
a0b9e27f 10956rm -f conftest*
3f345b47 10957else
a0b9e27f
MB
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
3f345b47 10960fi
a0b9e27f 10961rm -f conftest*
21d1c967
GD
10962if test $ac_cv_c_bigendian = unknown; then
10963if test "$cross_compiling" = yes; then
10964 ac_cv_c_bigendian=unknown
10f2d63a 10965else
a0b9e27f 10966 cat > conftest.$ac_ext <<EOF
8b389fab 10967#line 10968 "configure"
90dd450c 10968#include "confdefs.h"
21d1c967
GD
10969main () {
10970 /* Are we little or big endian? From Harbison&Steele. */
10971 union
10972 {
10973 long l;
10974 char c[sizeof (long)];
10975 } u;
10976 u.l = 1;
10977 exit (u.c[sizeof (long) - 1] == 1);
10978}
a0b9e27f 10979EOF
8b389fab 10980if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10981then
21d1c967 10982 ac_cv_c_bigendian=no
3f345b47 10983else
a0b9e27f
MB
10984 echo "configure: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10986 rm -fr conftest*
10987 ac_cv_c_bigendian=yes
247f5006 10988fi
a0b9e27f 10989rm -fr conftest*
247f5006 10990fi
a0b9e27f 10991
3f345b47 10992fi
8168de4c 10993fi
a0b9e27f
MB
10994
10995echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10996if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10997 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
10998fi
10999if test $ac_cv_c_bigendian = yes; then
a0b9e27f 11000 cat >> confdefs.h <<\EOF
247f5006 11001#define WORDS_BIGENDIAN 1
a0b9e27f 11002EOF
247f5006
VZ
11003
11004fi
11005
11006
a0b9e27f 11007echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8b389fab 11008echo "configure:11009: checking how to run the C++ preprocessor" >&5
247f5006 11009if test -z "$CXXCPP"; then
a0b9e27f
MB
11010if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11012else
a0b9e27f
MB
11013 ac_ext=C
11014# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11015ac_cpp='$CXXCPP $CPPFLAGS'
11016ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11017ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11018cross_compiling=$ac_cv_prog_cxx_cross
11019 CXXCPP="${CXX-g++} -E"
11020 cat > conftest.$ac_ext <<EOF
8b389fab 11021#line 11022 "configure"
5c6fa7d2 11022#include "confdefs.h"
a0b9e27f
MB
11023#include <stdlib.h>
11024EOF
11025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 11026{ (eval echo configure:11027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11028if test -z "$ac_err"; then
21d1c967 11029 :
698dcdb6 11030else
a0b9e27f
MB
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
698dcdb6 11033 cat conftest.$ac_ext >&5
a0b9e27f
MB
11034 rm -rf conftest*
11035 CXXCPP=/lib/cpp
247f5006 11036fi
a0b9e27f
MB
11037rm -f conftest*
11038 ac_cv_prog_CXXCPP="$CXXCPP"
11039ac_ext=C
11040# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11041ac_cpp='$CXXCPP $CPPFLAGS'
11042ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11043ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11044cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11045fi
90dd450c 11046fi
a0b9e27f
MB
11047CXXCPP="$ac_cv_prog_CXXCPP"
11048echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11049
1725144d 11050
21d1c967 11051 if test "$cross_compiling" = "yes"; then
a0b9e27f 11052 cat >> confdefs.h <<\EOF
21d1c967 11053#define wxUSE_IOSTREAMH 1
a0b9e27f 11054EOF
ab9b9eab 11055
21d1c967 11056 else
a0b9e27f
MB
11057
11058 ac_ext=C
11059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11060ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063cross_compiling=$ac_cv_prog_cxx_cross
52127426 11064
247f5006 11065
a0b9e27f 11066 for ac_hdr in iostream
21d1c967 11067do
a0b9e27f
MB
11068ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11069echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 11070echo "configure:11071: checking for $ac_hdr" >&5
a0b9e27f
MB
11071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11073else
11074 cat > conftest.$ac_ext <<EOF
8b389fab 11075#line 11076 "configure"
ab9b9eab 11076#include "confdefs.h"
a0b9e27f
MB
11077#include <$ac_hdr>
11078EOF
11079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 11080{ (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082if test -z "$ac_err"; then
11083 rm -rf conftest*
11084 eval "ac_cv_header_$ac_safe=yes"
11085else
11086 echo "$ac_err" >&5
11087 echo "configure: failed program was:" >&5
ab9b9eab 11088 cat conftest.$ac_ext >&5
a0b9e27f
MB
11089 rm -rf conftest*
11090 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11091fi
a0b9e27f 11092rm -f conftest*
90dd450c 11093fi
a0b9e27f
MB
11094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11097 cat >> confdefs.h <<EOF
11098#define $ac_tr_hdr 1
11099EOF
11100
11101else
11102 echo "$ac_t""no" 1>&6
90dd450c 11103fi
21d1c967 11104done
10f2d63a 11105
8284b0c5 11106
21d1c967
GD
11107 if test "$ac_cv_header_iostream" = "yes" ; then
11108 :
11109 else
a0b9e27f 11110 cat >> confdefs.h <<\EOF
21d1c967 11111#define wxUSE_IOSTREAMH 1
a0b9e27f 11112EOF
788deba1 11113
90dd450c 11114 fi
ab9b9eab 11115
21d1c967 11116 ac_ext=c
a0b9e27f 11117# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11118ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11119ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11122
21d1c967 11123 fi
ab9b9eab 11124
52127426 11125
8284b0c5 11126
a0b9e27f 11127 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
8b389fab 11128echo "configure:11129: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11129if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11131else
a0b9e27f
MB
11132
11133
11134 ac_ext=C
11135# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11136ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11137ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11140
8284b0c5 11141
a0b9e27f 11142 cat > conftest.$ac_ext <<EOF
8b389fab 11143#line 11144 "configure"
ab9b9eab 11144#include "confdefs.h"
21d1c967 11145
a0b9e27f
MB
11146
11147int main() {
21d1c967
GD
11148
11149 bool b = true;
11150
11151 return 0;
a0b9e27f
MB
11152
11153; return 0; }
11154EOF
8b389fab 11155if { (eval echo configure:11156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11156 rm -rf conftest*
11157
21d1c967 11158 wx_cv_cpp_bool=yes
a0b9e27f 11159
698dcdb6 11160else
a0b9e27f
MB
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11163 rm -rf conftest*
11164
21d1c967 11165 wx_cv_cpp_bool=no
a0b9e27f
MB
11166
11167
698dcdb6 11168fi
a0b9e27f 11169rm -f conftest*
21d1c967
GD
11170
11171 ac_ext=c
a0b9e27f 11172# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11173ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11175ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11176cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11177
a0b9e27f 11178
247f5006 11179fi
a0b9e27f
MB
11180
11181echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11182
11183 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11184 cat >> confdefs.h <<\EOF
21d1c967 11185#define HAVE_BOOL 1
a0b9e27f 11186EOF
ab9b9eab 11187
21d1c967
GD
11188 fi
11189
52127426 11190
8284b0c5 11191
a0b9e27f 11192 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
8b389fab 11193echo "configure:11194: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11194if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11196else
a0b9e27f
MB
11197
11198
11199 ac_ext=C
11200# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11201ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11202ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11203ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11204cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11205
8284b0c5 11206
a0b9e27f 11207 cat > conftest.$ac_ext <<EOF
8b389fab 11208#line 11209 "configure"
986ecc86
VZ
11209#include "confdefs.h"
11210
11211 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11212
11213int main() {
986ecc86
VZ
11214
11215 return 0;
a0b9e27f
MB
11216
11217; return 0; }
11218EOF
8b389fab 11219if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11220 rm -rf conftest*
11221
11222 cat > conftest.$ac_ext <<EOF
8b389fab 11223#line 11224 "configure"
986ecc86
VZ
11224#include "confdefs.h"
11225
11226 class Foo { public: explicit Foo(int) {} };
11227 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11228
11229int main() {
986ecc86
VZ
11230
11231 TakeFoo(17);
11232 return 0;
a0b9e27f
MB
11233
11234; return 0; }
11235EOF
8b389fab 11236if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11237 rm -rf conftest*
986ecc86
VZ
11238 wx_cv_explicit=no
11239else
a0b9e27f
MB
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -rf conftest*
11243 wx_cv_explicit=yes
11244
986ecc86 11245fi
a0b9e27f
MB
11246rm -f conftest*
11247
986ecc86 11248else
a0b9e27f
MB
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 rm -rf conftest*
11252 wx_cv_explicit=no
11253
986ecc86 11254fi
a0b9e27f 11255rm -f conftest*
986ecc86
VZ
11256
11257 ac_ext=c
a0b9e27f 11258# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11259ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11260ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11261ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11262cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11263
a0b9e27f 11264
247f5006 11265fi
a0b9e27f
MB
11266
11267echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11268
11269 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11270 cat >> confdefs.h <<\EOF
986ecc86 11271#define HAVE_EXPLICIT 1
a0b9e27f 11272EOF
986ecc86
VZ
11273
11274 fi
11275
8284b0c5 11276
521196a2 11277echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
8b389fab 11278echo "configure:11279: checking whether the compiler supports const_cast<>" >&5
521196a2
MB
11279if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11281else
11282
11283 ac_ext=C
11284# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11285ac_cpp='$CXXCPP $CPPFLAGS'
11286ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11287ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11288cross_compiling=$ac_cv_prog_cxx_cross
11289
11290 cat > conftest.$ac_ext <<EOF
8b389fab 11291#line 11292 "configure"
521196a2
MB
11292#include "confdefs.h"
11293
11294int main() {
11295int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11296; return 0; }
11297EOF
8b389fab 11298if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
521196a2
MB
11299 rm -rf conftest*
11300 ac_cv_cxx_const_cast=yes
11301else
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 rm -rf conftest*
11305 ac_cv_cxx_const_cast=no
11306fi
11307rm -f conftest*
11308 ac_ext=c
11309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11310ac_cpp='$CPP $CPPFLAGS'
11311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11313cross_compiling=$ac_cv_prog_cc_cross
11314
11315
11316fi
11317
11318echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11319if test "$ac_cv_cxx_const_cast" = yes; then
11320 cat >> confdefs.h <<\EOF
11321#define HAVE_CONST_CAST
11322EOF
11323
11324fi
11325
11326
8284b0c5 11327
21d1c967
GD
11328SEARCH_INCLUDE="\
11329 /usr/local/include \
11330 \
11331 /usr/Motif-1.2/include \
11332 /usr/Motif-2.1/include \
11333 \
11334 /usr/include/Motif1.2 \
11335 /opt/xpm/include/X11 \
11336 /opt/GBxpm/include/ \
11337 /opt/GBxpm/X11/include/ \
11338 \
11339 /usr/Motif1.2/include \
11340 /usr/dt/include \
11341 /usr/openwin/include \
11342 \
11343 /usr/include/Xm \
11344 \
11345 /usr/X11R6/include \
11346 /usr/X11R6.4/include \
11347 /usr/X11R5/include \
11348 /usr/X11R4/include \
11349 \
11350 /usr/include/X11R6 \
11351 /usr/include/X11R5 \
11352 /usr/include/X11R4 \
11353 \
11354 /usr/local/X11R6/include \
11355 /usr/local/X11R5/include \
11356 /usr/local/X11R4/include \
11357 \
11358 /usr/local/include/X11R6 \
11359 /usr/local/include/X11R5 \
11360 /usr/local/include/X11R4 \
11361 \
11362 /usr/X11/include \
11363 /usr/include/X11 \
11364 /usr/local/X11/include \
11365 /usr/local/include/X11 \
11366 \
11367 /usr/X386/include \
11368 /usr/x386/include \
11369 /usr/XFree86/include/X11 \
11370 \
11371 X:/XFree86/include \
11372 X:/XFree86/include/X11 \
11373 \
11374 /usr/include/gtk \
11375 /usr/local/include/gtk \
11376 /usr/include/glib \
11377 /usr/local/include/glib \
11378 \
11379 /usr/include/qt \
11380 /usr/local/include/qt \
11381 \
11382 /usr/include/windows \
11383 /usr/include/wine \
11384 /usr/local/include/wine \
11385 \
11386 /usr/unsupported/include \
11387 /usr/athena/include \
11388 /usr/local/x11r5/include \
11389 /usr/lpp/Xamples/include \
11390 \
2b5f62a0 11391 /usr/openwin/share/include"
21d1c967
GD
11392
11393SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11394
8284b0c5 11395
a0b9e27f 11396cat > confcache <<\EOF
21d1c967
GD
11397# This file is a shell script that caches the results of configure
11398# tests run on this system so they can be shared between configure
a0b9e27f
MB
11399# scripts and configure runs. It is not useful on other systems.
11400# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11401#
a0b9e27f
MB
11402# By default, configure uses ./config.cache as the cache file,
11403# creating it if it does not exist already. You can give configure
11404# the --cache-file=FILE option to use a different cache file; that is
11405# what configure does when it calls configure scripts in
11406# subdirectories, so they share the cache.
11407# Giving --cache-file=/dev/null disables caching, for debugging configure.
11408# config.status only pays attention to the cache file if you give it the
11409# --recheck option to rerun configure.
21d1c967 11410#
a0b9e27f 11411EOF
21d1c967
GD
11412# The following way of writing the cache mishandles newlines in values,
11413# but we know of no workaround that is simple, portable, and efficient.
11414# So, don't put newlines in cache variables' values.
11415# Ultrix sh set writes to stderr and can't be redirected directly,
11416# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11417(set) 2>&1 |
11418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11419 *ac_space=\ *)
11420 # `set' does not quote correctly, so add quotes (double-quote substitution
11421 # turns \\\\ into \\, and sed turns \\ into \).
11422 sed -n \
11423 -e "s/'/'\\\\''/g" \
11424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11425 ;;
11426 *)
11427 # `set' quotes correctly as required by POSIX, so do not add quotes.
11428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11429 ;;
11430 esac >> confcache
11431if cmp -s $cache_file confcache; then
11432 :
11433else
21d1c967 11434 if test -w $cache_file; then
a0b9e27f
MB
11435 echo "updating cache $cache_file"
11436 cat confcache > $cache_file
21d1c967
GD
11437 else
11438 echo "not updating unwritable cache $cache_file"
11439 fi
ab9b9eab 11440fi
21d1c967 11441rm -f confcache
ab9b9eab 11442
247f5006 11443
a0b9e27f
MB
11444if test "$USE_LINUX" = 1; then
11445 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
8b389fab 11446echo "configure:11447: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11447if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11449else
11450
11451 cat > conftest.$ac_ext <<EOF
8b389fab 11452#line 11453 "configure"
ab9b9eab 11453#include "confdefs.h"
21d1c967 11454#include <features.h>
a0b9e27f 11455int main() {
ab9b9eab 11456
21d1c967
GD
11457 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11458 #error not glibc2.1
11459 #endif
a0b9e27f
MB
11460
11461; return 0; }
11462EOF
8b389fab 11463if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11464 rm -rf conftest*
11465
21d1c967 11466 wx_cv_lib_glibc21=yes
a0b9e27f 11467
698dcdb6 11468else
a0b9e27f
MB
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472
21d1c967 11473 wx_cv_lib_glibc21=no
a0b9e27f
MB
11474
11475
5c6fa7d2 11476fi
a0b9e27f
MB
11477rm -f conftest*
11478
247f5006 11479fi
a0b9e27f
MB
11480
11481echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11482 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11483 cat >> confdefs.h <<\EOF
21d1c967 11484#define wxHAVE_GLIBC2 1
a0b9e27f 11485EOF
1e487827 11486
90dd450c 11487 fi
ab9b9eab
VZ
11488fi
11489
5c0a20c3
VZ
11490if test "x$wx_cv_lib_glibc21" = "xyes"; then
11491 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11492 cat >> confdefs.h <<\EOF
5c0a20c3 11493#define _GNU_SOURCE 1
a0b9e27f 11494EOF
5c0a20c3
VZ
11495
11496 fi
11497fi
11498
8284b0c5
MB
11499
11500
21d1c967
GD
11501REGEX_INCLUDE=
11502if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11503 cat >> confdefs.h <<\EOF
21d1c967 11504#define wxUSE_REGEX 1
a0b9e27f 11505EOF
698dcdb6 11506
8284b0c5 11507
21d1c967 11508 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11509 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11510echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8b389fab 11511echo "configure:11512: checking for regex.h" >&5
a0b9e27f
MB
11512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11513 echo $ac_n "(cached) $ac_c" 1>&6
11514else
11515 cat > conftest.$ac_ext <<EOF
8b389fab 11516#line 11517 "configure"
247f5006
VZ
11517#include "confdefs.h"
11518#include <regex.h>
a0b9e27f
MB
11519EOF
11520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 11521{ (eval echo configure:11522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11523if test -z "$ac_err"; then
11524 rm -rf conftest*
11525 eval "ac_cv_header_$ac_safe=yes"
11526else
11527 echo "$ac_err" >&5
11528 echo "configure: failed program was:" >&5
21d1c967 11529 cat conftest.$ac_ext >&5
a0b9e27f
MB
11530 rm -rf conftest*
11531 eval "ac_cv_header_$ac_safe=no"
21d1c967 11532fi
a0b9e27f 11533rm -f conftest*
698dcdb6 11534fi
a0b9e27f
MB
11535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
11537 for ac_func in regcomp
21d1c967 11538do
a0b9e27f 11539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 11540echo "configure:11541: checking for $ac_func" >&5
a0b9e27f
MB
11541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11543else
a0b9e27f 11544 cat > conftest.$ac_ext <<EOF
8b389fab 11545#line 11546 "configure"
a0b9e27f
MB
11546#include "confdefs.h"
11547/* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func(); below. */
21d1c967
GD
11549#include <assert.h>
11550/* Override any gcc2 internal prototype to avoid an error. */
11551/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11552 builtin and then its argument prototype would still apply. */
11553char $ac_func();
11554
11555int main() {
11556
21d1c967
GD
11557/* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11561choke me
11562#else
a0b9e27f 11563$ac_func();
21d1c967 11564#endif
90dd450c 11565
a0b9e27f
MB
11566; return 0; }
11567EOF
8b389fab 11568if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=yes"
11571else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 eval "ac_cv_func_$ac_func=no"
11576fi
11577rm -f conftest*
11578fi
5c6fa7d2 11579
a0b9e27f
MB
11580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11581 echo "$ac_t""yes" 1>&6
11582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11583 cat >> confdefs.h <<EOF
11584#define $ac_tr_func 1
11585EOF
11586
11587else
11588 echo "$ac_t""no" 1>&6
698dcdb6 11589fi
21d1c967
GD
11590done
11591
a0b9e27f
MB
11592else
11593 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11594fi
11595
8284b0c5 11596
21d1c967
GD
11597 if test "x$ac_cv_func_regcomp" != "xyes"; then
11598 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11599 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11600 else
a0b9e27f 11601 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11602 wxUSE_REGEX=builtin
11603 fi
11604 else
11605 wxUSE_REGEX=sys
11606 fi
ab9b9eab 11607 fi
90dd450c 11608
21d1c967
GD
11609 if test "$wxUSE_REGEX" = "builtin" ; then
11610 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11611 fi
21d1c967 11612fi
90dd450c 11613
8284b0c5 11614
21d1c967
GD
11615ZLIB_INCLUDE=
11616ZLIB_LINK=
11617if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11618 cat >> confdefs.h <<\EOF
21d1c967 11619#define wxUSE_ZLIB 1
a0b9e27f 11620EOF
21d1c967 11621
8284b0c5 11622
21d1c967 11623 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11624 if test "$USE_DARWIN" = 1; then
11625 system_zlib_h_ok="yes"
11626 else
11627 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
8b389fab 11628echo "configure:11629: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11629if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11631else
11632 if test "$cross_compiling" = yes; then
89e6bf6d 11633 unset ac_cv_header_zlib_h
d775acfa 11634
d643b80e
VZ
11635else
11636 cat > conftest.$ac_ext <<EOF
8b389fab 11637#line 11638 "configure"
d643b80e 11638#include "confdefs.h"
ef33c576
VZ
11639
11640 #include <zlib.h>
d775acfa 11641 #include <stdio.h>
d643b80e 11642
d775acfa
VZ
11643 int main()
11644 {
11645 FILE *f=fopen("conftestval", "w");
11646 if (!f) exit(1);
11647 fprintf(f, "%s",
11648 ZLIB_VERSION[0] == '1' &&
11649 (ZLIB_VERSION[2] > '1' ||
11650 (ZLIB_VERSION[2] == '1' &&
11651 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11652 exit(0);
11653 }
d643b80e 11654
d643b80e 11655EOF
8b389fab 11656if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11657then
11658 ac_cv_header_zlib_h=`cat conftestval`
11659else
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 rm -fr conftest*
11663 ac_cv_header_zlib_h=no
11664fi
11665rm -fr conftest*
11666fi
11667
d775acfa 11668
d643b80e
VZ
11669fi
11670
11671echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
89e6bf6d
VZ
11672 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11673echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8b389fab 11674echo "configure:11675: checking for zlib.h" >&5
89e6bf6d
VZ
11675if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11676 echo $ac_n "(cached) $ac_c" 1>&6
11677else
11678 cat > conftest.$ac_ext <<EOF
8b389fab 11679#line 11680 "configure"
89e6bf6d
VZ
11680#include "confdefs.h"
11681#include <zlib.h>
11682EOF
11683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 11684{ (eval echo configure:11685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11686if test -z "$ac_err"; then
11687 rm -rf conftest*
11688 eval "ac_cv_header_$ac_safe=yes"
11689else
11690 echo "$ac_err" >&5
11691 echo "configure: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=no"
11695fi
11696rm -f conftest*
11697fi
11698if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11699 echo "$ac_t""yes" 1>&6
11700 :
11701else
11702 echo "$ac_t""no" 1>&6
11703fi
11704
d643b80e 11705
d775acfa
VZ
11706 system_zlib_h_ok=$ac_cv_header_zlib_h
11707 fi
11708
11709 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11710 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8b389fab 11711echo "configure:11712: checking for deflate in -lz" >&5
a0b9e27f
MB
11712ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11714 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11715else
a0b9e27f 11716 ac_save_LIBS="$LIBS"
21d1c967 11717LIBS="-lz $LIBS"
a0b9e27f 11718cat > conftest.$ac_ext <<EOF
8b389fab 11719#line 11720 "configure"
ab9b9eab 11720#include "confdefs.h"
21d1c967
GD
11721/* Override any gcc2 internal prototype to avoid an error. */
11722/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11723 builtin and then its argument prototype would still apply. */
11724char deflate();
11725
11726int main() {
11727deflate()
11728; return 0; }
11729EOF
8b389fab 11730if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11731 rm -rf conftest*
11732 eval "ac_cv_lib_$ac_lib_var=yes"
11733else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11738fi
a0b9e27f
MB
11739rm -f conftest*
11740LIBS="$ac_save_LIBS"
698dcdb6 11741
698dcdb6 11742fi
a0b9e27f
MB
11743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11744 echo "$ac_t""yes" 1>&6
11745 ZLIB_LINK=" -lz"
11746else
11747 echo "$ac_t""no" 1>&6
11748fi
698dcdb6 11749
d643b80e 11750 fi
247f5006 11751
21d1c967
GD
11752 if test "x$ZLIB_LINK" = "x" ; then
11753 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11754 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11755 else
d643b80e 11756 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11757 wxUSE_ZLIB=builtin
11758 fi
11759 else
11760 wxUSE_ZLIB=sys
11761 fi
11762 fi
11763
11764 if test "$wxUSE_ZLIB" = "builtin" ; then
11765 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11766 fi
ab9b9eab
VZ
11767fi
11768
8284b0c5 11769
21d1c967
GD
11770PNG_INCLUDE=
11771PNG_LINK=
11772if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11773 cat >> confdefs.h <<\EOF
21d1c967 11774#define wxUSE_LIBPNG 1
a0b9e27f 11775EOF
90dd450c 11776
8284b0c5 11777
21d1c967 11778 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11779 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11780 wxUSE_LIBPNG=sys
11781 fi
90dd450c 11782
21d1c967 11783 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11784 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11785 wxUSE_LIBPNG=builtin
11786 fi
11787
11788 if test "$wxUSE_MGL" != 1 ; then
11789 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11790 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
8b389fab 11791echo "configure:11792: checking for png.h > 0.90" >&5
5d3f766d
VZ
11792if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11794else
11795 if test "$cross_compiling" = yes; then
89e6bf6d 11796 unset ac_cv_header_png_h
5d3f766d
VZ
11797
11798else
11799 cat > conftest.$ac_ext <<EOF
8b389fab 11800#line 11801 "configure"
5d3f766d 11801#include "confdefs.h"
ef33c576
VZ
11802
11803 #include <png.h>
5d3f766d
VZ
11804 #include <stdio.h>
11805
11806 int main()
11807 {
11808 FILE *f=fopen("conftestval", "w");
11809 if (!f) exit(1);
11810 fprintf(f, "%s",
11811 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11812 exit(0);
11813 }
11814
11815EOF
8b389fab 11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11817then
11818 ac_cv_header_png_h=`cat conftestval`
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -fr conftest*
11823 ac_cv_header_png_h=no
11824fi
11825rm -fr conftest*
11826fi
11827
11828
11829fi
11830
11831echo "$ac_t""$ac_cv_header_png_h" 1>&6
89e6bf6d
VZ
11832 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11833echo $ac_n "checking for png.h""... $ac_c" 1>&6
8b389fab 11834echo "configure:11835: checking for png.h" >&5
89e6bf6d
VZ
11835if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11837else
11838 cat > conftest.$ac_ext <<EOF
8b389fab 11839#line 11840 "configure"
89e6bf6d
VZ
11840#include "confdefs.h"
11841#include <png.h>
11842EOF
11843ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 11844{ (eval echo configure:11845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
89e6bf6d
VZ
11845ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11846if test -z "$ac_err"; then
11847 rm -rf conftest*
11848 eval "ac_cv_header_$ac_safe=yes"
11849else
11850 echo "$ac_err" >&5
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -rf conftest*
11854 eval "ac_cv_header_$ac_safe=no"
11855fi
11856rm -f conftest*
11857fi
11858if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 :
11861else
11862 echo "$ac_t""no" 1>&6
11863fi
11864
5d3f766d
VZ
11865
11866 if test "$ac_cv_header_png_h" = "yes"; then
11867 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
8b389fab 11868echo "configure:11869: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11869ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11872else
a0b9e27f 11873 ac_save_LIBS="$LIBS"
21d1c967 11874LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11875cat > conftest.$ac_ext <<EOF
8b389fab 11876#line 11877 "configure"
90dd450c 11877#include "confdefs.h"
21d1c967
GD
11878/* Override any gcc2 internal prototype to avoid an error. */
11879/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11880 builtin and then its argument prototype would still apply. */
11881char png_check_sig();
90dd450c 11882
a0b9e27f
MB
11883int main() {
11884png_check_sig()
11885; return 0; }
11886EOF
8b389fab 11887if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11888 rm -rf conftest*
11889 eval "ac_cv_lib_$ac_lib_var=yes"
11890else
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 rm -rf conftest*
11894 eval "ac_cv_lib_$ac_lib_var=no"
11895fi
11896rm -f conftest*
11897LIBS="$ac_save_LIBS"
247f5006 11898
90dd450c 11899fi
a0b9e27f
MB
11900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11901 echo "$ac_t""yes" 1>&6
11902 PNG_LINK=" -lpng"
11903else
11904 echo "$ac_t""no" 1>&6
11905fi
90dd450c 11906
5d3f766d 11907 fi
247f5006 11908
21d1c967
GD
11909 if test "x$PNG_LINK" = "x" ; then
11910 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11911 { 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 11912 else
0c98a14e 11913 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11914 wxUSE_LIBPNG=builtin
11915 fi
11916 else
2b5f62a0 11917 wxUSE_LIBPNG=sys
21d1c967
GD
11918 fi
11919 fi
11920 fi
90dd450c 11921
21d1c967
GD
11922 if test "$wxUSE_LIBPNG" = "builtin" ; then
11923 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11924 fi
90dd450c 11925
21d1c967 11926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11927fi
11928
8284b0c5 11929
21d1c967
GD
11930JPEG_INCLUDE=
11931JPEG_LINK=
11932if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11933 cat >> confdefs.h <<\EOF
21d1c967 11934#define wxUSE_LIBJPEG 1
a0b9e27f 11935EOF
90dd450c 11936
8284b0c5 11937
21d1c967 11938 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11939 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11940 wxUSE_LIBJPEG=sys
11941 fi
90dd450c 11942
21d1c967
GD
11943 if test "$wxUSE_MGL" != 1 ; then
11944 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11945 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8b389fab 11946echo "configure:11947: checking for jpeglib.h" >&5
a0b9e27f
MB
11947 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11949else
a0b9e27f 11950 cat > conftest.$ac_ext <<EOF
8b389fab 11951#line 11952 "configure"
21d1c967 11952#include "confdefs.h"
90dd450c 11953
21d1c967
GD
11954 #undef HAVE_STDLIB_H
11955 #include <stdio.h>
11956 #include <jpeglib.h>
a0b9e27f
MB
11957
11958int main() {
90dd450c 11959
a0b9e27f
MB
11960
11961; return 0; }
11962EOF
8b389fab 11963if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11964 rm -rf conftest*
21d1c967 11965 ac_cv_header_jpeglib_h=yes
90dd450c 11966else
a0b9e27f
MB
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 rm -rf conftest*
11970 ac_cv_header_jpeglib_h=no
11971
90dd450c 11972fi
a0b9e27f
MB
11973rm -f conftest*
11974
90dd450c
VZ
11975fi
11976
a0b9e27f 11977 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11978
21d1c967 11979 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11980 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
8b389fab 11981echo "configure:11982: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11982ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11985else
a0b9e27f 11986 ac_save_LIBS="$LIBS"
21d1c967 11987LIBS="-ljpeg $LIBS"
a0b9e27f 11988cat > conftest.$ac_ext <<EOF
8b389fab 11989#line 11990 "configure"
21d1c967
GD
11990#include "confdefs.h"
11991/* Override any gcc2 internal prototype to avoid an error. */
11992/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11993 builtin and then its argument prototype would still apply. */
11994char jpeg_read_header();
11995
11996int main() {
11997jpeg_read_header()
11998; return 0; }
11999EOF
8b389fab 12000if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12001 rm -rf conftest*
12002 eval "ac_cv_lib_$ac_lib_var=yes"
12003else
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12006 rm -rf conftest*
12007 eval "ac_cv_lib_$ac_lib_var=no"
12008fi
12009rm -f conftest*
12010LIBS="$ac_save_LIBS"
12011
12012fi
12013if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
21d1c967 12015 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
12016else
12017 echo "$ac_t""no" 1>&6
90dd450c
VZ
12018fi
12019
21d1c967 12020 fi
90dd450c 12021
21d1c967
GD
12022 if test "x$JPEG_LINK" = "x" ; then
12023 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 12024 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 12025 else
a0b9e27f 12026 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
12027 wxUSE_LIBJPEG=builtin
12028 fi
12029 else
12030 wxUSE_LIBJPEG=sys
12031 fi
12032 fi
12033 fi
90dd450c 12034
21d1c967
GD
12035 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12036 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12037 fi
12038fi
90dd450c 12039
8284b0c5 12040
21d1c967
GD
12041TIFF_INCLUDE=
12042TIFF_LINK=
2b5f62a0 12043TIFF_PREREQ_LINKS=-lm
21d1c967 12044if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 12045 cat >> confdefs.h <<\EOF
21d1c967 12046#define wxUSE_LIBTIFF 1
a0b9e27f 12047EOF
21d1c967 12048
8284b0c5 12049
21d1c967 12050 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12051 if test "$wxUSE_LIBJPEG" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12053 fi
12054 if test "$wxUSE_ZLIB" = "sys"; then
12055 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12056 fi
a0b9e27f
MB
12057 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12058echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8b389fab 12059echo "configure:12060: checking for tiffio.h" >&5
a0b9e27f
MB
12060if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12062else
12063 cat > conftest.$ac_ext <<EOF
8b389fab 12064#line 12065 "configure"
247f5006
VZ
12065#include "confdefs.h"
12066#include <tiffio.h>
a0b9e27f
MB
12067EOF
12068ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 12069{ (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12070ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12071if test -z "$ac_err"; then
12072 rm -rf conftest*
12073 eval "ac_cv_header_$ac_safe=yes"
12074else
12075 echo "$ac_err" >&5
12076 echo "configure: failed program was:" >&5
21d1c967 12077 cat conftest.$ac_ext >&5
a0b9e27f
MB
12078 rm -rf conftest*
12079 eval "ac_cv_header_$ac_safe=no"
21d1c967 12080fi
a0b9e27f 12081rm -f conftest*
21d1c967 12082fi
a0b9e27f
MB
12083if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12084 echo "$ac_t""yes" 1>&6
12085 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
8b389fab 12086echo "configure:12087: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12087ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12090else
a0b9e27f 12091 ac_save_LIBS="$LIBS"
2b5f62a0 12092LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12093cat > conftest.$ac_ext <<EOF
8b389fab 12094#line 12095 "configure"
ab9b9eab
VZ
12095#include "confdefs.h"
12096/* Override any gcc2 internal prototype to avoid an error. */
12097/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12098 builtin and then its argument prototype would still apply. */
12099char TIFFError();
ab9b9eab 12100
a0b9e27f
MB
12101int main() {
12102TIFFError()
12103; return 0; }
12104EOF
8b389fab 12105if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12106 rm -rf conftest*
12107 eval "ac_cv_lib_$ac_lib_var=yes"
12108else
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=no"
12113fi
12114rm -f conftest*
12115LIBS="$ac_save_LIBS"
247f5006 12116
21d1c967 12117fi
a0b9e27f
MB
12118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12119 echo "$ac_t""yes" 1>&6
12120 TIFF_LINK=" -ltiff"
12121else
12122 echo "$ac_t""no" 1>&6
12123fi
cd6d6d5b 12124
a0b9e27f
MB
12125
12126else
12127 echo "$ac_t""no" 1>&6
12128fi
8284b0c5 12129
247f5006 12130
21d1c967
GD
12131 if test "x$TIFF_LINK" = "x" ; then
12132 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12133 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12134 else
a0b9e27f 12135 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12136 wxUSE_LIBTIFF=builtin
d8356fa3 12137 fi
d8356fa3 12138 else
21d1c967 12139 wxUSE_LIBTIFF=sys
d8356fa3 12140 fi
21d1c967 12141 fi
d8356fa3 12142
21d1c967
GD
12143 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12144 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12145 fi
21d1c967 12146fi
10f2d63a 12147
8284b0c5 12148
21d1c967 12149AFMINSTALL=
2b5f62a0 12150WIN32INSTALL=
90dd450c 12151
21d1c967
GD
12152TOOLKIT=
12153TOOLKIT_INCLUDE=
12154WIDGET_SET=
12155
12156if test "$USE_WIN32" = 1 ; then
a0b9e27f 12157 for ac_hdr in w32api.h
21d1c967 12158do
a0b9e27f
MB
12159ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12160echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 12161echo "configure:12162: checking for $ac_hdr" >&5
a0b9e27f
MB
12162if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12163 echo $ac_n "(cached) $ac_c" 1>&6
12164else
12165 cat > conftest.$ac_ext <<EOF
8b389fab 12166#line 12167 "configure"
247f5006 12167#include "confdefs.h"
a0b9e27f
MB
12168#include <$ac_hdr>
12169EOF
12170ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 12171{ (eval echo configure:12172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12172ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12173if test -z "$ac_err"; then
12174 rm -rf conftest*
12175 eval "ac_cv_header_$ac_safe=yes"
12176else
12177 echo "$ac_err" >&5
12178 echo "configure: failed program was:" >&5
f79bd02d 12179 cat conftest.$ac_ext >&5
a0b9e27f
MB
12180 rm -rf conftest*
12181 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12182fi
a0b9e27f 12183rm -f conftest*
21d1c967 12184fi
a0b9e27f
MB
12185if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12186 echo "$ac_t""yes" 1>&6
12187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12188 cat >> confdefs.h <<EOF
12189#define $ac_tr_hdr 1
12190EOF
12191
12192else
12193 echo "$ac_t""no" 1>&6
21d1c967
GD
12194fi
12195done
f79bd02d 12196
a0b9e27f
MB
12197 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12198echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8b389fab 12199echo "configure:12200: checking for windows.h" >&5
a0b9e27f
MB
12200if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12201 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12202else
a0b9e27f 12203 cat > conftest.$ac_ext <<EOF
8b389fab 12204#line 12205 "configure"
247f5006
VZ
12205#include "confdefs.h"
12206#include <windows.h>
a0b9e27f
MB
12207EOF
12208ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 12209{ (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12210ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12211if test -z "$ac_err"; then
12212 rm -rf conftest*
12213 eval "ac_cv_header_$ac_safe=yes"
12214else
12215 echo "$ac_err" >&5
12216 echo "configure: failed program was:" >&5
90dd450c 12217 cat conftest.$ac_ext >&5
a0b9e27f
MB
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=no"
90dd450c 12220fi
a0b9e27f 12221rm -f conftest*
90dd450c 12222fi
a0b9e27f
MB
12223if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
21d1c967 12225 :
90dd450c 12226else
a0b9e27f 12227 echo "$ac_t""no" 1>&6
21d1c967 12228
a0b9e27f
MB
12229 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12230
5c6fa7d2 12231fi
7b4a847f 12232
5c6fa7d2 12233
a0b9e27f 12234 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
8b389fab 12235echo "configure:12236: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12236if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12238else
a0b9e27f
MB
12239
12240 cat > conftest.$ac_ext <<EOF
8b389fab 12241#line 12242 "configure"
f79bd02d 12242#include "confdefs.h"
21d1c967 12243#include <w32api.h>
a0b9e27f 12244int main() {
f79bd02d 12245
21d1c967
GD
12246 #define wxCHECK_W32API_VERSION( major, minor ) \
12247 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12248 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12249 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12250
12251 #if !wxCHECK_W32API_VERSION(1,1)
12252 #error You need w32api 1.1 or newer
12253 #endif
a0b9e27f
MB
12254
12255; return 0; }
12256EOF
8b389fab 12257if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12258 rm -rf conftest*
12259
21d1c967 12260 wx_cv_w32api_win32_ie=yes
a0b9e27f 12261
f79bd02d 12262else
a0b9e27f
MB
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266
21d1c967 12267 wx_cv_w32api_win32_ie=no
a0b9e27f 12268
5c6fa7d2 12269fi
a0b9e27f
MB
12270rm -f conftest*
12271
247f5006 12272fi
a0b9e27f
MB
12273
12274echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12275 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12276 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12277 fi
f79bd02d 12278
21d1c967
GD
12279 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12280
7bb2947d
MB
12281 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12282 LIBS="$LIBS -loleacc"
12283 fi
12284
21d1c967
GD
12285 case "${host}" in
12286 *-*-cygwin* )
12287 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12289 esac
f79bd02d 12290
8647bec6
RG
12291 if test "$wxUSE_ODBC" = "sys" ; then
12292 wxUSE_ODBC = "yes"
21d1c967 12293 fi
8647bec6
RG
12294 if test "$wxUSE_ODBC" = "yes" ; then
12295 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12296 cat >> confdefs.h <<\EOF
12297#define wxUSE_ODBC 1
12298EOF
f79bd02d 12299
8647bec6
RG
12300 fi
12301
21d1c967
GD
12302 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12303 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12304
12305 WIN32INSTALL=win32install
f79bd02d 12306fi
f79bd02d 12307
b2fee376 12308if test "$USE_DARWIN" = 1; then
50bcbd3d 12309 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12310 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12311 else
12312 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12313 fi
12314fi
12315
21d1c967
GD
12316if test "$wxUSE_GUI" = "yes"; then
12317 USE_GUI=1
f79bd02d 12318
21d1c967 12319 GUI_TK_LIBRARY=
f79bd02d 12320
21d1c967
GD
12321 WXGTK12=
12322 WXGTK127=
12323 WXGTK20=
f79bd02d 12324
21d1c967
GD
12325 if test "$wxUSE_MSW" = 1 ; then
12326 TOOLKIT=MSW
12327 GUIDIST=MSW_DIST
f79bd02d 12328
89e6bf6d 12329 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
12330 fi
12331
21d1c967 12332 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12333 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8b389fab 12334echo "configure:12335: checking for GTK+ version" >&5
21d1c967
GD
12335
12336 gtk_version_cached=1
a0b9e27f
MB
12337 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12339else
a0b9e27f 12340
21d1c967 12341 gtk_version_cached=0
a0b9e27f 12342 echo "$ac_t""" 1>&6
f79bd02d 12343
21d1c967
GD
12344 GTK_MODULES=
12345 if test "$wxUSE_THREADS" = "yes"; then
12346 GTK_MODULES=gthread
12347 fi
f79bd02d 12348
2b5f62a0 12349 wx_cv_lib_gtk=
21d1c967
GD
12350 if test "x$wxUSE_GTK2" = "xyes"; then
12351 # Check whether --enable-gtktest or --disable-gtktest was given.
12352if test "${enable_gtktest+set}" = set; then
12353 enableval="$enable_gtktest"
a0b9e27f 12354 :
f79bd02d 12355else
21d1c967 12356 enable_gtktest=yes
a0b9e27f
MB
12357fi
12358
f79bd02d 12359
21d1c967
GD
12360 pkg_config_args=gtk+-2.0
12361 for module in . $GTK_MODULES
12362 do
12363 case "$module" in
a0b9e27f 12364 gthread)
21d1c967
GD
12365 pkg_config_args="$pkg_config_args gthread-2.0"
12366 ;;
12367 esac
12368 done
12369
12370 no_gtk=""
f79bd02d 12371
21d1c967
GD
12372 # Extract the first word of "pkg-config", so it can be a program name with args.
12373set dummy pkg-config; ac_word=$2
a0b9e27f 12374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 12375echo "configure:12376: checking for $ac_word" >&5
a0b9e27f
MB
12376if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12377 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12378else
a0b9e27f
MB
12379 case "$PKG_CONFIG" in
12380 /*)
21d1c967
GD
12381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12382 ;;
a0b9e27f
MB
12383 ?:/*)
12384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12385 ;;
21d1c967 12386 *)
a0b9e27f
MB
12387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12388 ac_dummy="$PATH"
12389 for ac_dir in $ac_dummy; do
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f $ac_dir/$ac_word; then
12392 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12393 break
12394 fi
12395 done
12396 IFS="$ac_save_ifs"
21d1c967
GD
12397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12398 ;;
12399esac
f79bd02d 12400fi
a0b9e27f 12401PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12402if test -n "$PKG_CONFIG"; then
a0b9e27f 12403 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12404else
a0b9e27f 12405 echo "$ac_t""no" 1>&6
f79bd02d
JS
12406fi
12407
8284b0c5 12408
21d1c967
GD
12409 if test x$PKG_CONFIG != xno ; then
12410 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12411 :
12412 else
12413 echo *** pkg-config too old; version 0.7 or better required.
12414 no_gtk=yes
12415 PKG_CONFIG=no
12416 fi
12417 else
12418 no_gtk=yes
12419 fi
f79bd02d 12420
21d1c967 12421 min_gtk_version=2.0.0
a0b9e27f 12422 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
8b389fab 12423echo "configure:12424: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12424
21d1c967
GD
12425 if test x$PKG_CONFIG != xno ; then
12426 ## don't try to run the test against uninstalled libtool libs
12427 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12428 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12429 enable_gtktest=no
12430 fi
f79bd02d 12431
21d1c967
GD
12432 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12433 :
12434 else
12435 no_gtk=yes
12436 fi
12437 fi
f79bd02d 12438
21d1c967
GD
12439 if test x"$no_gtk" = x ; then
12440 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12441 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12442 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12444 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12446 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12448 if test "x$enable_gtktest" = "xyes" ; then
12449 ac_save_CFLAGS="$CFLAGS"
12450 ac_save_LIBS="$LIBS"
12451 CFLAGS="$CFLAGS $GTK_CFLAGS"
12452 LIBS="$GTK_LIBS $LIBS"
12453 rm -f conf.gtktest
12454 if test "$cross_compiling" = yes; then
12455 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12456else
a0b9e27f 12457 cat > conftest.$ac_ext <<EOF
8b389fab 12458#line 12459 "configure"
f79bd02d 12459#include "confdefs.h"
f79bd02d 12460
21d1c967
GD
12461#include <gtk/gtk.h>
12462#include <stdio.h>
12463#include <stdlib.h>
f79bd02d 12464
a0b9e27f 12465int
21d1c967
GD
12466main ()
12467{
12468 int major, minor, micro;
12469 char *tmp_version;
f79bd02d 12470
21d1c967 12471 system ("touch conf.gtktest");
f79bd02d 12472
21d1c967
GD
12473 /* HP/UX 9 (%@#!) writes to sscanf strings */
12474 tmp_version = g_strdup("$min_gtk_version");
12475 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12476 printf("%s, bad version string\n", "$min_gtk_version");
12477 exit(1);
12478 }
f79bd02d 12479
21d1c967
GD
12480 if ((gtk_major_version != $gtk_config_major_version) ||
12481 (gtk_minor_version != $gtk_config_minor_version) ||
12482 (gtk_micro_version != $gtk_config_micro_version))
12483 {
a0b9e27f 12484 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12485 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12486 gtk_major_version, gtk_minor_version, gtk_micro_version);
12487 printf ("*** was found! If pkg-config was correct, then it is best\n");
12488 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12489 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12490 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12491 printf("*** required on your system.\n");
12492 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12493 printf("*** to point to the correct configuration files\n");
a0b9e27f 12494 }
21d1c967
GD
12495 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12496 (gtk_minor_version != GTK_MINOR_VERSION) ||
12497 (gtk_micro_version != GTK_MICRO_VERSION))
12498 {
12499 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12500 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12501 printf("*** library (version %d.%d.%d)\n",
12502 gtk_major_version, gtk_minor_version, gtk_micro_version);
12503 }
12504 else
12505 {
12506 if ((gtk_major_version > major) ||
12507 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12508 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12509 {
12510 return 0;
12511 }
12512 else
12513 {
12514 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12515 gtk_major_version, gtk_minor_version, gtk_micro_version);
12516 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12517 major, minor, micro);
12518 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12519 printf("***\n");
12520 printf("*** If you have already installed a sufficiently new version, this error\n");
12521 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12522 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12523 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12524 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12525 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12526 printf("*** so that the correct libraries are found at run-time))\n");
12527 }
12528 }
12529 return 1;
12530}
f79bd02d 12531
a0b9e27f 12532EOF
8b389fab 12533if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12534then
21d1c967 12535 :
f79bd02d 12536else
a0b9e27f
MB
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 rm -fr conftest*
12540 no_gtk=yes
f79bd02d 12541fi
a0b9e27f 12542rm -fr conftest*
f79bd02d 12543fi
a0b9e27f 12544
21d1c967
GD
12545 CFLAGS="$ac_save_CFLAGS"
12546 LIBS="$ac_save_LIBS"
12547 fi
12548 fi
12549 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12550 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12551 wx_cv_lib_gtk=2.0
21d1c967 12552 else
a0b9e27f 12553 echo "$ac_t""no" 1>&6
21d1c967
GD
12554 if test "$PKG_CONFIG" = "no" ; then
12555 echo "*** A new enough version of pkg-config was not found."
12556 echo "*** See http://pkgconfig.sourceforge.net"
12557 else
12558 if test -f conf.gtktest ; then
12559 :
12560 else
12561 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12562 ac_save_CFLAGS="$CFLAGS"
12563 ac_save_LIBS="$LIBS"
21d1c967
GD
12564 CFLAGS="$CFLAGS $GTK_CFLAGS"
12565 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12566 cat > conftest.$ac_ext <<EOF
8b389fab 12567#line 12568 "configure"
f79bd02d 12568#include "confdefs.h"
21d1c967
GD
12569
12570#include <gtk/gtk.h>
12571#include <stdio.h>
f79bd02d 12572
a0b9e27f
MB
12573int main() {
12574 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12575; return 0; }
12576EOF
8b389fab 12577if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12578 rm -rf conftest*
21d1c967
GD
12579 echo "*** The test program compiled, but did not run. This usually means"
12580 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12581 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12582 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12583 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12584 echo "*** is required on your system"
12585 echo "***"
12586 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12587 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12588else
a0b9e27f
MB
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12591 rm -rf conftest*
12592 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12593 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12594fi
a0b9e27f 12595rm -f conftest*
21d1c967
GD
12596 CFLAGS="$ac_save_CFLAGS"
12597 LIBS="$ac_save_LIBS"
12598 fi
12599 fi
12600 GTK_CFLAGS=""
12601 GTK_LIBS=""
12602 :
12603 fi
a0b9e27f
MB
12604
12605
21d1c967 12606 rm -f conf.gtktest
f79bd02d 12607
2b5f62a0 12608 else
a0b9e27f 12609 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12610if test "${with_gtk_prefix+set}" = set; then
12611 withval="$with_gtk_prefix"
12612 gtk_config_prefix="$withval"
12613else
12614 gtk_config_prefix=""
a0b9e27f 12615fi
f79bd02d 12616
21d1c967
GD
12617# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12618if test "${with_gtk_exec_prefix+set}" = set; then
12619 withval="$with_gtk_exec_prefix"
12620 gtk_config_exec_prefix="$withval"
12621else
12622 gtk_config_exec_prefix=""
a0b9e27f
MB
12623fi
12624
21d1c967
GD
12625# Check whether --enable-gtktest or --disable-gtktest was given.
12626if test "${enable_gtktest+set}" = set; then
12627 enableval="$enable_gtktest"
a0b9e27f 12628 :
21d1c967
GD
12629else
12630 enable_gtktest=yes
a0b9e27f
MB
12631fi
12632
21d1c967
GD
12633
12634 for module in . $GTK_MODULES
12635 do
12636 case "$module" in
a0b9e27f 12637 gthread)
21d1c967
GD
12638 gtk_config_args="$gtk_config_args gthread"
12639 ;;
12640 esac
12641 done
12642
12643 if test x$gtk_config_exec_prefix != x ; then
12644 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12645 if test x${GTK_CONFIG+set} != xset ; then
12646 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12647 fi
12648 fi
12649 if test x$gtk_config_prefix != x ; then
12650 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12651 if test x${GTK_CONFIG+set} != xset ; then
12652 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12653 fi
12654 fi
12655
12656 # Extract the first word of "gtk-config", so it can be a program name with args.
12657set dummy gtk-config; ac_word=$2
a0b9e27f 12658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 12659echo "configure:12660: checking for $ac_word" >&5
a0b9e27f
MB
12660if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12661 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12662else
a0b9e27f
MB
12663 case "$GTK_CONFIG" in
12664 /*)
21d1c967
GD
12665 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12666 ;;
a0b9e27f
MB
12667 ?:/*)
12668 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12669 ;;
21d1c967 12670 *)
a0b9e27f
MB
12671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12672 ac_dummy="$PATH"
12673 for ac_dir in $ac_dummy; do
12674 test -z "$ac_dir" && ac_dir=.
12675 if test -f $ac_dir/$ac_word; then
12676 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12677 break
12678 fi
12679 done
12680 IFS="$ac_save_ifs"
21d1c967
GD
12681 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12682 ;;
12683esac
12684fi
a0b9e27f 12685GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12686if test -n "$GTK_CONFIG"; then
a0b9e27f 12687 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12688else
a0b9e27f 12689 echo "$ac_t""no" 1>&6
21d1c967
GD
12690fi
12691
12692 min_gtk_version=1.2.7
a0b9e27f 12693 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8b389fab 12694echo "configure:12695: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12695 no_gtk=""
12696 if test "$GTK_CONFIG" = "no" ; then
12697 no_gtk=yes
12698 else
12699 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12700 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12701 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12703 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12705 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12707 if test "x$enable_gtktest" = "xyes" ; then
12708 ac_save_CFLAGS="$CFLAGS"
12709 ac_save_LIBS="$LIBS"
12710 CFLAGS="$CFLAGS $GTK_CFLAGS"
12711 LIBS="$GTK_LIBS $LIBS"
12712 rm -f conf.gtktest
12713 if test "$cross_compiling" = yes; then
12714 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12715else
a0b9e27f 12716 cat > conftest.$ac_ext <<EOF
8b389fab 12717#line 12718 "configure"
f79bd02d
JS
12718#include "confdefs.h"
12719
21d1c967
GD
12720#include <gtk/gtk.h>
12721#include <stdio.h>
12722#include <stdlib.h>
f79bd02d 12723
a0b9e27f 12724int
21d1c967
GD
12725main ()
12726{
12727 int major, minor, micro;
12728 char *tmp_version;
12729
12730 system ("touch conf.gtktest");
12731
12732 /* HP/UX 9 (%@#!) writes to sscanf strings */
12733 tmp_version = g_strdup("$min_gtk_version");
12734 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12735 printf("%s, bad version string\n", "$min_gtk_version");
12736 exit(1);
12737 }
90dd450c 12738
21d1c967
GD
12739 if ((gtk_major_version != $gtk_config_major_version) ||
12740 (gtk_minor_version != $gtk_config_minor_version) ||
12741 (gtk_micro_version != $gtk_config_micro_version))
12742 {
a0b9e27f 12743 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12744 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12745 gtk_major_version, gtk_minor_version, gtk_micro_version);
12746 printf ("*** was found! If gtk-config was correct, then it is best\n");
12747 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12748 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12749 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12750 printf("*** required on your system.\n");
12751 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12752 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12753 printf("*** before re-running configure\n");
a0b9e27f 12754 }
21d1c967
GD
12755#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12756 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12757 (gtk_minor_version != GTK_MINOR_VERSION) ||
12758 (gtk_micro_version != GTK_MICRO_VERSION))
12759 {
12760 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12761 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12762 printf("*** library (version %d.%d.%d)\n",
12763 gtk_major_version, gtk_minor_version, gtk_micro_version);
12764 }
12765#endif /* defined (GTK_MAJOR_VERSION) ... */
12766 else
12767 {
12768 if ((gtk_major_version > major) ||
12769 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12770 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12771 {
12772 return 0;
12773 }
12774 else
12775 {
12776 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12777 gtk_major_version, gtk_minor_version, gtk_micro_version);
12778 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12779 major, minor, micro);
12780 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12781 printf("***\n");
12782 printf("*** If you have already installed a sufficiently new version, this error\n");
12783 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12784 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12785 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12786 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12787 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12788 printf("*** so that the correct libraries are found at run-time))\n");
12789 }
12790 }
12791 return 1;
12792}
12793
a0b9e27f 12794EOF
8b389fab 12795if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12796then
21d1c967
GD
12797 :
12798else
a0b9e27f
MB
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 rm -fr conftest*
12802 no_gtk=yes
21d1c967 12803fi
a0b9e27f 12804rm -fr conftest*
21d1c967 12805fi
a0b9e27f 12806
21d1c967
GD
12807 CFLAGS="$ac_save_CFLAGS"
12808 LIBS="$ac_save_LIBS"
12809 fi
12810 fi
12811 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12812 echo "$ac_t""yes" 1>&6
12813 wx_cv_lib_gtk=1.2.7
21d1c967 12814 else
a0b9e27f 12815 echo "$ac_t""no" 1>&6
21d1c967
GD
12816 if test "$GTK_CONFIG" = "no" ; then
12817 echo "*** The gtk-config script installed by GTK could not be found"
12818 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12819 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12820 echo "*** full path to gtk-config."
12821 else
12822 if test -f conf.gtktest ; then
12823 :
12824 else
12825 echo "*** Could not run GTK test program, checking why..."
12826 CFLAGS="$CFLAGS $GTK_CFLAGS"
12827 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12828 cat > conftest.$ac_ext <<EOF
8b389fab 12829#line 12830 "configure"
21d1c967
GD
12830#include "confdefs.h"
12831
12832#include <gtk/gtk.h>
12833#include <stdio.h>
12834
a0b9e27f
MB
12835int main() {
12836 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12837; return 0; }
12838EOF
8b389fab 12839if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12840 rm -rf conftest*
21d1c967
GD
12841 echo "*** The test program compiled, but did not run. This usually means"
12842 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12843 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12844 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12845 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12846 echo "*** is required on your system"
12847 echo "***"
12848 echo "*** If you have an old version installed, it is best to remove it, although"
12849 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12850 echo "***"
12851 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12852 echo "*** came with the system with the command"
12853 echo "***"
a0b9e27f 12854 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12855else
a0b9e27f
MB
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12858 rm -rf conftest*
12859 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12860 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12861 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12862 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12863fi
a0b9e27f 12864rm -f conftest*
21d1c967
GD
12865 CFLAGS="$ac_save_CFLAGS"
12866 LIBS="$ac_save_LIBS"
12867 fi
12868 fi
12869 GTK_CFLAGS=""
12870 GTK_LIBS=""
12871 :
12872 fi
a0b9e27f
MB
12873
12874
21d1c967
GD
12875 rm -f conf.gtktest
12876
21d1c967 12877
2b5f62a0
VZ
12878 if test -z "$wx_cv_lib_gtk"; then
12879 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12880if test "${with_gtk_prefix+set}" = set; then
12881 withval="$with_gtk_prefix"
12882 gtk_config_prefix="$withval"
12883else
12884 gtk_config_prefix=""
a0b9e27f 12885fi
f79bd02d 12886
21d1c967
GD
12887# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12888if test "${with_gtk_exec_prefix+set}" = set; then
12889 withval="$with_gtk_exec_prefix"
12890 gtk_config_exec_prefix="$withval"
12891else
12892 gtk_config_exec_prefix=""
a0b9e27f
MB
12893fi
12894
21d1c967
GD
12895# Check whether --enable-gtktest or --disable-gtktest was given.
12896if test "${enable_gtktest+set}" = set; then
12897 enableval="$enable_gtktest"
a0b9e27f 12898 :
90dd450c 12899else
21d1c967 12900 enable_gtktest=yes
a0b9e27f
MB
12901fi
12902
21d1c967
GD
12903
12904 for module in . $GTK_MODULES
12905 do
12906 case "$module" in
a0b9e27f 12907 gthread)
21d1c967
GD
12908 gtk_config_args="$gtk_config_args gthread"
12909 ;;
12910 esac
12911 done
12912
12913 if test x$gtk_config_exec_prefix != x ; then
12914 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12915 if test x${GTK_CONFIG+set} != xset ; then
12916 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12917 fi
12918 fi
12919 if test x$gtk_config_prefix != x ; then
12920 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12921 if test x${GTK_CONFIG+set} != xset ; then
12922 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12923 fi
12924 fi
12925
12926 # Extract the first word of "gtk-config", so it can be a program name with args.
12927set dummy gtk-config; ac_word=$2
a0b9e27f 12928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 12929echo "configure:12930: checking for $ac_word" >&5
a0b9e27f
MB
12930if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12931 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12932else
a0b9e27f
MB
12933 case "$GTK_CONFIG" in
12934 /*)
21d1c967
GD
12935 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12936 ;;
a0b9e27f
MB
12937 ?:/*)
12938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12939 ;;
21d1c967 12940 *)
a0b9e27f
MB
12941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12942 ac_dummy="$PATH"
12943 for ac_dir in $ac_dummy; do
12944 test -z "$ac_dir" && ac_dir=.
12945 if test -f $ac_dir/$ac_word; then
12946 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12947 break
12948 fi
12949 done
12950 IFS="$ac_save_ifs"
21d1c967
GD
12951 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12952 ;;
12953esac
12954fi
a0b9e27f 12955GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12956if test -n "$GTK_CONFIG"; then
a0b9e27f 12957 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12958else
a0b9e27f 12959 echo "$ac_t""no" 1>&6
21d1c967
GD
12960fi
12961
12962 min_gtk_version=1.2.3
a0b9e27f 12963 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8b389fab 12964echo "configure:12965: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12965 no_gtk=""
12966 if test "$GTK_CONFIG" = "no" ; then
12967 no_gtk=yes
12968 else
12969 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12970 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12971 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12973 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12975 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12977 if test "x$enable_gtktest" = "xyes" ; then
12978 ac_save_CFLAGS="$CFLAGS"
12979 ac_save_LIBS="$LIBS"
12980 CFLAGS="$CFLAGS $GTK_CFLAGS"
12981 LIBS="$GTK_LIBS $LIBS"
12982 rm -f conf.gtktest
12983 if test "$cross_compiling" = yes; then
12984 echo $ac_n "cross compiling; assumed OK... $ac_c"
12985else
a0b9e27f 12986 cat > conftest.$ac_ext <<EOF
8b389fab 12987#line 12988 "configure"
f79bd02d 12988#include "confdefs.h"
21d1c967
GD
12989
12990#include <gtk/gtk.h>
12991#include <stdio.h>
12992#include <stdlib.h>
12993
a0b9e27f 12994int
21d1c967
GD
12995main ()
12996{
12997 int major, minor, micro;
12998 char *tmp_version;
12999
13000 system ("touch conf.gtktest");
13001
13002 /* HP/UX 9 (%@#!) writes to sscanf strings */
13003 tmp_version = g_strdup("$min_gtk_version");
13004 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13005 printf("%s, bad version string\n", "$min_gtk_version");
13006 exit(1);
13007 }
13008
13009 if ((gtk_major_version != $gtk_config_major_version) ||
13010 (gtk_minor_version != $gtk_config_minor_version) ||
13011 (gtk_micro_version != $gtk_config_micro_version))
13012 {
a0b9e27f 13013 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
13014 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13015 gtk_major_version, gtk_minor_version, gtk_micro_version);
13016 printf ("*** was found! If gtk-config was correct, then it is best\n");
13017 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13018 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13019 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13020 printf("*** required on your system.\n");
13021 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13022 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13023 printf("*** before re-running configure\n");
a0b9e27f 13024 }
21d1c967
GD
13025#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13026 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13027 (gtk_minor_version != GTK_MINOR_VERSION) ||
13028 (gtk_micro_version != GTK_MICRO_VERSION))
13029 {
13030 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13031 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13032 printf("*** library (version %d.%d.%d)\n",
13033 gtk_major_version, gtk_minor_version, gtk_micro_version);
13034 }
13035#endif /* defined (GTK_MAJOR_VERSION) ... */
13036 else
13037 {
13038 if ((gtk_major_version > major) ||
13039 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13040 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13041 {
13042 return 0;
13043 }
13044 else
13045 {
13046 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13047 gtk_major_version, gtk_minor_version, gtk_micro_version);
13048 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13049 major, minor, micro);
13050 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13051 printf("***\n");
13052 printf("*** If you have already installed a sufficiently new version, this error\n");
13053 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13054 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13055 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13056 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13057 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13058 printf("*** so that the correct libraries are found at run-time))\n");
13059 }
13060 }
13061 return 1;
13062}
13063
a0b9e27f 13064EOF
8b389fab 13065if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13066then
21d1c967
GD
13067 :
13068else
a0b9e27f
MB
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13071 rm -fr conftest*
13072 no_gtk=yes
21d1c967 13073fi
a0b9e27f 13074rm -fr conftest*
21d1c967 13075fi
a0b9e27f 13076
21d1c967
GD
13077 CFLAGS="$ac_save_CFLAGS"
13078 LIBS="$ac_save_LIBS"
13079 fi
13080 fi
13081 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13082 echo "$ac_t""yes" 1>&6
13083 wx_cv_lib_gtk=1.2.3
21d1c967 13084 else
a0b9e27f 13085 echo "$ac_t""no" 1>&6
21d1c967
GD
13086 if test "$GTK_CONFIG" = "no" ; then
13087 echo "*** The gtk-config script installed by GTK could not be found"
13088 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13089 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13090 echo "*** full path to gtk-config."
13091 else
13092 if test -f conf.gtktest ; then
13093 :
13094 else
13095 echo "*** Could not run GTK test program, checking why..."
13096 CFLAGS="$CFLAGS $GTK_CFLAGS"
13097 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13098 cat > conftest.$ac_ext <<EOF
8b389fab 13099#line 13100 "configure"
21d1c967
GD
13100#include "confdefs.h"
13101
13102#include <gtk/gtk.h>
13103#include <stdio.h>
f79bd02d 13104
a0b9e27f
MB
13105int main() {
13106 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13107; return 0; }
13108EOF
8b389fab 13109if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13110 rm -rf conftest*
21d1c967
GD
13111 echo "*** The test program compiled, but did not run. This usually means"
13112 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13113 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13114 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13115 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13116 echo "*** is required on your system"
13117 echo "***"
13118 echo "*** If you have an old version installed, it is best to remove it, although"
13119 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13120 echo "***"
13121 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13122 echo "*** came with the system with the command"
13123 echo "***"
a0b9e27f 13124 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13125else
a0b9e27f
MB
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 rm -rf conftest*
13129 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13130 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13131 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13132 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13133fi
a0b9e27f 13134rm -f conftest*
21d1c967
GD
13135 CFLAGS="$ac_save_CFLAGS"
13136 LIBS="$ac_save_LIBS"
13137 fi
13138 fi
13139 GTK_CFLAGS=""
13140 GTK_LIBS=""
13141 :
13142 fi
a0b9e27f
MB
13143
13144
21d1c967 13145 rm -f conf.gtktest
f79bd02d 13146
2b5f62a0 13147 fi
21d1c967
GD
13148 fi
13149
13150 if test -z "$wx_cv_lib_gtk"; then
13151 wx_cv_lib_gtk=none
13152 else
13153 wx_cv_cflags_gtk=$GTK_CFLAGS
13154 wx_cv_libs_gtk=$GTK_LIBS
13155 fi
a0b9e27f
MB
13156
13157
5c6fa7d2 13158fi
52127426 13159
8284b0c5 13160
21d1c967 13161 if test "$gtk_version_cached" = 1; then
a0b9e27f 13162 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13163 fi
13164
13165 case "$wx_cv_lib_gtk" in
13166 2.0) WXGTK20=1
2b5f62a0 13167 TOOLKIT_VERSION=2
21d1c967
GD
13168 ;;
13169 1.2.7) WXGTK127=1
13170 WXGTK12=1
13171 ;;
13172 1.2.3) WXGTK12=1
13173 ;;
a0b9e27f 13174 *) { echo "configure: error:
247f5006
VZ
13175Please check that gtk-config is in path, the directory
13176where GTK+ libraries are installed (returned by
13177'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13178equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13179 " 1>&2; exit 1; }
21d1c967
GD
13180 ;;
13181 esac
13182
b13cd66e
VZ
13183 if test "$WXGTK20" = 1; then
13184 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13185
f09359cf
VS
13186 succeeded=no
13187
13188 if test -z "$PKG_CONFIG"; then
13189 # Extract the first word of "pkg-config", so it can be a program name with args.
13190set dummy pkg-config; ac_word=$2
a0b9e27f 13191echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 13192echo "configure:13193: checking for $ac_word" >&5
a0b9e27f
MB
13193if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13195else
a0b9e27f
MB
13196 case "$PKG_CONFIG" in
13197 /*)
f09359cf
VS
13198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13199 ;;
a0b9e27f
MB
13200 ?:/*)
13201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13202 ;;
f09359cf 13203 *)
a0b9e27f
MB
13204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13205 ac_dummy="$PATH"
13206 for ac_dir in $ac_dummy; do
13207 test -z "$ac_dir" && ac_dir=.
13208 if test -f $ac_dir/$ac_word; then
13209 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13210 break
13211 fi
13212 done
13213 IFS="$ac_save_ifs"
f09359cf
VS
13214 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13215 ;;
13216esac
13217fi
a0b9e27f 13218PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13219if test -n "$PKG_CONFIG"; then
a0b9e27f 13220 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13221else
a0b9e27f 13222 echo "$ac_t""no" 1>&6
f09359cf
VS
13223fi
13224
13225 fi
13226
13227 if test "$PKG_CONFIG" = "no" ; then
13228 echo "*** The pkg-config script could not be found. Make sure it is"
13229 echo "*** in your path, or set the PKG_CONFIG environment variable"
13230 echo "*** to the full path to pkg-config."
13231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13232 else
13233 PKG_CONFIG_MIN_VERSION=0.9.0
13234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13235 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
8b389fab 13236echo "configure:13237: checking for pangoft2" >&5
f09359cf
VS
13237
13238 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13239 echo "$ac_t""yes" 1>&6
f09359cf
VS
13240 succeeded=yes
13241
a0b9e27f 13242 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
8b389fab 13243echo "configure:13244: checking PANGOFT2_CFLAGS" >&5
f09359cf 13244 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13245 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13246
a0b9e27f 13247 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
8b389fab 13248echo "configure:13249: checking PANGOFT2_LIBS" >&5
f09359cf 13249 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13250 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13251 else
13252 PANGOFT2_CFLAGS=""
13253 PANGOFT2_LIBS=""
a0b9e27f 13254 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13255 ## do set a variable so people can do so.
13256 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13257
f09359cf
VS
13258 fi
13259
a0b9e27f
MB
13260
13261
f09359cf
VS
13262 else
13263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13265 fi
13266 fi
13267
13268 if test $succeeded = yes; then
a0b9e27f 13269
b13cd66e
VZ
13270 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13271 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13272
f09359cf 13273 else
a0b9e27f
MB
13274
13275 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13276 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13277
13278
f09359cf
VS
13279 fi
13280
b13cd66e 13281 fi
2b5f62a0
VZ
13282 else
13283 if test "$wxUSE_UNICODE" = "yes"; then
13284 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13285 wxUSE_UNICODE=no
13286 fi
13287 fi
13288
13289 if test "$USE_DARWIN" != 1; then
13290 for ac_func in poll
13291do
13292echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 13293echo "configure:13294: checking for $ac_func" >&5
2b5f62a0
VZ
13294if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13296else
13297 cat > conftest.$ac_ext <<EOF
8b389fab 13298#line 13299 "configure"
2b5f62a0
VZ
13299#include "confdefs.h"
13300/* System header to define __stub macros and hopefully few prototypes,
13301 which can conflict with char $ac_func(); below. */
13302#include <assert.h>
13303/* Override any gcc2 internal prototype to avoid an error. */
13304/* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306char $ac_func();
13307
13308int main() {
13309
13310/* The GNU C library defines this for functions which it implements
13311 to always fail with ENOSYS. Some functions are actually named
13312 something starting with __ and the normal name is an alias. */
13313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314choke me
13315#else
13316$ac_func();
13317#endif
13318
13319; return 0; }
13320EOF
8b389fab 13321if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13322 rm -rf conftest*
13323 eval "ac_cv_func_$ac_func=yes"
13324else
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_func_$ac_func=no"
13329fi
13330rm -f conftest*
13331fi
13332
13333if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334 echo "$ac_t""yes" 1>&6
13335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336 cat >> confdefs.h <<EOF
13337#define $ac_tr_func 1
13338EOF
13339
13340else
13341 echo "$ac_t""no" 1>&6
13342fi
13343done
13344
f09359cf
VS
13345 fi
13346
21d1c967
GD
13347 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13348 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13349
13350 AFMINSTALL=afminstall
13351 TOOLKIT=GTK
13352 GUIDIST=GTK_DIST
13353
a0b9e27f 13354 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8b389fab 13355echo "configure:13356: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13356ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13359else
a0b9e27f 13360 ac_save_LIBS="$LIBS"
21d1c967 13361LIBS="-lgdk $LIBS"
a0b9e27f 13362cat > conftest.$ac_ext <<EOF
8b389fab 13363#line 13364 "configure"
90dd450c 13364#include "confdefs.h"
5c6fa7d2 13365/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13366/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13367 builtin and then its argument prototype would still apply. */
13368char gdk_im_open();
13369
13370int main() {
13371gdk_im_open()
13372; return 0; }
13373EOF
8b389fab 13374if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13375 rm -rf conftest*
13376 eval "ac_cv_lib_$ac_lib_var=yes"
13377else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=no"
13382fi
13383rm -f conftest*
13384LIBS="$ac_save_LIBS"
13385
13386fi
13387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 cat >> confdefs.h <<\EOF
21d1c967 13390#define HAVE_XIM 1
a0b9e27f 13391EOF
21d1c967 13392
a0b9e27f
MB
13393else
13394 echo "$ac_t""no" 1>&6
90dd450c 13395fi
1e6feb95 13396
21d1c967 13397 fi
1e6feb95 13398
21d1c967 13399 if test "$wxUSE_MGL" = 1; then
63a76696 13400 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
8b389fab 13401echo "configure:13402: checking for SciTech MGL library" >&5
21d1c967 13402 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13403 echo "$ac_t""not found" 1>&6
13404 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13405 else
a0b9e27f 13406 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13407 fi
13408
63a76696 13409 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
8b389fab 13410echo "configure:13411: checking for libmgl location" >&5
21d1c967
GD
13411 case "${host}" in
13412 *-*-linux* )
63a76696
VS
13413 if test "x$wxUSE_SHARED" = xyes ; then
13414 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13415 else
13416 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13417 fi
21d1c967
GD
13418 ;;
13419 *-pc-msdosdjgpp )
63a76696 13420 mgl_os_candidates="dos32/dj2"
21d1c967
GD
13421 ;;
13422 *)
a0b9e27f 13423 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13424 esac
1e6feb95 13425
21d1c967 13426 mgl_lib_type=""
63a76696
VS
13427 mgl_os=""
13428
13429 for mgl_os_i in $mgl_os_candidates ; do
13430 if test "x$mgl_os" = x ; then
13431 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13432 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13433 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13434 mgl_lib_type=debug
13435 mgl_os=$mgl_os_i
13436 fi
13437 fi
13438 if test "x$mgl_lib_type" = x ; then
13439 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13440 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13441 mgl_lib_type=release
13442 mgl_os=$mgl_os_i
13443 fi
13444 fi
21d1c967 13445 fi
63a76696 13446 done
2224580a 13447
63a76696
VS
13448 if test "x$mgl_os" = x ; then
13449 echo "$ac_t""not found" 1>&6
13450 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13451 fi
13452 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
1542ea39 13453
1d1b75ac
VZ
13454 wxUSE_UNIVERSAL="yes"
13455
21d1c967
GD
13456 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13457 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13458
90dd450c 13459 AFMINSTALL=afminstall
21d1c967
GD
13460 TOOLKIT=MGL
13461 GUIDIST=MGL_DIST
13462 fi
dad6c0ea 13463
21d1c967 13464 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13465 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
8b389fab 13466echo "configure:13467: checking for MicroWindows" >&5
21d1c967 13467 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13468 echo "$ac_t""not found" 1>&6
13469 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13470 else
a0b9e27f 13471 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13472 fi
f6bcfd97 13473
21d1c967 13474 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13475 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13476 else
a0b9e27f 13477 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13478 fi
0b2effe9 13479
21d1c967
GD
13480 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13481 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13482
1d1b75ac
VZ
13483 wxUSE_UNIVERSAL="yes"
13484
21d1c967
GD
13485 AFMINSTALL=afminstall
13486 TOOLKIT=MICROWIN
13487 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13488
13489 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13490 fi
f6bcfd97 13491
21d1c967 13492 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13493 # If we find X, set shell vars x_includes and x_libraries to the
13494# paths, otherwise set no_x=yes.
13495# Uses ac_ vars as temps to allow command line to override cache and checks.
13496# --without-x overrides everything else, but does not touch the cache.
13497echo $ac_n "checking for X""... $ac_c" 1>&6
8b389fab 13498echo "configure:13499: checking for X" >&5
d8356fa3 13499
21d1c967
GD
13500# Check whether --with-x or --without-x was given.
13501if test "${with_x+set}" = set; then
13502 withval="$with_x"
a0b9e27f
MB
13503 :
13504fi
2224580a 13505
21d1c967
GD
13506# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13507if test "x$with_x" = xno; then
13508 # The user explicitly disabled X.
13509 have_x=disabled
13510else
13511 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13512 # Both variables are already set.
13513 have_x=yes
13514 else
a0b9e27f
MB
13515if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13517else
13518 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13519ac_x_includes=NO ac_x_libraries=NO
13520rm -fr conftestdir
13521if mkdir conftestdir; then
13522 cd conftestdir
21d1c967 13523 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13524 cat > Imakefile <<'EOF'
21d1c967
GD
13525acfindx:
13526 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13527EOF
21d1c967
GD
13528 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13530 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13531 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13532 for ac_extension in a so sl; do
13533 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13534 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13535 ac_im_usrlibdir=$ac_im_libdir; break
13536 fi
13537 done
13538 # Screen out bogus values from the imake configuration. They are
13539 # bogus both because they are the default anyway, and because
13540 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13541 case "$ac_im_incroot" in
21d1c967 13542 /usr/include) ;;
a0b9e27f 13543 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13544 esac
a0b9e27f 13545 case "$ac_im_usrlibdir" in
21d1c967 13546 /usr/lib | /lib) ;;
a0b9e27f 13547 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13548 esac
13549 fi
13550 cd ..
a0b9e27f 13551 rm -fr conftestdir
21d1c967 13552fi
10f2d63a 13553
a0b9e27f
MB
13554if test "$ac_x_includes" = NO; then
13555 # Guess where to find include files, by looking for this one X11 .h file.
13556 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13557
21d1c967 13558 # First, try using that file with no special directory specified.
a0b9e27f 13559cat > conftest.$ac_ext <<EOF
8b389fab 13560#line 13561 "configure"
21d1c967 13561#include "confdefs.h"
a0b9e27f
MB
13562#include <$x_direct_test_include>
13563EOF
13564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 13565{ (eval echo configure:13566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13567if test -z "$ac_err"; then
13568 rm -rf conftest*
21d1c967
GD
13569 # We can compile using X headers with no special include directory.
13570ac_x_includes=
90dd450c 13571else
a0b9e27f
MB
13572 echo "$ac_err" >&5
13573 echo "configure: failed program was:" >&5
90dd450c 13574 cat conftest.$ac_ext >&5
a0b9e27f
MB
13575 rm -rf conftest*
13576 # Look for the header file in a standard set of common directories.
13577# Check X11 before X11Rn because it is often a symlink to the current release.
13578 for ac_dir in \
13579 /usr/X11/include \
13580 /usr/X11R6/include \
13581 /usr/X11R5/include \
13582 /usr/X11R4/include \
13583 \
13584 /usr/include/X11 \
13585 /usr/include/X11R6 \
13586 /usr/include/X11R5 \
13587 /usr/include/X11R4 \
13588 \
13589 /usr/local/X11/include \
13590 /usr/local/X11R6/include \
13591 /usr/local/X11R5/include \
13592 /usr/local/X11R4/include \
13593 \
13594 /usr/local/include/X11 \
13595 /usr/local/include/X11R6 \
13596 /usr/local/include/X11R5 \
13597 /usr/local/include/X11R4 \
13598 \
13599 /usr/X386/include \
13600 /usr/x386/include \
13601 /usr/XFree86/include/X11 \
13602 \
13603 /usr/include \
13604 /usr/local/include \
13605 /usr/unsupported/include \
13606 /usr/athena/include \
13607 /usr/local/x11r5/include \
13608 /usr/lpp/Xamples/include \
13609 \
13610 /usr/openwin/include \
13611 /usr/openwin/share/include \
13612 ; \
13613 do
13614 if test -r "$ac_dir/$x_direct_test_include"; then
13615 ac_x_includes=$ac_dir
13616 break
13617 fi
13618 done
3a922bb4 13619fi
a0b9e27f
MB
13620rm -f conftest*
13621fi # $ac_x_includes = NO
10f2d63a 13622
a0b9e27f 13623if test "$ac_x_libraries" = NO; then
21d1c967 13624 # Check for the libraries.
a0b9e27f
MB
13625
13626 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13627 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13628
21d1c967
GD
13629 # See if we find them without any special options.
13630 # Don't add to $LIBS permanently.
a0b9e27f
MB
13631 ac_save_LIBS="$LIBS"
13632 LIBS="-l$x_direct_test_library $LIBS"
13633cat > conftest.$ac_ext <<EOF
8b389fab 13634#line 13635 "configure"
3a922bb4 13635#include "confdefs.h"
a0b9e27f
MB
13636
13637int main() {
13638${x_direct_test_function}()
13639; return 0; }
13640EOF
8b389fab 13641if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13642 rm -rf conftest*
13643 LIBS="$ac_save_LIBS"
21d1c967
GD
13644# We can link X programs with no special library path.
13645ac_x_libraries=
3a922bb4 13646else
a0b9e27f
MB
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 LIBS="$ac_save_LIBS"
13651# First see if replacing the include by lib works.
13652# Check X11 before X11Rn because it is often a symlink to the current release.
13653for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13654 /usr/X11/lib \
13655 /usr/X11R6/lib \
13656 /usr/X11R5/lib \
13657 /usr/X11R4/lib \
13658 \
13659 /usr/lib/X11 \
13660 /usr/lib/X11R6 \
13661 /usr/lib/X11R5 \
13662 /usr/lib/X11R4 \
13663 \
13664 /usr/local/X11/lib \
13665 /usr/local/X11R6/lib \
13666 /usr/local/X11R5/lib \
13667 /usr/local/X11R4/lib \
13668 \
13669 /usr/local/lib/X11 \
13670 /usr/local/lib/X11R6 \
13671 /usr/local/lib/X11R5 \
13672 /usr/local/lib/X11R4 \
13673 \
13674 /usr/X386/lib \
13675 /usr/x386/lib \
13676 /usr/XFree86/lib/X11 \
13677 \
13678 /usr/lib \
13679 /usr/local/lib \
13680 /usr/unsupported/lib \
13681 /usr/athena/lib \
13682 /usr/local/x11r5/lib \
13683 /usr/lpp/Xamples/lib \
13684 /lib/usr/lib/X11 \
13685 \
13686 /usr/openwin/lib \
13687 /usr/openwin/share/lib \
13688 ; \
21d1c967
GD
13689do
13690 for ac_extension in a so sl; do
a0b9e27f 13691 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13692 ac_x_libraries=$ac_dir
13693 break 2
13694 fi
13695 done
13696done
3a922bb4 13697fi
a0b9e27f
MB
13698rm -f conftest*
13699fi # $ac_x_libraries = NO
90dd450c 13700
a0b9e27f 13701if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13702 # Didn't find X anywhere. Cache the known absence of X.
13703 ac_cv_have_x="have_x=no"
13704else
13705 # Record where we found X for the cache.
13706 ac_cv_have_x="have_x=yes \
13707 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13708fi
21d1c967
GD
13709fi
13710 fi
13711 eval "$ac_cv_have_x"
13712fi # $with_x != no
90dd450c 13713
21d1c967 13714if test "$have_x" != yes; then
a0b9e27f 13715 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13716 no_x=yes
13717else
13718 # If each of the values was on the command line, it overrides each guess.
13719 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13720 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13721 # Update the cache value to reflect the command line values.
13722 ac_cv_have_x="have_x=yes \
13723 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13724 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13725fi
90dd450c 13726
21d1c967 13727if test "$no_x" = yes; then
90dd450c 13728 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13729 cat >> confdefs.h <<\EOF
90dd450c 13730#define X_DISPLAY_MISSING 1
a0b9e27f 13731EOF
90dd450c
VZ
13732
13733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13734else
13735 if test -n "$x_includes"; then
13736 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13737 fi
3a922bb4 13738
90dd450c
VZ
13739 # It would also be nice to do this for all -L options, not just this one.
13740 if test -n "$x_libraries"; then
13741 X_LIBS="$X_LIBS -L$x_libraries"
13742 # For Solaris; some versions of Sun CC require a space after -R and
13743 # others require no space. Words are not sufficient . . . .
a0b9e27f 13744 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13745 "SunOS 5"*)
a0b9e27f 13746 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8b389fab 13747echo "configure:13748: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13748 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13749 cat > conftest.$ac_ext <<EOF
8b389fab 13750#line 13751 "configure"
90dd450c
VZ
13751#include "confdefs.h"
13752
a0b9e27f 13753int main() {
90dd450c 13754
a0b9e27f
MB
13755; return 0; }
13756EOF
8b389fab 13757if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13758 rm -rf conftest*
90dd450c 13759 ac_R_nospace=yes
3a922bb4 13760else
a0b9e27f
MB
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 ac_R_nospace=no
3a922bb4 13765fi
a0b9e27f 13766rm -f conftest*
90dd450c 13767 if test $ac_R_nospace = yes; then
a0b9e27f 13768 echo "$ac_t""no" 1>&6
90dd450c
VZ
13769 X_LIBS="$X_LIBS -R$x_libraries"
13770 else
13771 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13772 cat > conftest.$ac_ext <<EOF
8b389fab 13773#line 13774 "configure"
90dd450c 13774#include "confdefs.h"
3a922bb4 13775
a0b9e27f 13776int main() {
6f754473 13777
a0b9e27f
MB
13778; return 0; }
13779EOF
8b389fab 13780if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13781 rm -rf conftest*
90dd450c
VZ
13782 ac_R_space=yes
13783else
a0b9e27f
MB
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 rm -rf conftest*
13787 ac_R_space=no
90dd450c 13788fi
a0b9e27f 13789rm -f conftest*
90dd450c 13790 if test $ac_R_space = yes; then
a0b9e27f 13791 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13792 X_LIBS="$X_LIBS -R $x_libraries"
13793 else
a0b9e27f 13794 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13795 fi
13796 fi
a0b9e27f 13797 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13798 esac
13799 fi
13800
13801 # Check for system-dependent libraries X programs must link with.
13802 # Do this before checking for the system-independent R6 libraries
13803 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13804
90dd450c
VZ
13805 if test "$ISC" = yes; then
13806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13807 else
a0b9e27f
MB
13808 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13809 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13810 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13811 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8b389fab 13812echo "configure:13813: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13813ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13816else
a0b9e27f 13817 ac_save_LIBS="$LIBS"
247f5006 13818LIBS="-ldnet $LIBS"
a0b9e27f 13819cat > conftest.$ac_ext <<EOF
8b389fab 13820#line 13821 "configure"
247f5006 13821#include "confdefs.h"
247f5006 13822/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13823/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13824 builtin and then its argument prototype would still apply. */
13825char dnet_ntoa();
13826
13827int main() {
13828dnet_ntoa()
13829; return 0; }
13830EOF
8b389fab 13831if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13832 rm -rf conftest*
13833 eval "ac_cv_lib_$ac_lib_var=yes"
13834else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=no"
13839fi
13840rm -f conftest*
13841LIBS="$ac_save_LIBS"
13842
13843fi
13844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13845 echo "$ac_t""yes" 1>&6
90dd450c 13846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13847else
13848 echo "$ac_t""no" 1>&6
3a922bb4
RL
13849fi
13850
90dd450c 13851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13852 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8b389fab 13853echo "configure:13854: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13854ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13857else
a0b9e27f 13858 ac_save_LIBS="$LIBS"
90dd450c 13859LIBS="-ldnet_stub $LIBS"
a0b9e27f 13860cat > conftest.$ac_ext <<EOF
8b389fab 13861#line 13862 "configure"
90dd450c
VZ
13862#include "confdefs.h"
13863/* Override any gcc2 internal prototype to avoid an error. */
13864/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13865 builtin and then its argument prototype would still apply. */
13866char dnet_ntoa();
13867
13868int main() {
13869dnet_ntoa()
13870; return 0; }
13871EOF
8b389fab 13872if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13873 rm -rf conftest*
13874 eval "ac_cv_lib_$ac_lib_var=yes"
13875else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 eval "ac_cv_lib_$ac_lib_var=no"
13880fi
13881rm -f conftest*
13882LIBS="$ac_save_LIBS"
13883
13884fi
13885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13886 echo "$ac_t""yes" 1>&6
90dd450c 13887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13888else
13889 echo "$ac_t""no" 1>&6
3a922bb4
RL
13890fi
13891
90dd450c 13892 fi
978f1259 13893
90dd450c
VZ
13894 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13895 # to get the SysV transport functions.
a0b9e27f 13896 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13897 # needs -lnsl.
13898 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13899 # on Irix 5.2, according to dickey@clark.net.
13900 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8b389fab 13901echo "configure:13902: checking for gethostbyname" >&5
a0b9e27f
MB
13902if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13904else
13905 cat > conftest.$ac_ext <<EOF
8b389fab 13906#line 13907 "configure"
90dd450c
VZ
13907#include "confdefs.h"
13908/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13909 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13910#include <assert.h>
13911/* Override any gcc2 internal prototype to avoid an error. */
13912/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13913 builtin and then its argument prototype would still apply. */
13914char gethostbyname();
13915
13916int main() {
13917
90dd450c
VZ
13918/* The GNU C library defines this for functions which it implements
13919 to always fail with ENOSYS. Some functions are actually named
13920 something starting with __ and the normal name is an alias. */
13921#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13922choke me
13923#else
a0b9e27f 13924gethostbyname();
90dd450c 13925#endif
978f1259 13926
a0b9e27f
MB
13927; return 0; }
13928EOF
8b389fab 13929if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13930 rm -rf conftest*
13931 eval "ac_cv_func_gethostbyname=yes"
13932else
13933 echo "configure: failed program was:" >&5
13934 cat conftest.$ac_ext >&5
13935 rm -rf conftest*
13936 eval "ac_cv_func_gethostbyname=no"
13937fi
13938rm -f conftest*
13939fi
13940
13941if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13942 echo "$ac_t""yes" 1>&6
13943 :
13944else
13945 echo "$ac_t""no" 1>&6
13946fi
698dcdb6 13947
90dd450c 13948 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13949 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8b389fab 13950echo "configure:13951: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13951ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13954else
a0b9e27f 13955 ac_save_LIBS="$LIBS"
90dd450c 13956LIBS="-lnsl $LIBS"
a0b9e27f 13957cat > conftest.$ac_ext <<EOF
8b389fab 13958#line 13959 "configure"
90dd450c
VZ
13959#include "confdefs.h"
13960/* Override any gcc2 internal prototype to avoid an error. */
13961/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13962 builtin and then its argument prototype would still apply. */
13963char gethostbyname();
5c6fa7d2 13964
a0b9e27f
MB
13965int main() {
13966gethostbyname()
13967; return 0; }
13968EOF
8b389fab 13969if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13970 rm -rf conftest*
13971 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13972else
a0b9e27f
MB
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 rm -rf conftest*
13976 eval "ac_cv_lib_$ac_lib_var=no"
13977fi
13978rm -f conftest*
13979LIBS="$ac_save_LIBS"
247f5006 13980
a0b9e27f
MB
13981fi
13982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13983 echo "$ac_t""yes" 1>&6
13984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13985else
13986 echo "$ac_t""no" 1>&6
90dd450c 13987fi
b12915c1 13988
90dd450c
VZ
13989 fi
13990
13991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13992 # socket/setsockopt and other routines are undefined under SCO ODT
13993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13994 # on later versions), says simon@lia.di.epfl.ch: it contains
13995 # gethostby* variants that don't use the nameserver (or something).
13996 # -lsocket must be given before -lnsl if both are needed.
13997 # We assume that if connect needs -lnsl, so does gethostbyname.
13998 echo $ac_n "checking for connect""... $ac_c" 1>&6
8b389fab 13999echo "configure:14000: checking for connect" >&5
a0b9e27f
MB
14000if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
14003 cat > conftest.$ac_ext <<EOF
8b389fab 14004#line 14005 "configure"
55e80573 14005#include "confdefs.h"
90dd450c 14006/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14007 which can conflict with char connect(); below. */
90dd450c
VZ
14008#include <assert.h>
14009/* Override any gcc2 internal prototype to avoid an error. */
14010/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14011 builtin and then its argument prototype would still apply. */
14012char connect();
14013
14014int main() {
14015
90dd450c
VZ
14016/* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019#if defined (__stub_connect) || defined (__stub___connect)
14020choke me
14021#else
a0b9e27f 14022connect();
90dd450c
VZ
14023#endif
14024
a0b9e27f
MB
14025; return 0; }
14026EOF
8b389fab 14027if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14028 rm -rf conftest*
14029 eval "ac_cv_func_connect=yes"
14030else
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_func_connect=no"
14035fi
14036rm -f conftest*
14037fi
14038
14039if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14040 echo "$ac_t""yes" 1>&6
14041 :
14042else
14043 echo "$ac_t""no" 1>&6
14044fi
55e80573 14045
90dd450c 14046 if test $ac_cv_func_connect = no; then
a0b9e27f 14047 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8b389fab 14048echo "configure:14049: checking for connect in -lsocket" >&5
a0b9e27f
MB
14049ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14052else
a0b9e27f 14053 ac_save_LIBS="$LIBS"
90dd450c 14054LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14055cat > conftest.$ac_ext <<EOF
8b389fab 14056#line 14057 "configure"
90dd450c
VZ
14057#include "confdefs.h"
14058/* Override any gcc2 internal prototype to avoid an error. */
14059/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14060 builtin and then its argument prototype would still apply. */
14061char connect();
14062
14063int main() {
14064connect()
14065; return 0; }
14066EOF
8b389fab 14067if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14068 rm -rf conftest*
14069 eval "ac_cv_lib_$ac_lib_var=yes"
14070else
14071 echo "configure: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14073 rm -rf conftest*
14074 eval "ac_cv_lib_$ac_lib_var=no"
14075fi
14076rm -f conftest*
14077LIBS="$ac_save_LIBS"
14078
14079fi
14080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14081 echo "$ac_t""yes" 1>&6
90dd450c 14082 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14083else
14084 echo "$ac_t""no" 1>&6
90dd450c 14085fi
77e13408 14086
90dd450c 14087 fi
25d0687a 14088
a0b9e27f
MB
14089 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14090 echo $ac_n "checking for remove""... $ac_c" 1>&6
8b389fab 14091echo "configure:14092: checking for remove" >&5
a0b9e27f
MB
14092if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14093 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14094else
a0b9e27f 14095 cat > conftest.$ac_ext <<EOF
8b389fab 14096#line 14097 "configure"
90dd450c
VZ
14097#include "confdefs.h"
14098/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14099 which can conflict with char remove(); below. */
90dd450c
VZ
14100#include <assert.h>
14101/* Override any gcc2 internal prototype to avoid an error. */
14102/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14103 builtin and then its argument prototype would still apply. */
14104char remove();
14105
14106int main() {
14107
90dd450c
VZ
14108/* The GNU C library defines this for functions which it implements
14109 to always fail with ENOSYS. Some functions are actually named
14110 something starting with __ and the normal name is an alias. */
14111#if defined (__stub_remove) || defined (__stub___remove)
14112choke me
14113#else
a0b9e27f 14114remove();
90dd450c 14115#endif
55e80573 14116
a0b9e27f
MB
14117; return 0; }
14118EOF
8b389fab 14119if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14120 rm -rf conftest*
14121 eval "ac_cv_func_remove=yes"
14122else
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 rm -rf conftest*
14126 eval "ac_cv_func_remove=no"
14127fi
14128rm -f conftest*
14129fi
14130
14131if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14132 echo "$ac_t""yes" 1>&6
14133 :
14134else
14135 echo "$ac_t""no" 1>&6
14136fi
10f2d63a 14137
90dd450c 14138 if test $ac_cv_func_remove = no; then
a0b9e27f 14139 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8b389fab 14140echo "configure:14141: checking for remove in -lposix" >&5
a0b9e27f
MB
14141ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14144else
a0b9e27f 14145 ac_save_LIBS="$LIBS"
90dd450c 14146LIBS="-lposix $LIBS"
a0b9e27f 14147cat > conftest.$ac_ext <<EOF
8b389fab 14148#line 14149 "configure"
90dd450c
VZ
14149#include "confdefs.h"
14150/* Override any gcc2 internal prototype to avoid an error. */
14151/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14152 builtin and then its argument prototype would still apply. */
14153char remove();
14154
14155int main() {
14156remove()
14157; return 0; }
14158EOF
8b389fab 14159if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14160 rm -rf conftest*
14161 eval "ac_cv_lib_$ac_lib_var=yes"
14162else
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14165 rm -rf conftest*
14166 eval "ac_cv_lib_$ac_lib_var=no"
14167fi
14168rm -f conftest*
14169LIBS="$ac_save_LIBS"
14170
14171fi
14172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14173 echo "$ac_t""yes" 1>&6
90dd450c 14174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14175else
14176 echo "$ac_t""no" 1>&6
90dd450c 14177fi
f6bcfd97 14178
6fa882bd
RR
14179 fi
14180
90dd450c 14181 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14182 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8b389fab 14183echo "configure:14184: checking for shmat" >&5
a0b9e27f
MB
14184if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14185 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14186else
a0b9e27f 14187 cat > conftest.$ac_ext <<EOF
8b389fab 14188#line 14189 "configure"
90dd450c
VZ
14189#include "confdefs.h"
14190/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14191 which can conflict with char shmat(); below. */
90dd450c
VZ
14192#include <assert.h>
14193/* Override any gcc2 internal prototype to avoid an error. */
14194/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14195 builtin and then its argument prototype would still apply. */
14196char shmat();
14197
14198int main() {
14199
90dd450c
VZ
14200/* The GNU C library defines this for functions which it implements
14201 to always fail with ENOSYS. Some functions are actually named
14202 something starting with __ and the normal name is an alias. */
14203#if defined (__stub_shmat) || defined (__stub___shmat)
14204choke me
14205#else
a0b9e27f 14206shmat();
90dd450c 14207#endif
10f2d63a 14208
a0b9e27f
MB
14209; return 0; }
14210EOF
8b389fab 14211if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14212 rm -rf conftest*
14213 eval "ac_cv_func_shmat=yes"
14214else
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 rm -rf conftest*
14218 eval "ac_cv_func_shmat=no"
14219fi
14220rm -f conftest*
14221fi
14222
14223if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14224 echo "$ac_t""yes" 1>&6
14225 :
14226else
14227 echo "$ac_t""no" 1>&6
14228fi
d08b457b 14229
90dd450c 14230 if test $ac_cv_func_shmat = no; then
a0b9e27f 14231 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8b389fab 14232echo "configure:14233: checking for shmat in -lipc" >&5
a0b9e27f
MB
14233ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14236else
a0b9e27f 14237 ac_save_LIBS="$LIBS"
90dd450c 14238LIBS="-lipc $LIBS"
a0b9e27f 14239cat > conftest.$ac_ext <<EOF
8b389fab 14240#line 14241 "configure"
90dd450c 14241#include "confdefs.h"
8284b0c5 14242/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14243/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14244 builtin and then its argument prototype would still apply. */
14245char shmat();
14246
14247int main() {
14248shmat()
14249; return 0; }
14250EOF
8b389fab 14251if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14252 rm -rf conftest*
14253 eval "ac_cv_lib_$ac_lib_var=yes"
14254else
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 rm -rf conftest*
14258 eval "ac_cv_lib_$ac_lib_var=no"
14259fi
14260rm -f conftest*
14261LIBS="$ac_save_LIBS"
14262
14263fi
14264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14265 echo "$ac_t""yes" 1>&6
90dd450c 14266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14267else
14268 echo "$ac_t""no" 1>&6
d08b457b
GD
14269fi
14270
d558c907 14271 fi
90dd450c 14272 fi
3a922bb4 14273
90dd450c 14274 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14275 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14276 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14277 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14278 # check for ICE first), but we must link in the order -lSM -lICE or
14279 # we get undefined symbols. So assume we have SM if we have ICE.
14280 # These have to be linked with before -lX11, unlike the other
14281 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14282 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14283 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8b389fab 14284echo "configure:14285: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14285ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288else
14289 ac_save_LIBS="$LIBS"
f09359cf 14290LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14291cat > conftest.$ac_ext <<EOF
8b389fab 14292#line 14293 "configure"
9cfadba2 14293#include "confdefs.h"
90dd450c
VZ
14294/* Override any gcc2 internal prototype to avoid an error. */
14295/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14296 builtin and then its argument prototype would still apply. */
14297char IceConnectionNumber();
14298
14299int main() {
14300IceConnectionNumber()
14301; return 0; }
14302EOF
8b389fab 14303if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14304 rm -rf conftest*
14305 eval "ac_cv_lib_$ac_lib_var=yes"
14306else
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 rm -rf conftest*
14310 eval "ac_cv_lib_$ac_lib_var=no"
14311fi
14312rm -f conftest*
14313LIBS="$ac_save_LIBS"
14314
14315fi
14316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14317 echo "$ac_t""yes" 1>&6
90dd450c 14318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14319else
14320 echo "$ac_t""no" 1>&6
9cfadba2 14321fi
10f2d63a 14322
a0b9e27f 14323 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14324
14325fi
14326
8284b0c5 14327
90dd450c 14328 if test "$no_x" = "yes"; then
a0b9e27f 14329 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14330 fi
14331
14332 GUI_TK_LIBRARY="$X_LIBS"
14333 TOOLKIT_INCLUDE="$X_CFLAGS"
14334 AFMINSTALL=afminstall
14335 COMPILED_X_PROGRAM=0
14336
21d1c967 14337 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14338 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
8b389fab 14339echo "configure:14340: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14340 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14341 echo "$ac_t""not found" 1>&6
14342 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14343 else
a0b9e27f
MB
14344 echo "$ac_t""$MICROWIN" 1>&6
14345 cat >> confdefs.h <<\EOF
21d1c967 14346#define wxUSE_NANOX 1
a0b9e27f 14347EOF
21d1c967 14348
90dd450c
VZ
14349 fi
14350 fi
14351
14352 xpm_link=
a0b9e27f 14353 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8b389fab 14354echo "configure:14355: checking for Xpm library" >&5
a0b9e27f 14355
90dd450c 14356ac_find_libraries=
2b5f62a0 14357for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14358 do
14359 for ac_extension in a so sl dylib; do
14360 if test -f "$ac_dir/libXpm.$ac_extension"; then
14361 ac_find_libraries=$ac_dir
14362 break 2
14363 fi
14364 done
14365 done
14366
14367 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14368
90dd450c
VZ
14369 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14370 result=$?
14371 if test $result = 0; then
14372 ac_path_to_link=""
14373 else
14374 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14375 fi
90dd450c 14376
21d1c967
GD
14377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14378 xpm_link=" -lXpm"
a0b9e27f 14379 cat >> confdefs.h <<\EOF
21d1c967 14380#define wxHAVE_LIB_XPM 1
a0b9e27f 14381EOF
90dd450c 14382
a0b9e27f 14383 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14384 else
a0b9e27f 14385 cat > conftest.$ac_ext <<EOF
8b389fab 14386#line 14387 "configure"
21d1c967 14387#include "confdefs.h"
90dd450c 14388
21d1c967 14389 #include <X11/xpm.h>
a0b9e27f
MB
14390
14391int main() {
6f72b082 14392
21d1c967
GD
14393 int version;
14394 version = XpmLibraryVersion();
a0b9e27f
MB
14395
14396; return 0; }
14397EOF
8b389fab 14398if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14399 rm -rf conftest*
14400
21d1c967 14401 xpm_link=" -lXpm"
a0b9e27f 14402 cat >> confdefs.h <<\EOF
21d1c967 14403#define wxHAVE_LIB_XPM 1
a0b9e27f 14404EOF
90dd450c 14405
a0b9e27f 14406 echo "$ac_t""found in default search path" 1>&6
21d1c967 14407 COMPILED_X_PROGRAM=0
a0b9e27f 14408
21d1c967 14409else
a0b9e27f
MB
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14412 rm -rf conftest*
14413
14414 echo "$ac_t""no" 1>&6
14415 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14416
14417
6f72b082 14418fi
a0b9e27f 14419rm -f conftest*
21d1c967 14420 fi
90dd450c 14421
f7f78039 14422 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
8b389fab 14423echo "configure:14424: checking for XShapeQueryExtension in -lXext" >&5
f7f78039
MB
14424ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14426 echo $ac_n "(cached) $ac_c" 1>&6
14427else
14428 ac_save_LIBS="$LIBS"
14429LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14430cat > conftest.$ac_ext <<EOF
8b389fab 14431#line 14432 "configure"
f7f78039
MB
14432#include "confdefs.h"
14433/* Override any gcc2 internal prototype to avoid an error. */
14434/* We use char because int might match the return type of a gcc2
14435 builtin and then its argument prototype would still apply. */
14436char XShapeQueryExtension();
14437
14438int main() {
14439XShapeQueryExtension()
14440; return 0; }
14441EOF
8b389fab 14442if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7f78039
MB
14443 rm -rf conftest*
14444 eval "ac_cv_lib_$ac_lib_var=yes"
14445else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_lib_$ac_lib_var=no"
14450fi
14451rm -f conftest*
14452LIBS="$ac_save_LIBS"
14453
14454fi
14455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14456 echo "$ac_t""yes" 1>&6
14457
14458 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14459 wxHAVE_XEXT_LIB=1
14460
14461else
14462 echo "$ac_t""no" 1>&6
14463fi
14464
14465
2b5f62a0
VZ
14466 if test "$wxUSE_UNICODE" = "yes"; then
14467
14468 succeeded=no
90dd450c 14469
2b5f62a0
VZ
14470 if test -z "$PKG_CONFIG"; then
14471 # Extract the first word of "pkg-config", so it can be a program name with args.
14472set dummy pkg-config; ac_word=$2
14473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 14474echo "configure:14475: checking for $ac_word" >&5
2b5f62a0 14475if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14476 echo $ac_n "(cached) $ac_c" 1>&6
14477else
2b5f62a0
VZ
14478 case "$PKG_CONFIG" in
14479 /*)
14480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14481 ;;
14482 ?:/*)
14483 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14484 ;;
14485 *)
14486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14487 ac_dummy="$PATH"
14488 for ac_dir in $ac_dummy; do
14489 test -z "$ac_dir" && ac_dir=.
14490 if test -f $ac_dir/$ac_word; then
14491 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14492 break
14493 fi
14494 done
14495 IFS="$ac_save_ifs"
14496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14497 ;;
14498esac
14499fi
14500PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14501if test -n "$PKG_CONFIG"; then
14502 echo "$ac_t""$PKG_CONFIG" 1>&6
14503else
14504 echo "$ac_t""no" 1>&6
14505fi
14506
14507 fi
14508
14509 if test "$PKG_CONFIG" = "no" ; then
14510 echo "*** The pkg-config script could not be found. Make sure it is"
14511 echo "*** in your path, or set the PKG_CONFIG environment variable"
14512 echo "*** to the full path to pkg-config."
14513 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14514 else
14515 PKG_CONFIG_MIN_VERSION=0.9.0
14516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14517 echo $ac_n "checking for pangox""... $ac_c" 1>&6
8b389fab 14518echo "configure:14519: checking for pangox" >&5
2b5f62a0
VZ
14519
14520 if $PKG_CONFIG --exists "pangox" ; then
14521 echo "$ac_t""yes" 1>&6
14522 succeeded=yes
14523
14524 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
8b389fab 14525echo "configure:14526: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14526 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14527 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14528
14529 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
8b389fab 14530echo "configure:14531: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14531 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14532 echo "$ac_t""$PANGOX_LIBS" 1>&6
14533 else
14534 PANGOX_CFLAGS=""
14535 PANGOX_LIBS=""
14536 ## If we have a custom action on failure, don't print errors, but
14537 ## do set a variable so people can do so.
14538 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14539
14540 fi
14541
14542
14543
14544 else
14545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14547 fi
14548 fi
14549
14550 if test $succeeded = yes; then
14551
14552 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14553 LIBS="$LIBS $PANGOX_LIBS"
14554
14555 else
14556
14557 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14558
14559
14560 fi
14561
14562
14563 succeeded=no
14564
14565 if test -z "$PKG_CONFIG"; then
14566 # Extract the first word of "pkg-config", so it can be a program name with args.
14567set dummy pkg-config; ac_word=$2
14568echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 14569echo "configure:14570: checking for $ac_word" >&5
2b5f62a0
VZ
14570if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14571 echo $ac_n "(cached) $ac_c" 1>&6
14572else
14573 case "$PKG_CONFIG" in
14574 /*)
14575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14576 ;;
14577 ?:/*)
14578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14579 ;;
14580 *)
14581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14582 ac_dummy="$PATH"
14583 for ac_dir in $ac_dummy; do
14584 test -z "$ac_dir" && ac_dir=.
14585 if test -f $ac_dir/$ac_word; then
14586 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14587 break
14588 fi
14589 done
14590 IFS="$ac_save_ifs"
14591 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14592 ;;
14593esac
14594fi
14595PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14596if test -n "$PKG_CONFIG"; then
14597 echo "$ac_t""$PKG_CONFIG" 1>&6
14598else
14599 echo "$ac_t""no" 1>&6
14600fi
14601
14602 fi
14603
14604 if test "$PKG_CONFIG" = "no" ; then
14605 echo "*** The pkg-config script could not be found. Make sure it is"
14606 echo "*** in your path, or set the PKG_CONFIG environment variable"
14607 echo "*** to the full path to pkg-config."
14608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14609 else
14610 PKG_CONFIG_MIN_VERSION=0.9.0
14611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14612 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
8b389fab 14613echo "configure:14614: checking for pangoft2" >&5
2b5f62a0
VZ
14614
14615 if $PKG_CONFIG --exists "pangoft2" ; then
14616 echo "$ac_t""yes" 1>&6
14617 succeeded=yes
14618
14619 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
8b389fab 14620echo "configure:14621: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14621 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14622 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14623
14624 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
8b389fab 14625echo "configure:14626: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14626 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14627 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14628 else
14629 PANGOFT2_CFLAGS=""
14630 PANGOFT2_LIBS=""
14631 ## If we have a custom action on failure, don't print errors, but
14632 ## do set a variable so people can do so.
14633 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14634
14635 fi
14636
14637
14638
14639 else
14640 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14641 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14642 fi
14643 fi
14644
14645 if test $succeeded = yes; then
14646
14647 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14648 LIBS="$LIBS $PANGOFT2_LIBS"
14649
14650 else
14651
14652 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14653 wxUSE_PRINTING_ARCHITECTURE="no"
14654
14655
14656 fi
14657
14658
14659 succeeded=no
14660
14661 if test -z "$PKG_CONFIG"; then
14662 # Extract the first word of "pkg-config", so it can be a program name with args.
14663set dummy pkg-config; ac_word=$2
14664echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 14665echo "configure:14666: checking for $ac_word" >&5
2b5f62a0
VZ
14666if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14667 echo $ac_n "(cached) $ac_c" 1>&6
14668else
14669 case "$PKG_CONFIG" in
14670 /*)
14671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14672 ;;
14673 ?:/*)
14674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14675 ;;
14676 *)
14677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14678 ac_dummy="$PATH"
14679 for ac_dir in $ac_dummy; do
14680 test -z "$ac_dir" && ac_dir=.
14681 if test -f $ac_dir/$ac_word; then
14682 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14683 break
14684 fi
14685 done
14686 IFS="$ac_save_ifs"
14687 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14688 ;;
14689esac
14690fi
14691PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14692if test -n "$PKG_CONFIG"; then
14693 echo "$ac_t""$PKG_CONFIG" 1>&6
14694else
14695 echo "$ac_t""no" 1>&6
14696fi
14697
14698 fi
14699
14700 if test "$PKG_CONFIG" = "no" ; then
14701 echo "*** The pkg-config script could not be found. Make sure it is"
14702 echo "*** in your path, or set the PKG_CONFIG environment variable"
14703 echo "*** to the full path to pkg-config."
14704 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14705 else
14706 PKG_CONFIG_MIN_VERSION=0.9.0
14707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14708 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
8b389fab 14709echo "configure:14710: checking for pangoxft" >&5
2b5f62a0
VZ
14710
14711 if $PKG_CONFIG --exists "pangoxft" ; then
14712 echo "$ac_t""yes" 1>&6
14713 succeeded=yes
14714
14715 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
8b389fab 14716echo "configure:14717: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14717 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14718 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14719
14720 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
8b389fab 14721echo "configure:14722: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14722 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14723 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14724 else
14725 PANGOXFT_CFLAGS=""
14726 PANGOXFT_LIBS=""
14727 ## If we have a custom action on failure, don't print errors, but
14728 ## do set a variable so people can do so.
14729 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14730
14731 fi
14732
14733
14734
14735 else
14736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14738 fi
14739 fi
14740
14741 if test $succeeded = yes; then
14742
14743 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14744 LIBS="$LIBS $PANGOXFT_LIBS"
14745
14746 else
14747
14748 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14749
14750
14751 fi
14752
14753 fi
14754
14755 wxUSE_UNIVERSAL="yes"
14756
14757 if test "$wxUSE_NANOX" = "yes"; then
14758 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14759 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"
14760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14761 else
14762 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14763 fi
14764
14765 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14766 TOOLKIT=X11
14767 GUIDIST=X11_DIST
14768 fi
14769
21d1c967
GD
14770 if test "$wxUSE_MOTIF" = 1; then
14771 if test "$no_x" = yes; then
14772 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14773 cat >> confdefs.h <<\EOF
21d1c967 14774#define X_DISPLAY_MISSING 1
a0b9e27f 14775EOF
21d1c967
GD
14776
14777 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14778else
14779 if test -n "$x_includes"; then
14780 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14781 fi
14782
21d1c967
GD
14783 # It would also be nice to do this for all -L options, not just this one.
14784 if test -n "$x_libraries"; then
14785 X_LIBS="$X_LIBS -L$x_libraries"
14786 # For Solaris; some versions of Sun CC require a space after -R and
14787 # others require no space. Words are not sufficient . . . .
a0b9e27f 14788 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14789 "SunOS 5"*)
a0b9e27f 14790 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8b389fab 14791echo "configure:14792: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14792 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14793 cat > conftest.$ac_ext <<EOF
8b389fab 14794#line 14795 "configure"
21d1c967
GD
14795#include "confdefs.h"
14796
a0b9e27f 14797int main() {
21d1c967 14798
a0b9e27f
MB
14799; return 0; }
14800EOF
8b389fab 14801if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14802 rm -rf conftest*
21d1c967 14803 ac_R_nospace=yes
698dcdb6 14804else
a0b9e27f
MB
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14807 rm -rf conftest*
14808 ac_R_nospace=no
10f2d63a 14809fi
a0b9e27f 14810rm -f conftest*
21d1c967 14811 if test $ac_R_nospace = yes; then
a0b9e27f 14812 echo "$ac_t""no" 1>&6
21d1c967
GD
14813 X_LIBS="$X_LIBS -R$x_libraries"
14814 else
14815 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14816 cat > conftest.$ac_ext <<EOF
8b389fab 14817#line 14818 "configure"
21d1c967 14818#include "confdefs.h"
10f2d63a 14819
a0b9e27f 14820int main() {
f0c87536 14821
a0b9e27f
MB
14822; return 0; }
14823EOF
8b389fab 14824if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14825 rm -rf conftest*
21d1c967
GD
14826 ac_R_space=yes
14827else
a0b9e27f
MB
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 ac_R_space=no
21d1c967 14832fi
a0b9e27f 14833rm -f conftest*
21d1c967 14834 if test $ac_R_space = yes; then
a0b9e27f 14835 echo "$ac_t""yes" 1>&6
21d1c967
GD
14836 X_LIBS="$X_LIBS -R $x_libraries"
14837 else
a0b9e27f 14838 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14839 fi
14840 fi
a0b9e27f 14841 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14842 esac
14843 fi
90dd450c 14844
21d1c967
GD
14845 # Check for system-dependent libraries X programs must link with.
14846 # Do this before checking for the system-independent R6 libraries
14847 # (-lICE), since we may need -lsocket or whatever for X linking.
14848
14849 if test "$ISC" = yes; then
14850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14851 else
a0b9e27f
MB
14852 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14853 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14854 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14855 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8b389fab 14856echo "configure:14857: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14857ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14859 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14860else
a0b9e27f 14861 ac_save_LIBS="$LIBS"
247f5006 14862LIBS="-ldnet $LIBS"
a0b9e27f 14863cat > conftest.$ac_ext <<EOF
8b389fab 14864#line 14865 "configure"
247f5006 14865#include "confdefs.h"
247f5006 14866/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14867/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14868 builtin and then its argument prototype would still apply. */
14869char dnet_ntoa();
14870
14871int main() {
14872dnet_ntoa()
14873; return 0; }
14874EOF
8b389fab 14875if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14876 rm -rf conftest*
14877 eval "ac_cv_lib_$ac_lib_var=yes"
14878else
14879 echo "configure: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 rm -rf conftest*
14882 eval "ac_cv_lib_$ac_lib_var=no"
14883fi
14884rm -f conftest*
14885LIBS="$ac_save_LIBS"
14886
14887fi
14888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14889 echo "$ac_t""yes" 1>&6
21d1c967 14890 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14891else
14892 echo "$ac_t""no" 1>&6
0fb0dd83 14893fi
0fb0dd83 14894
21d1c967 14895 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14896 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8b389fab 14897echo "configure:14898: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14898ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14899if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14900 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14901else
a0b9e27f 14902 ac_save_LIBS="$LIBS"
21d1c967 14903LIBS="-ldnet_stub $LIBS"
a0b9e27f 14904cat > conftest.$ac_ext <<EOF
8b389fab 14905#line 14906 "configure"
21d1c967
GD
14906#include "confdefs.h"
14907/* Override any gcc2 internal prototype to avoid an error. */
14908/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14909 builtin and then its argument prototype would still apply. */
14910char dnet_ntoa();
14911
14912int main() {
14913dnet_ntoa()
14914; return 0; }
14915EOF
8b389fab 14916if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14917 rm -rf conftest*
14918 eval "ac_cv_lib_$ac_lib_var=yes"
14919else
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 rm -rf conftest*
14923 eval "ac_cv_lib_$ac_lib_var=no"
14924fi
14925rm -f conftest*
14926LIBS="$ac_save_LIBS"
14927
14928fi
14929if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
21d1c967 14931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14932else
14933 echo "$ac_t""no" 1>&6
90dd450c
VZ
14934fi
14935
21d1c967 14936 fi
90dd450c 14937
21d1c967
GD
14938 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14939 # to get the SysV transport functions.
a0b9e27f 14940 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14941 # needs -lnsl.
14942 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14943 # on Irix 5.2, according to dickey@clark.net.
14944 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8b389fab 14945echo "configure:14946: checking for gethostbyname" >&5
a0b9e27f
MB
14946if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14947 echo $ac_n "(cached) $ac_c" 1>&6
14948else
14949 cat > conftest.$ac_ext <<EOF
8b389fab 14950#line 14951 "configure"
21d1c967
GD
14951#include "confdefs.h"
14952/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14953 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14954#include <assert.h>
14955/* Override any gcc2 internal prototype to avoid an error. */
14956/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14957 builtin and then its argument prototype would still apply. */
14958char gethostbyname();
14959
14960int main() {
14961
21d1c967
GD
14962/* The GNU C library defines this for functions which it implements
14963 to always fail with ENOSYS. Some functions are actually named
14964 something starting with __ and the normal name is an alias. */
14965#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14966choke me
14967#else
a0b9e27f 14968gethostbyname();
21d1c967 14969#endif
90dd450c 14970
a0b9e27f
MB
14971; return 0; }
14972EOF
8b389fab 14973if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14974 rm -rf conftest*
14975 eval "ac_cv_func_gethostbyname=yes"
14976else
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 rm -rf conftest*
14980 eval "ac_cv_func_gethostbyname=no"
14981fi
14982rm -f conftest*
14983fi
14984
14985if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
14987 :
14988else
14989 echo "$ac_t""no" 1>&6
14990fi
90dd450c 14991
21d1c967 14992 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14993 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8b389fab 14994echo "configure:14995: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14995ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14997 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14998else
a0b9e27f 14999 ac_save_LIBS="$LIBS"
21d1c967 15000LIBS="-lnsl $LIBS"
a0b9e27f 15001cat > conftest.$ac_ext <<EOF
8b389fab 15002#line 15003 "configure"
21d1c967
GD
15003#include "confdefs.h"
15004/* Override any gcc2 internal prototype to avoid an error. */
15005/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15006 builtin and then its argument prototype would still apply. */
15007char gethostbyname();
5c6fa7d2 15008
a0b9e27f
MB
15009int main() {
15010gethostbyname()
15011; return 0; }
15012EOF
8b389fab 15013if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15014 rm -rf conftest*
15015 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 15016else
a0b9e27f
MB
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15019 rm -rf conftest*
15020 eval "ac_cv_lib_$ac_lib_var=no"
15021fi
15022rm -f conftest*
15023LIBS="$ac_save_LIBS"
247f5006 15024
a0b9e27f
MB
15025fi
15026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15027 echo "$ac_t""yes" 1>&6
15028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15029else
15030 echo "$ac_t""no" 1>&6
21d1c967 15031fi
90dd450c 15032
90dd450c
VZ
15033 fi
15034
21d1c967
GD
15035 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15036 # socket/setsockopt and other routines are undefined under SCO ODT
15037 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15038 # on later versions), says simon@lia.di.epfl.ch: it contains
15039 # gethostby* variants that don't use the nameserver (or something).
15040 # -lsocket must be given before -lnsl if both are needed.
15041 # We assume that if connect needs -lnsl, so does gethostbyname.
15042 echo $ac_n "checking for connect""... $ac_c" 1>&6
8b389fab 15043echo "configure:15044: checking for connect" >&5
a0b9e27f
MB
15044if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15045 echo $ac_n "(cached) $ac_c" 1>&6
15046else
15047 cat > conftest.$ac_ext <<EOF
8b389fab 15048#line 15049 "configure"
21d1c967
GD
15049#include "confdefs.h"
15050/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15051 which can conflict with char connect(); below. */
21d1c967
GD
15052#include <assert.h>
15053/* Override any gcc2 internal prototype to avoid an error. */
15054/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15055 builtin and then its argument prototype would still apply. */
15056char connect();
15057
15058int main() {
15059
21d1c967
GD
15060/* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063#if defined (__stub_connect) || defined (__stub___connect)
15064choke me
15065#else
a0b9e27f 15066connect();
21d1c967 15067#endif
90dd450c 15068
a0b9e27f
MB
15069; return 0; }
15070EOF
8b389fab 15071if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15072 rm -rf conftest*
15073 eval "ac_cv_func_connect=yes"
15074else
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15077 rm -rf conftest*
15078 eval "ac_cv_func_connect=no"
15079fi
15080rm -f conftest*
15081fi
15082
15083if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15084 echo "$ac_t""yes" 1>&6
15085 :
15086else
15087 echo "$ac_t""no" 1>&6
15088fi
1f8ae82f 15089
21d1c967 15090 if test $ac_cv_func_connect = no; then
a0b9e27f 15091 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8b389fab 15092echo "configure:15093: checking for connect in -lsocket" >&5
a0b9e27f
MB
15093ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15094if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15095 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15096else
a0b9e27f 15097 ac_save_LIBS="$LIBS"
21d1c967 15098LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15099cat > conftest.$ac_ext <<EOF
8b389fab 15100#line 15101 "configure"
0fbb762e 15101#include "confdefs.h"
21d1c967
GD
15102/* Override any gcc2 internal prototype to avoid an error. */
15103/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15104 builtin and then its argument prototype would still apply. */
15105char connect();
15106
15107int main() {
15108connect()
15109; return 0; }
15110EOF
8b389fab 15111if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15112 rm -rf conftest*
15113 eval "ac_cv_lib_$ac_lib_var=yes"
15114else
15115 echo "configure: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15117 rm -rf conftest*
15118 eval "ac_cv_lib_$ac_lib_var=no"
15119fi
15120rm -f conftest*
15121LIBS="$ac_save_LIBS"
15122
15123fi
15124if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15125 echo "$ac_t""yes" 1>&6
21d1c967 15126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15127else
15128 echo "$ac_t""no" 1>&6
21d1c967 15129fi
90dd450c 15130
21d1c967 15131 fi
90dd450c 15132
a0b9e27f
MB
15133 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15134 echo $ac_n "checking for remove""... $ac_c" 1>&6
8b389fab 15135echo "configure:15136: checking for remove" >&5
a0b9e27f
MB
15136if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15137 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15138else
a0b9e27f 15139 cat > conftest.$ac_ext <<EOF
8b389fab 15140#line 15141 "configure"
21d1c967
GD
15141#include "confdefs.h"
15142/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15143 which can conflict with char remove(); below. */
21d1c967
GD
15144#include <assert.h>
15145/* Override any gcc2 internal prototype to avoid an error. */
15146/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15147 builtin and then its argument prototype would still apply. */
15148char remove();
15149
15150int main() {
15151
21d1c967
GD
15152/* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155#if defined (__stub_remove) || defined (__stub___remove)
15156choke me
15157#else
a0b9e27f 15158remove();
21d1c967 15159#endif
90dd450c 15160
a0b9e27f
MB
15161; return 0; }
15162EOF
8b389fab 15163if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15164 rm -rf conftest*
15165 eval "ac_cv_func_remove=yes"
15166else
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 rm -rf conftest*
15170 eval "ac_cv_func_remove=no"
15171fi
15172rm -f conftest*
15173fi
15174
15175if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15176 echo "$ac_t""yes" 1>&6
15177 :
15178else
15179 echo "$ac_t""no" 1>&6
15180fi
90dd450c 15181
21d1c967 15182 if test $ac_cv_func_remove = no; then
a0b9e27f 15183 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8b389fab 15184echo "configure:15185: checking for remove in -lposix" >&5
a0b9e27f
MB
15185ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15188else
a0b9e27f 15189 ac_save_LIBS="$LIBS"
21d1c967 15190LIBS="-lposix $LIBS"
a0b9e27f 15191cat > conftest.$ac_ext <<EOF
8b389fab 15192#line 15193 "configure"
21d1c967
GD
15193#include "confdefs.h"
15194/* Override any gcc2 internal prototype to avoid an error. */
15195/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15196 builtin and then its argument prototype would still apply. */
15197char remove();
15198
15199int main() {
15200remove()
15201; return 0; }
15202EOF
8b389fab 15203if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15204 rm -rf conftest*
15205 eval "ac_cv_lib_$ac_lib_var=yes"
15206else
15207 echo "configure: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 rm -rf conftest*
15210 eval "ac_cv_lib_$ac_lib_var=no"
15211fi
15212rm -f conftest*
15213LIBS="$ac_save_LIBS"
15214
15215fi
15216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6
21d1c967 15218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15219else
15220 echo "$ac_t""no" 1>&6
21d1c967 15221fi
19bc6aad 15222
90dd450c 15223 fi
19bc6aad 15224
21d1c967 15225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15226 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8b389fab 15227echo "configure:15228: checking for shmat" >&5
a0b9e27f
MB
15228if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15230else
a0b9e27f 15231 cat > conftest.$ac_ext <<EOF
8b389fab 15232#line 15233 "configure"
21d1c967
GD
15233#include "confdefs.h"
15234/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15235 which can conflict with char shmat(); below. */
21d1c967
GD
15236#include <assert.h>
15237/* Override any gcc2 internal prototype to avoid an error. */
15238/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15239 builtin and then its argument prototype would still apply. */
15240char shmat();
15241
15242int main() {
15243
21d1c967
GD
15244/* The GNU C library defines this for functions which it implements
15245 to always fail with ENOSYS. Some functions are actually named
15246 something starting with __ and the normal name is an alias. */
15247#if defined (__stub_shmat) || defined (__stub___shmat)
15248choke me
15249#else
a0b9e27f 15250shmat();
21d1c967 15251#endif
90dd450c 15252
a0b9e27f
MB
15253; return 0; }
15254EOF
8b389fab 15255if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15256 rm -rf conftest*
15257 eval "ac_cv_func_shmat=yes"
15258else
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 eval "ac_cv_func_shmat=no"
15263fi
15264rm -f conftest*
15265fi
15266
15267if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15268 echo "$ac_t""yes" 1>&6
15269 :
15270else
15271 echo "$ac_t""no" 1>&6
15272fi
19bc6aad 15273
21d1c967 15274 if test $ac_cv_func_shmat = no; then
a0b9e27f 15275 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8b389fab 15276echo "configure:15277: checking for shmat in -lipc" >&5
a0b9e27f
MB
15277ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15278if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15280else
a0b9e27f 15281 ac_save_LIBS="$LIBS"
5c6fa7d2 15282LIBS="-lipc $LIBS"
a0b9e27f 15283cat > conftest.$ac_ext <<EOF
8b389fab 15284#line 15285 "configure"
5c6fa7d2 15285#include "confdefs.h"
5c6fa7d2 15286/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15287/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15288 builtin and then its argument prototype would still apply. */
15289char shmat();
15290
15291int main() {
15292shmat()
15293; return 0; }
15294EOF
8b389fab 15295if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15296 rm -rf conftest*
15297 eval "ac_cv_lib_$ac_lib_var=yes"
15298else
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 rm -rf conftest*
15302 eval "ac_cv_lib_$ac_lib_var=no"
15303fi
15304rm -f conftest*
15305LIBS="$ac_save_LIBS"
15306
15307fi
15308if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15309 echo "$ac_t""yes" 1>&6
21d1c967 15310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15311else
15312 echo "$ac_t""no" 1>&6
9f8148b1 15313fi
90dd450c 15314
90dd450c 15315 fi
21d1c967 15316 fi
10f2d63a 15317
21d1c967 15318 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15319 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15320 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15321 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15322 # check for ICE first), but we must link in the order -lSM -lICE or
15323 # we get undefined symbols. So assume we have SM if we have ICE.
15324 # These have to be linked with before -lX11, unlike the other
15325 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15326 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15327 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8b389fab 15328echo "configure:15329: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15329ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15331 echo $ac_n "(cached) $ac_c" 1>&6
15332else
15333 ac_save_LIBS="$LIBS"
f09359cf 15334LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15335cat > conftest.$ac_ext <<EOF
8b389fab 15336#line 15337 "configure"
29fd3c0c 15337#include "confdefs.h"
21d1c967
GD
15338/* Override any gcc2 internal prototype to avoid an error. */
15339/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15340 builtin and then its argument prototype would still apply. */
15341char IceConnectionNumber();
15342
15343int main() {
15344IceConnectionNumber()
15345; return 0; }
15346EOF
8b389fab 15347if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15348 rm -rf conftest*
15349 eval "ac_cv_lib_$ac_lib_var=yes"
15350else
15351 echo "configure: failed program was:" >&5
15352 cat conftest.$ac_ext >&5
15353 rm -rf conftest*
15354 eval "ac_cv_lib_$ac_lib_var=no"
15355fi
15356rm -f conftest*
15357LIBS="$ac_save_LIBS"
15358
15359fi
15360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
21d1c967 15362 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15363else
15364 echo "$ac_t""no" 1>&6
29fd3c0c 15365fi
21d1c967 15366
a0b9e27f 15367 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15368
10f2d63a
VZ
15369fi
15370
8284b0c5 15371
21d1c967 15372 if test "$no_x" = "yes"; then
a0b9e27f 15373 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15374 fi
15375
2b5f62a0
VZ
15376 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15377 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15378 AFMINSTALL=afminstall
15379 COMPILED_X_PROGRAM=0
15380
a0b9e27f 15381 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8b389fab 15382echo "configure:15383: checking for Motif/Lesstif headers" >&5
a0b9e27f 15383
21d1c967 15384ac_find_includes=
2b5f62a0 15385for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15386 do
15387 if test -f "$ac_dir/Xm/Xm.h"; then
15388 ac_find_includes=$ac_dir
15389 break
15390 fi
15391 done
15392
15393 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15394 echo "$ac_t""found in $ac_find_includes" 1>&6
15395
2b5f62a0 15396 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15397 ac_path_to_include=""
15398 else
2b5f62a0
VZ
15399 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15400 result=$?
15401 if test $result = 0; then
15402 ac_path_to_include=""
15403 else
15404 ac_path_to_include=" -I$ac_find_includes"
15405 fi
dd0e4a90
VZ
15406 fi
15407
15408 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15409 else
a0b9e27f 15410 cat > conftest.$ac_ext <<EOF
8b389fab 15411#line 15412 "configure"
10f2d63a 15412#include "confdefs.h"
21d1c967
GD
15413
15414 #include <Xm/Xm.h>
a0b9e27f
MB
15415
15416int main() {
21d1c967
GD
15417
15418 int version;
15419 version = xmUseVersion;
a0b9e27f
MB
15420
15421; return 0; }
15422EOF
8b389fab 15423if { (eval echo configure:15424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15424 rm -rf conftest*
15425
15426 echo "$ac_t""found in default search path" 1>&6
21d1c967 15427 COMPILED_X_PROGRAM=1
a0b9e27f 15428
10f2d63a 15429else
a0b9e27f
MB
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433
15434 echo "$ac_t""no" 1>&6
15435 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15436
15437
10f2d63a 15438fi
a0b9e27f 15439rm -f conftest*
21d1c967 15440 fi
10f2d63a 15441
21d1c967 15442 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15443 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8b389fab 15444echo "configure:15445: checking for Motif/Lesstif library" >&5
a0b9e27f 15445
21d1c967 15446ac_find_libraries=
2b5f62a0 15447for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15448 do
15449 for ac_extension in a so sl dylib; do
15450 if test -f "$ac_dir/libXm.$ac_extension"; then
15451 ac_find_libraries=$ac_dir
15452 break 2
15453 fi
15454 done
15455 done
15456
15457 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15458 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15459
a0b9e27f 15460
21d1c967
GD
15461 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15462 result=$?
15463 if test $result = 0; then
15464 ac_path_to_link=""
15465 else
15466 ac_path_to_link=" -L$ac_find_libraries"
15467 fi
15468
21d1c967 15469 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15470 else
dd0e4a90
VZ
15471 save_CFLAGS=$CFLAGS
15472 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15473
a0b9e27f 15474 cat > conftest.$ac_ext <<EOF
8b389fab 15475#line 15476 "configure"
d836ee96 15476#include "confdefs.h"
21d1c967
GD
15477
15478 #include <Xm/Xm.h>
a0b9e27f
MB
15479
15480int main() {
21d1c967
GD
15481
15482 int version;
15483 version = xmUseVersion;
a0b9e27f
MB
15484
15485; return 0; }
15486EOF
8b389fab 15487if { (eval echo configure:15488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15488 rm -rf conftest*
15489
15490 echo "$ac_t""found in default search path" 1>&6
21d1c967 15491 COMPILED_X_PROGRAM=1
a0b9e27f 15492
d836ee96 15493else
a0b9e27f
MB
15494 echo "configure: failed program was:" >&5
15495 cat conftest.$ac_ext >&5
15496 rm -rf conftest*
15497
15498 echo "$ac_t""no" 1>&6
15499 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15500
15501
d836ee96 15502fi
a0b9e27f 15503rm -f conftest*
dd0e4a90
VZ
15504
15505 CFLAGS=$save_CFLAGS
21d1c967
GD
15506 fi
15507 fi
15508
15509 xpm_link=
a0b9e27f 15510 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8b389fab 15511echo "configure:15512: checking for Xpm library" >&5
a0b9e27f 15512
21d1c967 15513ac_find_libraries=
2b5f62a0 15514for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15515 do
15516 for ac_extension in a so sl dylib; do
15517 if test -f "$ac_dir/libXpm.$ac_extension"; then
15518 ac_find_libraries=$ac_dir
15519 break 2
15520 fi
15521 done
15522 done
15523
15524 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15525
21d1c967
GD
15526 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15527 result=$?
15528 if test $result = 0; then
15529 ac_path_to_link=""
15530 else
15531 ac_path_to_link=" -L$ac_find_libraries"
15532 fi
15533
15534 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15535
21d1c967 15536 xpm_link=" -lXpm"
a0b9e27f 15537 cat >> confdefs.h <<\EOF
21d1c967 15538#define wxHAVE_LIB_XPM 1
a0b9e27f 15539EOF
90dd450c 15540
a0b9e27f 15541 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15542 else
dd0e4a90
VZ
15543 save_CFLAGS=$CFLAGS
15544 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15545
a0b9e27f 15546 cat > conftest.$ac_ext <<EOF
8b389fab 15547#line 15548 "configure"
d836ee96 15548#include "confdefs.h"
21d1c967
GD
15549
15550 #include <X11/xpm.h>
a0b9e27f
MB
15551
15552int main() {
21d1c967
GD
15553
15554 int version;
15555 version = XpmLibraryVersion();
a0b9e27f
MB
15556
15557; return 0; }
15558EOF
8b389fab 15559if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15560 rm -rf conftest*
15561
21d1c967 15562 xpm_link=" -lXpm"
a0b9e27f 15563 cat >> confdefs.h <<\EOF
21d1c967 15564#define wxHAVE_LIB_XPM 1
a0b9e27f 15565EOF
21d1c967 15566
a0b9e27f 15567 echo "$ac_t""found in default search path" 1>&6
21d1c967 15568 COMPILED_X_PROGRAM=0
a0b9e27f 15569
d836ee96 15570else
a0b9e27f
MB
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15573 rm -rf conftest*
15574
15575 echo "$ac_t""no" 1>&6
15576 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15577
15578
d836ee96 15579fi
a0b9e27f 15580rm -f conftest*
dd0e4a90
VZ
15581
15582 CFLAGS=$save_CFLAGS
21d1c967
GD
15583 fi
15584
a0b9e27f 15585 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
8b389fab 15586echo "configure:15587: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15587 libp_link=""
15588 libsm_ice_link=""
15589 libs_found=0
15590 for libp in "" " -lXp"; do
15591 if test "$libs_found" = "0"; then
15592 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15593 if test "$libs_found" = "0"; then
6a30f1c8
MB
15594 save_LIBS="$LIBS"
15595 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15596 save_CFLAGS=$CFLAGS
15597 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15598
a0b9e27f 15599 cat > conftest.$ac_ext <<EOF
8b389fab 15600#line 15601 "configure"
6a30f1c8 15601#include "confdefs.h"
17234b26 15602
6a30f1c8
MB
15603 #include <Xm/Xm.h>
15604 #include <Xm/List.h>
a0b9e27f
MB
15605
15606int main() {
6a30f1c8
MB
15607
15608 XmString string = NULL;
15609 Widget w = NULL;
15610 int position = 0;
15611 XmListAddItem(w, string, position);
a0b9e27f
MB
15612
15613; return 0; }
15614EOF
8b389fab 15615if { (eval echo configure:15616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15616 rm -rf conftest*
15617
6a30f1c8
MB
15618 libp_link="$libp"
15619 libsm_ice_link="$libsm_ice"
a0b9e27f 15620 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15621 libs_found=1
a0b9e27f 15622
6a30f1c8 15623else
a0b9e27f
MB
15624 echo "configure: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 rm -rf conftest*
15627
15628
6a30f1c8 15629fi
a0b9e27f 15630rm -f conftest*
dd0e4a90 15631
6a30f1c8 15632 LIBS="$save_LIBS"
dd0e4a90 15633 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15634 fi
15635 done
15636 fi
15637 done
15638
15639 if test "$libs_found" = "0"; then
a0b9e27f
MB
15640 echo "$ac_t""can't find the right libraries" 1>&6
15641 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15642 fi
15643
da494b40
MB
15644 save_CFLAGS=$CFLAGS
15645 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15646 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
8b389fab 15647echo "configure:15648: checking for Motif 2" >&5
da494b40 15648 cat > conftest.$ac_ext <<EOF
8b389fab 15649#line 15650 "configure"
da494b40
MB
15650#include "confdefs.h"
15651
15652 #include <Xm/Xm.h>
15653
15654int main() {
15655
15656 #if XmVersion < 2000
15657 #error "Not Motif 2"
15658 #endif
15659
15660; return 0; }
15661EOF
8b389fab 15662if { (eval echo configure:15663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
da494b40
MB
15663 rm -rf conftest*
15664
15665 cat >> confdefs.h <<\EOF
15666#define __WXMOTIF20__ 1
15667EOF
15668
15669 echo "$ac_t""found" 1>&6
15670
15671else
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 rm -rf conftest*
15675
15676 cat >> confdefs.h <<\EOF
15677#define __WXMOTIF20__ 0
15678EOF
15679
15680 echo "$ac_t""not found" 1>&6
15681
15682fi
15683rm -f conftest*
15684 CFLAGS=$save_CFLAGS
15685
6a30f1c8 15686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 15687 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
15688 TOOLKIT=MOTIF
15689 GUIDIST=MOTIF_DIST
f7f78039
MB
15690 wxHAVE_XEXT_LIB=1
15691 fi
15692
15693 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15694 test "$wxHAVE_XEXT_LIB" = 1; then
15695 save_CFLAGS="$CFLAGS"
15696 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15697
15698 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
8b389fab 15699echo "configure:15700: checking for X11/extensions/shape.h" >&5
f7f78039 15700 cat > conftest.$ac_ext <<EOF
8b389fab 15701#line 15702 "configure"
f7f78039
MB
15702#include "confdefs.h"
15703
15704 #include <X11/Xlib.h>
15705 #include <X11/extensions/shape.h>
15706
15707int main() {
15708
15709 int dummy1, dummy2;
15710 XShapeQueryExtension((Display*)NULL,
15711 (int*)NULL, (int*)NULL);
15712
15713; return 0; }
15714EOF
8b389fab 15715if { (eval echo configure:15716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f7f78039
MB
15716 rm -rf conftest*
15717
15718 cat >> confdefs.h <<\EOF
15719#define HAVE_XSHAPE 1
15720EOF
15721
15722 echo "$ac_t""found" 1>&6
15723
15724else
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15727 rm -rf conftest*
15728
15729 echo "$ac_t""not found" 1>&6
15730
15731fi
15732rm -f conftest*
15733 CFLAGS="$save_CFLAGS"
21d1c967
GD
15734 fi
15735
15736 if test "$wxUSE_MAC" = 1; then
0c98a14e 15737 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15738
0c98a14e 15739 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15740 TOOLKIT=MAC
15741 GUIDIST=MACX_DIST
15742 fi
15743
ac0c4cc3
DE
15744 if test "$wxUSE_COCOA" = 1; then
15745 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15746 TOOLKIT=COCOA
15747 GUIDIST=COCOA_DIST
15748 fi
15749
21d1c967
GD
15750 if test "$wxUSE_PM" = 1; then
15751 TOOLKIT=PM
15752 GUIDIST=GTK_DIST
2b5f62a0 15753 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15754 wxUSE_THREADS="no"
21d1c967
GD
15755 fi
15756
15757 if test "$TOOLKIT" = "PM" ; then
15758 TOOLKIT_DIR="os2"
15759 else
15760 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15761 fi
15762
15763 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15764
15765 if test "$wxUSE_UNIVERSAL" = "yes"; then
15766 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15767
15768 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15769 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15770
15771 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15772 if test "$wxUSE_X11" = 1; then
15773 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15774 else
15775 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15776 fi
15777 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15778 WIDGET_SET=univ
15779 else
15780 ALL_OBJECTS="\$(GUIOBJS)"
15781 ALL_SOURCES="\$(ALL_SOURCES)"
15782 ALL_HEADERS="\$(ALL_HEADERS)"
15783 fi
15784
15785 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15786
15787 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15788 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15789 fi
15790
15791 if test "$wxUSE_HTML" = "yes"; then
15792 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15793 fi
15794
15795 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15796 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15797 fi
15798 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15799 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15800 fi
15801 if test "$wxUSE_LIBPNG" = "builtin" ; then
15802 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15803 fi
15804
15805 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15806 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15807else
21d1c967
GD
15808 USE_GUI=0
15809
15810 TOOLKIT_DIR="base"
15811
15812 if test "$USE_WIN32" = 1 ; then
15813 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15814 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15815
15816 TOOLKIT="MSW"
15817 else
15818 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15819 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15820 fi
15821
15822 ALL_SOURCES="\$(ALL_SOURCES)"
15823 ALL_HEADERS="\$(ALL_HEADERS)"
15824
15825 PORT_FILES="\${top_srcdir}/src/files.lst"
15826
15827 GUIDIST="BASE_DIST"
15828 DISTDIR="wxBase"
d836ee96
VZ
15829fi
15830
8284b0c5 15831
8647bec6
RG
15832
15833
15834IODBC_C_SRC=""
15835
15836
15837if test "$TOOLKIT" != "MSW" ; then
15838
15839 if test "$wxUSE_ODBC" != "no" ; then
15840 cat >> confdefs.h <<\EOF
15841#define wxUSE_ODBC 1
15842EOF
15843
15844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15845
15846 WXODBCFLAG="-D_IODBC_"
15847
15848
15849 if test "$wxUSE_ODBC" = "sys" ; then
15850
15851 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15852echo $ac_n "checking for sql.h""... $ac_c" 1>&6
8b389fab 15853echo "configure:15854: checking for sql.h" >&5
8647bec6
RG
15854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15855 echo $ac_n "(cached) $ac_c" 1>&6
15856else
15857 cat > conftest.$ac_ext <<EOF
8b389fab 15858#line 15859 "configure"
8647bec6
RG
15859#include "confdefs.h"
15860#include <sql.h>
15861EOF
15862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 15863{ (eval echo configure:15864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8647bec6
RG
15864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15865if test -z "$ac_err"; then
15866 rm -rf conftest*
15867 eval "ac_cv_header_$ac_safe=yes"
15868else
15869 echo "$ac_err" >&5
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
15873 eval "ac_cv_header_$ac_safe=no"
15874fi
15875rm -f conftest*
15876fi
15877if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15878 echo "$ac_t""yes" 1>&6
15879 :
15880else
15881 echo "$ac_t""no" 1>&6
15882fi
15883
15884
15885echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
8b389fab 15886echo "configure:15887: checking for library containing SQLAllocEnv" >&5
8647bec6
RG
15887if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15888 echo $ac_n "(cached) $ac_c" 1>&6
15889else
15890 ac_func_search_save_LIBS="$LIBS"
15891ac_cv_search_SQLAllocEnv="no"
15892cat > conftest.$ac_ext <<EOF
8b389fab 15893#line 15894 "configure"
8647bec6
RG
15894#include "confdefs.h"
15895/* Override any gcc2 internal prototype to avoid an error. */
15896/* We use char because int might match the return type of a gcc2
15897 builtin and then its argument prototype would still apply. */
15898char SQLAllocEnv();
15899
15900int main() {
15901SQLAllocEnv()
15902; return 0; }
15903EOF
8b389fab 15904if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647bec6
RG
15905 rm -rf conftest*
15906 ac_cv_search_SQLAllocEnv="none required"
15907else
15908 echo "configure: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15910fi
15911rm -f conftest*
15912test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15913LIBS="-l$i $ac_func_search_save_LIBS"
15914cat > conftest.$ac_ext <<EOF
8b389fab 15915#line 15916 "configure"
8647bec6
RG
15916#include "confdefs.h"
15917/* Override any gcc2 internal prototype to avoid an error. */
15918/* We use char because int might match the return type of a gcc2
15919 builtin and then its argument prototype would still apply. */
15920char SQLAllocEnv();
15921
15922int main() {
15923SQLAllocEnv()
15924; return 0; }
15925EOF
8b389fab 15926if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647bec6
RG
15927 rm -rf conftest*
15928 ac_cv_search_SQLAllocEnv="-l$i"
15929break
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933fi
15934rm -f conftest*
15935done
15936LIBS="$ac_func_search_save_LIBS"
15937fi
15938
15939echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15940if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15941 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15942
15943else :
fd3d7534
RG
15944
15945 wxUSE_ODBC=builtin;
15946 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
15947
8647bec6 15948fi
fd3d7534
RG
15949 fi
15950 if test "$wxUSE_ODBC" != "sys" ; then
15951 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
15952 fi
15953
15954 fi
15955
6232543b 15956fi
21d1c967
GD
15957
15958if test "$wxUSE_REGEX" = "builtin" ; then
15959 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15960fi
21d1c967
GD
15961if test "$wxUSE_ZLIB" = "builtin" ; then
15962 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15963fi
15964
8284b0c5 15965
21d1c967 15966if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 15967 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
15968 OPENGL_LIBS="-framework OpenGL -framework AGL"
15969 elif test "$wxUSE_MSW" = 1; then
15970 OPENGL_LIBS="-lopengl32 -lglu32"
15971 else
a0b9e27f
MB
15972 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15973echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
8b389fab 15974echo "configure:15975: checking for GL/gl.h" >&5
a0b9e27f
MB
15975if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978 cat > conftest.$ac_ext <<EOF
8b389fab 15979#line 15980 "configure"
10f2d63a 15980#include "confdefs.h"
21d1c967 15981#include <GL/gl.h>
a0b9e27f
MB
15982EOF
15983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 15984{ (eval echo configure:15985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15986if test -z "$ac_err"; then
15987 rm -rf conftest*
15988 eval "ac_cv_header_$ac_safe=yes"
15989else
15990 echo "$ac_err" >&5
15991 echo "configure: failed program was:" >&5
698dcdb6 15992 cat conftest.$ac_ext >&5
a0b9e27f
MB
15993 rm -rf conftest*
15994 eval "ac_cv_header_$ac_safe=no"
703e0a69 15995fi
a0b9e27f 15996rm -f conftest*
698dcdb6 15997fi
a0b9e27f
MB
15998if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15999 echo "$ac_t""yes" 1>&6
16000
89e3b3e4
VZ
16001 found_gl=0
16002
a0b9e27f 16003 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
8b389fab 16004echo "configure:16005: checking for -lGL" >&5
a0b9e27f 16005
21d1c967 16006ac_find_libraries=
2b5f62a0 16007for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
16008 do
16009 for ac_extension in a so sl dylib; do
16010 if test -f "$ac_dir/libGL.$ac_extension"; then
16011 ac_find_libraries=$ac_dir
16012 break 2
16013 fi
16014 done
16015 done
16016
16017 if test "$ac_find_libraries" != "" ; then
a0b9e27f 16018
21d1c967
GD
16019 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16020 result=$?
16021 if test $result = 0; then
16022 ac_path_to_link=""
16023 else
16024 ac_path_to_link=" -L$ac_find_libraries"
16025 fi
16026
89e3b3e4
VZ
16027 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16028 LDFLAGS_GL="$ac_path_to_link"
21d1c967 16029 fi
89e3b3e4
VZ
16030
16031
16032ac_find_libraries=
16033for ac_dir in $SEARCH_LIB /usr/lib;
16034 do
16035 for ac_extension in a so sl dylib; do
16036 if test -f "$ac_dir/libGLU.$ac_extension"; then
16037 ac_find_libraries=$ac_dir
16038 break 2
16039 fi
16040 done
16041 done
16042
16043 if test "$ac_find_libraries" != "" ; then
16044
16045 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16046 result=$?
16047 if test $result = 0; then
16048 ac_path_to_link=""
16049 else
16050 ac_path_to_link=" -L$ac_find_libraries"
16051 fi
16052
16053 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16054 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16055 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16056 fi
16057
16058 found_gl=1
16059 OPENGL_LIBS="-lGL -lGLU"
16060 echo "$ac_t""yes" 1>&6
16061 fi
16062 fi
16063
16064 if "$found_gl" != 1; then
a0b9e27f
MB
16065 echo "$ac_t""no" 1>&6
16066 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
8b389fab 16067echo "configure:16068: checking for -lMesaGL" >&5
a0b9e27f 16068
21d1c967 16069ac_find_libraries=
2b5f62a0 16070for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
16071 do
16072 for ac_extension in a so sl dylib; do
16073 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16074 ac_find_libraries=$ac_dir
16075 break 2
16076 fi
16077 done
16078 done
16079
16080 if test "$ac_find_libraries" != "" ; then
a0b9e27f 16081
21d1c967
GD
16082 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16083 result=$?
16084 if test $result = 0; then
16085 ac_path_to_link=""
16086 else
16087 ac_path_to_link=" -L$ac_find_libraries"
16088 fi
16089
16090 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16091 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 16092 echo "$ac_t""yes" 1>&6
21d1c967 16093 else
a0b9e27f 16094 echo "$ac_t""no" 1>&6
21d1c967
GD
16095 fi
16096 fi
a0b9e27f
MB
16097
16098else
16099 echo "$ac_t""no" 1>&6
5c6fa7d2 16100fi
52127426 16101
8284b0c5 16102
21d1c967 16103 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 16104 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
16105 fi
16106 fi
90dd450c 16107
21d1c967 16108 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 16109 cat >> confdefs.h <<\EOF
21d1c967 16110#define wxUSE_OPENGL 1
a0b9e27f 16111EOF
21d1c967 16112
a0b9e27f 16113 cat >> confdefs.h <<\EOF
21d1c967 16114#define wxUSE_GLCANVAS 1
a0b9e27f 16115EOF
21d1c967
GD
16116
16117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16118 fi
10f2d63a 16119fi
21d1c967
GD
16120
16121if test -z "$TOOLKIT_VPATH" ; then
16122 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 16123fi
21d1c967
GD
16124
16125if test -n "$TOOLKIT" ; then
16126 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16127fi
16128
16129lib_unicode_suffix=
16130if test "$wxUSE_UNICODE" = "yes"; then
16131 lib_unicode_suffix=u
90dd450c 16132fi
698dcdb6 16133
21d1c967
GD
16134lib_debug_suffix=
16135if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16136 lib_debug_suffix=d
16137fi
698dcdb6 16138
2b5f62a0
VZ
16139WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16140
16141TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16142TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
16143
16144if test "$cross_compiling" = "yes"; then
16145 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16146 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16147fi
16148
16149WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16150WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 16151WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
16152
16153WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16154WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16155
16156WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16157WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16158WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16159WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16160
16161case "${host}" in
16162 *-*-cygwin* | *-*-mingw32* )
16163
a0b9e27f
MB
16164
16165
17234b26 16166 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
16167 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16168 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16169 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16170 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16171 else
16172 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16173 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16174 fi
16175 ;;
16176
16177 *-*-darwin* )
1542ea39 16178
05159a27
GD
16179 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16180 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16181
16182 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16183 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16184 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16185 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16186
21d1c967 16187 if test "$wxUSE_MAC" = 1; then
f346733b
GD
16188 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16189 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
16190 fi
16191 ;;
16192esac
16193
16194WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16195WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16196
16197WXCONFIG_LIBS="-l${WX_LIBRARY}"
16198WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16199
16200if test "$wxUSE_OPENGL" = "yes"; then
16201 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16202 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16203fi
16204
8284b0c5
MB
16205
16206
21d1c967
GD
16207if test "$wxUSE_SHARED" = "yes"; then
16208 case "${host}" in
16209 *-pc-os2_emx | *-pc-os2-emx | \
16210 *-pc-msdosdjgpp )
16211 wxUSE_SHARED=no
a0b9e27f 16212 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
16213 ;;
16214 esac
16215fi
16216
2b5f62a0
VZ
16217if test "$wxUSE_SHARED" = "yes"; then
16218
16219 if test "$wxUSE_OPENGL" = "yes"; then
16220 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16221 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16222 else
16223 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16224 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16225 fi
16226
16227 if test "$GCC" = "yes"; then
16228 PIC_FLAG="-fPIC"
16229 fi
16230
16231
16232
16233 found_versioning=no
16234
b4eecb7e 16235
2b5f62a0
VZ
16236 if test $found_versioning = no ; then
16237 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
8b389fab 16238echo "configure:16239: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
16239if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241else
16242
16243 echo "VER_1 { *; };" >conftest.sym
16244 echo "int main() { return 0; }" >conftest.cpp
16245
16246 if { ac_try='
16247 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
8b389fab 16248 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
16249 if test -s conftest.stderr ; then
16250 wx_cv_version_script=no
16251 else
16252 wx_cv_version_script=yes
16253 fi
16254 else
16255 wx_cv_version_script=no
16256 fi
16257 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16258
16259fi
16260
16261echo "$ac_t""$wx_cv_version_script" 1>&6
16262 if test $wx_cv_version_script = yes ; then
16263 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16264 fi
16265 fi
21d1c967 16266
21d1c967
GD
16267
16268 SHARED_LD="${CXX} -shared -o"
16269
16270 case "${host}" in
16271 *-hp-hpux* )
ad2622f1 16272 if test "$GCC" = "yes"; then
85d5e282 16273 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16274 else
16275 LDFLAGS="$LDFLAGS -L/usr/lib"
16276
16277 SHARED_LD="${CXX} -b -o"
16278 PIC_FLAG="+Z"
16279 fi
16280
16281 if test "$wxUSE_OPENGL" = "yes"; then
16282 WX_ALL_INSTALLED="preinstall_gl"
16283 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16284 else
16285 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16286 fi
16287 ;;
16288
16289 *-*-linux* )
16290 if test "$GCC" != "yes"; then
a0b9e27f 16291 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
8b389fab 16292echo "configure:16293: checking for Intel compiler" >&5
a0b9e27f
MB
16293if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
16295else
16296
16297 cat > conftest.$ac_ext <<EOF
8b389fab 16298#line 16299 "configure"
698dcdb6 16299#include "confdefs.h"
90dd450c 16300
a0b9e27f 16301int main() {
90dd450c 16302
21d1c967
GD
16303 #ifndef __INTEL_COMPILER
16304 #error Not icc
16305 #endif
a0b9e27f
MB
16306
16307; return 0; }
16308EOF
8b389fab 16309if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16310 rm -rf conftest*
21d1c967 16311 wx_cv_prog_icc=yes
6232543b 16312else
a0b9e27f
MB
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16315 rm -rf conftest*
16316 wx_cv_prog_icc=no
16317
5c6fa7d2 16318fi
a0b9e27f
MB
16319rm -f conftest*
16320
247f5006 16321fi
a0b9e27f
MB
16322
16323echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16324 if test "$wx_cv_prog_icc" = "yes"; then
16325 PIC_FLAG="-KPIC"
16326 fi
16327 fi
16328
16329 if test "$wxUSE_SONAME" = "yes" ; then
16330 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16331 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16332 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16333 fi
16334 ;;
16335
16336 *-*-solaris2* )
16337 if test "$GCC" = yes ; then
16338 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16339 else
16340 SHARED_LD="${CXX} -G -o"
16341 PIC_FLAG="-KPIC"
16342 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16343 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16344 fi
16345 ;;
16346
16347 *-*-darwin* )
b2fee376
GD
16348 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16349 CFLAGS="$CFLAGS -fno-common"
16350 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16351 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16352 PIC_FLAG="-dynamic -fPIC"
f346733b 16353 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16354 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16355 ;;
16356
16357 *-*-aix* )
2b5f62a0
VZ
16358 if test "$GCC" != "yes"; then
16359 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16360set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16362echo "configure:16363: checking for $ac_word" >&5
a0b9e27f
MB
16363if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16364 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16365else
16366 if test -n "$AIX_CXX_LD"; then
16367 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16368else
a0b9e27f
MB
16369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16370 ac_dummy="$PATH"
16371 for ac_dir in $ac_dummy; do
16372 test -z "$ac_dir" && ac_dir=.
16373 if test -f $ac_dir/$ac_word; then
16374 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16375 break
16376 fi
16377 done
16378 IFS="$ac_save_ifs"
321d2b14
VZ
16379 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16380fi
16381fi
a0b9e27f 16382AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16383if test -n "$AIX_CXX_LD"; then
a0b9e27f 16384 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16385else
a0b9e27f 16386 echo "$ac_t""no" 1>&6
321d2b14
VZ
16387fi
16388
8284b0c5 16389
2b5f62a0
VZ
16390 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16391 fi
21d1c967
GD
16392 ;;
16393
16394 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16395 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16396
16397 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16398 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16399
16400 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16401
f657dbe7
MB
16402 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16403 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16404
16405 if test "$wxUSE_OPENGL" = "yes"; then
16406 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16407 fi
16408 ;;
16409
16410 *-*-beos* )
16411 SHARED_LD="${LD} -shared -o"
16412 ;;
16413
2b5f62a0
VZ
16414 *-*-irix* )
16415 if test "$GCC" != "yes"; then
16416 PIC_FLAG="-KPIC"
16417 fi
16418 ;;
16419
21d1c967
GD
16420 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16421 *-*-sunos4* | \
21d1c967
GD
16422 *-*-osf* | \
16423 *-*-dgux5* | \
16424 *-*-sysv5* )
16425 ;;
16426
16427 *)
a0b9e27f 16428 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16429 esac
16430
16431 if test "x$WX_TARGET_LIBRARY" = "x"; then
16432 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16433 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16434 fi
16435
16436 WX_TARGET_LIBRARY_TYPE="so"
16437 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16438fi
10f2d63a 16439
21d1c967
GD
16440if test "$wxUSE_SHARED" = "no"; then
16441
16442 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16443 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16444 fi
16445
ac0c4cc3 16446 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
16447 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16448 fi
16449
16450 if test "$wxUSE_OPENGL" = "yes"; then
16451 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16452 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16453 else
16454 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16455 fi
16456
16457 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16458 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16459
16460 WX_TARGET_LIBRARY_TYPE="a"
16461 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16462
16463 STATIC_FLAG="yes"
16464else
16465 STATIC_FLAG="no"
90dd450c 16466fi
1e487827 16467
93fac604
VZ
16468MACRESCOMP="@#"
16469MACSETFILE="@#"
36825681 16470MACRESWXCONFIG="#"
21d1c967
GD
16471if test "$wxUSE_MAC" = 1; then
16472 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16473 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16474 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16475 # Extract the first word of "Rez", so it can be a program name with args.
16476set dummy Rez; ac_word=$2
a0b9e27f 16477echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16478echo "configure:16479: checking for $ac_word" >&5
a0b9e27f
MB
16479if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16481else
21d1c967
GD
16482 if test -n "$RESCOMP"; then
16483 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16484else
a0b9e27f
MB
16485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16486 ac_dummy="$PATH"
16487 for ac_dir in $ac_dummy; do
16488 test -z "$ac_dir" && ac_dir=.
16489 if test -f $ac_dir/$ac_word; then
16490 ac_cv_prog_RESCOMP="Rez"
16491 break
16492 fi
16493 done
16494 IFS="$ac_save_ifs"
21d1c967 16495 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16496fi
b93d0d08 16497fi
a0b9e27f 16498RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16499if test -n "$RESCOMP"; then
a0b9e27f 16500 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16501else
a0b9e27f 16502 echo "$ac_t""no" 1>&6
90dd450c 16503fi
b93d0d08 16504
21d1c967
GD
16505 # Extract the first word of "DeRez", so it can be a program name with args.
16506set dummy DeRez; ac_word=$2
a0b9e27f 16507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16508echo "configure:16509: checking for $ac_word" >&5
a0b9e27f
MB
16509if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16511else
21d1c967
GD
16512 if test -n "$DEREZ"; then
16513 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16514else
a0b9e27f
MB
16515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16516 ac_dummy="$PATH"
16517 for ac_dir in $ac_dummy; do
16518 test -z "$ac_dir" && ac_dir=.
16519 if test -f $ac_dir/$ac_word; then
16520 ac_cv_prog_DEREZ="DeRez"
16521 break
16522 fi
16523 done
16524 IFS="$ac_save_ifs"
21d1c967 16525 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16526fi
90dd450c 16527fi
a0b9e27f 16528DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16529if test -n "$DEREZ"; then
a0b9e27f 16530 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16531else
a0b9e27f 16532 echo "$ac_t""no" 1>&6
3a922bb4 16533fi
698dcdb6 16534
36825681
GD
16535 # Extract the first word of "SetFile", so it can be a program name with args.
16536set dummy SetFile; ac_word=$2
16537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16538echo "configure:16539: checking for $ac_word" >&5
36825681
GD
16539if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16540 echo $ac_n "(cached) $ac_c" 1>&6
16541else
16542 if test -n "$SETFILE"; then
16543 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16544else
16545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16546 ac_dummy="$PATH"
16547 for ac_dir in $ac_dummy; do
16548 test -z "$ac_dir" && ac_dir=.
16549 if test -f $ac_dir/$ac_word; then
16550 ac_cv_prog_SETFILE="SetFile"
16551 break
16552 fi
16553 done
16554 IFS="$ac_save_ifs"
16555 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16556fi
16557fi
16558SETFILE="$ac_cv_prog_SETFILE"
16559if test -n "$SETFILE"; then
16560 echo "$ac_t""$SETFILE" 1>&6
16561else
16562 echo "$ac_t""no" 1>&6
16563fi
16564
21d1c967 16565 MACOSX_BUNDLE="bundle"
36825681
GD
16566 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16567 MACSETFILE="\$(SETFILE)"
9711d31e 16568 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
16569elif test "$wxUSE_COCOA" = 1; then
16570 # Extract the first word of "Rez", so it can be a program name with args.
16571set dummy Rez; ac_word=$2
16572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16573echo "configure:16574: checking for $ac_word" >&5
64440d77
DE
16574if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16575 echo $ac_n "(cached) $ac_c" 1>&6
16576else
16577 if test -n "$RESCOMP"; then
16578 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16579else
16580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16581 ac_dummy="$PATH"
16582 for ac_dir in $ac_dummy; do
16583 test -z "$ac_dir" && ac_dir=.
16584 if test -f $ac_dir/$ac_word; then
16585 ac_cv_prog_RESCOMP="Rez"
16586 break
16587 fi
16588 done
16589 IFS="$ac_save_ifs"
16590 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16591fi
16592fi
16593RESCOMP="$ac_cv_prog_RESCOMP"
16594if test -n "$RESCOMP"; then
16595 echo "$ac_t""$RESCOMP" 1>&6
16596else
16597 echo "$ac_t""no" 1>&6
16598fi
16599
16600 # Extract the first word of "DeRez", so it can be a program name with args.
16601set dummy DeRez; ac_word=$2
16602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16603echo "configure:16604: checking for $ac_word" >&5
64440d77
DE
16604if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16606else
16607 if test -n "$DEREZ"; then
16608 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16609else
16610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16611 ac_dummy="$PATH"
16612 for ac_dir in $ac_dummy; do
16613 test -z "$ac_dir" && ac_dir=.
16614 if test -f $ac_dir/$ac_word; then
16615 ac_cv_prog_DEREZ="DeRez"
16616 break
16617 fi
16618 done
16619 IFS="$ac_save_ifs"
16620 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16621fi
16622fi
16623DEREZ="$ac_cv_prog_DEREZ"
16624if test -n "$DEREZ"; then
16625 echo "$ac_t""$DEREZ" 1>&6
16626else
16627 echo "$ac_t""no" 1>&6
16628fi
16629
16630 # Extract the first word of "SetFile", so it can be a program name with args.
16631set dummy SetFile; ac_word=$2
16632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b389fab 16633echo "configure:16634: checking for $ac_word" >&5
64440d77
DE
16634if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
16636else
16637 if test -n "$SETFILE"; then
16638 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16639else
16640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16641 ac_dummy="$PATH"
16642 for ac_dir in $ac_dummy; do
16643 test -z "$ac_dir" && ac_dir=.
16644 if test -f $ac_dir/$ac_word; then
16645 ac_cv_prog_SETFILE="SetFile"
16646 break
16647 fi
16648 done
16649 IFS="$ac_save_ifs"
16650 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16651fi
16652fi
16653SETFILE="$ac_cv_prog_SETFILE"
16654if test -n "$SETFILE"; then
16655 echo "$ac_t""$SETFILE" 1>&6
16656else
16657 echo "$ac_t""no" 1>&6
16658fi
16659
16660 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16661 MACSETFILE="\$(SETFILE)"
9711d31e 16662 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
16663else
16664 if test "$wxUSE_PM" = 1; then
36825681 16665 MACRESCOMP="emxbind -ep"
90dd450c 16666 fi
4f14bcd8 16667fi
10f2d63a 16668
8284b0c5 16669
a0b9e27f 16670echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8b389fab 16671echo "configure:16672: checking for ANSI C header files" >&5
a0b9e27f
MB
16672if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16673 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16674else
a0b9e27f 16675 cat > conftest.$ac_ext <<EOF
8b389fab 16676#line 16677 "configure"
52127426 16677#include "confdefs.h"
a0b9e27f
MB
16678#include <stdlib.h>
16679#include <stdarg.h>
16680#include <string.h>
16681#include <float.h>
16682EOF
16683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 16684{ (eval echo configure:16685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16686if test -z "$ac_err"; then
16687 rm -rf conftest*
16688 ac_cv_header_stdc=yes
16689else
16690 echo "$ac_err" >&5
16691 echo "configure: failed program was:" >&5
16692 cat conftest.$ac_ext >&5
16693 rm -rf conftest*
16694 ac_cv_header_stdc=no
16695fi
16696rm -f conftest*
16697
16698if test $ac_cv_header_stdc = yes; then
16699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16700cat > conftest.$ac_ext <<EOF
8b389fab 16701#line 16702 "configure"
a0b9e27f
MB
16702#include "confdefs.h"
16703#include <string.h>
16704EOF
16705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16706 egrep "memchr" >/dev/null 2>&1; then
16707 :
16708else
16709 rm -rf conftest*
16710 ac_cv_header_stdc=no
16711fi
16712rm -f conftest*
16713
16714fi
16715
16716if test $ac_cv_header_stdc = yes; then
16717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16718cat > conftest.$ac_ext <<EOF
8b389fab 16719#line 16720 "configure"
a0b9e27f
MB
16720#include "confdefs.h"
16721#include <stdlib.h>
16722EOF
16723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16724 egrep "free" >/dev/null 2>&1; then
16725 :
7b4a847f 16726else
a0b9e27f
MB
16727 rm -rf conftest*
16728 ac_cv_header_stdc=no
52127426 16729fi
a0b9e27f
MB
16730rm -f conftest*
16731
52127426 16732fi
a0b9e27f
MB
16733
16734if test $ac_cv_header_stdc = yes; then
16735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16736if test "$cross_compiling" = yes; then
247f5006
VZ
16737 :
16738else
a0b9e27f 16739 cat > conftest.$ac_ext <<EOF
8b389fab 16740#line 16741 "configure"
a0b9e27f
MB
16741#include "confdefs.h"
16742#include <ctype.h>
16743#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16744#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16746int main () { int i; for (i = 0; i < 256; i++)
16747if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16748exit (0); }
247f5006 16749
a0b9e27f 16750EOF
8b389fab 16751if { (eval echo configure:16752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16752then
16753 :
16754else
16755 echo "configure: failed program was:" >&5
16756 cat conftest.$ac_ext >&5
16757 rm -fr conftest*
16758 ac_cv_header_stdc=no
16759fi
16760rm -fr conftest*
16761fi
16762
16763fi
16764fi
16765
16766echo "$ac_t""$ac_cv_header_stdc" 1>&6
16767if test $ac_cv_header_stdc = yes; then
16768 cat >> confdefs.h <<\EOF
16769#define STDC_HEADERS 1
16770EOF
8284b0c5
MB
16771
16772fi
16773
a0b9e27f 16774echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8b389fab 16775echo "configure:16776: checking for mode_t" >&5
a0b9e27f
MB
16776if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16777 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16778else
a0b9e27f 16779 cat > conftest.$ac_ext <<EOF
8b389fab 16780#line 16781 "configure"
8284b0c5 16781#include "confdefs.h"
a0b9e27f
MB
16782#include <sys/types.h>
16783#if STDC_HEADERS
16784#include <stdlib.h>
16785#include <stddef.h>
8284b0c5 16786#endif
a0b9e27f
MB
16787EOF
16788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16789 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16790 rm -rf conftest*
16791 ac_cv_type_mode_t=yes
5c6fa7d2 16792else
a0b9e27f
MB
16793 rm -rf conftest*
16794 ac_cv_type_mode_t=no
16795fi
16796rm -f conftest*
16797
8284b0c5 16798fi
a0b9e27f
MB
16799echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16800if test $ac_cv_type_mode_t = no; then
16801 cat >> confdefs.h <<\EOF
16802#define mode_t int
16803EOF
16804
8284b0c5 16805fi
a0b9e27f
MB
16806
16807echo $ac_n "checking for off_t""... $ac_c" 1>&6
8b389fab 16808echo "configure:16809: checking for off_t" >&5
a0b9e27f
MB
16809if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16810 echo $ac_n "(cached) $ac_c" 1>&6
16811else
16812 cat > conftest.$ac_ext <<EOF
8b389fab 16813#line 16814 "configure"
a0b9e27f
MB
16814#include "confdefs.h"
16815#include <sys/types.h>
16816#if STDC_HEADERS
16817#include <stdlib.h>
16818#include <stddef.h>
16819#endif
16820EOF
16821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16822 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16823 rm -rf conftest*
16824 ac_cv_type_off_t=yes
247f5006 16825else
a0b9e27f
MB
16826 rm -rf conftest*
16827 ac_cv_type_off_t=no
16828fi
16829rm -f conftest*
247f5006 16830
a0b9e27f
MB
16831fi
16832echo "$ac_t""$ac_cv_type_off_t" 1>&6
16833if test $ac_cv_type_off_t = no; then
16834 cat >> confdefs.h <<\EOF
90dd450c 16835#define off_t long
a0b9e27f 16836EOF
10f2d63a 16837
90dd450c 16838fi
10f2d63a 16839
a0b9e27f 16840echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8b389fab 16841echo "configure:16842: checking for pid_t" >&5
a0b9e27f
MB
16842if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16843 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16844else
a0b9e27f 16845 cat > conftest.$ac_ext <<EOF
8b389fab 16846#line 16847 "configure"
10f2d63a 16847#include "confdefs.h"
a0b9e27f
MB
16848#include <sys/types.h>
16849#if STDC_HEADERS
16850#include <stdlib.h>
16851#include <stddef.h>
8284b0c5 16852#endif
a0b9e27f
MB
16853EOF
16854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16855 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16856 rm -rf conftest*
90dd450c 16857 ac_cv_type_pid_t=yes
698dcdb6 16858else
a0b9e27f
MB
16859 rm -rf conftest*
16860 ac_cv_type_pid_t=no
8284b0c5 16861fi
a0b9e27f 16862rm -f conftest*
247f5006 16863
a0b9e27f
MB
16864fi
16865echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16866if test $ac_cv_type_pid_t = no; then
16867 cat >> confdefs.h <<\EOF
90dd450c 16868#define pid_t int
a0b9e27f 16869EOF
10f2d63a 16870
7b4a847f
RR
16871fi
16872
a0b9e27f 16873echo $ac_n "checking for size_t""... $ac_c" 1>&6
8b389fab 16874echo "configure:16875: checking for size_t" >&5
a0b9e27f
MB
16875if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16877else
a0b9e27f 16878 cat > conftest.$ac_ext <<EOF
8b389fab 16879#line 16880 "configure"
7b4a847f 16880#include "confdefs.h"
a0b9e27f
MB
16881#include <sys/types.h>
16882#if STDC_HEADERS
16883#include <stdlib.h>
16884#include <stddef.h>
8284b0c5 16885#endif
a0b9e27f
MB
16886EOF
16887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16888 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16889 rm -rf conftest*
90dd450c 16890 ac_cv_type_size_t=yes
18dbb1f6 16891else
a0b9e27f
MB
16892 rm -rf conftest*
16893 ac_cv_type_size_t=no
52127426 16894fi
a0b9e27f 16895rm -f conftest*
247f5006 16896
a0b9e27f
MB
16897fi
16898echo "$ac_t""$ac_cv_type_size_t" 1>&6
16899if test $ac_cv_type_size_t = no; then
16900 cat >> confdefs.h <<\EOF
90dd450c 16901#define size_t unsigned
a0b9e27f 16902EOF
90dd450c
VZ
16903
16904fi
16905
a0b9e27f 16906echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8b389fab 16907echo "configure:16908: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16908if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16909 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16910else
a0b9e27f 16911 cat > conftest.$ac_ext <<EOF
8b389fab 16912#line 16913 "configure"
b3e8d00a 16913#include "confdefs.h"
90dd450c 16914#include <sys/types.h>
a0b9e27f 16915EOF
90dd450c
VZ
16916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16917 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16918 rm -rf conftest*
90dd450c 16919 ac_cv_type_uid_t=yes
b3e8d00a 16920else
a0b9e27f 16921 rm -rf conftest*
90dd450c 16922 ac_cv_type_uid_t=no
b3e8d00a 16923fi
90dd450c 16924rm -f conftest*
b3e8d00a 16925
4f14bcd8 16926fi
247f5006 16927
a0b9e27f
MB
16928echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16929if test $ac_cv_type_uid_t = no; then
16930 cat >> confdefs.h <<\EOF
90dd450c 16931#define uid_t int
a0b9e27f 16932EOF
247f5006 16933
a0b9e27f 16934 cat >> confdefs.h <<\EOF
90dd450c 16935#define gid_t int
a0b9e27f 16936EOF
4f14bcd8 16937
b3e8d00a 16938fi
b3e8d00a 16939
8284b0c5
MB
16940
16941
a0b9e27f
MB
16942ac_ext=C
16943# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16944ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16945ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16948
a0b9e27f 16949echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
8b389fab 16950echo "configure:16951: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16951if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16952 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16953else
ef33c576
VZ
16954
16955 cat > conftest.$ac_ext <<EOF
8b389fab 16956#line 16957 "configure"
10f2d63a 16957#include "confdefs.h"
90dd450c 16958#include <stddef.h>
a0b9e27f 16959int main() {
90dd450c
VZ
16960
16961 return 0; }
16962
16963 struct Foo { void foo(size_t); void foo(unsigned int); };
16964
16965 int bar() {
a0b9e27f
MB
16966
16967; return 0; }
16968EOF
8b389fab 16969if { (eval echo configure:16970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16970 rm -rf conftest*
90dd450c 16971 wx_cv_size_t_is_uint=no
698dcdb6 16972else
a0b9e27f
MB
16973 echo "configure: failed program was:" >&5
16974 cat conftest.$ac_ext >&5
16975 rm -rf conftest*
16976 wx_cv_size_t_is_uint=yes
16977
5c6fa7d2 16978fi
a0b9e27f 16979rm -f conftest*
ef33c576 16980
8284b0c5 16981
247f5006 16982fi
a0b9e27f
MB
16983
16984echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16985
90dd450c 16986if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16987 cat >> confdefs.h <<\EOF
90dd450c 16988#define wxSIZE_T_IS_UINT 1
a0b9e27f 16989EOF
698dcdb6 16990
90dd450c 16991else
a0b9e27f 16992 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
8b389fab 16993echo "configure:16994: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16994if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16995 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16996else
a0b9e27f 16997 cat > conftest.$ac_ext <<EOF
8b389fab 16998#line 16999 "configure"
10f2d63a 16999#include "confdefs.h"
90dd450c 17000#include <stddef.h>
a0b9e27f 17001int main() {
90dd450c
VZ
17002
17003 return 0; }
17004
17005 struct Foo { void foo(size_t); void foo(unsigned long); };
17006
17007 int bar() {
a0b9e27f
MB
17008
17009; return 0; }
17010EOF
8b389fab 17011if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17012 rm -rf conftest*
90dd450c 17013 wx_cv_size_t_is_ulong=no
698dcdb6 17014else
a0b9e27f
MB
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17017 rm -rf conftest*
17018 wx_cv_size_t_is_ulong=yes
17019
5c6fa7d2 17020fi
a0b9e27f
MB
17021rm -f conftest*
17022
247f5006 17023fi
a0b9e27f
MB
17024
17025echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 17026
90dd450c 17027 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 17028 cat >> confdefs.h <<\EOF
90dd450c 17029#define wxSIZE_T_IS_ULONG 1
a0b9e27f 17030EOF
4f14bcd8
GD
17031
17032 fi
90dd450c 17033fi
1e487827 17034
90dd450c 17035ac_ext=c
a0b9e27f 17036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17037ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17040cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 17041
5c6fa7d2 17042
8284b0c5 17043
a0b9e27f 17044echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8b389fab 17045echo "configure:17046: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
17046if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17047 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17048else
a0b9e27f
MB
17049
17050 cat > conftest.$ac_ext <<EOF
8b389fab 17051#line 17052 "configure"
4f14bcd8 17052#include "confdefs.h"
90dd450c 17053#include <pwd.h>
a0b9e27f 17054int main() {
f6bcfd97 17055
90dd450c
VZ
17056 char *p;
17057 struct passwd *pw;
17058 p = pw->pw_gecos;
a0b9e27f
MB
17059
17060; return 0; }
17061EOF
8b389fab 17062if { (eval echo configure:17063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17063 rm -rf conftest*
17064
90dd450c 17065 wx_cv_struct_pw_gecos=yes
a0b9e27f 17066
10f2d63a 17067else
a0b9e27f
MB
17068 echo "configure: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 rm -rf conftest*
17071
90dd450c 17072 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
17073
17074
5c6fa7d2 17075fi
a0b9e27f
MB
17076rm -f conftest*
17077
247f5006
VZ
17078
17079fi
a0b9e27f
MB
17080
17081echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 17082
90dd450c 17083if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 17084 cat >> confdefs.h <<\EOF
90dd450c 17085#define HAVE_PW_GECOS 1
a0b9e27f 17086EOF
c521c494 17087
90dd450c 17088fi
4f14bcd8 17089
8284b0c5 17090
d29b553b 17091if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 17092 cat >> confdefs.h <<\EOF
d74f4b5a 17093#define wxUSE_WCHAR_T 1
a0b9e27f 17094EOF
d74f4b5a 17095
8284b0c5 17096
d74f4b5a
VZ
17097 WCSLEN_FOUND=0
17098 WCHAR_LINK=
a0b9e27f 17099 for ac_func in wcslen
7a30264c 17100do
a0b9e27f 17101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17102echo "configure:17103: checking for $ac_func" >&5
a0b9e27f
MB
17103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17104 echo $ac_n "(cached) $ac_c" 1>&6
17105else
17106 cat > conftest.$ac_ext <<EOF
8b389fab 17107#line 17108 "configure"
4f14bcd8 17108#include "confdefs.h"
7a30264c 17109/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17110 which can conflict with char $ac_func(); below. */
7a30264c 17111#include <assert.h>
4f14bcd8
GD
17112/* Override any gcc2 internal prototype to avoid an error. */
17113/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17114 builtin and then its argument prototype would still apply. */
17115char $ac_func();
17116
17117int main() {
17118
7a30264c
VZ
17119/* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17123choke me
17124#else
a0b9e27f 17125$ac_func();
7a30264c
VZ
17126#endif
17127
a0b9e27f
MB
17128; return 0; }
17129EOF
8b389fab 17130if { (eval echo configure:17131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17131 rm -rf conftest*
17132 eval "ac_cv_func_$ac_func=yes"
17133else
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 eval "ac_cv_func_$ac_func=no"
17138fi
17139rm -f conftest*
17140fi
17141
17142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17143 echo "$ac_t""yes" 1>&6
17144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17145 cat >> confdefs.h <<EOF
17146#define $ac_tr_func 1
17147EOF
d74f4b5a 17148 WCSLEN_FOUND=1
a0b9e27f
MB
17149else
17150 echo "$ac_t""no" 1>&6
7a30264c
VZ
17151fi
17152done
9d8deca0 17153
8284b0c5 17154
d74f4b5a 17155 if test "$WCSLEN_FOUND" = 0; then
7a30264c 17156 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 17157 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
8b389fab 17158echo "configure:17159: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
17159ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17161 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17162else
a0b9e27f 17163 ac_save_LIBS="$LIBS"
7a30264c 17164LIBS="-lmsvcrt $LIBS"
a0b9e27f 17165cat > conftest.$ac_ext <<EOF
8b389fab 17166#line 17167 "configure"
10f2d63a 17167#include "confdefs.h"
4f14bcd8
GD
17168/* Override any gcc2 internal prototype to avoid an error. */
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 wcslen();
17172
17173int main() {
17174wcslen()
17175; return 0; }
17176EOF
8b389fab 17177if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17178 rm -rf conftest*
17179 eval "ac_cv_lib_$ac_lib_var=yes"
17180else
17181 echo "configure: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 rm -rf conftest*
17184 eval "ac_cv_lib_$ac_lib_var=no"
17185fi
17186rm -f conftest*
17187LIBS="$ac_save_LIBS"
17188
17189fi
17190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17191 echo "$ac_t""yes" 1>&6
d74f4b5a 17192 WCHAR_OK=1
a0b9e27f
MB
17193else
17194 echo "$ac_t""no" 1>&6
d29b553b 17195fi
698dcdb6 17196
7a30264c 17197 else
a0b9e27f 17198 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
8b389fab 17199echo "configure:17200: checking for wcslen in -lw" >&5
a0b9e27f
MB
17200ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17202 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17203else
a0b9e27f 17204 ac_save_LIBS="$LIBS"
7a30264c 17205LIBS="-lw $LIBS"
a0b9e27f 17206cat > conftest.$ac_ext <<EOF
8b389fab 17207#line 17208 "configure"
95c8801c 17208#include "confdefs.h"
4f14bcd8
GD
17209/* Override any gcc2 internal prototype to avoid an error. */
17210/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17211 builtin and then its argument prototype would still apply. */
17212char wcslen();
52127426 17213
a0b9e27f
MB
17214int main() {
17215wcslen()
17216; return 0; }
17217EOF
8b389fab 17218if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17219 rm -rf conftest*
17220 eval "ac_cv_lib_$ac_lib_var=yes"
17221else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 eval "ac_cv_lib_$ac_lib_var=no"
17226fi
17227rm -f conftest*
17228LIBS="$ac_save_LIBS"
17229
17230fi
17231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17232 echo "$ac_t""yes" 1>&6
17233
7a30264c 17234 WCHAR_LINK=" -lw"
d74f4b5a 17235 WCSLEN_FOUND=1
a0b9e27f
MB
17236
17237else
17238 echo "$ac_t""no" 1>&6
4f14bcd8 17239fi
10f2d63a 17240
7a30264c 17241 fi
d29b553b 17242 fi
95c8801c 17243
d74f4b5a 17244 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 17245 cat >> confdefs.h <<\EOF
d74f4b5a 17246#define HAVE_WCSLEN 1
a0b9e27f 17247EOF
10f2d63a 17248
d74f4b5a 17249 fi
52127426 17250
a0b9e27f 17251 for ac_func in wcsrtombs
eb4efbdc 17252do
a0b9e27f 17253echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17254echo "configure:17255: checking for $ac_func" >&5
a0b9e27f
MB
17255if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17257else
17258 cat > conftest.$ac_ext <<EOF
8b389fab 17259#line 17260 "configure"
eb4efbdc
VZ
17260#include "confdefs.h"
17261/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17262 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
17263#include <assert.h>
17264/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 17265/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17266 builtin and then its argument prototype would still apply. */
17267char $ac_func();
17268
17269int main() {
17270
10f2d63a
VZ
17271/* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
247f5006 17274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
17275choke me
17276#else
a0b9e27f 17277$ac_func();
10f2d63a
VZ
17278#endif
17279
a0b9e27f
MB
17280; return 0; }
17281EOF
8b389fab 17282if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17283 rm -rf conftest*
17284 eval "ac_cv_func_$ac_func=yes"
17285else
17286 echo "configure: failed program was:" >&5
17287 cat conftest.$ac_ext >&5
17288 rm -rf conftest*
17289 eval "ac_cv_func_$ac_func=no"
17290fi
17291rm -f conftest*
17292fi
270a909e 17293
a0b9e27f
MB
17294if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17295 echo "$ac_t""yes" 1>&6
17296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17297 cat >> confdefs.h <<EOF
17298#define $ac_tr_func 1
17299EOF
17300
17301else
17302 echo "$ac_t""no" 1>&6
4f14bcd8 17303fi
247f5006 17304done
1e487827 17305
af15babd 17306else
a0b9e27f 17307 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 17308fi
52127426 17309
8284b0c5 17310
a0b9e27f
MB
17311ac_ext=C
17312# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17313ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17314ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17315ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17316cross_compiling=$ac_cv_prog_cxx_cross
af15babd 17317
247f5006
VZ
17318
17319for ac_func in vsnprintf
17320do
a0b9e27f 17321echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17322echo "configure:17323: checking for $ac_func" >&5
a0b9e27f
MB
17323if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17324 echo $ac_n "(cached) $ac_c" 1>&6
17325else
17326 cat > conftest.$ac_ext <<EOF
8b389fab 17327#line 17328 "configure"
af15babd 17328#include "confdefs.h"
247f5006 17329/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17330 which can conflict with char $ac_func(); below. */
247f5006
VZ
17331#include <assert.h>
17332/* Override any gcc2 internal prototype to avoid an error. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17337 builtin and then its argument prototype would still apply. */
17338char $ac_func();
17339
17340int main() {
17341
247f5006
VZ
17342/* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17346choke me
17347#else
a0b9e27f 17348$ac_func();
247f5006 17349#endif
af15babd 17350
a0b9e27f
MB
17351; return 0; }
17352EOF
8b389fab 17353if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17354 rm -rf conftest*
17355 eval "ac_cv_func_$ac_func=yes"
17356else
17357 echo "configure: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17359 rm -rf conftest*
17360 eval "ac_cv_func_$ac_func=no"
17361fi
17362rm -f conftest*
17363fi
52127426 17364
a0b9e27f
MB
17365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17366 echo "$ac_t""yes" 1>&6
17367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17368 cat >> confdefs.h <<EOF
17369#define $ac_tr_func 1
17370EOF
17371
17372else
17373 echo "$ac_t""no" 1>&6
5c6fa7d2 17374fi
247f5006 17375done
8284b0c5 17376
4f14bcd8 17377
8d90d2f2
VZ
17378if test "$ac_cv_func_vsnprintf" = "yes"; then
17379 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
8b389fab 17380echo "configure:17381: checking for vsnprintf declaration" >&5
8d90d2f2
VZ
17381if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17382 echo $ac_n "(cached) $ac_c" 1>&6
17383else
17384
17385 cat > conftest.$ac_ext <<EOF
8b389fab 17386#line 17387 "configure"
8d90d2f2
VZ
17387#include "confdefs.h"
17388
17389 #include <stdio.h>
17390 #include <stdarg.h>
17391
17392int main() {
17393
17394 char *buf;
17395 va_list ap;
17396 vsnprintf(buf, 10u, "%s", ap);
17397
17398; return 0; }
17399EOF
8b389fab 17400if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d90d2f2
VZ
17401 rm -rf conftest*
17402 wx_cv_func_vsnprintf_decl=yes
17403else
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17406 rm -rf conftest*
17407 wx_cv_func_vsnprintf_decl=no
17408
17409fi
17410rm -f conftest*
17411
17412
17413fi
17414
17415echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17416
17417 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419#define HAVE_VSNPRINTF_DECL 1
17420EOF
17421
17422 fi
17423fi
17424
247f5006 17425if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 17426 for ac_func in fputwc wprintf vswprintf
d74f4b5a 17427do
a0b9e27f 17428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17429echo "configure:17430: checking for $ac_func" >&5
a0b9e27f
MB
17430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
17432else
17433 cat > conftest.$ac_ext <<EOF
8b389fab 17434#line 17435 "configure"
d74f4b5a
VZ
17435#include "confdefs.h"
17436/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17437 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
17438#include <assert.h>
17439/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
17440#ifdef __cplusplus
17441extern "C"
17442#endif
d74f4b5a 17443/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17444 builtin and then its argument prototype would still apply. */
17445char $ac_func();
17446
17447int main() {
17448
d74f4b5a
VZ
17449/* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453choke me
17454#else
a0b9e27f 17455$ac_func();
d74f4b5a
VZ
17456#endif
17457
a0b9e27f
MB
17458; return 0; }
17459EOF
8b389fab 17460if { (eval echo configure:17461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17461 rm -rf conftest*
17462 eval "ac_cv_func_$ac_func=yes"
17463else
17464 echo "configure: failed program was:" >&5
17465 cat conftest.$ac_ext >&5
17466 rm -rf conftest*
17467 eval "ac_cv_func_$ac_func=no"
17468fi
17469rm -f conftest*
17470fi
d74f4b5a 17471
a0b9e27f
MB
17472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17473 echo "$ac_t""yes" 1>&6
17474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17475 cat >> confdefs.h <<EOF
17476#define $ac_tr_func 1
17477EOF
17478
17479else
17480 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17481fi
17482done
17483
8d90d2f2 17484
79668cae 17485 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
8b389fab 17486echo "configure:17487: checking for _vsnwprintf" >&5
79668cae 17487 cat > conftest.$ac_ext <<EOF
8b389fab 17488#line 17489 "configure"
79668cae
MB
17489#include "confdefs.h"
17490#include <wchar.h>
17491int main() {
17492&_vsnwprintf;
17493; return 0; }
17494EOF
8b389fab 17495if { (eval echo configure:17496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17496 rm -rf conftest*
17497 echo "$ac_t""yes" 1>&6
17498 cat >> confdefs.h <<\EOF
17499#define HAVE__VSNWPRINTF 1
17500EOF
17501
17502else
17503 echo "configure: failed program was:" >&5
17504 cat conftest.$ac_ext >&5
17505 rm -rf conftest*
17506 echo "$ac_t""no" 1>&6
17507fi
17508rm -f conftest*;
d74f4b5a
VZ
17509fi
17510
247f5006 17511ac_ext=c
a0b9e27f 17512# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17513ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17514ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17515ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17516cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17517
17518
17519
17520
4f14bcd8 17521if test "$TOOLKIT" != "MSW"; then
af15babd 17522
8284b0c5
MB
17523
17524
a0b9e27f
MB
17525ac_ext=C
17526# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17527ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17528ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17529ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17530cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17531
52127426 17532
a0b9e27f
MB
17533
17534 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17535if test "${with_libiconv_prefix+set}" = set; then
17536 withval="$with_libiconv_prefix"
a0b9e27f 17537
b040e242
VS
17538 for dir in `echo "$withval" | tr : ' '`; do
17539 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17540 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17541 done
a0b9e27f
MB
17542
17543fi
b040e242
VS
17544
17545
a0b9e27f 17546 echo $ac_n "checking for iconv""... $ac_c" 1>&6
8b389fab 17547echo "configure:17548: checking for iconv" >&5
a0b9e27f
MB
17548if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17549 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17550else
a0b9e27f 17551
b040e242
VS
17552 am_cv_func_iconv="no, consider installing GNU libiconv"
17553 am_cv_lib_iconv=no
a0b9e27f 17554 cat > conftest.$ac_ext <<EOF
8b389fab 17555#line 17556 "configure"
af15babd 17556#include "confdefs.h"
b040e242 17557#include <stdlib.h>
4f14bcd8 17558#include <iconv.h>
a0b9e27f 17559int main() {
b040e242
VS
17560iconv_t cd = iconv_open("","");
17561 iconv(cd,NULL,NULL,NULL,NULL);
17562 iconv_close(cd);
a0b9e27f
MB
17563; return 0; }
17564EOF
8b389fab 17565if { (eval echo configure:17566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17566 rm -rf conftest*
b040e242 17567 am_cv_func_iconv=yes
af15babd 17568else
a0b9e27f
MB
17569 echo "configure: failed program was:" >&5
17570 cat conftest.$ac_ext >&5
b040e242 17571fi
a0b9e27f 17572rm -f conftest*
b040e242
VS
17573 if test "$am_cv_func_iconv" != yes; then
17574 am_save_LIBS="$LIBS"
17575 LIBS="$LIBS -liconv"
a0b9e27f 17576 cat > conftest.$ac_ext <<EOF
8b389fab 17577#line 17578 "configure"
b040e242
VS
17578#include "confdefs.h"
17579#include <stdlib.h>
17580#include <iconv.h>
a0b9e27f 17581int main() {
b040e242
VS
17582iconv_t cd = iconv_open("","");
17583 iconv(cd,NULL,NULL,NULL,NULL);
17584 iconv_close(cd);
a0b9e27f
MB
17585; return 0; }
17586EOF
8b389fab 17587if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17588 rm -rf conftest*
b040e242
VS
17589 am_cv_lib_iconv=yes
17590 am_cv_func_iconv=yes
17591else
a0b9e27f
MB
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
af15babd 17594fi
a0b9e27f 17595rm -f conftest*
b040e242
VS
17596 LIBS="$am_save_LIBS"
17597 fi
a0b9e27f 17598
247f5006 17599fi
247f5006 17600
a0b9e27f
MB
17601echo "$ac_t""$am_cv_func_iconv" 1>&6
17602 if test "$am_cv_func_iconv" = yes; then
17603 cat >> confdefs.h <<\EOF
b040e242 17604#define HAVE_ICONV 1
a0b9e27f 17605EOF
b040e242 17606
a0b9e27f 17607 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
8b389fab 17608echo "configure:17609: checking if iconv needs const" >&5
a0b9e27f
MB
17609if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17610 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17611else
a0b9e27f 17612 cat > conftest.$ac_ext <<EOF
8b389fab 17613#line 17614 "configure"
b040e242
VS
17614#include "confdefs.h"
17615
17616#include <stdlib.h>
17617#include <iconv.h>
17618extern
17619#ifdef __cplusplus
17620"C"
17621#endif
17622#if defined(__STDC__) || defined(__cplusplus)
17623size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17624#else
17625size_t iconv();
17626#endif
a0b9e27f
MB
17627
17628int main() {
af15babd 17629
a0b9e27f
MB
17630; return 0; }
17631EOF
8b389fab 17632if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17633 rm -rf conftest*
b7043674 17634 wx_cv_func_iconv_const="no"
b040e242 17635else
a0b9e27f
MB
17636 echo "configure: failed program was:" >&5
17637 cat conftest.$ac_ext >&5
17638 rm -rf conftest*
17639 wx_cv_func_iconv_const="yes"
17640
5c6fa7d2 17641fi
a0b9e27f
MB
17642rm -f conftest*
17643
247f5006 17644fi
a0b9e27f
MB
17645
17646echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17647
17648 iconv_const=
1c405bb5 17649 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17650 iconv_const="const"
17651 fi
17652
a0b9e27f 17653 cat >> confdefs.h <<EOF
f09359cf 17654#define ICONV_CONST $iconv_const
a0b9e27f 17655EOF
b040e242
VS
17656
17657 fi
17658 LIBICONV=
17659 if test "$am_cv_lib_iconv" = yes; then
17660 LIBICONV="-liconv"
17661 fi
a0b9e27f 17662
b040e242
VS
17663
17664LIBS="$LIBICONV $LIBS"
4f14bcd8 17665ac_ext=c
a0b9e27f 17666# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17667ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17668ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17669ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17670cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17671
5c6fa7d2 17672
8284b0c5 17673if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17674 for ac_func in sigaction
af15babd 17675do
a0b9e27f 17676echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17677echo "configure:17678: checking for $ac_func" >&5
a0b9e27f
MB
17678if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17679 echo $ac_n "(cached) $ac_c" 1>&6
17680else
17681 cat > conftest.$ac_ext <<EOF
8b389fab 17682#line 17683 "configure"
af15babd
VZ
17683#include "confdefs.h"
17684/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17685 which can conflict with char $ac_func(); below. */
af15babd
VZ
17686#include <assert.h>
17687/* Override any gcc2 internal prototype to avoid an error. */
17688/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17689 builtin and then its argument prototype would still apply. */
17690char $ac_func();
17691
17692int main() {
17693
af15babd
VZ
17694/* The GNU C library defines this for functions which it implements
17695 to always fail with ENOSYS. Some functions are actually named
17696 something starting with __ and the normal name is an alias. */
17697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17698choke me
17699#else
a0b9e27f 17700$ac_func();
af15babd
VZ
17701#endif
17702
a0b9e27f
MB
17703; return 0; }
17704EOF
8b389fab 17705if { (eval echo configure:17706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17706 rm -rf conftest*
17707 eval "ac_cv_func_$ac_func=yes"
17708else
17709 echo "configure: failed program was:" >&5
17710 cat conftest.$ac_ext >&5
17711 rm -rf conftest*
17712 eval "ac_cv_func_$ac_func=no"
17713fi
17714rm -f conftest*
17715fi
7b4a847f 17716
a0b9e27f
MB
17717if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17718 echo "$ac_t""yes" 1>&6
17719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17720 cat >> confdefs.h <<EOF
17721#define $ac_tr_func 1
17722EOF
17723
17724else
17725 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17726fi
17727done
17728
8284b0c5 17729
4f14bcd8 17730 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17731 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17732 wxUSE_ON_FATAL_EXCEPTION=no
17733 fi
17734
17735 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17736
17737 ac_ext=C
17738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17739ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17743
5c6fa7d2 17744
a0b9e27f 17745 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
8b389fab 17746echo "configure:17747: checking for sa_handler type" >&5
a0b9e27f
MB
17747if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17748 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17749else
a0b9e27f
MB
17750
17751 cat > conftest.$ac_ext <<EOF
8b389fab 17752#line 17753 "configure"
af15babd 17753#include "confdefs.h"
4f14bcd8 17754#include <signal.h>
a0b9e27f 17755int main() {
4f14bcd8
GD
17756
17757 extern void testSigHandler(int);
17758
17759 struct sigaction sa;
17760 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17761
17762; return 0; }
17763EOF
8b389fab 17764if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17765 rm -rf conftest*
17766
4f14bcd8 17767 wx_cv_type_sa_handler=int
a0b9e27f 17768
af15babd 17769else
a0b9e27f
MB
17770 echo "configure: failed program was:" >&5
17771 cat conftest.$ac_ext >&5
17772 rm -rf conftest*
17773
4f14bcd8 17774 wx_cv_type_sa_handler=void
a0b9e27f 17775
5c6fa7d2 17776fi
a0b9e27f
MB
17777rm -f conftest*
17778
247f5006 17779fi
a0b9e27f
MB
17780
17781echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17782
17783 ac_ext=c
a0b9e27f 17784# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17785ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17786ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17787ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17788cross_compiling=$ac_cv_prog_cc_cross
579d8138 17789
8284b0c5 17790
a0b9e27f 17791 cat >> confdefs.h <<EOF
4f14bcd8 17792#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17793EOF
af15babd 17794
4f14bcd8
GD
17795 fi
17796fi
af15babd 17797
a1d22ad7 17798for ac_func in mkstemp mktemp
af15babd 17799do
a0b9e27f 17800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 17801echo "configure:17802: checking for $ac_func" >&5
a0b9e27f
MB
17802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17803 echo $ac_n "(cached) $ac_c" 1>&6
17804else
17805 cat > conftest.$ac_ext <<EOF
8b389fab 17806#line 17807 "configure"
af15babd
VZ
17807#include "confdefs.h"
17808/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17809 which can conflict with char $ac_func(); below. */
af15babd
VZ
17810#include <assert.h>
17811/* Override any gcc2 internal prototype to avoid an error. */
17812/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17813 builtin and then its argument prototype would still apply. */
17814char $ac_func();
17815
17816int main() {
17817
af15babd
VZ
17818/* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17822choke me
17823#else
a0b9e27f 17824$ac_func();
af15babd
VZ
17825#endif
17826
a0b9e27f
MB
17827; return 0; }
17828EOF
8b389fab 17829if { (eval echo configure:17830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17830 rm -rf conftest*
17831 eval "ac_cv_func_$ac_func=yes"
17832else
17833 echo "configure: failed program was:" >&5
17834 cat conftest.$ac_ext >&5
17835 rm -rf conftest*
17836 eval "ac_cv_func_$ac_func=no"
17837fi
17838rm -f conftest*
17839fi
af15babd 17840
a0b9e27f
MB
17841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17842 echo "$ac_t""yes" 1>&6
17843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17844 cat >> confdefs.h <<EOF
17845#define $ac_tr_func 1
17846EOF
ade35f11 17847 break
a0b9e27f
MB
17848else
17849 echo "$ac_t""no" 1>&6
ade35f11
VZ
17850fi
17851done
17852
8284b0c5 17853
a0b9e27f 17854echo $ac_n "checking for statfs""... $ac_c" 1>&6
8b389fab 17855echo "configure:17856: checking for statfs" >&5
a0b9e27f
MB
17856if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17857 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17858else
a0b9e27f 17859 cat > conftest.$ac_ext <<EOF
8b389fab 17860#line 17861 "configure"
4f14bcd8
GD
17861#include "confdefs.h"
17862
17863 #if defined(__BSD__)
17864 #include <sys/param.h>
17865 #include <sys/mount.h>
17866 #else
17867 #include <sys/vfs.h>
17868 #endif
a0b9e27f
MB
17869
17870int main() {
4f14bcd8
GD
17871
17872 long l;
17873 struct statfs fs;
17874 statfs("/", &fs);
17875 l = fs.f_bsize;
17876 l += fs.f_blocks;
17877 l += fs.f_bavail;
a0b9e27f
MB
17878
17879; return 0; }
17880EOF
8b389fab 17881if { (eval echo configure:17882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17882 rm -rf conftest*
17883
4f14bcd8 17884 wx_cv_func_statfs=yes
a0b9e27f 17885
4f14bcd8 17886else
a0b9e27f
MB
17887 echo "configure: failed program was:" >&5
17888 cat conftest.$ac_ext >&5
17889 rm -rf conftest*
17890
4f14bcd8 17891 wx_cv_func_statfs=no
a0b9e27f
MB
17892
17893
5c6fa7d2 17894fi
a0b9e27f 17895rm -f conftest*
8284b0c5 17896
247f5006 17897fi
a0b9e27f
MB
17898
17899echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17900
17901if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17902 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17903 cat >> confdefs.h <<\EOF
4f14bcd8 17904#define HAVE_STATFS 1
a0b9e27f 17905EOF
4f14bcd8
GD
17906
17907else
a0b9e27f 17908 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
8b389fab 17909echo "configure:17910: checking for statvfs" >&5
a0b9e27f
MB
17910if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17911 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17912else
a0b9e27f 17913 cat > conftest.$ac_ext <<EOF
8b389fab 17914#line 17915 "configure"
af15babd 17915#include "confdefs.h"
af15babd 17916
54ab82b3
VZ
17917 #include <stddef.h>
17918 #include <sys/statvfs.h>
a0b9e27f
MB
17919
17920int main() {
af15babd 17921
54ab82b3 17922 statvfs("/", NULL);
a0b9e27f
MB
17923
17924; return 0; }
17925EOF
8b389fab 17926if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17927 rm -rf conftest*
54ab82b3 17928 wx_cv_func_statvfs=yes
af15babd 17929else
a0b9e27f
MB
17930 echo "configure: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 rm -rf conftest*
54ab82b3 17933 wx_cv_func_statvfs=no
a0b9e27f 17934
5c6fa7d2 17935fi
a0b9e27f
MB
17936rm -f conftest*
17937
247f5006 17938fi
a0b9e27f
MB
17939
17940echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17941
4f14bcd8 17942 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17943
17944 ac_ext=C
17945# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17946ac_cpp='$CXXCPP $CPPFLAGS'
17947ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17948ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17949cross_compiling=$ac_cv_prog_cxx_cross
17950
17951
17952 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
8b389fab 17953echo "configure:17954: checking for statvfs argument type" >&5
54ab82b3
VZ
17954if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17955 echo $ac_n "(cached) $ac_c" 1>&6
17956else
17957 cat > conftest.$ac_ext <<EOF
8b389fab 17958#line 17959 "configure"
54ab82b3
VZ
17959#include "confdefs.h"
17960
17961 #include <sys/statvfs.h>
17962
17963int main() {
17964
17965 long l;
17966 statvfs_t fs;
17967 statvfs("/", &fs);
17968 l = fs.f_bsize;
17969 l += fs.f_blocks;
17970 l += fs.f_bavail;
17971
17972; return 0; }
17973EOF
8b389fab 17974if { (eval echo configure:17975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
17975 rm -rf conftest*
17976 wx_cv_type_statvfs_t=statvfs_t
17977else
17978 echo "configure: failed program was:" >&5
17979 cat conftest.$ac_ext >&5
17980 rm -rf conftest*
17981
17982 cat > conftest.$ac_ext <<EOF
8b389fab 17983#line 17984 "configure"
54ab82b3
VZ
17984#include "confdefs.h"
17985
17986 #include <sys/statvfs.h>
17987
17988int main() {
17989
17990 long l;
65d8ef1e 17991 struct statvfs fs;
54ab82b3
VZ
17992 statvfs("/", &fs);
17993 l = fs.f_bsize;
17994 l += fs.f_blocks;
17995 l += fs.f_bavail;
17996
17997; return 0; }
17998EOF
8b389fab 17999if { (eval echo configure:18000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54ab82b3
VZ
18000 rm -rf conftest*
18001 wx_cv_type_statvfs_t="struct statvfs"
18002else
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006 wx_cv_type_statvfs_t="unknown"
18007
18008fi
18009rm -f conftest*
18010
18011
18012fi
18013rm -f conftest*
18014
18015fi
18016
18017echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18018
18019 ac_ext=c
18020# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18021ac_cpp='$CPP $CPPFLAGS'
18022ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18023ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18024cross_compiling=$ac_cv_prog_cc_cross
18025
18026
18027 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18028 cat >> confdefs.h <<\EOF
4f14bcd8 18029#define HAVE_STATVFS 1
a0b9e27f 18030EOF
af15babd 18031
54ab82b3 18032 fi
4f14bcd8 18033 else
54ab82b3 18034 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
18035 fi
18036fi
af15babd 18037
54ab82b3
VZ
18038if test "$wx_cv_type_statvfs_t" != "unknown"; then
18039 cat >> confdefs.h <<EOF
18040#define WX_STATFS_T $wx_cv_type_statvfs_t
18041EOF
18042
18043else
18044 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18045fi
18046
4f14bcd8 18047if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 18048 for ac_func in fcntl flock
af15babd 18049do
a0b9e27f 18050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18051echo "configure:18052: checking for $ac_func" >&5
a0b9e27f
MB
18052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18053 echo $ac_n "(cached) $ac_c" 1>&6
18054else
18055 cat > conftest.$ac_ext <<EOF
8b389fab 18056#line 18057 "configure"
af15babd
VZ
18057#include "confdefs.h"
18058/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18059 which can conflict with char $ac_func(); below. */
af15babd
VZ
18060#include <assert.h>
18061/* Override any gcc2 internal prototype to avoid an error. */
af15babd 18062/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18063 builtin and then its argument prototype would still apply. */
18064char $ac_func();
18065
18066int main() {
18067
af15babd
VZ
18068/* The GNU C library defines this for functions which it implements
18069 to always fail with ENOSYS. Some functions are actually named
18070 something starting with __ and the normal name is an alias. */
18071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18072choke me
18073#else
a0b9e27f 18074$ac_func();
af15babd
VZ
18075#endif
18076
a0b9e27f
MB
18077; return 0; }
18078EOF
8b389fab 18079if { (eval echo configure:18080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18080 rm -rf conftest*
18081 eval "ac_cv_func_$ac_func=yes"
18082else
18083 echo "configure: failed program was:" >&5
18084 cat conftest.$ac_ext >&5
18085 rm -rf conftest*
18086 eval "ac_cv_func_$ac_func=no"
18087fi
18088rm -f conftest*
18089fi
18090
18091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18092 echo "$ac_t""yes" 1>&6
18093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18094 cat >> confdefs.h <<EOF
18095#define $ac_tr_func 1
18096EOF
4f14bcd8 18097 break
a0b9e27f
MB
18098else
18099 echo "$ac_t""no" 1>&6
af15babd
VZ
18100fi
18101done
18102
8284b0c5 18103
4f14bcd8 18104 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 18105 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
18106 wxUSE_SNGLINST_CHECKER=no
18107 fi
18108fi
af15babd 18109
4f14bcd8 18110for ac_func in timegm
af15babd 18111do
a0b9e27f 18112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18113echo "configure:18114: checking for $ac_func" >&5
a0b9e27f
MB
18114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18115 echo $ac_n "(cached) $ac_c" 1>&6
18116else
18117 cat > conftest.$ac_ext <<EOF
8b389fab 18118#line 18119 "configure"
af15babd
VZ
18119#include "confdefs.h"
18120/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18121 which can conflict with char $ac_func(); below. */
af15babd
VZ
18122#include <assert.h>
18123/* Override any gcc2 internal prototype to avoid an error. */
18124/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18125 builtin and then its argument prototype would still apply. */
18126char $ac_func();
18127
18128int main() {
18129
af15babd
VZ
18130/* The GNU C library defines this for functions which it implements
18131 to always fail with ENOSYS. Some functions are actually named
18132 something starting with __ and the normal name is an alias. */
247f5006
VZ
18133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18134choke me
18135#else
a0b9e27f 18136$ac_func();
247f5006
VZ
18137#endif
18138
a0b9e27f
MB
18139; return 0; }
18140EOF
8b389fab 18141if { (eval echo configure:18142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18142 rm -rf conftest*
18143 eval "ac_cv_func_$ac_func=yes"
18144else
18145 echo "configure: failed program was:" >&5
18146 cat conftest.$ac_ext >&5
18147 rm -rf conftest*
18148 eval "ac_cv_func_$ac_func=no"
18149fi
18150rm -f conftest*
18151fi
703e0a69 18152
a0b9e27f
MB
18153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18154 echo "$ac_t""yes" 1>&6
18155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18156 cat >> confdefs.h <<EOF
18157#define $ac_tr_func 1
18158EOF
18159
18160else
18161 echo "$ac_t""no" 1>&6
af15babd
VZ
18162fi
18163done
18164
8284b0c5 18165
4f14bcd8 18166for ac_func in putenv setenv
10f2d63a 18167do
a0b9e27f 18168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18169echo "configure:18170: checking for $ac_func" >&5
a0b9e27f
MB
18170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18171 echo $ac_n "(cached) $ac_c" 1>&6
18172else
18173 cat > conftest.$ac_ext <<EOF
8b389fab 18174#line 18175 "configure"
af15babd
VZ
18175#include "confdefs.h"
18176/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18177 which can conflict with char $ac_func(); below. */
af15babd
VZ
18178#include <assert.h>
18179/* Override any gcc2 internal prototype to avoid an error. */
18180/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18181 builtin and then its argument prototype would still apply. */
18182char $ac_func();
18183
18184int main() {
18185
af15babd
VZ
18186/* The GNU C library defines this for functions which it implements
18187 to always fail with ENOSYS. Some functions are actually named
18188 something starting with __ and the normal name is an alias. */
18189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18190choke me
18191#else
a0b9e27f 18192$ac_func();
af15babd
VZ
18193#endif
18194
a0b9e27f
MB
18195; return 0; }
18196EOF
8b389fab 18197if { (eval echo configure:18198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18198 rm -rf conftest*
18199 eval "ac_cv_func_$ac_func=yes"
18200else
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
18204 eval "ac_cv_func_$ac_func=no"
18205fi
18206rm -f conftest*
18207fi
18208
18209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18210 echo "$ac_t""yes" 1>&6
18211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18212 cat >> confdefs.h <<EOF
18213#define $ac_tr_func 1
18214EOF
4f14bcd8 18215 break
a0b9e27f
MB
18216else
18217 echo "$ac_t""no" 1>&6
af15babd 18218fi
af15babd
VZ
18219done
18220
8284b0c5 18221
4f14bcd8
GD
18222HAVE_SOME_SLEEP_FUNC=0
18223if test "$USE_BEOS" = 1; then
a0b9e27f 18224 cat >> confdefs.h <<\EOF
4f14bcd8 18225#define HAVE_SLEEP 1
a0b9e27f 18226EOF
af15babd 18227
4f14bcd8 18228 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18229fi
18230
4f14bcd8 18231if test "$USE_DARWIN" = 1; then
a0b9e27f 18232 cat >> confdefs.h <<\EOF
4f14bcd8 18233#define HAVE_USLEEP 1
a0b9e27f 18234EOF
10f2d63a 18235
4f14bcd8 18236 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
18237fi
18238
4f14bcd8
GD
18239if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18240 POSIX4_LINK=
a0b9e27f 18241 for ac_func in nanosleep
4f14bcd8 18242do
a0b9e27f 18243echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18244echo "configure:18245: checking for $ac_func" >&5
a0b9e27f
MB
18245if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18246 echo $ac_n "(cached) $ac_c" 1>&6
18247else
18248 cat > conftest.$ac_ext <<EOF
8b389fab 18249#line 18250 "configure"
10f2d63a 18250#include "confdefs.h"
4f14bcd8 18251/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18252 which can conflict with char $ac_func(); below. */
4f14bcd8 18253#include <assert.h>
10f2d63a
VZ
18254/* Override any gcc2 internal prototype to avoid an error. */
18255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18256 builtin and then its argument prototype would still apply. */
18257char $ac_func();
18258
18259int main() {
18260
4f14bcd8
GD
18261/* The GNU C library defines this for functions which it implements
18262 to always fail with ENOSYS. Some functions are actually named
18263 something starting with __ and the normal name is an alias. */
18264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18265choke me
18266#else
a0b9e27f 18267$ac_func();
4f14bcd8
GD
18268#endif
18269
a0b9e27f
MB
18270; return 0; }
18271EOF
8b389fab 18272if { (eval echo configure:18273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18273 rm -rf conftest*
18274 eval "ac_cv_func_$ac_func=yes"
18275else
18276 echo "configure: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 rm -rf conftest*
18279 eval "ac_cv_func_$ac_func=no"
18280fi
18281rm -f conftest*
18282fi
18283
18284if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18285 echo "$ac_t""yes" 1>&6
18286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18287 cat >> confdefs.h <<EOF
18288#define $ac_tr_func 1
18289EOF
18290 cat >> confdefs.h <<\EOF
4f14bcd8 18291#define HAVE_NANOSLEEP 1
a0b9e27f 18292EOF
4f14bcd8 18293
10f2d63a 18294else
a0b9e27f
MB
18295 echo "$ac_t""no" 1>&6
18296echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
8b389fab 18297echo "configure:18298: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
18298ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18301else
a0b9e27f 18302 ac_save_LIBS="$LIBS"
4f14bcd8 18303LIBS="-lposix4 $LIBS"
a0b9e27f 18304cat > conftest.$ac_ext <<EOF
8b389fab 18305#line 18306 "configure"
10f2d63a
VZ
18306#include "confdefs.h"
18307/* Override any gcc2 internal prototype to avoid an error. */
18308/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18309 builtin and then its argument prototype would still apply. */
18310char nanosleep();
18311
18312int main() {
18313nanosleep()
18314; return 0; }
18315EOF
8b389fab 18316if { (eval echo configure:18317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18317 rm -rf conftest*
18318 eval "ac_cv_lib_$ac_lib_var=yes"
18319else
18320 echo "configure: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18322 rm -rf conftest*
18323 eval "ac_cv_lib_$ac_lib_var=no"
18324fi
18325rm -f conftest*
18326LIBS="$ac_save_LIBS"
18327
18328fi
18329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18330 echo "$ac_t""yes" 1>&6
18331
18332 cat >> confdefs.h <<\EOF
4f14bcd8 18333#define HAVE_NANOSLEEP 1
a0b9e27f 18334EOF
4f14bcd8 18335
3d63bc3a 18336 POSIX4_LINK=" -lposix4"
a0b9e27f 18337
10f2d63a 18338else
a0b9e27f 18339 echo "$ac_t""no" 1>&6
10f2d63a 18340
a0b9e27f 18341 for ac_func in usleep
4f14bcd8 18342do
a0b9e27f 18343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18344echo "configure:18345: checking for $ac_func" >&5
a0b9e27f
MB
18345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346 echo $ac_n "(cached) $ac_c" 1>&6
18347else
18348 cat > conftest.$ac_ext <<EOF
8b389fab 18349#line 18350 "configure"
10f2d63a 18350#include "confdefs.h"
4f14bcd8 18351/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18352 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18353#include <assert.h>
18354/* Override any gcc2 internal prototype to avoid an error. */
18355/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18356 builtin and then its argument prototype would still apply. */
18357char $ac_func();
18358
18359int main() {
18360
4f14bcd8
GD
18361/* The GNU C library defines this for functions which it implements
18362 to always fail with ENOSYS. Some functions are actually named
18363 something starting with __ and the normal name is an alias. */
18364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365choke me
18366#else
a0b9e27f 18367$ac_func();
4f14bcd8
GD
18368#endif
18369
a0b9e27f
MB
18370; return 0; }
18371EOF
8b389fab 18372if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=yes"
18375else
18376 echo "configure: failed program was:" >&5
18377 cat conftest.$ac_ext >&5
18378 rm -rf conftest*
18379 eval "ac_cv_func_$ac_func=no"
18380fi
18381rm -f conftest*
18382fi
18383
18384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387 cat >> confdefs.h <<EOF
18388#define $ac_tr_func 1
18389EOF
18390 cat >> confdefs.h <<\EOF
4f14bcd8 18391#define HAVE_USLEEP 1
a0b9e27f 18392EOF
4f14bcd8 18393
698dcdb6 18394else
a0b9e27f
MB
18395 echo "$ac_t""no" 1>&6
18396echo "configure: warning: wxSleep() function will not work" 1>&2
18397
10f2d63a 18398fi
4f14bcd8 18399done
10f2d63a 18400
a0b9e27f
MB
18401
18402
6232543b 18403fi
10f2d63a 18404
a0b9e27f
MB
18405
18406
1e487827 18407fi
4f14bcd8 18408done
703e0a69 18409
10f2d63a
VZ
18410fi
18411
4f14bcd8 18412for ac_func in uname gethostname
70846f0a 18413do
a0b9e27f 18414echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18415echo "configure:18416: checking for $ac_func" >&5
a0b9e27f
MB
18416if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18417 echo $ac_n "(cached) $ac_c" 1>&6
18418else
18419 cat > conftest.$ac_ext <<EOF
8b389fab 18420#line 18421 "configure"
70846f0a
VZ
18421#include "confdefs.h"
18422/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18423 which can conflict with char $ac_func(); below. */
70846f0a
VZ
18424#include <assert.h>
18425/* Override any gcc2 internal prototype to avoid an error. */
18426/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18427 builtin and then its argument prototype would still apply. */
18428char $ac_func();
18429
18430int main() {
18431
70846f0a
VZ
18432/* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18436choke me
18437#else
a0b9e27f 18438$ac_func();
70846f0a
VZ
18439#endif
18440
a0b9e27f
MB
18441; return 0; }
18442EOF
8b389fab 18443if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18444 rm -rf conftest*
18445 eval "ac_cv_func_$ac_func=yes"
18446else
18447 echo "configure: failed program was:" >&5
18448 cat conftest.$ac_ext >&5
18449 rm -rf conftest*
18450 eval "ac_cv_func_$ac_func=no"
18451fi
18452rm -f conftest*
18453fi
18454
18455if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18456 echo "$ac_t""yes" 1>&6
18457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18458 cat >> confdefs.h <<EOF
18459#define $ac_tr_func 1
18460EOF
4f14bcd8 18461 break
a0b9e27f
MB
18462else
18463 echo "$ac_t""no" 1>&6
70846f0a
VZ
18464fi
18465done
18466
8284b0c5
MB
18467
18468
a0b9e27f
MB
18469ac_ext=C
18470# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18471ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18472ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18473ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18474cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18475
4f14bcd8
GD
18476
18477for ac_func in strtok_r
10f2d63a 18478do
a0b9e27f 18479echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18480echo "configure:18481: checking for $ac_func" >&5
a0b9e27f
MB
18481if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18482 echo $ac_n "(cached) $ac_c" 1>&6
18483else
18484 cat > conftest.$ac_ext <<EOF
8b389fab 18485#line 18486 "configure"
10f2d63a 18486#include "confdefs.h"
4f14bcd8 18487/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18488 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18489#include <assert.h>
18490/* Override any gcc2 internal prototype to avoid an error. */
18491#ifdef __cplusplus
18492extern "C"
18493#endif
18494/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18495 builtin and then its argument prototype would still apply. */
18496char $ac_func();
18497
18498int main() {
18499
4f14bcd8
GD
18500/* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18504choke me
18505#else
a0b9e27f 18506$ac_func();
4f14bcd8
GD
18507#endif
18508
a0b9e27f
MB
18509; return 0; }
18510EOF
8b389fab 18511if { (eval echo configure:18512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18512 rm -rf conftest*
18513 eval "ac_cv_func_$ac_func=yes"
18514else
18515 echo "configure: failed program was:" >&5
18516 cat conftest.$ac_ext >&5
18517 rm -rf conftest*
18518 eval "ac_cv_func_$ac_func=no"
18519fi
18520rm -f conftest*
18521fi
4f14bcd8 18522
a0b9e27f
MB
18523if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18524 echo "$ac_t""yes" 1>&6
18525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18526 cat >> confdefs.h <<EOF
18527#define $ac_tr_func 1
18528EOF
18529
18530else
18531 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18532fi
18533done
18534
8284b0c5 18535
4f14bcd8 18536ac_ext=c
a0b9e27f 18537# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18538ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18541cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18542
5c6fa7d2 18543
8284b0c5 18544INET_LINK=
4f14bcd8
GD
18545for ac_func in inet_addr
18546do
a0b9e27f 18547echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18548echo "configure:18549: checking for $ac_func" >&5
a0b9e27f
MB
18549if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550 echo $ac_n "(cached) $ac_c" 1>&6
18551else
18552 cat > conftest.$ac_ext <<EOF
8b389fab 18553#line 18554 "configure"
10f2d63a 18554#include "confdefs.h"
4f14bcd8 18555/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18556 which can conflict with char $ac_func(); below. */
4f14bcd8 18557#include <assert.h>
10f2d63a
VZ
18558/* Override any gcc2 internal prototype to avoid an error. */
18559/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18560 builtin and then its argument prototype would still apply. */
18561char $ac_func();
18562
18563int main() {
18564
4f14bcd8
GD
18565/* The GNU C library defines this for functions which it implements
18566 to always fail with ENOSYS. Some functions are actually named
18567 something starting with __ and the normal name is an alias. */
18568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569choke me
18570#else
a0b9e27f 18571$ac_func();
4f14bcd8
GD
18572#endif
18573
a0b9e27f
MB
18574; return 0; }
18575EOF
8b389fab 18576if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18577 rm -rf conftest*
18578 eval "ac_cv_func_$ac_func=yes"
18579else
18580 echo "configure: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=no"
18584fi
18585rm -f conftest*
18586fi
18587
18588if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589 echo "$ac_t""yes" 1>&6
18590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591 cat >> confdefs.h <<EOF
18592#define $ac_tr_func 1
18593EOF
18594 cat >> confdefs.h <<\EOF
4f14bcd8 18595#define HAVE_INET_ADDR 1
a0b9e27f 18596EOF
10f2d63a
VZ
18597
18598else
a0b9e27f
MB
18599 echo "$ac_t""no" 1>&6
18600echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
8b389fab 18601echo "configure:18602: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18602ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18604 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18605else
a0b9e27f 18606 ac_save_LIBS="$LIBS"
4f14bcd8 18607LIBS="-lnsl $LIBS"
a0b9e27f 18608cat > conftest.$ac_ext <<EOF
8b389fab 18609#line 18610 "configure"
10f2d63a
VZ
18610#include "confdefs.h"
18611/* Override any gcc2 internal prototype to avoid an error. */
18612/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18613 builtin and then its argument prototype would still apply. */
18614char inet_addr();
18615
18616int main() {
18617inet_addr()
18618; return 0; }
18619EOF
8b389fab 18620if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18621 rm -rf conftest*
18622 eval "ac_cv_lib_$ac_lib_var=yes"
18623else
18624 echo "configure: failed program was:" >&5
18625 cat conftest.$ac_ext >&5
18626 rm -rf conftest*
18627 eval "ac_cv_lib_$ac_lib_var=no"
18628fi
18629rm -f conftest*
18630LIBS="$ac_save_LIBS"
18631
18632fi
18633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18634 echo "$ac_t""yes" 1>&6
4f14bcd8 18635 INET_LINK="nsl"
10f2d63a 18636else
a0b9e27f
MB
18637 echo "$ac_t""no" 1>&6
18638echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
8b389fab 18639echo "configure:18640: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18640ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18643else
a0b9e27f 18644 ac_save_LIBS="$LIBS"
4f14bcd8 18645LIBS="-lresolv $LIBS"
a0b9e27f 18646cat > conftest.$ac_ext <<EOF
8b389fab 18647#line 18648 "configure"
7b4a847f 18648#include "confdefs.h"
5c6fa7d2 18649/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18650/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18651 builtin and then its argument prototype would still apply. */
18652char inet_addr();
18653
18654int main() {
18655inet_addr()
18656; return 0; }
18657EOF
8b389fab 18658if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18659 rm -rf conftest*
18660 eval "ac_cv_lib_$ac_lib_var=yes"
18661else
18662 echo "configure: failed program was:" >&5
18663 cat conftest.$ac_ext >&5
18664 rm -rf conftest*
18665 eval "ac_cv_lib_$ac_lib_var=no"
18666fi
18667rm -f conftest*
18668LIBS="$ac_save_LIBS"
18669
18670fi
18671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18672 echo "$ac_t""yes" 1>&6
4f14bcd8 18673 INET_LINK="resolv"
698dcdb6 18674else
a0b9e27f
MB
18675 echo "$ac_t""no" 1>&6
18676echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
8b389fab 18677echo "configure:18678: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18678ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18680 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18681else
a0b9e27f 18682 ac_save_LIBS="$LIBS"
3c011993 18683LIBS="-lsocket $LIBS"
a0b9e27f 18684cat > conftest.$ac_ext <<EOF
8b389fab 18685#line 18686 "configure"
3c011993
VZ
18686#include "confdefs.h"
18687/* Override any gcc2 internal prototype to avoid an error. */
18688/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18689 builtin and then its argument prototype would still apply. */
18690char inet_addr();
4f14bcd8 18691
a0b9e27f
MB
18692int main() {
18693inet_addr()
18694; return 0; }
18695EOF
8b389fab 18696if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18697 rm -rf conftest*
18698 eval "ac_cv_lib_$ac_lib_var=yes"
18699else
18700 echo "configure: failed program was:" >&5
18701 cat conftest.$ac_ext >&5
18702 rm -rf conftest*
18703 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18704fi
a0b9e27f
MB
18705rm -f conftest*
18706LIBS="$ac_save_LIBS"
698dcdb6 18707
7b4a847f 18708fi
a0b9e27f
MB
18709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18710 echo "$ac_t""yes" 1>&6
18711 INET_LINK="socket"
18712
18713else
18714 echo "$ac_t""no" 1>&6
18715fi
579d8138 18716
a0b9e27f 18717
5c6fa7d2 18718fi
52127426 18719
a0b9e27f
MB
18720
18721fi
247f5006 18722
a0b9e27f 18723
8284b0c5 18724
698dcdb6 18725fi
4f14bcd8
GD
18726done
18727
8284b0c5 18728
4f14bcd8
GD
18729for ac_func in inet_aton
18730do
a0b9e27f 18731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 18732echo "configure:18733: checking for $ac_func" >&5
a0b9e27f
MB
18733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
18735else
18736 cat > conftest.$ac_ext <<EOF
8b389fab 18737#line 18738 "configure"
f6bcfd97 18738#include "confdefs.h"
4f14bcd8 18739/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18740 which can conflict with char $ac_func(); below. */
4f14bcd8 18741#include <assert.h>
f6bcfd97
BP
18742/* Override any gcc2 internal prototype to avoid an error. */
18743/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18744 builtin and then its argument prototype would still apply. */
18745char $ac_func();
18746
18747int main() {
18748
4f14bcd8
GD
18749/* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18753choke me
18754#else
a0b9e27f 18755$ac_func();
4f14bcd8
GD
18756#endif
18757
a0b9e27f
MB
18758; return 0; }
18759EOF
8b389fab 18760if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18761 rm -rf conftest*
18762 eval "ac_cv_func_$ac_func=yes"
18763else
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18766 rm -rf conftest*
18767 eval "ac_cv_func_$ac_func=no"
18768fi
18769rm -f conftest*
18770fi
18771
18772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18773 echo "$ac_t""yes" 1>&6
18774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18775 cat >> confdefs.h <<EOF
18776#define $ac_tr_func 1
18777EOF
18778 cat >> confdefs.h <<\EOF
4f14bcd8 18779#define HAVE_INET_ATON 1
a0b9e27f 18780EOF
4f14bcd8 18781
10f2d63a 18782else
a0b9e27f
MB
18783 echo "$ac_t""no" 1>&6
18784 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
8b389fab 18785echo "configure:18786: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18786ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18788 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18789else
a0b9e27f 18790 ac_save_LIBS="$LIBS"
4f14bcd8 18791LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18792cat > conftest.$ac_ext <<EOF
8b389fab 18793#line 18794 "configure"
10f2d63a 18794#include "confdefs.h"
6232543b 18795/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18796/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18797 builtin and then its argument prototype would still apply. */
18798char inet_aton();
18799
18800int main() {
18801inet_aton()
18802; return 0; }
18803EOF
8b389fab 18804if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18805 rm -rf conftest*
18806 eval "ac_cv_lib_$ac_lib_var=yes"
18807else
18808 echo "configure: failed program was:" >&5
18809 cat conftest.$ac_ext >&5
18810 rm -rf conftest*
18811 eval "ac_cv_lib_$ac_lib_var=no"
18812fi
18813rm -f conftest*
18814LIBS="$ac_save_LIBS"
4f14bcd8 18815
10f2d63a 18816fi
a0b9e27f
MB
18817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18818 echo "$ac_t""yes" 1>&6
18819 cat >> confdefs.h <<\EOF
18820#define HAVE_INET_ATON 1
18821EOF
10f2d63a 18822
a0b9e27f
MB
18823else
18824 echo "$ac_t""no" 1>&6
18825fi
247f5006 18826
a0b9e27f 18827
10f2d63a 18828fi
4f14bcd8 18829done
10f2d63a 18830
8284b0c5 18831
4f14bcd8 18832if test "x$INET_LINK" != "x"; then
a0b9e27f 18833 cat >> confdefs.h <<\EOF
4f14bcd8 18834#define HAVE_INET_ADDR 1
a0b9e27f 18835EOF
4f14bcd8 18836
3d63bc3a 18837 INET_LINK=" -l$INET_LINK"
6232543b 18838fi
10f2d63a 18839
1e487827 18840fi
703e0a69 18841
8284b0c5 18842
a0b9e27f 18843cat > confcache <<\EOF
4f14bcd8
GD
18844# This file is a shell script that caches the results of configure
18845# tests run on this system so they can be shared between configure
a0b9e27f
MB
18846# scripts and configure runs. It is not useful on other systems.
18847# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18848#
a0b9e27f
MB
18849# By default, configure uses ./config.cache as the cache file,
18850# creating it if it does not exist already. You can give configure
18851# the --cache-file=FILE option to use a different cache file; that is
18852# what configure does when it calls configure scripts in
18853# subdirectories, so they share the cache.
18854# Giving --cache-file=/dev/null disables caching, for debugging configure.
18855# config.status only pays attention to the cache file if you give it the
18856# --recheck option to rerun configure.
4f14bcd8 18857#
a0b9e27f 18858EOF
4f14bcd8
GD
18859# The following way of writing the cache mishandles newlines in values,
18860# but we know of no workaround that is simple, portable, and efficient.
18861# So, don't put newlines in cache variables' values.
18862# Ultrix sh set writes to stderr and can't be redirected directly,
18863# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18864(set) 2>&1 |
18865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18866 *ac_space=\ *)
18867 # `set' does not quote correctly, so add quotes (double-quote substitution
18868 # turns \\\\ into \\, and sed turns \\ into \).
18869 sed -n \
18870 -e "s/'/'\\\\''/g" \
18871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18872 ;;
18873 *)
18874 # `set' quotes correctly as required by POSIX, so do not add quotes.
18875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18876 ;;
18877 esac >> confcache
18878if cmp -s $cache_file confcache; then
18879 :
18880else
4f14bcd8 18881 if test -w $cache_file; then
a0b9e27f
MB
18882 echo "updating cache $cache_file"
18883 cat confcache > $cache_file
f6bcfd97 18884 else
4f14bcd8 18885 echo "not updating unwritable cache $cache_file"
f6bcfd97 18886 fi
4f14bcd8
GD
18887fi
18888rm -f confcache
f6bcfd97 18889
8284b0c5 18890
a0b9e27f 18891
009fead0 18892CPP_MT_FLAG=
4f14bcd8
GD
18893if test "$TOOLKIT" != "MSW"; then
18894
a0b9e27f 18895
7274f1c7 18896 THREADS_LINK=
009fead0 18897 THREADS_CFLAGS=
7274f1c7
RL
18898
18899 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 18900 if test "$USE_BEOS" = 1; then
a0b9e27f 18901 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18902 wxUSE_THREADS="no"
18903 fi
4f14bcd8 18904 fi
4f14bcd8 18905
7274f1c7 18906 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18907
18908
009fead0
VZ
18909 THREAD_OPTS="-pthread"
18910 case "${host}" in
18911 *-*-solaris2* | *-*-sunos4* )
18912 if test "x$GCC" = "xyes"; then
126be6b4 18913 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18914 else
18915 THREAD_OPTS="-mt $THREAD_OPTS"
18916 fi
18917 ;;
18918 *-*-freebsd*)
18919 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18920 ;;
17234b26
MB
18921 *-*-darwin* | *-*-cygwin* )
18922 THREAD_OPTS=""
4101db81 18923 ;;
8f4a9a10 18924 *-*-aix*)
009fead0
VZ
18925 THREAD_OPTS="pthreads"
18926 ;;
4f5a7f74
VZ
18927 *-hp-hpux* )
18928 if test "x$GCC" != "xyes"; then
18929 THREAD_OPTS=""
18930 fi
89e3b3e4
VZ
18931 ;;
18932
18933 *-*-irix* )
18934 if test "x$GCC" = "xyes"; then
18935 THREAD_OPTS=""
18936 fi
18937 ;;
18938
18939 *-*-*UnixWare*)
18940 if test "x$GCC" != "xyes"; then
18941 THREAD_OPTS="-Ethread"
18942 fi
18943 ;;
009fead0 18944 esac
4f14bcd8 18945
02a1dfba 18946 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18947
009fead0
VZ
18948 THREADS_OK=no
18949 for flag in $THREAD_OPTS; do
18950 case $flag in
18951 none)
a0b9e27f 18952 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
8b389fab 18953echo "configure:18954: checking whether pthreads work without any flags" >&5
009fead0 18954 ;;
698dcdb6 18955
009fead0 18956 -*)
a0b9e27f 18957 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
8b389fab 18958echo "configure:18959: checking whether pthreads work with $flag" >&5
009fead0
VZ
18959 THREADS_CFLAGS="$flag"
18960 ;;
698dcdb6 18961
009fead0 18962 *)
a0b9e27f 18963 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
8b389fab 18964echo "configure:18965: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18965 THREADS_LINK="-l$flag"
18966 ;;
18967 esac
10f2d63a 18968
009fead0
VZ
18969 save_LIBS="$LIBS"
18970 save_CFLAGS="$CFLAGS"
18971 LIBS="$THREADS_LINK $LIBS"
04727afd 18972 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18973
a0b9e27f 18974 cat > conftest.$ac_ext <<EOF
8b389fab 18975#line 18976 "configure"
009fead0
VZ
18976#include "confdefs.h"
18977#include <pthread.h>
a0b9e27f 18978int main() {
009fead0 18979pthread_create(0,0,0,0);
a0b9e27f
MB
18980; return 0; }
18981EOF
8b389fab 18982if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18983 rm -rf conftest*
009fead0 18984 THREADS_OK=yes
10f2d63a 18985else
a0b9e27f
MB
18986 echo "configure: failed program was:" >&5
18987 cat conftest.$ac_ext >&5
6232543b 18988fi
a0b9e27f 18989rm -f conftest*
698dcdb6 18990
009fead0
VZ
18991 LIBS="$save_LIBS"
18992 CFLAGS="$save_CFLAGS"
d9b9876f 18993
a0b9e27f 18994 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18995 if test "x$THREADS_OK" = "xyes"; then
18996 break;
18997 fi
d9b9876f 18998
009fead0
VZ
18999 THREADS_LINK=""
19000 THREADS_CFLAGS=""
19001 done
4f14bcd8 19002
009fead0
VZ
19003 if test "x$THREADS_OK" != "xyes"; then
19004 wxUSE_THREADS=no
a0b9e27f 19005 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 19006 else
db82f09e
VZ
19007 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19008 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 19009
a0b9e27f 19010 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
8b389fab 19011echo "configure:19012: checking if more special flags are required for pthreads" >&5
009fead0
VZ
19012 flag=no
19013 case "${host}" in
2b5f62a0
VZ
19014 *-aix*)
19015 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19016 flag="-D_THREAD_SAFE"
19017 ;;
19018 *-freebsd*)
009fead0
VZ
19019 flag="-D_THREAD_SAFE"
19020 ;;
06313569
GD
19021 *-hp-hpux* )
19022 flag="-D_REENTRANT"
4f5a7f74
VZ
19023 if test "x$GCC" != "xyes"; then
19024 flag="$flag -D_RWSTD_MULTI_THREAD"
19025 fi
06313569 19026 ;;
009fead0
VZ
19027 *solaris* | alpha*-osf*)
19028 flag="-D_REENTRANT"
19029 ;;
19030 esac
a0b9e27f 19031 echo "$ac_t""${flag}" 1>&6
009fead0 19032 if test "x$flag" != xno; then
04727afd 19033 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
19034 fi
19035
009fead0 19036 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 19037 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
19038 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19039 fi
19040 fi
4f14bcd8 19041 fi
4f14bcd8 19042
7274f1c7 19043 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 19044 for ac_func in thr_setconcurrency
4f14bcd8 19045do
a0b9e27f 19046echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 19047echo "configure:19048: checking for $ac_func" >&5
a0b9e27f
MB
19048if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19049 echo $ac_n "(cached) $ac_c" 1>&6
19050else
19051 cat > conftest.$ac_ext <<EOF
8b389fab 19052#line 19053 "configure"
d9b9876f 19053#include "confdefs.h"
4f14bcd8 19054/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19055 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
19056#include <assert.h>
19057/* Override any gcc2 internal prototype to avoid an error. */
19058/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19059 builtin and then its argument prototype would still apply. */
19060char $ac_func();
19061
19062int main() {
19063
4f14bcd8
GD
19064/* The GNU C library defines this for functions which it implements
19065 to always fail with ENOSYS. Some functions are actually named
19066 something starting with __ and the normal name is an alias. */
19067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19068choke me
19069#else
a0b9e27f 19070$ac_func();
4f14bcd8
GD
19071#endif
19072
a0b9e27f
MB
19073; return 0; }
19074EOF
8b389fab 19075if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19076 rm -rf conftest*
19077 eval "ac_cv_func_$ac_func=yes"
19078else
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19081 rm -rf conftest*
19082 eval "ac_cv_func_$ac_func=no"
19083fi
19084rm -f conftest*
19085fi
698dcdb6 19086
a0b9e27f
MB
19087if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19088 echo "$ac_t""yes" 1>&6
19089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19090 cat >> confdefs.h <<EOF
19091#define $ac_tr_func 1
19092EOF
19093
19094else
19095 echo "$ac_t""no" 1>&6
10f2d63a 19096fi
4f14bcd8 19097done
10f2d63a 19098
8284b0c5 19099
a0b9e27f 19100 for ac_hdr in sched.h
4f14bcd8 19101do
a0b9e27f
MB
19102ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19103echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 19104echo "configure:19105: checking for $ac_hdr" >&5
a0b9e27f
MB
19105if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19106 echo $ac_n "(cached) $ac_c" 1>&6
19107else
19108 cat > conftest.$ac_ext <<EOF
8b389fab 19109#line 19110 "configure"
247f5006 19110#include "confdefs.h"
a0b9e27f
MB
19111#include <$ac_hdr>
19112EOF
19113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 19114{ (eval echo configure:19115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
19115ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19116if test -z "$ac_err"; then
19117 rm -rf conftest*
19118 eval "ac_cv_header_$ac_safe=yes"
19119else
19120 echo "$ac_err" >&5
19121 echo "configure: failed program was:" >&5
4f14bcd8 19122 cat conftest.$ac_ext >&5
a0b9e27f
MB
19123 rm -rf conftest*
19124 eval "ac_cv_header_$ac_safe=no"
13111b2a 19125fi
a0b9e27f 19126rm -f conftest*
10f2d63a 19127fi
a0b9e27f
MB
19128if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19129 echo "$ac_t""yes" 1>&6
19130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19131 cat >> confdefs.h <<EOF
19132#define $ac_tr_hdr 1
19133EOF
19134
19135else
19136 echo "$ac_t""no" 1>&6
f6bcfd97 19137fi
4f14bcd8 19138done
f6bcfd97 19139
009fead0 19140 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 19141 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
8b389fab 19142echo "configure:19143: checking for sched_yield" >&5
a0b9e27f
MB
19143if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19145else
a0b9e27f 19146 cat > conftest.$ac_ext <<EOF
8b389fab 19147#line 19148 "configure"
4f14bcd8 19148#include "confdefs.h"
009fead0 19149/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19150 which can conflict with char sched_yield(); below. */
009fead0 19151#include <assert.h>
4f14bcd8
GD
19152/* Override any gcc2 internal prototype to avoid an error. */
19153/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19154 builtin and then its argument prototype would still apply. */
19155char sched_yield();
19156
19157int main() {
19158
009fead0
VZ
19159/* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19163choke me
19164#else
a0b9e27f 19165sched_yield();
009fead0
VZ
19166#endif
19167
a0b9e27f
MB
19168; return 0; }
19169EOF
8b389fab 19170if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19171 rm -rf conftest*
19172 eval "ac_cv_func_sched_yield=yes"
19173else
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19176 rm -rf conftest*
19177 eval "ac_cv_func_sched_yield=no"
19178fi
19179rm -f conftest*
19180fi
19181
19182if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19183 echo "$ac_t""yes" 1>&6
19184 cat >> confdefs.h <<\EOF
4f14bcd8 19185#define HAVE_SCHED_YIELD 1
a0b9e27f 19186EOF
10f2d63a 19187
4f14bcd8 19188else
a0b9e27f 19189 echo "$ac_t""no" 1>&6
009fead0 19190
a0b9e27f 19191 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
8b389fab 19192echo "configure:19193: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
19193ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19195 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 19196else
a0b9e27f 19197 ac_save_LIBS="$LIBS"
4f14bcd8 19198LIBS="-lposix4 $LIBS"
a0b9e27f 19199cat > conftest.$ac_ext <<EOF
8b389fab 19200#line 19201 "configure"
4f14bcd8
GD
19201#include "confdefs.h"
19202/* Override any gcc2 internal prototype to avoid an error. */
19203/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19204 builtin and then its argument prototype would still apply. */
19205char sched_yield();
19206
19207int main() {
19208sched_yield()
19209; return 0; }
19210EOF
8b389fab 19211if { (eval echo configure:19212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19212 rm -rf conftest*
19213 eval "ac_cv_lib_$ac_lib_var=yes"
19214else
19215 echo "configure: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 rm -rf conftest*
19218 eval "ac_cv_lib_$ac_lib_var=no"
19219fi
19220rm -f conftest*
19221LIBS="$ac_save_LIBS"
19222
19223fi
19224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19225 echo "$ac_t""yes" 1>&6
19226 cat >> confdefs.h <<\EOF
4f14bcd8 19227#define HAVE_SCHED_YIELD 1
a0b9e27f 19228EOF
3d63bc3a 19229 POSIX4_LINK=" -lposix4"
4f14bcd8 19230else
a0b9e27f
MB
19231 echo "$ac_t""no" 1>&6
19232echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19233
54276ccf
VZ
19234fi
19235
a0b9e27f
MB
19236
19237
4f14bcd8 19238fi
698dcdb6 19239
009fead0 19240 fi
10f2d63a 19241
7274f1c7 19242 HAVE_PRIOR_FUNCS=0
a0b9e27f 19243 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
8b389fab 19244echo "configure:19245: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
19245if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19246 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19247else
a0b9e27f 19248 cat > conftest.$ac_ext <<EOF
8b389fab 19249#line 19250 "configure"
422107f9 19250#include "confdefs.h"
009fead0 19251/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19252 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 19253#include <assert.h>
4f14bcd8
GD
19254/* Override any gcc2 internal prototype to avoid an error. */
19255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19256 builtin and then its argument prototype would still apply. */
19257char pthread_attr_getschedpolicy();
19258
19259int main() {
19260
009fead0
VZ
19261/* The GNU C library defines this for functions which it implements
19262 to always fail with ENOSYS. Some functions are actually named
19263 something starting with __ and the normal name is an alias. */
19264#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19265choke me
19266#else
a0b9e27f 19267pthread_attr_getschedpolicy();
009fead0
VZ
19268#endif
19269
a0b9e27f
MB
19270; return 0; }
19271EOF
8b389fab 19272if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19273 rm -rf conftest*
19274 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19275else
19276 echo "configure: failed program was:" >&5
19277 cat conftest.$ac_ext >&5
19278 rm -rf conftest*
19279 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19280fi
19281rm -f conftest*
19282fi
19283
19284if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19285 echo "$ac_t""yes" 1>&6
19286 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
8b389fab 19287echo "configure:19288: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
19288if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 19290else
a0b9e27f 19291 cat > conftest.$ac_ext <<EOF
8b389fab 19292#line 19293 "configure"
a0b9e27f
MB
19293#include "confdefs.h"
19294/* System header to define __stub macros and hopefully few prototypes,
19295 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 19296#include <assert.h>
422107f9
VZ
19297/* Override any gcc2 internal prototype to avoid an error. */
19298/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19299 builtin and then its argument prototype would still apply. */
19300char pthread_attr_setschedparam();
19301
19302int main() {
19303
009fead0
VZ
19304/* The GNU C library defines this for functions which it implements
19305 to always fail with ENOSYS. Some functions are actually named
19306 something starting with __ and the normal name is an alias. */
19307#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19308choke me
19309#else
a0b9e27f 19310pthread_attr_setschedparam();
009fead0
VZ
19311#endif
19312
a0b9e27f
MB
19313; return 0; }
19314EOF
8b389fab 19315if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19316 rm -rf conftest*
19317 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19318else
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19321 rm -rf conftest*
19322 eval "ac_cv_func_pthread_attr_setschedparam=no"
19323fi
19324rm -f conftest*
19325fi
19326
19327if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19328 echo "$ac_t""yes" 1>&6
19329 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
8b389fab 19330echo "configure:19331: checking for sched_get_priority_max" >&5
a0b9e27f
MB
19331if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19333else
19334 cat > conftest.$ac_ext <<EOF
8b389fab 19335#line 19336 "configure"
422107f9 19336#include "confdefs.h"
ef33c576
VZ
19337/* System header to define __stub macros and hopefully few prototypes,
19338 which can conflict with char sched_get_priority_max(); below. */
009fead0 19339#include <assert.h>
4f14bcd8
GD
19340/* Override any gcc2 internal prototype to avoid an error. */
19341/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19342 builtin and then its argument prototype would still apply. */
19343char sched_get_priority_max();
19344
19345int main() {
19346
009fead0
VZ
19347/* The GNU C library defines this for functions which it implements
19348 to always fail with ENOSYS. Some functions are actually named
19349 something starting with __ and the normal name is an alias. */
19350#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19351choke me
19352#else
a0b9e27f 19353sched_get_priority_max();
009fead0
VZ
19354#endif
19355
a0b9e27f
MB
19356; return 0; }
19357EOF
8b389fab 19358if { (eval echo configure:19359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19359 rm -rf conftest*
19360 eval "ac_cv_func_sched_get_priority_max=yes"
19361else
19362 echo "configure: failed program was:" >&5
19363 cat conftest.$ac_ext >&5
19364 rm -rf conftest*
19365 eval "ac_cv_func_sched_get_priority_max=no"
19366fi
19367rm -f conftest*
19368fi
19369
19370if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19371 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
19372 HAVE_PRIOR_FUNCS=1
19373else
a0b9e27f
MB
19374 echo "$ac_t""no" 1>&6
19375echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
8b389fab 19376echo "configure:19377: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
19377ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19379 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19380else
a0b9e27f 19381 ac_save_LIBS="$LIBS"
4f14bcd8 19382LIBS="-lposix4 $LIBS"
a0b9e27f 19383cat > conftest.$ac_ext <<EOF
8b389fab 19384#line 19385 "configure"
422107f9
VZ
19385#include "confdefs.h"
19386/* Override any gcc2 internal prototype to avoid an error. */
19387/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19388 builtin and then its argument prototype would still apply. */
19389char sched_get_priority_max();
19390
19391int main() {
19392sched_get_priority_max()
19393; return 0; }
19394EOF
8b389fab 19395if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19396 rm -rf conftest*
19397 eval "ac_cv_lib_$ac_lib_var=yes"
19398else
19399 echo "configure: failed program was:" >&5
19400 cat conftest.$ac_ext >&5
19401 rm -rf conftest*
19402 eval "ac_cv_lib_$ac_lib_var=no"
19403fi
19404rm -f conftest*
19405LIBS="$ac_save_LIBS"
698dcdb6 19406
a0b9e27f
MB
19407fi
19408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19409 echo "$ac_t""yes" 1>&6
19410
7274f1c7
RL
19411 HAVE_PRIOR_FUNCS=1
19412 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
19413
19414else
19415 echo "$ac_t""no" 1>&6
4f14bcd8 19416fi
463abc64 19417
a0b9e27f 19418
328a083c 19419fi
463abc64 19420
a0b9e27f
MB
19421
19422else
19423 echo "$ac_t""no" 1>&6
7b4a847f 19424fi
579d8138 19425
a0b9e27f 19426
ef33c576
VZ
19427else
19428 echo "$ac_t""no" 1>&6
5c6fa7d2 19429fi
52127426 19430
8284b0c5 19431
7274f1c7 19432 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 19433 cat >> confdefs.h <<\EOF
4f14bcd8 19434#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 19435EOF
463abc64 19436
7274f1c7 19437 else
a0b9e27f 19438 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 19439 fi
463abc64 19440
a0b9e27f 19441 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
8b389fab 19442echo "configure:19443: checking for pthread_cancel" >&5
a0b9e27f
MB
19443if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19444 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 19445else
a0b9e27f 19446 cat > conftest.$ac_ext <<EOF
8b389fab 19447#line 19448 "configure"
422107f9 19448#include "confdefs.h"
009fead0 19449/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19450 which can conflict with char pthread_cancel(); below. */
009fead0 19451#include <assert.h>
422107f9
VZ
19452/* Override any gcc2 internal prototype to avoid an error. */
19453/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19454 builtin and then its argument prototype would still apply. */
19455char pthread_cancel();
19456
19457int main() {
19458
009fead0
VZ
19459/* The GNU C library defines this for functions which it implements
19460 to always fail with ENOSYS. Some functions are actually named
19461 something starting with __ and the normal name is an alias. */
19462#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19463choke me
19464#else
a0b9e27f 19465pthread_cancel();
009fead0
VZ
19466#endif
19467
a0b9e27f
MB
19468; return 0; }
19469EOF
8b389fab 19470if { (eval echo configure:19471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19471 rm -rf conftest*
19472 eval "ac_cv_func_pthread_cancel=yes"
19473else
19474 echo "configure: failed program was:" >&5
19475 cat conftest.$ac_ext >&5
19476 rm -rf conftest*
19477 eval "ac_cv_func_pthread_cancel=no"
19478fi
19479rm -f conftest*
19480fi
19481
19482if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19483 echo "$ac_t""yes" 1>&6
19484 cat >> confdefs.h <<\EOF
4f14bcd8 19485#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19486EOF
4f14bcd8 19487
698dcdb6 19488else
a0b9e27f
MB
19489 echo "$ac_t""no" 1>&6
19490echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19491fi
19492
5c6fa7d2 19493
a0b9e27f 19494 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8b389fab 19495echo "configure:19496: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19496if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19497 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19498else
a0b9e27f
MB
19499
19500 cat > conftest.$ac_ext <<EOF
8b389fab 19501#line 19502 "configure"
4f14bcd8
GD
19502#include "confdefs.h"
19503#include <pthread.h>
a0b9e27f 19504int main() {
4f14bcd8 19505
7274f1c7
RL
19506 pthread_cleanup_push(NULL, NULL);
19507 pthread_cleanup_pop(0);
a0b9e27f
MB
19508
19509; return 0; }
19510EOF
8b389fab 19511if { (eval echo configure:19512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19512 rm -rf conftest*
19513
7274f1c7 19514 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19515
4f14bcd8 19516else
a0b9e27f
MB
19517 echo "configure: failed program was:" >&5
19518 cat conftest.$ac_ext >&5
19519 rm -rf conftest*
19520
7274f1c7 19521 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19522
5c6fa7d2 19523fi
a0b9e27f
MB
19524rm -f conftest*
19525
247f5006 19526fi
a0b9e27f
MB
19527
19528echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19529
7274f1c7 19530 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19531 cat >> confdefs.h <<\EOF
4f14bcd8 19532#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19533EOF
c7a2bf27 19534
7274f1c7 19535 fi
4f14bcd8 19536
a0b9e27f
MB
19537
19538 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
8b389fab 19539echo "configure:19540: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19540if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19541 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19542else
a0b9e27f
MB
19543
19544 cat > conftest.$ac_ext <<EOF
8b389fab 19545#line 19546 "configure"
0dcf9893 19546#include "confdefs.h"
4f14bcd8 19547#include <pthread.h>
a0b9e27f 19548int main() {
4f14bcd8 19549
7274f1c7
RL
19550 pthread_mutexattr_t attr;
19551 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19552
19553; return 0; }
19554EOF
8b389fab 19555if { (eval echo configure:19556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19556 rm -rf conftest*
19557
7274f1c7 19558 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19559
3fed1840 19560else
a0b9e27f
MB
19561 echo "configure: failed program was:" >&5
19562 cat conftest.$ac_ext >&5
19563 rm -rf conftest*
19564
7274f1c7 19565 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19566
19567
5c6fa7d2 19568fi
a0b9e27f
MB
19569rm -f conftest*
19570
247f5006 19571fi
a0b9e27f
MB
19572
19573echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19574
7274f1c7 19575 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19576 cat >> confdefs.h <<\EOF
4f14bcd8 19577#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19578EOF
4f14bcd8 19579
7274f1c7 19580 else
a0b9e27f 19581 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
8b389fab 19582echo "configure:19583: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19583if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
19585else
19586
19587 cat > conftest.$ac_ext <<EOF
8b389fab 19588#line 19589 "configure"
3fed1840 19589#include "confdefs.h"
4f14bcd8 19590#include <pthread.h>
a0b9e27f 19591int main() {
4f14bcd8 19592
7274f1c7 19593 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19594
19595; return 0; }
19596EOF
8b389fab 19597if { (eval echo configure:19598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19598 rm -rf conftest*
19599
7274f1c7 19600 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19601
698dcdb6 19602else
a0b9e27f
MB
19603 echo "configure: failed program was:" >&5
19604 cat conftest.$ac_ext >&5
19605 rm -rf conftest*
19606
7274f1c7 19607 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19608
19609
5c6fa7d2 19610fi
a0b9e27f
MB
19611rm -f conftest*
19612
247f5006 19613fi
a0b9e27f
MB
19614
19615echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19616 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19617 cat >> confdefs.h <<\EOF
4f14bcd8 19618#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19619EOF
3fed1840 19620
7274f1c7 19621 else
a0b9e27f 19622 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19623 fi
19624 fi
7274f1c7 19625 fi
3fed1840 19626
a0b9e27f
MB
19627else
19628 if test "$wxUSE_THREADS" = "yes" ; then
19629 case "${host}" in
19630 *-*-mingw32* )
ca8e52b3 19631 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
8b389fab 19632echo "configure:19633: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19633if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19634 echo $ac_n "(cached) $ac_c" 1>&6
19635else
19636
19637 CFLAGS_OLD="$CFLAGS"
19638 CFLAGS="$CFLAGS -mthreads"
19639 cat > conftest.$ac_ext <<EOF
8b389fab 19640#line 19641 "configure"
ca8e52b3
VZ
19641#include "confdefs.h"
19642
19643int main() {
19644
19645; return 0; }
19646EOF
8b389fab 19647if { (eval echo configure:19648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19648 rm -rf conftest*
19649 wx_cv_cflags_mthread=yes
19650else
19651 echo "configure: failed program was:" >&5
19652 cat conftest.$ac_ext >&5
19653 rm -rf conftest*
19654 wx_cv_cflags_mthread=no
19655
19656fi
19657rm -f conftest*
19658
19659
19660fi
19661
19662echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19663
19664 if test "$wx_cv_cflags_mthread" = "yes"; then
19665 CXXFLAGS="$CXXFLAGS -mthreads"
19666 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19667 LDFLAGS="$LDFLAGS -mthreads"
19668 else
19669 CFLAGS="$CFLAGS_OLD"
19670 fi
a0b9e27f
MB
19671 ;;
19672 esac
19673 fi
4f14bcd8
GD
19674fi
19675
19676if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19677 cat >> confdefs.h <<\EOF
4f14bcd8 19678#define wxUSE_THREADS 1
a0b9e27f 19679EOF
7b6058cd 19680
8284b0c5 19681
4f14bcd8 19682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19683else
4f14bcd8 19684 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19685 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
8b389fab 19686echo "configure:19687: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19687 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19688 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19689 echo "$ac_t""yes" 1>&6
4f14bcd8 19690 else
a0b9e27f 19691 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19692 fi
19693 fi
19694fi
19695
19696if test "$WXGTK20" = 1 ; then
a0b9e27f 19697 cat >> confdefs.h <<EOF
4f14bcd8 19698#define __WXGTK20__ $WXGTK20
a0b9e27f 19699EOF
4f14bcd8
GD
19700
19701 WXGTK12=1
10f2d63a 19702fi
4f14bcd8
GD
19703
19704if test "$WXGTK12" = 1 ; then
a0b9e27f 19705 cat >> confdefs.h <<EOF
4f14bcd8 19706#define __WXGTK12__ $WXGTK12
a0b9e27f 19707EOF
4f14bcd8 19708
10f2d63a 19709fi
698dcdb6 19710
4f14bcd8 19711if test "$WXGTK127" = 1 ; then
a0b9e27f 19712 cat >> confdefs.h <<EOF
4f14bcd8 19713#define __WXGTK127__ $WXGTK127
a0b9e27f 19714EOF
4f14bcd8 19715
698dcdb6 19716fi
10f2d63a 19717
4f14bcd8
GD
19718WXDEBUG=
19719
19720if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19721 WXDEBUG="-g"
19722 wxUSE_OPTIMISE=no
698dcdb6 19723fi
4f14bcd8
GD
19724
19725if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19726 wxUSE_DEBUG_INFO=yes
19727 WXDEBUG="-ggdb"
10f2d63a
VZ
19728fi
19729
4f14bcd8 19730if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19731 cat >> confdefs.h <<\EOF
4f14bcd8 19732#define WXDEBUG 1
a0b9e27f 19733EOF
4f14bcd8
GD
19734
19735 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19736else
4f14bcd8
GD
19737 if test "$wxUSE_GTK" = 1 ; then
19738 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19739 fi
19740fi
19741
19742if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19743 cat >> confdefs.h <<\EOF
4f14bcd8 19744#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19745EOF
4f14bcd8 19746
a0b9e27f 19747 cat >> confdefs.h <<\EOF
4f14bcd8 19748#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19749EOF
4f14bcd8 19750
a0b9e27f 19751 cat >> confdefs.h <<\EOF
4f14bcd8 19752#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19753EOF
4f14bcd8
GD
19754
19755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19756fi
19757
19758if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19759 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19760fi
19761
19762PROFILE=
19763if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19764 PROFILE=" -pg"
10f2d63a
VZ
19765fi
19766
009fead0
VZ
19767CODE_GEN_FLAGS=
19768CODE_GEN_FLAGS_CXX=
88e30f2b 19769if test "$GCC" = "yes" ; then
4f14bcd8
GD
19770 if test "$wxUSE_NO_RTTI" = "yes" ; then
19771 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19772 fi
4f14bcd8
GD
19773 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19774 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19775 fi
19776 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19777 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19778 fi
4f14bcd8
GD
19779 if test "$USE_WIN32" = 1 ; then
19780 # I'm not even really sure what this was ever added to solve,
19781 # but someone added it for mingw native builds, so I guess
19782 # they had a reason, right??
19783 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19784 fi
1d1b75ac 19785
2b5f62a0 19786 case "${host}" in
1d1b75ac
VZ
19787 powerpc*-*-aix* )
19788 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19789 ;;
2b5f62a0
VZ
19790 *-hppa* )
19791 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19792 ;;
1d1b75ac 19793 esac
4f14bcd8
GD
19794fi
19795
af7b5345 19796OPTIMISE=
4f14bcd8 19797if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
19798 if test "$GCC" = yes ; then
19799 OPTIMISE="-O0"
19800 fi
4f14bcd8
GD
19801else
19802 if test "$GCC" = yes ; then
19803 OPTIMISE="-O2"
af7b5345
VZ
19804
19805 case "${host}" in
4f14bcd8
GD
19806 i586-*-*|i686-*-* )
19807 OPTIMISE="${OPTIMISE} "
19808 ;;
19809 esac
19810 else
19811 OPTIMISE="-O"
19812 fi
19813fi
19814
8d90d2f2 19815
4f14bcd8 19816if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19817 cat >> confdefs.h <<\EOF
4f14bcd8 19818#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19819EOF
4f14bcd8 19820
8284b0c5 19821
4f14bcd8
GD
19822 WXWIN_COMPATIBILITY_2_2="yes"
19823fi
19824
65d8ef1e 19825if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
a0b9e27f 19826 cat >> confdefs.h <<\EOF
4f14bcd8 19827#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19828EOF
4f14bcd8 19829
8d90d2f2
VZ
19830
19831 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
19832fi
19833
65d8ef1e
VS
19834if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19835 cat >> confdefs.h <<\EOF
19836#define WXWIN_COMPATIBILITY_2_4 1
19837EOF
19838
19839fi
19840
8284b0c5 19841
10f2d63a 19842if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19843 cat >> confdefs.h <<\EOF
10f2d63a 19844#define wxUSE_GUI 1
a0b9e27f 19845EOF
10f2d63a 19846
8284b0c5 19847
10f2d63a 19848 else
a0b9e27f 19849 cat >> confdefs.h <<\EOF
10f2d63a 19850#define wxUSE_NOGUI 1
a0b9e27f 19851EOF
10f2d63a
VZ
19852
19853fi
19854
8284b0c5 19855
10f2d63a 19856if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19857 cat >> confdefs.h <<\EOF
10f2d63a 19858#define wxUSE_UNIX 1
a0b9e27f 19859EOF
10f2d63a
VZ
19860
19861fi
19862
8284b0c5 19863
10f2d63a 19864if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19865 cat >> confdefs.h <<\EOF
10f2d63a 19866#define wxUSE_APPLE_IEEE 1
a0b9e27f 19867EOF
10f2d63a
VZ
19868
19869fi
19870
1e6feb95 19871if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19872 cat >> confdefs.h <<\EOF
1e6feb95 19873#define wxUSE_TIMER 1
a0b9e27f 19874EOF
1e6feb95
VZ
19875
19876fi
19877
10f2d63a 19878if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19879 cat >> confdefs.h <<\EOF
10f2d63a 19880#define wxUSE_WAVE 1
a0b9e27f 19881EOF
10f2d63a
VZ
19882
19883fi
19884
1e6feb95 19885if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19886 cat >> confdefs.h <<\EOF
1e6feb95 19887#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19888EOF
1e6feb95
VZ
19889
19890fi
19891
19892if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19893 cat >> confdefs.h <<\EOF
1e6feb95 19894#define wxUSE_STOPWATCH 1
a0b9e27f 19895EOF
1e6feb95
VZ
19896
19897fi
19898
19899if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19900 cat >> confdefs.h <<\EOF
1e6feb95 19901#define wxUSE_DATETIME 1
a0b9e27f 19902EOF
1e6feb95
VZ
19903
19904fi
19905
10f2d63a 19906if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19907 cat >> confdefs.h <<\EOF
10f2d63a 19908#define wxUSE_FILE 1
a0b9e27f 19909EOF
10f2d63a
VZ
19910
19911fi
19912
1e6feb95 19913if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19914 cat >> confdefs.h <<\EOF
1e6feb95 19915#define wxUSE_FFILE 1
a0b9e27f 19916EOF
1e6feb95
VZ
19917
19918fi
19919
24528b0c 19920if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19921 cat >> confdefs.h <<\EOF
24528b0c 19922#define wxUSE_FILESYSTEM 1
a0b9e27f 19923EOF
24528b0c
VS
19924
19925fi
19926
10f2d63a 19927if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19928 cat >> confdefs.h <<\EOF
10f2d63a 19929#define wxUSE_FS_INET 1
a0b9e27f 19930EOF
10f2d63a
VZ
19931
19932fi
19933
19934if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19935 cat >> confdefs.h <<\EOF
10f2d63a 19936#define wxUSE_FS_ZIP 1
a0b9e27f 19937EOF
10f2d63a
VZ
19938
19939fi
19940
19941if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19942 cat >> confdefs.h <<\EOF
10f2d63a 19943#define wxUSE_ZIPSTREAM 1
a0b9e27f 19944EOF
10f2d63a
VZ
19945
19946fi
19947
eb4efbdc 19948if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19949 cat >> confdefs.h <<\EOF
eb4efbdc 19950#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19951EOF
eb4efbdc
VZ
19952
19953fi
19954
4f3c5f06 19955if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19956 cat >> confdefs.h <<\EOF
4f3c5f06 19957#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19958EOF
4f3c5f06
VZ
19959
19960fi
19961
10f2d63a 19962if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19963 cat >> confdefs.h <<\EOF
10f2d63a 19964#define wxUSE_BUSYINFO 1
a0b9e27f 19965EOF
10f2d63a
VZ
19966
19967fi
19968
19969if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19970 cat >> confdefs.h <<\EOF
10f2d63a 19971#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19972EOF
10f2d63a
VZ
19973
19974fi
19975
a3a584a7 19976if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19977 cat >> confdefs.h <<\EOF
a3a584a7 19978#define wxUSE_TEXTBUFFER 1
a0b9e27f 19979EOF
a3a584a7
VZ
19980
19981fi
19982
10f2d63a 19983if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19984 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19985 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19986 else
a0b9e27f 19987 cat >> confdefs.h <<\EOF
10f2d63a 19988#define wxUSE_TEXTFILE 1
a0b9e27f 19989EOF
10f2d63a
VZ
19990
19991 fi
19992fi
19993
19994if test "$wxUSE_CONFIG" = "yes" ; then
19995 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19996 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19997 else
a0b9e27f 19998 cat >> confdefs.h <<\EOF
10f2d63a 19999#define wxUSE_CONFIG 1
a0b9e27f 20000EOF
10f2d63a
VZ
20001
20002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20003 fi
20004fi
20005
20006if test "$wxUSE_INTL" = "yes" ; then
20007 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 20008 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 20009 else
a0b9e27f 20010 cat >> confdefs.h <<\EOF
10f2d63a 20011#define wxUSE_INTL 1
a0b9e27f 20012EOF
10f2d63a
VZ
20013
20014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 20015 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
20016 fi
20017fi
20018
20019if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 20020 cat >> confdefs.h <<\EOF
10f2d63a 20021#define wxUSE_LOG 1
a0b9e27f 20022EOF
10f2d63a 20023
8284b0c5 20024
d73be714 20025 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 20026 cat >> confdefs.h <<\EOF
d73be714 20027#define wxUSE_LOGGUI 1
a0b9e27f 20028EOF
d73be714
VZ
20029
20030 fi
20031
20032 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 20033 cat >> confdefs.h <<\EOF
d73be714 20034#define wxUSE_LOGWINDOW 1
a0b9e27f 20035EOF
69d27ff7
MB
20036
20037 fi
20038
20039 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 20040 cat >> confdefs.h <<\EOF
69d27ff7 20041#define wxUSE_LOG_DIALOG 1
a0b9e27f 20042EOF
d73be714
VZ
20043
20044 fi
10f2d63a
VZ
20045fi
20046
20047if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 20048 cat >> confdefs.h <<\EOF
10f2d63a 20049#define wxUSE_LONGLONG 1
a0b9e27f 20050EOF
10f2d63a
VZ
20051
20052fi
20053
e8f65ba6 20054if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 20055 cat >> confdefs.h <<\EOF
e8f65ba6 20056#define wxUSE_GEOMETRY 1
a0b9e27f 20057EOF
e8f65ba6
RR
20058
20059fi
20060
10f2d63a 20061if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 20062 cat >> confdefs.h <<\EOF
10f2d63a 20063#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 20064EOF
10f2d63a 20065
70f7a477 20066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
20067fi
20068
20069if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 20070 cat >> confdefs.h <<\EOF
10f2d63a 20071#define wxUSE_STREAMS 1
a0b9e27f 20072EOF
10f2d63a
VZ
20073
20074fi
20075
5c6fa7d2 20076
8284b0c5 20077if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 20078 for ac_func in strptime
83307f33 20079do
a0b9e27f 20080echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 20081echo "configure:20082: checking for $ac_func" >&5
a0b9e27f
MB
20082if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20083 echo $ac_n "(cached) $ac_c" 1>&6
20084else
20085 cat > conftest.$ac_ext <<EOF
8b389fab 20086#line 20087 "configure"
83307f33
VZ
20087#include "confdefs.h"
20088/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20089 which can conflict with char $ac_func(); below. */
83307f33
VZ
20090#include <assert.h>
20091/* Override any gcc2 internal prototype to avoid an error. */
20092/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20093 builtin and then its argument prototype would still apply. */
20094char $ac_func();
20095
20096int main() {
20097
83307f33
VZ
20098/* The GNU C library defines this for functions which it implements
20099 to always fail with ENOSYS. Some functions are actually named
20100 something starting with __ and the normal name is an alias. */
20101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20102choke me
20103#else
a0b9e27f 20104$ac_func();
83307f33
VZ
20105#endif
20106
a0b9e27f
MB
20107; return 0; }
20108EOF
8b389fab 20109if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20110 rm -rf conftest*
20111 eval "ac_cv_func_$ac_func=yes"
20112else
20113 echo "configure: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20115 rm -rf conftest*
20116 eval "ac_cv_func_$ac_func=no"
20117fi
20118rm -f conftest*
20119fi
83307f33 20120
a0b9e27f
MB
20121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20122 echo "$ac_t""yes" 1>&6
20123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20124 cat >> confdefs.h <<EOF
20125#define $ac_tr_func 1
20126EOF
20127
20128else
20129 echo "$ac_t""no" 1>&6
83307f33
VZ
20130fi
20131done
20132
5c6fa7d2 20133
a0b9e27f 20134 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
8b389fab 20135echo "configure:20136: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
20136if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20137 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 20138else
a0b9e27f
MB
20139
20140 cat > conftest.$ac_ext <<EOF
8b389fab 20141#line 20142 "configure"
360d6699
VZ
20142#include "confdefs.h"
20143
b4085ce6 20144 #include <time.h>
a0b9e27f
MB
20145
20146int main() {
360d6699
VZ
20147
20148 int tz;
4f11a343 20149 tz = timezone;
a0b9e27f
MB
20150
20151; return 0; }
20152EOF
8b389fab 20153if { (eval echo configure:20154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20154 rm -rf conftest*
20155
4f11a343 20156 wx_cv_var_timezone=timezone
a0b9e27f 20157
360d6699 20158else
a0b9e27f
MB
20159 echo "configure: failed program was:" >&5
20160 cat conftest.$ac_ext >&5
20161 rm -rf conftest*
20162
20163 cat > conftest.$ac_ext <<EOF
8b389fab 20164#line 20165 "configure"
360d6699
VZ
20165#include "confdefs.h"
20166
b4085ce6 20167 #include <time.h>
a0b9e27f
MB
20168
20169int main() {
360d6699
VZ
20170
20171 int tz;
20172 tz = _timezone;
a0b9e27f
MB
20173
20174; return 0; }
20175EOF
8b389fab 20176if { (eval echo configure:20177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20177 rm -rf conftest*
20178
360d6699 20179 wx_cv_var_timezone=_timezone
a0b9e27f 20180
5357c8e8 20181else
a0b9e27f
MB
20182 echo "configure: failed program was:" >&5
20183 cat conftest.$ac_ext >&5
20184 rm -rf conftest*
20185
20186 cat > conftest.$ac_ext <<EOF
8b389fab 20187#line 20188 "configure"
5357c8e8
VZ
20188#include "confdefs.h"
20189
b4085ce6 20190 #include <time.h>
a0b9e27f
MB
20191
20192int main() {
5357c8e8
VZ
20193
20194 int tz;
4f11a343 20195 tz = __timezone;
a0b9e27f
MB
20196
20197; return 0; }
20198EOF
8b389fab 20199if { (eval echo configure:20200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20200 rm -rf conftest*
20201
4f11a343 20202 wx_cv_var_timezone=__timezone
a0b9e27f 20203
360d6699 20204else
a0b9e27f
MB
20205 echo "configure: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20207 rm -rf conftest*
20208
f9bc1684 20209 if test "$USE_DOS" = 0 ; then
a0b9e27f 20210 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 20211 fi
a0b9e27f
MB
20212
20213
328a083c 20214fi
a0b9e27f
MB
20215rm -f conftest*
20216
20217
7b4a847f 20218fi
a0b9e27f
MB
20219rm -f conftest*
20220
20221
5c6fa7d2 20222fi
a0b9e27f
MB
20223rm -f conftest*
20224
20225
247f5006 20226fi
a0b9e27f
MB
20227
20228echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 20229
f9bc1684 20230 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 20231 cat >> confdefs.h <<EOF
360d6699 20232#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 20233EOF
360d6699 20234
f9bc1684 20235 fi
698dcdb6 20236
a0b9e27f 20237 for ac_func in localtime
afc31813 20238do
a0b9e27f 20239echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 20240echo "configure:20241: checking for $ac_func" >&5
a0b9e27f
MB
20241if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20242 echo $ac_n "(cached) $ac_c" 1>&6
20243else
20244 cat > conftest.$ac_ext <<EOF
8b389fab 20245#line 20246 "configure"
10f2d63a 20246#include "confdefs.h"
afc31813 20247/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20248 which can conflict with char $ac_func(); below. */
afc31813
VZ
20249#include <assert.h>
20250/* Override any gcc2 internal prototype to avoid an error. */
20251/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20252 builtin and then its argument prototype would still apply. */
20253char $ac_func();
20254
20255int main() {
20256
afc31813
VZ
20257/* The GNU C library defines this for functions which it implements
20258 to always fail with ENOSYS. Some functions are actually named
20259 something starting with __ and the normal name is an alias. */
20260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20261choke me
20262#else
a0b9e27f 20263$ac_func();
afc31813
VZ
20264#endif
20265
a0b9e27f
MB
20266; return 0; }
20267EOF
8b389fab 20268if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20269 rm -rf conftest*
20270 eval "ac_cv_func_$ac_func=yes"
20271else
20272 echo "configure: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 rm -rf conftest*
20275 eval "ac_cv_func_$ac_func=no"
20276fi
20277rm -f conftest*
20278fi
afc31813 20279
a0b9e27f
MB
20280if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20283 cat >> confdefs.h <<EOF
20284#define $ac_tr_func 1
20285EOF
20286
20287else
20288 echo "$ac_t""no" 1>&6
afc31813
VZ
20289fi
20290done
20291
5c6fa7d2 20292
8284b0c5 20293 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 20294 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8b389fab 20295echo "configure:20296: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
20296if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20297 echo $ac_n "(cached) $ac_c" 1>&6
20298else
20299
20300 cat > conftest.$ac_ext <<EOF
8b389fab 20301#line 20302 "configure"
0470b1e6
VZ
20302#include "confdefs.h"
20303
b4085ce6 20304 #include <time.h>
a0b9e27f
MB
20305
20306int main() {
0470b1e6
VZ
20307
20308 struct tm tm;
20309 tm.tm_gmtoff++;
a0b9e27f
MB
20310
20311; return 0; }
20312EOF
8b389fab 20313if { (eval echo configure:20314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20314 rm -rf conftest*
20315
f03a98d8 20316 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 20317
0470b1e6 20318else
a0b9e27f
MB
20319 echo "configure: failed program was:" >&5
20320 cat conftest.$ac_ext >&5
20321 rm -rf conftest*
20322 wx_cv_struct_tm_has_gmtoff=no
20323
5c6fa7d2 20324fi
a0b9e27f
MB
20325rm -f conftest*
20326
247f5006 20327fi
a0b9e27f
MB
20328
20329echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
20330 fi
20331
20332 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 20333 cat >> confdefs.h <<\EOF
6232543b 20334#define WX_GMTOFF_IN_TM 1
a0b9e27f 20335EOF
0470b1e6 20336
3fcdd07b
VZ
20337 fi
20338
a0b9e27f 20339 for ac_func in gettimeofday ftime
3fcdd07b 20340do
a0b9e27f 20341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 20342echo "configure:20343: checking for $ac_func" >&5
a0b9e27f
MB
20343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20345else
20346 cat > conftest.$ac_ext <<EOF
8b389fab 20347#line 20348 "configure"
3fcdd07b
VZ
20348#include "confdefs.h"
20349/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20350 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
20351#include <assert.h>
20352/* Override any gcc2 internal prototype to avoid an error. */
20353/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20354 builtin and then its argument prototype would still apply. */
20355char $ac_func();
20356
20357int main() {
20358
3fcdd07b
VZ
20359/* The GNU C library defines this for functions which it implements
20360 to always fail with ENOSYS. Some functions are actually named
20361 something starting with __ and the normal name is an alias. */
20362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20363choke me
20364#else
a0b9e27f 20365$ac_func();
3fcdd07b
VZ
20366#endif
20367
a0b9e27f
MB
20368; return 0; }
20369EOF
8b389fab 20370if { (eval echo configure:20371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20371 rm -rf conftest*
20372 eval "ac_cv_func_$ac_func=yes"
20373else
20374 echo "configure: failed program was:" >&5
20375 cat conftest.$ac_ext >&5
20376 rm -rf conftest*
20377 eval "ac_cv_func_$ac_func=no"
20378fi
20379rm -f conftest*
20380fi
20381
20382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20383 echo "$ac_t""yes" 1>&6
20384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20385 cat >> confdefs.h <<EOF
20386#define $ac_tr_func 1
20387EOF
3fcdd07b 20388 break
a0b9e27f
MB
20389else
20390 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
20391fi
20392done
20393
698dcdb6 20394
8284b0c5 20395 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 20396 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
8b389fab 20397echo "configure:20398: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
20398if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20399 echo $ac_n "(cached) $ac_c" 1>&6
20400else
20401
20402
20403 ac_ext=C
20404# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20405ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20406ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20407ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20408cross_compiling=$ac_cv_prog_cxx_cross
52127426 20409
8284b0c5 20410
a0b9e27f 20411 cat > conftest.$ac_ext <<EOF
8b389fab 20412#line 20413 "configure"
10f2d63a 20413#include "confdefs.h"
afc31813
VZ
20414
20415 #include <sys/time.h>
20416 #include <unistd.h>
a0b9e27f
MB
20417
20418int main() {
afc31813
VZ
20419
20420 struct timeval tv;
776862b4 20421 gettimeofday(&tv, NULL);
a0b9e27f
MB
20422
20423; return 0; }
20424EOF
8b389fab 20425if { (eval echo configure:20426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20426 rm -rf conftest*
afc31813 20427 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 20428else
a0b9e27f
MB
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20431 rm -rf conftest*
20432 cat > conftest.$ac_ext <<EOF
8b389fab 20433#line 20434 "configure"
10f2d63a 20434#include "confdefs.h"
afc31813
VZ
20435
20436 #include <sys/time.h>
20437 #include <unistd.h>
a0b9e27f
MB
20438
20439int main() {
afc31813
VZ
20440
20441 struct timeval tv;
20442 gettimeofday(&tv);
a0b9e27f
MB
20443
20444; return 0; }
20445EOF
8b389fab 20446if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20447 rm -rf conftest*
afc31813 20448 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 20449else
a0b9e27f
MB
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20452 rm -rf conftest*
20453
20454 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 20455 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
20456
20457
10f2d63a 20458fi
a0b9e27f
MB
20459rm -f conftest*
20460
10f2d63a 20461fi
a0b9e27f 20462rm -f conftest*
afc31813 20463 ac_ext=c
a0b9e27f 20464# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 20465ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20466ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20467ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20468cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20469
a0b9e27f 20470
247f5006 20471fi
a0b9e27f
MB
20472
20473echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20474
afc31813 20475 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20476 cat >> confdefs.h <<\EOF
afc31813 20477#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20478EOF
afc31813
VZ
20479
20480 fi
20481 fi
20482
afc31813
VZ
20483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20484fi
20485
8284b0c5 20486
52127426 20487if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20488 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20489 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20490 wxUSE_SOCKETS="no"
20491 fi
0feee163 20492fi
b089607b 20493
0feee163
VZ
20494if test "$wxUSE_SOCKETS" = "yes"; then
20495 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20496 echo $ac_n "checking for socket""... $ac_c" 1>&6
8b389fab 20497echo "configure:20498: checking for socket" >&5
a0b9e27f
MB
20498if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20499 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20500else
a0b9e27f 20501 cat > conftest.$ac_ext <<EOF
8b389fab 20502#line 20503 "configure"
c63c7106
VZ
20503#include "confdefs.h"
20504/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20505 which can conflict with char socket(); below. */
c63c7106
VZ
20506#include <assert.h>
20507/* Override any gcc2 internal prototype to avoid an error. */
20508/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20509 builtin and then its argument prototype would still apply. */
20510char socket();
20511
20512int main() {
20513
c63c7106
VZ
20514/* The GNU C library defines this for functions which it implements
20515 to always fail with ENOSYS. Some functions are actually named
20516 something starting with __ and the normal name is an alias. */
20517#if defined (__stub_socket) || defined (__stub___socket)
20518choke me
20519#else
a0b9e27f 20520socket();
c63c7106
VZ
20521#endif
20522
a0b9e27f
MB
20523; return 0; }
20524EOF
8b389fab 20525if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20526 rm -rf conftest*
20527 eval "ac_cv_func_socket=yes"
20528else
20529 echo "configure: failed program was:" >&5
20530 cat conftest.$ac_ext >&5
20531 rm -rf conftest*
20532 eval "ac_cv_func_socket=no"
20533fi
20534rm -f conftest*
20535fi
20536
20537if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20538 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20539 :
20540else
a0b9e27f
MB
20541 echo "$ac_t""no" 1>&6
20542echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8b389fab 20543echo "configure:20544: checking for socket in -lsocket" >&5
a0b9e27f
MB
20544ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20546 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20547else
a0b9e27f 20548 ac_save_LIBS="$LIBS"
c63c7106 20549LIBS="-lsocket $LIBS"
a0b9e27f 20550cat > conftest.$ac_ext <<EOF
8b389fab 20551#line 20552 "configure"
c63c7106
VZ
20552#include "confdefs.h"
20553/* Override any gcc2 internal prototype to avoid an error. */
20554/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20555 builtin and then its argument prototype would still apply. */
20556char socket();
20557
20558int main() {
20559socket()
20560; return 0; }
20561EOF
8b389fab 20562if { (eval echo configure:20563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20563 rm -rf conftest*
20564 eval "ac_cv_lib_$ac_lib_var=yes"
20565else
20566 echo "configure: failed program was:" >&5
20567 cat conftest.$ac_ext >&5
20568 rm -rf conftest*
20569 eval "ac_cv_lib_$ac_lib_var=no"
20570fi
20571rm -f conftest*
20572LIBS="$ac_save_LIBS"
20573
20574fi
20575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20576 echo "$ac_t""yes" 1>&6
d558c907
VS
20577 if test "$INET_LINK" != " -lsocket"; then
20578 INET_LINK="$INET_LINK -lsocket"
20579 fi
c63c7106 20580else
a0b9e27f 20581 echo "$ac_t""no" 1>&6
afc31813 20582
a0b9e27f 20583 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20584 wxUSE_SOCKETS=no
a0b9e27f
MB
20585
20586
6232543b 20587fi
b089607b 20588
a0b9e27f 20589
1e487827 20590fi
afc31813 20591
3a922bb4 20592 fi
0feee163 20593fi
51a9faba 20594
0feee163
VZ
20595if test "$wxUSE_SOCKETS" = "yes" ; then
20596 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20597 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
8b389fab 20598echo "configure:20599: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20599if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20600 echo $ac_n "(cached) $ac_c" 1>&6
20601else
20602
a0b9e27f 20603 cat > conftest.$ac_ext <<EOF
8b389fab 20604#line 20605 "configure"
afc31813 20605#include "confdefs.h"
51a9faba 20606
3a922bb4
RL
20607 #include <sys/types.h>
20608 #include <sys/socket.h>
a0b9e27f
MB
20609
20610int main() {
51a9faba 20611
3a922bb4
RL
20612 socklen_t len;
20613 getsockname(0, 0, &len);
a0b9e27f
MB
20614
20615; return 0; }
20616EOF
8b389fab 20617if { (eval echo configure:20618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20618 rm -rf conftest*
51a9faba 20619 wx_cv_type_getsockname3=socklen_t
afc31813 20620else
a0b9e27f
MB
20621 echo "configure: failed program was:" >&5
20622 cat conftest.$ac_ext >&5
20623 rm -rf conftest*
9711d31e
GD
20624
20625 CFLAGS_OLD="$CFLAGS"
20626 if test "$GCC" = yes ; then
20627 CFLAGS="$CFLAGS -Werror"
20628 fi
20629
20630 cat > conftest.$ac_ext <<EOF
8b389fab 20631#line 20632 "configure"
afc31813 20632#include "confdefs.h"
51a9faba 20633
9711d31e
GD
20634 #include <sys/types.h>
20635 #include <sys/socket.h>
20636
a0b9e27f 20637int main() {
51a9faba 20638
9711d31e
GD
20639 size_t len;
20640 getsockname(0, 0, &len);
20641
a0b9e27f
MB
20642; return 0; }
20643EOF
8b389fab 20644if { (eval echo configure:20645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20645 rm -rf conftest*
51a9faba 20646 wx_cv_type_getsockname3=size_t
afc31813 20647else
a0b9e27f
MB
20648 echo "configure: failed program was:" >&5
20649 cat conftest.$ac_ext >&5
20650 rm -rf conftest*
20651 cat > conftest.$ac_ext <<EOF
8b389fab 20652#line 20653 "configure"
afc31813 20653#include "confdefs.h"
51a9faba 20654
9711d31e
GD
20655 #include <sys/types.h>
20656 #include <sys/socket.h>
20657
a0b9e27f 20658int main() {
51a9faba 20659
9711d31e
GD
20660 int len;
20661 getsockname(0, 0, &len);
20662
a0b9e27f
MB
20663; return 0; }
20664EOF
8b389fab 20665if { (eval echo configure:20666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20666 rm -rf conftest*
51a9faba 20667 wx_cv_type_getsockname3=int
afc31813 20668else
a0b9e27f
MB
20669 echo "configure: failed program was:" >&5
20670 cat conftest.$ac_ext >&5
20671 rm -rf conftest*
20672 wx_cv_type_getsockname3=unknown
9711d31e 20673
afc31813 20674fi
a0b9e27f 20675rm -f conftest*
9711d31e 20676
afc31813 20677fi
a0b9e27f 20678rm -f conftest*
9711d31e
GD
20679
20680 CFLAGS="$CFLAGS_OLD"
20681
a0b9e27f 20682
afc31813 20683fi
a0b9e27f 20684rm -f conftest*
a0b9e27f 20685
247f5006 20686fi
a0b9e27f
MB
20687
20688echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20689
3a922bb4
RL
20690 if test "$wx_cv_type_getsockname3" = "unknown"; then
20691 wxUSE_SOCKETS=no
a0b9e27f 20692 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20693 else
a0b9e27f 20694 cat >> confdefs.h <<EOF
51a9faba 20695#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20696EOF
51a9faba 20697
3a922bb4 20698 fi
51a9faba
VZ
20699 fi
20700fi
afc31813 20701
51a9faba 20702if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20703 cat >> confdefs.h <<\EOF
afc31813 20704#define wxUSE_SOCKETS 1
a0b9e27f 20705EOF
afc31813 20706
70f7a477 20707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20708fi
20709
8284b0c5 20710
dc3d889d
VZ
20711if test "$wxUSE_GUI" = "yes"; then
20712
ac0c4cc3 20713 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
a0b9e27f 20714 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20715 wxUSE_JOYSTICK=no
20716 fi
20717 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20718 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20719 wxUSE_JOYSTICK=no
f79bd02d
JS
20720 fi
20721 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20722 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20723 wxUSE_JOYSTICK=no
156b2523
GD
20724 fi
20725
3a922bb4
RL
20726 if test "$TOOLKIT" != "MSW"; then
20727 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20728 for ac_hdr in linux/joystick.h
10f2d63a 20729do
a0b9e27f
MB
20730ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20731echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 20732echo "configure:20733: checking for $ac_hdr" >&5
a0b9e27f
MB
20733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20734 echo $ac_n "(cached) $ac_c" 1>&6
20735else
20736 cat > conftest.$ac_ext <<EOF
8b389fab 20737#line 20738 "configure"
247f5006 20738#include "confdefs.h"
a0b9e27f
MB
20739#include <$ac_hdr>
20740EOF
20741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 20742{ (eval echo configure:20743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20744if test -z "$ac_err"; then
20745 rm -rf conftest*
20746 eval "ac_cv_header_$ac_safe=yes"
20747else
20748 echo "$ac_err" >&5
20749 echo "configure: failed program was:" >&5
247f5006 20750 cat conftest.$ac_ext >&5
a0b9e27f
MB
20751 rm -rf conftest*
20752 eval "ac_cv_header_$ac_safe=no"
247f5006 20753fi
a0b9e27f 20754rm -f conftest*
10f2d63a 20755fi
a0b9e27f
MB
20756if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20757 echo "$ac_t""yes" 1>&6
20758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20759 cat >> confdefs.h <<EOF
20760#define $ac_tr_hdr 1
20761EOF
20762
20763else
20764 echo "$ac_t""no" 1>&6
247f5006 20765fi
10f2d63a
VZ
20766done
20767
3a922bb4
RL
20768 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20769 wxUSE_JOYSTICK=no
a0b9e27f 20770 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20771 fi
20772 fi
20773 fi
b089607b 20774
3a922bb4 20775 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20776 cat >> confdefs.h <<\EOF
10f2d63a 20777#define wxUSE_JOYSTICK 1
a0b9e27f 20778EOF
10f2d63a 20779
3a922bb4
RL
20780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20781 fi
dc3d889d
VZ
20782fi
20783
8284b0c5 20784
b089607b
VZ
20785if test "$TOOLKIT" != "MSW"; then
20786
3a922bb4
RL
20787 HAVE_DL_FUNCS=0
20788 HAVE_SHL_FUNCS=0
0b9ab0bd 20789 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20790 if test "$USE_DARWIN" = 1; then
20791 HAVE_DL_FUNCS=1
20792 else
a0b9e27f 20793 for ac_func in dlopen
10f2d63a 20794do
a0b9e27f 20795echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 20796echo "configure:20797: checking for $ac_func" >&5
a0b9e27f
MB
20797if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20798 echo $ac_n "(cached) $ac_c" 1>&6
20799else
20800 cat > conftest.$ac_ext <<EOF
8b389fab 20801#line 20802 "configure"
10f2d63a
VZ
20802#include "confdefs.h"
20803/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20804 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20805#include <assert.h>
20806/* Override any gcc2 internal prototype to avoid an error. */
20807/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20808 builtin and then its argument prototype would still apply. */
20809char $ac_func();
20810
20811int main() {
20812
10f2d63a
VZ
20813/* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20817choke me
20818#else
a0b9e27f 20819$ac_func();
10f2d63a
VZ
20820#endif
20821
a0b9e27f
MB
20822; return 0; }
20823EOF
8b389fab 20824if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20825 rm -rf conftest*
20826 eval "ac_cv_func_$ac_func=yes"
20827else
20828 echo "configure: failed program was:" >&5
20829 cat conftest.$ac_ext >&5
20830 rm -rf conftest*
20831 eval "ac_cv_func_$ac_func=no"
20832fi
20833rm -f conftest*
20834fi
20835
20836if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20837 echo "$ac_t""yes" 1>&6
20838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20839 cat >> confdefs.h <<EOF
20840#define $ac_tr_func 1
20841EOF
20842
20843 cat >> confdefs.h <<\EOF
10f2d63a 20844#define HAVE_DLOPEN 1
a0b9e27f 20845EOF
10f2d63a 20846
3a922bb4 20847 HAVE_DL_FUNCS=1
a0b9e27f 20848
10f2d63a 20849else
a0b9e27f
MB
20850 echo "$ac_t""no" 1>&6
20851echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8b389fab 20852echo "configure:20853: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20853ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20855 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20856else
a0b9e27f 20857 ac_save_LIBS="$LIBS"
10f2d63a 20858LIBS="-ldl $LIBS"
a0b9e27f 20859cat > conftest.$ac_ext <<EOF
8b389fab 20860#line 20861 "configure"
10f2d63a
VZ
20861#include "confdefs.h"
20862/* Override any gcc2 internal prototype to avoid an error. */
20863/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20864 builtin and then its argument prototype would still apply. */
20865char dlopen();
20866
20867int main() {
20868dlopen()
20869; return 0; }
20870EOF
8b389fab 20871if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20872 rm -rf conftest*
20873 eval "ac_cv_lib_$ac_lib_var=yes"
20874else
20875 echo "configure: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20877 rm -rf conftest*
20878 eval "ac_cv_lib_$ac_lib_var=no"
20879fi
20880rm -f conftest*
20881LIBS="$ac_save_LIBS"
20882
20883fi
20884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20885 echo "$ac_t""yes" 1>&6
20886
20887 cat >> confdefs.h <<\EOF
10f2d63a 20888#define HAVE_DLOPEN 1
a0b9e27f 20889EOF
10f2d63a 20890
3a922bb4 20891 HAVE_DL_FUNCS=1
3d63bc3a 20892 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20893
10f2d63a 20894else
a0b9e27f 20895 echo "$ac_t""no" 1>&6
10f2d63a 20896
a0b9e27f 20897 for ac_func in shl_load
10f2d63a 20898do
a0b9e27f 20899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 20900echo "configure:20901: checking for $ac_func" >&5
a0b9e27f
MB
20901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20902 echo $ac_n "(cached) $ac_c" 1>&6
20903else
20904 cat > conftest.$ac_ext <<EOF
8b389fab 20905#line 20906 "configure"
10f2d63a
VZ
20906#include "confdefs.h"
20907/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20908 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20909#include <assert.h>
20910/* Override any gcc2 internal prototype to avoid an error. */
20911/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20912 builtin and then its argument prototype would still apply. */
20913char $ac_func();
20914
20915int main() {
20916
10f2d63a
VZ
20917/* The GNU C library defines this for functions which it implements
20918 to always fail with ENOSYS. Some functions are actually named
20919 something starting with __ and the normal name is an alias. */
20920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20921choke me
20922#else
a0b9e27f 20923$ac_func();
10f2d63a
VZ
20924#endif
20925
a0b9e27f
MB
20926; return 0; }
20927EOF
8b389fab 20928if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20929 rm -rf conftest*
20930 eval "ac_cv_func_$ac_func=yes"
20931else
20932 echo "configure: failed program was:" >&5
20933 cat conftest.$ac_ext >&5
20934 rm -rf conftest*
20935 eval "ac_cv_func_$ac_func=no"
20936fi
20937rm -f conftest*
20938fi
20939
20940if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20941 echo "$ac_t""yes" 1>&6
20942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20943 cat >> confdefs.h <<EOF
20944#define $ac_tr_func 1
20945EOF
20946
20947 cat >> confdefs.h <<\EOF
10f2d63a 20948#define HAVE_SHL_LOAD 1
a0b9e27f 20949EOF
10f2d63a 20950
3a922bb4 20951 HAVE_SHL_FUNCS=1
a0b9e27f 20952
10f2d63a 20953else
a0b9e27f
MB
20954 echo "$ac_t""no" 1>&6
20955echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
8b389fab 20956echo "configure:20957: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20957ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20960else
a0b9e27f 20961 ac_save_LIBS="$LIBS"
f6bcfd97 20962LIBS="-lshl_load $LIBS"
a0b9e27f 20963cat > conftest.$ac_ext <<EOF
8b389fab 20964#line 20965 "configure"
f6bcfd97 20965#include "confdefs.h"
8284b0c5 20966/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20967/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20968 builtin and then its argument prototype would still apply. */
20969char dld();
20970
20971int main() {
20972dld()
20973; return 0; }
20974EOF
8b389fab 20975if { (eval echo configure:20976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20976 rm -rf conftest*
20977 eval "ac_cv_lib_$ac_lib_var=yes"
20978else
20979 echo "configure: failed program was:" >&5
20980 cat conftest.$ac_ext >&5
20981 rm -rf conftest*
20982 eval "ac_cv_lib_$ac_lib_var=no"
20983fi
20984rm -f conftest*
20985LIBS="$ac_save_LIBS"
f6bcfd97 20986
a0b9e27f
MB
20987fi
20988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20989 echo "$ac_t""yes" 1>&6
20990
3a922bb4 20991 HAVE_SHL_FUNCS=1
3d63bc3a 20992 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20993
20994else
20995 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20996fi
20997
a0b9e27f 20998
10f2d63a
VZ
20999fi
21000done
21001
a0b9e27f 21002
10f2d63a
VZ
21003fi
21004
a0b9e27f 21005
10f2d63a
VZ
21006fi
21007done
21008
5c6fa7d2 21009
8284b0c5 21010 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 21011 for ac_func in dlerror
f6bcfd97 21012do
a0b9e27f 21013echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 21014echo "configure:21015: checking for $ac_func" >&5
a0b9e27f
MB
21015if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21016 echo $ac_n "(cached) $ac_c" 1>&6
21017else
21018 cat > conftest.$ac_ext <<EOF
8b389fab 21019#line 21020 "configure"
f6bcfd97
BP
21020#include "confdefs.h"
21021/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 21022 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
21023#include <assert.h>
21024/* Override any gcc2 internal prototype to avoid an error. */
21025/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21026 builtin and then its argument prototype would still apply. */
21027char $ac_func();
21028
21029int main() {
21030
f6bcfd97
BP
21031/* The GNU C library defines this for functions which it implements
21032 to always fail with ENOSYS. Some functions are actually named
21033 something starting with __ and the normal name is an alias. */
21034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21035choke me
21036#else
a0b9e27f 21037$ac_func();
f6bcfd97
BP
21038#endif
21039
a0b9e27f
MB
21040; return 0; }
21041EOF
8b389fab 21042if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21043 rm -rf conftest*
21044 eval "ac_cv_func_$ac_func=yes"
21045else
21046 echo "configure: failed program was:" >&5
21047 cat conftest.$ac_ext >&5
21048 rm -rf conftest*
21049 eval "ac_cv_func_$ac_func=no"
21050fi
21051rm -f conftest*
21052fi
21053
21054if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21055 echo "$ac_t""yes" 1>&6
21056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21057 cat >> confdefs.h <<EOF
21058#define $ac_tr_func 1
21059EOF
21060 cat >> confdefs.h <<\EOF
f6bcfd97 21061#define HAVE_DLERROR 1
a0b9e27f 21062EOF
f6bcfd97
BP
21063
21064else
a0b9e27f
MB
21065 echo "$ac_t""no" 1>&6
21066echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
8b389fab 21067echo "configure:21068: checking for dlerror in -ldl" >&5
a0b9e27f
MB
21068ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21070 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 21071else
a0b9e27f 21072 ac_save_LIBS="$LIBS"
f6bcfd97 21073LIBS="-ldl $LIBS"
a0b9e27f 21074cat > conftest.$ac_ext <<EOF
8b389fab 21075#line 21076 "configure"
f6bcfd97
BP
21076#include "confdefs.h"
21077/* Override any gcc2 internal prototype to avoid an error. */
21078/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
21079 builtin and then its argument prototype would still apply. */
21080char dlerror();
21081
21082int main() {
21083dlerror()
21084; return 0; }
21085EOF
8b389fab 21086if { (eval echo configure:21087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21087 rm -rf conftest*
21088 eval "ac_cv_lib_$ac_lib_var=yes"
21089else
21090 echo "configure: failed program was:" >&5
21091 cat conftest.$ac_ext >&5
21092 rm -rf conftest*
21093 eval "ac_cv_lib_$ac_lib_var=no"
21094fi
21095rm -f conftest*
21096LIBS="$ac_save_LIBS"
21097
21098fi
21099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21100 echo "$ac_t""yes" 1>&6
21101 cat >> confdefs.h <<\EOF
f6bcfd97 21102#define HAVE_DLERROR 1
a0b9e27f 21103EOF
f6bcfd97 21104
a0b9e27f
MB
21105else
21106 echo "$ac_t""no" 1>&6
f6bcfd97
BP
21107fi
21108
21109fi
21110done
21111
3a922bb4
RL
21112 fi
21113 fi
f6bcfd97 21114
3a922bb4
RL
21115 if test "$HAVE_DL_FUNCS" = 0; then
21116 if test "$HAVE_SHL_FUNCS" = 0; then
21117 if test "$USE_UNIX" = 1; then
a0b9e27f 21118 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 21119 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
21120 wxUSE_DYNLIB_CLASS=no
21121 else
a0b9e27f 21122 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
21123 fi
21124 fi
10f2d63a
VZ
21125 fi
21126 fi
21127fi
21128
0b9ab0bd 21129if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 21130 cat >> confdefs.h <<\EOF
0b9ab0bd 21131#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 21132EOF
0b9ab0bd
RL
21133
21134elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 21135 cat >> confdefs.h <<\EOF
10f2d63a 21136#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 21137EOF
10f2d63a
VZ
21138
21139fi
21140
8284b0c5 21141
1e6feb95 21142if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 21143 cat >> confdefs.h <<\EOF
1e6feb95 21144#define wxUSE_FONTMAP 1
a0b9e27f 21145EOF
1e6feb95
VZ
21146
21147fi
21148
10f2d63a 21149if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 21150 cat >> confdefs.h <<\EOF
10f2d63a 21151#define wxUSE_UNICODE 1
a0b9e27f 21152EOF
10f2d63a 21153
8284b0c5 21154
bbc3925a
VS
21155 if test "$wxUSE_MSW" != 1; then
21156 wxUSE_UNICODE_MSLU=no
21157 fi
a72a4bfa
VS
21158
21159 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 21160 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
8b389fab 21161echo "configure:21162: checking for main in -lunicows" >&5
a0b9e27f
MB
21162ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21164 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 21165else
a0b9e27f 21166 ac_save_LIBS="$LIBS"
a72a4bfa 21167LIBS="-lunicows $LIBS"
a0b9e27f 21168cat > conftest.$ac_ext <<EOF
8b389fab 21169#line 21170 "configure"
a72a4bfa
VS
21170#include "confdefs.h"
21171
a0b9e27f
MB
21172int main() {
21173main()
21174; return 0; }
21175EOF
8b389fab 21176if { (eval echo configure:21177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
21177 rm -rf conftest*
21178 eval "ac_cv_lib_$ac_lib_var=yes"
21179else
21180 echo "configure: failed program was:" >&5
21181 cat conftest.$ac_ext >&5
21182 rm -rf conftest*
21183 eval "ac_cv_lib_$ac_lib_var=no"
21184fi
21185rm -f conftest*
21186LIBS="$ac_save_LIBS"
8284b0c5 21187
a0b9e27f
MB
21188fi
21189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21190 echo "$ac_t""yes" 1>&6
21191
21192 cat >> confdefs.h <<\EOF
a72a4bfa 21193#define wxUSE_UNICODE_MSLU 1
a0b9e27f 21194EOF
a72a4bfa 21195
a0b9e27f 21196
a72a4bfa 21197else
a0b9e27f 21198 echo "$ac_t""no" 1>&6
a72a4bfa 21199
a0b9e27f
MB
21200 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21201 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 21202 wxUSE_UNICODE_MSLU=no
a0b9e27f 21203
a72a4bfa
VS
21204fi
21205
21206 fi
10f2d63a
VZ
21207fi
21208
10f2d63a 21209if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 21210 cat >> confdefs.h <<\EOF
10f2d63a 21211#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 21212EOF
10f2d63a
VZ
21213
21214fi
21215
8284b0c5 21216
10f2d63a 21217if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 21218 cat >> confdefs.h <<\EOF
10f2d63a 21219#define wxUSE_POSTSCRIPT 1
a0b9e27f 21220EOF
10f2d63a
VZ
21221
21222fi
21223
a0b9e27f 21224cat >> confdefs.h <<\EOF
10f2d63a 21225#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 21226EOF
10f2d63a 21227
8284b0c5 21228
a0b9e27f 21229cat >> confdefs.h <<\EOF
10f2d63a 21230#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 21231EOF
10f2d63a 21232
8284b0c5
MB
21233
21234
10f2d63a 21235if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 21236 cat >> confdefs.h <<\EOF
10f2d63a 21237#define wxUSE_CONSTRAINTS 1
a0b9e27f 21238EOF
10f2d63a
VZ
21239
21240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21241fi
21242
21243if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 21244
8284b0c5 21245
bb811f17 21246 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 21247 cat >> confdefs.h <<\EOF
10f2d63a 21248#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 21249EOF
10f2d63a 21250
bb811f17
JS
21251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21252 fi
10f2d63a
VZ
21253fi
21254
21255if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 21256 cat >> confdefs.h <<\EOF
10f2d63a 21257#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 21258EOF
10f2d63a
VZ
21259
21260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21261 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21263 fi
21264fi
21265
21266if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 21267 cat >> confdefs.h <<\EOF
10f2d63a 21268#define wxUSE_HELP 1
a0b9e27f 21269EOF
10f2d63a
VZ
21270
21271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 21272
77e13408 21273 if test "$wxUSE_MSW" = 1; then
031d8228 21274 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 21275 cat >> confdefs.h <<\EOF
29fd3c0c 21276#define wxUSE_MS_HTML_HELP 1
a0b9e27f 21277EOF
29fd3c0c 21278
3e44f09d 21279 fi
3379ed37 21280 fi
031d8228
VS
21281
21282 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21283 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21284 cat >> confdefs.h <<\EOF
031d8228 21285#define wxUSE_WXHTML_HELP 1
a0b9e27f 21286EOF
031d8228
VS
21287
21288 else
a0b9e27f 21289 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
21290 wxUSE_WXHTML_HELP=no
21291 fi
21292 fi
10f2d63a
VZ
21293fi
21294
21295if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21296 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21297 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 21298 else
a0b9e27f 21299 cat >> confdefs.h <<\EOF
10f2d63a 21300#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 21301EOF
10f2d63a
VZ
21302
21303 fi
21304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21305fi
21306
fd3d7534 21307if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
3c907f20 21308 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
10f2d63a
VZ
21309fi
21310
8284b0c5 21311
77e13408
RL
21312if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21313 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 21314 -o "$wxUSE_OLE" = "yes" \
77e13408 21315 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 21316 for ac_hdr in ole2.h
10f2d63a 21317do
a0b9e27f
MB
21318ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21319echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b389fab 21320echo "configure:21321: checking for $ac_hdr" >&5
a0b9e27f
MB
21321if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21322 echo $ac_n "(cached) $ac_c" 1>&6
21323else
21324 cat > conftest.$ac_ext <<EOF
8b389fab 21325#line 21326 "configure"
10f2d63a 21326#include "confdefs.h"
a0b9e27f
MB
21327#include <$ac_hdr>
21328EOF
21329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b389fab 21330{ (eval echo configure:21331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
21331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21332if test -z "$ac_err"; then
21333 rm -rf conftest*
21334 eval "ac_cv_header_$ac_safe=yes"
21335else
21336 echo "$ac_err" >&5
21337 echo "configure: failed program was:" >&5
10f2d63a 21338 cat conftest.$ac_ext >&5
a0b9e27f
MB
21339 rm -rf conftest*
21340 eval "ac_cv_header_$ac_safe=no"
10f2d63a 21341fi
a0b9e27f 21342rm -f conftest*
10f2d63a 21343fi
a0b9e27f
MB
21344if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21345 echo "$ac_t""yes" 1>&6
21346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21347 cat >> confdefs.h <<EOF
21348#define $ac_tr_hdr 1
21349EOF
21350
21351else
21352 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21353fi
21354done
21355
8284b0c5 21356
2b9bdf71
VZ
21357 if test "$ac_cv_header_ole2_h" = "yes" ; then
21358 if test "$GCC" = yes ; then
a0b9e27f
MB
21359
21360 ac_ext=C
21361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21362ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
21363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21365cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
21366
21367
a0b9e27f 21368 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
8b389fab 21369echo "configure:21370: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 21370 cat > conftest.$ac_ext <<EOF
8b389fab 21371#line 21372 "configure"
8284b0c5
MB
21372#include "confdefs.h"
21373#include <windows.h>
21374 #include <ole2.h>
a0b9e27f 21375int main() {
8284b0c5 21376
a0b9e27f
MB
21377; return 0; }
21378EOF
8b389fab 21379if { (eval echo configure:21380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
21380 rm -rf conftest*
21381 echo "$ac_t""no" 1>&6
21382else
21383 echo "configure: failed program was:" >&5
21384 cat conftest.$ac_ext >&5
21385 rm -rf conftest*
21386 echo "$ac_t""yes" 1>&6
8284b0c5
MB
21387 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21388fi
a0b9e27f 21389rm -f conftest*
8284b0c5 21390 ac_ext=c
a0b9e27f 21391# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 21392ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
21393ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21394ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21395cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 21396
2b9bdf71 21397 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 21398 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 21399 cat >> confdefs.h <<\EOF
4f11a343 21400#define wxUSE_OLE 1
a0b9e27f 21401EOF
4f11a343 21402
8284b0c5 21403
2b9bdf71
VZ
21404 fi
21405
a0b9e27f 21406 cat >> confdefs.h <<\EOF
2b9bdf71 21407#define wxUSE_DATAOBJ 1
a0b9e27f 21408EOF
2b9bdf71
VZ
21409
21410 else
a0b9e27f 21411 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
21412
21413 wxUSE_CLIPBOARD=no
21414 wxUSE_DRAG_AND_DROP=no
21415 wxUSE_DATAOBJ=no
3bce6687
JS
21416 wxUSE_OLE=no
21417 fi
21418
21419 if test "$wxUSE_METAFILE" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421#define wxUSE_METAFILE 1
21422EOF
21423
21424
21425 cat >> confdefs.h <<\EOF
21426#define wxUSE_ENH_METAFILE 1
21427EOF
21428
21429 fi
21430fi
21431
2b9bdf71
VZ
21432if test "$wxUSE_IPC" = "yes"; then
21433 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21434 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21435 fi
21436
a0b9e27f 21437 cat >> confdefs.h <<\EOF
2b9bdf71 21438#define wxUSE_IPC 1
a0b9e27f 21439EOF
2b9bdf71
VZ
21440
21441fi
21442
21443if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21444 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21445 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21446 wxUSE_CLIPBOARD=no
21447 fi
21448
21449 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21450 cat >> confdefs.h <<\EOF
2b9bdf71 21451#define wxUSE_CLIPBOARD 1
a0b9e27f 21452EOF
2b9bdf71 21453
8284b0c5 21454
a0b9e27f 21455 cat >> confdefs.h <<\EOF
673f4220 21456#define wxUSE_DATAOBJ 1
a0b9e27f 21457EOF
673f4220 21458
6c657b52 21459 fi
2b9bdf71
VZ
21460fi
21461
21462if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21463 if test "$wxUSE_GTK" = 1; then
21464 if test "$WXGTK12" != 1; then
a0b9e27f 21465 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21466 wxUSE_DRAG_AND_DROP=no
21467 fi
21468 fi
21469
2b9bdf71 21470 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21471 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21472 wxUSE_DRAG_AND_DROP=no
21473 fi
21474
f79bd02d 21475 if test "$wxUSE_X11" = 1; then
a0b9e27f 21476 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21477 wxUSE_DRAG_AND_DROP=no
21478 fi
21479
6c657b52 21480 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21481 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21482 wxUSE_DRAG_AND_DROP=no
21483 fi
21484
10f2d63a 21485 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21486 cat >> confdefs.h <<\EOF
10f2d63a 21487#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21488EOF
10f2d63a
VZ
21489
21490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21491 fi
21492
21493fi
21494
21495if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21496 cat >> confdefs.h <<\EOF
10f2d63a 21497#define wxUSE_SPLINES 1
a0b9e27f 21498EOF
10f2d63a
VZ
21499
21500fi
21501
8284b0c5 21502
1e6feb95
VZ
21503USES_CONTROLS=0
21504if test "$wxUSE_CONTROLS" = "yes"; then
21505 USES_CONTROLS=1
21506fi
21507
10f2d63a 21508if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21509 cat >> confdefs.h <<\EOF
10f2d63a 21510#define wxUSE_ACCEL 1
a0b9e27f 21511EOF
10f2d63a 21512
1e6feb95
VZ
21513 USES_CONTROLS=1
21514fi
21515
21516if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21517 cat >> confdefs.h <<\EOF
1e6feb95 21518#define wxUSE_BUTTON 1
a0b9e27f 21519EOF
1e6feb95
VZ
21520
21521 USES_CONTROLS=1
21522fi
21523
21524if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21525 cat >> confdefs.h <<\EOF
1e6feb95 21526#define wxUSE_BMPBUTTON 1
a0b9e27f 21527EOF
1e6feb95
VZ
21528
21529 USES_CONTROLS=1
21530fi
21531
21532if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21533 cat >> confdefs.h <<\EOF
1e6feb95 21534#define wxUSE_CALENDARCTRL 1
a0b9e27f 21535EOF
1e6feb95
VZ
21536
21537 USES_CONTROLS=1
21538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21539fi
21540
21541if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21542 cat >> confdefs.h <<\EOF
10f2d63a 21543#define wxUSE_CARET 1
a0b9e27f 21544EOF
10f2d63a 21545
1e6feb95 21546 USES_CONTROLS=1
10f2d63a
VZ
21547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21548fi
21549
21550if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21551 cat >> confdefs.h <<\EOF
10f2d63a 21552#define wxUSE_COMBOBOX 1
a0b9e27f 21553EOF
10f2d63a 21554
1e6feb95 21555 USES_CONTROLS=1
10f2d63a
VZ
21556fi
21557
21558if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21559 cat >> confdefs.h <<\EOF
10f2d63a 21560#define wxUSE_CHOICE 1
a0b9e27f 21561EOF
10f2d63a 21562
1e6feb95 21563 USES_CONTROLS=1
10f2d63a
VZ
21564fi
21565
21566if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21567 cat >> confdefs.h <<\EOF
10f2d63a 21568#define wxUSE_CHECKBOX 1
a0b9e27f 21569EOF
10f2d63a 21570
1e6feb95 21571 USES_CONTROLS=1
10f2d63a
VZ
21572fi
21573
21574if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21575 cat >> confdefs.h <<\EOF
10f2d63a 21576#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21577EOF
10f2d63a 21578
1e6feb95 21579 USES_CONTROLS=1
10f2d63a
VZ
21580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21581fi
21582
da494b40
MB
21583if test "$wxUSE_DISPLAY" = "yes"; then
21584 cat >> confdefs.h <<\EOF
21585#define wxUSE_DISPLAY 1
21586EOF
21587
21588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21589fi
21590
10f2d63a 21591if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21592 cat >> confdefs.h <<\EOF
10f2d63a 21593#define wxUSE_GAUGE 1
a0b9e27f 21594EOF
10f2d63a 21595
1e6feb95 21596 USES_CONTROLS=1
10f2d63a
VZ
21597fi
21598
d6a55c4b 21599if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21600 cat >> confdefs.h <<\EOF
d6a55c4b 21601#define wxUSE_GRID 1
a0b9e27f 21602EOF
10f2d63a 21603
1e6feb95 21604 USES_CONTROLS=1
d6a55c4b 21605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21606fi
21607
21608if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21609 cat >> confdefs.h <<\EOF
10f2d63a 21610#define wxUSE_IMAGLIST 1
a0b9e27f 21611EOF
10f2d63a
VZ
21612
21613fi
21614
21615if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21616 cat >> confdefs.h <<\EOF
10f2d63a 21617#define wxUSE_LISTBOX 1
a0b9e27f 21618EOF
10f2d63a 21619
1e6feb95 21620 USES_CONTROLS=1
10f2d63a
VZ
21621fi
21622
21623if test "$wxUSE_LISTCTRL" = "yes"; then
21624 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21625 cat >> confdefs.h <<\EOF
10f2d63a 21626#define wxUSE_LISTCTRL 1
a0b9e27f 21627EOF
10f2d63a 21628
1e6feb95 21629 USES_CONTROLS=1
10f2d63a
VZ
21630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21631 else
a0b9e27f 21632 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21633 fi
21634fi
21635
21636if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21637 cat >> confdefs.h <<\EOF
10f2d63a 21638#define wxUSE_NOTEBOOK 1
a0b9e27f 21639EOF
10f2d63a 21640
1e6feb95 21641 USES_CONTROLS=1
10f2d63a
VZ
21642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21643fi
21644
24176f2c 21645
10f2d63a 21646if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21647 cat >> confdefs.h <<\EOF
10f2d63a 21648#define wxUSE_RADIOBOX 1
a0b9e27f 21649EOF
10f2d63a 21650
1e6feb95 21651 USES_CONTROLS=1
10f2d63a
VZ
21652fi
21653
21654if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21655 cat >> confdefs.h <<\EOF
10f2d63a 21656#define wxUSE_RADIOBTN 1
a0b9e27f 21657EOF
10f2d63a 21658
1e6feb95 21659 USES_CONTROLS=1
10f2d63a
VZ
21660fi
21661
21662if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21663 cat >> confdefs.h <<\EOF
10f2d63a 21664#define wxUSE_SASH 1
a0b9e27f 21665EOF
10f2d63a
VZ
21666
21667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21668fi
21669
21670if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21671 cat >> confdefs.h <<\EOF
10f2d63a 21672#define wxUSE_SCROLLBAR 1
a0b9e27f 21673EOF
10f2d63a 21674
1e6feb95 21675 USES_CONTROLS=1
741a9306 21676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21677fi
21678
21679if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21680 cat >> confdefs.h <<\EOF
10f2d63a 21681#define wxUSE_SLIDER 1
a0b9e27f 21682EOF
10f2d63a 21683
1e6feb95 21684 USES_CONTROLS=1
10f2d63a
VZ
21685fi
21686
21687if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21688 cat >> confdefs.h <<\EOF
10f2d63a 21689#define wxUSE_SPINBTN 1
a0b9e27f 21690EOF
10f2d63a 21691
1e6feb95 21692 USES_CONTROLS=1
10f2d63a
VZ
21693fi
21694
56cfaa52 21695if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21696 cat >> confdefs.h <<\EOF
56cfaa52 21697#define wxUSE_SPINCTRL 1
a0b9e27f 21698EOF
56cfaa52 21699
1e6feb95 21700 USES_CONTROLS=1
56cfaa52
RR
21701fi
21702
10f2d63a 21703if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21704 cat >> confdefs.h <<\EOF
10f2d63a 21705#define wxUSE_SPLITTER 1
a0b9e27f 21706EOF
10f2d63a
VZ
21707
21708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21709fi
21710
21711if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21712 cat >> confdefs.h <<\EOF
10f2d63a 21713#define wxUSE_STATBMP 1
a0b9e27f 21714EOF
10f2d63a 21715
1e6feb95 21716 USES_CONTROLS=1
10f2d63a
VZ
21717fi
21718
21719if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21720 cat >> confdefs.h <<\EOF
10f2d63a 21721#define wxUSE_STATBOX 1
a0b9e27f 21722EOF
10f2d63a 21723
1e6feb95
VZ
21724 USES_CONTROLS=1
21725fi
21726
21727if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21728 cat >> confdefs.h <<\EOF
1e6feb95 21729#define wxUSE_STATTEXT 1
a0b9e27f 21730EOF
1e6feb95
VZ
21731
21732 USES_CONTROLS=1
10f2d63a
VZ
21733fi
21734
21735if test "$wxUSE_STATLINE" = "yes"; then
89e6bf6d 21736 cat >> confdefs.h <<\EOF
10f2d63a 21737#define wxUSE_STATLINE 1
a0b9e27f 21738EOF
10f2d63a 21739
89e6bf6d 21740 USES_CONTROLS=1
10f2d63a
VZ
21741fi
21742
21743if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21744 cat >> confdefs.h <<\EOF
10f2d63a 21745#define wxUSE_STATUSBAR 1
a0b9e27f 21746EOF
10f2d63a 21747
1e6feb95 21748 USES_CONTROLS=1
698dcdb6 21749
2286341c 21750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21751fi
21752
21753if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21754 cat >> confdefs.h <<\EOF
10f2d63a 21755#define wxUSE_TAB_DIALOG 1
a0b9e27f 21756EOF
10f2d63a
VZ
21757
21758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21759fi
21760
1e6feb95 21761if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21762 cat >> confdefs.h <<\EOF
1e6feb95 21763#define wxUSE_TEXTCTRL 1
a0b9e27f 21764EOF
1e6feb95
VZ
21765
21766 USES_CONTROLS=1
21767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21768fi
21769
1db8dc4a 21770if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 21771 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21772 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21773 wxUSE_TOGGLEBTN=no
21774 fi
21775 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21776 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21777 wxUSE_TOGGLEBTN=no
21778 fi
21779
21780 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21781 cat >> confdefs.h <<\EOF
1db8dc4a 21782#define wxUSE_TOGGLEBTN 1
a0b9e27f 21783EOF
1db8dc4a 21784
1e6feb95 21785 USES_CONTROLS=1
a45d7ab7 21786 fi
1db8dc4a
VZ
21787fi
21788
360d6699 21789if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21790 cat >> confdefs.h <<\EOF
360d6699 21791#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21792EOF
360d6699
VZ
21793
21794 wxUSE_TOOLBAR="yes"
1e6feb95 21795 USES_CONTROLS=1
360d6699
VZ
21796fi
21797
10f2d63a 21798if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21799 cat >> confdefs.h <<\EOF
10f2d63a 21800#define wxUSE_TOOLBAR 1
a0b9e27f 21801EOF
10f2d63a 21802
1e6feb95 21803 USES_CONTROLS=1
698dcdb6 21804
360d6699
VZ
21805 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21806 wxUSE_TOOLBAR_NATIVE="yes"
21807 fi
21808
1e6feb95 21809 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21810 cat >> confdefs.h <<\EOF
360d6699 21811#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21812EOF
360d6699 21813
1e6feb95
VZ
21814 USES_CONTROLS=1
21815 fi
21816
21817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21818fi
21819
10f2d63a
VZ
21820if test "$wxUSE_TOOLTIPS" = "yes"; then
21821 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21822 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a 21823 else
89e6bf6d
VZ
21824 if test "$wxUSE_UNIVERSAL" = "yes"; then
21825 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
10f2d63a 21826 else
89e6bf6d 21827 cat >> confdefs.h <<\EOF
10f2d63a 21828#define wxUSE_TOOLTIPS 1
a0b9e27f 21829EOF
10f2d63a
VZ
21830
21831 fi
21832 fi
21833fi
21834
21835if test "$wxUSE_TREECTRL" = "yes"; then
21836 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21837 cat >> confdefs.h <<\EOF
10f2d63a 21838#define wxUSE_TREECTRL 1
a0b9e27f 21839EOF
10f2d63a 21840
1e6feb95 21841 USES_CONTROLS=1
10f2d63a
VZ
21842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21843 else
a0b9e27f 21844 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21845 fi
21846fi
21847
9f41d601 21848if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 21849 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
a0b9e27f 21850 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21851 else
485cf710 21852 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21853 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21854 else
3c011993 21855 if test "$wxUSE_PM" = 1; then
a0b9e27f 21856 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21857 else
a0b9e27f 21858 cat >> confdefs.h <<\EOF
9f41d601 21859#define wxUSE_POPUPWIN 1
a0b9e27f 21860EOF
9f41d601 21861
8284b0c5 21862
3c011993
VZ
21863 USES_CONTROLS=1
21864 fi
485cf710 21865 fi
6abe4b65 21866 fi
9f41d601
RR
21867fi
21868
dd964dcc 21869if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21870 if test "$wxUSE_PM" = 1; then
a0b9e27f 21871 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21872 else
a0b9e27f 21873 cat >> confdefs.h <<\EOF
dd964dcc 21874#define wxUSE_TIPWINDOW 1
a0b9e27f 21875EOF
dd964dcc 21876
3c011993 21877 fi
dd964dcc
VZ
21878fi
21879
1e6feb95 21880if test "$USES_CONTROLS" = 1; then
a0b9e27f 21881 cat >> confdefs.h <<\EOF
1e6feb95 21882#define wxUSE_CONTROLS 1
a0b9e27f 21883EOF
10f2d63a 21884
10f2d63a
VZ
21885fi
21886
8284b0c5 21887
1e6feb95 21888
24fd6d87 21889if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21890 cat >> confdefs.h <<\EOF
24fd6d87 21891#define wxUSE_DRAGIMAGE 1
a0b9e27f 21892EOF
24fd6d87
VZ
21893
21894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21895fi
21896
7bb2947d
MB
21897if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21898 cat >> confdefs.h <<\EOF
21899#define wxUSE_ACCESSIBILITY 1
21900EOF
21901
21902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21903fi
21904
1e6feb95 21905if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21906 cat >> confdefs.h <<\EOF
1e6feb95 21907#define wxUSE_MENUS 1
a0b9e27f 21908EOF
10f2d63a 21909
1e6feb95 21910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21911fi
21912
1e6feb95 21913if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21914 cat >> confdefs.h <<\EOF
1e6feb95 21915#define wxUSE_METAFILE 1
a0b9e27f 21916EOF
10f2d63a 21917
10f2d63a
VZ
21918fi
21919
1e6feb95 21920if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21921 cat >> confdefs.h <<\EOF
1e6feb95 21922#define wxUSE_MIMETYPE 1
a0b9e27f 21923EOF
10f2d63a 21924
10f2d63a
VZ
21925fi
21926
3e44f09d 21927if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21928 cat >> confdefs.h <<\EOF
3e44f09d 21929#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21930EOF
3e44f09d 21931
321d2b14
VZ
21932if test "$TOOLKIT" = "MSW"; then
21933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21934fi
21935
3e44f09d
VZ
21936fi
21937
4cdb0ab0 21938if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21939 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21940 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21941 wxUSE_PROTOCOL=no
21942 fi
21943
21944 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21945 cat >> confdefs.h <<\EOF
4cdb0ab0 21946#define wxUSE_PROTOCOL 1
a0b9e27f 21947EOF
4cdb0ab0 21948
8284b0c5 21949
3954f9ca 21950 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21951 cat >> confdefs.h <<\EOF
4cdb0ab0 21952#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21953EOF
4cdb0ab0 21954
3954f9ca
VS
21955 fi
21956 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21957 cat >> confdefs.h <<\EOF
4cdb0ab0 21958#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21959EOF
4cdb0ab0 21960
3954f9ca
VS
21961 fi
21962 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21963 cat >> confdefs.h <<\EOF
3954f9ca 21964#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21965EOF
3954f9ca
VS
21966
21967 fi
4cdb0ab0 21968 fi
3954f9ca
VS
21969fi
21970
21971if test "$wxUSE_URL" = "yes"; then
21972 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21973 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21974 wxUSE_URL=no
21975 fi
21976 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21977 cat >> confdefs.h <<\EOF
3954f9ca 21978#define wxUSE_URL 1
a0b9e27f 21979EOF
4cdb0ab0
VS
21980
21981 fi
21982fi
21983
10f2d63a 21984if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21985 cat >> confdefs.h <<\EOF
10f2d63a 21986#define wxUSE_MINIFRAME 1
a0b9e27f 21987EOF
10f2d63a
VZ
21988
21989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21990fi
21991
21992if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21993 cat >> confdefs.h <<\EOF
10f2d63a 21994#define wxUSE_HTML 1
a0b9e27f 21995EOF
10f2d63a 21996
d2739ea6 21997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
10f2d63a
VZ
21998fi
21999
22000if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 22001 cat >> confdefs.h <<\EOF
1e487827 22002#define wxUSE_VALIDATORS 1
a0b9e27f 22003EOF
703e0a69 22004
698dcdb6
VZ
22005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22006fi
22007
edae8572 22008if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 22009 cat >> confdefs.h <<\EOF
edae8572 22010#define wxUSE_PALETTE 1
a0b9e27f 22011EOF
edae8572
VZ
22012
22013fi
22014
698dcdb6 22015if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 22016 cat >> confdefs.h <<\EOF
698dcdb6 22017#define wxUSE_IMAGE 1
a0b9e27f 22018EOF
698dcdb6
VZ
22019
22020fi
22021
22022if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 22023 cat >> confdefs.h <<\EOF
698dcdb6 22024#define wxUSE_GIF 1
a0b9e27f 22025EOF
698dcdb6
VZ
22026
22027fi
22028
22029if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 22030 cat >> confdefs.h <<\EOF
698dcdb6 22031#define wxUSE_PCX 1
a0b9e27f 22032EOF
698dcdb6
VZ
22033
22034fi
22035
4b6b4dfc 22036if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 22037 cat >> confdefs.h <<\EOF
4b6b4dfc 22038#define wxUSE_IFF 1
a0b9e27f 22039EOF
4b6b4dfc
RR
22040
22041fi
22042
698dcdb6 22043if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 22044 cat >> confdefs.h <<\EOF
698dcdb6 22045#define wxUSE_PNM 1
a0b9e27f 22046EOF
698dcdb6
VZ
22047
22048fi
22049
22050if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 22051 cat >> confdefs.h <<\EOF
698dcdb6 22052#define wxUSE_XPM 1
a0b9e27f 22053EOF
698dcdb6
VZ
22054
22055fi
22056
658974ae 22057if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 22058 cat >> confdefs.h <<\EOF
658974ae 22059#define wxUSE_ICO_CUR 1
a0b9e27f 22060EOF
658974ae
VS
22061
22062fi
22063
a72a4bfa
VS
22064if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22065 LIBS=" -lunicows $LIBS"
22066fi
22067
8284b0c5 22068
1e6feb95 22069if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 22070 cat >> confdefs.h <<\EOF
1e6feb95 22071#define wxUSE_CHOICEDLG 1
a0b9e27f 22072EOF
1e6feb95
VZ
22073
22074fi
22075
22076if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 22077 cat >> confdefs.h <<\EOF
1e6feb95 22078#define wxUSE_COLOURDLG 1
a0b9e27f 22079EOF
1e6feb95
VZ
22080
22081fi
22082
22083if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 22084 cat >> confdefs.h <<\EOF
1e6feb95 22085#define wxUSE_FILEDLG 1
a0b9e27f 22086EOF
1e6feb95
VZ
22087
22088fi
22089
8db37e06 22090if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 22091 cat >> confdefs.h <<\EOF
8db37e06 22092#define wxUSE_FINDREPLDLG 1
a0b9e27f 22093EOF
8db37e06
VZ
22094
22095fi
22096
1e6feb95 22097if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 22098 cat >> confdefs.h <<\EOF
1e6feb95 22099#define wxUSE_FONTDLG 1
a0b9e27f 22100EOF
1e6feb95
VZ
22101
22102fi
22103
22104if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 22105 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 22106 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 22107 else
a0b9e27f 22108 cat >> confdefs.h <<\EOF
1e6feb95 22109#define wxUSE_DIRDLG 1
a0b9e27f 22110EOF
1e6feb95 22111
1e6feb95
VZ
22112 fi
22113fi
22114
22115if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 22116 cat >> confdefs.h <<\EOF
1e6feb95 22117#define wxUSE_MSGDLG 1
a0b9e27f 22118EOF
1e6feb95
VZ
22119
22120fi
22121
22122if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 22123 cat >> confdefs.h <<\EOF
1e6feb95 22124#define wxUSE_NUMBERDLG 1
a0b9e27f 22125EOF
1e6feb95
VZ
22126
22127fi
22128
22129if test "$wxUSE_PROGRESSDLG" = "yes"; then
22130 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22131 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 22132 else
a0b9e27f 22133 cat >> confdefs.h <<\EOF
1e6feb95 22134#define wxUSE_PROGRESSDLG 1
a0b9e27f 22135EOF
1e6feb95
VZ
22136
22137 fi
22138fi
22139
cbca9943 22140if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 22141 cat >> confdefs.h <<\EOF
cbca9943 22142#define wxUSE_SPLASH 1
a0b9e27f 22143EOF
cbca9943
VZ
22144
22145fi
22146
1e6feb95
VZ
22147if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22148 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 22149 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 22150 else
a0b9e27f 22151 cat >> confdefs.h <<\EOF
1e6feb95 22152#define wxUSE_STARTUP_TIPS 1
a0b9e27f 22153EOF
1e6feb95 22154
7b4a847f
RR
22155 fi
22156fi
579d8138 22157
8284b0c5 22158if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 22159 cat >> confdefs.h <<\EOF
8284b0c5 22160#define wxUSE_TEXTDLG 1
a0b9e27f 22161EOF
8284b0c5
MB
22162
22163fi
22164
22165if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 22166 cat >> confdefs.h <<\EOF
8284b0c5 22167#define wxUSE_WIZARDDLG 1
a0b9e27f 22168EOF
8284b0c5
MB
22169
22170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22171fi
22172
22173
22174if test "$cross_compiling" = "yes"; then
22175 OSINFO="\"$host\""
22176else
22177 OSINFO=`uname -s -r -m`
22178 OSINFO="\"$OSINFO\""
22179fi
22180
a0b9e27f 22181cat >> confdefs.h <<EOF
8284b0c5 22182#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 22183EOF
8284b0c5
MB
22184
22185
22186
22187if test "x$prefix" != "xNONE"; then
22188 wxPREFIX=$prefix
22189else
22190 wxPREFIX=$ac_default_prefix
22191fi
22192
a0b9e27f 22193cat >> confdefs.h <<EOF
8284b0c5 22194#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 22195EOF
8284b0c5
MB
22196
22197
52c71b80
VZ
22198top_builddir=`pwd`
22199
8284b0c5
MB
22200
22201
22202
22203if test "$wxUSE_MAC" = 1 ; then
22204 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22205fi
ac0c4cc3
DE
22206if test "$wxUSE_COCOA" = 1 ; then
22207 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22208fi
8284b0c5
MB
22209
22210
2b5f62a0
VZ
22211LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22212
22213have_cos=0
22214have_floor=0
22215for ac_func in cos
22216do
22217echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 22218echo "configure:22219: checking for $ac_func" >&5
2b5f62a0
VZ
22219if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22220 echo $ac_n "(cached) $ac_c" 1>&6
22221else
22222 cat > conftest.$ac_ext <<EOF
8b389fab 22223#line 22224 "configure"
2b5f62a0
VZ
22224#include "confdefs.h"
22225/* System header to define __stub macros and hopefully few prototypes,
22226 which can conflict with char $ac_func(); below. */
22227#include <assert.h>
22228/* Override any gcc2 internal prototype to avoid an error. */
22229/* We use char because int might match the return type of a gcc2
22230 builtin and then its argument prototype would still apply. */
22231char $ac_func();
22232
22233int main() {
22234
22235/* The GNU C library defines this for functions which it implements
22236 to always fail with ENOSYS. Some functions are actually named
22237 something starting with __ and the normal name is an alias. */
22238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22239choke me
22240#else
22241$ac_func();
22242#endif
22243
22244; return 0; }
22245EOF
8b389fab 22246if { (eval echo configure:22247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22247 rm -rf conftest*
22248 eval "ac_cv_func_$ac_func=yes"
22249else
22250 echo "configure: failed program was:" >&5
22251 cat conftest.$ac_ext >&5
22252 rm -rf conftest*
22253 eval "ac_cv_func_$ac_func=no"
22254fi
22255rm -f conftest*
22256fi
22257
22258if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22259 echo "$ac_t""yes" 1>&6
22260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22261 cat >> confdefs.h <<EOF
22262#define $ac_tr_func 1
22263EOF
22264 have_cos=1
22265else
22266 echo "$ac_t""no" 1>&6
22267fi
22268done
22269
22270for ac_func in floor
22271do
22272echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 22273echo "configure:22274: checking for $ac_func" >&5
2b5f62a0
VZ
22274if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22275 echo $ac_n "(cached) $ac_c" 1>&6
22276else
22277 cat > conftest.$ac_ext <<EOF
8b389fab 22278#line 22279 "configure"
2b5f62a0
VZ
22279#include "confdefs.h"
22280/* System header to define __stub macros and hopefully few prototypes,
22281 which can conflict with char $ac_func(); below. */
22282#include <assert.h>
22283/* Override any gcc2 internal prototype to avoid an error. */
22284/* We use char because int might match the return type of a gcc2
22285 builtin and then its argument prototype would still apply. */
22286char $ac_func();
22287
22288int main() {
22289
22290/* The GNU C library defines this for functions which it implements
22291 to always fail with ENOSYS. Some functions are actually named
22292 something starting with __ and the normal name is an alias. */
22293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22294choke me
22295#else
22296$ac_func();
22297#endif
22298
22299; return 0; }
22300EOF
8b389fab 22301if { (eval echo configure:22302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22302 rm -rf conftest*
22303 eval "ac_cv_func_$ac_func=yes"
22304else
22305 echo "configure: failed program was:" >&5
22306 cat conftest.$ac_ext >&5
22307 rm -rf conftest*
22308 eval "ac_cv_func_$ac_func=no"
22309fi
22310rm -f conftest*
22311fi
22312
22313if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22314 echo "$ac_t""yes" 1>&6
22315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22316 cat >> confdefs.h <<EOF
22317#define $ac_tr_func 1
22318EOF
22319 have_floor=1
22320else
22321 echo "$ac_t""no" 1>&6
22322fi
22323done
22324
22325echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
8b389fab 22326echo "configure:22327: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22327if test "$have_cos" = 1 -a "$have_floor" = 1; then
22328 echo "$ac_t""yes" 1>&6
22329else
22330 echo "$ac_t""no" 1>&6
22331 LIBS="$LIBS -lm"
22332 # use different functions to avoid configure caching
22333 have_sin=0
22334 have_ceil=0
22335 for ac_func in sin
22336do
22337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 22338echo "configure:22339: checking for $ac_func" >&5
2b5f62a0
VZ
22339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22340 echo $ac_n "(cached) $ac_c" 1>&6
22341else
22342 cat > conftest.$ac_ext <<EOF
8b389fab 22343#line 22344 "configure"
2b5f62a0
VZ
22344#include "confdefs.h"
22345/* System header to define __stub macros and hopefully few prototypes,
22346 which can conflict with char $ac_func(); below. */
22347#include <assert.h>
22348/* Override any gcc2 internal prototype to avoid an error. */
22349/* We use char because int might match the return type of a gcc2
22350 builtin and then its argument prototype would still apply. */
22351char $ac_func();
22352
22353int main() {
22354
22355/* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359choke me
22360#else
22361$ac_func();
22362#endif
22363
22364; return 0; }
22365EOF
8b389fab 22366if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22367 rm -rf conftest*
22368 eval "ac_cv_func_$ac_func=yes"
22369else
22370 echo "configure: failed program was:" >&5
22371 cat conftest.$ac_ext >&5
22372 rm -rf conftest*
22373 eval "ac_cv_func_$ac_func=no"
22374fi
22375rm -f conftest*
22376fi
22377
22378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22379 echo "$ac_t""yes" 1>&6
22380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22381 cat >> confdefs.h <<EOF
22382#define $ac_tr_func 1
22383EOF
22384 have_sin=1
22385else
22386 echo "$ac_t""no" 1>&6
22387fi
22388done
22389
22390 for ac_func in ceil
22391do
22392echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b389fab 22393echo "configure:22394: checking for $ac_func" >&5
2b5f62a0
VZ
22394if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22395 echo $ac_n "(cached) $ac_c" 1>&6
22396else
22397 cat > conftest.$ac_ext <<EOF
8b389fab 22398#line 22399 "configure"
2b5f62a0
VZ
22399#include "confdefs.h"
22400/* System header to define __stub macros and hopefully few prototypes,
22401 which can conflict with char $ac_func(); below. */
22402#include <assert.h>
22403/* Override any gcc2 internal prototype to avoid an error. */
22404/* We use char because int might match the return type of a gcc2
22405 builtin and then its argument prototype would still apply. */
22406char $ac_func();
22407
22408int main() {
22409
22410/* The GNU C library defines this for functions which it implements
22411 to always fail with ENOSYS. Some functions are actually named
22412 something starting with __ and the normal name is an alias. */
22413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22414choke me
22415#else
22416$ac_func();
22417#endif
22418
22419; return 0; }
22420EOF
8b389fab 22421if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22422 rm -rf conftest*
22423 eval "ac_cv_func_$ac_func=yes"
22424else
22425 echo "configure: failed program was:" >&5
22426 cat conftest.$ac_ext >&5
22427 rm -rf conftest*
22428 eval "ac_cv_func_$ac_func=no"
22429fi
22430rm -f conftest*
22431fi
22432
22433if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22434 echo "$ac_t""yes" 1>&6
22435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22436 cat >> confdefs.h <<EOF
22437#define $ac_tr_func 1
22438EOF
22439 have_ceil=1
22440else
22441 echo "$ac_t""no" 1>&6
22442fi
22443done
22444
22445 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
8b389fab 22446echo "configure:22447: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22447 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22448 echo "$ac_t""yes" 1>&6
22449 else
22450 echo "$ac_t""no" 1>&6
22451 # not sure we should warn the user, crash, etc.
22452 fi
22453fi
8284b0c5
MB
22454
22455if test "$wxUSE_GUI" = "yes"; then
22456
22457 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22458
a0b9e27f 22459
8284b0c5
MB
22460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22461 drawing dynamic erase event exec font image \
1542ea39 22462 minimal propsize rotate shaped widgets"
8284b0c5
MB
22463
22464 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22465else
22466 SAMPLES_SUBDIRS="console"
22467fi
22468
22469
22470INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22471-I\${top_srcdir}/include \
22472$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22473$TOOLKIT_INCLUDE"
22474
22475if test "$wxUSE_GTK" = 1; then
22476 WXCONFIG_INCLUDE=
22477else
22478 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22479fi
22480
22481if test "$GXX" = yes ; then
22482 CXXWARNINGS="-Wall"
a0b9e27f 22483
8284b0c5
MB
22484 if test "$wxUSE_NO_DEPS" = "no" ; then
22485 CFLAGS="-MMD $CFLAGS"
22486 CXXFLAGS="-MMD $CXXFLAGS"
22487 fi
22488fi
22489
b2fee376 22490EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22491
b2fee376 22492CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22493CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22494CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22495LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22496
22497LDFLAGS="$LDFLAGS $PROFILE"
22498
22499SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
2f51a9ec
GD
22568
22569
22570
22571
f6bcfd97 22572
dad6c0ea 22573
caa2c79b 22574
3711412e 22575
1e6feb95
VZ
22576
22577
885d4bf5
VS
22578
22579
22580
22581
9b695262
VZ
22582
22583
62d0491b 22584
ef7f2189 22585
40f7145c 22586
2b5f62a0
VZ
22587
22588
22589
22590
22591
2bffed64
VZ
22592
22593
3bd8fb5f 22594
e26c13cf 22595
52c71b80 22596
36825681 22597
4f5a7f74 22598
10f2d63a 22599
a0b9e27f
MB
22600
22601echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8b389fab 22602echo "configure:22603: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22603set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22604if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22605 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22606else
a0b9e27f 22607 cat > conftestmake <<\EOF
10f2d63a
VZ
22608all:
22609 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22610EOF
10f2d63a 22611# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22612eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22613if test -n "$ac_maketemp"; then
22614 eval ac_cv_prog_make_${ac_make}_set=yes
22615else
22616 eval ac_cv_prog_make_${ac_make}_set=no
22617fi
a0b9e27f 22618rm -f conftestmake
10f2d63a
VZ
22619fi
22620if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22621 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22622 SET_MAKE=
22623else
a0b9e27f 22624 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22625 SET_MAKE="MAKE=${MAKE-make}"
22626fi
22627
8284b0c5 22628
3a922bb4
RL
22629if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22630 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22631fi
665bbe97 22632
8284b0c5 22633
10f2d63a 22634
57973b9c
VZ
22635wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22636wx_cv_if_gnu_make=$IF_GNU_MAKE
22637wx_cv_path_ifs=$PATH_IFS
22638wx_cv_program_ext=$PROGRAM_EXT
22639wx_cv_target_library=$WX_TARGET_LIBRARY
22640wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22641wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22642wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22643wx_cv_release=${WX_RELEASE}
22644wx_cv_current=${WX_CURRENT}
22645wx_cv_revision=${WX_REVISION}
22646wx_cv_age=${WX_AGE}
27635a90 22647wx_cv_use_gui=${USE_GUI}
5e66eee1 22648wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22649export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22650 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22651 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22652 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22653 wx_cv_use_gui wx_cv_use_resources
57973b9c 22654
a0b9e27f 22655subdirs="demos samples utils contrib"
8284b0c5 22656
10f2d63a 22657
a0b9e27f
MB
22658trap '' 1 2 15
22659cat > confcache <<\EOF
10f2d63a
VZ
22660# This file is a shell script that caches the results of configure
22661# tests run on this system so they can be shared between configure
a0b9e27f
MB
22662# scripts and configure runs. It is not useful on other systems.
22663# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22664#
a0b9e27f
MB
22665# By default, configure uses ./config.cache as the cache file,
22666# creating it if it does not exist already. You can give configure
22667# the --cache-file=FILE option to use a different cache file; that is
22668# what configure does when it calls configure scripts in
22669# subdirectories, so they share the cache.
22670# Giving --cache-file=/dev/null disables caching, for debugging configure.
22671# config.status only pays attention to the cache file if you give it the
22672# --recheck option to rerun configure.
10f2d63a 22673#
a0b9e27f 22674EOF
10f2d63a
VZ
22675# The following way of writing the cache mishandles newlines in values,
22676# but we know of no workaround that is simple, portable, and efficient.
22677# So, don't put newlines in cache variables' values.
22678# Ultrix sh set writes to stderr and can't be redirected directly,
22679# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22680(set) 2>&1 |
22681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22682 *ac_space=\ *)
22683 # `set' does not quote correctly, so add quotes (double-quote substitution
22684 # turns \\\\ into \\, and sed turns \\ into \).
22685 sed -n \
22686 -e "s/'/'\\\\''/g" \
22687 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22688 ;;
22689 *)
22690 # `set' quotes correctly as required by POSIX, so do not add quotes.
22691 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22692 ;;
22693 esac >> confcache
22694if cmp -s $cache_file confcache; then
22695 :
22696else
10f2d63a 22697 if test -w $cache_file; then
a0b9e27f
MB
22698 echo "updating cache $cache_file"
22699 cat confcache > $cache_file
10f2d63a
VZ
22700 else
22701 echo "not updating unwritable cache $cache_file"
22702 fi
22703fi
22704rm -f confcache
22705
a0b9e27f
MB
22706trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22707
10f2d63a
VZ
22708test "x$prefix" = xNONE && prefix=$ac_default_prefix
22709# Let make expand exec_prefix.
22710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22711
a0b9e27f
MB
22712# Any assignment to VPATH causes Sun make to only execute
22713# the first set of double-colon rules, so remove it if not needed.
22714# If there is a colon in the path, we need to keep it.
10f2d63a 22715if test "x$srcdir" = x.; then
a0b9e27f 22716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22717fi
22718
a0b9e27f 22719trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22720
a0b9e27f 22721DEFS=-DHAVE_CONFIG_H
8284b0c5 22722
a0b9e27f 22723# Without the "./", some shells look in PATH for config.status.
247f5006 22724: ${CONFIG_STATUS=./config.status}
52127426 22725
a0b9e27f
MB
22726echo creating $CONFIG_STATUS
22727rm -f $CONFIG_STATUS
22728cat > $CONFIG_STATUS <<EOF
22729#! /bin/sh
22730# Generated automatically by configure.
22731# Run this file to recreate the current configuration.
22732# This directory was configured as follows,
22733# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22734#
a0b9e27f 22735# $0 $ac_configure_args
247f5006 22736#
a0b9e27f
MB
22737# Compiler output produced by configure, useful for debugging
22738# configure, is in ./config.log if it exists.
247f5006 22739
a0b9e27f
MB
22740ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22741for ac_option
247f5006 22742do
a0b9e27f
MB
22743 case "\$ac_option" in
22744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22749 exit 0 ;;
22750 -help | --help | --hel | --he | --h)
22751 echo "\$ac_cs_usage"; exit 0 ;;
22752 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22753 esac
22754done
22755
a0b9e27f
MB
22756ac_given_srcdir=$srcdir
22757ac_given_INSTALL="$INSTALL"
247f5006 22758
a0b9e27f
MB
22759trap 'rm -fr `echo "
22760 wx-config
2b5f62a0 22761 version-script
a0b9e27f
MB
22762 src/make.env
22763 src/makeprog.env
22764 src/makelib.env
22765 Makefile
22766 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22767EOF
22768cat >> $CONFIG_STATUS <<EOF
247f5006 22769
a0b9e27f
MB
22770# Protect against being on the right side of a sed subst in config.status.
22771sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22772 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22773$ac_vpsub
22774$extrasub
22775s%@SHELL@%$SHELL%g
22776s%@CFLAGS@%$CFLAGS%g
22777s%@CPPFLAGS@%$CPPFLAGS%g
22778s%@CXXFLAGS@%$CXXFLAGS%g
22779s%@FFLAGS@%$FFLAGS%g
22780s%@DEFS@%$DEFS%g
22781s%@LDFLAGS@%$LDFLAGS%g
22782s%@LIBS@%$LIBS%g
22783s%@exec_prefix@%$exec_prefix%g
22784s%@prefix@%$prefix%g
22785s%@program_transform_name@%$program_transform_name%g
22786s%@bindir@%$bindir%g
22787s%@sbindir@%$sbindir%g
22788s%@libexecdir@%$libexecdir%g
22789s%@datadir@%$datadir%g
22790s%@sysconfdir@%$sysconfdir%g
22791s%@sharedstatedir@%$sharedstatedir%g
22792s%@localstatedir@%$localstatedir%g
22793s%@libdir@%$libdir%g
22794s%@includedir@%$includedir%g
22795s%@oldincludedir@%$oldincludedir%g
22796s%@infodir@%$infodir%g
22797s%@mandir@%$mandir%g
22798s%@host@%$host%g
22799s%@host_alias@%$host_alias%g
22800s%@host_cpu@%$host_cpu%g
22801s%@host_vendor@%$host_vendor%g
22802s%@host_os@%$host_os%g
22803s%@target@%$target%g
22804s%@target_alias@%$target_alias%g
22805s%@target_cpu@%$target_cpu%g
22806s%@target_vendor@%$target_vendor%g
22807s%@target_os@%$target_os%g
22808s%@build@%$build%g
22809s%@build_alias@%$build_alias%g
22810s%@build_cpu@%$build_cpu%g
22811s%@build_vendor@%$build_vendor%g
22812s%@build_os@%$build_os%g
22813s%@CC@%$CC%g
22814s%@CPP@%$CPP%g
22815s%@CXX@%$CXX%g
22816s%@RANLIB@%$RANLIB%g
22817s%@AR@%$AR%g
22818s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22819s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22820s%@INSTALL_DATA@%$INSTALL_DATA%g
22821s%@STRIP@%$STRIP%g
22822s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22823s%@YACC@%$YACC%g
22824s%@LEX@%$LEX%g
22825s%@LEXLIB@%$LEXLIB%g
22826s%@LN_S@%$LN_S%g
22827s%@CXXCPP@%$CXXCPP%g
22828s%@PKG_CONFIG@%$PKG_CONFIG%g
22829s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22830s%@GTK_LIBS@%$GTK_LIBS%g
22831s%@GTK_CONFIG@%$GTK_CONFIG%g
22832s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22833s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22834s%@X_CFLAGS@%$X_CFLAGS%g
22835s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22836s%@X_LIBS@%$X_LIBS%g
22837s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22838s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22839s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22840s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22841s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22842s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22843s%@RESCOMP@%$RESCOMP%g
22844s%@DEREZ@%$DEREZ%g
36825681 22845s%@SETFILE@%$SETFILE%g
a0b9e27f
MB
22846s%@LIBICONV@%$LIBICONV%g
22847s%@LEX_STEM@%$LEX_STEM%g
22848s%@PATH_IFS@%$PATH_IFS%g
22849s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22850s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22851s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22852s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22853s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22854s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22855s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22856s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22857s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22858s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22859s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22860s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22861s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22862s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22863s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22864s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22865s%@WX_ALL@%$WX_ALL%g
22866s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22867s%@SHARED_LD@%$SHARED_LD%g
22868s%@PIC_FLAG@%$PIC_FLAG%g
22869s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22870s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22871s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22872s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22873s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22874s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22875s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22876s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22877s%@USE_GUI@%$USE_GUI%g
22878s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22879s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22880s%@TOOLKIT@%$TOOLKIT%g
22881s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22882s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22883s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22884s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22885s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
52c71b80 22886s%@top_builddir@%$top_builddir%g
a0b9e27f
MB
22887s%@cross_compiling@%$cross_compiling%g
22888s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22889s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22890s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22891s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22892s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22893s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22894s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22895s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22896s%@ALL_HEADERS@%$ALL_HEADERS%g
22897s%@ALL_SOURCES@%$ALL_SOURCES%g
22898s%@GUIDIST@%$GUIDIST%g
22899s%@PORT_FILES@%$PORT_FILES%g
22900s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22901s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22902s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22903s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22904s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22905s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22906s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22907s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22908s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22909s%@RESFLAGS@%$RESFLAGS%g
22910s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22911s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22912s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22913s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22914s%@LIBWXMACRES@%$LIBWXMACRES%g
36825681
GD
22915s%@MACRESCOMP@%$MACRESCOMP%g
22916s%@MACSETFILE@%$MACSETFILE%g
22917s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
2b5f62a0 22918s%@GCC@%$GCC%g
a0b9e27f
MB
22919s%@DLLTOOL@%$DLLTOOL%g
22920s%@AS@%$AS%g
22921s%@NM@%$NM%g
22922s%@LD@%$LD%g
22923s%@MAKEINFO@%$MAKEINFO%g
22924s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
4f5a7f74 22925s%@INSTALL_DIR@%$INSTALL_DIR%g
a0b9e27f
MB
22926s%@SET_MAKE@%$SET_MAKE%g
22927s%@subdirs@%$subdirs%g
247f5006 22928
247f5006 22929CEOF
a0b9e27f 22930EOF
247f5006 22931
a0b9e27f
MB
22932cat >> $CONFIG_STATUS <<\EOF
22933
22934# Split the substitutions into bite-sized pieces for seds with
22935# small command number limits, like on Digital OSF/1 and HP-UX.
22936ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22937ac_file=1 # Number of current file.
22938ac_beg=1 # First line for current file.
22939ac_end=$ac_max_sed_cmds # Line after last line for current file.
22940ac_more_lines=:
22941ac_sed_cmds=""
22942while $ac_more_lines; do
22943 if test $ac_beg -gt 1; then
22944 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22945 else
22946 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22947 fi
22948 if test ! -s conftest.s$ac_file; then
22949 ac_more_lines=false
22950 rm -f conftest.s$ac_file
22951 else
22952 if test -z "$ac_sed_cmds"; then
22953 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22954 else
a0b9e27f 22955 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22956 fi
a0b9e27f
MB
22957 ac_file=`expr $ac_file + 1`
22958 ac_beg=$ac_end
22959 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22960 fi
a0b9e27f
MB
22961done
22962if test -z "$ac_sed_cmds"; then
22963 ac_sed_cmds=cat
22964fi
22965EOF
10f2d63a 22966
a0b9e27f 22967cat >> $CONFIG_STATUS <<EOF
10f2d63a 22968
a0b9e27f 22969CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22970 version-script
a0b9e27f
MB
22971 src/make.env
22972 src/makeprog.env
22973 src/makelib.env
22974 Makefile
22975 "}
22976EOF
22977cat >> $CONFIG_STATUS <<\EOF
22978for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22980 case "$ac_file" in
22981 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22982 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22983 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22984 esac
247f5006 22985
a0b9e27f 22986 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22987
a0b9e27f
MB
22988 # Remove last slash and all that follows it. Not all systems have dirname.
22989 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22991 # The file is in a subdirectory.
22992 test ! -d "$ac_dir" && mkdir "$ac_dir"
22993 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22994 # A "../" for each directory in $ac_dir_suffix.
22995 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22996 else
22997 ac_dir_suffix= ac_dots=
22998 fi
247f5006 22999
a0b9e27f
MB
23000 case "$ac_given_srcdir" in
23001 .) srcdir=.
23002 if test -z "$ac_dots"; then top_srcdir=.
23003 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23004 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 23005 *) # Relative path.
a0b9e27f
MB
23006 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23007 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 23008 esac
10f2d63a 23009
a0b9e27f
MB
23010 case "$ac_given_INSTALL" in
23011 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23012 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23013 esac
247f5006 23014
a0b9e27f
MB
23015 echo creating "$ac_file"
23016 rm -f "$ac_file"
23017 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23018 case "$ac_file" in
23019 *Makefile*) ac_comsub="1i\\
23020# $configure_input" ;;
23021 *) ac_comsub= ;;
23022 esac
247f5006 23023
a0b9e27f
MB
23024 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23025 sed -e "$ac_comsub
23026s%@configure_input@%$configure_input%g
23027s%@srcdir@%$srcdir%g
23028s%@top_srcdir@%$top_srcdir%g
23029s%@INSTALL@%$INSTALL%g
23030" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23031fi; done
23032rm -f conftest.s*
10f2d63a
VZ
23033
23034# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23035# NAME is the cpp macro being defined and VALUE is the value it is being given.
23036#
23037# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
23038ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23039ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23040ac_dC='\3'
23041ac_dD='%g'
23042# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23043ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23044ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 23045ac_uC=' '
a0b9e27f
MB
23046ac_uD='\4%g'
23047# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23048ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23049ac_eB='$%\1#\2define\3'
23050ac_eC=' '
23051ac_eD='%g'
23052
23053if test "${CONFIG_HEADERS+set}" != set; then
23054EOF
23055cat >> $CONFIG_STATUS <<EOF
23056 CONFIG_HEADERS="setup.h:setup.h.in"
23057EOF
23058cat >> $CONFIG_STATUS <<\EOF
23059fi
23060for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 23061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
23062 case "$ac_file" in
23063 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23064 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23065 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
23066 esac
23067
a0b9e27f
MB
23068 echo creating $ac_file
23069
23070 rm -f conftest.frag conftest.in conftest.out
23071 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23072 cat $ac_file_inputs > conftest.in
23073
23074EOF
23075
23076# Transform confdefs.h into a sed script conftest.vals that substitutes
23077# the proper values into config.h.in to produce config.h. And first:
23078# Protect against being on the right side of a sed subst in config.status.
23079# Protect against being in an unquoted here document in config.status.
23080rm -f conftest.vals
23081cat > conftest.hdr <<\EOF
23082s/[\\&%]/\\&/g
23083s%[\\$`]%\\&%g
23084s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23085s%ac_d%ac_u%gp
23086s%ac_u%ac_e%gp
23087EOF
23088sed -n -f conftest.hdr confdefs.h > conftest.vals
23089rm -f conftest.hdr
10f2d63a
VZ
23090
23091# This sed command replaces #undef with comments. This is necessary, for
23092# example, in the case of _POSIX_SOURCE, which is predefined and required
23093# on some systems where configure will not decide to define it.
a0b9e27f
MB
23094cat >> conftest.vals <<\EOF
23095s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23096EOF
23097
23098# Break up conftest.vals because some shells have a limit on
23099# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
23100
23101rm -f conftest.tail
a0b9e27f 23102while :
10f2d63a 23103do
a0b9e27f
MB
23104 ac_lines=`grep -c . conftest.vals`
23105 # grep -c gives empty output for an empty file on some AIX systems.
23106 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23107 # Write a limited-size here document to conftest.frag.
23108 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23109 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 23110 echo 'CEOF
a0b9e27f
MB
23111 sed -f conftest.frag conftest.in > conftest.out
23112 rm -f conftest.in
23113 mv conftest.out conftest.in
23114' >> $CONFIG_STATUS
23115 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23116 rm -f conftest.vals
23117 mv conftest.tail conftest.vals
10f2d63a 23118done
a0b9e27f
MB
23119rm -f conftest.vals
23120
23121cat >> $CONFIG_STATUS <<\EOF
23122 rm -f conftest.frag conftest.h
23123 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23124 cat conftest.in >> conftest.h
23125 rm -f conftest.in
23126 if cmp -s $ac_file conftest.h 2>/dev/null; then
23127 echo "$ac_file is unchanged"
23128 rm -f conftest.h
10f2d63a 23129 else
a0b9e27f
MB
23130 # Remove last slash and all that follows it. Not all systems have dirname.
23131 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23132 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23133 # The file is in a subdirectory.
23134 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 23135 fi
a0b9e27f
MB
23136 rm -f $ac_file
23137 mv conftest.h $ac_file
247f5006 23138 fi
a0b9e27f
MB
23139fi; done
23140
23141EOF
23142cat >> $CONFIG_STATUS <<EOF
23143
23144 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23145 LN_S="${LN_S}"
23146
23147
23148EOF
23149cat >> $CONFIG_STATUS <<\EOF
10f2d63a 23150
652d930d 23151 if test ! -h wx-config; then
991a5759 23152 chmod +x wx-config
3a922bb4
RL
23153 mv wx-config wx${TOOLCHAIN_NAME}-config
23154 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 23155 fi
665bbe97 23156
00cf1208
RR
23157 if test ! -d lib; then
23158 mkdir lib
23159 fi
23160 if test ! -d lib/wx; then
23161 mkdir lib/wx
23162 fi
23163 if test ! -d lib/wx/include; then
23164 mkdir lib/wx/include
23165 fi
3a922bb4
RL
23166 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23167 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 23168 fi
3a922bb4
RL
23169 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23170 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
23171 fi
23172 if test -f setup.h; then
3a922bb4 23173 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 23174 fi
a0b9e27f
MB
23175
23176exit 0
23177EOF
10f2d63a 23178chmod +x $CONFIG_STATUS
a0b9e27f
MB
23179rm -fr confdefs* $ac_clean_files
23180test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 23181
2224580a
VZ
23182if test "$no_recursion" != yes; then
23183
23184 # Remove --cache-file and --srcdir arguments so they do not pile up.
23185 ac_sub_configure_args=
23186 ac_prev=
23187 for ac_arg in $ac_configure_args; do
23188 if test -n "$ac_prev"; then
23189 ac_prev=
23190 continue
23191 fi
a0b9e27f 23192 case "$ac_arg" in
2224580a
VZ
23193 -cache-file | --cache-file | --cache-fil | --cache-fi \
23194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23195 ac_prev=cache_file ;;
23196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 23197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
23198 ;;
23199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23200 ac_prev=srcdir ;;
23201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23202 ;;
23203 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23204 esac
23205 done
23206
a0b9e27f 23207 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
23208
23209 # Do not complain, so a configure script can configure whichever
23210 # parts of a large source tree are present.
a0b9e27f
MB
23211 if test ! -d $srcdir/$ac_config_dir; then
23212 continue
23213 fi
2224580a 23214
a0b9e27f 23215 echo configuring in $ac_config_dir
2224580a 23216
a0b9e27f
MB
23217 case "$srcdir" in
23218 .) ;;
23219 *)
23220 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23221 else
23222 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23223 fi
23224 ;;
23225 esac
2224580a 23226
a0b9e27f
MB
23227 ac_popdir=`pwd`
23228 cd $ac_config_dir
247f5006 23229
a0b9e27f
MB
23230 # A "../" for each directory in /$ac_config_dir.
23231 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 23232
a0b9e27f
MB
23233 case "$srcdir" in
23234 .) # No --srcdir option. We are building in place.
23235 ac_sub_srcdir=$srcdir ;;
23236 /*) # Absolute path.
23237 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23238 *) # Relative path.
23239 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23240 esac
2224580a
VZ
23241
23242 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
23243 if test -f $ac_sub_srcdir/configure; then
23244 ac_sub_configure=$ac_sub_srcdir/configure
23245 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
23246 ac_sub_configure=$ac_configure
23247 else
a0b9e27f 23248 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
23249 ac_sub_configure=
23250 fi
23251
23252 # The recursion is here.
23253 if test -n "$ac_sub_configure"; then
a0b9e27f 23254
2224580a 23255 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
23256 case "$cache_file" in
23257 /*) ac_sub_cache_file=$cache_file ;;
2224580a 23258 *) # Relative path.
a0b9e27f 23259 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 23260 esac
a0b9e27f
MB
23261 case "$ac_given_INSTALL" in
23262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23264 esac
2224580a 23265
a0b9e27f 23266 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 23267 # The eval makes quoting arguments work.
a0b9e27f
MB
23268 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23269 then :
23270 else
23271 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23272 fi
2224580a
VZ
23273 fi
23274
23275 cd $ac_popdir
23276 done
23277fi
23278
8284b0c5 23279
2b5f62a0
VZ
23280echo
23281echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23282echo ""
23283echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23284
23285echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23286echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23287echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23288
0c98a14e
GD
23289echo " What level of wxWindows compatibility should be enabled?"
23290echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
23291echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23292echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 23293
2b5f62a0
VZ
23294echo " Which libraries should wxWindows use?"
23295echo " jpeg ${wxUSE_LIBJPEG-none}"
23296echo " png ${wxUSE_LIBPNG-none}"
23297echo " regex ${wxUSE_REGEX}"
23298echo " tiff ${wxUSE_LIBTIFF-none}"
23299echo " zlib ${wxUSE_ZLIB}"
fd3d7534 23300echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
23301
23302echo ""
23303