]> git.saurik.com Git - wxWidgets.git/blame - configure
update wxStaticText check in revisions
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
2b5f62a0
VZ
55
56
57
a0b9e27f
MB
58
59
60
61
62# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
2b5f62a0
VZ
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
a0b9e27f
MB
69
70
71
72
73
a0b9e27f
MB
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
99 --with-wine use WINE"
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
b2fee376 139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
a0b9e27f
MB
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
163 --disable-compat22 disable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --enable-rpath=DIR output the rpath flag from wx-config"
166ac_help="$ac_help
167 --enable-intl use internationalization system"
168ac_help="$ac_help
169 --enable-config use wxConfig (and derived) classes"
170ac_help="$ac_help
171 --enable-protocols use wxProtocol and derived classes"
172ac_help="$ac_help
173 --enable-ftp use wxFTP (requires wxProtocol"
174ac_help="$ac_help
175 --enable-http use wxHTTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-fileproto use wxFileProto class (requires wxProtocol"
178ac_help="$ac_help
179 --enable-sockets use socket/network classes"
3bce6687
JS
180ac_help="$ac_help
181 --enable-ole use OLE classes"
182ac_help="$ac_help
183 --enable-dataobj use data object classes"
a0b9e27f
MB
184ac_help="$ac_help
185 --enable-ipc use interprocess communication (wxSocket etc.)"
186ac_help="$ac_help
187 --enable-cmdline use wxCmdLineParser class"
188ac_help="$ac_help
189 --enable-datetime use wxDateTime class"
190ac_help="$ac_help
191 --enable-timedate use obsolete wxDate/wxTime classes"
192ac_help="$ac_help
193 --enable-stopwatch use wxStopWatch class"
194ac_help="$ac_help
195 --enable-dialupman use dialup network classes"
196ac_help="$ac_help
197 --enable-apple_ieee use the Apple IEEE codec"
198ac_help="$ac_help
199 --enable-timer use wxTimer class"
200ac_help="$ac_help
201 --enable-wave use wxWave class"
202ac_help="$ac_help
203 --enable-fraction use wxFraction class"
204ac_help="$ac_help
205 --enable-dynlib use wxLibrary class for DLL loading"
206ac_help="$ac_help
207 --enable-dynamicloader use (new) wxDynamicLibrary class"
208ac_help="$ac_help
209 --enable-longlong use wxLongLong class"
210ac_help="$ac_help
211 --enable-geometry use geometry class"
212ac_help="$ac_help
213 --enable-log use logging system"
214ac_help="$ac_help
215 --enable-streams use wxStream etc classes"
216ac_help="$ac_help
217 --enable-file use wxFile classes"
218ac_help="$ac_help
219 --enable-ffile use wxFFile classes"
220ac_help="$ac_help
221 --enable-textbuf use wxTextBuffer class"
222ac_help="$ac_help
223 --enable-textfile use wxTextFile class"
224ac_help="$ac_help
225 --enable-fontmap use font encodings conversion classes"
226ac_help="$ac_help
227 --enable-unicode compile wxString with Unicode support"
228ac_help="$ac_help
229 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
230ac_help="$ac_help
231 --enable-wxprintfv use wxWindows implementation of vprintf()"
232ac_help="$ac_help
233 --enable-std_iostreams use standard C++ stream classes"
234ac_help="$ac_help
235 --enable-filesystem use virtual file systems classes"
236ac_help="$ac_help
237 --enable-fs_inet use virtual HTTP/FTP filesystems"
238ac_help="$ac_help
239 --enable-fs_zip use virtual ZIP filesystems"
240ac_help="$ac_help
241 --enable-zipstream use wxZipInputStream"
242ac_help="$ac_help
243 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
244ac_help="$ac_help
245 --enable-snglinst use wxSingleInstanceChecker class"
246ac_help="$ac_help
247 --enable-mimetype use wxMimeTypesManager"
248ac_help="$ac_help
249 --enable-sysoptions use wxSystemOptions"
250ac_help="$ac_help
251 --enable-url use wxURL class"
252ac_help="$ac_help
253 --enable-protocol use wxProtocol class"
254ac_help="$ac_help
255 --enable-protocol-http HTTP support in wxProtocol"
256ac_help="$ac_help
257 --enable-protocol-ftp FTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-file FILE support in wxProtocol"
260ac_help="$ac_help
261 --enable-threads use threads"
262ac_help="$ac_help
263 --enable-docview use document view architecture"
264ac_help="$ac_help
265 --enable-help use help subsystem"
266ac_help="$ac_help
267 --enable-mshtmlhelp use MS HTML Help (win32)"
268ac_help="$ac_help
269 --enable-html use wxHTML sub-library"
270ac_help="$ac_help
271 --enable-htmlhelp use wxHTML-based help"
272ac_help="$ac_help
273 --enable-constraints use layout-constraints system"
274ac_help="$ac_help
275 --enable-printarch use printing architecture"
276ac_help="$ac_help
277 --enable-mdi use multiple document interface architecture"
278ac_help="$ac_help
279 --enable-loggui use standard GUI logger"
280ac_help="$ac_help
281 --enable-logwin use wxLogWindow"
282ac_help="$ac_help
283 --enable-logdialog use wxLogDialog"
284ac_help="$ac_help
285 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
286ac_help="$ac_help
287 --enable-prologio use Prolog IO library"
288ac_help="$ac_help
289 --enable-resources use wxWindows resources"
290ac_help="$ac_help
291 --enable-xresources use X resources for save (default for gtk+)"
292ac_help="$ac_help
293 --enable-clipboard use wxClipboard classes"
294ac_help="$ac_help
295 --enable-dnd use Drag'n'Drop classes"
296ac_help="$ac_help
297 --enable-metafile use win32 metafiles"
298ac_help="$ac_help
299 --enable-treelayout use wxTreeLayout classes"
300ac_help="$ac_help
301 --enable-controls use all usual controls"
302ac_help="$ac_help
303 --enable-accel use accelerators"
304ac_help="$ac_help
305 --enable-button use wxButton class"
306ac_help="$ac_help
307 --enable-bmpbutton use wxBitmapButton class"
308ac_help="$ac_help
309 --enable-calendar use wxCalendarCtrl class"
310ac_help="$ac_help
311 --enable-caret use wxCaret class"
312ac_help="$ac_help
313 --enable-checkbox use wxCheckBox class"
314ac_help="$ac_help
315 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
316ac_help="$ac_help
317 --enable-choice use wxChoice class"
318ac_help="$ac_help
319 --enable-combobox use wxComboBox classes"
320ac_help="$ac_help
321 --enable-gauge use wxGauge class"
322ac_help="$ac_help
323 --enable-grid use wxGrid class"
324ac_help="$ac_help
325 --enable-newgrid use new wxGrid class"
326ac_help="$ac_help
327 --enable-imaglist use wxImageList class"
328ac_help="$ac_help
329 --enable-listbox use wxListBox class"
330ac_help="$ac_help
331 --enable-listctrl use wxListCtrl class"
332ac_help="$ac_help
333 --enable-notebook use wxNotebook class"
334ac_help="$ac_help
335 --enable-propsheet use wxPropertySheet class"
336ac_help="$ac_help
337 --enable-radiobox use wxRadioBox class"
338ac_help="$ac_help
339 --enable-radiobtn use wxRadioButton class"
340ac_help="$ac_help
341 --enable-sash use wxSashWindow class"
342ac_help="$ac_help
343 --enable-scrollbar use wxScrollBar class and scrollable windows"
344ac_help="$ac_help
345 --enable-slider use wxSlider class"
346ac_help="$ac_help
347 --enable-spinbtn use wxSpinButton class"
348ac_help="$ac_help
349 --enable-spinctrl use wxSpinCtrl class"
350ac_help="$ac_help
351 --enable-splitter use wxSplitterWindow class"
352ac_help="$ac_help
353 --enable-statbmp use wxStaticBitmap class"
354ac_help="$ac_help
355 --enable-statbox use wxStaticBox class"
356ac_help="$ac_help
357 --enable-statline use wxStaticLine class"
358ac_help="$ac_help
359 --enable-stattext use wxStaticText class"
360ac_help="$ac_help
361 --enable-statusbar use wxStatusBar class"
362ac_help="$ac_help
363 --enable-tabdialog use wxTabControl class"
364ac_help="$ac_help
365 --enable-textctrl use wxTextCtrl class"
366ac_help="$ac_help
367 --enable-togglebtn use wxToggleButton class"
368ac_help="$ac_help
369 --enable-toolbar use wxToolBar class"
370ac_help="$ac_help
371 --enable-tbarnative use native wxToolBar class"
372ac_help="$ac_help
373 --enable-tbarsmpl use wxToolBarSimple class"
374ac_help="$ac_help
375 --enable-treectrl use wxTreeCtrl class"
376ac_help="$ac_help
377 --enable-tipwindow use wxTipWindow class"
378ac_help="$ac_help
379 --enable-popupwin use wxPopUpWindow class"
380ac_help="$ac_help
381 --enable-commondlg use all common dialogs"
382ac_help="$ac_help
383 --enable-choicedlg use wxChoiceDialog"
384ac_help="$ac_help
385 --enable-coldlg use wxColourDialog"
386ac_help="$ac_help
387 --enable-filedlg use wxFileDialog"
388ac_help="$ac_help
389 --enable-finddlg use wxFindReplaceDialog"
390ac_help="$ac_help
391 --enable-fontdlg use wxFontDialog"
392ac_help="$ac_help
393 --enable-dirdlg use wxDirDialog"
394ac_help="$ac_help
395 --enable-msgdlg use wxMessageDialog"
396ac_help="$ac_help
397 --enable-numberdlg use wxNumberEntryDialog"
398ac_help="$ac_help
399 --enable-splash use wxSplashScreen"
400ac_help="$ac_help
401 --enable-textdlg use wxTextDialog"
402ac_help="$ac_help
403 --enable-tipdlg use startup tips"
404ac_help="$ac_help
405 --enable-progressdlg use wxProgressDialog"
406ac_help="$ac_help
407 --enable-wizarddlg use wxWizard"
408ac_help="$ac_help
409 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
410ac_help="$ac_help
411 --enable-miniframe use wxMiniFrame class"
412ac_help="$ac_help
413 --enable-tooltips use wxToolTip class"
414ac_help="$ac_help
415 --enable-splines use spline drawing code"
416ac_help="$ac_help
417 --enable-validators use wxValidator and derived classes"
418ac_help="$ac_help
419 --enable-busyinfo use wxBusyInfo"
420ac_help="$ac_help
421 --enable-joystick use wxJoystick (Linux only)"
422ac_help="$ac_help
423 --enable-metafiles use wxMetaFile (Windows only)"
424ac_help="$ac_help
425 --enable-dragimage use wxDragImage"
426ac_help="$ac_help
427 --enable-palette use wxPalette class"
428ac_help="$ac_help
429 --enable-image use wxImage class"
430ac_help="$ac_help
431 --enable-gif use gif images (GIF file format)"
432ac_help="$ac_help
433 --enable-pcx use pcx images (PCX file format)"
434ac_help="$ac_help
435 --enable-iff use iff images (IFF file format)"
436ac_help="$ac_help
437 --enable-pnm use pnm images (PNM file format)"
438ac_help="$ac_help
439 --enable-xpm use xpm images (XPM file format)"
440ac_help="$ac_help
441 --enable-icocur use Windows ICO and CUR formats"
442ac_help="$ac_help
443 --disable-largefile omit support for large files"
444ac_help="$ac_help
445 --disable-gtktest do not try to compile and run a test GTK+ program"
446ac_help="$ac_help
447 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
448ac_help="$ac_help
449 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
450ac_help="$ac_help
451 --disable-gtktest Do not try to compile and run a test GTK program"
452ac_help="$ac_help
453 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
454ac_help="$ac_help
455 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
456ac_help="$ac_help
457 --disable-gtktest Do not try to compile and run a test GTK program"
458ac_help="$ac_help
459 --with-x use the X Window System"
460ac_help="$ac_help
461 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
462
463# Initialize some variables set by options.
464# The variables have the same names as the options, with
465# dashes changed to underlines.
a0b9e27f
MB
466build=NONE
467cache_file=./config.cache
10f2d63a 468exec_prefix=NONE
a0b9e27f 469host=NONE
10f2d63a 470no_create=
a0b9e27f 471nonopt=NONE
10f2d63a
VZ
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
a0b9e27f 480target=NONE
10f2d63a
VZ
481verbose=
482x_includes=NONE
483x_libraries=NONE
484bindir='${exec_prefix}/bin'
485sbindir='${exec_prefix}/sbin'
486libexecdir='${exec_prefix}/libexec'
487datadir='${prefix}/share'
488sysconfdir='${prefix}/etc'
489sharedstatedir='${prefix}/com'
490localstatedir='${prefix}/var'
491libdir='${exec_prefix}/lib'
492includedir='${prefix}/include'
493oldincludedir='/usr/include'
494infodir='${prefix}/info'
495mandir='${prefix}/man'
496
a0b9e27f
MB
497# Initialize some other variables.
498subdirs=
499MFLAGS= MAKEFLAGS=
500SHELL=${CONFIG_SHELL-/bin/sh}
501# Maximum number of lines to put in a shell here document.
502ac_max_here_lines=12
503
10f2d63a
VZ
504ac_prev=
505for ac_option
506do
a0b9e27f 507
10f2d63a
VZ
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
514
a0b9e27f
MB
515 case "$ac_option" in
516 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
517 *) ac_optarg= ;;
518 esac
10f2d63a
VZ
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
a0b9e27f 522 case "$ac_option" in
10f2d63a
VZ
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 527 bindir="$ac_optarg" ;;
10f2d63a
VZ
528
529 -build | --build | --buil | --bui | --bu)
a0b9e27f 530 ac_prev=build ;;
10f2d63a 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 532 build="$ac_optarg" ;;
10f2d63a
VZ
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 539 cache_file="$ac_optarg" ;;
10f2d63a
VZ
540
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
a0b9e27f 545 datadir="$ac_optarg" ;;
10f2d63a
VZ
546
547 -disable-* | --disable-*)
a0b9e27f 548 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 549 # Reject names that are not valid shell variable names.
a0b9e27f
MB
550 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
551 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
552 fi
553 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
554 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
555
556 -enable-* | --enable-*)
a0b9e27f 557 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 558 # Reject names that are not valid shell variable names.
a0b9e27f
MB
559 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
560 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
561 fi
562 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
563 case "$ac_option" in
564 *=*) ;;
10f2d63a
VZ
565 *) ac_optarg=yes ;;
566 esac
a0b9e27f 567 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
568
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
a0b9e27f 576 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
577
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
581
a0b9e27f
MB
582 -help | --help | --hel | --he)
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
585 cat << EOF
586Usage: configure [options] [host]
587Options: [defaults in brackets after descriptions]
588Configuration:
589 --cache-file=FILE cache test results in FILE
590 --help print this message
591 --no-create do not create output files
592 --quiet, --silent do not print \`checking...' messages
593 --version print the version of autoconf that created configure
594Directory and file names:
595 --prefix=PREFIX install architecture-independent files in PREFIX
596 [$ac_default_prefix]
597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 [same as prefix]
599 --bindir=DIR user executables in DIR [EPREFIX/bin]
600 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
601 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
602 --datadir=DIR read-only architecture-independent data in DIR
603 [PREFIX/share]
604 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
605 --sharedstatedir=DIR modifiable architecture-independent data in DIR
606 [PREFIX/com]
607 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
608 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
609 --includedir=DIR C header files in DIR [PREFIX/include]
610 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
611 --infodir=DIR info documentation in DIR [PREFIX/info]
612 --mandir=DIR man documentation in DIR [PREFIX/man]
613 --srcdir=DIR find the sources in DIR [configure dir or ..]
614 --program-prefix=PREFIX prepend PREFIX to installed program names
615 --program-suffix=SUFFIX append SUFFIX to installed program names
616 --program-transform-name=PROGRAM
617 run sed PROGRAM on installed program names
618EOF
619 cat << EOF
620Host type:
621 --build=BUILD configure for building on BUILD [BUILD=HOST]
622 --host=HOST configure for HOST [guessed]
623 --target=TARGET configure for TARGET [TARGET=HOST]
624Features and packages:
625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
629 --x-includes=DIR X include files are in DIR
630 --x-libraries=DIR X library files are in DIR
631EOF
632 if test -n "$ac_help"; then
633 echo "--enable and --with options recognized:$ac_help"
634 fi
635 exit 0 ;;
10f2d63a
VZ
636
637 -host | --host | --hos | --ho)
a0b9e27f 638 ac_prev=host ;;
10f2d63a 639 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 640 host="$ac_optarg" ;;
10f2d63a
VZ
641
642 -includedir | --includedir | --includedi | --included | --include \
643 | --includ | --inclu | --incl | --inc)
644 ac_prev=includedir ;;
645 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
646 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 647 includedir="$ac_optarg" ;;
10f2d63a
VZ
648
649 -infodir | --infodir | --infodi | --infod | --info | --inf)
650 ac_prev=infodir ;;
651 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 652 infodir="$ac_optarg" ;;
10f2d63a
VZ
653
654 -libdir | --libdir | --libdi | --libd)
655 ac_prev=libdir ;;
656 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 657 libdir="$ac_optarg" ;;
10f2d63a
VZ
658
659 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
660 | --libexe | --libex | --libe)
661 ac_prev=libexecdir ;;
662 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
663 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 664 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -localstatedir | --localstatedir | --localstatedi | --localstated \
667 | --localstate | --localstat | --localsta | --localst \
668 | --locals | --local | --loca | --loc | --lo)
669 ac_prev=localstatedir ;;
670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
671 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
672 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 673 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
674
675 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
676 ac_prev=mandir ;;
677 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 678 mandir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -nfp | --nfp | --nf)
681 # Obsolete; use --without-fp.
682 with_fp=no ;;
683
684 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 685 | --no-cr | --no-c)
10f2d63a
VZ
686 no_create=yes ;;
687
688 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
689 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
690 no_recursion=yes ;;
691
692 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
693 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
694 | --oldin | --oldi | --old | --ol | --o)
695 ac_prev=oldincludedir ;;
696 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
697 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
698 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 699 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
700
701 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
702 ac_prev=prefix ;;
703 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 704 prefix="$ac_optarg" ;;
10f2d63a
VZ
705
706 -program-prefix | --program-prefix | --program-prefi | --program-pref \
707 | --program-pre | --program-pr | --program-p)
708 ac_prev=program_prefix ;;
709 -program-prefix=* | --program-prefix=* | --program-prefi=* \
710 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 711 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
712
713 -program-suffix | --program-suffix | --program-suffi | --program-suff \
714 | --program-suf | --program-su | --program-s)
715 ac_prev=program_suffix ;;
716 -program-suffix=* | --program-suffix=* | --program-suffi=* \
717 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 718 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
719
720 -program-transform-name | --program-transform-name \
721 | --program-transform-nam | --program-transform-na \
722 | --program-transform-n | --program-transform- \
723 | --program-transform | --program-transfor \
724 | --program-transfo | --program-transf \
725 | --program-trans | --program-tran \
726 | --progr-tra | --program-tr | --program-t)
727 ac_prev=program_transform_name ;;
728 -program-transform-name=* | --program-transform-name=* \
729 | --program-transform-nam=* | --program-transform-na=* \
730 | --program-transform-n=* | --program-transform-=* \
731 | --program-transform=* | --program-transfor=* \
732 | --program-transfo=* | --program-transf=* \
733 | --program-trans=* | --program-tran=* \
734 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 735 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
736
737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
738 | -silent | --silent | --silen | --sile | --sil)
739 silent=yes ;;
740
741 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
742 ac_prev=sbindir ;;
743 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
744 | --sbi=* | --sb=*)
a0b9e27f 745 sbindir="$ac_optarg" ;;
10f2d63a
VZ
746
747 -sharedstatedir | --sharedstatedir | --sharedstatedi \
748 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
749 | --sharedst | --shareds | --shared | --share | --shar \
750 | --sha | --sh)
751 ac_prev=sharedstatedir ;;
752 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
753 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
754 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
755 | --sha=* | --sh=*)
a0b9e27f 756 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
757
758 -site | --site | --sit)
759 ac_prev=site ;;
760 -site=* | --site=* | --sit=*)
a0b9e27f 761 site="$ac_optarg" ;;
10f2d63a
VZ
762
763 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
764 ac_prev=srcdir ;;
765 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 766 srcdir="$ac_optarg" ;;
10f2d63a
VZ
767
768 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
769 | --syscon | --sysco | --sysc | --sys | --sy)
770 ac_prev=sysconfdir ;;
771 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
772 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 773 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
774
775 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 776 ac_prev=target ;;
10f2d63a 777 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 778 target="$ac_optarg" ;;
10f2d63a
VZ
779
780 -v | -verbose | --verbose | --verbos | --verbo | --verb)
781 verbose=yes ;;
782
a0b9e27f
MB
783 -version | --version | --versio | --versi | --vers)
784 echo "configure generated by autoconf version 2.13"
785 exit 0 ;;
10f2d63a
VZ
786
787 -with-* | --with-*)
a0b9e27f 788 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 789 # Reject names that are not valid shell variable names.
a0b9e27f
MB
790 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
791 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
792 fi
10f2d63a 793 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
794 case "$ac_option" in
795 *=*) ;;
10f2d63a
VZ
796 *) ac_optarg=yes ;;
797 esac
a0b9e27f 798 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
799
800 -without-* | --without-*)
a0b9e27f 801 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 802 # Reject names that are not valid shell variable names.
a0b9e27f
MB
803 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
804 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
805 fi
806 ac_package=`echo $ac_package| sed 's/-/_/g'`
807 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
808
809 --x)
810 # Obsolete; use --with-x.
811 with_x=yes ;;
812
813 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
814 | --x-incl | --x-inc | --x-in | --x-i)
815 ac_prev=x_includes ;;
816 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
817 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 818 x_includes="$ac_optarg" ;;
10f2d63a
VZ
819
820 -x-libraries | --x-libraries | --x-librarie | --x-librari \
821 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
822 ac_prev=x_libraries ;;
823 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
824 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 825 x_libraries="$ac_optarg" ;;
10f2d63a 826
a0b9e27f 827 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
828 ;;
829
830 *)
a0b9e27f
MB
831 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
832 echo "configure: warning: $ac_option: invalid host type" 1>&2
833 fi
834 if test "x$nonopt" != xNONE; then
835 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
836 fi
837 nonopt="$ac_option"
10f2d63a
VZ
838 ;;
839
840 esac
841done
842
843if test -n "$ac_prev"; then
a0b9e27f 844 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 845fi
8284b0c5 846
a0b9e27f
MB
847trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
848
849# File descriptor usage:
850# 0 standard input
851# 1 file creation
852# 2 errors and warnings
853# 3 some systems may open it to /dev/tty
854# 4 used on the Kubota Titan
855# 6 checking for... messages and results
856# 5 compiler messages saved in config.log
857if test "$silent" = yes; then
858 exec 6>/dev/null
859else
860 exec 6>&1
861fi
862exec 5>./config.log
863
864echo "\
865This file contains any messages produced by compilers while
866running configure, to aid debugging if configure makes a mistake.
867" 1>&5
8284b0c5 868
a0b9e27f
MB
869# Strip out --no-create and --no-recursion so they do not pile up.
870# Also quote any args containing shell metacharacters.
871ac_configure_args=
872for ac_arg
10f2d63a 873do
a0b9e27f
MB
874 case "$ac_arg" in
875 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
876 | --no-cr | --no-c) ;;
877 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
879 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
880 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
881 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
882 esac
883done
884
a0b9e27f
MB
885# NLS nuisances.
886# Only set these to C if already set. These must not be set unconditionally
887# because not all systems understand e.g. LANG=C (notably SCO).
888# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
889# Non-C LC_CTYPE values break the ctype check.
890if test "${LANG+set}" = set; then LANG=C; export LANG; fi
891if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
892if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
893if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 894
a0b9e27f
MB
895# confdefs.h avoids OS command line length limits that DEFS can exceed.
896rm -rf conftest* confdefs.h
897# AIX cpp loses on an empty file, so make sure it contains at least a newline.
898echo > confdefs.h
10f2d63a 899
a0b9e27f
MB
900# A filename unique to this package, relative to the directory that
901# configure is in, which we can look for to find out if srcdir is correct.
902ac_unique_file=wx-config.in
10f2d63a
VZ
903
904# Find the source files, if location was not specified.
905if test -z "$srcdir"; then
906 ac_srcdir_defaulted=yes
907 # Try the directory containing this script, then its parent.
a0b9e27f
MB
908 ac_prog=$0
909 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
910 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
911 srcdir=$ac_confdir
912 if test ! -r $srcdir/$ac_unique_file; then
913 srcdir=..
914 fi
915else
916 ac_srcdir_defaulted=no
917fi
918if test ! -r $srcdir/$ac_unique_file; then
919 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 920 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 921 else
a0b9e27f 922 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
923 fi
924fi
a0b9e27f 925srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 926
10f2d63a
VZ
927# Prefer explicitly selected file to automatically selected ones.
928if test -z "$CONFIG_SITE"; then
929 if test "x$prefix" != xNONE; then
930 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
931 else
932 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
933 fi
934fi
935for ac_site_file in $CONFIG_SITE; do
936 if test -r "$ac_site_file"; then
a0b9e27f 937 echo "loading site script $ac_site_file"
10f2d63a
VZ
938 . "$ac_site_file"
939 fi
940done
941
942if test -r "$cache_file"; then
a0b9e27f
MB
943 echo "loading cache $cache_file"
944 . $cache_file
10f2d63a 945else
a0b9e27f
MB
946 echo "creating cache $cache_file"
947 > $cache_file
10f2d63a
VZ
948fi
949
950ac_ext=c
a0b9e27f 951# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 952ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
953ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955cross_compiling=$ac_cv_prog_cc_cross
956
957ac_exeext=
958ac_objext=o
959if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
960 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
961 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
962 ac_n= ac_c='
963' ac_t=' '
964 else
965 ac_n=-n ac_c= ac_t=
966 fi
967else
968 ac_n= ac_c='\c' ac_t=
969fi
8284b0c5
MB
970
971
10f2d63a 972
7c66a493
VZ
973ac_aux_dir=
974for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975 if test -f $ac_dir/install-sh; then
976 ac_aux_dir=$ac_dir
977 ac_install_sh="$ac_aux_dir/install-sh -c"
978 break
979 elif test -f $ac_dir/install.sh; then
980 ac_aux_dir=$ac_dir
981 ac_install_sh="$ac_aux_dir/install.sh -c"
982 break
247f5006 983 fi
7c66a493
VZ
984done
985if test -z "$ac_aux_dir"; then
a0b9e27f 986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 987fi
a0b9e27f
MB
988ac_config_guess=$ac_aux_dir/config.guess
989ac_config_sub=$ac_aux_dir/config.sub
990ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 991
8284b0c5 992
a0b9e27f
MB
993# Do some error checking and defaulting for the host and target type.
994# The inputs are:
995# configure --host=HOST --target=TARGET --build=BUILD NONOPT
996#
997# The rules are:
998# 1. You are not allowed to specify --host, --target, and nonopt at the
999# same time.
1000# 2. Host defaults to nonopt.
1001# 3. If nonopt is not specified, then host defaults to the current host,
1002# as determined by config.guess.
1003# 4. Target and build default to nonopt.
1004# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1005
1006# The aliases save the names the user supplied, while $host etc.
1007# will get canonicalized.
a0b9e27f
MB
1008case $host---$target---$nonopt in
1009NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011esac
1012
1013
1014# Make sure we can run config.sub.
1015if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1017fi
1018
1019echo $ac_n "checking host system type""... $ac_c" 1>&6
2b5f62a0 1020echo "configure:1021: checking host system type" >&5
a0b9e27f
MB
1021
1022host_alias=$host
1023case "$host_alias" in
1024NONE)
1025 case $nonopt in
1026 NONE)
1027 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1029 fi ;;
1030 *) host_alias=$nonopt ;;
1031 esac ;;
1032esac
1033
1034host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038echo "$ac_t""$host" 1>&6
1039
1040echo $ac_n "checking target system type""... $ac_c" 1>&6
2b5f62a0 1041echo "configure:1042: checking target system type" >&5
a0b9e27f
MB
1042
1043target_alias=$target
1044case "$target_alias" in
1045NONE)
1046 case $nonopt in
1047 NONE) target_alias=$host_alias ;;
1048 *) target_alias=$nonopt ;;
1049 esac ;;
1050esac
1051
1052target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056echo "$ac_t""$target" 1>&6
1057
1058echo $ac_n "checking build system type""... $ac_c" 1>&6
2b5f62a0 1059echo "configure:1060: checking build system type" >&5
a0b9e27f
MB
1060
1061build_alias=$build
1062case "$build_alias" in
1063NONE)
1064 case $nonopt in
1065 NONE) build_alias=$host_alias ;;
1066 *) build_alias=$nonopt ;;
1067 esac ;;
1068esac
1069
1070build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074echo "$ac_t""$build" 1>&6
1075
1076test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1078 NONENONEs,x,x, &&
1079 program_prefix=${target_alias}-
8284b0c5
MB
1080
1081
a0b9e27f 1082
10f2d63a 1083WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1084WX_MINOR_VERSION_NUMBER=5
1085WX_RELEASE_NUMBER=0
10f2d63a 1086
10f2d63a 1087WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1088WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1089
978f1259
RL
1090WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1091
34bed6d9 1092WX_CURRENT=0
6426998c
RL
1093WX_REVISION=0
1094WX_AGE=0
1095
8284b0c5
MB
1096
1097
10f2d63a
VZ
1098USE_UNIX=1
1099USE_WIN32=0
f9bc1684 1100USE_DOS=0
b12915c1 1101USE_BEOS=0
1216f52d 1102USE_MAC=0
b12915c1 1103
10f2d63a
VZ
1104USE_LINUX=
1105USE_SGI=
1106USE_HPUX=
1107USE_SYSV=
1108USE_SVR4=
1109USE_AIX=
1110USE_SUN=
1111USE_SOLARIS=
1112USE_SUNOS=
1113USE_ALPHA=
1114USE_OSF=
1115USE_BSD=
f11bdd03 1116USE_DARWIN=
10f2d63a 1117USE_FREEBSD=
95c8801c 1118USE_OPENBSD=
f6bcfd97 1119USE_NETBSD=
10f2d63a
VZ
1120USE_VMS=
1121USE_ULTRIX=
10f2d63a
VZ
1122USE_DATA_GENERAL=
1123
ab9b9eab
VZ
1124NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
f79bd02d 1126ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1127
1128DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1129DEFAULT_wxUSE_MAC=0
1130DEFAULT_wxUSE_MGL=0
1725144d 1131DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1132DEFAULT_wxUSE_MOTIF=0
1133DEFAULT_wxUSE_MSW=0
e07802fc 1134DEFAULT_wxUSE_PM=0
1e6feb95 1135DEFAULT_wxUSE_WINE=0
f79bd02d 1136DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1137
1138DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1139DEFAULT_DEFAULT_wxUSE_MAC=0
1140DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1141DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1142DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1144DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1145DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1146DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1147
d6a55c4b 1148PROGRAM_EXT=
3a922bb4 1149SO_SUFFIX=so
d6a55c4b 1150
10f2d63a
VZ
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1156 SO_SUFFIX=sl
a0b9e27f 1157 cat >> confdefs.h <<\EOF
10f2d63a 1158#define __HPUX__ 1
a0b9e27f 1159EOF
10f2d63a
VZ
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
a0b9e27f 1164 cat >> confdefs.h <<\EOF
10f2d63a 1165#define __LINUX__ 1
a0b9e27f 1166EOF
10f2d63a
VZ
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
a0b9e27f 1171 cat >> confdefs.h <<\EOF
10f2d63a 1172#define __ALPHA__ 1
a0b9e27f 1173EOF
10f2d63a
VZ
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
a0b9e27f 1181 cat >> confdefs.h <<\EOF
10f2d63a 1182#define __SGI__ 1
a0b9e27f 1183EOF
10f2d63a 1184
a0b9e27f 1185 cat >> confdefs.h <<\EOF
10f2d63a 1186#define __SVR4__ 1
a0b9e27f 1187EOF
10f2d63a
VZ
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
a0b9e27f 1195 cat >> confdefs.h <<\EOF
10f2d63a 1196#define __SUN__ 1
a0b9e27f 1197EOF
10f2d63a 1198
a0b9e27f 1199 cat >> confdefs.h <<\EOF
10f2d63a 1200#define __SOLARIS__ 1
a0b9e27f 1201EOF
10f2d63a 1202
a0b9e27f 1203 cat >> confdefs.h <<\EOF
10f2d63a 1204#define __SVR4__ 1
a0b9e27f 1205EOF
10f2d63a
VZ
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
a0b9e27f 1214 cat >> confdefs.h <<\EOF
10f2d63a 1215#define __SUN__ 1
a0b9e27f 1216EOF
10f2d63a 1217
a0b9e27f 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __SUNOS__ 1
a0b9e27f 1220EOF
10f2d63a 1221
a0b9e27f 1222 cat >> confdefs.h <<\EOF
10f2d63a 1223#define __BSD__ 1
a0b9e27f 1224EOF
10f2d63a
VZ
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
f6bcfd97 1228 *-*-freebsd*)
10f2d63a
VZ
1229 USE_BSD=1
1230 USE_FREEBSD=1
a0b9e27f 1231 cat >> confdefs.h <<\EOF
10f2d63a 1232#define __FREEBSD__ 1
a0b9e27f 1233EOF
10f2d63a 1234
a0b9e27f 1235 cat >> confdefs.h <<\EOF
10f2d63a 1236#define __BSD__ 1
a0b9e27f 1237EOF
95c8801c
VS
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
a0b9e27f 1244 cat >> confdefs.h <<\EOF
2b5f62a0 1245#define __OPENBSD__ 1
a0b9e27f 1246EOF
95c8801c 1247
a0b9e27f 1248 cat >> confdefs.h <<\EOF
2b5f62a0 1249#define __BSD__ 1
a0b9e27f 1250EOF
f6bcfd97
BP
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
a0b9e27f 1257 cat >> confdefs.h <<\EOF
2b5f62a0 1258#define __NETBSD__ 1
a0b9e27f 1259EOF
f6bcfd97 1260
a0b9e27f 1261 cat >> confdefs.h <<\EOF
2b5f62a0 1262#define __BSD__ 1
a0b9e27f 1263EOF
10f2d63a
VZ
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
a0b9e27f 1270 cat >> confdefs.h <<\EOF
10f2d63a 1271#define __ALPHA__ 1
a0b9e27f 1272EOF
10f2d63a 1273
a0b9e27f 1274 cat >> confdefs.h <<\EOF
10f2d63a 1275#define __OSF__ 1
a0b9e27f 1276EOF
10f2d63a
VZ
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
a0b9e27f 1284 cat >> confdefs.h <<\EOF
10f2d63a 1285#define __ALPHA__ 1
a0b9e27f 1286EOF
10f2d63a 1287
a0b9e27f 1288 cat >> confdefs.h <<\EOF
10f2d63a 1289#define __SVR4__ 1
a0b9e27f 1290EOF
10f2d63a
VZ
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
a0b9e27f 1297 cat >> confdefs.h <<\EOF
10f2d63a 1298#define __SYSV__ 1
a0b9e27f 1299EOF
10f2d63a 1300
a0b9e27f 1301 cat >> confdefs.h <<\EOF
10f2d63a 1302#define __SVR4__ 1
a0b9e27f 1303EOF
10f2d63a
VZ
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
2b5f62a0 1311 SO_SUFFIX=a
a0b9e27f 1312 cat >> confdefs.h <<\EOF
10f2d63a 1313#define __AIX__ 1
a0b9e27f 1314EOF
10f2d63a 1315
a0b9e27f 1316 cat >> confdefs.h <<\EOF
10f2d63a 1317#define __SYSV__ 1
a0b9e27f 1318EOF
10f2d63a 1319
a0b9e27f 1320 cat >> confdefs.h <<\EOF
10f2d63a 1321#define __SVR4__ 1
a0b9e27f 1322EOF
10f2d63a
VZ
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1c8183e2 1327 *-*-cygwin* | *-*-mingw32* )
17234b26 1328 SO_SUFFIX=dll
cf27ef00 1329 PROGRAM_EXT=".exe"
7b7a7637 1330 RESCOMP=windres
10f2d63a
VZ
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
f9bc1684
VS
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
a0b9e27f 1337 cat >> confdefs.h <<\EOF
f9bc1684 1338#define __DOS__ 1
a0b9e27f 1339EOF
f9bc1684
VS
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1343 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1344 ;;
1345
6fa882bd 1346 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1347 cat >> confdefs.h <<\EOF
10f2d63a 1348#define __EMX__ 1
a0b9e27f 1349EOF
10f2d63a 1350
cf27ef00 1351 PROGRAM_EXT=".exe"
e07802fc 1352 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1353 ;;
1354
d08b457b
GD
1355 powerpc-*-darwin* )
1356 USE_BSD=1
f11bdd03 1357 USE_DARWIN=1
3a922bb4 1358 SO_SUFFIX=dylib
a0b9e27f 1359 cat >> confdefs.h <<\EOF
f11bdd03 1360#define __BSD__ 1
a0b9e27f 1361EOF
b4085ce6 1362
a0b9e27f 1363 cat >> confdefs.h <<\EOF
f11bdd03 1364#define __DARWIN__ 1
a0b9e27f 1365EOF
d08b457b 1366
a0b9e27f 1367 cat >> confdefs.h <<\EOF
d08b457b 1368#define __POWERPC__ 1
a0b9e27f 1369EOF
b4085ce6
GD
1370
1371 DEFAULT_DEFAULT_wxUSE_MAC=1
1372 ;;
1373
b12915c1
VZ
1374 *-*-beos* )
1375 USE_BEOS=1
a0b9e27f 1376 cat >> confdefs.h <<\EOF
b12915c1 1377#define __BEOS__ 1
a0b9e27f 1378EOF
b12915c1
VZ
1379
1380 ;;
1381
10f2d63a 1382 *)
a0b9e27f 1383 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1384esac
1385
8284b0c5
MB
1386
1387
1388
1389 wx_arg_cache_file="configarg.cache"
1390 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1391 rm -f ${wx_arg_cache_file}.tmp
1392 touch ${wx_arg_cache_file}.tmp
1393 touch ${wx_arg_cache_file}
a0b9e27f 1394
10f2d63a
VZ
1395
1396DEBUG_CONFIGURE=0
1397if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1398 DEFAULT_wxUSE_UNIVERSAL=no
1399
d8356fa3
VZ
1400 DEFAULT_wxUSE_NANOX=no
1401
10f2d63a
VZ
1402 DEFAULT_wxUSE_THREADS=yes
1403
1404 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1405 DEFAULT_wxUSE_SONAME=no
1e6feb95 1406 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1407 DEFAULT_wxUSE_PROFILE=no
1408 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1409 DEFAULT_wxUSE_NO_RTTI=no
1410 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1411 DEFAULT_wxUSE_PERMISSIVE=no
1412 DEFAULT_wxUSE_DEBUG_FLAG=yes
1413 DEFAULT_wxUSE_DEBUG_INFO=yes
1414 DEFAULT_wxUSE_DEBUG_GDB=yes
1415 DEFAULT_wxUSE_MEM_TRACING=no
1416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1417 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1418 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1419 DEFAULT_wxUSE_APPLE_IEEE=no
1420
1421 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1422 DEFAULT_wxUSE_LOGWINDOW=no
1423 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1424 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1425
1426 DEFAULT_wxUSE_GUI=yes
1e6feb95 1427 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1428
3e44f09d 1429 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1430 DEFAULT_wxUSE_ZLIB=no
1431 DEFAULT_wxUSE_LIBPNG=no
1432 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1433 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1434 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1435 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1436
eb4efbdc 1437 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1438 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1440 DEFAULT_wxUSE_CMDLINE_PARSER=no
1441 DEFAULT_wxUSE_DATETIME=no
1442 DEFAULT_wxUSE_TIMEDATE=no
1443 DEFAULT_wxUSE_TIMER=no
1444 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1445 DEFAULT_wxUSE_FILE=no
1e6feb95 1446 DEFAULT_wxUSE_FFILE=no
a3a584a7 1447 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1448 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1449 DEFAULT_wxUSE_WAVE=no
1450 DEFAULT_wxUSE_INTL=no
1451 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1452 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_STREAMS=no
1454 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1455 DEFAULT_wxUSE_OLE=no
1456 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1457 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1458 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1459 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1460 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1461 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1462 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1466 DEFAULT_wxUSE_POSTSCRIPT=no
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=no
1470 DEFAULT_wxUSE_TOOLTIPS=no
1471 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1472 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_SPLINES=no
1474
1475 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1478
1479 DEFAULT_wxUSE_PROLOGIO=no
1480 DEFAULT_wxUSE_RESOURCES=no
1481 DEFAULT_wxUSE_CONSTRAINTS=no
1482 DEFAULT_wxUSE_IPC=no
1483 DEFAULT_wxUSE_HELP=no
29fd3c0c 1484 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1485 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1486 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1487 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1488 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1489 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1490 DEFAULT_wxUSE_PROTOCOL=no
1491 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1492 DEFAULT_wxUSE_PROTOCOL_FTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FILE=no
1494 DEFAULT_wxUSE_URL=no
3bd8fb5f 1495
10f2d63a 1496 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1497 DEFAULT_wxUSE_CHOICEDLG=no
1498 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1499 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1500 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1501 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1502 DEFAULT_wxUSE_FONTDLG=no
1503 DEFAULT_wxUSE_MSGDLG=no
1504 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1505 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1506 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1509 DEFAULT_wxUSE_WIZARDDLG=no
1510
1e6feb95 1511 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1512 DEFAULT_wxUSE_MINIFRAME=no
1513 DEFAULT_wxUSE_HTML=no
24528b0c 1514 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_FS_INET=no
1516 DEFAULT_wxUSE_FS_ZIP=no
1517 DEFAULT_wxUSE_BUSYINFO=no
1518 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1519 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1520
1521 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1522 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1523 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1524 DEFAULT_wxUSE_CALCTRL=no
1525 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_CHECKBOX=no
1527 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1528 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_COMBOBOX=no
1530 DEFAULT_wxUSE_GAUGE=no
1531 DEFAULT_wxUSE_GRID=no
1532 DEFAULT_wxUSE_NEW_GRID=no
1533 DEFAULT_wxUSE_IMAGLIST=no
1534 DEFAULT_wxUSE_LISTBOX=no
1535 DEFAULT_wxUSE_LISTCTRL=no
1536 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1537 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1544 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1549 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1552 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1553 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1554 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1557 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1558 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1559 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1560
1561 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1562 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
edae8572 1565 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1566 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1570 DEFAULT_wxUSE_IFF=no
0046ff7c 1571 DEFAULT_wxUSE_XPM=no
658974ae 1572 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1573else
1e6feb95
VZ
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
d8356fa3
VZ
1576 DEFAULT_wxUSE_NANOX=no
1577
10f2d63a
VZ
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1581 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1594 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1600 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
831b3152 1604 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1608 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1609 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1610 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1611
eb4efbdc 1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMEDATE=no
1618 DEFAULT_wxUSE_TIMER=yes
1619 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1620 DEFAULT_wxUSE_FILE=yes
1e6feb95 1621 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1622 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1623 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1624 DEFAULT_wxUSE_WAVE=no
1625 DEFAULT_wxUSE_INTL=yes
1626 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1627 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1628 DEFAULT_wxUSE_STREAMS=yes
1629 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1630 DEFAULT_wxUSE_OLE=yes
1631 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1632 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1633 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1634 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1635 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1636 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1637 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1638
1639 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1640 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1641 DEFAULT_wxUSE_POSTSCRIPT=yes
1642
1643 DEFAULT_wxUSE_X_RESOURCES=no
1644 DEFAULT_wxUSE_CLIPBOARD=yes
1645 DEFAULT_wxUSE_TOOLTIPS=yes
1646 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1647 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1648 DEFAULT_wxUSE_SPLINES=yes
1649
1650 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1653
2b5f62a0
VZ
1654 DEFAULT_wxUSE_PROLOGIO=no
1655 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
1656 DEFAULT_wxUSE_CONSTRAINTS=yes
1657 DEFAULT_wxUSE_IPC=yes
1658 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1659 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1660 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1661 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1662 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1663 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1664 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1665 DEFAULT_wxUSE_PROTOCOL=yes
1666 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1667 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1668 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1669 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1674 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1675 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1680 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1681 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1e6feb95 1686 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
24528b0c 1689 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1697 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1698 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
cc977e5f 1707 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1712 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1719 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1724 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1727 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1728 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1729 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1732 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1733 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1734 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1735
1736 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
edae8572 1740 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1741 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
cc0e8480 1744 DEFAULT_wxUSE_IFF=no
10f2d63a 1745 DEFAULT_wxUSE_PNM=yes
0046ff7c 1746 DEFAULT_wxUSE_XPM=yes
658974ae 1747 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1748fi
1749
8284b0c5
MB
1750
1751
10f2d63a 1752for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1753 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1754 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1755 has_toolkit_in_cache=1
1756 eval "DEFAULT_$LINE"
1757 eval "CACHE_$toolkit=1"
1758 fi
1759done
1760
8284b0c5
MB
1761
1762
5005acfe
VZ
1763 enablestring=
1764 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
2b5f62a0 1765echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5
10f2d63a
VZ
1766 no_cache=0
1767 # Check whether --enable-gui or --disable-gui was given.
1768if test "${enable_gui+set}" = set; then
1769 enableval="$enable_gui"
a0b9e27f 1770
10f2d63a
VZ
1771 if test "$enableval" = yes; then
1772 ac_cv_use_gui='wxUSE_GUI=yes'
1773 else
1774 ac_cv_use_gui='wxUSE_GUI=no'
1775 fi
a0b9e27f 1776
10f2d63a 1777else
a0b9e27f 1778
10f2d63a
VZ
1779 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1787
1788fi
10f2d63a
VZ
1789
1790
1791 eval "$ac_cv_use_gui"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1797 echo "$ac_t""yes" 1>&6
10f2d63a 1798 else
a0b9e27f 1799 echo "$ac_t""no" 1>&6
10f2d63a 1800 fi
a0b9e27f 1801
10f2d63a 1802
b12915c1 1803if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1804
8284b0c5 1805
5005acfe
VZ
1806 enablestring=
1807 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
2b5f62a0 1808echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5
1e6feb95
VZ
1809 no_cache=0
1810 # Check whether --enable-universal or --disable-universal was given.
1811if test "${enable_universal+set}" = set; then
1812 enableval="$enable_universal"
a0b9e27f 1813
1e6feb95
VZ
1814 if test "$enableval" = yes; then
1815 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1816 else
1817 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1818 fi
a0b9e27f 1819
1e6feb95 1820else
a0b9e27f 1821
1e6feb95
VZ
1822 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1830
1831fi
1e6feb95
VZ
1832
1833
1834 eval "$ac_cv_use_universal"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1840 echo "$ac_t""yes" 1>&6
1e6feb95 1841 else
a0b9e27f 1842 echo "$ac_t""no" 1>&6
1e6feb95 1843 fi
a0b9e27f 1844
10f2d63a
VZ
1845# Check whether --with-gtk or --without-gtk was given.
1846if test "${with_gtk+set}" = set; then
1847 withval="$with_gtk"
1848 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1849fi
10f2d63a
VZ
1850
1851# Check whether --with-motif or --without-motif was given.
1852if test "${with_motif+set}" = set; then
1853 withval="$with_motif"
1854 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1855fi
10f2d63a 1856
b4085ce6
GD
1857# Check whether --with-mac or --without-mac was given.
1858if test "${with_mac+set}" = set; then
1859 withval="$with_mac"
1860 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1861fi
b4085ce6 1862
10f2d63a
VZ
1863# Check whether --with-wine or --without-wine was given.
1864if test "${with_wine+set}" = set; then
1865 withval="$with_wine"
1866 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
a0b9e27f 1867fi
10f2d63a 1868
77e13408
RL
1869# Check whether --with-msw or --without-msw was given.
1870if test "${with_msw+set}" = set; then
1871 withval="$with_msw"
b4efce5e 1872 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1873fi
10f2d63a 1874
e07802fc
VZ
1875# Check whether --with-pm or --without-pm was given.
1876if test "${with_pm+set}" = set; then
1877 withval="$with_pm"
1878 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1879fi
698dcdb6 1880
1e6feb95
VZ
1881# Check whether --with-mgl or --without-mgl was given.
1882if test "${with_mgl+set}" = set; then
1883 withval="$with_mgl"
6c657b52 1884 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1885fi
1e6feb95 1886
1725144d
RR
1887# Check whether --with-microwin or --without-microwin was given.
1888if test "${with_microwin+set}" = set; then
1889 withval="$with_microwin"
1890 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1891fi
1725144d 1892
f79bd02d
JS
1893# Check whether --with-x11 or --without-x11 was given.
1894if test "${with_x11+set}" = set; then
1895 withval="$with_x11"
3c011993 1896 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1897fi
10f2d63a 1898
a0b9e27f 1899
5005acfe
VZ
1900 enablestring=
1901 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
2b5f62a0 1902echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5
d8356fa3 1903 no_cache=0
ba875e66
VZ
1904 # Check whether --enable-nanox or --disable-nanox was given.
1905if test "${enable_nanox+set}" = set; then
1906 enableval="$enable_nanox"
a0b9e27f 1907
d8356fa3 1908 if test "$enableval" = yes; then
ba875e66 1909 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1910 else
ba875e66 1911 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1912 fi
a0b9e27f 1913
d8356fa3 1914else
a0b9e27f 1915
d8356fa3
VZ
1916 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
ba875e66 1923 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1924
1925fi
d8356fa3
VZ
1926
1927
ba875e66 1928 eval "$ac_cv_use_nanox"
d8356fa3 1929 if test "$no_cache" != 1; then
ba875e66 1930 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1931 fi
1932
1933 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1934 echo "$ac_t""yes" 1>&6
d8356fa3 1935 else
a0b9e27f 1936 echo "$ac_t""no" 1>&6
d8356fa3 1937 fi
a0b9e27f 1938
8284b0c5 1939
d74f4b5a 1940
5005acfe
VZ
1941 enablestring=
1942 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
2b5f62a0 1943echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5
d74f4b5a
VZ
1944 no_cache=0
1945 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1946if test "${enable_gtk2+set}" = set; then
1947 enableval="$enable_gtk2"
a0b9e27f 1948
d74f4b5a
VZ
1949 if test "$enableval" = yes; then
1950 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1951 else
1952 ac_cv_use_gtk2='wxUSE_GTK2=no'
1953 fi
a0b9e27f 1954
10f2d63a 1955else
a0b9e27f 1956
d74f4b5a
VZ
1957 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1965
1966fi
52127426 1967
328a083c 1968
d74f4b5a
VZ
1969 eval "$ac_cv_use_gtk2"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1975 echo "$ac_t""yes" 1>&6
d74f4b5a 1976 else
a0b9e27f 1977 echo "$ac_t""no" 1>&6
d74f4b5a 1978 fi
a0b9e27f 1979
d74f4b5a 1980
5c6fa7d2 1981
a0b9e27f 1982 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2b5f62a0 1983echo "configure:1984: checking for --with-libpng" >&5
8284b0c5 1984 no_cache=0
a0b9e27f 1985 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1986if test "${with_libpng+set}" = set; then
1987 withval="$with_libpng"
a0b9e27f 1988
10f2d63a 1989 if test "$withval" = yes; then
b12915c1 1990 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1991 elif test "$withval" = no; then
b12915c1 1992 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1993 elif test "$withval" = sys; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1995 elif test "$withval" = builtin; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1997 else
a0b9e27f 1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1999 fi
a0b9e27f 2000
10f2d63a 2001else
a0b9e27f 2002
b12915c1 2003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2004 if test "x$LINE" != x ; then
2005 eval "DEFAULT_$LINE"
2006 else
2007 no_cache=1
2008 fi
2009
b12915c1 2010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2011
2012fi
10f2d63a
VZ
2013
2014
b12915c1 2015 eval "$ac_cv_use_libpng"
10f2d63a 2016 if test "$no_cache" != 1; then
b12915c1 2017 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2018 fi
2019
b12915c1 2020 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2021 echo "$ac_t""yes" 1>&6
422107f9 2022 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2023 echo "$ac_t""no" 1>&6
422107f9 2024 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2025 echo "$ac_t""system version" 1>&6
4f14bcd8 2026 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2027 echo "$ac_t""builtin version" 1>&6
422107f9 2028 else
a0b9e27f 2029 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2030 fi
a0b9e27f 2031
10f2d63a 2032
a0b9e27f 2033 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2b5f62a0 2034echo "configure:2035: checking for --with-libjpeg" >&5
10f2d63a 2035 no_cache=0
a0b9e27f 2036 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2037if test "${with_libjpeg+set}" = set; then
2038 withval="$with_libjpeg"
a0b9e27f 2039
10f2d63a 2040 if test "$withval" = yes; then
b12915c1 2041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2042 elif test "$withval" = no; then
b12915c1 2043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2044 elif test "$withval" = sys; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2046 elif test "$withval" = builtin; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2048 else
a0b9e27f 2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2050 fi
a0b9e27f 2051
10f2d63a 2052else
a0b9e27f 2053
b12915c1 2054 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
b12915c1 2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2062
2063fi
10f2d63a
VZ
2064
2065
b12915c1 2066 eval "$ac_cv_use_libjpeg"
10f2d63a 2067 if test "$no_cache" != 1; then
b12915c1 2068 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2069 fi
2070
b12915c1 2071 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2072 echo "$ac_t""yes" 1>&6
422107f9 2073 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2074 echo "$ac_t""no" 1>&6
422107f9 2075 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2076 echo "$ac_t""system version" 1>&6
4f14bcd8 2077 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2078 echo "$ac_t""builtin version" 1>&6
422107f9 2079 else
a0b9e27f 2080 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2081 fi
a0b9e27f 2082
10f2d63a 2083
a0b9e27f 2084 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2b5f62a0 2085echo "configure:2086: checking for --with-libtiff" >&5
10f2d63a 2086 no_cache=0
a0b9e27f 2087 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2088if test "${with_libtiff+set}" = set; then
2089 withval="$with_libtiff"
a0b9e27f 2090
10f2d63a 2091 if test "$withval" = yes; then
b12915c1 2092 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2093 elif test "$withval" = no; then
b12915c1 2094 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2095 elif test "$withval" = sys; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2097 elif test "$withval" = builtin; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2099 else
a0b9e27f 2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2101 fi
a0b9e27f 2102
10f2d63a 2103else
a0b9e27f 2104
b12915c1 2105 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
b12915c1 2112 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2113
2114fi
10f2d63a
VZ
2115
2116
b12915c1 2117 eval "$ac_cv_use_libtiff"
10f2d63a 2118 if test "$no_cache" != 1; then
b12915c1 2119 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2120 fi
2121
b12915c1 2122 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2123 echo "$ac_t""yes" 1>&6
0dcf9893 2124 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2125 echo "$ac_t""no" 1>&6
0dcf9893 2126 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2127 echo "$ac_t""system version" 1>&6
4f14bcd8 2128 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2129 echo "$ac_t""builtin version" 1>&6
0dcf9893 2130 else
a0b9e27f 2131 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2132 fi
a0b9e27f 2133
10f2d63a 2134
a0b9e27f 2135 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2b5f62a0 2136echo "configure:2137: checking for --with-opengl" >&5
10f2d63a 2137 no_cache=0
a0b9e27f 2138 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2139if test "${with_opengl+set}" = set; then
2140 withval="$with_opengl"
a0b9e27f 2141
10f2d63a 2142 if test "$withval" = yes; then
b12915c1 2143 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2144 else
b12915c1 2145 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2146 fi
a0b9e27f 2147
10f2d63a 2148else
a0b9e27f 2149
b12915c1 2150 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2151 if test "x$LINE" != x ; then
2152 eval "DEFAULT_$LINE"
2153 else
2154 no_cache=1
2155 fi
2156
b12915c1 2157 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2158
2159fi
10f2d63a
VZ
2160
2161
b12915c1 2162 eval "$ac_cv_use_opengl"
10f2d63a 2163 if test "$no_cache" != 1; then
b12915c1 2164 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2165 fi
2166
b12915c1 2167 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2168 echo "$ac_t""yes" 1>&6
10f2d63a 2169 else
a0b9e27f 2170 echo "$ac_t""no" 1>&6
10f2d63a 2171 fi
a0b9e27f 2172
10f2d63a 2173
b12915c1
VZ
2174fi
2175
5c6fa7d2 2176
a0b9e27f 2177 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2b5f62a0 2178echo "configure:2179: checking for --with-dmalloc" >&5
8284b0c5 2179 no_cache=0
a0b9e27f 2180 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2181if test "${with_dmalloc+set}" = set; then
2182 withval="$with_dmalloc"
a0b9e27f 2183
c7a2bf27 2184 if test "$withval" = yes; then
b12915c1 2185 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2186 else
b12915c1 2187 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2188 fi
a0b9e27f 2189
c7a2bf27 2190else
a0b9e27f 2191
b12915c1 2192 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
b12915c1 2199 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2200
2201fi
c7a2bf27
RR
2202
2203
b12915c1 2204 eval "$ac_cv_use_dmalloc"
c7a2bf27 2205 if test "$no_cache" != 1; then
b12915c1 2206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2207 fi
2208
b12915c1 2209 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2210 echo "$ac_t""yes" 1>&6
c7a2bf27 2211 else
a0b9e27f 2212 echo "$ac_t""no" 1>&6
c7a2bf27 2213 fi
a0b9e27f 2214
c7a2bf27 2215
a0b9e27f 2216 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2b5f62a0 2217echo "configure:2218: checking for --with-regex" >&5
3e44f09d 2218 no_cache=0
a0b9e27f 2219 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2220if test "${with_regex+set}" = set; then
2221 withval="$with_regex"
a0b9e27f 2222
3e44f09d
VZ
2223 if test "$withval" = yes; then
2224 ac_cv_use_regex='wxUSE_REGEX=yes'
2225 elif test "$withval" = no; then
2226 ac_cv_use_regex='wxUSE_REGEX=no'
2227 elif test "$withval" = sys; then
2228 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2229 elif test "$withval" = builtin; then
2230 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2231 else
a0b9e27f 2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2233 fi
a0b9e27f 2234
3e44f09d 2235else
a0b9e27f 2236
3e44f09d
VZ
2237 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2245
2246fi
3e44f09d
VZ
2247
2248
2249 eval "$ac_cv_use_regex"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2255 echo "$ac_t""yes" 1>&6
3e44f09d 2256 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2257 echo "$ac_t""no" 1>&6
3e44f09d 2258 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2259 echo "$ac_t""system version" 1>&6
4f14bcd8 2260 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2261 echo "$ac_t""builtin version" 1>&6
3e44f09d 2262 else
a0b9e27f 2263 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2264 fi
a0b9e27f 2265
3e44f09d 2266
a0b9e27f 2267 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2b5f62a0 2268echo "configure:2269: checking for --with-zlib" >&5
10f2d63a 2269 no_cache=0
a0b9e27f 2270 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2271if test "${with_zlib+set}" = set; then
2272 withval="$with_zlib"
a0b9e27f 2273
10f2d63a 2274 if test "$withval" = yes; then
b12915c1 2275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2276 elif test "$withval" = no; then
b12915c1 2277 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2278 elif test "$withval" = sys; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2280 elif test "$withval" = builtin; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2282 else
a0b9e27f 2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2284 fi
a0b9e27f 2285
10f2d63a 2286else
a0b9e27f 2287
b12915c1 2288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
b12915c1 2295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2296
2297fi
10f2d63a
VZ
2298
2299
b12915c1 2300 eval "$ac_cv_use_zlib"
10f2d63a 2301 if test "$no_cache" != 1; then
b12915c1 2302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2303 fi
2304
b12915c1 2305 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2306 echo "$ac_t""yes" 1>&6
422107f9 2307 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2308 echo "$ac_t""no" 1>&6
422107f9 2309 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2310 echo "$ac_t""system version" 1>&6
4f14bcd8 2311 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2312 echo "$ac_t""builtin version" 1>&6
422107f9 2313 else
a0b9e27f 2314 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2315 fi
a0b9e27f 2316
10f2d63a 2317
a0b9e27f 2318 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2b5f62a0 2319echo "configure:2320: checking for --with-odbc" >&5
10f2d63a 2320 no_cache=0
a0b9e27f 2321 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2322if test "${with_odbc+set}" = set; then
2323 withval="$with_odbc"
a0b9e27f 2324
10f2d63a
VZ
2325 if test "$withval" = yes; then
2326 ac_cv_use_odbc='wxUSE_ODBC=yes'
2327 else
2328 ac_cv_use_odbc='wxUSE_ODBC=no'
2329 fi
a0b9e27f 2330
10f2d63a 2331else
a0b9e27f 2332
10f2d63a
VZ
2333 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2341
2342fi
10f2d63a
VZ
2343
2344
2345 eval "$ac_cv_use_odbc"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2351 echo "$ac_t""yes" 1>&6
10f2d63a 2352 else
a0b9e27f 2353 echo "$ac_t""no" 1>&6
10f2d63a 2354 fi
a0b9e27f 2355
52127426 2356
8284b0c5
MB
2357
2358
5005acfe
VZ
2359 enablestring=
2360 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2b5f62a0 2361echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5
10f2d63a
VZ
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
a0b9e27f 2366
10f2d63a
VZ
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
a0b9e27f 2372
10f2d63a 2373else
a0b9e27f 2374
10f2d63a
VZ
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2383
2384fi
10f2d63a
VZ
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2393 echo "$ac_t""yes" 1>&6
10f2d63a 2394 else
a0b9e27f 2395 echo "$ac_t""no" 1>&6
10f2d63a 2396 fi
a0b9e27f 2397
10f2d63a 2398
5005acfe
VZ
2399 enablestring=
2400 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2b5f62a0 2401echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5
00cf1208 2402 no_cache=0
3a922bb4
RL
2403 # Check whether --enable-soname or --disable-soname was given.
2404if test "${enable_soname+set}" = set; then
2405 enableval="$enable_soname"
a0b9e27f 2406
00cf1208 2407 if test "$enableval" = yes; then
3a922bb4 2408 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2409 else
3a922bb4 2410 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2411 fi
a0b9e27f 2412
00cf1208 2413else
a0b9e27f 2414
3a922bb4 2415 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
3a922bb4 2422 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2423
2424fi
00cf1208
RR
2425
2426
3a922bb4 2427 eval "$ac_cv_use_soname"
00cf1208 2428 if test "$no_cache" != 1; then
3a922bb4 2429 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2430 fi
2431
3a922bb4 2432 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2433 echo "$ac_t""yes" 1>&6
00cf1208 2434 else
a0b9e27f 2435 echo "$ac_t""no" 1>&6
00cf1208 2436 fi
a0b9e27f 2437
00cf1208 2438
5005acfe
VZ
2439 enablestring=
2440 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2b5f62a0 2441echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5
10f2d63a
VZ
2442 no_cache=0
2443 # Check whether --enable-optimise or --disable-optimise was given.
2444if test "${enable_optimise+set}" = set; then
2445 enableval="$enable_optimise"
a0b9e27f 2446
10f2d63a
VZ
2447 if test "$enableval" = yes; then
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2449 else
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2451 fi
a0b9e27f 2452
10f2d63a 2453else
a0b9e27f 2454
10f2d63a
VZ
2455 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2463
2464fi
10f2d63a
VZ
2465
2466
2467 eval "$ac_cv_use_optimise"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2473 echo "$ac_t""yes" 1>&6
10f2d63a 2474 else
a0b9e27f 2475 echo "$ac_t""no" 1>&6
10f2d63a 2476 fi
a0b9e27f 2477
10f2d63a 2478
5005acfe
VZ
2479 enablestring=
2480 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2b5f62a0 2481echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5
10f2d63a
VZ
2482 no_cache=0
2483 # Check whether --enable-debug or --disable-debug was given.
2484if test "${enable_debug+set}" = set; then
2485 enableval="$enable_debug"
a0b9e27f 2486
10f2d63a
VZ
2487 if test "$enableval" = yes; then
2488 ac_cv_use_debug='wxUSE_DEBUG=yes'
2489 else
2490 ac_cv_use_debug='wxUSE_DEBUG=no'
2491 fi
a0b9e27f 2492
10f2d63a 2493else
a0b9e27f 2494
10f2d63a
VZ
2495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2503
2504fi
10f2d63a
VZ
2505
2506
2507 eval "$ac_cv_use_debug"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2513 echo "$ac_t""yes" 1>&6
10f2d63a 2514 else
a0b9e27f 2515 echo "$ac_t""no" 1>&6
10f2d63a 2516 fi
a0b9e27f 2517
52127426 2518
8284b0c5 2519
5005acfe
VZ
2520 enablestring=
2521 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2b5f62a0 2522echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5
683dccda
GD
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
a0b9e27f 2527
683dccda
GD
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
a0b9e27f 2533
683dccda 2534else
a0b9e27f 2535
683dccda
GD
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2544
2545fi
683dccda
GD
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2554 echo "$ac_t""yes" 1>&6
683dccda 2555 else
a0b9e27f 2556 echo "$ac_t""no" 1>&6
683dccda 2557 fi
a0b9e27f 2558
683dccda 2559
10f2d63a
VZ
2560if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566fi
2567
8284b0c5 2568
5005acfe
VZ
2569 enablestring=
2570 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2b5f62a0 2571echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5
10f2d63a
VZ
2572 no_cache=0
2573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2574if test "${enable_debug_flag+set}" = set; then
2575 enableval="$enable_debug_flag"
a0b9e27f 2576
10f2d63a
VZ
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2579 else
2580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2581 fi
a0b9e27f 2582
10f2d63a 2583else
a0b9e27f 2584
10f2d63a
VZ
2585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2593
2594fi
10f2d63a
VZ
2595
2596
2597 eval "$ac_cv_use_debug_flag"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2603 echo "$ac_t""yes" 1>&6
10f2d63a 2604 else
a0b9e27f 2605 echo "$ac_t""no" 1>&6
10f2d63a 2606 fi
a0b9e27f 2607
10f2d63a 2608
5005acfe
VZ
2609 enablestring=
2610 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2b5f62a0 2611echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5
10f2d63a
VZ
2612 no_cache=0
2613 # Check whether --enable-debug_info or --disable-debug_info was given.
2614if test "${enable_debug_info+set}" = set; then
2615 enableval="$enable_debug_info"
a0b9e27f 2616
10f2d63a
VZ
2617 if test "$enableval" = yes; then
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2619 else
2620 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2621 fi
a0b9e27f 2622
10f2d63a 2623else
a0b9e27f 2624
10f2d63a
VZ
2625 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2633
2634fi
10f2d63a
VZ
2635
2636
2637 eval "$ac_cv_use_debug_info"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2643 echo "$ac_t""yes" 1>&6
10f2d63a 2644 else
a0b9e27f 2645 echo "$ac_t""no" 1>&6
10f2d63a 2646 fi
a0b9e27f 2647
10f2d63a 2648
5005acfe
VZ
2649 enablestring=
2650 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2b5f62a0 2651echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5
10f2d63a
VZ
2652 no_cache=0
2653 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2654if test "${enable_debug_gdb+set}" = set; then
2655 enableval="$enable_debug_gdb"
a0b9e27f 2656
10f2d63a
VZ
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2659 else
2660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2661 fi
a0b9e27f 2662
10f2d63a 2663else
a0b9e27f 2664
10f2d63a
VZ
2665 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2673
2674fi
10f2d63a
VZ
2675
2676
2677 eval "$ac_cv_use_debug_gdb"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2683 echo "$ac_t""yes" 1>&6
10f2d63a 2684 else
a0b9e27f 2685 echo "$ac_t""no" 1>&6
10f2d63a 2686 fi
a0b9e27f 2687
10f2d63a 2688
5005acfe
VZ
2689 enablestring=
2690 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2b5f62a0 2691echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5
10f2d63a
VZ
2692 no_cache=0
2693 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2694if test "${enable_debug_cntxt+set}" = set; then
2695 enableval="$enable_debug_cntxt"
a0b9e27f 2696
10f2d63a
VZ
2697 if test "$enableval" = yes; then
2698 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2699 else
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2701 fi
a0b9e27f 2702
10f2d63a 2703else
a0b9e27f 2704
10f2d63a
VZ
2705 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2713
2714fi
10f2d63a
VZ
2715
2716
2717 eval "$ac_cv_use_debug_cntxt"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2723 echo "$ac_t""yes" 1>&6
10f2d63a 2724 else
a0b9e27f 2725 echo "$ac_t""no" 1>&6
10f2d63a 2726 fi
a0b9e27f 2727
10f2d63a 2728
5005acfe
VZ
2729 enablestring=
2730 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2b5f62a0 2731echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5
10f2d63a
VZ
2732 no_cache=0
2733 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2734if test "${enable_mem_tracing+set}" = set; then
2735 enableval="$enable_mem_tracing"
a0b9e27f 2736
10f2d63a
VZ
2737 if test "$enableval" = yes; then
2738 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2739 else
2740 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2741 fi
a0b9e27f 2742
10f2d63a 2743else
a0b9e27f 2744
10f2d63a
VZ
2745 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2753
2754fi
10f2d63a
VZ
2755
2756
2757 eval "$ac_cv_use_mem_tracing"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2763 echo "$ac_t""yes" 1>&6
10f2d63a 2764 else
a0b9e27f 2765 echo "$ac_t""no" 1>&6
10f2d63a 2766 fi
a0b9e27f 2767
10f2d63a 2768
5005acfe
VZ
2769 enablestring=
2770 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2b5f62a0 2771echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5
10f2d63a
VZ
2772 no_cache=0
2773 # Check whether --enable-profile or --disable-profile was given.
2774if test "${enable_profile+set}" = set; then
2775 enableval="$enable_profile"
a0b9e27f 2776
10f2d63a
VZ
2777 if test "$enableval" = yes; then
2778 ac_cv_use_profile='wxUSE_PROFILE=yes'
2779 else
2780 ac_cv_use_profile='wxUSE_PROFILE=no'
2781 fi
a0b9e27f 2782
10f2d63a 2783else
a0b9e27f 2784
10f2d63a
VZ
2785 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2793
2794fi
10f2d63a
VZ
2795
2796
2797 eval "$ac_cv_use_profile"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2803 echo "$ac_t""yes" 1>&6
10f2d63a 2804 else
a0b9e27f 2805 echo "$ac_t""no" 1>&6
10f2d63a 2806 fi
a0b9e27f 2807
10f2d63a 2808
5005acfe
VZ
2809 enablestring=
2810 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2b5f62a0 2811echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5
10f2d63a
VZ
2812 no_cache=0
2813 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2814if test "${enable_no_rtti+set}" = set; then
2815 enableval="$enable_no_rtti"
a0b9e27f 2816
10f2d63a
VZ
2817 if test "$enableval" = yes; then
2818 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2819 else
2820 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2821 fi
a0b9e27f 2822
10f2d63a 2823else
a0b9e27f 2824
10f2d63a
VZ
2825 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2833
2834fi
10f2d63a
VZ
2835
2836
2837 eval "$ac_cv_use_no_rtti"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2843 echo "$ac_t""yes" 1>&6
10f2d63a 2844 else
a0b9e27f 2845 echo "$ac_t""no" 1>&6
10f2d63a 2846 fi
a0b9e27f 2847
10f2d63a 2848
5005acfe
VZ
2849 enablestring=
2850 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2b5f62a0 2851echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5
10f2d63a
VZ
2852 no_cache=0
2853 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2854if test "${enable_no_exceptions+set}" = set; then
2855 enableval="$enable_no_exceptions"
a0b9e27f 2856
10f2d63a
VZ
2857 if test "$enableval" = yes; then
2858 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2859 else
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2861 fi
a0b9e27f 2862
10f2d63a 2863else
a0b9e27f 2864
10f2d63a
VZ
2865 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2873
2874fi
10f2d63a
VZ
2875
2876
2877 eval "$ac_cv_use_no_exceptions"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2883 echo "$ac_t""yes" 1>&6
10f2d63a 2884 else
a0b9e27f 2885 echo "$ac_t""no" 1>&6
10f2d63a 2886 fi
a0b9e27f 2887
10f2d63a 2888
5005acfe
VZ
2889 enablestring=
2890 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2b5f62a0 2891echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5
10f2d63a
VZ
2892 no_cache=0
2893 # Check whether --enable-permissive or --disable-permissive was given.
2894if test "${enable_permissive+set}" = set; then
2895 enableval="$enable_permissive"
a0b9e27f 2896
10f2d63a
VZ
2897 if test "$enableval" = yes; then
2898 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2899 else
2900 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2901 fi
a0b9e27f 2902
10f2d63a 2903else
a0b9e27f 2904
10f2d63a
VZ
2905 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2913
2914fi
10f2d63a
VZ
2915
2916
2917 eval "$ac_cv_use_permissive"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2923 echo "$ac_t""yes" 1>&6
10f2d63a 2924 else
a0b9e27f 2925 echo "$ac_t""no" 1>&6
10f2d63a 2926 fi
a0b9e27f 2927
10f2d63a 2928
5005acfe
VZ
2929 enablestring=
2930 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2b5f62a0 2931echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5
10f2d63a
VZ
2932 no_cache=0
2933 # Check whether --enable-no_deps or --disable-no_deps was given.
2934if test "${enable_no_deps+set}" = set; then
2935 enableval="$enable_no_deps"
a0b9e27f 2936
10f2d63a
VZ
2937 if test "$enableval" = yes; then
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2939 else
2940 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2941 fi
a0b9e27f 2942
10f2d63a 2943else
a0b9e27f 2944
10f2d63a
VZ
2945 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2953
2954fi
10f2d63a
VZ
2955
2956
2957 eval "$ac_cv_use_no_deps"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2963 echo "$ac_t""yes" 1>&6
10f2d63a 2964 else
a0b9e27f 2965 echo "$ac_t""no" 1>&6
10f2d63a 2966 fi
a0b9e27f 2967
52127426 2968
8284b0c5 2969
5005acfe
VZ
2970 enablestring=
2971 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2b5f62a0 2972echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5
54276ccf
VZ
2973 no_cache=0
2974 # Check whether --enable-compat20 or --disable-compat20 was given.
2975if test "${enable_compat20+set}" = set; then
2976 enableval="$enable_compat20"
a0b9e27f 2977
54276ccf
VZ
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2980 else
2981 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2982 fi
a0b9e27f 2983
54276ccf 2984else
a0b9e27f 2985
54276ccf
VZ
2986 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2994
2995fi
54276ccf
VZ
2996
2997
2998 eval "$ac_cv_use_compat20"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 3004 echo "$ac_t""yes" 1>&6
54276ccf 3005 else
a0b9e27f 3006 echo "$ac_t""no" 1>&6
54276ccf 3007 fi
a0b9e27f 3008
54276ccf 3009
5005acfe
VZ
3010 enablestring=disable
3011 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
2b5f62a0 3012echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5
54276ccf
VZ
3013 no_cache=0
3014 # Check whether --enable-compat22 or --disable-compat22 was given.
3015if test "${enable_compat22+set}" = set; then
3016 enableval="$enable_compat22"
a0b9e27f 3017
54276ccf
VZ
3018 if test "$enableval" = yes; then
3019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3020 else
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3022 fi
a0b9e27f 3023
54276ccf 3024else
a0b9e27f 3025
54276ccf
VZ
3026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3034
3035fi
54276ccf
VZ
3036
3037
3038 eval "$ac_cv_use_compat22"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3044 echo "$ac_t""yes" 1>&6
54276ccf 3045 else
a0b9e27f 3046 echo "$ac_t""no" 1>&6
54276ccf 3047 fi
a0b9e27f 3048
54276ccf 3049
3bd8fb5f
RD
3050# Check whether --enable-rpath or --disable-rpath was given.
3051if test "${enable_rpath+set}" = set; then
3052 enableval="$enable_rpath"
3053 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3054fi
3055
3bd8fb5f
RD
3056
3057if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3058 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3059fi
3060
8284b0c5
MB
3061
3062
3063
5005acfe
VZ
3064 enablestring=
3065 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
2b5f62a0 3066echo "configure:3067: checking for --${enablestring:-enable}-intl" >&5
10f2d63a
VZ
3067 no_cache=0
3068 # Check whether --enable-intl or --disable-intl was given.
3069if test "${enable_intl+set}" = set; then
3070 enableval="$enable_intl"
a0b9e27f 3071
10f2d63a
VZ
3072 if test "$enableval" = yes; then
3073 ac_cv_use_intl='wxUSE_INTL=yes'
3074 else
3075 ac_cv_use_intl='wxUSE_INTL=no'
3076 fi
a0b9e27f 3077
10f2d63a 3078else
a0b9e27f 3079
10f2d63a
VZ
3080 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3088
3089fi
10f2d63a
VZ
3090
3091
3092 eval "$ac_cv_use_intl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3098 echo "$ac_t""yes" 1>&6
10f2d63a 3099 else
a0b9e27f 3100 echo "$ac_t""no" 1>&6
10f2d63a 3101 fi
a0b9e27f 3102
10f2d63a 3103
5005acfe
VZ
3104 enablestring=
3105 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
2b5f62a0 3106echo "configure:3107: checking for --${enablestring:-enable}-config" >&5
10f2d63a
VZ
3107 no_cache=0
3108 # Check whether --enable-config or --disable-config was given.
3109if test "${enable_config+set}" = set; then
3110 enableval="$enable_config"
a0b9e27f 3111
10f2d63a
VZ
3112 if test "$enableval" = yes; then
3113 ac_cv_use_config='wxUSE_CONFIG=yes'
3114 else
3115 ac_cv_use_config='wxUSE_CONFIG=no'
3116 fi
a0b9e27f 3117
10f2d63a 3118else
a0b9e27f 3119
10f2d63a
VZ
3120 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3128
3129fi
10f2d63a
VZ
3130
3131
3132 eval "$ac_cv_use_config"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3138 echo "$ac_t""yes" 1>&6
10f2d63a 3139 else
a0b9e27f 3140 echo "$ac_t""no" 1>&6
10f2d63a 3141 fi
a0b9e27f 3142
52127426 3143
8284b0c5 3144
5005acfe
VZ
3145 enablestring=
3146 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
2b5f62a0 3147echo "configure:3148: checking for --${enablestring:-enable}-protocols" >&5
a1622950
VZ
3148 no_cache=0
3149 # Check whether --enable-protocols or --disable-protocols was given.
3150if test "${enable_protocols+set}" = set; then
3151 enableval="$enable_protocols"
a0b9e27f 3152
a1622950
VZ
3153 if test "$enableval" = yes; then
3154 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3155 else
3156 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3157 fi
a0b9e27f 3158
a1622950 3159else
a0b9e27f 3160
a1622950
VZ
3161 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3162 if test "x$LINE" != x ; then
3163 eval "DEFAULT_$LINE"
3164 else
3165 no_cache=1
3166 fi
3167
3168 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3169
3170fi
a1622950
VZ
3171
3172
3173 eval "$ac_cv_use_protocols"
3174 if test "$no_cache" != 1; then
3175 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3176 fi
3177
3178 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3179 echo "$ac_t""yes" 1>&6
a1622950 3180 else
a0b9e27f 3181 echo "$ac_t""no" 1>&6
a1622950 3182 fi
a0b9e27f 3183
a1622950 3184
5005acfe
VZ
3185 enablestring=
3186 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
2b5f62a0 3187echo "configure:3188: checking for --${enablestring:-enable}-ftp" >&5
a1622950
VZ
3188 no_cache=0
3189 # Check whether --enable-ftp or --disable-ftp was given.
3190if test "${enable_ftp+set}" = set; then
3191 enableval="$enable_ftp"
a0b9e27f 3192
a1622950
VZ
3193 if test "$enableval" = yes; then
3194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3195 else
3196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3197 fi
a0b9e27f 3198
a1622950 3199else
a0b9e27f 3200
a1622950
VZ
3201 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3209
3210fi
a1622950
VZ
3211
3212
3213 eval "$ac_cv_use_ftp"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3219 echo "$ac_t""yes" 1>&6
a1622950 3220 else
a0b9e27f 3221 echo "$ac_t""no" 1>&6
a1622950 3222 fi
a0b9e27f 3223
a1622950 3224
5005acfe
VZ
3225 enablestring=
3226 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
2b5f62a0 3227echo "configure:3228: checking for --${enablestring:-enable}-http" >&5
a1622950
VZ
3228 no_cache=0
3229 # Check whether --enable-http or --disable-http was given.
3230if test "${enable_http+set}" = set; then
3231 enableval="$enable_http"
a0b9e27f 3232
a1622950
VZ
3233 if test "$enableval" = yes; then
3234 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3235 else
3236 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3237 fi
a0b9e27f 3238
a1622950 3239else
a0b9e27f 3240
a1622950
VZ
3241 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3249
3250fi
a1622950
VZ
3251
3252
3253 eval "$ac_cv_use_http"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3259 echo "$ac_t""yes" 1>&6
a1622950 3260 else
a0b9e27f 3261 echo "$ac_t""no" 1>&6
a1622950 3262 fi
a0b9e27f 3263
a1622950 3264
5005acfe
VZ
3265 enablestring=
3266 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
2b5f62a0 3267echo "configure:3268: checking for --${enablestring:-enable}-fileproto" >&5
a1622950
VZ
3268 no_cache=0
3269 # Check whether --enable-fileproto or --disable-fileproto was given.
3270if test "${enable_fileproto+set}" = set; then
3271 enableval="$enable_fileproto"
a0b9e27f 3272
a1622950
VZ
3273 if test "$enableval" = yes; then
3274 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3275 else
3276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3277 fi
a0b9e27f 3278
a1622950 3279else
a0b9e27f 3280
a1622950
VZ
3281 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3289
3290fi
a1622950
VZ
3291
3292
3293 eval "$ac_cv_use_fileproto"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3299 echo "$ac_t""yes" 1>&6
a1622950 3300 else
a0b9e27f 3301 echo "$ac_t""no" 1>&6
a1622950 3302 fi
a0b9e27f 3303
a1622950 3304
5005acfe
VZ
3305 enablestring=
3306 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
2b5f62a0 3307echo "configure:3308: checking for --${enablestring:-enable}-sockets" >&5
10f2d63a
VZ
3308 no_cache=0
3309 # Check whether --enable-sockets or --disable-sockets was given.
3310if test "${enable_sockets+set}" = set; then
3311 enableval="$enable_sockets"
a0b9e27f 3312
10f2d63a
VZ
3313 if test "$enableval" = yes; then
3314 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3315 else
3316 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3317 fi
a0b9e27f 3318
10f2d63a 3319else
a0b9e27f 3320
10f2d63a
VZ
3321 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3329
3330fi
10f2d63a
VZ
3331
3332
3333 eval "$ac_cv_use_sockets"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3339 echo "$ac_t""yes" 1>&6
10f2d63a 3340 else
a0b9e27f 3341 echo "$ac_t""no" 1>&6
10f2d63a 3342 fi
a0b9e27f 3343
8284b0c5 3344
5005acfe
VZ
3345 enablestring=
3346 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
2b5f62a0 3347echo "configure:3348: checking for --${enablestring:-enable}-ole" >&5
3bce6687
JS
3348 no_cache=0
3349 # Check whether --enable-ole or --disable-ole was given.
3350if test "${enable_ole+set}" = set; then
3351 enableval="$enable_ole"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_ole='wxUSE_OLE=yes'
3355 else
3356 ac_cv_use_ole='wxUSE_OLE=no'
3357 fi
3358
3359else
3360
3361 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3369
3370fi
3371
3372
3373 eval "$ac_cv_use_ole"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_OLE" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
5005acfe
VZ
3385 enablestring=
3386 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
2b5f62a0 3387echo "configure:3388: checking for --${enablestring:-enable}-dataobj" >&5
3bce6687
JS
3388 no_cache=0
3389 # Check whether --enable-dataobj or --disable-dataobj was given.
3390if test "${enable_dataobj+set}" = set; then
3391 enableval="$enable_dataobj"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3395 else
3396 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3397 fi
3398
3399else
3400
3401 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3409
3410fi
3411
3412
3413 eval "$ac_cv_use_dataobj"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_DATAOBJ" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
52127426 3425
5005acfe
VZ
3426 enablestring=
3427 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
2b5f62a0 3428echo "configure:3429: checking for --${enablestring:-enable}-ipc" >&5
10f2d63a 3429 no_cache=0
eb4efbdc
VZ
3430 # Check whether --enable-ipc or --disable-ipc was given.
3431if test "${enable_ipc+set}" = set; then
3432 enableval="$enable_ipc"
a0b9e27f 3433
10f2d63a 3434 if test "$enableval" = yes; then
eb4efbdc 3435 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3436 else
eb4efbdc 3437 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3438 fi
a0b9e27f 3439
10f2d63a 3440else
a0b9e27f 3441
eb4efbdc 3442 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
eb4efbdc 3449 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3450
3451fi
10f2d63a
VZ
3452
3453
eb4efbdc 3454 eval "$ac_cv_use_ipc"
10f2d63a 3455 if test "$no_cache" != 1; then
eb4efbdc 3456 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3457 fi
3458
eb4efbdc 3459 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3460 echo "$ac_t""yes" 1>&6
10f2d63a 3461 else
a0b9e27f 3462 echo "$ac_t""no" 1>&6
10f2d63a 3463 fi
a0b9e27f 3464
52127426 3465
8284b0c5 3466
5005acfe
VZ
3467 enablestring=
3468 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
2b5f62a0 3469echo "configure:3470: checking for --${enablestring:-enable}-cmdline" >&5
1e6feb95
VZ
3470 no_cache=0
3471 # Check whether --enable-cmdline or --disable-cmdline was given.
3472if test "${enable_cmdline+set}" = set; then
3473 enableval="$enable_cmdline"
a0b9e27f 3474
1e6feb95
VZ
3475 if test "$enableval" = yes; then
3476 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3477 else
3478 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3479 fi
a0b9e27f 3480
1e6feb95 3481else
a0b9e27f 3482
1e6feb95
VZ
3483 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3491
3492fi
1e6feb95
VZ
3493
3494
3495 eval "$ac_cv_use_cmdline"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3501 echo "$ac_t""yes" 1>&6
1e6feb95 3502 else
a0b9e27f 3503 echo "$ac_t""no" 1>&6
1e6feb95 3504 fi
a0b9e27f 3505
1e6feb95 3506
5005acfe
VZ
3507 enablestring=
3508 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
2b5f62a0 3509echo "configure:3510: checking for --${enablestring:-enable}-datetime" >&5
1e6feb95
VZ
3510 no_cache=0
3511 # Check whether --enable-datetime or --disable-datetime was given.
3512if test "${enable_datetime+set}" = set; then
3513 enableval="$enable_datetime"
a0b9e27f 3514
1e6feb95
VZ
3515 if test "$enableval" = yes; then
3516 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3517 else
3518 ac_cv_use_datetime='wxUSE_DATETIME=no'
3519 fi
a0b9e27f 3520
1e6feb95 3521else
a0b9e27f 3522
1e6feb95
VZ
3523 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3531
3532fi
1e6feb95
VZ
3533
3534
3535 eval "$ac_cv_use_datetime"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3541 echo "$ac_t""yes" 1>&6
1e6feb95 3542 else
a0b9e27f 3543 echo "$ac_t""no" 1>&6
1e6feb95 3544 fi
a0b9e27f 3545
1e6feb95 3546
5005acfe
VZ
3547 enablestring=
3548 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
2b5f62a0 3549echo "configure:3550: checking for --${enablestring:-enable}-timedate" >&5
1e6feb95
VZ
3550 no_cache=0
3551 # Check whether --enable-timedate or --disable-timedate was given.
3552if test "${enable_timedate+set}" = set; then
3553 enableval="$enable_timedate"
a0b9e27f 3554
1e6feb95
VZ
3555 if test "$enableval" = yes; then
3556 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3557 else
3558 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3559 fi
a0b9e27f 3560
1e6feb95 3561else
a0b9e27f 3562
1e6feb95
VZ
3563 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3571
3572fi
1e6feb95
VZ
3573
3574
3575 eval "$ac_cv_use_timedate"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_TIMEDATE" = yes; then
a0b9e27f 3581 echo "$ac_t""yes" 1>&6
1e6feb95 3582 else
a0b9e27f 3583 echo "$ac_t""no" 1>&6
1e6feb95 3584 fi
a0b9e27f 3585
1e6feb95 3586
5005acfe
VZ
3587 enablestring=
3588 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
2b5f62a0 3589echo "configure:3590: checking for --${enablestring:-enable}-stopwatch" >&5
1e6feb95
VZ
3590 no_cache=0
3591 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3592if test "${enable_stopwatch+set}" = set; then
3593 enableval="$enable_stopwatch"
a0b9e27f 3594
1e6feb95
VZ
3595 if test "$enableval" = yes; then
3596 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3597 else
3598 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3599 fi
a0b9e27f 3600
1e6feb95 3601else
a0b9e27f 3602
1e6feb95
VZ
3603 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3611
3612fi
1e6feb95
VZ
3613
3614
3615 eval "$ac_cv_use_stopwatch"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3621 echo "$ac_t""yes" 1>&6
1e6feb95 3622 else
a0b9e27f 3623 echo "$ac_t""no" 1>&6
1e6feb95 3624 fi
a0b9e27f 3625
1e6feb95 3626
5005acfe
VZ
3627 enablestring=
3628 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
2b5f62a0 3629echo "configure:3630: checking for --${enablestring:-enable}-dialupman" >&5
10f2d63a 3630 no_cache=0
eb4efbdc
VZ
3631 # Check whether --enable-dialupman or --disable-dialupman was given.
3632if test "${enable_dialupman+set}" = set; then
3633 enableval="$enable_dialupman"
a0b9e27f 3634
10f2d63a 3635 if test "$enableval" = yes; then
eb4efbdc 3636 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3637 else
eb4efbdc 3638 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3639 fi
a0b9e27f 3640
10f2d63a 3641else
a0b9e27f 3642
eb4efbdc 3643 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
eb4efbdc 3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3651
3652fi
10f2d63a
VZ
3653
3654
eb4efbdc 3655 eval "$ac_cv_use_dialupman"
10f2d63a 3656 if test "$no_cache" != 1; then
eb4efbdc 3657 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3658 fi
3659
eb4efbdc 3660 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3661 echo "$ac_t""yes" 1>&6
10f2d63a 3662 else
a0b9e27f 3663 echo "$ac_t""no" 1>&6
10f2d63a 3664 fi
a0b9e27f 3665
10f2d63a 3666
5005acfe
VZ
3667 enablestring=
3668 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
2b5f62a0 3669echo "configure:3670: checking for --${enablestring:-enable}-apple_ieee" >&5
10f2d63a
VZ
3670 no_cache=0
3671 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3672if test "${enable_apple_ieee+set}" = set; then
3673 enableval="$enable_apple_ieee"
a0b9e27f 3674
10f2d63a
VZ
3675 if test "$enableval" = yes; then
3676 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3677 else
3678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3679 fi
a0b9e27f 3680
10f2d63a 3681else
a0b9e27f 3682
10f2d63a
VZ
3683 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3691
3692fi
10f2d63a
VZ
3693
3694
3695 eval "$ac_cv_use_apple_ieee"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3701 echo "$ac_t""yes" 1>&6
10f2d63a 3702 else
a0b9e27f 3703 echo "$ac_t""no" 1>&6
10f2d63a 3704 fi
a0b9e27f 3705
10f2d63a 3706
5005acfe
VZ
3707 enablestring=
3708 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
2b5f62a0 3709echo "configure:3710: checking for --${enablestring:-enable}-timer" >&5
10f2d63a 3710 no_cache=0
1e6feb95
VZ
3711 # Check whether --enable-timer or --disable-timer was given.
3712if test "${enable_timer+set}" = set; then
3713 enableval="$enable_timer"
a0b9e27f 3714
10f2d63a 3715 if test "$enableval" = yes; then
1e6feb95 3716 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3717 else
1e6feb95 3718 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3719 fi
a0b9e27f 3720
10f2d63a 3721else
a0b9e27f 3722
1e6feb95 3723 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
1e6feb95 3730 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3731
3732fi
10f2d63a
VZ
3733
3734
1e6feb95 3735 eval "$ac_cv_use_timer"
10f2d63a 3736 if test "$no_cache" != 1; then
1e6feb95 3737 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3738 fi
3739
1e6feb95 3740 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3741 echo "$ac_t""yes" 1>&6
10f2d63a 3742 else
a0b9e27f 3743 echo "$ac_t""no" 1>&6
10f2d63a 3744 fi
a0b9e27f 3745
10f2d63a 3746
5005acfe
VZ
3747 enablestring=
3748 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
2b5f62a0 3749echo "configure:3750: checking for --${enablestring:-enable}-wave" >&5
10f2d63a
VZ
3750 no_cache=0
3751 # Check whether --enable-wave or --disable-wave was given.
3752if test "${enable_wave+set}" = set; then
3753 enableval="$enable_wave"
a0b9e27f 3754
10f2d63a
VZ
3755 if test "$enableval" = yes; then
3756 ac_cv_use_wave='wxUSE_WAVE=yes'
3757 else
3758 ac_cv_use_wave='wxUSE_WAVE=no'
3759 fi
a0b9e27f 3760
10f2d63a 3761else
a0b9e27f 3762
10f2d63a
VZ
3763 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3771
3772fi
10f2d63a
VZ
3773
3774
3775 eval "$ac_cv_use_wave"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3781 echo "$ac_t""yes" 1>&6
10f2d63a 3782 else
a0b9e27f 3783 echo "$ac_t""no" 1>&6
10f2d63a 3784 fi
a0b9e27f 3785
10f2d63a 3786
5005acfe
VZ
3787 enablestring=
3788 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
2b5f62a0 3789echo "configure:3790: checking for --${enablestring:-enable}-fraction" >&5
10f2d63a
VZ
3790 no_cache=0
3791 # Check whether --enable-fraction or --disable-fraction was given.
3792if test "${enable_fraction+set}" = set; then
3793 enableval="$enable_fraction"
a0b9e27f 3794
10f2d63a
VZ
3795 if test "$enableval" = yes; then
3796 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3797 else
3798 ac_cv_use_fraction='wxUSE_FRACTION=no'
3799 fi
a0b9e27f 3800
10f2d63a 3801else
a0b9e27f 3802
10f2d63a
VZ
3803 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3811
3812fi
10f2d63a
VZ
3813
3814
3815 eval "$ac_cv_use_fraction"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3821 echo "$ac_t""yes" 1>&6
10f2d63a 3822 else
a0b9e27f 3823 echo "$ac_t""no" 1>&6
10f2d63a 3824 fi
a0b9e27f 3825
10f2d63a 3826
5005acfe
VZ
3827 enablestring=
3828 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
2b5f62a0 3829echo "configure:3830: checking for --${enablestring:-enable}-dynlib" >&5
10f2d63a
VZ
3830 no_cache=0
3831 # Check whether --enable-dynlib or --disable-dynlib was given.
3832if test "${enable_dynlib+set}" = set; then
3833 enableval="$enable_dynlib"
a0b9e27f 3834
10f2d63a
VZ
3835 if test "$enableval" = yes; then
3836 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3837 else
3838 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3839 fi
a0b9e27f 3840
10f2d63a 3841else
a0b9e27f 3842
10f2d63a
VZ
3843 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3851
3852fi
10f2d63a
VZ
3853
3854
3855 eval "$ac_cv_use_dynlib"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3861 echo "$ac_t""yes" 1>&6
10f2d63a 3862 else
a0b9e27f 3863 echo "$ac_t""no" 1>&6
10f2d63a 3864 fi
a0b9e27f 3865
10f2d63a 3866
5005acfe
VZ
3867 enablestring=
3868 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
2b5f62a0 3869echo "configure:3870: checking for --${enablestring:-enable}-dynamicloader" >&5
0b9ab0bd
RL
3870 no_cache=0
3871 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3872if test "${enable_dynamicloader+set}" = set; then
3873 enableval="$enable_dynamicloader"
a0b9e27f 3874
0b9ab0bd
RL
3875 if test "$enableval" = yes; then
3876 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3877 else
3878 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3879 fi
a0b9e27f 3880
0b9ab0bd 3881else
a0b9e27f 3882
0b9ab0bd
RL
3883 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3891
3892fi
0b9ab0bd
RL
3893
3894
3895 eval "$ac_cv_use_dynamicloader"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3901 echo "$ac_t""yes" 1>&6
0b9ab0bd 3902 else
a0b9e27f 3903 echo "$ac_t""no" 1>&6
0b9ab0bd 3904 fi
a0b9e27f 3905
0b9ab0bd 3906
5005acfe
VZ
3907 enablestring=
3908 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
2b5f62a0 3909echo "configure:3910: checking for --${enablestring:-enable}-longlong" >&5
10f2d63a
VZ
3910 no_cache=0
3911 # Check whether --enable-longlong or --disable-longlong was given.
3912if test "${enable_longlong+set}" = set; then
3913 enableval="$enable_longlong"
a0b9e27f 3914
10f2d63a
VZ
3915 if test "$enableval" = yes; then
3916 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3917 else
3918 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3919 fi
a0b9e27f 3920
10f2d63a 3921else
a0b9e27f 3922
10f2d63a
VZ
3923 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3931
3932fi
10f2d63a
VZ
3933
3934
3935 eval "$ac_cv_use_longlong"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3941 echo "$ac_t""yes" 1>&6
10f2d63a 3942 else
a0b9e27f 3943 echo "$ac_t""no" 1>&6
10f2d63a 3944 fi
a0b9e27f 3945
10f2d63a 3946
5005acfe
VZ
3947 enablestring=
3948 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
2b5f62a0 3949echo "configure:3950: checking for --${enablestring:-enable}-geometry" >&5
e8f65ba6
RR
3950 no_cache=0
3951 # Check whether --enable-geometry or --disable-geometry was given.
3952if test "${enable_geometry+set}" = set; then
3953 enableval="$enable_geometry"
a0b9e27f 3954
e8f65ba6
RR
3955 if test "$enableval" = yes; then
3956 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3957 else
3958 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3959 fi
a0b9e27f 3960
e8f65ba6 3961else
a0b9e27f 3962
e8f65ba6
RR
3963 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3971
3972fi
e8f65ba6
RR
3973
3974
3975 eval "$ac_cv_use_geometry"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3981 echo "$ac_t""yes" 1>&6
e8f65ba6 3982 else
a0b9e27f 3983 echo "$ac_t""no" 1>&6
e8f65ba6 3984 fi
a0b9e27f 3985
e8f65ba6 3986
5005acfe
VZ
3987 enablestring=
3988 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
2b5f62a0 3989echo "configure:3990: checking for --${enablestring:-enable}-log" >&5
10f2d63a
VZ
3990 no_cache=0
3991 # Check whether --enable-log or --disable-log was given.
3992if test "${enable_log+set}" = set; then
3993 enableval="$enable_log"
a0b9e27f 3994
10f2d63a
VZ
3995 if test "$enableval" = yes; then
3996 ac_cv_use_log='wxUSE_LOG=yes'
3997 else
3998 ac_cv_use_log='wxUSE_LOG=no'
3999 fi
a0b9e27f 4000
10f2d63a 4001else
a0b9e27f 4002
10f2d63a
VZ
4003 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
4011
4012fi
10f2d63a
VZ
4013
4014
4015 eval "$ac_cv_use_log"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_LOG" = yes; then
a0b9e27f 4021 echo "$ac_t""yes" 1>&6
10f2d63a 4022 else
a0b9e27f 4023 echo "$ac_t""no" 1>&6
10f2d63a 4024 fi
a0b9e27f 4025
10f2d63a 4026
5005acfe
VZ
4027 enablestring=
4028 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
2b5f62a0 4029echo "configure:4030: checking for --${enablestring:-enable}-streams" >&5
10f2d63a
VZ
4030 no_cache=0
4031 # Check whether --enable-streams or --disable-streams was given.
4032if test "${enable_streams+set}" = set; then
4033 enableval="$enable_streams"
a0b9e27f 4034
10f2d63a
VZ
4035 if test "$enableval" = yes; then
4036 ac_cv_use_streams='wxUSE_STREAMS=yes'
4037 else
4038 ac_cv_use_streams='wxUSE_STREAMS=no'
4039 fi
a0b9e27f 4040
10f2d63a 4041else
a0b9e27f 4042
10f2d63a
VZ
4043 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4051
4052fi
10f2d63a
VZ
4053
4054
4055 eval "$ac_cv_use_streams"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4061 echo "$ac_t""yes" 1>&6
10f2d63a 4062 else
a0b9e27f 4063 echo "$ac_t""no" 1>&6
10f2d63a 4064 fi
a0b9e27f 4065
10f2d63a 4066
5005acfe
VZ
4067 enablestring=
4068 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
2b5f62a0 4069echo "configure:4070: checking for --${enablestring:-enable}-file" >&5
10f2d63a
VZ
4070 no_cache=0
4071 # Check whether --enable-file or --disable-file was given.
4072if test "${enable_file+set}" = set; then
4073 enableval="$enable_file"
a0b9e27f 4074
10f2d63a
VZ
4075 if test "$enableval" = yes; then
4076 ac_cv_use_file='wxUSE_FILE=yes'
4077 else
4078 ac_cv_use_file='wxUSE_FILE=no'
4079 fi
a0b9e27f 4080
10f2d63a 4081else
a0b9e27f 4082
10f2d63a
VZ
4083 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4091
4092fi
10f2d63a
VZ
4093
4094
4095 eval "$ac_cv_use_file"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4101 echo "$ac_t""yes" 1>&6
10f2d63a 4102 else
a0b9e27f 4103 echo "$ac_t""no" 1>&6
10f2d63a 4104 fi
a0b9e27f 4105
10f2d63a 4106
5005acfe
VZ
4107 enablestring=
4108 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
2b5f62a0 4109echo "configure:4110: checking for --${enablestring:-enable}-ffile" >&5
10f2d63a 4110 no_cache=0
1e6feb95
VZ
4111 # Check whether --enable-ffile or --disable-ffile was given.
4112if test "${enable_ffile+set}" = set; then
4113 enableval="$enable_ffile"
a0b9e27f 4114
10f2d63a 4115 if test "$enableval" = yes; then
1e6feb95 4116 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4117 else
1e6feb95 4118 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4119 fi
a0b9e27f 4120
10f2d63a 4121else
a0b9e27f 4122
1e6feb95 4123 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
1e6feb95 4130 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4131
4132fi
10f2d63a
VZ
4133
4134
1e6feb95 4135 eval "$ac_cv_use_ffile"
10f2d63a 4136 if test "$no_cache" != 1; then
1e6feb95 4137 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4138 fi
4139
1e6feb95 4140 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4141 echo "$ac_t""yes" 1>&6
10f2d63a 4142 else
a0b9e27f 4143 echo "$ac_t""no" 1>&6
10f2d63a 4144 fi
a0b9e27f 4145
10f2d63a 4146
5005acfe
VZ
4147 enablestring=
4148 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
2b5f62a0 4149echo "configure:4150: checking for --${enablestring:-enable}-textbuf" >&5
a3a584a7
VZ
4150 no_cache=0
4151 # Check whether --enable-textbuf or --disable-textbuf was given.
4152if test "${enable_textbuf+set}" = set; then
4153 enableval="$enable_textbuf"
a0b9e27f 4154
a3a584a7
VZ
4155 if test "$enableval" = yes; then
4156 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4157 else
4158 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4159 fi
a0b9e27f 4160
a3a584a7 4161else
a0b9e27f 4162
a3a584a7
VZ
4163 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4171
4172fi
a3a584a7
VZ
4173
4174
4175 eval "$ac_cv_use_textbuf"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4181 echo "$ac_t""yes" 1>&6
a3a584a7 4182 else
a0b9e27f 4183 echo "$ac_t""no" 1>&6
a3a584a7 4184 fi
a0b9e27f 4185
a3a584a7 4186
5005acfe
VZ
4187 enablestring=
4188 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
2b5f62a0 4189echo "configure:4190: checking for --${enablestring:-enable}-textfile" >&5
10f2d63a 4190 no_cache=0
1e6feb95
VZ
4191 # Check whether --enable-textfile or --disable-textfile was given.
4192if test "${enable_textfile+set}" = set; then
4193 enableval="$enable_textfile"
a0b9e27f 4194
10f2d63a 4195 if test "$enableval" = yes; then
1e6feb95 4196 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4197 else
1e6feb95 4198 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4199 fi
a0b9e27f 4200
10f2d63a 4201else
a0b9e27f 4202
1e6feb95 4203 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
1e6feb95 4210 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4211
4212fi
10f2d63a
VZ
4213
4214
1e6feb95 4215 eval "$ac_cv_use_textfile"
10f2d63a 4216 if test "$no_cache" != 1; then
1e6feb95 4217 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4218 fi
4219
1e6feb95 4220 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4221 echo "$ac_t""yes" 1>&6
10f2d63a 4222 else
a0b9e27f 4223 echo "$ac_t""no" 1>&6
10f2d63a 4224 fi
a0b9e27f 4225
10f2d63a 4226
5005acfe
VZ
4227 enablestring=
4228 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
2b5f62a0 4229echo "configure:4230: checking for --${enablestring:-enable}-fontmap" >&5
10f2d63a 4230 no_cache=0
1e6feb95
VZ
4231 # Check whether --enable-fontmap or --disable-fontmap was given.
4232if test "${enable_fontmap+set}" = set; then
4233 enableval="$enable_fontmap"
a0b9e27f 4234
10f2d63a 4235 if test "$enableval" = yes; then
1e6feb95 4236 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4237 else
1e6feb95 4238 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4239 fi
a0b9e27f 4240
10f2d63a 4241else
a0b9e27f 4242
1e6feb95 4243 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
1e6feb95 4250 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4251
4252fi
10f2d63a
VZ
4253
4254
1e6feb95 4255 eval "$ac_cv_use_fontmap"
10f2d63a 4256 if test "$no_cache" != 1; then
1e6feb95 4257 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4258 fi
4259
1e6feb95 4260 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4261 echo "$ac_t""yes" 1>&6
10f2d63a 4262 else
a0b9e27f 4263 echo "$ac_t""no" 1>&6
10f2d63a 4264 fi
a0b9e27f 4265
10f2d63a 4266
5005acfe
VZ
4267 enablestring=
4268 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
2b5f62a0 4269echo "configure:4270: checking for --${enablestring:-enable}-unicode" >&5
10f2d63a 4270 no_cache=0
1e6feb95
VZ
4271 # Check whether --enable-unicode or --disable-unicode was given.
4272if test "${enable_unicode+set}" = set; then
4273 enableval="$enable_unicode"
a0b9e27f 4274
1e6feb95
VZ
4275 if test "$enableval" = yes; then
4276 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4277 else
4278 ac_cv_use_unicode='wxUSE_UNICODE=no'
4279 fi
a0b9e27f 4280
1e6feb95 4281else
a0b9e27f 4282
1e6feb95
VZ
4283 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4291
4292fi
1e6feb95
VZ
4293
4294
4295 eval "$ac_cv_use_unicode"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4301 echo "$ac_t""yes" 1>&6
1e6feb95 4302 else
a0b9e27f 4303 echo "$ac_t""no" 1>&6
1e6feb95 4304 fi
a0b9e27f 4305
1e6feb95 4306
5005acfe
VZ
4307 enablestring=
4308 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
2b5f62a0 4309echo "configure:4310: checking for --${enablestring:-enable}-mslu" >&5
a72a4bfa
VS
4310 no_cache=0
4311 # Check whether --enable-mslu or --disable-mslu was given.
4312if test "${enable_mslu+set}" = set; then
4313 enableval="$enable_mslu"
a0b9e27f 4314
a72a4bfa
VS
4315 if test "$enableval" = yes; then
4316 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4317 else
4318 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4319 fi
a0b9e27f 4320
a72a4bfa 4321else
a0b9e27f 4322
a72a4bfa
VS
4323 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4331
4332fi
a72a4bfa
VS
4333
4334
4335 eval "$ac_cv_use_mslu"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4341 echo "$ac_t""yes" 1>&6
a72a4bfa 4342 else
a0b9e27f 4343 echo "$ac_t""no" 1>&6
a72a4bfa 4344 fi
a0b9e27f 4345
a72a4bfa 4346
5005acfe
VZ
4347 enablestring=
4348 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
2b5f62a0 4349echo "configure:4350: checking for --${enablestring:-enable}-wxprintfv" >&5
1e6feb95
VZ
4350 no_cache=0
4351 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4352if test "${enable_wxprintfv+set}" = set; then
4353 enableval="$enable_wxprintfv"
a0b9e27f 4354
1e6feb95 4355 if test "$enableval" = yes; then
10f2d63a
VZ
4356 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4357 else
4358 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4359 fi
a0b9e27f 4360
10f2d63a 4361else
a0b9e27f 4362
10f2d63a
VZ
4363 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4371
4372fi
10f2d63a
VZ
4373
4374
4375 eval "$ac_cv_use_wxprintfv"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4381 echo "$ac_t""yes" 1>&6
10f2d63a 4382 else
a0b9e27f 4383 echo "$ac_t""no" 1>&6
10f2d63a 4384 fi
a0b9e27f 4385
10f2d63a 4386
5005acfe
VZ
4387 enablestring=
4388 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
2b5f62a0 4389echo "configure:4390: checking for --${enablestring:-enable}-std_iostreams" >&5
10f2d63a
VZ
4390 no_cache=0
4391 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4392if test "${enable_std_iostreams+set}" = set; then
4393 enableval="$enable_std_iostreams"
a0b9e27f 4394
10f2d63a
VZ
4395 if test "$enableval" = yes; then
4396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4397 else
4398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4399 fi
a0b9e27f 4400
10f2d63a 4401else
a0b9e27f 4402
10f2d63a
VZ
4403 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4411
4412fi
10f2d63a
VZ
4413
4414
4415 eval "$ac_cv_use_std_iostreams"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4421 echo "$ac_t""yes" 1>&6
10f2d63a 4422 else
a0b9e27f 4423 echo "$ac_t""no" 1>&6
10f2d63a 4424 fi
a0b9e27f 4425
10f2d63a 4426
5005acfe
VZ
4427 enablestring=
4428 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
2b5f62a0 4429echo "configure:4430: checking for --${enablestring:-enable}-filesystem" >&5
24528b0c
VS
4430 no_cache=0
4431 # Check whether --enable-filesystem or --disable-filesystem was given.
4432if test "${enable_filesystem+set}" = set; then
4433 enableval="$enable_filesystem"
a0b9e27f 4434
24528b0c
VS
4435 if test "$enableval" = yes; then
4436 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4437 else
4438 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4439 fi
a0b9e27f 4440
24528b0c 4441else
a0b9e27f 4442
24528b0c
VS
4443 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4451
4452fi
24528b0c
VS
4453
4454
4455 eval "$ac_cv_use_filesystem"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4461 echo "$ac_t""yes" 1>&6
24528b0c 4462 else
a0b9e27f 4463 echo "$ac_t""no" 1>&6
24528b0c 4464 fi
a0b9e27f 4465
24528b0c 4466
5005acfe
VZ
4467 enablestring=
4468 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
2b5f62a0 4469echo "configure:4470: checking for --${enablestring:-enable}-fs_inet" >&5
10f2d63a
VZ
4470 no_cache=0
4471 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4472if test "${enable_fs_inet+set}" = set; then
4473 enableval="$enable_fs_inet"
a0b9e27f 4474
10f2d63a
VZ
4475 if test "$enableval" = yes; then
4476 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4477 else
4478 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4479 fi
a0b9e27f 4480
10f2d63a 4481else
a0b9e27f 4482
10f2d63a
VZ
4483 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4491
4492fi
10f2d63a
VZ
4493
4494
4495 eval "$ac_cv_use_fs_inet"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4501 echo "$ac_t""yes" 1>&6
10f2d63a 4502 else
a0b9e27f 4503 echo "$ac_t""no" 1>&6
10f2d63a 4504 fi
a0b9e27f 4505
10f2d63a 4506
5005acfe
VZ
4507 enablestring=
4508 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
2b5f62a0 4509echo "configure:4510: checking for --${enablestring:-enable}-fs_zip" >&5
10f2d63a
VZ
4510 no_cache=0
4511 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4512if test "${enable_fs_zip+set}" = set; then
4513 enableval="$enable_fs_zip"
a0b9e27f 4514
10f2d63a
VZ
4515 if test "$enableval" = yes; then
4516 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4517 else
4518 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4519 fi
a0b9e27f 4520
10f2d63a 4521else
a0b9e27f 4522
10f2d63a
VZ
4523 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4531
4532fi
10f2d63a
VZ
4533
4534
4535 eval "$ac_cv_use_fs_zip"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4541 echo "$ac_t""yes" 1>&6
10f2d63a 4542 else
a0b9e27f 4543 echo "$ac_t""no" 1>&6
10f2d63a 4544 fi
a0b9e27f 4545
10f2d63a 4546
5005acfe
VZ
4547 enablestring=
4548 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
2b5f62a0 4549echo "configure:4550: checking for --${enablestring:-enable}-zipstream" >&5
10f2d63a
VZ
4550 no_cache=0
4551 # Check whether --enable-zipstream or --disable-zipstream was given.
4552if test "${enable_zipstream+set}" = set; then
4553 enableval="$enable_zipstream"
a0b9e27f 4554
10f2d63a
VZ
4555 if test "$enableval" = yes; then
4556 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4557 else
4558 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4559 fi
a0b9e27f 4560
10f2d63a 4561else
a0b9e27f 4562
10f2d63a
VZ
4563 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4571
4572fi
10f2d63a
VZ
4573
4574
4575 eval "$ac_cv_use_zipstream"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4581 echo "$ac_t""yes" 1>&6
10f2d63a 4582 else
a0b9e27f 4583 echo "$ac_t""no" 1>&6
10f2d63a 4584 fi
a0b9e27f 4585
8284b0c5 4586
52127426 4587
5005acfe
VZ
4588 enablestring=
4589 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
2b5f62a0 4590echo "configure:4591: checking for --${enablestring:-enable}-catch_segvs" >&5
eb4efbdc
VZ
4591 no_cache=0
4592 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4593if test "${enable_catch_segvs+set}" = set; then
4594 enableval="$enable_catch_segvs"
a0b9e27f 4595
eb4efbdc
VZ
4596 if test "$enableval" = yes; then
4597 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4598 else
4599 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4600 fi
a0b9e27f 4601
eb4efbdc 4602else
a0b9e27f 4603
eb4efbdc
VZ
4604 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4612
4613fi
eb4efbdc
VZ
4614
4615
4616 eval "$ac_cv_use_catch_segvs"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4622 echo "$ac_t""yes" 1>&6
eb4efbdc 4623 else
a0b9e27f 4624 echo "$ac_t""no" 1>&6
eb4efbdc 4625 fi
a0b9e27f 4626
eb4efbdc 4627
5005acfe
VZ
4628 enablestring=
4629 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
2b5f62a0 4630echo "configure:4631: checking for --${enablestring:-enable}-snglinst" >&5
4f3c5f06
VZ
4631 no_cache=0
4632 # Check whether --enable-snglinst or --disable-snglinst was given.
4633if test "${enable_snglinst+set}" = set; then
4634 enableval="$enable_snglinst"
a0b9e27f 4635
4f3c5f06
VZ
4636 if test "$enableval" = yes; then
4637 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4638 else
4639 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4640 fi
a0b9e27f 4641
4f3c5f06 4642else
a0b9e27f 4643
4f3c5f06
VZ
4644 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4652
4653fi
4f3c5f06
VZ
4654
4655
4656 eval "$ac_cv_use_snglinst"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4662 echo "$ac_t""yes" 1>&6
4f3c5f06 4663 else
a0b9e27f 4664 echo "$ac_t""no" 1>&6
4f3c5f06 4665 fi
a0b9e27f 4666
52127426 4667
8284b0c5 4668
5005acfe
VZ
4669 enablestring=
4670 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
2b5f62a0 4671echo "configure:4672: checking for --${enablestring:-enable}-mimetype" >&5
1e6feb95
VZ
4672 no_cache=0
4673 # Check whether --enable-mimetype or --disable-mimetype was given.
4674if test "${enable_mimetype+set}" = set; then
4675 enableval="$enable_mimetype"
a0b9e27f 4676
1e6feb95
VZ
4677 if test "$enableval" = yes; then
4678 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4679 else
4680 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4681 fi
a0b9e27f 4682
1e6feb95 4683else
a0b9e27f 4684
1e6feb95
VZ
4685 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4693
4694fi
1e6feb95
VZ
4695
4696
4697 eval "$ac_cv_use_mimetype"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4703 echo "$ac_t""yes" 1>&6
1e6feb95 4704 else
a0b9e27f 4705 echo "$ac_t""no" 1>&6
1e6feb95 4706 fi
a0b9e27f 4707
1e6feb95 4708
5005acfe
VZ
4709 enablestring=
4710 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
2b5f62a0 4711echo "configure:4712: checking for --${enablestring:-enable}-system_options" >&5
3e44f09d
VZ
4712 no_cache=0
4713 # Check whether --enable-system_options or --disable-system_options was given.
4714if test "${enable_system_options+set}" = set; then
4715 enableval="$enable_system_options"
a0b9e27f 4716
3e44f09d
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4719 else
4720 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4721 fi
a0b9e27f 4722
3e44f09d 4723else
a0b9e27f 4724
3e44f09d
VZ
4725 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4733
4734fi
3e44f09d
VZ
4735
4736
4737 eval "$ac_cv_use_system_options"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4743 echo "$ac_t""yes" 1>&6
3e44f09d 4744 else
a0b9e27f 4745 echo "$ac_t""no" 1>&6
3e44f09d 4746 fi
a0b9e27f 4747
8284b0c5 4748
52127426 4749
5005acfe
VZ
4750 enablestring=
4751 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
2b5f62a0 4752echo "configure:4753: checking for --${enablestring:-enable}-url" >&5
4cdb0ab0
VS
4753 no_cache=0
4754 # Check whether --enable-url or --disable-url was given.
4755if test "${enable_url+set}" = set; then
4756 enableval="$enable_url"
a0b9e27f 4757
4cdb0ab0
VS
4758 if test "$enableval" = yes; then
4759 ac_cv_use_url='wxUSE_URL=yes'
4760 else
4761 ac_cv_use_url='wxUSE_URL=no'
4762 fi
a0b9e27f 4763
4cdb0ab0 4764else
a0b9e27f 4765
4cdb0ab0
VS
4766 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4774
4775fi
4cdb0ab0
VS
4776
4777
4778 eval "$ac_cv_use_url"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_URL" = yes; then
a0b9e27f 4784 echo "$ac_t""yes" 1>&6
4cdb0ab0 4785 else
a0b9e27f 4786 echo "$ac_t""no" 1>&6
4cdb0ab0 4787 fi
a0b9e27f 4788
4cdb0ab0 4789
5005acfe
VZ
4790 enablestring=
4791 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
2b5f62a0 4792echo "configure:4793: checking for --${enablestring:-enable}-protocol" >&5
4cdb0ab0
VS
4793 no_cache=0
4794 # Check whether --enable-protocol or --disable-protocol was given.
4795if test "${enable_protocol+set}" = set; then
4796 enableval="$enable_protocol"
a0b9e27f 4797
4cdb0ab0
VS
4798 if test "$enableval" = yes; then
4799 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4800 else
4801 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4802 fi
a0b9e27f 4803
4cdb0ab0 4804else
a0b9e27f 4805
4cdb0ab0
VS
4806 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4814
4815fi
4cdb0ab0
VS
4816
4817
4818 eval "$ac_cv_use_protocol"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4824 echo "$ac_t""yes" 1>&6
4cdb0ab0 4825 else
a0b9e27f 4826 echo "$ac_t""no" 1>&6
4cdb0ab0 4827 fi
a0b9e27f 4828
4cdb0ab0 4829
5005acfe
VZ
4830 enablestring=
4831 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
2b5f62a0 4832echo "configure:4833: checking for --${enablestring:-enable}-protocol_http" >&5
4cdb0ab0
VS
4833 no_cache=0
4834 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4835if test "${enable_protocol_http+set}" = set; then
4836 enableval="$enable_protocol_http"
a0b9e27f 4837
4cdb0ab0
VS
4838 if test "$enableval" = yes; then
4839 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4840 else
4841 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4842 fi
a0b9e27f 4843
4cdb0ab0 4844else
a0b9e27f 4845
4cdb0ab0
VS
4846 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4854
4855fi
4cdb0ab0
VS
4856
4857
4858 eval "$ac_cv_use_protocol_http"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4864 echo "$ac_t""yes" 1>&6
4cdb0ab0 4865 else
a0b9e27f 4866 echo "$ac_t""no" 1>&6
4cdb0ab0 4867 fi
a0b9e27f 4868
4cdb0ab0 4869
5005acfe
VZ
4870 enablestring=
4871 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
2b5f62a0 4872echo "configure:4873: checking for --${enablestring:-enable}-protocol_ftp" >&5
4cdb0ab0
VS
4873 no_cache=0
4874 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4875if test "${enable_protocol_ftp+set}" = set; then
4876 enableval="$enable_protocol_ftp"
a0b9e27f 4877
4cdb0ab0
VS
4878 if test "$enableval" = yes; then
4879 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4880 else
4881 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4882 fi
a0b9e27f 4883
4cdb0ab0 4884else
a0b9e27f 4885
4cdb0ab0
VS
4886 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4894
4895fi
4cdb0ab0
VS
4896
4897
4898 eval "$ac_cv_use_protocol_ftp"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4904 echo "$ac_t""yes" 1>&6
4cdb0ab0 4905 else
a0b9e27f 4906 echo "$ac_t""no" 1>&6
4cdb0ab0 4907 fi
a0b9e27f 4908
4cdb0ab0 4909
5005acfe
VZ
4910 enablestring=
4911 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
2b5f62a0 4912echo "configure:4913: checking for --${enablestring:-enable}-protocol_file" >&5
4cdb0ab0
VS
4913 no_cache=0
4914 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4915if test "${enable_protocol_file+set}" = set; then
4916 enableval="$enable_protocol_file"
a0b9e27f 4917
4cdb0ab0
VS
4918 if test "$enableval" = yes; then
4919 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4920 else
4921 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4922 fi
a0b9e27f 4923
4cdb0ab0 4924else
a0b9e27f 4925
4cdb0ab0
VS
4926 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4934
4935fi
4cdb0ab0
VS
4936
4937
4938 eval "$ac_cv_use_protocol_file"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4944 echo "$ac_t""yes" 1>&6
4cdb0ab0 4945 else
a0b9e27f 4946 echo "$ac_t""no" 1>&6
4cdb0ab0 4947 fi
a0b9e27f 4948
52127426 4949
8284b0c5
MB
4950
4951
4952
5005acfe
VZ
4953 enablestring=
4954 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
2b5f62a0 4955echo "configure:4956: checking for --${enablestring:-enable}-threads" >&5
10f2d63a
VZ
4956 no_cache=0
4957 # Check whether --enable-threads or --disable-threads was given.
4958if test "${enable_threads+set}" = set; then
4959 enableval="$enable_threads"
a0b9e27f 4960
10f2d63a
VZ
4961 if test "$enableval" = yes; then
4962 ac_cv_use_threads='wxUSE_THREADS=yes'
4963 else
4964 ac_cv_use_threads='wxUSE_THREADS=no'
4965 fi
a0b9e27f 4966
10f2d63a 4967else
a0b9e27f 4968
10f2d63a
VZ
4969 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4977
4978fi
10f2d63a
VZ
4979
4980
4981 eval "$ac_cv_use_threads"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 4987 echo "$ac_t""yes" 1>&6
10f2d63a 4988 else
a0b9e27f 4989 echo "$ac_t""no" 1>&6
10f2d63a 4990 fi
a0b9e27f 4991
10f2d63a 4992
b12915c1
VZ
4993if test "$wxUSE_GUI" = "yes"; then
4994
8284b0c5
MB
4995
4996
5005acfe
VZ
4997 enablestring=
4998 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
2b5f62a0 4999echo "configure:5000: checking for --${enablestring:-enable}-docview" >&5
10f2d63a
VZ
5000 no_cache=0
5001 # Check whether --enable-docview or --disable-docview was given.
5002if test "${enable_docview+set}" = set; then
5003 enableval="$enable_docview"
a0b9e27f 5004
10f2d63a
VZ
5005 if test "$enableval" = yes; then
5006 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5007 else
5008 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5009 fi
a0b9e27f 5010
10f2d63a 5011else
a0b9e27f 5012
10f2d63a
VZ
5013 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
5021
5022fi
10f2d63a
VZ
5023
5024
5025 eval "$ac_cv_use_docview"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 5031 echo "$ac_t""yes" 1>&6
10f2d63a 5032 else
a0b9e27f 5033 echo "$ac_t""no" 1>&6
10f2d63a 5034 fi
a0b9e27f 5035
10f2d63a 5036
5005acfe
VZ
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
2b5f62a0 5039echo "configure:5040: checking for --${enablestring:-enable}-help" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-help or --disable-help was given.
5042if test "${enable_help+set}" = set; then
5043 enableval="$enable_help"
a0b9e27f 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_help='wxUSE_HELP=yes'
5047 else
5048 ac_cv_use_help='wxUSE_HELP=no'
5049 fi
a0b9e27f 5050
10f2d63a 5051else
a0b9e27f 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_help"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_HELP" = yes; then
a0b9e27f 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
a0b9e27f 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
a0b9e27f 5075
10f2d63a 5076
5005acfe
VZ
5077 enablestring=
5078 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
2b5f62a0 5079echo "configure:5080: checking for --${enablestring:-enable}-mshtmlhelp" >&5
29fd3c0c
VS
5080 no_cache=0
5081 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5082if test "${enable_mshtmlhelp+set}" = set; then
5083 enableval="$enable_mshtmlhelp"
a0b9e27f 5084
29fd3c0c
VS
5085 if test "$enableval" = yes; then
5086 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5087 else
5088 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5089 fi
a0b9e27f 5090
29fd3c0c 5091else
a0b9e27f 5092
29fd3c0c
VS
5093 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5101
5102fi
29fd3c0c
VS
5103
5104
5105 eval "$ac_cv_use_mshtmlhelp"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5111 echo "$ac_t""yes" 1>&6
29fd3c0c 5112 else
a0b9e27f 5113 echo "$ac_t""no" 1>&6
29fd3c0c 5114 fi
a0b9e27f 5115
29fd3c0c 5116
5005acfe
VZ
5117 enablestring=
5118 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
2b5f62a0 5119echo "configure:5120: checking for --${enablestring:-enable}-html" >&5
3379ed37
VZ
5120 no_cache=0
5121 # Check whether --enable-html or --disable-html was given.
5122if test "${enable_html+set}" = set; then
5123 enableval="$enable_html"
a0b9e27f 5124
3379ed37
VZ
5125 if test "$enableval" = yes; then
5126 ac_cv_use_html='wxUSE_HTML=yes'
5127 else
5128 ac_cv_use_html='wxUSE_HTML=no'
5129 fi
a0b9e27f 5130
3379ed37 5131else
a0b9e27f 5132
3379ed37
VZ
5133 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5141
5142fi
3379ed37
VZ
5143
5144
5145 eval "$ac_cv_use_html"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5151 echo "$ac_t""yes" 1>&6
3379ed37 5152 else
a0b9e27f 5153 echo "$ac_t""no" 1>&6
3379ed37 5154 fi
a0b9e27f 5155
3379ed37 5156
5005acfe
VZ
5157 enablestring=
5158 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
2b5f62a0 5159echo "configure:5160: checking for --${enablestring:-enable}-htmlhelp" >&5
3379ed37
VZ
5160 no_cache=0
5161 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5162if test "${enable_htmlhelp+set}" = set; then
5163 enableval="$enable_htmlhelp"
a0b9e27f 5164
3379ed37
VZ
5165 if test "$enableval" = yes; then
5166 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5167 else
5168 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5169 fi
a0b9e27f 5170
3379ed37 5171else
a0b9e27f 5172
3379ed37
VZ
5173 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5181
5182fi
3379ed37
VZ
5183
5184
5185 eval "$ac_cv_use_htmlhelp"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5191 echo "$ac_t""yes" 1>&6
3379ed37 5192 else
a0b9e27f 5193 echo "$ac_t""no" 1>&6
3379ed37 5194 fi
a0b9e27f 5195
3379ed37 5196
5005acfe
VZ
5197 enablestring=
5198 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
2b5f62a0 5199echo "configure:5200: checking for --${enablestring:-enable}-constraints" >&5
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-constraints or --disable-constraints was given.
5202if test "${enable_constraints+set}" = set; then
5203 enableval="$enable_constraints"
a0b9e27f 5204
10f2d63a
VZ
5205 if test "$enableval" = yes; then
5206 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5207 else
5208 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5209 fi
a0b9e27f 5210
10f2d63a 5211else
a0b9e27f 5212
10f2d63a
VZ
5213 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5221
5222fi
10f2d63a
VZ
5223
5224
5225 eval "$ac_cv_use_constraints"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5231 echo "$ac_t""yes" 1>&6
10f2d63a 5232 else
a0b9e27f 5233 echo "$ac_t""no" 1>&6
10f2d63a 5234 fi
a0b9e27f 5235
10f2d63a 5236
5005acfe
VZ
5237 enablestring=
5238 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
2b5f62a0 5239echo "configure:5240: checking for --${enablestring:-enable}-printarch" >&5
10f2d63a
VZ
5240 no_cache=0
5241 # Check whether --enable-printarch or --disable-printarch was given.
5242if test "${enable_printarch+set}" = set; then
5243 enableval="$enable_printarch"
a0b9e27f 5244
10f2d63a
VZ
5245 if test "$enableval" = yes; then
5246 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5247 else
5248 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5249 fi
a0b9e27f 5250
10f2d63a 5251else
a0b9e27f 5252
10f2d63a
VZ
5253 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5261
5262fi
10f2d63a
VZ
5263
5264
5265 eval "$ac_cv_use_printarch"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5271 echo "$ac_t""yes" 1>&6
10f2d63a 5272 else
a0b9e27f 5273 echo "$ac_t""no" 1>&6
10f2d63a 5274 fi
a0b9e27f 5275
10f2d63a 5276
5005acfe
VZ
5277 enablestring=
5278 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
2b5f62a0 5279echo "configure:5280: checking for --${enablestring:-enable}-mdi" >&5
10f2d63a
VZ
5280 no_cache=0
5281 # Check whether --enable-mdi or --disable-mdi was given.
5282if test "${enable_mdi+set}" = set; then
5283 enableval="$enable_mdi"
a0b9e27f 5284
10f2d63a
VZ
5285 if test "$enableval" = yes; then
5286 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5287 else
5288 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5289 fi
a0b9e27f 5290
10f2d63a 5291else
a0b9e27f 5292
10f2d63a
VZ
5293 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5301
5302fi
10f2d63a
VZ
5303
5304
5305 eval "$ac_cv_use_mdi"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5311 echo "$ac_t""yes" 1>&6
10f2d63a 5312 else
a0b9e27f 5313 echo "$ac_t""no" 1>&6
10f2d63a 5314 fi
a0b9e27f 5315
698dcdb6 5316
5005acfe
VZ
5317 enablestring=
5318 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
2b5f62a0 5319echo "configure:5320: checking for --${enablestring:-enable}-loggui" >&5
1e6feb95
VZ
5320 no_cache=0
5321 # Check whether --enable-loggui or --disable-loggui was given.
5322if test "${enable_loggui+set}" = set; then
5323 enableval="$enable_loggui"
a0b9e27f 5324
1e6feb95
VZ
5325 if test "$enableval" = yes; then
5326 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5327 else
5328 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5329 fi
a0b9e27f 5330
1e6feb95 5331else
a0b9e27f 5332
1e6feb95
VZ
5333 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5341
5342fi
1e6feb95
VZ
5343
5344
5345 eval "$ac_cv_use_loggui"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5351 echo "$ac_t""yes" 1>&6
1e6feb95 5352 else
a0b9e27f 5353 echo "$ac_t""no" 1>&6
1e6feb95 5354 fi
a0b9e27f 5355
1e6feb95 5356
5005acfe
VZ
5357 enablestring=
5358 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
2b5f62a0 5359echo "configure:5360: checking for --${enablestring:-enable}-logwin" >&5
1e6feb95
VZ
5360 no_cache=0
5361 # Check whether --enable-logwin or --disable-logwin was given.
5362if test "${enable_logwin+set}" = set; then
5363 enableval="$enable_logwin"
a0b9e27f 5364
1e6feb95
VZ
5365 if test "$enableval" = yes; then
5366 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5367 else
5368 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5369 fi
a0b9e27f 5370
1e6feb95 5371else
a0b9e27f 5372
1e6feb95
VZ
5373 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5381
5382fi
1e6feb95
VZ
5383
5384
5385 eval "$ac_cv_use_logwin"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5391 echo "$ac_t""yes" 1>&6
1e6feb95 5392 else
a0b9e27f 5393 echo "$ac_t""no" 1>&6
1e6feb95 5394 fi
a0b9e27f 5395
1e6feb95 5396
5005acfe
VZ
5397 enablestring=
5398 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
2b5f62a0 5399echo "configure:5400: checking for --${enablestring:-enable}-logdialog" >&5
69d27ff7
MB
5400 no_cache=0
5401 # Check whether --enable-logdialog or --disable-logdialog was given.
5402if test "${enable_logdialog+set}" = set; then
5403 enableval="$enable_logdialog"
a0b9e27f 5404
69d27ff7
MB
5405 if test "$enableval" = yes; then
5406 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5407 else
5408 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5409 fi
a0b9e27f 5410
69d27ff7 5411else
a0b9e27f 5412
69d27ff7
MB
5413 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5421
5422fi
69d27ff7
MB
5423
5424
5425 eval "$ac_cv_use_logdialog"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5431 echo "$ac_t""yes" 1>&6
69d27ff7 5432 else
a0b9e27f 5433 echo "$ac_t""no" 1>&6
69d27ff7 5434 fi
a0b9e27f 5435
8284b0c5 5436
52127426 5437
5005acfe
VZ
5438 enablestring=
5439 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
2b5f62a0 5440echo "configure:5441: checking for --${enablestring:-enable}-postscript" >&5
10f2d63a
VZ
5441 no_cache=0
5442 # Check whether --enable-postscript or --disable-postscript was given.
5443if test "${enable_postscript+set}" = set; then
5444 enableval="$enable_postscript"
a0b9e27f 5445
10f2d63a
VZ
5446 if test "$enableval" = yes; then
5447 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5448 else
5449 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5450 fi
a0b9e27f 5451
10f2d63a 5452else
a0b9e27f 5453
10f2d63a
VZ
5454 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5462
5463fi
10f2d63a
VZ
5464
5465
5466 eval "$ac_cv_use_postscript"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5472 echo "$ac_t""yes" 1>&6
10f2d63a 5473 else
a0b9e27f 5474 echo "$ac_t""no" 1>&6
10f2d63a 5475 fi
a0b9e27f 5476
8284b0c5
MB
5477
5478
52127426 5479
8284b0c5 5480
5005acfe
VZ
5481 enablestring=
5482 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
2b5f62a0 5483echo "configure:5484: checking for --${enablestring:-enable}-prologio" >&5
10f2d63a
VZ
5484 no_cache=0
5485 # Check whether --enable-prologio or --disable-prologio was given.
5486if test "${enable_prologio+set}" = set; then
5487 enableval="$enable_prologio"
a0b9e27f 5488
10f2d63a
VZ
5489 if test "$enableval" = yes; then
5490 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5491 else
5492 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5493 fi
a0b9e27f 5494
10f2d63a 5495else
a0b9e27f 5496
10f2d63a
VZ
5497 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5505
5506fi
10f2d63a
VZ
5507
5508
5509 eval "$ac_cv_use_prologio"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5515 echo "$ac_t""yes" 1>&6
10f2d63a 5516 else
a0b9e27f 5517 echo "$ac_t""no" 1>&6
10f2d63a 5518 fi
a0b9e27f 5519
10f2d63a 5520
5005acfe
VZ
5521 enablestring=
5522 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
2b5f62a0 5523echo "configure:5524: checking for --${enablestring:-enable}-resources" >&5
10f2d63a
VZ
5524 no_cache=0
5525 # Check whether --enable-resources or --disable-resources was given.
5526if test "${enable_resources+set}" = set; then
5527 enableval="$enable_resources"
a0b9e27f 5528
10f2d63a
VZ
5529 if test "$enableval" = yes; then
5530 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5531 else
5532 ac_cv_use_resources='wxUSE_RESOURCES=no'
5533 fi
a0b9e27f 5534
10f2d63a 5535else
a0b9e27f 5536
10f2d63a
VZ
5537 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5545
5546fi
10f2d63a
VZ
5547
5548
5549 eval "$ac_cv_use_resources"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5555 echo "$ac_t""yes" 1>&6
10f2d63a 5556 else
a0b9e27f 5557 echo "$ac_t""no" 1>&6
10f2d63a 5558 fi
a0b9e27f 5559
8284b0c5 5560
52127426 5561
5005acfe
VZ
5562 enablestring=
5563 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
2b5f62a0 5564echo "configure:5565: checking for --${enablestring:-enable}-xresources" >&5
10f2d63a
VZ
5565 no_cache=0
5566 # Check whether --enable-xresources or --disable-xresources was given.
5567if test "${enable_xresources+set}" = set; then
5568 enableval="$enable_xresources"
a0b9e27f 5569
10f2d63a
VZ
5570 if test "$enableval" = yes; then
5571 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5572 else
5573 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5574 fi
a0b9e27f 5575
10f2d63a 5576else
a0b9e27f 5577
10f2d63a
VZ
5578 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5586
5587fi
10f2d63a
VZ
5588
5589
5590 eval "$ac_cv_use_xresources"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5596 echo "$ac_t""yes" 1>&6
10f2d63a 5597 else
a0b9e27f 5598 echo "$ac_t""no" 1>&6
10f2d63a 5599 fi
a0b9e27f 5600
8284b0c5
MB
5601
5602
52127426 5603
5005acfe
VZ
5604 enablestring=
5605 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
2b5f62a0 5606echo "configure:5607: checking for --${enablestring:-enable}-clipboard" >&5
10f2d63a
VZ
5607 no_cache=0
5608 # Check whether --enable-clipboard or --disable-clipboard was given.
5609if test "${enable_clipboard+set}" = set; then
5610 enableval="$enable_clipboard"
a0b9e27f 5611
10f2d63a
VZ
5612 if test "$enableval" = yes; then
5613 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5614 else
5615 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5616 fi
a0b9e27f 5617
10f2d63a 5618else
a0b9e27f 5619
10f2d63a
VZ
5620 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5628
5629fi
10f2d63a
VZ
5630
5631
5632 eval "$ac_cv_use_clipboard"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5638 echo "$ac_t""yes" 1>&6
10f2d63a 5639 else
a0b9e27f 5640 echo "$ac_t""no" 1>&6
10f2d63a 5641 fi
a0b9e27f 5642
10f2d63a 5643
5005acfe
VZ
5644 enablestring=
5645 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
2b5f62a0 5646echo "configure:5647: checking for --${enablestring:-enable}-dnd" >&5
10f2d63a
VZ
5647 no_cache=0
5648 # Check whether --enable-dnd or --disable-dnd was given.
5649if test "${enable_dnd+set}" = set; then
5650 enableval="$enable_dnd"
a0b9e27f 5651
10f2d63a
VZ
5652 if test "$enableval" = yes; then
5653 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5654 else
5655 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5656 fi
a0b9e27f 5657
10f2d63a 5658else
a0b9e27f 5659
10f2d63a
VZ
5660 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5668
5669fi
10f2d63a
VZ
5670
5671
5672 eval "$ac_cv_use_dnd"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5678 echo "$ac_t""yes" 1>&6
10f2d63a 5679 else
a0b9e27f 5680 echo "$ac_t""no" 1>&6
10f2d63a 5681 fi
a0b9e27f 5682
10f2d63a 5683
5005acfe
VZ
5684 enablestring=
5685 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
2b5f62a0 5686echo "configure:5687: checking for --${enablestring:-enable}-metafile" >&5
b64f0a5f
RL
5687 no_cache=0
5688 # Check whether --enable-metafile or --disable-metafile was given.
5689if test "${enable_metafile+set}" = set; then
5690 enableval="$enable_metafile"
a0b9e27f 5691
b64f0a5f
RL
5692 if test "$enableval" = yes; then
5693 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5694 else
5695 ac_cv_use_metafile='wxUSE_METAFILE=no'
5696 fi
a0b9e27f 5697
b64f0a5f 5698else
a0b9e27f 5699
b64f0a5f
RL
5700 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5708
5709fi
b64f0a5f
RL
5710
5711
5712 eval "$ac_cv_use_metafile"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5718 echo "$ac_t""yes" 1>&6
b64f0a5f 5719 else
a0b9e27f 5720 echo "$ac_t""no" 1>&6
b64f0a5f 5721 fi
a0b9e27f 5722
52127426 5723
8284b0c5 5724
5005acfe
VZ
5725 enablestring=
5726 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
2b5f62a0 5727echo "configure:5728: checking for --${enablestring:-enable}-treelayout" >&5
10f2d63a 5728 no_cache=0
24176f2c
GD
5729 # Check whether --enable-treelayout or --disable-treelayout was given.
5730if test "${enable_treelayout+set}" = set; then
5731 enableval="$enable_treelayout"
a0b9e27f 5732
10f2d63a 5733 if test "$enableval" = yes; then
24176f2c 5734 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5735 else
24176f2c 5736 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5737 fi
a0b9e27f 5738
10f2d63a 5739else
a0b9e27f 5740
24176f2c 5741 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
24176f2c 5748 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5749
5750fi
10f2d63a
VZ
5751
5752
24176f2c 5753 eval "$ac_cv_use_treelayout"
10f2d63a 5754 if test "$no_cache" != 1; then
24176f2c 5755 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5756 fi
5757
24176f2c 5758 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5759 echo "$ac_t""yes" 1>&6
10f2d63a 5760 else
a0b9e27f 5761 echo "$ac_t""no" 1>&6
10f2d63a 5762 fi
a0b9e27f 5763
8284b0c5 5764
52127426 5765
8284b0c5 5766
5005acfe
VZ
5767 enablestring=
5768 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
2b5f62a0 5769echo "configure:5770: checking for --${enablestring:-enable}-controls" >&5
10f2d63a
VZ
5770 no_cache=0
5771 # Check whether --enable-controls or --disable-controls was given.
5772if test "${enable_controls+set}" = set; then
5773 enableval="$enable_controls"
a0b9e27f 5774
10f2d63a
VZ
5775 if test "$enableval" = yes; then
5776 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5777 else
5778 ac_cv_use_controls='wxUSE_CONTROLS=no'
5779 fi
a0b9e27f 5780
10f2d63a 5781else
a0b9e27f 5782
10f2d63a
VZ
5783 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5791
5792fi
10f2d63a
VZ
5793
5794
5795 eval "$ac_cv_use_controls"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5801 echo "$ac_t""yes" 1>&6
10f2d63a 5802 else
a0b9e27f 5803 echo "$ac_t""no" 1>&6
10f2d63a 5804 fi
a0b9e27f 5805
10f2d63a
VZ
5806
5807if test "$wxUSE_CONTROLS" = "yes"; then
5808 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5809 DEFAULT_wxUSE_BMPBUTTON=yes
5810 DEFAULT_wxUSE_BUTTON=yes
5811 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5812 DEFAULT_wxUSE_CARET=yes
5813 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5814 DEFAULT_wxUSE_CHECKBOX=yes
5815 DEFAULT_wxUSE_CHECKLISTBOX=yes
5816 DEFAULT_wxUSE_CHOICE=yes
5817 DEFAULT_wxUSE_GAUGE=yes
5818 DEFAULT_wxUSE_GRID=yes
cc977e5f 5819 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5820 DEFAULT_wxUSE_IMAGLIST=yes
5821 DEFAULT_wxUSE_LISTBOX=yes
5822 DEFAULT_wxUSE_LISTCTRL=yes
5823 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5824 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5825 DEFAULT_wxUSE_RADIOBOX=yes
5826 DEFAULT_wxUSE_RADIOBTN=yes
5827 DEFAULT_wxUSE_SASH=yes
5828 DEFAULT_wxUSE_SCROLLBAR=yes
5829 DEFAULT_wxUSE_SLIDER=yes
5830 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5831 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5832 DEFAULT_wxUSE_SPLITTER=yes
5833 DEFAULT_wxUSE_STATBMP=yes
5834 DEFAULT_wxUSE_STATBOX=yes
5835 DEFAULT_wxUSE_STATLINE=yes
5836 DEFAULT_wxUSE_STATUSBAR=yes
5837 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5838 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5839 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5840 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5841 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5842 DEFAULT_wxUSE_TOOLTIPS=yes
5843 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5844 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5845 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5846elif test "$wxUSE_CONTROLS" = "no"; then
5847 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5848 DEFAULT_wxUSE_BMPBUTTON=no
5849 DEFAULT_wxUSE_BUTTON=no
5850 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5851 DEFAULT_wxUSE_CARET=no
5852 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5853 DEFAULT_wxUSE_CHECKBOX=no
5854 DEFAULT_wxUSE_CHECKLISTBOX=no
5855 DEFAULT_wxUSE_CHOICE=no
5856 DEFAULT_wxUSE_GAUGE=no
5857 DEFAULT_wxUSE_GRID=no
5858 DEFAULT_wxUSE_NEW_GRID=no
5859 DEFAULT_wxUSE_IMAGLIST=no
5860 DEFAULT_wxUSE_LISTBOX=no
5861 DEFAULT_wxUSE_LISTCTRL=no
5862 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5863 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5864 DEFAULT_wxUSE_RADIOBOX=no
5865 DEFAULT_wxUSE_RADIOBTN=no
5866 DEFAULT_wxUSE_SASH=no
5867 DEFAULT_wxUSE_SCROLLBAR=no
5868 DEFAULT_wxUSE_SLIDER=no
5869 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5870 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5871 DEFAULT_wxUSE_SPLITTER=no
5872 DEFAULT_wxUSE_STATBMP=no
5873 DEFAULT_wxUSE_STATBOX=no
5874 DEFAULT_wxUSE_STATLINE=no
5875 DEFAULT_wxUSE_STATUSBAR=no
5876 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5877 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5878 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5879 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5880 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5881 DEFAULT_wxUSE_TOOLTIPS=no
5882 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5883 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5884 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5885fi
5886
8284b0c5 5887
5005acfe
VZ
5888 enablestring=
5889 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
2b5f62a0 5890echo "configure:5891: checking for --${enablestring:-enable}-accel" >&5
10f2d63a
VZ
5891 no_cache=0
5892 # Check whether --enable-accel or --disable-accel was given.
5893if test "${enable_accel+set}" = set; then
5894 enableval="$enable_accel"
a0b9e27f 5895
10f2d63a
VZ
5896 if test "$enableval" = yes; then
5897 ac_cv_use_accel='wxUSE_ACCEL=yes'
5898 else
5899 ac_cv_use_accel='wxUSE_ACCEL=no'
5900 fi
a0b9e27f 5901
10f2d63a 5902else
a0b9e27f 5903
10f2d63a
VZ
5904 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5912
5913fi
10f2d63a
VZ
5914
5915
5916 eval "$ac_cv_use_accel"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5922 echo "$ac_t""yes" 1>&6
10f2d63a 5923 else
a0b9e27f 5924 echo "$ac_t""no" 1>&6
10f2d63a 5925 fi
a0b9e27f 5926
10f2d63a 5927
5005acfe
VZ
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
2b5f62a0 5930echo "configure:5931: checking for --${enablestring:-enable}-button" >&5
10f2d63a 5931 no_cache=0
1e6feb95
VZ
5932 # Check whether --enable-button or --disable-button was given.
5933if test "${enable_button+set}" = set; then
5934 enableval="$enable_button"
a0b9e27f 5935
10f2d63a 5936 if test "$enableval" = yes; then
1e6feb95 5937 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5938 else
1e6feb95 5939 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5940 fi
a0b9e27f 5941
10f2d63a 5942else
a0b9e27f 5943
1e6feb95 5944 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
1e6feb95 5951 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5952
5953fi
10f2d63a
VZ
5954
5955
1e6feb95 5956 eval "$ac_cv_use_button"
10f2d63a 5957 if test "$no_cache" != 1; then
1e6feb95 5958 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5959 fi
5960
1e6feb95 5961 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5962 echo "$ac_t""yes" 1>&6
10f2d63a 5963 else
a0b9e27f 5964 echo "$ac_t""no" 1>&6
10f2d63a 5965 fi
a0b9e27f 5966
10f2d63a 5967
5005acfe
VZ
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
2b5f62a0 5970echo "configure:5971: checking for --${enablestring:-enable}-bmpbutton" >&5
10f2d63a
VZ
5971 no_cache=0
5972 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5973if test "${enable_bmpbutton+set}" = set; then
5974 enableval="$enable_bmpbutton"
a0b9e27f 5975
10f2d63a
VZ
5976 if test "$enableval" = yes; then
5977 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5978 else
5979 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5980 fi
a0b9e27f 5981
10f2d63a 5982else
a0b9e27f 5983
10f2d63a
VZ
5984 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5992
5993fi
10f2d63a
VZ
5994
5995
5996 eval "$ac_cv_use_bmpbutton"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 6002 echo "$ac_t""yes" 1>&6
10f2d63a 6003 else
a0b9e27f 6004 echo "$ac_t""no" 1>&6
10f2d63a 6005 fi
a0b9e27f 6006
10f2d63a 6007
5005acfe
VZ
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
2b5f62a0 6010echo "configure:6011: checking for --${enablestring:-enable}-calendar" >&5
1e6feb95
VZ
6011 no_cache=0
6012 # Check whether --enable-calendar or --disable-calendar was given.
6013if test "${enable_calendar+set}" = set; then
6014 enableval="$enable_calendar"
a0b9e27f 6015
1e6feb95
VZ
6016 if test "$enableval" = yes; then
6017 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6018 else
6019 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6020 fi
a0b9e27f 6021
1e6feb95 6022else
a0b9e27f 6023
1e6feb95
VZ
6024 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
6032
6033fi
1e6feb95
VZ
6034
6035
6036 eval "$ac_cv_use_calendar"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 6042 echo "$ac_t""yes" 1>&6
1e6feb95 6043 else
a0b9e27f 6044 echo "$ac_t""no" 1>&6
1e6feb95 6045 fi
a0b9e27f 6046
1e6feb95 6047
5005acfe
VZ
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
2b5f62a0 6050echo "configure:6051: checking for --${enablestring:-enable}-caret" >&5
1e6feb95
VZ
6051 no_cache=0
6052 # Check whether --enable-caret or --disable-caret was given.
6053if test "${enable_caret+set}" = set; then
6054 enableval="$enable_caret"
a0b9e27f 6055
1e6feb95
VZ
6056 if test "$enableval" = yes; then
6057 ac_cv_use_caret='wxUSE_CARET=yes'
6058 else
6059 ac_cv_use_caret='wxUSE_CARET=no'
6060 fi
a0b9e27f 6061
1e6feb95 6062else
a0b9e27f 6063
1e6feb95
VZ
6064 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
6072
6073fi
1e6feb95
VZ
6074
6075
6076 eval "$ac_cv_use_caret"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CARET" = yes; then
a0b9e27f 6082 echo "$ac_t""yes" 1>&6
1e6feb95 6083 else
a0b9e27f 6084 echo "$ac_t""no" 1>&6
1e6feb95 6085 fi
a0b9e27f 6086
1e6feb95 6087
5005acfe
VZ
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
2b5f62a0 6090echo "configure:6091: checking for --${enablestring:-enable}-checkbox" >&5
10f2d63a
VZ
6091 no_cache=0
6092 # Check whether --enable-checkbox or --disable-checkbox was given.
6093if test "${enable_checkbox+set}" = set; then
6094 enableval="$enable_checkbox"
a0b9e27f 6095
10f2d63a
VZ
6096 if test "$enableval" = yes; then
6097 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6098 else
6099 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6100 fi
a0b9e27f 6101
10f2d63a 6102else
a0b9e27f 6103
10f2d63a
VZ
6104 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6112
6113fi
10f2d63a
VZ
6114
6115
6116 eval "$ac_cv_use_checkbox"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6122 echo "$ac_t""yes" 1>&6
10f2d63a 6123 else
a0b9e27f 6124 echo "$ac_t""no" 1>&6
10f2d63a 6125 fi
a0b9e27f 6126
10f2d63a 6127
5005acfe
VZ
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
2b5f62a0 6130echo "configure:6131: checking for --${enablestring:-enable}-checklst" >&5
10f2d63a
VZ
6131 no_cache=0
6132 # Check whether --enable-checklst or --disable-checklst was given.
6133if test "${enable_checklst+set}" = set; then
6134 enableval="$enable_checklst"
a0b9e27f 6135
10f2d63a
VZ
6136 if test "$enableval" = yes; then
6137 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6138 else
6139 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6140 fi
a0b9e27f 6141
10f2d63a 6142else
a0b9e27f 6143
10f2d63a
VZ
6144 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6152
6153fi
10f2d63a
VZ
6154
6155
6156 eval "$ac_cv_use_checklst"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6162 echo "$ac_t""yes" 1>&6
10f2d63a 6163 else
a0b9e27f 6164 echo "$ac_t""no" 1>&6
10f2d63a 6165 fi
a0b9e27f 6166
10f2d63a 6167
5005acfe
VZ
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
2b5f62a0 6170echo "configure:6171: checking for --${enablestring:-enable}-choice" >&5
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-choice or --disable-choice was given.
6173if test "${enable_choice+set}" = set; then
6174 enableval="$enable_choice"
a0b9e27f 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_choice='wxUSE_CHOICE=yes'
6178 else
6179 ac_cv_use_choice='wxUSE_CHOICE=no'
6180 fi
a0b9e27f 6181
10f2d63a 6182else
a0b9e27f 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6192
6193fi
10f2d63a
VZ
6194
6195
6196 eval "$ac_cv_use_choice"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6202 echo "$ac_t""yes" 1>&6
10f2d63a 6203 else
a0b9e27f 6204 echo "$ac_t""no" 1>&6
10f2d63a 6205 fi
a0b9e27f 6206
10f2d63a 6207
5005acfe
VZ
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
2b5f62a0 6210echo "configure:6211: checking for --${enablestring:-enable}-combobox" >&5
10f2d63a
VZ
6211 no_cache=0
6212 # Check whether --enable-combobox or --disable-combobox was given.
6213if test "${enable_combobox+set}" = set; then
6214 enableval="$enable_combobox"
a0b9e27f 6215
10f2d63a
VZ
6216 if test "$enableval" = yes; then
6217 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6218 else
6219 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6220 fi
a0b9e27f 6221
10f2d63a 6222else
a0b9e27f 6223
10f2d63a
VZ
6224 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6232
6233fi
10f2d63a
VZ
6234
6235
6236 eval "$ac_cv_use_combobox"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6242 echo "$ac_t""yes" 1>&6
10f2d63a 6243 else
a0b9e27f 6244 echo "$ac_t""no" 1>&6
10f2d63a 6245 fi
a0b9e27f 6246
10f2d63a 6247
5005acfe
VZ
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
2b5f62a0 6250echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5
10f2d63a
VZ
6251 no_cache=0
6252 # Check whether --enable-gauge or --disable-gauge was given.
6253if test "${enable_gauge+set}" = set; then
6254 enableval="$enable_gauge"
a0b9e27f 6255
10f2d63a
VZ
6256 if test "$enableval" = yes; then
6257 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6258 else
6259 ac_cv_use_gauge='wxUSE_GAUGE=no'
6260 fi
a0b9e27f 6261
10f2d63a 6262else
a0b9e27f 6263
10f2d63a
VZ
6264 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6272
6273fi
10f2d63a
VZ
6274
6275
6276 eval "$ac_cv_use_gauge"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6282 echo "$ac_t""yes" 1>&6
10f2d63a 6283 else
a0b9e27f 6284 echo "$ac_t""no" 1>&6
10f2d63a 6285 fi
a0b9e27f 6286
10f2d63a 6287
5005acfe
VZ
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
2b5f62a0 6290echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-grid or --disable-grid was given.
6293if test "${enable_grid+set}" = set; then
6294 enableval="$enable_grid"
a0b9e27f 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_grid='wxUSE_GRID=yes'
6298 else
6299 ac_cv_use_grid='wxUSE_GRID=no'
6300 fi
a0b9e27f 6301
10f2d63a 6302else
a0b9e27f 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6312
6313fi
10f2d63a
VZ
6314
6315
6316 eval "$ac_cv_use_grid"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6322 echo "$ac_t""yes" 1>&6
10f2d63a 6323 else
a0b9e27f 6324 echo "$ac_t""no" 1>&6
10f2d63a 6325 fi
a0b9e27f 6326
10f2d63a 6327
5005acfe
VZ
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
2b5f62a0 6330echo "configure:6331: checking for --${enablestring:-enable}-newgrid" >&5
10f2d63a
VZ
6331 no_cache=0
6332 # Check whether --enable-newgrid or --disable-newgrid was given.
6333if test "${enable_newgrid+set}" = set; then
6334 enableval="$enable_newgrid"
a0b9e27f 6335
10f2d63a
VZ
6336 if test "$enableval" = yes; then
6337 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6338 else
6339 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6340 fi
a0b9e27f 6341
10f2d63a 6342else
a0b9e27f 6343
10f2d63a
VZ
6344 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6352
6353fi
10f2d63a
VZ
6354
6355
6356 eval "$ac_cv_use_newgrid"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6362 echo "$ac_t""yes" 1>&6
10f2d63a 6363 else
a0b9e27f 6364 echo "$ac_t""no" 1>&6
10f2d63a 6365 fi
a0b9e27f 6366
10f2d63a 6367
5005acfe
VZ
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
2b5f62a0 6370echo "configure:6371: checking for --${enablestring:-enable}-imaglist" >&5
10f2d63a
VZ
6371 no_cache=0
6372 # Check whether --enable-imaglist or --disable-imaglist was given.
6373if test "${enable_imaglist+set}" = set; then
6374 enableval="$enable_imaglist"
a0b9e27f 6375
10f2d63a
VZ
6376 if test "$enableval" = yes; then
6377 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6378 else
6379 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6380 fi
a0b9e27f 6381
10f2d63a 6382else
a0b9e27f 6383
10f2d63a
VZ
6384 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6392
6393fi
10f2d63a
VZ
6394
6395
6396 eval "$ac_cv_use_imaglist"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6402 echo "$ac_t""yes" 1>&6
10f2d63a 6403 else
a0b9e27f 6404 echo "$ac_t""no" 1>&6
10f2d63a 6405 fi
a0b9e27f 6406
10f2d63a 6407
5005acfe
VZ
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
2b5f62a0 6410echo "configure:6411: checking for --${enablestring:-enable}-listbox" >&5
10f2d63a
VZ
6411 no_cache=0
6412 # Check whether --enable-listbox or --disable-listbox was given.
6413if test "${enable_listbox+set}" = set; then
6414 enableval="$enable_listbox"
a0b9e27f 6415
10f2d63a
VZ
6416 if test "$enableval" = yes; then
6417 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6418 else
6419 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6420 fi
a0b9e27f 6421
10f2d63a 6422else
a0b9e27f 6423
10f2d63a
VZ
6424 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6432
6433fi
10f2d63a
VZ
6434
6435
6436 eval "$ac_cv_use_listbox"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6442 echo "$ac_t""yes" 1>&6
10f2d63a 6443 else
a0b9e27f 6444 echo "$ac_t""no" 1>&6
10f2d63a 6445 fi
a0b9e27f 6446
10f2d63a 6447
5005acfe
VZ
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
2b5f62a0 6450echo "configure:6451: checking for --${enablestring:-enable}-listctrl" >&5
10f2d63a
VZ
6451 no_cache=0
6452 # Check whether --enable-listctrl or --disable-listctrl was given.
6453if test "${enable_listctrl+set}" = set; then
6454 enableval="$enable_listctrl"
a0b9e27f 6455
10f2d63a
VZ
6456 if test "$enableval" = yes; then
6457 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6458 else
6459 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6460 fi
a0b9e27f 6461
10f2d63a 6462else
a0b9e27f 6463
10f2d63a
VZ
6464 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6472
6473fi
10f2d63a
VZ
6474
6475
6476 eval "$ac_cv_use_listctrl"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6482 echo "$ac_t""yes" 1>&6
10f2d63a 6483 else
a0b9e27f 6484 echo "$ac_t""no" 1>&6
10f2d63a 6485 fi
a0b9e27f 6486
10f2d63a 6487
5005acfe
VZ
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
2b5f62a0 6490echo "configure:6491: checking for --${enablestring:-enable}-notebook" >&5
10f2d63a
VZ
6491 no_cache=0
6492 # Check whether --enable-notebook or --disable-notebook was given.
6493if test "${enable_notebook+set}" = set; then
6494 enableval="$enable_notebook"
a0b9e27f 6495
10f2d63a
VZ
6496 if test "$enableval" = yes; then
6497 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6498 else
6499 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6500 fi
a0b9e27f 6501
10f2d63a 6502else
a0b9e27f 6503
10f2d63a
VZ
6504 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6512
6513fi
10f2d63a
VZ
6514
6515
6516 eval "$ac_cv_use_notebook"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6522 echo "$ac_t""yes" 1>&6
10f2d63a 6523 else
a0b9e27f 6524 echo "$ac_t""no" 1>&6
10f2d63a 6525 fi
a0b9e27f 6526
10f2d63a 6527
5005acfe
VZ
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
2b5f62a0 6530echo "configure:6531: checking for --${enablestring:-enable}-propsheet" >&5
24176f2c
GD
6531 no_cache=0
6532 # Check whether --enable-propsheet or --disable-propsheet was given.
6533if test "${enable_propsheet+set}" = set; then
6534 enableval="$enable_propsheet"
a0b9e27f 6535
24176f2c
GD
6536 if test "$enableval" = yes; then
6537 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6538 else
6539 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6540 fi
a0b9e27f 6541
24176f2c 6542else
a0b9e27f 6543
24176f2c
GD
6544 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6552
6553fi
24176f2c
GD
6554
6555
6556 eval "$ac_cv_use_propsheet"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6562 echo "$ac_t""yes" 1>&6
24176f2c 6563 else
a0b9e27f 6564 echo "$ac_t""no" 1>&6
24176f2c 6565 fi
a0b9e27f 6566
24176f2c 6567
5005acfe
VZ
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
2b5f62a0 6570echo "configure:6571: checking for --${enablestring:-enable}-radiobox" >&5
10f2d63a
VZ
6571 no_cache=0
6572 # Check whether --enable-radiobox or --disable-radiobox was given.
6573if test "${enable_radiobox+set}" = set; then
6574 enableval="$enable_radiobox"
a0b9e27f 6575
10f2d63a
VZ
6576 if test "$enableval" = yes; then
6577 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6578 else
6579 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6580 fi
a0b9e27f 6581
10f2d63a 6582else
a0b9e27f 6583
10f2d63a
VZ
6584 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6592
6593fi
10f2d63a
VZ
6594
6595
6596 eval "$ac_cv_use_radiobox"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6602 echo "$ac_t""yes" 1>&6
10f2d63a 6603 else
a0b9e27f 6604 echo "$ac_t""no" 1>&6
10f2d63a 6605 fi
a0b9e27f 6606
10f2d63a 6607
5005acfe
VZ
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
2b5f62a0 6610echo "configure:6611: checking for --${enablestring:-enable}-radiobtn" >&5
10f2d63a
VZ
6611 no_cache=0
6612 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6613if test "${enable_radiobtn+set}" = set; then
6614 enableval="$enable_radiobtn"
a0b9e27f 6615
10f2d63a
VZ
6616 if test "$enableval" = yes; then
6617 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6618 else
6619 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6620 fi
a0b9e27f 6621
10f2d63a 6622else
a0b9e27f 6623
10f2d63a
VZ
6624 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6632
6633fi
10f2d63a
VZ
6634
6635
6636 eval "$ac_cv_use_radiobtn"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6642 echo "$ac_t""yes" 1>&6
10f2d63a 6643 else
a0b9e27f 6644 echo "$ac_t""no" 1>&6
10f2d63a 6645 fi
a0b9e27f 6646
10f2d63a 6647
5005acfe
VZ
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
2b5f62a0 6650echo "configure:6651: checking for --${enablestring:-enable}-sash" >&5
10f2d63a
VZ
6651 no_cache=0
6652 # Check whether --enable-sash or --disable-sash was given.
6653if test "${enable_sash+set}" = set; then
6654 enableval="$enable_sash"
a0b9e27f 6655
10f2d63a
VZ
6656 if test "$enableval" = yes; then
6657 ac_cv_use_sash='wxUSE_SASH=yes'
6658 else
6659 ac_cv_use_sash='wxUSE_SASH=no'
6660 fi
a0b9e27f 6661
10f2d63a 6662else
a0b9e27f 6663
10f2d63a
VZ
6664 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6672
6673fi
10f2d63a
VZ
6674
6675
6676 eval "$ac_cv_use_sash"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6682 echo "$ac_t""yes" 1>&6
10f2d63a 6683 else
a0b9e27f 6684 echo "$ac_t""no" 1>&6
10f2d63a 6685 fi
a0b9e27f 6686
10f2d63a 6687
5005acfe
VZ
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
2b5f62a0 6690echo "configure:6691: checking for --${enablestring:-enable}-scrollbar" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6693if test "${enable_scrollbar+set}" = set; then
6694 enableval="$enable_scrollbar"
a0b9e27f 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6698 else
6699 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6700 fi
a0b9e27f 6701
10f2d63a 6702else
a0b9e27f 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_scrollbar"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
a0b9e27f 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
a0b9e27f 6726
10f2d63a 6727
5005acfe
VZ
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
2b5f62a0 6730echo "configure:6731: checking for --${enablestring:-enable}-slider" >&5
10f2d63a
VZ
6731 no_cache=0
6732 # Check whether --enable-slider or --disable-slider was given.
6733if test "${enable_slider+set}" = set; then
6734 enableval="$enable_slider"
a0b9e27f 6735
10f2d63a
VZ
6736 if test "$enableval" = yes; then
6737 ac_cv_use_slider='wxUSE_SLIDER=yes'
6738 else
6739 ac_cv_use_slider='wxUSE_SLIDER=no'
6740 fi
a0b9e27f 6741
10f2d63a 6742else
a0b9e27f 6743
10f2d63a
VZ
6744 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6752
6753fi
10f2d63a
VZ
6754
6755
6756 eval "$ac_cv_use_slider"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6762 echo "$ac_t""yes" 1>&6
10f2d63a 6763 else
a0b9e27f 6764 echo "$ac_t""no" 1>&6
10f2d63a 6765 fi
a0b9e27f 6766
10f2d63a 6767
5005acfe
VZ
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
2b5f62a0 6770echo "configure:6771: checking for --${enablestring:-enable}-spinbtn" >&5
10f2d63a
VZ
6771 no_cache=0
6772 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6773if test "${enable_spinbtn+set}" = set; then
6774 enableval="$enable_spinbtn"
a0b9e27f 6775
10f2d63a
VZ
6776 if test "$enableval" = yes; then
6777 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6778 else
6779 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6780 fi
a0b9e27f 6781
10f2d63a 6782else
a0b9e27f 6783
10f2d63a
VZ
6784 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6792
6793fi
10f2d63a
VZ
6794
6795
6796 eval "$ac_cv_use_spinbtn"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6802 echo "$ac_t""yes" 1>&6
10f2d63a 6803 else
a0b9e27f 6804 echo "$ac_t""no" 1>&6
10f2d63a 6805 fi
a0b9e27f 6806
10f2d63a 6807
5005acfe
VZ
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
2b5f62a0 6810echo "configure:6811: checking for --${enablestring:-enable}-spinctrl" >&5
56cfaa52
RR
6811 no_cache=0
6812 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6813if test "${enable_spinctrl+set}" = set; then
6814 enableval="$enable_spinctrl"
a0b9e27f 6815
56cfaa52
RR
6816 if test "$enableval" = yes; then
6817 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6818 else
6819 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6820 fi
a0b9e27f 6821
56cfaa52 6822else
a0b9e27f 6823
56cfaa52
RR
6824 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6832
6833fi
56cfaa52
RR
6834
6835
6836 eval "$ac_cv_use_spinctrl"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6842 echo "$ac_t""yes" 1>&6
56cfaa52 6843 else
a0b9e27f 6844 echo "$ac_t""no" 1>&6
56cfaa52 6845 fi
a0b9e27f 6846
56cfaa52 6847
5005acfe
VZ
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
2b5f62a0 6850echo "configure:6851: checking for --${enablestring:-enable}-splitter" >&5
10f2d63a
VZ
6851 no_cache=0
6852 # Check whether --enable-splitter or --disable-splitter was given.
6853if test "${enable_splitter+set}" = set; then
6854 enableval="$enable_splitter"
a0b9e27f 6855
10f2d63a
VZ
6856 if test "$enableval" = yes; then
6857 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6858 else
6859 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6860 fi
a0b9e27f 6861
10f2d63a 6862else
a0b9e27f 6863
10f2d63a
VZ
6864 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6872
6873fi
10f2d63a
VZ
6874
6875
6876 eval "$ac_cv_use_splitter"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
a0b9e27f 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
a0b9e27f 6886
10f2d63a 6887
5005acfe
VZ
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
2b5f62a0 6890echo "configure:6891: checking for --${enablestring:-enable}-statbmp" >&5
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-statbmp or --disable-statbmp was given.
6893if test "${enable_statbmp+set}" = set; then
6894 enableval="$enable_statbmp"
a0b9e27f 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6898 else
6899 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6900 fi
a0b9e27f 6901
10f2d63a 6902else
a0b9e27f 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6912
6913fi
10f2d63a
VZ
6914
6915
6916 eval "$ac_cv_use_statbmp"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6922 echo "$ac_t""yes" 1>&6
10f2d63a 6923 else
a0b9e27f 6924 echo "$ac_t""no" 1>&6
10f2d63a 6925 fi
a0b9e27f 6926
10f2d63a 6927
5005acfe
VZ
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
2b5f62a0 6930echo "configure:6931: checking for --${enablestring:-enable}-statbox" >&5
10f2d63a
VZ
6931 no_cache=0
6932 # Check whether --enable-statbox or --disable-statbox was given.
6933if test "${enable_statbox+set}" = set; then
6934 enableval="$enable_statbox"
a0b9e27f 6935
10f2d63a
VZ
6936 if test "$enableval" = yes; then
6937 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6938 else
6939 ac_cv_use_statbox='wxUSE_STATBOX=no'
6940 fi
a0b9e27f 6941
10f2d63a 6942else
a0b9e27f 6943
10f2d63a
VZ
6944 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6952
6953fi
10f2d63a
VZ
6954
6955
6956 eval "$ac_cv_use_statbox"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6962 echo "$ac_t""yes" 1>&6
10f2d63a 6963 else
a0b9e27f 6964 echo "$ac_t""no" 1>&6
10f2d63a 6965 fi
a0b9e27f 6966
10f2d63a 6967
5005acfe
VZ
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
2b5f62a0 6970echo "configure:6971: checking for --${enablestring:-enable}-statline" >&5
10f2d63a
VZ
6971 no_cache=0
6972 # Check whether --enable-statline or --disable-statline was given.
6973if test "${enable_statline+set}" = set; then
6974 enableval="$enable_statline"
a0b9e27f 6975
10f2d63a
VZ
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statline='wxUSE_STATLINE=yes'
6978 else
6979 ac_cv_use_statline='wxUSE_STATLINE=no'
6980 fi
a0b9e27f 6981
10f2d63a 6982else
a0b9e27f 6983
10f2d63a
VZ
6984 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6992
6993fi
10f2d63a
VZ
6994
6995
6996 eval "$ac_cv_use_statline"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 7002 echo "$ac_t""yes" 1>&6
10f2d63a 7003 else
a0b9e27f 7004 echo "$ac_t""no" 1>&6
10f2d63a 7005 fi
a0b9e27f 7006
10f2d63a 7007
5005acfe
VZ
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
2b5f62a0 7010echo "configure:7011: checking for --${enablestring:-enable}-stattext" >&5
1e6feb95
VZ
7011 no_cache=0
7012 # Check whether --enable-stattext or --disable-stattext was given.
7013if test "${enable_stattext+set}" = set; then
7014 enableval="$enable_stattext"
a0b9e27f 7015
1e6feb95
VZ
7016 if test "$enableval" = yes; then
7017 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7018 else
7019 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7020 fi
a0b9e27f 7021
1e6feb95 7022else
a0b9e27f 7023
1e6feb95
VZ
7024 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
7032
7033fi
1e6feb95
VZ
7034
7035
7036 eval "$ac_cv_use_stattext"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 7042 echo "$ac_t""yes" 1>&6
1e6feb95 7043 else
a0b9e27f 7044 echo "$ac_t""no" 1>&6
1e6feb95 7045 fi
a0b9e27f 7046
1e6feb95 7047
5005acfe
VZ
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
2b5f62a0 7050echo "configure:7051: checking for --${enablestring:-enable}-statusbar" >&5
10f2d63a
VZ
7051 no_cache=0
7052 # Check whether --enable-statusbar or --disable-statusbar was given.
7053if test "${enable_statusbar+set}" = set; then
7054 enableval="$enable_statusbar"
a0b9e27f 7055
10f2d63a
VZ
7056 if test "$enableval" = yes; then
7057 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7058 else
7059 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7060 fi
a0b9e27f 7061
10f2d63a 7062else
a0b9e27f 7063
10f2d63a
VZ
7064 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
7072
7073fi
10f2d63a
VZ
7074
7075
7076 eval "$ac_cv_use_statusbar"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 7082 echo "$ac_t""yes" 1>&6
10f2d63a 7083 else
a0b9e27f 7084 echo "$ac_t""no" 1>&6
10f2d63a 7085 fi
a0b9e27f 7086
10f2d63a 7087
5005acfe
VZ
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
2b5f62a0 7090echo "configure:7091: checking for --${enablestring:-enable}-tabdialog" >&5
10f2d63a
VZ
7091 no_cache=0
7092 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7093if test "${enable_tabdialog+set}" = set; then
7094 enableval="$enable_tabdialog"
a0b9e27f 7095
10f2d63a
VZ
7096 if test "$enableval" = yes; then
7097 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7098 else
7099 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7100 fi
a0b9e27f 7101
10f2d63a 7102else
a0b9e27f 7103
10f2d63a
VZ
7104 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
7112
7113fi
10f2d63a
VZ
7114
7115
7116 eval "$ac_cv_use_tabdialog"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 7122 echo "$ac_t""yes" 1>&6
10f2d63a 7123 else
a0b9e27f 7124 echo "$ac_t""no" 1>&6
10f2d63a 7125 fi
a0b9e27f 7126
10f2d63a 7127
5005acfe
VZ
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
2b5f62a0 7130echo "configure:7131: checking for --${enablestring:-enable}-textctrl" >&5
1e6feb95
VZ
7131 no_cache=0
7132 # Check whether --enable-textctrl or --disable-textctrl was given.
7133if test "${enable_textctrl+set}" = set; then
7134 enableval="$enable_textctrl"
a0b9e27f 7135
1e6feb95
VZ
7136 if test "$enableval" = yes; then
7137 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7138 else
7139 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7140 fi
a0b9e27f 7141
1e6feb95 7142else
a0b9e27f 7143
1e6feb95
VZ
7144 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7152
7153fi
1e6feb95
VZ
7154
7155
7156 eval "$ac_cv_use_textctrl"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7162 echo "$ac_t""yes" 1>&6
1e6feb95 7163 else
a0b9e27f 7164 echo "$ac_t""no" 1>&6
1e6feb95 7165 fi
a0b9e27f 7166
1e6feb95 7167
5005acfe
VZ
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
2b5f62a0 7170echo "configure:7171: checking for --${enablestring:-enable}-togglebtn" >&5
1db8dc4a
VZ
7171 no_cache=0
7172 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7173if test "${enable_togglebtn+set}" = set; then
7174 enableval="$enable_togglebtn"
a0b9e27f 7175
1db8dc4a
VZ
7176 if test "$enableval" = yes; then
7177 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7178 else
7179 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7180 fi
a0b9e27f 7181
1db8dc4a 7182else
a0b9e27f 7183
1db8dc4a
VZ
7184 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7192
7193fi
1db8dc4a
VZ
7194
7195
7196 eval "$ac_cv_use_togglebtn"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7202 echo "$ac_t""yes" 1>&6
1db8dc4a 7203 else
a0b9e27f 7204 echo "$ac_t""no" 1>&6
1db8dc4a 7205 fi
a0b9e27f 7206
1db8dc4a 7207
5005acfe
VZ
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
2b5f62a0 7210echo "configure:7211: checking for --${enablestring:-enable}-toolbar" >&5
10f2d63a
VZ
7211 no_cache=0
7212 # Check whether --enable-toolbar or --disable-toolbar was given.
7213if test "${enable_toolbar+set}" = set; then
7214 enableval="$enable_toolbar"
a0b9e27f 7215
10f2d63a
VZ
7216 if test "$enableval" = yes; then
7217 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7218 else
7219 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7220 fi
a0b9e27f 7221
10f2d63a 7222else
a0b9e27f 7223
10f2d63a
VZ
7224 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7232
7233fi
10f2d63a
VZ
7234
7235
7236 eval "$ac_cv_use_toolbar"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7242 echo "$ac_t""yes" 1>&6
10f2d63a 7243 else
a0b9e27f 7244 echo "$ac_t""no" 1>&6
10f2d63a 7245 fi
a0b9e27f 7246
10f2d63a 7247
5005acfe
VZ
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
2b5f62a0 7250echo "configure:7251: checking for --${enablestring:-enable}-tbarnative" >&5
360d6699
VZ
7251 no_cache=0
7252 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7253if test "${enable_tbarnative+set}" = set; then
7254 enableval="$enable_tbarnative"
a0b9e27f 7255
360d6699
VZ
7256 if test "$enableval" = yes; then
7257 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7258 else
7259 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7260 fi
a0b9e27f 7261
360d6699 7262else
a0b9e27f 7263
360d6699
VZ
7264 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7272
7273fi
360d6699
VZ
7274
7275
7276 eval "$ac_cv_use_tbarnative"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7282 echo "$ac_t""yes" 1>&6
360d6699 7283 else
a0b9e27f 7284 echo "$ac_t""no" 1>&6
360d6699 7285 fi
a0b9e27f 7286
360d6699 7287
5005acfe
VZ
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
2b5f62a0 7290echo "configure:7291: checking for --${enablestring:-enable}-tbarsmpl" >&5
360d6699
VZ
7291 no_cache=0
7292 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7293if test "${enable_tbarsmpl+set}" = set; then
7294 enableval="$enable_tbarsmpl"
a0b9e27f 7295
360d6699
VZ
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7298 else
7299 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7300 fi
a0b9e27f 7301
360d6699 7302else
a0b9e27f 7303
360d6699
VZ
7304 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7312
7313fi
360d6699
VZ
7314
7315
7316 eval "$ac_cv_use_tbarsmpl"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7322 echo "$ac_t""yes" 1>&6
360d6699 7323 else
a0b9e27f 7324 echo "$ac_t""no" 1>&6
360d6699 7325 fi
a0b9e27f 7326
360d6699 7327
5005acfe
VZ
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
2b5f62a0 7330echo "configure:7331: checking for --${enablestring:-enable}-treectrl" >&5
10f2d63a
VZ
7331 no_cache=0
7332 # Check whether --enable-treectrl or --disable-treectrl was given.
7333if test "${enable_treectrl+set}" = set; then
7334 enableval="$enable_treectrl"
a0b9e27f 7335
10f2d63a
VZ
7336 if test "$enableval" = yes; then
7337 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7338 else
7339 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7340 fi
a0b9e27f 7341
10f2d63a 7342else
a0b9e27f 7343
10f2d63a
VZ
7344 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7352
7353fi
10f2d63a
VZ
7354
7355
1e6feb95
VZ
7356 eval "$ac_cv_use_treectrl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7362 echo "$ac_t""yes" 1>&6
1e6feb95 7363 else
a0b9e27f 7364 echo "$ac_t""no" 1>&6
1e6feb95 7365 fi
a0b9e27f 7366
1e6feb95 7367
5005acfe
VZ
7368 enablestring=
7369 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
2b5f62a0 7370echo "configure:7371: checking for --${enablestring:-enable}-tipwindow" >&5
9926e4a4
VZ
7371 no_cache=0
7372 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7373if test "${enable_tipwindow+set}" = set; then
7374 enableval="$enable_tipwindow"
a0b9e27f 7375
9926e4a4
VZ
7376 if test "$enableval" = yes; then
7377 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7378 else
7379 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7380 fi
a0b9e27f 7381
9926e4a4 7382else
a0b9e27f 7383
9926e4a4
VZ
7384 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7392
7393fi
9926e4a4
VZ
7394
7395
7396 eval "$ac_cv_use_tipwindow"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7402 echo "$ac_t""yes" 1>&6
9926e4a4 7403 else
a0b9e27f 7404 echo "$ac_t""no" 1>&6
9926e4a4 7405 fi
a0b9e27f 7406
9926e4a4 7407
5005acfe
VZ
7408 enablestring=
7409 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
2b5f62a0 7410echo "configure:7411: checking for --${enablestring:-enable}-popupwin" >&5
9f41d601
RR
7411 no_cache=0
7412 # Check whether --enable-popupwin or --disable-popupwin was given.
7413if test "${enable_popupwin+set}" = set; then
7414 enableval="$enable_popupwin"
a0b9e27f 7415
9f41d601
RR
7416 if test "$enableval" = yes; then
7417 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7418 else
7419 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7420 fi
a0b9e27f 7421
9f41d601 7422else
a0b9e27f 7423
9f41d601
RR
7424 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7432
7433fi
9f41d601
RR
7434
7435
7436 eval "$ac_cv_use_popupwin"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7442 echo "$ac_t""yes" 1>&6
9f41d601 7443 else
a0b9e27f 7444 echo "$ac_t""no" 1>&6
9f41d601 7445 fi
a0b9e27f 7446
52127426 7447
8284b0c5
MB
7448
7449
5005acfe
VZ
7450 enablestring=
7451 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
2b5f62a0 7452echo "configure:7453: checking for --${enablestring:-enable}-commondlg" >&5
1e6feb95
VZ
7453 no_cache=0
7454 # Check whether --enable-commondlg or --disable-commondlg was given.
7455if test "${enable_commondlg+set}" = set; then
7456 enableval="$enable_commondlg"
a0b9e27f 7457
1e6feb95
VZ
7458 if test "$enableval" = yes; then
7459 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7460 else
7461 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7462 fi
a0b9e27f 7463
1e6feb95 7464else
a0b9e27f 7465
1e6feb95
VZ
7466 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7474
7475fi
1e6feb95
VZ
7476
7477
7478 eval "$ac_cv_use_commondlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7484 echo "$ac_t""yes" 1>&6
1e6feb95 7485 else
a0b9e27f 7486 echo "$ac_t""no" 1>&6
1e6feb95 7487 fi
a0b9e27f 7488
1e6feb95 7489
5005acfe
VZ
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
2b5f62a0 7492echo "configure:7493: checking for --${enablestring:-enable}-choicedlg" >&5
1e6feb95
VZ
7493 no_cache=0
7494 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7495if test "${enable_choicedlg+set}" = set; then
7496 enableval="$enable_choicedlg"
a0b9e27f 7497
1e6feb95
VZ
7498 if test "$enableval" = yes; then
7499 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7500 else
7501 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7502 fi
a0b9e27f 7503
1e6feb95 7504else
a0b9e27f 7505
1e6feb95
VZ
7506 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7514
7515fi
1e6feb95
VZ
7516
7517
7518 eval "$ac_cv_use_choicedlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7524 echo "$ac_t""yes" 1>&6
1e6feb95 7525 else
a0b9e27f 7526 echo "$ac_t""no" 1>&6
1e6feb95 7527 fi
a0b9e27f 7528
1e6feb95 7529
5005acfe
VZ
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
2b5f62a0 7532echo "configure:7533: checking for --${enablestring:-enable}-coldlg" >&5
1e6feb95
VZ
7533 no_cache=0
7534 # Check whether --enable-coldlg or --disable-coldlg was given.
7535if test "${enable_coldlg+set}" = set; then
7536 enableval="$enable_coldlg"
a0b9e27f 7537
1e6feb95
VZ
7538 if test "$enableval" = yes; then
7539 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7540 else
7541 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7542 fi
a0b9e27f 7543
1e6feb95 7544else
a0b9e27f 7545
1e6feb95
VZ
7546 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7554
7555fi
1e6feb95
VZ
7556
7557
7558 eval "$ac_cv_use_coldlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7564 echo "$ac_t""yes" 1>&6
1e6feb95 7565 else
a0b9e27f 7566 echo "$ac_t""no" 1>&6
1e6feb95 7567 fi
a0b9e27f 7568
1e6feb95 7569
5005acfe
VZ
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
2b5f62a0 7572echo "configure:7573: checking for --${enablestring:-enable}-filedlg" >&5
1e6feb95
VZ
7573 no_cache=0
7574 # Check whether --enable-filedlg or --disable-filedlg was given.
7575if test "${enable_filedlg+set}" = set; then
7576 enableval="$enable_filedlg"
a0b9e27f 7577
1e6feb95
VZ
7578 if test "$enableval" = yes; then
7579 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7580 else
7581 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7582 fi
a0b9e27f 7583
1e6feb95 7584else
a0b9e27f 7585
1e6feb95
VZ
7586 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7594
7595fi
1e6feb95
VZ
7596
7597
7598 eval "$ac_cv_use_filedlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7604 echo "$ac_t""yes" 1>&6
1e6feb95 7605 else
a0b9e27f 7606 echo "$ac_t""no" 1>&6
1e6feb95 7607 fi
a0b9e27f 7608
1e6feb95 7609
5005acfe
VZ
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
2b5f62a0 7612echo "configure:7613: checking for --${enablestring:-enable}-finddlg" >&5
8db37e06 7613 no_cache=0
69d27ff7
MB
7614 # Check whether --enable-finddlg or --disable-finddlg was given.
7615if test "${enable_finddlg+set}" = set; then
7616 enableval="$enable_finddlg"
a0b9e27f 7617
8db37e06 7618 if test "$enableval" = yes; then
69d27ff7 7619 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7620 else
69d27ff7 7621 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7622 fi
a0b9e27f 7623
8db37e06 7624else
a0b9e27f 7625
8db37e06
VZ
7626 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
69d27ff7 7633 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7634
7635fi
8db37e06
VZ
7636
7637
69d27ff7 7638 eval "$ac_cv_use_finddlg"
8db37e06 7639 if test "$no_cache" != 1; then
69d27ff7 7640 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7641 fi
7642
7643 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7644 echo "$ac_t""yes" 1>&6
8db37e06 7645 else
a0b9e27f 7646 echo "$ac_t""no" 1>&6
8db37e06 7647 fi
a0b9e27f 7648
8db37e06 7649
5005acfe
VZ
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
2b5f62a0 7652echo "configure:7653: checking for --${enablestring:-enable}-fontdlg" >&5
1e6feb95
VZ
7653 no_cache=0
7654 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7655if test "${enable_fontdlg+set}" = set; then
7656 enableval="$enable_fontdlg"
a0b9e27f 7657
1e6feb95
VZ
7658 if test "$enableval" = yes; then
7659 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7660 else
7661 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7662 fi
a0b9e27f 7663
1e6feb95 7664else
a0b9e27f 7665
1e6feb95
VZ
7666 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7674
7675fi
1e6feb95
VZ
7676
7677
7678 eval "$ac_cv_use_fontdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7684 echo "$ac_t""yes" 1>&6
1e6feb95 7685 else
a0b9e27f 7686 echo "$ac_t""no" 1>&6
1e6feb95 7687 fi
a0b9e27f 7688
1e6feb95 7689
5005acfe
VZ
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
2b5f62a0 7692echo "configure:7693: checking for --${enablestring:-enable}-dirdlg" >&5
1e6feb95
VZ
7693 no_cache=0
7694 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7695if test "${enable_dirdlg+set}" = set; then
7696 enableval="$enable_dirdlg"
a0b9e27f 7697
1e6feb95
VZ
7698 if test "$enableval" = yes; then
7699 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7700 else
7701 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7702 fi
a0b9e27f 7703
1e6feb95 7704else
a0b9e27f 7705
1e6feb95
VZ
7706 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7714
7715fi
1e6feb95
VZ
7716
7717
7718 eval "$ac_cv_use_dirdlg"
10f2d63a 7719 if test "$no_cache" != 1; then
1e6feb95 7720 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7721 fi
7722
1e6feb95 7723 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7724 echo "$ac_t""yes" 1>&6
10f2d63a 7725 else
a0b9e27f 7726 echo "$ac_t""no" 1>&6
10f2d63a 7727 fi
a0b9e27f 7728
698dcdb6 7729
5005acfe
VZ
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
2b5f62a0 7732echo "configure:7733: checking for --${enablestring:-enable}-msgdlg" >&5
10f2d63a 7733 no_cache=0
1e6feb95
VZ
7734 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7735if test "${enable_msgdlg+set}" = set; then
7736 enableval="$enable_msgdlg"
a0b9e27f 7737
10f2d63a 7738 if test "$enableval" = yes; then
1e6feb95 7739 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7740 else
1e6feb95 7741 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7742 fi
a0b9e27f 7743
10f2d63a 7744else
a0b9e27f 7745
1e6feb95 7746 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
1e6feb95 7753 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7754
7755fi
10f2d63a
VZ
7756
7757
1e6feb95 7758 eval "$ac_cv_use_msgdlg"
10f2d63a 7759 if test "$no_cache" != 1; then
1e6feb95 7760 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7761 fi
7762
1e6feb95 7763 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7764 echo "$ac_t""yes" 1>&6
10f2d63a 7765 else
a0b9e27f 7766 echo "$ac_t""no" 1>&6
10f2d63a 7767 fi
a0b9e27f 7768
10f2d63a 7769
5005acfe
VZ
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
2b5f62a0 7772echo "configure:7773: checking for --${enablestring:-enable}-numberdlg" >&5
10f2d63a 7773 no_cache=0
1e6feb95
VZ
7774 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7775if test "${enable_numberdlg+set}" = set; then
7776 enableval="$enable_numberdlg"
a0b9e27f 7777
10f2d63a 7778 if test "$enableval" = yes; then
1e6feb95 7779 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7780 else
1e6feb95 7781 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7782 fi
a0b9e27f 7783
10f2d63a 7784else
a0b9e27f 7785
1e6feb95 7786 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
1e6feb95 7793 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7794
7795fi
10f2d63a
VZ
7796
7797
1e6feb95 7798 eval "$ac_cv_use_numberdlg"
10f2d63a 7799 if test "$no_cache" != 1; then
1e6feb95 7800 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7801 fi
7802
1e6feb95 7803 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7804 echo "$ac_t""yes" 1>&6
10f2d63a 7805 else
a0b9e27f 7806 echo "$ac_t""no" 1>&6
10f2d63a 7807 fi
a0b9e27f 7808
10f2d63a 7809
5005acfe
VZ
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
2b5f62a0 7812echo "configure:7813: checking for --${enablestring:-enable}-splash" >&5
cbca9943
VZ
7813 no_cache=0
7814 # Check whether --enable-splash or --disable-splash was given.
7815if test "${enable_splash+set}" = set; then
7816 enableval="$enable_splash"
a0b9e27f 7817
cbca9943
VZ
7818 if test "$enableval" = yes; then
7819 ac_cv_use_splash='wxUSE_SPLASH=yes'
7820 else
7821 ac_cv_use_splash='wxUSE_SPLASH=no'
7822 fi
a0b9e27f 7823
cbca9943 7824else
a0b9e27f 7825
cbca9943
VZ
7826 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7834
7835fi
cbca9943
VZ
7836
7837
7838 eval "$ac_cv_use_splash"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7844 echo "$ac_t""yes" 1>&6
cbca9943 7845 else
a0b9e27f 7846 echo "$ac_t""no" 1>&6
cbca9943 7847 fi
a0b9e27f 7848
cbca9943 7849
5005acfe
VZ
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
2b5f62a0 7852echo "configure:7853: checking for --${enablestring:-enable}-textdlg" >&5
10f2d63a
VZ
7853 no_cache=0
7854 # Check whether --enable-textdlg or --disable-textdlg was given.
7855if test "${enable_textdlg+set}" = set; then
7856 enableval="$enable_textdlg"
a0b9e27f 7857
10f2d63a
VZ
7858 if test "$enableval" = yes; then
7859 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7860 else
7861 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7862 fi
a0b9e27f 7863
10f2d63a 7864else
a0b9e27f 7865
10f2d63a
VZ
7866 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7874
7875fi
10f2d63a
VZ
7876
7877
7878 eval "$ac_cv_use_textdlg"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7884 echo "$ac_t""yes" 1>&6
10f2d63a 7885 else
a0b9e27f 7886 echo "$ac_t""no" 1>&6
10f2d63a 7887 fi
a0b9e27f 7888
10f2d63a 7889
5005acfe
VZ
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
2b5f62a0 7892echo "configure:7893: checking for --${enablestring:-enable}-tipdlg" >&5
10f2d63a
VZ
7893 no_cache=0
7894 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7895if test "${enable_tipdlg+set}" = set; then
7896 enableval="$enable_tipdlg"
a0b9e27f 7897
10f2d63a
VZ
7898 if test "$enableval" = yes; then
7899 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7900 else
7901 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7902 fi
a0b9e27f 7903
10f2d63a 7904else
a0b9e27f 7905
10f2d63a
VZ
7906 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7914
7915fi
10f2d63a
VZ
7916
7917
7918 eval "$ac_cv_use_tipdlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7924 echo "$ac_t""yes" 1>&6
10f2d63a 7925 else
a0b9e27f 7926 echo "$ac_t""no" 1>&6
10f2d63a 7927 fi
a0b9e27f 7928
10f2d63a 7929
5005acfe
VZ
7930 enablestring=
7931 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
2b5f62a0 7932echo "configure:7933: checking for --${enablestring:-enable}-progressdlg" >&5
10f2d63a
VZ
7933 no_cache=0
7934 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7935if test "${enable_progressdlg+set}" = set; then
7936 enableval="$enable_progressdlg"
a0b9e27f 7937
10f2d63a
VZ
7938 if test "$enableval" = yes; then
7939 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7940 else
7941 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7942 fi
a0b9e27f 7943
10f2d63a 7944else
a0b9e27f 7945
10f2d63a
VZ
7946 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7954
7955fi
10f2d63a
VZ
7956
7957
7958 eval "$ac_cv_use_progressdlg"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7964 echo "$ac_t""yes" 1>&6
10f2d63a 7965 else
a0b9e27f 7966 echo "$ac_t""no" 1>&6
10f2d63a 7967 fi
a0b9e27f 7968
10f2d63a 7969
5005acfe
VZ
7970 enablestring=
7971 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
2b5f62a0 7972echo "configure:7973: checking for --${enablestring:-enable}-wizarddlg" >&5
b1f5d087
VZ
7973 no_cache=0
7974 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7975if test "${enable_wizarddlg+set}" = set; then
7976 enableval="$enable_wizarddlg"
a0b9e27f 7977
b1f5d087
VZ
7978 if test "$enableval" = yes; then
7979 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7980 else
7981 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7982 fi
a0b9e27f 7983
b1f5d087 7984else
a0b9e27f 7985
b1f5d087
VZ
7986 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7994
7995fi
b1f5d087
VZ
7996
7997
7998 eval "$ac_cv_use_wizarddlg"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 8004 echo "$ac_t""yes" 1>&6
b1f5d087 8005 else
a0b9e27f 8006 echo "$ac_t""no" 1>&6
b1f5d087 8007 fi
a0b9e27f 8008
8284b0c5
MB
8009
8010
52127426 8011
5005acfe
VZ
8012 enablestring=
8013 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
2b5f62a0 8014echo "configure:8015: checking for --${enablestring:-enable}-menus" >&5
1e6feb95
VZ
8015 no_cache=0
8016 # Check whether --enable-menus or --disable-menus was given.
8017if test "${enable_menus+set}" = set; then
8018 enableval="$enable_menus"
a0b9e27f 8019
1e6feb95
VZ
8020 if test "$enableval" = yes; then
8021 ac_cv_use_menus='wxUSE_MENUS=yes'
8022 else
8023 ac_cv_use_menus='wxUSE_MENUS=no'
8024 fi
a0b9e27f 8025
1e6feb95 8026else
a0b9e27f 8027
1e6feb95
VZ
8028 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
8036
8037fi
1e6feb95
VZ
8038
8039
8040 eval "$ac_cv_use_menus"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 8046 echo "$ac_t""yes" 1>&6
1e6feb95 8047 else
a0b9e27f 8048 echo "$ac_t""no" 1>&6
1e6feb95 8049 fi
a0b9e27f 8050
1e6feb95 8051
5005acfe
VZ
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
2b5f62a0 8054echo "configure:8055: checking for --${enablestring:-enable}-miniframe" >&5
10f2d63a
VZ
8055 no_cache=0
8056 # Check whether --enable-miniframe or --disable-miniframe was given.
8057if test "${enable_miniframe+set}" = set; then
8058 enableval="$enable_miniframe"
a0b9e27f 8059
10f2d63a
VZ
8060 if test "$enableval" = yes; then
8061 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8062 else
8063 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8064 fi
a0b9e27f 8065
10f2d63a 8066else
a0b9e27f 8067
10f2d63a
VZ
8068 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
8076
8077fi
10f2d63a
VZ
8078
8079
8080 eval "$ac_cv_use_miniframe"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 8086 echo "$ac_t""yes" 1>&6
10f2d63a 8087 else
a0b9e27f 8088 echo "$ac_t""no" 1>&6
10f2d63a 8089 fi
a0b9e27f 8090
10f2d63a 8091
5005acfe
VZ
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
2b5f62a0 8094echo "configure:8095: checking for --${enablestring:-enable}-tooltips" >&5
10f2d63a
VZ
8095 no_cache=0
8096 # Check whether --enable-tooltips or --disable-tooltips was given.
8097if test "${enable_tooltips+set}" = set; then
8098 enableval="$enable_tooltips"
a0b9e27f 8099
10f2d63a
VZ
8100 if test "$enableval" = yes; then
8101 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8102 else
8103 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8104 fi
a0b9e27f 8105
10f2d63a 8106else
a0b9e27f 8107
10f2d63a
VZ
8108 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
8116
8117fi
10f2d63a
VZ
8118
8119
8120 eval "$ac_cv_use_tooltips"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 8126 echo "$ac_t""yes" 1>&6
10f2d63a 8127 else
a0b9e27f 8128 echo "$ac_t""no" 1>&6
10f2d63a 8129 fi
a0b9e27f 8130
10f2d63a 8131
5005acfe
VZ
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
2b5f62a0 8134echo "configure:8135: checking for --${enablestring:-enable}-splines" >&5
10f2d63a
VZ
8135 no_cache=0
8136 # Check whether --enable-splines or --disable-splines was given.
8137if test "${enable_splines+set}" = set; then
8138 enableval="$enable_splines"
a0b9e27f 8139
10f2d63a
VZ
8140 if test "$enableval" = yes; then
8141 ac_cv_use_splines='wxUSE_SPLINES=yes'
8142 else
8143 ac_cv_use_splines='wxUSE_SPLINES=no'
8144 fi
a0b9e27f 8145
10f2d63a 8146else
a0b9e27f 8147
10f2d63a
VZ
8148 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8156
8157fi
10f2d63a
VZ
8158
8159
8160 eval "$ac_cv_use_splines"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8166 echo "$ac_t""yes" 1>&6
10f2d63a 8167 else
a0b9e27f 8168 echo "$ac_t""no" 1>&6
10f2d63a 8169 fi
a0b9e27f 8170
10f2d63a 8171
5005acfe
VZ
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
2b5f62a0 8174echo "configure:8175: checking for --${enablestring:-enable}-validators" >&5
10f2d63a
VZ
8175 no_cache=0
8176 # Check whether --enable-validators or --disable-validators was given.
8177if test "${enable_validators+set}" = set; then
8178 enableval="$enable_validators"
a0b9e27f 8179
10f2d63a
VZ
8180 if test "$enableval" = yes; then
8181 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8182 else
8183 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8184 fi
a0b9e27f 8185
10f2d63a 8186else
a0b9e27f 8187
10f2d63a
VZ
8188 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8196
8197fi
10f2d63a
VZ
8198
8199
8200 eval "$ac_cv_use_validators"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8206 echo "$ac_t""yes" 1>&6
10f2d63a 8207 else
a0b9e27f 8208 echo "$ac_t""no" 1>&6
10f2d63a 8209 fi
a0b9e27f 8210
10f2d63a 8211
5005acfe
VZ
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
2b5f62a0 8214echo "configure:8215: checking for --${enablestring:-enable}-busyinfo" >&5
10f2d63a
VZ
8215 no_cache=0
8216 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8217if test "${enable_busyinfo+set}" = set; then
8218 enableval="$enable_busyinfo"
a0b9e27f 8219
10f2d63a
VZ
8220 if test "$enableval" = yes; then
8221 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8222 else
8223 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8224 fi
a0b9e27f 8225
10f2d63a 8226else
a0b9e27f 8227
10f2d63a
VZ
8228 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8236
8237fi
10f2d63a
VZ
8238
8239
8240 eval "$ac_cv_use_busyinfo"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8246 echo "$ac_t""yes" 1>&6
10f2d63a 8247 else
a0b9e27f 8248 echo "$ac_t""no" 1>&6
10f2d63a 8249 fi
a0b9e27f 8250
10f2d63a 8251
5005acfe
VZ
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
2b5f62a0 8254echo "configure:8255: checking for --${enablestring:-enable}-joystick" >&5
f6bcfd97
BP
8255 no_cache=0
8256 # Check whether --enable-joystick or --disable-joystick was given.
8257if test "${enable_joystick+set}" = set; then
8258 enableval="$enable_joystick"
a0b9e27f 8259
f6bcfd97
BP
8260 if test "$enableval" = yes; then
8261 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8262 else
8263 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8264 fi
a0b9e27f 8265
f6bcfd97 8266else
a0b9e27f 8267
f6bcfd97
BP
8268 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8276
8277fi
f6bcfd97
BP
8278
8279
8280 eval "$ac_cv_use_joystick"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8286 echo "$ac_t""yes" 1>&6
f6bcfd97 8287 else
a0b9e27f 8288 echo "$ac_t""no" 1>&6
f6bcfd97 8289 fi
a0b9e27f 8290
698dcdb6 8291
5005acfe
VZ
8292 enablestring=
8293 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
2b5f62a0 8294echo "configure:8295: checking for --${enablestring:-enable}-metafile" >&5
1e6feb95
VZ
8295 no_cache=0
8296 # Check whether --enable-metafile or --disable-metafile was given.
8297if test "${enable_metafile+set}" = set; then
8298 enableval="$enable_metafile"
a0b9e27f 8299
1e6feb95
VZ
8300 if test "$enableval" = yes; then
8301 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8302 else
8303 ac_cv_use_metafile='wxUSE_METAFILE=no'
8304 fi
a0b9e27f 8305
1e6feb95 8306else
a0b9e27f 8307
1e6feb95
VZ
8308 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8316
8317fi
1e6feb95
VZ
8318
8319
8320 eval "$ac_cv_use_metafile"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8326 echo "$ac_t""yes" 1>&6
1e6feb95 8327 else
a0b9e27f 8328 echo "$ac_t""no" 1>&6
1e6feb95 8329 fi
a0b9e27f 8330
1e6feb95 8331
5005acfe
VZ
8332 enablestring=
8333 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
2b5f62a0 8334echo "configure:8335: checking for --${enablestring:-enable}-dragimage" >&5
24fd6d87
VZ
8335 no_cache=0
8336 # Check whether --enable-dragimage or --disable-dragimage was given.
8337if test "${enable_dragimage+set}" = set; then
8338 enableval="$enable_dragimage"
a0b9e27f 8339
24fd6d87
VZ
8340 if test "$enableval" = yes; then
8341 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8342 else
8343 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8344 fi
a0b9e27f 8345
24fd6d87 8346else
a0b9e27f 8347
24fd6d87
VZ
8348 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8356
8357fi
24fd6d87
VZ
8358
8359
8360 eval "$ac_cv_use_dragimage"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8366 echo "$ac_t""yes" 1>&6
24fd6d87 8367 else
a0b9e27f 8368 echo "$ac_t""no" 1>&6
24fd6d87 8369 fi
a0b9e27f 8370
52127426 8371
8284b0c5
MB
8372
8373
5005acfe
VZ
8374 enablestring=
8375 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
2b5f62a0 8376echo "configure:8377: checking for --${enablestring:-enable}-palette" >&5
edae8572
VZ
8377 no_cache=0
8378 # Check whether --enable-palette or --disable-palette was given.
8379if test "${enable_palette+set}" = set; then
8380 enableval="$enable_palette"
a0b9e27f 8381
edae8572
VZ
8382 if test "$enableval" = yes; then
8383 ac_cv_use_palette='wxUSE_PALETTE=yes'
8384 else
8385 ac_cv_use_palette='wxUSE_PALETTE=no'
8386 fi
a0b9e27f 8387
edae8572 8388else
a0b9e27f 8389
edae8572
VZ
8390 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8398
8399fi
edae8572
VZ
8400
8401
8402 eval "$ac_cv_use_palette"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8408 echo "$ac_t""yes" 1>&6
edae8572 8409 else
a0b9e27f 8410 echo "$ac_t""no" 1>&6
edae8572 8411 fi
a0b9e27f 8412
edae8572 8413
5005acfe
VZ
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
2b5f62a0 8416echo "configure:8417: checking for --${enablestring:-enable}-image" >&5
0046ff7c
VS
8417 no_cache=0
8418 # Check whether --enable-image or --disable-image was given.
8419if test "${enable_image+set}" = set; then
8420 enableval="$enable_image"
a0b9e27f 8421
0046ff7c
VS
8422 if test "$enableval" = yes; then
8423 ac_cv_use_image='wxUSE_IMAGE=yes'
8424 else
8425 ac_cv_use_image='wxUSE_IMAGE=no'
8426 fi
a0b9e27f 8427
0046ff7c 8428else
a0b9e27f 8429
0046ff7c
VS
8430 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8438
8439fi
0046ff7c
VS
8440
8441
8442 eval "$ac_cv_use_image"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8448 echo "$ac_t""yes" 1>&6
0046ff7c 8449 else
a0b9e27f 8450 echo "$ac_t""no" 1>&6
0046ff7c 8451 fi
a0b9e27f 8452
0046ff7c 8453
5005acfe
VZ
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
2b5f62a0 8456echo "configure:8457: checking for --${enablestring:-enable}-gif" >&5
10f2d63a
VZ
8457 no_cache=0
8458 # Check whether --enable-gif or --disable-gif was given.
8459if test "${enable_gif+set}" = set; then
8460 enableval="$enable_gif"
a0b9e27f 8461
10f2d63a
VZ
8462 if test "$enableval" = yes; then
8463 ac_cv_use_gif='wxUSE_GIF=yes'
8464 else
8465 ac_cv_use_gif='wxUSE_GIF=no'
8466 fi
a0b9e27f 8467
10f2d63a 8468else
a0b9e27f 8469
10f2d63a
VZ
8470 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8478
8479fi
10f2d63a
VZ
8480
8481
8482 eval "$ac_cv_use_gif"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8488 echo "$ac_t""yes" 1>&6
10f2d63a 8489 else
a0b9e27f 8490 echo "$ac_t""no" 1>&6
10f2d63a 8491 fi
a0b9e27f 8492
10f2d63a 8493
5005acfe
VZ
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
2b5f62a0 8496echo "configure:8497: checking for --${enablestring:-enable}-pcx" >&5
10f2d63a
VZ
8497 no_cache=0
8498 # Check whether --enable-pcx or --disable-pcx was given.
8499if test "${enable_pcx+set}" = set; then
8500 enableval="$enable_pcx"
a0b9e27f 8501
10f2d63a
VZ
8502 if test "$enableval" = yes; then
8503 ac_cv_use_pcx='wxUSE_PCX=yes'
8504 else
8505 ac_cv_use_pcx='wxUSE_PCX=no'
8506 fi
a0b9e27f 8507
10f2d63a 8508else
a0b9e27f 8509
10f2d63a
VZ
8510 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8518
8519fi
10f2d63a
VZ
8520
8521
8522 eval "$ac_cv_use_pcx"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8528 echo "$ac_t""yes" 1>&6
10f2d63a 8529 else
a0b9e27f 8530 echo "$ac_t""no" 1>&6
10f2d63a 8531 fi
a0b9e27f 8532
10f2d63a 8533
5005acfe
VZ
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
2b5f62a0 8536echo "configure:8537: checking for --${enablestring:-enable}-iff" >&5
4b6b4dfc
RR
8537 no_cache=0
8538 # Check whether --enable-iff or --disable-iff was given.
8539if test "${enable_iff+set}" = set; then
8540 enableval="$enable_iff"
a0b9e27f 8541
4b6b4dfc
RR
8542 if test "$enableval" = yes; then
8543 ac_cv_use_iff='wxUSE_IFF=yes'
8544 else
8545 ac_cv_use_iff='wxUSE_IFF=no'
8546 fi
a0b9e27f 8547
4b6b4dfc 8548else
a0b9e27f 8549
4b6b4dfc
RR
8550 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8558
8559fi
4b6b4dfc
RR
8560
8561
8562 eval "$ac_cv_use_iff"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8568 echo "$ac_t""yes" 1>&6
4b6b4dfc 8569 else
a0b9e27f 8570 echo "$ac_t""no" 1>&6
4b6b4dfc 8571 fi
a0b9e27f 8572
4b6b4dfc 8573
5005acfe
VZ
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
2b5f62a0 8576echo "configure:8577: checking for --${enablestring:-enable}-pnm" >&5
10f2d63a
VZ
8577 no_cache=0
8578 # Check whether --enable-pnm or --disable-pnm was given.
8579if test "${enable_pnm+set}" = set; then
8580 enableval="$enable_pnm"
a0b9e27f 8581
10f2d63a
VZ
8582 if test "$enableval" = yes; then
8583 ac_cv_use_pnm='wxUSE_PNM=yes'
8584 else
8585 ac_cv_use_pnm='wxUSE_PNM=no'
8586 fi
a0b9e27f 8587
10f2d63a 8588else
a0b9e27f 8589
10f2d63a
VZ
8590 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8598
8599fi
10f2d63a
VZ
8600
8601
8602 eval "$ac_cv_use_pnm"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8608 echo "$ac_t""yes" 1>&6
10f2d63a 8609 else
a0b9e27f 8610 echo "$ac_t""no" 1>&6
10f2d63a 8611 fi
a0b9e27f 8612
10f2d63a 8613
5005acfe
VZ
8614 enablestring=
8615 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
2b5f62a0 8616echo "configure:8617: checking for --${enablestring:-enable}-xpm" >&5
0046ff7c 8617 no_cache=0
69d27ff7
MB
8618 # Check whether --enable-xpm or --disable-xpm was given.
8619if test "${enable_xpm+set}" = set; then
8620 enableval="$enable_xpm"
a0b9e27f 8621
0046ff7c 8622 if test "$enableval" = yes; then
69d27ff7 8623 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8624 else
69d27ff7 8625 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8626 fi
a0b9e27f 8627
0046ff7c 8628else
a0b9e27f 8629
0046ff7c
VS
8630 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
69d27ff7 8637 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8638
8639fi
0046ff7c
VS
8640
8641
69d27ff7 8642 eval "$ac_cv_use_xpm"
0046ff7c 8643 if test "$no_cache" != 1; then
69d27ff7 8644 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8645 fi
8646
8647 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8648 echo "$ac_t""yes" 1>&6
0046ff7c 8649 else
a0b9e27f 8650 echo "$ac_t""no" 1>&6
0046ff7c 8651 fi
a0b9e27f 8652
0046ff7c 8653
5005acfe
VZ
8654 enablestring=
8655 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
2b5f62a0 8656echo "configure:8657: checking for --${enablestring:-enable}-ico_cur" >&5
658974ae 8657 no_cache=0
c7206e64
VS
8658 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8659if test "${enable_ico_cur+set}" = set; then
8660 enableval="$enable_ico_cur"
a0b9e27f 8661
658974ae 8662 if test "$enableval" = yes; then
c7206e64 8663 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8664 else
c7206e64 8665 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8666 fi
a0b9e27f 8667
658974ae 8668else
a0b9e27f 8669
658974ae
VS
8670 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
c7206e64 8677 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8678
8679fi
658974ae
VS
8680
8681
c7206e64 8682 eval "$ac_cv_use_ico_cur"
658974ae 8683 if test "$no_cache" != 1; then
c7206e64 8684 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8685 fi
8686
8687 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8688 echo "$ac_t""yes" 1>&6
658974ae 8689 else
a0b9e27f 8690 echo "$ac_t""no" 1>&6
658974ae 8691 fi
a0b9e27f 8692
658974ae 8693
b12915c1
VZ
8694fi
8695
d558c907
VS
8696case "${host}" in
8697 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8698 PATH_IFS=';'
8699 LEX_STEM="lexyy"
d558c907
VS
8700 ;;
8701 *)
8702 PATH_IFS=':'
8703 LEX_STEM="lex.yy"
8704 ;;
8705esac
8706
8284b0c5
MB
8707
8708
10f2d63a
VZ
8709 echo "saving argument cache $wx_arg_cache_file"
8710 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8711
52127426 8712
8284b0c5 8713
a0b9e27f 8714echo $ac_n "checking for toolkit""... $ac_c" 1>&6
2b5f62a0 8715echo "configure:8716: checking for toolkit" >&5
10f2d63a
VZ
8716
8717if test "$wxUSE_GUI" = "yes"; then
8718
3a922bb4 8719 if test "$USE_BEOS" = 1; then
a0b9e27f 8720 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8721 fi
b12915c1 8722
3a922bb4
RL
8723 if test "$TOOLKIT_GIVEN" = 1; then
8724 for toolkit in `echo $ALL_TOOLKITS`; do
8725 var=wxUSE_$toolkit
8726 eval "value=\$${var}"
8727 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8728 done
10f2d63a 8729 else
3a922bb4
RL
8730 for toolkit in `echo $ALL_TOOLKITS`; do
8731 if test "$has_toolkit_in_cache" != 1; then
8732 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8733 else
8734 var=DEFAULT_wxUSE_$toolkit
8735 fi
8736 eval "wxUSE_$toolkit=\$${var}"
8737 done
10f2d63a 8738 fi
10f2d63a 8739
3a922bb4 8740 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8741 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8742
d558c907 8743 case "${host}" in
6fa882bd 8744 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8745 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8746 esac
10f2d63a 8747
3a922bb4
RL
8748 case "$NUM_TOOLKITS" in
8749 1)
8750 ;;
8751 0)
a0b9e27f 8752 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8753 ;;
8754 *)
a0b9e27f 8755 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8756 esac
10f2d63a 8757
3a922bb4
RL
8758 for toolkit in `echo $ALL_TOOLKITS`; do
8759 var=wxUSE_$toolkit
8760 eval "value=\$${var}"
8761 if test "x$value" != x; then
8762 cache_var=CACHE_$toolkit
8763 eval "cache=\$${cache_var}"
8764 if test "$cache" = 1; then
8765 echo "$var=$value" >> ${wx_arg_cache_file}
8766 fi
8767 if test "$value" = 1; then
8768 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8769 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8770 fi
8771 fi
8772 done
10f2d63a 8773else
a0b9e27f 8774 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8775fi
8776
43d99b6d
VS
8777wants_win32=0
8778doesnt_want_win32=0
17234b26
MB
8779case "${host}" in
8780 *-*-cygwin*)
8781 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8782 wants_win32=1
8783 else
8784 doesnt_want_win32=1
17234b26
MB
8785 fi
8786 ;;
8787 *-*-mingw*)
43d99b6d 8788 wants_win32=1
17234b26
MB
8789 ;;
8790esac
8791
43d99b6d 8792if test "$wants_win32" = 1 ; then
17234b26
MB
8793 USE_UNIX=0
8794 USE_WIN32=1
a0b9e27f 8795 cat >> confdefs.h <<\EOF
17234b26 8796#define __WIN32__ 1
a0b9e27f 8797EOF
17234b26 8798
a0b9e27f 8799 cat >> confdefs.h <<\EOF
17234b26 8800#define __WIN95__ 1
a0b9e27f 8801EOF
17234b26 8802
a0b9e27f 8803 cat >> confdefs.h <<\EOF
17234b26 8804#define __WINDOWS__ 1
a0b9e27f 8805EOF
17234b26 8806
a0b9e27f 8807 cat >> confdefs.h <<\EOF
17234b26 8808#define __GNUWIN32__ 1
a0b9e27f 8809EOF
17234b26 8810
a0b9e27f 8811 cat >> confdefs.h <<\EOF
17234b26 8812#define STRICT 1
a0b9e27f 8813EOF
17234b26 8814
a0b9e27f 8815 cat >> confdefs.h <<\EOF
17234b26 8816#define WINVER 0x0400
a0b9e27f 8817EOF
17234b26 8818
43d99b6d
VS
8819fi
8820if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8821 USE_UNIX=1
8822 USE_WIN32=0
8823fi
8824
8825if test "$USE_UNIX" = 1 ; then
8826 wxUSE_UNIX=yes
a0b9e27f 8827 cat >> confdefs.h <<\EOF
17234b26 8828#define __UNIX__ 1
a0b9e27f 8829EOF
17234b26
MB
8830
8831fi
8832
8284b0c5 8833
a0b9e27f 8834cat > confcache <<\EOF
10f2d63a
VZ
8835# This file is a shell script that caches the results of configure
8836# tests run on this system so they can be shared between configure
a0b9e27f
MB
8837# scripts and configure runs. It is not useful on other systems.
8838# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8839#
a0b9e27f
MB
8840# By default, configure uses ./config.cache as the cache file,
8841# creating it if it does not exist already. You can give configure
8842# the --cache-file=FILE option to use a different cache file; that is
8843# what configure does when it calls configure scripts in
8844# subdirectories, so they share the cache.
8845# Giving --cache-file=/dev/null disables caching, for debugging configure.
8846# config.status only pays attention to the cache file if you give it the
8847# --recheck option to rerun configure.
10f2d63a 8848#
a0b9e27f 8849EOF
10f2d63a
VZ
8850# The following way of writing the cache mishandles newlines in values,
8851# but we know of no workaround that is simple, portable, and efficient.
8852# So, don't put newlines in cache variables' values.
8853# Ultrix sh set writes to stderr and can't be redirected directly,
8854# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8855(set) 2>&1 |
8856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8857 *ac_space=\ *)
8858 # `set' does not quote correctly, so add quotes (double-quote substitution
8859 # turns \\\\ into \\, and sed turns \\ into \).
8860 sed -n \
8861 -e "s/'/'\\\\''/g" \
8862 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8863 ;;
8864 *)
8865 # `set' quotes correctly as required by POSIX, so do not add quotes.
8866 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8867 ;;
8868 esac >> confcache
8869if cmp -s $cache_file confcache; then
8870 :
8871else
10f2d63a 8872 if test -w $cache_file; then
a0b9e27f
MB
8873 echo "updating cache $cache_file"
8874 cat confcache > $cache_file
10f2d63a
VZ
8875 else
8876 echo "not updating unwritable cache $cache_file"
8877 fi
8878fi
8879rm -f confcache
8880
a0b9e27f 8881
e59890c3 8882if test "$build" != "$host" ; then
9d353d4a 8883 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8884 CC=$host_alias-gcc
8885 CXX=$host_alias-c++
8886 AR=$host_alias-ar
8887 RANLIB=$host_alias-ranlib
8888 DLLTOOL=$host_alias-dlltool
8889 RESCOMP=$host_alias-windres
8890 LD=$host_alias-ld
8891 NM=$host_alias-nm
8892 STRIP=$host_alias-strip
8893 else
a0b9e27f 8894 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8895 fi
10f2d63a
VZ
8896fi
8897
ec603395 8898CFLAGS=${CFLAGS:=}
a0b9e27f 8899# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8900set dummy gcc; ac_word=$2
a0b9e27f 8901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 8902echo "configure:8903: checking for $ac_word" >&5
a0b9e27f
MB
8903if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8905else
8906 if test -n "$CC"; then
8907 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8908else
a0b9e27f
MB
8909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8910 ac_dummy="$PATH"
8911 for ac_dir in $ac_dummy; do
8912 test -z "$ac_dir" && ac_dir=.
8913 if test -f $ac_dir/$ac_word; then
8914 ac_cv_prog_CC="gcc"
8915 break
8916 fi
8917 done
8918 IFS="$ac_save_ifs"
10f2d63a 8919fi
6232543b 8920fi
a0b9e27f 8921CC="$ac_cv_prog_CC"
6232543b 8922if test -n "$CC"; then
a0b9e27f 8923 echo "$ac_t""$CC" 1>&6
247f5006 8924else
a0b9e27f 8925 echo "$ac_t""no" 1>&6
247f5006
VZ
8926fi
8927
5c6fa7d2
RR
8928if test -z "$CC"; then
8929 # Extract the first word of "cc", so it can be a program name with args.
8930set dummy cc; ac_word=$2
a0b9e27f 8931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 8932echo "configure:8933: checking for $ac_word" >&5
a0b9e27f
MB
8933if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8935else
8936 if test -n "$CC"; then
8937 ac_cv_prog_CC="$CC" # Let the user override the test.
8938else
a0b9e27f 8939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8940 ac_prog_rejected=no
a0b9e27f
MB
8941 ac_dummy="$PATH"
8942 for ac_dir in $ac_dummy; do
8943 test -z "$ac_dir" && ac_dir=.
8944 if test -f $ac_dir/$ac_word; then
8945 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8946 ac_prog_rejected=yes
8947 continue
8948 fi
8949 ac_cv_prog_CC="cc"
8950 break
8951 fi
8952 done
8953 IFS="$ac_save_ifs"
328a083c
RR
8954if test $ac_prog_rejected = yes; then
8955 # We found a bogon in the path, so make sure we never use it.
8956 set dummy $ac_cv_prog_CC
8957 shift
a0b9e27f 8958 if test $# -gt 0; then
328a083c 8959 # We chose a different compiler from the bogus one.
1e487827
VS
8960 # However, it has the same basename, so the bogon will be chosen
8961 # first if we set CC to just the basename; use the full file name.
8962 shift
a0b9e27f 8963 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8964 shift
8965 ac_cv_prog_CC="$@"
703e0a69 8966 fi
1e487827
VS
8967fi
8968fi
8969fi
a0b9e27f 8970CC="$ac_cv_prog_CC"
1e487827 8971if test -n "$CC"; then
a0b9e27f 8972 echo "$ac_t""$CC" 1>&6
703e0a69 8973else
a0b9e27f 8974 echo "$ac_t""no" 1>&6
703e0a69 8975fi
1e487827 8976
a0b9e27f
MB
8977 if test -z "$CC"; then
8978 case "`uname -s`" in
8979 *win32* | *WIN32*)
8980 # Extract the first word of "cl", so it can be a program name with args.
8981set dummy cl; ac_word=$2
8982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 8983echo "configure:8984: checking for $ac_word" >&5
a0b9e27f
MB
8984if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8986else
8987 if test -n "$CC"; then
8988 ac_cv_prog_CC="$CC" # Let the user override the test.
8989else
a0b9e27f
MB
8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8991 ac_dummy="$PATH"
8992 for ac_dir in $ac_dummy; do
8993 test -z "$ac_dir" && ac_dir=.
8994 if test -f $ac_dir/$ac_word; then
8995 ac_cv_prog_CC="cl"
8996 break
8997 fi
8998 done
8999 IFS="$ac_save_ifs"
f09359cf
VS
9000fi
9001fi
a0b9e27f 9002CC="$ac_cv_prog_CC"
f09359cf 9003if test -n "$CC"; then
a0b9e27f 9004 echo "$ac_t""$CC" 1>&6
f09359cf 9005else
a0b9e27f 9006 echo "$ac_t""no" 1>&6
247f5006 9007fi
a0b9e27f
MB
9008 ;;
9009 esac
8284b0c5 9010 fi
a0b9e27f 9011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 9012fi
1e487827 9013
a0b9e27f 9014echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2b5f62a0 9015echo "configure:9016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 9016
a0b9e27f
MB
9017ac_ext=c
9018# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9019ac_cpp='$CPP $CPPFLAGS'
9020ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9021ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9022cross_compiling=$ac_cv_prog_cc_cross
f09359cf 9023
a0b9e27f 9024cat > conftest.$ac_ext << EOF
247f5006 9025
2b5f62a0 9026#line 9027 "configure"
a0b9e27f 9027#include "confdefs.h"
247f5006 9028
a0b9e27f
MB
9029main(){return(0);}
9030EOF
2b5f62a0 9031if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9032 ac_cv_prog_cc_works=yes
9033 # If we can't run a trivial program, we are probably using a cross compiler.
9034 if (./conftest; exit) 2>/dev/null; then
9035 ac_cv_prog_cc_cross=no
698dcdb6 9036 else
a0b9e27f 9037 ac_cv_prog_cc_cross=yes
698dcdb6 9038 fi
7b4a847f 9039else
a0b9e27f
MB
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 ac_cv_prog_cc_works=no
52127426 9043fi
a0b9e27f
MB
9044rm -fr conftest*
9045ac_ext=c
9046# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047ac_cpp='$CPP $CPPFLAGS'
9048ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9051
a0b9e27f
MB
9052echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9053if test $ac_cv_prog_cc_works = no; then
9054 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9055fi
9056echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2b5f62a0 9057echo "configure:9058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9058echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9059cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 9060
a0b9e27f 9061echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2b5f62a0 9062echo "configure:9063: checking whether we are using GNU C" >&5
a0b9e27f
MB
9063if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9065else
a0b9e27f
MB
9066 cat > conftest.c <<EOF
9067#ifdef __GNUC__
9068 yes;
8284b0c5 9069#endif
a0b9e27f 9070EOF
2b5f62a0 9071if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 9072 ac_cv_prog_gcc=yes
5c6fa7d2 9073else
a0b9e27f 9074 ac_cv_prog_gcc=no
8284b0c5
MB
9075fi
9076fi
1e487827 9077
a0b9e27f 9078echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 9079
a0b9e27f
MB
9080if test $ac_cv_prog_gcc = yes; then
9081 GCC=yes
9082else
9083 GCC=
9084fi
247f5006 9085
a0b9e27f
MB
9086ac_test_CFLAGS="${CFLAGS+set}"
9087ac_save_CFLAGS="$CFLAGS"
9088CFLAGS=
9089echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2b5f62a0 9090echo "configure:9091: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
9091if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 echo 'void f(){}' > conftest.c
9095if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
9096 ac_cv_prog_cc_g=yes
9097else
a0b9e27f 9098 ac_cv_prog_cc_g=no
10f2d63a 9099fi
a0b9e27f
MB
9100rm -f conftest*
9101
10f2d63a 9102fi
a0b9e27f
MB
9103
9104echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 9105if test "$ac_test_CFLAGS" = set; then
a0b9e27f 9106 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
9107elif test $ac_cv_prog_cc_g = yes; then
9108 if test "$GCC" = yes; then
10f2d63a
VZ
9109 CFLAGS="-g -O2"
9110 else
f09359cf 9111 CFLAGS="-g"
10f2d63a 9112 fi
5c0a20c3 9113else
f09359cf
VS
9114 if test "$GCC" = yes; then
9115 CFLAGS="-O2"
9116 else
9117 CFLAGS=
9118 fi
10f2d63a
VZ
9119fi
9120
9121
a0b9e27f 9122echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2b5f62a0 9123echo "configure:9124: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9124# On Suns, sometimes $CPP names a directory.
9125if test -n "$CPP" && test -d "$CPP"; then
9126 CPP=
9127fi
9128if test -z "$CPP"; then
a0b9e27f
MB
9129if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9131else
9132 # This must be in double quotes, not single quotes, because CPP may get
9133 # substituted into the Makefile and "${CC-cc}" will confuse make.
9134 CPP="${CC-cc} -E"
10f2d63a 9135 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9136 # not just through cpp.
9137 cat > conftest.$ac_ext <<EOF
2b5f62a0 9138#line 9139 "configure"
10f2d63a
VZ
9139#include "confdefs.h"
9140#include <assert.h>
a0b9e27f
MB
9141Syntax Error
9142EOF
9143ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9144{ (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9145ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9146if test -z "$ac_err"; then
10f2d63a
VZ
9147 :
9148else
a0b9e27f
MB
9149 echo "$ac_err" >&5
9150 echo "configure: failed program was:" >&5
10f2d63a 9151 cat conftest.$ac_ext >&5
a0b9e27f
MB
9152 rm -rf conftest*
9153 CPP="${CC-cc} -E -traditional-cpp"
9154 cat > conftest.$ac_ext <<EOF
2b5f62a0 9155#line 9156 "configure"
f09359cf 9156#include "confdefs.h"
a0b9e27f
MB
9157#include <assert.h>
9158Syntax Error
9159EOF
9160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9161{ (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163if test -z "$ac_err"; then
9164 :
247f5006 9165else
a0b9e27f
MB
9166 echo "$ac_err" >&5
9167 echo "configure: failed program was:" >&5
f09359cf 9168 cat conftest.$ac_ext >&5
a0b9e27f
MB
9169 rm -rf conftest*
9170 CPP="${CC-cc} -nologo -E"
9171 cat > conftest.$ac_ext <<EOF
2b5f62a0 9172#line 9173 "configure"
10f2d63a
VZ
9173#include "confdefs.h"
9174#include <assert.h>
a0b9e27f
MB
9175Syntax Error
9176EOF
9177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9178{ (eval echo configure:9179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9180if test -z "$ac_err"; then
10f2d63a
VZ
9181 :
9182else
a0b9e27f
MB
9183 echo "$ac_err" >&5
9184 echo "configure: failed program was:" >&5
10f2d63a 9185 cat conftest.$ac_ext >&5
a0b9e27f
MB
9186 rm -rf conftest*
9187 CPP=/lib/cpp
579d8138 9188fi
a0b9e27f 9189rm -f conftest*
52127426 9190fi
a0b9e27f 9191rm -f conftest*
8284b0c5 9192fi
a0b9e27f
MB
9193rm -f conftest*
9194 ac_cv_prog_CPP="$CPP"
9195fi
9196 CPP="$ac_cv_prog_CPP"
10f2d63a 9197else
a0b9e27f 9198 ac_cv_prog_CPP="$CPP"
10f2d63a 9199fi
a0b9e27f 9200echo "$ac_t""$CPP" 1>&6
10f2d63a 9201
a0b9e27f
MB
9202if test $ac_cv_prog_gcc = yes; then
9203 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2b5f62a0 9204echo "configure:9205: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9205if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9207else
9208 ac_pattern="Autoconf.*'x'"
a0b9e27f 9209 cat > conftest.$ac_ext <<EOF
2b5f62a0 9210#line 9211 "configure"
10f2d63a
VZ
9211#include "confdefs.h"
9212#include <sgtty.h>
9213Autoconf TIOCGETP
a0b9e27f 9214EOF
10f2d63a
VZ
9215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9217 rm -rf conftest*
10f2d63a
VZ
9218 ac_cv_prog_gcc_traditional=yes
9219else
a0b9e27f 9220 rm -rf conftest*
10f2d63a
VZ
9221 ac_cv_prog_gcc_traditional=no
9222fi
9223rm -f conftest*
9224
8284b0c5 9225
10f2d63a 9226 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9227 cat > conftest.$ac_ext <<EOF
2b5f62a0 9228#line 9229 "configure"
10f2d63a
VZ
9229#include "confdefs.h"
9230#include <termio.h>
9231Autoconf TCGETA
a0b9e27f 9232EOF
10f2d63a
VZ
9233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9235 rm -rf conftest*
10f2d63a
VZ
9236 ac_cv_prog_gcc_traditional=yes
9237fi
9238rm -f conftest*
9239
9240 fi
9241fi
a0b9e27f
MB
9242
9243echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9244 if test $ac_cv_prog_gcc_traditional = yes; then
9245 CC="$CC -traditional"
9246 fi
9247fi
9248
8284b0c5
MB
9249
9250
a0b9e27f
MB
9251ac_ext=C
9252# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9253ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9254ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9255ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9256cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9257
698dcdb6 9258
ec603395 9259CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9260for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9261do
9262# Extract the first word of "$ac_prog", so it can be a program name with args.
9263set dummy $ac_prog; ac_word=$2
9264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9265echo "configure:9266: checking for $ac_word" >&5
a0b9e27f
MB
9266if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9268else
9269 if test -n "$CXX"; then
9270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9271else
a0b9e27f
MB
9272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9273 ac_dummy="$PATH"
9274 for ac_dir in $ac_dummy; do
9275 test -z "$ac_dir" && ac_dir=.
9276 if test -f $ac_dir/$ac_word; then
9277 ac_cv_prog_CXX="$ac_prog"
9278 break
9279 fi
9280 done
9281 IFS="$ac_save_ifs"
10f2d63a
VZ
9282fi
9283fi
a0b9e27f 9284CXX="$ac_cv_prog_CXX"
10f2d63a 9285if test -n "$CXX"; then
a0b9e27f 9286 echo "$ac_t""$CXX" 1>&6
10f2d63a 9287else
a0b9e27f 9288 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9289fi
9290
a0b9e27f 9291test -n "$CXX" && break
10f2d63a 9292done
a0b9e27f 9293test -n "$CXX" || CXX="gcc"
f09359cf 9294
a0b9e27f
MB
9295
9296echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2b5f62a0 9297echo "configure:9298: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9298
9299ac_ext=C
9300# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301ac_cpp='$CXXCPP $CPPFLAGS'
9302ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304cross_compiling=$ac_cv_prog_cxx_cross
9305
9306cat > conftest.$ac_ext << EOF
9307
2b5f62a0 9308#line 9309 "configure"
a0b9e27f
MB
9309#include "confdefs.h"
9310
9311int main(){return(0);}
9312EOF
2b5f62a0 9313if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9314 ac_cv_prog_cxx_works=yes
9315 # If we can't run a trivial program, we are probably using a cross compiler.
9316 if (./conftest; exit) 2>/dev/null; then
9317 ac_cv_prog_cxx_cross=no
9318 else
9319 ac_cv_prog_cxx_cross=yes
9320 fi
8284b0c5 9321else
a0b9e27f
MB
9322 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 ac_cv_prog_cxx_works=no
8284b0c5 9325fi
a0b9e27f
MB
9326rm -fr conftest*
9327ac_ext=C
9328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9329ac_cpp='$CXXCPP $CPPFLAGS'
9330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9332cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9333
a0b9e27f
MB
9334echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9335if test $ac_cv_prog_cxx_works = no; then
9336 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9337fi
9338echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2b5f62a0 9339echo "configure:9340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9340echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9341cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9342
a0b9e27f 9343echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2b5f62a0 9344echo "configure:9345: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9345if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9346 echo $ac_n "(cached) $ac_c" 1>&6
9347else
9348 cat > conftest.C <<EOF
9349#ifdef __GNUC__
9350 yes;
10f2d63a 9351#endif
a0b9e27f 9352EOF
2b5f62a0 9353if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9354 ac_cv_prog_gxx=yes
9355else
9356 ac_cv_prog_gxx=no
9357fi
9358fi
10f2d63a 9359
a0b9e27f 9360echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9361
a0b9e27f
MB
9362if test $ac_cv_prog_gxx = yes; then
9363 GXX=yes
9364else
9365 GXX=
9366fi
f09359cf 9367
a0b9e27f
MB
9368ac_test_CXXFLAGS="${CXXFLAGS+set}"
9369ac_save_CXXFLAGS="$CXXFLAGS"
9370CXXFLAGS=
9371echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2b5f62a0 9372echo "configure:9373: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9373if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375else
9376 echo 'void f(){}' > conftest.cc
9377if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9378 ac_cv_prog_cxx_g=yes
9379else
a0b9e27f 9380 ac_cv_prog_cxx_g=no
10f2d63a 9381fi
a0b9e27f
MB
9382rm -f conftest*
9383
10f2d63a 9384fi
a0b9e27f
MB
9385
9386echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9387if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9388 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9389elif test $ac_cv_prog_cxx_g = yes; then
9390 if test "$GXX" = yes; then
10f2d63a
VZ
9391 CXXFLAGS="-g -O2"
9392 else
f09359cf 9393 CXXFLAGS="-g"
10f2d63a 9394 fi
5c0a20c3 9395else
f09359cf
VS
9396 if test "$GXX" = yes; then
9397 CXXFLAGS="-O2"
9398 else
9399 CXXFLAGS=
9400 fi
10f2d63a
VZ
9401fi
9402
9403
10f2d63a 9404ac_ext=c
a0b9e27f 9405# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9406ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9407ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9408ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9409cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9410
9411
a0b9e27f
MB
9412# Extract the first word of "ranlib", so it can be a program name with args.
9413set dummy ranlib; ac_word=$2
9414echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9415echo "configure:9416: checking for $ac_word" >&5
a0b9e27f
MB
9416if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9417 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9418else
9419 if test -n "$RANLIB"; then
9420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9421else
a0b9e27f
MB
9422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9423 ac_dummy="$PATH"
9424 for ac_dir in $ac_dummy; do
9425 test -z "$ac_dir" && ac_dir=.
9426 if test -f $ac_dir/$ac_word; then
9427 ac_cv_prog_RANLIB="ranlib"
9428 break
9429 fi
9430 done
9431 IFS="$ac_save_ifs"
9432 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9433fi
9434fi
a0b9e27f 9435RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9436if test -n "$RANLIB"; then
a0b9e27f 9437 echo "$ac_t""$RANLIB" 1>&6
328a083c 9438else
a0b9e27f 9439 echo "$ac_t""no" 1>&6
328a083c
RR
9440fi
9441
10f2d63a
VZ
9442
9443# Extract the first word of "ar", so it can be a program name with args.
9444set dummy ar; ac_word=$2
a0b9e27f 9445echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9446echo "configure:9447: checking for $ac_word" >&5
a0b9e27f
MB
9447if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9449else
9450 if test -n "$AR"; then
9451 ac_cv_prog_AR="$AR" # Let the user override the test.
9452else
a0b9e27f
MB
9453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9454 ac_dummy="$PATH"
9455 for ac_dir in $ac_dummy; do
9456 test -z "$ac_dir" && ac_dir=.
9457 if test -f $ac_dir/$ac_word; then
9458 ac_cv_prog_AR="ar"
9459 break
9460 fi
9461 done
9462 IFS="$ac_save_ifs"
10f2d63a
VZ
9463 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9464fi
9465fi
a0b9e27f 9466AR="$ac_cv_prog_AR"
10f2d63a 9467if test -n "$AR"; then
a0b9e27f 9468 echo "$ac_t""$AR" 1>&6
10f2d63a 9469else
a0b9e27f 9470 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9471fi
9472
8284b0c5 9473
6054113a 9474# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9475# so one script is as good as another. But avoid the broken or
9476# incompatible versions:
9477# SysV /etc/install, /usr/sbin/install
9478# SunOS /usr/etc/install
9479# IRIX /sbin/install
9480# AIX /bin/install
f09359cf 9481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9484# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9485echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2b5f62a0 9486echo "configure:9487: checking for a BSD compatible install" >&5
10f2d63a 9487if test -z "$INSTALL"; then
a0b9e27f
MB
9488if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9490else
9491 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9492 for ac_dir in $PATH; do
9493 # Account for people who put trailing slashes in PATH elements.
9494 case "$ac_dir/" in
9495 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9496 *)
9497 # OSF1 and SCO ODT 3.0 have their own names for install.
9498 # Don't use installbsd from OSF since it installs stuff as root
9499 # by default.
9500 for ac_prog in ginstall scoinst install; do
9501 if test -f $ac_dir/$ac_prog; then
9502 if test $ac_prog = install &&
9503 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9504 # AIX install. It has an incompatible calling convention.
9505 :
9506 else
9507 ac_cv_path_install="$ac_dir/$ac_prog -c"
9508 break 2
9509 fi
9510 fi
10f2d63a 9511 done
a0b9e27f
MB
9512 ;;
9513 esac
9514 done
9515 IFS="$ac_save_IFS"
10f2d63a
VZ
9516
9517fi
9518 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9519 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9520 else
9521 # As a last resort, use the slow shell script. We don't cache a
9522 # path for INSTALL within a source directory, because that will
9523 # break other packages using the cache if that directory is
9524 # removed, or if the path is relative.
a0b9e27f 9525 INSTALL="$ac_install_sh"
10f2d63a
VZ
9526 fi
9527fi
a0b9e27f 9528echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9529
9530# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9531# It thinks the first close brace ends the variable substitution.
9532test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9533
a0b9e27f 9534test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9535
10f2d63a
VZ
9536test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9537
8284b0c5 9538
1d1b75ac
VZ
9539case ${INSTALL} in
9540 /* ) # Absolute
9541 ;;
3bd8fb5f 9542 *)
1d1b75ac
VZ
9543 INSTALL=`pwd`/${INSTALL} ;;
9544esac
9545
8284b0c5 9546
6054113a
GD
9547case "${host}" in
9548
b5853384 9549 powerpc-*-darwin* )
eb99ae0b
GD
9550 INSTALL_PROGRAM="cp -fp"
9551 INSTALL_DATA="cp -fp"
6054113a
GD
9552 ;;
9553 *)
9554 ;;
d6853540 9555esac
698dcdb6 9556
10f2d63a
VZ
9557# Extract the first word of "strip", so it can be a program name with args.
9558set dummy strip; ac_word=$2
a0b9e27f 9559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9560echo "configure:9561: checking for $ac_word" >&5
a0b9e27f
MB
9561if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9563else
9564 if test -n "$STRIP"; then
9565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9566else
a0b9e27f
MB
9567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9568 ac_dummy="$PATH"
9569 for ac_dir in $ac_dummy; do
9570 test -z "$ac_dir" && ac_dir=.
9571 if test -f $ac_dir/$ac_word; then
9572 ac_cv_prog_STRIP="strip"
9573 break
9574 fi
9575 done
9576 IFS="$ac_save_ifs"
10f2d63a
VZ
9577 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9578fi
9579fi
a0b9e27f 9580STRIP="$ac_cv_prog_STRIP"
10f2d63a 9581if test -n "$STRIP"; then
a0b9e27f 9582 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9583else
a0b9e27f 9584 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9585fi
9586
5c6fa7d2 9587
a0b9e27f 9588echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
2b5f62a0 9589echo "configure:9590: checking if make is GNU make" >&5
a0b9e27f
MB
9590if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9592else
a0b9e27f 9593
414eab6d 9594 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9595 egrep -s GNU > /dev/null); then
414eab6d
VZ
9596 wx_cv_prog_makeisgnu="yes"
9597 else
9598 wx_cv_prog_makeisgnu="no"
9599 fi
9600
9601fi
a0b9e27f
MB
9602
9603echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9604
9605if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9606 IF_GNU_MAKE=""
9607else
9608 IF_GNU_MAKE="#"
9609fi
9610
8284b0c5
MB
9611
9612
414eab6d 9613if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9614echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
2b5f62a0 9615echo "configure:9616: checking if make supports VPATH" >&5
a0b9e27f
MB
9616if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9618else
a0b9e27f 9619
10f2d63a
VZ
9620cat - << EOF > confMake
9621check : file
9622 cp \$? \$@
9623 cp \$? final_file
9624EOF
9625
9626if test ! -d sub ; then
9627 mkdir sub
9628fi
9629echo dummy > sub/file
f6bcfd97 9630${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9631RESULT=$?
9632rm -f sub/file check final_file confMake
9633rmdir sub
9634if test "$RESULT" = 0; then
04e7a216 9635 wx_cv_prog_makevpath="yes"
10f2d63a 9636else
04e7a216
VZ
9637 wx_cv_prog_makevpath="no"
9638fi
9639
9640fi
a0b9e27f
MB
9641
9642echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9643
9644if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9645{ echo "configure: error:
5c6fa7d2
RR
9646You need a make-utility that is able to use the variable
9647VPATH correctly.
9648If your version of make does not support VPATH correctly,
9649please install GNU-make (possibly as gmake), and start
9650configure with the following command:
9651export MAKE=gmake; ./configure for sh-type shells
9652setenv MAKE gmake; ./configure for csh-type shells
9653Also please do remember to use gmake in this case every time
9654you are trying to compile.
a0b9e27f
MB
9655" 1>&2; exit 1; }
9656fi fi
10f2d63a
VZ
9657for ac_prog in 'bison -y' byacc
9658do
a0b9e27f 9659# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9660set dummy $ac_prog; ac_word=$2
a0b9e27f 9661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9662echo "configure:9663: checking for $ac_word" >&5
a0b9e27f
MB
9663if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9665else
9666 if test -n "$YACC"; then
9667 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9668else
a0b9e27f
MB
9669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9670 ac_dummy="$PATH"
9671 for ac_dir in $ac_dummy; do
9672 test -z "$ac_dir" && ac_dir=.
9673 if test -f $ac_dir/$ac_word; then
9674 ac_cv_prog_YACC="$ac_prog"
9675 break
9676 fi
9677 done
9678 IFS="$ac_save_ifs"
10f2d63a
VZ
9679fi
9680fi
a0b9e27f 9681YACC="$ac_cv_prog_YACC"
10f2d63a 9682if test -n "$YACC"; then
a0b9e27f 9683 echo "$ac_t""$YACC" 1>&6
10f2d63a 9684else
a0b9e27f 9685 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9686fi
9687
a0b9e27f 9688test -n "$YACC" && break
10f2d63a
VZ
9689done
9690test -n "$YACC" || YACC="yacc"
9691
8284b0c5 9692
a0b9e27f
MB
9693# Extract the first word of "flex", so it can be a program name with args.
9694set dummy flex; ac_word=$2
9695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2b5f62a0 9696echo "configure:9697: checking for $ac_word" >&5
a0b9e27f
MB
9697if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9699else
9700 if test -n "$LEX"; then
9701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9702else
a0b9e27f
MB
9703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9704 ac_dummy="$PATH"
9705 for ac_dir in $ac_dummy; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 ac_cv_prog_LEX="flex"
9709 break
9710 fi
9711 done
9712 IFS="$ac_save_ifs"
9713 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9714fi
9715fi
a0b9e27f 9716LEX="$ac_cv_prog_LEX"
10f2d63a 9717if test -n "$LEX"; then
a0b9e27f 9718 echo "$ac_t""$LEX" 1>&6
10f2d63a 9719else
a0b9e27f 9720 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9721fi
9722
9723if test -z "$LEXLIB"
9724then
a0b9e27f
MB
9725 case "$LEX" in
9726 flex*) ac_lib=fl ;;
9727 *) ac_lib=l ;;
9728 esac
9729 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2b5f62a0 9730echo "configure:9731: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9731ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734else
9735 ac_save_LIBS="$LIBS"
9736LIBS="-l$ac_lib $LIBS"
9737cat > conftest.$ac_ext <<EOF
2b5f62a0 9738#line 9739 "configure"
247f5006 9739#include "confdefs.h"
247f5006 9740/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9741/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9742 builtin and then its argument prototype would still apply. */
9743char yywrap();
10f2d63a 9744
a0b9e27f
MB
9745int main() {
9746yywrap()
9747; return 0; }
9748EOF
2b5f62a0 9749if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=yes"
9752else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9757fi
a0b9e27f
MB
9758rm -f conftest*
9759LIBS="$ac_save_LIBS"
8284b0c5 9760
10f2d63a 9761fi
a0b9e27f
MB
9762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 LEXLIB="-l$ac_lib"
8284b0c5 9765else
a0b9e27f 9766 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9767fi
9768
a0b9e27f 9769fi
10f2d63a
VZ
9770
9771
a0b9e27f 9772echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2b5f62a0 9773echo "configure:9774: checking whether ln -s works" >&5
a0b9e27f
MB
9774if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9776else
a0b9e27f
MB
9777 rm -f conftestdata
9778if ln -s X conftestdata 2>/dev/null
9779then
9780 rm -f conftestdata
9781 ac_cv_prog_LN_S="ln -s"
10f2d63a 9782else
a0b9e27f 9783 ac_cv_prog_LN_S=ln
10f2d63a 9784fi
a0b9e27f
MB
9785fi
9786LN_S="$ac_cv_prog_LN_S"
9787if test "$ac_cv_prog_LN_S" = "ln -s"; then
9788 echo "$ac_t""yes" 1>&6
10f2d63a 9789else
a0b9e27f 9790 echo "$ac_t""no" 1>&6
5c6fa7d2 9791fi
5c6fa7d2 9792
247f5006 9793
2b5f62a0
VZ
9794case "${host}" in
9795 *-pc-os2_emx | *-pc-os2-emx )
9796 LIBS="$LIBS -lstdcpp"
9797 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9798 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9799echo "configure:9800: checking for drand48 in -lcExt" >&5
9800ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9801if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803else
9804 ac_save_LIBS="$LIBS"
9805LIBS="-lcExt $LIBS"
9806cat > conftest.$ac_ext <<EOF
9807#line 9808 "configure"
9808#include "confdefs.h"
9809/* Override any gcc2 internal prototype to avoid an error. */
9810/* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812char drand48();
9813
9814int main() {
9815drand48()
9816; return 0; }
9817EOF
9818if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 rm -rf conftest*
9820 eval "ac_cv_lib_$ac_lib_var=yes"
9821else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -rf conftest*
9825 eval "ac_cv_lib_$ac_lib_var=no"
9826fi
9827rm -f conftest*
9828LIBS="$ac_save_LIBS"
9829
9830fi
9831if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 LIBS="$LIBS -lcExt"
9834else
9835 echo "$ac_t""no" 1>&6
9836fi
9837
9838 else
9839 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9840 fi
9841 ;;
9842esac
9843
a0b9e27f
MB
9844
9845if test "$wxUSE_MAC" != 1; then
9846 for ac_hdr in strings.h
9847do
9848ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 9850echo "configure:9851: checking for $ac_hdr" >&5
a0b9e27f
MB
9851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853else
9854 cat > conftest.$ac_ext <<EOF
2b5f62a0 9855#line 9856 "configure"
a0b9e27f
MB
9856#include "confdefs.h"
9857#include <$ac_hdr>
9858EOF
9859ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9860{ (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9861ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862if test -z "$ac_err"; then
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=yes"
9865else
9866 echo "$ac_err" >&5
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 eval "ac_cv_header_$ac_safe=no"
21d1c967 9871fi
247f5006 9872rm -f conftest*
19bc6aad 9873fi
a0b9e27f
MB
9874if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 cat >> confdefs.h <<EOF
9878#define $ac_tr_hdr 1
9879EOF
9880
247f5006 9881else
a0b9e27f 9882 echo "$ac_t""no" 1>&6
18dbb1f6 9883fi
a0b9e27f 9884done
247f5006 9885
90dd450c 9886fi
90dd450c 9887
a0b9e27f
MB
9888for ac_hdr in stdlib.h
9889do
9890ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 9892echo "configure:9893: checking for $ac_hdr" >&5
a0b9e27f
MB
9893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895else
9896 cat > conftest.$ac_ext <<EOF
2b5f62a0 9897#line 9898 "configure"
90dd450c 9898#include "confdefs.h"
a0b9e27f
MB
9899#include <$ac_hdr>
9900EOF
9901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9902{ (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904if test -z "$ac_err"; then
9905 rm -rf conftest*
9906 eval "ac_cv_header_$ac_safe=yes"
9907else
9908 echo "$ac_err" >&5
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 eval "ac_cv_header_$ac_safe=no"
9913fi
9914rm -f conftest*
9915fi
9916if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919 cat >> confdefs.h <<EOF
9920#define $ac_tr_hdr 1
9921EOF
9922
8284b0c5 9923else
a0b9e27f 9924 echo "$ac_t""no" 1>&6
21d1c967 9925fi
a0b9e27f
MB
9926done
9927
9928for ac_hdr in malloc.h
9929do
9930ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9931echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 9932echo "configure:9933: checking for $ac_hdr" >&5
a0b9e27f
MB
9933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935else
9936 cat > conftest.$ac_ext <<EOF
2b5f62a0 9937#line 9938 "configure"
a0b9e27f
MB
9938#include "confdefs.h"
9939#include <$ac_hdr>
9940EOF
9941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9942{ (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9944if test -z "$ac_err"; then
9945 rm -rf conftest*
9946 eval "ac_cv_header_$ac_safe=yes"
9947else
9948 echo "$ac_err" >&5
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 rm -rf conftest*
9952 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9953fi
a0b9e27f 9954rm -f conftest*
90dd450c 9955fi
a0b9e27f
MB
9956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9957 echo "$ac_t""yes" 1>&6
9958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9959 cat >> confdefs.h <<EOF
9960#define $ac_tr_hdr 1
9961EOF
9962
9963else
9964 echo "$ac_t""no" 1>&6
21d1c967 9965fi
a0b9e27f 9966done
247f5006 9967
a0b9e27f
MB
9968for ac_hdr in unistd.h
9969do
9970ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9971echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 9972echo "configure:9973: checking for $ac_hdr" >&5
a0b9e27f
MB
9973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975else
9976 cat > conftest.$ac_ext <<EOF
2b5f62a0 9977#line 9978 "configure"
a0b9e27f
MB
9978#include "confdefs.h"
9979#include <$ac_hdr>
9980EOF
9981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 9982{ (eval echo configure:9983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9984if test -z "$ac_err"; then
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=yes"
9987else
9988 echo "$ac_err" >&5
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 rm -rf conftest*
9992 eval "ac_cv_header_$ac_safe=no"
247f5006 9993fi
a0b9e27f
MB
9994rm -f conftest*
9995fi
9996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9999 cat >> confdefs.h <<EOF
10000#define $ac_tr_hdr 1
10001EOF
10002
10003else
10004 echo "$ac_t""no" 1>&6
10005fi
10006done
90dd450c 10007
a0b9e27f 10008for ac_hdr in wchar.h
21d1c967 10009do
a0b9e27f
MB
10010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 10012echo "configure:10013: checking for $ac_hdr" >&5
a0b9e27f
MB
10013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015else
10016 cat > conftest.$ac_ext <<EOF
2b5f62a0 10017#line 10018 "configure"
4f14bcd8 10018#include "confdefs.h"
a0b9e27f
MB
10019#include <$ac_hdr>
10020EOF
10021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 10022{ (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10024if test -z "$ac_err"; then
10025 rm -rf conftest*
10026 eval "ac_cv_header_$ac_safe=yes"
10027else
10028 echo "$ac_err" >&5
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 eval "ac_cv_header_$ac_safe=no"
10033fi
10034rm -f conftest*
10035fi
10036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10039 cat >> confdefs.h <<EOF
10040#define $ac_tr_hdr 1
10041EOF
10042
10043else
10044 echo "$ac_t""no" 1>&6
21d1c967
GD
10045fi
10046done
4f14bcd8 10047
5c6fa7d2 10048
a0b9e27f
MB
10049if test "$ac_cv_header_wchar_h" != "yes"; then
10050 for ac_hdr in wcstr.h
21d1c967 10051do
a0b9e27f
MB
10052ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10053echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 10054echo "configure:10055: checking for $ac_hdr" >&5
a0b9e27f
MB
10055if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 cat > conftest.$ac_ext <<EOF
2b5f62a0 10059#line 10060 "configure"
d4158b5d 10060#include "confdefs.h"
a0b9e27f
MB
10061#include <$ac_hdr>
10062EOF
10063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 10064{ (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10066if test -z "$ac_err"; then
10067 rm -rf conftest*
10068 eval "ac_cv_header_$ac_safe=yes"
10069else
10070 echo "$ac_err" >&5
10071 echo "configure: failed program was:" >&5
d4158b5d 10072 cat conftest.$ac_ext >&5
a0b9e27f
MB
10073 rm -rf conftest*
10074 eval "ac_cv_header_$ac_safe=no"
d4158b5d 10075fi
a0b9e27f 10076rm -f conftest*
21d1c967 10077fi
a0b9e27f
MB
10078if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10079 echo "$ac_t""yes" 1>&6
10080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10081 cat >> confdefs.h <<EOF
10082#define $ac_tr_hdr 1
10083EOF
10084
10085else
10086 echo "$ac_t""no" 1>&6
d4158b5d 10087fi
21d1c967 10088done
f6bcfd97 10089
90dd450c 10090fi
90dd450c 10091
a0b9e27f 10092for ac_hdr in fnmatch.h
21d1c967 10093do
a0b9e27f
MB
10094ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10095echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 10096echo "configure:10097: checking for $ac_hdr" >&5
a0b9e27f
MB
10097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10099else
10100 cat > conftest.$ac_ext <<EOF
2b5f62a0 10101#line 10102 "configure"
90dd450c 10102#include "confdefs.h"
a0b9e27f
MB
10103#include <$ac_hdr>
10104EOF
10105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 10106{ (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10108if test -z "$ac_err"; then
10109 rm -rf conftest*
10110 eval "ac_cv_header_$ac_safe=yes"
10111else
10112 echo "$ac_err" >&5
10113 echo "configure: failed program was:" >&5
3a922bb4 10114 cat conftest.$ac_ext >&5
a0b9e27f
MB
10115 rm -rf conftest*
10116 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10117fi
a0b9e27f 10118rm -f conftest*
4f14bcd8 10119fi
a0b9e27f
MB
10120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10121 echo "$ac_t""yes" 1>&6
10122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10123 cat >> confdefs.h <<EOF
10124#define $ac_tr_hdr 1
10125EOF
10126
10127else
10128 echo "$ac_t""no" 1>&6
21d1c967
GD
10129fi
10130done
90dd450c 10131
5c6fa7d2 10132
a0b9e27f
MB
10133if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10134 for ac_func in fnmatch
21d1c967 10135do
a0b9e27f 10136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2b5f62a0 10137echo "configure:10138: checking for $ac_func" >&5
a0b9e27f
MB
10138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10140else
a0b9e27f 10141 cat > conftest.$ac_ext <<EOF
2b5f62a0 10142#line 10143 "configure"
a0b9e27f
MB
10143#include "confdefs.h"
10144/* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146#include <assert.h>
10147/* Override any gcc2 internal prototype to avoid an error. */
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char $ac_func();
10151
10152int main() {
10153
10154/* The GNU C library defines this for functions which it implements
10155 to always fail with ENOSYS. Some functions are actually named
10156 something starting with __ and the normal name is an alias. */
10157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10158choke me
10159#else
10160$ac_func();
10161#endif
10162
10163; return 0; }
10164EOF
2b5f62a0 10165if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10166 rm -rf conftest*
10167 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10168else
a0b9e27f 10169 echo "configure: failed program was:" >&5
8284b0c5 10170 cat conftest.$ac_ext >&5
a0b9e27f
MB
10171 rm -rf conftest*
10172 eval "ac_cv_func_$ac_func=no"
8284b0c5 10173fi
a0b9e27f 10174rm -f conftest*
8284b0c5 10175fi
32832908 10176
a0b9e27f
MB
10177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10180 cat >> confdefs.h <<EOF
10181#define $ac_tr_func 1
10182EOF
10183
10184else
10185 echo "$ac_t""no" 1>&6
21d1c967
GD
10186fi
10187done
90dd450c 10188
a0b9e27f 10189fi
90dd450c 10190
a0b9e27f 10191for ac_hdr in langinfo.h
21d1c967 10192do
a0b9e27f
MB
10193ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10194echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 10195echo "configure:10196: checking for $ac_hdr" >&5
a0b9e27f
MB
10196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10198else
10199 cat > conftest.$ac_ext <<EOF
2b5f62a0 10200#line 10201 "configure"
247f5006 10201#include "confdefs.h"
a0b9e27f
MB
10202#include <$ac_hdr>
10203EOF
10204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 10205{ (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10207if test -z "$ac_err"; then
10208 rm -rf conftest*
10209 eval "ac_cv_header_$ac_safe=yes"
10210else
10211 echo "$ac_err" >&5
10212 echo "configure: failed program was:" >&5
90dd450c 10213 cat conftest.$ac_ext >&5
a0b9e27f
MB
10214 rm -rf conftest*
10215 eval "ac_cv_header_$ac_safe=no"
90dd450c 10216fi
a0b9e27f 10217rm -f conftest*
4f14bcd8 10218fi
a0b9e27f
MB
10219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10222 cat >> confdefs.h <<EOF
10223#define $ac_tr_hdr 1
10224EOF
10225
10226else
10227 echo "$ac_t""no" 1>&6
21d1c967
GD
10228fi
10229done
3a922bb4 10230
8284b0c5 10231
a0b9e27f
MB
10232if test "$wxUSE_GUI" = "yes"; then
10233 if test "$wxUSE_UNIX" = "yes"; then
10234 for ac_hdr in X11/XKBlib.h
21d1c967 10235do
a0b9e27f
MB
10236ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10237echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b5f62a0 10238echo "configure:10239: checking for $ac_hdr" >&5
a0b9e27f
MB
10239if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10241else
10242 cat > conftest.$ac_ext <<EOF
2b5f62a0 10243#line 10244 "configure"
90dd450c 10244#include "confdefs.h"
a0b9e27f
MB
10245#include <$ac_hdr>
10246EOF
10247ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b5f62a0 10248{ (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10249ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10250if test -z "$ac_err"; then
10251 rm -rf conftest*
10252 eval "ac_cv_header_$ac_safe=yes"
10253else
10254 echo "$ac_err" >&5
10255 echo "configure: failed program was:" >&5
90dd450c 10256 cat conftest.$ac_ext >&5
a0b9e27f
MB
10257 rm -rf conftest*
10258 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10259fi
a0b9e27f 10260rm -f conftest*
90dd450c 10261fi
a0b9e27f
MB
10262if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10265 cat >> confdefs.h <<EOF
10266#define $ac_tr_hdr 1
10267EOF
10268
10269else
10270 echo "$ac_t""no" 1>&6
247f5006 10271fi
247f5006
VZ
10272done
10273
a0b9e27f
MB
10274 fi
10275fi
247f5006 10276
247f5006 10277
a0b9e27f 10278echo $ac_n "checking for working const""... $ac_c" 1>&6
2b5f62a0 10279echo "configure:10280: checking for working const" >&5
a0b9e27f
MB
10280if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10282else
a0b9e27f 10283 cat > conftest.$ac_ext <<EOF
2b5f62a0 10284#line 10285 "configure"
a0b9e27f
MB
10285#include "confdefs.h"
10286
10287int main() {
10288
10289/* Ultrix mips cc rejects this. */
10290typedef int charset[2]; const charset x;
10291/* SunOS 4.1.1 cc rejects this. */
10292char const *const *ccp;
10293char **p;
10294/* NEC SVR4.0.2 mips cc rejects this. */
10295struct point {int x, y;};
10296static struct point const zero = {0,0};
10297/* AIX XL C 1.02.0.0 rejects this.
10298 It does not let you subtract one const X* pointer from another in an arm
10299 of an if-expression whose if-part is not a constant expression */
10300const char *g = "string";
10301ccp = &g + (g ? g-g : 0);
10302/* HPUX 7.0 cc rejects these. */
10303++ccp;
10304p = (char**) ccp;
10305ccp = (char const *const *) p;
10306{ /* SCO 3.2v4 cc rejects this. */
10307 char *t;
10308 char const *s = 0 ? (char *) 0 : (char const *) 0;
10309
10310 *t++ = 0;
10311}
10312{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10313 int x[] = {25, 17};
10314 const int *foo = &x[0];
10315 ++foo;
10316}
10317{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10318 typedef const int *iptr;
10319 iptr p = 0;
10320 ++p;
10321}
10322{ /* AIX XL C 1.02.0.0 rejects this saying
10323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10324 struct s { int j; const int *ap[3]; };
10325 struct s *b; b->j = 5;
10326}
10327{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10328 const int foo = 10;
10329}
10330
10331; return 0; }
10332EOF
2b5f62a0 10333if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10334 rm -rf conftest*
10335 ac_cv_c_const=yes
247f5006 10336else
a0b9e27f 10337 echo "configure: failed program was:" >&5
247f5006 10338 cat conftest.$ac_ext >&5
a0b9e27f
MB
10339 rm -rf conftest*
10340 ac_cv_c_const=no
247f5006 10341fi
a0b9e27f 10342rm -f conftest*
21d1c967 10343fi
247f5006 10344
a0b9e27f
MB
10345echo "$ac_t""$ac_cv_c_const" 1>&6
10346if test $ac_cv_c_const = no; then
10347 cat >> confdefs.h <<\EOF
10348#define const
10349EOF
10f2d63a 10350
90dd450c 10351fi
81809c07 10352
a0b9e27f 10353echo $ac_n "checking for inline""... $ac_c" 1>&6
2b5f62a0 10354echo "configure:10355: checking for inline" >&5
a0b9e27f
MB
10355if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10357else
a0b9e27f
MB
10358 ac_cv_c_inline=no
10359for ac_kw in inline __inline__ __inline; do
10360 cat > conftest.$ac_ext <<EOF
2b5f62a0 10361#line 10362 "configure"
a0b9e27f
MB
10362#include "confdefs.h"
10363
10364int main() {
10365} $ac_kw foo() {
10366; return 0; }
10367EOF
2b5f62a0 10368if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10369 rm -rf conftest*
10370 ac_cv_c_inline=$ac_kw; break
247f5006 10371else
a0b9e27f 10372 echo "configure: failed program was:" >&5
247f5006 10373 cat conftest.$ac_ext >&5
247f5006 10374fi
a0b9e27f
MB
10375rm -f conftest*
10376done
247f5006
VZ
10377
10378fi
10379
a0b9e27f
MB
10380echo "$ac_t""$ac_cv_c_inline" 1>&6
10381case "$ac_cv_c_inline" in
10382 inline | yes) ;;
10383 no) cat >> confdefs.h <<\EOF
10384#define inline
10385EOF
10386 ;;
10387 *) cat >> confdefs.h <<EOF
10388#define inline $ac_cv_c_inline
10389EOF
10390 ;;
10391esac
247f5006 10392
247f5006 10393
a0b9e27f 10394echo $ac_n "checking size of char""... $ac_c" 1>&6
2b5f62a0 10395echo "configure:10396: checking size of char" >&5
a0b9e27f
MB
10396if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398else
10399 if test "$cross_compiling" = yes; then
10400 ac_cv_sizeof_char=1
10401else
10402 cat > conftest.$ac_ext <<EOF
2b5f62a0 10403#line 10404 "configure"
4f14bcd8 10404#include "confdefs.h"
a0b9e27f 10405#include <stdio.h>
54ab82b3 10406#include <sys/types.h>
a0b9e27f 10407main()
247f5006 10408{
a0b9e27f
MB
10409 FILE *f=fopen("conftestval", "w");
10410 if (!f) exit(1);
10411 fprintf(f, "%d\n", sizeof(char));
10412 exit(0);
52127426 10413}
a0b9e27f 10414EOF
54ab82b3 10415if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10416then
10417 ac_cv_sizeof_char=`cat conftestval`
247f5006 10418else
a0b9e27f 10419 echo "configure: failed program was:" >&5
247f5006 10420 cat conftest.$ac_ext >&5
a0b9e27f
MB
10421 rm -fr conftest*
10422 ac_cv_sizeof_char=0
247f5006 10423fi
a0b9e27f 10424rm -fr conftest*
247f5006 10425fi
247f5006
VZ
10426
10427fi
a0b9e27f
MB
10428echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10429cat >> confdefs.h <<EOF
10430#define SIZEOF_CHAR $ac_cv_sizeof_char
10431EOF
247f5006 10432
247f5006 10433
a0b9e27f 10434echo $ac_n "checking size of short""... $ac_c" 1>&6
54ab82b3 10435echo "configure:10436: checking size of short" >&5
a0b9e27f
MB
10436if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10437 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10438else
a0b9e27f
MB
10439 if test "$cross_compiling" = yes; then
10440 ac_cv_sizeof_short=2
247f5006 10441else
a0b9e27f 10442 cat > conftest.$ac_ext <<EOF
54ab82b3 10443#line 10444 "configure"
a0b9e27f
MB
10444#include "confdefs.h"
10445#include <stdio.h>
54ab82b3 10446#include <sys/types.h>
a0b9e27f
MB
10447main()
10448{
10449 FILE *f=fopen("conftestval", "w");
10450 if (!f) exit(1);
10451 fprintf(f, "%d\n", sizeof(short));
10452 exit(0);
10453}
10454EOF
54ab82b3 10455if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10456then
10457 ac_cv_sizeof_short=`cat conftestval`
247f5006 10458else
a0b9e27f
MB
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 rm -fr conftest*
10462 ac_cv_sizeof_short=0
247f5006 10463fi
a0b9e27f 10464rm -fr conftest*
247f5006
VZ
10465fi
10466
247f5006 10467fi
a0b9e27f
MB
10468echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10469cat >> confdefs.h <<EOF
10470#define SIZEOF_SHORT $ac_cv_sizeof_short
10471EOF
247f5006
VZ
10472
10473
a0b9e27f 10474echo $ac_n "checking size of void *""... $ac_c" 1>&6
54ab82b3 10475echo "configure:10476: checking size of void *" >&5
a0b9e27f
MB
10476if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478else
10479 if test "$cross_compiling" = yes; then
10480 ac_cv_sizeof_void_p=4
247f5006 10481else
a0b9e27f 10482 cat > conftest.$ac_ext <<EOF
54ab82b3 10483#line 10484 "configure"
247f5006 10484#include "confdefs.h"
247f5006 10485#include <stdio.h>
54ab82b3 10486#include <sys/types.h>
a0b9e27f 10487main()
247f5006 10488{
a0b9e27f
MB
10489 FILE *f=fopen("conftestval", "w");
10490 if (!f) exit(1);
10491 fprintf(f, "%d\n", sizeof(void *));
10492 exit(0);
5c6fa7d2 10493}
a0b9e27f 10494EOF
54ab82b3 10495if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10496then
10497 ac_cv_sizeof_void_p=`cat conftestval`
10498else
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10501 rm -fr conftest*
10502 ac_cv_sizeof_void_p=0
10503fi
10504rm -fr conftest*
10505fi
8284b0c5 10506
247f5006 10507fi
a0b9e27f
MB
10508echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10509cat >> confdefs.h <<EOF
10510#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10511EOF
247f5006 10512
247f5006 10513
a0b9e27f 10514echo $ac_n "checking size of int""... $ac_c" 1>&6
54ab82b3 10515echo "configure:10516: checking size of int" >&5
a0b9e27f
MB
10516if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10517 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10518else
a0b9e27f
MB
10519 if test "$cross_compiling" = yes; then
10520 ac_cv_sizeof_int=4
10521else
10522 cat > conftest.$ac_ext <<EOF
54ab82b3 10523#line 10524 "configure"
247f5006 10524#include "confdefs.h"
a0b9e27f 10525#include <stdio.h>
54ab82b3 10526#include <sys/types.h>
a0b9e27f 10527main()
247f5006 10528{
a0b9e27f
MB
10529 FILE *f=fopen("conftestval", "w");
10530 if (!f) exit(1);
10531 fprintf(f, "%d\n", sizeof(int));
10532 exit(0);
247f5006 10533}
a0b9e27f 10534EOF
54ab82b3 10535if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10536then
10537 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10538else
a0b9e27f
MB
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541 rm -fr conftest*
10542 ac_cv_sizeof_int=0
21d1c967 10543fi
a0b9e27f 10544rm -fr conftest*
698dcdb6 10545fi
4f14bcd8 10546
21d1c967 10547fi
a0b9e27f
MB
10548echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10549cat >> confdefs.h <<EOF
10550#define SIZEOF_INT $ac_cv_sizeof_int
10551EOF
4f14bcd8 10552
5c6fa7d2 10553
a0b9e27f 10554echo $ac_n "checking size of long""... $ac_c" 1>&6
54ab82b3 10555echo "configure:10556: checking size of long" >&5
a0b9e27f
MB
10556if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10558else
247f5006 10559 if test "$cross_compiling" = yes; then
a0b9e27f 10560 ac_cv_sizeof_long=4
247f5006 10561else
a0b9e27f 10562 cat > conftest.$ac_ext <<EOF
54ab82b3 10563#line 10564 "configure"
247f5006 10564#include "confdefs.h"
a0b9e27f 10565#include <stdio.h>
54ab82b3 10566#include <sys/types.h>
a0b9e27f 10567main()
247f5006 10568{
a0b9e27f
MB
10569 FILE *f=fopen("conftestval", "w");
10570 if (!f) exit(1);
10571 fprintf(f, "%d\n", sizeof(long));
10572 exit(0);
247f5006 10573}
a0b9e27f 10574EOF
54ab82b3 10575if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10576then
10577 ac_cv_sizeof_long=`cat conftestval`
247f5006 10578else
a0b9e27f
MB
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 rm -fr conftest*
10582 ac_cv_sizeof_long=0
247f5006 10583fi
a0b9e27f 10584rm -fr conftest*
247f5006 10585fi
247f5006 10586
5c6fa7d2 10587fi
a0b9e27f
MB
10588echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10589cat >> confdefs.h <<EOF
10590#define SIZEOF_LONG $ac_cv_sizeof_long
10591EOF
247f5006 10592
a0b9e27f
MB
10593
10594
10595case "${host}" in
10596 arm-*-linux* )
10597 echo $ac_n "checking size of long long""... $ac_c" 1>&6
54ab82b3 10598echo "configure:10599: checking size of long long" >&5
a0b9e27f
MB
10599if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601else
10602 if test "$cross_compiling" = yes; then
10603 ac_cv_sizeof_long_long=8
10604else
10605 cat > conftest.$ac_ext <<EOF
54ab82b3 10606#line 10607 "configure"
247f5006 10607#include "confdefs.h"
a0b9e27f 10608#include <stdio.h>
54ab82b3 10609#include <sys/types.h>
a0b9e27f 10610main()
247f5006 10611{
a0b9e27f
MB
10612 FILE *f=fopen("conftestval", "w");
10613 if (!f) exit(1);
10614 fprintf(f, "%d\n", sizeof(long long));
10615 exit(0);
247f5006 10616}
a0b9e27f 10617EOF
54ab82b3 10618if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10619then
10620 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10621else
a0b9e27f
MB
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -fr conftest*
10625 ac_cv_sizeof_long_long=0
5c6fa7d2 10626fi
a0b9e27f 10627rm -fr conftest*
5c6fa7d2 10628fi
8284b0c5 10629
a0b9e27f
MB
10630fi
10631echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10632cat >> confdefs.h <<EOF
10633#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10634EOF
10635
10636
10637 ;;
4f57cf11 10638 *-hp-hpux* )
a0b9e27f 10639 echo $ac_n "checking size of long long""... $ac_c" 1>&6
54ab82b3 10640echo "configure:10641: checking size of long long" >&5
a0b9e27f
MB
10641if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10643else
10644 if test "$cross_compiling" = yes; then
a0b9e27f 10645 ac_cv_sizeof_long_long=0
8284b0c5 10646else
a0b9e27f 10647 cat > conftest.$ac_ext <<EOF
54ab82b3 10648#line 10649 "configure"
8284b0c5
MB
10649#include "confdefs.h"
10650#include <stdio.h>
54ab82b3 10651#include <sys/types.h>
a0b9e27f 10652main()
8284b0c5 10653{
a0b9e27f
MB
10654 FILE *f=fopen("conftestval", "w");
10655 if (!f) exit(1);
10656 fprintf(f, "%d\n", sizeof(long long));
10657 exit(0);
8284b0c5 10658}
a0b9e27f 10659EOF
54ab82b3 10660if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10661then
10662 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10663else
a0b9e27f
MB
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -fr conftest*
5c6fa7d2 10667 ac_cv_sizeof_long_long=0
52127426 10668fi
a0b9e27f
MB
10669rm -fr conftest*
10670fi
10671
4f57cf11
GD
10672fi
10673echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10674cat >> confdefs.h <<EOF
10675#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10676EOF
10677
10678
10679 if test "$ac_cv_sizeof_long_long" != "0"; then
10680 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10681 fi
10682 ;;
10683 * )
10684 echo $ac_n "checking size of long long""... $ac_c" 1>&6
54ab82b3 10685echo "configure:10686: checking size of long long" >&5
4f57cf11
GD
10686if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688else
10689 if test "$cross_compiling" = yes; then
10690 ac_cv_sizeof_long_long=0
10691else
10692 cat > conftest.$ac_ext <<EOF
54ab82b3 10693#line 10694 "configure"
4f57cf11
GD
10694#include "confdefs.h"
10695#include <stdio.h>
54ab82b3 10696#include <sys/types.h>
4f57cf11
GD
10697main()
10698{
10699 FILE *f=fopen("conftestval", "w");
10700 if (!f) exit(1);
10701 fprintf(f, "%d\n", sizeof(long long));
10702 exit(0);
10703}
10704EOF
54ab82b3 10705if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f57cf11
GD
10706then
10707 ac_cv_sizeof_long_long=`cat conftestval`
10708else
10709 echo "configure: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 rm -fr conftest*
10712 ac_cv_sizeof_long_long=0
10713fi
10714rm -fr conftest*
10715fi
10716
7b4a847f 10717fi
a0b9e27f
MB
10718echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10719cat >> confdefs.h <<EOF
21d1c967 10720#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10721EOF
9e691f46 10722
8284b0c5 10723
21d1c967
GD
10724esac
10725
a0b9e27f 10726echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
54ab82b3 10727echo "configure:10728: checking size of wchar_t" >&5
a0b9e27f
MB
10728if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10730else
a0b9e27f 10731
21d1c967 10732 if test "$cross_compiling" = yes; then
2b5f62a0
VZ
10733
10734 case "${host}" in
10735 *-pc-msdosdjgpp )
10736 wx_cv_sizeof_wchar_t=0
10737 ;;
10738 * )
10739 wx_cv_sizeof_wchar_t=4
10740 ;;
10741 esac
10742
a0b9e27f 10743
6f72b082 10744else
a0b9e27f 10745 cat > conftest.$ac_ext <<EOF
54ab82b3 10746#line 10747 "configure"
6f72b082 10747#include "confdefs.h"
21d1c967 10748
2b5f62a0
VZ
10749 /* DJGPP only has fake wchar_t: */
10750 #ifdef __DJGPP__
10751 # error "fake wchar_t"
10752 #endif
21d1c967
GD
10753 #ifdef HAVE_WCHAR_H
10754 # ifdef __CYGWIN__
10755 # include <stddef.h>
10756 # endif
10757 # include <wchar.h>
10758 #endif
10759 #ifdef HAVE_STDLIB_H
10760 # include <stdlib.h>
10761 #endif
10762 #include <stdio.h>
10763 int main()
10764 {
10765 FILE *f=fopen("conftestval", "w");
10766 if (!f) exit(1);
10767 fprintf(f, "%i", sizeof(wchar_t));
10768 exit(0);
10769 }
a0b9e27f
MB
10770
10771EOF
54ab82b3 10772if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10773then
21d1c967 10774 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10775else
a0b9e27f
MB
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10778 rm -fr conftest*
10779 wx_cv_sizeof_wchar_t=0
6f72b082 10780fi
a0b9e27f 10781rm -fr conftest*
6f72b082 10782fi
6f72b082 10783
a0b9e27f 10784
3f345b47
VZ
10785fi
10786
a0b9e27f
MB
10787echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10788
10789cat >> confdefs.h <<EOF
21d1c967 10790#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10791EOF
90dd450c 10792
8284b0c5 10793
21d1c967
GD
10794# Check whether --enable-largefile or --disable-largefile was given.
10795if test "${enable_largefile+set}" = set; then
10796 enableval="$enable_largefile"
a0b9e27f
MB
10797 :
10798fi
3f345b47 10799
21d1c967
GD
10800if test "$enable_largefile" != no; then
10801 wx_largefile=no
a0b9e27f
MB
10802
10803 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
54ab82b3 10804echo "configure:10805: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10805if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807else
10808
10809 cat > conftest.$ac_ext <<EOF
54ab82b3 10810#line 10811 "configure"
90dd450c 10811#include "confdefs.h"
21d1c967
GD
10812#define _FILE_OFFSET_BITS 64
10813 #include <sys/types.h>
a0b9e27f 10814int main() {
21d1c967
GD
10815typedef struct {
10816 unsigned int field: sizeof(off_t) == 8;
10817} wxlf;
10818
a0b9e27f
MB
10819; return 0; }
10820EOF
54ab82b3 10821if { (eval echo configure:10822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10822 rm -rf conftest*
21d1c967 10823 ac_cv_sys_file_offset_bits=64
f6bcfd97 10824else
a0b9e27f
MB
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 rm -rf conftest*
10828 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10829fi
a0b9e27f
MB
10830rm -f conftest*
10831
10832
247f5006 10833fi
a0b9e27f
MB
10834
10835echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10836
10837 if test "$ac_cv_sys_file_offset_bits" != no; then
10838 wx_largefile=yes
a0b9e27f 10839 cat >> confdefs.h <<EOF
21d1c967 10840#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10841EOF
21d1c967
GD
10842
10843 fi
10844
10845 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10846
10847 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
54ab82b3 10848echo "configure:10849: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10849if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851else
10852
10853 cat > conftest.$ac_ext <<EOF
54ab82b3 10854#line 10855 "configure"
f6bcfd97 10855#include "confdefs.h"
21d1c967
GD
10856#define _LARGE_FILES 1
10857 #include <sys/types.h>
a0b9e27f 10858int main() {
21d1c967
GD
10859typedef struct {
10860 unsigned int field: sizeof(off_t) == 8;
10861} wxlf;
10862
a0b9e27f
MB
10863; return 0; }
10864EOF
54ab82b3 10865if { (eval echo configure:10866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10866 rm -rf conftest*
21d1c967 10867 ac_cv_sys_large_files=1
f6bcfd97 10868else
a0b9e27f
MB
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 ac_cv_sys_large_files=no
5c6fa7d2 10873fi
a0b9e27f
MB
10874rm -f conftest*
10875
10876
247f5006 10877fi
a0b9e27f
MB
10878
10879echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10880
21d1c967
GD
10881 if test "$ac_cv_sys_large_files" != no; then
10882 wx_largefile=yes
a0b9e27f 10883 cat >> confdefs.h <<EOF
21d1c967 10884#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10885EOF
90dd450c 10886
90dd450c
VZ
10887 fi
10888
90dd450c 10889 fi
90dd450c 10890
a0b9e27f 10891 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
54ab82b3 10892echo "configure:10893: checking if large file support is available" >&5
21d1c967 10893 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10894 cat >> confdefs.h <<\EOF
21d1c967 10895#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10896EOF
90dd450c 10897
90dd450c 10898 fi
a0b9e27f 10899 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10900fi
90dd450c 10901
8284b0c5 10902
f02444d0 10903if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
10904 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10905 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 10906 else
e26c13cf 10907 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 10908 fi
e26c13cf 10909 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
10910fi
10911
a0b9e27f 10912echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
54ab82b3 10913echo "configure:10914: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10914if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10916else
21d1c967
GD
10917 ac_cv_c_bigendian=unknown
10918# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10919cat > conftest.$ac_ext <<EOF
54ab82b3 10920#line 10921 "configure"
90dd450c 10921#include "confdefs.h"
21d1c967
GD
10922#include <sys/types.h>
10923#include <sys/param.h>
a0b9e27f 10924int main() {
21d1c967
GD
10925
10926#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10927 bogus endian macros
10928#endif
a0b9e27f
MB
10929; return 0; }
10930EOF
54ab82b3 10931if { (eval echo configure:10932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10932 rm -rf conftest*
21d1c967 10933 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10934cat > conftest.$ac_ext <<EOF
54ab82b3 10935#line 10936 "configure"
90dd450c 10936#include "confdefs.h"
21d1c967
GD
10937#include <sys/types.h>
10938#include <sys/param.h>
a0b9e27f 10939int main() {
21d1c967
GD
10940
10941#if BYTE_ORDER != BIG_ENDIAN
10942 not big endian
10943#endif
a0b9e27f
MB
10944; return 0; }
10945EOF
54ab82b3 10946if { (eval echo configure:10947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10947 rm -rf conftest*
21d1c967 10948 ac_cv_c_bigendian=yes
3f345b47 10949else
a0b9e27f
MB
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 rm -rf conftest*
10953 ac_cv_c_bigendian=no
3f345b47 10954fi
a0b9e27f 10955rm -f conftest*
3f345b47 10956else
a0b9e27f
MB
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
3f345b47 10959fi
a0b9e27f 10960rm -f conftest*
21d1c967
GD
10961if test $ac_cv_c_bigendian = unknown; then
10962if test "$cross_compiling" = yes; then
10963 ac_cv_c_bigendian=unknown
10f2d63a 10964else
a0b9e27f 10965 cat > conftest.$ac_ext <<EOF
54ab82b3 10966#line 10967 "configure"
90dd450c 10967#include "confdefs.h"
21d1c967
GD
10968main () {
10969 /* Are we little or big endian? From Harbison&Steele. */
10970 union
10971 {
10972 long l;
10973 char c[sizeof (long)];
10974 } u;
10975 u.l = 1;
10976 exit (u.c[sizeof (long) - 1] == 1);
10977}
a0b9e27f 10978EOF
54ab82b3 10979if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10980then
21d1c967 10981 ac_cv_c_bigendian=no
3f345b47 10982else
a0b9e27f
MB
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 rm -fr conftest*
10986 ac_cv_c_bigendian=yes
247f5006 10987fi
a0b9e27f 10988rm -fr conftest*
247f5006 10989fi
a0b9e27f 10990
3f345b47 10991fi
8168de4c 10992fi
a0b9e27f
MB
10993
10994echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10995if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10996 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
10997fi
10998if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10999 cat >> confdefs.h <<\EOF
247f5006 11000#define WORDS_BIGENDIAN 1
a0b9e27f 11001EOF
247f5006
VZ
11002
11003fi
11004
11005
a0b9e27f 11006echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
54ab82b3 11007echo "configure:11008: checking how to run the C++ preprocessor" >&5
247f5006 11008if test -z "$CXXCPP"; then
a0b9e27f
MB
11009if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11011else
a0b9e27f
MB
11012 ac_ext=C
11013# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11014ac_cpp='$CXXCPP $CPPFLAGS'
11015ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017cross_compiling=$ac_cv_prog_cxx_cross
11018 CXXCPP="${CXX-g++} -E"
11019 cat > conftest.$ac_ext <<EOF
54ab82b3 11020#line 11021 "configure"
5c6fa7d2 11021#include "confdefs.h"
a0b9e27f
MB
11022#include <stdlib.h>
11023EOF
11024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 11025{ (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027if test -z "$ac_err"; then
21d1c967 11028 :
698dcdb6 11029else
a0b9e27f
MB
11030 echo "$ac_err" >&5
11031 echo "configure: failed program was:" >&5
698dcdb6 11032 cat conftest.$ac_ext >&5
a0b9e27f
MB
11033 rm -rf conftest*
11034 CXXCPP=/lib/cpp
247f5006 11035fi
a0b9e27f
MB
11036rm -f conftest*
11037 ac_cv_prog_CXXCPP="$CXXCPP"
11038ac_ext=C
11039# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11040ac_cpp='$CXXCPP $CPPFLAGS'
11041ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11042ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11043cross_compiling=$ac_cv_prog_cxx_cross
328a083c 11044fi
90dd450c 11045fi
a0b9e27f
MB
11046CXXCPP="$ac_cv_prog_CXXCPP"
11047echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 11048
1725144d 11049
21d1c967 11050 if test "$cross_compiling" = "yes"; then
a0b9e27f 11051 cat >> confdefs.h <<\EOF
21d1c967 11052#define wxUSE_IOSTREAMH 1
a0b9e27f 11053EOF
ab9b9eab 11054
21d1c967 11055 else
a0b9e27f
MB
11056
11057 ac_ext=C
11058# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11059ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11060ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11061ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11062cross_compiling=$ac_cv_prog_cxx_cross
52127426 11063
247f5006 11064
a0b9e27f 11065 for ac_hdr in iostream
21d1c967 11066do
a0b9e27f
MB
11067ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11068echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 11069echo "configure:11070: checking for $ac_hdr" >&5
a0b9e27f
MB
11070if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11072else
11073 cat > conftest.$ac_ext <<EOF
54ab82b3 11074#line 11075 "configure"
ab9b9eab 11075#include "confdefs.h"
a0b9e27f
MB
11076#include <$ac_hdr>
11077EOF
11078ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 11079{ (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11080ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11081if test -z "$ac_err"; then
11082 rm -rf conftest*
11083 eval "ac_cv_header_$ac_safe=yes"
11084else
11085 echo "$ac_err" >&5
11086 echo "configure: failed program was:" >&5
ab9b9eab 11087 cat conftest.$ac_ext >&5
a0b9e27f
MB
11088 rm -rf conftest*
11089 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 11090fi
a0b9e27f 11091rm -f conftest*
90dd450c 11092fi
a0b9e27f
MB
11093if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11094 echo "$ac_t""yes" 1>&6
11095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11096 cat >> confdefs.h <<EOF
11097#define $ac_tr_hdr 1
11098EOF
11099
11100else
11101 echo "$ac_t""no" 1>&6
90dd450c 11102fi
21d1c967 11103done
10f2d63a 11104
8284b0c5 11105
21d1c967
GD
11106 if test "$ac_cv_header_iostream" = "yes" ; then
11107 :
11108 else
a0b9e27f 11109 cat >> confdefs.h <<\EOF
21d1c967 11110#define wxUSE_IOSTREAMH 1
a0b9e27f 11111EOF
788deba1 11112
90dd450c 11113 fi
ab9b9eab 11114
21d1c967 11115 ac_ext=c
a0b9e27f 11116# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11117ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11118ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 11121
21d1c967 11122 fi
ab9b9eab 11123
52127426 11124
8284b0c5 11125
a0b9e27f 11126 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
54ab82b3 11127echo "configure:11128: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
11128if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11130else
a0b9e27f
MB
11131
11132
11133 ac_ext=C
11134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11135ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 11139
8284b0c5 11140
a0b9e27f 11141 cat > conftest.$ac_ext <<EOF
54ab82b3 11142#line 11143 "configure"
ab9b9eab 11143#include "confdefs.h"
21d1c967 11144
a0b9e27f
MB
11145
11146int main() {
21d1c967
GD
11147
11148 bool b = true;
11149
11150 return 0;
a0b9e27f
MB
11151
11152; return 0; }
11153EOF
54ab82b3 11154if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11155 rm -rf conftest*
11156
21d1c967 11157 wx_cv_cpp_bool=yes
a0b9e27f 11158
698dcdb6 11159else
a0b9e27f
MB
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11162 rm -rf conftest*
11163
21d1c967 11164 wx_cv_cpp_bool=no
a0b9e27f
MB
11165
11166
698dcdb6 11167fi
a0b9e27f 11168rm -f conftest*
21d1c967
GD
11169
11170 ac_ext=c
a0b9e27f 11171# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 11172ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11173ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11174ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11175cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11176
a0b9e27f 11177
247f5006 11178fi
a0b9e27f
MB
11179
11180echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
11181
11182 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 11183 cat >> confdefs.h <<\EOF
21d1c967 11184#define HAVE_BOOL 1
a0b9e27f 11185EOF
ab9b9eab 11186
21d1c967
GD
11187 fi
11188
52127426 11189
8284b0c5 11190
a0b9e27f 11191 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
54ab82b3 11192echo "configure:11193: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
11193if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11195else
a0b9e27f
MB
11196
11197
11198 ac_ext=C
11199# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 11200ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
11201ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11202ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11203cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 11204
8284b0c5 11205
a0b9e27f 11206 cat > conftest.$ac_ext <<EOF
54ab82b3 11207#line 11208 "configure"
986ecc86
VZ
11208#include "confdefs.h"
11209
11210 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
11211
11212int main() {
986ecc86
VZ
11213
11214 return 0;
a0b9e27f
MB
11215
11216; return 0; }
11217EOF
54ab82b3 11218if { (eval echo configure:11219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11219 rm -rf conftest*
11220
11221 cat > conftest.$ac_ext <<EOF
54ab82b3 11222#line 11223 "configure"
986ecc86
VZ
11223#include "confdefs.h"
11224
11225 class Foo { public: explicit Foo(int) {} };
11226 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11227
11228int main() {
986ecc86
VZ
11229
11230 TakeFoo(17);
11231 return 0;
a0b9e27f
MB
11232
11233; return 0; }
11234EOF
54ab82b3 11235if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11236 rm -rf conftest*
986ecc86
VZ
11237 wx_cv_explicit=no
11238else
a0b9e27f
MB
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 rm -rf conftest*
11242 wx_cv_explicit=yes
11243
986ecc86 11244fi
a0b9e27f
MB
11245rm -f conftest*
11246
986ecc86 11247else
a0b9e27f
MB
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 wx_cv_explicit=no
11252
986ecc86 11253fi
a0b9e27f 11254rm -f conftest*
986ecc86
VZ
11255
11256 ac_ext=c
a0b9e27f 11257# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11258ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11259ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11262
a0b9e27f 11263
247f5006 11264fi
a0b9e27f
MB
11265
11266echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11267
11268 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11269 cat >> confdefs.h <<\EOF
986ecc86 11270#define HAVE_EXPLICIT 1
a0b9e27f 11271EOF
986ecc86
VZ
11272
11273 fi
11274
8284b0c5
MB
11275
11276
21d1c967
GD
11277SEARCH_INCLUDE="\
11278 /usr/local/include \
11279 \
11280 /usr/Motif-1.2/include \
11281 /usr/Motif-2.1/include \
11282 \
11283 /usr/include/Motif1.2 \
11284 /opt/xpm/include/X11 \
11285 /opt/GBxpm/include/ \
11286 /opt/GBxpm/X11/include/ \
11287 \
11288 /usr/Motif1.2/include \
11289 /usr/dt/include \
11290 /usr/openwin/include \
11291 \
11292 /usr/include/Xm \
11293 \
11294 /usr/X11R6/include \
11295 /usr/X11R6.4/include \
11296 /usr/X11R5/include \
11297 /usr/X11R4/include \
11298 \
11299 /usr/include/X11R6 \
11300 /usr/include/X11R5 \
11301 /usr/include/X11R4 \
11302 \
11303 /usr/local/X11R6/include \
11304 /usr/local/X11R5/include \
11305 /usr/local/X11R4/include \
11306 \
11307 /usr/local/include/X11R6 \
11308 /usr/local/include/X11R5 \
11309 /usr/local/include/X11R4 \
11310 \
11311 /usr/X11/include \
11312 /usr/include/X11 \
11313 /usr/local/X11/include \
11314 /usr/local/include/X11 \
11315 \
11316 /usr/X386/include \
11317 /usr/x386/include \
11318 /usr/XFree86/include/X11 \
11319 \
11320 X:/XFree86/include \
11321 X:/XFree86/include/X11 \
11322 \
11323 /usr/include/gtk \
11324 /usr/local/include/gtk \
11325 /usr/include/glib \
11326 /usr/local/include/glib \
11327 \
11328 /usr/include/qt \
11329 /usr/local/include/qt \
11330 \
11331 /usr/include/windows \
11332 /usr/include/wine \
11333 /usr/local/include/wine \
11334 \
11335 /usr/unsupported/include \
11336 /usr/athena/include \
11337 /usr/local/x11r5/include \
11338 /usr/lpp/Xamples/include \
11339 \
2b5f62a0 11340 /usr/openwin/share/include"
21d1c967
GD
11341
11342SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11343
8284b0c5 11344
a0b9e27f 11345cat > confcache <<\EOF
21d1c967
GD
11346# This file is a shell script that caches the results of configure
11347# tests run on this system so they can be shared between configure
a0b9e27f
MB
11348# scripts and configure runs. It is not useful on other systems.
11349# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11350#
a0b9e27f
MB
11351# By default, configure uses ./config.cache as the cache file,
11352# creating it if it does not exist already. You can give configure
11353# the --cache-file=FILE option to use a different cache file; that is
11354# what configure does when it calls configure scripts in
11355# subdirectories, so they share the cache.
11356# Giving --cache-file=/dev/null disables caching, for debugging configure.
11357# config.status only pays attention to the cache file if you give it the
11358# --recheck option to rerun configure.
21d1c967 11359#
a0b9e27f 11360EOF
21d1c967
GD
11361# The following way of writing the cache mishandles newlines in values,
11362# but we know of no workaround that is simple, portable, and efficient.
11363# So, don't put newlines in cache variables' values.
11364# Ultrix sh set writes to stderr and can't be redirected directly,
11365# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11366(set) 2>&1 |
11367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11368 *ac_space=\ *)
11369 # `set' does not quote correctly, so add quotes (double-quote substitution
11370 # turns \\\\ into \\, and sed turns \\ into \).
11371 sed -n \
11372 -e "s/'/'\\\\''/g" \
11373 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11374 ;;
11375 *)
11376 # `set' quotes correctly as required by POSIX, so do not add quotes.
11377 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11378 ;;
11379 esac >> confcache
11380if cmp -s $cache_file confcache; then
11381 :
11382else
21d1c967 11383 if test -w $cache_file; then
a0b9e27f
MB
11384 echo "updating cache $cache_file"
11385 cat confcache > $cache_file
21d1c967
GD
11386 else
11387 echo "not updating unwritable cache $cache_file"
11388 fi
ab9b9eab 11389fi
21d1c967 11390rm -f confcache
ab9b9eab 11391
247f5006 11392
a0b9e27f
MB
11393if test "$USE_LINUX" = 1; then
11394 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
54ab82b3 11395echo "configure:11396: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11396if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11398else
11399
11400 cat > conftest.$ac_ext <<EOF
54ab82b3 11401#line 11402 "configure"
ab9b9eab 11402#include "confdefs.h"
21d1c967 11403#include <features.h>
a0b9e27f 11404int main() {
ab9b9eab 11405
21d1c967
GD
11406 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11407 #error not glibc2.1
11408 #endif
a0b9e27f
MB
11409
11410; return 0; }
11411EOF
54ab82b3 11412if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11413 rm -rf conftest*
11414
21d1c967 11415 wx_cv_lib_glibc21=yes
a0b9e27f 11416
698dcdb6 11417else
a0b9e27f
MB
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11420 rm -rf conftest*
11421
21d1c967 11422 wx_cv_lib_glibc21=no
a0b9e27f
MB
11423
11424
5c6fa7d2 11425fi
a0b9e27f
MB
11426rm -f conftest*
11427
247f5006 11428fi
a0b9e27f
MB
11429
11430echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11431 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11432 cat >> confdefs.h <<\EOF
21d1c967 11433#define wxHAVE_GLIBC2 1
a0b9e27f 11434EOF
1e487827 11435
90dd450c 11436 fi
ab9b9eab
VZ
11437fi
11438
5c0a20c3
VZ
11439if test "x$wx_cv_lib_glibc21" = "xyes"; then
11440 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11441 cat >> confdefs.h <<\EOF
5c0a20c3 11442#define _GNU_SOURCE 1
a0b9e27f 11443EOF
5c0a20c3
VZ
11444
11445 fi
11446fi
11447
8284b0c5
MB
11448
11449
21d1c967
GD
11450REGEX_INCLUDE=
11451if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11452 cat >> confdefs.h <<\EOF
21d1c967 11453#define wxUSE_REGEX 1
a0b9e27f 11454EOF
698dcdb6 11455
8284b0c5 11456
21d1c967 11457 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11458 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11459echo $ac_n "checking for regex.h""... $ac_c" 1>&6
54ab82b3 11460echo "configure:11461: checking for regex.h" >&5
a0b9e27f
MB
11461if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462 echo $ac_n "(cached) $ac_c" 1>&6
11463else
11464 cat > conftest.$ac_ext <<EOF
54ab82b3 11465#line 11466 "configure"
247f5006
VZ
11466#include "confdefs.h"
11467#include <regex.h>
a0b9e27f
MB
11468EOF
11469ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 11470{ (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11471ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472if test -z "$ac_err"; then
11473 rm -rf conftest*
11474 eval "ac_cv_header_$ac_safe=yes"
11475else
11476 echo "$ac_err" >&5
11477 echo "configure: failed program was:" >&5
21d1c967 11478 cat conftest.$ac_ext >&5
a0b9e27f
MB
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=no"
21d1c967 11481fi
a0b9e27f 11482rm -f conftest*
698dcdb6 11483fi
a0b9e27f
MB
11484if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 for ac_func in regcomp
21d1c967 11487do
a0b9e27f 11488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 11489echo "configure:11490: checking for $ac_func" >&5
a0b9e27f
MB
11490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11492else
a0b9e27f 11493 cat > conftest.$ac_ext <<EOF
54ab82b3 11494#line 11495 "configure"
a0b9e27f
MB
11495#include "confdefs.h"
11496/* System header to define __stub macros and hopefully few prototypes,
11497 which can conflict with char $ac_func(); below. */
21d1c967
GD
11498#include <assert.h>
11499/* Override any gcc2 internal prototype to avoid an error. */
11500/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11501 builtin and then its argument prototype would still apply. */
11502char $ac_func();
11503
11504int main() {
11505
21d1c967
GD
11506/* The GNU C library defines this for functions which it implements
11507 to always fail with ENOSYS. Some functions are actually named
11508 something starting with __ and the normal name is an alias. */
11509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11510choke me
11511#else
a0b9e27f 11512$ac_func();
21d1c967 11513#endif
90dd450c 11514
a0b9e27f
MB
11515; return 0; }
11516EOF
54ab82b3 11517if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11518 rm -rf conftest*
11519 eval "ac_cv_func_$ac_func=yes"
11520else
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=no"
11525fi
11526rm -f conftest*
11527fi
5c6fa7d2 11528
a0b9e27f
MB
11529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11532 cat >> confdefs.h <<EOF
11533#define $ac_tr_func 1
11534EOF
11535
11536else
11537 echo "$ac_t""no" 1>&6
698dcdb6 11538fi
21d1c967
GD
11539done
11540
a0b9e27f
MB
11541else
11542 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11543fi
11544
8284b0c5 11545
21d1c967
GD
11546 if test "x$ac_cv_func_regcomp" != "xyes"; then
11547 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11548 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11549 else
a0b9e27f 11550 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11551 wxUSE_REGEX=builtin
11552 fi
11553 else
11554 wxUSE_REGEX=sys
11555 fi
ab9b9eab 11556 fi
90dd450c 11557
21d1c967
GD
11558 if test "$wxUSE_REGEX" = "builtin" ; then
11559 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11560 fi
21d1c967 11561fi
90dd450c 11562
8284b0c5 11563
21d1c967
GD
11564ZLIB_INCLUDE=
11565ZLIB_LINK=
11566if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11567 cat >> confdefs.h <<\EOF
21d1c967 11568#define wxUSE_ZLIB 1
a0b9e27f 11569EOF
21d1c967 11570
8284b0c5 11571
21d1c967 11572 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
11573 if test "$USE_DARWIN" = 1; then
11574 system_zlib_h_ok="yes"
11575 else
11576 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
54ab82b3 11577echo "configure:11578: checking for zlib.h >= 1.1.4" >&5
d643b80e
VZ
11578if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580else
11581 if test "$cross_compiling" = yes; then
d775acfa 11582 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
a0b9e27f 11583echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
54ab82b3 11584echo "configure:11585: checking for zlib.h" >&5
a0b9e27f
MB
11585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11587else
11588 cat > conftest.$ac_ext <<EOF
54ab82b3 11589#line 11590 "configure"
ab9b9eab 11590#include "confdefs.h"
21d1c967 11591#include <zlib.h>
a0b9e27f
MB
11592EOF
11593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 11594{ (eval echo configure:11595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11596if test -z "$ac_err"; then
11597 rm -rf conftest*
11598 eval "ac_cv_header_$ac_safe=yes"
11599else
11600 echo "$ac_err" >&5
11601 echo "configure: failed program was:" >&5
698dcdb6 11602 cat conftest.$ac_ext >&5
a0b9e27f
MB
11603 rm -rf conftest*
11604 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11605fi
a0b9e27f 11606rm -f conftest*
ab9b9eab 11607fi
a0b9e27f
MB
11608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11609 echo "$ac_t""yes" 1>&6
d643b80e
VZ
11610 :
11611else
11612 echo "$ac_t""no" 1>&6
11613fi
11614
d775acfa 11615
d643b80e
VZ
11616else
11617 cat > conftest.$ac_ext <<EOF
54ab82b3 11618#line 11619 "configure"
d643b80e
VZ
11619#include "confdefs.h"
11620
d775acfa
VZ
11621 #include <zlib.h>
11622 #include <stdio.h>
d643b80e 11623
d775acfa
VZ
11624
11625 int main()
11626 {
11627 FILE *f=fopen("conftestval", "w");
11628 if (!f) exit(1);
11629 fprintf(f, "%s",
11630 ZLIB_VERSION[0] == '1' &&
11631 (ZLIB_VERSION[2] > '1' ||
11632 (ZLIB_VERSION[2] == '1' &&
11633 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11634 exit(0);
11635 }
11636
d643b80e 11637
d643b80e 11638EOF
54ab82b3 11639if { (eval echo configure:11640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d643b80e
VZ
11640then
11641 ac_cv_header_zlib_h=`cat conftestval`
11642else
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11645 rm -fr conftest*
11646 ac_cv_header_zlib_h=no
11647fi
11648rm -fr conftest*
11649fi
11650
d775acfa 11651
d643b80e
VZ
11652fi
11653
11654echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11655
d775acfa
VZ
11656 system_zlib_h_ok=$ac_cv_header_zlib_h
11657 fi
11658
11659 if test "$system_zlib_h_ok" = "yes"; then
d643b80e 11660 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
54ab82b3 11661echo "configure:11662: checking for deflate in -lz" >&5
a0b9e27f
MB
11662ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11665else
a0b9e27f 11666 ac_save_LIBS="$LIBS"
21d1c967 11667LIBS="-lz $LIBS"
a0b9e27f 11668cat > conftest.$ac_ext <<EOF
54ab82b3 11669#line 11670 "configure"
ab9b9eab 11670#include "confdefs.h"
21d1c967
GD
11671/* Override any gcc2 internal prototype to avoid an error. */
11672/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11673 builtin and then its argument prototype would still apply. */
11674char deflate();
11675
11676int main() {
11677deflate()
11678; return 0; }
11679EOF
54ab82b3 11680if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11681 rm -rf conftest*
11682 eval "ac_cv_lib_$ac_lib_var=yes"
11683else
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 rm -rf conftest*
11687 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11688fi
a0b9e27f
MB
11689rm -f conftest*
11690LIBS="$ac_save_LIBS"
698dcdb6 11691
698dcdb6 11692fi
a0b9e27f
MB
11693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11694 echo "$ac_t""yes" 1>&6
11695 ZLIB_LINK=" -lz"
11696else
11697 echo "$ac_t""no" 1>&6
11698fi
698dcdb6 11699
d643b80e 11700 fi
247f5006 11701
21d1c967
GD
11702 if test "x$ZLIB_LINK" = "x" ; then
11703 if test "$wxUSE_ZLIB" = "sys" ; then
d643b80e 11704 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11705 else
d643b80e 11706 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11707 wxUSE_ZLIB=builtin
11708 fi
11709 else
11710 wxUSE_ZLIB=sys
11711 fi
11712 fi
11713
11714 if test "$wxUSE_ZLIB" = "builtin" ; then
11715 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11716 fi
ab9b9eab
VZ
11717fi
11718
8284b0c5 11719
21d1c967
GD
11720PNG_INCLUDE=
11721PNG_LINK=
11722if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11723 cat >> confdefs.h <<\EOF
21d1c967 11724#define wxUSE_LIBPNG 1
a0b9e27f 11725EOF
90dd450c 11726
8284b0c5 11727
21d1c967 11728 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11729 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11730 wxUSE_LIBPNG=sys
11731 fi
90dd450c 11732
21d1c967 11733 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11734 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11735 wxUSE_LIBPNG=builtin
11736 fi
11737
11738 if test "$wxUSE_MGL" != 1 ; then
11739 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5d3f766d 11740 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
54ab82b3 11741echo "configure:11742: checking for png.h > 0.90" >&5
5d3f766d
VZ
11742if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744else
11745 if test "$cross_compiling" = yes; then
11746 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
a0b9e27f 11747echo $ac_n "checking for png.h""... $ac_c" 1>&6
54ab82b3 11748echo "configure:11749: checking for png.h" >&5
a0b9e27f
MB
11749if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11750 echo $ac_n "(cached) $ac_c" 1>&6
11751else
11752 cat > conftest.$ac_ext <<EOF
54ab82b3 11753#line 11754 "configure"
21d1c967
GD
11754#include "confdefs.h"
11755#include <png.h>
a0b9e27f
MB
11756EOF
11757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 11758{ (eval echo configure:11759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11760if test -z "$ac_err"; then
11761 rm -rf conftest*
11762 eval "ac_cv_header_$ac_safe=yes"
11763else
11764 echo "$ac_err" >&5
11765 echo "configure: failed program was:" >&5
90dd450c 11766 cat conftest.$ac_ext >&5
a0b9e27f
MB
11767 rm -rf conftest*
11768 eval "ac_cv_header_$ac_safe=no"
90dd450c 11769fi
a0b9e27f 11770rm -f conftest*
90dd450c 11771fi
a0b9e27f
MB
11772if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11773 echo "$ac_t""yes" 1>&6
5d3f766d
VZ
11774 :
11775else
11776 echo "$ac_t""no" 1>&6
11777fi
11778
11779
11780else
11781 cat > conftest.$ac_ext <<EOF
54ab82b3 11782#line 11783 "configure"
5d3f766d
VZ
11783#include "confdefs.h"
11784
11785 #include <png.h>
11786 #include <stdio.h>
11787
11788 int main()
11789 {
11790 FILE *f=fopen("conftestval", "w");
11791 if (!f) exit(1);
11792 fprintf(f, "%s",
11793 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11794 exit(0);
11795 }
11796
11797EOF
54ab82b3 11798if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5d3f766d
VZ
11799then
11800 ac_cv_header_png_h=`cat conftestval`
11801else
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11804 rm -fr conftest*
11805 ac_cv_header_png_h=no
11806fi
11807rm -fr conftest*
11808fi
11809
11810
11811fi
11812
11813echo "$ac_t""$ac_cv_header_png_h" 1>&6
11814
11815 if test "$ac_cv_header_png_h" = "yes"; then
11816 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
54ab82b3 11817echo "configure:11818: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11818ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11821else
a0b9e27f 11822 ac_save_LIBS="$LIBS"
21d1c967 11823LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11824cat > conftest.$ac_ext <<EOF
54ab82b3 11825#line 11826 "configure"
90dd450c 11826#include "confdefs.h"
21d1c967
GD
11827/* Override any gcc2 internal prototype to avoid an error. */
11828/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11829 builtin and then its argument prototype would still apply. */
11830char png_check_sig();
90dd450c 11831
a0b9e27f
MB
11832int main() {
11833png_check_sig()
11834; return 0; }
11835EOF
54ab82b3 11836if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11837 rm -rf conftest*
11838 eval "ac_cv_lib_$ac_lib_var=yes"
11839else
11840 echo "configure: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11842 rm -rf conftest*
11843 eval "ac_cv_lib_$ac_lib_var=no"
11844fi
11845rm -f conftest*
11846LIBS="$ac_save_LIBS"
247f5006 11847
90dd450c 11848fi
a0b9e27f
MB
11849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6
11851 PNG_LINK=" -lpng"
11852else
11853 echo "$ac_t""no" 1>&6
11854fi
90dd450c 11855
5d3f766d 11856 fi
247f5006 11857
21d1c967
GD
11858 if test "x$PNG_LINK" = "x" ; then
11859 if test "$wxUSE_LIBPNG" = "sys" ; then
0c98a14e 11860 { 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 11861 else
0c98a14e 11862 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
21d1c967
GD
11863 wxUSE_LIBPNG=builtin
11864 fi
11865 else
2b5f62a0 11866 wxUSE_LIBPNG=sys
21d1c967
GD
11867 fi
11868 fi
11869 fi
90dd450c 11870
21d1c967
GD
11871 if test "$wxUSE_LIBPNG" = "builtin" ; then
11872 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11873 fi
90dd450c 11874
21d1c967 11875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11876fi
11877
8284b0c5 11878
21d1c967
GD
11879JPEG_INCLUDE=
11880JPEG_LINK=
11881if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11882 cat >> confdefs.h <<\EOF
21d1c967 11883#define wxUSE_LIBJPEG 1
a0b9e27f 11884EOF
90dd450c 11885
8284b0c5 11886
21d1c967 11887 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11888 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11889 wxUSE_LIBJPEG=sys
11890 fi
90dd450c 11891
21d1c967
GD
11892 if test "$wxUSE_MGL" != 1 ; then
11893 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11894 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
54ab82b3 11895echo "configure:11896: checking for jpeglib.h" >&5
a0b9e27f
MB
11896 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11897 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11898else
a0b9e27f 11899 cat > conftest.$ac_ext <<EOF
54ab82b3 11900#line 11901 "configure"
21d1c967 11901#include "confdefs.h"
90dd450c 11902
21d1c967
GD
11903 #undef HAVE_STDLIB_H
11904 #include <stdio.h>
11905 #include <jpeglib.h>
a0b9e27f
MB
11906
11907int main() {
90dd450c 11908
a0b9e27f
MB
11909
11910; return 0; }
11911EOF
54ab82b3 11912if { (eval echo configure:11913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11913 rm -rf conftest*
21d1c967 11914 ac_cv_header_jpeglib_h=yes
90dd450c 11915else
a0b9e27f
MB
11916 echo "configure: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 rm -rf conftest*
11919 ac_cv_header_jpeglib_h=no
11920
90dd450c 11921fi
a0b9e27f
MB
11922rm -f conftest*
11923
90dd450c
VZ
11924fi
11925
a0b9e27f 11926 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11927
21d1c967 11928 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11929 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
54ab82b3 11930echo "configure:11931: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11931ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11934else
a0b9e27f 11935 ac_save_LIBS="$LIBS"
21d1c967 11936LIBS="-ljpeg $LIBS"
a0b9e27f 11937cat > conftest.$ac_ext <<EOF
54ab82b3 11938#line 11939 "configure"
21d1c967
GD
11939#include "confdefs.h"
11940/* Override any gcc2 internal prototype to avoid an error. */
11941/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11942 builtin and then its argument prototype would still apply. */
11943char jpeg_read_header();
11944
11945int main() {
11946jpeg_read_header()
11947; return 0; }
11948EOF
54ab82b3 11949if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11950 rm -rf conftest*
11951 eval "ac_cv_lib_$ac_lib_var=yes"
11952else
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11955 rm -rf conftest*
11956 eval "ac_cv_lib_$ac_lib_var=no"
11957fi
11958rm -f conftest*
11959LIBS="$ac_save_LIBS"
11960
11961fi
11962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11963 echo "$ac_t""yes" 1>&6
21d1c967 11964 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11965else
11966 echo "$ac_t""no" 1>&6
90dd450c
VZ
11967fi
11968
21d1c967 11969 fi
90dd450c 11970
21d1c967
GD
11971 if test "x$JPEG_LINK" = "x" ; then
11972 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11973 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11974 else
a0b9e27f 11975 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11976 wxUSE_LIBJPEG=builtin
11977 fi
11978 else
11979 wxUSE_LIBJPEG=sys
11980 fi
11981 fi
11982 fi
90dd450c 11983
21d1c967
GD
11984 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11985 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11986 fi
11987fi
90dd450c 11988
8284b0c5 11989
21d1c967
GD
11990TIFF_INCLUDE=
11991TIFF_LINK=
2b5f62a0 11992TIFF_PREREQ_LINKS=-lm
21d1c967 11993if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 11994 cat >> confdefs.h <<\EOF
21d1c967 11995#define wxUSE_LIBTIFF 1
a0b9e27f 11996EOF
21d1c967 11997
8284b0c5 11998
21d1c967 11999 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
12000 if test "$wxUSE_LIBJPEG" = "sys"; then
12001 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12002 fi
12003 if test "$wxUSE_ZLIB" = "sys"; then
12004 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12005 fi
a0b9e27f
MB
12006 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12007echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
54ab82b3 12008echo "configure:12009: checking for tiffio.h" >&5
a0b9e27f
MB
12009if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12010 echo $ac_n "(cached) $ac_c" 1>&6
12011else
12012 cat > conftest.$ac_ext <<EOF
54ab82b3 12013#line 12014 "configure"
247f5006
VZ
12014#include "confdefs.h"
12015#include <tiffio.h>
a0b9e27f
MB
12016EOF
12017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 12018{ (eval echo configure:12019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12020if test -z "$ac_err"; then
12021 rm -rf conftest*
12022 eval "ac_cv_header_$ac_safe=yes"
12023else
12024 echo "$ac_err" >&5
12025 echo "configure: failed program was:" >&5
21d1c967 12026 cat conftest.$ac_ext >&5
a0b9e27f
MB
12027 rm -rf conftest*
12028 eval "ac_cv_header_$ac_safe=no"
21d1c967 12029fi
a0b9e27f 12030rm -f conftest*
21d1c967 12031fi
a0b9e27f
MB
12032if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
54ab82b3 12035echo "configure:12036: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
12036ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12038 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 12039else
a0b9e27f 12040 ac_save_LIBS="$LIBS"
2b5f62a0 12041LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
a0b9e27f 12042cat > conftest.$ac_ext <<EOF
54ab82b3 12043#line 12044 "configure"
ab9b9eab
VZ
12044#include "confdefs.h"
12045/* Override any gcc2 internal prototype to avoid an error. */
12046/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12047 builtin and then its argument prototype would still apply. */
12048char TIFFError();
ab9b9eab 12049
a0b9e27f
MB
12050int main() {
12051TIFFError()
12052; return 0; }
12053EOF
54ab82b3 12054if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12055 rm -rf conftest*
12056 eval "ac_cv_lib_$ac_lib_var=yes"
12057else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -rf conftest*
12061 eval "ac_cv_lib_$ac_lib_var=no"
12062fi
12063rm -f conftest*
12064LIBS="$ac_save_LIBS"
247f5006 12065
21d1c967 12066fi
a0b9e27f
MB
12067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12068 echo "$ac_t""yes" 1>&6
12069 TIFF_LINK=" -ltiff"
12070else
12071 echo "$ac_t""no" 1>&6
12072fi
cd6d6d5b 12073
a0b9e27f
MB
12074
12075else
12076 echo "$ac_t""no" 1>&6
12077fi
8284b0c5 12078
247f5006 12079
21d1c967
GD
12080 if test "x$TIFF_LINK" = "x" ; then
12081 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 12082 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 12083 else
a0b9e27f 12084 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 12085 wxUSE_LIBTIFF=builtin
d8356fa3 12086 fi
d8356fa3 12087 else
21d1c967 12088 wxUSE_LIBTIFF=sys
d8356fa3 12089 fi
21d1c967 12090 fi
d8356fa3 12091
21d1c967
GD
12092 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12093 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 12094 fi
21d1c967 12095fi
10f2d63a 12096
8284b0c5 12097
21d1c967 12098AFMINSTALL=
2b5f62a0 12099WIN32INSTALL=
90dd450c 12100
21d1c967
GD
12101TOOLKIT=
12102TOOLKIT_INCLUDE=
12103WIDGET_SET=
12104
12105if test "$USE_WIN32" = 1 ; then
a0b9e27f 12106 for ac_hdr in w32api.h
21d1c967 12107do
a0b9e27f
MB
12108ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12109echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 12110echo "configure:12111: checking for $ac_hdr" >&5
a0b9e27f
MB
12111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12113else
12114 cat > conftest.$ac_ext <<EOF
54ab82b3 12115#line 12116 "configure"
247f5006 12116#include "confdefs.h"
a0b9e27f
MB
12117#include <$ac_hdr>
12118EOF
12119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 12120{ (eval echo configure:12121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12122if test -z "$ac_err"; then
12123 rm -rf conftest*
12124 eval "ac_cv_header_$ac_safe=yes"
12125else
12126 echo "$ac_err" >&5
12127 echo "configure: failed program was:" >&5
f79bd02d 12128 cat conftest.$ac_ext >&5
a0b9e27f
MB
12129 rm -rf conftest*
12130 eval "ac_cv_header_$ac_safe=no"
f79bd02d 12131fi
a0b9e27f 12132rm -f conftest*
21d1c967 12133fi
a0b9e27f
MB
12134if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12135 echo "$ac_t""yes" 1>&6
12136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12137 cat >> confdefs.h <<EOF
12138#define $ac_tr_hdr 1
12139EOF
12140
12141else
12142 echo "$ac_t""no" 1>&6
21d1c967
GD
12143fi
12144done
f79bd02d 12145
a0b9e27f
MB
12146 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12147echo $ac_n "checking for windows.h""... $ac_c" 1>&6
54ab82b3 12148echo "configure:12149: checking for windows.h" >&5
a0b9e27f
MB
12149if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12151else
a0b9e27f 12152 cat > conftest.$ac_ext <<EOF
54ab82b3 12153#line 12154 "configure"
247f5006
VZ
12154#include "confdefs.h"
12155#include <windows.h>
a0b9e27f
MB
12156EOF
12157ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 12158{ (eval echo configure:12159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
12159ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12160if test -z "$ac_err"; then
12161 rm -rf conftest*
12162 eval "ac_cv_header_$ac_safe=yes"
12163else
12164 echo "$ac_err" >&5
12165 echo "configure: failed program was:" >&5
90dd450c 12166 cat conftest.$ac_ext >&5
a0b9e27f
MB
12167 rm -rf conftest*
12168 eval "ac_cv_header_$ac_safe=no"
90dd450c 12169fi
a0b9e27f 12170rm -f conftest*
90dd450c 12171fi
a0b9e27f
MB
12172if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12173 echo "$ac_t""yes" 1>&6
21d1c967 12174 :
90dd450c 12175else
a0b9e27f 12176 echo "$ac_t""no" 1>&6
21d1c967 12177
a0b9e27f
MB
12178 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12179
5c6fa7d2 12180fi
7b4a847f 12181
5c6fa7d2 12182
a0b9e27f 12183 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
54ab82b3 12184echo "configure:12185: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
12185if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 12187else
a0b9e27f
MB
12188
12189 cat > conftest.$ac_ext <<EOF
54ab82b3 12190#line 12191 "configure"
f79bd02d 12191#include "confdefs.h"
21d1c967 12192#include <w32api.h>
a0b9e27f 12193int main() {
f79bd02d 12194
21d1c967
GD
12195 #define wxCHECK_W32API_VERSION( major, minor ) \
12196 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12197 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12198 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12199
12200 #if !wxCHECK_W32API_VERSION(1,1)
12201 #error You need w32api 1.1 or newer
12202 #endif
a0b9e27f
MB
12203
12204; return 0; }
12205EOF
54ab82b3 12206if { (eval echo configure:12207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
12207 rm -rf conftest*
12208
21d1c967 12209 wx_cv_w32api_win32_ie=yes
a0b9e27f 12210
f79bd02d 12211else
a0b9e27f
MB
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215
21d1c967 12216 wx_cv_w32api_win32_ie=no
a0b9e27f 12217
5c6fa7d2 12218fi
a0b9e27f
MB
12219rm -f conftest*
12220
247f5006 12221fi
a0b9e27f
MB
12222
12223echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
12224 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12225 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12226 fi
f79bd02d 12227
21d1c967
GD
12228 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12229
12230 case "${host}" in
12231 *-*-cygwin* )
12232 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12233 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 12234 esac
f79bd02d 12235
21d1c967
GD
12236 if test "$wxUSE_ODBC" = "yes" ; then
12237 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12238 fi
f79bd02d 12239
21d1c967
GD
12240 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12241 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
12242
12243 WIN32INSTALL=win32install
f79bd02d 12244fi
f79bd02d 12245
b2fee376 12246if test "$USE_DARWIN" = 1; then
50bcbd3d 12247 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
12248 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12249 else
12250 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12251 fi
12252fi
12253
21d1c967
GD
12254if test "$wxUSE_GUI" = "yes"; then
12255 USE_GUI=1
f79bd02d 12256
21d1c967 12257 GUI_TK_LIBRARY=
f79bd02d 12258
21d1c967
GD
12259 WXGTK12=
12260 WXGTK127=
12261 WXGTK20=
f79bd02d 12262
21d1c967
GD
12263 if test "$wxUSE_MSW" = 1 ; then
12264 TOOLKIT=MSW
12265 GUIDIST=MSW_DIST
f79bd02d 12266
21d1c967
GD
12267 case "${host}" in
12268 *-*-mingw32* )
12269 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12270 esac
f79bd02d
JS
12271 fi
12272
21d1c967 12273 if test "$wxUSE_GTK" = 1; then
a0b9e27f 12274 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
54ab82b3 12275echo "configure:12276: checking for GTK+ version" >&5
21d1c967
GD
12276
12277 gtk_version_cached=1
a0b9e27f
MB
12278 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 12280else
a0b9e27f 12281
21d1c967 12282 gtk_version_cached=0
a0b9e27f 12283 echo "$ac_t""" 1>&6
f79bd02d 12284
21d1c967
GD
12285 GTK_MODULES=
12286 if test "$wxUSE_THREADS" = "yes"; then
12287 GTK_MODULES=gthread
12288 fi
f79bd02d 12289
2b5f62a0 12290 wx_cv_lib_gtk=
21d1c967
GD
12291 if test "x$wxUSE_GTK2" = "xyes"; then
12292 # Check whether --enable-gtktest or --disable-gtktest was given.
12293if test "${enable_gtktest+set}" = set; then
12294 enableval="$enable_gtktest"
a0b9e27f 12295 :
f79bd02d 12296else
21d1c967 12297 enable_gtktest=yes
a0b9e27f
MB
12298fi
12299
f79bd02d 12300
21d1c967
GD
12301 pkg_config_args=gtk+-2.0
12302 for module in . $GTK_MODULES
12303 do
12304 case "$module" in
a0b9e27f 12305 gthread)
21d1c967
GD
12306 pkg_config_args="$pkg_config_args gthread-2.0"
12307 ;;
12308 esac
12309 done
12310
12311 no_gtk=""
f79bd02d 12312
21d1c967
GD
12313 # Extract the first word of "pkg-config", so it can be a program name with args.
12314set dummy pkg-config; ac_word=$2
a0b9e27f 12315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 12316echo "configure:12317: checking for $ac_word" >&5
a0b9e27f
MB
12317if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12319else
a0b9e27f
MB
12320 case "$PKG_CONFIG" in
12321 /*)
21d1c967
GD
12322 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12323 ;;
a0b9e27f
MB
12324 ?:/*)
12325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12326 ;;
21d1c967 12327 *)
a0b9e27f
MB
12328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12329 ac_dummy="$PATH"
12330 for ac_dir in $ac_dummy; do
12331 test -z "$ac_dir" && ac_dir=.
12332 if test -f $ac_dir/$ac_word; then
12333 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12334 break
12335 fi
12336 done
12337 IFS="$ac_save_ifs"
21d1c967
GD
12338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12339 ;;
12340esac
f79bd02d 12341fi
a0b9e27f 12342PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12343if test -n "$PKG_CONFIG"; then
a0b9e27f 12344 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12345else
a0b9e27f 12346 echo "$ac_t""no" 1>&6
f79bd02d
JS
12347fi
12348
8284b0c5 12349
21d1c967
GD
12350 if test x$PKG_CONFIG != xno ; then
12351 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12352 :
12353 else
12354 echo *** pkg-config too old; version 0.7 or better required.
12355 no_gtk=yes
12356 PKG_CONFIG=no
12357 fi
12358 else
12359 no_gtk=yes
12360 fi
f79bd02d 12361
21d1c967 12362 min_gtk_version=2.0.0
a0b9e27f 12363 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
54ab82b3 12364echo "configure:12365: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12365
21d1c967
GD
12366 if test x$PKG_CONFIG != xno ; then
12367 ## don't try to run the test against uninstalled libtool libs
12368 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12369 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12370 enable_gtktest=no
12371 fi
f79bd02d 12372
21d1c967
GD
12373 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12374 :
12375 else
12376 no_gtk=yes
12377 fi
12378 fi
f79bd02d 12379
21d1c967
GD
12380 if test x"$no_gtk" = x ; then
12381 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12382 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12383 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12385 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12387 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12389 if test "x$enable_gtktest" = "xyes" ; then
12390 ac_save_CFLAGS="$CFLAGS"
12391 ac_save_LIBS="$LIBS"
12392 CFLAGS="$CFLAGS $GTK_CFLAGS"
12393 LIBS="$GTK_LIBS $LIBS"
12394 rm -f conf.gtktest
12395 if test "$cross_compiling" = yes; then
12396 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12397else
a0b9e27f 12398 cat > conftest.$ac_ext <<EOF
54ab82b3 12399#line 12400 "configure"
f79bd02d 12400#include "confdefs.h"
f79bd02d 12401
21d1c967
GD
12402#include <gtk/gtk.h>
12403#include <stdio.h>
12404#include <stdlib.h>
f79bd02d 12405
a0b9e27f 12406int
21d1c967
GD
12407main ()
12408{
12409 int major, minor, micro;
12410 char *tmp_version;
f79bd02d 12411
21d1c967 12412 system ("touch conf.gtktest");
f79bd02d 12413
21d1c967
GD
12414 /* HP/UX 9 (%@#!) writes to sscanf strings */
12415 tmp_version = g_strdup("$min_gtk_version");
12416 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12417 printf("%s, bad version string\n", "$min_gtk_version");
12418 exit(1);
12419 }
f79bd02d 12420
21d1c967
GD
12421 if ((gtk_major_version != $gtk_config_major_version) ||
12422 (gtk_minor_version != $gtk_config_minor_version) ||
12423 (gtk_micro_version != $gtk_config_micro_version))
12424 {
a0b9e27f 12425 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12426 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12427 gtk_major_version, gtk_minor_version, gtk_micro_version);
12428 printf ("*** was found! If pkg-config was correct, then it is best\n");
12429 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12430 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12431 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12432 printf("*** required on your system.\n");
12433 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12434 printf("*** to point to the correct configuration files\n");
a0b9e27f 12435 }
21d1c967
GD
12436 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12437 (gtk_minor_version != GTK_MINOR_VERSION) ||
12438 (gtk_micro_version != GTK_MICRO_VERSION))
12439 {
12440 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12441 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12442 printf("*** library (version %d.%d.%d)\n",
12443 gtk_major_version, gtk_minor_version, gtk_micro_version);
12444 }
12445 else
12446 {
12447 if ((gtk_major_version > major) ||
12448 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12449 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12450 {
12451 return 0;
12452 }
12453 else
12454 {
12455 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12456 gtk_major_version, gtk_minor_version, gtk_micro_version);
12457 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12458 major, minor, micro);
12459 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12460 printf("***\n");
12461 printf("*** If you have already installed a sufficiently new version, this error\n");
12462 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12463 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12464 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12465 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12466 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12467 printf("*** so that the correct libraries are found at run-time))\n");
12468 }
12469 }
12470 return 1;
12471}
f79bd02d 12472
a0b9e27f 12473EOF
54ab82b3 12474if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12475then
21d1c967 12476 :
f79bd02d 12477else
a0b9e27f
MB
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 rm -fr conftest*
12481 no_gtk=yes
f79bd02d 12482fi
a0b9e27f 12483rm -fr conftest*
f79bd02d 12484fi
a0b9e27f 12485
21d1c967
GD
12486 CFLAGS="$ac_save_CFLAGS"
12487 LIBS="$ac_save_LIBS"
12488 fi
12489 fi
12490 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12491 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12492 wx_cv_lib_gtk=2.0
21d1c967 12493 else
a0b9e27f 12494 echo "$ac_t""no" 1>&6
21d1c967
GD
12495 if test "$PKG_CONFIG" = "no" ; then
12496 echo "*** A new enough version of pkg-config was not found."
12497 echo "*** See http://pkgconfig.sourceforge.net"
12498 else
12499 if test -f conf.gtktest ; then
12500 :
12501 else
12502 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12503 ac_save_CFLAGS="$CFLAGS"
12504 ac_save_LIBS="$LIBS"
21d1c967
GD
12505 CFLAGS="$CFLAGS $GTK_CFLAGS"
12506 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12507 cat > conftest.$ac_ext <<EOF
54ab82b3 12508#line 12509 "configure"
f79bd02d 12509#include "confdefs.h"
21d1c967
GD
12510
12511#include <gtk/gtk.h>
12512#include <stdio.h>
f79bd02d 12513
a0b9e27f
MB
12514int main() {
12515 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12516; return 0; }
12517EOF
54ab82b3 12518if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12519 rm -rf conftest*
21d1c967
GD
12520 echo "*** The test program compiled, but did not run. This usually means"
12521 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12522 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12523 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12524 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12525 echo "*** is required on your system"
12526 echo "***"
12527 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12528 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12529else
a0b9e27f
MB
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 rm -rf conftest*
12533 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12534 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12535fi
a0b9e27f 12536rm -f conftest*
21d1c967
GD
12537 CFLAGS="$ac_save_CFLAGS"
12538 LIBS="$ac_save_LIBS"
12539 fi
12540 fi
12541 GTK_CFLAGS=""
12542 GTK_LIBS=""
12543 :
12544 fi
a0b9e27f
MB
12545
12546
21d1c967 12547 rm -f conf.gtktest
f79bd02d 12548
2b5f62a0 12549 else
a0b9e27f 12550 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12551if test "${with_gtk_prefix+set}" = set; then
12552 withval="$with_gtk_prefix"
12553 gtk_config_prefix="$withval"
12554else
12555 gtk_config_prefix=""
a0b9e27f 12556fi
f79bd02d 12557
21d1c967
GD
12558# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12559if test "${with_gtk_exec_prefix+set}" = set; then
12560 withval="$with_gtk_exec_prefix"
12561 gtk_config_exec_prefix="$withval"
12562else
12563 gtk_config_exec_prefix=""
a0b9e27f
MB
12564fi
12565
21d1c967
GD
12566# Check whether --enable-gtktest or --disable-gtktest was given.
12567if test "${enable_gtktest+set}" = set; then
12568 enableval="$enable_gtktest"
a0b9e27f 12569 :
21d1c967
GD
12570else
12571 enable_gtktest=yes
a0b9e27f
MB
12572fi
12573
21d1c967
GD
12574
12575 for module in . $GTK_MODULES
12576 do
12577 case "$module" in
a0b9e27f 12578 gthread)
21d1c967
GD
12579 gtk_config_args="$gtk_config_args gthread"
12580 ;;
12581 esac
12582 done
12583
12584 if test x$gtk_config_exec_prefix != x ; then
12585 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12586 if test x${GTK_CONFIG+set} != xset ; then
12587 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12588 fi
12589 fi
12590 if test x$gtk_config_prefix != x ; then
12591 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12592 if test x${GTK_CONFIG+set} != xset ; then
12593 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12594 fi
12595 fi
12596
12597 # Extract the first word of "gtk-config", so it can be a program name with args.
12598set dummy gtk-config; ac_word=$2
a0b9e27f 12599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 12600echo "configure:12601: checking for $ac_word" >&5
a0b9e27f
MB
12601if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12603else
a0b9e27f
MB
12604 case "$GTK_CONFIG" in
12605 /*)
21d1c967
GD
12606 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12607 ;;
a0b9e27f
MB
12608 ?:/*)
12609 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12610 ;;
21d1c967 12611 *)
a0b9e27f
MB
12612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12613 ac_dummy="$PATH"
12614 for ac_dir in $ac_dummy; do
12615 test -z "$ac_dir" && ac_dir=.
12616 if test -f $ac_dir/$ac_word; then
12617 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12618 break
12619 fi
12620 done
12621 IFS="$ac_save_ifs"
21d1c967
GD
12622 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12623 ;;
12624esac
12625fi
a0b9e27f 12626GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12627if test -n "$GTK_CONFIG"; then
a0b9e27f 12628 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12629else
a0b9e27f 12630 echo "$ac_t""no" 1>&6
21d1c967
GD
12631fi
12632
12633 min_gtk_version=1.2.7
a0b9e27f 12634 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
54ab82b3 12635echo "configure:12636: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12636 no_gtk=""
12637 if test "$GTK_CONFIG" = "no" ; then
12638 no_gtk=yes
12639 else
12640 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12641 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12642 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12644 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12646 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12648 if test "x$enable_gtktest" = "xyes" ; then
12649 ac_save_CFLAGS="$CFLAGS"
12650 ac_save_LIBS="$LIBS"
12651 CFLAGS="$CFLAGS $GTK_CFLAGS"
12652 LIBS="$GTK_LIBS $LIBS"
12653 rm -f conf.gtktest
12654 if test "$cross_compiling" = yes; then
12655 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12656else
a0b9e27f 12657 cat > conftest.$ac_ext <<EOF
54ab82b3 12658#line 12659 "configure"
f79bd02d
JS
12659#include "confdefs.h"
12660
21d1c967
GD
12661#include <gtk/gtk.h>
12662#include <stdio.h>
12663#include <stdlib.h>
f79bd02d 12664
a0b9e27f 12665int
21d1c967
GD
12666main ()
12667{
12668 int major, minor, micro;
12669 char *tmp_version;
12670
12671 system ("touch conf.gtktest");
12672
12673 /* HP/UX 9 (%@#!) writes to sscanf strings */
12674 tmp_version = g_strdup("$min_gtk_version");
12675 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12676 printf("%s, bad version string\n", "$min_gtk_version");
12677 exit(1);
12678 }
90dd450c 12679
21d1c967
GD
12680 if ((gtk_major_version != $gtk_config_major_version) ||
12681 (gtk_minor_version != $gtk_config_minor_version) ||
12682 (gtk_micro_version != $gtk_config_micro_version))
12683 {
a0b9e27f 12684 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12685 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12686 gtk_major_version, gtk_minor_version, gtk_micro_version);
12687 printf ("*** was found! If gtk-config was correct, then it is best\n");
12688 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12689 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12690 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12691 printf("*** required on your system.\n");
12692 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12693 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12694 printf("*** before re-running configure\n");
a0b9e27f 12695 }
21d1c967
GD
12696#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12697 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12698 (gtk_minor_version != GTK_MINOR_VERSION) ||
12699 (gtk_micro_version != GTK_MICRO_VERSION))
12700 {
12701 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12702 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12703 printf("*** library (version %d.%d.%d)\n",
12704 gtk_major_version, gtk_minor_version, gtk_micro_version);
12705 }
12706#endif /* defined (GTK_MAJOR_VERSION) ... */
12707 else
12708 {
12709 if ((gtk_major_version > major) ||
12710 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12711 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12712 {
12713 return 0;
12714 }
12715 else
12716 {
12717 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12718 gtk_major_version, gtk_minor_version, gtk_micro_version);
12719 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12720 major, minor, micro);
12721 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12722 printf("***\n");
12723 printf("*** If you have already installed a sufficiently new version, this error\n");
12724 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12725 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12726 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12727 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12728 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12729 printf("*** so that the correct libraries are found at run-time))\n");
12730 }
12731 }
12732 return 1;
12733}
12734
a0b9e27f 12735EOF
54ab82b3 12736if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12737then
21d1c967
GD
12738 :
12739else
a0b9e27f
MB
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -fr conftest*
12743 no_gtk=yes
21d1c967 12744fi
a0b9e27f 12745rm -fr conftest*
21d1c967 12746fi
a0b9e27f 12747
21d1c967
GD
12748 CFLAGS="$ac_save_CFLAGS"
12749 LIBS="$ac_save_LIBS"
12750 fi
12751 fi
12752 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12753 echo "$ac_t""yes" 1>&6
12754 wx_cv_lib_gtk=1.2.7
21d1c967 12755 else
a0b9e27f 12756 echo "$ac_t""no" 1>&6
21d1c967
GD
12757 if test "$GTK_CONFIG" = "no" ; then
12758 echo "*** The gtk-config script installed by GTK could not be found"
12759 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12760 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12761 echo "*** full path to gtk-config."
12762 else
12763 if test -f conf.gtktest ; then
12764 :
12765 else
12766 echo "*** Could not run GTK test program, checking why..."
12767 CFLAGS="$CFLAGS $GTK_CFLAGS"
12768 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12769 cat > conftest.$ac_ext <<EOF
54ab82b3 12770#line 12771 "configure"
21d1c967
GD
12771#include "confdefs.h"
12772
12773#include <gtk/gtk.h>
12774#include <stdio.h>
12775
a0b9e27f
MB
12776int main() {
12777 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12778; return 0; }
12779EOF
54ab82b3 12780if { (eval echo configure:12781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12781 rm -rf conftest*
21d1c967
GD
12782 echo "*** The test program compiled, but did not run. This usually means"
12783 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12784 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12785 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12786 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12787 echo "*** is required on your system"
12788 echo "***"
12789 echo "*** If you have an old version installed, it is best to remove it, although"
12790 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12791 echo "***"
12792 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12793 echo "*** came with the system with the command"
12794 echo "***"
a0b9e27f 12795 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12796else
a0b9e27f
MB
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12799 rm -rf conftest*
12800 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12801 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12802 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12803 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12804fi
a0b9e27f 12805rm -f conftest*
21d1c967
GD
12806 CFLAGS="$ac_save_CFLAGS"
12807 LIBS="$ac_save_LIBS"
12808 fi
12809 fi
12810 GTK_CFLAGS=""
12811 GTK_LIBS=""
12812 :
12813 fi
a0b9e27f
MB
12814
12815
21d1c967
GD
12816 rm -f conf.gtktest
12817
21d1c967 12818
2b5f62a0
VZ
12819 if test -z "$wx_cv_lib_gtk"; then
12820 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12821if test "${with_gtk_prefix+set}" = set; then
12822 withval="$with_gtk_prefix"
12823 gtk_config_prefix="$withval"
12824else
12825 gtk_config_prefix=""
a0b9e27f 12826fi
f79bd02d 12827
21d1c967
GD
12828# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12829if test "${with_gtk_exec_prefix+set}" = set; then
12830 withval="$with_gtk_exec_prefix"
12831 gtk_config_exec_prefix="$withval"
12832else
12833 gtk_config_exec_prefix=""
a0b9e27f
MB
12834fi
12835
21d1c967
GD
12836# Check whether --enable-gtktest or --disable-gtktest was given.
12837if test "${enable_gtktest+set}" = set; then
12838 enableval="$enable_gtktest"
a0b9e27f 12839 :
90dd450c 12840else
21d1c967 12841 enable_gtktest=yes
a0b9e27f
MB
12842fi
12843
21d1c967
GD
12844
12845 for module in . $GTK_MODULES
12846 do
12847 case "$module" in
a0b9e27f 12848 gthread)
21d1c967
GD
12849 gtk_config_args="$gtk_config_args gthread"
12850 ;;
12851 esac
12852 done
12853
12854 if test x$gtk_config_exec_prefix != x ; then
12855 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12856 if test x${GTK_CONFIG+set} != xset ; then
12857 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12858 fi
12859 fi
12860 if test x$gtk_config_prefix != x ; then
12861 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12862 if test x${GTK_CONFIG+set} != xset ; then
12863 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12864 fi
12865 fi
12866
12867 # Extract the first word of "gtk-config", so it can be a program name with args.
12868set dummy gtk-config; ac_word=$2
a0b9e27f 12869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 12870echo "configure:12871: checking for $ac_word" >&5
a0b9e27f
MB
12871if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12872 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12873else
a0b9e27f
MB
12874 case "$GTK_CONFIG" in
12875 /*)
21d1c967
GD
12876 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12877 ;;
a0b9e27f
MB
12878 ?:/*)
12879 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12880 ;;
21d1c967 12881 *)
a0b9e27f
MB
12882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12883 ac_dummy="$PATH"
12884 for ac_dir in $ac_dummy; do
12885 test -z "$ac_dir" && ac_dir=.
12886 if test -f $ac_dir/$ac_word; then
12887 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12888 break
12889 fi
12890 done
12891 IFS="$ac_save_ifs"
21d1c967
GD
12892 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12893 ;;
12894esac
12895fi
a0b9e27f 12896GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12897if test -n "$GTK_CONFIG"; then
a0b9e27f 12898 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12899else
a0b9e27f 12900 echo "$ac_t""no" 1>&6
21d1c967
GD
12901fi
12902
12903 min_gtk_version=1.2.3
a0b9e27f 12904 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
54ab82b3 12905echo "configure:12906: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12906 no_gtk=""
12907 if test "$GTK_CONFIG" = "no" ; then
12908 no_gtk=yes
12909 else
12910 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12911 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12912 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12914 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12916 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12918 if test "x$enable_gtktest" = "xyes" ; then
12919 ac_save_CFLAGS="$CFLAGS"
12920 ac_save_LIBS="$LIBS"
12921 CFLAGS="$CFLAGS $GTK_CFLAGS"
12922 LIBS="$GTK_LIBS $LIBS"
12923 rm -f conf.gtktest
12924 if test "$cross_compiling" = yes; then
12925 echo $ac_n "cross compiling; assumed OK... $ac_c"
12926else
a0b9e27f 12927 cat > conftest.$ac_ext <<EOF
54ab82b3 12928#line 12929 "configure"
f79bd02d 12929#include "confdefs.h"
21d1c967
GD
12930
12931#include <gtk/gtk.h>
12932#include <stdio.h>
12933#include <stdlib.h>
12934
a0b9e27f 12935int
21d1c967
GD
12936main ()
12937{
12938 int major, minor, micro;
12939 char *tmp_version;
12940
12941 system ("touch conf.gtktest");
12942
12943 /* HP/UX 9 (%@#!) writes to sscanf strings */
12944 tmp_version = g_strdup("$min_gtk_version");
12945 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12946 printf("%s, bad version string\n", "$min_gtk_version");
12947 exit(1);
12948 }
12949
12950 if ((gtk_major_version != $gtk_config_major_version) ||
12951 (gtk_minor_version != $gtk_config_minor_version) ||
12952 (gtk_micro_version != $gtk_config_micro_version))
12953 {
a0b9e27f 12954 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12955 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12956 gtk_major_version, gtk_minor_version, gtk_micro_version);
12957 printf ("*** was found! If gtk-config was correct, then it is best\n");
12958 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12959 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12960 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12961 printf("*** required on your system.\n");
12962 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12963 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12964 printf("*** before re-running configure\n");
a0b9e27f 12965 }
21d1c967
GD
12966#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12967 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12968 (gtk_minor_version != GTK_MINOR_VERSION) ||
12969 (gtk_micro_version != GTK_MICRO_VERSION))
12970 {
12971 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12972 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12973 printf("*** library (version %d.%d.%d)\n",
12974 gtk_major_version, gtk_minor_version, gtk_micro_version);
12975 }
12976#endif /* defined (GTK_MAJOR_VERSION) ... */
12977 else
12978 {
12979 if ((gtk_major_version > major) ||
12980 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12981 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12982 {
12983 return 0;
12984 }
12985 else
12986 {
12987 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12988 gtk_major_version, gtk_minor_version, gtk_micro_version);
12989 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12990 major, minor, micro);
12991 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12992 printf("***\n");
12993 printf("*** If you have already installed a sufficiently new version, this error\n");
12994 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12995 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12996 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12997 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12998 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12999 printf("*** so that the correct libraries are found at run-time))\n");
13000 }
13001 }
13002 return 1;
13003}
13004
a0b9e27f 13005EOF
54ab82b3 13006if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 13007then
21d1c967
GD
13008 :
13009else
a0b9e27f
MB
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 rm -fr conftest*
13013 no_gtk=yes
21d1c967 13014fi
a0b9e27f 13015rm -fr conftest*
21d1c967 13016fi
a0b9e27f 13017
21d1c967
GD
13018 CFLAGS="$ac_save_CFLAGS"
13019 LIBS="$ac_save_LIBS"
13020 fi
13021 fi
13022 if test "x$no_gtk" = x ; then
a0b9e27f
MB
13023 echo "$ac_t""yes" 1>&6
13024 wx_cv_lib_gtk=1.2.3
21d1c967 13025 else
a0b9e27f 13026 echo "$ac_t""no" 1>&6
21d1c967
GD
13027 if test "$GTK_CONFIG" = "no" ; then
13028 echo "*** The gtk-config script installed by GTK could not be found"
13029 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13030 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13031 echo "*** full path to gtk-config."
13032 else
13033 if test -f conf.gtktest ; then
13034 :
13035 else
13036 echo "*** Could not run GTK test program, checking why..."
13037 CFLAGS="$CFLAGS $GTK_CFLAGS"
13038 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 13039 cat > conftest.$ac_ext <<EOF
54ab82b3 13040#line 13041 "configure"
21d1c967
GD
13041#include "confdefs.h"
13042
13043#include <gtk/gtk.h>
13044#include <stdio.h>
f79bd02d 13045
a0b9e27f
MB
13046int main() {
13047 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13048; return 0; }
13049EOF
54ab82b3 13050if { (eval echo configure:13051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13051 rm -rf conftest*
21d1c967
GD
13052 echo "*** The test program compiled, but did not run. This usually means"
13053 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13054 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13055 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13056 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13057 echo "*** is required on your system"
13058 echo "***"
13059 echo "*** If you have an old version installed, it is best to remove it, although"
13060 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13061 echo "***"
13062 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13063 echo "*** came with the system with the command"
13064 echo "***"
a0b9e27f 13065 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 13066else
a0b9e27f
MB
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
13071 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13072 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 13073 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 13074fi
a0b9e27f 13075rm -f conftest*
21d1c967
GD
13076 CFLAGS="$ac_save_CFLAGS"
13077 LIBS="$ac_save_LIBS"
13078 fi
13079 fi
13080 GTK_CFLAGS=""
13081 GTK_LIBS=""
13082 :
13083 fi
a0b9e27f
MB
13084
13085
21d1c967 13086 rm -f conf.gtktest
f79bd02d 13087
2b5f62a0 13088 fi
21d1c967
GD
13089 fi
13090
13091 if test -z "$wx_cv_lib_gtk"; then
13092 wx_cv_lib_gtk=none
13093 else
13094 wx_cv_cflags_gtk=$GTK_CFLAGS
13095 wx_cv_libs_gtk=$GTK_LIBS
13096 fi
a0b9e27f
MB
13097
13098
5c6fa7d2 13099fi
52127426 13100
8284b0c5 13101
21d1c967 13102 if test "$gtk_version_cached" = 1; then
a0b9e27f 13103 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
13104 fi
13105
13106 case "$wx_cv_lib_gtk" in
13107 2.0) WXGTK20=1
2b5f62a0 13108 TOOLKIT_VERSION=2
21d1c967
GD
13109 ;;
13110 1.2.7) WXGTK127=1
13111 WXGTK12=1
13112 ;;
13113 1.2.3) WXGTK12=1
13114 ;;
a0b9e27f 13115 *) { echo "configure: error:
247f5006
VZ
13116Please check that gtk-config is in path, the directory
13117where GTK+ libraries are installed (returned by
13118'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13119equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 13120 " 1>&2; exit 1; }
21d1c967
GD
13121 ;;
13122 esac
13123
b13cd66e
VZ
13124 if test "$WXGTK20" = 1; then
13125 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 13126
f09359cf
VS
13127 succeeded=no
13128
13129 if test -z "$PKG_CONFIG"; then
13130 # Extract the first word of "pkg-config", so it can be a program name with args.
13131set dummy pkg-config; ac_word=$2
a0b9e27f 13132echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 13133echo "configure:13134: checking for $ac_word" >&5
a0b9e27f
MB
13134if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 13136else
a0b9e27f
MB
13137 case "$PKG_CONFIG" in
13138 /*)
f09359cf
VS
13139 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13140 ;;
a0b9e27f
MB
13141 ?:/*)
13142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13143 ;;
f09359cf 13144 *)
a0b9e27f
MB
13145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13146 ac_dummy="$PATH"
13147 for ac_dir in $ac_dummy; do
13148 test -z "$ac_dir" && ac_dir=.
13149 if test -f $ac_dir/$ac_word; then
13150 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13151 break
13152 fi
13153 done
13154 IFS="$ac_save_ifs"
f09359cf
VS
13155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13156 ;;
13157esac
13158fi
a0b9e27f 13159PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 13160if test -n "$PKG_CONFIG"; then
a0b9e27f 13161 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 13162else
a0b9e27f 13163 echo "$ac_t""no" 1>&6
f09359cf
VS
13164fi
13165
13166 fi
13167
13168 if test "$PKG_CONFIG" = "no" ; then
13169 echo "*** The pkg-config script could not be found. Make sure it is"
13170 echo "*** in your path, or set the PKG_CONFIG environment variable"
13171 echo "*** to the full path to pkg-config."
13172 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13173 else
13174 PKG_CONFIG_MIN_VERSION=0.9.0
13175 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 13176 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
54ab82b3 13177echo "configure:13178: checking for pangoft2" >&5
f09359cf
VS
13178
13179 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 13180 echo "$ac_t""yes" 1>&6
f09359cf
VS
13181 succeeded=yes
13182
a0b9e27f 13183 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
54ab82b3 13184echo "configure:13185: checking PANGOFT2_CFLAGS" >&5
f09359cf 13185 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 13186 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 13187
a0b9e27f 13188 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
54ab82b3 13189echo "configure:13190: checking PANGOFT2_LIBS" >&5
f09359cf 13190 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 13191 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
13192 else
13193 PANGOFT2_CFLAGS=""
13194 PANGOFT2_LIBS=""
a0b9e27f 13195 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
13196 ## do set a variable so people can do so.
13197 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 13198
f09359cf
VS
13199 fi
13200
a0b9e27f
MB
13201
13202
f09359cf
VS
13203 else
13204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13206 fi
13207 fi
13208
13209 if test $succeeded = yes; then
a0b9e27f 13210
b13cd66e
VZ
13211 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13212 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 13213
f09359cf 13214 else
a0b9e27f
MB
13215
13216 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 13217 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
13218
13219
f09359cf
VS
13220 fi
13221
b13cd66e 13222 fi
2b5f62a0
VZ
13223 else
13224 if test "$wxUSE_UNICODE" = "yes"; then
13225 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13226 wxUSE_UNICODE=no
13227 fi
13228 fi
13229
13230 if test "$USE_DARWIN" != 1; then
13231 for ac_func in poll
13232do
13233echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 13234echo "configure:13235: checking for $ac_func" >&5
2b5f62a0
VZ
13235if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13236 echo $ac_n "(cached) $ac_c" 1>&6
13237else
13238 cat > conftest.$ac_ext <<EOF
54ab82b3 13239#line 13240 "configure"
2b5f62a0
VZ
13240#include "confdefs.h"
13241/* System header to define __stub macros and hopefully few prototypes,
13242 which can conflict with char $ac_func(); below. */
13243#include <assert.h>
13244/* Override any gcc2 internal prototype to avoid an error. */
13245/* We use char because int might match the return type of a gcc2
13246 builtin and then its argument prototype would still apply. */
13247char $ac_func();
13248
13249int main() {
13250
13251/* The GNU C library defines this for functions which it implements
13252 to always fail with ENOSYS. Some functions are actually named
13253 something starting with __ and the normal name is an alias. */
13254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13255choke me
13256#else
13257$ac_func();
13258#endif
13259
13260; return 0; }
13261EOF
54ab82b3 13262if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
13263 rm -rf conftest*
13264 eval "ac_cv_func_$ac_func=yes"
13265else
13266 echo "configure: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 rm -rf conftest*
13269 eval "ac_cv_func_$ac_func=no"
13270fi
13271rm -f conftest*
13272fi
13273
13274if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13275 echo "$ac_t""yes" 1>&6
13276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13277 cat >> confdefs.h <<EOF
13278#define $ac_tr_func 1
13279EOF
13280
13281else
13282 echo "$ac_t""no" 1>&6
13283fi
13284done
13285
f09359cf
VS
13286 fi
13287
21d1c967
GD
13288 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13289 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13290
13291 AFMINSTALL=afminstall
13292 TOOLKIT=GTK
13293 GUIDIST=GTK_DIST
13294
a0b9e27f 13295 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
54ab82b3 13296echo "configure:13297: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
13297ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13299 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13300else
a0b9e27f 13301 ac_save_LIBS="$LIBS"
21d1c967 13302LIBS="-lgdk $LIBS"
a0b9e27f 13303cat > conftest.$ac_ext <<EOF
54ab82b3 13304#line 13305 "configure"
90dd450c 13305#include "confdefs.h"
5c6fa7d2 13306/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 13307/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13308 builtin and then its argument prototype would still apply. */
13309char gdk_im_open();
13310
13311int main() {
13312gdk_im_open()
13313; return 0; }
13314EOF
54ab82b3 13315if { (eval echo configure:13316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13316 rm -rf conftest*
13317 eval "ac_cv_lib_$ac_lib_var=yes"
13318else
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 rm -rf conftest*
13322 eval "ac_cv_lib_$ac_lib_var=no"
13323fi
13324rm -f conftest*
13325LIBS="$ac_save_LIBS"
13326
13327fi
13328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13329 echo "$ac_t""yes" 1>&6
13330 cat >> confdefs.h <<\EOF
21d1c967 13331#define HAVE_XIM 1
a0b9e27f 13332EOF
21d1c967 13333
a0b9e27f
MB
13334else
13335 echo "$ac_t""no" 1>&6
90dd450c 13336fi
1e6feb95 13337
21d1c967 13338 fi
1e6feb95 13339
21d1c967 13340 if test "$wxUSE_MGL" = 1; then
a0b9e27f 13341 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
54ab82b3 13342echo "configure:13343: checking for SciTech MGL library" >&5
21d1c967 13343 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
13344 echo "$ac_t""not found" 1>&6
13345 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 13346 else
a0b9e27f 13347 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
13348 fi
13349
13350 case "${host}" in
13351 *-*-linux* )
2b5f62a0 13352 mgl_os="linux/gcc/glibc*"
21d1c967
GD
13353 ;;
13354 *-pc-msdosdjgpp )
13355 mgl_os=dos32/dj2
13356 ;;
13357 *)
a0b9e27f 13358 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 13359 esac
1e6feb95 13360
21d1c967 13361 mgl_lib_type=""
3fcdd07b 13362
21d1c967
GD
13363 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13364 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13365 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13366 mgl_lib_type=debug
13367 fi
13368 fi
13369 if test "x$mgl_lib_type" = x ; then
13370 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13371 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13372 mgl_lib_type=release
13373 else
a0b9e27f 13374 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
21d1c967 13375 fi
90dd450c 13376 fi
2224580a 13377
1d1b75ac
VZ
13378 wxUSE_UNIVERSAL="yes"
13379
21d1c967
GD
13380 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13381 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13382
90dd450c 13383 AFMINSTALL=afminstall
21d1c967
GD
13384 TOOLKIT=MGL
13385 GUIDIST=MGL_DIST
13386 fi
dad6c0ea 13387
21d1c967 13388 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 13389 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
54ab82b3 13390echo "configure:13391: checking for MicroWindows" >&5
21d1c967 13391 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
13392 echo "$ac_t""not found" 1>&6
13393 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 13394 else
a0b9e27f 13395 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 13396 fi
f6bcfd97 13397
21d1c967 13398 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 13399 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13400 else
a0b9e27f 13401 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13402 fi
0b2effe9 13403
21d1c967
GD
13404 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13405 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13406
1d1b75ac
VZ
13407 wxUSE_UNIVERSAL="yes"
13408
21d1c967
GD
13409 AFMINSTALL=afminstall
13410 TOOLKIT=MICROWIN
13411 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13412
13413 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13414 fi
f6bcfd97 13415
21d1c967 13416 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13417 # If we find X, set shell vars x_includes and x_libraries to the
13418# paths, otherwise set no_x=yes.
13419# Uses ac_ vars as temps to allow command line to override cache and checks.
13420# --without-x overrides everything else, but does not touch the cache.
13421echo $ac_n "checking for X""... $ac_c" 1>&6
54ab82b3 13422echo "configure:13423: checking for X" >&5
d8356fa3 13423
21d1c967
GD
13424# Check whether --with-x or --without-x was given.
13425if test "${with_x+set}" = set; then
13426 withval="$with_x"
a0b9e27f
MB
13427 :
13428fi
2224580a 13429
21d1c967
GD
13430# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13431if test "x$with_x" = xno; then
13432 # The user explicitly disabled X.
13433 have_x=disabled
13434else
13435 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13436 # Both variables are already set.
13437 have_x=yes
13438 else
a0b9e27f
MB
13439if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13440 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13441else
13442 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13443ac_x_includes=NO ac_x_libraries=NO
13444rm -fr conftestdir
13445if mkdir conftestdir; then
13446 cd conftestdir
21d1c967 13447 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13448 cat > Imakefile <<'EOF'
21d1c967
GD
13449acfindx:
13450 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13451EOF
21d1c967
GD
13452 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13454 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13455 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13456 for ac_extension in a so sl; do
13457 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13458 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13459 ac_im_usrlibdir=$ac_im_libdir; break
13460 fi
13461 done
13462 # Screen out bogus values from the imake configuration. They are
13463 # bogus both because they are the default anyway, and because
13464 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13465 case "$ac_im_incroot" in
21d1c967 13466 /usr/include) ;;
a0b9e27f 13467 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13468 esac
a0b9e27f 13469 case "$ac_im_usrlibdir" in
21d1c967 13470 /usr/lib | /lib) ;;
a0b9e27f 13471 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13472 esac
13473 fi
13474 cd ..
a0b9e27f 13475 rm -fr conftestdir
21d1c967 13476fi
10f2d63a 13477
a0b9e27f
MB
13478if test "$ac_x_includes" = NO; then
13479 # Guess where to find include files, by looking for this one X11 .h file.
13480 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13481
21d1c967 13482 # First, try using that file with no special directory specified.
a0b9e27f 13483cat > conftest.$ac_ext <<EOF
54ab82b3 13484#line 13485 "configure"
21d1c967 13485#include "confdefs.h"
a0b9e27f
MB
13486#include <$x_direct_test_include>
13487EOF
13488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 13489{ (eval echo configure:13490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13491if test -z "$ac_err"; then
13492 rm -rf conftest*
21d1c967
GD
13493 # We can compile using X headers with no special include directory.
13494ac_x_includes=
90dd450c 13495else
a0b9e27f
MB
13496 echo "$ac_err" >&5
13497 echo "configure: failed program was:" >&5
90dd450c 13498 cat conftest.$ac_ext >&5
a0b9e27f
MB
13499 rm -rf conftest*
13500 # Look for the header file in a standard set of common directories.
13501# Check X11 before X11Rn because it is often a symlink to the current release.
13502 for ac_dir in \
13503 /usr/X11/include \
13504 /usr/X11R6/include \
13505 /usr/X11R5/include \
13506 /usr/X11R4/include \
13507 \
13508 /usr/include/X11 \
13509 /usr/include/X11R6 \
13510 /usr/include/X11R5 \
13511 /usr/include/X11R4 \
13512 \
13513 /usr/local/X11/include \
13514 /usr/local/X11R6/include \
13515 /usr/local/X11R5/include \
13516 /usr/local/X11R4/include \
13517 \
13518 /usr/local/include/X11 \
13519 /usr/local/include/X11R6 \
13520 /usr/local/include/X11R5 \
13521 /usr/local/include/X11R4 \
13522 \
13523 /usr/X386/include \
13524 /usr/x386/include \
13525 /usr/XFree86/include/X11 \
13526 \
13527 /usr/include \
13528 /usr/local/include \
13529 /usr/unsupported/include \
13530 /usr/athena/include \
13531 /usr/local/x11r5/include \
13532 /usr/lpp/Xamples/include \
13533 \
13534 /usr/openwin/include \
13535 /usr/openwin/share/include \
13536 ; \
13537 do
13538 if test -r "$ac_dir/$x_direct_test_include"; then
13539 ac_x_includes=$ac_dir
13540 break
13541 fi
13542 done
3a922bb4 13543fi
a0b9e27f
MB
13544rm -f conftest*
13545fi # $ac_x_includes = NO
10f2d63a 13546
a0b9e27f 13547if test "$ac_x_libraries" = NO; then
21d1c967 13548 # Check for the libraries.
a0b9e27f
MB
13549
13550 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13551 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13552
21d1c967
GD
13553 # See if we find them without any special options.
13554 # Don't add to $LIBS permanently.
a0b9e27f
MB
13555 ac_save_LIBS="$LIBS"
13556 LIBS="-l$x_direct_test_library $LIBS"
13557cat > conftest.$ac_ext <<EOF
54ab82b3 13558#line 13559 "configure"
3a922bb4 13559#include "confdefs.h"
a0b9e27f
MB
13560
13561int main() {
13562${x_direct_test_function}()
13563; return 0; }
13564EOF
54ab82b3 13565if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13566 rm -rf conftest*
13567 LIBS="$ac_save_LIBS"
21d1c967
GD
13568# We can link X programs with no special library path.
13569ac_x_libraries=
3a922bb4 13570else
a0b9e27f
MB
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13573 rm -rf conftest*
13574 LIBS="$ac_save_LIBS"
13575# First see if replacing the include by lib works.
13576# Check X11 before X11Rn because it is often a symlink to the current release.
13577for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13578 /usr/X11/lib \
13579 /usr/X11R6/lib \
13580 /usr/X11R5/lib \
13581 /usr/X11R4/lib \
13582 \
13583 /usr/lib/X11 \
13584 /usr/lib/X11R6 \
13585 /usr/lib/X11R5 \
13586 /usr/lib/X11R4 \
13587 \
13588 /usr/local/X11/lib \
13589 /usr/local/X11R6/lib \
13590 /usr/local/X11R5/lib \
13591 /usr/local/X11R4/lib \
13592 \
13593 /usr/local/lib/X11 \
13594 /usr/local/lib/X11R6 \
13595 /usr/local/lib/X11R5 \
13596 /usr/local/lib/X11R4 \
13597 \
13598 /usr/X386/lib \
13599 /usr/x386/lib \
13600 /usr/XFree86/lib/X11 \
13601 \
13602 /usr/lib \
13603 /usr/local/lib \
13604 /usr/unsupported/lib \
13605 /usr/athena/lib \
13606 /usr/local/x11r5/lib \
13607 /usr/lpp/Xamples/lib \
13608 /lib/usr/lib/X11 \
13609 \
13610 /usr/openwin/lib \
13611 /usr/openwin/share/lib \
13612 ; \
21d1c967
GD
13613do
13614 for ac_extension in a so sl; do
a0b9e27f 13615 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13616 ac_x_libraries=$ac_dir
13617 break 2
13618 fi
13619 done
13620done
3a922bb4 13621fi
a0b9e27f
MB
13622rm -f conftest*
13623fi # $ac_x_libraries = NO
90dd450c 13624
a0b9e27f 13625if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13626 # Didn't find X anywhere. Cache the known absence of X.
13627 ac_cv_have_x="have_x=no"
13628else
13629 # Record where we found X for the cache.
13630 ac_cv_have_x="have_x=yes \
13631 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13632fi
21d1c967
GD
13633fi
13634 fi
13635 eval "$ac_cv_have_x"
13636fi # $with_x != no
90dd450c 13637
21d1c967 13638if test "$have_x" != yes; then
a0b9e27f 13639 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13640 no_x=yes
13641else
13642 # If each of the values was on the command line, it overrides each guess.
13643 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13644 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13645 # Update the cache value to reflect the command line values.
13646 ac_cv_have_x="have_x=yes \
13647 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13648 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13649fi
90dd450c 13650
21d1c967 13651if test "$no_x" = yes; then
90dd450c 13652 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13653 cat >> confdefs.h <<\EOF
90dd450c 13654#define X_DISPLAY_MISSING 1
a0b9e27f 13655EOF
90dd450c
VZ
13656
13657 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13658else
13659 if test -n "$x_includes"; then
13660 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13661 fi
3a922bb4 13662
90dd450c
VZ
13663 # It would also be nice to do this for all -L options, not just this one.
13664 if test -n "$x_libraries"; then
13665 X_LIBS="$X_LIBS -L$x_libraries"
13666 # For Solaris; some versions of Sun CC require a space after -R and
13667 # others require no space. Words are not sufficient . . . .
a0b9e27f 13668 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13669 "SunOS 5"*)
a0b9e27f 13670 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
54ab82b3 13671echo "configure:13672: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13672 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13673 cat > conftest.$ac_ext <<EOF
54ab82b3 13674#line 13675 "configure"
90dd450c
VZ
13675#include "confdefs.h"
13676
a0b9e27f 13677int main() {
90dd450c 13678
a0b9e27f
MB
13679; return 0; }
13680EOF
54ab82b3 13681if { (eval echo configure:13682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13682 rm -rf conftest*
90dd450c 13683 ac_R_nospace=yes
3a922bb4 13684else
a0b9e27f
MB
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 ac_R_nospace=no
3a922bb4 13689fi
a0b9e27f 13690rm -f conftest*
90dd450c 13691 if test $ac_R_nospace = yes; then
a0b9e27f 13692 echo "$ac_t""no" 1>&6
90dd450c
VZ
13693 X_LIBS="$X_LIBS -R$x_libraries"
13694 else
13695 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13696 cat > conftest.$ac_ext <<EOF
54ab82b3 13697#line 13698 "configure"
90dd450c 13698#include "confdefs.h"
3a922bb4 13699
a0b9e27f 13700int main() {
6f754473 13701
a0b9e27f
MB
13702; return 0; }
13703EOF
54ab82b3 13704if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13705 rm -rf conftest*
90dd450c
VZ
13706 ac_R_space=yes
13707else
a0b9e27f
MB
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 ac_R_space=no
90dd450c 13712fi
a0b9e27f 13713rm -f conftest*
90dd450c 13714 if test $ac_R_space = yes; then
a0b9e27f 13715 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13716 X_LIBS="$X_LIBS -R $x_libraries"
13717 else
a0b9e27f 13718 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13719 fi
13720 fi
a0b9e27f 13721 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13722 esac
13723 fi
13724
13725 # Check for system-dependent libraries X programs must link with.
13726 # Do this before checking for the system-independent R6 libraries
13727 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13728
90dd450c
VZ
13729 if test "$ISC" = yes; then
13730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13731 else
a0b9e27f
MB
13732 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13733 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13734 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13735 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
54ab82b3 13736echo "configure:13737: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13737ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13738if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13739 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13740else
a0b9e27f 13741 ac_save_LIBS="$LIBS"
247f5006 13742LIBS="-ldnet $LIBS"
a0b9e27f 13743cat > conftest.$ac_ext <<EOF
54ab82b3 13744#line 13745 "configure"
247f5006 13745#include "confdefs.h"
247f5006 13746/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13747/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13748 builtin and then its argument prototype would still apply. */
13749char dnet_ntoa();
13750
13751int main() {
13752dnet_ntoa()
13753; return 0; }
13754EOF
54ab82b3 13755if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13756 rm -rf conftest*
13757 eval "ac_cv_lib_$ac_lib_var=yes"
13758else
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 rm -rf conftest*
13762 eval "ac_cv_lib_$ac_lib_var=no"
13763fi
13764rm -f conftest*
13765LIBS="$ac_save_LIBS"
13766
13767fi
13768if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13769 echo "$ac_t""yes" 1>&6
90dd450c 13770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13771else
13772 echo "$ac_t""no" 1>&6
3a922bb4
RL
13773fi
13774
90dd450c 13775 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13776 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
54ab82b3 13777echo "configure:13778: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13778ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13780 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13781else
a0b9e27f 13782 ac_save_LIBS="$LIBS"
90dd450c 13783LIBS="-ldnet_stub $LIBS"
a0b9e27f 13784cat > conftest.$ac_ext <<EOF
54ab82b3 13785#line 13786 "configure"
90dd450c
VZ
13786#include "confdefs.h"
13787/* Override any gcc2 internal prototype to avoid an error. */
13788/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13789 builtin and then its argument prototype would still apply. */
13790char dnet_ntoa();
13791
13792int main() {
13793dnet_ntoa()
13794; return 0; }
13795EOF
54ab82b3 13796if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13797 rm -rf conftest*
13798 eval "ac_cv_lib_$ac_lib_var=yes"
13799else
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 rm -rf conftest*
13803 eval "ac_cv_lib_$ac_lib_var=no"
13804fi
13805rm -f conftest*
13806LIBS="$ac_save_LIBS"
13807
13808fi
13809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13810 echo "$ac_t""yes" 1>&6
90dd450c 13811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13812else
13813 echo "$ac_t""no" 1>&6
3a922bb4
RL
13814fi
13815
90dd450c 13816 fi
978f1259 13817
90dd450c
VZ
13818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13819 # to get the SysV transport functions.
a0b9e27f 13820 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13821 # needs -lnsl.
13822 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13823 # on Irix 5.2, according to dickey@clark.net.
13824 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
54ab82b3 13825echo "configure:13826: checking for gethostbyname" >&5
a0b9e27f
MB
13826if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13827 echo $ac_n "(cached) $ac_c" 1>&6
13828else
13829 cat > conftest.$ac_ext <<EOF
54ab82b3 13830#line 13831 "configure"
90dd450c
VZ
13831#include "confdefs.h"
13832/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13833 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13834#include <assert.h>
13835/* Override any gcc2 internal prototype to avoid an error. */
13836/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13837 builtin and then its argument prototype would still apply. */
13838char gethostbyname();
13839
13840int main() {
13841
90dd450c
VZ
13842/* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13846choke me
13847#else
a0b9e27f 13848gethostbyname();
90dd450c 13849#endif
978f1259 13850
a0b9e27f
MB
13851; return 0; }
13852EOF
54ab82b3 13853if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13854 rm -rf conftest*
13855 eval "ac_cv_func_gethostbyname=yes"
13856else
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 rm -rf conftest*
13860 eval "ac_cv_func_gethostbyname=no"
13861fi
13862rm -f conftest*
13863fi
13864
13865if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13866 echo "$ac_t""yes" 1>&6
13867 :
13868else
13869 echo "$ac_t""no" 1>&6
13870fi
698dcdb6 13871
90dd450c 13872 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13873 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
54ab82b3 13874echo "configure:13875: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13875ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13877 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13878else
a0b9e27f 13879 ac_save_LIBS="$LIBS"
90dd450c 13880LIBS="-lnsl $LIBS"
a0b9e27f 13881cat > conftest.$ac_ext <<EOF
54ab82b3 13882#line 13883 "configure"
90dd450c
VZ
13883#include "confdefs.h"
13884/* Override any gcc2 internal prototype to avoid an error. */
13885/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13886 builtin and then its argument prototype would still apply. */
13887char gethostbyname();
5c6fa7d2 13888
a0b9e27f
MB
13889int main() {
13890gethostbyname()
13891; return 0; }
13892EOF
54ab82b3 13893if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13894 rm -rf conftest*
13895 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13896else
a0b9e27f
MB
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13899 rm -rf conftest*
13900 eval "ac_cv_lib_$ac_lib_var=no"
13901fi
13902rm -f conftest*
13903LIBS="$ac_save_LIBS"
247f5006 13904
a0b9e27f
MB
13905fi
13906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13909else
13910 echo "$ac_t""no" 1>&6
90dd450c 13911fi
b12915c1 13912
90dd450c
VZ
13913 fi
13914
13915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13916 # socket/setsockopt and other routines are undefined under SCO ODT
13917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13918 # on later versions), says simon@lia.di.epfl.ch: it contains
13919 # gethostby* variants that don't use the nameserver (or something).
13920 # -lsocket must be given before -lnsl if both are needed.
13921 # We assume that if connect needs -lnsl, so does gethostbyname.
13922 echo $ac_n "checking for connect""... $ac_c" 1>&6
54ab82b3 13923echo "configure:13924: checking for connect" >&5
a0b9e27f
MB
13924if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13926else
13927 cat > conftest.$ac_ext <<EOF
54ab82b3 13928#line 13929 "configure"
55e80573 13929#include "confdefs.h"
90dd450c 13930/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13931 which can conflict with char connect(); below. */
90dd450c
VZ
13932#include <assert.h>
13933/* Override any gcc2 internal prototype to avoid an error. */
13934/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13935 builtin and then its argument prototype would still apply. */
13936char connect();
13937
13938int main() {
13939
90dd450c
VZ
13940/* The GNU C library defines this for functions which it implements
13941 to always fail with ENOSYS. Some functions are actually named
13942 something starting with __ and the normal name is an alias. */
13943#if defined (__stub_connect) || defined (__stub___connect)
13944choke me
13945#else
a0b9e27f 13946connect();
90dd450c
VZ
13947#endif
13948
a0b9e27f
MB
13949; return 0; }
13950EOF
54ab82b3 13951if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13952 rm -rf conftest*
13953 eval "ac_cv_func_connect=yes"
13954else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_func_connect=no"
13959fi
13960rm -f conftest*
13961fi
13962
13963if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13964 echo "$ac_t""yes" 1>&6
13965 :
13966else
13967 echo "$ac_t""no" 1>&6
13968fi
55e80573 13969
90dd450c 13970 if test $ac_cv_func_connect = no; then
a0b9e27f 13971 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
54ab82b3 13972echo "configure:13973: checking for connect in -lsocket" >&5
a0b9e27f
MB
13973ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13974if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13975 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13976else
a0b9e27f 13977 ac_save_LIBS="$LIBS"
90dd450c 13978LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 13979cat > conftest.$ac_ext <<EOF
54ab82b3 13980#line 13981 "configure"
90dd450c
VZ
13981#include "confdefs.h"
13982/* Override any gcc2 internal prototype to avoid an error. */
13983/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13984 builtin and then its argument prototype would still apply. */
13985char connect();
13986
13987int main() {
13988connect()
13989; return 0; }
13990EOF
54ab82b3 13991if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13992 rm -rf conftest*
13993 eval "ac_cv_lib_$ac_lib_var=yes"
13994else
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 rm -rf conftest*
13998 eval "ac_cv_lib_$ac_lib_var=no"
13999fi
14000rm -f conftest*
14001LIBS="$ac_save_LIBS"
14002
14003fi
14004if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14005 echo "$ac_t""yes" 1>&6
90dd450c 14006 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14007else
14008 echo "$ac_t""no" 1>&6
90dd450c 14009fi
77e13408 14010
90dd450c 14011 fi
25d0687a 14012
a0b9e27f
MB
14013 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14014 echo $ac_n "checking for remove""... $ac_c" 1>&6
54ab82b3 14015echo "configure:14016: checking for remove" >&5
a0b9e27f
MB
14016if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14017 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14018else
a0b9e27f 14019 cat > conftest.$ac_ext <<EOF
54ab82b3 14020#line 14021 "configure"
90dd450c
VZ
14021#include "confdefs.h"
14022/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14023 which can conflict with char remove(); below. */
90dd450c
VZ
14024#include <assert.h>
14025/* Override any gcc2 internal prototype to avoid an error. */
14026/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14027 builtin and then its argument prototype would still apply. */
14028char remove();
14029
14030int main() {
14031
90dd450c
VZ
14032/* The GNU C library defines this for functions which it implements
14033 to always fail with ENOSYS. Some functions are actually named
14034 something starting with __ and the normal name is an alias. */
14035#if defined (__stub_remove) || defined (__stub___remove)
14036choke me
14037#else
a0b9e27f 14038remove();
90dd450c 14039#endif
55e80573 14040
a0b9e27f
MB
14041; return 0; }
14042EOF
54ab82b3 14043if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14044 rm -rf conftest*
14045 eval "ac_cv_func_remove=yes"
14046else
14047 echo "configure: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 rm -rf conftest*
14050 eval "ac_cv_func_remove=no"
14051fi
14052rm -f conftest*
14053fi
14054
14055if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14057 :
14058else
14059 echo "$ac_t""no" 1>&6
14060fi
10f2d63a 14061
90dd450c 14062 if test $ac_cv_func_remove = no; then
a0b9e27f 14063 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
54ab82b3 14064echo "configure:14065: checking for remove in -lposix" >&5
a0b9e27f
MB
14065ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14068else
a0b9e27f 14069 ac_save_LIBS="$LIBS"
90dd450c 14070LIBS="-lposix $LIBS"
a0b9e27f 14071cat > conftest.$ac_ext <<EOF
54ab82b3 14072#line 14073 "configure"
90dd450c
VZ
14073#include "confdefs.h"
14074/* Override any gcc2 internal prototype to avoid an error. */
14075/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14076 builtin and then its argument prototype would still apply. */
14077char remove();
14078
14079int main() {
14080remove()
14081; return 0; }
14082EOF
54ab82b3 14083if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14084 rm -rf conftest*
14085 eval "ac_cv_lib_$ac_lib_var=yes"
14086else
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 eval "ac_cv_lib_$ac_lib_var=no"
14091fi
14092rm -f conftest*
14093LIBS="$ac_save_LIBS"
14094
14095fi
14096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14097 echo "$ac_t""yes" 1>&6
90dd450c 14098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14099else
14100 echo "$ac_t""no" 1>&6
90dd450c 14101fi
f6bcfd97 14102
6fa882bd
RR
14103 fi
14104
90dd450c 14105 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14106 echo $ac_n "checking for shmat""... $ac_c" 1>&6
54ab82b3 14107echo "configure:14108: checking for shmat" >&5
a0b9e27f
MB
14108if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 14110else
a0b9e27f 14111 cat > conftest.$ac_ext <<EOF
54ab82b3 14112#line 14113 "configure"
90dd450c
VZ
14113#include "confdefs.h"
14114/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14115 which can conflict with char shmat(); below. */
90dd450c
VZ
14116#include <assert.h>
14117/* Override any gcc2 internal prototype to avoid an error. */
14118/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14119 builtin and then its argument prototype would still apply. */
14120char shmat();
14121
14122int main() {
14123
90dd450c
VZ
14124/* The GNU C library defines this for functions which it implements
14125 to always fail with ENOSYS. Some functions are actually named
14126 something starting with __ and the normal name is an alias. */
14127#if defined (__stub_shmat) || defined (__stub___shmat)
14128choke me
14129#else
a0b9e27f 14130shmat();
90dd450c 14131#endif
10f2d63a 14132
a0b9e27f
MB
14133; return 0; }
14134EOF
54ab82b3 14135if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14136 rm -rf conftest*
14137 eval "ac_cv_func_shmat=yes"
14138else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 eval "ac_cv_func_shmat=no"
14143fi
14144rm -f conftest*
14145fi
14146
14147if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14148 echo "$ac_t""yes" 1>&6
14149 :
14150else
14151 echo "$ac_t""no" 1>&6
14152fi
d08b457b 14153
90dd450c 14154 if test $ac_cv_func_shmat = no; then
a0b9e27f 14155 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
54ab82b3 14156echo "configure:14157: checking for shmat in -lipc" >&5
a0b9e27f
MB
14157ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 14160else
a0b9e27f 14161 ac_save_LIBS="$LIBS"
90dd450c 14162LIBS="-lipc $LIBS"
a0b9e27f 14163cat > conftest.$ac_ext <<EOF
54ab82b3 14164#line 14165 "configure"
90dd450c 14165#include "confdefs.h"
8284b0c5 14166/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 14167/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14168 builtin and then its argument prototype would still apply. */
14169char shmat();
14170
14171int main() {
14172shmat()
14173; return 0; }
14174EOF
54ab82b3 14175if { (eval echo configure:14176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14176 rm -rf conftest*
14177 eval "ac_cv_lib_$ac_lib_var=yes"
14178else
14179 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14181 rm -rf conftest*
14182 eval "ac_cv_lib_$ac_lib_var=no"
14183fi
14184rm -f conftest*
14185LIBS="$ac_save_LIBS"
14186
14187fi
14188if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14189 echo "$ac_t""yes" 1>&6
90dd450c 14190 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14191else
14192 echo "$ac_t""no" 1>&6
d08b457b
GD
14193fi
14194
d558c907 14195 fi
90dd450c 14196 fi
3a922bb4 14197
90dd450c 14198 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14199 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
14200 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14201 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14202 # check for ICE first), but we must link in the order -lSM -lICE or
14203 # we get undefined symbols. So assume we have SM if we have ICE.
14204 # These have to be linked with before -lX11, unlike the other
14205 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14206 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14207 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
54ab82b3 14208echo "configure:14209: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14209ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14211 echo $ac_n "(cached) $ac_c" 1>&6
14212else
14213 ac_save_LIBS="$LIBS"
f09359cf 14214LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14215cat > conftest.$ac_ext <<EOF
54ab82b3 14216#line 14217 "configure"
9cfadba2 14217#include "confdefs.h"
90dd450c
VZ
14218/* Override any gcc2 internal prototype to avoid an error. */
14219/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14220 builtin and then its argument prototype would still apply. */
14221char IceConnectionNumber();
14222
14223int main() {
14224IceConnectionNumber()
14225; return 0; }
14226EOF
54ab82b3 14227if { (eval echo configure:14228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14228 rm -rf conftest*
14229 eval "ac_cv_lib_$ac_lib_var=yes"
14230else
14231 echo "configure: failed program was:" >&5
14232 cat conftest.$ac_ext >&5
14233 rm -rf conftest*
14234 eval "ac_cv_lib_$ac_lib_var=no"
14235fi
14236rm -f conftest*
14237LIBS="$ac_save_LIBS"
14238
14239fi
14240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14241 echo "$ac_t""yes" 1>&6
90dd450c 14242 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14243else
14244 echo "$ac_t""no" 1>&6
9cfadba2 14245fi
10f2d63a 14246
a0b9e27f 14247 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
14248
14249fi
14250
8284b0c5 14251
90dd450c 14252 if test "$no_x" = "yes"; then
a0b9e27f 14253 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
14254 fi
14255
14256 GUI_TK_LIBRARY="$X_LIBS"
14257 TOOLKIT_INCLUDE="$X_CFLAGS"
14258 AFMINSTALL=afminstall
14259 COMPILED_X_PROGRAM=0
14260
21d1c967 14261 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 14262 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
54ab82b3 14263echo "configure:14264: checking for MicroWindows/NanoX distribution" >&5
21d1c967 14264 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
14265 echo "$ac_t""not found" 1>&6
14266 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 14267 else
a0b9e27f
MB
14268 echo "$ac_t""$MICROWIN" 1>&6
14269 cat >> confdefs.h <<\EOF
21d1c967 14270#define wxUSE_NANOX 1
a0b9e27f 14271EOF
21d1c967 14272
90dd450c
VZ
14273 fi
14274 fi
14275
14276 xpm_link=
a0b9e27f 14277 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
54ab82b3 14278echo "configure:14279: checking for Xpm library" >&5
a0b9e27f 14279
90dd450c 14280ac_find_libraries=
2b5f62a0 14281for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14282 do
14283 for ac_extension in a so sl dylib; do
14284 if test -f "$ac_dir/libXpm.$ac_extension"; then
14285 ac_find_libraries=$ac_dir
14286 break 2
14287 fi
14288 done
14289 done
14290
14291 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14292
90dd450c
VZ
14293 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14294 result=$?
14295 if test $result = 0; then
14296 ac_path_to_link=""
14297 else
14298 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 14299 fi
90dd450c 14300
21d1c967
GD
14301 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14302 xpm_link=" -lXpm"
a0b9e27f 14303 cat >> confdefs.h <<\EOF
21d1c967 14304#define wxHAVE_LIB_XPM 1
a0b9e27f 14305EOF
90dd450c 14306
a0b9e27f 14307 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14308 else
a0b9e27f 14309 cat > conftest.$ac_ext <<EOF
54ab82b3 14310#line 14311 "configure"
21d1c967 14311#include "confdefs.h"
90dd450c 14312
21d1c967 14313 #include <X11/xpm.h>
a0b9e27f
MB
14314
14315int main() {
6f72b082 14316
21d1c967
GD
14317 int version;
14318 version = XpmLibraryVersion();
a0b9e27f
MB
14319
14320; return 0; }
14321EOF
54ab82b3 14322if { (eval echo configure:14323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14323 rm -rf conftest*
14324
21d1c967 14325 xpm_link=" -lXpm"
a0b9e27f 14326 cat >> confdefs.h <<\EOF
21d1c967 14327#define wxHAVE_LIB_XPM 1
a0b9e27f 14328EOF
90dd450c 14329
a0b9e27f 14330 echo "$ac_t""found in default search path" 1>&6
21d1c967 14331 COMPILED_X_PROGRAM=0
a0b9e27f 14332
21d1c967 14333else
a0b9e27f
MB
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14336 rm -rf conftest*
14337
14338 echo "$ac_t""no" 1>&6
14339 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14340
14341
6f72b082 14342fi
a0b9e27f 14343rm -f conftest*
21d1c967 14344 fi
90dd450c 14345
2b5f62a0
VZ
14346 if test "$wxUSE_UNICODE" = "yes"; then
14347
14348 succeeded=no
90dd450c 14349
2b5f62a0
VZ
14350 if test -z "$PKG_CONFIG"; then
14351 # Extract the first word of "pkg-config", so it can be a program name with args.
14352set dummy pkg-config; ac_word=$2
14353echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 14354echo "configure:14355: checking for $ac_word" >&5
2b5f62a0 14355if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
a0b9e27f
MB
14356 echo $ac_n "(cached) $ac_c" 1>&6
14357else
2b5f62a0
VZ
14358 case "$PKG_CONFIG" in
14359 /*)
14360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14361 ;;
14362 ?:/*)
14363 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14364 ;;
14365 *)
14366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14367 ac_dummy="$PATH"
14368 for ac_dir in $ac_dummy; do
14369 test -z "$ac_dir" && ac_dir=.
14370 if test -f $ac_dir/$ac_word; then
14371 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14372 break
14373 fi
14374 done
14375 IFS="$ac_save_ifs"
14376 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14377 ;;
14378esac
14379fi
14380PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14381if test -n "$PKG_CONFIG"; then
14382 echo "$ac_t""$PKG_CONFIG" 1>&6
14383else
14384 echo "$ac_t""no" 1>&6
14385fi
14386
14387 fi
14388
14389 if test "$PKG_CONFIG" = "no" ; then
14390 echo "*** The pkg-config script could not be found. Make sure it is"
14391 echo "*** in your path, or set the PKG_CONFIG environment variable"
14392 echo "*** to the full path to pkg-config."
14393 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14394 else
14395 PKG_CONFIG_MIN_VERSION=0.9.0
14396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14397 echo $ac_n "checking for pangox""... $ac_c" 1>&6
54ab82b3 14398echo "configure:14399: checking for pangox" >&5
2b5f62a0
VZ
14399
14400 if $PKG_CONFIG --exists "pangox" ; then
14401 echo "$ac_t""yes" 1>&6
14402 succeeded=yes
14403
14404 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
54ab82b3 14405echo "configure:14406: checking PANGOX_CFLAGS" >&5
2b5f62a0
VZ
14406 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14407 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14408
14409 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
54ab82b3 14410echo "configure:14411: checking PANGOX_LIBS" >&5
2b5f62a0
VZ
14411 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14412 echo "$ac_t""$PANGOX_LIBS" 1>&6
14413 else
14414 PANGOX_CFLAGS=""
14415 PANGOX_LIBS=""
14416 ## If we have a custom action on failure, don't print errors, but
14417 ## do set a variable so people can do so.
14418 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14419
14420 fi
14421
14422
14423
14424 else
14425 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14426 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14427 fi
14428 fi
14429
14430 if test $succeeded = yes; then
14431
14432 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14433 LIBS="$LIBS $PANGOX_LIBS"
14434
14435 else
14436
14437 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14438
14439
14440 fi
14441
14442
14443 succeeded=no
14444
14445 if test -z "$PKG_CONFIG"; then
14446 # Extract the first word of "pkg-config", so it can be a program name with args.
14447set dummy pkg-config; ac_word=$2
14448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 14449echo "configure:14450: checking for $ac_word" >&5
2b5f62a0
VZ
14450if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
14452else
14453 case "$PKG_CONFIG" in
14454 /*)
14455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14456 ;;
14457 ?:/*)
14458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14459 ;;
14460 *)
14461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14462 ac_dummy="$PATH"
14463 for ac_dir in $ac_dummy; do
14464 test -z "$ac_dir" && ac_dir=.
14465 if test -f $ac_dir/$ac_word; then
14466 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14467 break
14468 fi
14469 done
14470 IFS="$ac_save_ifs"
14471 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14472 ;;
14473esac
14474fi
14475PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14476if test -n "$PKG_CONFIG"; then
14477 echo "$ac_t""$PKG_CONFIG" 1>&6
14478else
14479 echo "$ac_t""no" 1>&6
14480fi
14481
14482 fi
14483
14484 if test "$PKG_CONFIG" = "no" ; then
14485 echo "*** The pkg-config script could not be found. Make sure it is"
14486 echo "*** in your path, or set the PKG_CONFIG environment variable"
14487 echo "*** to the full path to pkg-config."
14488 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14489 else
14490 PKG_CONFIG_MIN_VERSION=0.9.0
14491 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14492 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
54ab82b3 14493echo "configure:14494: checking for pangoft2" >&5
2b5f62a0
VZ
14494
14495 if $PKG_CONFIG --exists "pangoft2" ; then
14496 echo "$ac_t""yes" 1>&6
14497 succeeded=yes
14498
14499 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
54ab82b3 14500echo "configure:14501: checking PANGOFT2_CFLAGS" >&5
2b5f62a0
VZ
14501 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14502 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14503
14504 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
54ab82b3 14505echo "configure:14506: checking PANGOFT2_LIBS" >&5
2b5f62a0
VZ
14506 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14507 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14508 else
14509 PANGOFT2_CFLAGS=""
14510 PANGOFT2_LIBS=""
14511 ## If we have a custom action on failure, don't print errors, but
14512 ## do set a variable so people can do so.
14513 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14514
14515 fi
14516
14517
14518
14519 else
14520 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14521 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14522 fi
14523 fi
14524
14525 if test $succeeded = yes; then
14526
14527 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14528 LIBS="$LIBS $PANGOFT2_LIBS"
14529
14530 else
14531
14532 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14533 wxUSE_PRINTING_ARCHITECTURE="no"
14534
14535
14536 fi
14537
14538
14539 succeeded=no
14540
14541 if test -z "$PKG_CONFIG"; then
14542 # Extract the first word of "pkg-config", so it can be a program name with args.
14543set dummy pkg-config; ac_word=$2
14544echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 14545echo "configure:14546: checking for $ac_word" >&5
2b5f62a0
VZ
14546if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14548else
14549 case "$PKG_CONFIG" in
14550 /*)
14551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14552 ;;
14553 ?:/*)
14554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14555 ;;
14556 *)
14557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14558 ac_dummy="$PATH"
14559 for ac_dir in $ac_dummy; do
14560 test -z "$ac_dir" && ac_dir=.
14561 if test -f $ac_dir/$ac_word; then
14562 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14563 break
14564 fi
14565 done
14566 IFS="$ac_save_ifs"
14567 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14568 ;;
14569esac
14570fi
14571PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14572if test -n "$PKG_CONFIG"; then
14573 echo "$ac_t""$PKG_CONFIG" 1>&6
14574else
14575 echo "$ac_t""no" 1>&6
14576fi
14577
14578 fi
14579
14580 if test "$PKG_CONFIG" = "no" ; then
14581 echo "*** The pkg-config script could not be found. Make sure it is"
14582 echo "*** in your path, or set the PKG_CONFIG environment variable"
14583 echo "*** to the full path to pkg-config."
14584 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14585 else
14586 PKG_CONFIG_MIN_VERSION=0.9.0
14587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14588 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
54ab82b3 14589echo "configure:14590: checking for pangoxft" >&5
2b5f62a0
VZ
14590
14591 if $PKG_CONFIG --exists "pangoxft" ; then
14592 echo "$ac_t""yes" 1>&6
14593 succeeded=yes
14594
14595 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
54ab82b3 14596echo "configure:14597: checking PANGOXFT_CFLAGS" >&5
2b5f62a0
VZ
14597 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14598 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14599
14600 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
54ab82b3 14601echo "configure:14602: checking PANGOXFT_LIBS" >&5
2b5f62a0
VZ
14602 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14603 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14604 else
14605 PANGOXFT_CFLAGS=""
14606 PANGOXFT_LIBS=""
14607 ## If we have a custom action on failure, don't print errors, but
14608 ## do set a variable so people can do so.
14609 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14610
14611 fi
14612
14613
14614
14615 else
14616 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14617 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14618 fi
14619 fi
14620
14621 if test $succeeded = yes; then
14622
14623 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14624 LIBS="$LIBS $PANGOXFT_LIBS"
14625
14626 else
14627
14628 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14629
14630
14631 fi
14632
14633 fi
14634
14635 wxUSE_UNIVERSAL="yes"
14636
14637 if test "$wxUSE_NANOX" = "yes"; then
14638 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14639 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"
14640 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14641 else
14642 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14643 fi
14644
14645 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14646 TOOLKIT=X11
14647 GUIDIST=X11_DIST
14648 fi
14649
14650 if test "$wxUSE_WINE" = 1; then
14651 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
14652echo $ac_n "checking for windows.h""... $ac_c" 1>&6
54ab82b3 14653echo "configure:14654: checking for windows.h" >&5
2b5f62a0
VZ
14654if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14655 echo $ac_n "(cached) $ac_c" 1>&6
14656else
14657 cat > conftest.$ac_ext <<EOF
54ab82b3 14658#line 14659 "configure"
2b5f62a0
VZ
14659#include "confdefs.h"
14660#include <windows.h>
14661EOF
14662ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 14663{ (eval echo configure:14664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2b5f62a0
VZ
14664ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14665if test -z "$ac_err"; then
14666 rm -rf conftest*
14667 eval "ac_cv_header_$ac_safe=yes"
14668else
14669 echo "$ac_err" >&5
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 rm -rf conftest*
14673 eval "ac_cv_header_$ac_safe=no"
14674fi
14675rm -f conftest*
10f2d63a 14676fi
a0b9e27f
MB
14677if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14678 echo "$ac_t""yes" 1>&6
21d1c967
GD
14679 :
14680else
a0b9e27f 14681 echo "$ac_t""no" 1>&6
21d1c967 14682
a0b9e27f
MB
14683 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
14684
5c6fa7d2 14685fi
7b4a847f 14686
5c6fa7d2 14687
8284b0c5 14688 xpm_link=
a0b9e27f 14689 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
54ab82b3 14690echo "configure:14691: checking for Xpm library" >&5
a0b9e27f 14691
90dd450c 14692ac_find_libraries=
2b5f62a0 14693for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14694 do
14695 for ac_extension in a so sl dylib; do
21d1c967 14696 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
14697 ac_find_libraries=$ac_dir
14698 break 2
14699 fi
14700 done
14701 done
14702
21d1c967
GD
14703 if test "$ac_find_libraries" != "" ; then
14704 GUI_TK_LIBRARY="-L$ac_find_libraries"
14705 xpm_link=" -lXpm"
a0b9e27f 14706 cat >> confdefs.h <<\EOF
21d1c967 14707#define wxHAVE_LIB_XPM 1
a0b9e27f 14708EOF
90dd450c 14709
a0b9e27f 14710 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14711 else
a0b9e27f
MB
14712 echo "$ac_t""no" 1>&6
14713 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
21d1c967
GD
14714 fi
14715
14716 mesa_link=
a0b9e27f 14717 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
54ab82b3 14718echo "configure:14719: checking for Mesa library" >&5
a0b9e27f 14719
90dd450c 14720ac_find_libraries=
2b5f62a0 14721for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
14722 do
14723 for ac_extension in a so sl dylib; do
14724 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14725 ac_find_libraries=$ac_dir
14726 break 2
14727 fi
14728 done
14729 done
14730
21d1c967
GD
14731 if test "$ac_find_libraries" != "" ; then
14732 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14733 mesa_link=" -lMesaGL"
a0b9e27f 14734 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14735 else
3bce6687
JS
14736 mesa_link=""
14737 echo "$ac_t""no" 1>&6
14738 echo "configure: warning: library will be compiled without Mesa support" 1>&2
21d1c967
GD
14739 fi
14740
14741 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14742 TOOLKIT=MSW
14743 GUIDIST=MSW_DIST
f346733b 14744 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WINE__"
21d1c967
GD
14745 fi
14746
14747 if test "$wxUSE_MOTIF" = 1; then
14748 if test "$no_x" = yes; then
14749 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14750 cat >> confdefs.h <<\EOF
21d1c967 14751#define X_DISPLAY_MISSING 1
a0b9e27f 14752EOF
21d1c967
GD
14753
14754 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14755else
14756 if test -n "$x_includes"; then
14757 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14758 fi
14759
21d1c967
GD
14760 # It would also be nice to do this for all -L options, not just this one.
14761 if test -n "$x_libraries"; then
14762 X_LIBS="$X_LIBS -L$x_libraries"
14763 # For Solaris; some versions of Sun CC require a space after -R and
14764 # others require no space. Words are not sufficient . . . .
a0b9e27f 14765 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14766 "SunOS 5"*)
a0b9e27f 14767 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
54ab82b3 14768echo "configure:14769: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14769 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14770 cat > conftest.$ac_ext <<EOF
54ab82b3 14771#line 14772 "configure"
21d1c967
GD
14772#include "confdefs.h"
14773
a0b9e27f 14774int main() {
21d1c967 14775
a0b9e27f
MB
14776; return 0; }
14777EOF
54ab82b3 14778if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14779 rm -rf conftest*
21d1c967 14780 ac_R_nospace=yes
698dcdb6 14781else
a0b9e27f
MB
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14784 rm -rf conftest*
14785 ac_R_nospace=no
10f2d63a 14786fi
a0b9e27f 14787rm -f conftest*
21d1c967 14788 if test $ac_R_nospace = yes; then
a0b9e27f 14789 echo "$ac_t""no" 1>&6
21d1c967
GD
14790 X_LIBS="$X_LIBS -R$x_libraries"
14791 else
14792 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14793 cat > conftest.$ac_ext <<EOF
54ab82b3 14794#line 14795 "configure"
21d1c967 14795#include "confdefs.h"
10f2d63a 14796
a0b9e27f 14797int main() {
f0c87536 14798
a0b9e27f
MB
14799; return 0; }
14800EOF
54ab82b3 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
GD
14803 ac_R_space=yes
14804else
a0b9e27f
MB
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14807 rm -rf conftest*
14808 ac_R_space=no
21d1c967 14809fi
a0b9e27f 14810rm -f conftest*
21d1c967 14811 if test $ac_R_space = yes; then
a0b9e27f 14812 echo "$ac_t""yes" 1>&6
21d1c967
GD
14813 X_LIBS="$X_LIBS -R $x_libraries"
14814 else
a0b9e27f 14815 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14816 fi
14817 fi
a0b9e27f 14818 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14819 esac
14820 fi
90dd450c 14821
21d1c967
GD
14822 # Check for system-dependent libraries X programs must link with.
14823 # Do this before checking for the system-independent R6 libraries
14824 # (-lICE), since we may need -lsocket or whatever for X linking.
14825
14826 if test "$ISC" = yes; then
14827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14828 else
a0b9e27f
MB
14829 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14830 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14831 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14832 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
54ab82b3 14833echo "configure:14834: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14834ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14836 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14837else
a0b9e27f 14838 ac_save_LIBS="$LIBS"
247f5006 14839LIBS="-ldnet $LIBS"
a0b9e27f 14840cat > conftest.$ac_ext <<EOF
54ab82b3 14841#line 14842 "configure"
247f5006 14842#include "confdefs.h"
247f5006 14843/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14844/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14845 builtin and then its argument prototype would still apply. */
14846char dnet_ntoa();
14847
14848int main() {
14849dnet_ntoa()
14850; return 0; }
14851EOF
54ab82b3 14852if { (eval echo configure:14853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14853 rm -rf conftest*
14854 eval "ac_cv_lib_$ac_lib_var=yes"
14855else
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14858 rm -rf conftest*
14859 eval "ac_cv_lib_$ac_lib_var=no"
14860fi
14861rm -f conftest*
14862LIBS="$ac_save_LIBS"
14863
14864fi
14865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14866 echo "$ac_t""yes" 1>&6
21d1c967 14867 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14868else
14869 echo "$ac_t""no" 1>&6
0fb0dd83 14870fi
0fb0dd83 14871
21d1c967 14872 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14873 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
54ab82b3 14874echo "configure:14875: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14875ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14877 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14878else
a0b9e27f 14879 ac_save_LIBS="$LIBS"
21d1c967 14880LIBS="-ldnet_stub $LIBS"
a0b9e27f 14881cat > conftest.$ac_ext <<EOF
54ab82b3 14882#line 14883 "configure"
21d1c967
GD
14883#include "confdefs.h"
14884/* Override any gcc2 internal prototype to avoid an error. */
14885/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14886 builtin and then its argument prototype would still apply. */
14887char dnet_ntoa();
14888
14889int main() {
14890dnet_ntoa()
14891; return 0; }
14892EOF
54ab82b3 14893if { (eval echo configure:14894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14894 rm -rf conftest*
14895 eval "ac_cv_lib_$ac_lib_var=yes"
14896else
14897 echo "configure: failed program was:" >&5
14898 cat conftest.$ac_ext >&5
14899 rm -rf conftest*
14900 eval "ac_cv_lib_$ac_lib_var=no"
14901fi
14902rm -f conftest*
14903LIBS="$ac_save_LIBS"
14904
14905fi
14906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14907 echo "$ac_t""yes" 1>&6
21d1c967 14908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14909else
14910 echo "$ac_t""no" 1>&6
90dd450c
VZ
14911fi
14912
21d1c967 14913 fi
90dd450c 14914
21d1c967
GD
14915 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14916 # to get the SysV transport functions.
a0b9e27f 14917 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14918 # needs -lnsl.
14919 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14920 # on Irix 5.2, according to dickey@clark.net.
14921 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
54ab82b3 14922echo "configure:14923: checking for gethostbyname" >&5
a0b9e27f
MB
14923if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14924 echo $ac_n "(cached) $ac_c" 1>&6
14925else
14926 cat > conftest.$ac_ext <<EOF
54ab82b3 14927#line 14928 "configure"
21d1c967
GD
14928#include "confdefs.h"
14929/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14930 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14931#include <assert.h>
14932/* Override any gcc2 internal prototype to avoid an error. */
14933/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14934 builtin and then its argument prototype would still apply. */
14935char gethostbyname();
14936
14937int main() {
14938
21d1c967
GD
14939/* The GNU C library defines this for functions which it implements
14940 to always fail with ENOSYS. Some functions are actually named
14941 something starting with __ and the normal name is an alias. */
14942#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14943choke me
14944#else
a0b9e27f 14945gethostbyname();
21d1c967 14946#endif
90dd450c 14947
a0b9e27f
MB
14948; return 0; }
14949EOF
54ab82b3 14950if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14951 rm -rf conftest*
14952 eval "ac_cv_func_gethostbyname=yes"
14953else
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14956 rm -rf conftest*
14957 eval "ac_cv_func_gethostbyname=no"
14958fi
14959rm -f conftest*
14960fi
14961
14962if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14963 echo "$ac_t""yes" 1>&6
14964 :
14965else
14966 echo "$ac_t""no" 1>&6
14967fi
90dd450c 14968
21d1c967 14969 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14970 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
54ab82b3 14971echo "configure:14972: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14972ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14973if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14974 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14975else
a0b9e27f 14976 ac_save_LIBS="$LIBS"
21d1c967 14977LIBS="-lnsl $LIBS"
a0b9e27f 14978cat > conftest.$ac_ext <<EOF
54ab82b3 14979#line 14980 "configure"
21d1c967
GD
14980#include "confdefs.h"
14981/* Override any gcc2 internal prototype to avoid an error. */
14982/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14983 builtin and then its argument prototype would still apply. */
14984char gethostbyname();
5c6fa7d2 14985
a0b9e27f
MB
14986int main() {
14987gethostbyname()
14988; return 0; }
14989EOF
54ab82b3 14990if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14991 rm -rf conftest*
14992 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14993else
a0b9e27f
MB
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -rf conftest*
14997 eval "ac_cv_lib_$ac_lib_var=no"
14998fi
14999rm -f conftest*
15000LIBS="$ac_save_LIBS"
247f5006 15001
a0b9e27f
MB
15002fi
15003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15004 echo "$ac_t""yes" 1>&6
15005 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15006else
15007 echo "$ac_t""no" 1>&6
21d1c967 15008fi
90dd450c 15009
90dd450c
VZ
15010 fi
15011
21d1c967
GD
15012 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15013 # socket/setsockopt and other routines are undefined under SCO ODT
15014 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
15015 # on later versions), says simon@lia.di.epfl.ch: it contains
15016 # gethostby* variants that don't use the nameserver (or something).
15017 # -lsocket must be given before -lnsl if both are needed.
15018 # We assume that if connect needs -lnsl, so does gethostbyname.
15019 echo $ac_n "checking for connect""... $ac_c" 1>&6
54ab82b3 15020echo "configure:15021: checking for connect" >&5
a0b9e27f
MB
15021if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15022 echo $ac_n "(cached) $ac_c" 1>&6
15023else
15024 cat > conftest.$ac_ext <<EOF
54ab82b3 15025#line 15026 "configure"
21d1c967
GD
15026#include "confdefs.h"
15027/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15028 which can conflict with char connect(); below. */
21d1c967
GD
15029#include <assert.h>
15030/* Override any gcc2 internal prototype to avoid an error. */
15031/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15032 builtin and then its argument prototype would still apply. */
15033char connect();
15034
15035int main() {
15036
21d1c967
GD
15037/* The GNU C library defines this for functions which it implements
15038 to always fail with ENOSYS. Some functions are actually named
15039 something starting with __ and the normal name is an alias. */
15040#if defined (__stub_connect) || defined (__stub___connect)
15041choke me
15042#else
a0b9e27f 15043connect();
21d1c967 15044#endif
90dd450c 15045
a0b9e27f
MB
15046; return 0; }
15047EOF
54ab82b3 15048if { (eval echo configure:15049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15049 rm -rf conftest*
15050 eval "ac_cv_func_connect=yes"
15051else
15052 echo "configure: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15054 rm -rf conftest*
15055 eval "ac_cv_func_connect=no"
15056fi
15057rm -f conftest*
15058fi
15059
15060if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15061 echo "$ac_t""yes" 1>&6
15062 :
15063else
15064 echo "$ac_t""no" 1>&6
15065fi
1f8ae82f 15066
21d1c967 15067 if test $ac_cv_func_connect = no; then
a0b9e27f 15068 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
54ab82b3 15069echo "configure:15070: checking for connect in -lsocket" >&5
a0b9e27f
MB
15070ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15071if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15072 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 15073else
a0b9e27f 15074 ac_save_LIBS="$LIBS"
21d1c967 15075LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 15076cat > conftest.$ac_ext <<EOF
54ab82b3 15077#line 15078 "configure"
0fbb762e 15078#include "confdefs.h"
21d1c967
GD
15079/* Override any gcc2 internal prototype to avoid an error. */
15080/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15081 builtin and then its argument prototype would still apply. */
15082char connect();
15083
15084int main() {
15085connect()
15086; return 0; }
15087EOF
54ab82b3 15088if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15089 rm -rf conftest*
15090 eval "ac_cv_lib_$ac_lib_var=yes"
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_lib_$ac_lib_var=no"
15096fi
15097rm -f conftest*
15098LIBS="$ac_save_LIBS"
15099
15100fi
15101if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15102 echo "$ac_t""yes" 1>&6
21d1c967 15103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
15104else
15105 echo "$ac_t""no" 1>&6
21d1c967 15106fi
90dd450c 15107
21d1c967 15108 fi
90dd450c 15109
a0b9e27f
MB
15110 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15111 echo $ac_n "checking for remove""... $ac_c" 1>&6
54ab82b3 15112echo "configure:15113: checking for remove" >&5
a0b9e27f
MB
15113if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15114 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15115else
a0b9e27f 15116 cat > conftest.$ac_ext <<EOF
54ab82b3 15117#line 15118 "configure"
21d1c967
GD
15118#include "confdefs.h"
15119/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15120 which can conflict with char remove(); below. */
21d1c967
GD
15121#include <assert.h>
15122/* Override any gcc2 internal prototype to avoid an error. */
15123/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15124 builtin and then its argument prototype would still apply. */
15125char remove();
15126
15127int main() {
15128
21d1c967
GD
15129/* The GNU C library defines this for functions which it implements
15130 to always fail with ENOSYS. Some functions are actually named
15131 something starting with __ and the normal name is an alias. */
15132#if defined (__stub_remove) || defined (__stub___remove)
15133choke me
15134#else
a0b9e27f 15135remove();
21d1c967 15136#endif
90dd450c 15137
a0b9e27f
MB
15138; return 0; }
15139EOF
54ab82b3 15140if { (eval echo configure:15141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15141 rm -rf conftest*
15142 eval "ac_cv_func_remove=yes"
15143else
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15146 rm -rf conftest*
15147 eval "ac_cv_func_remove=no"
15148fi
15149rm -f conftest*
15150fi
15151
15152if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15153 echo "$ac_t""yes" 1>&6
15154 :
15155else
15156 echo "$ac_t""no" 1>&6
15157fi
90dd450c 15158
21d1c967 15159 if test $ac_cv_func_remove = no; then
a0b9e27f 15160 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
54ab82b3 15161echo "configure:15162: checking for remove in -lposix" >&5
a0b9e27f
MB
15162ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15164 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15165else
a0b9e27f 15166 ac_save_LIBS="$LIBS"
21d1c967 15167LIBS="-lposix $LIBS"
a0b9e27f 15168cat > conftest.$ac_ext <<EOF
54ab82b3 15169#line 15170 "configure"
21d1c967
GD
15170#include "confdefs.h"
15171/* Override any gcc2 internal prototype to avoid an error. */
15172/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15173 builtin and then its argument prototype would still apply. */
15174char remove();
15175
15176int main() {
15177remove()
15178; return 0; }
15179EOF
54ab82b3 15180if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15181 rm -rf conftest*
15182 eval "ac_cv_lib_$ac_lib_var=yes"
15183else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_lib_$ac_lib_var=no"
15188fi
15189rm -f conftest*
15190LIBS="$ac_save_LIBS"
15191
15192fi
15193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15194 echo "$ac_t""yes" 1>&6
21d1c967 15195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
15196else
15197 echo "$ac_t""no" 1>&6
21d1c967 15198fi
19bc6aad 15199
90dd450c 15200 fi
19bc6aad 15201
21d1c967 15202 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 15203 echo $ac_n "checking for shmat""... $ac_c" 1>&6
54ab82b3 15204echo "configure:15205: checking for shmat" >&5
a0b9e27f
MB
15205if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15206 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 15207else
a0b9e27f 15208 cat > conftest.$ac_ext <<EOF
54ab82b3 15209#line 15210 "configure"
21d1c967
GD
15210#include "confdefs.h"
15211/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15212 which can conflict with char shmat(); below. */
21d1c967
GD
15213#include <assert.h>
15214/* Override any gcc2 internal prototype to avoid an error. */
15215/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15216 builtin and then its argument prototype would still apply. */
15217char shmat();
15218
15219int main() {
15220
21d1c967
GD
15221/* The GNU C library defines this for functions which it implements
15222 to always fail with ENOSYS. Some functions are actually named
15223 something starting with __ and the normal name is an alias. */
15224#if defined (__stub_shmat) || defined (__stub___shmat)
15225choke me
15226#else
a0b9e27f 15227shmat();
21d1c967 15228#endif
90dd450c 15229
a0b9e27f
MB
15230; return 0; }
15231EOF
54ab82b3 15232if { (eval echo configure:15233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15233 rm -rf conftest*
15234 eval "ac_cv_func_shmat=yes"
15235else
15236 echo "configure: failed program was:" >&5
15237 cat conftest.$ac_ext >&5
15238 rm -rf conftest*
15239 eval "ac_cv_func_shmat=no"
15240fi
15241rm -f conftest*
15242fi
15243
15244if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15245 echo "$ac_t""yes" 1>&6
15246 :
15247else
15248 echo "$ac_t""no" 1>&6
15249fi
19bc6aad 15250
21d1c967 15251 if test $ac_cv_func_shmat = no; then
a0b9e27f 15252 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
54ab82b3 15253echo "configure:15254: checking for shmat in -lipc" >&5
a0b9e27f
MB
15254ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15256 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 15257else
a0b9e27f 15258 ac_save_LIBS="$LIBS"
5c6fa7d2 15259LIBS="-lipc $LIBS"
a0b9e27f 15260cat > conftest.$ac_ext <<EOF
54ab82b3 15261#line 15262 "configure"
5c6fa7d2 15262#include "confdefs.h"
5c6fa7d2 15263/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 15264/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15265 builtin and then its argument prototype would still apply. */
15266char shmat();
15267
15268int main() {
15269shmat()
15270; return 0; }
15271EOF
54ab82b3 15272if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15273 rm -rf conftest*
15274 eval "ac_cv_lib_$ac_lib_var=yes"
15275else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 eval "ac_cv_lib_$ac_lib_var=no"
15280fi
15281rm -f conftest*
15282LIBS="$ac_save_LIBS"
15283
15284fi
15285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15286 echo "$ac_t""yes" 1>&6
21d1c967 15287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
15288else
15289 echo "$ac_t""no" 1>&6
9f8148b1 15290fi
90dd450c 15291
90dd450c 15292 fi
21d1c967 15293 fi
10f2d63a 15294
21d1c967 15295 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 15296 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
15297 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15298 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15299 # check for ICE first), but we must link in the order -lSM -lICE or
15300 # we get undefined symbols. So assume we have SM if we have ICE.
15301 # These have to be linked with before -lX11, unlike the other
15302 # libraries we check for below, so use a different variable.
a0b9e27f
MB
15303 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15304 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
54ab82b3 15305echo "configure:15306: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
15306ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15308 echo $ac_n "(cached) $ac_c" 1>&6
15309else
15310 ac_save_LIBS="$LIBS"
f09359cf 15311LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 15312cat > conftest.$ac_ext <<EOF
54ab82b3 15313#line 15314 "configure"
29fd3c0c 15314#include "confdefs.h"
21d1c967
GD
15315/* Override any gcc2 internal prototype to avoid an error. */
15316/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15317 builtin and then its argument prototype would still apply. */
15318char IceConnectionNumber();
15319
15320int main() {
15321IceConnectionNumber()
15322; return 0; }
15323EOF
54ab82b3 15324if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15325 rm -rf conftest*
15326 eval "ac_cv_lib_$ac_lib_var=yes"
15327else
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15330 rm -rf conftest*
15331 eval "ac_cv_lib_$ac_lib_var=no"
15332fi
15333rm -f conftest*
15334LIBS="$ac_save_LIBS"
15335
15336fi
15337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
21d1c967 15339 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
15340else
15341 echo "$ac_t""no" 1>&6
29fd3c0c 15342fi
21d1c967 15343
a0b9e27f 15344 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 15345
10f2d63a
VZ
15346fi
15347
8284b0c5 15348
21d1c967 15349 if test "$no_x" = "yes"; then
a0b9e27f 15350 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
15351 fi
15352
2b5f62a0
VZ
15353 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15354 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
15355 AFMINSTALL=afminstall
15356 COMPILED_X_PROGRAM=0
15357
a0b9e27f 15358 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
54ab82b3 15359echo "configure:15360: checking for Motif/Lesstif headers" >&5
a0b9e27f 15360
21d1c967 15361ac_find_includes=
2b5f62a0 15362for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
15363 do
15364 if test -f "$ac_dir/Xm/Xm.h"; then
15365 ac_find_includes=$ac_dir
15366 break
15367 fi
15368 done
15369
15370 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
15371 echo "$ac_t""found in $ac_find_includes" 1>&6
15372
2b5f62a0 15373 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
15374 ac_path_to_include=""
15375 else
2b5f62a0
VZ
15376 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15377 result=$?
15378 if test $result = 0; then
15379 ac_path_to_include=""
15380 else
15381 ac_path_to_include=" -I$ac_find_includes"
15382 fi
dd0e4a90
VZ
15383 fi
15384
15385 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 15386 else
a0b9e27f 15387 cat > conftest.$ac_ext <<EOF
54ab82b3 15388#line 15389 "configure"
10f2d63a 15389#include "confdefs.h"
21d1c967
GD
15390
15391 #include <Xm/Xm.h>
a0b9e27f
MB
15392
15393int main() {
21d1c967
GD
15394
15395 int version;
15396 version = xmUseVersion;
a0b9e27f
MB
15397
15398; return 0; }
15399EOF
54ab82b3 15400if { (eval echo configure:15401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15401 rm -rf conftest*
15402
15403 echo "$ac_t""found in default search path" 1>&6
21d1c967 15404 COMPILED_X_PROGRAM=1
a0b9e27f 15405
10f2d63a 15406else
a0b9e27f
MB
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 rm -rf conftest*
15410
15411 echo "$ac_t""no" 1>&6
15412 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15413
15414
10f2d63a 15415fi
a0b9e27f 15416rm -f conftest*
21d1c967 15417 fi
10f2d63a 15418
21d1c967 15419 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 15420 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
54ab82b3 15421echo "configure:15422: checking for Motif/Lesstif library" >&5
a0b9e27f 15422
21d1c967 15423ac_find_libraries=
2b5f62a0 15424for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15425 do
15426 for ac_extension in a so sl dylib; do
15427 if test -f "$ac_dir/libXm.$ac_extension"; then
15428 ac_find_libraries=$ac_dir
15429 break 2
15430 fi
15431 done
15432 done
15433
15434 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15435 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15436
a0b9e27f 15437
21d1c967
GD
15438 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15439 result=$?
15440 if test $result = 0; then
15441 ac_path_to_link=""
15442 else
15443 ac_path_to_link=" -L$ac_find_libraries"
15444 fi
15445
21d1c967 15446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 15447 else
dd0e4a90
VZ
15448 save_CFLAGS=$CFLAGS
15449 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15450
a0b9e27f 15451 cat > conftest.$ac_ext <<EOF
54ab82b3 15452#line 15453 "configure"
d836ee96 15453#include "confdefs.h"
21d1c967
GD
15454
15455 #include <Xm/Xm.h>
a0b9e27f
MB
15456
15457int main() {
21d1c967
GD
15458
15459 int version;
15460 version = xmUseVersion;
a0b9e27f
MB
15461
15462; return 0; }
15463EOF
54ab82b3 15464if { (eval echo configure:15465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15465 rm -rf conftest*
15466
15467 echo "$ac_t""found in default search path" 1>&6
21d1c967 15468 COMPILED_X_PROGRAM=1
a0b9e27f 15469
d836ee96 15470else
a0b9e27f
MB
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15473 rm -rf conftest*
15474
15475 echo "$ac_t""no" 1>&6
15476 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15477
15478
d836ee96 15479fi
a0b9e27f 15480rm -f conftest*
dd0e4a90
VZ
15481
15482 CFLAGS=$save_CFLAGS
21d1c967
GD
15483 fi
15484 fi
15485
15486 xpm_link=
a0b9e27f 15487 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
54ab82b3 15488echo "configure:15489: checking for Xpm library" >&5
a0b9e27f 15489
21d1c967 15490ac_find_libraries=
2b5f62a0 15491for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15492 do
15493 for ac_extension in a so sl dylib; do
15494 if test -f "$ac_dir/libXpm.$ac_extension"; then
15495 ac_find_libraries=$ac_dir
15496 break 2
15497 fi
15498 done
15499 done
15500
15501 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15502
21d1c967
GD
15503 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15504 result=$?
15505 if test $result = 0; then
15506 ac_path_to_link=""
15507 else
15508 ac_path_to_link=" -L$ac_find_libraries"
15509 fi
15510
15511 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 15512
21d1c967 15513 xpm_link=" -lXpm"
a0b9e27f 15514 cat >> confdefs.h <<\EOF
21d1c967 15515#define wxHAVE_LIB_XPM 1
a0b9e27f 15516EOF
90dd450c 15517
a0b9e27f 15518 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 15519 else
dd0e4a90
VZ
15520 save_CFLAGS=$CFLAGS
15521 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15522
a0b9e27f 15523 cat > conftest.$ac_ext <<EOF
54ab82b3 15524#line 15525 "configure"
d836ee96 15525#include "confdefs.h"
21d1c967
GD
15526
15527 #include <X11/xpm.h>
a0b9e27f
MB
15528
15529int main() {
21d1c967
GD
15530
15531 int version;
15532 version = XpmLibraryVersion();
a0b9e27f
MB
15533
15534; return 0; }
15535EOF
54ab82b3 15536if { (eval echo configure:15537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15537 rm -rf conftest*
15538
21d1c967 15539 xpm_link=" -lXpm"
a0b9e27f 15540 cat >> confdefs.h <<\EOF
21d1c967 15541#define wxHAVE_LIB_XPM 1
a0b9e27f 15542EOF
21d1c967 15543
a0b9e27f 15544 echo "$ac_t""found in default search path" 1>&6
21d1c967 15545 COMPILED_X_PROGRAM=0
a0b9e27f 15546
d836ee96 15547else
a0b9e27f
MB
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -rf conftest*
15551
15552 echo "$ac_t""no" 1>&6
15553 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15554
15555
d836ee96 15556fi
a0b9e27f 15557rm -f conftest*
dd0e4a90
VZ
15558
15559 CFLAGS=$save_CFLAGS
21d1c967
GD
15560 fi
15561
a0b9e27f 15562 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
54ab82b3 15563echo "configure:15564: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
15564 libp_link=""
15565 libsm_ice_link=""
15566 libs_found=0
15567 for libp in "" " -lXp"; do
15568 if test "$libs_found" = "0"; then
15569 for libsm_ice in " -lSM -lICE"; do
e26c13cf 15570 if test "$libs_found" = "0"; then
6a30f1c8
MB
15571 save_LIBS="$LIBS"
15572 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
15573 save_CFLAGS=$CFLAGS
15574 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15575
a0b9e27f 15576 cat > conftest.$ac_ext <<EOF
54ab82b3 15577#line 15578 "configure"
6a30f1c8 15578#include "confdefs.h"
17234b26 15579
6a30f1c8
MB
15580 #include <Xm/Xm.h>
15581 #include <Xm/List.h>
a0b9e27f
MB
15582
15583int main() {
6a30f1c8
MB
15584
15585 XmString string = NULL;
15586 Widget w = NULL;
15587 int position = 0;
15588 XmListAddItem(w, string, position);
a0b9e27f
MB
15589
15590; return 0; }
15591EOF
54ab82b3 15592if { (eval echo configure:15593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15593 rm -rf conftest*
15594
6a30f1c8
MB
15595 libp_link="$libp"
15596 libsm_ice_link="$libsm_ice"
a0b9e27f 15597 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 15598 libs_found=1
a0b9e27f 15599
6a30f1c8 15600else
a0b9e27f
MB
15601 echo "configure: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 rm -rf conftest*
15604
15605
6a30f1c8 15606fi
a0b9e27f 15607rm -f conftest*
dd0e4a90 15608
6a30f1c8 15609 LIBS="$save_LIBS"
dd0e4a90 15610 CFLAGS=$save_CFLAGS
6a30f1c8
MB
15611 fi
15612 done
15613 fi
15614 done
15615
15616 if test "$libs_found" = "0"; then
a0b9e27f
MB
15617 echo "$ac_t""can't find the right libraries" 1>&6
15618 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
15619 fi
15620
15621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
15622 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15623 TOOLKIT=MOTIF
15624 GUIDIST=MOTIF_DIST
15625 fi
15626
15627 if test "$wxUSE_MAC" = 1; then
0c98a14e 15628 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 15629
0c98a14e 15630 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
15631 TOOLKIT=MAC
15632 GUIDIST=MACX_DIST
15633 fi
15634
15635 if test "$wxUSE_PM" = 1; then
15636 TOOLKIT=PM
15637 GUIDIST=GTK_DIST
2b5f62a0 15638 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
f657dbe7
MB
15639 wxUSE_PROLOGIO="yes"
15640 wxUSE_RESOURCES="yes"
2b5f62a0 15641 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
f657dbe7 15642 wxUSE_THREADS="no"
21d1c967
GD
15643 fi
15644
15645 if test "$TOOLKIT" = "PM" ; then
15646 TOOLKIT_DIR="os2"
15647 else
15648 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15649 fi
15650
15651 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15652
15653 if test "$wxUSE_UNIVERSAL" = "yes"; then
15654 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15655
15656 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15657 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15658
15659 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15660 if test "$wxUSE_X11" = 1; then
15661 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15662 else
15663 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15664 fi
15665 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15666 WIDGET_SET=univ
15667 else
15668 ALL_OBJECTS="\$(GUIOBJS)"
15669 ALL_SOURCES="\$(ALL_SOURCES)"
15670 ALL_HEADERS="\$(ALL_HEADERS)"
15671 fi
15672
15673 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15674
15675 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15676 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15677 fi
15678
15679 if test "$wxUSE_HTML" = "yes"; then
15680 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15681 fi
15682
15683 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15684 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15685 fi
15686 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15687 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15688 fi
15689 if test "$wxUSE_LIBPNG" = "builtin" ; then
15690 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15691 fi
15692
15693 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15694 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15695else
21d1c967
GD
15696 USE_GUI=0
15697
15698 TOOLKIT_DIR="base"
15699
15700 if test "$USE_WIN32" = 1 ; then
15701 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15702 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15703
15704 TOOLKIT="MSW"
15705 else
15706 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15707 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15708 fi
15709
15710 ALL_SOURCES="\$(ALL_SOURCES)"
15711 ALL_HEADERS="\$(ALL_HEADERS)"
15712
15713 PORT_FILES="\${top_srcdir}/src/files.lst"
15714
15715 GUIDIST="BASE_DIST"
15716 DISTDIR="wxBase"
d836ee96
VZ
15717fi
15718
8284b0c5 15719
21d1c967
GD
15720if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15721 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15722fi
21d1c967
GD
15723
15724if test "$wxUSE_REGEX" = "builtin" ; then
15725 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15726fi
21d1c967
GD
15727if test "$wxUSE_ZLIB" = "builtin" ; then
15728 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15729fi
15730
8284b0c5 15731
21d1c967
GD
15732if test "$wxUSE_OPENGL" = "yes"; then
15733 if test "$wxUSE_MAC" = 1; then
15734 OPENGL_LIBS="-framework OpenGL -framework AGL"
15735 elif test "$wxUSE_MSW" = 1; then
15736 OPENGL_LIBS="-lopengl32 -lglu32"
15737 else
a0b9e27f
MB
15738 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15739echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
54ab82b3 15740echo "configure:15741: checking for GL/gl.h" >&5
a0b9e27f
MB
15741if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15742 echo $ac_n "(cached) $ac_c" 1>&6
15743else
15744 cat > conftest.$ac_ext <<EOF
54ab82b3 15745#line 15746 "configure"
10f2d63a 15746#include "confdefs.h"
21d1c967 15747#include <GL/gl.h>
a0b9e27f
MB
15748EOF
15749ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 15750{ (eval echo configure:15751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15751ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15752if test -z "$ac_err"; then
15753 rm -rf conftest*
15754 eval "ac_cv_header_$ac_safe=yes"
15755else
15756 echo "$ac_err" >&5
15757 echo "configure: failed program was:" >&5
698dcdb6 15758 cat conftest.$ac_ext >&5
a0b9e27f
MB
15759 rm -rf conftest*
15760 eval "ac_cv_header_$ac_safe=no"
703e0a69 15761fi
a0b9e27f 15762rm -f conftest*
698dcdb6 15763fi
a0b9e27f
MB
15764if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15765 echo "$ac_t""yes" 1>&6
15766
15767 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
54ab82b3 15768echo "configure:15769: checking for -lGL" >&5
a0b9e27f 15769
21d1c967 15770ac_find_libraries=
2b5f62a0 15771for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15772 do
15773 for ac_extension in a so sl dylib; do
15774 if test -f "$ac_dir/libGL.$ac_extension"; then
15775 ac_find_libraries=$ac_dir
15776 break 2
15777 fi
15778 done
15779 done
15780
15781 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15782
21d1c967
GD
15783 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15784 result=$?
15785 if test $result = 0; then
15786 ac_path_to_link=""
15787 else
15788 ac_path_to_link=" -L$ac_find_libraries"
15789 fi
15790
15791 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15792 LDFLAGS_GL="$LDFLAGS"
15793 else
15794 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15795 fi
15796 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15797 echo "$ac_t""yes" 1>&6
21d1c967 15798 else
a0b9e27f
MB
15799 echo "$ac_t""no" 1>&6
15800 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
54ab82b3 15801echo "configure:15802: checking for -lMesaGL" >&5
a0b9e27f 15802
21d1c967 15803ac_find_libraries=
2b5f62a0 15804for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
15805 do
15806 for ac_extension in a so sl dylib; do
15807 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15808 ac_find_libraries=$ac_dir
15809 break 2
15810 fi
15811 done
15812 done
15813
15814 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15815
21d1c967
GD
15816 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15817 result=$?
15818 if test $result = 0; then
15819 ac_path_to_link=""
15820 else
15821 ac_path_to_link=" -L$ac_find_libraries"
15822 fi
15823
15824 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15825 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15826 echo "$ac_t""yes" 1>&6
21d1c967 15827 else
a0b9e27f 15828 echo "$ac_t""no" 1>&6
21d1c967
GD
15829 fi
15830 fi
a0b9e27f
MB
15831
15832else
15833 echo "$ac_t""no" 1>&6
5c6fa7d2 15834fi
52127426 15835
8284b0c5 15836
21d1c967 15837 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15838 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15839 fi
15840 fi
90dd450c 15841
21d1c967 15842 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15843 cat >> confdefs.h <<\EOF
21d1c967 15844#define wxUSE_OPENGL 1
a0b9e27f 15845EOF
21d1c967 15846
a0b9e27f 15847 cat >> confdefs.h <<\EOF
21d1c967 15848#define wxUSE_GLCANVAS 1
a0b9e27f 15849EOF
21d1c967
GD
15850
15851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15852 fi
10f2d63a 15853fi
21d1c967
GD
15854
15855if test -z "$TOOLKIT_VPATH" ; then
15856 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15857fi
21d1c967
GD
15858
15859if test -n "$TOOLKIT" ; then
15860 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15861fi
15862
15863lib_unicode_suffix=
15864if test "$wxUSE_UNICODE" = "yes"; then
15865 lib_unicode_suffix=u
90dd450c 15866fi
698dcdb6 15867
21d1c967
GD
15868lib_debug_suffix=
15869if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15870 lib_debug_suffix=d
15871fi
698dcdb6 15872
2b5f62a0
VZ
15873WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15874
15875TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15876TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
15877
15878if test "$cross_compiling" = "yes"; then
15879 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15880 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15881fi
15882
15883WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15884WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 15885WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
15886
15887WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15888WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15889
15890WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15891WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15892WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15893WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15894
15895case "${host}" in
15896 *-*-cygwin* | *-*-mingw32* )
15897
a0b9e27f
MB
15898
15899
17234b26 15900 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15901 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15902 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15903 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15904 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15905 else
15906 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15907 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15908 fi
15909 ;;
15910
15911 *-*-darwin* )
0c98a14e 15912
05159a27
GD
15913 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15914 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15915
15916 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15917 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15918 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15919 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15920
21d1c967 15921 if test "$wxUSE_MAC" = 1; then
f346733b
GD
15922 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15923 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
15924 fi
15925 ;;
15926esac
15927
15928WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15929WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15930
15931WXCONFIG_LIBS="-l${WX_LIBRARY}"
15932WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15933
15934if test "$wxUSE_OPENGL" = "yes"; then
15935 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15936 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15937fi
15938
8284b0c5
MB
15939
15940
21d1c967
GD
15941if test "$wxUSE_SHARED" = "yes"; then
15942 case "${host}" in
15943 *-pc-os2_emx | *-pc-os2-emx | \
15944 *-pc-msdosdjgpp )
15945 wxUSE_SHARED=no
a0b9e27f 15946 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15947 ;;
15948 esac
15949fi
15950
2b5f62a0
VZ
15951if test "$wxUSE_SHARED" = "yes"; then
15952
15953 if test "$wxUSE_OPENGL" = "yes"; then
15954 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15955 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15956 else
15957 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15958 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15959 fi
15960
15961 if test "$GCC" = "yes"; then
15962 PIC_FLAG="-fPIC"
15963 fi
15964
15965
15966
15967 found_versioning=no
15968
b4eecb7e 15969
2b5f62a0
VZ
15970 if test $found_versioning = no ; then
15971 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
54ab82b3 15972echo "configure:15973: checking if the linker accepts --version-script" >&5
2b5f62a0
VZ
15973if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15974 echo $ac_n "(cached) $ac_c" 1>&6
15975else
15976
15977 echo "VER_1 { *; };" >conftest.sym
15978 echo "int main() { return 0; }" >conftest.cpp
15979
15980 if { ac_try='
15981 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
54ab82b3 15982 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
2b5f62a0
VZ
15983 if test -s conftest.stderr ; then
15984 wx_cv_version_script=no
15985 else
15986 wx_cv_version_script=yes
15987 fi
15988 else
15989 wx_cv_version_script=no
15990 fi
15991 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15992
15993fi
15994
15995echo "$ac_t""$wx_cv_version_script" 1>&6
15996 if test $wx_cv_version_script = yes ; then
15997 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15998 fi
15999 fi
21d1c967 16000
21d1c967
GD
16001
16002 SHARED_LD="${CXX} -shared -o"
16003
16004 case "${host}" in
16005 *-hp-hpux* )
ad2622f1 16006 if test "$GCC" = "yes"; then
85d5e282 16007 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
16008 else
16009 LDFLAGS="$LDFLAGS -L/usr/lib"
16010
16011 SHARED_LD="${CXX} -b -o"
16012 PIC_FLAG="+Z"
16013 fi
16014
16015 if test "$wxUSE_OPENGL" = "yes"; then
16016 WX_ALL_INSTALLED="preinstall_gl"
16017 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16018 else
16019 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16020 fi
16021 ;;
16022
16023 *-*-linux* )
16024 if test "$GCC" != "yes"; then
a0b9e27f 16025 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
54ab82b3 16026echo "configure:16027: checking for Intel compiler" >&5
a0b9e27f
MB
16027if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
16029else
16030
16031 cat > conftest.$ac_ext <<EOF
54ab82b3 16032#line 16033 "configure"
698dcdb6 16033#include "confdefs.h"
90dd450c 16034
a0b9e27f 16035int main() {
90dd450c 16036
21d1c967
GD
16037 #ifndef __INTEL_COMPILER
16038 #error Not icc
16039 #endif
a0b9e27f
MB
16040
16041; return 0; }
16042EOF
54ab82b3 16043if { (eval echo configure:16044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16044 rm -rf conftest*
21d1c967 16045 wx_cv_prog_icc=yes
6232543b 16046else
a0b9e27f
MB
16047 echo "configure: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16049 rm -rf conftest*
16050 wx_cv_prog_icc=no
16051
5c6fa7d2 16052fi
a0b9e27f
MB
16053rm -f conftest*
16054
247f5006 16055fi
a0b9e27f
MB
16056
16057echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
16058 if test "$wx_cv_prog_icc" = "yes"; then
16059 PIC_FLAG="-KPIC"
16060 fi
16061 fi
16062
16063 if test "$wxUSE_SONAME" = "yes" ; then
16064 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16065 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16066 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16067 fi
16068 ;;
16069
16070 *-*-solaris2* )
16071 if test "$GCC" = yes ; then
16072 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16073 else
16074 SHARED_LD="${CXX} -G -o"
16075 PIC_FLAG="-KPIC"
16076 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16077 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16078 fi
16079 ;;
16080
16081 *-*-darwin* )
b2fee376
GD
16082 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16083 CFLAGS="$CFLAGS -fno-common"
16084 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
16085 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16086 PIC_FLAG="-dynamic -fPIC"
f346733b 16087 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 16088 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
16089 ;;
16090
16091 *-*-aix* )
2b5f62a0
VZ
16092 if test "$GCC" != "yes"; then
16093 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 16094set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 16095echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 16096echo "configure:16097: checking for $ac_word" >&5
a0b9e27f
MB
16097if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16098 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
16099else
16100 if test -n "$AIX_CXX_LD"; then
16101 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16102else
a0b9e27f
MB
16103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16104 ac_dummy="$PATH"
16105 for ac_dir in $ac_dummy; do
16106 test -z "$ac_dir" && ac_dir=.
16107 if test -f $ac_dir/$ac_word; then
16108 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16109 break
16110 fi
16111 done
16112 IFS="$ac_save_ifs"
321d2b14
VZ
16113 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16114fi
16115fi
a0b9e27f 16116AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 16117if test -n "$AIX_CXX_LD"; then
a0b9e27f 16118 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 16119else
a0b9e27f 16120 echo "$ac_t""no" 1>&6
321d2b14
VZ
16121fi
16122
8284b0c5 16123
2b5f62a0
VZ
16124 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16125 fi
21d1c967
GD
16126 ;;
16127
16128 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
16129 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16130
16131 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16132 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16133
16134 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16135
f657dbe7
MB
16136 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16137 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16138
16139 if test "$wxUSE_OPENGL" = "yes"; then
16140 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
16141 fi
16142 ;;
16143
16144 *-*-beos* )
16145 SHARED_LD="${LD} -shared -o"
16146 ;;
16147
2b5f62a0
VZ
16148 *-*-irix* )
16149 if test "$GCC" != "yes"; then
16150 PIC_FLAG="-KPIC"
16151 fi
16152 ;;
16153
21d1c967
GD
16154 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16155 *-*-sunos4* | \
21d1c967
GD
16156 *-*-osf* | \
16157 *-*-dgux5* | \
16158 *-*-sysv5* )
16159 ;;
16160
16161 *)
a0b9e27f 16162 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
16163 esac
16164
16165 if test "x$WX_TARGET_LIBRARY" = "x"; then
16166 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16167 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16168 fi
16169
16170 WX_TARGET_LIBRARY_TYPE="so"
16171 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 16172fi
10f2d63a 16173
21d1c967
GD
16174if test "$wxUSE_SHARED" = "no"; then
16175
16176 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16177 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16178 fi
16179
16180 if test "$wxUSE_MAC" = 1; then
16181 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16182 fi
16183
16184 if test "$wxUSE_OPENGL" = "yes"; then
16185 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16186 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16187 else
16188 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16189 fi
16190
16191 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16192 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16193
16194 WX_TARGET_LIBRARY_TYPE="a"
16195 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
16196
16197 STATIC_FLAG="yes"
16198else
16199 STATIC_FLAG="no"
90dd450c 16200fi
1e487827 16201
21d1c967
GD
16202if test "$wxUSE_MAC" = 1; then
16203 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16204 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16205 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16206 # Extract the first word of "Rez", so it can be a program name with args.
16207set dummy Rez; ac_word=$2
a0b9e27f 16208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 16209echo "configure:16210: checking for $ac_word" >&5
a0b9e27f
MB
16210if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16211 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 16212else
21d1c967
GD
16213 if test -n "$RESCOMP"; then
16214 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 16215else
a0b9e27f
MB
16216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16217 ac_dummy="$PATH"
16218 for ac_dir in $ac_dummy; do
16219 test -z "$ac_dir" && ac_dir=.
16220 if test -f $ac_dir/$ac_word; then
16221 ac_cv_prog_RESCOMP="Rez"
16222 break
16223 fi
16224 done
16225 IFS="$ac_save_ifs"
21d1c967 16226 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 16227fi
b93d0d08 16228fi
a0b9e27f 16229RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 16230if test -n "$RESCOMP"; then
a0b9e27f 16231 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 16232else
a0b9e27f 16233 echo "$ac_t""no" 1>&6
90dd450c 16234fi
b93d0d08 16235
21d1c967
GD
16236 # Extract the first word of "DeRez", so it can be a program name with args.
16237set dummy DeRez; ac_word=$2
a0b9e27f 16238echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54ab82b3 16239echo "configure:16240: checking for $ac_word" >&5
a0b9e27f
MB
16240if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16241 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 16242else
21d1c967
GD
16243 if test -n "$DEREZ"; then
16244 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 16245else
a0b9e27f
MB
16246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16247 ac_dummy="$PATH"
16248 for ac_dir in $ac_dummy; do
16249 test -z "$ac_dir" && ac_dir=.
16250 if test -f $ac_dir/$ac_word; then
16251 ac_cv_prog_DEREZ="DeRez"
16252 break
16253 fi
16254 done
16255 IFS="$ac_save_ifs"
21d1c967 16256 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 16257fi
90dd450c 16258fi
a0b9e27f 16259DEREZ="$ac_cv_prog_DEREZ"
21d1c967 16260if test -n "$DEREZ"; then
a0b9e27f 16261 echo "$ac_t""$DEREZ" 1>&6
90dd450c 16262else
a0b9e27f 16263 echo "$ac_t""no" 1>&6
3a922bb4 16264fi
698dcdb6 16265
21d1c967 16266 MACOSX_BUNDLE="bundle"
2b5f62a0
VZ
16267 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
16268 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
16269else
16270 if test "$wxUSE_PM" = 1; then
16271 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 16272 fi
4f14bcd8 16273fi
10f2d63a 16274
8284b0c5 16275
a0b9e27f 16276echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
54ab82b3 16277echo "configure:16278: checking for ANSI C header files" >&5
a0b9e27f
MB
16278if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16279 echo $ac_n "(cached) $ac_c" 1>&6
52127426 16280else
a0b9e27f 16281 cat > conftest.$ac_ext <<EOF
54ab82b3 16282#line 16283 "configure"
52127426 16283#include "confdefs.h"
a0b9e27f
MB
16284#include <stdlib.h>
16285#include <stdarg.h>
16286#include <string.h>
16287#include <float.h>
16288EOF
16289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 16290{ (eval echo configure:16291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
16291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16292if test -z "$ac_err"; then
16293 rm -rf conftest*
16294 ac_cv_header_stdc=yes
16295else
16296 echo "$ac_err" >&5
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16299 rm -rf conftest*
16300 ac_cv_header_stdc=no
16301fi
16302rm -f conftest*
16303
16304if test $ac_cv_header_stdc = yes; then
16305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16306cat > conftest.$ac_ext <<EOF
54ab82b3 16307#line 16308 "configure"
a0b9e27f
MB
16308#include "confdefs.h"
16309#include <string.h>
16310EOF
16311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16312 egrep "memchr" >/dev/null 2>&1; then
16313 :
16314else
16315 rm -rf conftest*
16316 ac_cv_header_stdc=no
16317fi
16318rm -f conftest*
16319
16320fi
16321
16322if test $ac_cv_header_stdc = yes; then
16323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16324cat > conftest.$ac_ext <<EOF
54ab82b3 16325#line 16326 "configure"
a0b9e27f
MB
16326#include "confdefs.h"
16327#include <stdlib.h>
16328EOF
16329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16330 egrep "free" >/dev/null 2>&1; then
16331 :
7b4a847f 16332else
a0b9e27f
MB
16333 rm -rf conftest*
16334 ac_cv_header_stdc=no
52127426 16335fi
a0b9e27f
MB
16336rm -f conftest*
16337
52127426 16338fi
a0b9e27f
MB
16339
16340if test $ac_cv_header_stdc = yes; then
16341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16342if test "$cross_compiling" = yes; then
247f5006
VZ
16343 :
16344else
a0b9e27f 16345 cat > conftest.$ac_ext <<EOF
54ab82b3 16346#line 16347 "configure"
a0b9e27f
MB
16347#include "confdefs.h"
16348#include <ctype.h>
16349#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16350#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16352int main () { int i; for (i = 0; i < 256; i++)
16353if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16354exit (0); }
247f5006 16355
a0b9e27f 16356EOF
54ab82b3 16357if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
16358then
16359 :
16360else
16361 echo "configure: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 rm -fr conftest*
16364 ac_cv_header_stdc=no
16365fi
16366rm -fr conftest*
16367fi
16368
16369fi
16370fi
16371
16372echo "$ac_t""$ac_cv_header_stdc" 1>&6
16373if test $ac_cv_header_stdc = yes; then
16374 cat >> confdefs.h <<\EOF
16375#define STDC_HEADERS 1
16376EOF
8284b0c5
MB
16377
16378fi
16379
a0b9e27f 16380echo $ac_n "checking for mode_t""... $ac_c" 1>&6
54ab82b3 16381echo "configure:16382: checking for mode_t" >&5
a0b9e27f
MB
16382if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16383 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16384else
a0b9e27f 16385 cat > conftest.$ac_ext <<EOF
54ab82b3 16386#line 16387 "configure"
8284b0c5 16387#include "confdefs.h"
a0b9e27f
MB
16388#include <sys/types.h>
16389#if STDC_HEADERS
16390#include <stdlib.h>
16391#include <stddef.h>
8284b0c5 16392#endif
a0b9e27f
MB
16393EOF
16394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16395 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16396 rm -rf conftest*
16397 ac_cv_type_mode_t=yes
5c6fa7d2 16398else
a0b9e27f
MB
16399 rm -rf conftest*
16400 ac_cv_type_mode_t=no
16401fi
16402rm -f conftest*
16403
8284b0c5 16404fi
a0b9e27f
MB
16405echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16406if test $ac_cv_type_mode_t = no; then
16407 cat >> confdefs.h <<\EOF
16408#define mode_t int
16409EOF
16410
8284b0c5 16411fi
a0b9e27f
MB
16412
16413echo $ac_n "checking for off_t""... $ac_c" 1>&6
54ab82b3 16414echo "configure:16415: checking for off_t" >&5
a0b9e27f
MB
16415if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16416 echo $ac_n "(cached) $ac_c" 1>&6
16417else
16418 cat > conftest.$ac_ext <<EOF
54ab82b3 16419#line 16420 "configure"
a0b9e27f
MB
16420#include "confdefs.h"
16421#include <sys/types.h>
16422#if STDC_HEADERS
16423#include <stdlib.h>
16424#include <stddef.h>
16425#endif
16426EOF
16427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16429 rm -rf conftest*
16430 ac_cv_type_off_t=yes
247f5006 16431else
a0b9e27f
MB
16432 rm -rf conftest*
16433 ac_cv_type_off_t=no
16434fi
16435rm -f conftest*
247f5006 16436
a0b9e27f
MB
16437fi
16438echo "$ac_t""$ac_cv_type_off_t" 1>&6
16439if test $ac_cv_type_off_t = no; then
16440 cat >> confdefs.h <<\EOF
90dd450c 16441#define off_t long
a0b9e27f 16442EOF
10f2d63a 16443
90dd450c 16444fi
10f2d63a 16445
a0b9e27f 16446echo $ac_n "checking for pid_t""... $ac_c" 1>&6
54ab82b3 16447echo "configure:16448: checking for pid_t" >&5
a0b9e27f
MB
16448if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16449 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16450else
a0b9e27f 16451 cat > conftest.$ac_ext <<EOF
54ab82b3 16452#line 16453 "configure"
10f2d63a 16453#include "confdefs.h"
a0b9e27f
MB
16454#include <sys/types.h>
16455#if STDC_HEADERS
16456#include <stdlib.h>
16457#include <stddef.h>
8284b0c5 16458#endif
a0b9e27f
MB
16459EOF
16460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16461 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16462 rm -rf conftest*
90dd450c 16463 ac_cv_type_pid_t=yes
698dcdb6 16464else
a0b9e27f
MB
16465 rm -rf conftest*
16466 ac_cv_type_pid_t=no
8284b0c5 16467fi
a0b9e27f 16468rm -f conftest*
247f5006 16469
a0b9e27f
MB
16470fi
16471echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16472if test $ac_cv_type_pid_t = no; then
16473 cat >> confdefs.h <<\EOF
90dd450c 16474#define pid_t int
a0b9e27f 16475EOF
10f2d63a 16476
7b4a847f
RR
16477fi
16478
a0b9e27f 16479echo $ac_n "checking for size_t""... $ac_c" 1>&6
54ab82b3 16480echo "configure:16481: checking for size_t" >&5
a0b9e27f
MB
16481if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16482 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 16483else
a0b9e27f 16484 cat > conftest.$ac_ext <<EOF
54ab82b3 16485#line 16486 "configure"
7b4a847f 16486#include "confdefs.h"
a0b9e27f
MB
16487#include <sys/types.h>
16488#if STDC_HEADERS
16489#include <stdlib.h>
16490#include <stddef.h>
8284b0c5 16491#endif
a0b9e27f
MB
16492EOF
16493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16494 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16495 rm -rf conftest*
90dd450c 16496 ac_cv_type_size_t=yes
18dbb1f6 16497else
a0b9e27f
MB
16498 rm -rf conftest*
16499 ac_cv_type_size_t=no
52127426 16500fi
a0b9e27f 16501rm -f conftest*
247f5006 16502
a0b9e27f
MB
16503fi
16504echo "$ac_t""$ac_cv_type_size_t" 1>&6
16505if test $ac_cv_type_size_t = no; then
16506 cat >> confdefs.h <<\EOF
90dd450c 16507#define size_t unsigned
a0b9e27f 16508EOF
90dd450c
VZ
16509
16510fi
16511
a0b9e27f 16512echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
54ab82b3 16513echo "configure:16514: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
16514if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 16516else
a0b9e27f 16517 cat > conftest.$ac_ext <<EOF
54ab82b3 16518#line 16519 "configure"
b3e8d00a 16519#include "confdefs.h"
90dd450c 16520#include <sys/types.h>
a0b9e27f 16521EOF
90dd450c
VZ
16522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16523 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 16524 rm -rf conftest*
90dd450c 16525 ac_cv_type_uid_t=yes
b3e8d00a 16526else
a0b9e27f 16527 rm -rf conftest*
90dd450c 16528 ac_cv_type_uid_t=no
b3e8d00a 16529fi
90dd450c 16530rm -f conftest*
b3e8d00a 16531
4f14bcd8 16532fi
247f5006 16533
a0b9e27f
MB
16534echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16535if test $ac_cv_type_uid_t = no; then
16536 cat >> confdefs.h <<\EOF
90dd450c 16537#define uid_t int
a0b9e27f 16538EOF
247f5006 16539
a0b9e27f 16540 cat >> confdefs.h <<\EOF
90dd450c 16541#define gid_t int
a0b9e27f 16542EOF
4f14bcd8 16543
b3e8d00a 16544fi
b3e8d00a 16545
8284b0c5
MB
16546
16547
a0b9e27f
MB
16548ac_ext=C
16549# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16550ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16551ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16552ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16553cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 16554
a0b9e27f 16555echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
54ab82b3 16556echo "configure:16557: checking if size_t is unsigned int" >&5
a0b9e27f
MB
16557if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16558 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 16559else
a0b9e27f 16560 cat > conftest.$ac_ext <<EOF
54ab82b3 16561#line 16562 "configure"
10f2d63a 16562#include "confdefs.h"
90dd450c 16563#include <stddef.h>
a0b9e27f 16564int main() {
90dd450c
VZ
16565
16566 return 0; }
16567
16568 struct Foo { void foo(size_t); void foo(unsigned int); };
16569
16570 int bar() {
a0b9e27f
MB
16571
16572; return 0; }
16573EOF
54ab82b3 16574if { (eval echo configure:16575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16575 rm -rf conftest*
90dd450c 16576 wx_cv_size_t_is_uint=no
698dcdb6 16577else
a0b9e27f
MB
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 wx_cv_size_t_is_uint=yes
16582
5c6fa7d2 16583fi
a0b9e27f 16584rm -f conftest*
8284b0c5 16585
247f5006 16586fi
a0b9e27f
MB
16587
16588echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 16589
90dd450c 16590if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 16591 cat >> confdefs.h <<\EOF
90dd450c 16592#define wxSIZE_T_IS_UINT 1
a0b9e27f 16593EOF
698dcdb6 16594
90dd450c 16595else
a0b9e27f 16596 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
54ab82b3 16597echo "configure:16598: checking if size_t is unsigned long" >&5
a0b9e27f
MB
16598if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16600else
a0b9e27f 16601 cat > conftest.$ac_ext <<EOF
54ab82b3 16602#line 16603 "configure"
10f2d63a 16603#include "confdefs.h"
90dd450c 16604#include <stddef.h>
a0b9e27f 16605int main() {
90dd450c
VZ
16606
16607 return 0; }
16608
16609 struct Foo { void foo(size_t); void foo(unsigned long); };
16610
16611 int bar() {
a0b9e27f
MB
16612
16613; return 0; }
16614EOF
54ab82b3 16615if { (eval echo configure:16616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16616 rm -rf conftest*
90dd450c 16617 wx_cv_size_t_is_ulong=no
698dcdb6 16618else
a0b9e27f
MB
16619 echo "configure: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16621 rm -rf conftest*
16622 wx_cv_size_t_is_ulong=yes
16623
5c6fa7d2 16624fi
a0b9e27f
MB
16625rm -f conftest*
16626
247f5006 16627fi
a0b9e27f
MB
16628
16629echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 16630
90dd450c 16631 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 16632 cat >> confdefs.h <<\EOF
90dd450c 16633#define wxSIZE_T_IS_ULONG 1
a0b9e27f 16634EOF
4f14bcd8
GD
16635
16636 fi
90dd450c 16637fi
1e487827 16638
90dd450c 16639ac_ext=c
a0b9e27f 16640# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16641ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16642ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16643ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16644cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 16645
5c6fa7d2 16646
8284b0c5 16647
a0b9e27f 16648echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
54ab82b3 16649echo "configure:16650: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
16650if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16652else
a0b9e27f
MB
16653
16654 cat > conftest.$ac_ext <<EOF
54ab82b3 16655#line 16656 "configure"
4f14bcd8 16656#include "confdefs.h"
90dd450c 16657#include <pwd.h>
a0b9e27f 16658int main() {
f6bcfd97 16659
90dd450c
VZ
16660 char *p;
16661 struct passwd *pw;
16662 p = pw->pw_gecos;
a0b9e27f
MB
16663
16664; return 0; }
16665EOF
54ab82b3 16666if { (eval echo configure:16667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16667 rm -rf conftest*
16668
90dd450c 16669 wx_cv_struct_pw_gecos=yes
a0b9e27f 16670
10f2d63a 16671else
a0b9e27f
MB
16672 echo "configure: failed program was:" >&5
16673 cat conftest.$ac_ext >&5
16674 rm -rf conftest*
16675
90dd450c 16676 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
16677
16678
5c6fa7d2 16679fi
a0b9e27f
MB
16680rm -f conftest*
16681
247f5006
VZ
16682
16683fi
a0b9e27f
MB
16684
16685echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 16686
90dd450c 16687if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 16688 cat >> confdefs.h <<\EOF
90dd450c 16689#define HAVE_PW_GECOS 1
a0b9e27f 16690EOF
c521c494 16691
90dd450c 16692fi
4f14bcd8 16693
8284b0c5 16694
d29b553b 16695if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 16696 cat >> confdefs.h <<\EOF
d74f4b5a 16697#define wxUSE_WCHAR_T 1
a0b9e27f 16698EOF
d74f4b5a 16699
8284b0c5 16700
d74f4b5a
VZ
16701 WCSLEN_FOUND=0
16702 WCHAR_LINK=
a0b9e27f 16703 for ac_func in wcslen
7a30264c 16704do
a0b9e27f 16705echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 16706echo "configure:16707: checking for $ac_func" >&5
a0b9e27f
MB
16707if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16708 echo $ac_n "(cached) $ac_c" 1>&6
16709else
16710 cat > conftest.$ac_ext <<EOF
54ab82b3 16711#line 16712 "configure"
4f14bcd8 16712#include "confdefs.h"
7a30264c 16713/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16714 which can conflict with char $ac_func(); below. */
7a30264c 16715#include <assert.h>
4f14bcd8
GD
16716/* Override any gcc2 internal prototype to avoid an error. */
16717/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16718 builtin and then its argument prototype would still apply. */
16719char $ac_func();
16720
16721int main() {
16722
7a30264c
VZ
16723/* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16727choke me
16728#else
a0b9e27f 16729$ac_func();
7a30264c
VZ
16730#endif
16731
a0b9e27f
MB
16732; return 0; }
16733EOF
54ab82b3 16734if { (eval echo configure:16735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16735 rm -rf conftest*
16736 eval "ac_cv_func_$ac_func=yes"
16737else
16738 echo "configure: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 rm -rf conftest*
16741 eval "ac_cv_func_$ac_func=no"
16742fi
16743rm -f conftest*
16744fi
16745
16746if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16747 echo "$ac_t""yes" 1>&6
16748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16749 cat >> confdefs.h <<EOF
16750#define $ac_tr_func 1
16751EOF
d74f4b5a 16752 WCSLEN_FOUND=1
a0b9e27f
MB
16753else
16754 echo "$ac_t""no" 1>&6
7a30264c
VZ
16755fi
16756done
9d8deca0 16757
8284b0c5 16758
d74f4b5a 16759 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16760 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16761 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
54ab82b3 16762echo "configure:16763: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16763ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16764if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16765 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16766else
a0b9e27f 16767 ac_save_LIBS="$LIBS"
7a30264c 16768LIBS="-lmsvcrt $LIBS"
a0b9e27f 16769cat > conftest.$ac_ext <<EOF
54ab82b3 16770#line 16771 "configure"
10f2d63a 16771#include "confdefs.h"
4f14bcd8
GD
16772/* Override any gcc2 internal prototype to avoid an error. */
16773/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16774 builtin and then its argument prototype would still apply. */
16775char wcslen();
16776
16777int main() {
16778wcslen()
16779; return 0; }
16780EOF
54ab82b3 16781if { (eval echo configure:16782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16782 rm -rf conftest*
16783 eval "ac_cv_lib_$ac_lib_var=yes"
16784else
16785 echo "configure: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16787 rm -rf conftest*
16788 eval "ac_cv_lib_$ac_lib_var=no"
16789fi
16790rm -f conftest*
16791LIBS="$ac_save_LIBS"
16792
16793fi
16794if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16795 echo "$ac_t""yes" 1>&6
d74f4b5a 16796 WCHAR_OK=1
a0b9e27f
MB
16797else
16798 echo "$ac_t""no" 1>&6
d29b553b 16799fi
698dcdb6 16800
7a30264c 16801 else
a0b9e27f 16802 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
54ab82b3 16803echo "configure:16804: checking for wcslen in -lw" >&5
a0b9e27f
MB
16804ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16805if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16806 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16807else
a0b9e27f 16808 ac_save_LIBS="$LIBS"
7a30264c 16809LIBS="-lw $LIBS"
a0b9e27f 16810cat > conftest.$ac_ext <<EOF
54ab82b3 16811#line 16812 "configure"
95c8801c 16812#include "confdefs.h"
4f14bcd8
GD
16813/* Override any gcc2 internal prototype to avoid an error. */
16814/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16815 builtin and then its argument prototype would still apply. */
16816char wcslen();
52127426 16817
a0b9e27f
MB
16818int main() {
16819wcslen()
16820; return 0; }
16821EOF
54ab82b3 16822if { (eval echo configure:16823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16823 rm -rf conftest*
16824 eval "ac_cv_lib_$ac_lib_var=yes"
16825else
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16828 rm -rf conftest*
16829 eval "ac_cv_lib_$ac_lib_var=no"
16830fi
16831rm -f conftest*
16832LIBS="$ac_save_LIBS"
16833
16834fi
16835if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16836 echo "$ac_t""yes" 1>&6
16837
7a30264c 16838 WCHAR_LINK=" -lw"
d74f4b5a 16839 WCSLEN_FOUND=1
a0b9e27f
MB
16840
16841else
16842 echo "$ac_t""no" 1>&6
4f14bcd8 16843fi
10f2d63a 16844
7a30264c 16845 fi
d29b553b 16846 fi
95c8801c 16847
d74f4b5a 16848 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16849 cat >> confdefs.h <<\EOF
d74f4b5a 16850#define HAVE_WCSLEN 1
a0b9e27f 16851EOF
10f2d63a 16852
d74f4b5a 16853 fi
52127426 16854
a0b9e27f 16855 for ac_func in wcsrtombs
eb4efbdc 16856do
a0b9e27f 16857echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 16858echo "configure:16859: checking for $ac_func" >&5
a0b9e27f
MB
16859if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16860 echo $ac_n "(cached) $ac_c" 1>&6
16861else
16862 cat > conftest.$ac_ext <<EOF
54ab82b3 16863#line 16864 "configure"
eb4efbdc
VZ
16864#include "confdefs.h"
16865/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16866 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16867#include <assert.h>
16868/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16869/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16870 builtin and then its argument prototype would still apply. */
16871char $ac_func();
16872
16873int main() {
16874
10f2d63a
VZ
16875/* The GNU C library defines this for functions which it implements
16876 to always fail with ENOSYS. Some functions are actually named
16877 something starting with __ and the normal name is an alias. */
247f5006 16878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16879choke me
16880#else
a0b9e27f 16881$ac_func();
10f2d63a
VZ
16882#endif
16883
a0b9e27f
MB
16884; return 0; }
16885EOF
54ab82b3 16886if { (eval echo configure:16887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16887 rm -rf conftest*
16888 eval "ac_cv_func_$ac_func=yes"
16889else
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16892 rm -rf conftest*
16893 eval "ac_cv_func_$ac_func=no"
16894fi
16895rm -f conftest*
16896fi
270a909e 16897
a0b9e27f
MB
16898if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16899 echo "$ac_t""yes" 1>&6
16900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16901 cat >> confdefs.h <<EOF
16902#define $ac_tr_func 1
16903EOF
16904
16905else
16906 echo "$ac_t""no" 1>&6
4f14bcd8 16907fi
247f5006 16908done
1e487827 16909
af15babd 16910else
a0b9e27f 16911 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16912fi
52127426 16913
8284b0c5 16914
a0b9e27f
MB
16915ac_ext=C
16916# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16917ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16918ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16919ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16920cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16921
247f5006
VZ
16922
16923for ac_func in vsnprintf
16924do
a0b9e27f 16925echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 16926echo "configure:16927: checking for $ac_func" >&5
a0b9e27f
MB
16927if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16928 echo $ac_n "(cached) $ac_c" 1>&6
16929else
16930 cat > conftest.$ac_ext <<EOF
54ab82b3 16931#line 16932 "configure"
af15babd 16932#include "confdefs.h"
247f5006 16933/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16934 which can conflict with char $ac_func(); below. */
247f5006
VZ
16935#include <assert.h>
16936/* Override any gcc2 internal prototype to avoid an error. */
16937#ifdef __cplusplus
16938extern "C"
16939#endif
16940/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16941 builtin and then its argument prototype would still apply. */
16942char $ac_func();
16943
16944int main() {
16945
247f5006
VZ
16946/* The GNU C library defines this for functions which it implements
16947 to always fail with ENOSYS. Some functions are actually named
16948 something starting with __ and the normal name is an alias. */
16949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16950choke me
16951#else
a0b9e27f 16952$ac_func();
247f5006 16953#endif
af15babd 16954
a0b9e27f
MB
16955; return 0; }
16956EOF
54ab82b3 16957if { (eval echo configure:16958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16958 rm -rf conftest*
16959 eval "ac_cv_func_$ac_func=yes"
16960else
16961 echo "configure: failed program was:" >&5
16962 cat conftest.$ac_ext >&5
16963 rm -rf conftest*
16964 eval "ac_cv_func_$ac_func=no"
16965fi
16966rm -f conftest*
16967fi
52127426 16968
a0b9e27f
MB
16969if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16970 echo "$ac_t""yes" 1>&6
16971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16972 cat >> confdefs.h <<EOF
16973#define $ac_tr_func 1
16974EOF
16975
16976else
16977 echo "$ac_t""no" 1>&6
5c6fa7d2 16978fi
247f5006 16979done
8284b0c5 16980
4f14bcd8 16981
247f5006 16982if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 16983 for ac_func in fputwc wprintf vswprintf
d74f4b5a 16984do
a0b9e27f 16985echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 16986echo "configure:16987: checking for $ac_func" >&5
a0b9e27f
MB
16987if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16988 echo $ac_n "(cached) $ac_c" 1>&6
16989else
16990 cat > conftest.$ac_ext <<EOF
54ab82b3 16991#line 16992 "configure"
d74f4b5a
VZ
16992#include "confdefs.h"
16993/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16994 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
16995#include <assert.h>
16996/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16997#ifdef __cplusplus
16998extern "C"
16999#endif
d74f4b5a 17000/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17001 builtin and then its argument prototype would still apply. */
17002char $ac_func();
17003
17004int main() {
17005
d74f4b5a
VZ
17006/* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17010choke me
17011#else
a0b9e27f 17012$ac_func();
d74f4b5a
VZ
17013#endif
17014
a0b9e27f
MB
17015; return 0; }
17016EOF
54ab82b3 17017if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17018 rm -rf conftest*
17019 eval "ac_cv_func_$ac_func=yes"
17020else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_func_$ac_func=no"
17025fi
17026rm -f conftest*
17027fi
d74f4b5a 17028
a0b9e27f
MB
17029if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17030 echo "$ac_t""yes" 1>&6
17031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17032 cat >> confdefs.h <<EOF
17033#define $ac_tr_func 1
17034EOF
17035
17036else
17037 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
17038fi
17039done
17040
79668cae 17041 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
54ab82b3 17042echo "configure:17043: checking for _vsnwprintf" >&5
79668cae 17043 cat > conftest.$ac_ext <<EOF
54ab82b3 17044#line 17045 "configure"
79668cae
MB
17045#include "confdefs.h"
17046#include <wchar.h>
17047int main() {
17048&_vsnwprintf;
17049; return 0; }
17050EOF
54ab82b3 17051if { (eval echo configure:17052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
79668cae
MB
17052 rm -rf conftest*
17053 echo "$ac_t""yes" 1>&6
17054 cat >> confdefs.h <<\EOF
17055#define HAVE__VSNWPRINTF 1
17056EOF
17057
17058else
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17061 rm -rf conftest*
17062 echo "$ac_t""no" 1>&6
17063fi
17064rm -f conftest*;
d74f4b5a
VZ
17065fi
17066
247f5006 17067ac_ext=c
a0b9e27f 17068# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 17069ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17071ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17072cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
17073
17074
17075
17076
4f14bcd8 17077if test "$TOOLKIT" != "MSW"; then
af15babd 17078
8284b0c5
MB
17079
17080
a0b9e27f
MB
17081ac_ext=C
17082# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17083ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17084ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17085ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17086cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17087
52127426 17088
a0b9e27f
MB
17089
17090 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
17091if test "${with_libiconv_prefix+set}" = set; then
17092 withval="$with_libiconv_prefix"
a0b9e27f 17093
b040e242
VS
17094 for dir in `echo "$withval" | tr : ' '`; do
17095 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17096 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17097 done
a0b9e27f
MB
17098
17099fi
b040e242
VS
17100
17101
a0b9e27f 17102 echo $ac_n "checking for iconv""... $ac_c" 1>&6
54ab82b3 17103echo "configure:17104: checking for iconv" >&5
a0b9e27f
MB
17104if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17105 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17106else
a0b9e27f 17107
b040e242
VS
17108 am_cv_func_iconv="no, consider installing GNU libiconv"
17109 am_cv_lib_iconv=no
a0b9e27f 17110 cat > conftest.$ac_ext <<EOF
54ab82b3 17111#line 17112 "configure"
af15babd 17112#include "confdefs.h"
b040e242 17113#include <stdlib.h>
4f14bcd8 17114#include <iconv.h>
a0b9e27f 17115int main() {
b040e242
VS
17116iconv_t cd = iconv_open("","");
17117 iconv(cd,NULL,NULL,NULL,NULL);
17118 iconv_close(cd);
a0b9e27f
MB
17119; return 0; }
17120EOF
54ab82b3 17121if { (eval echo configure:17122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17122 rm -rf conftest*
b040e242 17123 am_cv_func_iconv=yes
af15babd 17124else
a0b9e27f
MB
17125 echo "configure: failed program was:" >&5
17126 cat conftest.$ac_ext >&5
b040e242 17127fi
a0b9e27f 17128rm -f conftest*
b040e242
VS
17129 if test "$am_cv_func_iconv" != yes; then
17130 am_save_LIBS="$LIBS"
17131 LIBS="$LIBS -liconv"
a0b9e27f 17132 cat > conftest.$ac_ext <<EOF
54ab82b3 17133#line 17134 "configure"
b040e242
VS
17134#include "confdefs.h"
17135#include <stdlib.h>
17136#include <iconv.h>
a0b9e27f 17137int main() {
b040e242
VS
17138iconv_t cd = iconv_open("","");
17139 iconv(cd,NULL,NULL,NULL,NULL);
17140 iconv_close(cd);
a0b9e27f
MB
17141; return 0; }
17142EOF
54ab82b3 17143if { (eval echo configure:17144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17144 rm -rf conftest*
b040e242
VS
17145 am_cv_lib_iconv=yes
17146 am_cv_func_iconv=yes
17147else
a0b9e27f
MB
17148 echo "configure: failed program was:" >&5
17149 cat conftest.$ac_ext >&5
af15babd 17150fi
a0b9e27f 17151rm -f conftest*
b040e242
VS
17152 LIBS="$am_save_LIBS"
17153 fi
a0b9e27f 17154
247f5006 17155fi
247f5006 17156
a0b9e27f
MB
17157echo "$ac_t""$am_cv_func_iconv" 1>&6
17158 if test "$am_cv_func_iconv" = yes; then
17159 cat >> confdefs.h <<\EOF
b040e242 17160#define HAVE_ICONV 1
a0b9e27f 17161EOF
b040e242 17162
a0b9e27f 17163 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
54ab82b3 17164echo "configure:17165: checking if iconv needs const" >&5
a0b9e27f
MB
17165if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 17167else
a0b9e27f 17168 cat > conftest.$ac_ext <<EOF
54ab82b3 17169#line 17170 "configure"
b040e242
VS
17170#include "confdefs.h"
17171
17172#include <stdlib.h>
17173#include <iconv.h>
17174extern
17175#ifdef __cplusplus
17176"C"
17177#endif
17178#if defined(__STDC__) || defined(__cplusplus)
17179size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17180#else
17181size_t iconv();
17182#endif
a0b9e27f
MB
17183
17184int main() {
af15babd 17185
a0b9e27f
MB
17186; return 0; }
17187EOF
54ab82b3 17188if { (eval echo configure:17189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17189 rm -rf conftest*
b7043674 17190 wx_cv_func_iconv_const="no"
b040e242 17191else
a0b9e27f
MB
17192 echo "configure: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17194 rm -rf conftest*
17195 wx_cv_func_iconv_const="yes"
17196
5c6fa7d2 17197fi
a0b9e27f
MB
17198rm -f conftest*
17199
247f5006 17200fi
a0b9e27f
MB
17201
17202echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
17203
17204 iconv_const=
1c405bb5 17205 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
17206 iconv_const="const"
17207 fi
17208
a0b9e27f 17209 cat >> confdefs.h <<EOF
f09359cf 17210#define ICONV_CONST $iconv_const
a0b9e27f 17211EOF
b040e242
VS
17212
17213 fi
17214 LIBICONV=
17215 if test "$am_cv_lib_iconv" = yes; then
17216 LIBICONV="-liconv"
17217 fi
a0b9e27f 17218
b040e242
VS
17219
17220LIBS="$LIBICONV $LIBS"
4f14bcd8 17221ac_ext=c
a0b9e27f 17222# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17223ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17224ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17225ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17226cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17227
5c6fa7d2 17228
8284b0c5 17229if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 17230 for ac_func in sigaction
af15babd 17231do
a0b9e27f 17232echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17233echo "configure:17234: checking for $ac_func" >&5
a0b9e27f
MB
17234if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17235 echo $ac_n "(cached) $ac_c" 1>&6
17236else
17237 cat > conftest.$ac_ext <<EOF
54ab82b3 17238#line 17239 "configure"
af15babd
VZ
17239#include "confdefs.h"
17240/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17241 which can conflict with char $ac_func(); below. */
af15babd
VZ
17242#include <assert.h>
17243/* Override any gcc2 internal prototype to avoid an error. */
17244/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17245 builtin and then its argument prototype would still apply. */
17246char $ac_func();
17247
17248int main() {
17249
af15babd
VZ
17250/* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17254choke me
17255#else
a0b9e27f 17256$ac_func();
af15babd
VZ
17257#endif
17258
a0b9e27f
MB
17259; return 0; }
17260EOF
54ab82b3 17261if { (eval echo configure:17262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17262 rm -rf conftest*
17263 eval "ac_cv_func_$ac_func=yes"
17264else
17265 echo "configure: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17267 rm -rf conftest*
17268 eval "ac_cv_func_$ac_func=no"
17269fi
17270rm -f conftest*
17271fi
7b4a847f 17272
a0b9e27f
MB
17273if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17274 echo "$ac_t""yes" 1>&6
17275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17276 cat >> confdefs.h <<EOF
17277#define $ac_tr_func 1
17278EOF
17279
17280else
17281 echo "$ac_t""no" 1>&6
4f14bcd8
GD
17282fi
17283done
17284
8284b0c5 17285
4f14bcd8 17286 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 17287 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
17288 wxUSE_ON_FATAL_EXCEPTION=no
17289 fi
17290
17291 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
17292
17293 ac_ext=C
17294# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 17295ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17296ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17297ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17298cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 17299
5c6fa7d2 17300
a0b9e27f 17301 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
54ab82b3 17302echo "configure:17303: checking for sa_handler type" >&5
a0b9e27f
MB
17303if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17304 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 17305else
a0b9e27f
MB
17306
17307 cat > conftest.$ac_ext <<EOF
54ab82b3 17308#line 17309 "configure"
af15babd 17309#include "confdefs.h"
4f14bcd8 17310#include <signal.h>
a0b9e27f 17311int main() {
4f14bcd8
GD
17312
17313 extern void testSigHandler(int);
17314
17315 struct sigaction sa;
17316 sa.sa_handler = testSigHandler;
a0b9e27f
MB
17317
17318; return 0; }
17319EOF
54ab82b3 17320if { (eval echo configure:17321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17321 rm -rf conftest*
17322
4f14bcd8 17323 wx_cv_type_sa_handler=int
a0b9e27f 17324
af15babd 17325else
a0b9e27f
MB
17326 echo "configure: failed program was:" >&5
17327 cat conftest.$ac_ext >&5
17328 rm -rf conftest*
17329
4f14bcd8 17330 wx_cv_type_sa_handler=void
a0b9e27f 17331
5c6fa7d2 17332fi
a0b9e27f
MB
17333rm -f conftest*
17334
247f5006 17335fi
a0b9e27f
MB
17336
17337echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
17338
17339 ac_ext=c
a0b9e27f 17340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17341ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17344cross_compiling=$ac_cv_prog_cc_cross
579d8138 17345
8284b0c5 17346
a0b9e27f 17347 cat >> confdefs.h <<EOF
4f14bcd8 17348#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 17349EOF
af15babd 17350
4f14bcd8
GD
17351 fi
17352fi
af15babd 17353
a1d22ad7 17354for ac_func in mkstemp mktemp
af15babd 17355do
a0b9e27f 17356echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17357echo "configure:17358: checking for $ac_func" >&5
a0b9e27f
MB
17358if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17359 echo $ac_n "(cached) $ac_c" 1>&6
17360else
17361 cat > conftest.$ac_ext <<EOF
54ab82b3 17362#line 17363 "configure"
af15babd
VZ
17363#include "confdefs.h"
17364/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17365 which can conflict with char $ac_func(); below. */
af15babd
VZ
17366#include <assert.h>
17367/* Override any gcc2 internal prototype to avoid an error. */
17368/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17369 builtin and then its argument prototype would still apply. */
17370char $ac_func();
17371
17372int main() {
17373
af15babd
VZ
17374/* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17378choke me
17379#else
a0b9e27f 17380$ac_func();
af15babd
VZ
17381#endif
17382
a0b9e27f
MB
17383; return 0; }
17384EOF
54ab82b3 17385if { (eval echo configure:17386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17386 rm -rf conftest*
17387 eval "ac_cv_func_$ac_func=yes"
17388else
17389 echo "configure: failed program was:" >&5
17390 cat conftest.$ac_ext >&5
17391 rm -rf conftest*
17392 eval "ac_cv_func_$ac_func=no"
17393fi
17394rm -f conftest*
17395fi
af15babd 17396
a0b9e27f
MB
17397if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17398 echo "$ac_t""yes" 1>&6
17399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17400 cat >> confdefs.h <<EOF
17401#define $ac_tr_func 1
17402EOF
ade35f11 17403 break
a0b9e27f
MB
17404else
17405 echo "$ac_t""no" 1>&6
ade35f11
VZ
17406fi
17407done
17408
8284b0c5 17409
a0b9e27f 17410echo $ac_n "checking for statfs""... $ac_c" 1>&6
54ab82b3 17411echo "configure:17412: checking for statfs" >&5
a0b9e27f
MB
17412if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17413 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17414else
a0b9e27f 17415 cat > conftest.$ac_ext <<EOF
54ab82b3 17416#line 17417 "configure"
4f14bcd8
GD
17417#include "confdefs.h"
17418
17419 #if defined(__BSD__)
17420 #include <sys/param.h>
17421 #include <sys/mount.h>
17422 #else
17423 #include <sys/vfs.h>
17424 #endif
a0b9e27f
MB
17425
17426int main() {
4f14bcd8
GD
17427
17428 long l;
17429 struct statfs fs;
17430 statfs("/", &fs);
17431 l = fs.f_bsize;
17432 l += fs.f_blocks;
17433 l += fs.f_bavail;
a0b9e27f
MB
17434
17435; return 0; }
17436EOF
54ab82b3 17437if { (eval echo configure:17438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
17438 rm -rf conftest*
17439
4f14bcd8 17440 wx_cv_func_statfs=yes
a0b9e27f 17441
4f14bcd8 17442else
a0b9e27f
MB
17443 echo "configure: failed program was:" >&5
17444 cat conftest.$ac_ext >&5
17445 rm -rf conftest*
17446
4f14bcd8 17447 wx_cv_func_statfs=no
a0b9e27f
MB
17448
17449
5c6fa7d2 17450fi
a0b9e27f 17451rm -f conftest*
8284b0c5 17452
247f5006 17453fi
a0b9e27f
MB
17454
17455echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
17456
17457if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 17458 wx_cv_type_statvfs_t="struct statfs"
a0b9e27f 17459 cat >> confdefs.h <<\EOF
4f14bcd8 17460#define HAVE_STATFS 1
a0b9e27f 17461EOF
4f14bcd8
GD
17462
17463else
a0b9e27f 17464 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
54ab82b3 17465echo "configure:17466: checking for statvfs" >&5
a0b9e27f
MB
17466if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17467 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 17468else
a0b9e27f 17469 cat > conftest.$ac_ext <<EOF
54ab82b3 17470#line 17471 "configure"
af15babd 17471#include "confdefs.h"
af15babd 17472
54ab82b3
VZ
17473 #include <stddef.h>
17474 #include <sys/statvfs.h>
a0b9e27f
MB
17475
17476int main() {
af15babd 17477
54ab82b3 17478 statvfs("/", NULL);
a0b9e27f
MB
17479
17480; return 0; }
17481EOF
54ab82b3 17482if { (eval echo configure:17483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 17483 rm -rf conftest*
54ab82b3 17484 wx_cv_func_statvfs=yes
af15babd 17485else
a0b9e27f
MB
17486 echo "configure: failed program was:" >&5
17487 cat conftest.$ac_ext >&5
17488 rm -rf conftest*
54ab82b3 17489 wx_cv_func_statvfs=no
a0b9e27f 17490
5c6fa7d2 17491fi
a0b9e27f
MB
17492rm -f conftest*
17493
247f5006 17494fi
a0b9e27f
MB
17495
17496echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 17497
4f14bcd8 17498 if test "$wx_cv_func_statvfs" = "yes"; then
54ab82b3
VZ
17499
17500 ac_ext=C
17501# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17502ac_cpp='$CXXCPP $CPPFLAGS'
17503ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17504ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17505cross_compiling=$ac_cv_prog_cxx_cross
17506
17507
17508 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17509echo "configure:17510: checking for statvfs argument type" >&5
17510if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17511 echo $ac_n "(cached) $ac_c" 1>&6
17512else
17513 cat > conftest.$ac_ext <<EOF
17514#line 17515 "configure"
17515#include "confdefs.h"
17516
17517 #include <sys/statvfs.h>
17518
17519int main() {
17520
17521 long l;
17522 statvfs_t fs;
17523 statvfs("/", &fs);
17524 l = fs.f_bsize;
17525 l += fs.f_blocks;
17526 l += fs.f_bavail;
17527
17528; return 0; }
17529EOF
17530if { (eval echo configure:17531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17531 rm -rf conftest*
17532 wx_cv_type_statvfs_t=statvfs_t
17533else
17534 echo "configure: failed program was:" >&5
17535 cat conftest.$ac_ext >&5
17536 rm -rf conftest*
17537
17538 cat > conftest.$ac_ext <<EOF
17539#line 17540 "configure"
17540#include "confdefs.h"
17541
17542 #include <sys/statvfs.h>
17543
17544int main() {
17545
17546 long l;
17547 statvfs_t fs;
17548 statvfs("/", &fs);
17549 l = fs.f_bsize;
17550 l += fs.f_blocks;
17551 l += fs.f_bavail;
17552
17553; return 0; }
17554EOF
17555if { (eval echo configure:17556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17556 rm -rf conftest*
17557 wx_cv_type_statvfs_t="struct statvfs"
17558else
17559 echo "configure: failed program was:" >&5
17560 cat conftest.$ac_ext >&5
17561 rm -rf conftest*
17562 wx_cv_type_statvfs_t="unknown"
17563
17564fi
17565rm -f conftest*
17566
17567
17568fi
17569rm -f conftest*
17570
17571fi
17572
17573echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17574
17575 ac_ext=c
17576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17577ac_cpp='$CPP $CPPFLAGS'
17578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17580cross_compiling=$ac_cv_prog_cc_cross
17581
17582
17583 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17584 cat >> confdefs.h <<\EOF
4f14bcd8 17585#define HAVE_STATVFS 1
a0b9e27f 17586EOF
af15babd 17587
54ab82b3 17588 fi
4f14bcd8 17589 else
54ab82b3 17590 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
17591 fi
17592fi
af15babd 17593
54ab82b3
VZ
17594if test "$wx_cv_type_statvfs_t" != "unknown"; then
17595 cat >> confdefs.h <<EOF
17596#define WX_STATFS_T $wx_cv_type_statvfs_t
17597EOF
17598
17599else
17600 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17601fi
17602
4f14bcd8 17603if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 17604 for ac_func in fcntl flock
af15babd 17605do
a0b9e27f 17606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17607echo "configure:17608: checking for $ac_func" >&5
a0b9e27f
MB
17608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17609 echo $ac_n "(cached) $ac_c" 1>&6
17610else
17611 cat > conftest.$ac_ext <<EOF
54ab82b3 17612#line 17613 "configure"
af15babd
VZ
17613#include "confdefs.h"
17614/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17615 which can conflict with char $ac_func(); below. */
af15babd
VZ
17616#include <assert.h>
17617/* Override any gcc2 internal prototype to avoid an error. */
af15babd 17618/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17619 builtin and then its argument prototype would still apply. */
17620char $ac_func();
17621
17622int main() {
17623
af15babd
VZ
17624/* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17628choke me
17629#else
a0b9e27f 17630$ac_func();
af15babd
VZ
17631#endif
17632
a0b9e27f
MB
17633; return 0; }
17634EOF
54ab82b3 17635if { (eval echo configure:17636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17636 rm -rf conftest*
17637 eval "ac_cv_func_$ac_func=yes"
17638else
17639 echo "configure: failed program was:" >&5
17640 cat conftest.$ac_ext >&5
17641 rm -rf conftest*
17642 eval "ac_cv_func_$ac_func=no"
17643fi
17644rm -f conftest*
17645fi
17646
17647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17648 echo "$ac_t""yes" 1>&6
17649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17650 cat >> confdefs.h <<EOF
17651#define $ac_tr_func 1
17652EOF
4f14bcd8 17653 break
a0b9e27f
MB
17654else
17655 echo "$ac_t""no" 1>&6
af15babd
VZ
17656fi
17657done
17658
8284b0c5 17659
4f14bcd8 17660 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 17661 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
17662 wxUSE_SNGLINST_CHECKER=no
17663 fi
17664fi
af15babd 17665
4f14bcd8 17666for ac_func in timegm
af15babd 17667do
a0b9e27f 17668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17669echo "configure:17670: checking for $ac_func" >&5
a0b9e27f
MB
17670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
17672else
17673 cat > conftest.$ac_ext <<EOF
54ab82b3 17674#line 17675 "configure"
af15babd
VZ
17675#include "confdefs.h"
17676/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17677 which can conflict with char $ac_func(); below. */
af15babd
VZ
17678#include <assert.h>
17679/* Override any gcc2 internal prototype to avoid an error. */
17680/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17681 builtin and then its argument prototype would still apply. */
17682char $ac_func();
17683
17684int main() {
17685
af15babd
VZ
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
247f5006
VZ
17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17690choke me
17691#else
a0b9e27f 17692$ac_func();
247f5006
VZ
17693#endif
17694
a0b9e27f
MB
17695; return 0; }
17696EOF
54ab82b3 17697if { (eval echo configure:17698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17698 rm -rf conftest*
17699 eval "ac_cv_func_$ac_func=yes"
17700else
17701 echo "configure: failed program was:" >&5
17702 cat conftest.$ac_ext >&5
17703 rm -rf conftest*
17704 eval "ac_cv_func_$ac_func=no"
17705fi
17706rm -f conftest*
17707fi
703e0a69 17708
a0b9e27f
MB
17709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17710 echo "$ac_t""yes" 1>&6
17711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17712 cat >> confdefs.h <<EOF
17713#define $ac_tr_func 1
17714EOF
17715
17716else
17717 echo "$ac_t""no" 1>&6
af15babd
VZ
17718fi
17719done
17720
8284b0c5 17721
4f14bcd8 17722for ac_func in putenv setenv
10f2d63a 17723do
a0b9e27f 17724echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17725echo "configure:17726: checking for $ac_func" >&5
a0b9e27f
MB
17726if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17727 echo $ac_n "(cached) $ac_c" 1>&6
17728else
17729 cat > conftest.$ac_ext <<EOF
54ab82b3 17730#line 17731 "configure"
af15babd
VZ
17731#include "confdefs.h"
17732/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17733 which can conflict with char $ac_func(); below. */
af15babd
VZ
17734#include <assert.h>
17735/* Override any gcc2 internal prototype to avoid an error. */
17736/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17737 builtin and then its argument prototype would still apply. */
17738char $ac_func();
17739
17740int main() {
17741
af15babd
VZ
17742/* The GNU C library defines this for functions which it implements
17743 to always fail with ENOSYS. Some functions are actually named
17744 something starting with __ and the normal name is an alias. */
17745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17746choke me
17747#else
a0b9e27f 17748$ac_func();
af15babd
VZ
17749#endif
17750
a0b9e27f
MB
17751; return 0; }
17752EOF
54ab82b3 17753if { (eval echo configure:17754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17754 rm -rf conftest*
17755 eval "ac_cv_func_$ac_func=yes"
17756else
17757 echo "configure: failed program was:" >&5
17758 cat conftest.$ac_ext >&5
17759 rm -rf conftest*
17760 eval "ac_cv_func_$ac_func=no"
17761fi
17762rm -f conftest*
17763fi
17764
17765if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17766 echo "$ac_t""yes" 1>&6
17767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17768 cat >> confdefs.h <<EOF
17769#define $ac_tr_func 1
17770EOF
4f14bcd8 17771 break
a0b9e27f
MB
17772else
17773 echo "$ac_t""no" 1>&6
af15babd 17774fi
af15babd
VZ
17775done
17776
8284b0c5 17777
4f14bcd8
GD
17778HAVE_SOME_SLEEP_FUNC=0
17779if test "$USE_BEOS" = 1; then
a0b9e27f 17780 cat >> confdefs.h <<\EOF
4f14bcd8 17781#define HAVE_SLEEP 1
a0b9e27f 17782EOF
af15babd 17783
4f14bcd8 17784 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17785fi
17786
4f14bcd8 17787if test "$USE_DARWIN" = 1; then
a0b9e27f 17788 cat >> confdefs.h <<\EOF
4f14bcd8 17789#define HAVE_USLEEP 1
a0b9e27f 17790EOF
10f2d63a 17791
4f14bcd8 17792 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
17793fi
17794
4f14bcd8
GD
17795if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17796 POSIX4_LINK=
a0b9e27f 17797 for ac_func in nanosleep
4f14bcd8 17798do
a0b9e27f 17799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17800echo "configure:17801: checking for $ac_func" >&5
a0b9e27f
MB
17801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17802 echo $ac_n "(cached) $ac_c" 1>&6
17803else
17804 cat > conftest.$ac_ext <<EOF
54ab82b3 17805#line 17806 "configure"
10f2d63a 17806#include "confdefs.h"
4f14bcd8 17807/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17808 which can conflict with char $ac_func(); below. */
4f14bcd8 17809#include <assert.h>
10f2d63a
VZ
17810/* Override any gcc2 internal prototype to avoid an error. */
17811/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17812 builtin and then its argument prototype would still apply. */
17813char $ac_func();
17814
17815int main() {
17816
4f14bcd8
GD
17817/* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17821choke me
17822#else
a0b9e27f 17823$ac_func();
4f14bcd8
GD
17824#endif
17825
a0b9e27f
MB
17826; return 0; }
17827EOF
54ab82b3 17828if { (eval echo configure:17829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17829 rm -rf conftest*
17830 eval "ac_cv_func_$ac_func=yes"
17831else
17832 echo "configure: failed program was:" >&5
17833 cat conftest.$ac_ext >&5
17834 rm -rf conftest*
17835 eval "ac_cv_func_$ac_func=no"
17836fi
17837rm -f conftest*
17838fi
17839
17840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17841 echo "$ac_t""yes" 1>&6
17842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17843 cat >> confdefs.h <<EOF
17844#define $ac_tr_func 1
17845EOF
17846 cat >> confdefs.h <<\EOF
4f14bcd8 17847#define HAVE_NANOSLEEP 1
a0b9e27f 17848EOF
4f14bcd8 17849
10f2d63a 17850else
a0b9e27f
MB
17851 echo "$ac_t""no" 1>&6
17852echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
54ab82b3 17853echo "configure:17854: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
17854ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17856 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17857else
a0b9e27f 17858 ac_save_LIBS="$LIBS"
4f14bcd8 17859LIBS="-lposix4 $LIBS"
a0b9e27f 17860cat > conftest.$ac_ext <<EOF
54ab82b3 17861#line 17862 "configure"
10f2d63a
VZ
17862#include "confdefs.h"
17863/* Override any gcc2 internal prototype to avoid an error. */
17864/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17865 builtin and then its argument prototype would still apply. */
17866char nanosleep();
17867
17868int main() {
17869nanosleep()
17870; return 0; }
17871EOF
54ab82b3 17872if { (eval echo configure:17873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17873 rm -rf conftest*
17874 eval "ac_cv_lib_$ac_lib_var=yes"
17875else
17876 echo "configure: failed program was:" >&5
17877 cat conftest.$ac_ext >&5
17878 rm -rf conftest*
17879 eval "ac_cv_lib_$ac_lib_var=no"
17880fi
17881rm -f conftest*
17882LIBS="$ac_save_LIBS"
17883
17884fi
17885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17886 echo "$ac_t""yes" 1>&6
17887
17888 cat >> confdefs.h <<\EOF
4f14bcd8 17889#define HAVE_NANOSLEEP 1
a0b9e27f 17890EOF
4f14bcd8 17891
3d63bc3a 17892 POSIX4_LINK=" -lposix4"
a0b9e27f 17893
10f2d63a 17894else
a0b9e27f 17895 echo "$ac_t""no" 1>&6
10f2d63a 17896
a0b9e27f 17897 for ac_func in usleep
4f14bcd8 17898do
a0b9e27f 17899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17900echo "configure:17901: checking for $ac_func" >&5
a0b9e27f
MB
17901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17902 echo $ac_n "(cached) $ac_c" 1>&6
17903else
17904 cat > conftest.$ac_ext <<EOF
54ab82b3 17905#line 17906 "configure"
10f2d63a 17906#include "confdefs.h"
4f14bcd8 17907/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17908 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17909#include <assert.h>
17910/* Override any gcc2 internal prototype to avoid an error. */
17911/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17912 builtin and then its argument prototype would still apply. */
17913char $ac_func();
17914
17915int main() {
17916
4f14bcd8
GD
17917/* The GNU C library defines this for functions which it implements
17918 to always fail with ENOSYS. Some functions are actually named
17919 something starting with __ and the normal name is an alias. */
17920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17921choke me
17922#else
a0b9e27f 17923$ac_func();
4f14bcd8
GD
17924#endif
17925
a0b9e27f
MB
17926; return 0; }
17927EOF
54ab82b3 17928if { (eval echo configure:17929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17929 rm -rf conftest*
17930 eval "ac_cv_func_$ac_func=yes"
17931else
17932 echo "configure: failed program was:" >&5
17933 cat conftest.$ac_ext >&5
17934 rm -rf conftest*
17935 eval "ac_cv_func_$ac_func=no"
17936fi
17937rm -f conftest*
17938fi
17939
17940if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17941 echo "$ac_t""yes" 1>&6
17942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17943 cat >> confdefs.h <<EOF
17944#define $ac_tr_func 1
17945EOF
17946 cat >> confdefs.h <<\EOF
4f14bcd8 17947#define HAVE_USLEEP 1
a0b9e27f 17948EOF
4f14bcd8 17949
698dcdb6 17950else
a0b9e27f
MB
17951 echo "$ac_t""no" 1>&6
17952echo "configure: warning: wxSleep() function will not work" 1>&2
17953
10f2d63a 17954fi
4f14bcd8 17955done
10f2d63a 17956
a0b9e27f
MB
17957
17958
6232543b 17959fi
10f2d63a 17960
a0b9e27f
MB
17961
17962
1e487827 17963fi
4f14bcd8 17964done
703e0a69 17965
10f2d63a
VZ
17966fi
17967
4f14bcd8 17968for ac_func in uname gethostname
70846f0a 17969do
a0b9e27f 17970echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 17971echo "configure:17972: checking for $ac_func" >&5
a0b9e27f
MB
17972if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
17974else
17975 cat > conftest.$ac_ext <<EOF
54ab82b3 17976#line 17977 "configure"
70846f0a
VZ
17977#include "confdefs.h"
17978/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17979 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17980#include <assert.h>
17981/* Override any gcc2 internal prototype to avoid an error. */
17982/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17983 builtin and then its argument prototype would still apply. */
17984char $ac_func();
17985
17986int main() {
17987
70846f0a
VZ
17988/* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17992choke me
17993#else
a0b9e27f 17994$ac_func();
70846f0a
VZ
17995#endif
17996
a0b9e27f
MB
17997; return 0; }
17998EOF
54ab82b3 17999if { (eval echo configure:18000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18000 rm -rf conftest*
18001 eval "ac_cv_func_$ac_func=yes"
18002else
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006 eval "ac_cv_func_$ac_func=no"
18007fi
18008rm -f conftest*
18009fi
18010
18011if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18012 echo "$ac_t""yes" 1>&6
18013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18014 cat >> confdefs.h <<EOF
18015#define $ac_tr_func 1
18016EOF
4f14bcd8 18017 break
a0b9e27f
MB
18018else
18019 echo "$ac_t""no" 1>&6
70846f0a
VZ
18020fi
18021done
18022
8284b0c5
MB
18023
18024
a0b9e27f
MB
18025ac_ext=C
18026# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18027ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
18028ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18029ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18030cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 18031
4f14bcd8
GD
18032
18033for ac_func in strtok_r
10f2d63a 18034do
a0b9e27f 18035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 18036echo "configure:18037: checking for $ac_func" >&5
a0b9e27f
MB
18037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18038 echo $ac_n "(cached) $ac_c" 1>&6
18039else
18040 cat > conftest.$ac_ext <<EOF
54ab82b3 18041#line 18042 "configure"
10f2d63a 18042#include "confdefs.h"
4f14bcd8 18043/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18044 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18045#include <assert.h>
18046/* Override any gcc2 internal prototype to avoid an error. */
18047#ifdef __cplusplus
18048extern "C"
18049#endif
18050/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18051 builtin and then its argument prototype would still apply. */
18052char $ac_func();
18053
18054int main() {
18055
4f14bcd8
GD
18056/* The GNU C library defines this for functions which it implements
18057 to always fail with ENOSYS. Some functions are actually named
18058 something starting with __ and the normal name is an alias. */
18059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18060choke me
18061#else
a0b9e27f 18062$ac_func();
4f14bcd8
GD
18063#endif
18064
a0b9e27f
MB
18065; return 0; }
18066EOF
54ab82b3 18067if { (eval echo configure:18068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18068 rm -rf conftest*
18069 eval "ac_cv_func_$ac_func=yes"
18070else
18071 echo "configure: failed program was:" >&5
18072 cat conftest.$ac_ext >&5
18073 rm -rf conftest*
18074 eval "ac_cv_func_$ac_func=no"
18075fi
18076rm -f conftest*
18077fi
4f14bcd8 18078
a0b9e27f
MB
18079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18080 echo "$ac_t""yes" 1>&6
18081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18082 cat >> confdefs.h <<EOF
18083#define $ac_tr_func 1
18084EOF
18085
18086else
18087 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18088fi
18089done
18090
8284b0c5 18091
4f14bcd8 18092ac_ext=c
a0b9e27f 18093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 18094ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
18095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18096ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18097cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 18098
5c6fa7d2 18099
8284b0c5 18100INET_LINK=
4f14bcd8
GD
18101for ac_func in inet_addr
18102do
a0b9e27f 18103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 18104echo "configure:18105: checking for $ac_func" >&5
a0b9e27f
MB
18105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18106 echo $ac_n "(cached) $ac_c" 1>&6
18107else
18108 cat > conftest.$ac_ext <<EOF
54ab82b3 18109#line 18110 "configure"
10f2d63a 18110#include "confdefs.h"
4f14bcd8 18111/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18112 which can conflict with char $ac_func(); below. */
4f14bcd8 18113#include <assert.h>
10f2d63a
VZ
18114/* Override any gcc2 internal prototype to avoid an error. */
18115/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18116 builtin and then its argument prototype would still apply. */
18117char $ac_func();
18118
18119int main() {
18120
4f14bcd8
GD
18121/* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18125choke me
18126#else
a0b9e27f 18127$ac_func();
4f14bcd8
GD
18128#endif
18129
a0b9e27f
MB
18130; return 0; }
18131EOF
54ab82b3 18132if { (eval echo configure:18133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18133 rm -rf conftest*
18134 eval "ac_cv_func_$ac_func=yes"
18135else
18136 echo "configure: failed program was:" >&5
18137 cat conftest.$ac_ext >&5
18138 rm -rf conftest*
18139 eval "ac_cv_func_$ac_func=no"
18140fi
18141rm -f conftest*
18142fi
18143
18144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18145 echo "$ac_t""yes" 1>&6
18146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18147 cat >> confdefs.h <<EOF
18148#define $ac_tr_func 1
18149EOF
18150 cat >> confdefs.h <<\EOF
4f14bcd8 18151#define HAVE_INET_ADDR 1
a0b9e27f 18152EOF
10f2d63a
VZ
18153
18154else
a0b9e27f
MB
18155 echo "$ac_t""no" 1>&6
18156echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
54ab82b3 18157echo "configure:18158: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
18158ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18160 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18161else
a0b9e27f 18162 ac_save_LIBS="$LIBS"
4f14bcd8 18163LIBS="-lnsl $LIBS"
a0b9e27f 18164cat > conftest.$ac_ext <<EOF
54ab82b3 18165#line 18166 "configure"
10f2d63a
VZ
18166#include "confdefs.h"
18167/* Override any gcc2 internal prototype to avoid an error. */
18168/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18169 builtin and then its argument prototype would still apply. */
18170char inet_addr();
18171
18172int main() {
18173inet_addr()
18174; return 0; }
18175EOF
54ab82b3 18176if { (eval echo configure:18177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18177 rm -rf conftest*
18178 eval "ac_cv_lib_$ac_lib_var=yes"
18179else
18180 echo "configure: failed program was:" >&5
18181 cat conftest.$ac_ext >&5
18182 rm -rf conftest*
18183 eval "ac_cv_lib_$ac_lib_var=no"
18184fi
18185rm -f conftest*
18186LIBS="$ac_save_LIBS"
18187
18188fi
18189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18190 echo "$ac_t""yes" 1>&6
4f14bcd8 18191 INET_LINK="nsl"
10f2d63a 18192else
a0b9e27f
MB
18193 echo "$ac_t""no" 1>&6
18194echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
54ab82b3 18195echo "configure:18196: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
18196ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18198 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18199else
a0b9e27f 18200 ac_save_LIBS="$LIBS"
4f14bcd8 18201LIBS="-lresolv $LIBS"
a0b9e27f 18202cat > conftest.$ac_ext <<EOF
54ab82b3 18203#line 18204 "configure"
7b4a847f 18204#include "confdefs.h"
5c6fa7d2 18205/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 18206/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18207 builtin and then its argument prototype would still apply. */
18208char inet_addr();
18209
18210int main() {
18211inet_addr()
18212; return 0; }
18213EOF
54ab82b3 18214if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18215 rm -rf conftest*
18216 eval "ac_cv_lib_$ac_lib_var=yes"
18217else
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18220 rm -rf conftest*
18221 eval "ac_cv_lib_$ac_lib_var=no"
18222fi
18223rm -f conftest*
18224LIBS="$ac_save_LIBS"
18225
18226fi
18227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18228 echo "$ac_t""yes" 1>&6
4f14bcd8 18229 INET_LINK="resolv"
698dcdb6 18230else
a0b9e27f
MB
18231 echo "$ac_t""no" 1>&6
18232echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
54ab82b3 18233echo "configure:18234: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
18234ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18236 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 18237else
a0b9e27f 18238 ac_save_LIBS="$LIBS"
3c011993 18239LIBS="-lsocket $LIBS"
a0b9e27f 18240cat > conftest.$ac_ext <<EOF
54ab82b3 18241#line 18242 "configure"
3c011993
VZ
18242#include "confdefs.h"
18243/* Override any gcc2 internal prototype to avoid an error. */
18244/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18245 builtin and then its argument prototype would still apply. */
18246char inet_addr();
4f14bcd8 18247
a0b9e27f
MB
18248int main() {
18249inet_addr()
18250; return 0; }
18251EOF
54ab82b3 18252if { (eval echo configure:18253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18253 rm -rf conftest*
18254 eval "ac_cv_lib_$ac_lib_var=yes"
18255else
18256 echo "configure: failed program was:" >&5
18257 cat conftest.$ac_ext >&5
18258 rm -rf conftest*
18259 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 18260fi
a0b9e27f
MB
18261rm -f conftest*
18262LIBS="$ac_save_LIBS"
698dcdb6 18263
7b4a847f 18264fi
a0b9e27f
MB
18265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18266 echo "$ac_t""yes" 1>&6
18267 INET_LINK="socket"
18268
18269else
18270 echo "$ac_t""no" 1>&6
18271fi
579d8138 18272
a0b9e27f 18273
5c6fa7d2 18274fi
52127426 18275
a0b9e27f
MB
18276
18277fi
247f5006 18278
a0b9e27f 18279
8284b0c5 18280
698dcdb6 18281fi
4f14bcd8
GD
18282done
18283
8284b0c5 18284
4f14bcd8
GD
18285for ac_func in inet_aton
18286do
a0b9e27f 18287echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 18288echo "configure:18289: checking for $ac_func" >&5
a0b9e27f
MB
18289if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18290 echo $ac_n "(cached) $ac_c" 1>&6
18291else
18292 cat > conftest.$ac_ext <<EOF
54ab82b3 18293#line 18294 "configure"
f6bcfd97 18294#include "confdefs.h"
4f14bcd8 18295/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18296 which can conflict with char $ac_func(); below. */
4f14bcd8 18297#include <assert.h>
f6bcfd97
BP
18298/* Override any gcc2 internal prototype to avoid an error. */
18299/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18300 builtin and then its argument prototype would still apply. */
18301char $ac_func();
18302
18303int main() {
18304
4f14bcd8
GD
18305/* The GNU C library defines this for functions which it implements
18306 to always fail with ENOSYS. Some functions are actually named
18307 something starting with __ and the normal name is an alias. */
18308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18309choke me
18310#else
a0b9e27f 18311$ac_func();
4f14bcd8
GD
18312#endif
18313
a0b9e27f
MB
18314; return 0; }
18315EOF
54ab82b3 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_func_$ac_func=yes"
18319else
18320 echo "configure: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18322 rm -rf conftest*
18323 eval "ac_cv_func_$ac_func=no"
18324fi
18325rm -f conftest*
18326fi
18327
18328if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18329 echo "$ac_t""yes" 1>&6
18330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18331 cat >> confdefs.h <<EOF
18332#define $ac_tr_func 1
18333EOF
18334 cat >> confdefs.h <<\EOF
4f14bcd8 18335#define HAVE_INET_ATON 1
a0b9e27f 18336EOF
4f14bcd8 18337
10f2d63a 18338else
a0b9e27f
MB
18339 echo "$ac_t""no" 1>&6
18340 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
54ab82b3 18341echo "configure:18342: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
18342ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18343if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18344 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 18345else
a0b9e27f 18346 ac_save_LIBS="$LIBS"
4f14bcd8 18347LIBS="-l$INET_LINK $LIBS"
a0b9e27f 18348cat > conftest.$ac_ext <<EOF
54ab82b3 18349#line 18350 "configure"
10f2d63a 18350#include "confdefs.h"
6232543b 18351/* Override any gcc2 internal prototype to avoid an error. */
6232543b 18352/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18353 builtin and then its argument prototype would still apply. */
18354char inet_aton();
18355
18356int main() {
18357inet_aton()
18358; return 0; }
18359EOF
54ab82b3 18360if { (eval echo configure:18361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18361 rm -rf conftest*
18362 eval "ac_cv_lib_$ac_lib_var=yes"
18363else
18364 echo "configure: failed program was:" >&5
18365 cat conftest.$ac_ext >&5
18366 rm -rf conftest*
18367 eval "ac_cv_lib_$ac_lib_var=no"
18368fi
18369rm -f conftest*
18370LIBS="$ac_save_LIBS"
4f14bcd8 18371
10f2d63a 18372fi
a0b9e27f
MB
18373if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18374 echo "$ac_t""yes" 1>&6
18375 cat >> confdefs.h <<\EOF
18376#define HAVE_INET_ATON 1
18377EOF
10f2d63a 18378
a0b9e27f
MB
18379else
18380 echo "$ac_t""no" 1>&6
18381fi
247f5006 18382
a0b9e27f 18383
10f2d63a 18384fi
4f14bcd8 18385done
10f2d63a 18386
8284b0c5 18387
4f14bcd8 18388if test "x$INET_LINK" != "x"; then
a0b9e27f 18389 cat >> confdefs.h <<\EOF
4f14bcd8 18390#define HAVE_INET_ADDR 1
a0b9e27f 18391EOF
4f14bcd8 18392
3d63bc3a 18393 INET_LINK=" -l$INET_LINK"
6232543b 18394fi
10f2d63a 18395
1e487827 18396fi
703e0a69 18397
8284b0c5 18398
a0b9e27f 18399cat > confcache <<\EOF
4f14bcd8
GD
18400# This file is a shell script that caches the results of configure
18401# tests run on this system so they can be shared between configure
a0b9e27f
MB
18402# scripts and configure runs. It is not useful on other systems.
18403# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 18404#
a0b9e27f
MB
18405# By default, configure uses ./config.cache as the cache file,
18406# creating it if it does not exist already. You can give configure
18407# the --cache-file=FILE option to use a different cache file; that is
18408# what configure does when it calls configure scripts in
18409# subdirectories, so they share the cache.
18410# Giving --cache-file=/dev/null disables caching, for debugging configure.
18411# config.status only pays attention to the cache file if you give it the
18412# --recheck option to rerun configure.
4f14bcd8 18413#
a0b9e27f 18414EOF
4f14bcd8
GD
18415# The following way of writing the cache mishandles newlines in values,
18416# but we know of no workaround that is simple, portable, and efficient.
18417# So, don't put newlines in cache variables' values.
18418# Ultrix sh set writes to stderr and can't be redirected directly,
18419# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
18420(set) 2>&1 |
18421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18422 *ac_space=\ *)
18423 # `set' does not quote correctly, so add quotes (double-quote substitution
18424 # turns \\\\ into \\, and sed turns \\ into \).
18425 sed -n \
18426 -e "s/'/'\\\\''/g" \
18427 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18428 ;;
18429 *)
18430 # `set' quotes correctly as required by POSIX, so do not add quotes.
18431 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18432 ;;
18433 esac >> confcache
18434if cmp -s $cache_file confcache; then
18435 :
18436else
4f14bcd8 18437 if test -w $cache_file; then
a0b9e27f
MB
18438 echo "updating cache $cache_file"
18439 cat confcache > $cache_file
f6bcfd97 18440 else
4f14bcd8 18441 echo "not updating unwritable cache $cache_file"
f6bcfd97 18442 fi
4f14bcd8
GD
18443fi
18444rm -f confcache
f6bcfd97 18445
8284b0c5 18446
a0b9e27f 18447
009fead0 18448CPP_MT_FLAG=
4f14bcd8
GD
18449if test "$TOOLKIT" != "MSW"; then
18450
a0b9e27f 18451
7274f1c7 18452 THREADS_LINK=
009fead0 18453 THREADS_CFLAGS=
7274f1c7
RL
18454
18455 if test "$wxUSE_THREADS" = "yes" ; then
18456 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 18457 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
18458 wxUSE_THREADS="no"
18459 elif test "$USE_BEOS" = 1; then
a0b9e27f 18460 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
18461 wxUSE_THREADS="no"
18462 fi
4f14bcd8 18463 fi
4f14bcd8 18464
7274f1c7 18465 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
18466
18467
009fead0
VZ
18468 THREAD_OPTS="-pthread"
18469 case "${host}" in
18470 *-*-solaris2* | *-*-sunos4* )
18471 if test "x$GCC" = "xyes"; then
126be6b4 18472 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
18473 else
18474 THREAD_OPTS="-mt $THREAD_OPTS"
18475 fi
18476 ;;
18477 *-*-freebsd*)
18478 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18479 ;;
17234b26
MB
18480 *-*-darwin* | *-*-cygwin* )
18481 THREAD_OPTS=""
4101db81 18482 ;;
8f4a9a10 18483 *-*-aix*)
009fead0
VZ
18484 THREAD_OPTS="pthreads"
18485 ;;
009fead0 18486 esac
4f14bcd8 18487
02a1dfba 18488 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 18489
009fead0
VZ
18490 THREADS_OK=no
18491 for flag in $THREAD_OPTS; do
18492 case $flag in
18493 none)
a0b9e27f 18494 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
54ab82b3 18495echo "configure:18496: checking whether pthreads work without any flags" >&5
009fead0 18496 ;;
698dcdb6 18497
009fead0 18498 -*)
a0b9e27f 18499 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
54ab82b3 18500echo "configure:18501: checking whether pthreads work with $flag" >&5
009fead0
VZ
18501 THREADS_CFLAGS="$flag"
18502 ;;
698dcdb6 18503
009fead0 18504 *)
a0b9e27f 18505 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
54ab82b3 18506echo "configure:18507: checking for the pthreads library -l$flag" >&5
009fead0
VZ
18507 THREADS_LINK="-l$flag"
18508 ;;
18509 esac
10f2d63a 18510
009fead0
VZ
18511 save_LIBS="$LIBS"
18512 save_CFLAGS="$CFLAGS"
18513 LIBS="$THREADS_LINK $LIBS"
04727afd 18514 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 18515
a0b9e27f 18516 cat > conftest.$ac_ext <<EOF
54ab82b3 18517#line 18518 "configure"
009fead0
VZ
18518#include "confdefs.h"
18519#include <pthread.h>
a0b9e27f 18520int main() {
009fead0 18521pthread_create(0,0,0,0);
a0b9e27f
MB
18522; return 0; }
18523EOF
54ab82b3 18524if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 18525 rm -rf conftest*
009fead0 18526 THREADS_OK=yes
10f2d63a 18527else
a0b9e27f
MB
18528 echo "configure: failed program was:" >&5
18529 cat conftest.$ac_ext >&5
6232543b 18530fi
a0b9e27f 18531rm -f conftest*
698dcdb6 18532
009fead0
VZ
18533 LIBS="$save_LIBS"
18534 CFLAGS="$save_CFLAGS"
d9b9876f 18535
a0b9e27f 18536 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
18537 if test "x$THREADS_OK" = "xyes"; then
18538 break;
18539 fi
d9b9876f 18540
009fead0
VZ
18541 THREADS_LINK=""
18542 THREADS_CFLAGS=""
18543 done
4f14bcd8 18544
009fead0
VZ
18545 if test "x$THREADS_OK" != "xyes"; then
18546 wxUSE_THREADS=no
a0b9e27f 18547 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 18548 else
db82f09e
VZ
18549 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18550 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 18551
a0b9e27f 18552 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
54ab82b3 18553echo "configure:18554: checking if more special flags are required for pthreads" >&5
009fead0
VZ
18554 flag=no
18555 case "${host}" in
2b5f62a0
VZ
18556 *-aix*)
18557 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18558 flag="-D_THREAD_SAFE"
18559 ;;
18560 *-freebsd*)
009fead0
VZ
18561 flag="-D_THREAD_SAFE"
18562 ;;
06313569
GD
18563 *-hp-hpux* )
18564 flag="-D_REENTRANT"
18565 ;;
009fead0
VZ
18566 *solaris* | alpha*-osf*)
18567 flag="-D_REENTRANT"
18568 ;;
18569 esac
a0b9e27f 18570 echo "$ac_t""${flag}" 1>&6
009fead0 18571 if test "x$flag" != xno; then
04727afd 18572 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
18573 fi
18574
009fead0 18575 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 18576 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
18577 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18578 fi
18579 fi
4f14bcd8 18580 fi
4f14bcd8 18581
7274f1c7 18582 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 18583 for ac_func in thr_setconcurrency
4f14bcd8 18584do
a0b9e27f 18585echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 18586echo "configure:18587: checking for $ac_func" >&5
a0b9e27f
MB
18587if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18588 echo $ac_n "(cached) $ac_c" 1>&6
18589else
18590 cat > conftest.$ac_ext <<EOF
54ab82b3 18591#line 18592 "configure"
d9b9876f 18592#include "confdefs.h"
4f14bcd8 18593/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18594 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
18595#include <assert.h>
18596/* Override any gcc2 internal prototype to avoid an error. */
18597/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18598 builtin and then its argument prototype would still apply. */
18599char $ac_func();
18600
18601int main() {
18602
4f14bcd8
GD
18603/* The GNU C library defines this for functions which it implements
18604 to always fail with ENOSYS. Some functions are actually named
18605 something starting with __ and the normal name is an alias. */
18606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18607choke me
18608#else
a0b9e27f 18609$ac_func();
4f14bcd8
GD
18610#endif
18611
a0b9e27f
MB
18612; return 0; }
18613EOF
54ab82b3 18614if { (eval echo configure:18615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18615 rm -rf conftest*
18616 eval "ac_cv_func_$ac_func=yes"
18617else
18618 echo "configure: failed program was:" >&5
18619 cat conftest.$ac_ext >&5
18620 rm -rf conftest*
18621 eval "ac_cv_func_$ac_func=no"
18622fi
18623rm -f conftest*
18624fi
698dcdb6 18625
a0b9e27f
MB
18626if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18627 echo "$ac_t""yes" 1>&6
18628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18629 cat >> confdefs.h <<EOF
18630#define $ac_tr_func 1
18631EOF
18632
18633else
18634 echo "$ac_t""no" 1>&6
10f2d63a 18635fi
4f14bcd8 18636done
10f2d63a 18637
8284b0c5 18638
a0b9e27f 18639 for ac_hdr in sched.h
4f14bcd8 18640do
a0b9e27f
MB
18641ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18642echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 18643echo "configure:18644: checking for $ac_hdr" >&5
a0b9e27f
MB
18644if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18645 echo $ac_n "(cached) $ac_c" 1>&6
18646else
18647 cat > conftest.$ac_ext <<EOF
54ab82b3 18648#line 18649 "configure"
247f5006 18649#include "confdefs.h"
a0b9e27f
MB
18650#include <$ac_hdr>
18651EOF
18652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 18653{ (eval echo configure:18654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
18654ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18655if test -z "$ac_err"; then
18656 rm -rf conftest*
18657 eval "ac_cv_header_$ac_safe=yes"
18658else
18659 echo "$ac_err" >&5
18660 echo "configure: failed program was:" >&5
4f14bcd8 18661 cat conftest.$ac_ext >&5
a0b9e27f
MB
18662 rm -rf conftest*
18663 eval "ac_cv_header_$ac_safe=no"
13111b2a 18664fi
a0b9e27f 18665rm -f conftest*
10f2d63a 18666fi
a0b9e27f
MB
18667if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18668 echo "$ac_t""yes" 1>&6
18669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18670 cat >> confdefs.h <<EOF
18671#define $ac_tr_hdr 1
18672EOF
18673
18674else
18675 echo "$ac_t""no" 1>&6
f6bcfd97 18676fi
4f14bcd8 18677done
f6bcfd97 18678
009fead0 18679 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 18680 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
54ab82b3 18681echo "configure:18682: checking for sched_yield" >&5
a0b9e27f
MB
18682if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18683 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18684else
a0b9e27f 18685 cat > conftest.$ac_ext <<EOF
54ab82b3 18686#line 18687 "configure"
4f14bcd8 18687#include "confdefs.h"
009fead0 18688/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18689 which can conflict with char sched_yield(); below. */
009fead0 18690#include <assert.h>
4f14bcd8
GD
18691/* Override any gcc2 internal prototype to avoid an error. */
18692/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18693 builtin and then its argument prototype would still apply. */
18694char sched_yield();
18695
18696int main() {
18697
009fead0
VZ
18698/* The GNU C library defines this for functions which it implements
18699 to always fail with ENOSYS. Some functions are actually named
18700 something starting with __ and the normal name is an alias. */
18701#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18702choke me
18703#else
a0b9e27f 18704sched_yield();
009fead0
VZ
18705#endif
18706
a0b9e27f
MB
18707; return 0; }
18708EOF
54ab82b3 18709if { (eval echo configure:18710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18710 rm -rf conftest*
18711 eval "ac_cv_func_sched_yield=yes"
18712else
18713 echo "configure: failed program was:" >&5
18714 cat conftest.$ac_ext >&5
18715 rm -rf conftest*
18716 eval "ac_cv_func_sched_yield=no"
18717fi
18718rm -f conftest*
18719fi
18720
18721if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18722 echo "$ac_t""yes" 1>&6
18723 cat >> confdefs.h <<\EOF
4f14bcd8 18724#define HAVE_SCHED_YIELD 1
a0b9e27f 18725EOF
10f2d63a 18726
4f14bcd8 18727else
a0b9e27f 18728 echo "$ac_t""no" 1>&6
009fead0 18729
a0b9e27f 18730 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
54ab82b3 18731echo "configure:18732: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
18732ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 18735else
a0b9e27f 18736 ac_save_LIBS="$LIBS"
4f14bcd8 18737LIBS="-lposix4 $LIBS"
a0b9e27f 18738cat > conftest.$ac_ext <<EOF
54ab82b3 18739#line 18740 "configure"
4f14bcd8
GD
18740#include "confdefs.h"
18741/* Override any gcc2 internal prototype to avoid an error. */
18742/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18743 builtin and then its argument prototype would still apply. */
18744char sched_yield();
18745
18746int main() {
18747sched_yield()
18748; return 0; }
18749EOF
54ab82b3 18750if { (eval echo configure:18751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18751 rm -rf conftest*
18752 eval "ac_cv_lib_$ac_lib_var=yes"
18753else
18754 echo "configure: failed program was:" >&5
18755 cat conftest.$ac_ext >&5
18756 rm -rf conftest*
18757 eval "ac_cv_lib_$ac_lib_var=no"
18758fi
18759rm -f conftest*
18760LIBS="$ac_save_LIBS"
18761
18762fi
18763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18764 echo "$ac_t""yes" 1>&6
18765 cat >> confdefs.h <<\EOF
4f14bcd8 18766#define HAVE_SCHED_YIELD 1
a0b9e27f 18767EOF
3d63bc3a 18768 POSIX4_LINK=" -lposix4"
4f14bcd8 18769else
a0b9e27f
MB
18770 echo "$ac_t""no" 1>&6
18771echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18772
54276ccf
VZ
18773fi
18774
a0b9e27f
MB
18775
18776
4f14bcd8 18777fi
698dcdb6 18778
009fead0 18779 fi
10f2d63a 18780
7274f1c7 18781 HAVE_PRIOR_FUNCS=0
a0b9e27f 18782 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
54ab82b3 18783echo "configure:18784: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
18784if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18785 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18786else
a0b9e27f 18787 cat > conftest.$ac_ext <<EOF
54ab82b3 18788#line 18789 "configure"
422107f9 18789#include "confdefs.h"
009fead0 18790/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18791 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 18792#include <assert.h>
4f14bcd8
GD
18793/* Override any gcc2 internal prototype to avoid an error. */
18794/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18795 builtin and then its argument prototype would still apply. */
18796char pthread_attr_getschedpolicy();
18797
18798int main() {
18799
009fead0
VZ
18800/* The GNU C library defines this for functions which it implements
18801 to always fail with ENOSYS. Some functions are actually named
18802 something starting with __ and the normal name is an alias. */
18803#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18804choke me
18805#else
a0b9e27f 18806pthread_attr_getschedpolicy();
009fead0
VZ
18807#endif
18808
a0b9e27f
MB
18809; return 0; }
18810EOF
54ab82b3 18811if { (eval echo configure:18812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18812 rm -rf conftest*
18813 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18814else
18815 echo "configure: failed program was:" >&5
18816 cat conftest.$ac_ext >&5
18817 rm -rf conftest*
18818 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18819fi
18820rm -f conftest*
18821fi
18822
18823if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18824 echo "$ac_t""yes" 1>&6
18825 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
54ab82b3 18826echo "configure:18827: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
18827if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18828 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 18829else
a0b9e27f 18830 cat > conftest.$ac_ext <<EOF
54ab82b3 18831#line 18832 "configure"
a0b9e27f
MB
18832#include "confdefs.h"
18833/* System header to define __stub macros and hopefully few prototypes,
18834 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 18835#include <assert.h>
422107f9
VZ
18836/* Override any gcc2 internal prototype to avoid an error. */
18837/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18838 builtin and then its argument prototype would still apply. */
18839char pthread_attr_setschedparam();
18840
18841int main() {
18842
009fead0
VZ
18843/* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18847choke me
18848#else
a0b9e27f 18849pthread_attr_setschedparam();
009fead0
VZ
18850#endif
18851
a0b9e27f
MB
18852; return 0; }
18853EOF
54ab82b3 18854if { (eval echo configure:18855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18855 rm -rf conftest*
18856 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18857else
18858 echo "configure: failed program was:" >&5
18859 cat conftest.$ac_ext >&5
18860 rm -rf conftest*
18861 eval "ac_cv_func_pthread_attr_setschedparam=no"
18862fi
18863rm -f conftest*
18864fi
18865
18866if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18867 echo "$ac_t""yes" 1>&6
18868 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
54ab82b3 18869echo "configure:18870: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18870if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18871 echo $ac_n "(cached) $ac_c" 1>&6
18872else
18873 cat > conftest.$ac_ext <<EOF
54ab82b3 18874#line 18875 "configure"
422107f9 18875#include "confdefs.h"
009fead0
VZ
18876/* System header to define __stub macros and hopefully few prototypes
18877else
a0b9e27f
MB
18878 echo "$ac_t""no" 1>&6
18879which can conflict with char sched_get_priority_max(); below. */
009fead0 18880#include <assert.h>
4f14bcd8
GD
18881/* Override any gcc2 internal prototype to avoid an error. */
18882/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18883 builtin and then its argument prototype would still apply. */
18884char sched_get_priority_max();
18885
18886int main() {
18887
009fead0
VZ
18888/* The GNU C library defines this for functions which it implements
18889 to always fail with ENOSYS. Some functions are actually named
18890 something starting with __ and the normal name is an alias. */
18891#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18892choke me
18893#else
a0b9e27f 18894sched_get_priority_max();
009fead0
VZ
18895#endif
18896
a0b9e27f
MB
18897; return 0; }
18898EOF
54ab82b3 18899if { (eval echo configure:18900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18900 rm -rf conftest*
18901 eval "ac_cv_func_sched_get_priority_max=yes"
18902else
18903 echo "configure: failed program was:" >&5
18904 cat conftest.$ac_ext >&5
18905 rm -rf conftest*
18906 eval "ac_cv_func_sched_get_priority_max=no"
18907fi
18908rm -f conftest*
18909fi
18910
18911if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18912 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18913 HAVE_PRIOR_FUNCS=1
18914else
a0b9e27f
MB
18915 echo "$ac_t""no" 1>&6
18916echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
54ab82b3 18917echo "configure:18918: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18918ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18920 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18921else
a0b9e27f 18922 ac_save_LIBS="$LIBS"
4f14bcd8 18923LIBS="-lposix4 $LIBS"
a0b9e27f 18924cat > conftest.$ac_ext <<EOF
54ab82b3 18925#line 18926 "configure"
422107f9
VZ
18926#include "confdefs.h"
18927/* Override any gcc2 internal prototype to avoid an error. */
18928/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18929 builtin and then its argument prototype would still apply. */
18930char sched_get_priority_max();
18931
18932int main() {
18933sched_get_priority_max()
18934; return 0; }
18935EOF
54ab82b3 18936if { (eval echo configure:18937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18937 rm -rf conftest*
18938 eval "ac_cv_lib_$ac_lib_var=yes"
18939else
18940 echo "configure: failed program was:" >&5
18941 cat conftest.$ac_ext >&5
18942 rm -rf conftest*
18943 eval "ac_cv_lib_$ac_lib_var=no"
18944fi
18945rm -f conftest*
18946LIBS="$ac_save_LIBS"
698dcdb6 18947
a0b9e27f
MB
18948fi
18949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18950 echo "$ac_t""yes" 1>&6
18951
7274f1c7
RL
18952 HAVE_PRIOR_FUNCS=1
18953 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
18954
18955else
18956 echo "$ac_t""no" 1>&6
4f14bcd8 18957fi
463abc64 18958
a0b9e27f 18959
328a083c 18960fi
463abc64 18961
a0b9e27f
MB
18962
18963else
18964 echo "$ac_t""no" 1>&6
7b4a847f 18965fi
579d8138 18966
a0b9e27f 18967
5c6fa7d2 18968fi
52127426 18969
8284b0c5 18970
7274f1c7 18971 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 18972 cat >> confdefs.h <<\EOF
4f14bcd8 18973#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 18974EOF
463abc64 18975
7274f1c7 18976 else
a0b9e27f 18977 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 18978 fi
463abc64 18979
a0b9e27f 18980 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
54ab82b3 18981echo "configure:18982: checking for pthread_cancel" >&5
a0b9e27f
MB
18982if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18983 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18984else
a0b9e27f 18985 cat > conftest.$ac_ext <<EOF
54ab82b3 18986#line 18987 "configure"
422107f9 18987#include "confdefs.h"
009fead0 18988/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18989 which can conflict with char pthread_cancel(); below. */
009fead0 18990#include <assert.h>
422107f9
VZ
18991/* Override any gcc2 internal prototype to avoid an error. */
18992/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18993 builtin and then its argument prototype would still apply. */
18994char pthread_cancel();
18995
18996int main() {
18997
009fead0
VZ
18998/* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19002choke me
19003#else
a0b9e27f 19004pthread_cancel();
009fead0
VZ
19005#endif
19006
a0b9e27f
MB
19007; return 0; }
19008EOF
54ab82b3 19009if { (eval echo configure:19010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19010 rm -rf conftest*
19011 eval "ac_cv_func_pthread_cancel=yes"
19012else
19013 echo "configure: failed program was:" >&5
19014 cat conftest.$ac_ext >&5
19015 rm -rf conftest*
19016 eval "ac_cv_func_pthread_cancel=no"
19017fi
19018rm -f conftest*
19019fi
19020
19021if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19022 echo "$ac_t""yes" 1>&6
19023 cat >> confdefs.h <<\EOF
4f14bcd8 19024#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 19025EOF
4f14bcd8 19026
698dcdb6 19027else
a0b9e27f
MB
19028 echo "$ac_t""no" 1>&6
19029echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
19030fi
19031
5c6fa7d2 19032
a0b9e27f 19033 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
54ab82b3 19034echo "configure:19035: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
19035if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19036 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19037else
a0b9e27f
MB
19038
19039 cat > conftest.$ac_ext <<EOF
54ab82b3 19040#line 19041 "configure"
4f14bcd8
GD
19041#include "confdefs.h"
19042#include <pthread.h>
a0b9e27f 19043int main() {
4f14bcd8 19044
7274f1c7
RL
19045 pthread_cleanup_push(NULL, NULL);
19046 pthread_cleanup_pop(0);
a0b9e27f
MB
19047
19048; return 0; }
19049EOF
54ab82b3 19050if { (eval echo configure:19051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19051 rm -rf conftest*
19052
7274f1c7 19053 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 19054
4f14bcd8 19055else
a0b9e27f
MB
19056 echo "configure: failed program was:" >&5
19057 cat conftest.$ac_ext >&5
19058 rm -rf conftest*
19059
7274f1c7 19060 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 19061
5c6fa7d2 19062fi
a0b9e27f
MB
19063rm -f conftest*
19064
247f5006 19065fi
a0b9e27f
MB
19066
19067echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 19068
7274f1c7 19069 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 19070 cat >> confdefs.h <<\EOF
4f14bcd8 19071#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 19072EOF
c7a2bf27 19073
7274f1c7 19074 fi
4f14bcd8 19075
a0b9e27f
MB
19076
19077 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
54ab82b3 19078echo "configure:19079: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
19079if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19080 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 19081else
a0b9e27f
MB
19082
19083 cat > conftest.$ac_ext <<EOF
54ab82b3 19084#line 19085 "configure"
0dcf9893 19085#include "confdefs.h"
4f14bcd8 19086#include <pthread.h>
a0b9e27f 19087int main() {
4f14bcd8 19088
7274f1c7
RL
19089 pthread_mutexattr_t attr;
19090 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
19091
19092; return 0; }
19093EOF
54ab82b3 19094if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19095 rm -rf conftest*
19096
7274f1c7 19097 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 19098
3fed1840 19099else
a0b9e27f
MB
19100 echo "configure: failed program was:" >&5
19101 cat conftest.$ac_ext >&5
19102 rm -rf conftest*
19103
7274f1c7 19104 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
19105
19106
5c6fa7d2 19107fi
a0b9e27f
MB
19108rm -f conftest*
19109
247f5006 19110fi
a0b9e27f
MB
19111
19112echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 19113
7274f1c7 19114 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 19115 cat >> confdefs.h <<\EOF
4f14bcd8 19116#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 19117EOF
4f14bcd8 19118
7274f1c7 19119 else
a0b9e27f 19120 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
54ab82b3 19121echo "configure:19122: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
19122if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19123 echo $ac_n "(cached) $ac_c" 1>&6
19124else
19125
19126 cat > conftest.$ac_ext <<EOF
54ab82b3 19127#line 19128 "configure"
3fed1840 19128#include "confdefs.h"
4f14bcd8 19129#include <pthread.h>
a0b9e27f 19130int main() {
4f14bcd8 19131
7274f1c7 19132 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
19133
19134; return 0; }
19135EOF
54ab82b3 19136if { (eval echo configure:19137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19137 rm -rf conftest*
19138
7274f1c7 19139 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 19140
698dcdb6 19141else
a0b9e27f
MB
19142 echo "configure: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19144 rm -rf conftest*
19145
7274f1c7 19146 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
19147
19148
5c6fa7d2 19149fi
a0b9e27f
MB
19150rm -f conftest*
19151
247f5006 19152fi
a0b9e27f
MB
19153
19154echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 19155 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 19156 cat >> confdefs.h <<\EOF
4f14bcd8 19157#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 19158EOF
3fed1840 19159
7274f1c7 19160 else
a0b9e27f 19161 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
19162 fi
19163 fi
7274f1c7 19164 fi
3fed1840 19165
a0b9e27f
MB
19166else
19167 if test "$wxUSE_THREADS" = "yes" ; then
19168 case "${host}" in
19169 *-*-mingw32* )
ca8e52b3 19170 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
54ab82b3 19171echo "configure:19172: checking if compiler supports -mthreads" >&5
ca8e52b3
VZ
19172if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19173 echo $ac_n "(cached) $ac_c" 1>&6
19174else
19175
19176 CFLAGS_OLD="$CFLAGS"
19177 CFLAGS="$CFLAGS -mthreads"
19178 cat > conftest.$ac_ext <<EOF
54ab82b3 19179#line 19180 "configure"
ca8e52b3
VZ
19180#include "confdefs.h"
19181
19182int main() {
19183
19184; return 0; }
19185EOF
54ab82b3 19186if { (eval echo configure:19187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca8e52b3
VZ
19187 rm -rf conftest*
19188 wx_cv_cflags_mthread=yes
19189else
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19192 rm -rf conftest*
19193 wx_cv_cflags_mthread=no
19194
19195fi
19196rm -f conftest*
19197
19198
19199fi
19200
19201echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19202
19203 if test "$wx_cv_cflags_mthread" = "yes"; then
19204 CXXFLAGS="$CXXFLAGS -mthreads"
19205 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19206 LDFLAGS="$LDFLAGS -mthreads"
19207 else
19208 CFLAGS="$CFLAGS_OLD"
19209 fi
a0b9e27f
MB
19210 ;;
19211 esac
19212 fi
4f14bcd8
GD
19213fi
19214
19215if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 19216 cat >> confdefs.h <<\EOF
4f14bcd8 19217#define wxUSE_THREADS 1
a0b9e27f 19218EOF
7b6058cd 19219
8284b0c5 19220
4f14bcd8 19221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 19222else
4f14bcd8 19223 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 19224 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
54ab82b3 19225echo "configure:19226: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
19226 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19227 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 19228 echo "$ac_t""yes" 1>&6
4f14bcd8 19229 else
a0b9e27f 19230 echo "$ac_t""no" 1>&6
4f14bcd8
GD
19231 fi
19232 fi
19233fi
19234
19235if test "$WXGTK20" = 1 ; then
a0b9e27f 19236 cat >> confdefs.h <<EOF
4f14bcd8 19237#define __WXGTK20__ $WXGTK20
a0b9e27f 19238EOF
4f14bcd8
GD
19239
19240 WXGTK12=1
10f2d63a 19241fi
4f14bcd8
GD
19242
19243if test "$WXGTK12" = 1 ; then
a0b9e27f 19244 cat >> confdefs.h <<EOF
4f14bcd8 19245#define __WXGTK12__ $WXGTK12
a0b9e27f 19246EOF
4f14bcd8 19247
10f2d63a 19248fi
698dcdb6 19249
4f14bcd8 19250if test "$WXGTK127" = 1 ; then
a0b9e27f 19251 cat >> confdefs.h <<EOF
4f14bcd8 19252#define __WXGTK127__ $WXGTK127
a0b9e27f 19253EOF
4f14bcd8 19254
698dcdb6 19255fi
10f2d63a 19256
4f14bcd8
GD
19257WXDEBUG=
19258
19259if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19260 WXDEBUG="-g"
19261 wxUSE_OPTIMISE=no
698dcdb6 19262fi
4f14bcd8
GD
19263
19264if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19265 wxUSE_DEBUG_INFO=yes
19266 WXDEBUG="-ggdb"
10f2d63a
VZ
19267fi
19268
4f14bcd8 19269if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 19270 cat >> confdefs.h <<\EOF
4f14bcd8 19271#define WXDEBUG 1
a0b9e27f 19272EOF
4f14bcd8
GD
19273
19274 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 19275else
4f14bcd8
GD
19276 if test "$wxUSE_GTK" = 1 ; then
19277 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19278 fi
19279fi
19280
19281if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 19282 cat >> confdefs.h <<\EOF
4f14bcd8 19283#define wxUSE_MEMORY_TRACING 1
a0b9e27f 19284EOF
4f14bcd8 19285
a0b9e27f 19286 cat >> confdefs.h <<\EOF
4f14bcd8 19287#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 19288EOF
4f14bcd8 19289
a0b9e27f 19290 cat >> confdefs.h <<\EOF
4f14bcd8 19291#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 19292EOF
4f14bcd8
GD
19293
19294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19295fi
19296
19297if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 19298 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
19299fi
19300
19301PROFILE=
19302if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 19303 PROFILE=" -pg"
10f2d63a
VZ
19304fi
19305
009fead0
VZ
19306CODE_GEN_FLAGS=
19307CODE_GEN_FLAGS_CXX=
88e30f2b 19308if test "$GCC" = "yes" ; then
4f14bcd8
GD
19309 if test "$wxUSE_NO_RTTI" = "yes" ; then
19310 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 19311 fi
4f14bcd8
GD
19312 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19313 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19314 fi
19315 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19316 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19317 fi
4f14bcd8
GD
19318 if test "$USE_WIN32" = 1 ; then
19319 # I'm not even really sure what this was ever added to solve,
19320 # but someone added it for mingw native builds, so I guess
19321 # they had a reason, right??
19322 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19323 fi
1d1b75ac 19324
2b5f62a0 19325 case "${host}" in
1d1b75ac
VZ
19326 powerpc*-*-aix* )
19327 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19328 ;;
2b5f62a0
VZ
19329 *-hppa* )
19330 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19331 ;;
1d1b75ac 19332 esac
4f14bcd8
GD
19333fi
19334
4f14bcd8
GD
19335if test "$wxUSE_OPTIMISE" = "no" ; then
19336 OPTIMISE=
19337else
19338 if test "$GCC" = yes ; then
19339 OPTIMISE="-O2"
19340 case "${host}" in
19341 i586-*-*|i686-*-* )
19342 OPTIMISE="${OPTIMISE} "
19343 ;;
19344 esac
19345 else
19346 OPTIMISE="-O"
19347 fi
19348fi
19349
19350if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 19351 cat >> confdefs.h <<\EOF
4f14bcd8 19352#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 19353EOF
4f14bcd8 19354
8284b0c5 19355
4f14bcd8
GD
19356 WXWIN_COMPATIBILITY_2_2="yes"
19357fi
19358
0c9a1c32 19359if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
a0b9e27f 19360 cat >> confdefs.h <<\EOF
4f14bcd8 19361#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 19362EOF
4f14bcd8 19363
10f2d63a
VZ
19364fi
19365
8284b0c5 19366
10f2d63a 19367if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 19368 cat >> confdefs.h <<\EOF
10f2d63a 19369#define wxUSE_GUI 1
a0b9e27f 19370EOF
10f2d63a 19371
8284b0c5 19372
10f2d63a 19373 else
a0b9e27f 19374 cat >> confdefs.h <<\EOF
10f2d63a 19375#define wxUSE_NOGUI 1
a0b9e27f 19376EOF
10f2d63a
VZ
19377
19378fi
19379
8284b0c5 19380
10f2d63a 19381if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 19382 cat >> confdefs.h <<\EOF
10f2d63a 19383#define wxUSE_UNIX 1
a0b9e27f 19384EOF
10f2d63a
VZ
19385
19386fi
19387
8284b0c5 19388
10f2d63a 19389if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 19390 cat >> confdefs.h <<\EOF
10f2d63a 19391#define wxUSE_APPLE_IEEE 1
a0b9e27f 19392EOF
10f2d63a
VZ
19393
19394fi
19395
1e6feb95 19396if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 19397 cat >> confdefs.h <<\EOF
1e6feb95 19398#define wxUSE_TIMER 1
a0b9e27f 19399EOF
1e6feb95
VZ
19400
19401fi
19402
10f2d63a 19403if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 19404 cat >> confdefs.h <<\EOF
10f2d63a 19405#define wxUSE_WAVE 1
a0b9e27f 19406EOF
10f2d63a
VZ
19407
19408fi
19409
1e6feb95 19410if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 19411 cat >> confdefs.h <<\EOF
1e6feb95 19412#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 19413EOF
1e6feb95
VZ
19414
19415fi
19416
19417if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 19418 cat >> confdefs.h <<\EOF
1e6feb95 19419#define wxUSE_STOPWATCH 1
a0b9e27f 19420EOF
1e6feb95
VZ
19421
19422fi
19423
19424if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19425 cat >> confdefs.h <<\EOF
1e6feb95 19426#define wxUSE_DATETIME 1
a0b9e27f 19427EOF
1e6feb95
VZ
19428
19429fi
19430
19431if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 19432 cat >> confdefs.h <<\EOF
1e6feb95 19433#define wxUSE_TIMEDATE 1
a0b9e27f 19434EOF
1e6feb95
VZ
19435
19436fi
19437
10f2d63a 19438if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 19439 cat >> confdefs.h <<\EOF
10f2d63a 19440#define wxUSE_FILE 1
a0b9e27f 19441EOF
10f2d63a
VZ
19442
19443fi
19444
1e6feb95 19445if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 19446 cat >> confdefs.h <<\EOF
1e6feb95 19447#define wxUSE_FFILE 1
a0b9e27f 19448EOF
1e6feb95
VZ
19449
19450fi
19451
24528b0c 19452if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 19453 cat >> confdefs.h <<\EOF
24528b0c 19454#define wxUSE_FILESYSTEM 1
a0b9e27f 19455EOF
24528b0c
VS
19456
19457fi
19458
10f2d63a 19459if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 19460 cat >> confdefs.h <<\EOF
10f2d63a 19461#define wxUSE_FS_INET 1
a0b9e27f 19462EOF
10f2d63a
VZ
19463
19464fi
19465
19466if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 19467 cat >> confdefs.h <<\EOF
10f2d63a 19468#define wxUSE_FS_ZIP 1
a0b9e27f 19469EOF
10f2d63a
VZ
19470
19471fi
19472
19473if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 19474 cat >> confdefs.h <<\EOF
10f2d63a 19475#define wxUSE_ZIPSTREAM 1
a0b9e27f 19476EOF
10f2d63a
VZ
19477
19478fi
19479
eb4efbdc 19480if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 19481 cat >> confdefs.h <<\EOF
eb4efbdc 19482#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 19483EOF
eb4efbdc
VZ
19484
19485fi
19486
4f3c5f06 19487if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 19488 cat >> confdefs.h <<\EOF
4f3c5f06 19489#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 19490EOF
4f3c5f06
VZ
19491
19492fi
19493
10f2d63a 19494if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 19495 cat >> confdefs.h <<\EOF
10f2d63a 19496#define wxUSE_BUSYINFO 1
a0b9e27f 19497EOF
10f2d63a
VZ
19498
19499fi
19500
19501if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 19502 cat >> confdefs.h <<\EOF
10f2d63a 19503#define wxUSE_STD_IOSTREAM 1
a0b9e27f 19504EOF
10f2d63a
VZ
19505
19506fi
19507
a3a584a7 19508if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 19509 cat >> confdefs.h <<\EOF
a3a584a7 19510#define wxUSE_TEXTBUFFER 1
a0b9e27f 19511EOF
a3a584a7
VZ
19512
19513fi
19514
10f2d63a 19515if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 19516 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 19517 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 19518 else
a0b9e27f 19519 cat >> confdefs.h <<\EOF
10f2d63a 19520#define wxUSE_TEXTFILE 1
a0b9e27f 19521EOF
10f2d63a
VZ
19522
19523 fi
19524fi
19525
19526if test "$wxUSE_CONFIG" = "yes" ; then
19527 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 19528 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 19529 else
a0b9e27f 19530 cat >> confdefs.h <<\EOF
10f2d63a 19531#define wxUSE_CONFIG 1
a0b9e27f 19532EOF
10f2d63a
VZ
19533
19534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19535 fi
19536fi
19537
19538if test "$wxUSE_INTL" = "yes" ; then
19539 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 19540 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 19541 else
a0b9e27f 19542 cat >> confdefs.h <<\EOF
10f2d63a 19543#define wxUSE_INTL 1
a0b9e27f 19544EOF
10f2d63a
VZ
19545
19546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 19547 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
19548 fi
19549fi
19550
19551if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 19552 cat >> confdefs.h <<\EOF
10f2d63a 19553#define wxUSE_LOG 1
a0b9e27f 19554EOF
10f2d63a 19555
8284b0c5 19556
d73be714 19557 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 19558 cat >> confdefs.h <<\EOF
d73be714 19559#define wxUSE_LOGGUI 1
a0b9e27f 19560EOF
d73be714
VZ
19561
19562 fi
19563
19564 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 19565 cat >> confdefs.h <<\EOF
d73be714 19566#define wxUSE_LOGWINDOW 1
a0b9e27f 19567EOF
69d27ff7
MB
19568
19569 fi
19570
19571 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 19572 cat >> confdefs.h <<\EOF
69d27ff7 19573#define wxUSE_LOG_DIALOG 1
a0b9e27f 19574EOF
d73be714
VZ
19575
19576 fi
10f2d63a
VZ
19577fi
19578
19579if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 19580 cat >> confdefs.h <<\EOF
10f2d63a 19581#define wxUSE_LONGLONG 1
a0b9e27f 19582EOF
10f2d63a
VZ
19583
19584fi
19585
e8f65ba6 19586if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 19587 cat >> confdefs.h <<\EOF
e8f65ba6 19588#define wxUSE_GEOMETRY 1
a0b9e27f 19589EOF
e8f65ba6
RR
19590
19591fi
19592
10f2d63a 19593if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 19594 cat >> confdefs.h <<\EOF
10f2d63a 19595#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 19596EOF
10f2d63a 19597
70f7a477 19598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
19599fi
19600
19601if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 19602 cat >> confdefs.h <<\EOF
10f2d63a 19603#define wxUSE_STREAMS 1
a0b9e27f 19604EOF
10f2d63a
VZ
19605
19606fi
19607
5c6fa7d2 19608
8284b0c5 19609if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 19610 for ac_func in strptime
83307f33 19611do
a0b9e27f 19612echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 19613echo "configure:19614: checking for $ac_func" >&5
a0b9e27f
MB
19614if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19615 echo $ac_n "(cached) $ac_c" 1>&6
19616else
19617 cat > conftest.$ac_ext <<EOF
54ab82b3 19618#line 19619 "configure"
83307f33
VZ
19619#include "confdefs.h"
19620/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19621 which can conflict with char $ac_func(); below. */
83307f33
VZ
19622#include <assert.h>
19623/* Override any gcc2 internal prototype to avoid an error. */
19624/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19625 builtin and then its argument prototype would still apply. */
19626char $ac_func();
19627
19628int main() {
19629
83307f33
VZ
19630/* The GNU C library defines this for functions which it implements
19631 to always fail with ENOSYS. Some functions are actually named
19632 something starting with __ and the normal name is an alias. */
19633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19634choke me
19635#else
a0b9e27f 19636$ac_func();
83307f33
VZ
19637#endif
19638
a0b9e27f
MB
19639; return 0; }
19640EOF
54ab82b3 19641if { (eval echo configure:19642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19642 rm -rf conftest*
19643 eval "ac_cv_func_$ac_func=yes"
19644else
19645 echo "configure: failed program was:" >&5
19646 cat conftest.$ac_ext >&5
19647 rm -rf conftest*
19648 eval "ac_cv_func_$ac_func=no"
19649fi
19650rm -f conftest*
19651fi
83307f33 19652
a0b9e27f
MB
19653if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19654 echo "$ac_t""yes" 1>&6
19655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19656 cat >> confdefs.h <<EOF
19657#define $ac_tr_func 1
19658EOF
19659
19660else
19661 echo "$ac_t""no" 1>&6
83307f33
VZ
19662fi
19663done
19664
5c6fa7d2 19665
a0b9e27f 19666 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
54ab82b3 19667echo "configure:19668: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
19668if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19669 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 19670else
a0b9e27f
MB
19671
19672 cat > conftest.$ac_ext <<EOF
54ab82b3 19673#line 19674 "configure"
360d6699
VZ
19674#include "confdefs.h"
19675
b4085ce6 19676 #include <time.h>
a0b9e27f
MB
19677
19678int main() {
360d6699
VZ
19679
19680 int tz;
4f11a343 19681 tz = timezone;
a0b9e27f
MB
19682
19683; return 0; }
19684EOF
54ab82b3 19685if { (eval echo configure:19686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19686 rm -rf conftest*
19687
4f11a343 19688 wx_cv_var_timezone=timezone
a0b9e27f 19689
360d6699 19690else
a0b9e27f
MB
19691 echo "configure: failed program was:" >&5
19692 cat conftest.$ac_ext >&5
19693 rm -rf conftest*
19694
19695 cat > conftest.$ac_ext <<EOF
54ab82b3 19696#line 19697 "configure"
360d6699
VZ
19697#include "confdefs.h"
19698
b4085ce6 19699 #include <time.h>
a0b9e27f
MB
19700
19701int main() {
360d6699
VZ
19702
19703 int tz;
19704 tz = _timezone;
a0b9e27f
MB
19705
19706; return 0; }
19707EOF
54ab82b3 19708if { (eval echo configure:19709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19709 rm -rf conftest*
19710
360d6699 19711 wx_cv_var_timezone=_timezone
a0b9e27f 19712
5357c8e8 19713else
a0b9e27f
MB
19714 echo "configure: failed program was:" >&5
19715 cat conftest.$ac_ext >&5
19716 rm -rf conftest*
19717
19718 cat > conftest.$ac_ext <<EOF
54ab82b3 19719#line 19720 "configure"
5357c8e8
VZ
19720#include "confdefs.h"
19721
b4085ce6 19722 #include <time.h>
a0b9e27f
MB
19723
19724int main() {
5357c8e8
VZ
19725
19726 int tz;
4f11a343 19727 tz = __timezone;
a0b9e27f
MB
19728
19729; return 0; }
19730EOF
54ab82b3 19731if { (eval echo configure:19732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19732 rm -rf conftest*
19733
4f11a343 19734 wx_cv_var_timezone=__timezone
a0b9e27f 19735
360d6699 19736else
a0b9e27f
MB
19737 echo "configure: failed program was:" >&5
19738 cat conftest.$ac_ext >&5
19739 rm -rf conftest*
19740
f9bc1684 19741 if test "$USE_DOS" = 0 ; then
a0b9e27f 19742 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 19743 fi
a0b9e27f
MB
19744
19745
328a083c 19746fi
a0b9e27f
MB
19747rm -f conftest*
19748
19749
7b4a847f 19750fi
a0b9e27f
MB
19751rm -f conftest*
19752
19753
5c6fa7d2 19754fi
a0b9e27f
MB
19755rm -f conftest*
19756
19757
247f5006 19758fi
a0b9e27f
MB
19759
19760echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 19761
f9bc1684 19762 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 19763 cat >> confdefs.h <<EOF
360d6699 19764#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 19765EOF
360d6699 19766
f9bc1684 19767 fi
698dcdb6 19768
a0b9e27f 19769 for ac_func in localtime
afc31813 19770do
a0b9e27f 19771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 19772echo "configure:19773: checking for $ac_func" >&5
a0b9e27f
MB
19773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19774 echo $ac_n "(cached) $ac_c" 1>&6
19775else
19776 cat > conftest.$ac_ext <<EOF
54ab82b3 19777#line 19778 "configure"
10f2d63a 19778#include "confdefs.h"
afc31813 19779/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19780 which can conflict with char $ac_func(); below. */
afc31813
VZ
19781#include <assert.h>
19782/* Override any gcc2 internal prototype to avoid an error. */
19783/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19784 builtin and then its argument prototype would still apply. */
19785char $ac_func();
19786
19787int main() {
19788
afc31813
VZ
19789/* The GNU C library defines this for functions which it implements
19790 to always fail with ENOSYS. Some functions are actually named
19791 something starting with __ and the normal name is an alias. */
19792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19793choke me
19794#else
a0b9e27f 19795$ac_func();
afc31813
VZ
19796#endif
19797
a0b9e27f
MB
19798; return 0; }
19799EOF
54ab82b3 19800if { (eval echo configure:19801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19801 rm -rf conftest*
19802 eval "ac_cv_func_$ac_func=yes"
19803else
19804 echo "configure: failed program was:" >&5
19805 cat conftest.$ac_ext >&5
19806 rm -rf conftest*
19807 eval "ac_cv_func_$ac_func=no"
19808fi
19809rm -f conftest*
19810fi
afc31813 19811
a0b9e27f
MB
19812if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19813 echo "$ac_t""yes" 1>&6
19814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19815 cat >> confdefs.h <<EOF
19816#define $ac_tr_func 1
19817EOF
19818
19819else
19820 echo "$ac_t""no" 1>&6
afc31813
VZ
19821fi
19822done
19823
5c6fa7d2 19824
8284b0c5 19825 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 19826 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
54ab82b3 19827echo "configure:19828: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
19828if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19829 echo $ac_n "(cached) $ac_c" 1>&6
19830else
19831
19832 cat > conftest.$ac_ext <<EOF
54ab82b3 19833#line 19834 "configure"
0470b1e6
VZ
19834#include "confdefs.h"
19835
b4085ce6 19836 #include <time.h>
a0b9e27f
MB
19837
19838int main() {
0470b1e6
VZ
19839
19840 struct tm tm;
19841 tm.tm_gmtoff++;
a0b9e27f
MB
19842
19843; return 0; }
19844EOF
54ab82b3 19845if { (eval echo configure:19846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
19846 rm -rf conftest*
19847
f03a98d8 19848 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 19849
0470b1e6 19850else
a0b9e27f
MB
19851 echo "configure: failed program was:" >&5
19852 cat conftest.$ac_ext >&5
19853 rm -rf conftest*
19854 wx_cv_struct_tm_has_gmtoff=no
19855
5c6fa7d2 19856fi
a0b9e27f
MB
19857rm -f conftest*
19858
247f5006 19859fi
a0b9e27f
MB
19860
19861echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
19862 fi
19863
19864 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 19865 cat >> confdefs.h <<\EOF
6232543b 19866#define WX_GMTOFF_IN_TM 1
a0b9e27f 19867EOF
0470b1e6 19868
3fcdd07b
VZ
19869 fi
19870
a0b9e27f 19871 for ac_func in gettimeofday ftime
3fcdd07b 19872do
a0b9e27f 19873echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 19874echo "configure:19875: checking for $ac_func" >&5
a0b9e27f
MB
19875if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19876 echo $ac_n "(cached) $ac_c" 1>&6
19877else
19878 cat > conftest.$ac_ext <<EOF
54ab82b3 19879#line 19880 "configure"
3fcdd07b
VZ
19880#include "confdefs.h"
19881/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19882 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
19883#include <assert.h>
19884/* Override any gcc2 internal prototype to avoid an error. */
19885/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19886 builtin and then its argument prototype would still apply. */
19887char $ac_func();
19888
19889int main() {
19890
3fcdd07b
VZ
19891/* The GNU C library defines this for functions which it implements
19892 to always fail with ENOSYS. Some functions are actually named
19893 something starting with __ and the normal name is an alias. */
19894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19895choke me
19896#else
a0b9e27f 19897$ac_func();
3fcdd07b
VZ
19898#endif
19899
a0b9e27f
MB
19900; return 0; }
19901EOF
54ab82b3 19902if { (eval echo configure:19903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19903 rm -rf conftest*
19904 eval "ac_cv_func_$ac_func=yes"
19905else
19906 echo "configure: failed program was:" >&5
19907 cat conftest.$ac_ext >&5
19908 rm -rf conftest*
19909 eval "ac_cv_func_$ac_func=no"
19910fi
19911rm -f conftest*
19912fi
19913
19914if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19915 echo "$ac_t""yes" 1>&6
19916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19917 cat >> confdefs.h <<EOF
19918#define $ac_tr_func 1
19919EOF
3fcdd07b 19920 break
a0b9e27f
MB
19921else
19922 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19923fi
19924done
19925
698dcdb6 19926
8284b0c5 19927 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19928 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
54ab82b3 19929echo "configure:19930: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19930if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19931 echo $ac_n "(cached) $ac_c" 1>&6
19932else
19933
19934
19935 ac_ext=C
19936# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19937ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19938ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19939ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19940cross_compiling=$ac_cv_prog_cxx_cross
52127426 19941
8284b0c5 19942
a0b9e27f 19943 cat > conftest.$ac_ext <<EOF
54ab82b3 19944#line 19945 "configure"
10f2d63a 19945#include "confdefs.h"
afc31813
VZ
19946
19947 #include <sys/time.h>
19948 #include <unistd.h>
a0b9e27f
MB
19949
19950int main() {
afc31813
VZ
19951
19952 struct timeval tv;
776862b4 19953 gettimeofday(&tv, NULL);
a0b9e27f
MB
19954
19955; return 0; }
19956EOF
54ab82b3 19957if { (eval echo configure:19958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19958 rm -rf conftest*
afc31813 19959 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 19960else
a0b9e27f
MB
19961 echo "configure: failed program was:" >&5
19962 cat conftest.$ac_ext >&5
19963 rm -rf conftest*
19964 cat > conftest.$ac_ext <<EOF
54ab82b3 19965#line 19966 "configure"
10f2d63a 19966#include "confdefs.h"
afc31813
VZ
19967
19968 #include <sys/time.h>
19969 #include <unistd.h>
a0b9e27f
MB
19970
19971int main() {
afc31813
VZ
19972
19973 struct timeval tv;
19974 gettimeofday(&tv);
a0b9e27f
MB
19975
19976; return 0; }
19977EOF
54ab82b3 19978if { (eval echo configure:19979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19979 rm -rf conftest*
afc31813 19980 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 19981else
a0b9e27f
MB
19982 echo "configure: failed program was:" >&5
19983 cat conftest.$ac_ext >&5
19984 rm -rf conftest*
19985
19986 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 19987 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
19988
19989
10f2d63a 19990fi
a0b9e27f
MB
19991rm -f conftest*
19992
10f2d63a 19993fi
a0b9e27f 19994rm -f conftest*
afc31813 19995 ac_ext=c
a0b9e27f 19996# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 19997ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19998ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19999ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20000cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20001
a0b9e27f 20002
247f5006 20003fi
a0b9e27f
MB
20004
20005echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 20006
afc31813 20007 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 20008 cat >> confdefs.h <<\EOF
afc31813 20009#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 20010EOF
afc31813
VZ
20011
20012 fi
20013 fi
20014
a0b9e27f 20015 cat >> confdefs.h <<\EOF
afc31813 20016#define wxUSE_TIMEDATE 1
a0b9e27f 20017EOF
afc31813
VZ
20018
20019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20020fi
20021
8284b0c5 20022
52127426 20023if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 20024 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 20025 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20026 wxUSE_SOCKETS="no"
20027 fi
0feee163 20028fi
b089607b 20029
0feee163
VZ
20030if test "$wxUSE_SOCKETS" = "yes"; then
20031 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20032 echo $ac_n "checking for socket""... $ac_c" 1>&6
54ab82b3 20033echo "configure:20034: checking for socket" >&5
a0b9e27f
MB
20034if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20035 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20036else
a0b9e27f 20037 cat > conftest.$ac_ext <<EOF
54ab82b3 20038#line 20039 "configure"
c63c7106
VZ
20039#include "confdefs.h"
20040/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20041 which can conflict with char socket(); below. */
c63c7106
VZ
20042#include <assert.h>
20043/* Override any gcc2 internal prototype to avoid an error. */
20044/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20045 builtin and then its argument prototype would still apply. */
20046char socket();
20047
20048int main() {
20049
c63c7106
VZ
20050/* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053#if defined (__stub_socket) || defined (__stub___socket)
20054choke me
20055#else
a0b9e27f 20056socket();
c63c7106
VZ
20057#endif
20058
a0b9e27f
MB
20059; return 0; }
20060EOF
54ab82b3 20061if { (eval echo configure:20062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20062 rm -rf conftest*
20063 eval "ac_cv_func_socket=yes"
20064else
20065 echo "configure: failed program was:" >&5
20066 cat conftest.$ac_ext >&5
20067 rm -rf conftest*
20068 eval "ac_cv_func_socket=no"
20069fi
20070rm -f conftest*
20071fi
20072
20073if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20074 echo "$ac_t""yes" 1>&6
c63c7106
VZ
20075 :
20076else
a0b9e27f
MB
20077 echo "$ac_t""no" 1>&6
20078echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
54ab82b3 20079echo "configure:20080: checking for socket in -lsocket" >&5
a0b9e27f
MB
20080ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20081if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20082 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 20083else
a0b9e27f 20084 ac_save_LIBS="$LIBS"
c63c7106 20085LIBS="-lsocket $LIBS"
a0b9e27f 20086cat > conftest.$ac_ext <<EOF
54ab82b3 20087#line 20088 "configure"
c63c7106
VZ
20088#include "confdefs.h"
20089/* Override any gcc2 internal prototype to avoid an error. */
20090/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20091 builtin and then its argument prototype would still apply. */
20092char socket();
20093
20094int main() {
20095socket()
20096; return 0; }
20097EOF
54ab82b3 20098if { (eval echo configure:20099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20099 rm -rf conftest*
20100 eval "ac_cv_lib_$ac_lib_var=yes"
20101else
20102 echo "configure: failed program was:" >&5
20103 cat conftest.$ac_ext >&5
20104 rm -rf conftest*
20105 eval "ac_cv_lib_$ac_lib_var=no"
20106fi
20107rm -f conftest*
20108LIBS="$ac_save_LIBS"
20109
20110fi
20111if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20112 echo "$ac_t""yes" 1>&6
d558c907
VS
20113 if test "$INET_LINK" != " -lsocket"; then
20114 INET_LINK="$INET_LINK -lsocket"
20115 fi
c63c7106 20116else
a0b9e27f 20117 echo "$ac_t""no" 1>&6
afc31813 20118
a0b9e27f 20119 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 20120 wxUSE_SOCKETS=no
a0b9e27f
MB
20121
20122
6232543b 20123fi
b089607b 20124
a0b9e27f 20125
1e487827 20126fi
afc31813 20127
3a922bb4 20128 fi
0feee163 20129fi
51a9faba 20130
0feee163
VZ
20131if test "$wxUSE_SOCKETS" = "yes" ; then
20132 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 20133 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
54ab82b3 20134echo "configure:20135: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
20135if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20136 echo $ac_n "(cached) $ac_c" 1>&6
20137else
20138
20139
20140 ac_ext=C
20141# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 20142ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20143ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20144ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20145cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 20146
8284b0c5 20147
a0b9e27f 20148 cat > conftest.$ac_ext <<EOF
54ab82b3 20149#line 20150 "configure"
afc31813 20150#include "confdefs.h"
51a9faba 20151
3a922bb4
RL
20152 #include <sys/types.h>
20153 #include <sys/socket.h>
a0b9e27f
MB
20154
20155int main() {
51a9faba 20156
3a922bb4
RL
20157 socklen_t len;
20158 getsockname(0, 0, &len);
a0b9e27f
MB
20159
20160; return 0; }
20161EOF
54ab82b3 20162if { (eval echo configure:20163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20163 rm -rf conftest*
51a9faba 20164 wx_cv_type_getsockname3=socklen_t
afc31813 20165else
a0b9e27f
MB
20166 echo "configure: failed program was:" >&5
20167 cat conftest.$ac_ext >&5
20168 rm -rf conftest*
20169 cat > conftest.$ac_ext <<EOF
54ab82b3 20170#line 20171 "configure"
afc31813 20171#include "confdefs.h"
51a9faba 20172
3a922bb4
RL
20173 #include <sys/types.h>
20174 #include <sys/socket.h>
a0b9e27f
MB
20175
20176int main() {
51a9faba 20177
3a922bb4
RL
20178 size_t len;
20179 getsockname(0, 0, &len);
a0b9e27f
MB
20180
20181; return 0; }
20182EOF
54ab82b3 20183if { (eval echo configure:20184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20184 rm -rf conftest*
51a9faba 20185 wx_cv_type_getsockname3=size_t
afc31813 20186else
a0b9e27f
MB
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20189 rm -rf conftest*
20190 cat > conftest.$ac_ext <<EOF
54ab82b3 20191#line 20192 "configure"
afc31813 20192#include "confdefs.h"
51a9faba 20193
3a922bb4
RL
20194 #include <sys/types.h>
20195 #include <sys/socket.h>
a0b9e27f
MB
20196
20197int main() {
51a9faba 20198
3a922bb4
RL
20199 int len;
20200 getsockname(0, 0, &len);
a0b9e27f
MB
20201
20202; return 0; }
20203EOF
54ab82b3 20204if { (eval echo configure:20205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 20205 rm -rf conftest*
51a9faba 20206 wx_cv_type_getsockname3=int
afc31813 20207else
a0b9e27f
MB
20208 echo "configure: failed program was:" >&5
20209 cat conftest.$ac_ext >&5
20210 rm -rf conftest*
20211 wx_cv_type_getsockname3=unknown
20212
afc31813 20213fi
a0b9e27f
MB
20214rm -f conftest*
20215
afc31813 20216fi
a0b9e27f
MB
20217rm -f conftest*
20218
afc31813 20219fi
a0b9e27f 20220rm -f conftest*
51a9faba 20221
3a922bb4 20222 ac_ext=c
a0b9e27f 20223# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 20224ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20225ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20226ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20227cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20228
a0b9e27f 20229
247f5006 20230fi
a0b9e27f
MB
20231
20232echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 20233
3a922bb4
RL
20234 if test "$wx_cv_type_getsockname3" = "unknown"; then
20235 wxUSE_SOCKETS=no
a0b9e27f 20236 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 20237 else
a0b9e27f 20238 cat >> confdefs.h <<EOF
51a9faba 20239#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 20240EOF
51a9faba 20241
3a922bb4 20242 fi
51a9faba
VZ
20243 fi
20244fi
afc31813 20245
51a9faba 20246if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 20247 cat >> confdefs.h <<\EOF
afc31813 20248#define wxUSE_SOCKETS 1
a0b9e27f 20249EOF
afc31813 20250
70f7a477 20251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
20252fi
20253
8284b0c5 20254
dc3d889d
VZ
20255if test "$wxUSE_GUI" = "yes"; then
20256
156b2523 20257 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 20258 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20259 wxUSE_JOYSTICK=no
20260 fi
20261 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 20262 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 20263 wxUSE_JOYSTICK=no
f79bd02d
JS
20264 fi
20265 if test "$TOOLKIT" = "X11"; then
a0b9e27f 20266 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 20267 wxUSE_JOYSTICK=no
156b2523
GD
20268 fi
20269
3a922bb4
RL
20270 if test "$TOOLKIT" != "MSW"; then
20271 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20272 for ac_hdr in linux/joystick.h
10f2d63a 20273do
a0b9e27f
MB
20274ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20275echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 20276echo "configure:20277: checking for $ac_hdr" >&5
a0b9e27f
MB
20277if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20278 echo $ac_n "(cached) $ac_c" 1>&6
20279else
20280 cat > conftest.$ac_ext <<EOF
54ab82b3 20281#line 20282 "configure"
247f5006 20282#include "confdefs.h"
a0b9e27f
MB
20283#include <$ac_hdr>
20284EOF
20285ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 20286{ (eval echo configure:20287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20287ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20288if test -z "$ac_err"; then
20289 rm -rf conftest*
20290 eval "ac_cv_header_$ac_safe=yes"
20291else
20292 echo "$ac_err" >&5
20293 echo "configure: failed program was:" >&5
247f5006 20294 cat conftest.$ac_ext >&5
a0b9e27f
MB
20295 rm -rf conftest*
20296 eval "ac_cv_header_$ac_safe=no"
247f5006 20297fi
a0b9e27f 20298rm -f conftest*
10f2d63a 20299fi
a0b9e27f
MB
20300if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20301 echo "$ac_t""yes" 1>&6
20302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20303 cat >> confdefs.h <<EOF
20304#define $ac_tr_hdr 1
20305EOF
20306
20307else
20308 echo "$ac_t""no" 1>&6
247f5006 20309fi
10f2d63a
VZ
20310done
20311
3a922bb4
RL
20312 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20313 wxUSE_JOYSTICK=no
a0b9e27f 20314 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
20315 fi
20316 fi
20317 fi
b089607b 20318
3a922bb4 20319 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 20320 cat >> confdefs.h <<\EOF
10f2d63a 20321#define wxUSE_JOYSTICK 1
a0b9e27f 20322EOF
10f2d63a 20323
3a922bb4
RL
20324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20325 fi
dc3d889d
VZ
20326fi
20327
8284b0c5 20328
b089607b
VZ
20329if test "$TOOLKIT" != "MSW"; then
20330
3a922bb4
RL
20331 HAVE_DL_FUNCS=0
20332 HAVE_SHL_FUNCS=0
0b9ab0bd 20333 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
20334 if test "$USE_DARWIN" = 1; then
20335 HAVE_DL_FUNCS=1
20336 else
a0b9e27f 20337 for ac_func in dlopen
10f2d63a 20338do
a0b9e27f 20339echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 20340echo "configure:20341: checking for $ac_func" >&5
a0b9e27f
MB
20341if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20342 echo $ac_n "(cached) $ac_c" 1>&6
20343else
20344 cat > conftest.$ac_ext <<EOF
54ab82b3 20345#line 20346 "configure"
10f2d63a
VZ
20346#include "confdefs.h"
20347/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20348 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20349#include <assert.h>
20350/* Override any gcc2 internal prototype to avoid an error. */
20351/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20352 builtin and then its argument prototype would still apply. */
20353char $ac_func();
20354
20355int main() {
20356
10f2d63a
VZ
20357/* The GNU C library defines this for functions which it implements
20358 to always fail with ENOSYS. Some functions are actually named
20359 something starting with __ and the normal name is an alias. */
20360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20361choke me
20362#else
a0b9e27f 20363$ac_func();
10f2d63a
VZ
20364#endif
20365
a0b9e27f
MB
20366; return 0; }
20367EOF
54ab82b3 20368if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20369 rm -rf conftest*
20370 eval "ac_cv_func_$ac_func=yes"
20371else
20372 echo "configure: failed program was:" >&5
20373 cat conftest.$ac_ext >&5
20374 rm -rf conftest*
20375 eval "ac_cv_func_$ac_func=no"
20376fi
20377rm -f conftest*
20378fi
20379
20380if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20381 echo "$ac_t""yes" 1>&6
20382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20383 cat >> confdefs.h <<EOF
20384#define $ac_tr_func 1
20385EOF
20386
20387 cat >> confdefs.h <<\EOF
10f2d63a 20388#define HAVE_DLOPEN 1
a0b9e27f 20389EOF
10f2d63a 20390
3a922bb4 20391 HAVE_DL_FUNCS=1
a0b9e27f 20392
10f2d63a 20393else
a0b9e27f
MB
20394 echo "$ac_t""no" 1>&6
20395echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
54ab82b3 20396echo "configure:20397: checking for dlopen in -ldl" >&5
a0b9e27f
MB
20397ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20399 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20400else
a0b9e27f 20401 ac_save_LIBS="$LIBS"
10f2d63a 20402LIBS="-ldl $LIBS"
a0b9e27f 20403cat > conftest.$ac_ext <<EOF
54ab82b3 20404#line 20405 "configure"
10f2d63a
VZ
20405#include "confdefs.h"
20406/* Override any gcc2 internal prototype to avoid an error. */
20407/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20408 builtin and then its argument prototype would still apply. */
20409char dlopen();
20410
20411int main() {
20412dlopen()
20413; return 0; }
20414EOF
54ab82b3 20415if { (eval echo configure:20416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20416 rm -rf conftest*
20417 eval "ac_cv_lib_$ac_lib_var=yes"
20418else
20419 echo "configure: failed program was:" >&5
20420 cat conftest.$ac_ext >&5
20421 rm -rf conftest*
20422 eval "ac_cv_lib_$ac_lib_var=no"
20423fi
20424rm -f conftest*
20425LIBS="$ac_save_LIBS"
20426
20427fi
20428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20429 echo "$ac_t""yes" 1>&6
20430
20431 cat >> confdefs.h <<\EOF
10f2d63a 20432#define HAVE_DLOPEN 1
a0b9e27f 20433EOF
10f2d63a 20434
3a922bb4 20435 HAVE_DL_FUNCS=1
3d63bc3a 20436 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 20437
10f2d63a 20438else
a0b9e27f 20439 echo "$ac_t""no" 1>&6
10f2d63a 20440
a0b9e27f 20441 for ac_func in shl_load
10f2d63a 20442do
a0b9e27f 20443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 20444echo "configure:20445: checking for $ac_func" >&5
a0b9e27f
MB
20445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20446 echo $ac_n "(cached) $ac_c" 1>&6
20447else
20448 cat > conftest.$ac_ext <<EOF
54ab82b3 20449#line 20450 "configure"
10f2d63a
VZ
20450#include "confdefs.h"
20451/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20452 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
20453#include <assert.h>
20454/* Override any gcc2 internal prototype to avoid an error. */
20455/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20456 builtin and then its argument prototype would still apply. */
20457char $ac_func();
20458
20459int main() {
20460
10f2d63a
VZ
20461/* The GNU C library defines this for functions which it implements
20462 to always fail with ENOSYS. Some functions are actually named
20463 something starting with __ and the normal name is an alias. */
20464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20465choke me
20466#else
a0b9e27f 20467$ac_func();
10f2d63a
VZ
20468#endif
20469
a0b9e27f
MB
20470; return 0; }
20471EOF
54ab82b3 20472if { (eval echo configure:20473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20473 rm -rf conftest*
20474 eval "ac_cv_func_$ac_func=yes"
20475else
20476 echo "configure: failed program was:" >&5
20477 cat conftest.$ac_ext >&5
20478 rm -rf conftest*
20479 eval "ac_cv_func_$ac_func=no"
20480fi
20481rm -f conftest*
20482fi
20483
20484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20485 echo "$ac_t""yes" 1>&6
20486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20487 cat >> confdefs.h <<EOF
20488#define $ac_tr_func 1
20489EOF
20490
20491 cat >> confdefs.h <<\EOF
10f2d63a 20492#define HAVE_SHL_LOAD 1
a0b9e27f 20493EOF
10f2d63a 20494
3a922bb4 20495 HAVE_SHL_FUNCS=1
a0b9e27f 20496
10f2d63a 20497else
a0b9e27f
MB
20498 echo "$ac_t""no" 1>&6
20499echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
54ab82b3 20500echo "configure:20501: checking for dld in -lshl_load" >&5
a0b9e27f
MB
20501ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20502if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20503 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20504else
a0b9e27f 20505 ac_save_LIBS="$LIBS"
f6bcfd97 20506LIBS="-lshl_load $LIBS"
a0b9e27f 20507cat > conftest.$ac_ext <<EOF
54ab82b3 20508#line 20509 "configure"
f6bcfd97 20509#include "confdefs.h"
8284b0c5 20510/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 20511/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20512 builtin and then its argument prototype would still apply. */
20513char dld();
20514
20515int main() {
20516dld()
20517; return 0; }
20518EOF
54ab82b3 20519if { (eval echo configure:20520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20520 rm -rf conftest*
20521 eval "ac_cv_lib_$ac_lib_var=yes"
20522else
20523 echo "configure: failed program was:" >&5
20524 cat conftest.$ac_ext >&5
20525 rm -rf conftest*
20526 eval "ac_cv_lib_$ac_lib_var=no"
20527fi
20528rm -f conftest*
20529LIBS="$ac_save_LIBS"
f6bcfd97 20530
a0b9e27f
MB
20531fi
20532if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20533 echo "$ac_t""yes" 1>&6
20534
3a922bb4 20535 HAVE_SHL_FUNCS=1
3d63bc3a 20536 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
20537
20538else
20539 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20540fi
20541
a0b9e27f 20542
10f2d63a
VZ
20543fi
20544done
20545
a0b9e27f 20546
10f2d63a
VZ
20547fi
20548
a0b9e27f 20549
10f2d63a
VZ
20550fi
20551done
20552
5c6fa7d2 20553
8284b0c5 20554 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 20555 for ac_func in dlerror
f6bcfd97 20556do
a0b9e27f 20557echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 20558echo "configure:20559: checking for $ac_func" >&5
a0b9e27f
MB
20559if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20560 echo $ac_n "(cached) $ac_c" 1>&6
20561else
20562 cat > conftest.$ac_ext <<EOF
54ab82b3 20563#line 20564 "configure"
f6bcfd97
BP
20564#include "confdefs.h"
20565/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 20566 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
20567#include <assert.h>
20568/* Override any gcc2 internal prototype to avoid an error. */
20569/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20570 builtin and then its argument prototype would still apply. */
20571char $ac_func();
20572
20573int main() {
20574
f6bcfd97
BP
20575/* The GNU C library defines this for functions which it implements
20576 to always fail with ENOSYS. Some functions are actually named
20577 something starting with __ and the normal name is an alias. */
20578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20579choke me
20580#else
a0b9e27f 20581$ac_func();
f6bcfd97
BP
20582#endif
20583
a0b9e27f
MB
20584; return 0; }
20585EOF
54ab82b3 20586if { (eval echo configure:20587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20587 rm -rf conftest*
20588 eval "ac_cv_func_$ac_func=yes"
20589else
20590 echo "configure: failed program was:" >&5
20591 cat conftest.$ac_ext >&5
20592 rm -rf conftest*
20593 eval "ac_cv_func_$ac_func=no"
20594fi
20595rm -f conftest*
20596fi
20597
20598if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20599 echo "$ac_t""yes" 1>&6
20600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20601 cat >> confdefs.h <<EOF
20602#define $ac_tr_func 1
20603EOF
20604 cat >> confdefs.h <<\EOF
f6bcfd97 20605#define HAVE_DLERROR 1
a0b9e27f 20606EOF
f6bcfd97
BP
20607
20608else
a0b9e27f
MB
20609 echo "$ac_t""no" 1>&6
20610echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
54ab82b3 20611echo "configure:20612: checking for dlerror in -ldl" >&5
a0b9e27f
MB
20612ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20613if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20614 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 20615else
a0b9e27f 20616 ac_save_LIBS="$LIBS"
f6bcfd97 20617LIBS="-ldl $LIBS"
a0b9e27f 20618cat > conftest.$ac_ext <<EOF
54ab82b3 20619#line 20620 "configure"
f6bcfd97
BP
20620#include "confdefs.h"
20621/* Override any gcc2 internal prototype to avoid an error. */
20622/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
20623 builtin and then its argument prototype would still apply. */
20624char dlerror();
20625
20626int main() {
20627dlerror()
20628; return 0; }
20629EOF
54ab82b3 20630if { (eval echo configure:20631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20631 rm -rf conftest*
20632 eval "ac_cv_lib_$ac_lib_var=yes"
20633else
20634 echo "configure: failed program was:" >&5
20635 cat conftest.$ac_ext >&5
20636 rm -rf conftest*
20637 eval "ac_cv_lib_$ac_lib_var=no"
20638fi
20639rm -f conftest*
20640LIBS="$ac_save_LIBS"
20641
20642fi
20643if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20644 echo "$ac_t""yes" 1>&6
20645 cat >> confdefs.h <<\EOF
f6bcfd97 20646#define HAVE_DLERROR 1
a0b9e27f 20647EOF
f6bcfd97 20648
a0b9e27f
MB
20649else
20650 echo "$ac_t""no" 1>&6
f6bcfd97
BP
20651fi
20652
20653fi
20654done
20655
3a922bb4
RL
20656 fi
20657 fi
f6bcfd97 20658
3a922bb4
RL
20659 if test "$HAVE_DL_FUNCS" = 0; then
20660 if test "$HAVE_SHL_FUNCS" = 0; then
20661 if test "$USE_UNIX" = 1; then
a0b9e27f 20662 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 20663 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
20664 wxUSE_DYNLIB_CLASS=no
20665 else
a0b9e27f 20666 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
20667 fi
20668 fi
10f2d63a
VZ
20669 fi
20670 fi
20671fi
20672
0b9ab0bd 20673if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 20674 cat >> confdefs.h <<\EOF
0b9ab0bd 20675#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 20676EOF
0b9ab0bd
RL
20677
20678elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 20679 cat >> confdefs.h <<\EOF
10f2d63a 20680#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 20681EOF
10f2d63a
VZ
20682
20683fi
20684
8284b0c5 20685
1e6feb95 20686if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 20687 cat >> confdefs.h <<\EOF
1e6feb95 20688#define wxUSE_FONTMAP 1
a0b9e27f 20689EOF
1e6feb95
VZ
20690
20691fi
20692
10f2d63a 20693if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 20694 cat >> confdefs.h <<\EOF
10f2d63a 20695#define wxUSE_UNICODE 1
a0b9e27f 20696EOF
10f2d63a 20697
8284b0c5 20698
bbc3925a
VS
20699 if test "$wxUSE_MSW" != 1; then
20700 wxUSE_UNICODE_MSLU=no
20701 fi
a72a4bfa
VS
20702
20703 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 20704 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
54ab82b3 20705echo "configure:20706: checking for main in -lunicows" >&5
a0b9e27f
MB
20706ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20708 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 20709else
a0b9e27f 20710 ac_save_LIBS="$LIBS"
a72a4bfa 20711LIBS="-lunicows $LIBS"
a0b9e27f 20712cat > conftest.$ac_ext <<EOF
54ab82b3 20713#line 20714 "configure"
a72a4bfa
VS
20714#include "confdefs.h"
20715
a0b9e27f
MB
20716int main() {
20717main()
20718; return 0; }
20719EOF
54ab82b3 20720if { (eval echo configure:20721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
20721 rm -rf conftest*
20722 eval "ac_cv_lib_$ac_lib_var=yes"
20723else
20724 echo "configure: failed program was:" >&5
20725 cat conftest.$ac_ext >&5
20726 rm -rf conftest*
20727 eval "ac_cv_lib_$ac_lib_var=no"
20728fi
20729rm -f conftest*
20730LIBS="$ac_save_LIBS"
8284b0c5 20731
a0b9e27f
MB
20732fi
20733if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20734 echo "$ac_t""yes" 1>&6
20735
20736 cat >> confdefs.h <<\EOF
a72a4bfa 20737#define wxUSE_UNICODE_MSLU 1
a0b9e27f 20738EOF
a72a4bfa 20739
a0b9e27f 20740
a72a4bfa 20741else
a0b9e27f 20742 echo "$ac_t""no" 1>&6
a72a4bfa 20743
a0b9e27f
MB
20744 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20745 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 20746 wxUSE_UNICODE_MSLU=no
a0b9e27f 20747
a72a4bfa
VS
20748fi
20749
20750 fi
10f2d63a
VZ
20751fi
20752
10f2d63a 20753if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 20754 cat >> confdefs.h <<\EOF
10f2d63a 20755#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 20756EOF
10f2d63a
VZ
20757
20758fi
20759
8284b0c5
MB
20760
20761
10f2d63a
VZ
20762IODBC_C_SRC=""
20763if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 20764 cat >> confdefs.h <<\EOF
10f2d63a 20765#define wxUSE_ODBC 1
a0b9e27f 20766EOF
10f2d63a
VZ
20767
20768 WXODBCFLAG="-D_IODBC_"
20769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
20770fi
20771
8284b0c5 20772
10f2d63a 20773if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 20774 cat >> confdefs.h <<\EOF
10f2d63a 20775#define wxUSE_POSTSCRIPT 1
a0b9e27f 20776EOF
10f2d63a
VZ
20777
20778fi
20779
a0b9e27f 20780cat >> confdefs.h <<\EOF
10f2d63a 20781#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 20782EOF
10f2d63a 20783
8284b0c5 20784
a0b9e27f 20785cat >> confdefs.h <<\EOF
10f2d63a 20786#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 20787EOF
10f2d63a 20788
8284b0c5
MB
20789
20790
10f2d63a 20791if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 20792 cat >> confdefs.h <<\EOF
10f2d63a 20793#define wxUSE_CONSTRAINTS 1
a0b9e27f 20794EOF
10f2d63a
VZ
20795
20796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20797fi
20798
20799if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 20800
8284b0c5 20801
bb811f17 20802 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 20803 cat >> confdefs.h <<\EOF
10f2d63a 20804#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 20805EOF
10f2d63a 20806
bb811f17
JS
20807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20808 fi
10f2d63a
VZ
20809fi
20810
20811if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 20812 cat >> confdefs.h <<\EOF
10f2d63a 20813#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 20814EOF
10f2d63a
VZ
20815
20816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20817 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20819 fi
20820fi
20821
20822if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 20823 cat >> confdefs.h <<\EOF
10f2d63a 20824#define wxUSE_HELP 1
a0b9e27f 20825EOF
10f2d63a
VZ
20826
20827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 20828
77e13408 20829 if test "$wxUSE_MSW" = 1; then
031d8228 20830 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 20831 cat >> confdefs.h <<\EOF
29fd3c0c 20832#define wxUSE_MS_HTML_HELP 1
a0b9e27f 20833EOF
29fd3c0c 20834
3e44f09d 20835 fi
3379ed37 20836 fi
031d8228
VS
20837
20838 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20839 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20840 cat >> confdefs.h <<\EOF
031d8228 20841#define wxUSE_WXHTML_HELP 1
a0b9e27f 20842EOF
031d8228
VS
20843
20844 else
a0b9e27f 20845 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
20846 wxUSE_WXHTML_HELP=no
20847 fi
20848 fi
10f2d63a
VZ
20849fi
20850
20851if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20852 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20853 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 20854 else
a0b9e27f 20855 cat >> confdefs.h <<\EOF
10f2d63a 20856#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 20857EOF
10f2d63a
VZ
20858
20859 fi
20860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20861fi
20862
20863if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 20864 cat >> confdefs.h <<\EOF
10f2d63a 20865#define wxUSE_PROLOGIO 1
a0b9e27f 20866EOF
10f2d63a 20867
2b5f62a0 20868 ALL_OBJECTS="$ALL_OBJECTS parser.o"
10f2d63a
VZ
20869fi
20870
20871if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 20872 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 20873 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
2b5f62a0
VZ
20874 else
20875 cat >> confdefs.h <<\EOF
10f2d63a 20876#define wxUSE_RESOURCES 1
a0b9e27f 20877EOF
10f2d63a 20878
2b5f62a0
VZ
20879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20880 fi
20881 if test "$wxUSE_PROLOGIO" != "yes" ; then
20882 ALL_OBJECTS="$ALL_OBJECTS parser.o"
e334d0ea 20883 fi
10f2d63a
VZ
20884fi
20885
20886if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 20887 cat >> confdefs.h <<\EOF
10f2d63a 20888#define wxUSE_X_RESOURCES 1
a0b9e27f 20889EOF
10f2d63a
VZ
20890
20891fi
20892
8284b0c5 20893
77e13408
RL
20894if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20895 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 20896 -o "$wxUSE_OLE" = "yes" \
77e13408 20897 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 20898 for ac_hdr in ole2.h
10f2d63a 20899do
a0b9e27f
MB
20900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 20902echo "configure:20903: checking for $ac_hdr" >&5
a0b9e27f
MB
20903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20904 echo $ac_n "(cached) $ac_c" 1>&6
20905else
20906 cat > conftest.$ac_ext <<EOF
54ab82b3 20907#line 20908 "configure"
10f2d63a 20908#include "confdefs.h"
a0b9e27f
MB
20909#include <$ac_hdr>
20910EOF
20911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 20912{ (eval echo configure:20913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20914if test -z "$ac_err"; then
20915 rm -rf conftest*
20916 eval "ac_cv_header_$ac_safe=yes"
20917else
20918 echo "$ac_err" >&5
20919 echo "configure: failed program was:" >&5
10f2d63a 20920 cat conftest.$ac_ext >&5
a0b9e27f
MB
20921 rm -rf conftest*
20922 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20923fi
a0b9e27f 20924rm -f conftest*
10f2d63a 20925fi
a0b9e27f
MB
20926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20927 echo "$ac_t""yes" 1>&6
20928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20929 cat >> confdefs.h <<EOF
20930#define $ac_tr_hdr 1
20931EOF
20932
20933else
20934 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20935fi
20936done
20937
8284b0c5 20938
2b9bdf71
VZ
20939 if test "$ac_cv_header_ole2_h" = "yes" ; then
20940 if test "$GCC" = yes ; then
a0b9e27f
MB
20941
20942 ac_ext=C
20943# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20944ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20945ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20946ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20947cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
20948
20949
a0b9e27f 20950 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
54ab82b3 20951echo "configure:20952: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 20952 cat > conftest.$ac_ext <<EOF
54ab82b3 20953#line 20954 "configure"
8284b0c5
MB
20954#include "confdefs.h"
20955#include <windows.h>
20956 #include <ole2.h>
a0b9e27f 20957int main() {
8284b0c5 20958
a0b9e27f
MB
20959; return 0; }
20960EOF
54ab82b3 20961if { (eval echo configure:20962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20962 rm -rf conftest*
20963 echo "$ac_t""no" 1>&6
20964else
20965 echo "configure: failed program was:" >&5
20966 cat conftest.$ac_ext >&5
20967 rm -rf conftest*
20968 echo "$ac_t""yes" 1>&6
8284b0c5
MB
20969 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20970fi
a0b9e27f 20971rm -f conftest*
8284b0c5 20972 ac_ext=c
a0b9e27f 20973# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20974ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20975ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20976ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20977cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20978
2b9bdf71 20979 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 20980 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 20981 cat >> confdefs.h <<\EOF
4f11a343 20982#define wxUSE_OLE 1
a0b9e27f 20983EOF
4f11a343 20984
8284b0c5 20985
2b9bdf71
VZ
20986 fi
20987
a0b9e27f 20988 cat >> confdefs.h <<\EOF
2b9bdf71 20989#define wxUSE_DATAOBJ 1
a0b9e27f 20990EOF
2b9bdf71
VZ
20991
20992 else
a0b9e27f 20993 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
20994
20995 wxUSE_CLIPBOARD=no
20996 wxUSE_DRAG_AND_DROP=no
20997 wxUSE_DATAOBJ=no
3bce6687
JS
20998 wxUSE_OLE=no
20999 fi
21000
21001 if test "$wxUSE_METAFILE" = "yes"; then
21002 cat >> confdefs.h <<\EOF
21003#define wxUSE_METAFILE 1
21004EOF
21005
21006
21007 cat >> confdefs.h <<\EOF
21008#define wxUSE_ENH_METAFILE 1
21009EOF
21010
21011 fi
21012fi
21013
21014if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21015 -o "$wxUSE_CLIPBOARD" = "yes" \
21016 -o "$wxUSE_OLE" = "yes" \
21017 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21018 for ac_hdr in ole2.h
21019do
21020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54ab82b3 21022echo "configure:21023: checking for $ac_hdr" >&5
3bce6687
JS
21023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21024 echo $ac_n "(cached) $ac_c" 1>&6
21025else
21026 cat > conftest.$ac_ext <<EOF
54ab82b3 21027#line 21028 "configure"
3bce6687
JS
21028#include "confdefs.h"
21029#include <$ac_hdr>
21030EOF
21031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54ab82b3 21032{ (eval echo configure:21033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3bce6687
JS
21033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21034if test -z "$ac_err"; then
21035 rm -rf conftest*
21036 eval "ac_cv_header_$ac_safe=yes"
21037else
21038 echo "$ac_err" >&5
21039 echo "configure: failed program was:" >&5
21040 cat conftest.$ac_ext >&5
21041 rm -rf conftest*
21042 eval "ac_cv_header_$ac_safe=no"
21043fi
21044rm -f conftest*
21045fi
21046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21047 echo "$ac_t""yes" 1>&6
21048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21049 cat >> confdefs.h <<EOF
21050#define $ac_tr_hdr 1
21051EOF
21052
21053else
21054 echo "$ac_t""no" 1>&6
21055fi
21056done
21057
21058
21059 if test "$ac_cv_header_ole2_h" = "yes" ; then
21060 if test "$GCC" = yes ; then
21061
21062 ac_ext=C
21063# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21064ac_cpp='$CXXCPP $CPPFLAGS'
21065ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21066ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21067cross_compiling=$ac_cv_prog_cxx_cross
21068
21069
21070 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
54ab82b3 21071echo "configure:21072: checking if g++ requires -fvtable-thunks" >&5
3bce6687 21072 cat > conftest.$ac_ext <<EOF
54ab82b3 21073#line 21074 "configure"
3bce6687
JS
21074#include "confdefs.h"
21075#include <windows.h>
21076 #include <ole2.h>
21077int main() {
21078
21079; return 0; }
21080EOF
54ab82b3 21081if { (eval echo configure:21082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3bce6687
JS
21082 rm -rf conftest*
21083 echo "$ac_t""no" 1>&6
21084else
21085 echo "configure: failed program was:" >&5
21086 cat conftest.$ac_ext >&5
21087 rm -rf conftest*
21088 echo "$ac_t""yes" 1>&6
21089 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21090fi
21091rm -f conftest*
21092 ac_ext=c
21093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21094ac_cpp='$CPP $CPPFLAGS'
21095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21096ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21097cross_compiling=$ac_cv_prog_cc_cross
21098
21099 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21100 LIBS=" -lwine_uuid$LIBS"
21101 cat >> confdefs.h <<\EOF
21102#define wxUSE_OLE 1
21103EOF
21104
21105
21106 fi
21107
21108 cat >> confdefs.h <<\EOF
21109#define wxUSE_DATAOBJ 1
21110EOF
21111
21112 else
21113 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21114
21115 wxUSE_CLIPBOARD=no
21116 wxUSE_DRAG_AND_DROP=no
21117 wxUSE_DATAOBJ=no
21118 wxUSE_OLE=no
2b9bdf71
VZ
21119 fi
21120
77e13408 21121 if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21122 cat >> confdefs.h <<\EOF
b64f0a5f 21123#define wxUSE_METAFILE 1
a0b9e27f 21124EOF
b64f0a5f 21125
8284b0c5 21126
a0b9e27f 21127 cat >> confdefs.h <<\EOF
b64f0a5f 21128#define wxUSE_ENH_METAFILE 1
a0b9e27f 21129EOF
b64f0a5f 21130
2b9bdf71
VZ
21131 fi
21132fi
21133
21134if test "$wxUSE_IPC" = "yes"; then
21135 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21136 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
21137 fi
21138
a0b9e27f 21139 cat >> confdefs.h <<\EOF
2b9bdf71 21140#define wxUSE_IPC 1
a0b9e27f 21141EOF
2b9bdf71
VZ
21142
21143fi
21144
21145if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 21146 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21147 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21148 wxUSE_CLIPBOARD=no
21149 fi
21150
21151 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 21152 cat >> confdefs.h <<\EOF
2b9bdf71 21153#define wxUSE_CLIPBOARD 1
a0b9e27f 21154EOF
2b9bdf71 21155
8284b0c5 21156
a0b9e27f 21157 cat >> confdefs.h <<\EOF
673f4220 21158#define wxUSE_DATAOBJ 1
a0b9e27f 21159EOF
673f4220 21160
6c657b52 21161 fi
2b9bdf71
VZ
21162fi
21163
21164if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21165 if test "$wxUSE_GTK" = 1; then
21166 if test "$WXGTK12" != 1; then
a0b9e27f 21167 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
21168 wxUSE_DRAG_AND_DROP=no
21169 fi
21170 fi
21171
2b9bdf71 21172 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21173 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
21174 wxUSE_DRAG_AND_DROP=no
21175 fi
21176
f79bd02d 21177 if test "$wxUSE_X11" = 1; then
a0b9e27f 21178 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
21179 wxUSE_DRAG_AND_DROP=no
21180 fi
21181
6c657b52 21182 if test "$wxUSE_MGL" = 1; then
a0b9e27f 21183 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
21184 wxUSE_DRAG_AND_DROP=no
21185 fi
21186
10f2d63a 21187 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 21188 cat >> confdefs.h <<\EOF
10f2d63a 21189#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 21190EOF
10f2d63a
VZ
21191
21192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21193 fi
21194
21195fi
21196
21197if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 21198 cat >> confdefs.h <<\EOF
10f2d63a 21199#define wxUSE_SPLINES 1
a0b9e27f 21200EOF
10f2d63a
VZ
21201
21202fi
21203
8284b0c5 21204
1e6feb95
VZ
21205USES_CONTROLS=0
21206if test "$wxUSE_CONTROLS" = "yes"; then
21207 USES_CONTROLS=1
21208fi
21209
10f2d63a 21210if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 21211 cat >> confdefs.h <<\EOF
10f2d63a 21212#define wxUSE_ACCEL 1
a0b9e27f 21213EOF
10f2d63a 21214
1e6feb95
VZ
21215 USES_CONTROLS=1
21216fi
21217
21218if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 21219 cat >> confdefs.h <<\EOF
1e6feb95 21220#define wxUSE_BUTTON 1
a0b9e27f 21221EOF
1e6feb95
VZ
21222
21223 USES_CONTROLS=1
21224fi
21225
21226if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 21227 cat >> confdefs.h <<\EOF
1e6feb95 21228#define wxUSE_BMPBUTTON 1
a0b9e27f 21229EOF
1e6feb95
VZ
21230
21231 USES_CONTROLS=1
21232fi
21233
21234if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 21235 cat >> confdefs.h <<\EOF
1e6feb95 21236#define wxUSE_CALENDARCTRL 1
a0b9e27f 21237EOF
1e6feb95
VZ
21238
21239 USES_CONTROLS=1
21240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
21241fi
21242
21243if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 21244 cat >> confdefs.h <<\EOF
10f2d63a 21245#define wxUSE_CARET 1
a0b9e27f 21246EOF
10f2d63a 21247
1e6feb95 21248 USES_CONTROLS=1
10f2d63a
VZ
21249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21250fi
21251
21252if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 21253 cat >> confdefs.h <<\EOF
10f2d63a 21254#define wxUSE_COMBOBOX 1
a0b9e27f 21255EOF
10f2d63a 21256
1e6feb95 21257 USES_CONTROLS=1
10f2d63a
VZ
21258fi
21259
21260if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 21261 cat >> confdefs.h <<\EOF
10f2d63a 21262#define wxUSE_CHOICE 1
a0b9e27f 21263EOF
10f2d63a 21264
1e6feb95 21265 USES_CONTROLS=1
10f2d63a
VZ
21266fi
21267
21268if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 21269 cat >> confdefs.h <<\EOF
10f2d63a 21270#define wxUSE_CHECKBOX 1
a0b9e27f 21271EOF
10f2d63a 21272
1e6feb95 21273 USES_CONTROLS=1
10f2d63a
VZ
21274fi
21275
21276if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 21277 cat >> confdefs.h <<\EOF
10f2d63a 21278#define wxUSE_CHECKLISTBOX 1
a0b9e27f 21279EOF
10f2d63a 21280
1e6feb95 21281 USES_CONTROLS=1
10f2d63a
VZ
21282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21283fi
21284
21285if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 21286 cat >> confdefs.h <<\EOF
10f2d63a 21287#define wxUSE_GAUGE 1
a0b9e27f 21288EOF
10f2d63a 21289
1e6feb95 21290 USES_CONTROLS=1
10f2d63a
VZ
21291fi
21292
d6a55c4b
VZ
21293if test "$wxUSE_NEW_GRID" = "yes"; then
21294 wxUSE_GRID="yes"
a0b9e27f 21295 cat >> confdefs.h <<\EOF
d6a55c4b 21296#define wxUSE_NEW_GRID 1
a0b9e27f 21297EOF
10f2d63a 21298
1e6feb95 21299 USES_CONTROLS=1
d6a55c4b 21300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
21301fi
21302
d6a55c4b 21303if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 21304 cat >> confdefs.h <<\EOF
d6a55c4b 21305#define wxUSE_GRID 1
a0b9e27f 21306EOF
10f2d63a 21307
1e6feb95 21308 USES_CONTROLS=1
d6a55c4b 21309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
21310fi
21311
21312if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21313 cat >> confdefs.h <<\EOF
10f2d63a 21314#define wxUSE_IMAGLIST 1
a0b9e27f 21315EOF
10f2d63a
VZ
21316
21317fi
21318
21319if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 21320 cat >> confdefs.h <<\EOF
10f2d63a 21321#define wxUSE_LISTBOX 1
a0b9e27f 21322EOF
10f2d63a 21323
1e6feb95 21324 USES_CONTROLS=1
10f2d63a
VZ
21325fi
21326
21327if test "$wxUSE_LISTCTRL" = "yes"; then
21328 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21329 cat >> confdefs.h <<\EOF
10f2d63a 21330#define wxUSE_LISTCTRL 1
a0b9e27f 21331EOF
10f2d63a 21332
1e6feb95 21333 USES_CONTROLS=1
10f2d63a
VZ
21334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21335 else
a0b9e27f 21336 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21337 fi
21338fi
21339
21340if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 21341 cat >> confdefs.h <<\EOF
10f2d63a 21342#define wxUSE_NOTEBOOK 1
a0b9e27f 21343EOF
10f2d63a 21344
1e6feb95 21345 USES_CONTROLS=1
10f2d63a
VZ
21346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21347fi
21348
24176f2c 21349if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 21350 cat >> confdefs.h <<\EOF
24176f2c 21351#define wxUSE_PROPSHEET 1
a0b9e27f 21352EOF
24176f2c
GD
21353
21354 USES_CONTROLS=1
21355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21356fi
21357
10f2d63a 21358if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 21359 cat >> confdefs.h <<\EOF
10f2d63a 21360#define wxUSE_RADIOBOX 1
a0b9e27f 21361EOF
10f2d63a 21362
1e6feb95 21363 USES_CONTROLS=1
10f2d63a
VZ
21364fi
21365
21366if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 21367 cat >> confdefs.h <<\EOF
10f2d63a 21368#define wxUSE_RADIOBTN 1
a0b9e27f 21369EOF
10f2d63a 21370
1e6feb95 21371 USES_CONTROLS=1
10f2d63a
VZ
21372fi
21373
21374if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 21375 cat >> confdefs.h <<\EOF
10f2d63a 21376#define wxUSE_SASH 1
a0b9e27f 21377EOF
10f2d63a
VZ
21378
21379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21380fi
21381
21382if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 21383 cat >> confdefs.h <<\EOF
10f2d63a 21384#define wxUSE_SCROLLBAR 1
a0b9e27f 21385EOF
10f2d63a 21386
1e6feb95 21387 USES_CONTROLS=1
741a9306 21388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
21389fi
21390
21391if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 21392 cat >> confdefs.h <<\EOF
10f2d63a 21393#define wxUSE_SLIDER 1
a0b9e27f 21394EOF
10f2d63a 21395
1e6feb95 21396 USES_CONTROLS=1
10f2d63a
VZ
21397fi
21398
21399if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 21400 cat >> confdefs.h <<\EOF
10f2d63a 21401#define wxUSE_SPINBTN 1
a0b9e27f 21402EOF
10f2d63a 21403
1e6feb95 21404 USES_CONTROLS=1
10f2d63a
VZ
21405fi
21406
56cfaa52 21407if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 21408 cat >> confdefs.h <<\EOF
56cfaa52 21409#define wxUSE_SPINCTRL 1
a0b9e27f 21410EOF
56cfaa52 21411
1e6feb95 21412 USES_CONTROLS=1
56cfaa52
RR
21413fi
21414
10f2d63a 21415if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 21416 cat >> confdefs.h <<\EOF
10f2d63a 21417#define wxUSE_SPLITTER 1
a0b9e27f 21418EOF
10f2d63a
VZ
21419
21420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21421fi
21422
21423if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 21424 cat >> confdefs.h <<\EOF
10f2d63a 21425#define wxUSE_STATBMP 1
a0b9e27f 21426EOF
10f2d63a 21427
1e6feb95 21428 USES_CONTROLS=1
10f2d63a
VZ
21429fi
21430
21431if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 21432 cat >> confdefs.h <<\EOF
10f2d63a 21433#define wxUSE_STATBOX 1
a0b9e27f 21434EOF
10f2d63a 21435
1e6feb95
VZ
21436 USES_CONTROLS=1
21437fi
21438
21439if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 21440 cat >> confdefs.h <<\EOF
1e6feb95 21441#define wxUSE_STATTEXT 1
a0b9e27f 21442EOF
1e6feb95
VZ
21443
21444 USES_CONTROLS=1
10f2d63a
VZ
21445fi
21446
21447if test "$wxUSE_STATLINE" = "yes"; then
21448 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 21449 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 21450 else
a0b9e27f 21451 cat >> confdefs.h <<\EOF
10f2d63a 21452#define wxUSE_STATLINE 1
a0b9e27f 21453EOF
10f2d63a 21454
1e6feb95 21455 USES_CONTROLS=1
10f2d63a
VZ
21456 fi
21457fi
21458
21459if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 21460 cat >> confdefs.h <<\EOF
10f2d63a 21461#define wxUSE_STATUSBAR 1
a0b9e27f 21462EOF
10f2d63a 21463
1e6feb95 21464 USES_CONTROLS=1
698dcdb6 21465
2286341c 21466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
21467fi
21468
21469if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 21470 cat >> confdefs.h <<\EOF
10f2d63a 21471#define wxUSE_TAB_DIALOG 1
a0b9e27f 21472EOF
10f2d63a
VZ
21473
21474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21475fi
21476
1e6feb95 21477if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 21478 cat >> confdefs.h <<\EOF
1e6feb95 21479#define wxUSE_TEXTCTRL 1
a0b9e27f 21480EOF
1e6feb95
VZ
21481
21482 USES_CONTROLS=1
21483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21484fi
21485
1db8dc4a 21486if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 21487 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21488 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
21489 wxUSE_TOGGLEBTN=no
21490 fi
21491 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21492 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
21493 wxUSE_TOGGLEBTN=no
21494 fi
21495
21496 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 21497 cat >> confdefs.h <<\EOF
1db8dc4a 21498#define wxUSE_TOGGLEBTN 1
a0b9e27f 21499EOF
1db8dc4a 21500
1e6feb95 21501 USES_CONTROLS=1
a45d7ab7 21502 fi
1db8dc4a
VZ
21503fi
21504
360d6699 21505if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 21506 cat >> confdefs.h <<\EOF
360d6699 21507#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 21508EOF
360d6699
VZ
21509
21510 wxUSE_TOOLBAR="yes"
1e6feb95 21511 USES_CONTROLS=1
360d6699
VZ
21512fi
21513
10f2d63a 21514if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 21515 cat >> confdefs.h <<\EOF
10f2d63a 21516#define wxUSE_TOOLBAR 1
a0b9e27f 21517EOF
10f2d63a 21518
1e6feb95 21519 USES_CONTROLS=1
698dcdb6 21520
360d6699
VZ
21521 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21522 wxUSE_TOOLBAR_NATIVE="yes"
21523 fi
21524
1e6feb95 21525 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 21526 cat >> confdefs.h <<\EOF
360d6699 21527#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 21528EOF
360d6699 21529
1e6feb95
VZ
21530 USES_CONTROLS=1
21531 fi
21532
21533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
21534fi
21535
10f2d63a
VZ
21536if test "$wxUSE_TOOLTIPS" = "yes"; then
21537 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21538 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
21539 else
21540 if test "$wxUSE_WINE" = 1; then
a0b9e27f 21541 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 21542 else
69d27ff7 21543 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 21544 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 21545 else
a0b9e27f 21546 cat >> confdefs.h <<\EOF
10f2d63a 21547#define wxUSE_TOOLTIPS 1
a0b9e27f 21548EOF
10f2d63a 21549
69d27ff7 21550 fi
10f2d63a
VZ
21551 fi
21552 fi
21553fi
21554
21555if test "$wxUSE_TREECTRL" = "yes"; then
21556 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 21557 cat >> confdefs.h <<\EOF
10f2d63a 21558#define wxUSE_TREECTRL 1
a0b9e27f 21559EOF
10f2d63a 21560
1e6feb95 21561 USES_CONTROLS=1
10f2d63a
VZ
21562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21563 else
a0b9e27f 21564 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
21565 fi
21566fi
21567
9f41d601 21568if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 21569 if test "$wxUSE_MAC" = 1; then
a0b9e27f 21570 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 21571 else
485cf710 21572 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 21573 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 21574 else
3c011993 21575 if test "$wxUSE_PM" = 1; then
a0b9e27f 21576 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21577 else
a0b9e27f 21578 cat >> confdefs.h <<\EOF
9f41d601 21579#define wxUSE_POPUPWIN 1
a0b9e27f 21580EOF
9f41d601 21581
8284b0c5 21582
3c011993
VZ
21583 USES_CONTROLS=1
21584 fi
485cf710 21585 fi
6abe4b65 21586 fi
9f41d601
RR
21587fi
21588
dd964dcc 21589if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 21590 if test "$wxUSE_PM" = 1; then
a0b9e27f 21591 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 21592 else
a0b9e27f 21593 cat >> confdefs.h <<\EOF
dd964dcc 21594#define wxUSE_TIPWINDOW 1
a0b9e27f 21595EOF
dd964dcc 21596
3c011993 21597 fi
dd964dcc
VZ
21598fi
21599
1e6feb95 21600if test "$USES_CONTROLS" = 1; then
a0b9e27f 21601 cat >> confdefs.h <<\EOF
1e6feb95 21602#define wxUSE_CONTROLS 1
a0b9e27f 21603EOF
10f2d63a 21604
10f2d63a
VZ
21605fi
21606
8284b0c5 21607
24176f2c 21608if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 21609 cat >> confdefs.h <<\EOF
24176f2c 21610#define wxUSE_TREELAYOUT 1
a0b9e27f 21611EOF
24176f2c
GD
21612
21613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21614fi
1e6feb95 21615
24fd6d87 21616if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 21617 cat >> confdefs.h <<\EOF
24fd6d87 21618#define wxUSE_DRAGIMAGE 1
a0b9e27f 21619EOF
24fd6d87
VZ
21620
21621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21622fi
21623
1e6feb95 21624if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 21625 cat >> confdefs.h <<\EOF
1e6feb95 21626#define wxUSE_MENUS 1
a0b9e27f 21627EOF
10f2d63a 21628
1e6feb95 21629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
21630fi
21631
1e6feb95 21632if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 21633 cat >> confdefs.h <<\EOF
1e6feb95 21634#define wxUSE_METAFILE 1
a0b9e27f 21635EOF
10f2d63a 21636
10f2d63a
VZ
21637fi
21638
1e6feb95 21639if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 21640 cat >> confdefs.h <<\EOF
1e6feb95 21641#define wxUSE_MIMETYPE 1
a0b9e27f 21642EOF
10f2d63a 21643
10f2d63a
VZ
21644fi
21645
3e44f09d 21646if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 21647 cat >> confdefs.h <<\EOF
3e44f09d 21648#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 21649EOF
3e44f09d 21650
321d2b14
VZ
21651if test "$TOOLKIT" = "MSW"; then
21652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21653fi
21654
3e44f09d
VZ
21655fi
21656
4cdb0ab0 21657if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 21658 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 21659 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
21660 wxUSE_PROTOCOL=no
21661 fi
21662
21663 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 21664 cat >> confdefs.h <<\EOF
4cdb0ab0 21665#define wxUSE_PROTOCOL 1
a0b9e27f 21666EOF
4cdb0ab0 21667
8284b0c5 21668
3954f9ca 21669 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 21670 cat >> confdefs.h <<\EOF
4cdb0ab0 21671#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 21672EOF
4cdb0ab0 21673
3954f9ca
VS
21674 fi
21675 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 21676 cat >> confdefs.h <<\EOF
4cdb0ab0 21677#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 21678EOF
4cdb0ab0 21679
3954f9ca
VS
21680 fi
21681 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 21682 cat >> confdefs.h <<\EOF
3954f9ca 21683#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 21684EOF
3954f9ca
VS
21685
21686 fi
4cdb0ab0 21687 fi
3954f9ca
VS
21688fi
21689
21690if test "$wxUSE_URL" = "yes"; then
21691 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 21692 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
21693 wxUSE_URL=no
21694 fi
21695 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 21696 cat >> confdefs.h <<\EOF
3954f9ca 21697#define wxUSE_URL 1
a0b9e27f 21698EOF
4cdb0ab0
VS
21699
21700 fi
21701fi
21702
10f2d63a 21703if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 21704 cat >> confdefs.h <<\EOF
10f2d63a 21705#define wxUSE_MINIFRAME 1
a0b9e27f 21706EOF
10f2d63a
VZ
21707
21708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21709fi
21710
21711if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 21712 cat >> confdefs.h <<\EOF
10f2d63a 21713#define wxUSE_HTML 1
a0b9e27f 21714EOF
10f2d63a
VZ
21715
21716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
21717fi
21718
21719if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 21720 cat >> confdefs.h <<\EOF
1e487827 21721#define wxUSE_VALIDATORS 1
a0b9e27f 21722EOF
703e0a69 21723
698dcdb6
VZ
21724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21725fi
21726
edae8572 21727if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 21728 cat >> confdefs.h <<\EOF
edae8572 21729#define wxUSE_PALETTE 1
a0b9e27f 21730EOF
edae8572
VZ
21731
21732fi
21733
698dcdb6 21734if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 21735 cat >> confdefs.h <<\EOF
698dcdb6 21736#define wxUSE_IMAGE 1
a0b9e27f 21737EOF
698dcdb6
VZ
21738
21739fi
21740
21741if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 21742 cat >> confdefs.h <<\EOF
698dcdb6 21743#define wxUSE_GIF 1
a0b9e27f 21744EOF
698dcdb6
VZ
21745
21746fi
21747
21748if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 21749 cat >> confdefs.h <<\EOF
698dcdb6 21750#define wxUSE_PCX 1
a0b9e27f 21751EOF
698dcdb6
VZ
21752
21753fi
21754
4b6b4dfc 21755if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 21756 cat >> confdefs.h <<\EOF
4b6b4dfc 21757#define wxUSE_IFF 1
a0b9e27f 21758EOF
4b6b4dfc
RR
21759
21760fi
21761
698dcdb6 21762if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 21763 cat >> confdefs.h <<\EOF
698dcdb6 21764#define wxUSE_PNM 1
a0b9e27f 21765EOF
698dcdb6
VZ
21766
21767fi
21768
21769if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 21770 cat >> confdefs.h <<\EOF
698dcdb6 21771#define wxUSE_XPM 1
a0b9e27f 21772EOF
698dcdb6
VZ
21773
21774fi
21775
658974ae 21776if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 21777 cat >> confdefs.h <<\EOF
658974ae 21778#define wxUSE_ICO_CUR 1
a0b9e27f 21779EOF
658974ae
VS
21780
21781fi
21782
a72a4bfa
VS
21783if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21784 LIBS=" -lunicows $LIBS"
21785fi
21786
8284b0c5 21787
1e6feb95 21788if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 21789 cat >> confdefs.h <<\EOF
1e6feb95 21790#define wxUSE_CHOICEDLG 1
a0b9e27f 21791EOF
1e6feb95
VZ
21792
21793fi
21794
21795if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 21796 cat >> confdefs.h <<\EOF
1e6feb95 21797#define wxUSE_COLOURDLG 1
a0b9e27f 21798EOF
1e6feb95
VZ
21799
21800fi
21801
21802if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 21803 cat >> confdefs.h <<\EOF
1e6feb95 21804#define wxUSE_FILEDLG 1
a0b9e27f 21805EOF
1e6feb95
VZ
21806
21807fi
21808
8db37e06 21809if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 21810 cat >> confdefs.h <<\EOF
8db37e06 21811#define wxUSE_FINDREPLDLG 1
a0b9e27f 21812EOF
8db37e06
VZ
21813
21814fi
21815
1e6feb95 21816if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 21817 cat >> confdefs.h <<\EOF
1e6feb95 21818#define wxUSE_FONTDLG 1
a0b9e27f 21819EOF
1e6feb95
VZ
21820
21821fi
21822
21823if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 21824 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 21825 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 21826 else
a0b9e27f 21827 cat >> confdefs.h <<\EOF
1e6feb95 21828#define wxUSE_DIRDLG 1
a0b9e27f 21829EOF
1e6feb95 21830
1e6feb95
VZ
21831 fi
21832fi
21833
21834if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 21835 cat >> confdefs.h <<\EOF
1e6feb95 21836#define wxUSE_MSGDLG 1
a0b9e27f 21837EOF
1e6feb95
VZ
21838
21839fi
21840
21841if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 21842 cat >> confdefs.h <<\EOF
1e6feb95 21843#define wxUSE_NUMBERDLG 1
a0b9e27f 21844EOF
1e6feb95
VZ
21845
21846fi
21847
21848if test "$wxUSE_PROGRESSDLG" = "yes"; then
21849 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21850 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 21851 else
a0b9e27f 21852 cat >> confdefs.h <<\EOF
1e6feb95 21853#define wxUSE_PROGRESSDLG 1
a0b9e27f 21854EOF
1e6feb95
VZ
21855
21856 fi
21857fi
21858
cbca9943 21859if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 21860 cat >> confdefs.h <<\EOF
cbca9943 21861#define wxUSE_SPLASH 1
a0b9e27f 21862EOF
cbca9943
VZ
21863
21864fi
21865
1e6feb95
VZ
21866if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21867 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 21868 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 21869 else
a0b9e27f 21870 cat >> confdefs.h <<\EOF
1e6feb95 21871#define wxUSE_STARTUP_TIPS 1
a0b9e27f 21872EOF
1e6feb95 21873
7b4a847f
RR
21874 fi
21875fi
579d8138 21876
8284b0c5 21877if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 21878 cat >> confdefs.h <<\EOF
8284b0c5 21879#define wxUSE_TEXTDLG 1
a0b9e27f 21880EOF
8284b0c5
MB
21881
21882fi
21883
21884if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 21885 cat >> confdefs.h <<\EOF
8284b0c5 21886#define wxUSE_WIZARDDLG 1
a0b9e27f 21887EOF
8284b0c5
MB
21888
21889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21890fi
21891
21892
21893if test "$cross_compiling" = "yes"; then
21894 OSINFO="\"$host\""
21895else
21896 OSINFO=`uname -s -r -m`
21897 OSINFO="\"$OSINFO\""
21898fi
21899
a0b9e27f 21900cat >> confdefs.h <<EOF
8284b0c5 21901#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 21902EOF
8284b0c5
MB
21903
21904
21905
21906if test "x$prefix" != "xNONE"; then
21907 wxPREFIX=$prefix
21908else
21909 wxPREFIX=$ac_default_prefix
21910fi
21911
a0b9e27f 21912cat >> confdefs.h <<EOF
8284b0c5 21913#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21914EOF
8284b0c5
MB
21915
21916
21917
21918
21919
21920if test "$wxUSE_MAC" = 1 ; then
21921 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21922fi
21923
21924
2b5f62a0
VZ
21925LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21926
21927have_cos=0
21928have_floor=0
21929for ac_func in cos
21930do
21931echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 21932echo "configure:21933: checking for $ac_func" >&5
2b5f62a0
VZ
21933if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21934 echo $ac_n "(cached) $ac_c" 1>&6
21935else
21936 cat > conftest.$ac_ext <<EOF
54ab82b3 21937#line 21938 "configure"
2b5f62a0
VZ
21938#include "confdefs.h"
21939/* System header to define __stub macros and hopefully few prototypes,
21940 which can conflict with char $ac_func(); below. */
21941#include <assert.h>
21942/* Override any gcc2 internal prototype to avoid an error. */
21943/* We use char because int might match the return type of a gcc2
21944 builtin and then its argument prototype would still apply. */
21945char $ac_func();
21946
21947int main() {
21948
21949/* The GNU C library defines this for functions which it implements
21950 to always fail with ENOSYS. Some functions are actually named
21951 something starting with __ and the normal name is an alias. */
21952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21953choke me
21954#else
21955$ac_func();
21956#endif
21957
21958; return 0; }
21959EOF
54ab82b3 21960if { (eval echo configure:21961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
21961 rm -rf conftest*
21962 eval "ac_cv_func_$ac_func=yes"
21963else
21964 echo "configure: failed program was:" >&5
21965 cat conftest.$ac_ext >&5
21966 rm -rf conftest*
21967 eval "ac_cv_func_$ac_func=no"
21968fi
21969rm -f conftest*
21970fi
21971
21972if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21973 echo "$ac_t""yes" 1>&6
21974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21975 cat >> confdefs.h <<EOF
21976#define $ac_tr_func 1
21977EOF
21978 have_cos=1
21979else
21980 echo "$ac_t""no" 1>&6
21981fi
21982done
21983
21984for ac_func in floor
21985do
21986echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 21987echo "configure:21988: checking for $ac_func" >&5
2b5f62a0
VZ
21988if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21989 echo $ac_n "(cached) $ac_c" 1>&6
21990else
21991 cat > conftest.$ac_ext <<EOF
54ab82b3 21992#line 21993 "configure"
2b5f62a0
VZ
21993#include "confdefs.h"
21994/* System header to define __stub macros and hopefully few prototypes,
21995 which can conflict with char $ac_func(); below. */
21996#include <assert.h>
21997/* Override any gcc2 internal prototype to avoid an error. */
21998/* We use char because int might match the return type of a gcc2
21999 builtin and then its argument prototype would still apply. */
22000char $ac_func();
22001
22002int main() {
22003
22004/* The GNU C library defines this for functions which it implements
22005 to always fail with ENOSYS. Some functions are actually named
22006 something starting with __ and the normal name is an alias. */
22007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22008choke me
22009#else
22010$ac_func();
22011#endif
22012
22013; return 0; }
22014EOF
54ab82b3 22015if { (eval echo configure:22016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22016 rm -rf conftest*
22017 eval "ac_cv_func_$ac_func=yes"
22018else
22019 echo "configure: failed program was:" >&5
22020 cat conftest.$ac_ext >&5
22021 rm -rf conftest*
22022 eval "ac_cv_func_$ac_func=no"
22023fi
22024rm -f conftest*
22025fi
22026
22027if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22028 echo "$ac_t""yes" 1>&6
22029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22030 cat >> confdefs.h <<EOF
22031#define $ac_tr_func 1
22032EOF
22033 have_floor=1
22034else
22035 echo "$ac_t""no" 1>&6
22036fi
22037done
22038
22039echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
54ab82b3 22040echo "configure:22041: checking if floating point functions link without -lm" >&5
2b5f62a0
VZ
22041if test "$have_cos" = 1 -a "$have_floor" = 1; then
22042 echo "$ac_t""yes" 1>&6
22043else
22044 echo "$ac_t""no" 1>&6
22045 LIBS="$LIBS -lm"
22046 # use different functions to avoid configure caching
22047 have_sin=0
22048 have_ceil=0
22049 for ac_func in sin
22050do
22051echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 22052echo "configure:22053: checking for $ac_func" >&5
2b5f62a0
VZ
22053if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22054 echo $ac_n "(cached) $ac_c" 1>&6
22055else
22056 cat > conftest.$ac_ext <<EOF
54ab82b3 22057#line 22058 "configure"
2b5f62a0
VZ
22058#include "confdefs.h"
22059/* System header to define __stub macros and hopefully few prototypes,
22060 which can conflict with char $ac_func(); below. */
22061#include <assert.h>
22062/* Override any gcc2 internal prototype to avoid an error. */
22063/* We use char because int might match the return type of a gcc2
22064 builtin and then its argument prototype would still apply. */
22065char $ac_func();
22066
22067int main() {
22068
22069/* The GNU C library defines this for functions which it implements
22070 to always fail with ENOSYS. Some functions are actually named
22071 something starting with __ and the normal name is an alias. */
22072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22073choke me
22074#else
22075$ac_func();
22076#endif
22077
22078; return 0; }
22079EOF
54ab82b3 22080if { (eval echo configure:22081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22081 rm -rf conftest*
22082 eval "ac_cv_func_$ac_func=yes"
22083else
22084 echo "configure: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22086 rm -rf conftest*
22087 eval "ac_cv_func_$ac_func=no"
22088fi
22089rm -f conftest*
22090fi
22091
22092if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22093 echo "$ac_t""yes" 1>&6
22094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22095 cat >> confdefs.h <<EOF
22096#define $ac_tr_func 1
22097EOF
22098 have_sin=1
22099else
22100 echo "$ac_t""no" 1>&6
22101fi
22102done
22103
22104 for ac_func in ceil
22105do
22106echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54ab82b3 22107echo "configure:22108: checking for $ac_func" >&5
2b5f62a0
VZ
22108if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22109 echo $ac_n "(cached) $ac_c" 1>&6
22110else
22111 cat > conftest.$ac_ext <<EOF
54ab82b3 22112#line 22113 "configure"
2b5f62a0
VZ
22113#include "confdefs.h"
22114/* System header to define __stub macros and hopefully few prototypes,
22115 which can conflict with char $ac_func(); below. */
22116#include <assert.h>
22117/* Override any gcc2 internal prototype to avoid an error. */
22118/* We use char because int might match the return type of a gcc2
22119 builtin and then its argument prototype would still apply. */
22120char $ac_func();
22121
22122int main() {
22123
22124/* The GNU C library defines this for functions which it implements
22125 to always fail with ENOSYS. Some functions are actually named
22126 something starting with __ and the normal name is an alias. */
22127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22128choke me
22129#else
22130$ac_func();
22131#endif
22132
22133; return 0; }
22134EOF
54ab82b3 22135if { (eval echo configure:22136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2b5f62a0
VZ
22136 rm -rf conftest*
22137 eval "ac_cv_func_$ac_func=yes"
22138else
22139 echo "configure: failed program was:" >&5
22140 cat conftest.$ac_ext >&5
22141 rm -rf conftest*
22142 eval "ac_cv_func_$ac_func=no"
22143fi
22144rm -f conftest*
22145fi
22146
22147if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22148 echo "$ac_t""yes" 1>&6
22149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22150 cat >> confdefs.h <<EOF
22151#define $ac_tr_func 1
22152EOF
22153 have_ceil=1
22154else
22155 echo "$ac_t""no" 1>&6
22156fi
22157done
22158
22159 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
54ab82b3 22160echo "configure:22161: checking if floating point functions link with -lm" >&5
2b5f62a0
VZ
22161 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22162 echo "$ac_t""yes" 1>&6
22163 else
22164 echo "$ac_t""no" 1>&6
22165 # not sure we should warn the user, crash, etc.
22166 fi
22167fi
8284b0c5
MB
22168
22169if test "$wxUSE_GUI" = "yes"; then
22170
22171 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22172
a0b9e27f 22173
8284b0c5
MB
22174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22175 drawing dynamic erase event exec font image \
22176 minimal propsize rotate widgets"
22177
22178 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22179else
22180 SAMPLES_SUBDIRS="console"
22181fi
22182
22183
22184INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22185-I\${top_srcdir}/include \
22186$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22187$TOOLKIT_INCLUDE"
22188
22189if test "$wxUSE_GTK" = 1; then
22190 WXCONFIG_INCLUDE=
22191else
22192 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22193fi
22194
22195if test "$GXX" = yes ; then
22196 CXXWARNINGS="-Wall"
a0b9e27f 22197
8284b0c5
MB
22198 if test "$wxUSE_NO_DEPS" = "no" ; then
22199 CFLAGS="-MMD $CFLAGS"
22200 CXXFLAGS="-MMD $CXXFLAGS"
22201 fi
22202fi
22203
b2fee376 22204EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
8284b0c5 22205
b2fee376 22206CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
8284b0c5
MB
22207CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22208CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22209LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22210
22211LDFLAGS="$LDFLAGS $PROFILE"
22212
22213SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
2f51a9ec
GD
22282
22283
22284
22285
f6bcfd97 22286
dad6c0ea 22287
caa2c79b 22288
3711412e 22289
1e6feb95
VZ
22290
22291
885d4bf5
VS
22292
22293
22294
22295
9b695262
VZ
22296
22297
62d0491b 22298
ef7f2189 22299
40f7145c 22300
2b5f62a0
VZ
22301
22302
22303
22304
22305
2bffed64
VZ
22306
22307
3bd8fb5f 22308
e26c13cf 22309
10f2d63a 22310
a0b9e27f
MB
22311
22312echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
54ab82b3 22313echo "configure:22314: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
22314set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22315if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22316 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 22317else
a0b9e27f 22318 cat > conftestmake <<\EOF
10f2d63a
VZ
22319all:
22320 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 22321EOF
10f2d63a 22322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 22323eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
22324if test -n "$ac_maketemp"; then
22325 eval ac_cv_prog_make_${ac_make}_set=yes
22326else
22327 eval ac_cv_prog_make_${ac_make}_set=no
22328fi
a0b9e27f 22329rm -f conftestmake
10f2d63a
VZ
22330fi
22331if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 22332 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
22333 SET_MAKE=
22334else
a0b9e27f 22335 echo "$ac_t""no" 1>&6
10f2d63a
VZ
22336 SET_MAKE="MAKE=${MAKE-make}"
22337fi
22338
8284b0c5 22339
3a922bb4
RL
22340if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22341 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 22342fi
665bbe97 22343
8284b0c5 22344
10f2d63a 22345
57973b9c
VZ
22346wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22347wx_cv_if_gnu_make=$IF_GNU_MAKE
22348wx_cv_path_ifs=$PATH_IFS
22349wx_cv_program_ext=$PROGRAM_EXT
22350wx_cv_target_library=$WX_TARGET_LIBRARY
22351wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22352wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
2b5f62a0
VZ
22353wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22354wx_cv_release=${WX_RELEASE}
22355wx_cv_current=${WX_CURRENT}
22356wx_cv_revision=${WX_REVISION}
22357wx_cv_age=${WX_AGE}
27635a90 22358wx_cv_use_gui=${USE_GUI}
5e66eee1 22359wx_cv_use_resources=${wxUSE_RESOURCES}
57973b9c
VZ
22360export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22361 wx_cv_path_ifs wx_cv_program_ext \
2b5f62a0 22362 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
27635a90 22363 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
5e66eee1 22364 wx_cv_use_gui wx_cv_use_resources
57973b9c 22365
a0b9e27f 22366subdirs="demos samples utils contrib"
8284b0c5 22367
10f2d63a 22368
a0b9e27f
MB
22369trap '' 1 2 15
22370cat > confcache <<\EOF
10f2d63a
VZ
22371# This file is a shell script that caches the results of configure
22372# tests run on this system so they can be shared between configure
a0b9e27f
MB
22373# scripts and configure runs. It is not useful on other systems.
22374# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 22375#
a0b9e27f
MB
22376# By default, configure uses ./config.cache as the cache file,
22377# creating it if it does not exist already. You can give configure
22378# the --cache-file=FILE option to use a different cache file; that is
22379# what configure does when it calls configure scripts in
22380# subdirectories, so they share the cache.
22381# Giving --cache-file=/dev/null disables caching, for debugging configure.
22382# config.status only pays attention to the cache file if you give it the
22383# --recheck option to rerun configure.
10f2d63a 22384#
a0b9e27f 22385EOF
10f2d63a
VZ
22386# The following way of writing the cache mishandles newlines in values,
22387# but we know of no workaround that is simple, portable, and efficient.
22388# So, don't put newlines in cache variables' values.
22389# Ultrix sh set writes to stderr and can't be redirected directly,
22390# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
22391(set) 2>&1 |
22392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22393 *ac_space=\ *)
22394 # `set' does not quote correctly, so add quotes (double-quote substitution
22395 # turns \\\\ into \\, and sed turns \\ into \).
22396 sed -n \
22397 -e "s/'/'\\\\''/g" \
22398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22399 ;;
22400 *)
22401 # `set' quotes correctly as required by POSIX, so do not add quotes.
22402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22403 ;;
22404 esac >> confcache
22405if cmp -s $cache_file confcache; then
22406 :
22407else
10f2d63a 22408 if test -w $cache_file; then
a0b9e27f
MB
22409 echo "updating cache $cache_file"
22410 cat confcache > $cache_file
10f2d63a
VZ
22411 else
22412 echo "not updating unwritable cache $cache_file"
22413 fi
22414fi
22415rm -f confcache
22416
a0b9e27f
MB
22417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22418
10f2d63a
VZ
22419test "x$prefix" = xNONE && prefix=$ac_default_prefix
22420# Let make expand exec_prefix.
22421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22422
a0b9e27f
MB
22423# Any assignment to VPATH causes Sun make to only execute
22424# the first set of double-colon rules, so remove it if not needed.
22425# If there is a colon in the path, we need to keep it.
10f2d63a 22426if test "x$srcdir" = x.; then
a0b9e27f 22427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
22428fi
22429
a0b9e27f 22430trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 22431
a0b9e27f 22432DEFS=-DHAVE_CONFIG_H
8284b0c5 22433
a0b9e27f 22434# Without the "./", some shells look in PATH for config.status.
247f5006 22435: ${CONFIG_STATUS=./config.status}
52127426 22436
a0b9e27f
MB
22437echo creating $CONFIG_STATUS
22438rm -f $CONFIG_STATUS
22439cat > $CONFIG_STATUS <<EOF
22440#! /bin/sh
22441# Generated automatically by configure.
22442# Run this file to recreate the current configuration.
22443# This directory was configured as follows,
22444# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 22445#
a0b9e27f 22446# $0 $ac_configure_args
247f5006 22447#
a0b9e27f
MB
22448# Compiler output produced by configure, useful for debugging
22449# configure, is in ./config.log if it exists.
247f5006 22450
a0b9e27f
MB
22451ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22452for ac_option
247f5006 22453do
a0b9e27f
MB
22454 case "\$ac_option" in
22455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22460 exit 0 ;;
22461 -help | --help | --hel | --he | --h)
22462 echo "\$ac_cs_usage"; exit 0 ;;
22463 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
22464 esac
22465done
22466
a0b9e27f
MB
22467ac_given_srcdir=$srcdir
22468ac_given_INSTALL="$INSTALL"
247f5006 22469
a0b9e27f
MB
22470trap 'rm -fr `echo "
22471 wx-config
2b5f62a0 22472 version-script
a0b9e27f
MB
22473 src/make.env
22474 src/makeprog.env
22475 src/makelib.env
22476 Makefile
22477 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22478EOF
22479cat >> $CONFIG_STATUS <<EOF
247f5006 22480
a0b9e27f
MB
22481# Protect against being on the right side of a sed subst in config.status.
22482sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22483 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22484$ac_vpsub
22485$extrasub
22486s%@SHELL@%$SHELL%g
22487s%@CFLAGS@%$CFLAGS%g
22488s%@CPPFLAGS@%$CPPFLAGS%g
22489s%@CXXFLAGS@%$CXXFLAGS%g
22490s%@FFLAGS@%$FFLAGS%g
22491s%@DEFS@%$DEFS%g
22492s%@LDFLAGS@%$LDFLAGS%g
22493s%@LIBS@%$LIBS%g
22494s%@exec_prefix@%$exec_prefix%g
22495s%@prefix@%$prefix%g
22496s%@program_transform_name@%$program_transform_name%g
22497s%@bindir@%$bindir%g
22498s%@sbindir@%$sbindir%g
22499s%@libexecdir@%$libexecdir%g
22500s%@datadir@%$datadir%g
22501s%@sysconfdir@%$sysconfdir%g
22502s%@sharedstatedir@%$sharedstatedir%g
22503s%@localstatedir@%$localstatedir%g
22504s%@libdir@%$libdir%g
22505s%@includedir@%$includedir%g
22506s%@oldincludedir@%$oldincludedir%g
22507s%@infodir@%$infodir%g
22508s%@mandir@%$mandir%g
22509s%@host@%$host%g
22510s%@host_alias@%$host_alias%g
22511s%@host_cpu@%$host_cpu%g
22512s%@host_vendor@%$host_vendor%g
22513s%@host_os@%$host_os%g
22514s%@target@%$target%g
22515s%@target_alias@%$target_alias%g
22516s%@target_cpu@%$target_cpu%g
22517s%@target_vendor@%$target_vendor%g
22518s%@target_os@%$target_os%g
22519s%@build@%$build%g
22520s%@build_alias@%$build_alias%g
22521s%@build_cpu@%$build_cpu%g
22522s%@build_vendor@%$build_vendor%g
22523s%@build_os@%$build_os%g
22524s%@CC@%$CC%g
22525s%@CPP@%$CPP%g
22526s%@CXX@%$CXX%g
22527s%@RANLIB@%$RANLIB%g
22528s%@AR@%$AR%g
22529s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22530s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22531s%@INSTALL_DATA@%$INSTALL_DATA%g
22532s%@STRIP@%$STRIP%g
22533s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22534s%@YACC@%$YACC%g
22535s%@LEX@%$LEX%g
22536s%@LEXLIB@%$LEXLIB%g
22537s%@LN_S@%$LN_S%g
22538s%@CXXCPP@%$CXXCPP%g
22539s%@PKG_CONFIG@%$PKG_CONFIG%g
22540s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22541s%@GTK_LIBS@%$GTK_LIBS%g
22542s%@GTK_CONFIG@%$GTK_CONFIG%g
22543s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22544s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22545s%@X_CFLAGS@%$X_CFLAGS%g
22546s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22547s%@X_LIBS@%$X_LIBS%g
22548s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2b5f62a0
VZ
22549s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22550s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22551s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22552s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
a0b9e27f
MB
22553s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22554s%@RESCOMP@%$RESCOMP%g
22555s%@DEREZ@%$DEREZ%g
22556s%@LIBICONV@%$LIBICONV%g
22557s%@LEX_STEM@%$LEX_STEM%g
22558s%@PATH_IFS@%$PATH_IFS%g
22559s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22560s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22561s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22562s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22563s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
2b5f62a0 22564s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
a0b9e27f
MB
22565s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22566s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22567s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22568s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22569s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22570s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22571s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22572s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22573s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22574s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22575s%@WX_ALL@%$WX_ALL%g
22576s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22577s%@SHARED_LD@%$SHARED_LD%g
22578s%@PIC_FLAG@%$PIC_FLAG%g
22579s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22580s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22581s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22582s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22583s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22584s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
2bffed64 22585s%@STATIC_FLAG@%$STATIC_FLAG%g
a0b9e27f
MB
22586s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22587s%@USE_GUI@%$USE_GUI%g
22588s%@AFMINSTALL@%$AFMINSTALL%g
2b5f62a0 22589s%@WIN32INSTALL@%$WIN32INSTALL%g
a0b9e27f
MB
22590s%@TOOLKIT@%$TOOLKIT%g
22591s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22592s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22593s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22594s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22595s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22596s%@cross_compiling@%$cross_compiling%g
22597s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22598s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22599s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22600s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22601s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22602s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
e26c13cf 22603s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
a0b9e27f
MB
22604s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22605s%@ALL_HEADERS@%$ALL_HEADERS%g
22606s%@ALL_SOURCES@%$ALL_SOURCES%g
22607s%@GUIDIST@%$GUIDIST%g
22608s%@PORT_FILES@%$PORT_FILES%g
22609s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
22610s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22611s%@LDFLAGS_GL@%$LDFLAGS_GL%g
2b5f62a0 22612s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
a0b9e27f
MB
22613s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22614s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22615s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22616s%@EXTRADEFS@%$EXTRADEFS%g
2b5f62a0 22617s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
a0b9e27f
MB
22618s%@RESFLAGS@%$RESFLAGS%g
22619s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22620s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22621s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22622s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22623s%@LIBWXMACRES@%$LIBWXMACRES%g
22624s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
22625s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
2b5f62a0 22626s%@GCC@%$GCC%g
a0b9e27f
MB
22627s%@DLLTOOL@%$DLLTOOL%g
22628s%@AS@%$AS%g
22629s%@NM@%$NM%g
22630s%@LD@%$LD%g
22631s%@MAKEINFO@%$MAKEINFO%g
22632s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22633s%@SET_MAKE@%$SET_MAKE%g
22634s%@subdirs@%$subdirs%g
247f5006 22635
247f5006 22636CEOF
a0b9e27f 22637EOF
247f5006 22638
a0b9e27f
MB
22639cat >> $CONFIG_STATUS <<\EOF
22640
22641# Split the substitutions into bite-sized pieces for seds with
22642# small command number limits, like on Digital OSF/1 and HP-UX.
22643ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22644ac_file=1 # Number of current file.
22645ac_beg=1 # First line for current file.
22646ac_end=$ac_max_sed_cmds # Line after last line for current file.
22647ac_more_lines=:
22648ac_sed_cmds=""
22649while $ac_more_lines; do
22650 if test $ac_beg -gt 1; then
22651 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22652 else
22653 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22654 fi
22655 if test ! -s conftest.s$ac_file; then
22656 ac_more_lines=false
22657 rm -f conftest.s$ac_file
22658 else
22659 if test -z "$ac_sed_cmds"; then
22660 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 22661 else
a0b9e27f 22662 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 22663 fi
a0b9e27f
MB
22664 ac_file=`expr $ac_file + 1`
22665 ac_beg=$ac_end
22666 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 22667 fi
a0b9e27f
MB
22668done
22669if test -z "$ac_sed_cmds"; then
22670 ac_sed_cmds=cat
22671fi
22672EOF
10f2d63a 22673
a0b9e27f 22674cat >> $CONFIG_STATUS <<EOF
10f2d63a 22675
a0b9e27f 22676CONFIG_FILES=\${CONFIG_FILES-"wx-config
2b5f62a0 22677 version-script
a0b9e27f
MB
22678 src/make.env
22679 src/makeprog.env
22680 src/makelib.env
22681 Makefile
22682 "}
22683EOF
22684cat >> $CONFIG_STATUS <<\EOF
22685for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22687 case "$ac_file" in
22688 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22689 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22690 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 22691 esac
247f5006 22692
a0b9e27f 22693 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 22694
a0b9e27f
MB
22695 # Remove last slash and all that follows it. Not all systems have dirname.
22696 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22697 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22698 # The file is in a subdirectory.
22699 test ! -d "$ac_dir" && mkdir "$ac_dir"
22700 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22701 # A "../" for each directory in $ac_dir_suffix.
22702 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22703 else
22704 ac_dir_suffix= ac_dots=
22705 fi
247f5006 22706
a0b9e27f
MB
22707 case "$ac_given_srcdir" in
22708 .) srcdir=.
22709 if test -z "$ac_dots"; then top_srcdir=.
22710 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22711 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 22712 *) # Relative path.
a0b9e27f
MB
22713 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22714 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 22715 esac
10f2d63a 22716
a0b9e27f
MB
22717 case "$ac_given_INSTALL" in
22718 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22719 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22720 esac
247f5006 22721
a0b9e27f
MB
22722 echo creating "$ac_file"
22723 rm -f "$ac_file"
22724 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22725 case "$ac_file" in
22726 *Makefile*) ac_comsub="1i\\
22727# $configure_input" ;;
22728 *) ac_comsub= ;;
22729 esac
247f5006 22730
a0b9e27f
MB
22731 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22732 sed -e "$ac_comsub
22733s%@configure_input@%$configure_input%g
22734s%@srcdir@%$srcdir%g
22735s%@top_srcdir@%$top_srcdir%g
22736s%@INSTALL@%$INSTALL%g
22737" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22738fi; done
22739rm -f conftest.s*
10f2d63a
VZ
22740
22741# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22742# NAME is the cpp macro being defined and VALUE is the value it is being given.
22743#
22744# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
22745ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22746ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22747ac_dC='\3'
22748ac_dD='%g'
22749# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22750ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22751ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 22752ac_uC=' '
a0b9e27f
MB
22753ac_uD='\4%g'
22754# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22755ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22756ac_eB='$%\1#\2define\3'
22757ac_eC=' '
22758ac_eD='%g'
22759
22760if test "${CONFIG_HEADERS+set}" != set; then
22761EOF
22762cat >> $CONFIG_STATUS <<EOF
22763 CONFIG_HEADERS="setup.h:setup.h.in"
22764EOF
22765cat >> $CONFIG_STATUS <<\EOF
22766fi
22767for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 22768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
22769 case "$ac_file" in
22770 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22771 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22772 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
22773 esac
22774
a0b9e27f
MB
22775 echo creating $ac_file
22776
22777 rm -f conftest.frag conftest.in conftest.out
22778 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22779 cat $ac_file_inputs > conftest.in
22780
22781EOF
22782
22783# Transform confdefs.h into a sed script conftest.vals that substitutes
22784# the proper values into config.h.in to produce config.h. And first:
22785# Protect against being on the right side of a sed subst in config.status.
22786# Protect against being in an unquoted here document in config.status.
22787rm -f conftest.vals
22788cat > conftest.hdr <<\EOF
22789s/[\\&%]/\\&/g
22790s%[\\$`]%\\&%g
22791s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22792s%ac_d%ac_u%gp
22793s%ac_u%ac_e%gp
22794EOF
22795sed -n -f conftest.hdr confdefs.h > conftest.vals
22796rm -f conftest.hdr
10f2d63a
VZ
22797
22798# This sed command replaces #undef with comments. This is necessary, for
22799# example, in the case of _POSIX_SOURCE, which is predefined and required
22800# on some systems where configure will not decide to define it.
a0b9e27f
MB
22801cat >> conftest.vals <<\EOF
22802s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22803EOF
22804
22805# Break up conftest.vals because some shells have a limit on
22806# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
22807
22808rm -f conftest.tail
a0b9e27f 22809while :
10f2d63a 22810do
a0b9e27f
MB
22811 ac_lines=`grep -c . conftest.vals`
22812 # grep -c gives empty output for an empty file on some AIX systems.
22813 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22814 # Write a limited-size here document to conftest.frag.
22815 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22816 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 22817 echo 'CEOF
a0b9e27f
MB
22818 sed -f conftest.frag conftest.in > conftest.out
22819 rm -f conftest.in
22820 mv conftest.out conftest.in
22821' >> $CONFIG_STATUS
22822 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22823 rm -f conftest.vals
22824 mv conftest.tail conftest.vals
10f2d63a 22825done
a0b9e27f
MB
22826rm -f conftest.vals
22827
22828cat >> $CONFIG_STATUS <<\EOF
22829 rm -f conftest.frag conftest.h
22830 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22831 cat conftest.in >> conftest.h
22832 rm -f conftest.in
22833 if cmp -s $ac_file conftest.h 2>/dev/null; then
22834 echo "$ac_file is unchanged"
22835 rm -f conftest.h
10f2d63a 22836 else
a0b9e27f
MB
22837 # Remove last slash and all that follows it. Not all systems have dirname.
22838 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22839 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22840 # The file is in a subdirectory.
22841 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 22842 fi
a0b9e27f
MB
22843 rm -f $ac_file
22844 mv conftest.h $ac_file
247f5006 22845 fi
a0b9e27f
MB
22846fi; done
22847
22848EOF
22849cat >> $CONFIG_STATUS <<EOF
22850
22851 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22852 LN_S="${LN_S}"
22853
22854
22855EOF
22856cat >> $CONFIG_STATUS <<\EOF
10f2d63a 22857
652d930d 22858 if test ! -h wx-config; then
991a5759 22859 chmod +x wx-config
3a922bb4
RL
22860 mv wx-config wx${TOOLCHAIN_NAME}-config
22861 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 22862 fi
665bbe97 22863
00cf1208
RR
22864 if test ! -d lib; then
22865 mkdir lib
22866 fi
22867 if test ! -d lib/wx; then
22868 mkdir lib/wx
22869 fi
22870 if test ! -d lib/wx/include; then
22871 mkdir lib/wx/include
22872 fi
3a922bb4
RL
22873 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22874 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 22875 fi
3a922bb4
RL
22876 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22877 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
22878 fi
22879 if test -f setup.h; then
3a922bb4 22880 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 22881 fi
a0b9e27f
MB
22882
22883exit 0
22884EOF
10f2d63a 22885chmod +x $CONFIG_STATUS
a0b9e27f
MB
22886rm -fr confdefs* $ac_clean_files
22887test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 22888
2224580a
VZ
22889if test "$no_recursion" != yes; then
22890
22891 # Remove --cache-file and --srcdir arguments so they do not pile up.
22892 ac_sub_configure_args=
22893 ac_prev=
22894 for ac_arg in $ac_configure_args; do
22895 if test -n "$ac_prev"; then
22896 ac_prev=
22897 continue
22898 fi
a0b9e27f 22899 case "$ac_arg" in
2224580a
VZ
22900 -cache-file | --cache-file | --cache-fil | --cache-fi \
22901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22902 ac_prev=cache_file ;;
22903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 22904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
22905 ;;
22906 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22907 ac_prev=srcdir ;;
22908 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22909 ;;
22910 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22911 esac
22912 done
22913
a0b9e27f 22914 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
22915
22916 # Do not complain, so a configure script can configure whichever
22917 # parts of a large source tree are present.
a0b9e27f
MB
22918 if test ! -d $srcdir/$ac_config_dir; then
22919 continue
22920 fi
2224580a 22921
a0b9e27f 22922 echo configuring in $ac_config_dir
2224580a 22923
a0b9e27f
MB
22924 case "$srcdir" in
22925 .) ;;
22926 *)
22927 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22928 else
22929 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22930 fi
22931 ;;
22932 esac
2224580a 22933
a0b9e27f
MB
22934 ac_popdir=`pwd`
22935 cd $ac_config_dir
247f5006 22936
a0b9e27f
MB
22937 # A "../" for each directory in /$ac_config_dir.
22938 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 22939
a0b9e27f
MB
22940 case "$srcdir" in
22941 .) # No --srcdir option. We are building in place.
22942 ac_sub_srcdir=$srcdir ;;
22943 /*) # Absolute path.
22944 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22945 *) # Relative path.
22946 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22947 esac
2224580a
VZ
22948
22949 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
22950 if test -f $ac_sub_srcdir/configure; then
22951 ac_sub_configure=$ac_sub_srcdir/configure
22952 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
22953 ac_sub_configure=$ac_configure
22954 else
a0b9e27f 22955 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
22956 ac_sub_configure=
22957 fi
22958
22959 # The recursion is here.
22960 if test -n "$ac_sub_configure"; then
a0b9e27f 22961
2224580a 22962 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
22963 case "$cache_file" in
22964 /*) ac_sub_cache_file=$cache_file ;;
2224580a 22965 *) # Relative path.
a0b9e27f 22966 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 22967 esac
a0b9e27f
MB
22968 case "$ac_given_INSTALL" in
22969 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22970 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22971 esac
2224580a 22972
a0b9e27f 22973 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 22974 # The eval makes quoting arguments work.
a0b9e27f
MB
22975 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22976 then :
22977 else
22978 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22979 fi
2224580a
VZ
22980 fi
22981
22982 cd $ac_popdir
22983 done
22984fi
22985
8284b0c5 22986
2b5f62a0
VZ
22987echo
22988echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22989echo ""
22990echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22991
22992echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22993echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22994echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22995
0c98a14e
GD
22996echo " What level of wxWindows compatibility should be enabled?"
22997echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
22998echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-yes}"
22999
2b5f62a0
VZ
23000echo " Which libraries should wxWindows use?"
23001echo " jpeg ${wxUSE_LIBJPEG-none}"
23002echo " png ${wxUSE_LIBPNG-none}"
23003echo " regex ${wxUSE_REGEX}"
23004echo " tiff ${wxUSE_LIBTIFF-none}"
23005echo " zlib ${wxUSE_ZLIB}"
23006
23007echo ""
23008