]> git.saurik.com Git - wxWidgets.git/blame - configure
fixes to HTML tables alignment
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
b040e242
VS
41
42
43
b040e242
VS
44
45
46
47
48
49
50
51
52# Configure paths for GTK+
53# Owen Taylor 97-11-3
698dcdb6 54
698dcdb6
VZ
55
56
57# Guess values for system-dependent variables and create Makefiles.
58# Generated automatically using autoconf version 2.13
59# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60#
61# This configure script is free software; the Free Software Foundation
62# gives unlimited permission to copy, distribute and modify it.
63
64# Defaults:
65ac_help=
66ac_default_prefix=/usr/local
67# Any additions from configure.in:
68ac_help="$ac_help
8168de4c 69 --enable-gui use GUI classes"
1e6feb95 70ac_help="$ac_help
8168de4c 71 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-gtk use GTK+"
74ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76ac_help="$ac_help
77 --with-mac use Mac OS X"
78ac_help="$ac_help
79 --with-wine use WINE"
80ac_help="$ac_help
77e13408 81 --with-msw use MS-Windows"
698dcdb6
VZ
82ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
1e6feb95 84ac_help="$ac_help
b3e8d00a 85 --with-mgl use SciTech MGL"
1725144d
RR
86ac_help="$ac_help
87 --with-microwin use MicroWindows"
f79bd02d
JS
88ac_help="$ac_help
89 --with-x11 use X11"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-libpng use libpng (PNG image format)"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --with-opengl use OpenGL (or Mesa)"
698dcdb6 100ac_help="$ac_help
d0e9b150 101 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
102ac_help="$ac_help
103 --with-regex enable support for wxRegEx class"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --with-zlib use zlib for LZW compression"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-shared create shared library code"
698dcdb6 110ac_help="$ac_help
3a922bb4 111 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-optimise create optimised code"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-debug same as debug_flag and debug_info"
683dccda
GD
116ac_help="$ac_help
117 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-debug_info create code with debugging information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-debug_cntxt use wxDebugContext"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-mem_tracing create code with memory tracing"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-profile create code with profiling information"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-no_rtti create code without RTTI information"
698dcdb6 132ac_help="$ac_help
b3e8d00a 133 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-no_deps create code without dependency information"
54276ccf 138ac_help="$ac_help
b3e8d00a 139 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 140ac_help="$ac_help
b3e8d00a 141 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 142ac_help="$ac_help
8168de4c 143 --enable-intl use internationalization system"
698dcdb6 144ac_help="$ac_help
8168de4c 145 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
146ac_help="$ac_help
147 --enable-protocols use wxProtocol and derived classes"
148ac_help="$ac_help
149 --enable-ftp use wxFTP (requires wxProtocol"
150ac_help="$ac_help
151 --enable-http use wxHTTP (requires wxProtocol"
152ac_help="$ac_help
153 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-sockets use socket/network classes"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-cmdline use wxCmdLineParser class"
1e6feb95 160ac_help="$ac_help
8168de4c 161 --enable-datetime use wxDateTime class"
1e6feb95 162ac_help="$ac_help
8168de4c 163 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 164ac_help="$ac_help
8168de4c 165 --enable-stopwatch use wxStopWatch class"
1e6feb95 166ac_help="$ac_help
8168de4c 167 --enable-dialupman use dialup network classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-timer use wxTimer class"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-wave use wxWave class"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-fraction use wxFraction class"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
178ac_help="$ac_help
179 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-longlong use wxLongLong class"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-geometry use geometry class"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-log use logging system"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-streams use wxStream etc classes"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-file use wxFile classes"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-ffile use wxFFile classes"
1e6feb95 192ac_help="$ac_help
a3a584a7
VZ
193 --enable-textbuf use wxTextBuffer class"
194ac_help="$ac_help
195 --enable-textfile use wxTextFile class"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-fontmap use font encodings conversion classes"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
200ac_help="$ac_help
201 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-filesystem use virtual file systems classes"
698dcdb6 208ac_help="$ac_help
8168de4c 209 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-zipstream use wxZipInputStream"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 218ac_help="$ac_help
69d27ff7 219 --enable-mimetype use wxMimeTypesManager"
3e44f09d 220ac_help="$ac_help
b3e8d00a 221 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
222ac_help="$ac_help
223 --enable-url use wxURL class"
224ac_help="$ac_help
225 --enable-protocol use wxProtocol class"
226ac_help="$ac_help
227 --enable-protocol-http HTTP support in wxProtocol"
228ac_help="$ac_help
229 --enable-protocol-ftp FTP support in wxProtocol"
230ac_help="$ac_help
231 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 232ac_help="$ac_help
8168de4c 233 --enable-threads use threads"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-docview use document view architecture"
698dcdb6 236ac_help="$ac_help
3379ed37 237 --enable-help use help subsystem"
29fd3c0c
VS
238ac_help="$ac_help
239 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
240ac_help="$ac_help
241 --enable-html use wxHTML sub-library"
242ac_help="$ac_help
243 --enable-htmlhelp use wxHTML-based help"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-constraints use layout-constraints system"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-printarch use printing architecture"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-mdi use multiple document interface architecture"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-loggui use standard GUI logger"
1e6feb95 252ac_help="$ac_help
8168de4c 253 --enable-logwin use wxLogWindow"
69d27ff7
MB
254ac_help="$ac_help
255 --enable-logdialog use wxLogDialog"
1e6feb95 256ac_help="$ac_help
8168de4c 257 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-prologio use Prolog IO library"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-resources use wxWindows resources"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-clipboard use wxClipboard classes"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-dnd use Drag'n'Drop classes"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-metafile use win32 metafiles"
698dcdb6 270ac_help="$ac_help
24176f2c 271 --enable-treelayout use wxTreeLayout classes"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-controls use all usual controls"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-accel use accelerators"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-button use wxButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-calendar use wxCalendarCtrl class"
1e6feb95 282ac_help="$ac_help
8168de4c 283 --enable-caret use wxCaret class"
1e6feb95 284ac_help="$ac_help
8168de4c 285 --enable-checkbox use wxCheckBox class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-choice use wxChoice class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-combobox use wxComboBox classes"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-gauge use wxGauge class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-grid use wxGrid class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-newgrid use new wxGrid class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-imaglist use wxImageList class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-listbox use wxListBox class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-listctrl use wxListCtrl class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-notebook use wxNotebook class"
24176f2c
GD
306ac_help="$ac_help
307 --enable-propsheet use wxPropertySheet class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-radiobox use wxRadioBox class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-radiobtn use wxRadioButton class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-sash use wxSashWindow class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-slider use wxSlider class"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-spinbtn use wxSpinButton class"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-splitter use wxSplitterWindow class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-statbmp use wxStaticBitmap class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-statbox use wxStaticBox class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-statline use wxStaticLine class"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-stattext use wxStaticText class"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-statusbar use wxStatusBar class"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-tabdialog use wxTabControl class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-textctrl use wxTextCtrl class"
1e6feb95 338ac_help="$ac_help
8168de4c 339 --enable-togglebtn use wxToggleButton class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-toolbar use wxToolBar class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-tbarnative use native wxToolBar class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
348ac_help="$ac_help
349 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
350ac_help="$ac_help
351 --enable-popupwin use wxPopUpWindow class"
698dcdb6 352ac_help="$ac_help
b3e8d00a 353 --enable-commondlg use all common dialogs"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-choicedlg use wxChoiceDialog"
1e6feb95 356ac_help="$ac_help
8168de4c 357 --enable-coldlg use wxColourDialog"
1e6feb95 358ac_help="$ac_help
8168de4c 359 --enable-filedlg use wxFileDialog"
8db37e06
VZ
360ac_help="$ac_help
361 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 362ac_help="$ac_help
8168de4c 363 --enable-fontdlg use wxFontDialog"
1e6feb95 364ac_help="$ac_help
8168de4c 365 --enable-dirdlg use wxDirDialog"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-msgdlg use wxMessageDialog"
1e6feb95 368ac_help="$ac_help
8168de4c 369 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
370ac_help="$ac_help
371 --enable-splash use wxSplashScreen"
1e6feb95 372ac_help="$ac_help
8168de4c 373 --enable-textdlg use wxTextDialog"
698dcdb6 374ac_help="$ac_help
8168de4c 375 --enable-tipdlg use startup tips"
698dcdb6 376ac_help="$ac_help
8168de4c 377 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
378ac_help="$ac_help
379 --enable-wizarddlg use wxWizard"
698dcdb6 380ac_help="$ac_help
8168de4c 381 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 382ac_help="$ac_help
8168de4c 383 --enable-miniframe use wxMiniFrame class"
698dcdb6 384ac_help="$ac_help
8168de4c 385 --enable-tooltips use wxToolTip class"
698dcdb6 386ac_help="$ac_help
8168de4c 387 --enable-splines use spline drawing code"
698dcdb6 388ac_help="$ac_help
8168de4c 389 --enable-validators use wxValidator and derived classes"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-busyinfo use wxBusyInfo"
698dcdb6 392ac_help="$ac_help
b3e8d00a 393 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 394ac_help="$ac_help
8168de4c 395 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
396ac_help="$ac_help
397 --enable-dragimage use wxDragImage"
edae8572
VZ
398ac_help="$ac_help
399 --enable-palette use wxPalette class"
1e6feb95 400ac_help="$ac_help
8168de4c 401 --enable-image use wxImage class"
698dcdb6 402ac_help="$ac_help
8168de4c 403 --enable-gif use gif images (GIF file format)"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
406ac_help="$ac_help
407 --enable-iff use iff images (IFF file format)"
698dcdb6 408ac_help="$ac_help
8168de4c 409 --enable-pnm use pnm images (PNM file format)"
698dcdb6 410ac_help="$ac_help
8168de4c 411 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
412ac_help="$ac_help
413 --enable-icocur use Windows ICO and CUR formats"
698dcdb6
VZ
414ac_help="$ac_help
415 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
416ac_help="$ac_help
417 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
418ac_help="$ac_help
419 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
420ac_help="$ac_help
421 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
422ac_help="$ac_help
423 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
424ac_help="$ac_help
425 --disable-gtktest Do not try to compile and run a test GTK program"
426ac_help="$ac_help
427 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
428ac_help="$ac_help
429 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
430ac_help="$ac_help
431 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
432ac_help="$ac_help
433 --with-x use the X Window System"
b040e242
VS
434ac_help="$ac_help
435 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
436
437# Initialize some variables set by options.
438# The variables have the same names as the options, with
439# dashes changed to underlines.
698dcdb6
VZ
440build=NONE
441cache_file=./config.cache
10f2d63a 442exec_prefix=NONE
698dcdb6 443host=NONE
10f2d63a 444no_create=
698dcdb6 445nonopt=NONE
10f2d63a
VZ
446no_recursion=
447prefix=NONE
448program_prefix=NONE
449program_suffix=NONE
450program_transform_name=s,x,x,
451silent=
452site=
453srcdir=
698dcdb6 454target=NONE
10f2d63a
VZ
455verbose=
456x_includes=NONE
457x_libraries=NONE
458bindir='${exec_prefix}/bin'
459sbindir='${exec_prefix}/sbin'
460libexecdir='${exec_prefix}/libexec'
461datadir='${prefix}/share'
462sysconfdir='${prefix}/etc'
463sharedstatedir='${prefix}/com'
464localstatedir='${prefix}/var'
465libdir='${exec_prefix}/lib'
466includedir='${prefix}/include'
467oldincludedir='/usr/include'
468infodir='${prefix}/info'
469mandir='${prefix}/man'
470
698dcdb6
VZ
471# Initialize some other variables.
472subdirs=
473MFLAGS= MAKEFLAGS=
474SHELL=${CONFIG_SHELL-/bin/sh}
475# Maximum number of lines to put in a shell here document.
476ac_max_here_lines=12
10f2d63a
VZ
477
478ac_prev=
479for ac_option
480do
698dcdb6 481
10f2d63a
VZ
482 # If the previous option needs an argument, assign it.
483 if test -n "$ac_prev"; then
484 eval "$ac_prev=\$ac_option"
485 ac_prev=
486 continue
487 fi
488
698dcdb6
VZ
489 case "$ac_option" in
490 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
491 *) ac_optarg= ;;
492 esac
10f2d63a
VZ
493
494 # Accept the important Cygnus configure options, so we can diagnose typos.
495
698dcdb6 496 case "$ac_option" in
10f2d63a
VZ
497
498 -bindir | --bindir | --bindi | --bind | --bin | --bi)
499 ac_prev=bindir ;;
500 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 501 bindir="$ac_optarg" ;;
10f2d63a
VZ
502
503 -build | --build | --buil | --bui | --bu)
698dcdb6 504 ac_prev=build ;;
10f2d63a 505 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 506 build="$ac_optarg" ;;
10f2d63a
VZ
507
508 -cache-file | --cache-file | --cache-fil | --cache-fi \
509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
510 ac_prev=cache_file ;;
511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 513 cache_file="$ac_optarg" ;;
10f2d63a
VZ
514
515 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
516 ac_prev=datadir ;;
517 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
518 | --da=*)
698dcdb6 519 datadir="$ac_optarg" ;;
10f2d63a
VZ
520
521 -disable-* | --disable-*)
698dcdb6 522 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 523 # Reject names that are not valid shell variable names.
698dcdb6
VZ
524 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
525 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
526 fi
527 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
528 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
529
530 -enable-* | --enable-*)
698dcdb6 531 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 532 # Reject names that are not valid shell variable names.
698dcdb6
VZ
533 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 case "$ac_option" in
538 *=*) ;;
10f2d63a
VZ
539 *) ac_optarg=yes ;;
540 esac
698dcdb6 541 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
542
543 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
544 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
545 | --exec | --exe | --ex)
546 ac_prev=exec_prefix ;;
547 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
548 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
549 | --exec=* | --exe=* | --ex=*)
698dcdb6 550 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
551
552 -gas | --gas | --ga | --g)
553 # Obsolete; use --with-gas.
554 with_gas=yes ;;
555
698dcdb6
VZ
556 -help | --help | --hel | --he)
557 # Omit some internal or obsolete options to make the list less imposing.
558 # This message is too long to be a string in the A/UX 3.1 sh.
559 cat << EOF
560Usage: configure [options] [host]
561Options: [defaults in brackets after descriptions]
562Configuration:
563 --cache-file=FILE cache test results in FILE
564 --help print this message
565 --no-create do not create output files
566 --quiet, --silent do not print \`checking...' messages
567 --version print the version of autoconf that created configure
568Directory and file names:
569 --prefix=PREFIX install architecture-independent files in PREFIX
570 [$ac_default_prefix]
571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
572 [same as prefix]
573 --bindir=DIR user executables in DIR [EPREFIX/bin]
574 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
575 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
576 --datadir=DIR read-only architecture-independent data in DIR
577 [PREFIX/share]
578 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
579 --sharedstatedir=DIR modifiable architecture-independent data in DIR
580 [PREFIX/com]
581 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
582 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
583 --includedir=DIR C header files in DIR [PREFIX/include]
584 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
585 --infodir=DIR info documentation in DIR [PREFIX/info]
586 --mandir=DIR man documentation in DIR [PREFIX/man]
587 --srcdir=DIR find the sources in DIR [configure dir or ..]
588 --program-prefix=PREFIX prepend PREFIX to installed program names
589 --program-suffix=SUFFIX append SUFFIX to installed program names
590 --program-transform-name=PROGRAM
591 run sed PROGRAM on installed program names
592EOF
593 cat << EOF
594Host type:
595 --build=BUILD configure for building on BUILD [BUILD=HOST]
596 --host=HOST configure for HOST [guessed]
597 --target=TARGET configure for TARGET [TARGET=HOST]
598Features and packages:
599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
603 --x-includes=DIR X include files are in DIR
604 --x-libraries=DIR X library files are in DIR
605EOF
606 if test -n "$ac_help"; then
607 echo "--enable and --with options recognized:$ac_help"
608 fi
609 exit 0 ;;
10f2d63a
VZ
610
611 -host | --host | --hos | --ho)
698dcdb6 612 ac_prev=host ;;
10f2d63a 613 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 614 host="$ac_optarg" ;;
10f2d63a
VZ
615
616 -includedir | --includedir | --includedi | --included | --include \
617 | --includ | --inclu | --incl | --inc)
618 ac_prev=includedir ;;
619 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 621 includedir="$ac_optarg" ;;
10f2d63a
VZ
622
623 -infodir | --infodir | --infodi | --infod | --info | --inf)
624 ac_prev=infodir ;;
625 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 626 infodir="$ac_optarg" ;;
10f2d63a
VZ
627
628 -libdir | --libdir | --libdi | --libd)
629 ac_prev=libdir ;;
630 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 631 libdir="$ac_optarg" ;;
10f2d63a
VZ
632
633 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634 | --libexe | --libex | --libe)
635 ac_prev=libexecdir ;;
636 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637 | --libexe=* | --libex=* | --libe=*)
698dcdb6 638 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
639
640 -localstatedir | --localstatedir | --localstatedi | --localstated \
641 | --localstate | --localstat | --localsta | --localst \
642 | --locals | --local | --loca | --loc | --lo)
643 ac_prev=localstatedir ;;
644 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 647 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
648
649 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650 ac_prev=mandir ;;
651 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 652 mandir="$ac_optarg" ;;
10f2d63a
VZ
653
654 -nfp | --nfp | --nf)
655 # Obsolete; use --without-fp.
656 with_fp=no ;;
657
658 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659 | --no-cr | --no-c)
660 no_create=yes ;;
661
662 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664 no_recursion=yes ;;
665
666 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668 | --oldin | --oldi | --old | --ol | --o)
669 ac_prev=oldincludedir ;;
670 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 673 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
674
675 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676 ac_prev=prefix ;;
677 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 678 prefix="$ac_optarg" ;;
10f2d63a
VZ
679
680 -program-prefix | --program-prefix | --program-prefi | --program-pref \
681 | --program-pre | --program-pr | --program-p)
682 ac_prev=program_prefix ;;
683 -program-prefix=* | --program-prefix=* | --program-prefi=* \
684 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 685 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
686
687 -program-suffix | --program-suffix | --program-suffi | --program-suff \
688 | --program-suf | --program-su | --program-s)
689 ac_prev=program_suffix ;;
690 -program-suffix=* | --program-suffix=* | --program-suffi=* \
691 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 692 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
693
694 -program-transform-name | --program-transform-name \
695 | --program-transform-nam | --program-transform-na \
696 | --program-transform-n | --program-transform- \
697 | --program-transform | --program-transfor \
698 | --program-transfo | --program-transf \
699 | --program-trans | --program-tran \
700 | --progr-tra | --program-tr | --program-t)
701 ac_prev=program_transform_name ;;
702 -program-transform-name=* | --program-transform-name=* \
703 | --program-transform-nam=* | --program-transform-na=* \
704 | --program-transform-n=* | --program-transform-=* \
705 | --program-transform=* | --program-transfor=* \
706 | --program-transfo=* | --program-transf=* \
707 | --program-trans=* | --program-tran=* \
708 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 709 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
710
711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712 | -silent | --silent | --silen | --sile | --sil)
713 silent=yes ;;
714
715 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716 ac_prev=sbindir ;;
717 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718 | --sbi=* | --sb=*)
698dcdb6 719 sbindir="$ac_optarg" ;;
10f2d63a
VZ
720
721 -sharedstatedir | --sharedstatedir | --sharedstatedi \
722 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723 | --sharedst | --shareds | --shared | --share | --shar \
724 | --sha | --sh)
725 ac_prev=sharedstatedir ;;
726 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729 | --sha=* | --sh=*)
698dcdb6 730 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
731
732 -site | --site | --sit)
733 ac_prev=site ;;
734 -site=* | --site=* | --sit=*)
698dcdb6 735 site="$ac_optarg" ;;
10f2d63a
VZ
736
737 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738 ac_prev=srcdir ;;
739 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 740 srcdir="$ac_optarg" ;;
10f2d63a
VZ
741
742 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743 | --syscon | --sysco | --sysc | --sys | --sy)
744 ac_prev=sysconfdir ;;
745 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 747 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
748
749 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 750 ac_prev=target ;;
10f2d63a 751 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 752 target="$ac_optarg" ;;
10f2d63a
VZ
753
754 -v | -verbose | --verbose | --verbos | --verbo | --verb)
755 verbose=yes ;;
756
698dcdb6
VZ
757 -version | --version | --versio | --versi | --vers)
758 echo "configure generated by autoconf version 2.13"
759 exit 0 ;;
10f2d63a
VZ
760
761 -with-* | --with-*)
698dcdb6 762 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 763 # Reject names that are not valid shell variable names.
698dcdb6
VZ
764 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
765 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
766 fi
10f2d63a 767 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
768 case "$ac_option" in
769 *=*) ;;
10f2d63a
VZ
770 *) ac_optarg=yes ;;
771 esac
698dcdb6 772 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
773
774 -without-* | --without-*)
698dcdb6 775 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 776 # Reject names that are not valid shell variable names.
698dcdb6
VZ
777 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
778 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
779 fi
780 ac_package=`echo $ac_package| sed 's/-/_/g'`
781 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
782
783 --x)
784 # Obsolete; use --with-x.
785 with_x=yes ;;
786
787 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788 | --x-incl | --x-inc | --x-in | --x-i)
789 ac_prev=x_includes ;;
790 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 792 x_includes="$ac_optarg" ;;
10f2d63a
VZ
793
794 -x-libraries | --x-libraries | --x-librarie | --x-librari \
795 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796 ac_prev=x_libraries ;;
797 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 799 x_libraries="$ac_optarg" ;;
10f2d63a 800
698dcdb6 801 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
802 ;;
803
804 *)
698dcdb6
VZ
805 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
806 echo "configure: warning: $ac_option: invalid host type" 1>&2
807 fi
808 if test "x$nonopt" != xNONE; then
809 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
810 fi
811 nonopt="$ac_option"
10f2d63a
VZ
812 ;;
813
814 esac
815done
816
817if test -n "$ac_prev"; then
698dcdb6
VZ
818 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
819fi
820
821trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
822
823# File descriptor usage:
824# 0 standard input
825# 1 file creation
826# 2 errors and warnings
827# 3 some systems may open it to /dev/tty
828# 4 used on the Kubota Titan
829# 6 checking for... messages and results
830# 5 compiler messages saved in config.log
831if test "$silent" = yes; then
832 exec 6>/dev/null
833else
834 exec 6>&1
10f2d63a 835fi
698dcdb6
VZ
836exec 5>./config.log
837
838echo "\
839This file contains any messages produced by compilers while
840running configure, to aid debugging if configure makes a mistake.
841" 1>&5
10f2d63a 842
698dcdb6
VZ
843# Strip out --no-create and --no-recursion so they do not pile up.
844# Also quote any args containing shell metacharacters.
845ac_configure_args=
846for ac_arg
10f2d63a 847do
698dcdb6
VZ
848 case "$ac_arg" in
849 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
850 | --no-cr | --no-c) ;;
851 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
852 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
853 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
854 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
855 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
856 esac
857done
858
698dcdb6
VZ
859# NLS nuisances.
860# Only set these to C if already set. These must not be set unconditionally
861# because not all systems understand e.g. LANG=C (notably SCO).
862# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
863# Non-C LC_CTYPE values break the ctype check.
864if test "${LANG+set}" = set; then LANG=C; export LANG; fi
865if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
866if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
867if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 868
698dcdb6
VZ
869# confdefs.h avoids OS command line length limits that DEFS can exceed.
870rm -rf conftest* confdefs.h
871# AIX cpp loses on an empty file, so make sure it contains at least a newline.
872echo > confdefs.h
10f2d63a 873
698dcdb6
VZ
874# A filename unique to this package, relative to the directory that
875# configure is in, which we can look for to find out if srcdir is correct.
876ac_unique_file=wx-config.in
10f2d63a
VZ
877
878# Find the source files, if location was not specified.
879if test -z "$srcdir"; then
880 ac_srcdir_defaulted=yes
881 # Try the directory containing this script, then its parent.
882 ac_prog=$0
698dcdb6 883 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
884 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 894 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 895 else
698dcdb6 896 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
897 fi
898fi
698dcdb6 899srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
900
901# Prefer explicitly selected file to automatically selected ones.
902if test -z "$CONFIG_SITE"; then
903 if test "x$prefix" != xNONE; then
904 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
905 else
906 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
907 fi
908fi
909for ac_site_file in $CONFIG_SITE; do
910 if test -r "$ac_site_file"; then
698dcdb6 911 echo "loading site script $ac_site_file"
10f2d63a
VZ
912 . "$ac_site_file"
913 fi
914done
915
916if test -r "$cache_file"; then
698dcdb6
VZ
917 echo "loading cache $cache_file"
918 . $cache_file
10f2d63a 919else
698dcdb6
VZ
920 echo "creating cache $cache_file"
921 > $cache_file
10f2d63a
VZ
922fi
923
924ac_ext=c
698dcdb6 925# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 926ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
927ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929cross_compiling=$ac_cv_prog_cc_cross
930
931ac_exeext=
932ac_objext=o
933if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
934 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
935 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
936 ac_n= ac_c='
937' ac_t=' '
938 else
939 ac_n=-n ac_c= ac_t=
940 fi
10f2d63a 941else
698dcdb6 942 ac_n= ac_c='\c' ac_t=
10f2d63a 943fi
698dcdb6
VZ
944
945
10f2d63a 946
7c66a493
VZ
947ac_aux_dir=
948for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
949 if test -f $ac_dir/install-sh; then
950 ac_aux_dir=$ac_dir
951 ac_install_sh="$ac_aux_dir/install-sh -c"
952 break
953 elif test -f $ac_dir/install.sh; then
954 ac_aux_dir=$ac_dir
955 ac_install_sh="$ac_aux_dir/install.sh -c"
956 break
957 fi
958done
959if test -z "$ac_aux_dir"; then
698dcdb6 960 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 961fi
698dcdb6
VZ
962ac_config_guess=$ac_aux_dir/config.guess
963ac_config_sub=$ac_aux_dir/config.sub
964ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 965
698dcdb6
VZ
966
967# Do some error checking and defaulting for the host and target type.
968# The inputs are:
969# configure --host=HOST --target=TARGET --build=BUILD NONOPT
970#
971# The rules are:
972# 1. You are not allowed to specify --host, --target, and nonopt at the
973# same time.
974# 2. Host defaults to nonopt.
975# 3. If nonopt is not specified, then host defaults to the current host,
976# as determined by config.guess.
977# 4. Target and build default to nonopt.
978# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
979
980# The aliases save the names the user supplied, while $host etc.
981# will get canonicalized.
698dcdb6
VZ
982case $host---$target---$nonopt in
983NONE---*---* | *---NONE---* | *---*---NONE) ;;
984*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
985esac
986
987
988# Make sure we can run config.sub.
989if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
990else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991fi
992
993echo $ac_n "checking host system type""... $ac_c" 1>&6
cb61c62d 994echo "configure:995: checking host system type" >&5
698dcdb6
VZ
995
996host_alias=$host
997case "$host_alias" in
998NONE)
999 case $nonopt in
1000 NONE)
1001 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1002 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1003 fi ;;
1004 *) host_alias=$nonopt ;;
1005 esac ;;
1006esac
1007
1008host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1009host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1012echo "$ac_t""$host" 1>&6
1013
1014echo $ac_n "checking target system type""... $ac_c" 1>&6
cb61c62d 1015echo "configure:1016: checking target system type" >&5
698dcdb6
VZ
1016
1017target_alias=$target
1018case "$target_alias" in
1019NONE)
1020 case $nonopt in
1021 NONE) target_alias=$host_alias ;;
1022 *) target_alias=$nonopt ;;
1023 esac ;;
1024esac
1025
1026target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1027target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1028target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1029target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1030echo "$ac_t""$target" 1>&6
1031
1032echo $ac_n "checking build system type""... $ac_c" 1>&6
cb61c62d 1033echo "configure:1034: checking build system type" >&5
698dcdb6
VZ
1034
1035build_alias=$build
1036case "$build_alias" in
1037NONE)
1038 case $nonopt in
1039 NONE) build_alias=$host_alias ;;
1040 *) build_alias=$nonopt ;;
1041 esac ;;
1042esac
1043
1044build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1045build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048echo "$ac_t""$build" 1>&6
1049
1050test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1051 test "$program_prefix$program_suffix$program_transform_name" = \
1052 NONENONEs,x,x, &&
1053 program_prefix=${target_alias}-
1054
698dcdb6
VZ
1055
1056
10f2d63a 1057WX_MAJOR_VERSION_NUMBER=2
37d403aa 1058WX_MINOR_VERSION_NUMBER=3
a0d927d1 1059WX_RELEASE_NUMBER=3
10f2d63a 1060
10f2d63a 1061WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1062WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1063
978f1259
RL
1064WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1065
a0d927d1 1066WX_CURRENT=2
6426998c
RL
1067WX_REVISION=0
1068WX_AGE=0
1069
698dcdb6
VZ
1070
1071
10f2d63a
VZ
1072USE_UNIX=1
1073USE_WIN32=0
f9bc1684 1074USE_DOS=0
b12915c1 1075USE_BEOS=0
1216f52d 1076USE_MAC=0
b12915c1 1077
10f2d63a
VZ
1078USE_LINUX=
1079USE_SGI=
1080USE_HPUX=
1081USE_SYSV=
1082USE_SVR4=
1083USE_AIX=
1084USE_SUN=
1085USE_SOLARIS=
1086USE_SUNOS=
1087USE_ALPHA=
1088USE_OSF=
1089USE_BSD=
f11bdd03 1090USE_DARWIN=
10f2d63a 1091USE_FREEBSD=
95c8801c 1092USE_OPENBSD=
f6bcfd97 1093USE_NETBSD=
10f2d63a
VZ
1094USE_VMS=
1095USE_ULTRIX=
10f2d63a
VZ
1096USE_DATA_GENERAL=
1097
ab9b9eab
VZ
1098NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1099
3f345b47
VZ
1100CPP_MT_FLAG=-D_REENTRANT
1101
f79bd02d 1102ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1103
1104DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1105DEFAULT_wxUSE_MAC=0
1106DEFAULT_wxUSE_MGL=0
1725144d 1107DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1108DEFAULT_wxUSE_MOTIF=0
1109DEFAULT_wxUSE_MSW=0
e07802fc 1110DEFAULT_wxUSE_PM=0
1e6feb95 1111DEFAULT_wxUSE_WINE=0
f79bd02d 1112DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1113
1114DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1115DEFAULT_DEFAULT_wxUSE_MAC=0
1116DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1117DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1118DEFAULT_DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1120DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1121DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1122DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1123
d6a55c4b 1124PROGRAM_EXT=
3a922bb4 1125SO_SUFFIX=so
d6a55c4b 1126
10f2d63a
VZ
1127case "${host}" in
1128 *-hp-hpux* )
1129 USE_HPUX=1
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1132 SO_SUFFIX=sl
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __HPUX__ 1
1135EOF
1136
1137 ;;
1138 *-*-linux* )
1139 USE_LINUX=1
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __LINUX__ 1
1142EOF
1143
1144 TMP=`uname -m`
1145 if test "x$TMP" = "xalpha"; then
1146 USE_ALPHA=1
698dcdb6 1147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1148#define __ALPHA__ 1
1149EOF
1150
1151 fi
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-irix5* | *-*-irix6* )
1155 USE_SGI=1
1156 USE_SVR4=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __SGI__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1162#define __SVR4__ 1
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 ;;
1167 *-*-solaris2* )
1168 USE_SUN=1
1169 USE_SOLARIS=1
1170 USE_SVR4=1
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __SUN__ 1
1173EOF
1174
698dcdb6 1175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1176#define __SOLARIS__ 1
1177EOF
1178
698dcdb6 1179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1180#define __SVR4__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1185 ;;
1186 *-*-sunos4* )
1187 USE_SUN=1
1188 USE_SUNOS=1
1189 USE_BSD=1
698dcdb6 1190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1191#define __SUN__ 1
1192EOF
1193
698dcdb6 1194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1195#define __SUNOS__ 1
1196EOF
1197
698dcdb6 1198 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1199#define __BSD__ 1
1200EOF
1201
1202 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1203 ;;
f6bcfd97 1204 *-*-freebsd*)
10f2d63a
VZ
1205 USE_BSD=1
1206 USE_FREEBSD=1
3f345b47 1207 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __FREEBSD__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a 1213#define __BSD__ 1
95c8801c
VS
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_GTK=1
1217 ;;
1218 *-*-openbsd*)
1219 USE_BSD=1
1220 USE_OPENBSD=1
698dcdb6 1221 cat >> confdefs.h <<\EOF
95c8801c
VS
1222#define __FREEBSD__ 1
1223EOF
1224
698dcdb6 1225 cat >> confdefs.h <<\EOF
95c8801c 1226#define __OPENBSD__ 1
f6bcfd97
BP
1227EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-netbsd*)
1232 USE_BSD=1
1233 USE_NETBSD=1
698dcdb6 1234 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1235#define __FREEBSD__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
f6bcfd97 1239#define __NETBSD__ 1
10f2d63a
VZ
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-osf* )
1245 USE_ALPHA=1
1246 USE_OSF=1
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __ALPHA__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __OSF__ 1
1253EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1256 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1257 ;;
1258 *-*-dgux5* )
1259 USE_ALPHA=1
1260 USE_SVR4=1
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __ALPHA__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __SVR4__ 1
1267EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271 *-*-sysv5* )
1272 USE_SYSV=1
1273 USE_SVR4=1
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __SYSV__ 1
1276EOF
1277
698dcdb6 1278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1279#define __SVR4__ 1
1280EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-aix* )
1285 USE_AIX=1
1286 USE_SYSV=1
1287 USE_SVR4=1
698dcdb6 1288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1289#define __AIX__ 1
1290EOF
1291
698dcdb6 1292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1293#define __SYSV__ 1
1294EOF
1295
698dcdb6 1296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1297#define __SVR4__ 1
1298EOF
1299
1300 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1301 ;;
1302
1c8183e2 1303 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1304 USE_UNIX=0
1305 USE_WIN32=1
3a922bb4 1306 SO_SUFFIX=dll
698dcdb6 1307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1308#define __WIN32__ 1
1309EOF
1310
698dcdb6 1311 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1312#define __WIN95__ 1
1313EOF
1314
698dcdb6 1315 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1316#define __WINDOWS__ 1
1317EOF
1318
698dcdb6 1319 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1320#define __GNUWIN32__ 1
1321EOF
1322
698dcdb6 1323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1324#define STRICT 1
1325EOF
1326
698dcdb6 1327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1328#define WINVER 0x0400
1329EOF
1330
cf27ef00 1331 PROGRAM_EXT=".exe"
7b7a7637 1332 RESCOMP=windres
10f2d63a
VZ
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
f9bc1684
VS
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340#define __DOS__ 1
1341EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 DEFAULT_DEFAULT_wxUSE_SHARED=0
1346 ;;
1347
6fa882bd 1348 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1349 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1350#define __EMX__ 1
1351EOF
1352
cf27ef00 1353 PROGRAM_EXT=".exe"
e07802fc 1354 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1355 ;;
1356
d08b457b
GD
1357 powerpc-*-darwin* )
1358 USE_BSD=1
f11bdd03 1359 USE_DARWIN=1
3f345b47 1360 CPP_MT_FLAG=
3a922bb4 1361 SO_SUFFIX=dylib
698dcdb6 1362 cat >> confdefs.h <<\EOF
f11bdd03 1363#define __BSD__ 1
b4085ce6
GD
1364EOF
1365
698dcdb6 1366 cat >> confdefs.h <<\EOF
f11bdd03 1367#define __DARWIN__ 1
d08b457b
GD
1368EOF
1369
1370 cat >> confdefs.h <<\EOF
1371#define __POWERPC__ 1
b4085ce6
GD
1372EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
b12915c1
VZ
1377 *-*-beos* )
1378 USE_BEOS=1
698dcdb6 1379 cat >> confdefs.h <<\EOF
b12915c1
VZ
1380#define __BEOS__ 1
1381EOF
1382
1383 ;;
1384
10f2d63a 1385 *)
698dcdb6 1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1387esac
1388
1389if test "$USE_UNIX" = 1 ; then
b12915c1 1390 wxUSE_UNIX=yes
698dcdb6 1391 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1392#define __UNIX__ 1
1393EOF
1394
10f2d63a
VZ
1395fi
1396
2389f33b
VZ
1397if test "$USE_LINUX" = 1; then
1398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
cb61c62d 1399echo "configure:1400: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1400if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402else
a72a4bfa
VS
1403
1404 cat > conftest.$ac_ext <<EOF
cb61c62d 1405#line 1406 "configure"
2389f33b
VZ
1406#include "confdefs.h"
1407#include <features.h>
1408int main() {
1409
1410 #if !__GLIBC_PREREQ(2, 1)
1411 #error not glibc2.1
1412 #endif
1413
1414; return 0; }
1415EOF
cb61c62d 1416if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1417 rm -rf conftest*
1418
1419 wx_lib_glibc21=yes
1420
1421else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425
1426 wx_lib_glibc21=no
1427
1428
1429fi
1430rm -f conftest*
1431
1432fi
1433
1434echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1435 if test "$wx_lib_glibc21" = "yes"; then
1436 cat >> confdefs.h <<\EOF
1437#define wxHAVE_GLIBC2 1
1438EOF
1439
1440 fi
1441fi
10f2d63a 1442
1e487827 1443
1e487827 1444
6232543b 1445
10f2d63a
VZ
1446 wx_arg_cache_file="configarg.cache"
1447 echo "loading argument cache $wx_arg_cache_file"
1448 rm -f ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}
698dcdb6 1451
10f2d63a
VZ
1452
1453DEBUG_CONFIGURE=0
1454if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1455 DEFAULT_wxUSE_UNIVERSAL=no
1456
10f2d63a
VZ
1457 DEFAULT_wxUSE_THREADS=yes
1458
1459 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1460 DEFAULT_wxUSE_SONAME=no
1e6feb95 1461 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1462 DEFAULT_wxUSE_PROFILE=no
1463 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1464 DEFAULT_wxUSE_NO_RTTI=yes
1465 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_PERMISSIVE=no
1467 DEFAULT_wxUSE_DEBUG_FLAG=yes
1468 DEFAULT_wxUSE_DEBUG_INFO=yes
1469 DEFAULT_wxUSE_DEBUG_GDB=yes
1470 DEFAULT_wxUSE_MEM_TRACING=no
1471 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1472 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1473 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1474 DEFAULT_wxUSE_APPLE_IEEE=no
1475
1476 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1477 DEFAULT_wxUSE_LOGWINDOW=no
1478 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1479 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1480
1481 DEFAULT_wxUSE_GUI=yes
1e6feb95 1482 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1483
3e44f09d 1484 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1485 DEFAULT_wxUSE_ZLIB=no
1486 DEFAULT_wxUSE_LIBPNG=no
1487 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1488 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1489 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1490 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1491
eb4efbdc 1492 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1493 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1494 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1495 DEFAULT_wxUSE_CMDLINE_PARSER=no
1496 DEFAULT_wxUSE_DATETIME=no
1497 DEFAULT_wxUSE_TIMEDATE=no
1498 DEFAULT_wxUSE_TIMER=no
1499 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1500 DEFAULT_wxUSE_FILE=no
1e6feb95 1501 DEFAULT_wxUSE_FFILE=no
a3a584a7 1502 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1503 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_WAVE=no
1505 DEFAULT_wxUSE_INTL=no
1506 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1507 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1508 DEFAULT_wxUSE_STREAMS=no
1509 DEFAULT_wxUSE_SOCKETS=no
1510 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1511 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1512 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1513 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1514 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1515 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1516
1517 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1518 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1519 DEFAULT_wxUSE_POSTSCRIPT=no
1520
1521 DEFAULT_wxUSE_X_RESOURCES=no
1522 DEFAULT_wxUSE_CLIPBOARD=no
1523 DEFAULT_wxUSE_TOOLTIPS=no
1524 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1525 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_SPLINES=no
1527
1528 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1529 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1530 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1531
1532 DEFAULT_wxUSE_PROLOGIO=no
1533 DEFAULT_wxUSE_RESOURCES=no
1534 DEFAULT_wxUSE_CONSTRAINTS=no
1535 DEFAULT_wxUSE_IPC=no
1536 DEFAULT_wxUSE_HELP=no
29fd3c0c 1537 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1538 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1539 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1540 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1541 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1542 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1543 DEFAULT_wxUSE_PROTOCOL=no
1544 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1545 DEFAULT_wxUSE_PROTOCOL_FTP=no
1546 DEFAULT_wxUSE_PROTOCOL_FILE=no
1547 DEFAULT_wxUSE_URL=no
1548
10f2d63a 1549 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1550 DEFAULT_wxUSE_CHOICEDLG=no
1551 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1552 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1553 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1554 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1555 DEFAULT_wxUSE_FONTDLG=no
1556 DEFAULT_wxUSE_MSGDLG=no
1557 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1558 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1559 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1560 DEFAULT_wxUSE_STARTUP_TIPS=no
1561 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1562 DEFAULT_wxUSE_WIZARDDLG=no
1563
1e6feb95 1564 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1565 DEFAULT_wxUSE_MINIFRAME=no
1566 DEFAULT_wxUSE_HTML=no
24528b0c 1567 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1568 DEFAULT_wxUSE_FS_INET=no
1569 DEFAULT_wxUSE_FS_ZIP=no
1570 DEFAULT_wxUSE_BUSYINFO=no
1571 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1572 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1573
1574 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1575 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1576 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1577 DEFAULT_wxUSE_CALCTRL=no
1578 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_CHECKBOX=no
1580 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1581 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_COMBOBOX=no
1583 DEFAULT_wxUSE_GAUGE=no
1584 DEFAULT_wxUSE_GRID=no
1585 DEFAULT_wxUSE_NEW_GRID=no
1586 DEFAULT_wxUSE_IMAGLIST=no
1587 DEFAULT_wxUSE_LISTBOX=no
1588 DEFAULT_wxUSE_LISTCTRL=no
1589 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1590 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1591 DEFAULT_wxUSE_RADIOBOX=no
1592 DEFAULT_wxUSE_RADIOBTN=no
1593 DEFAULT_wxUSE_SASH=no
1594 DEFAULT_wxUSE_SCROLLBAR=no
1595 DEFAULT_wxUSE_SLIDER=no
1596 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1597 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1598 DEFAULT_wxUSE_SPLITTER=no
1599 DEFAULT_wxUSE_STATBMP=no
1600 DEFAULT_wxUSE_STATBOX=no
1601 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1602 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1603 DEFAULT_wxUSE_STATUSBAR=yes
1604 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1605 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1606 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1607 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1608 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1609 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1610 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1611 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1612 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1613
1614 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1615 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1616 DEFAULT_wxUSE_WCSRTOMBS=no
1617
edae8572 1618 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1619 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1620 DEFAULT_wxUSE_GIF=no
1621 DEFAULT_wxUSE_PCX=no
1622 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1623 DEFAULT_wxUSE_IFF=no
0046ff7c 1624 DEFAULT_wxUSE_XPM=no
658974ae 1625 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1626else
1e6feb95
VZ
1627 DEFAULT_wxUSE_UNIVERSAL=no
1628
10f2d63a
VZ
1629 DEFAULT_wxUSE_THREADS=yes
1630
1631 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1632 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1633 DEFAULT_wxUSE_OPTIMISE=yes
1634 DEFAULT_wxUSE_PROFILE=no
1635 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1636 DEFAULT_wxUSE_NO_RTTI=yes
1637 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_PERMISSIVE=no
1639 DEFAULT_wxUSE_DEBUG_FLAG=no
1640 DEFAULT_wxUSE_DEBUG_INFO=no
1641 DEFAULT_wxUSE_DEBUG_GDB=no
1642 DEFAULT_wxUSE_MEM_TRACING=no
1643 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1644 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1645 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1646 DEFAULT_wxUSE_APPLE_IEEE=yes
1647
1648 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1649 DEFAULT_wxUSE_LOGWINDOW=yes
1650 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1651 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1652
1653 DEFAULT_wxUSE_GUI=yes
1654
831b3152 1655 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1656 DEFAULT_wxUSE_ZLIB=yes
1657 DEFAULT_wxUSE_LIBPNG=yes
1658 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1659 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1660 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1661 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1662
eb4efbdc 1663 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1664 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1665 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1666 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1667 DEFAULT_wxUSE_DATETIME=yes
1668 DEFAULT_wxUSE_TIMEDATE=no
1669 DEFAULT_wxUSE_TIMER=yes
1670 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1671 DEFAULT_wxUSE_FILE=yes
1e6feb95 1672 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1673 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1674 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1675 DEFAULT_wxUSE_WAVE=no
1676 DEFAULT_wxUSE_INTL=yes
1677 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1678 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_STREAMS=yes
1680 DEFAULT_wxUSE_SOCKETS=yes
1681 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1682 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1683 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1684 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1685 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1686 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1687
1688 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1689 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1690 DEFAULT_wxUSE_POSTSCRIPT=yes
1691
1692 DEFAULT_wxUSE_X_RESOURCES=no
1693 DEFAULT_wxUSE_CLIPBOARD=yes
1694 DEFAULT_wxUSE_TOOLTIPS=yes
1695 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1696 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_SPLINES=yes
1698
1699 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1700 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1701 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1702
1703 DEFAULT_wxUSE_PROLOGIO=yes
1704 DEFAULT_wxUSE_RESOURCES=yes
1705 DEFAULT_wxUSE_CONSTRAINTS=yes
1706 DEFAULT_wxUSE_IPC=yes
1707 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1708 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1709 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1710 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1711 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1712 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1713 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1714 DEFAULT_wxUSE_PROTOCOL=yes
1715 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1716 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1717 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1718 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1719
1720 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1721 DEFAULT_wxUSE_CHOICEDLG=yes
1722 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1723 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1724 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1725 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1726 DEFAULT_wxUSE_FONTDLG=yes
1727 DEFAULT_wxUSE_MSGDLG=yes
1728 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1729 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1730 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1731 DEFAULT_wxUSE_STARTUP_TIPS=yes
1732 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1733 DEFAULT_wxUSE_WIZARDDLG=yes
1734
1e6feb95 1735 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1736 DEFAULT_wxUSE_MINIFRAME=yes
1737 DEFAULT_wxUSE_HTML=yes
24528b0c 1738 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1739 DEFAULT_wxUSE_FS_INET=yes
1740 DEFAULT_wxUSE_FS_ZIP=yes
1741 DEFAULT_wxUSE_BUSYINFO=yes
1742 DEFAULT_wxUSE_ZIPSTREAM=yes
1743 DEFAULT_wxUSE_VALIDATORS=yes
1744
1745 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1746 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1747 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1748 DEFAULT_wxUSE_CALCTRL=yes
1749 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1750 DEFAULT_wxUSE_CHECKBOX=yes
1751 DEFAULT_wxUSE_CHECKLST=yes
1752 DEFAULT_wxUSE_CHOICE=yes
1753 DEFAULT_wxUSE_COMBOBOX=yes
1754 DEFAULT_wxUSE_GAUGE=yes
1755 DEFAULT_wxUSE_GRID=yes
cc977e5f 1756 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1757 DEFAULT_wxUSE_IMAGLIST=yes
1758 DEFAULT_wxUSE_LISTBOX=yes
1759 DEFAULT_wxUSE_LISTCTRL=yes
1760 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1761 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1762 DEFAULT_wxUSE_RADIOBOX=yes
1763 DEFAULT_wxUSE_RADIOBTN=yes
1764 DEFAULT_wxUSE_SASH=yes
1765 DEFAULT_wxUSE_SCROLLBAR=yes
1766 DEFAULT_wxUSE_SLIDER=yes
1767 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1768 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1769 DEFAULT_wxUSE_SPLITTER=yes
1770 DEFAULT_wxUSE_STATBMP=yes
1771 DEFAULT_wxUSE_STATBOX=yes
1772 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1773 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1774 DEFAULT_wxUSE_STATUSBAR=yes
1775 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1776 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1777 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1778 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1779 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1780 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1781 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1782 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1783 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1784
1785 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1786 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1787 DEFAULT_wxUSE_WCSRTOMBS=no
1788
edae8572 1789 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1790 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1791 DEFAULT_wxUSE_GIF=yes
1792 DEFAULT_wxUSE_PCX=yes
cc0e8480 1793 DEFAULT_wxUSE_IFF=no
10f2d63a 1794 DEFAULT_wxUSE_PNM=yes
0046ff7c 1795 DEFAULT_wxUSE_XPM=yes
658974ae 1796 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1797fi
1798
698dcdb6
VZ
1799
1800
10f2d63a
VZ
1801for toolkit in `echo $ALL_TOOLKITS`; do
1802 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 has_toolkit_in_cache=1
1805 eval "DEFAULT_$LINE"
1806 eval "CACHE_$toolkit=1"
1807 fi
1808done
1809
698dcdb6
VZ
1810
1811
1812 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
cb61c62d 1813echo "configure:1814: checking for --enable-gui" >&5
10f2d63a
VZ
1814 no_cache=0
1815 # Check whether --enable-gui or --disable-gui was given.
1816if test "${enable_gui+set}" = set; then
1817 enableval="$enable_gui"
698dcdb6 1818
10f2d63a
VZ
1819 if test "$enableval" = yes; then
1820 ac_cv_use_gui='wxUSE_GUI=yes'
1821 else
1822 ac_cv_use_gui='wxUSE_GUI=no'
1823 fi
698dcdb6 1824
10f2d63a 1825else
698dcdb6 1826
10f2d63a
VZ
1827 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1835
1836fi
10f2d63a
VZ
1837
1838
1839 eval "$ac_cv_use_gui"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_GUI" = yes; then
698dcdb6 1845 echo "$ac_t""yes" 1>&6
10f2d63a 1846 else
698dcdb6 1847 echo "$ac_t""no" 1>&6
10f2d63a 1848 fi
698dcdb6 1849
10f2d63a 1850
b12915c1 1851if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1852
1e6feb95
VZ
1853
1854 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
cb61c62d 1855echo "configure:1856: checking for --enable-universal" >&5
1e6feb95
VZ
1856 no_cache=0
1857 # Check whether --enable-universal or --disable-universal was given.
1858if test "${enable_universal+set}" = set; then
1859 enableval="$enable_universal"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1863 else
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_universal"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_UNIVERSAL" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
10f2d63a
VZ
1892# Check whether --with-gtk or --without-gtk was given.
1893if test "${with_gtk+set}" = set; then
1894 withval="$with_gtk"
1895 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1896fi
10f2d63a
VZ
1897
1898# Check whether --with-motif or --without-motif was given.
1899if test "${with_motif+set}" = set; then
1900 withval="$with_motif"
1901 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1902fi
10f2d63a 1903
b4085ce6
GD
1904# Check whether --with-mac or --without-mac was given.
1905if test "${with_mac+set}" = set; then
1906 withval="$with_mac"
1907 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1908fi
b4085ce6 1909
10f2d63a
VZ
1910# Check whether --with-wine or --without-wine was given.
1911if test "${with_wine+set}" = set; then
1912 withval="$with_wine"
1913 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1914fi
10f2d63a 1915
77e13408
RL
1916# Check whether --with-msw or --without-msw was given.
1917if test "${with_msw+set}" = set; then
1918 withval="$with_msw"
1919 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1920fi
10f2d63a 1921
e07802fc
VZ
1922# Check whether --with-pm or --without-pm was given.
1923if test "${with_pm+set}" = set; then
1924 withval="$with_pm"
1925 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1926fi
1927
1e6feb95
VZ
1928# Check whether --with-mgl or --without-mgl was given.
1929if test "${with_mgl+set}" = set; then
1930 withval="$with_mgl"
1931 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1932fi
1933
1725144d
RR
1934# Check whether --with-microwin or --without-microwin was given.
1935if test "${with_microwin+set}" = set; then
1936 withval="$with_microwin"
1937 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1938fi
1939
f79bd02d
JS
1940# Check whether --with-x11 or --without-x11 was given.
1941if test "${with_x11+set}" = set; then
1942 withval="$with_x11"
1943 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1944fi
1945
10f2d63a 1946
8168de4c
VZ
1947# Check whether --enable-gtk2 or --disable-gtk2 was given.
1948if test "${enable_gtk2+set}" = set; then
1949 enableval="$enable_gtk2"
1950 wxUSE_GTK2=1
10f2d63a 1951else
8168de4c 1952 wxUSE_GTK2=0
698dcdb6
VZ
1953fi
1954
703e0a69 1955
1e487827 1956
698dcdb6 1957 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
cb61c62d 1958echo "configure:1959: checking for --with-libpng" >&5
698dcdb6
VZ
1959 no_cache=0
1960 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1961if test "${with_libpng+set}" = set; then
1962 withval="$with_libpng"
698dcdb6 1963
10f2d63a 1964 if test "$withval" = yes; then
b12915c1 1965 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1966 elif test "$withval" = no; then
b12915c1 1967 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1970 elif test "$withval" = builtin; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1972 else
4f14bcd8 1973 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1974 fi
698dcdb6 1975
10f2d63a 1976else
698dcdb6 1977
b12915c1 1978 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
b12915c1 1985 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1986
1987fi
10f2d63a
VZ
1988
1989
b12915c1 1990 eval "$ac_cv_use_libpng"
10f2d63a 1991 if test "$no_cache" != 1; then
b12915c1 1992 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1993 fi
1994
b12915c1 1995 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1996 echo "$ac_t""yes" 1>&6
422107f9 1997 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1998 echo "$ac_t""no" 1>&6
422107f9 1999 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2000 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2001 elif test "$wxUSE_LIBPNG" = builtin; then
2002 echo "$ac_t""builtin version" 1>&6
422107f9 2003 else
4f14bcd8 2004 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2005 fi
698dcdb6 2006
10f2d63a 2007
698dcdb6 2008 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
cb61c62d 2009echo "configure:2010: checking for --with-libjpeg" >&5
10f2d63a 2010 no_cache=0
698dcdb6 2011 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2012if test "${with_libjpeg+set}" = set; then
2013 withval="$with_libjpeg"
698dcdb6 2014
10f2d63a 2015 if test "$withval" = yes; then
b12915c1 2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2017 elif test "$withval" = no; then
b12915c1 2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2019 elif test "$withval" = sys; then
2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2021 elif test "$withval" = builtin; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2023 else
4f14bcd8 2024 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2025 fi
698dcdb6 2026
10f2d63a 2027else
698dcdb6 2028
b12915c1 2029 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
b12915c1 2036 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2037
2038fi
10f2d63a
VZ
2039
2040
b12915c1 2041 eval "$ac_cv_use_libjpeg"
10f2d63a 2042 if test "$no_cache" != 1; then
b12915c1 2043 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2044 fi
2045
b12915c1 2046 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2047 echo "$ac_t""yes" 1>&6
422107f9 2048 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2049 echo "$ac_t""no" 1>&6
422107f9 2050 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2051 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2052 elif test "$wxUSE_LIBJPEG" = builtin; then
2053 echo "$ac_t""builtin version" 1>&6
422107f9 2054 else
4f14bcd8 2055 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2056 fi
698dcdb6 2057
10f2d63a 2058
698dcdb6 2059 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
cb61c62d 2060echo "configure:2061: checking for --with-libtiff" >&5
10f2d63a 2061 no_cache=0
698dcdb6 2062 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2063if test "${with_libtiff+set}" = set; then
2064 withval="$with_libtiff"
698dcdb6 2065
10f2d63a 2066 if test "$withval" = yes; then
b12915c1 2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2068 elif test "$withval" = no; then
b12915c1 2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2070 elif test "$withval" = sys; then
2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2072 elif test "$withval" = builtin; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2074 else
4f14bcd8 2075 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2076 fi
698dcdb6 2077
10f2d63a 2078else
698dcdb6 2079
b12915c1 2080 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2081 if test "x$LINE" != x ; then
2082 eval "DEFAULT_$LINE"
2083 else
2084 no_cache=1
2085 fi
2086
b12915c1 2087 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2088
2089fi
10f2d63a
VZ
2090
2091
b12915c1 2092 eval "$ac_cv_use_libtiff"
10f2d63a 2093 if test "$no_cache" != 1; then
b12915c1 2094 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2095 fi
2096
b12915c1 2097 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2098 echo "$ac_t""yes" 1>&6
0dcf9893 2099 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2100 echo "$ac_t""no" 1>&6
0dcf9893 2101 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2102 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2103 elif test "$wxUSE_LIBTIFF" = builtin; then
2104 echo "$ac_t""builtin version" 1>&6
0dcf9893 2105 else
4f14bcd8 2106 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2107 fi
698dcdb6 2108
10f2d63a 2109
698dcdb6 2110 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
cb61c62d 2111echo "configure:2112: checking for --with-opengl" >&5
10f2d63a 2112 no_cache=0
698dcdb6 2113 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2114if test "${with_opengl+set}" = set; then
2115 withval="$with_opengl"
698dcdb6 2116
10f2d63a 2117 if test "$withval" = yes; then
b12915c1 2118 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2119 else
b12915c1 2120 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2121 fi
698dcdb6 2122
10f2d63a 2123else
698dcdb6 2124
b12915c1 2125 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2126 if test "x$LINE" != x ; then
2127 eval "DEFAULT_$LINE"
2128 else
2129 no_cache=1
2130 fi
2131
b12915c1 2132 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2133
2134fi
10f2d63a
VZ
2135
2136
b12915c1 2137 eval "$ac_cv_use_opengl"
10f2d63a 2138 if test "$no_cache" != 1; then
b12915c1 2139 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2140 fi
2141
b12915c1 2142 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2143 echo "$ac_t""yes" 1>&6
10f2d63a 2144 else
698dcdb6 2145 echo "$ac_t""no" 1>&6
10f2d63a 2146 fi
698dcdb6 2147
10f2d63a 2148
b12915c1
VZ
2149fi
2150
1e487827 2151
698dcdb6 2152 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
cb61c62d 2153echo "configure:2154: checking for --with-dmalloc" >&5
698dcdb6
VZ
2154 no_cache=0
2155 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2156if test "${with_dmalloc+set}" = set; then
2157 withval="$with_dmalloc"
698dcdb6 2158
c7a2bf27 2159 if test "$withval" = yes; then
b12915c1 2160 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2161 else
b12915c1 2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2163 fi
698dcdb6 2164
c7a2bf27 2165else
698dcdb6 2166
b12915c1 2167 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2168 if test "x$LINE" != x ; then
2169 eval "DEFAULT_$LINE"
2170 else
2171 no_cache=1
2172 fi
2173
b12915c1 2174 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2175
2176fi
c7a2bf27
RR
2177
2178
b12915c1 2179 eval "$ac_cv_use_dmalloc"
c7a2bf27 2180 if test "$no_cache" != 1; then
b12915c1 2181 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2182 fi
2183
b12915c1 2184 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2185 echo "$ac_t""yes" 1>&6
c7a2bf27 2186 else
698dcdb6 2187 echo "$ac_t""no" 1>&6
c7a2bf27 2188 fi
698dcdb6 2189
c7a2bf27 2190
3e44f09d 2191 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
cb61c62d 2192echo "configure:2193: checking for --with-regex" >&5
3e44f09d
VZ
2193 no_cache=0
2194 # Check whether --with-regex or --without-regex was given.
2195if test "${with_regex+set}" = set; then
2196 withval="$with_regex"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_regex='wxUSE_REGEX=yes'
2200 elif test "$withval" = no; then
2201 ac_cv_use_regex='wxUSE_REGEX=no'
2202 elif test "$withval" = sys; then
2203 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2204 elif test "$withval" = builtin; then
2205 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2206 else
4f14bcd8 2207 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_regex"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_REGEX" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 elif test "$wxUSE_REGEX" = no; then
2232 echo "$ac_t""no" 1>&6
2233 elif test "$wxUSE_REGEX" = sys; then
2234 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2235 elif test "$wxUSE_REGEX" = builtin; then
2236 echo "$ac_t""builtin version" 1>&6
3e44f09d 2237 else
4f14bcd8 2238 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2239 fi
2240
2241
698dcdb6 2242 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
cb61c62d 2243echo "configure:2244: checking for --with-zlib" >&5
10f2d63a 2244 no_cache=0
698dcdb6 2245 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2246if test "${with_zlib+set}" = set; then
2247 withval="$with_zlib"
698dcdb6 2248
10f2d63a 2249 if test "$withval" = yes; then
b12915c1 2250 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2251 elif test "$withval" = no; then
b12915c1 2252 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2253 elif test "$withval" = sys; then
2254 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2255 elif test "$withval" = builtin; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2257 else
4f14bcd8 2258 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2259 fi
698dcdb6 2260
10f2d63a 2261else
698dcdb6 2262
b12915c1 2263 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
b12915c1 2270 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2271
2272fi
10f2d63a
VZ
2273
2274
b12915c1 2275 eval "$ac_cv_use_zlib"
10f2d63a 2276 if test "$no_cache" != 1; then
b12915c1 2277 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2278 fi
2279
b12915c1 2280 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2281 echo "$ac_t""yes" 1>&6
422107f9 2282 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2283 echo "$ac_t""no" 1>&6
422107f9 2284 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2285 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2286 elif test "$wxUSE_ZLIB" = builtin; then
2287 echo "$ac_t""builtin version" 1>&6
422107f9 2288 else
4f14bcd8 2289 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2290 fi
698dcdb6 2291
10f2d63a 2292
698dcdb6 2293 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
cb61c62d 2294echo "configure:2295: checking for --with-odbc" >&5
10f2d63a 2295 no_cache=0
698dcdb6 2296 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2297if test "${with_odbc+set}" = set; then
2298 withval="$with_odbc"
698dcdb6 2299
10f2d63a
VZ
2300 if test "$withval" = yes; then
2301 ac_cv_use_odbc='wxUSE_ODBC=yes'
2302 else
2303 ac_cv_use_odbc='wxUSE_ODBC=no'
2304 fi
698dcdb6 2305
10f2d63a 2306else
698dcdb6 2307
10f2d63a
VZ
2308 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2316
2317fi
10f2d63a
VZ
2318
2319
2320 eval "$ac_cv_use_odbc"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2326 echo "$ac_t""yes" 1>&6
10f2d63a 2327 else
698dcdb6 2328 echo "$ac_t""no" 1>&6
10f2d63a 2329 fi
698dcdb6
VZ
2330
2331
10f2d63a 2332
698dcdb6 2333
698dcdb6 2334 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
cb61c62d 2335echo "configure:2336: checking for --enable-shared" >&5
10f2d63a
VZ
2336 no_cache=0
2337 # Check whether --enable-shared or --disable-shared was given.
2338if test "${enable_shared+set}" = set; then
2339 enableval="$enable_shared"
698dcdb6 2340
10f2d63a
VZ
2341 if test "$enableval" = yes; then
2342 ac_cv_use_shared='wxUSE_SHARED=yes'
2343 else
2344 ac_cv_use_shared='wxUSE_SHARED=no'
2345 fi
698dcdb6 2346
10f2d63a 2347else
698dcdb6 2348
10f2d63a
VZ
2349 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2357
2358fi
10f2d63a
VZ
2359
2360
2361 eval "$ac_cv_use_shared"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2367 echo "$ac_t""yes" 1>&6
10f2d63a 2368 else
698dcdb6 2369 echo "$ac_t""no" 1>&6
10f2d63a 2370 fi
698dcdb6 2371
10f2d63a 2372
3a922bb4 2373 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
cb61c62d 2374echo "configure:2375: checking for --enable-soname" >&5
00cf1208 2375 no_cache=0
3a922bb4
RL
2376 # Check whether --enable-soname or --disable-soname was given.
2377if test "${enable_soname+set}" = set; then
2378 enableval="$enable_soname"
698dcdb6 2379
00cf1208 2380 if test "$enableval" = yes; then
3a922bb4 2381 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2382 else
3a922bb4 2383 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2384 fi
698dcdb6 2385
00cf1208 2386else
698dcdb6 2387
3a922bb4 2388 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
3a922bb4 2395 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2396
2397fi
00cf1208
RR
2398
2399
3a922bb4 2400 eval "$ac_cv_use_soname"
00cf1208 2401 if test "$no_cache" != 1; then
3a922bb4 2402 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2403 fi
2404
3a922bb4 2405 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2406 echo "$ac_t""yes" 1>&6
00cf1208 2407 else
698dcdb6 2408 echo "$ac_t""no" 1>&6
00cf1208 2409 fi
698dcdb6 2410
00cf1208 2411
698dcdb6 2412 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
cb61c62d 2413echo "configure:2414: checking for --enable-optimise" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-optimise or --disable-optimise was given.
2416if test "${enable_optimise+set}" = set; then
2417 enableval="$enable_optimise"
698dcdb6 2418
10f2d63a
VZ
2419 if test "$enableval" = yes; then
2420 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2421 else
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2423 fi
698dcdb6 2424
10f2d63a 2425else
698dcdb6 2426
10f2d63a
VZ
2427 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2435
2436fi
10f2d63a
VZ
2437
2438
2439 eval "$ac_cv_use_optimise"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2445 echo "$ac_t""yes" 1>&6
10f2d63a 2446 else
698dcdb6 2447 echo "$ac_t""no" 1>&6
10f2d63a 2448 fi
698dcdb6 2449
10f2d63a 2450
698dcdb6 2451 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
cb61c62d 2452echo "configure:2453: checking for --enable-debug" >&5
10f2d63a
VZ
2453 no_cache=0
2454 # Check whether --enable-debug or --disable-debug was given.
2455if test "${enable_debug+set}" = set; then
2456 enableval="$enable_debug"
698dcdb6 2457
10f2d63a
VZ
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug='wxUSE_DEBUG=yes'
2460 else
2461 ac_cv_use_debug='wxUSE_DEBUG=no'
2462 fi
698dcdb6 2463
10f2d63a 2464else
698dcdb6 2465
10f2d63a
VZ
2466 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2474
2475fi
10f2d63a
VZ
2476
2477
2478 eval "$ac_cv_use_debug"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2484 echo "$ac_t""yes" 1>&6
10f2d63a 2485 else
698dcdb6 2486 echo "$ac_t""no" 1>&6
10f2d63a 2487 fi
698dcdb6 2488
10f2d63a 2489
683dccda
GD
2490
2491 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
cb61c62d 2492echo "configure:2493: checking for --enable-precomp" >&5
683dccda
GD
2493 no_cache=0
2494 # Check whether --enable-precomp or --disable-precomp was given.
2495if test "${enable_precomp+set}" = set; then
2496 enableval="$enable_precomp"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2500 else
2501 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2514
2515fi
2516
2517
2518 eval "$ac_cv_use_precomp"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_PRECOMP" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
10f2d63a
VZ
2530if test "$wxUSE_DEBUG" = "yes"; then
2531 DEFAULT_wxUSE_DEBUG_FLAG=yes
2532 DEFAULT_wxUSE_DEBUG_INFO=yes
2533elif test "$wxUSE_DEBUG" = "no"; then
2534 DEFAULT_wxUSE_DEBUG_FLAG=no
2535 DEFAULT_wxUSE_DEBUG_INFO=no
2536fi
2537
698dcdb6
VZ
2538
2539 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
cb61c62d 2540echo "configure:2541: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2541 no_cache=0
2542 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2543if test "${enable_debug_flag+set}" = set; then
2544 enableval="$enable_debug_flag"
698dcdb6 2545
10f2d63a
VZ
2546 if test "$enableval" = yes; then
2547 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2548 else
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2550 fi
698dcdb6 2551
10f2d63a 2552else
698dcdb6 2553
10f2d63a
VZ
2554 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2562
2563fi
10f2d63a
VZ
2564
2565
2566 eval "$ac_cv_use_debug_flag"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2572 echo "$ac_t""yes" 1>&6
10f2d63a 2573 else
698dcdb6 2574 echo "$ac_t""no" 1>&6
10f2d63a 2575 fi
698dcdb6 2576
10f2d63a 2577
698dcdb6 2578 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
cb61c62d 2579echo "configure:2580: checking for --enable-debug_info" >&5
10f2d63a
VZ
2580 no_cache=0
2581 # Check whether --enable-debug_info or --disable-debug_info was given.
2582if test "${enable_debug_info+set}" = set; then
2583 enableval="$enable_debug_info"
698dcdb6 2584
10f2d63a
VZ
2585 if test "$enableval" = yes; then
2586 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2587 else
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2589 fi
698dcdb6 2590
10f2d63a 2591else
698dcdb6 2592
10f2d63a
VZ
2593 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2601
2602fi
10f2d63a
VZ
2603
2604
2605 eval "$ac_cv_use_debug_info"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2611 echo "$ac_t""yes" 1>&6
10f2d63a 2612 else
698dcdb6 2613 echo "$ac_t""no" 1>&6
10f2d63a 2614 fi
698dcdb6 2615
10f2d63a 2616
698dcdb6 2617 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
cb61c62d 2618echo "configure:2619: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2619 no_cache=0
2620 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2621if test "${enable_debug_gdb+set}" = set; then
2622 enableval="$enable_debug_gdb"
698dcdb6 2623
10f2d63a
VZ
2624 if test "$enableval" = yes; then
2625 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2626 else
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2628 fi
698dcdb6 2629
10f2d63a 2630else
698dcdb6 2631
10f2d63a
VZ
2632 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2640
2641fi
10f2d63a
VZ
2642
2643
2644 eval "$ac_cv_use_debug_gdb"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2650 echo "$ac_t""yes" 1>&6
10f2d63a 2651 else
698dcdb6 2652 echo "$ac_t""no" 1>&6
10f2d63a 2653 fi
698dcdb6 2654
10f2d63a 2655
698dcdb6 2656 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
cb61c62d 2657echo "configure:2658: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2658 no_cache=0
2659 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2660if test "${enable_debug_cntxt+set}" = set; then
2661 enableval="$enable_debug_cntxt"
698dcdb6 2662
10f2d63a
VZ
2663 if test "$enableval" = yes; then
2664 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2665 else
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2667 fi
698dcdb6 2668
10f2d63a 2669else
698dcdb6 2670
10f2d63a
VZ
2671 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2679
2680fi
10f2d63a
VZ
2681
2682
2683 eval "$ac_cv_use_debug_cntxt"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2689 echo "$ac_t""yes" 1>&6
10f2d63a 2690 else
698dcdb6 2691 echo "$ac_t""no" 1>&6
10f2d63a 2692 fi
698dcdb6 2693
10f2d63a 2694
698dcdb6 2695 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
cb61c62d 2696echo "configure:2697: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2697 no_cache=0
2698 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2699if test "${enable_mem_tracing+set}" = set; then
2700 enableval="$enable_mem_tracing"
698dcdb6 2701
10f2d63a
VZ
2702 if test "$enableval" = yes; then
2703 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2704 else
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2706 fi
698dcdb6 2707
10f2d63a 2708else
698dcdb6 2709
10f2d63a
VZ
2710 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2718
2719fi
10f2d63a
VZ
2720
2721
2722 eval "$ac_cv_use_mem_tracing"
2723 if test "$no_cache" != 1; then
2724 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2725 fi
2726
2727 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2728 echo "$ac_t""yes" 1>&6
10f2d63a 2729 else
698dcdb6 2730 echo "$ac_t""no" 1>&6
10f2d63a 2731 fi
698dcdb6 2732
10f2d63a 2733
698dcdb6 2734 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
cb61c62d 2735echo "configure:2736: checking for --enable-profile" >&5
10f2d63a
VZ
2736 no_cache=0
2737 # Check whether --enable-profile or --disable-profile was given.
2738if test "${enable_profile+set}" = set; then
2739 enableval="$enable_profile"
698dcdb6 2740
10f2d63a
VZ
2741 if test "$enableval" = yes; then
2742 ac_cv_use_profile='wxUSE_PROFILE=yes'
2743 else
2744 ac_cv_use_profile='wxUSE_PROFILE=no'
2745 fi
698dcdb6 2746
10f2d63a 2747else
698dcdb6 2748
10f2d63a
VZ
2749 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2757
2758fi
10f2d63a
VZ
2759
2760
2761 eval "$ac_cv_use_profile"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2767 echo "$ac_t""yes" 1>&6
10f2d63a 2768 else
698dcdb6 2769 echo "$ac_t""no" 1>&6
10f2d63a 2770 fi
698dcdb6 2771
10f2d63a 2772
698dcdb6 2773 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
cb61c62d 2774echo "configure:2775: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2775 no_cache=0
2776 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2777if test "${enable_no_rtti+set}" = set; then
2778 enableval="$enable_no_rtti"
698dcdb6 2779
10f2d63a
VZ
2780 if test "$enableval" = yes; then
2781 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2782 else
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2784 fi
698dcdb6 2785
10f2d63a 2786else
698dcdb6 2787
10f2d63a
VZ
2788 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2796
2797fi
10f2d63a
VZ
2798
2799
2800 eval "$ac_cv_use_no_rtti"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2806 echo "$ac_t""yes" 1>&6
10f2d63a 2807 else
698dcdb6 2808 echo "$ac_t""no" 1>&6
10f2d63a 2809 fi
698dcdb6 2810
10f2d63a 2811
698dcdb6 2812 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
cb61c62d 2813echo "configure:2814: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2814 no_cache=0
2815 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2816if test "${enable_no_exceptions+set}" = set; then
2817 enableval="$enable_no_exceptions"
698dcdb6 2818
10f2d63a
VZ
2819 if test "$enableval" = yes; then
2820 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2821 else
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2823 fi
698dcdb6 2824
10f2d63a 2825else
698dcdb6 2826
10f2d63a
VZ
2827 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2835
2836fi
10f2d63a
VZ
2837
2838
2839 eval "$ac_cv_use_no_exceptions"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2845 echo "$ac_t""yes" 1>&6
10f2d63a 2846 else
698dcdb6 2847 echo "$ac_t""no" 1>&6
10f2d63a 2848 fi
698dcdb6 2849
10f2d63a 2850
698dcdb6 2851 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
cb61c62d 2852echo "configure:2853: checking for --enable-permissive" >&5
10f2d63a
VZ
2853 no_cache=0
2854 # Check whether --enable-permissive or --disable-permissive was given.
2855if test "${enable_permissive+set}" = set; then
2856 enableval="$enable_permissive"
698dcdb6 2857
10f2d63a
VZ
2858 if test "$enableval" = yes; then
2859 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2860 else
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2862 fi
698dcdb6 2863
10f2d63a 2864else
698dcdb6 2865
10f2d63a
VZ
2866 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2874
2875fi
10f2d63a
VZ
2876
2877
2878 eval "$ac_cv_use_permissive"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2884 echo "$ac_t""yes" 1>&6
10f2d63a 2885 else
698dcdb6 2886 echo "$ac_t""no" 1>&6
10f2d63a 2887 fi
698dcdb6 2888
10f2d63a 2889
698dcdb6 2890 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
cb61c62d 2891echo "configure:2892: checking for --enable-no_deps" >&5
10f2d63a
VZ
2892 no_cache=0
2893 # Check whether --enable-no_deps or --disable-no_deps was given.
2894if test "${enable_no_deps+set}" = set; then
2895 enableval="$enable_no_deps"
698dcdb6 2896
10f2d63a
VZ
2897 if test "$enableval" = yes; then
2898 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2899 else
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2901 fi
698dcdb6 2902
10f2d63a 2903else
698dcdb6 2904
10f2d63a
VZ
2905 LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2913
2914fi
10f2d63a
VZ
2915
2916
2917 eval "$ac_cv_use_no_deps"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2923 echo "$ac_t""yes" 1>&6
10f2d63a 2924 else
698dcdb6 2925 echo "$ac_t""no" 1>&6
10f2d63a 2926 fi
698dcdb6
VZ
2927
2928
10f2d63a 2929
54276ccf 2930 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
cb61c62d 2931echo "configure:2932: checking for --enable-compat20" >&5
54276ccf
VZ
2932 no_cache=0
2933 # Check whether --enable-compat20 or --disable-compat20 was given.
2934if test "${enable_compat20+set}" = set; then
2935 enableval="$enable_compat20"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2939 else
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "WXWIN_COMPATIBILITY_2" ${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_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2953
2954fi
2955
2956
2957 eval "$ac_cv_use_compat20"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
cb61c62d 2970echo "configure:2971: checking for --enable-compat22" >&5
54276ccf
VZ
2971 no_cache=0
2972 # Check whether --enable-compat22 or --disable-compat22 was given.
2973if test "${enable_compat22+set}" = set; then
2974 enableval="$enable_compat22"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2978 else
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2980 fi
2981
2982else
2983
2984 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2992
2993fi
2994
2995
2996 eval "$ac_cv_use_compat22"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008
698dcdb6
VZ
3009
3010 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
cb61c62d 3011echo "configure:3012: checking for --enable-intl" >&5
10f2d63a
VZ
3012 no_cache=0
3013 # Check whether --enable-intl or --disable-intl was given.
3014if test "${enable_intl+set}" = set; then
3015 enableval="$enable_intl"
698dcdb6 3016
10f2d63a
VZ
3017 if test "$enableval" = yes; then
3018 ac_cv_use_intl='wxUSE_INTL=yes'
3019 else
3020 ac_cv_use_intl='wxUSE_INTL=no'
3021 fi
698dcdb6 3022
10f2d63a 3023else
698dcdb6 3024
10f2d63a
VZ
3025 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3033
3034fi
10f2d63a
VZ
3035
3036
3037 eval "$ac_cv_use_intl"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_INTL" = yes; then
698dcdb6 3043 echo "$ac_t""yes" 1>&6
10f2d63a 3044 else
698dcdb6 3045 echo "$ac_t""no" 1>&6
10f2d63a 3046 fi
698dcdb6 3047
10f2d63a 3048
698dcdb6 3049 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
cb61c62d 3050echo "configure:3051: checking for --enable-config" >&5
10f2d63a
VZ
3051 no_cache=0
3052 # Check whether --enable-config or --disable-config was given.
3053if test "${enable_config+set}" = set; then
3054 enableval="$enable_config"
698dcdb6 3055
10f2d63a
VZ
3056 if test "$enableval" = yes; then
3057 ac_cv_use_config='wxUSE_CONFIG=yes'
3058 else
3059 ac_cv_use_config='wxUSE_CONFIG=no'
3060 fi
698dcdb6 3061
10f2d63a 3062else
698dcdb6 3063
10f2d63a
VZ
3064 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3072
3073fi
10f2d63a
VZ
3074
3075
3076 eval "$ac_cv_use_config"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3082 echo "$ac_t""yes" 1>&6
10f2d63a 3083 else
698dcdb6 3084 echo "$ac_t""no" 1>&6
10f2d63a 3085 fi
698dcdb6
VZ
3086
3087
b12915c1 3088
a1622950 3089 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
cb61c62d 3090echo "configure:3091: checking for --enable-protocols" >&5
a1622950
VZ
3091 no_cache=0
3092 # Check whether --enable-protocols or --disable-protocols was given.
3093if test "${enable_protocols+set}" = set; then
3094 enableval="$enable_protocols"
3095
3096 if test "$enableval" = yes; then
3097 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3098 else
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3100 fi
3101
3102else
3103
3104 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3112
3113fi
3114
3115
3116 eval "$ac_cv_use_protocols"
3117 if test "$no_cache" != 1; then
3118 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3119 fi
3120
3121 if test "$wxUSE_PROTOCOL" = yes; then
3122 echo "$ac_t""yes" 1>&6
3123 else
3124 echo "$ac_t""no" 1>&6
3125 fi
3126
3127
3128 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
cb61c62d 3129echo "configure:3130: checking for --enable-ftp" >&5
a1622950
VZ
3130 no_cache=0
3131 # Check whether --enable-ftp or --disable-ftp was given.
3132if test "${enable_ftp+set}" = set; then
3133 enableval="$enable_ftp"
3134
3135 if test "$enableval" = yes; then
3136 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3137 else
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3151
3152fi
3153
3154
3155 eval "$ac_cv_use_ftp"
3156 if test "$no_cache" != 1; then
3157 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3158 fi
3159
3160 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3161 echo "$ac_t""yes" 1>&6
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166
3167 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
cb61c62d 3168echo "configure:3169: checking for --enable-http" >&5
a1622950
VZ
3169 no_cache=0
3170 # Check whether --enable-http or --disable-http was given.
3171if test "${enable_http+set}" = set; then
3172 enableval="$enable_http"
3173
3174 if test "$enableval" = yes; then
3175 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3176 else
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3178 fi
3179
3180else
3181
3182 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3190
3191fi
3192
3193
3194 eval "$ac_cv_use_http"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3200 echo "$ac_t""yes" 1>&6
3201 else
3202 echo "$ac_t""no" 1>&6
3203 fi
3204
3205
3206 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
cb61c62d 3207echo "configure:3208: checking for --enable-fileproto" >&5
a1622950
VZ
3208 no_cache=0
3209 # Check whether --enable-fileproto or --disable-fileproto was given.
3210if test "${enable_fileproto+set}" = set; then
3211 enableval="$enable_fileproto"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3215 else
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3217 fi
3218
3219else
3220
3221 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3229
3230fi
3231
3232
3233 eval "$ac_cv_use_fileproto"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3239 echo "$ac_t""yes" 1>&6
3240 else
3241 echo "$ac_t""no" 1>&6
3242 fi
3243
3244
698dcdb6 3245 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
cb61c62d 3246echo "configure:3247: checking for --enable-sockets" >&5
10f2d63a
VZ
3247 no_cache=0
3248 # Check whether --enable-sockets or --disable-sockets was given.
3249if test "${enable_sockets+set}" = set; then
3250 enableval="$enable_sockets"
698dcdb6 3251
10f2d63a
VZ
3252 if test "$enableval" = yes; then
3253 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3254 else
3255 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3256 fi
698dcdb6 3257
10f2d63a 3258else
698dcdb6 3259
10f2d63a
VZ
3260 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3268
3269fi
10f2d63a
VZ
3270
3271
3272 eval "$ac_cv_use_sockets"
3273 if test "$no_cache" != 1; then
3274 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3275 fi
3276
3277 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3278 echo "$ac_t""yes" 1>&6
10f2d63a 3279 else
698dcdb6 3280 echo "$ac_t""no" 1>&6
10f2d63a 3281 fi
698dcdb6 3282
b12915c1 3283
698dcdb6
VZ
3284
3285 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
cb61c62d 3286echo "configure:3287: checking for --enable-ipc" >&5
10f2d63a 3287 no_cache=0
eb4efbdc
VZ
3288 # Check whether --enable-ipc or --disable-ipc was given.
3289if test "${enable_ipc+set}" = set; then
3290 enableval="$enable_ipc"
698dcdb6 3291
10f2d63a 3292 if test "$enableval" = yes; then
eb4efbdc 3293 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3294 else
eb4efbdc 3295 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3296 fi
698dcdb6 3297
10f2d63a 3298else
698dcdb6 3299
eb4efbdc 3300 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3301 if test "x$LINE" != x ; then
3302 eval "DEFAULT_$LINE"
3303 else
3304 no_cache=1
3305 fi
3306
eb4efbdc 3307 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3308
3309fi
10f2d63a
VZ
3310
3311
eb4efbdc 3312 eval "$ac_cv_use_ipc"
10f2d63a 3313 if test "$no_cache" != 1; then
eb4efbdc 3314 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3315 fi
3316
eb4efbdc 3317 if test "$wxUSE_IPC" = yes; then
698dcdb6 3318 echo "$ac_t""yes" 1>&6
10f2d63a 3319 else
698dcdb6 3320 echo "$ac_t""no" 1>&6
10f2d63a 3321 fi
698dcdb6
VZ
3322
3323
eb4efbdc 3324
1e6feb95 3325 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
cb61c62d 3326echo "configure:3327: checking for --enable-cmdline" >&5
1e6feb95
VZ
3327 no_cache=0
3328 # Check whether --enable-cmdline or --disable-cmdline was given.
3329if test "${enable_cmdline+set}" = set; then
3330 enableval="$enable_cmdline"
3331
3332 if test "$enableval" = yes; then
3333 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3334 else
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3336 fi
3337
3338else
3339
3340 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3341 if test "x$LINE" != x ; then
3342 eval "DEFAULT_$LINE"
3343 else
3344 no_cache=1
3345 fi
3346
3347 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3348
3349fi
3350
3351
3352 eval "$ac_cv_use_cmdline"
3353 if test "$no_cache" != 1; then
3354 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3355 fi
3356
3357 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3358 echo "$ac_t""yes" 1>&6
3359 else
3360 echo "$ac_t""no" 1>&6
3361 fi
3362
3363
3364 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
cb61c62d 3365echo "configure:3366: checking for --enable-datetime" >&5
1e6feb95
VZ
3366 no_cache=0
3367 # Check whether --enable-datetime or --disable-datetime was given.
3368if test "${enable_datetime+set}" = set; then
3369 enableval="$enable_datetime"
3370
3371 if test "$enableval" = yes; then
3372 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3373 else
3374 ac_cv_use_datetime='wxUSE_DATETIME=no'
3375 fi
3376
3377else
3378
3379 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3380 if test "x$LINE" != x ; then
3381 eval "DEFAULT_$LINE"
3382 else
3383 no_cache=1
3384 fi
3385
3386 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3387
3388fi
3389
3390
3391 eval "$ac_cv_use_datetime"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_DATETIME" = yes; then
3397 echo "$ac_t""yes" 1>&6
3398 else
3399 echo "$ac_t""no" 1>&6
3400 fi
3401
3402
3403 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
cb61c62d 3404echo "configure:3405: checking for --enable-timedate" >&5
1e6feb95
VZ
3405 no_cache=0
3406 # Check whether --enable-timedate or --disable-timedate was given.
3407if test "${enable_timedate+set}" = set; then
3408 enableval="$enable_timedate"
3409
3410 if test "$enableval" = yes; then
3411 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3412 else
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3414 fi
3415
3416else
3417
3418 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3419 if test "x$LINE" != x ; then
3420 eval "DEFAULT_$LINE"
3421 else
3422 no_cache=1
3423 fi
3424
3425 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3426
3427fi
3428
3429
3430 eval "$ac_cv_use_timedate"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_TIMEDATE" = yes; then
3436 echo "$ac_t""yes" 1>&6
3437 else
3438 echo "$ac_t""no" 1>&6
3439 fi
3440
3441
3442 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
cb61c62d 3443echo "configure:3444: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3444 no_cache=0
3445 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3446if test "${enable_stopwatch+set}" = set; then
3447 enableval="$enable_stopwatch"
3448
3449 if test "$enableval" = yes; then
3450 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3451 else
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3453 fi
3454
3455else
3456
3457 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3458 if test "x$LINE" != x ; then
3459 eval "DEFAULT_$LINE"
3460 else
3461 no_cache=1
3462 fi
3463
3464 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3465
3466fi
3467
3468
3469 eval "$ac_cv_use_stopwatch"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_STOPWATCH" = yes; then
3475 echo "$ac_t""yes" 1>&6
3476 else
3477 echo "$ac_t""no" 1>&6
3478 fi
3479
3480
698dcdb6 3481 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
cb61c62d 3482echo "configure:3483: checking for --enable-dialupman" >&5
10f2d63a 3483 no_cache=0
eb4efbdc
VZ
3484 # Check whether --enable-dialupman or --disable-dialupman was given.
3485if test "${enable_dialupman+set}" = set; then
3486 enableval="$enable_dialupman"
698dcdb6 3487
10f2d63a 3488 if test "$enableval" = yes; then
eb4efbdc 3489 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3490 else
eb4efbdc 3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3492 fi
698dcdb6 3493
10f2d63a 3494else
698dcdb6 3495
eb4efbdc 3496 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
eb4efbdc 3503 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3504
3505fi
10f2d63a
VZ
3506
3507
eb4efbdc 3508 eval "$ac_cv_use_dialupman"
10f2d63a 3509 if test "$no_cache" != 1; then
eb4efbdc 3510 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3511 fi
3512
eb4efbdc 3513 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3514 echo "$ac_t""yes" 1>&6
10f2d63a 3515 else
698dcdb6 3516 echo "$ac_t""no" 1>&6
10f2d63a 3517 fi
698dcdb6 3518
10f2d63a 3519
698dcdb6 3520 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
cb61c62d 3521echo "configure:3522: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3522 no_cache=0
3523 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3524if test "${enable_apple_ieee+set}" = set; then
3525 enableval="$enable_apple_ieee"
698dcdb6 3526
10f2d63a
VZ
3527 if test "$enableval" = yes; then
3528 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3529 else
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3531 fi
698dcdb6 3532
10f2d63a 3533else
698dcdb6 3534
10f2d63a
VZ
3535 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3543
3544fi
10f2d63a
VZ
3545
3546
3547 eval "$ac_cv_use_apple_ieee"
3548 if test "$no_cache" != 1; then
3549 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3550 fi
3551
3552 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3553 echo "$ac_t""yes" 1>&6
10f2d63a 3554 else
698dcdb6 3555 echo "$ac_t""no" 1>&6
10f2d63a 3556 fi
698dcdb6 3557
10f2d63a 3558
1e6feb95 3559 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
cb61c62d 3560echo "configure:3561: checking for --enable-timer" >&5
10f2d63a 3561 no_cache=0
1e6feb95
VZ
3562 # Check whether --enable-timer or --disable-timer was given.
3563if test "${enable_timer+set}" = set; then
3564 enableval="$enable_timer"
698dcdb6 3565
10f2d63a 3566 if test "$enableval" = yes; then
1e6feb95 3567 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3568 else
1e6feb95 3569 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3570 fi
698dcdb6 3571
10f2d63a 3572else
698dcdb6 3573
1e6feb95 3574 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
1e6feb95 3581 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3582
3583fi
10f2d63a
VZ
3584
3585
1e6feb95 3586 eval "$ac_cv_use_timer"
10f2d63a 3587 if test "$no_cache" != 1; then
1e6feb95 3588 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3589 fi
3590
1e6feb95 3591 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3592 echo "$ac_t""yes" 1>&6
10f2d63a 3593 else
698dcdb6 3594 echo "$ac_t""no" 1>&6
10f2d63a 3595 fi
698dcdb6 3596
10f2d63a 3597
698dcdb6 3598 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
cb61c62d 3599echo "configure:3600: checking for --enable-wave" >&5
10f2d63a
VZ
3600 no_cache=0
3601 # Check whether --enable-wave or --disable-wave was given.
3602if test "${enable_wave+set}" = set; then
3603 enableval="$enable_wave"
698dcdb6 3604
10f2d63a
VZ
3605 if test "$enableval" = yes; then
3606 ac_cv_use_wave='wxUSE_WAVE=yes'
3607 else
3608 ac_cv_use_wave='wxUSE_WAVE=no'
3609 fi
698dcdb6 3610
10f2d63a 3611else
698dcdb6 3612
10f2d63a
VZ
3613 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3621
3622fi
10f2d63a
VZ
3623
3624
3625 eval "$ac_cv_use_wave"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3631 echo "$ac_t""yes" 1>&6
10f2d63a 3632 else
698dcdb6 3633 echo "$ac_t""no" 1>&6
10f2d63a 3634 fi
698dcdb6 3635
10f2d63a 3636
698dcdb6 3637 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
cb61c62d 3638echo "configure:3639: checking for --enable-fraction" >&5
10f2d63a
VZ
3639 no_cache=0
3640 # Check whether --enable-fraction or --disable-fraction was given.
3641if test "${enable_fraction+set}" = set; then
3642 enableval="$enable_fraction"
698dcdb6 3643
10f2d63a
VZ
3644 if test "$enableval" = yes; then
3645 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3646 else
3647 ac_cv_use_fraction='wxUSE_FRACTION=no'
3648 fi
698dcdb6 3649
10f2d63a 3650else
698dcdb6 3651
10f2d63a
VZ
3652 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3660
3661fi
10f2d63a
VZ
3662
3663
3664 eval "$ac_cv_use_fraction"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3670 echo "$ac_t""yes" 1>&6
10f2d63a 3671 else
698dcdb6 3672 echo "$ac_t""no" 1>&6
10f2d63a 3673 fi
698dcdb6 3674
10f2d63a 3675
698dcdb6 3676 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
cb61c62d 3677echo "configure:3678: checking for --enable-dynlib" >&5
10f2d63a
VZ
3678 no_cache=0
3679 # Check whether --enable-dynlib or --disable-dynlib was given.
3680if test "${enable_dynlib+set}" = set; then
3681 enableval="$enable_dynlib"
698dcdb6 3682
10f2d63a
VZ
3683 if test "$enableval" = yes; then
3684 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3685 else
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3687 fi
698dcdb6 3688
10f2d63a 3689else
698dcdb6 3690
10f2d63a
VZ
3691 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3699
3700fi
10f2d63a
VZ
3701
3702
3703 eval "$ac_cv_use_dynlib"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3709 echo "$ac_t""yes" 1>&6
10f2d63a 3710 else
698dcdb6 3711 echo "$ac_t""no" 1>&6
10f2d63a 3712 fi
698dcdb6 3713
10f2d63a 3714
0b9ab0bd 3715 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
cb61c62d 3716echo "configure:3717: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3717 no_cache=0
3718 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3719if test "${enable_dynamicloader+set}" = set; then
3720 enableval="$enable_dynamicloader"
3721
3722 if test "$enableval" = yes; then
3723 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3724 else
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3726 fi
3727
3728else
3729
3730 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3731 if test "x$LINE" != x ; then
3732 eval "DEFAULT_$LINE"
3733 else
3734 no_cache=1
3735 fi
3736
3737 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3738
3739fi
3740
3741
3742 eval "$ac_cv_use_dynamicloader"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3748 echo "$ac_t""yes" 1>&6
3749 else
3750 echo "$ac_t""no" 1>&6
3751 fi
3752
3753
698dcdb6 3754 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
cb61c62d 3755echo "configure:3756: checking for --enable-longlong" >&5
10f2d63a
VZ
3756 no_cache=0
3757 # Check whether --enable-longlong or --disable-longlong was given.
3758if test "${enable_longlong+set}" = set; then
3759 enableval="$enable_longlong"
698dcdb6 3760
10f2d63a
VZ
3761 if test "$enableval" = yes; then
3762 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3763 else
3764 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3765 fi
698dcdb6 3766
10f2d63a 3767else
698dcdb6 3768
10f2d63a
VZ
3769 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3777
3778fi
10f2d63a
VZ
3779
3780
3781 eval "$ac_cv_use_longlong"
3782 if test "$no_cache" != 1; then
3783 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3784 fi
3785
3786 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3787 echo "$ac_t""yes" 1>&6
10f2d63a 3788 else
698dcdb6 3789 echo "$ac_t""no" 1>&6
10f2d63a 3790 fi
698dcdb6 3791
10f2d63a 3792
698dcdb6 3793 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
cb61c62d 3794echo "configure:3795: checking for --enable-geometry" >&5
e8f65ba6
RR
3795 no_cache=0
3796 # Check whether --enable-geometry or --disable-geometry was given.
3797if test "${enable_geometry+set}" = set; then
3798 enableval="$enable_geometry"
698dcdb6 3799
e8f65ba6
RR
3800 if test "$enableval" = yes; then
3801 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3802 else
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3804 fi
698dcdb6 3805
e8f65ba6 3806else
698dcdb6 3807
e8f65ba6
RR
3808 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3816
3817fi
e8f65ba6
RR
3818
3819
3820 eval "$ac_cv_use_geometry"
3821 if test "$no_cache" != 1; then
3822 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3823 fi
3824
3825 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3826 echo "$ac_t""yes" 1>&6
e8f65ba6 3827 else
698dcdb6 3828 echo "$ac_t""no" 1>&6
e8f65ba6 3829 fi
698dcdb6 3830
e8f65ba6 3831
698dcdb6 3832 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
cb61c62d 3833echo "configure:3834: checking for --enable-log" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-log or --disable-log was given.
3836if test "${enable_log+set}" = set; then
3837 enableval="$enable_log"
698dcdb6 3838
10f2d63a
VZ
3839 if test "$enableval" = yes; then
3840 ac_cv_use_log='wxUSE_LOG=yes'
3841 else
3842 ac_cv_use_log='wxUSE_LOG=no'
3843 fi
698dcdb6 3844
10f2d63a 3845else
698dcdb6 3846
10f2d63a
VZ
3847 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3855
3856fi
10f2d63a
VZ
3857
3858
3859 eval "$ac_cv_use_log"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_LOG" = yes; then
698dcdb6 3865 echo "$ac_t""yes" 1>&6
10f2d63a 3866 else
698dcdb6 3867 echo "$ac_t""no" 1>&6
10f2d63a 3868 fi
698dcdb6 3869
10f2d63a 3870
698dcdb6 3871 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
cb61c62d 3872echo "configure:3873: checking for --enable-streams" >&5
10f2d63a
VZ
3873 no_cache=0
3874 # Check whether --enable-streams or --disable-streams was given.
3875if test "${enable_streams+set}" = set; then
3876 enableval="$enable_streams"
698dcdb6 3877
10f2d63a
VZ
3878 if test "$enableval" = yes; then
3879 ac_cv_use_streams='wxUSE_STREAMS=yes'
3880 else
3881 ac_cv_use_streams='wxUSE_STREAMS=no'
3882 fi
698dcdb6 3883
10f2d63a 3884else
698dcdb6 3885
10f2d63a
VZ
3886 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3894
3895fi
10f2d63a
VZ
3896
3897
3898 eval "$ac_cv_use_streams"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3904 echo "$ac_t""yes" 1>&6
10f2d63a 3905 else
698dcdb6 3906 echo "$ac_t""no" 1>&6
10f2d63a 3907 fi
698dcdb6 3908
10f2d63a 3909
698dcdb6 3910 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
cb61c62d 3911echo "configure:3912: checking for --enable-file" >&5
10f2d63a
VZ
3912 no_cache=0
3913 # Check whether --enable-file or --disable-file was given.
3914if test "${enable_file+set}" = set; then
3915 enableval="$enable_file"
698dcdb6 3916
10f2d63a
VZ
3917 if test "$enableval" = yes; then
3918 ac_cv_use_file='wxUSE_FILE=yes'
3919 else
3920 ac_cv_use_file='wxUSE_FILE=no'
3921 fi
698dcdb6 3922
10f2d63a 3923else
698dcdb6 3924
10f2d63a
VZ
3925 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3933
3934fi
10f2d63a
VZ
3935
3936
3937 eval "$ac_cv_use_file"
3938 if test "$no_cache" != 1; then
3939 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3940 fi
3941
3942 if test "$wxUSE_FILE" = yes; then
698dcdb6 3943 echo "$ac_t""yes" 1>&6
10f2d63a 3944 else
698dcdb6 3945 echo "$ac_t""no" 1>&6
10f2d63a 3946 fi
698dcdb6 3947
10f2d63a 3948
1e6feb95 3949 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
cb61c62d 3950echo "configure:3951: checking for --enable-ffile" >&5
10f2d63a 3951 no_cache=0
1e6feb95
VZ
3952 # Check whether --enable-ffile or --disable-ffile was given.
3953if test "${enable_ffile+set}" = set; then
3954 enableval="$enable_ffile"
698dcdb6 3955
10f2d63a 3956 if test "$enableval" = yes; then
1e6feb95 3957 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3958 else
1e6feb95 3959 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3960 fi
698dcdb6 3961
10f2d63a 3962else
698dcdb6 3963
1e6feb95 3964 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3965 if test "x$LINE" != x ; then
3966 eval "DEFAULT_$LINE"
3967 else
3968 no_cache=1
3969 fi
3970
1e6feb95 3971 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3972
3973fi
10f2d63a
VZ
3974
3975
1e6feb95 3976 eval "$ac_cv_use_ffile"
10f2d63a 3977 if test "$no_cache" != 1; then
1e6feb95 3978 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3979 fi
3980
1e6feb95 3981 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3982 echo "$ac_t""yes" 1>&6
10f2d63a 3983 else
698dcdb6 3984 echo "$ac_t""no" 1>&6
10f2d63a 3985 fi
698dcdb6 3986
10f2d63a 3987
a3a584a7 3988 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
cb61c62d 3989echo "configure:3990: checking for --enable-textbuf" >&5
a3a584a7
VZ
3990 no_cache=0
3991 # Check whether --enable-textbuf or --disable-textbuf was given.
3992if test "${enable_textbuf+set}" = set; then
3993 enableval="$enable_textbuf"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3997 else
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3999 fi
4000
4001else
4002
4003 LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4011
4012fi
4013
4014
4015 eval "$ac_cv_use_textbuf"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_TEXTBUFFER" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
1e6feb95 4027 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
cb61c62d 4028echo "configure:4029: checking for --enable-textfile" >&5
10f2d63a 4029 no_cache=0
1e6feb95
VZ
4030 # Check whether --enable-textfile or --disable-textfile was given.
4031if test "${enable_textfile+set}" = set; then
4032 enableval="$enable_textfile"
698dcdb6 4033
10f2d63a 4034 if test "$enableval" = yes; then
1e6feb95 4035 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4036 else
1e6feb95 4037 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4038 fi
698dcdb6 4039
10f2d63a 4040else
698dcdb6 4041
1e6feb95 4042 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
1e6feb95 4049 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4050
4051fi
10f2d63a
VZ
4052
4053
1e6feb95 4054 eval "$ac_cv_use_textfile"
10f2d63a 4055 if test "$no_cache" != 1; then
1e6feb95 4056 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4057 fi
4058
1e6feb95 4059 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4060 echo "$ac_t""yes" 1>&6
10f2d63a 4061 else
698dcdb6 4062 echo "$ac_t""no" 1>&6
10f2d63a 4063 fi
698dcdb6 4064
10f2d63a 4065
1e6feb95 4066 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
cb61c62d 4067echo "configure:4068: checking for --enable-fontmap" >&5
10f2d63a 4068 no_cache=0
1e6feb95
VZ
4069 # Check whether --enable-fontmap or --disable-fontmap was given.
4070if test "${enable_fontmap+set}" = set; then
4071 enableval="$enable_fontmap"
698dcdb6 4072
10f2d63a 4073 if test "$enableval" = yes; then
1e6feb95 4074 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4075 else
1e6feb95 4076 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4077 fi
698dcdb6 4078
10f2d63a 4079else
698dcdb6 4080
1e6feb95 4081 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
1e6feb95 4088 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4089
4090fi
10f2d63a
VZ
4091
4092
1e6feb95 4093 eval "$ac_cv_use_fontmap"
10f2d63a 4094 if test "$no_cache" != 1; then
1e6feb95 4095 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4096 fi
4097
1e6feb95 4098 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4099 echo "$ac_t""yes" 1>&6
10f2d63a 4100 else
698dcdb6 4101 echo "$ac_t""no" 1>&6
10f2d63a 4102 fi
698dcdb6 4103
10f2d63a 4104
1e6feb95 4105 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
cb61c62d 4106echo "configure:4107: checking for --enable-unicode" >&5
10f2d63a 4107 no_cache=0
1e6feb95
VZ
4108 # Check whether --enable-unicode or --disable-unicode was given.
4109if test "${enable_unicode+set}" = set; then
4110 enableval="$enable_unicode"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4114 else
4115 ac_cv_use_unicode='wxUSE_UNICODE=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_unicode"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_UNICODE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
a72a4bfa 4144 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
cb61c62d 4145echo "configure:4146: checking for --enable-mslu" >&5
a72a4bfa
VS
4146 no_cache=0
4147 # Check whether --enable-mslu or --disable-mslu was given.
4148if test "${enable_mslu+set}" = set; then
4149 enableval="$enable_mslu"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4153 else
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4167
4168fi
4169
4170
4171 eval "$ac_cv_use_mslu"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_UNICODE_MSLU" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
1e6feb95 4183 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
cb61c62d 4184echo "configure:4185: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4185 no_cache=0
4186 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4187if test "${enable_wxprintfv+set}" = set; then
4188 enableval="$enable_wxprintfv"
4189
4190 if test "$enableval" = yes; then
10f2d63a
VZ
4191 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4192 else
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4194 fi
698dcdb6 4195
10f2d63a 4196else
698dcdb6 4197
10f2d63a
VZ
4198 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4199 if test "x$LINE" != x ; then
4200 eval "DEFAULT_$LINE"
4201 else
4202 no_cache=1
4203 fi
4204
4205 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4206
4207fi
10f2d63a
VZ
4208
4209
4210 eval "$ac_cv_use_wxprintfv"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4216 echo "$ac_t""yes" 1>&6
10f2d63a 4217 else
698dcdb6 4218 echo "$ac_t""no" 1>&6
10f2d63a 4219 fi
698dcdb6 4220
10f2d63a 4221
698dcdb6 4222 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
cb61c62d 4223echo "configure:4224: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4224 no_cache=0
4225 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4226if test "${enable_std_iostreams+set}" = set; then
4227 enableval="$enable_std_iostreams"
698dcdb6 4228
10f2d63a
VZ
4229 if test "$enableval" = yes; then
4230 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4231 else
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4233 fi
698dcdb6 4234
10f2d63a 4235else
698dcdb6 4236
10f2d63a
VZ
4237 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4245
4246fi
10f2d63a
VZ
4247
4248
4249 eval "$ac_cv_use_std_iostreams"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4255 echo "$ac_t""yes" 1>&6
10f2d63a 4256 else
698dcdb6 4257 echo "$ac_t""no" 1>&6
10f2d63a 4258 fi
698dcdb6 4259
10f2d63a 4260
698dcdb6 4261 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
cb61c62d 4262echo "configure:4263: checking for --enable-filesystem" >&5
24528b0c
VS
4263 no_cache=0
4264 # Check whether --enable-filesystem or --disable-filesystem was given.
4265if test "${enable_filesystem+set}" = set; then
4266 enableval="$enable_filesystem"
698dcdb6 4267
24528b0c
VS
4268 if test "$enableval" = yes; then
4269 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4270 else
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4272 fi
698dcdb6 4273
24528b0c 4274else
698dcdb6 4275
24528b0c
VS
4276 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4284
4285fi
24528b0c
VS
4286
4287
4288 eval "$ac_cv_use_filesystem"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4294 echo "$ac_t""yes" 1>&6
24528b0c 4295 else
698dcdb6 4296 echo "$ac_t""no" 1>&6
24528b0c 4297 fi
698dcdb6 4298
24528b0c 4299
698dcdb6 4300 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
cb61c62d 4301echo "configure:4302: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4302 no_cache=0
4303 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4304if test "${enable_fs_inet+set}" = set; then
4305 enableval="$enable_fs_inet"
698dcdb6 4306
10f2d63a
VZ
4307 if test "$enableval" = yes; then
4308 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4309 else
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4311 fi
698dcdb6 4312
10f2d63a 4313else
698dcdb6 4314
10f2d63a
VZ
4315 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4323
4324fi
10f2d63a
VZ
4325
4326
4327 eval "$ac_cv_use_fs_inet"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4333 echo "$ac_t""yes" 1>&6
10f2d63a 4334 else
698dcdb6 4335 echo "$ac_t""no" 1>&6
10f2d63a 4336 fi
698dcdb6 4337
10f2d63a 4338
698dcdb6 4339 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
cb61c62d 4340echo "configure:4341: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4341 no_cache=0
4342 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4343if test "${enable_fs_zip+set}" = set; then
4344 enableval="$enable_fs_zip"
698dcdb6 4345
10f2d63a
VZ
4346 if test "$enableval" = yes; then
4347 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4348 else
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4350 fi
698dcdb6 4351
10f2d63a 4352else
698dcdb6 4353
10f2d63a
VZ
4354 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4355 if test "x$LINE" != x ; then
4356 eval "DEFAULT_$LINE"
4357 else
4358 no_cache=1
4359 fi
4360
4361 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4362
4363fi
10f2d63a
VZ
4364
4365
4366 eval "$ac_cv_use_fs_zip"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4372 echo "$ac_t""yes" 1>&6
10f2d63a 4373 else
698dcdb6 4374 echo "$ac_t""no" 1>&6
10f2d63a 4375 fi
698dcdb6 4376
10f2d63a 4377
698dcdb6 4378 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
cb61c62d 4379echo "configure:4380: checking for --enable-zipstream" >&5
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-zipstream or --disable-zipstream was given.
4382if test "${enable_zipstream+set}" = set; then
4383 enableval="$enable_zipstream"
698dcdb6 4384
10f2d63a
VZ
4385 if test "$enableval" = yes; then
4386 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4387 else
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4389 fi
698dcdb6 4390
10f2d63a 4391else
698dcdb6 4392
10f2d63a
VZ
4393 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4401
4402fi
10f2d63a
VZ
4403
4404
4405 eval "$ac_cv_use_zipstream"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4411 echo "$ac_t""yes" 1>&6
10f2d63a 4412 else
698dcdb6 4413 echo "$ac_t""no" 1>&6
10f2d63a 4414 fi
698dcdb6 4415
10f2d63a 4416
698dcdb6
VZ
4417
4418 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
cb61c62d 4419echo "configure:4420: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4420 no_cache=0
4421 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4422if test "${enable_catch_segvs+set}" = set; then
4423 enableval="$enable_catch_segvs"
698dcdb6 4424
eb4efbdc
VZ
4425 if test "$enableval" = yes; then
4426 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4427 else
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4429 fi
698dcdb6 4430
eb4efbdc 4431else
698dcdb6 4432
eb4efbdc
VZ
4433 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4441
4442fi
eb4efbdc
VZ
4443
4444
4445 eval "$ac_cv_use_catch_segvs"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4451 echo "$ac_t""yes" 1>&6
eb4efbdc 4452 else
698dcdb6 4453 echo "$ac_t""no" 1>&6
eb4efbdc 4454 fi
698dcdb6 4455
eb4efbdc 4456
698dcdb6 4457 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
cb61c62d 4458echo "configure:4459: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4459 no_cache=0
4460 # Check whether --enable-snglinst or --disable-snglinst was given.
4461if test "${enable_snglinst+set}" = set; then
4462 enableval="$enable_snglinst"
698dcdb6 4463
4f3c5f06
VZ
4464 if test "$enableval" = yes; then
4465 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4466 else
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4468 fi
698dcdb6 4469
4f3c5f06 4470else
698dcdb6 4471
4f3c5f06
VZ
4472 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4480
4481fi
4f3c5f06
VZ
4482
4483
4484 eval "$ac_cv_use_snglinst"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4490 echo "$ac_t""yes" 1>&6
4f3c5f06 4491 else
698dcdb6 4492 echo "$ac_t""no" 1>&6
4f3c5f06 4493 fi
698dcdb6
VZ
4494
4495
eb4efbdc 4496
1e6feb95 4497 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
cb61c62d 4498echo "configure:4499: checking for --enable-mimetype" >&5
1e6feb95
VZ
4499 no_cache=0
4500 # Check whether --enable-mimetype or --disable-mimetype was given.
4501if test "${enable_mimetype+set}" = set; then
4502 enableval="$enable_mimetype"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4506 else
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4508 fi
4509
4510else
4511
4512 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4520
4521fi
4522
4523
4524 eval "$ac_cv_use_mimetype"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_MIMETYPE" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
3e44f09d 4536 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
cb61c62d 4537echo "configure:4538: checking for --enable-system_options" >&5
3e44f09d
VZ
4538 no_cache=0
4539 # Check whether --enable-system_options or --disable-system_options was given.
4540if test "${enable_system_options+set}" = set; then
4541 enableval="$enable_system_options"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4545 else
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4559
4560fi
4561
4562
4563 eval "$ac_cv_use_system_options"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
1e6feb95 4575
4cdb0ab0 4576 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
cb61c62d 4577echo "configure:4578: checking for --enable-url" >&5
4cdb0ab0
VS
4578 no_cache=0
4579 # Check whether --enable-url or --disable-url was given.
4580if test "${enable_url+set}" = set; then
4581 enableval="$enable_url"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_url='wxUSE_URL=yes'
4585 else
4586 ac_cv_use_url='wxUSE_URL=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_url"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_URL" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
cb61c62d 4616echo "configure:4617: checking for --enable-protocol" >&5
4cdb0ab0
VS
4617 no_cache=0
4618 # Check whether --enable-protocol or --disable-protocol was given.
4619if test "${enable_protocol+set}" = set; then
4620 enableval="$enable_protocol"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4624 else
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4638
4639fi
4640
4641
4642 eval "$ac_cv_use_protocol"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_PROTOCOL" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
4654 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
cb61c62d 4655echo "configure:4656: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4656 no_cache=0
4657 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4658if test "${enable_protocol_http+set}" = set; then
4659 enableval="$enable_protocol_http"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4663 else
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4677
4678fi
4679
4680
4681 eval "$ac_cv_use_protocol_http"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4687 echo "$ac_t""yes" 1>&6
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692
4693 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
cb61c62d 4694echo "configure:4695: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4695 no_cache=0
4696 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4697if test "${enable_protocol_ftp+set}" = set; then
4698 enableval="$enable_protocol_ftp"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4702 else
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4716
4717fi
4718
4719
4720 eval "$ac_cv_use_protocol_ftp"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4726 echo "$ac_t""yes" 1>&6
4727 else
4728 echo "$ac_t""no" 1>&6
4729 fi
4730
4731
4732 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
cb61c62d 4733echo "configure:4734: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4734 no_cache=0
4735 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4736if test "${enable_protocol_file+set}" = set; then
4737 enableval="$enable_protocol_file"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4741 else
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4743 fi
4744
4745else
4746
4747 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4755
4756fi
4757
4758
4759 eval "$ac_cv_use_protocol_file"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4765 echo "$ac_t""yes" 1>&6
4766 else
4767 echo "$ac_t""no" 1>&6
4768 fi
4769
4770
4771
4772
698dcdb6
VZ
4773
4774 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
cb61c62d 4775echo "configure:4776: checking for --enable-threads" >&5
10f2d63a
VZ
4776 no_cache=0
4777 # Check whether --enable-threads or --disable-threads was given.
4778if test "${enable_threads+set}" = set; then
4779 enableval="$enable_threads"
698dcdb6 4780
10f2d63a
VZ
4781 if test "$enableval" = yes; then
4782 ac_cv_use_threads='wxUSE_THREADS=yes'
4783 else
4784 ac_cv_use_threads='wxUSE_THREADS=no'
4785 fi
698dcdb6 4786
10f2d63a 4787else
698dcdb6 4788
10f2d63a
VZ
4789 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4797
4798fi
10f2d63a
VZ
4799
4800
4801 eval "$ac_cv_use_threads"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4807 echo "$ac_t""yes" 1>&6
10f2d63a 4808 else
698dcdb6 4809 echo "$ac_t""no" 1>&6
10f2d63a 4810 fi
698dcdb6 4811
10f2d63a 4812
b12915c1
VZ
4813if test "$wxUSE_GUI" = "yes"; then
4814
698dcdb6
VZ
4815
4816
4817 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
cb61c62d 4818echo "configure:4819: checking for --enable-docview" >&5
10f2d63a
VZ
4819 no_cache=0
4820 # Check whether --enable-docview or --disable-docview was given.
4821if test "${enable_docview+set}" = set; then
4822 enableval="$enable_docview"
698dcdb6 4823
10f2d63a
VZ
4824 if test "$enableval" = yes; then
4825 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4826 else
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4828 fi
698dcdb6 4829
10f2d63a 4830else
698dcdb6 4831
10f2d63a
VZ
4832 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4840
4841fi
10f2d63a
VZ
4842
4843
4844 eval "$ac_cv_use_docview"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4850 echo "$ac_t""yes" 1>&6
10f2d63a 4851 else
698dcdb6 4852 echo "$ac_t""no" 1>&6
10f2d63a 4853 fi
698dcdb6 4854
10f2d63a 4855
698dcdb6 4856 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
cb61c62d 4857echo "configure:4858: checking for --enable-help" >&5
10f2d63a
VZ
4858 no_cache=0
4859 # Check whether --enable-help or --disable-help was given.
4860if test "${enable_help+set}" = set; then
4861 enableval="$enable_help"
698dcdb6 4862
10f2d63a
VZ
4863 if test "$enableval" = yes; then
4864 ac_cv_use_help='wxUSE_HELP=yes'
4865 else
4866 ac_cv_use_help='wxUSE_HELP=no'
4867 fi
698dcdb6 4868
10f2d63a 4869else
698dcdb6 4870
10f2d63a
VZ
4871 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4879
4880fi
10f2d63a
VZ
4881
4882
4883 eval "$ac_cv_use_help"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_HELP" = yes; then
698dcdb6 4889 echo "$ac_t""yes" 1>&6
10f2d63a 4890 else
698dcdb6 4891 echo "$ac_t""no" 1>&6
10f2d63a 4892 fi
698dcdb6 4893
10f2d63a 4894
29fd3c0c 4895 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
cb61c62d 4896echo "configure:4897: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4897 no_cache=0
4898 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4899if test "${enable_mshtmlhelp+set}" = set; then
4900 enableval="$enable_mshtmlhelp"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4904 else
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4918
4919fi
4920
4921
4922 eval "$ac_cv_use_mshtmlhelp"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_MS_HTML_HELP" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
3379ed37 4934 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
cb61c62d 4935echo "configure:4936: checking for --enable-html" >&5
3379ed37
VZ
4936 no_cache=0
4937 # Check whether --enable-html or --disable-html was given.
4938if test "${enable_html+set}" = set; then
4939 enableval="$enable_html"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_html='wxUSE_HTML=yes'
4943 else
4944 ac_cv_use_html='wxUSE_HTML=no'
4945 fi
4946
4947else
4948
4949 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4957
4958fi
4959
4960
4961 eval "$ac_cv_use_html"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_HTML" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
cb61c62d 4974echo "configure:4975: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4975 no_cache=0
4976 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4977if test "${enable_htmlhelp+set}" = set; then
4978 enableval="$enable_htmlhelp"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4982 else
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4996
4997fi
4998
4999
5000 eval "$ac_cv_use_htmlhelp"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_WXHTML_HELP" = yes; then
5006 echo "$ac_t""yes" 1>&6
5007 else
5008 echo "$ac_t""no" 1>&6
5009 fi
5010
5011
698dcdb6 5012 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
cb61c62d 5013echo "configure:5014: checking for --enable-constraints" >&5
10f2d63a
VZ
5014 no_cache=0
5015 # Check whether --enable-constraints or --disable-constraints was given.
5016if test "${enable_constraints+set}" = set; then
5017 enableval="$enable_constraints"
698dcdb6 5018
10f2d63a
VZ
5019 if test "$enableval" = yes; then
5020 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5021 else
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5023 fi
698dcdb6 5024
10f2d63a 5025else
698dcdb6 5026
10f2d63a
VZ
5027 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5035
5036fi
10f2d63a
VZ
5037
5038
5039 eval "$ac_cv_use_constraints"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5045 echo "$ac_t""yes" 1>&6
10f2d63a 5046 else
698dcdb6 5047 echo "$ac_t""no" 1>&6
10f2d63a 5048 fi
698dcdb6 5049
10f2d63a 5050
698dcdb6 5051 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
cb61c62d 5052echo "configure:5053: checking for --enable-printarch" >&5
10f2d63a
VZ
5053 no_cache=0
5054 # Check whether --enable-printarch or --disable-printarch was given.
5055if test "${enable_printarch+set}" = set; then
5056 enableval="$enable_printarch"
698dcdb6 5057
10f2d63a
VZ
5058 if test "$enableval" = yes; then
5059 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5060 else
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5062 fi
698dcdb6 5063
10f2d63a 5064else
698dcdb6 5065
10f2d63a
VZ
5066 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5074
5075fi
10f2d63a
VZ
5076
5077
5078 eval "$ac_cv_use_printarch"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5084 echo "$ac_t""yes" 1>&6
10f2d63a 5085 else
698dcdb6 5086 echo "$ac_t""no" 1>&6
10f2d63a 5087 fi
698dcdb6 5088
10f2d63a 5089
698dcdb6 5090 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
cb61c62d 5091echo "configure:5092: checking for --enable-mdi" >&5
10f2d63a
VZ
5092 no_cache=0
5093 # Check whether --enable-mdi or --disable-mdi was given.
5094if test "${enable_mdi+set}" = set; then
5095 enableval="$enable_mdi"
698dcdb6 5096
10f2d63a
VZ
5097 if test "$enableval" = yes; then
5098 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5099 else
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5101 fi
698dcdb6 5102
10f2d63a 5103else
698dcdb6 5104
10f2d63a
VZ
5105 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5113
5114fi
10f2d63a
VZ
5115
5116
5117 eval "$ac_cv_use_mdi"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5123 echo "$ac_t""yes" 1>&6
10f2d63a 5124 else
698dcdb6 5125 echo "$ac_t""no" 1>&6
10f2d63a 5126 fi
698dcdb6
VZ
5127
5128
1e6feb95 5129 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
cb61c62d 5130echo "configure:5131: checking for --enable-loggui" >&5
1e6feb95
VZ
5131 no_cache=0
5132 # Check whether --enable-loggui or --disable-loggui was given.
5133if test "${enable_loggui+set}" = set; then
5134 enableval="$enable_loggui"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5138 else
5139 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5152
5153fi
5154
5155
5156 eval "$ac_cv_use_loggui"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_LOGGUI" = yes; then
5162 echo "$ac_t""yes" 1>&6
5163 else
5164 echo "$ac_t""no" 1>&6
5165 fi
5166
5167
5168 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
cb61c62d 5169echo "configure:5170: checking for --enable-logwin" >&5
1e6feb95
VZ
5170 no_cache=0
5171 # Check whether --enable-logwin or --disable-logwin was given.
5172if test "${enable_logwin+set}" = set; then
5173 enableval="$enable_logwin"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5177 else
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5191
5192fi
5193
5194
5195 eval "$ac_cv_use_logwin"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_LOGWINDOW" = yes; then
5201 echo "$ac_t""yes" 1>&6
5202 else
5203 echo "$ac_t""no" 1>&6
5204 fi
5205
5206
69d27ff7 5207 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
cb61c62d 5208echo "configure:5209: checking for --enable-logdialog" >&5
69d27ff7
MB
5209 no_cache=0
5210 # Check whether --enable-logdialog or --disable-logdialog was given.
5211if test "${enable_logdialog+set}" = set; then
5212 enableval="$enable_logdialog"
5213
5214 if test "$enableval" = yes; then
5215 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5216 else
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5218 fi
5219
5220else
5221
5222 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5223 if test "x$LINE" != x ; then
5224 eval "DEFAULT_$LINE"
5225 else
5226 no_cache=1
5227 fi
5228
5229 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5230
5231fi
5232
5233
5234 eval "$ac_cv_use_logdialog"
5235 if test "$no_cache" != 1; then
5236 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5237 fi
5238
5239 if test "$wxUSE_LOGDIALOG" = yes; then
5240 echo "$ac_t""yes" 1>&6
5241 else
5242 echo "$ac_t""no" 1>&6
5243 fi
5244
5245
10f2d63a 5246
698dcdb6 5247 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
cb61c62d 5248echo "configure:5249: checking for --enable-postscript" >&5
10f2d63a
VZ
5249 no_cache=0
5250 # Check whether --enable-postscript or --disable-postscript was given.
5251if test "${enable_postscript+set}" = set; then
5252 enableval="$enable_postscript"
698dcdb6 5253
10f2d63a
VZ
5254 if test "$enableval" = yes; then
5255 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5256 else
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5258 fi
698dcdb6 5259
10f2d63a 5260else
698dcdb6 5261
10f2d63a
VZ
5262 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5270
5271fi
10f2d63a
VZ
5272
5273
5274 eval "$ac_cv_use_postscript"
5275 if test "$no_cache" != 1; then
5276 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5277 fi
5278
5279 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5280 echo "$ac_t""yes" 1>&6
10f2d63a 5281 else
698dcdb6 5282 echo "$ac_t""no" 1>&6
10f2d63a 5283 fi
698dcdb6
VZ
5284
5285
5286
10f2d63a 5287
1e6feb95 5288
698dcdb6 5289 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
cb61c62d 5290echo "configure:5291: checking for --enable-prologio" >&5
10f2d63a
VZ
5291 no_cache=0
5292 # Check whether --enable-prologio or --disable-prologio was given.
5293if test "${enable_prologio+set}" = set; then
5294 enableval="$enable_prologio"
698dcdb6 5295
10f2d63a
VZ
5296 if test "$enableval" = yes; then
5297 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5298 else
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5300 fi
698dcdb6 5301
10f2d63a 5302else
698dcdb6 5303
10f2d63a
VZ
5304 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5312
5313fi
10f2d63a
VZ
5314
5315
5316 eval "$ac_cv_use_prologio"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5322 echo "$ac_t""yes" 1>&6
10f2d63a 5323 else
698dcdb6 5324 echo "$ac_t""no" 1>&6
10f2d63a 5325 fi
698dcdb6 5326
10f2d63a 5327
698dcdb6 5328 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
cb61c62d 5329echo "configure:5330: checking for --enable-resources" >&5
10f2d63a
VZ
5330 no_cache=0
5331 # Check whether --enable-resources or --disable-resources was given.
5332if test "${enable_resources+set}" = set; then
5333 enableval="$enable_resources"
698dcdb6 5334
10f2d63a
VZ
5335 if test "$enableval" = yes; then
5336 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5337 else
5338 ac_cv_use_resources='wxUSE_RESOURCES=no'
5339 fi
698dcdb6 5340
10f2d63a 5341else
698dcdb6 5342
10f2d63a
VZ
5343 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5351
5352fi
10f2d63a
VZ
5353
5354
5355 eval "$ac_cv_use_resources"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5361 echo "$ac_t""yes" 1>&6
10f2d63a 5362 else
698dcdb6 5363 echo "$ac_t""no" 1>&6
10f2d63a 5364 fi
698dcdb6 5365
10f2d63a 5366
698dcdb6
VZ
5367
5368 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
cb61c62d 5369echo "configure:5370: checking for --enable-xresources" >&5
10f2d63a
VZ
5370 no_cache=0
5371 # Check whether --enable-xresources or --disable-xresources was given.
5372if test "${enable_xresources+set}" = set; then
5373 enableval="$enable_xresources"
698dcdb6 5374
10f2d63a
VZ
5375 if test "$enableval" = yes; then
5376 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5377 else
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5379 fi
698dcdb6 5380
10f2d63a 5381else
698dcdb6 5382
10f2d63a
VZ
5383 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5391
5392fi
10f2d63a
VZ
5393
5394
5395 eval "$ac_cv_use_xresources"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5401 echo "$ac_t""yes" 1>&6
10f2d63a 5402 else
698dcdb6 5403 echo "$ac_t""no" 1>&6
10f2d63a 5404 fi
698dcdb6
VZ
5405
5406
10f2d63a 5407
698dcdb6
VZ
5408
5409 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
cb61c62d 5410echo "configure:5411: checking for --enable-clipboard" >&5
10f2d63a
VZ
5411 no_cache=0
5412 # Check whether --enable-clipboard or --disable-clipboard was given.
5413if test "${enable_clipboard+set}" = set; then
5414 enableval="$enable_clipboard"
698dcdb6 5415
10f2d63a
VZ
5416 if test "$enableval" = yes; then
5417 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5418 else
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5420 fi
698dcdb6 5421
10f2d63a 5422else
698dcdb6 5423
10f2d63a
VZ
5424 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5432
5433fi
10f2d63a
VZ
5434
5435
5436 eval "$ac_cv_use_clipboard"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5442 echo "$ac_t""yes" 1>&6
10f2d63a 5443 else
698dcdb6 5444 echo "$ac_t""no" 1>&6
10f2d63a 5445 fi
698dcdb6 5446
10f2d63a 5447
698dcdb6 5448 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
cb61c62d 5449echo "configure:5450: checking for --enable-dnd" >&5
10f2d63a
VZ
5450 no_cache=0
5451 # Check whether --enable-dnd or --disable-dnd was given.
5452if test "${enable_dnd+set}" = set; then
5453 enableval="$enable_dnd"
698dcdb6 5454
10f2d63a
VZ
5455 if test "$enableval" = yes; then
5456 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5457 else
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5459 fi
698dcdb6 5460
10f2d63a 5461else
698dcdb6 5462
10f2d63a
VZ
5463 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5471
5472fi
10f2d63a
VZ
5473
5474
5475 eval "$ac_cv_use_dnd"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5481 echo "$ac_t""yes" 1>&6
10f2d63a 5482 else
698dcdb6 5483 echo "$ac_t""no" 1>&6
10f2d63a 5484 fi
698dcdb6 5485
10f2d63a 5486
698dcdb6 5487 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
cb61c62d 5488echo "configure:5489: checking for --enable-metafile" >&5
b64f0a5f
RL
5489 no_cache=0
5490 # Check whether --enable-metafile or --disable-metafile was given.
5491if test "${enable_metafile+set}" = set; then
5492 enableval="$enable_metafile"
698dcdb6 5493
b64f0a5f
RL
5494 if test "$enableval" = yes; then
5495 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5496 else
5497 ac_cv_use_metafile='wxUSE_METAFILE=no'
5498 fi
698dcdb6 5499
b64f0a5f 5500else
698dcdb6 5501
b64f0a5f
RL
5502 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5510
5511fi
b64f0a5f
RL
5512
5513
5514 eval "$ac_cv_use_metafile"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5520 echo "$ac_t""yes" 1>&6
b64f0a5f 5521 else
698dcdb6 5522 echo "$ac_t""no" 1>&6
b64f0a5f 5523 fi
698dcdb6
VZ
5524
5525
10f2d63a 5526
24176f2c 5527 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
cb61c62d 5528echo "configure:5529: checking for --enable-treelayout" >&5
10f2d63a 5529 no_cache=0
24176f2c
GD
5530 # Check whether --enable-treelayout or --disable-treelayout was given.
5531if test "${enable_treelayout+set}" = set; then
5532 enableval="$enable_treelayout"
698dcdb6 5533
10f2d63a 5534 if test "$enableval" = yes; then
24176f2c 5535 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5536 else
24176f2c 5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5538 fi
698dcdb6 5539
10f2d63a 5540else
698dcdb6 5541
24176f2c 5542 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
24176f2c 5549 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5550
5551fi
10f2d63a
VZ
5552
5553
24176f2c 5554 eval "$ac_cv_use_treelayout"
10f2d63a 5555 if test "$no_cache" != 1; then
24176f2c 5556 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5557 fi
5558
24176f2c 5559 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5560 echo "$ac_t""yes" 1>&6
10f2d63a 5561 else
698dcdb6 5562 echo "$ac_t""no" 1>&6
10f2d63a 5563 fi
698dcdb6 5564
10f2d63a 5565
698dcdb6
VZ
5566
5567
5568 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
cb61c62d 5569echo "configure:5570: checking for --enable-controls" >&5
10f2d63a
VZ
5570 no_cache=0
5571 # Check whether --enable-controls or --disable-controls was given.
5572if test "${enable_controls+set}" = set; then
5573 enableval="$enable_controls"
698dcdb6 5574
10f2d63a
VZ
5575 if test "$enableval" = yes; then
5576 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5577 else
5578 ac_cv_use_controls='wxUSE_CONTROLS=no'
5579 fi
698dcdb6 5580
10f2d63a 5581else
698dcdb6 5582
10f2d63a
VZ
5583 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5591
5592fi
10f2d63a
VZ
5593
5594
5595 eval "$ac_cv_use_controls"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5601 echo "$ac_t""yes" 1>&6
10f2d63a 5602 else
698dcdb6 5603 echo "$ac_t""no" 1>&6
10f2d63a 5604 fi
698dcdb6 5605
10f2d63a
VZ
5606
5607if test "$wxUSE_CONTROLS" = "yes"; then
5608 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5609 DEFAULT_wxUSE_BMPBUTTON=yes
5610 DEFAULT_wxUSE_BUTTON=yes
5611 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5612 DEFAULT_wxUSE_CARET=yes
5613 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5614 DEFAULT_wxUSE_CHECKBOX=yes
5615 DEFAULT_wxUSE_CHECKLISTBOX=yes
5616 DEFAULT_wxUSE_CHOICE=yes
5617 DEFAULT_wxUSE_GAUGE=yes
5618 DEFAULT_wxUSE_GRID=yes
cc977e5f 5619 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5620 DEFAULT_wxUSE_IMAGLIST=yes
5621 DEFAULT_wxUSE_LISTBOX=yes
5622 DEFAULT_wxUSE_LISTCTRL=yes
5623 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5624 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5625 DEFAULT_wxUSE_RADIOBOX=yes
5626 DEFAULT_wxUSE_RADIOBTN=yes
5627 DEFAULT_wxUSE_SASH=yes
5628 DEFAULT_wxUSE_SCROLLBAR=yes
5629 DEFAULT_wxUSE_SLIDER=yes
5630 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5631 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5632 DEFAULT_wxUSE_SPLITTER=yes
5633 DEFAULT_wxUSE_STATBMP=yes
5634 DEFAULT_wxUSE_STATBOX=yes
5635 DEFAULT_wxUSE_STATLINE=yes
5636 DEFAULT_wxUSE_STATUSBAR=yes
5637 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5638 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5639 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5640 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5641 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5642 DEFAULT_wxUSE_TOOLTIPS=yes
5643 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5644 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5645 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5646elif test "$wxUSE_CONTROLS" = "no"; then
5647 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5648 DEFAULT_wxUSE_BMPBUTTON=no
5649 DEFAULT_wxUSE_BUTTON=no
5650 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5651 DEFAULT_wxUSE_CARET=no
5652 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5653 DEFAULT_wxUSE_CHECKBOX=no
5654 DEFAULT_wxUSE_CHECKLISTBOX=no
5655 DEFAULT_wxUSE_CHOICE=no
5656 DEFAULT_wxUSE_GAUGE=no
5657 DEFAULT_wxUSE_GRID=no
5658 DEFAULT_wxUSE_NEW_GRID=no
5659 DEFAULT_wxUSE_IMAGLIST=no
5660 DEFAULT_wxUSE_LISTBOX=no
5661 DEFAULT_wxUSE_LISTCTRL=no
5662 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5663 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5664 DEFAULT_wxUSE_RADIOBOX=no
5665 DEFAULT_wxUSE_RADIOBTN=no
5666 DEFAULT_wxUSE_SASH=no
5667 DEFAULT_wxUSE_SCROLLBAR=no
5668 DEFAULT_wxUSE_SLIDER=no
5669 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5670 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5671 DEFAULT_wxUSE_SPLITTER=no
5672 DEFAULT_wxUSE_STATBMP=no
5673 DEFAULT_wxUSE_STATBOX=no
5674 DEFAULT_wxUSE_STATLINE=no
5675 DEFAULT_wxUSE_STATUSBAR=no
5676 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5677 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5678 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5679 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5680 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5681 DEFAULT_wxUSE_TOOLTIPS=no
5682 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5683 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5684 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5685fi
5686
698dcdb6
VZ
5687
5688 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
cb61c62d 5689echo "configure:5690: checking for --enable-accel" >&5
10f2d63a
VZ
5690 no_cache=0
5691 # Check whether --enable-accel or --disable-accel was given.
5692if test "${enable_accel+set}" = set; then
5693 enableval="$enable_accel"
698dcdb6 5694
10f2d63a
VZ
5695 if test "$enableval" = yes; then
5696 ac_cv_use_accel='wxUSE_ACCEL=yes'
5697 else
5698 ac_cv_use_accel='wxUSE_ACCEL=no'
5699 fi
698dcdb6 5700
10f2d63a 5701else
698dcdb6 5702
10f2d63a
VZ
5703 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5711
5712fi
10f2d63a
VZ
5713
5714
5715 eval "$ac_cv_use_accel"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5721 echo "$ac_t""yes" 1>&6
10f2d63a 5722 else
698dcdb6 5723 echo "$ac_t""no" 1>&6
10f2d63a 5724 fi
698dcdb6 5725
10f2d63a 5726
1e6feb95 5727 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
cb61c62d 5728echo "configure:5729: checking for --enable-button" >&5
10f2d63a 5729 no_cache=0
1e6feb95
VZ
5730 # Check whether --enable-button or --disable-button was given.
5731if test "${enable_button+set}" = set; then
5732 enableval="$enable_button"
698dcdb6 5733
10f2d63a 5734 if test "$enableval" = yes; then
1e6feb95 5735 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5736 else
1e6feb95 5737 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5738 fi
698dcdb6 5739
10f2d63a 5740else
698dcdb6 5741
1e6feb95 5742 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
1e6feb95 5749 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5750
5751fi
10f2d63a
VZ
5752
5753
1e6feb95 5754 eval "$ac_cv_use_button"
10f2d63a 5755 if test "$no_cache" != 1; then
1e6feb95 5756 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5757 fi
5758
1e6feb95 5759 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5760 echo "$ac_t""yes" 1>&6
10f2d63a 5761 else
698dcdb6 5762 echo "$ac_t""no" 1>&6
10f2d63a 5763 fi
698dcdb6 5764
10f2d63a 5765
698dcdb6 5766 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
cb61c62d 5767echo "configure:5768: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5768 no_cache=0
5769 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5770if test "${enable_bmpbutton+set}" = set; then
5771 enableval="$enable_bmpbutton"
698dcdb6 5772
10f2d63a
VZ
5773 if test "$enableval" = yes; then
5774 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5775 else
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5777 fi
698dcdb6 5778
10f2d63a 5779else
698dcdb6 5780
10f2d63a
VZ
5781 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5789
5790fi
10f2d63a
VZ
5791
5792
5793 eval "$ac_cv_use_bmpbutton"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5799 echo "$ac_t""yes" 1>&6
10f2d63a 5800 else
698dcdb6 5801 echo "$ac_t""no" 1>&6
10f2d63a 5802 fi
698dcdb6 5803
10f2d63a 5804
1e6feb95 5805 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
cb61c62d 5806echo "configure:5807: checking for --enable-calendar" >&5
1e6feb95
VZ
5807 no_cache=0
5808 # Check whether --enable-calendar or --disable-calendar was given.
5809if test "${enable_calendar+set}" = set; then
5810 enableval="$enable_calendar"
5811
5812 if test "$enableval" = yes; then
5813 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5814 else
5815 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5816 fi
5817
5818else
5819
5820 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5828
5829fi
5830
5831
5832 eval "$ac_cv_use_calendar"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_CALCTRL" = yes; then
5838 echo "$ac_t""yes" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5841 fi
5842
5843
5844 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
cb61c62d 5845echo "configure:5846: checking for --enable-caret" >&5
1e6feb95
VZ
5846 no_cache=0
5847 # Check whether --enable-caret or --disable-caret was given.
5848if test "${enable_caret+set}" = set; then
5849 enableval="$enable_caret"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_caret='wxUSE_CARET=yes'
5853 else
5854 ac_cv_use_caret='wxUSE_CARET=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5867
5868fi
5869
5870
5871 eval "$ac_cv_use_caret"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_CARET" = yes; then
5877 echo "$ac_t""yes" 1>&6
5878 else
5879 echo "$ac_t""no" 1>&6
5880 fi
5881
5882
698dcdb6 5883 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
cb61c62d 5884echo "configure:5885: checking for --enable-checkbox" >&5
10f2d63a
VZ
5885 no_cache=0
5886 # Check whether --enable-checkbox or --disable-checkbox was given.
5887if test "${enable_checkbox+set}" = set; then
5888 enableval="$enable_checkbox"
698dcdb6 5889
10f2d63a
VZ
5890 if test "$enableval" = yes; then
5891 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5892 else
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5894 fi
698dcdb6 5895
10f2d63a 5896else
698dcdb6 5897
10f2d63a
VZ
5898 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5906
5907fi
10f2d63a
VZ
5908
5909
5910 eval "$ac_cv_use_checkbox"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5916 echo "$ac_t""yes" 1>&6
10f2d63a 5917 else
698dcdb6 5918 echo "$ac_t""no" 1>&6
10f2d63a 5919 fi
698dcdb6 5920
10f2d63a 5921
698dcdb6 5922 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
cb61c62d 5923echo "configure:5924: checking for --enable-checklst" >&5
10f2d63a
VZ
5924 no_cache=0
5925 # Check whether --enable-checklst or --disable-checklst was given.
5926if test "${enable_checklst+set}" = set; then
5927 enableval="$enable_checklst"
698dcdb6 5928
10f2d63a
VZ
5929 if test "$enableval" = yes; then
5930 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5931 else
5932 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5933 fi
698dcdb6 5934
10f2d63a 5935else
698dcdb6 5936
10f2d63a
VZ
5937 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5945
5946fi
10f2d63a
VZ
5947
5948
5949 eval "$ac_cv_use_checklst"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5955 echo "$ac_t""yes" 1>&6
10f2d63a 5956 else
698dcdb6 5957 echo "$ac_t""no" 1>&6
10f2d63a 5958 fi
698dcdb6 5959
10f2d63a 5960
698dcdb6 5961 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
cb61c62d 5962echo "configure:5963: checking for --enable-choice" >&5
10f2d63a
VZ
5963 no_cache=0
5964 # Check whether --enable-choice or --disable-choice was given.
5965if test "${enable_choice+set}" = set; then
5966 enableval="$enable_choice"
698dcdb6 5967
10f2d63a
VZ
5968 if test "$enableval" = yes; then
5969 ac_cv_use_choice='wxUSE_CHOICE=yes'
5970 else
5971 ac_cv_use_choice='wxUSE_CHOICE=no'
5972 fi
698dcdb6 5973
10f2d63a 5974else
698dcdb6 5975
10f2d63a
VZ
5976 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5984
5985fi
10f2d63a
VZ
5986
5987
5988 eval "$ac_cv_use_choice"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5994 echo "$ac_t""yes" 1>&6
10f2d63a 5995 else
698dcdb6 5996 echo "$ac_t""no" 1>&6
10f2d63a 5997 fi
698dcdb6 5998
10f2d63a 5999
698dcdb6 6000 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
cb61c62d 6001echo "configure:6002: checking for --enable-combobox" >&5
10f2d63a
VZ
6002 no_cache=0
6003 # Check whether --enable-combobox or --disable-combobox was given.
6004if test "${enable_combobox+set}" = set; then
6005 enableval="$enable_combobox"
698dcdb6 6006
10f2d63a
VZ
6007 if test "$enableval" = yes; then
6008 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6009 else
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6011 fi
698dcdb6 6012
10f2d63a 6013else
698dcdb6 6014
10f2d63a
VZ
6015 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6023
6024fi
10f2d63a
VZ
6025
6026
6027 eval "$ac_cv_use_combobox"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6033 echo "$ac_t""yes" 1>&6
10f2d63a 6034 else
698dcdb6 6035 echo "$ac_t""no" 1>&6
10f2d63a 6036 fi
698dcdb6 6037
10f2d63a 6038
698dcdb6 6039 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
cb61c62d 6040echo "configure:6041: checking for --enable-gauge" >&5
10f2d63a
VZ
6041 no_cache=0
6042 # Check whether --enable-gauge or --disable-gauge was given.
6043if test "${enable_gauge+set}" = set; then
6044 enableval="$enable_gauge"
698dcdb6 6045
10f2d63a
VZ
6046 if test "$enableval" = yes; then
6047 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6048 else
6049 ac_cv_use_gauge='wxUSE_GAUGE=no'
6050 fi
698dcdb6 6051
10f2d63a 6052else
698dcdb6 6053
10f2d63a
VZ
6054 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6062
6063fi
10f2d63a
VZ
6064
6065
6066 eval "$ac_cv_use_gauge"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6072 echo "$ac_t""yes" 1>&6
10f2d63a 6073 else
698dcdb6 6074 echo "$ac_t""no" 1>&6
10f2d63a 6075 fi
698dcdb6 6076
10f2d63a 6077
698dcdb6 6078 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
cb61c62d 6079echo "configure:6080: checking for --enable-grid" >&5
10f2d63a
VZ
6080 no_cache=0
6081 # Check whether --enable-grid or --disable-grid was given.
6082if test "${enable_grid+set}" = set; then
6083 enableval="$enable_grid"
698dcdb6 6084
10f2d63a
VZ
6085 if test "$enableval" = yes; then
6086 ac_cv_use_grid='wxUSE_GRID=yes'
6087 else
6088 ac_cv_use_grid='wxUSE_GRID=no'
6089 fi
698dcdb6 6090
10f2d63a 6091else
698dcdb6 6092
10f2d63a
VZ
6093 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6101
6102fi
10f2d63a
VZ
6103
6104
6105 eval "$ac_cv_use_grid"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_GRID" = yes; then
698dcdb6 6111 echo "$ac_t""yes" 1>&6
10f2d63a 6112 else
698dcdb6 6113 echo "$ac_t""no" 1>&6
10f2d63a 6114 fi
698dcdb6 6115
10f2d63a 6116
698dcdb6 6117 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
cb61c62d 6118echo "configure:6119: checking for --enable-newgrid" >&5
10f2d63a
VZ
6119 no_cache=0
6120 # Check whether --enable-newgrid or --disable-newgrid was given.
6121if test "${enable_newgrid+set}" = set; then
6122 enableval="$enable_newgrid"
698dcdb6 6123
10f2d63a
VZ
6124 if test "$enableval" = yes; then
6125 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6126 else
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6128 fi
698dcdb6 6129
10f2d63a 6130else
698dcdb6 6131
10f2d63a
VZ
6132 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6140
6141fi
10f2d63a
VZ
6142
6143
6144 eval "$ac_cv_use_newgrid"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6150 echo "$ac_t""yes" 1>&6
10f2d63a 6151 else
698dcdb6 6152 echo "$ac_t""no" 1>&6
10f2d63a 6153 fi
698dcdb6 6154
10f2d63a 6155
698dcdb6 6156 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
cb61c62d 6157echo "configure:6158: checking for --enable-imaglist" >&5
10f2d63a
VZ
6158 no_cache=0
6159 # Check whether --enable-imaglist or --disable-imaglist was given.
6160if test "${enable_imaglist+set}" = set; then
6161 enableval="$enable_imaglist"
698dcdb6 6162
10f2d63a
VZ
6163 if test "$enableval" = yes; then
6164 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6165 else
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6167 fi
698dcdb6 6168
10f2d63a 6169else
698dcdb6 6170
10f2d63a
VZ
6171 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6179
6180fi
10f2d63a
VZ
6181
6182
6183 eval "$ac_cv_use_imaglist"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6189 echo "$ac_t""yes" 1>&6
10f2d63a 6190 else
698dcdb6 6191 echo "$ac_t""no" 1>&6
10f2d63a 6192 fi
698dcdb6 6193
10f2d63a 6194
698dcdb6 6195 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
cb61c62d 6196echo "configure:6197: checking for --enable-listbox" >&5
10f2d63a
VZ
6197 no_cache=0
6198 # Check whether --enable-listbox or --disable-listbox was given.
6199if test "${enable_listbox+set}" = set; then
6200 enableval="$enable_listbox"
698dcdb6 6201
10f2d63a
VZ
6202 if test "$enableval" = yes; then
6203 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6204 else
6205 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6206 fi
698dcdb6 6207
10f2d63a 6208else
698dcdb6 6209
10f2d63a
VZ
6210 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6218
6219fi
10f2d63a
VZ
6220
6221
6222 eval "$ac_cv_use_listbox"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6228 echo "$ac_t""yes" 1>&6
10f2d63a 6229 else
698dcdb6 6230 echo "$ac_t""no" 1>&6
10f2d63a 6231 fi
698dcdb6 6232
10f2d63a 6233
698dcdb6 6234 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
cb61c62d 6235echo "configure:6236: checking for --enable-listctrl" >&5
10f2d63a
VZ
6236 no_cache=0
6237 # Check whether --enable-listctrl or --disable-listctrl was given.
6238if test "${enable_listctrl+set}" = set; then
6239 enableval="$enable_listctrl"
698dcdb6 6240
10f2d63a
VZ
6241 if test "$enableval" = yes; then
6242 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6243 else
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6245 fi
698dcdb6 6246
10f2d63a 6247else
698dcdb6 6248
10f2d63a
VZ
6249 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6257
6258fi
10f2d63a
VZ
6259
6260
6261 eval "$ac_cv_use_listctrl"
6262 if test "$no_cache" != 1; then
6263 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6264 fi
6265
6266 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6267 echo "$ac_t""yes" 1>&6
10f2d63a 6268 else
698dcdb6 6269 echo "$ac_t""no" 1>&6
10f2d63a 6270 fi
698dcdb6 6271
10f2d63a 6272
698dcdb6 6273 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
cb61c62d 6274echo "configure:6275: checking for --enable-notebook" >&5
10f2d63a
VZ
6275 no_cache=0
6276 # Check whether --enable-notebook or --disable-notebook was given.
6277if test "${enable_notebook+set}" = set; then
6278 enableval="$enable_notebook"
698dcdb6 6279
10f2d63a
VZ
6280 if test "$enableval" = yes; then
6281 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6282 else
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6284 fi
698dcdb6 6285
10f2d63a 6286else
698dcdb6 6287
10f2d63a
VZ
6288 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6289 if test "x$LINE" != x ; then
6290 eval "DEFAULT_$LINE"
6291 else
6292 no_cache=1
6293 fi
6294
6295 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6296
6297fi
10f2d63a
VZ
6298
6299
6300 eval "$ac_cv_use_notebook"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6306 echo "$ac_t""yes" 1>&6
10f2d63a 6307 else
698dcdb6 6308 echo "$ac_t""no" 1>&6
10f2d63a 6309 fi
698dcdb6 6310
10f2d63a 6311
24176f2c 6312 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
cb61c62d 6313echo "configure:6314: checking for --enable-propsheet" >&5
24176f2c
GD
6314 no_cache=0
6315 # Check whether --enable-propsheet or --disable-propsheet was given.
6316if test "${enable_propsheet+set}" = set; then
6317 enableval="$enable_propsheet"
6318
6319 if test "$enableval" = yes; then
6320 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6321 else
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6323 fi
6324
6325else
6326
6327 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6335
6336fi
6337
6338
6339 eval "$ac_cv_use_propsheet"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_PROPSHEET" = yes; then
6345 echo "$ac_t""yes" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6348 fi
6349
6350
698dcdb6 6351 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
cb61c62d 6352echo "configure:6353: checking for --enable-radiobox" >&5
10f2d63a
VZ
6353 no_cache=0
6354 # Check whether --enable-radiobox or --disable-radiobox was given.
6355if test "${enable_radiobox+set}" = set; then
6356 enableval="$enable_radiobox"
698dcdb6 6357
10f2d63a
VZ
6358 if test "$enableval" = yes; then
6359 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6360 else
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6362 fi
698dcdb6 6363
10f2d63a 6364else
698dcdb6 6365
10f2d63a
VZ
6366 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6374
6375fi
10f2d63a
VZ
6376
6377
6378 eval "$ac_cv_use_radiobox"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6384 echo "$ac_t""yes" 1>&6
10f2d63a 6385 else
698dcdb6 6386 echo "$ac_t""no" 1>&6
10f2d63a 6387 fi
698dcdb6 6388
10f2d63a 6389
698dcdb6 6390 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
cb61c62d 6391echo "configure:6392: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6392 no_cache=0
6393 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6394if test "${enable_radiobtn+set}" = set; then
6395 enableval="$enable_radiobtn"
698dcdb6 6396
10f2d63a
VZ
6397 if test "$enableval" = yes; then
6398 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6399 else
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6401 fi
698dcdb6 6402
10f2d63a 6403else
698dcdb6 6404
10f2d63a
VZ
6405 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6413
6414fi
10f2d63a
VZ
6415
6416
6417 eval "$ac_cv_use_radiobtn"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6423 echo "$ac_t""yes" 1>&6
10f2d63a 6424 else
698dcdb6 6425 echo "$ac_t""no" 1>&6
10f2d63a 6426 fi
698dcdb6 6427
10f2d63a 6428
698dcdb6 6429 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
cb61c62d 6430echo "configure:6431: checking for --enable-sash" >&5
10f2d63a
VZ
6431 no_cache=0
6432 # Check whether --enable-sash or --disable-sash was given.
6433if test "${enable_sash+set}" = set; then
6434 enableval="$enable_sash"
698dcdb6 6435
10f2d63a
VZ
6436 if test "$enableval" = yes; then
6437 ac_cv_use_sash='wxUSE_SASH=yes'
6438 else
6439 ac_cv_use_sash='wxUSE_SASH=no'
6440 fi
698dcdb6 6441
10f2d63a 6442else
698dcdb6 6443
10f2d63a
VZ
6444 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6452
6453fi
10f2d63a
VZ
6454
6455
6456 eval "$ac_cv_use_sash"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SASH" = yes; then
698dcdb6 6462 echo "$ac_t""yes" 1>&6
10f2d63a 6463 else
698dcdb6 6464 echo "$ac_t""no" 1>&6
10f2d63a 6465 fi
698dcdb6 6466
10f2d63a 6467
698dcdb6 6468 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
cb61c62d 6469echo "configure:6470: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6470 no_cache=0
6471 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6472if test "${enable_scrollbar+set}" = set; then
6473 enableval="$enable_scrollbar"
698dcdb6 6474
10f2d63a
VZ
6475 if test "$enableval" = yes; then
6476 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6477 else
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6479 fi
698dcdb6 6480
10f2d63a 6481else
698dcdb6 6482
10f2d63a
VZ
6483 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6491
6492fi
10f2d63a
VZ
6493
6494
6495 eval "$ac_cv_use_scrollbar"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6501 echo "$ac_t""yes" 1>&6
10f2d63a 6502 else
698dcdb6 6503 echo "$ac_t""no" 1>&6
10f2d63a 6504 fi
698dcdb6 6505
10f2d63a 6506
698dcdb6 6507 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
cb61c62d 6508echo "configure:6509: checking for --enable-slider" >&5
10f2d63a
VZ
6509 no_cache=0
6510 # Check whether --enable-slider or --disable-slider was given.
6511if test "${enable_slider+set}" = set; then
6512 enableval="$enable_slider"
698dcdb6 6513
10f2d63a
VZ
6514 if test "$enableval" = yes; then
6515 ac_cv_use_slider='wxUSE_SLIDER=yes'
6516 else
6517 ac_cv_use_slider='wxUSE_SLIDER=no'
6518 fi
698dcdb6 6519
10f2d63a 6520else
698dcdb6 6521
10f2d63a
VZ
6522 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6530
6531fi
10f2d63a
VZ
6532
6533
6534 eval "$ac_cv_use_slider"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6540 echo "$ac_t""yes" 1>&6
10f2d63a 6541 else
698dcdb6 6542 echo "$ac_t""no" 1>&6
10f2d63a 6543 fi
698dcdb6 6544
10f2d63a 6545
698dcdb6 6546 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
cb61c62d 6547echo "configure:6548: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6548 no_cache=0
6549 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6550if test "${enable_spinbtn+set}" = set; then
6551 enableval="$enable_spinbtn"
698dcdb6 6552
10f2d63a
VZ
6553 if test "$enableval" = yes; then
6554 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6555 else
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6557 fi
698dcdb6 6558
10f2d63a 6559else
698dcdb6 6560
10f2d63a
VZ
6561 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6569
6570fi
10f2d63a
VZ
6571
6572
6573 eval "$ac_cv_use_spinbtn"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6579 echo "$ac_t""yes" 1>&6
10f2d63a 6580 else
698dcdb6 6581 echo "$ac_t""no" 1>&6
10f2d63a 6582 fi
698dcdb6 6583
10f2d63a 6584
698dcdb6 6585 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
cb61c62d 6586echo "configure:6587: checking for --enable-spinctrl" >&5
56cfaa52
RR
6587 no_cache=0
6588 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6589if test "${enable_spinctrl+set}" = set; then
6590 enableval="$enable_spinctrl"
698dcdb6 6591
56cfaa52
RR
6592 if test "$enableval" = yes; then
6593 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6594 else
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6596 fi
698dcdb6 6597
56cfaa52 6598else
698dcdb6 6599
56cfaa52
RR
6600 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6608
6609fi
56cfaa52
RR
6610
6611
6612 eval "$ac_cv_use_spinctrl"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6618 echo "$ac_t""yes" 1>&6
56cfaa52 6619 else
698dcdb6 6620 echo "$ac_t""no" 1>&6
56cfaa52 6621 fi
698dcdb6 6622
56cfaa52 6623
698dcdb6 6624 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
cb61c62d 6625echo "configure:6626: checking for --enable-splitter" >&5
10f2d63a
VZ
6626 no_cache=0
6627 # Check whether --enable-splitter or --disable-splitter was given.
6628if test "${enable_splitter+set}" = set; then
6629 enableval="$enable_splitter"
698dcdb6 6630
10f2d63a
VZ
6631 if test "$enableval" = yes; then
6632 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6633 else
6634 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6635 fi
698dcdb6 6636
10f2d63a 6637else
698dcdb6 6638
10f2d63a
VZ
6639 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6647
6648fi
10f2d63a
VZ
6649
6650
6651 eval "$ac_cv_use_splitter"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6657 echo "$ac_t""yes" 1>&6
10f2d63a 6658 else
698dcdb6 6659 echo "$ac_t""no" 1>&6
10f2d63a 6660 fi
698dcdb6 6661
10f2d63a 6662
698dcdb6 6663 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
cb61c62d 6664echo "configure:6665: checking for --enable-statbmp" >&5
10f2d63a
VZ
6665 no_cache=0
6666 # Check whether --enable-statbmp or --disable-statbmp was given.
6667if test "${enable_statbmp+set}" = set; then
6668 enableval="$enable_statbmp"
698dcdb6 6669
10f2d63a
VZ
6670 if test "$enableval" = yes; then
6671 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6672 else
6673 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6674 fi
698dcdb6 6675
10f2d63a 6676else
698dcdb6 6677
10f2d63a
VZ
6678 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6686
6687fi
10f2d63a
VZ
6688
6689
6690 eval "$ac_cv_use_statbmp"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6696 echo "$ac_t""yes" 1>&6
10f2d63a 6697 else
698dcdb6 6698 echo "$ac_t""no" 1>&6
10f2d63a 6699 fi
698dcdb6 6700
10f2d63a 6701
698dcdb6 6702 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
cb61c62d 6703echo "configure:6704: checking for --enable-statbox" >&5
10f2d63a
VZ
6704 no_cache=0
6705 # Check whether --enable-statbox or --disable-statbox was given.
6706if test "${enable_statbox+set}" = set; then
6707 enableval="$enable_statbox"
698dcdb6 6708
10f2d63a
VZ
6709 if test "$enableval" = yes; then
6710 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6711 else
6712 ac_cv_use_statbox='wxUSE_STATBOX=no'
6713 fi
698dcdb6 6714
10f2d63a 6715else
698dcdb6 6716
10f2d63a
VZ
6717 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6725
6726fi
10f2d63a
VZ
6727
6728
6729 eval "$ac_cv_use_statbox"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6735 echo "$ac_t""yes" 1>&6
10f2d63a 6736 else
698dcdb6 6737 echo "$ac_t""no" 1>&6
10f2d63a 6738 fi
698dcdb6 6739
10f2d63a 6740
698dcdb6 6741 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
cb61c62d 6742echo "configure:6743: checking for --enable-statline" >&5
10f2d63a
VZ
6743 no_cache=0
6744 # Check whether --enable-statline or --disable-statline was given.
6745if test "${enable_statline+set}" = set; then
6746 enableval="$enable_statline"
698dcdb6 6747
10f2d63a
VZ
6748 if test "$enableval" = yes; then
6749 ac_cv_use_statline='wxUSE_STATLINE=yes'
6750 else
6751 ac_cv_use_statline='wxUSE_STATLINE=no'
6752 fi
698dcdb6 6753
10f2d63a 6754else
698dcdb6 6755
10f2d63a
VZ
6756 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6764
6765fi
10f2d63a
VZ
6766
6767
6768 eval "$ac_cv_use_statline"
6769 if test "$no_cache" != 1; then
6770 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6771 fi
6772
6773 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6774 echo "$ac_t""yes" 1>&6
10f2d63a 6775 else
698dcdb6 6776 echo "$ac_t""no" 1>&6
10f2d63a 6777 fi
698dcdb6 6778
10f2d63a 6779
1e6feb95 6780 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
cb61c62d 6781echo "configure:6782: checking for --enable-stattext" >&5
1e6feb95
VZ
6782 no_cache=0
6783 # Check whether --enable-stattext or --disable-stattext was given.
6784if test "${enable_stattext+set}" = set; then
6785 enableval="$enable_stattext"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6789 else
6790 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6791 fi
6792
6793else
6794
6795 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6803
6804fi
6805
6806
6807 eval "$ac_cv_use_stattext"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_STATTEXT" = yes; then
6813 echo "$ac_t""yes" 1>&6
6814 else
6815 echo "$ac_t""no" 1>&6
6816 fi
6817
6818
698dcdb6 6819 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
cb61c62d 6820echo "configure:6821: checking for --enable-statusbar" >&5
10f2d63a
VZ
6821 no_cache=0
6822 # Check whether --enable-statusbar or --disable-statusbar was given.
6823if test "${enable_statusbar+set}" = set; then
6824 enableval="$enable_statusbar"
698dcdb6 6825
10f2d63a
VZ
6826 if test "$enableval" = yes; then
6827 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6828 else
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6830 fi
698dcdb6 6831
10f2d63a 6832else
698dcdb6 6833
10f2d63a
VZ
6834 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6842
6843fi
10f2d63a
VZ
6844
6845
6846 eval "$ac_cv_use_statusbar"
6847 if test "$no_cache" != 1; then
6848 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6849 fi
6850
6851 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6852 echo "$ac_t""yes" 1>&6
10f2d63a 6853 else
698dcdb6 6854 echo "$ac_t""no" 1>&6
10f2d63a 6855 fi
698dcdb6 6856
10f2d63a 6857
698dcdb6 6858 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
cb61c62d 6859echo "configure:6860: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6860 no_cache=0
6861 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6862if test "${enable_tabdialog+set}" = set; then
6863 enableval="$enable_tabdialog"
698dcdb6 6864
10f2d63a
VZ
6865 if test "$enableval" = yes; then
6866 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6867 else
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6869 fi
698dcdb6 6870
10f2d63a 6871else
698dcdb6 6872
10f2d63a
VZ
6873 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6881
6882fi
10f2d63a
VZ
6883
6884
6885 eval "$ac_cv_use_tabdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6891 echo "$ac_t""yes" 1>&6
10f2d63a 6892 else
698dcdb6 6893 echo "$ac_t""no" 1>&6
10f2d63a 6894 fi
698dcdb6 6895
10f2d63a 6896
1e6feb95 6897 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
cb61c62d 6898echo "configure:6899: checking for --enable-textctrl" >&5
1e6feb95
VZ
6899 no_cache=0
6900 # Check whether --enable-textctrl or --disable-textctrl was given.
6901if test "${enable_textctrl+set}" = set; then
6902 enableval="$enable_textctrl"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6906 else
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6908 fi
6909
6910else
6911
6912 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6920
6921fi
6922
6923
6924 eval "$ac_cv_use_textctrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_TEXTCTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
698dcdb6 6936 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
cb61c62d 6937echo "configure:6938: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6938 no_cache=0
6939 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6940if test "${enable_togglebtn+set}" = set; then
6941 enableval="$enable_togglebtn"
698dcdb6 6942
1db8dc4a
VZ
6943 if test "$enableval" = yes; then
6944 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6945 else
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6947 fi
698dcdb6 6948
1db8dc4a 6949else
698dcdb6 6950
1db8dc4a
VZ
6951 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6959
6960fi
1db8dc4a
VZ
6961
6962
6963 eval "$ac_cv_use_togglebtn"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6969 echo "$ac_t""yes" 1>&6
1db8dc4a 6970 else
698dcdb6 6971 echo "$ac_t""no" 1>&6
1db8dc4a 6972 fi
698dcdb6 6973
1db8dc4a 6974
698dcdb6 6975 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
cb61c62d 6976echo "configure:6977: checking for --enable-toolbar" >&5
10f2d63a
VZ
6977 no_cache=0
6978 # Check whether --enable-toolbar or --disable-toolbar was given.
6979if test "${enable_toolbar+set}" = set; then
6980 enableval="$enable_toolbar"
698dcdb6 6981
10f2d63a
VZ
6982 if test "$enableval" = yes; then
6983 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6984 else
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6986 fi
698dcdb6 6987
10f2d63a 6988else
698dcdb6 6989
10f2d63a
VZ
6990 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6998
6999fi
10f2d63a
VZ
7000
7001
7002 eval "$ac_cv_use_toolbar"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7008 echo "$ac_t""yes" 1>&6
10f2d63a 7009 else
698dcdb6 7010 echo "$ac_t""no" 1>&6
10f2d63a 7011 fi
698dcdb6 7012
10f2d63a 7013
698dcdb6 7014 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
cb61c62d 7015echo "configure:7016: checking for --enable-tbarnative" >&5
360d6699
VZ
7016 no_cache=0
7017 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7018if test "${enable_tbarnative+set}" = set; then
7019 enableval="$enable_tbarnative"
698dcdb6 7020
360d6699
VZ
7021 if test "$enableval" = yes; then
7022 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7023 else
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7025 fi
698dcdb6 7026
360d6699 7027else
698dcdb6 7028
360d6699
VZ
7029 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7037
7038fi
360d6699
VZ
7039
7040
7041 eval "$ac_cv_use_tbarnative"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7047 echo "$ac_t""yes" 1>&6
360d6699 7048 else
698dcdb6 7049 echo "$ac_t""no" 1>&6
360d6699 7050 fi
698dcdb6 7051
360d6699 7052
698dcdb6 7053 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
cb61c62d 7054echo "configure:7055: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7055 no_cache=0
7056 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7057if test "${enable_tbarsmpl+set}" = set; then
7058 enableval="$enable_tbarsmpl"
698dcdb6 7059
360d6699
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7062 else
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7064 fi
698dcdb6 7065
360d6699 7066else
698dcdb6 7067
360d6699
VZ
7068 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7076
7077fi
360d6699
VZ
7078
7079
7080 eval "$ac_cv_use_tbarsmpl"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7086 echo "$ac_t""yes" 1>&6
360d6699 7087 else
698dcdb6 7088 echo "$ac_t""no" 1>&6
360d6699 7089 fi
698dcdb6 7090
360d6699 7091
698dcdb6 7092 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
cb61c62d 7093echo "configure:7094: checking for --enable-treectrl" >&5
10f2d63a
VZ
7094 no_cache=0
7095 # Check whether --enable-treectrl or --disable-treectrl was given.
7096if test "${enable_treectrl+set}" = set; then
7097 enableval="$enable_treectrl"
698dcdb6 7098
10f2d63a
VZ
7099 if test "$enableval" = yes; then
7100 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7101 else
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7103 fi
698dcdb6 7104
10f2d63a 7105else
698dcdb6 7106
10f2d63a
VZ
7107 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7115
7116fi
10f2d63a
VZ
7117
7118
1e6feb95
VZ
7119 eval "$ac_cv_use_treectrl"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_TREECTRL" = yes; then
7125 echo "$ac_t""yes" 1>&6
7126 else
7127 echo "$ac_t""no" 1>&6
7128 fi
7129
7130
9926e4a4 7131 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
cb61c62d 7132echo "configure:7133: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7133 no_cache=0
7134 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7135if test "${enable_tipwindow+set}" = set; then
7136 enableval="$enable_tipwindow"
7137
7138 if test "$enableval" = yes; then
7139 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7140 else
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7142 fi
7143
7144else
7145
7146 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7147 if test "x$LINE" != x ; then
7148 eval "DEFAULT_$LINE"
7149 else
7150 no_cache=1
7151 fi
7152
7153 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7154
7155fi
7156
7157
7158 eval "$ac_cv_use_tipwindow"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_TIPWINDOW" = yes; then
7164 echo "$ac_t""yes" 1>&6
7165 else
7166 echo "$ac_t""no" 1>&6
7167 fi
7168
7169
9f41d601 7170 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
cb61c62d 7171echo "configure:7172: checking for --enable-popupwin" >&5
9f41d601
RR
7172 no_cache=0
7173 # Check whether --enable-popupwin or --disable-popupwin was given.
7174if test "${enable_popupwin+set}" = set; then
7175 enableval="$enable_popupwin"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7179 else
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7193
7194fi
7195
7196
7197 eval "$ac_cv_use_popupwin"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_POPUPWIN" = yes; then
7203 echo "$ac_t""yes" 1>&6
7204 else
7205 echo "$ac_t""no" 1>&6
7206 fi
7207
7208
1e6feb95
VZ
7209
7210
7211 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
cb61c62d 7212echo "configure:7213: checking for --enable-commondlg" >&5
1e6feb95
VZ
7213 no_cache=0
7214 # Check whether --enable-commondlg or --disable-commondlg was given.
7215if test "${enable_commondlg+set}" = set; then
7216 enableval="$enable_commondlg"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7220 else
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7234
7235fi
7236
7237
7238 eval "$ac_cv_use_commondlg"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_COMMONDLGS" = yes; then
7244 echo "$ac_t""yes" 1>&6
7245 else
7246 echo "$ac_t""no" 1>&6
7247 fi
7248
7249
7250 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
cb61c62d 7251echo "configure:7252: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7252 no_cache=0
7253 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7254if test "${enable_choicedlg+set}" = set; then
7255 enableval="$enable_choicedlg"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7259 else
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7261 fi
7262
7263else
7264
7265 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7273
7274fi
7275
7276
7277 eval "$ac_cv_use_choicedlg"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_CHOICEDLG" = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 else
7285 echo "$ac_t""no" 1>&6
7286 fi
7287
7288
7289 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
cb61c62d 7290echo "configure:7291: checking for --enable-coldlg" >&5
1e6feb95
VZ
7291 no_cache=0
7292 # Check whether --enable-coldlg or --disable-coldlg was given.
7293if test "${enable_coldlg+set}" = set; then
7294 enableval="$enable_coldlg"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7298 else
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7300 fi
7301
7302else
7303
7304 LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7312
7313fi
7314
7315
7316 eval "$ac_cv_use_coldlg"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_COLOURDLG" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
cb61c62d 7329echo "configure:7330: checking for --enable-filedlg" >&5
1e6feb95
VZ
7330 no_cache=0
7331 # Check whether --enable-filedlg or --disable-filedlg was given.
7332if test "${enable_filedlg+set}" = set; then
7333 enableval="$enable_filedlg"
7334
7335 if test "$enableval" = yes; then
7336 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7337 else
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7339 fi
7340
7341else
7342
7343 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7344 if test "x$LINE" != x ; then
7345 eval "DEFAULT_$LINE"
7346 else
7347 no_cache=1
7348 fi
7349
7350 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7351
7352fi
7353
7354
7355 eval "$ac_cv_use_filedlg"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_FILEDLG" = yes; then
7361 echo "$ac_t""yes" 1>&6
7362 else
7363 echo "$ac_t""no" 1>&6
7364 fi
7365
7366
69d27ff7 7367 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
cb61c62d 7368echo "configure:7369: checking for --enable-finddlg" >&5
8db37e06 7369 no_cache=0
69d27ff7
MB
7370 # Check whether --enable-finddlg or --disable-finddlg was given.
7371if test "${enable_finddlg+set}" = set; then
7372 enableval="$enable_finddlg"
8db37e06
VZ
7373
7374 if test "$enableval" = yes; then
69d27ff7 7375 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7376 else
69d27ff7 7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7378 fi
7379
7380else
7381
7382 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7383 if test "x$LINE" != x ; then
7384 eval "DEFAULT_$LINE"
7385 else
7386 no_cache=1
7387 fi
7388
69d27ff7 7389 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7390
7391fi
7392
7393
69d27ff7 7394 eval "$ac_cv_use_finddlg"
8db37e06 7395 if test "$no_cache" != 1; then
69d27ff7 7396 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7397 fi
7398
7399 if test "$wxUSE_FINDREPLDLG" = yes; then
7400 echo "$ac_t""yes" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405
1e6feb95 7406 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
cb61c62d 7407echo "configure:7408: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7408 no_cache=0
7409 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7410if test "${enable_fontdlg+set}" = set; then
7411 enableval="$enable_fontdlg"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7415 else
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7429
7430fi
7431
7432
7433 eval "$ac_cv_use_fontdlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_FONTDLG" = yes; then
7439 echo "$ac_t""yes" 1>&6
7440 else
7441 echo "$ac_t""no" 1>&6
7442 fi
7443
7444
7445 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
cb61c62d 7446echo "configure:7447: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7447 no_cache=0
7448 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7449if test "${enable_dirdlg+set}" = set; then
7450 enableval="$enable_dirdlg"
7451
7452 if test "$enableval" = yes; then
7453 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7454 else
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7456 fi
7457
7458else
7459
7460 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7468
7469fi
7470
7471
7472 eval "$ac_cv_use_dirdlg"
10f2d63a 7473 if test "$no_cache" != 1; then
1e6feb95 7474 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7475 fi
7476
1e6feb95 7477 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7478 echo "$ac_t""yes" 1>&6
10f2d63a 7479 else
698dcdb6 7480 echo "$ac_t""no" 1>&6
10f2d63a 7481 fi
698dcdb6
VZ
7482
7483
1e6feb95 7484 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
cb61c62d 7485echo "configure:7486: checking for --enable-msgdlg" >&5
10f2d63a 7486 no_cache=0
1e6feb95
VZ
7487 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7488if test "${enable_msgdlg+set}" = set; then
7489 enableval="$enable_msgdlg"
698dcdb6 7490
10f2d63a 7491 if test "$enableval" = yes; then
1e6feb95 7492 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7493 else
1e6feb95 7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7495 fi
698dcdb6 7496
10f2d63a 7497else
698dcdb6 7498
1e6feb95 7499 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
1e6feb95 7506 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7507
7508fi
10f2d63a
VZ
7509
7510
1e6feb95 7511 eval "$ac_cv_use_msgdlg"
10f2d63a 7512 if test "$no_cache" != 1; then
1e6feb95 7513 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7514 fi
7515
1e6feb95 7516 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7517 echo "$ac_t""yes" 1>&6
10f2d63a 7518 else
698dcdb6 7519 echo "$ac_t""no" 1>&6
10f2d63a 7520 fi
698dcdb6 7521
10f2d63a 7522
1e6feb95 7523 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
cb61c62d 7524echo "configure:7525: checking for --enable-numberdlg" >&5
10f2d63a 7525 no_cache=0
1e6feb95
VZ
7526 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7527if test "${enable_numberdlg+set}" = set; then
7528 enableval="$enable_numberdlg"
698dcdb6 7529
10f2d63a 7530 if test "$enableval" = yes; then
1e6feb95 7531 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7532 else
1e6feb95 7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7534 fi
698dcdb6 7535
10f2d63a 7536else
698dcdb6 7537
1e6feb95 7538 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
1e6feb95 7545 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7546
7547fi
10f2d63a
VZ
7548
7549
1e6feb95 7550 eval "$ac_cv_use_numberdlg"
10f2d63a 7551 if test "$no_cache" != 1; then
1e6feb95 7552 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7553 fi
7554
1e6feb95 7555 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7556 echo "$ac_t""yes" 1>&6
10f2d63a 7557 else
698dcdb6 7558 echo "$ac_t""no" 1>&6
10f2d63a 7559 fi
698dcdb6 7560
10f2d63a 7561
cbca9943 7562 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
cb61c62d 7563echo "configure:7564: checking for --enable-splash" >&5
cbca9943
VZ
7564 no_cache=0
7565 # Check whether --enable-splash or --disable-splash was given.
7566if test "${enable_splash+set}" = set; then
7567 enableval="$enable_splash"
7568
7569 if test "$enableval" = yes; then
7570 ac_cv_use_splash='wxUSE_SPLASH=yes'
7571 else
7572 ac_cv_use_splash='wxUSE_SPLASH=no'
7573 fi
7574
7575else
7576
7577 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7578 if test "x$LINE" != x ; then
7579 eval "DEFAULT_$LINE"
7580 else
7581 no_cache=1
7582 fi
7583
7584 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7585
7586fi
7587
7588
7589 eval "$ac_cv_use_splash"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_SPLASH" = yes; then
7595 echo "$ac_t""yes" 1>&6
7596 else
7597 echo "$ac_t""no" 1>&6
7598 fi
7599
7600
698dcdb6 7601 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
cb61c62d 7602echo "configure:7603: checking for --enable-textdlg" >&5
10f2d63a
VZ
7603 no_cache=0
7604 # Check whether --enable-textdlg or --disable-textdlg was given.
7605if test "${enable_textdlg+set}" = set; then
7606 enableval="$enable_textdlg"
698dcdb6 7607
10f2d63a
VZ
7608 if test "$enableval" = yes; then
7609 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7610 else
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7612 fi
698dcdb6 7613
10f2d63a 7614else
698dcdb6 7615
10f2d63a
VZ
7616 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7624
7625fi
10f2d63a
VZ
7626
7627
7628 eval "$ac_cv_use_textdlg"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7634 echo "$ac_t""yes" 1>&6
10f2d63a 7635 else
698dcdb6 7636 echo "$ac_t""no" 1>&6
10f2d63a 7637 fi
698dcdb6 7638
10f2d63a 7639
698dcdb6 7640 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
cb61c62d 7641echo "configure:7642: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7642 no_cache=0
7643 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7644if test "${enable_tipdlg+set}" = set; then
7645 enableval="$enable_tipdlg"
698dcdb6 7646
10f2d63a
VZ
7647 if test "$enableval" = yes; then
7648 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7649 else
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7651 fi
698dcdb6 7652
10f2d63a 7653else
698dcdb6 7654
10f2d63a
VZ
7655 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7656 if test "x$LINE" != x ; then
7657 eval "DEFAULT_$LINE"
7658 else
7659 no_cache=1
7660 fi
7661
7662 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7663
7664fi
10f2d63a
VZ
7665
7666
7667 eval "$ac_cv_use_tipdlg"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7673 echo "$ac_t""yes" 1>&6
10f2d63a 7674 else
698dcdb6 7675 echo "$ac_t""no" 1>&6
10f2d63a 7676 fi
698dcdb6 7677
10f2d63a 7678
698dcdb6 7679 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
cb61c62d 7680echo "configure:7681: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7681 no_cache=0
7682 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7683if test "${enable_progressdlg+set}" = set; then
7684 enableval="$enable_progressdlg"
698dcdb6 7685
10f2d63a
VZ
7686 if test "$enableval" = yes; then
7687 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7688 else
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7690 fi
698dcdb6 7691
10f2d63a 7692else
698dcdb6 7693
10f2d63a
VZ
7694 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7702
7703fi
10f2d63a
VZ
7704
7705
7706 eval "$ac_cv_use_progressdlg"
7707 if test "$no_cache" != 1; then
7708 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7709 fi
7710
7711 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7712 echo "$ac_t""yes" 1>&6
10f2d63a 7713 else
698dcdb6 7714 echo "$ac_t""no" 1>&6
10f2d63a 7715 fi
698dcdb6 7716
10f2d63a 7717
b1f5d087 7718 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
cb61c62d 7719echo "configure:7720: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7720 no_cache=0
7721 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7722if test "${enable_wizarddlg+set}" = set; then
7723 enableval="$enable_wizarddlg"
7724
7725 if test "$enableval" = yes; then
7726 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7727 else
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7729 fi
7730
7731else
7732
7733 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7741
7742fi
7743
7744
7745 eval "$ac_cv_use_wizarddlg"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_WIZARDDLG" = yes; then
7751 echo "$ac_t""yes" 1>&6
7752 else
7753 echo "$ac_t""no" 1>&6
7754 fi
7755
7756
7757
7758
1e6feb95 7759 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
cb61c62d 7760echo "configure:7761: checking for --enable-menus" >&5
1e6feb95
VZ
7761 no_cache=0
7762 # Check whether --enable-menus or --disable-menus was given.
7763if test "${enable_menus+set}" = set; then
7764 enableval="$enable_menus"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_menus='wxUSE_MENUS=yes'
7768 else
7769 ac_cv_use_menus='wxUSE_MENUS=no'
7770 fi
7771
7772else
7773
7774 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7782
7783fi
7784
7785
7786 eval "$ac_cv_use_menus"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_MENUS" = yes; then
7792 echo "$ac_t""yes" 1>&6
7793 else
7794 echo "$ac_t""no" 1>&6
7795 fi
7796
7797
698dcdb6 7798 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
cb61c62d 7799echo "configure:7800: checking for --enable-miniframe" >&5
10f2d63a
VZ
7800 no_cache=0
7801 # Check whether --enable-miniframe or --disable-miniframe was given.
7802if test "${enable_miniframe+set}" = set; then
7803 enableval="$enable_miniframe"
698dcdb6 7804
10f2d63a
VZ
7805 if test "$enableval" = yes; then
7806 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7807 else
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7809 fi
698dcdb6 7810
10f2d63a 7811else
698dcdb6 7812
10f2d63a
VZ
7813 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7821
7822fi
10f2d63a
VZ
7823
7824
7825 eval "$ac_cv_use_miniframe"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7831 echo "$ac_t""yes" 1>&6
10f2d63a 7832 else
698dcdb6 7833 echo "$ac_t""no" 1>&6
10f2d63a 7834 fi
698dcdb6 7835
10f2d63a 7836
698dcdb6 7837 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
cb61c62d 7838echo "configure:7839: checking for --enable-tooltips" >&5
10f2d63a
VZ
7839 no_cache=0
7840 # Check whether --enable-tooltips or --disable-tooltips was given.
7841if test "${enable_tooltips+set}" = set; then
7842 enableval="$enable_tooltips"
698dcdb6 7843
10f2d63a
VZ
7844 if test "$enableval" = yes; then
7845 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7846 else
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7848 fi
698dcdb6 7849
10f2d63a 7850else
698dcdb6 7851
10f2d63a
VZ
7852 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7860
7861fi
10f2d63a
VZ
7862
7863
7864 eval "$ac_cv_use_tooltips"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7870 echo "$ac_t""yes" 1>&6
10f2d63a 7871 else
698dcdb6 7872 echo "$ac_t""no" 1>&6
10f2d63a 7873 fi
698dcdb6 7874
10f2d63a 7875
698dcdb6 7876 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
cb61c62d 7877echo "configure:7878: checking for --enable-splines" >&5
10f2d63a
VZ
7878 no_cache=0
7879 # Check whether --enable-splines or --disable-splines was given.
7880if test "${enable_splines+set}" = set; then
7881 enableval="$enable_splines"
698dcdb6 7882
10f2d63a
VZ
7883 if test "$enableval" = yes; then
7884 ac_cv_use_splines='wxUSE_SPLINES=yes'
7885 else
7886 ac_cv_use_splines='wxUSE_SPLINES=no'
7887 fi
698dcdb6 7888
10f2d63a 7889else
698dcdb6 7890
10f2d63a
VZ
7891 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7899
7900fi
10f2d63a
VZ
7901
7902
7903 eval "$ac_cv_use_splines"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7909 echo "$ac_t""yes" 1>&6
10f2d63a 7910 else
698dcdb6 7911 echo "$ac_t""no" 1>&6
10f2d63a 7912 fi
698dcdb6 7913
10f2d63a 7914
698dcdb6 7915 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
cb61c62d 7916echo "configure:7917: checking for --enable-validators" >&5
10f2d63a
VZ
7917 no_cache=0
7918 # Check whether --enable-validators or --disable-validators was given.
7919if test "${enable_validators+set}" = set; then
7920 enableval="$enable_validators"
698dcdb6 7921
10f2d63a
VZ
7922 if test "$enableval" = yes; then
7923 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7924 else
7925 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7926 fi
698dcdb6 7927
10f2d63a 7928else
698dcdb6 7929
10f2d63a
VZ
7930 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7938
7939fi
10f2d63a
VZ
7940
7941
7942 eval "$ac_cv_use_validators"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7948 echo "$ac_t""yes" 1>&6
10f2d63a 7949 else
698dcdb6 7950 echo "$ac_t""no" 1>&6
10f2d63a 7951 fi
698dcdb6 7952
10f2d63a 7953
698dcdb6 7954 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
cb61c62d 7955echo "configure:7956: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7956 no_cache=0
7957 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7958if test "${enable_busyinfo+set}" = set; then
7959 enableval="$enable_busyinfo"
698dcdb6 7960
10f2d63a
VZ
7961 if test "$enableval" = yes; then
7962 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7963 else
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7965 fi
698dcdb6 7966
10f2d63a 7967else
698dcdb6 7968
10f2d63a
VZ
7969 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7977
7978fi
10f2d63a
VZ
7979
7980
7981 eval "$ac_cv_use_busyinfo"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7987 echo "$ac_t""yes" 1>&6
10f2d63a 7988 else
698dcdb6 7989 echo "$ac_t""no" 1>&6
10f2d63a 7990 fi
698dcdb6 7991
10f2d63a 7992
698dcdb6 7993 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
cb61c62d 7994echo "configure:7995: checking for --enable-joystick" >&5
f6bcfd97
BP
7995 no_cache=0
7996 # Check whether --enable-joystick or --disable-joystick was given.
7997if test "${enable_joystick+set}" = set; then
7998 enableval="$enable_joystick"
698dcdb6 7999
f6bcfd97
BP
8000 if test "$enableval" = yes; then
8001 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8002 else
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8004 fi
698dcdb6 8005
f6bcfd97 8006else
698dcdb6 8007
f6bcfd97
BP
8008 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8009 if test "x$LINE" != x ; then
8010 eval "DEFAULT_$LINE"
8011 else
8012 no_cache=1
8013 fi
8014
8015 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8016
8017fi
f6bcfd97
BP
8018
8019
8020 eval "$ac_cv_use_joystick"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8026 echo "$ac_t""yes" 1>&6
f6bcfd97 8027 else
698dcdb6 8028 echo "$ac_t""no" 1>&6
f6bcfd97 8029 fi
698dcdb6
VZ
8030
8031
1e6feb95 8032 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
cb61c62d 8033echo "configure:8034: checking for --enable-metafile" >&5
1e6feb95
VZ
8034 no_cache=0
8035 # Check whether --enable-metafile or --disable-metafile was given.
8036if test "${enable_metafile+set}" = set; then
8037 enableval="$enable_metafile"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8041 else
8042 ac_cv_use_metafile='wxUSE_METAFILE=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8055
8056fi
8057
8058
8059 eval "$ac_cv_use_metafile"
8060 if test "$no_cache" != 1; then
8061 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8062 fi
8063
8064 if test "$wxUSE_METAFILE" = yes; then
8065 echo "$ac_t""yes" 1>&6
8066 else
8067 echo "$ac_t""no" 1>&6
8068 fi
8069
8070
24fd6d87 8071 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
cb61c62d 8072echo "configure:8073: checking for --enable-dragimage" >&5
24fd6d87
VZ
8073 no_cache=0
8074 # Check whether --enable-dragimage or --disable-dragimage was given.
8075if test "${enable_dragimage+set}" = set; then
8076 enableval="$enable_dragimage"
8077
8078 if test "$enableval" = yes; then
8079 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8080 else
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8082 fi
8083
8084else
8085
8086 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8094
8095fi
8096
8097
8098 eval "$ac_cv_use_dragimage"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_DRAGIMAGE" = yes; then
8104 echo "$ac_t""yes" 1>&6
8105 else
8106 echo "$ac_t""no" 1>&6
8107 fi
8108
8109
10f2d63a 8110
698dcdb6 8111
edae8572 8112 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
cb61c62d 8113echo "configure:8114: checking for --enable-palette" >&5
edae8572
VZ
8114 no_cache=0
8115 # Check whether --enable-palette or --disable-palette was given.
8116if test "${enable_palette+set}" = set; then
8117 enableval="$enable_palette"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_palette='wxUSE_PALETTE=yes'
8121 else
8122 ac_cv_use_palette='wxUSE_PALETTE=no'
8123 fi
8124
8125else
8126
8127 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8135
8136fi
8137
8138
8139 eval "$ac_cv_use_palette"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_PALETTE" = yes; then
8145 echo "$ac_t""yes" 1>&6
8146 else
8147 echo "$ac_t""no" 1>&6
8148 fi
8149
8150
698dcdb6 8151 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
cb61c62d 8152echo "configure:8153: checking for --enable-image" >&5
0046ff7c
VS
8153 no_cache=0
8154 # Check whether --enable-image or --disable-image was given.
8155if test "${enable_image+set}" = set; then
8156 enableval="$enable_image"
698dcdb6 8157
0046ff7c
VS
8158 if test "$enableval" = yes; then
8159 ac_cv_use_image='wxUSE_IMAGE=yes'
8160 else
8161 ac_cv_use_image='wxUSE_IMAGE=no'
8162 fi
698dcdb6 8163
0046ff7c 8164else
698dcdb6 8165
0046ff7c
VS
8166 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8167 if test "x$LINE" != x ; then
8168 eval "DEFAULT_$LINE"
8169 else
8170 no_cache=1
8171 fi
8172
8173 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8174
8175fi
0046ff7c
VS
8176
8177
8178 eval "$ac_cv_use_image"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8184 echo "$ac_t""yes" 1>&6
0046ff7c 8185 else
698dcdb6 8186 echo "$ac_t""no" 1>&6
0046ff7c 8187 fi
698dcdb6 8188
0046ff7c 8189
698dcdb6 8190 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
cb61c62d 8191echo "configure:8192: checking for --enable-gif" >&5
10f2d63a
VZ
8192 no_cache=0
8193 # Check whether --enable-gif or --disable-gif was given.
8194if test "${enable_gif+set}" = set; then
8195 enableval="$enable_gif"
698dcdb6 8196
10f2d63a
VZ
8197 if test "$enableval" = yes; then
8198 ac_cv_use_gif='wxUSE_GIF=yes'
8199 else
8200 ac_cv_use_gif='wxUSE_GIF=no'
8201 fi
698dcdb6 8202
10f2d63a 8203else
698dcdb6 8204
10f2d63a
VZ
8205 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8213
8214fi
10f2d63a
VZ
8215
8216
8217 eval "$ac_cv_use_gif"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_GIF" = yes; then
698dcdb6 8223 echo "$ac_t""yes" 1>&6
10f2d63a 8224 else
698dcdb6 8225 echo "$ac_t""no" 1>&6
10f2d63a 8226 fi
698dcdb6 8227
10f2d63a 8228
698dcdb6 8229 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
cb61c62d 8230echo "configure:8231: checking for --enable-pcx" >&5
10f2d63a
VZ
8231 no_cache=0
8232 # Check whether --enable-pcx or --disable-pcx was given.
8233if test "${enable_pcx+set}" = set; then
8234 enableval="$enable_pcx"
698dcdb6 8235
10f2d63a
VZ
8236 if test "$enableval" = yes; then
8237 ac_cv_use_pcx='wxUSE_PCX=yes'
8238 else
8239 ac_cv_use_pcx='wxUSE_PCX=no'
8240 fi
698dcdb6 8241
10f2d63a 8242else
698dcdb6 8243
10f2d63a
VZ
8244 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8252
8253fi
10f2d63a
VZ
8254
8255
8256 eval "$ac_cv_use_pcx"
8257 if test "$no_cache" != 1; then
8258 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8259 fi
8260
8261 if test "$wxUSE_PCX" = yes; then
698dcdb6 8262 echo "$ac_t""yes" 1>&6
10f2d63a 8263 else
698dcdb6 8264 echo "$ac_t""no" 1>&6
10f2d63a 8265 fi
698dcdb6 8266
10f2d63a 8267
4b6b4dfc 8268 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
cb61c62d 8269echo "configure:8270: checking for --enable-iff" >&5
4b6b4dfc
RR
8270 no_cache=0
8271 # Check whether --enable-iff or --disable-iff was given.
8272if test "${enable_iff+set}" = set; then
8273 enableval="$enable_iff"
8274
8275 if test "$enableval" = yes; then
8276 ac_cv_use_iff='wxUSE_IFF=yes'
8277 else
8278 ac_cv_use_iff='wxUSE_IFF=no'
8279 fi
8280
8281else
8282
8283 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8284 if test "x$LINE" != x ; then
8285 eval "DEFAULT_$LINE"
8286 else
8287 no_cache=1
8288 fi
8289
8290 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8291
8292fi
8293
8294
8295 eval "$ac_cv_use_iff"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_IFF" = yes; then
8301 echo "$ac_t""yes" 1>&6
8302 else
8303 echo "$ac_t""no" 1>&6
8304 fi
8305
8306
698dcdb6 8307 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
cb61c62d 8308echo "configure:8309: checking for --enable-pnm" >&5
10f2d63a
VZ
8309 no_cache=0
8310 # Check whether --enable-pnm or --disable-pnm was given.
8311if test "${enable_pnm+set}" = set; then
8312 enableval="$enable_pnm"
698dcdb6 8313
10f2d63a
VZ
8314 if test "$enableval" = yes; then
8315 ac_cv_use_pnm='wxUSE_PNM=yes'
8316 else
8317 ac_cv_use_pnm='wxUSE_PNM=no'
8318 fi
698dcdb6 8319
10f2d63a 8320else
698dcdb6 8321
10f2d63a
VZ
8322 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8323 if test "x$LINE" != x ; then
8324 eval "DEFAULT_$LINE"
8325 else
8326 no_cache=1
8327 fi
8328
8329 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8330
8331fi
10f2d63a
VZ
8332
8333
8334 eval "$ac_cv_use_pnm"
8335 if test "$no_cache" != 1; then
8336 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8337 fi
8338
8339 if test "$wxUSE_PNM" = yes; then
698dcdb6 8340 echo "$ac_t""yes" 1>&6
10f2d63a 8341 else
698dcdb6 8342 echo "$ac_t""no" 1>&6
10f2d63a 8343 fi
698dcdb6 8344
10f2d63a 8345
69d27ff7 8346 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
cb61c62d 8347echo "configure:8348: checking for --enable-xpm" >&5
0046ff7c 8348 no_cache=0
69d27ff7
MB
8349 # Check whether --enable-xpm or --disable-xpm was given.
8350if test "${enable_xpm+set}" = set; then
8351 enableval="$enable_xpm"
698dcdb6 8352
0046ff7c 8353 if test "$enableval" = yes; then
69d27ff7 8354 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8355 else
69d27ff7 8356 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8357 fi
698dcdb6 8358
0046ff7c 8359else
698dcdb6 8360
0046ff7c
VS
8361 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
69d27ff7 8368 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8369
8370fi
0046ff7c
VS
8371
8372
69d27ff7 8373 eval "$ac_cv_use_xpm"
0046ff7c 8374 if test "$no_cache" != 1; then
69d27ff7 8375 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8376 fi
8377
8378 if test "$wxUSE_XPM" = yes; then
698dcdb6 8379 echo "$ac_t""yes" 1>&6
0046ff7c 8380 else
698dcdb6 8381 echo "$ac_t""no" 1>&6
0046ff7c 8382 fi
698dcdb6 8383
0046ff7c 8384
c7206e64 8385 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
cb61c62d 8386echo "configure:8387: checking for --enable-ico_cur" >&5
658974ae 8387 no_cache=0
c7206e64
VS
8388 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8389if test "${enable_ico_cur+set}" = set; then
8390 enableval="$enable_ico_cur"
658974ae
VS
8391
8392 if test "$enableval" = yes; then
c7206e64 8393 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8394 else
c7206e64 8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8396 fi
8397
8398else
8399
8400 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8401 if test "x$LINE" != x ; then
8402 eval "DEFAULT_$LINE"
8403 else
8404 no_cache=1
8405 fi
8406
c7206e64 8407 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8408
8409fi
8410
8411
c7206e64 8412 eval "$ac_cv_use_ico_cur"
658974ae 8413 if test "$no_cache" != 1; then
c7206e64 8414 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8415 fi
8416
8417 if test "$wxUSE_ICO_CUR" = yes; then
8418 echo "$ac_t""yes" 1>&6
8419 else
8420 echo "$ac_t""no" 1>&6
8421 fi
8422
8423
b12915c1
VZ
8424fi
8425
698dcdb6 8426
10f2d63a
VZ
8427 echo "saving argument cache $wx_arg_cache_file"
8428 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8429
10f2d63a 8430
698dcdb6
VZ
8431
8432echo $ac_n "checking for toolkit""... $ac_c" 1>&6
cb61c62d 8433echo "configure:8434: checking for toolkit" >&5
10f2d63a
VZ
8434
8435if test "$wxUSE_GUI" = "yes"; then
8436
3a922bb4
RL
8437 if test "$USE_BEOS" = 1; then
8438 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8439 fi
b12915c1 8440
3a922bb4
RL
8441 if test "$TOOLKIT_GIVEN" = 1; then
8442 for toolkit in `echo $ALL_TOOLKITS`; do
8443 var=wxUSE_$toolkit
8444 eval "value=\$${var}"
8445 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8446 done
10f2d63a 8447 else
3a922bb4
RL
8448 for toolkit in `echo $ALL_TOOLKITS`; do
8449 if test "$has_toolkit_in_cache" != 1; then
8450 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8451 else
8452 var=DEFAULT_wxUSE_$toolkit
8453 fi
8454 eval "wxUSE_$toolkit=\$${var}"
8455 done
10f2d63a 8456 fi
10f2d63a 8457
3a922bb4 8458 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8459 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8460
3a922bb4 8461 case "${host}" in
6fa882bd 8462 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8463 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8464 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8465 LEX_STEM="lexyy"
8466 ;;
8467 *)
8468 PATH_IFS=':'
8469 LEX_STEM="lex.yy"
8470 ;;
8471 esac
10f2d63a 8472
3a922bb4
RL
8473 case "$NUM_TOOLKITS" in
8474 1)
8475 ;;
8476 0)
8477 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8478 ;;
8479 *)
8480 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8481 esac
10f2d63a 8482
3a922bb4
RL
8483 for toolkit in `echo $ALL_TOOLKITS`; do
8484 var=wxUSE_$toolkit
8485 eval "value=\$${var}"
8486 if test "x$value" != x; then
8487 cache_var=CACHE_$toolkit
8488 eval "cache=\$${cache_var}"
8489 if test "$cache" = 1; then
8490 echo "$var=$value" >> ${wx_arg_cache_file}
8491 fi
8492 if test "$value" = 1; then
8493 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8494 echo "$ac_t""$toolkit_echo" 1>&6
8495 fi
8496 fi
8497 done
10f2d63a 8498else
cf27ef00 8499 PATH_IFS=':'
3a922bb4 8500 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8501fi
8502
698dcdb6
VZ
8503
8504cat > confcache <<\EOF
10f2d63a
VZ
8505# This file is a shell script that caches the results of configure
8506# tests run on this system so they can be shared between configure
698dcdb6
VZ
8507# scripts and configure runs. It is not useful on other systems.
8508# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8509#
698dcdb6
VZ
8510# By default, configure uses ./config.cache as the cache file,
8511# creating it if it does not exist already. You can give configure
8512# the --cache-file=FILE option to use a different cache file; that is
8513# what configure does when it calls configure scripts in
8514# subdirectories, so they share the cache.
8515# Giving --cache-file=/dev/null disables caching, for debugging configure.
8516# config.status only pays attention to the cache file if you give it the
8517# --recheck option to rerun configure.
10f2d63a 8518#
698dcdb6 8519EOF
10f2d63a
VZ
8520# The following way of writing the cache mishandles newlines in values,
8521# but we know of no workaround that is simple, portable, and efficient.
8522# So, don't put newlines in cache variables' values.
8523# Ultrix sh set writes to stderr and can't be redirected directly,
8524# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8525(set) 2>&1 |
8526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8527 *ac_space=\ *)
8528 # `set' does not quote correctly, so add quotes (double-quote substitution
8529 # turns \\\\ into \\, and sed turns \\ into \).
8530 sed -n \
8531 -e "s/'/'\\\\''/g" \
8532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8533 ;;
8534 *)
8535 # `set' quotes correctly as required by POSIX, so do not add quotes.
8536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8537 ;;
8538 esac >> confcache
8539if cmp -s $cache_file confcache; then
8540 :
8541else
10f2d63a 8542 if test -w $cache_file; then
698dcdb6
VZ
8543 echo "updating cache $cache_file"
8544 cat confcache > $cache_file
10f2d63a
VZ
8545 else
8546 echo "not updating unwritable cache $cache_file"
8547 fi
8548fi
8549rm -f confcache
8550
698dcdb6 8551
e59890c3 8552if test "$build" != "$host" ; then
f9bc1684 8553 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8554 CC=$host_alias-gcc
8555 CXX=$host_alias-c++
8556 AR=$host_alias-ar
8557 RANLIB=$host_alias-ranlib
8558 DLLTOOL=$host_alias-dlltool
8559 RESCOMP=$host_alias-windres
8560 LD=$host_alias-ld
8561 NM=$host_alias-nm
8562 STRIP=$host_alias-strip
8563 else
8564 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8565 fi
10f2d63a
VZ
8566fi
8567
698dcdb6 8568# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8569set dummy gcc; ac_word=$2
698dcdb6 8570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 8571echo "configure:8572: checking for $ac_word" >&5
698dcdb6
VZ
8572if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8574else
8575 if test -n "$CC"; then
8576 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8577else
698dcdb6
VZ
8578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8579 ac_dummy="$PATH"
8580 for ac_dir in $ac_dummy; do
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/$ac_word; then
8583 ac_cv_prog_CC="gcc"
8584 break
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
10f2d63a 8588fi
6232543b 8589fi
698dcdb6 8590CC="$ac_cv_prog_CC"
6232543b 8591if test -n "$CC"; then
698dcdb6 8592 echo "$ac_t""$CC" 1>&6
1e487827 8593else
698dcdb6 8594 echo "$ac_t""no" 1>&6
1e487827 8595fi
6232543b 8596
1e487827
VS
8597if test -z "$CC"; then
8598 # Extract the first word of "cc", so it can be a program name with args.
8599set dummy cc; ac_word=$2
698dcdb6 8600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 8601echo "configure:8602: checking for $ac_word" >&5
698dcdb6
VZ
8602if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8604else
8605 if test -n "$CC"; then
8606 ac_cv_prog_CC="$CC" # Let the user override the test.
8607else
698dcdb6 8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8609 ac_prog_rejected=no
698dcdb6
VZ
8610 ac_dummy="$PATH"
8611 for ac_dir in $ac_dummy; do
8612 test -z "$ac_dir" && ac_dir=.
8613 if test -f $ac_dir/$ac_word; then
8614 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8615 ac_prog_rejected=yes
8616 continue
8617 fi
8618 ac_cv_prog_CC="cc"
8619 break
8620 fi
8621 done
8622 IFS="$ac_save_ifs"
1e487827
VS
8623if test $ac_prog_rejected = yes; then
8624 # We found a bogon in the path, so make sure we never use it.
8625 set dummy $ac_cv_prog_CC
8626 shift
698dcdb6 8627 if test $# -gt 0; then
1e487827
VS
8628 # We chose a different compiler from the bogus one.
8629 # However, it has the same basename, so the bogon will be chosen
8630 # first if we set CC to just the basename; use the full file name.
8631 shift
698dcdb6 8632 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8633 shift
8634 ac_cv_prog_CC="$@"
703e0a69 8635 fi
1e487827
VS
8636fi
8637fi
8638fi
698dcdb6 8639CC="$ac_cv_prog_CC"
1e487827 8640if test -n "$CC"; then
698dcdb6 8641 echo "$ac_t""$CC" 1>&6
703e0a69 8642else
698dcdb6 8643 echo "$ac_t""no" 1>&6
703e0a69 8644fi
1e487827 8645
698dcdb6
VZ
8646 if test -z "$CC"; then
8647 case "`uname -s`" in
8648 *win32* | *WIN32*)
8649 # Extract the first word of "cl", so it can be a program name with args.
8650set dummy cl; ac_word=$2
8651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 8652echo "configure:8653: checking for $ac_word" >&5
698dcdb6
VZ
8653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8655else
8656 if test -n "$CC"; then
8657 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8658else
698dcdb6
VZ
8659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8660 ac_dummy="$PATH"
8661 for ac_dir in $ac_dummy; do
8662 test -z "$ac_dir" && ac_dir=.
8663 if test -f $ac_dir/$ac_word; then
8664 ac_cv_prog_CC="cl"
8665 break
8666 fi
8667 done
8668 IFS="$ac_save_ifs"
703e0a69 8669fi
1e487827 8670fi
698dcdb6 8671CC="$ac_cv_prog_CC"
1e487827 8672if test -n "$CC"; then
698dcdb6 8673 echo "$ac_t""$CC" 1>&6
1e487827 8674else
698dcdb6 8675 echo "$ac_t""no" 1>&6
1e487827 8676fi
698dcdb6
VZ
8677 ;;
8678 esac
8679 fi
8680 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8681fi
8682
698dcdb6 8683echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
cb61c62d 8684echo "configure:8685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8685
698dcdb6
VZ
8686ac_ext=c
8687# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8688ac_cpp='$CPP $CPPFLAGS'
8689ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8690ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8691cross_compiling=$ac_cv_prog_cc_cross
6232543b 8692
698dcdb6 8693cat > conftest.$ac_ext << EOF
1e487827 8694
cb61c62d 8695#line 8696 "configure"
1e487827
VS
8696#include "confdefs.h"
8697
698dcdb6
VZ
8698main(){return(0);}
8699EOF
cb61c62d 8700if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8701 ac_cv_prog_cc_works=yes
8702 # If we can't run a trivial program, we are probably using a cross compiler.
8703 if (./conftest; exit) 2>/dev/null; then
8704 ac_cv_prog_cc_cross=no
8705 else
8706 ac_cv_prog_cc_cross=yes
8707 fi
8708else
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 ac_cv_prog_cc_works=no
8712fi
8713rm -fr conftest*
8714ac_ext=c
8715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8716ac_cpp='$CPP $CPPFLAGS'
8717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8719cross_compiling=$ac_cv_prog_cc_cross
8720
8721echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8722if test $ac_cv_prog_cc_works = no; then
8723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8724fi
8725echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
cb61c62d 8726echo "configure:8727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8727echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8728cross_compiling=$ac_cv_prog_cc_cross
8729
8730echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
cb61c62d 8731echo "configure:8732: checking whether we are using GNU C" >&5
698dcdb6
VZ
8732if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8734else
8735 cat > conftest.c <<EOF
8736#ifdef __GNUC__
8737 yes;
1e487827 8738#endif
698dcdb6 8739EOF
cb61c62d 8740if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8741 ac_cv_prog_gcc=yes
8742else
8743 ac_cv_prog_gcc=no
8744fi
8745fi
1e487827 8746
698dcdb6 8747echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8748
698dcdb6
VZ
8749if test $ac_cv_prog_gcc = yes; then
8750 GCC=yes
8751else
8752 GCC=
8753fi
1e487827 8754
698dcdb6
VZ
8755ac_test_CFLAGS="${CFLAGS+set}"
8756ac_save_CFLAGS="$CFLAGS"
8757CFLAGS=
8758echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
cb61c62d 8759echo "configure:8760: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8760if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762else
8763 echo 'void f(){}' > conftest.c
8764if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8765 ac_cv_prog_cc_g=yes
8766else
698dcdb6 8767 ac_cv_prog_cc_g=no
10f2d63a 8768fi
698dcdb6
VZ
8769rm -f conftest*
8770
10f2d63a 8771fi
698dcdb6
VZ
8772
8773echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8774if test "$ac_test_CFLAGS" = set; then
698dcdb6 8775 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8776elif test $ac_cv_prog_cc_g = yes; then
8777 if test "$GCC" = yes; then
8778 CFLAGS="-g -O2"
8779 else
8780 CFLAGS="-g"
8781 fi
8782else
8783 if test "$GCC" = yes; then
8784 CFLAGS="-O2"
8785 else
8786 CFLAGS=
8787 fi
8788fi
8789
8790
8791CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8792
698dcdb6 8793echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
cb61c62d 8794echo "configure:8795: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8795# On Suns, sometimes $CPP names a directory.
8796if test -n "$CPP" && test -d "$CPP"; then
8797 CPP=
8798fi
8799if test -z "$CPP"; then
698dcdb6
VZ
8800if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8802else
8803 # This must be in double quotes, not single quotes, because CPP may get
8804 # substituted into the Makefile and "${CC-cc}" will confuse make.
8805 CPP="${CC-cc} -E"
10f2d63a 8806 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8807 # not just through cpp.
8808 cat > conftest.$ac_ext <<EOF
cb61c62d 8809#line 8810 "configure"
10f2d63a
VZ
8810#include "confdefs.h"
8811#include <assert.h>
698dcdb6
VZ
8812Syntax Error
8813EOF
8814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 8815{ (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8817if test -z "$ac_err"; then
10f2d63a
VZ
8818 :
8819else
698dcdb6
VZ
8820 echo "$ac_err" >&5
8821 echo "configure: failed program was:" >&5
10f2d63a 8822 cat conftest.$ac_ext >&5
698dcdb6
VZ
8823 rm -rf conftest*
8824 CPP="${CC-cc} -E -traditional-cpp"
8825 cat > conftest.$ac_ext <<EOF
cb61c62d 8826#line 8827 "configure"
10f2d63a 8827#include "confdefs.h"
698dcdb6
VZ
8828#include <assert.h>
8829Syntax Error
8830EOF
8831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 8832{ (eval echo configure:8833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8834if test -z "$ac_err"; then
8835 :
10f2d63a 8836else
698dcdb6
VZ
8837 echo "$ac_err" >&5
8838 echo "configure: failed program was:" >&5
10f2d63a 8839 cat conftest.$ac_ext >&5
698dcdb6
VZ
8840 rm -rf conftest*
8841 CPP="${CC-cc} -nologo -E"
8842 cat > conftest.$ac_ext <<EOF
cb61c62d 8843#line 8844 "configure"
10f2d63a
VZ
8844#include "confdefs.h"
8845#include <assert.h>
698dcdb6
VZ
8846Syntax Error
8847EOF
8848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 8849{ (eval echo configure:8850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8851if test -z "$ac_err"; then
10f2d63a
VZ
8852 :
8853else
698dcdb6
VZ
8854 echo "$ac_err" >&5
8855 echo "configure: failed program was:" >&5
10f2d63a 8856 cat conftest.$ac_ext >&5
698dcdb6
VZ
8857 rm -rf conftest*
8858 CPP=/lib/cpp
10f2d63a 8859fi
698dcdb6 8860rm -f conftest*
10f2d63a 8861fi
698dcdb6 8862rm -f conftest*
703e0a69 8863fi
698dcdb6
VZ
8864rm -f conftest*
8865 ac_cv_prog_CPP="$CPP"
8866fi
8867 CPP="$ac_cv_prog_CPP"
10f2d63a 8868else
698dcdb6 8869 ac_cv_prog_CPP="$CPP"
10f2d63a 8870fi
698dcdb6 8871echo "$ac_t""$CPP" 1>&6
10f2d63a 8872
698dcdb6
VZ
8873if test $ac_cv_prog_gcc = yes; then
8874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
cb61c62d 8875echo "configure:8876: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8876if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8878else
8879 ac_pattern="Autoconf.*'x'"
698dcdb6 8880 cat > conftest.$ac_ext <<EOF
cb61c62d 8881#line 8882 "configure"
10f2d63a
VZ
8882#include "confdefs.h"
8883#include <sgtty.h>
8884Autoconf TIOCGETP
698dcdb6 8885EOF
10f2d63a
VZ
8886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8888 rm -rf conftest*
10f2d63a
VZ
8889 ac_cv_prog_gcc_traditional=yes
8890else
698dcdb6 8891 rm -rf conftest*
10f2d63a
VZ
8892 ac_cv_prog_gcc_traditional=no
8893fi
8894rm -f conftest*
8895
698dcdb6 8896
10f2d63a 8897 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8898 cat > conftest.$ac_ext <<EOF
cb61c62d 8899#line 8900 "configure"
10f2d63a
VZ
8900#include "confdefs.h"
8901#include <termio.h>
8902Autoconf TCGETA
698dcdb6 8903EOF
10f2d63a
VZ
8904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8905 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8906 rm -rf conftest*
10f2d63a
VZ
8907 ac_cv_prog_gcc_traditional=yes
8908fi
8909rm -f conftest*
8910
8911 fi
8912fi
698dcdb6
VZ
8913
8914echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8915 if test $ac_cv_prog_gcc_traditional = yes; then
8916 CC="$CC -traditional"
8917 fi
8918fi
8919
703e0a69 8920
698dcdb6
VZ
8921
8922ac_ext=C
8923# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8924ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8925ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8926ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8927cross_compiling=$ac_cv_prog_cxx_cross
8928
8929
8930for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8931do
8932# Extract the first word of "$ac_prog", so it can be a program name with args.
8933set dummy $ac_prog; ac_word=$2
8934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 8935echo "configure:8936: checking for $ac_word" >&5
698dcdb6
VZ
8936if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8938else
8939 if test -n "$CXX"; then
8940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8941else
698dcdb6
VZ
8942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8943 ac_dummy="$PATH"
8944 for ac_dir in $ac_dummy; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f $ac_dir/$ac_word; then
8947 ac_cv_prog_CXX="$ac_prog"
8948 break
8949 fi
8950 done
8951 IFS="$ac_save_ifs"
10f2d63a
VZ
8952fi
8953fi
698dcdb6 8954CXX="$ac_cv_prog_CXX"
10f2d63a 8955if test -n "$CXX"; then
698dcdb6 8956 echo "$ac_t""$CXX" 1>&6
10f2d63a 8957else
698dcdb6 8958 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8959fi
8960
698dcdb6 8961test -n "$CXX" && break
10f2d63a 8962done
698dcdb6 8963test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8964
8965
698dcdb6 8966echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
cb61c62d 8967echo "configure:8968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8968
698dcdb6
VZ
8969ac_ext=C
8970# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8971ac_cpp='$CXXCPP $CPPFLAGS'
8972ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8975
698dcdb6
VZ
8976cat > conftest.$ac_ext << EOF
8977
cb61c62d 8978#line 8979 "configure"
10f2d63a
VZ
8979#include "confdefs.h"
8980
698dcdb6
VZ
8981int main(){return(0);}
8982EOF
cb61c62d 8983if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8984 ac_cv_prog_cxx_works=yes
8985 # If we can't run a trivial program, we are probably using a cross compiler.
8986 if (./conftest; exit) 2>/dev/null; then
8987 ac_cv_prog_cxx_cross=no
8988 else
8989 ac_cv_prog_cxx_cross=yes
8990 fi
8991else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 ac_cv_prog_cxx_works=no
8995fi
8996rm -fr conftest*
8997ac_ext=C
8998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002cross_compiling=$ac_cv_prog_cxx_cross
9003
9004echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9005if test $ac_cv_prog_cxx_works = no; then
9006 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9007fi
9008echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
cb61c62d 9009echo "configure:9010: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9010echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9011cross_compiling=$ac_cv_prog_cxx_cross
9012
9013echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
cb61c62d 9014echo "configure:9015: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9015if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017else
9018 cat > conftest.C <<EOF
9019#ifdef __GNUC__
9020 yes;
10f2d63a 9021#endif
698dcdb6 9022EOF
cb61c62d 9023if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9024 ac_cv_prog_gxx=yes
9025else
9026 ac_cv_prog_gxx=no
9027fi
9028fi
10f2d63a 9029
698dcdb6 9030echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9031
698dcdb6
VZ
9032if test $ac_cv_prog_gxx = yes; then
9033 GXX=yes
9034else
9035 GXX=
9036fi
10f2d63a 9037
698dcdb6
VZ
9038ac_test_CXXFLAGS="${CXXFLAGS+set}"
9039ac_save_CXXFLAGS="$CXXFLAGS"
9040CXXFLAGS=
9041echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
cb61c62d 9042echo "configure:9043: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9043if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046 echo 'void f(){}' > conftest.cc
9047if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9048 ac_cv_prog_cxx_g=yes
9049else
698dcdb6 9050 ac_cv_prog_cxx_g=no
10f2d63a 9051fi
698dcdb6
VZ
9052rm -f conftest*
9053
10f2d63a 9054fi
698dcdb6
VZ
9055
9056echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9057if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9058 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9059elif test $ac_cv_prog_cxx_g = yes; then
9060 if test "$GXX" = yes; then
9061 CXXFLAGS="-g -O2"
9062 else
9063 CXXFLAGS="-g"
9064 fi
9065else
9066 if test "$GXX" = yes; then
9067 CXXFLAGS="-O2"
9068 else
9069 CXXFLAGS=
9070 fi
9071fi
9072
9073
10f2d63a
VZ
9074CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9075
9076ac_ext=c
698dcdb6 9077# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9078ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9079ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9080ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9081cross_compiling=$ac_cv_prog_cc_cross
9082
9083
9084# Extract the first word of "ranlib", so it can be a program name with args.
9085set dummy ranlib; ac_word=$2
9086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 9087echo "configure:9088: checking for $ac_word" >&5
698dcdb6
VZ
9088if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9090else
9091 if test -n "$RANLIB"; then
9092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9093else
698dcdb6
VZ
9094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9095 ac_dummy="$PATH"
9096 for ac_dir in $ac_dummy; do
9097 test -z "$ac_dir" && ac_dir=.
9098 if test -f $ac_dir/$ac_word; then
9099 ac_cv_prog_RANLIB="ranlib"
9100 break
9101 fi
9102 done
9103 IFS="$ac_save_ifs"
9104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9105fi
9106fi
698dcdb6 9107RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9108if test -n "$RANLIB"; then
698dcdb6 9109 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9110else
698dcdb6 9111 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9112fi
9113
9114
9115# Extract the first word of "ar", so it can be a program name with args.
9116set dummy ar; ac_word=$2
698dcdb6 9117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 9118echo "configure:9119: checking for $ac_word" >&5
698dcdb6
VZ
9119if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9121else
9122 if test -n "$AR"; then
9123 ac_cv_prog_AR="$AR" # Let the user override the test.
9124else
698dcdb6
VZ
9125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9126 ac_dummy="$PATH"
9127 for ac_dir in $ac_dummy; do
9128 test -z "$ac_dir" && ac_dir=.
9129 if test -f $ac_dir/$ac_word; then
9130 ac_cv_prog_AR="ar"
9131 break
9132 fi
9133 done
9134 IFS="$ac_save_ifs"
10f2d63a
VZ
9135 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9136fi
9137fi
698dcdb6 9138AR="$ac_cv_prog_AR"
10f2d63a 9139if test -n "$AR"; then
698dcdb6 9140 echo "$ac_t""$AR" 1>&6
10f2d63a 9141else
698dcdb6 9142 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9143fi
9144
698dcdb6 9145
6054113a 9146# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9147# so one script is as good as another. But avoid the broken or
9148# incompatible versions:
9149# SysV /etc/install, /usr/sbin/install
9150# SunOS /usr/etc/install
9151# IRIX /sbin/install
9152# AIX /bin/install
9153# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9154# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9155# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9156# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9157echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
cb61c62d 9158echo "configure:9159: checking for a BSD compatible install" >&5
10f2d63a 9159if test -z "$INSTALL"; then
698dcdb6
VZ
9160if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9162else
698dcdb6 9163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9164 for ac_dir in $PATH; do
9165 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9166 case "$ac_dir/" in
9167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9168 *)
9169 # OSF1 and SCO ODT 3.0 have their own names for install.
9170 # Don't use installbsd from OSF since it installs stuff as root
9171 # by default.
9172 for ac_prog in ginstall scoinst install; do
698dcdb6 9173 if test -f $ac_dir/$ac_prog; then
10f2d63a 9174 if test $ac_prog = install &&
698dcdb6 9175 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9176 # AIX install. It has an incompatible calling convention.
9177 :
9178 else
9179 ac_cv_path_install="$ac_dir/$ac_prog -c"
9180 break 2
9181 fi
9182 fi
9183 done
9184 ;;
9185 esac
9186 done
698dcdb6 9187 IFS="$ac_save_IFS"
10f2d63a
VZ
9188
9189fi
9190 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9191 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9192 else
9193 # As a last resort, use the slow shell script. We don't cache a
9194 # path for INSTALL within a source directory, because that will
9195 # break other packages using the cache if that directory is
9196 # removed, or if the path is relative.
698dcdb6 9197 INSTALL="$ac_install_sh"
10f2d63a
VZ
9198 fi
9199fi
698dcdb6 9200echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9201
9202# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9203# It thinks the first close brace ends the variable substitution.
9204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9205
698dcdb6 9206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9207
9208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9209
6054113a
GD
9210case "${host}" in
9211
b5853384 9212 powerpc-*-darwin* )
eb99ae0b
GD
9213 INSTALL_PROGRAM="cp -fp"
9214 INSTALL_DATA="cp -fp"
6054113a
GD
9215 ;;
9216 *)
9217 ;;
d6853540 9218esac
698dcdb6 9219
10f2d63a
VZ
9220# Extract the first word of "strip", so it can be a program name with args.
9221set dummy strip; ac_word=$2
698dcdb6 9222echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 9223echo "configure:9224: checking for $ac_word" >&5
698dcdb6
VZ
9224if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9226else
9227 if test -n "$STRIP"; then
9228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9229else
698dcdb6
VZ
9230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9231 ac_dummy="$PATH"
9232 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_STRIP="strip"
9236 break
9237 fi
9238 done
9239 IFS="$ac_save_ifs"
10f2d63a
VZ
9240 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9241fi
9242fi
698dcdb6 9243STRIP="$ac_cv_prog_STRIP"
10f2d63a 9244if test -n "$STRIP"; then
698dcdb6 9245 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9246else
698dcdb6 9247 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9248fi
9249
698dcdb6 9250
414eab6d 9251echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
cb61c62d 9252echo "configure:9253: checking if make is GNU make" >&5
414eab6d
VZ
9253if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9255else
9256
9257 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9258 egrep -s GNU); then
9259 wx_cv_prog_makeisgnu="yes"
9260 else
9261 wx_cv_prog_makeisgnu="no"
9262 fi
9263
9264fi
9265
9266echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9267
9268if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9269 IF_GNU_MAKE=""
9270else
9271 IF_GNU_MAKE="#"
9272fi
9273
9274
9275
9276if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9277echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
cb61c62d 9278echo "configure:9279: checking if make supports VPATH" >&5
04e7a216
VZ
9279if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281else
9282
10f2d63a
VZ
9283cat - << EOF > confMake
9284check : file
9285 cp \$? \$@
9286 cp \$? final_file
9287EOF
9288
9289if test ! -d sub ; then
9290 mkdir sub
9291fi
9292echo dummy > sub/file
f6bcfd97 9293${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9294RESULT=$?
9295rm -f sub/file check final_file confMake
9296rmdir sub
9297if test "$RESULT" = 0; then
04e7a216 9298 wx_cv_prog_makevpath="yes"
10f2d63a 9299else
04e7a216
VZ
9300 wx_cv_prog_makevpath="no"
9301fi
9302
9303fi
9304
9305echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9306
9307if test "x$wx_cv_prog_makevpath" != "xyes"; then
9308{ echo "configure: error:
1e487827
VS
9309You need a make-utility that is able to use the variable
9310VPATH correctly.
9311If your version of make does not support VPATH correctly,
9312please install GNU-make (possibly as gmake), and start
9313configure with the following command:
9314export MAKE=gmake; ./configure for sh-type shells
9315setenv MAKE gmake; ./configure for csh-type shells
9316Also please do remember to use gmake in this case every time
9317you are trying to compile.
698dcdb6 9318" 1>&2; exit 1; }
414eab6d 9319fi fi
10f2d63a
VZ
9320for ac_prog in 'bison -y' byacc
9321do
698dcdb6 9322# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9323set dummy $ac_prog; ac_word=$2
698dcdb6 9324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 9325echo "configure:9326: checking for $ac_word" >&5
698dcdb6
VZ
9326if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9328else
9329 if test -n "$YACC"; then
9330 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9331else
698dcdb6
VZ
9332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9333 ac_dummy="$PATH"
9334 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/$ac_word; then
9337 ac_cv_prog_YACC="$ac_prog"
9338 break
9339 fi
9340 done
9341 IFS="$ac_save_ifs"
10f2d63a
VZ
9342fi
9343fi
698dcdb6 9344YACC="$ac_cv_prog_YACC"
10f2d63a 9345if test -n "$YACC"; then
698dcdb6 9346 echo "$ac_t""$YACC" 1>&6
10f2d63a 9347else
698dcdb6 9348 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9349fi
9350
698dcdb6 9351test -n "$YACC" && break
10f2d63a
VZ
9352done
9353test -n "$YACC" || YACC="yacc"
9354
698dcdb6
VZ
9355
9356# Extract the first word of "flex", so it can be a program name with args.
9357set dummy flex; ac_word=$2
9358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 9359echo "configure:9360: checking for $ac_word" >&5
698dcdb6
VZ
9360if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9362else
9363 if test -n "$LEX"; then
9364 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9365else
698dcdb6
VZ
9366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9367 ac_dummy="$PATH"
9368 for ac_dir in $ac_dummy; do
9369 test -z "$ac_dir" && ac_dir=.
9370 if test -f $ac_dir/$ac_word; then
9371 ac_cv_prog_LEX="flex"
9372 break
9373 fi
9374 done
9375 IFS="$ac_save_ifs"
9376 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9377fi
9378fi
698dcdb6 9379LEX="$ac_cv_prog_LEX"
10f2d63a 9380if test -n "$LEX"; then
698dcdb6 9381 echo "$ac_t""$LEX" 1>&6
10f2d63a 9382else
698dcdb6 9383 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9384fi
9385
9386if test -z "$LEXLIB"
9387then
698dcdb6
VZ
9388 case "$LEX" in
9389 flex*) ac_lib=fl ;;
9390 *) ac_lib=l ;;
9391 esac
9392 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
cb61c62d 9393echo "configure:9394: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9394ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 ac_save_LIBS="$LIBS"
9399LIBS="-l$ac_lib $LIBS"
9400cat > conftest.$ac_ext <<EOF
cb61c62d 9401#line 9402 "configure"
10f2d63a
VZ
9402#include "confdefs.h"
9403/* Override any gcc2 internal prototype to avoid an error. */
9404/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9405 builtin and then its argument prototype would still apply. */
9406char yywrap();
10f2d63a 9407
698dcdb6
VZ
9408int main() {
9409yywrap()
9410; return 0; }
9411EOF
cb61c62d 9412if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9413 rm -rf conftest*
9414 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9415else
698dcdb6
VZ
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 rm -rf conftest*
9419 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9420fi
698dcdb6
VZ
9421rm -f conftest*
9422LIBS="$ac_save_LIBS"
9423
10f2d63a 9424fi
698dcdb6
VZ
9425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9427 LEXLIB="-l$ac_lib"
9428else
9429 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9430fi
9431
9432fi
9433
9434
698dcdb6 9435echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
cb61c62d 9436echo "configure:9437: checking whether ln -s works" >&5
698dcdb6
VZ
9437if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9439else
698dcdb6
VZ
9440 rm -f conftestdata
9441if ln -s X conftestdata 2>/dev/null
9442then
9443 rm -f conftestdata
9444 ac_cv_prog_LN_S="ln -s"
10f2d63a 9445else
698dcdb6 9446 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9447fi
9448fi
698dcdb6
VZ
9449LN_S="$ac_cv_prog_LN_S"
9450if test "$ac_cv_prog_LN_S" = "ln -s"; then
9451 echo "$ac_t""yes" 1>&6
10f2d63a 9452else
698dcdb6 9453 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9454fi
9455
9456
9457
9458SEARCH_INCLUDE="\
9459 /usr/local/include \
9460 \
9461 /usr/Motif-1.2/include \
9462 /usr/Motif-2.1/include \
9463 \
9464 /usr/include/Motif1.2 \
9465 /opt/xpm/include/X11 \
9466 /opt/GBxpm/include/ \
9467 /opt/GBxpm/X11/include/ \
9468 \
9469 /usr/Motif1.2/include \
9470 /usr/dt/include \
afc31813
VZ
9471 /usr/openwin/include \
9472 \
10f2d63a
VZ
9473 /usr/include/Xm \
9474 \
9475 /usr/X11R6/include \
afc31813 9476 /usr/X11R6.4/include \
10f2d63a
VZ
9477 /usr/X11R5/include \
9478 /usr/X11R4/include \
9479 \
10f2d63a
VZ
9480 /usr/include/X11R6 \
9481 /usr/include/X11R5 \
9482 /usr/include/X11R4 \
9483 \
9484 /usr/local/X11R6/include \
9485 /usr/local/X11R5/include \
9486 /usr/local/X11R4/include \
9487 \
9488 /usr/local/include/X11R6 \
9489 /usr/local/include/X11R5 \
9490 /usr/local/include/X11R4 \
9491 \
9492 /usr/X11/include \
9493 /usr/include/X11 \
9494 /usr/local/X11/include \
9495 /usr/local/include/X11 \
9496 \
9497 /usr/X386/include \
9498 /usr/x386/include \
9499 /usr/XFree86/include/X11 \
9500 \
cf27ef00 9501 X:/XFree86/include \
ec14dd32
VZ
9502 X:/XFree86/include/X11 \
9503 \
10f2d63a
VZ
9504 /usr/include/gtk \
9505 /usr/local/include/gtk \
9506 /usr/include/glib \
9507 /usr/local/include/glib \
9508 \
9509 /usr/include/qt \
9510 /usr/local/include/qt \
9511 \
9512 /usr/include/windows \
9513 /usr/include/wine \
9514 /usr/local/include/wine \
9515 \
9516 /usr/unsupported/include \
9517 /usr/athena/include \
9518 /usr/local/x11r5/include \
9519 /usr/lpp/Xamples/include \
9520 \
10f2d63a 9521 /usr/openwin/share/include \
928b5c08
VZ
9522 \
9523 /usr/include"
10f2d63a
VZ
9524
9525SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9526
698dcdb6
VZ
9527
9528cat > confcache <<\EOF
10f2d63a
VZ
9529# This file is a shell script that caches the results of configure
9530# tests run on this system so they can be shared between configure
698dcdb6
VZ
9531# scripts and configure runs. It is not useful on other systems.
9532# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9533#
698dcdb6
VZ
9534# By default, configure uses ./config.cache as the cache file,
9535# creating it if it does not exist already. You can give configure
9536# the --cache-file=FILE option to use a different cache file; that is
9537# what configure does when it calls configure scripts in
9538# subdirectories, so they share the cache.
9539# Giving --cache-file=/dev/null disables caching, for debugging configure.
9540# config.status only pays attention to the cache file if you give it the
9541# --recheck option to rerun configure.
10f2d63a 9542#
698dcdb6 9543EOF
10f2d63a
VZ
9544# The following way of writing the cache mishandles newlines in values,
9545# but we know of no workaround that is simple, portable, and efficient.
9546# So, don't put newlines in cache variables' values.
9547# Ultrix sh set writes to stderr and can't be redirected directly,
9548# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9549(set) 2>&1 |
9550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9551 *ac_space=\ *)
9552 # `set' does not quote correctly, so add quotes (double-quote substitution
9553 # turns \\\\ into \\, and sed turns \\ into \).
9554 sed -n \
9555 -e "s/'/'\\\\''/g" \
9556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9557 ;;
9558 *)
9559 # `set' quotes correctly as required by POSIX, so do not add quotes.
9560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9561 ;;
9562 esac >> confcache
9563if cmp -s $cache_file confcache; then
9564 :
9565else
10f2d63a 9566 if test -w $cache_file; then
698dcdb6
VZ
9567 echo "updating cache $cache_file"
9568 cat confcache > $cache_file
10f2d63a
VZ
9569 else
9570 echo "not updating unwritable cache $cache_file"
9571 fi
9572fi
9573rm -f confcache
9574
698dcdb6
VZ
9575
9576
4f14bcd8 9577
18dbb1f6
VZ
9578REGEX_INCLUDE=
9579if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9580 cat >> confdefs.h <<\EOF
9581#define wxUSE_REGEX 1
9582EOF
9583
9584
9585 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9586 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9587echo $ac_n "checking for regex.h""... $ac_c" 1>&6
cb61c62d 9588echo "configure:9589: checking for regex.h" >&5
18dbb1f6
VZ
9589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591else
9592 cat > conftest.$ac_ext <<EOF
cb61c62d 9593#line 9594 "configure"
18dbb1f6
VZ
9594#include "confdefs.h"
9595#include <regex.h>
9596EOF
9597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 9598{ (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9600if test -z "$ac_err"; then
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=yes"
9603else
9604 echo "$ac_err" >&5
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -rf conftest*
9608 eval "ac_cv_header_$ac_safe=no"
9609fi
9610rm -f conftest*
9611fi
9612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 for ac_func in regcomp
9615do
9616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 9617echo "configure:9618: checking for $ac_func" >&5
18dbb1f6
VZ
9618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620else
9621 cat > conftest.$ac_ext <<EOF
cb61c62d 9622#line 9623 "configure"
18dbb1f6
VZ
9623#include "confdefs.h"
9624/* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func(); below. */
9626#include <assert.h>
9627/* Override any gcc2 internal prototype to avoid an error. */
9628/* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630char $ac_func();
9631
9632int main() {
9633
9634/* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638choke me
9639#else
9640$ac_func();
9641#endif
9642
9643; return 0; }
9644EOF
cb61c62d 9645if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9646 rm -rf conftest*
9647 eval "ac_cv_func_$ac_func=yes"
9648else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_func_$ac_func=no"
9653fi
9654rm -f conftest*
9655fi
9656
9657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9660 cat >> confdefs.h <<EOF
9661#define $ac_tr_func 1
9662EOF
9663
9664else
9665 echo "$ac_t""no" 1>&6
9666fi
9667done
9668
9669else
9670 echo "$ac_t""no" 1>&6
9671fi
9672
9673
4f14bcd8
GD
9674 if test "x$ac_cv_func_regcomp" != "xyes"; then
9675 if test "$wxUSE_REGEX" = "sys" ; then
9676 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9677 else
a3df447d 9678 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9679 wxUSE_REGEX=builtin
9680 fi
9681 else
9682 wxUSE_REGEX=sys
18dbb1f6 9683 fi
18dbb1f6
VZ
9684 fi
9685
4f14bcd8
GD
9686 if test "$wxUSE_REGEX" = "builtin" ; then
9687 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9688 fi
18dbb1f6
VZ
9689fi
9690
9691
4f14bcd8
GD
9692ZLIB_INCLUDE=
9693ZLIB_LINK=
9694if test "$wxUSE_ZLIB" != "no" ; then
9695 cat >> confdefs.h <<\EOF
9696#define wxUSE_ZLIB 1
9697EOF
dad6c0ea 9698
10f2d63a 9699
4f14bcd8
GD
9700 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9701 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9702echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
cb61c62d 9703echo "configure:9704: checking for zlib.h" >&5
3a922bb4
RL
9704if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706else
9707 cat > conftest.$ac_ext <<EOF
cb61c62d 9708#line 9709 "configure"
3a922bb4 9709#include "confdefs.h"
4f14bcd8 9710#include <zlib.h>
3a922bb4
RL
9711EOF
9712ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 9713{ (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9714ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9715if test -z "$ac_err"; then
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=yes"
9718else
9719 echo "$ac_err" >&5
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -rf conftest*
9723 eval "ac_cv_header_$ac_safe=no"
9724fi
9725rm -f conftest*
9726fi
9727if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
4f14bcd8 9729 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
cb61c62d 9730echo "configure:9731: checking for deflate in -lz" >&5
4f14bcd8
GD
9731ac_lib_var=`echo z'_'deflate | 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="-lz $LIBS"
9737cat > conftest.$ac_ext <<EOF
cb61c62d 9738#line 9739 "configure"
4f14bcd8
GD
9739#include "confdefs.h"
9740/* Override any gcc2 internal prototype to avoid an error. */
9741/* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743char deflate();
9744
9745int main() {
9746deflate()
9747; return 0; }
3a922bb4 9748EOF
cb61c62d 9749if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
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"
9757fi
9758rm -f conftest*
9759LIBS="$ac_save_LIBS"
9760
9761fi
9762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
3d63bc3a 9764 ZLIB_LINK=" -lz"
3a922bb4
RL
9765else
9766 echo "$ac_t""no" 1>&6
9767fi
10f2d63a 9768
4f14bcd8
GD
9769else
9770 echo "$ac_t""no" 1>&6
9771fi
9772
9773
9774 if test "x$ZLIB_LINK" = "x" ; then
9775 if test "$wxUSE_ZLIB" = "sys" ; then
9776 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9777 else
a3df447d 9778 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9779 wxUSE_ZLIB=builtin
9780 fi
9781 else
9782 wxUSE_ZLIB=sys
9783 fi
9784 fi
9785
9786 if test "$wxUSE_ZLIB" = "builtin" ; then
9787 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9788 fi
9789fi
9790
9791
9792PNG_INCLUDE=
9793PNG_LINK=
9794if test "$wxUSE_LIBPNG" != "no" ; then
9795 cat >> confdefs.h <<\EOF
9796#define wxUSE_LIBPNG 1
9797EOF
9798
81809c07
VS
9799
9800 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9801 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9802 wxUSE_LIBPNG=sys
9803 fi
4f14bcd8 9804
81809c07 9805 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9806 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9807 wxUSE_LIBPNG=builtin
9808 fi
9809
81809c07
VS
9810 if test "$wxUSE_MGL" != 1 ; then
9811 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9812 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4f14bcd8 9813echo $ac_n "checking for png.h""... $ac_c" 1>&6
cb61c62d 9814echo "configure:9815: checking for png.h" >&5
d4158b5d
VS
9815if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817else
9818 cat > conftest.$ac_ext <<EOF
cb61c62d 9819#line 9820 "configure"
d4158b5d 9820#include "confdefs.h"
4f14bcd8 9821#include <png.h>
d4158b5d
VS
9822EOF
9823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 9824{ (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9825ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9826if test -z "$ac_err"; then
9827 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes"
9829else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 eval "ac_cv_header_$ac_safe=no"
9835fi
9836rm -f conftest*
9837fi
9838if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9839 echo "$ac_t""yes" 1>&6
4f14bcd8 9840 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
cb61c62d 9841echo "configure:9842: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9842ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845else
4f14bcd8
GD
9846 ac_save_LIBS="$LIBS"
9847LIBS="-lpng -lz -lm $LIBS"
9848cat > conftest.$ac_ext <<EOF
cb61c62d 9849#line 9850 "configure"
3a922bb4 9850#include "confdefs.h"
4f14bcd8
GD
9851/* Override any gcc2 internal prototype to avoid an error. */
9852/* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9854char png_check_sig();
f6bcfd97 9855
4f14bcd8
GD
9856int main() {
9857png_check_sig()
3a922bb4
RL
9858; return 0; }
9859EOF
cb61c62d 9860if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9861 rm -rf conftest*
4f14bcd8 9862 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9863else
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 rm -rf conftest*
4f14bcd8 9867 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9868fi
9869rm -f conftest*
4f14bcd8 9870LIBS="$ac_save_LIBS"
10f2d63a 9871
4f14bcd8
GD
9872fi
9873if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
3d63bc3a 9875 PNG_LINK=" -lpng"
4f14bcd8
GD
9876else
9877 echo "$ac_t""no" 1>&6
9878fi
32832908 9879
81809c07 9880
4f14bcd8
GD
9881else
9882 echo "$ac_t""no" 1>&6
9883fi
3a922bb4 9884
7b7a7637 9885
81809c07
VS
9886 if test "x$PNG_LINK" = "x" ; then
9887 if test "$wxUSE_LIBPNG" = "sys" ; then
9888 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9889 else
9890 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9891 wxUSE_LIBPNG=builtin
9892 fi
4f14bcd8 9893 else
81809c07 9894 wxUSE_LIBPNG=yes
4f14bcd8 9895 fi
4f14bcd8 9896 fi
3a922bb4
RL
9897 fi
9898
4f14bcd8
GD
9899 if test "$wxUSE_LIBPNG" = "builtin" ; then
9900 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9901 fi
9902
4f14bcd8 9903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9904fi
9905
32832908 9906
4f14bcd8
GD
9907JPEG_INCLUDE=
9908JPEG_LINK=
9909if test "$wxUSE_LIBJPEG" != "no" ; then
9910 cat >> confdefs.h <<\EOF
9911#define wxUSE_LIBJPEG 1
9912EOF
10f2d63a 9913
8168de4c 9914
81809c07
VS
9915 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9916 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9917 wxUSE_LIBJPEG=sys
9918 fi
9919
9920 if test "$wxUSE_MGL" != 1 ; then
9921 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9922 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
cb61c62d 9923echo "configure:9924: checking for jpeglib.h" >&5
81809c07 9924 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926else
4f14bcd8 9927 cat > conftest.$ac_ext <<EOF
cb61c62d 9928#line 9929 "configure"
4f14bcd8 9929#include "confdefs.h"
8168de4c 9930
81809c07
VS
9931 #undef HAVE_STDLIB_H
9932 #include <stdio.h>
9933 #include <jpeglib.h>
9934
4f14bcd8
GD
9935int main() {
9936
81809c07 9937
4f14bcd8
GD
9938; return 0; }
9939EOF
cb61c62d 9940if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9941 rm -rf conftest*
9942 ac_cv_header_jpeglib_h=yes
6f72b082 9943else
4f14bcd8
GD
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947 ac_cv_header_jpeglib_h=no
81809c07 9948
4f14bcd8
GD
9949fi
9950rm -f conftest*
81809c07 9951
698dcdb6 9952fi
6f72b082 9953
81809c07 9954 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
4f14bcd8 9955
81809c07
VS
9956 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9957 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
cb61c62d 9958echo "configure:9959: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9959ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9962else
4f14bcd8
GD
9963 ac_save_LIBS="$LIBS"
9964LIBS="-ljpeg $LIBS"
9965cat > conftest.$ac_ext <<EOF
cb61c62d 9966#line 9967 "configure"
4f14bcd8
GD
9967#include "confdefs.h"
9968/* Override any gcc2 internal prototype to avoid an error. */
9969/* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9971char jpeg_read_header();
698dcdb6 9972
4f14bcd8
GD
9973int main() {
9974jpeg_read_header()
9975; return 0; }
9976EOF
cb61c62d 9977if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9978 rm -rf conftest*
9979 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9980else
4f14bcd8
GD
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9985fi
4f14bcd8
GD
9986rm -f conftest*
9987LIBS="$ac_save_LIBS"
698dcdb6 9988
4f14bcd8
GD
9989fi
9990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
3d63bc3a 9992 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9993else
9994 echo "$ac_t""no" 1>&6
9995fi
9996
81809c07 9997 fi
4f14bcd8 9998
81809c07
VS
9999 if test "x$JPEG_LINK" = "x" ; then
10000 if test "$wxUSE_LIBJPEG" = "sys" ; then
10001 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10002 else
10003 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10004 wxUSE_LIBJPEG=builtin
10005 fi
4f14bcd8 10006 else
81809c07 10007 wxUSE_LIBJPEG=sys
4f14bcd8 10008 fi
4f14bcd8
GD
10009 fi
10010 fi
10011
10012 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10013 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10014 fi
10015fi
10016
10017
10018TIFF_INCLUDE=
10019TIFF_LINK=
10020if test "$wxUSE_LIBTIFF" != "no" ; then
10021 cat >> confdefs.h <<\EOF
10022#define wxUSE_LIBTIFF 1
10023EOF
10024
10025
10026 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10027 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10028echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
cb61c62d 10029echo "configure:10030: checking for tiffio.h" >&5
4f14bcd8
GD
10030if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032else
10033 cat > conftest.$ac_ext <<EOF
cb61c62d 10034#line 10035 "configure"
4f14bcd8
GD
10035#include "confdefs.h"
10036#include <tiffio.h>
10037EOF
10038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 10039{ (eval echo configure:10040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10041if test -z "$ac_err"; then
10042 rm -rf conftest*
10043 eval "ac_cv_header_$ac_safe=yes"
10044else
10045 echo "$ac_err" >&5
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 eval "ac_cv_header_$ac_safe=no"
10050fi
10051rm -f conftest*
10052fi
10053if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
cb61c62d 10056echo "configure:10057: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
10057ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060else
10061 ac_save_LIBS="$LIBS"
10062LIBS="-ltiff -lm $LIBS"
10063cat > conftest.$ac_ext <<EOF
cb61c62d 10064#line 10065 "configure"
4f14bcd8
GD
10065#include "confdefs.h"
10066/* Override any gcc2 internal prototype to avoid an error. */
10067/* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069char TIFFError();
10070
10071int main() {
10072TIFFError()
10073; return 0; }
10074EOF
cb61c62d 10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10076 rm -rf conftest*
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10078else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 eval "ac_cv_lib_$ac_lib_var=no"
10083fi
10084rm -f conftest*
10085LIBS="$ac_save_LIBS"
10086
10087fi
10088if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
3d63bc3a 10090 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10091else
10092 echo "$ac_t""no" 1>&6
10093fi
10094
10095
10096else
10097 echo "$ac_t""no" 1>&6
10098fi
10099
10100
10101 if test "x$TIFF_LINK" = "x" ; then
10102 if test "$wxUSE_LIBTIFF" = "sys" ; then
10103 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10104 else
a3df447d 10105 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10106 wxUSE_LIBTIFF=builtin
10107 fi
10108 else
10109 wxUSE_LIBTIFF=sys
10110 fi
10111 fi
10112
10113 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10114 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10115 fi
10116fi
10117
10118
4f14bcd8
GD
10119AFMINSTALL=
10120
10121TOOLKIT=
10122TOOLKIT_INCLUDE=
10123WIDGET_SET=
10124
10125if test "$USE_WIN32" = 1 ; then
10126 for ac_hdr in w32api.h
10127do
10128ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10129echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 10130echo "configure:10131: checking for $ac_hdr" >&5
4f14bcd8
GD
10131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133else
10134 cat > conftest.$ac_ext <<EOF
cb61c62d 10135#line 10136 "configure"
4f14bcd8
GD
10136#include "confdefs.h"
10137#include <$ac_hdr>
10138EOF
10139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 10140{ (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10142if test -z "$ac_err"; then
10143 rm -rf conftest*
10144 eval "ac_cv_header_$ac_safe=yes"
10145else
10146 echo "$ac_err" >&5
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 eval "ac_cv_header_$ac_safe=no"
10151fi
10152rm -f conftest*
10153fi
10154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10157 cat >> confdefs.h <<EOF
10158#define $ac_tr_hdr 1
10159EOF
10160
10161else
10162 echo "$ac_t""no" 1>&6
10163fi
10164done
10165
10166 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10167echo $ac_n "checking for windows.h""... $ac_c" 1>&6
cb61c62d 10168echo "configure:10169: checking for windows.h" >&5
4f14bcd8
GD
10169if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171else
10172 cat > conftest.$ac_ext <<EOF
cb61c62d 10173#line 10174 "configure"
4f14bcd8
GD
10174#include "confdefs.h"
10175#include <windows.h>
10176EOF
10177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 10178{ (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180if test -z "$ac_err"; then
10181 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes"
10183else
10184 echo "$ac_err" >&5
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=no"
10189fi
10190rm -f conftest*
10191fi
10192if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 :
10195else
10196 echo "$ac_t""no" 1>&6
10197
10198 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10199
10200fi
10201
10202
10203 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
cb61c62d 10204echo "configure:10205: checking if w32api has good enough MSIE support" >&5
ea7682f0 10205if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208
10209 cat > conftest.$ac_ext <<EOF
cb61c62d 10210#line 10211 "configure"
4f14bcd8
GD
10211#include "confdefs.h"
10212#include <w32api.h>
10213int main() {
10214
10215 #define wxCHECK_W32API_VERSION( major, minor ) \
10216 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10217 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10218 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10219
10220 #if !wxCHECK_W32API_VERSION(1,1)
10221 #error You need w32api 1.1 or newer
10222 #endif
10223
10224; return 0; }
10225EOF
cb61c62d 10226if { (eval echo configure:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10227 rm -rf conftest*
10228
ea7682f0 10229 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10230
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235
ea7682f0 10236 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10237
10238fi
10239rm -f conftest*
10240
10241fi
10242
ea7682f0
VS
10243echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10244 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10245 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10246 fi
4f14bcd8
GD
10247
10248 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10249
77e13408
RL
10250 case "${host}" in
10251 *-*-cygwin* )
10252 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10253 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10254 esac
4f14bcd8
GD
10255
10256 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10257 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10258 fi
10259
4f14bcd8
GD
10260 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10261 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10262fi
10263
10264if test "$wxUSE_GUI" = "yes"; then
10265 USE_GUI=1
10266
10267 GUI_TK_LIBRARY=
10268
10269 WXGTK12=
10270 WXGTK127=
10271 WXGTK20=
10272
77e13408 10273 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10274 TOOLKIT=MSW
10275 GUIDIST=MSW_DIST
77e13408
RL
10276
10277 case "${host}" in
10278 *-*-mingw32* )
3d63bc3a 10279 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10280 esac
4f14bcd8
GD
10281 fi
10282
10283 if test "$wxUSE_GTK" = 1; then
10284 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
cb61c62d 10285echo "configure:10286: checking for GTK+ version" >&5
4f14bcd8
GD
10286
10287 gtk_version_cached=1
10288 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290else
10291
10292 gtk_version_cached=0
d48ad9bd 10293 echo "$ac_t""" 1>&6
4f14bcd8 10294
3f345b47
VZ
10295 GTK_MODULES=
10296 if test "$wxUSE_THREADS" = "yes"; then
10297 GTK_MODULES=gthread
10298 fi
10299
4f14bcd8
GD
10300 wx_cv_lib_gtk=
10301 if test "x$wxUSE_GTK2" = "xyes"; then
10302 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10303if test "${with_gtk_prefix+set}" = set; then
10304 withval="$with_gtk_prefix"
10305 gtk_config_prefix="$withval"
10306else
10307 gtk_config_prefix=""
10308fi
10309
10310# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10311if test "${with_gtk_exec_prefix+set}" = set; then
10312 withval="$with_gtk_exec_prefix"
10313 gtk_config_exec_prefix="$withval"
10314else
10315 gtk_config_exec_prefix=""
10316fi
10317
10318# Check whether --enable-gtktest or --disable-gtktest was given.
10319if test "${enable_gtktest+set}" = set; then
10320 enableval="$enable_gtktest"
10321 :
10322else
10323 enable_gtktest=yes
10324fi
10325
10326
3f345b47 10327 for module in . $GTK_MODULES
4f14bcd8 10328 do
6f72b082 10329 case "$module" in
8168de4c 10330 gthread)
6f72b082
OK
10331 gtk_config_args="$gtk_config_args gthread"
10332 ;;
10333 esac
10334 done
10335
10336 if test x$gtk_config_exec_prefix != x ; then
10337 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10338 if test x${GTK_CONFIG_2_0+set} != xset ; then
10339 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10340 fi
10341 fi
10342 if test x$gtk_config_prefix != x ; then
10343 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10344 if test x${GTK_CONFIG_2_0+set} != xset ; then
10345 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10346 fi
10347 fi
10348
10349 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10350set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10351echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 10352echo "configure:10353: checking for $ac_word" >&5
698dcdb6
VZ
10353if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10355else
698dcdb6
VZ
10356 case "$GTK_CONFIG_2_0" in
10357 /*)
6f72b082
OK
10358 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10359 ;;
698dcdb6
VZ
10360 ?:/*)
10361 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10362 ;;
6f72b082 10363 *)
698dcdb6
VZ
10364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10365 ac_dummy="$PATH"
10366 for ac_dir in $ac_dummy; do
10367 test -z "$ac_dir" && ac_dir=.
10368 if test -f $ac_dir/$ac_word; then
10369 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10370 break
10371 fi
10372 done
10373 IFS="$ac_save_ifs"
6f72b082
OK
10374 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10375 ;;
10376esac
10377fi
698dcdb6 10378GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10379if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10380 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10381else
698dcdb6 10382 echo "$ac_t""no" 1>&6
6f72b082
OK
10383fi
10384
10385 min_gtk_version=1.3.1
698dcdb6 10386 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
cb61c62d 10387echo "configure:10388: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10388 no_gtk=""
10389 if test "$GTK_CONFIG_2_0" = "no" ; then
10390 no_gtk=yes
10391 else
10392 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10393 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10394 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10396 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10398 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10400 if test "x$enable_gtktest" = "xyes" ; then
10401 ac_save_CFLAGS="$CFLAGS"
10402 ac_save_LIBS="$LIBS"
10403 CFLAGS="$CFLAGS $GTK_CFLAGS"
10404 LIBS="$GTK_LIBS $LIBS"
10405 rm -f conf.gtktest
10406 if test "$cross_compiling" = yes; then
10407 echo $ac_n "cross compiling; assumed OK... $ac_c"
10408else
698dcdb6 10409 cat > conftest.$ac_ext <<EOF
cb61c62d 10410#line 10411 "configure"
6f72b082
OK
10411#include "confdefs.h"
10412
10413#include <gtk/gtk.h>
10414#include <stdio.h>
10415#include <stdlib.h>
10416
8168de4c 10417int
6f72b082
OK
10418main ()
10419{
10420 int major, minor, micro;
10421 char *tmp_version;
10422
10423 system ("touch conf.gtktest");
10424
10425 /* HP/UX 9 (%@#!) writes to sscanf strings */
10426 tmp_version = g_strdup("$min_gtk_version");
10427 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10428 printf("%s, bad version string\n", "$min_gtk_version");
10429 exit(1);
10430 }
10431
10432 if ((gtk_major_version != $gtk_config_major_version) ||
10433 (gtk_minor_version != $gtk_config_minor_version) ||
10434 (gtk_micro_version != $gtk_config_micro_version))
10435 {
8168de4c 10436 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10437 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10438 gtk_major_version, gtk_minor_version, gtk_micro_version);
10439 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10440 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10441 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10442 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10443 printf("*** required on your system.\n");
10444 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10445 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10446 printf("*** before re-running configure\n");
8168de4c 10447 }
6f72b082
OK
10448#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10449 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10450 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10451 (gtk_micro_version != GTK_MICRO_VERSION))
10452 {
10453 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10454 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10455 printf("*** library (version %d.%d.%d)\n",
8168de4c 10456 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10457 }
10458#endif /* defined (GTK_MAJOR_VERSION) ... */
10459 else
10460 {
10461 if ((gtk_major_version > major) ||
10462 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10463 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10464 {
10465 return 0;
10466 }
10467 else
10468 {
10469 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10470 gtk_major_version, gtk_minor_version, gtk_micro_version);
10471 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10472 major, minor, micro);
6f72b082
OK
10473 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10474 printf("***\n");
10475 printf("*** If you have already installed a sufficiently new version, this error\n");
10476 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10477 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10478 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10479 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10480 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10481 printf("*** so that the correct libraries are found at run-time))\n");
10482 }
10483 }
10484 return 1;
10485}
10486
698dcdb6 10487EOF
cb61c62d 10488if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10489then
6f72b082
OK
10490 :
10491else
698dcdb6
VZ
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -fr conftest*
10495 no_gtk=yes
6f72b082 10496fi
698dcdb6 10497rm -fr conftest*
6f72b082 10498fi
698dcdb6 10499
6f72b082
OK
10500 CFLAGS="$ac_save_CFLAGS"
10501 LIBS="$ac_save_LIBS"
10502 fi
10503 fi
10504 if test "x$no_gtk" = x ; then
698dcdb6 10505 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10506 wx_cv_lib_gtk=2.0
6f72b082 10507 else
698dcdb6 10508 echo "$ac_t""no" 1>&6
6f72b082
OK
10509 if test "$GTK_CONFIG_2_0" = "no" ; then
10510 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10511 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10512 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10513 echo "*** full path to gtk-config-2.0."
10514 else
10515 if test -f conf.gtktest ; then
10516 :
10517 else
10518 echo "*** Could not run GTK test program, checking why..."
10519 CFLAGS="$CFLAGS $GTK_CFLAGS"
10520 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10521 cat > conftest.$ac_ext <<EOF
cb61c62d 10522#line 10523 "configure"
6f72b082
OK
10523#include "confdefs.h"
10524
10525#include <gtk/gtk.h>
10526#include <stdio.h>
10527
698dcdb6
VZ
10528int main() {
10529 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10530; return 0; }
10531EOF
cb61c62d 10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10533 rm -rf conftest*
6f72b082
OK
10534 echo "*** The test program compiled, but did not run. This usually means"
10535 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10536 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10539 echo "*** is required on your system"
8168de4c 10540 echo "***"
6f72b082
OK
10541 echo "*** If you have an old version installed, it is best to remove it, although"
10542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10543 echo "***"
10544 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10545 echo "*** came with the system with the command"
10546 echo "***"
698dcdb6 10547 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10548else
698dcdb6
VZ
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -rf conftest*
10552 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10553 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10554 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10555 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10556fi
698dcdb6 10557rm -f conftest*
6f72b082
OK
10558 CFLAGS="$ac_save_CFLAGS"
10559 LIBS="$ac_save_LIBS"
10560 fi
10561 fi
10562 GTK_CFLAGS=""
10563 GTK_LIBS=""
3f345b47 10564 :
8168de4c
VZ
10565 fi
10566
10567
10568 rm -f conf.gtktest
10569
10570 fi
10571
10572 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10573 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10574if test "${with_gtk_prefix+set}" = set; then
10575 withval="$with_gtk_prefix"
10576 gtk_config_prefix="$withval"
10577else
10578 gtk_config_prefix=""
10579fi
10580
10581# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10582if test "${with_gtk_exec_prefix+set}" = set; then
10583 withval="$with_gtk_exec_prefix"
10584 gtk_config_exec_prefix="$withval"
10585else
10586 gtk_config_exec_prefix=""
10587fi
10588
10589# Check whether --enable-gtktest or --disable-gtktest was given.
10590if test "${enable_gtktest+set}" = set; then
10591 enableval="$enable_gtktest"
10592 :
10593else
10594 enable_gtktest=yes
10595fi
10596
10597
10598 for module in . $GTK_MODULES
10599 do
10600 case "$module" in
10601 gthread)
10602 gtk_config_args="$gtk_config_args gthread"
10603 ;;
10604 esac
10605 done
10606
10f2d63a
VZ
10607 if test x$gtk_config_exec_prefix != x ; then
10608 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10609 if test x${GTK_CONFIG+set} != xset ; then
10610 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10611 fi
10612 fi
10613 if test x$gtk_config_prefix != x ; then
10614 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10615 if test x${GTK_CONFIG+set} != xset ; then
10616 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10617 fi
10618 fi
10619
10620 # Extract the first word of "gtk-config", so it can be a program name with args.
10621set dummy gtk-config; ac_word=$2
698dcdb6 10622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 10623echo "configure:10624: checking for $ac_word" >&5
698dcdb6
VZ
10624if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10626else
698dcdb6
VZ
10627 case "$GTK_CONFIG" in
10628 /*)
f6bcfd97
BP
10629 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10630 ;;
698dcdb6
VZ
10631 ?:/*)
10632 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10633 ;;
f6bcfd97 10634 *)
698dcdb6
VZ
10635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10636 ac_dummy="$PATH"
10637 for ac_dir in $ac_dummy; do
10638 test -z "$ac_dir" && ac_dir=.
10639 if test -f $ac_dir/$ac_word; then
10640 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10641 break
10642 fi
10643 done
10644 IFS="$ac_save_ifs"
f6bcfd97
BP
10645 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10646 ;;
10647esac
10648fi
698dcdb6 10649GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10650if test -n "$GTK_CONFIG"; then
698dcdb6 10651 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10652else
698dcdb6 10653 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10654fi
10655
10656 min_gtk_version=1.2.7
698dcdb6 10657 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
cb61c62d 10658echo "configure:10659: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10659 no_gtk=""
3f345b47
VZ
10660 if test "$GTK_CONFIG" = "no" ; then
10661 no_gtk=yes
10662 else
10663 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10664 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10665 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10667 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10669 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10670 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10671 if test "x$enable_gtktest" = "xyes" ; then
10672 ac_save_CFLAGS="$CFLAGS"
10673 ac_save_LIBS="$LIBS"
10674 CFLAGS="$CFLAGS $GTK_CFLAGS"
10675 LIBS="$GTK_LIBS $LIBS"
10676 rm -f conf.gtktest
10677 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10678 echo $ac_n "cross compiling; assumed OK... $ac_c"
10679else
698dcdb6 10680 cat > conftest.$ac_ext <<EOF
cb61c62d 10681#line 10682 "configure"
f6bcfd97
BP
10682#include "confdefs.h"
10683
10684#include <gtk/gtk.h>
f6bcfd97
BP
10685#include <stdio.h>
10686#include <stdlib.h>
10687
3f345b47 10688int
f6bcfd97
BP
10689main ()
10690{
10691 int major, minor, micro;
3f345b47 10692 char *tmp_version;
f6bcfd97 10693
3f345b47 10694 system ("touch conf.gtktest");
f6bcfd97 10695
3f345b47
VZ
10696 /* HP/UX 9 (%@#!) writes to sscanf strings */
10697 tmp_version = g_strdup("$min_gtk_version");
10698 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10699 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10700 exit(1);
10701 }
10702
3f345b47
VZ
10703 if ((gtk_major_version != $gtk_config_major_version) ||
10704 (gtk_minor_version != $gtk_config_minor_version) ||
10705 (gtk_micro_version != $gtk_config_micro_version))
10706 {
10707 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10708 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10709 gtk_major_version, gtk_minor_version, gtk_micro_version);
10710 printf ("*** was found! If gtk-config was correct, then it is best\n");
10711 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10712 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10713 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10714 printf("*** required on your system.\n");
10715 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10716 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10717 printf("*** before re-running configure\n");
10718 }
10719#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10720 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10721 (gtk_minor_version != GTK_MINOR_VERSION) ||
10722 (gtk_micro_version != GTK_MICRO_VERSION))
10723 {
10724 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10725 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10726 printf("*** library (version %d.%d.%d)\n",
10727 gtk_major_version, gtk_minor_version, gtk_micro_version);
10728 }
10729#endif /* defined (GTK_MAJOR_VERSION) ... */
10730 else
10731 {
10732 if ((gtk_major_version > major) ||
10733 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10734 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10735 {
10736 return 0;
10737 }
10738 else
10739 {
10740 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10741 gtk_major_version, gtk_minor_version, gtk_micro_version);
10742 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10743 major, minor, micro);
10744 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10745 printf("***\n");
10746 printf("*** If you have already installed a sufficiently new version, this error\n");
10747 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10748 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10749 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10750 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10751 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10752 printf("*** so that the correct libraries are found at run-time))\n");
10753 }
10754 }
10755 return 1;
f6bcfd97
BP
10756}
10757
698dcdb6 10758EOF
cb61c62d 10759if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10760then
f6bcfd97
BP
10761 :
10762else
698dcdb6
VZ
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -fr conftest*
10766 no_gtk=yes
f6bcfd97 10767fi
698dcdb6 10768rm -fr conftest*
f6bcfd97 10769fi
698dcdb6 10770
3f345b47
VZ
10771 CFLAGS="$ac_save_CFLAGS"
10772 LIBS="$ac_save_LIBS"
10773 fi
f6bcfd97
BP
10774 fi
10775 if test "x$no_gtk" = x ; then
698dcdb6 10776 echo "$ac_t""yes" 1>&6
3f345b47 10777 wx_cv_lib_gtk=1.2.7
f6bcfd97 10778 else
698dcdb6 10779 echo "$ac_t""no" 1>&6
3f345b47
VZ
10780 if test "$GTK_CONFIG" = "no" ; then
10781 echo "*** The gtk-config script installed by GTK could not be found"
10782 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10783 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10784 echo "*** full path to gtk-config."
10785 else
10786 if test -f conf.gtktest ; then
10787 :
10788 else
10789 echo "*** Could not run GTK test program, checking why..."
10790 CFLAGS="$CFLAGS $GTK_CFLAGS"
10791 LIBS="$LIBS $GTK_LIBS"
10792 cat > conftest.$ac_ext <<EOF
cb61c62d 10793#line 10794 "configure"
3f345b47
VZ
10794#include "confdefs.h"
10795
10796#include <gtk/gtk.h>
10797#include <stdio.h>
10798
10799int main() {
10800 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10801; return 0; }
10802EOF
cb61c62d 10803if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10804 rm -rf conftest*
10805 echo "*** The test program compiled, but did not run. This usually means"
10806 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10807 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10810 echo "*** is required on your system"
10811 echo "***"
10812 echo "*** If you have an old version installed, it is best to remove it, although"
10813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10814 echo "***"
10815 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10816 echo "*** came with the system with the command"
10817 echo "***"
10818 echo "*** rpm --erase --nodeps gtk gtk-devel"
10819else
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 rm -rf conftest*
10823 echo "*** The test program failed to compile or link. See the file config.log for the"
10824 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10825 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10826 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10827fi
10828rm -f conftest*
10829 CFLAGS="$ac_save_CFLAGS"
10830 LIBS="$ac_save_LIBS"
10831 fi
10832 fi
f6bcfd97
BP
10833 GTK_CFLAGS=""
10834 GTK_LIBS=""
10835 :
10836 fi
698dcdb6
VZ
10837
10838
3f345b47 10839 rm -f conf.gtktest
f6bcfd97 10840
8168de4c
VZ
10841 fi
10842
10843 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10844 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10845if test "${with_gtk_prefix+set}" = set; then
10846 withval="$with_gtk_prefix"
10847 gtk_config_prefix="$withval"
10848else
10849 gtk_config_prefix=""
10850fi
10851
10852# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10853if test "${with_gtk_exec_prefix+set}" = set; then
10854 withval="$with_gtk_exec_prefix"
10855 gtk_config_exec_prefix="$withval"
10856else
10857 gtk_config_exec_prefix=""
10858fi
10859
10860# Check whether --enable-gtktest or --disable-gtktest was given.
10861if test "${enable_gtktest+set}" = set; then
10862 enableval="$enable_gtktest"
10863 :
10864else
10865 enable_gtktest=yes
10866fi
10867
10868
10869 for module in . $GTK_MODULES
10870 do
10871 case "$module" in
10872 gthread)
10873 gtk_config_args="$gtk_config_args gthread"
10874 ;;
10875 esac
10876 done
10877
f6bcfd97
BP
10878 if test x$gtk_config_exec_prefix != x ; then
10879 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10880 if test x${GTK_CONFIG+set} != xset ; then
10881 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10882 fi
10883 fi
10884 if test x$gtk_config_prefix != x ; then
10885 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10886 if test x${GTK_CONFIG+set} != xset ; then
10887 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10888 fi
10889 fi
10890
10891 # Extract the first word of "gtk-config", so it can be a program name with args.
10892set dummy gtk-config; ac_word=$2
698dcdb6 10893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 10894echo "configure:10895: checking for $ac_word" >&5
698dcdb6
VZ
10895if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10897else
698dcdb6
VZ
10898 case "$GTK_CONFIG" in
10899 /*)
10f2d63a
VZ
10900 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10901 ;;
698dcdb6
VZ
10902 ?:/*)
10903 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10904 ;;
10f2d63a 10905 *)
698dcdb6
VZ
10906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10907 ac_dummy="$PATH"
10908 for ac_dir in $ac_dummy; do
10909 test -z "$ac_dir" && ac_dir=.
10910 if test -f $ac_dir/$ac_word; then
10911 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10912 break
10913 fi
10914 done
10915 IFS="$ac_save_ifs"
10f2d63a
VZ
10916 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10917 ;;
10918esac
10919fi
698dcdb6 10920GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10921if test -n "$GTK_CONFIG"; then
698dcdb6 10922 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10923else
698dcdb6 10924 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10925fi
10926
04165bec 10927 min_gtk_version=1.2.3
698dcdb6 10928 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
cb61c62d 10929echo "configure:10930: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10930 no_gtk=""
3f345b47
VZ
10931 if test "$GTK_CONFIG" = "no" ; then
10932 no_gtk=yes
10933 else
10934 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10935 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10936 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10938 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10940 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10942 if test "x$enable_gtktest" = "xyes" ; then
10943 ac_save_CFLAGS="$CFLAGS"
10944 ac_save_LIBS="$LIBS"
10945 CFLAGS="$CFLAGS $GTK_CFLAGS"
10946 LIBS="$GTK_LIBS $LIBS"
10947 rm -f conf.gtktest
10948 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10949 echo $ac_n "cross compiling; assumed OK... $ac_c"
10950else
698dcdb6 10951 cat > conftest.$ac_ext <<EOF
cb61c62d 10952#line 10953 "configure"
10f2d63a
VZ
10953#include "confdefs.h"
10954
10955#include <gtk/gtk.h>
10956#include <stdio.h>
32832908 10957#include <stdlib.h>
10f2d63a 10958
3f345b47 10959int
10f2d63a
VZ
10960main ()
10961{
10962 int major, minor, micro;
3f345b47 10963 char *tmp_version;
10f2d63a 10964
3f345b47 10965 system ("touch conf.gtktest");
10f2d63a 10966
3f345b47
VZ
10967 /* HP/UX 9 (%@#!) writes to sscanf strings */
10968 tmp_version = g_strdup("$min_gtk_version");
10969 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10970 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
10971 exit(1);
10972 }
10973
3f345b47
VZ
10974 if ((gtk_major_version != $gtk_config_major_version) ||
10975 (gtk_minor_version != $gtk_config_minor_version) ||
10976 (gtk_micro_version != $gtk_config_micro_version))
10977 {
10978 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10979 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10980 gtk_major_version, gtk_minor_version, gtk_micro_version);
10981 printf ("*** was found! If gtk-config was correct, then it is best\n");
10982 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10983 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10984 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10985 printf("*** required on your system.\n");
10986 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10987 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10988 printf("*** before re-running configure\n");
10989 }
10990#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10991 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10992 (gtk_minor_version != GTK_MINOR_VERSION) ||
10993 (gtk_micro_version != GTK_MICRO_VERSION))
10994 {
10995 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10996 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10997 printf("*** library (version %d.%d.%d)\n",
10998 gtk_major_version, gtk_minor_version, gtk_micro_version);
10999 }
11000#endif /* defined (GTK_MAJOR_VERSION) ... */
11001 else
11002 {
11003 if ((gtk_major_version > major) ||
11004 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11005 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11006 {
11007 return 0;
11008 }
11009 else
11010 {
11011 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11012 gtk_major_version, gtk_minor_version, gtk_micro_version);
11013 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11014 major, minor, micro);
11015 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11016 printf("***\n");
11017 printf("*** If you have already installed a sufficiently new version, this error\n");
11018 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11019 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11020 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11021 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11022 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11023 printf("*** so that the correct libraries are found at run-time))\n");
11024 }
11025 }
11026 return 1;
10f2d63a
VZ
11027}
11028
698dcdb6 11029EOF
cb61c62d 11030if { (eval echo configure:11031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11031then
10f2d63a
VZ
11032 :
11033else
698dcdb6
VZ
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 rm -fr conftest*
11037 no_gtk=yes
10f2d63a 11038fi
698dcdb6 11039rm -fr conftest*
10f2d63a 11040fi
698dcdb6 11041
3f345b47
VZ
11042 CFLAGS="$ac_save_CFLAGS"
11043 LIBS="$ac_save_LIBS"
11044 fi
10f2d63a
VZ
11045 fi
11046 if test "x$no_gtk" = x ; then
698dcdb6 11047 echo "$ac_t""yes" 1>&6
3f345b47 11048 wx_cv_lib_gtk=1.2.3
10f2d63a 11049 else
698dcdb6 11050 echo "$ac_t""no" 1>&6
3f345b47
VZ
11051 if test "$GTK_CONFIG" = "no" ; then
11052 echo "*** The gtk-config script installed by GTK could not be found"
11053 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11054 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11055 echo "*** full path to gtk-config."
11056 else
11057 if test -f conf.gtktest ; then
11058 :
11059 else
11060 echo "*** Could not run GTK test program, checking why..."
11061 CFLAGS="$CFLAGS $GTK_CFLAGS"
11062 LIBS="$LIBS $GTK_LIBS"
11063 cat > conftest.$ac_ext <<EOF
cb61c62d 11064#line 11065 "configure"
3f345b47
VZ
11065#include "confdefs.h"
11066
11067#include <gtk/gtk.h>
11068#include <stdio.h>
11069
11070int main() {
11071 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11072; return 0; }
11073EOF
cb61c62d 11074if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11075 rm -rf conftest*
11076 echo "*** The test program compiled, but did not run. This usually means"
11077 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11078 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11079 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11080 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11081 echo "*** is required on your system"
11082 echo "***"
11083 echo "*** If you have an old version installed, it is best to remove it, although"
11084 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11085 echo "***"
11086 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11087 echo "*** came with the system with the command"
11088 echo "***"
11089 echo "*** rpm --erase --nodeps gtk gtk-devel"
11090else
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11093 rm -rf conftest*
11094 echo "*** The test program failed to compile or link. See the file config.log for the"
11095 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11096 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11097 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11098fi
11099rm -f conftest*
11100 CFLAGS="$ac_save_CFLAGS"
11101 LIBS="$ac_save_LIBS"
11102 fi
11103 fi
10f2d63a
VZ
11104 GTK_CFLAGS=""
11105 GTK_LIBS=""
7e99ad86 11106 :
10f2d63a 11107 fi
698dcdb6
VZ
11108
11109
3f345b47 11110 rm -f conf.gtktest
10f2d63a 11111
8168de4c
VZ
11112 fi
11113
11114 if test -z "$wx_cv_lib_gtk"; then
11115 wx_cv_lib_gtk=none
138be253
VZ
11116 else
11117 wx_cv_cflags_gtk=$GTK_CFLAGS
11118 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11119 fi
11120
1e6feb95 11121
8168de4c 11122fi
703e0a69 11123
698dcdb6 11124
8168de4c
VZ
11125 if test "$gtk_version_cached" = 1; then
11126 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11127 fi
698dcdb6 11128
8168de4c
VZ
11129 case "$wx_cv_lib_gtk" in
11130 2.0) WXGTK20=1
11131 ;;
11132 1.2.7) WXGTK127=1
d1a8d972 11133 WXGTK12=1
8168de4c
VZ
11134 ;;
11135 1.2.3) WXGTK12=1
11136 ;;
11137 *) { echo "configure: error:
11138Please check that gtk-config is in path, the directory
11139where GTK+ libraries are installed (returned by
11140'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11141equivalent variable and GTK+ is version 1.2.3 or above.
11142 " 1>&2; exit 1; }
11143 ;;
11144 esac
2224580a 11145
138be253 11146 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11147 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11148
1e6feb95
VZ
11149 AFMINSTALL=afminstall
11150 TOOLKIT=GTK
11151 GUIDIST=GTK_DIST
7ec2881a 11152
1e6feb95 11153 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
cb61c62d 11154echo "configure:11155: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11155ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11158else
698dcdb6 11159 ac_save_LIBS="$LIBS"
7ec2881a 11160LIBS="-lgdk $LIBS"
698dcdb6 11161cat > conftest.$ac_ext <<EOF
cb61c62d 11162#line 11163 "configure"
7ec2881a
RR
11163#include "confdefs.h"
11164/* Override any gcc2 internal prototype to avoid an error. */
11165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11166 builtin and then its argument prototype would still apply. */
11167char gdk_im_open();
11168
11169int main() {
11170gdk_im_open()
11171; return 0; }
11172EOF
cb61c62d 11173if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11174 rm -rf conftest*
11175 eval "ac_cv_lib_$ac_lib_var=yes"
11176else
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 rm -rf conftest*
11180 eval "ac_cv_lib_$ac_lib_var=no"
11181fi
11182rm -f conftest*
11183LIBS="$ac_save_LIBS"
11184
11185fi
11186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11187 echo "$ac_t""yes" 1>&6
11188 cat >> confdefs.h <<\EOF
7ec2881a
RR
11189#define HAVE_XIM 1
11190EOF
11191
698dcdb6
VZ
11192else
11193 echo "$ac_t""no" 1>&6
7ec2881a
RR
11194fi
11195
1e6feb95 11196 fi
10f2d63a 11197
1e6feb95 11198 if test "$wxUSE_MGL" = 1; then
1e6feb95 11199 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
cb61c62d 11200echo "configure:11201: checking for SciTech MGL library" >&5
1e6feb95
VZ
11201 if test "x$MGL_ROOT" = x ; then
11202 echo "$ac_t""not found" 1>&6
11203 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11204 else
11205 echo "$ac_t""$MGL_ROOT" 1>&6
11206 fi
11207
f9bc1684
VS
11208 case "${host}" in
11209 *-*-linux* )
11210 mgl_os=linux/gcc/glibc
11211 ;;
11212 *-pc-msdosdjgpp )
11213 mgl_os=dos32/dj2
11214 ;;
11215 *)
11216 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11217 esac
11218
3a922bb4 11219 mgl_lib_type=""
1e6feb95
VZ
11220
11221 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11222 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11223 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11224 mgl_lib_type=debug
1e6feb95
VZ
11225 fi
11226 fi
3a922bb4 11227 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11228 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11229 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11230 mgl_lib_type=release
1e6feb95
VZ
11231 else
11232 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11233 fi
11234 fi
11235
11236 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11237 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11238
11239 AFMINSTALL=afminstall
11240 TOOLKIT=MGL
11241 GUIDIST=MGL_DIST
11242 fi
11243
1725144d
RR
11244 if test "$wxUSE_MICROWIN" = 1; then
11245 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
cb61c62d 11246echo "configure:11247: checking for MicroWindows" >&5
1725144d
RR
11247 if test "x$MICROWINDOWS" = x ; then
11248 echo "$ac_t""not found" 1>&6
11249 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11250 else
11251 echo "$ac_t""$MICROWINDOWS" 1>&6
11252 fi
11253
11254 if test -f $MICROWINDOWS/lib/libmwin.a; then
11255 echo "$ac_t""MicroWindows' libraries found." 1>&6
11256 else
11257 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11258 fi
11259
11260 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11261 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11262
11263 AFMINSTALL=afminstall
11264 TOOLKIT=MICROWIN
11265 GUIDIST=MICROWIN_DIST
11266
11267 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11268 fi
11269
f79bd02d 11270 if test "$wxUSE_X11" = 1; then
d714471b 11271 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11272# paths, otherwise set no_x=yes.
11273# Uses ac_ vars as temps to allow command line to override cache and checks.
11274# --without-x overrides everything else, but does not touch the cache.
11275echo $ac_n "checking for X""... $ac_c" 1>&6
cb61c62d 11276echo "configure:11277: checking for X" >&5
ab9b9eab
VZ
11277
11278# Check whether --with-x or --without-x was given.
11279if test "${with_x+set}" = set; then
11280 withval="$with_x"
698dcdb6
VZ
11281 :
11282fi
ba337fe7 11283
ab9b9eab
VZ
11284# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11285if test "x$with_x" = xno; then
11286 # The user explicitly disabled X.
11287 have_x=disabled
11288else
11289 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11290 # Both variables are already set.
11291 have_x=yes
11292 else
698dcdb6
VZ
11293if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11295else
11296 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11297ac_x_includes=NO ac_x_libraries=NO
11298rm -fr conftestdir
11299if mkdir conftestdir; then
11300 cd conftestdir
ab9b9eab 11301 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11302 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11303acfindx:
11304 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11305EOF
11306 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11307 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11308 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11310 for ac_extension in a so sl; do
ab9b9eab 11311 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11312 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11313 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11314 fi
11315 done
ab9b9eab
VZ
11316 # Screen out bogus values from the imake configuration. They are
11317 # bogus both because they are the default anyway, and because
11318 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11319 case "$ac_im_incroot" in
ab9b9eab 11320 /usr/include) ;;
698dcdb6 11321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11322 esac
698dcdb6 11323 case "$ac_im_usrlibdir" in
ab9b9eab 11324 /usr/lib | /lib) ;;
698dcdb6 11325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11326 esac
ba337fe7 11327 fi
ab9b9eab 11328 cd ..
698dcdb6 11329 rm -fr conftestdir
ab9b9eab 11330fi
10f2d63a 11331
698dcdb6
VZ
11332if test "$ac_x_includes" = NO; then
11333 # Guess where to find include files, by looking for this one X11 .h file.
11334 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11335
ab9b9eab 11336 # First, try using that file with no special directory specified.
698dcdb6 11337cat > conftest.$ac_ext <<EOF
cb61c62d 11338#line 11339 "configure"
ab9b9eab 11339#include "confdefs.h"
698dcdb6
VZ
11340#include <$x_direct_test_include>
11341EOF
11342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 11343{ (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345if test -z "$ac_err"; then
11346 rm -rf conftest*
ab9b9eab
VZ
11347 # We can compile using X headers with no special include directory.
11348ac_x_includes=
11349else
698dcdb6
VZ
11350 echo "$ac_err" >&5
11351 echo "configure: failed program was:" >&5
ab9b9eab 11352 cat conftest.$ac_ext >&5
698dcdb6
VZ
11353 rm -rf conftest*
11354 # Look for the header file in a standard set of common directories.
11355# Check X11 before X11Rn because it is often a symlink to the current release.
11356 for ac_dir in \
11357 /usr/X11/include \
11358 /usr/X11R6/include \
11359 /usr/X11R5/include \
11360 /usr/X11R4/include \
11361 \
11362 /usr/include/X11 \
11363 /usr/include/X11R6 \
11364 /usr/include/X11R5 \
11365 /usr/include/X11R4 \
11366 \
11367 /usr/local/X11/include \
11368 /usr/local/X11R6/include \
11369 /usr/local/X11R5/include \
11370 /usr/local/X11R4/include \
11371 \
11372 /usr/local/include/X11 \
11373 /usr/local/include/X11R6 \
11374 /usr/local/include/X11R5 \
11375 /usr/local/include/X11R4 \
11376 \
11377 /usr/X386/include \
11378 /usr/x386/include \
11379 /usr/XFree86/include/X11 \
11380 \
11381 /usr/include \
11382 /usr/local/include \
11383 /usr/unsupported/include \
11384 /usr/athena/include \
11385 /usr/local/x11r5/include \
11386 /usr/lpp/Xamples/include \
11387 \
11388 /usr/openwin/include \
11389 /usr/openwin/share/include \
11390 ; \
11391 do
11392 if test -r "$ac_dir/$x_direct_test_include"; then
11393 ac_x_includes=$ac_dir
11394 break
11395 fi
11396 done
ab9b9eab 11397fi
698dcdb6
VZ
11398rm -f conftest*
11399fi # $ac_x_includes = NO
10f2d63a 11400
698dcdb6 11401if test "$ac_x_libraries" = NO; then
ab9b9eab 11402 # Check for the libraries.
698dcdb6
VZ
11403
11404 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11405 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11406
ab9b9eab
VZ
11407 # See if we find them without any special options.
11408 # Don't add to $LIBS permanently.
698dcdb6
VZ
11409 ac_save_LIBS="$LIBS"
11410 LIBS="-l$x_direct_test_library $LIBS"
11411cat > conftest.$ac_ext <<EOF
cb61c62d 11412#line 11413 "configure"
ab9b9eab 11413#include "confdefs.h"
698dcdb6
VZ
11414
11415int main() {
11416${x_direct_test_function}()
11417; return 0; }
11418EOF
cb61c62d 11419if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11420 rm -rf conftest*
11421 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11422# We can link X programs with no special library path.
11423ac_x_libraries=
11424else
698dcdb6
VZ
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 LIBS="$ac_save_LIBS"
11429# First see if replacing the include by lib works.
11430# Check X11 before X11Rn because it is often a symlink to the current release.
11431for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11432 /usr/X11/lib \
11433 /usr/X11R6/lib \
11434 /usr/X11R5/lib \
11435 /usr/X11R4/lib \
11436 \
11437 /usr/lib/X11 \
11438 /usr/lib/X11R6 \
11439 /usr/lib/X11R5 \
11440 /usr/lib/X11R4 \
11441 \
11442 /usr/local/X11/lib \
11443 /usr/local/X11R6/lib \
11444 /usr/local/X11R5/lib \
11445 /usr/local/X11R4/lib \
11446 \
11447 /usr/local/lib/X11 \
11448 /usr/local/lib/X11R6 \
11449 /usr/local/lib/X11R5 \
11450 /usr/local/lib/X11R4 \
11451 \
11452 /usr/X386/lib \
11453 /usr/x386/lib \
11454 /usr/XFree86/lib/X11 \
11455 \
11456 /usr/lib \
11457 /usr/local/lib \
11458 /usr/unsupported/lib \
11459 /usr/athena/lib \
11460 /usr/local/x11r5/lib \
11461 /usr/lpp/Xamples/lib \
11462 /lib/usr/lib/X11 \
11463 \
11464 /usr/openwin/lib \
11465 /usr/openwin/share/lib \
11466 ; \
ab9b9eab
VZ
11467do
11468 for ac_extension in a so sl; do
698dcdb6 11469 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11470 ac_x_libraries=$ac_dir
11471 break 2
10f2d63a 11472 fi
10f2d63a 11473 done
ab9b9eab
VZ
11474done
11475fi
698dcdb6
VZ
11476rm -f conftest*
11477fi # $ac_x_libraries = NO
10f2d63a 11478
698dcdb6 11479if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11480 # Didn't find X anywhere. Cache the known absence of X.
11481 ac_cv_have_x="have_x=no"
11482else
11483 # Record where we found X for the cache.
11484 ac_cv_have_x="have_x=yes \
11485 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11486fi
11487fi
10f2d63a 11488 fi
ab9b9eab
VZ
11489 eval "$ac_cv_have_x"
11490fi # $with_x != no
10f2d63a 11491
ab9b9eab 11492if test "$have_x" != yes; then
698dcdb6 11493 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11494 no_x=yes
11495else
11496 # If each of the values was on the command line, it overrides each guess.
11497 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11498 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11499 # Update the cache value to reflect the command line values.
11500 ac_cv_have_x="have_x=yes \
11501 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11502 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11503fi
10f2d63a 11504
ab9b9eab
VZ
11505if test "$no_x" = yes; then
11506 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11507 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11508#define X_DISPLAY_MISSING 1
11509EOF
10f2d63a 11510
ab9b9eab
VZ
11511 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11512else
11513 if test -n "$x_includes"; then
11514 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11515 fi
11516
ab9b9eab
VZ
11517 # It would also be nice to do this for all -L options, not just this one.
11518 if test -n "$x_libraries"; then
11519 X_LIBS="$X_LIBS -L$x_libraries"
11520 # For Solaris; some versions of Sun CC require a space after -R and
11521 # others require no space. Words are not sufficient . . . .
698dcdb6 11522 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11523 "SunOS 5"*)
698dcdb6 11524 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
cb61c62d 11525echo "configure:11526: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11526 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11527 cat > conftest.$ac_ext <<EOF
cb61c62d 11528#line 11529 "configure"
ab9b9eab 11529#include "confdefs.h"
10f2d63a 11530
698dcdb6 11531int main() {
788deba1 11532
698dcdb6
VZ
11533; return 0; }
11534EOF
cb61c62d 11535if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11536 rm -rf conftest*
ab9b9eab
VZ
11537 ac_R_nospace=yes
11538else
698dcdb6
VZ
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 ac_R_nospace=no
ab9b9eab 11543fi
698dcdb6 11544rm -f conftest*
ab9b9eab 11545 if test $ac_R_nospace = yes; then
698dcdb6 11546 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11547 X_LIBS="$X_LIBS -R$x_libraries"
11548 else
11549 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11550 cat > conftest.$ac_ext <<EOF
cb61c62d 11551#line 11552 "configure"
ab9b9eab 11552#include "confdefs.h"
788deba1 11553
698dcdb6 11554int main() {
ab9b9eab 11555
698dcdb6
VZ
11556; return 0; }
11557EOF
cb61c62d 11558if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11559 rm -rf conftest*
ab9b9eab
VZ
11560 ac_R_space=yes
11561else
698dcdb6
VZ
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 rm -rf conftest*
11565 ac_R_space=no
ab9b9eab 11566fi
698dcdb6 11567rm -f conftest*
ab9b9eab 11568 if test $ac_R_space = yes; then
698dcdb6 11569 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11570 X_LIBS="$X_LIBS -R $x_libraries"
11571 else
698dcdb6 11572 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11573 fi
11574 fi
698dcdb6 11575 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11576 esac
11577 fi
11578
11579 # Check for system-dependent libraries X programs must link with.
11580 # Do this before checking for the system-independent R6 libraries
11581 # (-lICE), since we may need -lsocket or whatever for X linking.
11582
11583 if test "$ISC" = yes; then
11584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11585 else
698dcdb6
VZ
11586 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11587 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11588 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11589 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
cb61c62d 11590echo "configure:11591: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11591ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11594else
698dcdb6 11595 ac_save_LIBS="$LIBS"
ab9b9eab 11596LIBS="-ldnet $LIBS"
698dcdb6 11597cat > conftest.$ac_ext <<EOF
cb61c62d 11598#line 11599 "configure"
ab9b9eab
VZ
11599#include "confdefs.h"
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11602 builtin and then its argument prototype would still apply. */
11603char dnet_ntoa();
11604
11605int main() {
11606dnet_ntoa()
11607; return 0; }
11608EOF
cb61c62d 11609if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617fi
11618rm -f conftest*
11619LIBS="$ac_save_LIBS"
11620
11621fi
11622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
ab9b9eab 11624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11625else
11626 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11627fi
11628
11629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11630 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
cb61c62d 11631echo "configure:11632: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11632ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11635else
698dcdb6 11636 ac_save_LIBS="$LIBS"
ab9b9eab 11637LIBS="-ldnet_stub $LIBS"
698dcdb6 11638cat > conftest.$ac_ext <<EOF
cb61c62d 11639#line 11640 "configure"
ab9b9eab
VZ
11640#include "confdefs.h"
11641/* Override any gcc2 internal prototype to avoid an error. */
11642/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11643 builtin and then its argument prototype would still apply. */
11644char dnet_ntoa();
11645
11646int main() {
11647dnet_ntoa()
11648; return 0; }
11649EOF
cb61c62d 11650if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11651 rm -rf conftest*
11652 eval "ac_cv_lib_$ac_lib_var=yes"
11653else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -rf conftest*
11657 eval "ac_cv_lib_$ac_lib_var=no"
11658fi
11659rm -f conftest*
11660LIBS="$ac_save_LIBS"
11661
11662fi
11663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11664 echo "$ac_t""yes" 1>&6
ab9b9eab 11665 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11666else
11667 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11668fi
11669
11670 fi
11671
11672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11673 # to get the SysV transport functions.
698dcdb6 11674 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11675 # needs -lnsl.
11676 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11677 # on Irix 5.2, according to dickey@clark.net.
11678 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
cb61c62d 11679echo "configure:11680: checking for gethostbyname" >&5
698dcdb6
VZ
11680if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11682else
11683 cat > conftest.$ac_ext <<EOF
cb61c62d 11684#line 11685 "configure"
ab9b9eab
VZ
11685#include "confdefs.h"
11686/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11687 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11688#include <assert.h>
11689/* Override any gcc2 internal prototype to avoid an error. */
11690/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11691 builtin and then its argument prototype would still apply. */
11692char gethostbyname();
11693
11694int main() {
ab9b9eab
VZ
11695
11696/* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11700choke me
11701#else
698dcdb6 11702gethostbyname();
ab9b9eab
VZ
11703#endif
11704
698dcdb6
VZ
11705; return 0; }
11706EOF
cb61c62d 11707if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11708 rm -rf conftest*
11709 eval "ac_cv_func_gethostbyname=yes"
11710else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -rf conftest*
11714 eval "ac_cv_func_gethostbyname=no"
11715fi
11716rm -f conftest*
11717fi
11718
11719if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 :
11722else
11723 echo "$ac_t""no" 1>&6
11724fi
ab9b9eab
VZ
11725
11726 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11727 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
cb61c62d 11728echo "configure:11729: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11729ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11732else
698dcdb6 11733 ac_save_LIBS="$LIBS"
ab9b9eab 11734LIBS="-lnsl $LIBS"
698dcdb6 11735cat > conftest.$ac_ext <<EOF
cb61c62d 11736#line 11737 "configure"
ab9b9eab
VZ
11737#include "confdefs.h"
11738/* Override any gcc2 internal prototype to avoid an error. */
11739/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11740 builtin and then its argument prototype would still apply. */
11741char gethostbyname();
6232543b 11742
698dcdb6
VZ
11743int main() {
11744gethostbyname()
11745; return 0; }
11746EOF
cb61c62d 11747if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11750else
698dcdb6
VZ
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=no"
11755fi
11756rm -f conftest*
11757LIBS="$ac_save_LIBS"
1e487827 11758
698dcdb6
VZ
11759fi
11760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11763else
11764 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11765fi
11766
11767 fi
11768
11769 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11770 # socket/setsockopt and other routines are undefined under SCO ODT
11771 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11772 # on later versions), says simon@lia.di.epfl.ch: it contains
11773 # gethostby* variants that don't use the nameserver (or something).
11774 # -lsocket must be given before -lnsl if both are needed.
11775 # We assume that if connect needs -lnsl, so does gethostbyname.
11776 echo $ac_n "checking for connect""... $ac_c" 1>&6
cb61c62d 11777echo "configure:11778: checking for connect" >&5
698dcdb6
VZ
11778if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780else
11781 cat > conftest.$ac_ext <<EOF
cb61c62d 11782#line 11783 "configure"
ab9b9eab
VZ
11783#include "confdefs.h"
11784/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11785 which can conflict with char connect(); below. */
ab9b9eab
VZ
11786#include <assert.h>
11787/* Override any gcc2 internal prototype to avoid an error. */
11788/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11789 builtin and then its argument prototype would still apply. */
11790char connect();
11791
11792int main() {
ab9b9eab
VZ
11793
11794/* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797#if defined (__stub_connect) || defined (__stub___connect)
11798choke me
11799#else
698dcdb6 11800connect();
ab9b9eab
VZ
11801#endif
11802
698dcdb6
VZ
11803; return 0; }
11804EOF
cb61c62d 11805if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11806 rm -rf conftest*
11807 eval "ac_cv_func_connect=yes"
11808else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 eval "ac_cv_func_connect=no"
11813fi
11814rm -f conftest*
11815fi
11816
11817if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 :
11820else
11821 echo "$ac_t""no" 1>&6
11822fi
ab9b9eab
VZ
11823
11824 if test $ac_cv_func_connect = no; then
698dcdb6 11825 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
cb61c62d 11826echo "configure:11827: checking for connect in -lsocket" >&5
698dcdb6
VZ
11827ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11830else
698dcdb6 11831 ac_save_LIBS="$LIBS"
ab9b9eab 11832LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11833cat > conftest.$ac_ext <<EOF
cb61c62d 11834#line 11835 "configure"
ab9b9eab
VZ
11835#include "confdefs.h"
11836/* Override any gcc2 internal prototype to avoid an error. */
11837/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11838 builtin and then its argument prototype would still apply. */
11839char connect();
11840
11841int main() {
11842connect()
11843; return 0; }
11844EOF
cb61c62d 11845if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11846 rm -rf conftest*
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11848else
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -rf conftest*
11852 eval "ac_cv_lib_$ac_lib_var=no"
11853fi
11854rm -f conftest*
11855LIBS="$ac_save_LIBS"
11856
11857fi
11858if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
ab9b9eab 11860 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11861else
11862 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11863fi
11864
11865 fi
11866
698dcdb6
VZ
11867 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11868 echo $ac_n "checking for remove""... $ac_c" 1>&6
cb61c62d 11869echo "configure:11870: checking for remove" >&5
698dcdb6
VZ
11870if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11872else
698dcdb6 11873 cat > conftest.$ac_ext <<EOF
cb61c62d 11874#line 11875 "configure"
ab9b9eab
VZ
11875#include "confdefs.h"
11876/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11877 which can conflict with char remove(); below. */
ab9b9eab
VZ
11878#include <assert.h>
11879/* Override any gcc2 internal prototype to avoid an error. */
11880/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11881 builtin and then its argument prototype would still apply. */
11882char remove();
11883
11884int main() {
ab9b9eab
VZ
11885
11886/* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889#if defined (__stub_remove) || defined (__stub___remove)
11890choke me
11891#else
698dcdb6 11892remove();
ab9b9eab
VZ
11893#endif
11894
698dcdb6
VZ
11895; return 0; }
11896EOF
cb61c62d 11897if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11898 rm -rf conftest*
11899 eval "ac_cv_func_remove=yes"
11900else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -rf conftest*
11904 eval "ac_cv_func_remove=no"
11905fi
11906rm -f conftest*
11907fi
11908
11909if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 :
11912else
11913 echo "$ac_t""no" 1>&6
11914fi
ab9b9eab
VZ
11915
11916 if test $ac_cv_func_remove = no; then
698dcdb6 11917 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
cb61c62d 11918echo "configure:11919: checking for remove in -lposix" >&5
698dcdb6
VZ
11919ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11922else
698dcdb6 11923 ac_save_LIBS="$LIBS"
ab9b9eab 11924LIBS="-lposix $LIBS"
698dcdb6 11925cat > conftest.$ac_ext <<EOF
cb61c62d 11926#line 11927 "configure"
ab9b9eab
VZ
11927#include "confdefs.h"
11928/* Override any gcc2 internal prototype to avoid an error. */
11929/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11930 builtin and then its argument prototype would still apply. */
11931char remove();
11932
11933int main() {
11934remove()
11935; return 0; }
11936EOF
cb61c62d 11937if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11938 rm -rf conftest*
11939 eval "ac_cv_lib_$ac_lib_var=yes"
11940else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 eval "ac_cv_lib_$ac_lib_var=no"
11945fi
11946rm -f conftest*
11947LIBS="$ac_save_LIBS"
11948
11949fi
11950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
ab9b9eab 11952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11953else
11954 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11955fi
11956
11957 fi
11958
11959 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11960 echo $ac_n "checking for shmat""... $ac_c" 1>&6
cb61c62d 11961echo "configure:11962: checking for shmat" >&5
698dcdb6
VZ
11962if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11964else
698dcdb6 11965 cat > conftest.$ac_ext <<EOF
cb61c62d 11966#line 11967 "configure"
ab9b9eab
VZ
11967#include "confdefs.h"
11968/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11969 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11970#include <assert.h>
11971/* Override any gcc2 internal prototype to avoid an error. */
11972/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11973 builtin and then its argument prototype would still apply. */
11974char shmat();
11975
11976int main() {
ab9b9eab
VZ
11977
11978/* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981#if defined (__stub_shmat) || defined (__stub___shmat)
11982choke me
11983#else
698dcdb6 11984shmat();
ab9b9eab
VZ
11985#endif
11986
698dcdb6
VZ
11987; return 0; }
11988EOF
cb61c62d 11989if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11990 rm -rf conftest*
11991 eval "ac_cv_func_shmat=yes"
11992else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_shmat=no"
11997fi
11998rm -f conftest*
11999fi
12000
12001if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 :
12004else
12005 echo "$ac_t""no" 1>&6
12006fi
ab9b9eab
VZ
12007
12008 if test $ac_cv_func_shmat = no; then
698dcdb6 12009 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
cb61c62d 12010echo "configure:12011: checking for shmat in -lipc" >&5
698dcdb6
VZ
12011ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12012if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12014else
698dcdb6 12015 ac_save_LIBS="$LIBS"
ab9b9eab 12016LIBS="-lipc $LIBS"
698dcdb6 12017cat > conftest.$ac_ext <<EOF
cb61c62d 12018#line 12019 "configure"
ab9b9eab
VZ
12019#include "confdefs.h"
12020/* Override any gcc2 internal prototype to avoid an error. */
12021/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12022 builtin and then its argument prototype would still apply. */
12023char shmat();
12024
12025int main() {
12026shmat()
12027; return 0; }
12028EOF
cb61c62d 12029if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12030 rm -rf conftest*
12031 eval "ac_cv_lib_$ac_lib_var=yes"
12032else
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 rm -rf conftest*
12036 eval "ac_cv_lib_$ac_lib_var=no"
12037fi
12038rm -f conftest*
12039LIBS="$ac_save_LIBS"
12040
12041fi
12042if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
ab9b9eab 12044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12045else
12046 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12047fi
12048
12049 fi
12050 fi
12051
12052 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12053 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12054 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12055 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12056 # check for ICE first), but we must link in the order -lSM -lICE or
12057 # we get undefined symbols. So assume we have SM if we have ICE.
12058 # These have to be linked with before -lX11, unlike the other
12059 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12060 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12061 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
cb61c62d 12062echo "configure:12063: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12063ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066else
12067 ac_save_LIBS="$LIBS"
ab9b9eab 12068LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12069cat > conftest.$ac_ext <<EOF
cb61c62d 12070#line 12071 "configure"
ab9b9eab
VZ
12071#include "confdefs.h"
12072/* Override any gcc2 internal prototype to avoid an error. */
12073/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12074 builtin and then its argument prototype would still apply. */
12075char IceConnectionNumber();
12076
12077int main() {
12078IceConnectionNumber()
12079; return 0; }
12080EOF
cb61c62d 12081if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12082 rm -rf conftest*
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12084else
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 rm -rf conftest*
12088 eval "ac_cv_lib_$ac_lib_var=no"
12089fi
12090rm -f conftest*
12091LIBS="$ac_save_LIBS"
12092
12093fi
12094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
ab9b9eab 12096 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12097else
12098 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12099fi
12100
698dcdb6 12101 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12102
12103fi
12104
12105
1e6feb95
VZ
12106 if test "$no_x" = "yes"; then
12107 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12108 fi
ab9b9eab 12109
1e6feb95
VZ
12110 GUI_TK_LIBRARY="$X_LIBS"
12111 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12112 AFMINSTALL=afminstall
1e6feb95 12113 COMPILED_X_PROGRAM=0
cd6d6d5b 12114
3d63bc3a 12115 xpm_link=
1e6feb95 12116 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
cb61c62d 12117echo "configure:12118: checking for Xpm library" >&5
1e6feb95 12118
ab9b9eab
VZ
12119ac_find_libraries=
12120for ac_dir in $SEARCH_LIB;
12121 do
f11bdd03 12122 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12123 if test -f "$ac_dir/libXpm.$ac_extension"; then
12124 ac_find_libraries=$ac_dir
12125 break 2
12126 fi
12127 done
12128 done
12129
1e6feb95
VZ
12130 if test "$ac_find_libraries" != "" ; then
12131
ab9b9eab
VZ
12132 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12133 result=$?
12134 if test $result = 0; then
12135 ac_path_to_link=""
12136 else
62d0491b 12137 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12138 fi
12139
62d0491b 12140 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12141 xpm_link=" -lXpm"
1e6feb95 12142 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12143#define wxHAVE_LIB_XPM 1
12144EOF
12145
1e6feb95
VZ
12146 echo "$ac_t""found at $ac_find_libraries" 1>&6
12147 else
12148 cat > conftest.$ac_ext <<EOF
cb61c62d 12149#line 12150 "configure"
cd6d6d5b
VZ
12150#include "confdefs.h"
12151
1e6feb95
VZ
12152 #include <X11/xpm.h>
12153
698dcdb6 12154int main() {
cd6d6d5b 12155
1e6feb95 12156 int version;
1e6feb95
VZ
12157 version = XpmLibraryVersion();
12158
698dcdb6
VZ
12159; return 0; }
12160EOF
cb61c62d 12161if { (eval echo configure:12162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12162 rm -rf conftest*
12163
3d63bc3a 12164 xpm_link=" -lXpm"
3a922bb4 12165 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12166#define wxHAVE_LIB_XPM 1
12167EOF
12168
1e6feb95
VZ
12169 echo "$ac_t""found in default search path" 1>&6
12170 COMPILED_X_PROGRAM=0
12171
cd6d6d5b 12172else
698dcdb6
VZ
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176
1e6feb95
VZ
12177 echo "$ac_t""no" 1>&6
12178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12179
698dcdb6 12180
cd6d6d5b 12181fi
698dcdb6 12182rm -f conftest*
1e6feb95
VZ
12183 fi
12184
f79bd02d 12185 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
4d7289e6 12186 TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
f79bd02d
JS
12187 TOOLKIT=X11
12188 GUIDIST=X11_DIST
68e42278 12189 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
1e6feb95 12190 fi
10f2d63a 12191
f79bd02d
JS
12192 if test "$wxUSE_WINE" = 1; then
12193 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12194echo $ac_n "checking for windows.h""... $ac_c" 1>&6
cb61c62d 12195echo "configure:12196: checking for windows.h" >&5
f79bd02d
JS
12196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198else
12199 cat > conftest.$ac_ext <<EOF
cb61c62d 12200#line 12201 "configure"
f79bd02d
JS
12201#include "confdefs.h"
12202#include <windows.h>
12203EOF
12204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 12205{ (eval echo configure:12206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
12206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12207if test -z "$ac_err"; then
12208 rm -rf conftest*
12209 eval "ac_cv_header_$ac_safe=yes"
12210else
12211 echo "$ac_err" >&5
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_header_$ac_safe=no"
12216fi
12217rm -f conftest*
12218fi
12219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 :
12222else
12223 echo "$ac_t""no" 1>&6
12224
12225 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12226
12227fi
12228
12229
12230 xpm_link=
12231 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
cb61c62d 12232echo "configure:12233: checking for Xpm library" >&5
f79bd02d
JS
12233
12234ac_find_libraries=
12235for ac_dir in $SEARCH_LIB;
12236 do
12237 for ac_extension in a so sl dylib; do
12238 if test -f "$ac_dir/libXpm.$ac_extension"; then
12239 ac_find_libraries=$ac_dir
12240 break 2
12241 fi
12242 done
12243 done
12244
12245 if test "$ac_find_libraries" != "" ; then
12246 GUI_TK_LIBRARY="-L$ac_find_libraries"
12247 xpm_link=" -lXpm"
12248 cat >> confdefs.h <<\EOF
12249#define wxHAVE_LIB_XPM 1
12250EOF
12251
12252 echo "$ac_t""found at $ac_find_libraries" 1>&6
12253 else
12254 echo "$ac_t""no" 1>&6
12255 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12256 fi
12257
12258 mesa_link=
12259 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
cb61c62d 12260echo "configure:12261: checking for Mesa library" >&5
f79bd02d
JS
12261
12262ac_find_libraries=
12263for ac_dir in $SEARCH_LIB;
12264 do
12265 for ac_extension in a so sl dylib; do
12266 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12267 ac_find_libraries=$ac_dir
12268 break 2
12269 fi
12270 done
12271 done
12272
12273 if test "$ac_find_libraries" != "" ; then
12274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12275 mesa_link=" -lMesaGL"
12276 echo "$ac_t""found at $ac_find_libraries" 1>&6
12277 else
12278 { echo "configure: error: no" 1>&2; exit 1; }
12279 fi
12280
12281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12282 TOOLKIT=MSW
12283 GUIDIST=MSW_DIST
12284 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12285 fi
12286
12287 if test "$wxUSE_MOTIF" = 1; then
12288 if test "$no_x" = yes; then
12289 # Not all programs may use this symbol, but it does not hurt to define it.
12290 cat >> confdefs.h <<\EOF
12291#define X_DISPLAY_MISSING 1
12292EOF
12293
12294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12295else
12296 if test -n "$x_includes"; then
12297 X_CFLAGS="$X_CFLAGS -I$x_includes"
12298 fi
12299
12300 # It would also be nice to do this for all -L options, not just this one.
12301 if test -n "$x_libraries"; then
12302 X_LIBS="$X_LIBS -L$x_libraries"
12303 # For Solaris; some versions of Sun CC require a space after -R and
12304 # others require no space. Words are not sufficient . . . .
12305 case "`(uname -sr) 2>/dev/null`" in
12306 "SunOS 5"*)
12307 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
cb61c62d 12308echo "configure:12309: checking whether -R must be followed by a space" >&5
f79bd02d
JS
12309 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12310 cat > conftest.$ac_ext <<EOF
cb61c62d 12311#line 12312 "configure"
f79bd02d
JS
12312#include "confdefs.h"
12313
12314int main() {
12315
12316; return 0; }
12317EOF
cb61c62d 12318if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12319 rm -rf conftest*
12320 ac_R_nospace=yes
12321else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 ac_R_nospace=no
12326fi
12327rm -f conftest*
12328 if test $ac_R_nospace = yes; then
12329 echo "$ac_t""no" 1>&6
12330 X_LIBS="$X_LIBS -R$x_libraries"
12331 else
12332 LIBS="$ac_xsave_LIBS -R $x_libraries"
12333 cat > conftest.$ac_ext <<EOF
cb61c62d 12334#line 12335 "configure"
f79bd02d
JS
12335#include "confdefs.h"
12336
12337int main() {
12338
12339; return 0; }
12340EOF
cb61c62d 12341if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12342 rm -rf conftest*
12343 ac_R_space=yes
12344else
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 rm -rf conftest*
12348 ac_R_space=no
12349fi
12350rm -f conftest*
12351 if test $ac_R_space = yes; then
12352 echo "$ac_t""yes" 1>&6
12353 X_LIBS="$X_LIBS -R $x_libraries"
12354 else
12355 echo "$ac_t""neither works" 1>&6
12356 fi
12357 fi
12358 LIBS="$ac_xsave_LIBS"
12359 esac
12360 fi
12361
12362 # Check for system-dependent libraries X programs must link with.
12363 # Do this before checking for the system-independent R6 libraries
12364 # (-lICE), since we may need -lsocket or whatever for X linking.
12365
12366 if test "$ISC" = yes; then
12367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12368 else
12369 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12370 # libraries were built with DECnet support. And karl@cs.umb.edu says
12371 # the Alpha needs dnet_stub (dnet does not exist).
12372 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
cb61c62d 12373echo "configure:12374: checking for dnet_ntoa in -ldnet" >&5
f79bd02d
JS
12374ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12377else
12378 ac_save_LIBS="$LIBS"
12379LIBS="-ldnet $LIBS"
12380cat > conftest.$ac_ext <<EOF
cb61c62d 12381#line 12382 "configure"
f79bd02d
JS
12382#include "confdefs.h"
12383/* Override any gcc2 internal prototype to avoid an error. */
12384/* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386char dnet_ntoa();
12387
12388int main() {
12389dnet_ntoa()
12390; return 0; }
12391EOF
cb61c62d 12392if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12393 rm -rf conftest*
12394 eval "ac_cv_lib_$ac_lib_var=yes"
12395else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -rf conftest*
12399 eval "ac_cv_lib_$ac_lib_var=no"
12400fi
12401rm -f conftest*
12402LIBS="$ac_save_LIBS"
12403
12404fi
12405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12406 echo "$ac_t""yes" 1>&6
12407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12408else
12409 echo "$ac_t""no" 1>&6
12410fi
12411
12412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12413 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
cb61c62d 12414echo "configure:12415: checking for dnet_ntoa in -ldnet_stub" >&5
f79bd02d
JS
12415ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12418else
12419 ac_save_LIBS="$LIBS"
12420LIBS="-ldnet_stub $LIBS"
12421cat > conftest.$ac_ext <<EOF
cb61c62d 12422#line 12423 "configure"
f79bd02d
JS
12423#include "confdefs.h"
12424/* Override any gcc2 internal prototype to avoid an error. */
12425/* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427char dnet_ntoa();
12428
12429int main() {
12430dnet_ntoa()
12431; return 0; }
12432EOF
cb61c62d 12433if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12434 rm -rf conftest*
12435 eval "ac_cv_lib_$ac_lib_var=yes"
12436else
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12439 rm -rf conftest*
12440 eval "ac_cv_lib_$ac_lib_var=no"
12441fi
12442rm -f conftest*
12443LIBS="$ac_save_LIBS"
12444
12445fi
12446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12447 echo "$ac_t""yes" 1>&6
12448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12449else
12450 echo "$ac_t""no" 1>&6
12451fi
12452
12453 fi
12454
12455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12456 # to get the SysV transport functions.
12457 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12458 # needs -lnsl.
12459 # The nsl library prevents programs from opening the X display
12460 # on Irix 5.2, according to dickey@clark.net.
12461 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
cb61c62d 12462echo "configure:12463: checking for gethostbyname" >&5
f79bd02d
JS
12463if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12465else
12466 cat > conftest.$ac_ext <<EOF
cb61c62d 12467#line 12468 "configure"
f79bd02d
JS
12468#include "confdefs.h"
12469/* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char gethostbyname(); below. */
12471#include <assert.h>
12472/* Override any gcc2 internal prototype to avoid an error. */
12473/* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12475char gethostbyname();
12476
12477int main() {
12478
12479/* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12483choke me
12484#else
12485gethostbyname();
12486#endif
12487
12488; return 0; }
12489EOF
cb61c62d 12490if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12491 rm -rf conftest*
12492 eval "ac_cv_func_gethostbyname=yes"
12493else
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 rm -rf conftest*
12497 eval "ac_cv_func_gethostbyname=no"
12498fi
12499rm -f conftest*
12500fi
12501
12502if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12504 :
12505else
12506 echo "$ac_t""no" 1>&6
12507fi
12508
12509 if test $ac_cv_func_gethostbyname = no; then
12510 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
cb61c62d 12511echo "configure:12512: checking for gethostbyname in -lnsl" >&5
f79bd02d
JS
12512ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12515else
12516 ac_save_LIBS="$LIBS"
12517LIBS="-lnsl $LIBS"
12518cat > conftest.$ac_ext <<EOF
cb61c62d 12519#line 12520 "configure"
f79bd02d
JS
12520#include "confdefs.h"
12521/* Override any gcc2 internal prototype to avoid an error. */
12522/* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524char gethostbyname();
12525
12526int main() {
12527gethostbyname()
12528; return 0; }
12529EOF
cb61c62d 12530if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12531 rm -rf conftest*
12532 eval "ac_cv_lib_$ac_lib_var=yes"
12533else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 eval "ac_cv_lib_$ac_lib_var=no"
12538fi
12539rm -f conftest*
12540LIBS="$ac_save_LIBS"
12541
12542fi
12543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12546else
12547 echo "$ac_t""no" 1>&6
12548fi
12549
12550 fi
12551
12552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12553 # socket/setsockopt and other routines are undefined under SCO ODT
12554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12555 # on later versions), says simon@lia.di.epfl.ch: it contains
12556 # gethostby* variants that don't use the nameserver (or something).
12557 # -lsocket must be given before -lnsl if both are needed.
12558 # We assume that if connect needs -lnsl, so does gethostbyname.
12559 echo $ac_n "checking for connect""... $ac_c" 1>&6
cb61c62d 12560echo "configure:12561: checking for connect" >&5
f79bd02d
JS
12561if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12563else
12564 cat > conftest.$ac_ext <<EOF
cb61c62d 12565#line 12566 "configure"
f79bd02d
JS
12566#include "confdefs.h"
12567/* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char connect(); below. */
12569#include <assert.h>
12570/* Override any gcc2 internal prototype to avoid an error. */
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char connect();
12574
12575int main() {
12576
12577/* The GNU C library defines this for functions which it implements
12578 to always fail with ENOSYS. Some functions are actually named
12579 something starting with __ and the normal name is an alias. */
12580#if defined (__stub_connect) || defined (__stub___connect)
12581choke me
12582#else
12583connect();
12584#endif
12585
12586; return 0; }
12587EOF
cb61c62d 12588if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12589 rm -rf conftest*
12590 eval "ac_cv_func_connect=yes"
12591else
12592 echo "configure: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 rm -rf conftest*
12595 eval "ac_cv_func_connect=no"
12596fi
12597rm -f conftest*
12598fi
12599
12600if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12601 echo "$ac_t""yes" 1>&6
12602 :
12603else
12604 echo "$ac_t""no" 1>&6
12605fi
12606
12607 if test $ac_cv_func_connect = no; then
12608 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
cb61c62d 12609echo "configure:12610: checking for connect in -lsocket" >&5
f79bd02d
JS
12610ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613else
12614 ac_save_LIBS="$LIBS"
12615LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12616cat > conftest.$ac_ext <<EOF
cb61c62d 12617#line 12618 "configure"
f79bd02d
JS
12618#include "confdefs.h"
12619/* Override any gcc2 internal prototype to avoid an error. */
12620/* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622char connect();
12623
12624int main() {
12625connect()
12626; return 0; }
12627EOF
cb61c62d 12628if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12629 rm -rf conftest*
12630 eval "ac_cv_lib_$ac_lib_var=yes"
12631else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_lib_$ac_lib_var=no"
12636fi
12637rm -f conftest*
12638LIBS="$ac_save_LIBS"
12639
12640fi
12641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12644else
12645 echo "$ac_t""no" 1>&6
12646fi
12647
12648 fi
12649
12650 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12651 echo $ac_n "checking for remove""... $ac_c" 1>&6
cb61c62d 12652echo "configure:12653: checking for remove" >&5
f79bd02d
JS
12653if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655else
12656 cat > conftest.$ac_ext <<EOF
cb61c62d 12657#line 12658 "configure"
f79bd02d
JS
12658#include "confdefs.h"
12659/* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char remove(); below. */
12661#include <assert.h>
12662/* Override any gcc2 internal prototype to avoid an error. */
12663/* We use char because int might match the return type of a gcc2
12664 builtin and then its argument prototype would still apply. */
12665char remove();
12666
12667int main() {
12668
12669/* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672#if defined (__stub_remove) || defined (__stub___remove)
12673choke me
12674#else
12675remove();
12676#endif
12677
12678; return 0; }
12679EOF
cb61c62d 12680if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12681 rm -rf conftest*
12682 eval "ac_cv_func_remove=yes"
12683else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func_remove=no"
12688fi
12689rm -f conftest*
12690fi
12691
12692if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 :
12695else
12696 echo "$ac_t""no" 1>&6
12697fi
12698
12699 if test $ac_cv_func_remove = no; then
12700 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
cb61c62d 12701echo "configure:12702: checking for remove in -lposix" >&5
f79bd02d
JS
12702ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12703if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705else
12706 ac_save_LIBS="$LIBS"
12707LIBS="-lposix $LIBS"
12708cat > conftest.$ac_ext <<EOF
cb61c62d 12709#line 12710 "configure"
f79bd02d
JS
12710#include "confdefs.h"
12711/* Override any gcc2 internal prototype to avoid an error. */
12712/* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714char remove();
12715
12716int main() {
12717remove()
12718; return 0; }
12719EOF
cb61c62d 12720if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12721 rm -rf conftest*
12722 eval "ac_cv_lib_$ac_lib_var=yes"
12723else
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 rm -rf conftest*
12727 eval "ac_cv_lib_$ac_lib_var=no"
12728fi
12729rm -f conftest*
12730LIBS="$ac_save_LIBS"
12731
12732fi
12733if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12734 echo "$ac_t""yes" 1>&6
12735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12736else
12737 echo "$ac_t""no" 1>&6
12738fi
12739
12740 fi
12741
12742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12743 echo $ac_n "checking for shmat""... $ac_c" 1>&6
cb61c62d 12744echo "configure:12745: checking for shmat" >&5
f79bd02d
JS
12745if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12747else
12748 cat > conftest.$ac_ext <<EOF
cb61c62d 12749#line 12750 "configure"
f79bd02d
JS
12750#include "confdefs.h"
12751/* System header to define __stub macros and hopefully few prototypes,
12752 which can conflict with char shmat(); below. */
12753#include <assert.h>
12754/* Override any gcc2 internal prototype to avoid an error. */
12755/* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757char shmat();
12758
12759int main() {
12760
12761/* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764#if defined (__stub_shmat) || defined (__stub___shmat)
12765choke me
12766#else
12767shmat();
12768#endif
12769
12770; return 0; }
12771EOF
cb61c62d 12772if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12773 rm -rf conftest*
12774 eval "ac_cv_func_shmat=yes"
12775else
12776 echo "configure: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 rm -rf conftest*
12779 eval "ac_cv_func_shmat=no"
12780fi
12781rm -f conftest*
12782fi
12783
12784if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 :
12787else
12788 echo "$ac_t""no" 1>&6
12789fi
12790
12791 if test $ac_cv_func_shmat = no; then
12792 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
cb61c62d 12793echo "configure:12794: checking for shmat in -lipc" >&5
f79bd02d
JS
12794ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12797else
12798 ac_save_LIBS="$LIBS"
12799LIBS="-lipc $LIBS"
12800cat > conftest.$ac_ext <<EOF
cb61c62d 12801#line 12802 "configure"
f79bd02d
JS
12802#include "confdefs.h"
12803/* Override any gcc2 internal prototype to avoid an error. */
12804/* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12806char shmat();
12807
12808int main() {
12809shmat()
12810; return 0; }
12811EOF
cb61c62d 12812if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12813 rm -rf conftest*
12814 eval "ac_cv_lib_$ac_lib_var=yes"
12815else
12816 echo "configure: failed program was:" >&5
12817 cat conftest.$ac_ext >&5
12818 rm -rf conftest*
12819 eval "ac_cv_lib_$ac_lib_var=no"
12820fi
12821rm -f conftest*
12822LIBS="$ac_save_LIBS"
12823
12824fi
12825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12826 echo "$ac_t""yes" 1>&6
12827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12828else
12829 echo "$ac_t""no" 1>&6
12830fi
12831
12832 fi
12833 fi
12834
12835 # Check for libraries that X11R6 Xt/Xaw programs need.
12836 ac_save_LDFLAGS="$LDFLAGS"
12837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12839 # check for ICE first), but we must link in the order -lSM -lICE or
12840 # we get undefined symbols. So assume we have SM if we have ICE.
12841 # These have to be linked with before -lX11, unlike the other
12842 # libraries we check for below, so use a different variable.
12843 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12844 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
cb61c62d 12845echo "configure:12846: checking for IceConnectionNumber in -lICE" >&5
f79bd02d
JS
12846ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12849else
12850 ac_save_LIBS="$LIBS"
12851LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12852cat > conftest.$ac_ext <<EOF
cb61c62d 12853#line 12854 "configure"
f79bd02d
JS
12854#include "confdefs.h"
12855/* Override any gcc2 internal prototype to avoid an error. */
12856/* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858char IceConnectionNumber();
12859
12860int main() {
12861IceConnectionNumber()
12862; return 0; }
12863EOF
cb61c62d 12864if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12865 rm -rf conftest*
12866 eval "ac_cv_lib_$ac_lib_var=yes"
12867else
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 rm -rf conftest*
12871 eval "ac_cv_lib_$ac_lib_var=no"
12872fi
12873rm -f conftest*
12874LIBS="$ac_save_LIBS"
12875
12876fi
12877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12878 echo "$ac_t""yes" 1>&6
12879 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12880else
12881 echo "$ac_t""no" 1>&6
12882fi
12883
12884 LDFLAGS="$ac_save_LDFLAGS"
12885
12886fi
12887
12888
12889 if test "$no_x" = "yes"; then
12890 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12891 fi
12892
12893 GUI_TK_LIBRARY="$X_LIBS"
12894 TOOLKIT_INCLUDE="$X_CFLAGS"
12895 AFMINSTALL=afminstall
12896 COMPILED_X_PROGRAM=0
12897
12898 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
cb61c62d 12899echo "configure:12900: checking for Motif/Lesstif headers" >&5
f79bd02d
JS
12900
12901ac_find_includes=
12902for ac_dir in $SEARCH_INCLUDE;
12903 do
12904 if test -f "$ac_dir/Xm/Xm.h"; then
12905 ac_find_includes=$ac_dir
12906 break
12907 fi
12908 done
12909
12910 if test "$ac_find_includes" != "" ; then
12911 echo "$ac_t""found $ac_find_includes" 1>&6
12912 else
12913 cat > conftest.$ac_ext <<EOF
cb61c62d 12914#line 12915 "configure"
f79bd02d
JS
12915#include "confdefs.h"
12916
12917 #include <Xm/Xm.h>
12918
12919int main() {
12920
12921 int version;
12922 version = xmUseVersion;
12923
12924; return 0; }
12925EOF
cb61c62d 12926if { (eval echo configure:12927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
12927 rm -rf conftest*
12928
12929 echo "$ac_t""found in default search path" 1>&6
12930 COMPILED_X_PROGRAM=1
12931
12932else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
12937 echo "$ac_t""no" 1>&6
12938 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12939
12940
12941fi
12942rm -f conftest*
12943 fi
12944
12945 if test "$COMPILED_X_PROGRAM" = 0; then
12946 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
cb61c62d 12947echo "configure:12948: checking for Motif/Lesstif library" >&5
f79bd02d
JS
12948
12949ac_find_libraries=
12950for ac_dir in $SEARCH_LIB;
12951 do
12952 for ac_extension in a so sl dylib; do
12953 if test -f "$ac_dir/libXm.$ac_extension"; then
12954 ac_find_libraries=$ac_dir
12955 break 2
12956 fi
12957 done
12958 done
12959
12960 if test "$ac_find_libraries" != "" ; then
12961
12962 ac_path_to_include=$ac_find_includes
12963 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12964 result=$?
12965 if test $result = 0; then
12966 ac_path_to_include=""
12967 else
12968 ac_path_to_include=" -I$ac_find_includes"
12969 fi
12970
12971
12972 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12973 result=$?
12974 if test $result = 0; then
12975 ac_path_to_link=""
12976 else
12977 ac_path_to_link=" -L$ac_find_libraries"
12978 fi
12979
12980
12981 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12982 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12983 echo "$ac_t""found at $ac_find_libraries" 1>&6
12984 else
12985 cat > conftest.$ac_ext <<EOF
cb61c62d 12986#line 12987 "configure"
f79bd02d
JS
12987#include "confdefs.h"
12988
12989 #include <Xm/Xm.h>
12990
12991int main() {
12992
12993 int version;
12994 version = xmUseVersion;
12995
12996; return 0; }
12997EOF
cb61c62d 12998if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
12999 rm -rf conftest*
13000
13001 echo "$ac_t""found in default search path" 1>&6
13002 COMPILED_X_PROGRAM=1
13003
13004else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008
13009 echo "$ac_t""no" 1>&6
13010 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13011
13012
13013fi
13014rm -f conftest*
13015 fi
13016 fi
13017
13018 xpm_link=
13019 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
cb61c62d 13020echo "configure:13021: checking for Xpm library" >&5
f79bd02d
JS
13021
13022ac_find_libraries=
13023for ac_dir in $SEARCH_LIB;
13024 do
13025 for ac_extension in a so sl dylib; do
13026 if test -f "$ac_dir/libXpm.$ac_extension"; then
13027 ac_find_libraries=$ac_dir
13028 break 2
13029 fi
13030 done
13031 done
13032
13033 if test "$ac_find_libraries" != "" ; then
13034
13035 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13036 result=$?
13037 if test $result = 0; then
13038 ac_path_to_link=""
13039 else
13040 ac_path_to_link=" -L$ac_find_libraries"
13041 fi
13042
13043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13044 xpm_link=" -lXpm"
13045 cat >> confdefs.h <<\EOF
13046#define wxHAVE_LIB_XPM 1
13047EOF
13048
13049 echo "$ac_t""found at $ac_find_libraries" 1>&6
13050 else
13051 cat > conftest.$ac_ext <<EOF
cb61c62d 13052#line 13053 "configure"
f79bd02d
JS
13053#include "confdefs.h"
13054
13055 #include <X11/xpm.h>
13056
13057int main() {
13058
13059 int version;
13060 version = XpmLibraryVersion();
13061
13062; return 0; }
13063EOF
cb61c62d 13064if { (eval echo configure:13065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
13065 rm -rf conftest*
13066
13067 xpm_link=" -lXpm"
13068 cat >> confdefs.h <<\EOF
13069#define wxHAVE_LIB_XPM 1
13070EOF
13071
13072 echo "$ac_t""found in default search path" 1>&6
13073 COMPILED_X_PROGRAM=0
13074
13075else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079
13080 echo "$ac_t""no" 1>&6
13081 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13082
13083
13084fi
13085rm -f conftest*
13086 fi
13087
13088 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13089 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13090 TOOLKIT=MOTIF
13091 GUIDIST=MOTIF_DIST
13092 fi
13093
13094 if test "$wxUSE_MAC" = 1; then
13095 if test "$wxUSE_PRECOMP" = "yes"; then
13096 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13097 fi
13098 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13099 CFLAGS="$CFLAGS -fpascal-strings"
13100 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13101
13102 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13103 TOOLKIT=MAC
13104 GUIDIST=MACX_DIST
13105 fi
13106
13107 if test "$wxUSE_PM" = 1; then
13108 TOOLKIT=PM
1e6feb95
VZ
13109 GUIDIST=GTK_DIST
13110 fi
b4085ce6 13111
3a922bb4 13112 if test "$TOOLKIT" = "PM" ; then
1e6feb95 13113 TOOLKIT_DIR="os2"
3a922bb4
RL
13114 else
13115 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 13116 fi
e07802fc 13117
3a922bb4 13118 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 13119
3a922bb4
RL
13120 if test "$wxUSE_UNIVERSAL" = "yes"; then
13121 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
9b695262
VZ
13122
13123 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13124 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13125
3a922bb4
RL
13126 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13127 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13128 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13129 WIDGET_SET=univ
f6bcfd97 13130 else
3a922bb4 13131 ALL_OBJECTS="\$(GUIOBJS)"
9b695262
VZ
13132 ALL_SOURCES="\$(ALL_SOURCES)"
13133 ALL_HEADERS="\$(ALL_HEADERS)"
1e6feb95
VZ
13134 fi
13135
ba0e650c 13136 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 13137
f9bc1684 13138 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
13139 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13140 fi
13141
13142 if test "$wxUSE_HTML" = "yes"; then
13143 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13144 fi
3fcdd07b 13145
4f14bcd8 13146 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 13147 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 13148 fi
4f14bcd8 13149 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
13150 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13151 fi
4f14bcd8 13152 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
13153 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13154 fi
2224580a 13155
2224580a
VZ
13156 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13157 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 13158else
dad6c0ea
VZ
13159 USE_GUI=0
13160
3a922bb4 13161 TOOLKIT_DIR="base"
f6bcfd97 13162
3a922bb4
RL
13163 if test "$USE_WIN32" = 1 ; then
13164 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13165 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 13166
3a922bb4 13167 TOOLKIT="MSW"
f6bcfd97 13168 else
3a922bb4
RL
13169 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13170 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
13171 fi
13172
831b3152 13173 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
13174
13175 GUIDIST="BASE_DIST"
13176 DISTDIR="wxBase"
10f2d63a
VZ
13177fi
13178
e45387bf
VZ
13179
13180if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13181 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13182fi
13183
4f14bcd8 13184if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
13185 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13186fi
4f14bcd8 13187if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
13188 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13189fi
10f2d63a 13190
3a922bb4 13191if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
13192 if test "$wxUSE_MAC" = 1; then
13193 OPENGL_LIBS="-framework OpenGL -framework AGL"
13194 else
570cb8cb 13195
62d0491b 13196 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 13197echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
cb61c62d 13198echo "configure:13199: checking for GL/gl.h" >&5
3a922bb4
RL
13199if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201else
13202 cat > conftest.$ac_ext <<EOF
cb61c62d 13203#line 13204 "configure"
3a922bb4
RL
13204#include "confdefs.h"
13205#include <GL/gl.h>
13206EOF
13207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13208{ (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
13209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13210if test -z "$ac_err"; then
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=yes"
13213else
13214 echo "$ac_err" >&5
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 eval "ac_cv_header_$ac_safe=no"
13219fi
13220rm -f conftest*
13221fi
13222if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224
1352efdf 13225 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
cb61c62d 13226echo "configure:13227: checking for -lGL" >&5
57964555 13227
62d0491b
RL
13228ac_find_libraries=
13229for ac_dir in $SEARCH_LIB;
13230 do
13231 for ac_extension in a so sl dylib; do
13232 if test -f "$ac_dir/libGL.$ac_extension"; then
13233 ac_find_libraries=$ac_dir
13234 break 2
13235 fi
13236 done
13237 done
3a922bb4 13238
62d0491b
RL
13239 if test "$ac_find_libraries" != "" ; then
13240
13241 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13242 result=$?
13243 if test $result = 0; then
13244 ac_path_to_link=""
13245 else
13246 ac_path_to_link=" -L$ac_find_libraries"
13247 fi
3a922bb4 13248
4b6b4dfc
RR
13249 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13250 LDFLAGS_GL="$LDFLAGS"
13251 else
13252 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13253 fi
62d0491b 13254 OPENGL_LIBS="-lGL -lGLU"
1352efdf 13255 echo "$ac_t""yes" 1>&6
62d0491b 13256 else
1352efdf
RL
13257 echo "$ac_t""no" 1>&6
13258 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
cb61c62d 13259echo "configure:13260: checking for -lMesaGL" >&5
62d0491b
RL
13260
13261ac_find_libraries=
13262for ac_dir in $SEARCH_LIB;
13263 do
13264 for ac_extension in a so sl dylib; do
13265 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13266 ac_find_libraries=$ac_dir
13267 break 2
13268 fi
13269 done
13270 done
3a922bb4 13271
62d0491b 13272 if test "$ac_find_libraries" != "" ; then
57964555 13273
62d0491b
RL
13274 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13275 result=$?
13276 if test $result = 0; then
13277 ac_path_to_link=""
13278 else
13279 ac_path_to_link=" -L$ac_find_libraries"
13280 fi
3a922bb4 13281
62d0491b
RL
13282 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13283 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
13284 echo "$ac_t""yes" 1>&6
13285 else
13286 echo "$ac_t""no" 1>&6
62d0491b
RL
13287 fi
13288 fi
13289
3a922bb4
RL
13290else
13291 echo "$ac_t""no" 1>&6
3a922bb4
RL
13292fi
13293
6f754473 13294
62d0491b
RL
13295
13296# AC_CHECK_HEADER(GL/gl.h,
13297# [
13298# AC_CHECK_LIB(GL, glFlush,
13299# [
13300# OPENGL_LIBS="-lGL -lGLU"
13301# ],
13302# [
13303# AC_CHECK_LIB(MesaGL, glFlush,
13304# [
13305# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13306# ],
13307# [],
13308# [-lm])
13309# ],
13310# [-lm])
13311# ])
13312
13313 if test "x$OPENGL_LIBS" = "x"; then
13314 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13315 fi
6f754473 13316 fi
6f754473 13317
62d0491b
RL
13318 if test "$wxUSE_OPENGL" = "yes"; then
13319 cat >> confdefs.h <<\EOF
6f754473
VZ
13320#define wxUSE_OPENGL 1
13321EOF
13322
62d0491b 13323 cat >> confdefs.h <<\EOF
6f754473
VZ
13324#define wxUSE_GLCANVAS 1
13325EOF
13326
62d0491b
RL
13327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13328 fi
3a922bb4
RL
13329fi
13330
13331if test -z "$TOOLKIT_VPATH" ; then
13332 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13333fi
13334
13335if test -n "$TOOLKIT" ; then
13336 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13337fi
13338
f676c7ff
MB
13339lib_unicode_suffix=
13340if test "$wxUSE_UNICODE" = "yes"; then
13341 lib_unicode_suffix=u
13342fi
13343
3a922bb4
RL
13344lib_debug_suffix=
13345if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13346 lib_debug_suffix=d
3a922bb4
RL
13347fi
13348
f676c7ff
MB
13349TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13350TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
13351
13352if test "$cross_compiling" = "yes"; then
13353 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13354 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13355fi
13356
13357WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13358WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13359
3a922bb4
RL
13360WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13361WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13362
13363WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13364WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13365WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13366WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13367
d08b457b 13368WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 13369WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 13370
978f1259
RL
13371case "${host}" in
13372 *-*-cygwin* | *-*-mingw32* )
13373
2da4f892 13374
978f1259
RL
13375
13376 if test "$cross_compiling" != "yes"; then
13377 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13378 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13379 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13380 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
13381 else
13382 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13383 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
13384 fi
13385
13386esac
13387
13388WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13389WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13390
13391WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 13392WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
13393
13394if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
13395 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13396 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
13397fi
13398
13399
3a922bb4
RL
13400
13401if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
13402
13403 if test "$wxUSE_OPENGL" = "yes"; then
13404 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 13405 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
13406 else
13407 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 13408 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
13409 fi
13410
dd4f7467 13411 if test "$GCC" = "yes"; then
55e80573 13412 PIC_FLAG="-fPIC"
dd4f7467 13413 fi
55e80573
VZ
13414
13415 SHARED_LD="${CXX} -shared -o"
698dcdb6 13416
10f2d63a
VZ
13417 case "${host}" in
13418 *-hp-hpux* )
d569ea8d
GD
13419 if test "$GCC" == "yes"; then
13420 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13421 else
3d63bc3a 13422 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 13423
10f2d63a
VZ
13424 SHARED_LD="${CXX} -b -o"
13425 PIC_FLAG="+Z"
13426 fi
55e80573 13427
7b7a7637
RL
13428 if test "$wxUSE_OPENGL" = "yes"; then
13429 WX_ALL_INSTALLED="preinstall_gl"
13430 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13431 else
13432 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13433 fi
10f2d63a 13434 ;;
b12915c1 13435
55e80573
VZ
13436 *-*-linux* )
13437 if test "$GCC" != "yes"; then
13438 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
cb61c62d 13439echo "configure:13440: checking for Intel compiler" >&5
55e80573
VZ
13440if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13442else
13443
13444 cat > conftest.$ac_ext <<EOF
cb61c62d 13445#line 13446 "configure"
55e80573
VZ
13446#include "confdefs.h"
13447
13448int main() {
13449
13450 #ifndef __INTEL_COMPILER
dd4f7467 13451 #error Not icc
55e80573
VZ
13452 #endif
13453
13454; return 0; }
13455EOF
cb61c62d 13456if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
13457 rm -rf conftest*
13458 wx_cv_prog_icc=yes
13459else
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 rm -rf conftest*
13463 wx_cv_prog_icc=no
13464
13465fi
13466rm -f conftest*
13467
13468fi
13469
13470echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
13471 if test "$wx_cv_prog_icc" = "yes"; then
13472 PIC_FLAG="-KPIC"
13473 fi
13474 fi
13475
3a922bb4
RL
13476 if test "$wxUSE_SONAME" = "yes" ; then
13477 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13478 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 13479 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 13480 fi
10f2d63a 13481 ;;
55e80573 13482
10f2d63a
VZ
13483 *-*-solaris2* )
13484 if test "$GCC" = yes ; then
f6bcfd97 13485 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
13486 else
13487 SHARED_LD="${CXX} -G -o"
13488 PIC_FLAG="-KPIC"
7b7a7637 13489 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 13490 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13491 fi
10f2d63a 13492 ;;
55e80573 13493
b4085ce6 13494 *-*-darwin* )
156b2523
GD
13495 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13496 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13497 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 13498 PIC_FLAG="-dynamic -fPIC"
10f2d63a 13499 ;;
55e80573 13500
10f2d63a
VZ
13501 *-*-aix* )
13502 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 13503 ;;
55e80573 13504
7b7a7637 13505 *-*-cygwin* | *-*-mingw32* )
77e13408 13506
2da4f892 13507 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 13508
77e13408 13509 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 13510 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
13511
13512 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
13513
13514 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 13515 WX_ALL_INSTALLED="preinstall_gl"
978f1259 13516 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 13517 else
978f1259 13518 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 13519 fi
10f2d63a 13520 ;;
55e80573 13521
6fa882bd 13522 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 13523 wxUSE_SHARED=no
10f2d63a 13524 ;;
55e80573 13525
b12915c1 13526 *-*-beos* )
e2b8b066 13527 SHARED_LD="${LD} -shared -o"
b12915c1 13528 ;;
55e80573
VZ
13529
13530 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13531 *-*-sunos4* | \
13532 *-*-irix5* | *-*-irix6* | \
13533 *-*-osf* | \
13534 *-*-dgux5* | \
13535 *-*-sysv5* )
13536 ;;
13537
10f2d63a 13538 *)
7b7a7637 13539 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
13540 esac
13541
13542 if test "x$WX_TARGET_LIBRARY" = "x"; then
13543 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 13544 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13545 fi
55e80573 13546
3711412e 13547 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 13548 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 13549fi
f6bcfd97 13550
3a922bb4 13551if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 13552
3a922bb4 13553 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
13554 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13555 fi
13556
6fa882bd
RR
13557 if test "$wxUSE_MAC" = 1; then
13558 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13559 fi
13560
3a922bb4
RL
13561 if test "$wxUSE_OPENGL" = "yes"; then
13562 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13563 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13564 else
13565 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13566 fi
698dcdb6 13567
3a922bb4
RL
13568 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13569 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13570
13571 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 13572 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 13573fi
10f2d63a 13574
d08b457b
GD
13575if test "$wxUSE_MAC" = 1; then
13576 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 13577 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
13578 # Extract the first word of "Rez", so it can be a program name with args.
13579set dummy Rez; ac_word=$2
13580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 13581echo "configure:13582: checking for $ac_word" >&5
d08b457b
GD
13582if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584else
13585 if test -n "$RESCOMP"; then
13586 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13587else
13588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13589 ac_dummy="$PATH"
13590 for ac_dir in $ac_dummy; do
13591 test -z "$ac_dir" && ac_dir=.
13592 if test -f $ac_dir/$ac_word; then
13593 ac_cv_prog_RESCOMP="Rez"
13594 break
13595 fi
13596 done
13597 IFS="$ac_save_ifs"
13598 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13599fi
13600fi
13601RESCOMP="$ac_cv_prog_RESCOMP"
13602if test -n "$RESCOMP"; then
13603 echo "$ac_t""$RESCOMP" 1>&6
13604else
13605 echo "$ac_t""no" 1>&6
13606fi
13607
9f8148b1
GD
13608 # Extract the first word of "DeRez", so it can be a program name with args.
13609set dummy DeRez; ac_word=$2
d08b457b 13610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
cb61c62d 13611echo "configure:13612: checking for $ac_word" >&5
d08b457b
GD
13612if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13614else
13615 if test -n "$DEREZ"; then
13616 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13617else
13618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13619 ac_dummy="$PATH"
13620 for ac_dir in $ac_dummy; do
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f $ac_dir/$ac_word; then
9f8148b1 13623 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13624 break
13625 fi
13626 done
13627 IFS="$ac_save_ifs"
9f8148b1 13628 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13629fi
13630fi
13631DEREZ="$ac_cv_prog_DEREZ"
13632if test -n "$DEREZ"; then
13633 echo "$ac_t""$DEREZ" 1>&6
13634else
13635 echo "$ac_t""no" 1>&6
13636fi
13637
13638 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13639 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 13640 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
13641fi
13642
3a922bb4 13643
13c0541d
GD
13644if test "$wxUSE_MAC" != 1; then
13645 for ac_hdr in strings.h
9cfadba2 13646do
698dcdb6
VZ
13647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13649echo "configure:13650: checking for $ac_hdr" >&5
698dcdb6
VZ
13650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13652else
13653 cat > conftest.$ac_ext <<EOF
cb61c62d 13654#line 13655 "configure"
9cfadba2 13655#include "confdefs.h"
698dcdb6
VZ
13656#include <$ac_hdr>
13657EOF
13658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13659{ (eval echo configure:13660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13661if test -z "$ac_err"; then
13662 rm -rf conftest*
13663 eval "ac_cv_header_$ac_safe=yes"
6232543b 13664else
698dcdb6
VZ
13665 echo "$ac_err" >&5
13666 echo "configure: failed program was:" >&5
9cfadba2 13667 cat conftest.$ac_ext >&5
698dcdb6
VZ
13668 rm -rf conftest*
13669 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13670fi
698dcdb6 13671rm -f conftest*
9cfadba2 13672fi
698dcdb6
VZ
13673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13674 echo "$ac_t""yes" 1>&6
13675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13676 cat >> confdefs.h <<EOF
13677#define $ac_tr_hdr 1
9cfadba2 13678EOF
698dcdb6
VZ
13679
13680else
13681 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13682fi
13683done
10f2d63a 13684
13c0541d
GD
13685fi
13686
3a922bb4 13687for ac_hdr in stdlib.h
10f2d63a 13688do
698dcdb6
VZ
13689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13690echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13691echo "configure:13692: checking for $ac_hdr" >&5
698dcdb6
VZ
13692if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13693 echo $ac_n "(cached) $ac_c" 1>&6
13694else
13695 cat > conftest.$ac_ext <<EOF
cb61c62d 13696#line 13697 "configure"
10f2d63a 13697#include "confdefs.h"
698dcdb6
VZ
13698#include <$ac_hdr>
13699EOF
13700ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13701{ (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13702ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13703if test -z "$ac_err"; then
13704 rm -rf conftest*
13705 eval "ac_cv_header_$ac_safe=yes"
6232543b 13706else
698dcdb6
VZ
13707 echo "$ac_err" >&5
13708 echo "configure: failed program was:" >&5
10f2d63a 13709 cat conftest.$ac_ext >&5
698dcdb6
VZ
13710 rm -rf conftest*
13711 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13712fi
698dcdb6 13713rm -f conftest*
10f2d63a 13714fi
698dcdb6
VZ
13715if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13718 cat >> confdefs.h <<EOF
13719#define $ac_tr_hdr 1
10f2d63a 13720EOF
698dcdb6
VZ
13721
13722else
13723 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13724fi
13725done
13726
9f8148b1 13727for ac_hdr in malloc.h
10f2d63a 13728do
698dcdb6
VZ
13729ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13730echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13731echo "configure:13732: checking for $ac_hdr" >&5
698dcdb6
VZ
13732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13734else
13735 cat > conftest.$ac_ext <<EOF
cb61c62d 13736#line 13737 "configure"
10f2d63a 13737#include "confdefs.h"
698dcdb6
VZ
13738#include <$ac_hdr>
13739EOF
13740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13741{ (eval echo configure:13742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13743if test -z "$ac_err"; then
13744 rm -rf conftest*
13745 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13746else
698dcdb6
VZ
13747 echo "$ac_err" >&5
13748 echo "configure: failed program was:" >&5
6f72b082 13749 cat conftest.$ac_ext >&5
698dcdb6
VZ
13750 rm -rf conftest*
13751 eval "ac_cv_header_$ac_safe=no"
6f72b082 13752fi
698dcdb6 13753rm -f conftest*
6f72b082 13754fi
698dcdb6
VZ
13755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13758 cat >> confdefs.h <<EOF
13759#define $ac_tr_hdr 1
6f72b082 13760EOF
698dcdb6
VZ
13761
13762else
13763 echo "$ac_t""no" 1>&6
6f72b082
OK
13764fi
13765done
13766
9f8148b1 13767for ac_hdr in unistd.h
6f72b082 13768do
698dcdb6
VZ
13769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13771echo "configure:13772: checking for $ac_hdr" >&5
698dcdb6
VZ
13772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13774else
13775 cat > conftest.$ac_ext <<EOF
cb61c62d 13776#line 13777 "configure"
6f72b082 13777#include "confdefs.h"
698dcdb6
VZ
13778#include <$ac_hdr>
13779EOF
13780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13781{ (eval echo configure:13782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13783if test -z "$ac_err"; then
13784 rm -rf conftest*
13785 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13786else
698dcdb6
VZ
13787 echo "$ac_err" >&5
13788 echo "configure: failed program was:" >&5
6f72b082 13789 cat conftest.$ac_ext >&5
698dcdb6
VZ
13790 rm -rf conftest*
13791 eval "ac_cv_header_$ac_safe=no"
6f72b082 13792fi
698dcdb6 13793rm -f conftest*
6f72b082 13794fi
698dcdb6
VZ
13795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13798 cat >> confdefs.h <<EOF
13799#define $ac_tr_hdr 1
6f72b082 13800EOF
698dcdb6
VZ
13801
13802else
13803 echo "$ac_t""no" 1>&6
6f72b082
OK
13804fi
13805done
13806
9f8148b1 13807for ac_hdr in wchar.h
6f72b082 13808do
698dcdb6
VZ
13809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13811echo "configure:13812: checking for $ac_hdr" >&5
698dcdb6
VZ
13812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814else
13815 cat > conftest.$ac_ext <<EOF
cb61c62d 13816#line 13817 "configure"
6f72b082 13817#include "confdefs.h"
698dcdb6
VZ
13818#include <$ac_hdr>
13819EOF
13820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13821{ (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13823if test -z "$ac_err"; then
13824 rm -rf conftest*
13825 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13826else
698dcdb6
VZ
13827 echo "$ac_err" >&5
13828 echo "configure: failed program was:" >&5
10f2d63a 13829 cat conftest.$ac_ext >&5
698dcdb6
VZ
13830 rm -rf conftest*
13831 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13832fi
698dcdb6 13833rm -f conftest*
10f2d63a 13834fi
698dcdb6
VZ
13835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13838 cat >> confdefs.h <<EOF
13839#define $ac_tr_hdr 1
10f2d63a 13840EOF
698dcdb6
VZ
13841
13842else
13843 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13844fi
13845done
13846
9f8148b1 13847for ac_hdr in wcstr.h
0fb0dd83 13848do
698dcdb6
VZ
13849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13851echo "configure:13852: checking for $ac_hdr" >&5
698dcdb6
VZ
13852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854else
13855 cat > conftest.$ac_ext <<EOF
cb61c62d 13856#line 13857 "configure"
0fb0dd83 13857#include "confdefs.h"
698dcdb6
VZ
13858#include <$ac_hdr>
13859EOF
13860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13861{ (eval echo configure:13862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13863if test -z "$ac_err"; then
13864 rm -rf conftest*
13865 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13866else
698dcdb6
VZ
13867 echo "$ac_err" >&5
13868 echo "configure: failed program was:" >&5
0fb0dd83 13869 cat conftest.$ac_ext >&5
698dcdb6
VZ
13870 rm -rf conftest*
13871 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13872fi
698dcdb6 13873rm -f conftest*
0fb0dd83 13874fi
698dcdb6
VZ
13875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13878 cat >> confdefs.h <<EOF
13879#define $ac_tr_hdr 1
0fb0dd83 13880EOF
698dcdb6
VZ
13881
13882else
13883 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13884fi
13885done
13886
9f8148b1 13887for ac_hdr in wctype.h
1f8ae82f 13888do
698dcdb6
VZ
13889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13891echo "configure:13892: checking for $ac_hdr" >&5
698dcdb6
VZ
13892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894else
13895 cat > conftest.$ac_ext <<EOF
cb61c62d 13896#line 13897 "configure"
1f8ae82f 13897#include "confdefs.h"
698dcdb6
VZ
13898#include <$ac_hdr>
13899EOF
13900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13901{ (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13903if test -z "$ac_err"; then
13904 rm -rf conftest*
13905 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 13906else
698dcdb6
VZ
13907 echo "$ac_err" >&5
13908 echo "configure: failed program was:" >&5
1f8ae82f 13909 cat conftest.$ac_ext >&5
698dcdb6
VZ
13910 rm -rf conftest*
13911 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 13912fi
698dcdb6 13913rm -f conftest*
1f8ae82f 13914fi
698dcdb6
VZ
13915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13916 echo "$ac_t""yes" 1>&6
13917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13918 cat >> confdefs.h <<EOF
13919#define $ac_tr_hdr 1
1f8ae82f 13920EOF
698dcdb6
VZ
13921
13922else
13923 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13924fi
13925done
13926
9f8148b1 13927for ac_hdr in fnmatch.h
10f2d63a 13928do
698dcdb6
VZ
13929ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13930echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13931echo "configure:13932: checking for $ac_hdr" >&5
0fbb762e
MB
13932if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13933 echo $ac_n "(cached) $ac_c" 1>&6
13934else
13935 cat > conftest.$ac_ext <<EOF
cb61c62d 13936#line 13937 "configure"
0fbb762e
MB
13937#include "confdefs.h"
13938#include <$ac_hdr>
13939EOF
13940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13941{ (eval echo configure:13942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13943if test -z "$ac_err"; then
13944 rm -rf conftest*
13945 eval "ac_cv_header_$ac_safe=yes"
13946else
13947 echo "$ac_err" >&5
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 rm -rf conftest*
13951 eval "ac_cv_header_$ac_safe=no"
13952fi
13953rm -f conftest*
13954fi
13955if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13956 echo "$ac_t""yes" 1>&6
13957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13958 cat >> confdefs.h <<EOF
13959#define $ac_tr_hdr 1
13960EOF
13961
13962else
13963 echo "$ac_t""no" 1>&6
13964fi
13965done
13966
9f8148b1
GD
13967for ac_hdr in langinfo.h
13968do
13969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 13971echo "configure:13972: checking for $ac_hdr" >&5
9f8148b1
GD
13972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
13974else
13975 cat > conftest.$ac_ext <<EOF
cb61c62d 13976#line 13977 "configure"
9f8148b1
GD
13977#include "confdefs.h"
13978#include <$ac_hdr>
13979EOF
13980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 13981{ (eval echo configure:13982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13983if test -z "$ac_err"; then
13984 rm -rf conftest*
13985 eval "ac_cv_header_$ac_safe=yes"
13986else
13987 echo "$ac_err" >&5
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 eval "ac_cv_header_$ac_safe=no"
13992fi
13993rm -f conftest*
13994fi
13995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13998 cat >> confdefs.h <<EOF
13999#define $ac_tr_hdr 1
14000EOF
14001
14002else
14003 echo "$ac_t""no" 1>&6
14004fi
14005done
14006
10f2d63a 14007
3a922bb4
RL
14008if test "$wxUSE_GUI" = "yes"; then
14009 if test "$wxUSE_UNIX" = "yes"; then
14010 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
14011do
14012ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14013echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 14014echo "configure:14015: checking for $ac_hdr" >&5
29fd3c0c
VS
14015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14016 echo $ac_n "(cached) $ac_c" 1>&6
14017else
14018 cat > conftest.$ac_ext <<EOF
cb61c62d 14019#line 14020 "configure"
29fd3c0c
VS
14020#include "confdefs.h"
14021#include <$ac_hdr>
14022EOF
14023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 14024{ (eval echo configure:14025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
14025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14026if test -z "$ac_err"; then
14027 rm -rf conftest*
14028 eval "ac_cv_header_$ac_safe=yes"
14029else
14030 echo "$ac_err" >&5
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_header_$ac_safe=no"
14035fi
14036rm -f conftest*
14037fi
14038if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14039 echo "$ac_t""yes" 1>&6
14040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14041 cat >> confdefs.h <<EOF
14042#define $ac_tr_hdr 1
14043EOF
14044
14045else
14046 echo "$ac_t""no" 1>&6
14047fi
14048done
14049
3a922bb4 14050 fi
29fd3c0c
VS
14051fi
14052
698dcdb6
VZ
14053
14054echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
cb61c62d 14055echo "configure:14056: checking for ANSI C header files" >&5
698dcdb6
VZ
14056if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14058else
698dcdb6 14059 cat > conftest.$ac_ext <<EOF
cb61c62d 14060#line 14061 "configure"
10f2d63a
VZ
14061#include "confdefs.h"
14062#include <stdlib.h>
14063#include <stdarg.h>
14064#include <string.h>
14065#include <float.h>
698dcdb6
VZ
14066EOF
14067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 14068{ (eval echo configure:14069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14069ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14070if test -z "$ac_err"; then
14071 rm -rf conftest*
10f2d63a
VZ
14072 ac_cv_header_stdc=yes
14073else
698dcdb6
VZ
14074 echo "$ac_err" >&5
14075 echo "configure: failed program was:" >&5
10f2d63a 14076 cat conftest.$ac_ext >&5
698dcdb6 14077 rm -rf conftest*
10f2d63a
VZ
14078 ac_cv_header_stdc=no
14079fi
698dcdb6 14080rm -f conftest*
10f2d63a
VZ
14081
14082if test $ac_cv_header_stdc = yes; then
14083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 14084cat > conftest.$ac_ext <<EOF
cb61c62d 14085#line 14086 "configure"
10f2d63a
VZ
14086#include "confdefs.h"
14087#include <string.h>
698dcdb6 14088EOF
10f2d63a
VZ
14089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "memchr" >/dev/null 2>&1; then
14091 :
14092else
698dcdb6 14093 rm -rf conftest*
10f2d63a
VZ
14094 ac_cv_header_stdc=no
14095fi
14096rm -f conftest*
14097
14098fi
14099
14100if test $ac_cv_header_stdc = yes; then
14101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 14102cat > conftest.$ac_ext <<EOF
cb61c62d 14103#line 14104 "configure"
10f2d63a
VZ
14104#include "confdefs.h"
14105#include <stdlib.h>
698dcdb6 14106EOF
10f2d63a
VZ
14107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 egrep "free" >/dev/null 2>&1; then
14109 :
14110else
698dcdb6 14111 rm -rf conftest*
10f2d63a
VZ
14112 ac_cv_header_stdc=no
14113fi
14114rm -f conftest*
14115
14116fi
14117
14118if test $ac_cv_header_stdc = yes; then
14119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 14120if test "$cross_compiling" = yes; then
10f2d63a
VZ
14121 :
14122else
698dcdb6 14123 cat > conftest.$ac_ext <<EOF
cb61c62d 14124#line 14125 "configure"
10f2d63a
VZ
14125#include "confdefs.h"
14126#include <ctype.h>
698dcdb6
VZ
14127#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14128#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 14129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
14130int main () { int i; for (i = 0; i < 256; i++)
14131if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14132exit (0); }
14133
14134EOF
cb61c62d 14135if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14136then
10f2d63a
VZ
14137 :
14138else
698dcdb6
VZ
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -fr conftest*
14142 ac_cv_header_stdc=no
10f2d63a 14143fi
698dcdb6 14144rm -fr conftest*
10f2d63a 14145fi
698dcdb6 14146
10f2d63a
VZ
14147fi
14148fi
1e487827 14149
698dcdb6
VZ
14150echo "$ac_t""$ac_cv_header_stdc" 1>&6
14151if test $ac_cv_header_stdc = yes; then
14152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14153#define STDC_HEADERS 1
14154EOF
14155
14156fi
14157
698dcdb6 14158echo $ac_n "checking for mode_t""... $ac_c" 1>&6
cb61c62d 14159echo "configure:14160: checking for mode_t" >&5
698dcdb6
VZ
14160if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14162else
698dcdb6 14163 cat > conftest.$ac_ext <<EOF
cb61c62d 14164#line 14165 "configure"
1e487827 14165#include "confdefs.h"
698dcdb6
VZ
14166#include <sys/types.h>
14167#if STDC_HEADERS
14168#include <stdlib.h>
14169#include <stddef.h>
14170#endif
14171EOF
14172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14173 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14174 rm -rf conftest*
10f2d63a
VZ
14175 ac_cv_type_mode_t=yes
14176else
698dcdb6
VZ
14177 rm -rf conftest*
14178 ac_cv_type_mode_t=no
703e0a69 14179fi
698dcdb6 14180rm -f conftest*
1e487827 14181
698dcdb6
VZ
14182fi
14183echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14184if test $ac_cv_type_mode_t = no; then
14185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14186#define mode_t int
14187EOF
14188
14189fi
14190
698dcdb6 14191echo $ac_n "checking for off_t""... $ac_c" 1>&6
cb61c62d 14192echo "configure:14193: checking for off_t" >&5
698dcdb6
VZ
14193if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14194 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14195else
698dcdb6 14196 cat > conftest.$ac_ext <<EOF
cb61c62d 14197#line 14198 "configure"
10f2d63a 14198#include "confdefs.h"
698dcdb6
VZ
14199#include <sys/types.h>
14200#if STDC_HEADERS
14201#include <stdlib.h>
14202#include <stddef.h>
14203#endif
14204EOF
14205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14206 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14207 rm -rf conftest*
10f2d63a
VZ
14208 ac_cv_type_off_t=yes
14209else
698dcdb6
VZ
14210 rm -rf conftest*
14211 ac_cv_type_off_t=no
703e0a69 14212fi
698dcdb6 14213rm -f conftest*
1e487827 14214
698dcdb6
VZ
14215fi
14216echo "$ac_t""$ac_cv_type_off_t" 1>&6
14217if test $ac_cv_type_off_t = no; then
14218 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14219#define off_t long
14220EOF
14221
14222fi
14223
698dcdb6 14224echo $ac_n "checking for pid_t""... $ac_c" 1>&6
cb61c62d 14225echo "configure:14226: checking for pid_t" >&5
698dcdb6
VZ
14226if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14228else
698dcdb6 14229 cat > conftest.$ac_ext <<EOF
cb61c62d 14230#line 14231 "configure"
10f2d63a 14231#include "confdefs.h"
698dcdb6
VZ
14232#include <sys/types.h>
14233#if STDC_HEADERS
14234#include <stdlib.h>
14235#include <stddef.h>
14236#endif
14237EOF
14238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14240 rm -rf conftest*
10f2d63a
VZ
14241 ac_cv_type_pid_t=yes
14242else
698dcdb6
VZ
14243 rm -rf conftest*
14244 ac_cv_type_pid_t=no
703e0a69 14245fi
698dcdb6 14246rm -f conftest*
1e487827 14247
698dcdb6
VZ
14248fi
14249echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14250if test $ac_cv_type_pid_t = no; then
14251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14252#define pid_t int
14253EOF
14254
14255fi
14256
698dcdb6 14257echo $ac_n "checking for size_t""... $ac_c" 1>&6
cb61c62d 14258echo "configure:14259: checking for size_t" >&5
698dcdb6
VZ
14259if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14260 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14261else
698dcdb6 14262 cat > conftest.$ac_ext <<EOF
cb61c62d 14263#line 14264 "configure"
10f2d63a 14264#include "confdefs.h"
698dcdb6
VZ
14265#include <sys/types.h>
14266#if STDC_HEADERS
14267#include <stdlib.h>
14268#include <stddef.h>
14269#endif
14270EOF
14271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14272 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14273 rm -rf conftest*
10f2d63a
VZ
14274 ac_cv_type_size_t=yes
14275else
698dcdb6
VZ
14276 rm -rf conftest*
14277 ac_cv_type_size_t=no
703e0a69 14278fi
698dcdb6 14279rm -f conftest*
1e487827 14280
698dcdb6
VZ
14281fi
14282echo "$ac_t""$ac_cv_type_size_t" 1>&6
14283if test $ac_cv_type_size_t = no; then
14284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14285#define size_t unsigned
14286EOF
14287
14288fi
14289
698dcdb6 14290echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
cb61c62d 14291echo "configure:14292: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
14292if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14294else
698dcdb6 14295 cat > conftest.$ac_ext <<EOF
cb61c62d 14296#line 14297 "configure"
10f2d63a
VZ
14297#include "confdefs.h"
14298#include <sys/types.h>
698dcdb6 14299EOF
10f2d63a
VZ
14300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14301 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 14302 rm -rf conftest*
10f2d63a
VZ
14303 ac_cv_type_uid_t=yes
14304else
698dcdb6 14305 rm -rf conftest*
10f2d63a
VZ
14306 ac_cv_type_uid_t=no
14307fi
14308rm -f conftest*
14309
14310fi
1e487827 14311
698dcdb6
VZ
14312echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14313if test $ac_cv_type_uid_t = no; then
14314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14315#define uid_t int
14316EOF
14317
698dcdb6 14318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14319#define gid_t int
14320EOF
14321
14322fi
14323
1e487827 14324
698dcdb6 14325echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
cb61c62d 14326echo "configure:14327: checking for wchar_t" >&5
698dcdb6
VZ
14327if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14329else
14330
14331 cat > conftest.$ac_ext <<EOF
cb61c62d 14332#line 14333 "configure"
0046ff7c 14333#include "confdefs.h"
4b42290e
GD
14334
14335 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14336 # ifdef __CYGWIN__
14337 # include <stddef.h>
14338 # endif
4b42290e
GD
14339 # include <wchar.h>
14340 #endif
14341 #ifdef HAVE_STDLIB_H
14342 # include <stdlib.h>
14343 #endif
14344
698dcdb6 14345int main() {
0046ff7c 14346
d836ee96
VZ
14347 wchar_t wc, *ws;
14348 wc = L'a';
14349 ws = L"Hello, world!";
698dcdb6
VZ
14350
14351; return 0; }
14352EOF
cb61c62d 14353if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14354 rm -rf conftest*
1f8ae82f 14355 wx_cv_type_wchar_t=yes
0046ff7c 14356else
698dcdb6
VZ
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360 wx_cv_type_wchar_t=no
d836ee96 14361
6232543b 14362fi
698dcdb6 14363rm -f conftest*
703e0a69 14364
1e487827 14365fi
698dcdb6
VZ
14366
14367echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
14368
14369if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 14370 cat >> confdefs.h <<\EOF
0046ff7c
VS
14371#define wxUSE_WCHAR_T 1
14372EOF
14373
14374fi
14375
19af3b06
VZ
14376
14377ac_ext=C
14378# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14379ac_cpp='$CXXCPP $CPPFLAGS'
14380ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14381ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14382cross_compiling=$ac_cv_prog_cxx_cross
14383
d836ee96 14384echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
cb61c62d 14385echo "configure:14386: checking if size_t is unsigned int" >&5
d836ee96
VZ
14386if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388else
dd2c8b7c 14389 cat > conftest.$ac_ext <<EOF
cb61c62d 14390#line 14391 "configure"
d836ee96
VZ
14391#include "confdefs.h"
14392#include <stddef.h>
14393int main() {
14394
dd2c8b7c
VZ
14395 return 0; }
14396
d836ee96 14397 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
14398
14399 int bar() {
d836ee96
VZ
14400
14401; return 0; }
14402EOF
cb61c62d 14403if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14404 rm -rf conftest*
14405 wx_cv_size_t_is_uint=no
14406else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 wx_cv_size_t_is_uint=yes
14411
14412fi
14413rm -f conftest*
14414
14415fi
14416
14417echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14418
14419if test "$wx_cv_size_t_is_uint" = "yes"; then
14420 cat >> confdefs.h <<\EOF
14421#define wxSIZE_T_IS_UINT 1
14422EOF
14423
14424else
14425 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
cb61c62d 14426echo "configure:14427: checking if size_t is unsigned long" >&5
d836ee96
VZ
14427if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14429else
14430 cat > conftest.$ac_ext <<EOF
cb61c62d 14431#line 14432 "configure"
d836ee96
VZ
14432#include "confdefs.h"
14433#include <stddef.h>
14434int main() {
14435
dd2c8b7c
VZ
14436 return 0; }
14437
d836ee96 14438 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
14439
14440 int bar() {
d836ee96
VZ
14441
14442; return 0; }
14443EOF
cb61c62d 14444if { (eval echo configure:14445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14445 rm -rf conftest*
14446 wx_cv_size_t_is_ulong=no
14447else
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14450 rm -rf conftest*
14451 wx_cv_size_t_is_ulong=yes
14452
14453fi
14454rm -f conftest*
14455
14456fi
14457
14458echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14459
14460 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14461 cat >> confdefs.h <<\EOF
14462#define wxSIZE_T_IS_ULONG 1
14463EOF
14464
14465 fi
14466fi
14467
19af3b06
VZ
14468ac_ext=c
14469# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14470ac_cpp='$CPP $CPPFLAGS'
14471ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14472ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14473cross_compiling=$ac_cv_prog_cc_cross
14474
14475
1e487827 14476
698dcdb6 14477echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
cb61c62d 14478echo "configure:14479: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
14479if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481else
14482
14483 cat > conftest.$ac_ext <<EOF
cb61c62d 14484#line 14485 "configure"
b12915c1
VZ
14485#include "confdefs.h"
14486#include <pwd.h>
698dcdb6 14487int main() {
b12915c1
VZ
14488
14489 char *p;
14490 struct passwd *pw;
14491 p = pw->pw_gecos;
698dcdb6
VZ
14492
14493; return 0; }
14494EOF
cb61c62d 14495if { (eval echo configure:14496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14496 rm -rf conftest*
14497
b12915c1 14498 wx_cv_struct_pw_gecos=yes
698dcdb6 14499
b12915c1 14500else
698dcdb6
VZ
14501 echo "configure: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14503 rm -rf conftest*
14504
b12915c1 14505 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
14506
14507
6232543b 14508fi
698dcdb6
VZ
14509rm -f conftest*
14510
703e0a69 14511
1e487827 14512fi
698dcdb6
VZ
14513
14514echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 14515
bd3277fe 14516if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 14517 cat >> confdefs.h <<\EOF
bd3277fe
VZ
14518#define HAVE_PW_GECOS 1
14519EOF
14520
14521fi
14522
698dcdb6
VZ
14523
14524echo $ac_n "checking for working const""... $ac_c" 1>&6
cb61c62d 14525echo "configure:14526: checking for working const" >&5
698dcdb6
VZ
14526if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14528else
698dcdb6 14529 cat > conftest.$ac_ext <<EOF
cb61c62d 14530#line 14531 "configure"
10f2d63a 14531#include "confdefs.h"
698dcdb6
VZ
14532
14533int main() {
14534
14535/* Ultrix mips cc rejects this. */
4cdb0ab0 14536typedef int charset[2]; const charset x;
698dcdb6
VZ
14537/* SunOS 4.1.1 cc rejects this. */
14538char const *const *ccp;
14539char **p;
14540/* NEC SVR4.0.2 mips cc rejects this. */
14541struct point {int x, y;};
14542static struct point const zero = {0,0};
14543/* AIX XL C 1.02.0.0 rejects this.
14544 It does not let you subtract one const X* pointer from another in an arm
14545 of an if-expression whose if-part is not a constant expression */
14546const char *g = "string";
14547ccp = &g + (g ? g-g : 0);
14548/* HPUX 7.0 cc rejects these. */
14549++ccp;
14550p = (char**) ccp;
14551ccp = (char const *const *) p;
14552{ /* SCO 3.2v4 cc rejects this. */
14553 char *t;
14554 char const *s = 0 ? (char *) 0 : (char const *) 0;
14555
14556 *t++ = 0;
10f2d63a 14557}
698dcdb6
VZ
14558{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14559 int x[] = {25, 17};
14560 const int *foo = &x[0];
14561 ++foo;
703e0a69 14562}
698dcdb6
VZ
14563{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14564 typedef const int *iptr;
14565 iptr p = 0;
14566 ++p;
6232543b 14567}
698dcdb6
VZ
14568{ /* AIX XL C 1.02.0.0 rejects this saying
14569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14570 struct s { int j; const int *ap[3]; };
14571 struct s *b; b->j = 5;
1e487827 14572}
698dcdb6
VZ
14573{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14574 const int foo = 10;
14575}
4f14bcd8
GD
14576
14577; return 0; }
698dcdb6 14578EOF
cb61c62d 14579if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14580 rm -rf conftest*
14581 ac_cv_c_const=yes
698dcdb6
VZ
14582else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
4f14bcd8
GD
14585 rm -rf conftest*
14586 ac_cv_c_const=no
703e0a69 14587fi
4f14bcd8 14588rm -f conftest*
698dcdb6
VZ
14589fi
14590
4f14bcd8
GD
14591echo "$ac_t""$ac_cv_c_const" 1>&6
14592if test $ac_cv_c_const = no; then
14593 cat >> confdefs.h <<\EOF
14594#define const
698dcdb6
VZ
14595EOF
14596
4f14bcd8 14597fi
698dcdb6 14598
4f14bcd8 14599echo $ac_n "checking for inline""... $ac_c" 1>&6
cb61c62d 14600echo "configure:14601: checking for inline" >&5
4f14bcd8 14601if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14602 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14603else
4f14bcd8
GD
14604 ac_cv_c_inline=no
14605for ac_kw in inline __inline__ __inline; do
698dcdb6 14606 cat > conftest.$ac_ext <<EOF
cb61c62d 14607#line 14608 "configure"
10f2d63a 14608#include "confdefs.h"
4f14bcd8
GD
14609
14610int main() {
4cdb0ab0 14611} $ac_kw foo() {
4f14bcd8 14612; return 0; }
698dcdb6 14613EOF
cb61c62d 14614if { (eval echo configure:14615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14615 rm -rf conftest*
14616 ac_cv_c_inline=$ac_kw; break
10f2d63a 14617else
698dcdb6
VZ
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
10f2d63a 14620fi
4f14bcd8
GD
14621rm -f conftest*
14622done
698dcdb6 14623
10f2d63a 14624fi
4f14bcd8
GD
14625
14626echo "$ac_t""$ac_cv_c_inline" 1>&6
14627case "$ac_cv_c_inline" in
14628 inline | yes) ;;
14629 no) cat >> confdefs.h <<\EOF
14630#define inline
14631EOF
14632 ;;
14633 *) cat >> confdefs.h <<EOF
14634#define inline $ac_cv_c_inline
698dcdb6 14635EOF
4f14bcd8
GD
14636 ;;
14637esac
698dcdb6
VZ
14638
14639
4f14bcd8 14640echo $ac_n "checking size of char""... $ac_c" 1>&6
cb61c62d 14641echo "configure:14642: checking size of char" >&5
4f14bcd8 14642if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14643 echo $ac_n "(cached) $ac_c" 1>&6
14644else
14645 if test "$cross_compiling" = yes; then
4f14bcd8 14646 ac_cv_sizeof_char=1
698dcdb6
VZ
14647else
14648 cat > conftest.$ac_ext <<EOF
cb61c62d 14649#line 14650 "configure"
698dcdb6
VZ
14650#include "confdefs.h"
14651#include <stdio.h>
cb61c62d 14652main()
698dcdb6
VZ
14653{
14654 FILE *f=fopen("conftestval", "w");
cb61c62d 14655 if (!f) exit(1);
4f14bcd8 14656 fprintf(f, "%d\n", sizeof(char));
cb61c62d 14657 exit(0);
698dcdb6
VZ
14658}
14659EOF
cb61c62d 14660if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14661then
4f14bcd8 14662 ac_cv_sizeof_char=`cat conftestval`
6232543b 14663else
698dcdb6
VZ
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -fr conftest*
4f14bcd8 14667 ac_cv_sizeof_char=0
6232543b 14668fi
698dcdb6
VZ
14669rm -fr conftest*
14670fi
14671
703e0a69 14672fi
4f14bcd8 14673echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14674cat >> confdefs.h <<EOF
4f14bcd8 14675#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14676EOF
14677
1e487827 14678
4f14bcd8 14679echo $ac_n "checking size of short""... $ac_c" 1>&6
cb61c62d 14680echo "configure:14681: checking size of short" >&5
4f14bcd8 14681if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14682 echo $ac_n "(cached) $ac_c" 1>&6
14683else
4f14bcd8
GD
14684 if test "$cross_compiling" = yes; then
14685 ac_cv_sizeof_short=2
b93d0d08 14686else
698dcdb6 14687 cat > conftest.$ac_ext <<EOF
cb61c62d 14688#line 14689 "configure"
b93d0d08 14689#include "confdefs.h"
4f14bcd8 14690#include <stdio.h>
cb61c62d 14691main()
4f14bcd8
GD
14692{
14693 FILE *f=fopen("conftestval", "w");
cb61c62d 14694 if (!f) exit(1);
4f14bcd8 14695 fprintf(f, "%d\n", sizeof(short));
cb61c62d 14696 exit(0);
4f14bcd8 14697}
698dcdb6 14698EOF
cb61c62d 14699if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14700then
4f14bcd8 14701 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14702else
698dcdb6
VZ
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -fr conftest*
4f14bcd8 14706 ac_cv_sizeof_short=0
b93d0d08 14707fi
698dcdb6 14708rm -fr conftest*
b93d0d08
VS
14709fi
14710
b93d0d08 14711fi
4f14bcd8 14712echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14713cat >> confdefs.h <<EOF
4f14bcd8 14714#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14715EOF
14716
698dcdb6 14717
4f14bcd8 14718echo $ac_n "checking size of int *""... $ac_c" 1>&6
cb61c62d 14719echo "configure:14720: checking size of int *" >&5
4f14bcd8 14720if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14721 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14722else
4f14bcd8
GD
14723 if test "$cross_compiling" = yes; then
14724 ac_cv_sizeof_int_p=4
3a922bb4 14725else
3a922bb4 14726 cat > conftest.$ac_ext <<EOF
cb61c62d 14727#line 14728 "configure"
3a922bb4 14728#include "confdefs.h"
4f14bcd8 14729#include <stdio.h>
cb61c62d 14730main()
4f14bcd8
GD
14731{
14732 FILE *f=fopen("conftestval", "w");
cb61c62d 14733 if (!f) exit(1);
4f14bcd8 14734 fprintf(f, "%d\n", sizeof(int *));
cb61c62d 14735 exit(0);
4f14bcd8
GD
14736}
14737EOF
cb61c62d 14738if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14739then
14740 ac_cv_sizeof_int_p=`cat conftestval`
14741else
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 rm -fr conftest*
14745 ac_cv_sizeof_int_p=0
3a922bb4 14746fi
4f14bcd8 14747rm -fr conftest*
3a922bb4 14748fi
698dcdb6 14749
4f14bcd8
GD
14750fi
14751echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14752cat >> confdefs.h <<EOF
14753#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14754EOF
14755
703e0a69 14756
4f14bcd8 14757echo $ac_n "checking size of int""... $ac_c" 1>&6
cb61c62d 14758echo "configure:14759: checking size of int" >&5
4f14bcd8 14759if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14760 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14761else
14762 if test "$cross_compiling" = yes; then
14763 ac_cv_sizeof_int=4
698dcdb6
VZ
14764else
14765 cat > conftest.$ac_ext <<EOF
cb61c62d 14766#line 14767 "configure"
10f2d63a 14767#include "confdefs.h"
4f14bcd8 14768#include <stdio.h>
cb61c62d 14769main()
4f14bcd8
GD
14770{
14771 FILE *f=fopen("conftestval", "w");
cb61c62d 14772 if (!f) exit(1);
4f14bcd8 14773 fprintf(f, "%d\n", sizeof(int));
cb61c62d 14774 exit(0);
4f14bcd8 14775}
698dcdb6 14776EOF
cb61c62d 14777if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14778then
14779 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14780else
698dcdb6 14781 echo "configure: failed program was:" >&5
10f2d63a 14782 cat conftest.$ac_ext >&5
4f14bcd8
GD
14783 rm -fr conftest*
14784 ac_cv_sizeof_int=0
10f2d63a 14785fi
4f14bcd8 14786rm -fr conftest*
10f2d63a 14787fi
10f2d63a 14788
4f14bcd8
GD
14789fi
14790echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14791cat >> confdefs.h <<EOF
14792#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14793EOF
14794
698dcdb6 14795
4f14bcd8 14796echo $ac_n "checking size of long""... $ac_c" 1>&6
cb61c62d 14797echo "configure:14798: checking size of long" >&5
4f14bcd8 14798if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14799 echo $ac_n "(cached) $ac_c" 1>&6
14800else
4f14bcd8
GD
14801 if test "$cross_compiling" = yes; then
14802 ac_cv_sizeof_long=4
14803else
14804 cat > conftest.$ac_ext <<EOF
cb61c62d 14805#line 14806 "configure"
10f2d63a 14806#include "confdefs.h"
4f14bcd8 14807#include <stdio.h>
cb61c62d 14808main()
4f14bcd8
GD
14809{
14810 FILE *f=fopen("conftestval", "w");
cb61c62d 14811 if (!f) exit(1);
4f14bcd8 14812 fprintf(f, "%d\n", sizeof(long));
cb61c62d 14813 exit(0);
4f14bcd8 14814}
698dcdb6 14815EOF
cb61c62d 14816if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14817then
14818 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14819else
698dcdb6
VZ
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
4f14bcd8
GD
14822 rm -fr conftest*
14823 ac_cv_sizeof_long=0
10f2d63a 14824fi
4f14bcd8 14825rm -fr conftest*
10f2d63a 14826fi
698dcdb6 14827
4f14bcd8
GD
14828fi
14829echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14830cat >> confdefs.h <<EOF
14831#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14832EOF
14833
698dcdb6 14834
4f14bcd8 14835echo $ac_n "checking size of long long""... $ac_c" 1>&6
cb61c62d 14836echo "configure:14837: checking size of long long" >&5
4f14bcd8 14837if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14838 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14839else
4f14bcd8
GD
14840 if test "$cross_compiling" = yes; then
14841 ac_cv_sizeof_long_long=0
14842else
14843 cat > conftest.$ac_ext <<EOF
cb61c62d 14844#line 14845 "configure"
10f2d63a 14845#include "confdefs.h"
4f14bcd8 14846#include <stdio.h>
cb61c62d 14847main()
4f14bcd8
GD
14848{
14849 FILE *f=fopen("conftestval", "w");
cb61c62d 14850 if (!f) exit(1);
4f14bcd8 14851 fprintf(f, "%d\n", sizeof(long long));
cb61c62d 14852 exit(0);
4f14bcd8 14853}
698dcdb6 14854EOF
cb61c62d 14855if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14856then
14857 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14858else
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
4f14bcd8
GD
14861 rm -fr conftest*
14862 ac_cv_sizeof_long_long=0
14863fi
14864rm -fr conftest*
698dcdb6 14865fi
698dcdb6
VZ
14866
14867fi
4f14bcd8
GD
14868echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14869cat >> confdefs.h <<EOF
14870#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14871EOF
14872
10f2d63a 14873
4f14bcd8
GD
14874
14875echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
cb61c62d 14876echo "configure:14877: checking size of wchar_t" >&5
4f14bcd8 14877if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14878 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14879else
4f14bcd8
GD
14880
14881 if test "$cross_compiling" = yes; then
14882 wx_cv_sizeof_wchar_t=4
14883
14884else
14885 cat > conftest.$ac_ext <<EOF
cb61c62d 14886#line 14887 "configure"
10f2d63a 14887#include "confdefs.h"
698dcdb6 14888
4f14bcd8 14889 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14890 # ifdef __CYGWIN__
14891 # include <stddef.h>
14892 # endif
4f14bcd8
GD
14893 # include <wchar.h>
14894 #endif
14895 #ifdef HAVE_STDLIB_H
14896 # include <stdlib.h>
14897 #endif
14898 #include <stdio.h>
14899 int main()
14900 {
14901 FILE *f=fopen("conftestval", "w");
14902 if (!f) exit(1);
14903 fprintf(f, "%i", sizeof(wchar_t));
14904 exit(0);
14905 }
14906
698dcdb6 14907EOF
cb61c62d 14908if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14909then
14910 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14911else
14912 echo "configure: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
4f14bcd8
GD
14914 rm -fr conftest*
14915 wx_cv_sizeof_wchar_t=0
698dcdb6 14916fi
4f14bcd8
GD
14917rm -fr conftest*
14918fi
14919
698dcdb6
VZ
14920
14921fi
4f14bcd8
GD
14922
14923echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14924
14925cat >> confdefs.h <<EOF
14926#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14927EOF
14928
18dbb1f6 14929
4f14bcd8 14930echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
cb61c62d 14931echo "configure:14932: checking whether byte ordering is bigendian" >&5
4f14bcd8 14932if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14933 echo $ac_n "(cached) $ac_c" 1>&6
14934else
4f14bcd8
GD
14935 ac_cv_c_bigendian=unknown
14936# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14937cat > conftest.$ac_ext <<EOF
cb61c62d 14938#line 14939 "configure"
18dbb1f6 14939#include "confdefs.h"
4f14bcd8
GD
14940#include <sys/types.h>
14941#include <sys/param.h>
14942int main() {
18dbb1f6 14943
4f14bcd8
GD
14944#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14945 bogus endian macros
14946#endif
14947; return 0; }
14948EOF
cb61c62d 14949if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14950 rm -rf conftest*
14951 # It does; now see whether it defined to BIG_ENDIAN or not.
14952cat > conftest.$ac_ext <<EOF
cb61c62d 14953#line 14954 "configure"
4f14bcd8
GD
14954#include "confdefs.h"
14955#include <sys/types.h>
14956#include <sys/param.h>
18dbb1f6 14957int main() {
4f14bcd8
GD
14958
14959#if BYTE_ORDER != BIG_ENDIAN
14960 not big endian
14961#endif
18dbb1f6
VZ
14962; return 0; }
14963EOF
cb61c62d 14964if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14965 rm -rf conftest*
4f14bcd8 14966 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14967else
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 rm -rf conftest*
4f14bcd8 14971 ac_cv_c_bigendian=no
18dbb1f6
VZ
14972fi
14973rm -f conftest*
698dcdb6 14974else
4f14bcd8
GD
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
1e487827 14977fi
4f14bcd8
GD
14978rm -f conftest*
14979if test $ac_cv_c_bigendian = unknown; then
14980if test "$cross_compiling" = yes; then
14981 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14982else
14983 cat > conftest.$ac_ext <<EOF
cb61c62d 14984#line 14985 "configure"
b3e8d00a 14985#include "confdefs.h"
4f14bcd8
GD
14986main () {
14987 /* Are we little or big endian? From Harbison&Steele. */
14988 union
14989 {
14990 long l;
14991 char c[sizeof (long)];
14992 } u;
14993 u.l = 1;
14994 exit (u.c[sizeof (long) - 1] == 1);
14995}
b3e8d00a 14996EOF
cb61c62d 14997if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14998then
14999 ac_cv_c_bigendian=no
b3e8d00a
VZ
15000else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
4f14bcd8
GD
15003 rm -fr conftest*
15004 ac_cv_c_bigendian=yes
b3e8d00a 15005fi
4f14bcd8 15006rm -fr conftest*
b3e8d00a
VZ
15007fi
15008
4f14bcd8
GD
15009fi
15010fi
15011
15012echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15013if test $ac_cv_c_bigendian = unknown; then
15014 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
15015fi
15016if test $ac_cv_c_bigendian = yes; then
15017 cat >> confdefs.h <<\EOF
15018#define WORDS_BIGENDIAN 1
b3e8d00a 15019EOF
4f14bcd8 15020
b3e8d00a 15021fi
b3e8d00a
VZ
15022
15023
4f14bcd8 15024echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
cb61c62d 15025echo "configure:15026: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
15026if test -z "$CXXCPP"; then
15027if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029else
4f14bcd8
GD
15030 ac_ext=C
15031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15032ac_cpp='$CXXCPP $CPPFLAGS'
15033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15035cross_compiling=$ac_cv_prog_cxx_cross
15036 CXXCPP="${CXX-g++} -E"
698dcdb6 15037 cat > conftest.$ac_ext <<EOF
cb61c62d 15038#line 15039 "configure"
10f2d63a 15039#include "confdefs.h"
4f14bcd8 15040#include <stdlib.h>
698dcdb6 15041EOF
4f14bcd8 15042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 15043{ (eval echo configure:15044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15045if test -z "$ac_err"; then
15046 :
698dcdb6 15047else
4f14bcd8 15048 echo "$ac_err" >&5
698dcdb6
VZ
15049 echo "configure: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 rm -rf conftest*
4f14bcd8 15052 CXXCPP=/lib/cpp
698dcdb6
VZ
15053fi
15054rm -f conftest*
4f14bcd8
GD
15055 ac_cv_prog_CXXCPP="$CXXCPP"
15056ac_ext=C
15057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15058ac_cpp='$CXXCPP $CPPFLAGS'
15059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15061cross_compiling=$ac_cv_prog_cxx_cross
15062fi
698dcdb6 15063fi
4f14bcd8
GD
15064CXXCPP="$ac_cv_prog_CXXCPP"
15065echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 15066
4f14bcd8
GD
15067
15068 if test "$cross_compiling" = "yes"; then
15069 cat >> confdefs.h <<\EOF
15070#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
15071EOF
15072
4f14bcd8
GD
15073 else
15074
15075 ac_ext=C
15076# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15077ac_cpp='$CXXCPP $CPPFLAGS'
15078ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15079ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15080cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 15081
4f14bcd8
GD
15082
15083 for ac_hdr in iostream
15084do
15085ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15086echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 15087echo "configure:15088: checking for $ac_hdr" >&5
4f14bcd8 15088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
15089 echo $ac_n "(cached) $ac_c" 1>&6
15090else
15091 cat > conftest.$ac_ext <<EOF
cb61c62d 15092#line 15093 "configure"
10f2d63a 15093#include "confdefs.h"
4f14bcd8 15094#include <$ac_hdr>
698dcdb6 15095EOF
4f14bcd8 15096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 15097{ (eval echo configure:15098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15099if test -z "$ac_err"; then
698dcdb6 15100 rm -rf conftest*
4f14bcd8 15101 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 15102else
4f14bcd8 15103 echo "$ac_err" >&5
698dcdb6
VZ
15104 echo "configure: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 rm -rf conftest*
4f14bcd8 15107 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
15108fi
15109rm -f conftest*
15110fi
4f14bcd8 15111if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 15112 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15114 cat >> confdefs.h <<EOF
15115#define $ac_tr_hdr 1
10f2d63a 15116EOF
4f14bcd8 15117
698dcdb6
VZ
15118else
15119 echo "$ac_t""no" 1>&6
10f2d63a 15120fi
4f14bcd8 15121done
10f2d63a 15122
10f2d63a 15123
4f14bcd8
GD
15124 if test "$ac_cv_header_iostream" = "yes" ; then
15125 :
15126 else
15127 cat >> confdefs.h <<\EOF
15128#define wxUSE_IOSTREAMH 1
15129EOF
15130
15131 fi
1e487827 15132
4f14bcd8
GD
15133 ac_ext=c
15134# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15135ac_cpp='$CPP $CPPFLAGS'
15136ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15137ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15138cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15139
4f14bcd8 15140 fi
698dcdb6
VZ
15141
15142
15143
4f14bcd8 15144 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
cb61c62d 15145echo "configure:15146: checking if C++ compiler supports bool" >&5
4f14bcd8 15146if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148else
15149
4f14bcd8
GD
15150
15151 ac_ext=C
15152# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153ac_cpp='$CXXCPP $CPPFLAGS'
15154ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 15157
10f2d63a 15158
4f14bcd8 15159 cat > conftest.$ac_ext <<EOF
cb61c62d 15160#line 15161 "configure"
4f14bcd8 15161#include "confdefs.h"
10f2d63a 15162
4f14bcd8
GD
15163
15164int main() {
f6bcfd97 15165
4f14bcd8 15166 bool b = true;
f6bcfd97 15167
4f14bcd8
GD
15168 return 0;
15169
698dcdb6
VZ
15170; return 0; }
15171EOF
cb61c62d 15172if { (eval echo configure:15173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15173 rm -rf conftest*
15174
4f14bcd8
GD
15175 wx_cv_cpp_bool=yes
15176
10f2d63a 15177else
698dcdb6
VZ
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 rm -rf conftest*
15181
4f14bcd8
GD
15182 wx_cv_cpp_bool=no
15183
15184
15185fi
15186rm -f conftest*
c521c494 15187
4f14bcd8
GD
15188 ac_ext=c
15189# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190ac_cpp='$CPP $CPPFLAGS'
15191ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193cross_compiling=$ac_cv_prog_cc_cross
c521c494 15194
4f14bcd8
GD
15195
15196fi
c521c494 15197
4f14bcd8 15198echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 15199
4f14bcd8
GD
15200 if test "$wx_cv_cpp_bool" = "yes"; then
15201 cat >> confdefs.h <<\EOF
15202#define HAVE_BOOL 1
15203EOF
c521c494 15204
4f14bcd8
GD
15205 fi
15206
15207
15208
15209echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
cb61c62d 15210echo "configure:15211: checking for wcslen in -lc" >&5
4f14bcd8
GD
15211ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15213 echo $ac_n "(cached) $ac_c" 1>&6
15214else
15215 ac_save_LIBS="$LIBS"
15216LIBS="-lc $LIBS"
15217cat > conftest.$ac_ext <<EOF
cb61c62d 15218#line 15219 "configure"
4f14bcd8
GD
15219#include "confdefs.h"
15220/* Override any gcc2 internal prototype to avoid an error. */
15221/* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15223char wcslen();
15224
15225int main() {
15226wcslen()
698dcdb6
VZ
15227; return 0; }
15228EOF
cb61c62d 15229if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15230 rm -rf conftest*
4f14bcd8 15231 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 15232else
698dcdb6
VZ
15233 echo "configure: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15235 rm -rf conftest*
4f14bcd8 15236 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15237fi
698dcdb6 15238rm -f conftest*
4f14bcd8 15239LIBS="$ac_save_LIBS"
703e0a69 15240
1e487827 15241fi
4f14bcd8
GD
15242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15243 echo "$ac_t""yes" 1>&6
15244
15245 cat >> confdefs.h <<\EOF
15246#define HAVE_WCSLEN 1
9d8deca0
VZ
15247EOF
15248
3d63bc3a 15249 WCHAR_LINK=
4f14bcd8 15250
9d8deca0 15251else
4f14bcd8 15252 echo "$ac_t""no" 1>&6
9d8deca0 15253
4f14bcd8 15254 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
cb61c62d 15255echo "configure:15256: checking for wcslen in -lw" >&5
4f14bcd8
GD
15256ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15258 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15259else
4f14bcd8
GD
15260 ac_save_LIBS="$LIBS"
15261LIBS="-lw $LIBS"
15262cat > conftest.$ac_ext <<EOF
cb61c62d 15263#line 15264 "configure"
10f2d63a 15264#include "confdefs.h"
4f14bcd8
GD
15265/* Override any gcc2 internal prototype to avoid an error. */
15266/* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15268char wcslen();
10f2d63a 15269
698dcdb6 15270int main() {
4f14bcd8 15271wcslen()
698dcdb6
VZ
15272; return 0; }
15273EOF
cb61c62d 15274if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15275 rm -rf conftest*
4f14bcd8 15276 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15277else
698dcdb6
VZ
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
4f14bcd8 15281 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15282fi
698dcdb6 15283rm -f conftest*
4f14bcd8 15284LIBS="$ac_save_LIBS"
703e0a69 15285
1e487827 15286fi
4f14bcd8
GD
15287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15288 echo "$ac_t""yes" 1>&6
15289
15290 cat >> confdefs.h <<\EOF
15291#define HAVE_WCSLEN 1
9d8deca0
VZ
15292EOF
15293
3d63bc3a 15294 WCHAR_LINK=" -lw"
4f14bcd8
GD
15295
15296else
15297 echo "$ac_t""no" 1>&6
698dcdb6 15298
4f14bcd8 15299 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
cb61c62d 15300echo "configure:15301: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
15301ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15303 echo $ac_n "(cached) $ac_c" 1>&6
15304else
4f14bcd8
GD
15305 ac_save_LIBS="$LIBS"
15306LIBS="-lmsvcrt $LIBS"
15307cat > conftest.$ac_ext <<EOF
cb61c62d 15308#line 15309 "configure"
95c8801c 15309#include "confdefs.h"
4f14bcd8
GD
15310/* Override any gcc2 internal prototype to avoid an error. */
15311/* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15313char wcslen();
95c8801c 15314
4f14bcd8
GD
15315int main() {
15316wcslen()
698dcdb6
VZ
15317; return 0; }
15318EOF
cb61c62d 15319if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15320 rm -rf conftest*
4f14bcd8 15321 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15322else
698dcdb6
VZ
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15325 rm -rf conftest*
4f14bcd8 15326 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15327fi
698dcdb6 15328rm -f conftest*
4f14bcd8 15329LIBS="$ac_save_LIBS"
95c8801c
VS
15330
15331fi
4f14bcd8
GD
15332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15333 echo "$ac_t""yes" 1>&6
15334
15335 cat >> confdefs.h <<\EOF
15336#define HAVE_WCSLEN 1
15337EOF
698dcdb6 15338
3d63bc3a 15339 WCHAR_LINK=
4f14bcd8
GD
15340
15341else
15342 echo "$ac_t""no" 1>&6
15343fi
10f2d63a 15344
4f14bcd8
GD
15345
15346fi
95c8801c 15347
4f14bcd8 15348
95c8801c 15349fi
10f2d63a 15350
1e487827 15351
4f14bcd8 15352for ac_func in wcsrtombs
eb4efbdc 15353do
698dcdb6 15354echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 15355echo "configure:15356: checking for $ac_func" >&5
698dcdb6
VZ
15356if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358else
15359 cat > conftest.$ac_ext <<EOF
cb61c62d 15360#line 15361 "configure"
eb4efbdc
VZ
15361#include "confdefs.h"
15362/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15363 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15364#include <assert.h>
15365/* Override any gcc2 internal prototype to avoid an error. */
15366/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15367 builtin and then its argument prototype would still apply. */
15368char $ac_func();
15369
15370int main() {
eb4efbdc
VZ
15371
15372/* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15376choke me
15377#else
698dcdb6 15378$ac_func();
eb4efbdc
VZ
15379#endif
15380
698dcdb6 15381; return 0; }
eb4efbdc 15382EOF
cb61c62d 15383if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15384 rm -rf conftest*
15385 eval "ac_cv_func_$ac_func=yes"
15386else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_func_$ac_func=no"
15391fi
15392rm -f conftest*
15393fi
eb4efbdc 15394
698dcdb6
VZ
15395if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398 cat >> confdefs.h <<EOF
15399#define $ac_tr_func 1
15400EOF
15401
15402else
15403 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15404fi
15405done
15406
698dcdb6 15407
4f14bcd8 15408echo $ac_n "checking for vprintf""... $ac_c" 1>&6
cb61c62d 15409echo "configure:15410: checking for vprintf" >&5
4f14bcd8 15410if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412else
4f14bcd8 15413 cat > conftest.$ac_ext <<EOF
cb61c62d 15414#line 15415 "configure"
f6bcfd97 15415#include "confdefs.h"
4f14bcd8
GD
15416/* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char vprintf(); below. */
15418#include <assert.h>
15419/* Override any gcc2 internal prototype to avoid an error. */
15420/* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422char vprintf();
15423
698dcdb6 15424int main() {
f6bcfd97 15425
4f14bcd8
GD
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined (__stub_vprintf) || defined (__stub___vprintf)
15430choke me
15431#else
15432vprintf();
15433#endif
f6bcfd97 15434
698dcdb6
VZ
15435; return 0; }
15436EOF
cb61c62d 15437if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15438 rm -rf conftest*
4f14bcd8 15439 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15440else
698dcdb6
VZ
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
4f14bcd8 15444 eval "ac_cv_func_vprintf=no"
6232543b 15445fi
698dcdb6 15446rm -f conftest*
1e487827 15447fi
698dcdb6 15448
4f14bcd8
GD
15449if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 cat >> confdefs.h <<\EOF
15452#define HAVE_VPRINTF 1
f6bcfd97
BP
15453EOF
15454
4f14bcd8
GD
15455else
15456 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15457fi
15458
4f14bcd8
GD
15459if test "$ac_cv_func_vprintf" != yes; then
15460echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
cb61c62d 15461echo "configure:15462: checking for _doprnt" >&5
4f14bcd8 15462if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15463 echo $ac_n "(cached) $ac_c" 1>&6
15464else
15465 cat > conftest.$ac_ext <<EOF
cb61c62d 15466#line 15467 "configure"
10f2d63a
VZ
15467#include "confdefs.h"
15468/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15469 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15470#include <assert.h>
15471/* Override any gcc2 internal prototype to avoid an error. */
15472/* We use char because int might match the return type of a gcc2
698dcdb6 15473 builtin and then its argument prototype would still apply. */
4f14bcd8 15474char _doprnt();
698dcdb6
VZ
15475
15476int main() {
10f2d63a
VZ
15477
15478/* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
4f14bcd8 15481#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15482choke me
15483#else
4f14bcd8 15484_doprnt();
10f2d63a
VZ
15485#endif
15486
698dcdb6 15487; return 0; }
10f2d63a 15488EOF
cb61c62d 15489if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15490 rm -rf conftest*
4f14bcd8 15491 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15492else
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 rm -rf conftest*
4f14bcd8 15496 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15497fi
15498rm -f conftest*
15499fi
270a909e 15500
4f14bcd8 15501if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15502 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15503 cat >> confdefs.h <<\EOF
15504#define HAVE_DOPRNT 1
698dcdb6 15505EOF
4f14bcd8 15506
698dcdb6
VZ
15507else
15508 echo "$ac_t""no" 1>&6
270a909e 15509fi
270a909e 15510
4f14bcd8 15511fi
1e487827 15512
52e8b690 15513
52e8b690 15514
52e8b690 15515
52e8b690 15516
52e8b690 15517
4f14bcd8 15518echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
cb61c62d 15519echo "configure:15520: checking for vsnprintf" >&5
4f14bcd8 15520if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15521 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15522else
4f14bcd8 15523
af15babd 15524 cat > conftest.$ac_ext <<EOF
cb61c62d 15525#line 15526 "configure"
c63c7106 15526#include "confdefs.h"
698dcdb6 15527
4f14bcd8
GD
15528 #include <stdio.h>
15529 #include <stdarg.h>
15530
af15babd
VZ
15531int main() {
15532
4f14bcd8
GD
15533 int wx_test_vsnprintf(const char *, ...);
15534
15535 wx_test_vsnprintf("%s");
15536 return 0;
15537 }
15538
15539 int wx_test_vsnprintf(const char *fmt, ...)
15540 {
15541 char *s;
15542
15543 va_list argp;
15544 va_start(argp, fmt);
15545 vsnprintf(s, 42, fmt, argp);
15546 va_end(argp);
15547
af15babd
VZ
15548; return 0; }
15549EOF
cb61c62d 15550if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15551 rm -rf conftest*
15552
4f14bcd8
GD
15553 wx_cv_func_vsnprintf=yes
15554
af15babd
VZ
15555else
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559
4f14bcd8 15560 cat > conftest.$ac_ext <<EOF
cb61c62d 15561#line 15562 "configure"
af15babd 15562#include "confdefs.h"
af15babd 15563
4f14bcd8
GD
15564 #include <stdio.h>
15565 #include <stdarg.h>
15566
af15babd
VZ
15567int main() {
15568
4f14bcd8
GD
15569 int wx_test_vsnprintf(const char *, ...);
15570
15571 wx_test_vsnprintf("%s");
15572 return 0;
15573 }
15574
15575 int wx_test_vsnprintf(const char *fmt, ...)
15576 {
15577 char *s;
af15babd 15578
4f14bcd8
GD
15579 va_list argp;
15580 va_start(argp, fmt);
15581 _vsnprintf(s, 42, fmt, argp);
15582 va_end(argp);
15583
af15babd
VZ
15584; return 0; }
15585EOF
cb61c62d 15586if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15587 rm -rf conftest*
4f14bcd8
GD
15588
15589 wx_cv_func_vsnprintf=yes
15590
af15babd
VZ
15591else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
4f14bcd8
GD
15595
15596 wx_cv_func_vsnprintf=no
15597
af15babd
VZ
15598fi
15599rm -f conftest*
4f14bcd8 15600
af15babd 15601fi
4f14bcd8 15602rm -f conftest*
af15babd 15603
af15babd 15604fi
af15babd 15605
4f14bcd8 15606echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15607
4f14bcd8
GD
15608if test "$wx_cv_func_vsnprintf" = yes; then
15609 cat >> confdefs.h <<\EOF
15610#define HAVE_VSNPRINTF 1
15611EOF
15612
15613else
f9bc1684 15614 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15615fi
15616
4f14bcd8 15617echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
cb61c62d 15618echo "configure:15619: checking for vsscanf" >&5
4f14bcd8 15619if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15620 echo $ac_n "(cached) $ac_c" 1>&6
15621else
4f14bcd8 15622
af15babd 15623 cat > conftest.$ac_ext <<EOF
cb61c62d 15624#line 15625 "configure"
af15babd 15625#include "confdefs.h"
af15babd 15626
4f14bcd8
GD
15627 #include <stdio.h>
15628 #include <stdarg.h>
15629
af15babd
VZ
15630int main() {
15631
4f14bcd8
GD
15632 int wx_test_vsscanf(const char *, ...);
15633
15634 wx_test_vsscanf("%d");
15635 return 0;
15636 }
af15babd 15637
4f14bcd8
GD
15638 int wx_test_vsscanf(const char *fmt, ...)
15639 {
15640 va_list argp;
15641 va_start(argp, fmt);
15642 vsscanf("42", fmt, argp);
15643 va_end(argp);
15644
af15babd
VZ
15645; return 0; }
15646EOF
cb61c62d 15647if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15648 rm -rf conftest*
4f14bcd8
GD
15649
15650 wx_cv_func_vsscanf=yes
15651
af15babd
VZ
15652else
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15655 rm -rf conftest*
4f14bcd8
GD
15656
15657 wx_cv_func_vsscanf=no
15658
af15babd
VZ
15659fi
15660rm -f conftest*
4f14bcd8 15661
af15babd
VZ
15662fi
15663
4f14bcd8
GD
15664echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15665
15666if test "$wx_cv_func_vsscanf" = yes; then
15667 cat >> confdefs.h <<\EOF
15668#define HAVE_VSSCANF 1
af15babd 15669EOF
4f14bcd8 15670
af15babd 15671fi
af15babd 15672
4f14bcd8 15673if test "$TOOLKIT" != "MSW"; then
af15babd 15674
4f14bcd8
GD
15675
15676
15677ac_ext=C
15678# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15679ac_cpp='$CXXCPP $CPPFLAGS'
15680ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15681ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15682cross_compiling=$ac_cv_prog_cxx_cross
15683
b040e242
VS
15684
15685
15686 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15687if test "${with_libiconv_prefix+set}" = set; then
15688 withval="$with_libiconv_prefix"
15689
15690 for dir in `echo "$withval" | tr : ' '`; do
15691 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15692 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15693 done
15694
15695fi
15696
15697
15698 echo $ac_n "checking for iconv""... $ac_c" 1>&6
cb61c62d 15699echo "configure:15700: checking for iconv" >&5
b040e242 15700if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15701 echo $ac_n "(cached) $ac_c" 1>&6
15702else
4f14bcd8 15703
b040e242
VS
15704 am_cv_func_iconv="no, consider installing GNU libiconv"
15705 am_cv_lib_iconv=no
4f14bcd8 15706 cat > conftest.$ac_ext <<EOF
cb61c62d 15707#line 15708 "configure"
af15babd 15708#include "confdefs.h"
b040e242 15709#include <stdlib.h>
4f14bcd8 15710#include <iconv.h>
af15babd 15711int main() {
b040e242
VS
15712iconv_t cd = iconv_open("","");
15713 iconv(cd,NULL,NULL,NULL,NULL);
15714 iconv_close(cd);
af15babd
VZ
15715; return 0; }
15716EOF
cb61c62d 15717if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15718 rm -rf conftest*
b040e242 15719 am_cv_func_iconv=yes
af15babd
VZ
15720else
15721 echo "configure: failed program was:" >&5
15722 cat conftest.$ac_ext >&5
b040e242
VS
15723fi
15724rm -f conftest*
15725 if test "$am_cv_func_iconv" != yes; then
15726 am_save_LIBS="$LIBS"
15727 LIBS="$LIBS -liconv"
15728 cat > conftest.$ac_ext <<EOF
cb61c62d 15729#line 15730 "configure"
b040e242
VS
15730#include "confdefs.h"
15731#include <stdlib.h>
15732#include <iconv.h>
15733int main() {
15734iconv_t cd = iconv_open("","");
15735 iconv(cd,NULL,NULL,NULL,NULL);
15736 iconv_close(cd);
15737; return 0; }
15738EOF
cb61c62d 15739if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15740 rm -rf conftest*
b040e242
VS
15741 am_cv_lib_iconv=yes
15742 am_cv_func_iconv=yes
15743else
15744 echo "configure: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
af15babd
VZ
15746fi
15747rm -f conftest*
b040e242
VS
15748 LIBS="$am_save_LIBS"
15749 fi
15750
15751fi
15752
15753echo "$ac_t""$am_cv_func_iconv" 1>&6
15754 if test "$am_cv_func_iconv" = yes; then
15755 cat >> confdefs.h <<\EOF
15756#define HAVE_ICONV 1
15757EOF
15758
b7043674 15759 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
cb61c62d 15760echo "configure:15761: checking if iconv needs const" >&5
b7043674 15761if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
15762 echo $ac_n "(cached) $ac_c" 1>&6
15763else
b7043674 15764 cat > conftest.$ac_ext <<EOF
cb61c62d 15765#line 15766 "configure"
b040e242
VS
15766#include "confdefs.h"
15767
15768#include <stdlib.h>
15769#include <iconv.h>
15770extern
15771#ifdef __cplusplus
15772"C"
15773#endif
15774#if defined(__STDC__) || defined(__cplusplus)
15775size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15776#else
15777size_t iconv();
15778#endif
b7043674 15779
b040e242 15780int main() {
af15babd 15781
b040e242
VS
15782; return 0; }
15783EOF
cb61c62d 15784if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 15785 rm -rf conftest*
b7043674 15786 wx_cv_func_iconv_const="no"
b040e242
VS
15787else
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
b7043674
VZ
15791 wx_cv_func_iconv_const="yes"
15792
b040e242
VS
15793fi
15794rm -f conftest*
b7043674 15795
af15babd 15796fi
af15babd 15797
b7043674
VZ
15798echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15799
15800 iconv_const=
1c405bb5 15801 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
15802 iconv_const="const"
15803 fi
15804
b040e242 15805 cat >> confdefs.h <<EOF
b7043674 15806#define ICONV_CONST $iconv_const
b040e242
VS
15807EOF
15808
15809 fi
15810 LIBICONV=
15811 if test "$am_cv_lib_iconv" = yes; then
15812 LIBICONV="-liconv"
15813 fi
15814
15815
15816LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
15817ac_ext=c
15818# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15819ac_cpp='$CPP $CPPFLAGS'
15820ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15821ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15822cross_compiling=$ac_cv_prog_cc_cross
af15babd 15823
af15babd 15824
4f14bcd8
GD
15825if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15826 for ac_func in sigaction
af15babd
VZ
15827do
15828echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 15829echo "configure:15830: checking for $ac_func" >&5
af15babd
VZ
15830if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
15832else
15833 cat > conftest.$ac_ext <<EOF
cb61c62d 15834#line 15835 "configure"
af15babd
VZ
15835#include "confdefs.h"
15836/* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func(); below. */
15838#include <assert.h>
15839/* Override any gcc2 internal prototype to avoid an error. */
15840/* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15842char $ac_func();
15843
15844int main() {
15845
15846/* The GNU C library defines this for functions which it implements
15847 to always fail with ENOSYS. Some functions are actually named
15848 something starting with __ and the normal name is an alias. */
15849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15850choke me
15851#else
15852$ac_func();
15853#endif
15854
15855; return 0; }
15856EOF
cb61c62d 15857if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15858 rm -rf conftest*
15859 eval "ac_cv_func_$ac_func=yes"
15860else
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=no"
15865fi
15866rm -f conftest*
15867fi
15868
15869if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15870 echo "$ac_t""yes" 1>&6
15871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15872 cat >> confdefs.h <<EOF
15873#define $ac_tr_func 1
15874EOF
4f14bcd8 15875
af15babd
VZ
15876else
15877 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15878fi
15879done
15880
15881
15882 if test "$ac_cv_func_sigaction" = "no"; then
15883 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15884 wxUSE_ON_FATAL_EXCEPTION=no
15885 fi
15886
15887 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15888
15889 ac_ext=C
15890# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15891ac_cpp='$CXXCPP $CPPFLAGS'
15892ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15893ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15894cross_compiling=$ac_cv_prog_cxx_cross
15895
15896
15897 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
cb61c62d 15898echo "configure:15899: checking for sa_handler type" >&5
4f14bcd8 15899if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15900 echo $ac_n "(cached) $ac_c" 1>&6
15901else
4f14bcd8
GD
15902
15903 cat > conftest.$ac_ext <<EOF
cb61c62d 15904#line 15905 "configure"
af15babd 15905#include "confdefs.h"
4f14bcd8 15906#include <signal.h>
af15babd 15907int main() {
4f14bcd8
GD
15908
15909 extern void testSigHandler(int);
15910
15911 struct sigaction sa;
15912 sa.sa_handler = testSigHandler;
15913
af15babd
VZ
15914; return 0; }
15915EOF
cb61c62d 15916if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15917 rm -rf conftest*
4f14bcd8
GD
15918
15919 wx_cv_type_sa_handler=int
15920
af15babd
VZ
15921else
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 rm -rf conftest*
4f14bcd8
GD
15925
15926 wx_cv_type_sa_handler=void
15927
af15babd
VZ
15928fi
15929rm -f conftest*
4f14bcd8
GD
15930
15931fi
15932
15933echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15934
15935 ac_ext=c
15936# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15937ac_cpp='$CPP $CPPFLAGS'
15938ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15939ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15940cross_compiling=$ac_cv_prog_cc_cross
af15babd 15941
4f14bcd8
GD
15942
15943 cat >> confdefs.h <<EOF
15944#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
15945EOF
15946
4f14bcd8
GD
15947 fi
15948fi
af15babd 15949
4f14bcd8 15950for ac_func in vfork
af15babd
VZ
15951do
15952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 15953echo "configure:15954: checking for $ac_func" >&5
af15babd
VZ
15954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15956else
15957 cat > conftest.$ac_ext <<EOF
cb61c62d 15958#line 15959 "configure"
af15babd
VZ
15959#include "confdefs.h"
15960/* System header to define __stub macros and hopefully few prototypes,
15961 which can conflict with char $ac_func(); below. */
15962#include <assert.h>
15963/* Override any gcc2 internal prototype to avoid an error. */
15964/* We use char because int might match the return type of a gcc2
15965 builtin and then its argument prototype would still apply. */
15966char $ac_func();
15967
15968int main() {
15969
15970/* The GNU C library defines this for functions which it implements
15971 to always fail with ENOSYS. Some functions are actually named
15972 something starting with __ and the normal name is an alias. */
15973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15974choke me
15975#else
15976$ac_func();
15977#endif
15978
15979; return 0; }
15980EOF
cb61c62d 15981if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15982 rm -rf conftest*
15983 eval "ac_cv_func_$ac_func=yes"
15984else
15985 echo "configure: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 rm -rf conftest*
15988 eval "ac_cv_func_$ac_func=no"
15989fi
15990rm -f conftest*
15991fi
15992
15993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15994 echo "$ac_t""yes" 1>&6
15995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15996 cat >> confdefs.h <<EOF
15997#define $ac_tr_func 1
15998EOF
4f14bcd8 15999
af15babd
VZ
16000else
16001 echo "$ac_t""no" 1>&6
af15babd
VZ
16002fi
16003done
16004
af15babd 16005
ade35f11
VZ
16006for ac_func in mkstemp mktemp
16007do
16008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16009echo "configure:16010: checking for $ac_func" >&5
ade35f11
VZ
16010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16012else
16013 cat > conftest.$ac_ext <<EOF
cb61c62d 16014#line 16015 "configure"
ade35f11
VZ
16015#include "confdefs.h"
16016/* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func(); below. */
16018#include <assert.h>
16019/* Override any gcc2 internal prototype to avoid an error. */
16020/* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022char $ac_func();
16023
16024int main() {
16025
16026/* The GNU C library defines this for functions which it implements
16027 to always fail with ENOSYS. Some functions are actually named
16028 something starting with __ and the normal name is an alias. */
16029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16030choke me
16031#else
16032$ac_func();
16033#endif
16034
16035; return 0; }
16036EOF
cb61c62d 16037if { (eval echo configure:16038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16038 rm -rf conftest*
16039 eval "ac_cv_func_$ac_func=yes"
16040else
16041 echo "configure: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 rm -rf conftest*
16044 eval "ac_cv_func_$ac_func=no"
16045fi
16046rm -f conftest*
16047fi
16048
16049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
16051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16052 cat >> confdefs.h <<EOF
16053#define $ac_tr_func 1
16054EOF
16055 break
16056else
16057 echo "$ac_t""no" 1>&6
16058fi
16059done
16060
16061
4f14bcd8 16062echo $ac_n "checking for statfs""... $ac_c" 1>&6
cb61c62d 16063echo "configure:16064: checking for statfs" >&5
4f14bcd8
GD
16064if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066else
16067 cat > conftest.$ac_ext <<EOF
cb61c62d 16068#line 16069 "configure"
4f14bcd8
GD
16069#include "confdefs.h"
16070
16071 #if defined(__BSD__)
16072 #include <sys/param.h>
16073 #include <sys/mount.h>
16074 #else
16075 #include <sys/vfs.h>
16076 #endif
16077
16078int main() {
16079
16080 long l;
16081 struct statfs fs;
16082 statfs("/", &fs);
16083 l = fs.f_bsize;
16084 l += fs.f_blocks;
16085 l += fs.f_bavail;
16086
16087; return 0; }
16088EOF
cb61c62d 16089if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16090 rm -rf conftest*
16091
16092 wx_cv_func_statfs=yes
16093
16094else
16095 echo "configure: failed program was:" >&5
16096 cat conftest.$ac_ext >&5
16097 rm -rf conftest*
16098
16099 wx_cv_func_statfs=no
af15babd
VZ
16100
16101
16102fi
4f14bcd8 16103rm -f conftest*
af15babd
VZ
16104
16105fi
16106
4f14bcd8
GD
16107echo "$ac_t""$wx_cv_func_statfs" 1>&6
16108
16109if test "$wx_cv_func_statfs" = "yes"; then
16110 cat >> confdefs.h <<\EOF
16111#define HAVE_STATFS 1
16112EOF
16113
16114else
16115 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
cb61c62d 16116echo "configure:16117: checking for statvfs" >&5
4f14bcd8 16117if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16118 echo $ac_n "(cached) $ac_c" 1>&6
16119else
16120 cat > conftest.$ac_ext <<EOF
cb61c62d 16121#line 16122 "configure"
af15babd 16122#include "confdefs.h"
af15babd 16123
4f14bcd8
GD
16124 #include <sys/statvfs.h>
16125
af15babd
VZ
16126int main() {
16127
4f14bcd8
GD
16128 long l;
16129 struct statvfs fs;
16130 statvfs("/", &fs);
16131 l = fs.f_bsize;
16132 l += fs.f_blocks;
16133 l += fs.f_bavail;
16134
af15babd
VZ
16135; return 0; }
16136EOF
cb61c62d 16137if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16138 rm -rf conftest*
4f14bcd8
GD
16139
16140 wx_cv_func_statvfs=yes
16141
af15babd
VZ
16142else
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
4f14bcd8
GD
16146
16147 wx_cv_func_statvfs=no
16148
16149
af15babd
VZ
16150fi
16151rm -f conftest*
4f14bcd8 16152
af15babd
VZ
16153fi
16154
4f14bcd8 16155echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16156
4f14bcd8
GD
16157 if test "$wx_cv_func_statvfs" = "yes"; then
16158 cat >> confdefs.h <<\EOF
16159#define HAVE_STATVFS 1
16160EOF
af15babd 16161
4f14bcd8
GD
16162 else
16163 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16164 fi
16165fi
af15babd 16166
4f14bcd8
GD
16167if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16168 for ac_func in fcntl flock
af15babd
VZ
16169do
16170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16171echo "configure:16172: checking for $ac_func" >&5
af15babd
VZ
16172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174else
16175 cat > conftest.$ac_ext <<EOF
cb61c62d 16176#line 16177 "configure"
af15babd
VZ
16177#include "confdefs.h"
16178/* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180#include <assert.h>
16181/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16182/* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16184char $ac_func();
16185
16186int main() {
16187
16188/* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192choke me
16193#else
16194$ac_func();
16195#endif
16196
16197; return 0; }
16198EOF
cb61c62d 16199if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16200 rm -rf conftest*
16201 eval "ac_cv_func_$ac_func=yes"
16202else
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=no"
16207fi
16208rm -f conftest*
16209fi
16210
16211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16214 cat >> confdefs.h <<EOF
16215#define $ac_tr_func 1
16216EOF
4f14bcd8 16217 break
af15babd
VZ
16218else
16219 echo "$ac_t""no" 1>&6
16220fi
16221done
16222
16223
4f14bcd8
GD
16224 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16225 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16226 wxUSE_SNGLINST_CHECKER=no
16227 fi
16228fi
af15babd 16229
4f14bcd8 16230for ac_func in timegm
af15babd
VZ
16231do
16232echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16233echo "configure:16234: checking for $ac_func" >&5
af15babd
VZ
16234if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16235 echo $ac_n "(cached) $ac_c" 1>&6
16236else
16237 cat > conftest.$ac_ext <<EOF
cb61c62d 16238#line 16239 "configure"
af15babd
VZ
16239#include "confdefs.h"
16240/* System header to define __stub macros and hopefully few prototypes,
16241 which can conflict with char $ac_func(); below. */
16242#include <assert.h>
16243/* Override any gcc2 internal prototype to avoid an error. */
16244/* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16246char $ac_func();
16247
698dcdb6 16248int main() {
698dcdb6 16249
af15babd
VZ
16250/* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16254choke me
16255#else
16256$ac_func();
16257#endif
16258
698dcdb6
VZ
16259; return 0; }
16260EOF
cb61c62d 16261if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16262 rm -rf conftest*
af15babd 16263 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16264else
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16267 rm -rf conftest*
af15babd 16268 eval "ac_cv_func_$ac_func=no"
1e487827 16269fi
9952adac 16270rm -f conftest*
af15babd 16271fi
703e0a69 16272
af15babd
VZ
16273if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16274 echo "$ac_t""yes" 1>&6
16275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16276 cat >> confdefs.h <<EOF
16277#define $ac_tr_func 1
16278EOF
16279
16280else
16281 echo "$ac_t""no" 1>&6
af15babd
VZ
16282fi
16283done
16284
16285
4f14bcd8 16286for ac_func in putenv setenv
10f2d63a 16287do
698dcdb6 16288echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16289echo "configure:16290: checking for $ac_func" >&5
698dcdb6
VZ
16290if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16291 echo $ac_n "(cached) $ac_c" 1>&6
16292else
16293 cat > conftest.$ac_ext <<EOF
cb61c62d 16294#line 16295 "configure"
af15babd
VZ
16295#include "confdefs.h"
16296/* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func(); below. */
16298#include <assert.h>
16299/* Override any gcc2 internal prototype to avoid an error. */
16300/* We use char because int might match the return type of a gcc2
16301 builtin and then its argument prototype would still apply. */
16302char $ac_func();
16303
16304int main() {
16305
16306/* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310choke me
16311#else
16312$ac_func();
16313#endif
16314
16315; return 0; }
16316EOF
cb61c62d 16317if { (eval echo configure:16318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16318 rm -rf conftest*
16319 eval "ac_cv_func_$ac_func=yes"
16320else
16321 echo "configure: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16323 rm -rf conftest*
16324 eval "ac_cv_func_$ac_func=no"
16325fi
16326rm -f conftest*
16327fi
16328
16329if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16332 cat >> confdefs.h <<EOF
16333#define $ac_tr_func 1
16334EOF
4f14bcd8 16335 break
af15babd
VZ
16336else
16337 echo "$ac_t""no" 1>&6
16338fi
af15babd
VZ
16339done
16340
16341
4f14bcd8
GD
16342HAVE_SOME_SLEEP_FUNC=0
16343if test "$USE_BEOS" = 1; then
16344 cat >> confdefs.h <<\EOF
16345#define HAVE_SLEEP 1
af15babd
VZ
16346EOF
16347
4f14bcd8 16348 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16349fi
16350
4f14bcd8
GD
16351if test "$USE_DARWIN" = 1; then
16352 cat >> confdefs.h <<\EOF
16353#define HAVE_USLEEP 1
af15babd 16354EOF
10f2d63a 16355
4f14bcd8 16356 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16357fi
16358
4f14bcd8
GD
16359if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16360 POSIX4_LINK=
16361 for ac_func in nanosleep
16362do
16363echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16364echo "configure:16365: checking for $ac_func" >&5
4f14bcd8 16365if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16366 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16367else
4f14bcd8 16368 cat > conftest.$ac_ext <<EOF
cb61c62d 16369#line 16370 "configure"
10f2d63a 16370#include "confdefs.h"
4f14bcd8
GD
16371/* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func(); below. */
16373#include <assert.h>
10f2d63a
VZ
16374/* Override any gcc2 internal prototype to avoid an error. */
16375/* We use char because int might match the return type of a gcc2
698dcdb6 16376 builtin and then its argument prototype would still apply. */
4f14bcd8 16377char $ac_func();
698dcdb6
VZ
16378
16379int main() {
4f14bcd8
GD
16380
16381/* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385choke me
16386#else
16387$ac_func();
16388#endif
16389
698dcdb6
VZ
16390; return 0; }
16391EOF
cb61c62d 16392if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16393 rm -rf conftest*
4f14bcd8 16394 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16395else
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 rm -rf conftest*
4f14bcd8 16399 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16400fi
16401rm -f conftest*
698dcdb6 16402fi
4f14bcd8
GD
16403
16404if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16405 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408#define $ac_tr_func 1
16409EOF
16410 cat >> confdefs.h <<\EOF
16411#define HAVE_NANOSLEEP 1
16412EOF
16413
10f2d63a 16414else
698dcdb6 16415 echo "$ac_t""no" 1>&6
4f14bcd8 16416echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
cb61c62d 16417echo "configure:16418: checking for nanosleep in -lposix4" >&5
4f14bcd8 16418ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16421else
698dcdb6 16422 ac_save_LIBS="$LIBS"
4f14bcd8 16423LIBS="-lposix4 $LIBS"
698dcdb6 16424cat > conftest.$ac_ext <<EOF
cb61c62d 16425#line 16426 "configure"
10f2d63a
VZ
16426#include "confdefs.h"
16427/* Override any gcc2 internal prototype to avoid an error. */
16428/* We use char because int might match the return type of a gcc2
698dcdb6 16429 builtin and then its argument prototype would still apply. */
4f14bcd8 16430char nanosleep();
698dcdb6
VZ
16431
16432int main() {
4f14bcd8 16433nanosleep()
698dcdb6
VZ
16434; return 0; }
16435EOF
cb61c62d 16436if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16437 rm -rf conftest*
16438 eval "ac_cv_lib_$ac_lib_var=yes"
16439else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_lib_$ac_lib_var=no"
16444fi
16445rm -f conftest*
16446LIBS="$ac_save_LIBS"
10f2d63a 16447
698dcdb6
VZ
16448fi
16449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16450 echo "$ac_t""yes" 1>&6
16451
4f14bcd8
GD
16452 cat >> confdefs.h <<\EOF
16453#define HAVE_NANOSLEEP 1
16454EOF
16455
3d63bc3a 16456 POSIX4_LINK=" -lposix4"
4f14bcd8 16457
10f2d63a 16458else
698dcdb6 16459 echo "$ac_t""no" 1>&6
10f2d63a 16460
4f14bcd8
GD
16461 for ac_func in usleep
16462do
16463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16464echo "configure:16465: checking for $ac_func" >&5
4f14bcd8 16465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16466 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16467else
698dcdb6 16468 cat > conftest.$ac_ext <<EOF
cb61c62d 16469#line 16470 "configure"
10f2d63a 16470#include "confdefs.h"
4f14bcd8
GD
16471/* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473#include <assert.h>
16474/* Override any gcc2 internal prototype to avoid an error. */
16475/* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477char $ac_func();
16478
16479int main() {
16480
16481/* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485choke me
16486#else
16487$ac_func();
16488#endif
16489
16490; return 0; }
698dcdb6 16491EOF
cb61c62d 16492if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16493 rm -rf conftest*
4f14bcd8 16494 eval "ac_cv_func_$ac_func=yes"
1e487827 16495else
698dcdb6 16496 echo "configure: failed program was:" >&5
10f2d63a 16497 cat conftest.$ac_ext >&5
698dcdb6 16498 rm -rf conftest*
4f14bcd8 16499 eval "ac_cv_func_$ac_func=no"
10f2d63a 16500fi
698dcdb6 16501rm -f conftest*
10f2d63a 16502fi
4f14bcd8
GD
16503
16504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16505 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508#define $ac_tr_func 1
16509EOF
16510 cat >> confdefs.h <<\EOF
16511#define HAVE_USLEEP 1
16512EOF
16513
698dcdb6
VZ
16514else
16515 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16516echo "configure: warning: wxSleep() function will not work" 1>&2
16517
10f2d63a 16518fi
4f14bcd8 16519done
10f2d63a 16520
4f14bcd8 16521
698dcdb6 16522
6232543b 16523fi
10f2d63a 16524
698dcdb6 16525
4f14bcd8 16526
1e487827 16527fi
4f14bcd8 16528done
703e0a69 16529
10f2d63a
VZ
16530fi
16531
4f14bcd8 16532for ac_func in uname gethostname
70846f0a 16533do
698dcdb6 16534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16535echo "configure:16536: checking for $ac_func" >&5
698dcdb6
VZ
16536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16537 echo $ac_n "(cached) $ac_c" 1>&6
16538else
16539 cat > conftest.$ac_ext <<EOF
cb61c62d 16540#line 16541 "configure"
70846f0a
VZ
16541#include "confdefs.h"
16542/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16543 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16544#include <assert.h>
16545/* Override any gcc2 internal prototype to avoid an error. */
16546/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16547 builtin and then its argument prototype would still apply. */
16548char $ac_func();
16549
16550int main() {
70846f0a
VZ
16551
16552/* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556choke me
16557#else
698dcdb6 16558$ac_func();
70846f0a
VZ
16559#endif
16560
698dcdb6 16561; return 0; }
70846f0a 16562EOF
cb61c62d 16563if { (eval echo configure:16564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16564 rm -rf conftest*
16565 eval "ac_cv_func_$ac_func=yes"
16566else
16567 echo "configure: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=no"
16571fi
16572rm -f conftest*
16573fi
70846f0a 16574
698dcdb6
VZ
16575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16576 echo "$ac_t""yes" 1>&6
16577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16578 cat >> confdefs.h <<EOF
16579#define $ac_tr_func 1
16580EOF
4f14bcd8 16581 break
698dcdb6
VZ
16582else
16583 echo "$ac_t""no" 1>&6
70846f0a
VZ
16584fi
16585done
16586
698dcdb6 16587
4f14bcd8
GD
16588
16589ac_ext=C
16590# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16591ac_cpp='$CXXCPP $CPPFLAGS'
16592ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16593ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16594cross_compiling=$ac_cv_prog_cxx_cross
16595
16596
16597for ac_func in strtok_r
10f2d63a 16598do
4f14bcd8 16599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16600echo "configure:16601: checking for $ac_func" >&5
4f14bcd8 16601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16602 echo $ac_n "(cached) $ac_c" 1>&6
16603else
16604 cat > conftest.$ac_ext <<EOF
cb61c62d 16605#line 16606 "configure"
10f2d63a 16606#include "confdefs.h"
4f14bcd8
GD
16607/* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609#include <assert.h>
16610/* Override any gcc2 internal prototype to avoid an error. */
16611#ifdef __cplusplus
16612extern "C"
16613#endif
16614/* We use char because int might match the return type of a gcc2
16615 builtin and then its argument prototype would still apply. */
16616char $ac_func();
16617
16618int main() {
16619
16620/* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624choke me
16625#else
16626$ac_func();
16627#endif
16628
16629; return 0; }
698dcdb6 16630EOF
cb61c62d 16631if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16632 rm -rf conftest*
4f14bcd8 16633 eval "ac_cv_func_$ac_func=yes"
1e487827 16634else
698dcdb6 16635 echo "configure: failed program was:" >&5
10f2d63a 16636 cat conftest.$ac_ext >&5
698dcdb6 16637 rm -rf conftest*
4f14bcd8 16638 eval "ac_cv_func_$ac_func=no"
10f2d63a 16639fi
698dcdb6 16640rm -f conftest*
10f2d63a 16641fi
4f14bcd8
GD
16642
16643if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16644 echo "$ac_t""yes" 1>&6
4f14bcd8 16645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16646 cat >> confdefs.h <<EOF
4f14bcd8 16647#define $ac_tr_func 1
10f2d63a 16648EOF
698dcdb6
VZ
16649
16650else
16651 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16652fi
16653done
16654
698dcdb6 16655
4f14bcd8
GD
16656ac_ext=c
16657# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658ac_cpp='$CPP $CPPFLAGS'
16659ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661cross_compiling=$ac_cv_prog_cc_cross
16662
16663
16664INET_LINK=
16665for ac_func in inet_addr
16666do
16667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16668echo "configure:16669: checking for $ac_func" >&5
4f14bcd8 16669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16670 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16671else
4f14bcd8 16672 cat > conftest.$ac_ext <<EOF
cb61c62d 16673#line 16674 "configure"
10f2d63a 16674#include "confdefs.h"
4f14bcd8
GD
16675/* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func(); below. */
16677#include <assert.h>
10f2d63a
VZ
16678/* Override any gcc2 internal prototype to avoid an error. */
16679/* We use char because int might match the return type of a gcc2
698dcdb6 16680 builtin and then its argument prototype would still apply. */
4f14bcd8 16681char $ac_func();
698dcdb6
VZ
16682
16683int main() {
4f14bcd8
GD
16684
16685/* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16689choke me
16690#else
16691$ac_func();
16692#endif
16693
698dcdb6
VZ
16694; return 0; }
16695EOF
cb61c62d 16696if { (eval echo configure:16697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16697 rm -rf conftest*
4f14bcd8 16698 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16699else
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
4f14bcd8 16703 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16704fi
16705rm -f conftest*
698dcdb6 16706fi
4f14bcd8
GD
16707
16708if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16709 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16711 cat >> confdefs.h <<EOF
16712#define $ac_tr_func 1
16713EOF
16714 cat >> confdefs.h <<\EOF
16715#define HAVE_INET_ADDR 1
10f2d63a
VZ
16716EOF
16717
16718else
698dcdb6 16719 echo "$ac_t""no" 1>&6
4f14bcd8 16720echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
cb61c62d 16721echo "configure:16722: checking for inet_addr in -lnsl" >&5
4f14bcd8 16722ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16725else
698dcdb6 16726 ac_save_LIBS="$LIBS"
4f14bcd8 16727LIBS="-lnsl $LIBS"
698dcdb6 16728cat > conftest.$ac_ext <<EOF
cb61c62d 16729#line 16730 "configure"
10f2d63a
VZ
16730#include "confdefs.h"
16731/* Override any gcc2 internal prototype to avoid an error. */
16732/* We use char because int might match the return type of a gcc2
698dcdb6 16733 builtin and then its argument prototype would still apply. */
4f14bcd8 16734char inet_addr();
698dcdb6
VZ
16735
16736int main() {
4f14bcd8 16737inet_addr()
698dcdb6
VZ
16738; return 0; }
16739EOF
cb61c62d 16740if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=yes"
16743else
16744 echo "configure: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 rm -rf conftest*
16747 eval "ac_cv_lib_$ac_lib_var=no"
16748fi
16749rm -f conftest*
16750LIBS="$ac_save_LIBS"
16751
16752fi
16753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16754 echo "$ac_t""yes" 1>&6
4f14bcd8 16755 INET_LINK="nsl"
10f2d63a 16756else
698dcdb6 16757 echo "$ac_t""no" 1>&6
4f14bcd8 16758echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
cb61c62d 16759echo "configure:16760: checking for inet_addr in -lresolv" >&5
4f14bcd8 16760ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16763else
698dcdb6 16764 ac_save_LIBS="$LIBS"
4f14bcd8 16765LIBS="-lresolv $LIBS"
698dcdb6 16766cat > conftest.$ac_ext <<EOF
cb61c62d 16767#line 16768 "configure"
10f2d63a
VZ
16768#include "confdefs.h"
16769/* Override any gcc2 internal prototype to avoid an error. */
16770/* We use char because int might match the return type of a gcc2
698dcdb6 16771 builtin and then its argument prototype would still apply. */
4f14bcd8 16772char inet_addr();
698dcdb6
VZ
16773
16774int main() {
4f14bcd8 16775inet_addr()
698dcdb6
VZ
16776; return 0; }
16777EOF
cb61c62d 16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16779 rm -rf conftest*
16780 eval "ac_cv_lib_$ac_lib_var=yes"
16781else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_lib_$ac_lib_var=no"
16786fi
16787rm -f conftest*
16788LIBS="$ac_save_LIBS"
16789
16790fi
16791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16792 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16793 INET_LINK="resolv"
16794
698dcdb6 16795else
4f14bcd8
GD
16796 echo "$ac_t""no" 1>&6
16797fi
698dcdb6 16798
4f14bcd8 16799
698dcdb6 16800fi
4f14bcd8
GD
16801
16802
698dcdb6
VZ
16803
16804fi
4f14bcd8
GD
16805done
16806
16807
16808for ac_func in inet_aton
16809do
16810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 16811echo "configure:16812: checking for $ac_func" >&5
4f14bcd8 16812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16813 echo $ac_n "(cached) $ac_c" 1>&6
16814else
4f14bcd8 16815 cat > conftest.$ac_ext <<EOF
cb61c62d 16816#line 16817 "configure"
f6bcfd97 16817#include "confdefs.h"
4f14bcd8
GD
16818/* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func(); below. */
16820#include <assert.h>
f6bcfd97
BP
16821/* Override any gcc2 internal prototype to avoid an error. */
16822/* We use char because int might match the return type of a gcc2
698dcdb6 16823 builtin and then its argument prototype would still apply. */
4f14bcd8 16824char $ac_func();
698dcdb6
VZ
16825
16826int main() {
4f14bcd8
GD
16827
16828/* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16832choke me
16833#else
16834$ac_func();
16835#endif
16836
698dcdb6
VZ
16837; return 0; }
16838EOF
cb61c62d 16839if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16840 rm -rf conftest*
4f14bcd8 16841 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16842else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
4f14bcd8 16846 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16847fi
16848rm -f conftest*
698dcdb6 16849fi
4f14bcd8
GD
16850
16851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16852 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16854 cat >> confdefs.h <<EOF
16855#define $ac_tr_func 1
16856EOF
16857 cat >> confdefs.h <<\EOF
16858#define HAVE_INET_ATON 1
16859EOF
16860
10f2d63a 16861else
698dcdb6 16862 echo "$ac_t""no" 1>&6
4f14bcd8 16863 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
cb61c62d 16864echo "configure:16865: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 16865ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 16868else
698dcdb6 16869 ac_save_LIBS="$LIBS"
4f14bcd8 16870LIBS="-l$INET_LINK $LIBS"
698dcdb6 16871cat > conftest.$ac_ext <<EOF
cb61c62d 16872#line 16873 "configure"
10f2d63a 16873#include "confdefs.h"
6232543b 16874/* Override any gcc2 internal prototype to avoid an error. */
6232543b 16875/* We use char because int might match the return type of a gcc2
698dcdb6 16876 builtin and then its argument prototype would still apply. */
4f14bcd8 16877char inet_aton();
698dcdb6
VZ
16878
16879int main() {
4f14bcd8 16880inet_aton()
698dcdb6
VZ
16881; return 0; }
16882EOF
cb61c62d 16883if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16884 rm -rf conftest*
16885 eval "ac_cv_lib_$ac_lib_var=yes"
16886else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_lib_$ac_lib_var=no"
16891fi
16892rm -f conftest*
16893LIBS="$ac_save_LIBS"
10f2d63a 16894
698dcdb6
VZ
16895fi
16896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16897 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16898 cat >> confdefs.h <<\EOF
16899#define HAVE_INET_ATON 1
16900EOF
16901
698dcdb6
VZ
16902else
16903 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16904fi
16905
4f14bcd8 16906
10f2d63a 16907fi
4f14bcd8 16908done
10f2d63a 16909
4f14bcd8
GD
16910
16911if test "x$INET_LINK" != "x"; then
16912 cat >> confdefs.h <<\EOF
16913#define HAVE_INET_ADDR 1
16914EOF
16915
3d63bc3a 16916 INET_LINK=" -l$INET_LINK"
6232543b 16917fi
10f2d63a 16918
1e487827 16919fi
703e0a69 16920
698dcdb6 16921
4f14bcd8
GD
16922cat > confcache <<\EOF
16923# This file is a shell script that caches the results of configure
16924# tests run on this system so they can be shared between configure
16925# scripts and configure runs. It is not useful on other systems.
16926# If it contains results you don't want to keep, you may remove or edit it.
16927#
16928# By default, configure uses ./config.cache as the cache file,
16929# creating it if it does not exist already. You can give configure
16930# the --cache-file=FILE option to use a different cache file; that is
16931# what configure does when it calls configure scripts in
16932# subdirectories, so they share the cache.
16933# Giving --cache-file=/dev/null disables caching, for debugging configure.
16934# config.status only pays attention to the cache file if you give it the
16935# --recheck option to rerun configure.
16936#
f6bcfd97 16937EOF
4f14bcd8
GD
16938# The following way of writing the cache mishandles newlines in values,
16939# but we know of no workaround that is simple, portable, and efficient.
16940# So, don't put newlines in cache variables' values.
16941# Ultrix sh set writes to stderr and can't be redirected directly,
16942# and sets the high bit in the cache file unless we assign to the vars.
16943(set) 2>&1 |
16944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16945 *ac_space=\ *)
16946 # `set' does not quote correctly, so add quotes (double-quote substitution
16947 # turns \\\\ into \\, and sed turns \\ into \).
16948 sed -n \
16949 -e "s/'/'\\\\''/g" \
16950 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16951 ;;
16952 *)
16953 # `set' quotes correctly as required by POSIX, so do not add quotes.
16954 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16955 ;;
16956 esac >> confcache
16957if cmp -s $cache_file confcache; then
16958 :
16959else
16960 if test -w $cache_file; then
16961 echo "updating cache $cache_file"
16962 cat confcache > $cache_file
f6bcfd97 16963 else
4f14bcd8 16964 echo "not updating unwritable cache $cache_file"
f6bcfd97 16965 fi
4f14bcd8
GD
16966fi
16967rm -f confcache
f6bcfd97 16968
4f14bcd8
GD
16969
16970
16971if test "$TOOLKIT" != "MSW"; then
16972
7274f1c7
RL
16973
16974 THREADS_LINK=
16975 THREADS_OBJ=
16976 CODE_GEN_FLAGS=
16977 CODE_GEN_FLAGS_CXX=
16978
16979 if test "$wxUSE_THREADS" = "yes" ; then
16980 if test "$wxUSE_WINE" = 1 ; then
156b2523 16981 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16982 wxUSE_THREADS="no"
16983 elif test "$USE_BEOS" = 1; then
156b2523 16984 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16985 wxUSE_THREADS="no"
16986 fi
4f14bcd8 16987 fi
4f14bcd8 16988
7274f1c7
RL
16989 if test "$wxUSE_THREADS" = "yes" ; then
16990
16991 if test "$USE_AIX" = 1; then
16992 THREADS_LIB=pthreads
16993 else
16994 THREADS_LIB=pthread
16995 fi
4f14bcd8 16996
7274f1c7 16997 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
cb61c62d 16998echo "configure:16999: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16999ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17002else
698dcdb6 17003 ac_save_LIBS="$LIBS"
4f14bcd8 17004LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 17005cat > conftest.$ac_ext <<EOF
cb61c62d 17006#line 17007 "configure"
10f2d63a
VZ
17007#include "confdefs.h"
17008/* Override any gcc2 internal prototype to avoid an error. */
17009/* We use char because int might match the return type of a gcc2
698dcdb6 17010 builtin and then its argument prototype would still apply. */
4f14bcd8 17011char pthread_create();
698dcdb6
VZ
17012
17013int main() {
4f14bcd8 17014pthread_create()
698dcdb6
VZ
17015; return 0; }
17016EOF
cb61c62d 17017if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17018 rm -rf conftest*
17019 eval "ac_cv_lib_$ac_lib_var=yes"
17020else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=no"
17025fi
17026rm -f conftest*
17027LIBS="$ac_save_LIBS"
17028
17029fi
17030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
4f14bcd8 17032
7274f1c7
RL
17033 THREADS_OBJ="threadpsx.lo"
17034 THREADS_LINK=$THREADS_LIB
17035
10f2d63a 17036else
698dcdb6 17037 echo "$ac_t""no" 1>&6
10f2d63a 17038
7274f1c7 17039 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
cb61c62d 17040echo "configure:17041: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
17041ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17043 echo $ac_n "(cached) $ac_c" 1>&6
17044else
4f14bcd8
GD
17045 ac_save_LIBS="$LIBS"
17046LIBS="-lc_r $LIBS"
17047cat > conftest.$ac_ext <<EOF
cb61c62d 17048#line 17049 "configure"
10f2d63a 17049#include "confdefs.h"
4f14bcd8
GD
17050/* Override any gcc2 internal prototype to avoid an error. */
17051/* We use char because int might match the return type of a gcc2
17052 builtin and then its argument prototype would still apply. */
17053char pthread_create();
10f2d63a 17054
4f14bcd8
GD
17055int main() {
17056pthread_create()
698dcdb6
VZ
17057; return 0; }
17058EOF
cb61c62d 17059if { (eval echo configure:17060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17060 rm -rf conftest*
4f14bcd8 17061 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17062else
698dcdb6
VZ
17063 echo "configure: failed program was:" >&5
17064 cat conftest.$ac_ext >&5
17065 rm -rf conftest*
4f14bcd8 17066 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 17067fi
698dcdb6 17068rm -f conftest*
4f14bcd8 17069LIBS="$ac_save_LIBS"
d9b9876f 17070
4f14bcd8
GD
17071fi
17072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17073 echo "$ac_t""yes" 1>&6
17074
7274f1c7
RL
17075 THREADS_OBJ="threadpsx.lo"
17076 THREADS_LINK="c_r"
17077
4f14bcd8
GD
17078else
17079 echo "$ac_t""no" 1>&6
ab252f7b 17080
7274f1c7 17081 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 17082echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
cb61c62d 17083echo "configure:17084: checking for sys/prctl.h" >&5
4f14bcd8 17084if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 17085 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 17086else
4f14bcd8 17087 cat > conftest.$ac_ext <<EOF
cb61c62d 17088#line 17089 "configure"
d9b9876f 17089#include "confdefs.h"
4f14bcd8 17090#include <sys/prctl.h>
698dcdb6 17091EOF
4f14bcd8 17092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 17093{ (eval echo configure:17094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17095if test -z "$ac_err"; then
698dcdb6 17096 rm -rf conftest*
4f14bcd8 17097 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 17098else
4f14bcd8 17099 echo "$ac_err" >&5
698dcdb6
VZ
17100 echo "configure: failed program was:" >&5
17101 cat conftest.$ac_ext >&5
17102 rm -rf conftest*
4f14bcd8 17103 eval "ac_cv_header_$ac_safe=no"
6232543b 17104fi
698dcdb6 17105rm -f conftest*
4f14bcd8
GD
17106fi
17107if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17108 echo "$ac_t""yes" 1>&6
698dcdb6 17109
7274f1c7
RL
17110 THREADS_OBJ="threadsgi.lo"
17111
4f14bcd8
GD
17112else
17113 echo "$ac_t""no" 1>&6
1e487827 17114fi
698dcdb6 17115
7274f1c7 17116
4f14bcd8 17117fi
d9b9876f 17118
7274f1c7 17119
4f14bcd8 17120fi
d9b9876f 17121
4f14bcd8 17122
7274f1c7
RL
17123 if test -z "$THREADS_OBJ" ; then
17124 wxUSE_THREADS=no
156b2523 17125 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 17126 fi
4f14bcd8 17127 fi
4f14bcd8 17128
7274f1c7
RL
17129 if test "$wxUSE_THREADS" = "yes" ; then
17130 for ac_func in thr_setconcurrency
4f14bcd8
GD
17131do
17132echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 17133echo "configure:17134: checking for $ac_func" >&5
4f14bcd8 17134if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17135 echo $ac_n "(cached) $ac_c" 1>&6
17136else
4f14bcd8 17137 cat > conftest.$ac_ext <<EOF
cb61c62d 17138#line 17139 "configure"
d9b9876f 17139#include "confdefs.h"
4f14bcd8
GD
17140/* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func(); below. */
17142#include <assert.h>
17143/* Override any gcc2 internal prototype to avoid an error. */
17144/* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17146char $ac_func();
17147
698dcdb6 17148int main() {
d9b9876f 17149
4f14bcd8
GD
17150/* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17154choke me
17155#else
17156$ac_func();
17157#endif
17158
698dcdb6
VZ
17159; return 0; }
17160EOF
cb61c62d 17161if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17162 rm -rf conftest*
4f14bcd8 17163 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17164else
698dcdb6
VZ
17165 echo "configure: failed program was:" >&5
17166 cat conftest.$ac_ext >&5
17167 rm -rf conftest*
4f14bcd8 17168 eval "ac_cv_func_$ac_func=no"
6232543b 17169fi
698dcdb6 17170rm -f conftest*
1e487827 17171fi
698dcdb6 17172
4f14bcd8
GD
17173if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17174 echo "$ac_t""yes" 1>&6
17175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17176 cat >> confdefs.h <<EOF
17177#define $ac_tr_func 1
d9b9876f 17178EOF
4f14bcd8
GD
17179
17180else
17181 echo "$ac_t""no" 1>&6
10f2d63a 17182fi
4f14bcd8 17183done
10f2d63a 17184
10f2d63a 17185
7274f1c7
RL
17186
17187 for ac_hdr in sched.h
4f14bcd8
GD
17188do
17189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 17191echo "configure:17192: checking for $ac_hdr" >&5
4f14bcd8
GD
17192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17193 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17194else
4f14bcd8 17195 cat > conftest.$ac_ext <<EOF
cb61c62d 17196#line 17197 "configure"
4f14bcd8
GD
17197#include "confdefs.h"
17198#include <$ac_hdr>
13111b2a 17199EOF
4f14bcd8 17200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 17201{ (eval echo configure:17202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17203if test -z "$ac_err"; then
17204 rm -rf conftest*
17205 eval "ac_cv_header_$ac_safe=yes"
17206else
17207 echo "$ac_err" >&5
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17210 rm -rf conftest*
17211 eval "ac_cv_header_$ac_safe=no"
13111b2a 17212fi
4f14bcd8 17213rm -f conftest*
10f2d63a 17214fi
4f14bcd8
GD
17215if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17216 echo "$ac_t""yes" 1>&6
17217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17218 cat >> confdefs.h <<EOF
4f14bcd8 17219#define $ac_tr_hdr 1
f6bcfd97 17220EOF
4f14bcd8
GD
17221
17222else
17223 echo "$ac_t""no" 1>&6
f6bcfd97 17224fi
4f14bcd8 17225done
f6bcfd97 17226
10f2d63a 17227
7274f1c7 17228 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
cb61c62d 17229echo "configure:17230: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
17230ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
17233else
17234 ac_save_LIBS="$LIBS"
17235LIBS="-l$THREADS_LINK $LIBS"
17236cat > conftest.$ac_ext <<EOF
cb61c62d 17237#line 17238 "configure"
4f14bcd8
GD
17238#include "confdefs.h"
17239/* Override any gcc2 internal prototype to avoid an error. */
17240/* We use char because int might match the return type of a gcc2
17241 builtin and then its argument prototype would still apply. */
17242char sched_yield();
10f2d63a 17243
4f14bcd8
GD
17244int main() {
17245sched_yield()
17246; return 0; }
10f2d63a 17247EOF
cb61c62d 17248if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17249 rm -rf conftest*
17250 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17251else
4f14bcd8
GD
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17256fi
4f14bcd8
GD
17257rm -f conftest*
17258LIBS="$ac_save_LIBS"
10f2d63a 17259
4f14bcd8
GD
17260fi
17261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
17263 cat >> confdefs.h <<\EOF
17264#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17265EOF
17266
4f14bcd8
GD
17267else
17268 echo "$ac_t""no" 1>&6
17269echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
cb61c62d 17270echo "configure:17271: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17271ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17272if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17273 echo $ac_n "(cached) $ac_c" 1>&6
17274else
17275 ac_save_LIBS="$LIBS"
17276LIBS="-lposix4 $LIBS"
17277cat > conftest.$ac_ext <<EOF
cb61c62d 17278#line 17279 "configure"
4f14bcd8
GD
17279#include "confdefs.h"
17280/* Override any gcc2 internal prototype to avoid an error. */
17281/* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283char sched_yield();
47c13eb7 17284
4f14bcd8
GD
17285int main() {
17286sched_yield()
17287; return 0; }
10f2d63a 17288EOF
cb61c62d 17289if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17290 rm -rf conftest*
17291 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17292else
4f14bcd8
GD
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 rm -rf conftest*
17296 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17297fi
4f14bcd8
GD
17298rm -f conftest*
17299LIBS="$ac_save_LIBS"
10f2d63a 17300
54276ccf 17301fi
4f14bcd8
GD
17302if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17303 echo "$ac_t""yes" 1>&6
17304 cat >> confdefs.h <<\EOF
17305#define HAVE_SCHED_YIELD 1
54276ccf 17306EOF
3d63bc3a 17307 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17308else
17309 echo "$ac_t""no" 1>&6
17310echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 17311
54276ccf
VZ
17312fi
17313
7274f1c7 17314
4f14bcd8 17315fi
698dcdb6 17316
10f2d63a 17317
7274f1c7
RL
17318 HAVE_PRIOR_FUNCS=0
17319 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
cb61c62d 17320echo "configure:17321: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
17321ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17323 echo $ac_n "(cached) $ac_c" 1>&6
17324else
4f14bcd8
GD
17325 ac_save_LIBS="$LIBS"
17326LIBS="-l$THREADS_LINK $LIBS"
17327cat > conftest.$ac_ext <<EOF
cb61c62d 17328#line 17329 "configure"
422107f9 17329#include "confdefs.h"
4f14bcd8
GD
17330/* Override any gcc2 internal prototype to avoid an error. */
17331/* We use char because int might match the return type of a gcc2
17332 builtin and then its argument prototype would still apply. */
17333char pthread_attr_getschedpolicy();
17334
17335int main() {
17336pthread_attr_getschedpolicy()
17337; return 0; }
698dcdb6 17338EOF
cb61c62d 17339if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17340 rm -rf conftest*
4f14bcd8 17341 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 17342else
698dcdb6 17343 echo "configure: failed program was:" >&5
422107f9 17344 cat conftest.$ac_ext >&5
698dcdb6 17345 rm -rf conftest*
4f14bcd8 17346 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 17347fi
698dcdb6 17348rm -f conftest*
4f14bcd8
GD
17349LIBS="$ac_save_LIBS"
17350
422107f9 17351fi
4f14bcd8 17352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 17353 echo "$ac_t""yes" 1>&6
4f14bcd8 17354 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
cb61c62d 17355echo "configure:17356: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 17356ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17358 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17359else
698dcdb6 17360 ac_save_LIBS="$LIBS"
4f14bcd8 17361LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 17362cat > conftest.$ac_ext <<EOF
cb61c62d 17363#line 17364 "configure"
422107f9
VZ
17364#include "confdefs.h"
17365/* Override any gcc2 internal prototype to avoid an error. */
17366/* We use char because int might match the return type of a gcc2
698dcdb6 17367 builtin and then its argument prototype would still apply. */
4f14bcd8 17368char pthread_attr_setschedparam();
698dcdb6
VZ
17369
17370int main() {
4f14bcd8 17371pthread_attr_setschedparam()
698dcdb6
VZ
17372; return 0; }
17373EOF
cb61c62d 17374if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17375 rm -rf conftest*
17376 eval "ac_cv_lib_$ac_lib_var=yes"
17377else
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17380 rm -rf conftest*
17381 eval "ac_cv_lib_$ac_lib_var=no"
17382fi
17383rm -f conftest*
17384LIBS="$ac_save_LIBS"
17385
17386fi
17387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17388 echo "$ac_t""yes" 1>&6
4f14bcd8 17389 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
cb61c62d 17390echo "configure:17391: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
17391ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17393 echo $ac_n "(cached) $ac_c" 1>&6
17394else
4f14bcd8
GD
17395 ac_save_LIBS="$LIBS"
17396LIBS="-l$THREADS_LINK $LIBS"
17397cat > conftest.$ac_ext <<EOF
cb61c62d 17398#line 17399 "configure"
422107f9 17399#include "confdefs.h"
4f14bcd8
GD
17400/* Override any gcc2 internal prototype to avoid an error. */
17401/* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17403char sched_get_priority_max();
17404
17405int main() {
17406sched_get_priority_max()
17407; return 0; }
698dcdb6 17408EOF
cb61c62d 17409if { (eval echo configure:17410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17410 rm -rf conftest*
4f14bcd8 17411 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 17412else
698dcdb6 17413 echo "configure: failed program was:" >&5
422107f9 17414 cat conftest.$ac_ext >&5
698dcdb6 17415 rm -rf conftest*
4f14bcd8 17416 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 17417fi
698dcdb6 17418rm -f conftest*
4f14bcd8
GD
17419LIBS="$ac_save_LIBS"
17420
422107f9 17421fi
4f14bcd8 17422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 17423 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17424 HAVE_PRIOR_FUNCS=1
17425else
17426 echo "$ac_t""no" 1>&6
17427echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
cb61c62d 17428echo "configure:17429: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17429ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17432else
698dcdb6 17433 ac_save_LIBS="$LIBS"
4f14bcd8 17434LIBS="-lposix4 $LIBS"
698dcdb6 17435cat > conftest.$ac_ext <<EOF
cb61c62d 17436#line 17437 "configure"
422107f9
VZ
17437#include "confdefs.h"
17438/* Override any gcc2 internal prototype to avoid an error. */
17439/* We use char because int might match the return type of a gcc2
698dcdb6 17440 builtin and then its argument prototype would still apply. */
4f14bcd8 17441char sched_get_priority_max();
698dcdb6
VZ
17442
17443int main() {
4f14bcd8 17444sched_get_priority_max()
698dcdb6
VZ
17445; return 0; }
17446EOF
cb61c62d 17447if { (eval echo configure:17448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17448 rm -rf conftest*
17449 eval "ac_cv_lib_$ac_lib_var=yes"
17450else
17451 echo "configure: failed program was:" >&5
17452 cat conftest.$ac_ext >&5
17453 rm -rf conftest*
17454 eval "ac_cv_lib_$ac_lib_var=no"
17455fi
17456rm -f conftest*
17457LIBS="$ac_save_LIBS"
17458
17459fi
17460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17461 echo "$ac_t""yes" 1>&6
4f14bcd8 17462
7274f1c7
RL
17463 HAVE_PRIOR_FUNCS=1
17464 POSIX4_LINK=" -lposix4"
17465
698dcdb6
VZ
17466else
17467 echo "$ac_t""no" 1>&6
422107f9
VZ
17468fi
17469
7274f1c7 17470
422107f9
VZ
17471fi
17472
7274f1c7 17473
4f14bcd8
GD
17474else
17475 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17476fi
17477
7274f1c7 17478
698dcdb6 17479else
4f14bcd8
GD
17480 echo "$ac_t""no" 1>&6
17481fi
463abc64 17482
463abc64 17483
7274f1c7
RL
17484 if test "$HAVE_PRIOR_FUNCS" = 1; then
17485 cat >> confdefs.h <<\EOF
4f14bcd8 17486#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17487EOF
463abc64 17488
7274f1c7
RL
17489 else
17490 echo "configure: warning: Setting thread priority will not work" 1>&2
17491 fi
463abc64 17492
7274f1c7 17493 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
cb61c62d 17494echo "configure:17495: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 17495ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17497 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17498else
698dcdb6 17499 ac_save_LIBS="$LIBS"
4f14bcd8 17500LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 17501cat > conftest.$ac_ext <<EOF
cb61c62d 17502#line 17503 "configure"
422107f9
VZ
17503#include "confdefs.h"
17504/* Override any gcc2 internal prototype to avoid an error. */
17505/* We use char because int might match the return type of a gcc2
698dcdb6 17506 builtin and then its argument prototype would still apply. */
4f14bcd8 17507char pthread_cancel();
698dcdb6
VZ
17508
17509int main() {
4f14bcd8 17510pthread_cancel()
698dcdb6
VZ
17511; return 0; }
17512EOF
cb61c62d 17513if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17514 rm -rf conftest*
17515 eval "ac_cv_lib_$ac_lib_var=yes"
17516else
17517 echo "configure: failed program was:" >&5
17518 cat conftest.$ac_ext >&5
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=no"
17521fi
17522rm -f conftest*
17523LIBS="$ac_save_LIBS"
17524
17525fi
17526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17527 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17528 cat >> confdefs.h <<\EOF
17529#define HAVE_PTHREAD_CANCEL 1
17530EOF
17531
698dcdb6
VZ
17532else
17533 echo "$ac_t""no" 1>&6
4f14bcd8 17534echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17535fi
17536
422107f9 17537
7274f1c7 17538 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
cb61c62d 17539echo "configure:17540: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17540if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17541 echo $ac_n "(cached) $ac_c" 1>&6
17542else
17543
7274f1c7 17544 cat > conftest.$ac_ext <<EOF
cb61c62d 17545#line 17546 "configure"
4f14bcd8
GD
17546#include "confdefs.h"
17547#include <pthread.h>
17548int main() {
17549
7274f1c7
RL
17550 pthread_cleanup_push(NULL, NULL);
17551 pthread_cleanup_pop(0);
17552
4f14bcd8
GD
17553; return 0; }
17554EOF
cb61c62d 17555if { (eval echo configure:17556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17556 rm -rf conftest*
17557
7274f1c7
RL
17558 wx_cv_func_pthread_cleanup_push=yes
17559
4f14bcd8
GD
17560else
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17563 rm -rf conftest*
17564
7274f1c7
RL
17565 wx_cv_func_pthread_cleanup_push=no
17566
4f14bcd8
GD
17567fi
17568rm -f conftest*
7274f1c7 17569
10f2d63a
VZ
17570fi
17571
4f14bcd8
GD
17572echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17573
7274f1c7
RL
17574 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17575 cat >> confdefs.h <<\EOF
4f14bcd8 17576#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17577EOF
17578
7274f1c7 17579 fi
4f14bcd8 17580
7274f1c7
RL
17581
17582 if test "x$wx_lib_glibc21" = "xyes"; then
17583 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17584 fi
4f14bcd8 17585
7274f1c7 17586 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
cb61c62d 17587echo "configure:17588: checking for pthread_mutexattr_t" >&5
4f14bcd8 17588if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17589 echo $ac_n "(cached) $ac_c" 1>&6
17590else
4f14bcd8 17591
7274f1c7 17592 cat > conftest.$ac_ext <<EOF
cb61c62d 17593#line 17594 "configure"
0dcf9893 17594#include "confdefs.h"
4f14bcd8
GD
17595#include <pthread.h>
17596int main() {
17597
7274f1c7
RL
17598 pthread_mutexattr_t attr;
17599 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17600
4f14bcd8 17601; return 0; }
698dcdb6 17602EOF
cb61c62d 17603if { (eval echo configure:17604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17604 rm -rf conftest*
4f14bcd8 17605
7274f1c7
RL
17606 wx_cv_type_pthread_mutexattr_t=yes
17607
3fed1840 17608else
698dcdb6 17609 echo "configure: failed program was:" >&5
3fed1840 17610 cat conftest.$ac_ext >&5
698dcdb6 17611 rm -rf conftest*
4f14bcd8 17612
7274f1c7
RL
17613 wx_cv_type_pthread_mutexattr_t=no
17614
4f14bcd8 17615
3fed1840 17616fi
698dcdb6 17617rm -f conftest*
7274f1c7 17618
3fed1840 17619fi
4f14bcd8
GD
17620
17621echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17622
7274f1c7
RL
17623 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17624 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17625#define HAVE_PTHREAD_MUTEXATTR_T 1
17626EOF
17627
7274f1c7
RL
17628 else
17629 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
cb61c62d 17630echo "configure:17631: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17631if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17632 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17633else
4f14bcd8 17634
7274f1c7 17635 cat > conftest.$ac_ext <<EOF
cb61c62d 17636#line 17637 "configure"
3fed1840 17637#include "confdefs.h"
4f14bcd8 17638#include <pthread.h>
698dcdb6 17639int main() {
4f14bcd8 17640
7274f1c7
RL
17641 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17642
698dcdb6
VZ
17643; return 0; }
17644EOF
cb61c62d 17645if { (eval echo configure:17646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17646 rm -rf conftest*
4f14bcd8 17647
7274f1c7
RL
17648 wx_cv_type_pthread_rec_mutex_init=yes
17649
698dcdb6
VZ
17650else
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 rm -rf conftest*
4f14bcd8 17654
7274f1c7
RL
17655 wx_cv_type_pthread_rec_mutex_init=no
17656
4f14bcd8 17657
698dcdb6
VZ
17658fi
17659rm -f conftest*
7274f1c7 17660
3fed1840
RR
17661fi
17662
4f14bcd8 17663echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17664 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17665 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17666#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17667EOF
3fed1840 17668
7274f1c7
RL
17669 else
17670 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17671 fi
17672 fi
4f14bcd8 17673
7274f1c7 17674 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 17675
7274f1c7
RL
17676 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17677 CPPFLAGS="$CFLAGS -mt"
17678 CXXFLAGS="$CXXFLAGS -mt"
17679 LDFLAGS="$LDFLAGS -mt"
17680 fi
17681 fi
3fed1840 17682
4f14bcd8
GD
17683fi
17684
17685if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17686 cat >> confdefs.h <<\EOF
4f14bcd8 17687#define wxUSE_THREADS 1
7b6058cd
GD
17688EOF
17689
4f14bcd8 17690
3f345b47 17691 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
17692
17693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17694else
4f14bcd8
GD
17695 if test "$ac_cv_func_strtok_r" = "yes"; then
17696 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
cb61c62d 17697echo "configure:17698: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17699 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17700 echo "$ac_t""yes" 1>&6
17701 else
17702 echo "$ac_t""no" 1>&6
17703 fi
17704 fi
17705fi
17706
17707if test "$WXGTK20" = 1 ; then
17708 cat >> confdefs.h <<EOF
17709#define __WXGTK20__ $WXGTK20
698dcdb6 17710EOF
4f14bcd8
GD
17711
17712 WXGTK12=1
10f2d63a 17713fi
4f14bcd8
GD
17714
17715if test "$WXGTK12" = 1 ; then
17716 cat >> confdefs.h <<EOF
17717#define __WXGTK12__ $WXGTK12
17718EOF
17719
10f2d63a 17720fi
698dcdb6 17721
4f14bcd8
GD
17722if test "$WXGTK127" = 1 ; then
17723 cat >> confdefs.h <<EOF
17724#define __WXGTK127__ $WXGTK127
698dcdb6 17725EOF
4f14bcd8 17726
698dcdb6 17727fi
10f2d63a 17728
4f14bcd8
GD
17729WXDEBUG=
17730
17731if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17732 WXDEBUG="-g"
17733 wxUSE_OPTIMISE=no
698dcdb6 17734fi
4f14bcd8
GD
17735
17736if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17737 wxUSE_DEBUG_INFO=yes
17738 WXDEBUG="-ggdb"
10f2d63a
VZ
17739fi
17740
4f14bcd8
GD
17741if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17742 cat >> confdefs.h <<\EOF
17743#define WXDEBUG 1
17744EOF
17745
17746 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17747else
4f14bcd8
GD
17748 if test "$wxUSE_GTK" = 1 ; then
17749 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17750 fi
17751fi
17752
17753if test "$wxUSE_MEM_TRACING" = "yes" ; then
17754 cat >> confdefs.h <<\EOF
17755#define wxUSE_MEMORY_TRACING 1
17756EOF
17757
17758 cat >> confdefs.h <<\EOF
17759#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17760EOF
17761
17762 cat >> confdefs.h <<\EOF
17763#define wxUSE_DEBUG_NEW_ALWAYS 1
17764EOF
17765
17766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17767fi
17768
17769if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17770 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17771fi
17772
17773PROFILE=
17774if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17775 PROFILE=" -pg"
10f2d63a
VZ
17776fi
17777
88e30f2b 17778if test "$GCC" = "yes" ; then
4f14bcd8
GD
17779 if test "$wxUSE_NO_RTTI" = "yes" ; then
17780 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17781 fi
4f14bcd8
GD
17782 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17783 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17784 fi
17785 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17787 fi
4f14bcd8
GD
17788 if test "$USE_WIN32" = 1 ; then
17789 # I'm not even really sure what this was ever added to solve,
17790 # but someone added it for mingw native builds, so I guess
17791 # they had a reason, right??
17792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17793 fi
17794fi
17795
17796
17797CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17798CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17799if test "$wxUSE_OPTIMISE" = "no" ; then
17800 OPTIMISE=
17801else
17802 if test "$GCC" = yes ; then
17803 OPTIMISE="-O2"
17804 case "${host}" in
17805 i586-*-*|i686-*-* )
17806 OPTIMISE="${OPTIMISE} "
17807 ;;
17808 esac
17809 else
17810 OPTIMISE="-O"
17811 fi
17812fi
17813
17814if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17815 cat >> confdefs.h <<\EOF
17816#define WXWIN_COMPATIBILITY_2 1
17817EOF
17818
17819
17820 WXWIN_COMPATIBILITY_2_2="yes"
17821fi
17822
17823if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17824 cat >> confdefs.h <<\EOF
17825#define WXWIN_COMPATIBILITY_2_2 1
17826EOF
17827
10f2d63a
VZ
17828fi
17829
698dcdb6 17830
10f2d63a 17831if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17832 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17833#define wxUSE_GUI 1
17834EOF
17835
698dcdb6 17836
10f2d63a 17837 else
698dcdb6 17838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17839#define wxUSE_NOGUI 1
17840EOF
17841
17842fi
17843
698dcdb6 17844
10f2d63a 17845if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17846 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17847#define wxUSE_UNIX 1
17848EOF
17849
17850fi
17851
698dcdb6 17852
10f2d63a 17853if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17854 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17855#define wxUSE_APPLE_IEEE 1
17856EOF
17857
17858fi
17859
1e6feb95
VZ
17860if test "$wxUSE_TIMER" = "yes"; then
17861 cat >> confdefs.h <<\EOF
17862#define wxUSE_TIMER 1
17863EOF
17864
17865fi
17866
10f2d63a 17867if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 17868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17869#define wxUSE_WAVE 1
17870EOF
17871
17872fi
17873
1e6feb95
VZ
17874if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876#define wxUSE_CMDLINE_PARSER 1
17877EOF
17878
17879fi
17880
17881if test "$wxUSE_STOPWATCH" = "yes"; then
17882 cat >> confdefs.h <<\EOF
17883#define wxUSE_STOPWATCH 1
17884EOF
17885
17886fi
17887
17888if test "$wxUSE_DATETIME" = "yes"; then
17889 cat >> confdefs.h <<\EOF
17890#define wxUSE_DATETIME 1
17891EOF
17892
17893fi
17894
17895if test "$wxUSE_TIMEDATE" = "yes"; then
17896 cat >> confdefs.h <<\EOF
17897#define wxUSE_TIMEDATE 1
17898EOF
17899
17900fi
17901
10f2d63a 17902if test "$wxUSE_FILE" = "yes"; then
698dcdb6 17903 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17904#define wxUSE_FILE 1
17905EOF
17906
17907fi
17908
1e6feb95
VZ
17909if test "$wxUSE_FFILE" = "yes"; then
17910 cat >> confdefs.h <<\EOF
17911#define wxUSE_FFILE 1
17912EOF
17913
17914fi
17915
24528b0c 17916if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 17917 cat >> confdefs.h <<\EOF
24528b0c
VS
17918#define wxUSE_FILESYSTEM 1
17919EOF
17920
17921fi
17922
10f2d63a 17923if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 17924 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17925#define wxUSE_FS_INET 1
17926EOF
17927
17928fi
17929
17930if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 17931 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17932#define wxUSE_FS_ZIP 1
17933EOF
17934
17935fi
17936
17937if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 17938 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17939#define wxUSE_ZIPSTREAM 1
17940EOF
17941
17942fi
17943
eb4efbdc 17944if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 17945 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
17946#define wxUSE_ON_FATAL_EXCEPTION 1
17947EOF
17948
17949fi
17950
4f3c5f06 17951if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 17952 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
17953#define wxUSE_SNGLINST_CHECKER 1
17954EOF
17955
17956fi
17957
10f2d63a 17958if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 17959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17960#define wxUSE_BUSYINFO 1
17961EOF
17962
17963fi
17964
17965if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 17966 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17967#define wxUSE_STD_IOSTREAM 1
17968EOF
17969
17970fi
17971
a3a584a7
VZ
17972if test "$wxUSE_TEXTBUFFER" = "yes"; then
17973 cat >> confdefs.h <<\EOF
17974#define wxUSE_TEXTBUFFER 1
17975EOF
17976
17977fi
17978
10f2d63a 17979if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17980 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17981 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17982 else
698dcdb6 17983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17984#define wxUSE_TEXTFILE 1
17985EOF
17986
17987 fi
17988fi
17989
17990if test "$wxUSE_CONFIG" = "yes" ; then
17991 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17992 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17993 else
698dcdb6 17994 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17995#define wxUSE_CONFIG 1
17996EOF
17997
17998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17999 fi
18000fi
18001
18002if test "$wxUSE_INTL" = "yes" ; then
18003 if test "$wxUSE_FILE" != "yes"; then
156b2523 18004 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18005 else
698dcdb6 18006 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18007#define wxUSE_INTL 1
18008EOF
18009
18010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18011 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18012 fi
18013fi
18014
18015if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18017#define wxUSE_LOG 1
18018EOF
18019
d73be714
VZ
18020
18021 if test "$wxUSE_LOGGUI" = "yes"; then
18022 cat >> confdefs.h <<\EOF
18023#define wxUSE_LOGGUI 1
18024EOF
18025
18026 fi
18027
18028 if test "$wxUSE_LOGWINDOW" = "yes"; then
18029 cat >> confdefs.h <<\EOF
18030#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18031EOF
18032
18033 fi
18034
18035 if test "$wxUSE_LOGDIALOG" = "yes"; then
18036 cat >> confdefs.h <<\EOF
18037#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18038EOF
18039
18040 fi
10f2d63a
VZ
18041fi
18042
18043if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18044 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18045#define wxUSE_LONGLONG 1
18046EOF
18047
18048fi
18049
e8f65ba6 18050if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18051 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18052#define wxUSE_GEOMETRY 1
18053EOF
18054
18055fi
18056
10f2d63a 18057if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18058 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18059#define wxUSE_DIALUP_MANAGER 1
18060EOF
18061
70f7a477 18062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18063fi
18064
18065if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18066 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18067#define wxUSE_STREAMS 1
18068EOF
18069
18070fi
18071
1e487827 18072
1e6feb95 18073if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18074 for ac_func in strptime
83307f33 18075do
698dcdb6 18076echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 18077echo "configure:18078: checking for $ac_func" >&5
698dcdb6
VZ
18078if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18079 echo $ac_n "(cached) $ac_c" 1>&6
18080else
18081 cat > conftest.$ac_ext <<EOF
cb61c62d 18082#line 18083 "configure"
83307f33
VZ
18083#include "confdefs.h"
18084/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18085 which can conflict with char $ac_func(); below. */
83307f33
VZ
18086#include <assert.h>
18087/* Override any gcc2 internal prototype to avoid an error. */
18088/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18089 builtin and then its argument prototype would still apply. */
18090char $ac_func();
18091
18092int main() {
83307f33
VZ
18093
18094/* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18098choke me
18099#else
698dcdb6 18100$ac_func();
83307f33
VZ
18101#endif
18102
698dcdb6 18103; return 0; }
83307f33 18104EOF
cb61c62d 18105if { (eval echo configure:18106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18106 rm -rf conftest*
18107 eval "ac_cv_func_$ac_func=yes"
18108else
18109 echo "configure: failed program was:" >&5
18110 cat conftest.$ac_ext >&5
18111 rm -rf conftest*
18112 eval "ac_cv_func_$ac_func=no"
18113fi
18114rm -f conftest*
18115fi
83307f33 18116
698dcdb6
VZ
18117if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18118 echo "$ac_t""yes" 1>&6
18119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18120 cat >> confdefs.h <<EOF
18121#define $ac_tr_func 1
18122EOF
18123
18124else
18125 echo "$ac_t""no" 1>&6
83307f33
VZ
18126fi
18127done
18128
1e487827 18129
698dcdb6 18130 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
cb61c62d 18131echo "configure:18132: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18132if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134else
18135
18136 cat > conftest.$ac_ext <<EOF
cb61c62d 18137#line 18138 "configure"
360d6699
VZ
18138#include "confdefs.h"
18139
b4085ce6 18140 #include <time.h>
698dcdb6
VZ
18141
18142int main() {
360d6699
VZ
18143
18144 int tz;
4f11a343 18145 tz = timezone;
698dcdb6
VZ
18146
18147; return 0; }
18148EOF
cb61c62d 18149if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18150 rm -rf conftest*
18151
4f11a343 18152 wx_cv_var_timezone=timezone
698dcdb6 18153
360d6699 18154else
698dcdb6
VZ
18155 echo "configure: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18157 rm -rf conftest*
18158
18159 cat > conftest.$ac_ext <<EOF
cb61c62d 18160#line 18161 "configure"
360d6699
VZ
18161#include "confdefs.h"
18162
b4085ce6 18163 #include <time.h>
698dcdb6
VZ
18164
18165int main() {
360d6699
VZ
18166
18167 int tz;
18168 tz = _timezone;
698dcdb6
VZ
18169
18170; return 0; }
18171EOF
cb61c62d 18172if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18173 rm -rf conftest*
18174
360d6699 18175 wx_cv_var_timezone=_timezone
698dcdb6 18176
5357c8e8 18177else
698dcdb6
VZ
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181
18182 cat > conftest.$ac_ext <<EOF
cb61c62d 18183#line 18184 "configure"
5357c8e8
VZ
18184#include "confdefs.h"
18185
b4085ce6 18186 #include <time.h>
698dcdb6
VZ
18187
18188int main() {
5357c8e8
VZ
18189
18190 int tz;
4f11a343 18191 tz = __timezone;
698dcdb6
VZ
18192
18193; return 0; }
18194EOF
cb61c62d 18195if { (eval echo configure:18196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18196 rm -rf conftest*
18197
4f11a343 18198 wx_cv_var_timezone=__timezone
698dcdb6 18199
360d6699 18200else
698dcdb6
VZ
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
f9bc1684
VS
18204
18205 if test "$USE_DOS" = 0 ; then
18206 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18207 fi
18208
698dcdb6 18209
360d6699 18210fi
698dcdb6
VZ
18211rm -f conftest*
18212
18213
360d6699 18214fi
698dcdb6
VZ
18215rm -f conftest*
18216
18217
6232543b 18218fi
698dcdb6
VZ
18219rm -f conftest*
18220
18221
1e487827 18222fi
703e0a69 18223
698dcdb6
VZ
18224echo "$ac_t""$wx_cv_var_timezone" 1>&6
18225
f9bc1684 18226 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18227 cat >> confdefs.h <<EOF
360d6699
VZ
18228#define WX_TIMEZONE $wx_cv_var_timezone
18229EOF
18230
f9bc1684 18231 fi
698dcdb6
VZ
18232
18233 for ac_func in localtime
afc31813 18234do
698dcdb6 18235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 18236echo "configure:18237: checking for $ac_func" >&5
698dcdb6
VZ
18237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239else
18240 cat > conftest.$ac_ext <<EOF
cb61c62d 18241#line 18242 "configure"
10f2d63a 18242#include "confdefs.h"
afc31813 18243/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18244 which can conflict with char $ac_func(); below. */
afc31813
VZ
18245#include <assert.h>
18246/* Override any gcc2 internal prototype to avoid an error. */
18247/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18248 builtin and then its argument prototype would still apply. */
18249char $ac_func();
18250
18251int main() {
afc31813
VZ
18252
18253/* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257choke me
18258#else
698dcdb6 18259$ac_func();
afc31813
VZ
18260#endif
18261
698dcdb6 18262; return 0; }
10f2d63a 18263EOF
cb61c62d 18264if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272fi
18273rm -f conftest*
18274fi
afc31813 18275
698dcdb6
VZ
18276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280#define $ac_tr_func 1
18281EOF
18282
18283else
18284 echo "$ac_t""no" 1>&6
afc31813
VZ
18285fi
18286done
18287
1e487827 18288
698dcdb6
VZ
18289 if test "$ac_cv_func_localtime" = "yes"; then
18290 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
cb61c62d 18291echo "configure:18292: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18292if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18294else
18295
18296 cat > conftest.$ac_ext <<EOF
cb61c62d 18297#line 18298 "configure"
0470b1e6
VZ
18298#include "confdefs.h"
18299
b4085ce6 18300 #include <time.h>
698dcdb6
VZ
18301
18302int main() {
0470b1e6
VZ
18303
18304 struct tm tm;
18305 tm.tm_gmtoff++;
698dcdb6
VZ
18306
18307; return 0; }
18308EOF
cb61c62d 18309if { (eval echo configure:18310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18310 rm -rf conftest*
18311
f03a98d8 18312 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18313
0470b1e6 18314else
698dcdb6
VZ
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 wx_cv_struct_tm_has_gmtoff=no
18319
0470b1e6 18320fi
698dcdb6
VZ
18321rm -f conftest*
18322
1e487827 18323fi
698dcdb6
VZ
18324
18325echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18326 fi
18327
18328 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18329 cat >> confdefs.h <<\EOF
6232543b
VS
18330#define WX_GMTOFF_IN_TM 1
18331EOF
0470b1e6 18332
3fcdd07b
VZ
18333 fi
18334
698dcdb6 18335 for ac_func in gettimeofday ftime
3fcdd07b 18336do
698dcdb6 18337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 18338echo "configure:18339: checking for $ac_func" >&5
698dcdb6
VZ
18339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18340 echo $ac_n "(cached) $ac_c" 1>&6
18341else
18342 cat > conftest.$ac_ext <<EOF
cb61c62d 18343#line 18344 "configure"
3fcdd07b
VZ
18344#include "confdefs.h"
18345/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18346 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18347#include <assert.h>
18348/* Override any gcc2 internal prototype to avoid an error. */
18349/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18350 builtin and then its argument prototype would still apply. */
18351char $ac_func();
18352
18353int main() {
3fcdd07b
VZ
18354
18355/* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18359choke me
18360#else
698dcdb6 18361$ac_func();
3fcdd07b
VZ
18362#endif
18363
698dcdb6
VZ
18364; return 0; }
18365EOF
cb61c62d 18366if { (eval echo configure:18367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18367 rm -rf conftest*
18368 eval "ac_cv_func_$ac_func=yes"
18369else
18370 echo "configure: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 rm -rf conftest*
18373 eval "ac_cv_func_$ac_func=no"
18374fi
18375rm -f conftest*
18376fi
18377
18378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18379 echo "$ac_t""yes" 1>&6
18380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18381 cat >> confdefs.h <<EOF
18382#define $ac_tr_func 1
3fcdd07b
VZ
18383EOF
18384 break
698dcdb6
VZ
18385else
18386 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18387fi
18388done
18389
afc31813 18390
698dcdb6
VZ
18391 if test "$ac_cv_func_gettimeofday" = "yes"; then
18392 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
cb61c62d 18393echo "configure:18394: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18394if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18396else
18397
18398
18399 ac_ext=C
18400# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18401ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18402ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18403ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18404cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18405
698dcdb6
VZ
18406
18407 cat > conftest.$ac_ext <<EOF
cb61c62d 18408#line 18409 "configure"
10f2d63a 18409#include "confdefs.h"
afc31813
VZ
18410
18411 #include <sys/time.h>
18412 #include <unistd.h>
698dcdb6
VZ
18413
18414int main() {
afc31813
VZ
18415
18416 struct timeval tv;
776862b4 18417 gettimeofday(&tv, NULL);
698dcdb6
VZ
18418
18419; return 0; }
18420EOF
cb61c62d 18421if { (eval echo configure:18422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18422 rm -rf conftest*
afc31813 18423 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18424else
698dcdb6
VZ
18425 echo "configure: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 rm -rf conftest*
18428 cat > conftest.$ac_ext <<EOF
cb61c62d 18429#line 18430 "configure"
10f2d63a 18430#include "confdefs.h"
afc31813
VZ
18431
18432 #include <sys/time.h>
18433 #include <unistd.h>
698dcdb6
VZ
18434
18435int main() {
afc31813
VZ
18436
18437 struct timeval tv;
18438 gettimeofday(&tv);
698dcdb6
VZ
18439
18440; return 0; }
18441EOF
cb61c62d 18442if { (eval echo configure:18443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18443 rm -rf conftest*
afc31813 18444 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18445else
698dcdb6
VZ
18446 echo "configure: failed program was:" >&5
18447 cat conftest.$ac_ext >&5
18448 rm -rf conftest*
776862b4
VZ
18449
18450 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18451 wx_cv_func_gettimeofday_has_2_args=unknown
18452
698dcdb6 18453
10f2d63a 18454fi
698dcdb6
VZ
18455rm -f conftest*
18456
10f2d63a 18457fi
698dcdb6 18458rm -f conftest*
afc31813 18459 ac_ext=c
698dcdb6 18460# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18461ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18462ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18463ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18464cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18465
698dcdb6 18466
afc31813 18467fi
698dcdb6
VZ
18468
18469echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18470
afc31813 18471 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18472 cat >> confdefs.h <<\EOF
afc31813
VZ
18473#define WX_GETTIMEOFDAY_NO_TZ 1
18474EOF
18475
18476 fi
18477 fi
18478
698dcdb6 18479 cat >> confdefs.h <<\EOF
afc31813
VZ
18480#define wxUSE_TIMEDATE 1
18481EOF
18482
18483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18484fi
18485
698dcdb6 18486
b089607b
VZ
18487if test "$TOOLKIT" != "MSW"; then
18488
3a922bb4
RL
18489 if test "$wxUSE_SOCKETS" = "yes"; then
18490 echo $ac_n "checking for socket""... $ac_c" 1>&6
cb61c62d 18491echo "configure:18492: checking for socket" >&5
698dcdb6
VZ
18492if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18493 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18494else
698dcdb6 18495 cat > conftest.$ac_ext <<EOF
cb61c62d 18496#line 18497 "configure"
c63c7106
VZ
18497#include "confdefs.h"
18498/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18499 which can conflict with char socket(); below. */
c63c7106
VZ
18500#include <assert.h>
18501/* Override any gcc2 internal prototype to avoid an error. */
18502/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18503 builtin and then its argument prototype would still apply. */
18504char socket();
18505
18506int main() {
c63c7106
VZ
18507
18508/* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511#if defined (__stub_socket) || defined (__stub___socket)
18512choke me
18513#else
698dcdb6 18514socket();
c63c7106
VZ
18515#endif
18516
698dcdb6
VZ
18517; return 0; }
18518EOF
cb61c62d 18519if { (eval echo configure:18520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18520 rm -rf conftest*
18521 eval "ac_cv_func_socket=yes"
18522else
18523 echo "configure: failed program was:" >&5
18524 cat conftest.$ac_ext >&5
18525 rm -rf conftest*
18526 eval "ac_cv_func_socket=no"
18527fi
18528rm -f conftest*
18529fi
18530
18531if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18532 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18533 :
18534else
698dcdb6
VZ
18535 echo "$ac_t""no" 1>&6
18536echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
cb61c62d 18537echo "configure:18538: checking for socket in -lsocket" >&5
698dcdb6
VZ
18538ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18539if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18540 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18541else
698dcdb6 18542 ac_save_LIBS="$LIBS"
c63c7106 18543LIBS="-lsocket $LIBS"
698dcdb6 18544cat > conftest.$ac_ext <<EOF
cb61c62d 18545#line 18546 "configure"
c63c7106
VZ
18546#include "confdefs.h"
18547/* Override any gcc2 internal prototype to avoid an error. */
18548/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18549 builtin and then its argument prototype would still apply. */
18550char socket();
18551
18552int main() {
18553socket()
18554; return 0; }
18555EOF
cb61c62d 18556if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18557 rm -rf conftest*
18558 eval "ac_cv_lib_$ac_lib_var=yes"
18559else
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18562 rm -rf conftest*
18563 eval "ac_cv_lib_$ac_lib_var=no"
18564fi
18565rm -f conftest*
18566LIBS="$ac_save_LIBS"
18567
18568fi
18569if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18570 echo "$ac_t""yes" 1>&6
c63c7106 18571 INET_LINK="$INET_LINK -lsocket"
c63c7106 18572else
698dcdb6 18573 echo "$ac_t""no" 1>&6
afc31813 18574
3a922bb4
RL
18575 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18576 wxUSE_SOCKETS=no
18577
698dcdb6 18578
6232543b 18579fi
b089607b 18580
3a922bb4 18581
1e487827 18582fi
afc31813 18583
3a922bb4 18584 fi
51a9faba 18585
3a922bb4
RL
18586
18587 if test "$wxUSE_SOCKETS" = "yes" ; then
18588 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
cb61c62d 18589echo "configure:18590: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18590if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18591 echo $ac_n "(cached) $ac_c" 1>&6
18592else
18593
3a922bb4
RL
18594
18595 ac_ext=C
698dcdb6 18596# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18597ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18598ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18599ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18600cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18601
698dcdb6 18602
3a922bb4 18603 cat > conftest.$ac_ext <<EOF
cb61c62d 18604#line 18605 "configure"
afc31813 18605#include "confdefs.h"
51a9faba 18606
3a922bb4
RL
18607 #include <sys/types.h>
18608 #include <sys/socket.h>
18609
698dcdb6 18610int main() {
51a9faba 18611
3a922bb4
RL
18612 socklen_t len;
18613 getsockname(0, 0, &len);
18614
698dcdb6
VZ
18615; return 0; }
18616EOF
cb61c62d 18617if { (eval echo configure:18618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18618 rm -rf conftest*
51a9faba 18619 wx_cv_type_getsockname3=socklen_t
afc31813 18620else
698dcdb6
VZ
18621 echo "configure: failed program was:" >&5
18622 cat conftest.$ac_ext >&5
18623 rm -rf conftest*
18624 cat > conftest.$ac_ext <<EOF
cb61c62d 18625#line 18626 "configure"
afc31813 18626#include "confdefs.h"
51a9faba 18627
3a922bb4
RL
18628 #include <sys/types.h>
18629 #include <sys/socket.h>
18630
698dcdb6 18631int main() {
51a9faba 18632
3a922bb4
RL
18633 size_t len;
18634 getsockname(0, 0, &len);
18635
698dcdb6
VZ
18636; return 0; }
18637EOF
cb61c62d 18638if { (eval echo configure:18639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18639 rm -rf conftest*
51a9faba 18640 wx_cv_type_getsockname3=size_t
afc31813 18641else
698dcdb6
VZ
18642 echo "configure: failed program was:" >&5
18643 cat conftest.$ac_ext >&5
18644 rm -rf conftest*
18645 cat > conftest.$ac_ext <<EOF
cb61c62d 18646#line 18647 "configure"
afc31813 18647#include "confdefs.h"
51a9faba 18648
3a922bb4
RL
18649 #include <sys/types.h>
18650 #include <sys/socket.h>
18651
698dcdb6 18652int main() {
51a9faba 18653
3a922bb4
RL
18654 int len;
18655 getsockname(0, 0, &len);
18656
698dcdb6
VZ
18657; return 0; }
18658EOF
cb61c62d 18659if { (eval echo configure:18660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18660 rm -rf conftest*
51a9faba 18661 wx_cv_type_getsockname3=int
afc31813 18662else
698dcdb6
VZ
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 rm -rf conftest*
18666 wx_cv_type_getsockname3=unknown
3a922bb4 18667
afc31813 18668fi
698dcdb6 18669rm -f conftest*
3a922bb4 18670
afc31813 18671fi
698dcdb6 18672rm -f conftest*
3a922bb4 18673
afc31813 18674fi
698dcdb6 18675rm -f conftest*
51a9faba 18676
3a922bb4 18677 ac_ext=c
698dcdb6 18678# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18679ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18680ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18681ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18682cross_compiling=$ac_cv_prog_cc_cross
afc31813 18683
3a922bb4 18684
51a9faba 18685fi
698dcdb6
VZ
18686
18687echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18688
3a922bb4
RL
18689 if test "$wx_cv_type_getsockname3" = "unknown"; then
18690 wxUSE_SOCKETS=no
18691 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18692 else
18693 cat >> confdefs.h <<EOF
51a9faba
VZ
18694#define SOCKLEN_T $wx_cv_type_getsockname3
18695EOF
18696
3a922bb4 18697 fi
51a9faba
VZ
18698 fi
18699fi
afc31813 18700
51a9faba 18701if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18702 cat >> confdefs.h <<\EOF
afc31813
VZ
18703#define wxUSE_SOCKETS 1
18704EOF
18705
70f7a477 18706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18707fi
18708
698dcdb6 18709
dc3d889d
VZ
18710if test "$wxUSE_GUI" = "yes"; then
18711
156b2523
GD
18712 if test "$TOOLKIT" = "MAC"; then
18713 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18714 wxUSE_JOYSTICK=no
18715 fi
18716 if test "$TOOLKIT" = "MOTIF"; then
18717 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18718 wxUSE_JOYSTICK=no
f79bd02d
JS
18719 fi
18720 if test "$TOOLKIT" = "X11"; then
18721 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18722 wxUSE_JOYSTICK=no
156b2523
GD
18723 fi
18724
3a922bb4
RL
18725 if test "$TOOLKIT" != "MSW"; then
18726 if test "$wxUSE_JOYSTICK" = "yes"; then
18727 for ac_hdr in linux/joystick.h
10f2d63a 18728do
698dcdb6
VZ
18729ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18730echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 18731echo "configure:18732: checking for $ac_hdr" >&5
698dcdb6
VZ
18732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18733 echo $ac_n "(cached) $ac_c" 1>&6
18734else
18735 cat > conftest.$ac_ext <<EOF
cb61c62d 18736#line 18737 "configure"
10f2d63a 18737#include "confdefs.h"
698dcdb6
VZ
18738#include <$ac_hdr>
18739EOF
18740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 18741{ (eval echo configure:18742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18743if test -z "$ac_err"; then
18744 rm -rf conftest*
18745 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18746else
698dcdb6
VZ
18747 echo "$ac_err" >&5
18748 echo "configure: failed program was:" >&5
10f2d63a 18749 cat conftest.$ac_ext >&5
698dcdb6
VZ
18750 rm -rf conftest*
18751 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18752fi
698dcdb6 18753rm -f conftest*
10f2d63a 18754fi
698dcdb6
VZ
18755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18756 echo "$ac_t""yes" 1>&6
18757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18758 cat >> confdefs.h <<EOF
18759#define $ac_tr_hdr 1
10f2d63a 18760EOF
698dcdb6
VZ
18761
18762else
18763 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18764fi
18765done
18766
3a922bb4
RL
18767 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18768 wxUSE_JOYSTICK=no
156b2523 18769 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18770 fi
18771 fi
18772 fi
b089607b 18773
3a922bb4
RL
18774 if test "$wxUSE_JOYSTICK" = "yes"; then
18775 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18776#define wxUSE_JOYSTICK 1
18777EOF
18778
3a922bb4
RL
18779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18780 fi
dc3d889d
VZ
18781fi
18782
698dcdb6 18783
b089607b
VZ
18784if test "$TOOLKIT" != "MSW"; then
18785
3a922bb4
RL
18786 HAVE_DL_FUNCS=0
18787 HAVE_SHL_FUNCS=0
0b9ab0bd 18788 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18789 if test "$USE_DARWIN" = 1; then
18790 HAVE_DL_FUNCS=1
18791 else
18792 for ac_func in dlopen
10f2d63a 18793do
698dcdb6 18794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 18795echo "configure:18796: checking for $ac_func" >&5
698dcdb6
VZ
18796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18797 echo $ac_n "(cached) $ac_c" 1>&6
18798else
18799 cat > conftest.$ac_ext <<EOF
cb61c62d 18800#line 18801 "configure"
10f2d63a
VZ
18801#include "confdefs.h"
18802/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18803 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18804#include <assert.h>
18805/* Override any gcc2 internal prototype to avoid an error. */
18806/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18807 builtin and then its argument prototype would still apply. */
18808char $ac_func();
18809
18810int main() {
10f2d63a
VZ
18811
18812/* The GNU C library defines this for functions which it implements
18813 to always fail with ENOSYS. Some functions are actually named
18814 something starting with __ and the normal name is an alias. */
18815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18816choke me
18817#else
698dcdb6 18818$ac_func();
10f2d63a
VZ
18819#endif
18820
698dcdb6
VZ
18821; return 0; }
18822EOF
cb61c62d 18823if { (eval echo configure:18824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18824 rm -rf conftest*
18825 eval "ac_cv_func_$ac_func=yes"
18826else
18827 echo "configure: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 rm -rf conftest*
18830 eval "ac_cv_func_$ac_func=no"
18831fi
18832rm -f conftest*
18833fi
18834
18835if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18836 echo "$ac_t""yes" 1>&6
18837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18838 cat >> confdefs.h <<EOF
18839#define $ac_tr_func 1
18840EOF
18841
3a922bb4 18842 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18843#define HAVE_DLOPEN 1
18844EOF
18845
3a922bb4
RL
18846 HAVE_DL_FUNCS=1
18847
10f2d63a 18848else
698dcdb6
VZ
18849 echo "$ac_t""no" 1>&6
18850echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
cb61c62d 18851echo "configure:18852: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18852ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18854 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18855else
698dcdb6 18856 ac_save_LIBS="$LIBS"
10f2d63a 18857LIBS="-ldl $LIBS"
698dcdb6 18858cat > conftest.$ac_ext <<EOF
cb61c62d 18859#line 18860 "configure"
10f2d63a
VZ
18860#include "confdefs.h"
18861/* Override any gcc2 internal prototype to avoid an error. */
18862/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18863 builtin and then its argument prototype would still apply. */
18864char dlopen();
18865
18866int main() {
18867dlopen()
18868; return 0; }
18869EOF
cb61c62d 18870if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18871 rm -rf conftest*
18872 eval "ac_cv_lib_$ac_lib_var=yes"
18873else
18874 echo "configure: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18876 rm -rf conftest*
18877 eval "ac_cv_lib_$ac_lib_var=no"
18878fi
18879rm -f conftest*
18880LIBS="$ac_save_LIBS"
18881
18882fi
18883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18884 echo "$ac_t""yes" 1>&6
18885
3a922bb4 18886 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18887#define HAVE_DLOPEN 1
18888EOF
18889
3a922bb4 18890 HAVE_DL_FUNCS=1
3d63bc3a 18891 DL_LINK=" -ldl$DL_LINK"
3a922bb4 18892
10f2d63a 18893else
698dcdb6 18894 echo "$ac_t""no" 1>&6
10f2d63a 18895
3a922bb4 18896 for ac_func in shl_load
10f2d63a 18897do
698dcdb6 18898echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 18899echo "configure:18900: checking for $ac_func" >&5
698dcdb6
VZ
18900if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18902else
18903 cat > conftest.$ac_ext <<EOF
cb61c62d 18904#line 18905 "configure"
10f2d63a
VZ
18905#include "confdefs.h"
18906/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18907 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18908#include <assert.h>
18909/* Override any gcc2 internal prototype to avoid an error. */
18910/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18911 builtin and then its argument prototype would still apply. */
18912char $ac_func();
18913
18914int main() {
10f2d63a
VZ
18915
18916/* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18920choke me
18921#else
698dcdb6 18922$ac_func();
10f2d63a
VZ
18923#endif
18924
698dcdb6
VZ
18925; return 0; }
18926EOF
cb61c62d 18927if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18928 rm -rf conftest*
18929 eval "ac_cv_func_$ac_func=yes"
18930else
18931 echo "configure: failed program was:" >&5
18932 cat conftest.$ac_ext >&5
18933 rm -rf conftest*
18934 eval "ac_cv_func_$ac_func=no"
18935fi
18936rm -f conftest*
18937fi
18938
18939if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18940 echo "$ac_t""yes" 1>&6
18941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18942 cat >> confdefs.h <<EOF
18943#define $ac_tr_func 1
18944EOF
18945
3a922bb4 18946 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18947#define HAVE_SHL_LOAD 1
18948EOF
18949
3a922bb4
RL
18950 HAVE_SHL_FUNCS=1
18951
10f2d63a 18952else
698dcdb6
VZ
18953 echo "$ac_t""no" 1>&6
18954echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
cb61c62d 18955echo "configure:18956: checking for dld in -lshl_load" >&5
698dcdb6
VZ
18956ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18959else
698dcdb6 18960 ac_save_LIBS="$LIBS"
f6bcfd97 18961LIBS="-lshl_load $LIBS"
698dcdb6 18962cat > conftest.$ac_ext <<EOF
cb61c62d 18963#line 18964 "configure"
f6bcfd97
BP
18964#include "confdefs.h"
18965/* Override any gcc2 internal prototype to avoid an error. */
18966/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18967 builtin and then its argument prototype would still apply. */
18968char dld();
18969
18970int main() {
18971dld()
18972; return 0; }
18973EOF
cb61c62d 18974if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18975 rm -rf conftest*
18976 eval "ac_cv_lib_$ac_lib_var=yes"
18977else
18978 echo "configure: failed program was:" >&5
18979 cat conftest.$ac_ext >&5
18980 rm -rf conftest*
18981 eval "ac_cv_lib_$ac_lib_var=no"
18982fi
18983rm -f conftest*
18984LIBS="$ac_save_LIBS"
f6bcfd97 18985
698dcdb6
VZ
18986fi
18987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18988 echo "$ac_t""yes" 1>&6
18989
3a922bb4 18990 HAVE_SHL_FUNCS=1
3d63bc3a 18991 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18992
698dcdb6
VZ
18993else
18994 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18995fi
18996
3a922bb4 18997
10f2d63a
VZ
18998fi
18999done
19000
3a922bb4 19001
10f2d63a
VZ
19002fi
19003
3a922bb4 19004
10f2d63a
VZ
19005fi
19006done
19007
1e487827 19008
3a922bb4
RL
19009 if test "$HAVE_DL_FUNCS" = 1; then
19010 for ac_func in dlerror
f6bcfd97 19011do
698dcdb6 19012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cb61c62d 19013echo "configure:19014: checking for $ac_func" >&5
698dcdb6
VZ
19014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19015 echo $ac_n "(cached) $ac_c" 1>&6
19016else
19017 cat > conftest.$ac_ext <<EOF
cb61c62d 19018#line 19019 "configure"
f6bcfd97
BP
19019#include "confdefs.h"
19020/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19021 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19022#include <assert.h>
19023/* Override any gcc2 internal prototype to avoid an error. */
19024/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19025 builtin and then its argument prototype would still apply. */
19026char $ac_func();
19027
19028int main() {
f6bcfd97
BP
19029
19030/* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19034choke me
19035#else
698dcdb6 19036$ac_func();
f6bcfd97
BP
19037#endif
19038
698dcdb6
VZ
19039; return 0; }
19040EOF
cb61c62d 19041if { (eval echo configure:19042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19042 rm -rf conftest*
19043 eval "ac_cv_func_$ac_func=yes"
19044else
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19047 rm -rf conftest*
19048 eval "ac_cv_func_$ac_func=no"
19049fi
19050rm -f conftest*
19051fi
19052
19053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19054 echo "$ac_t""yes" 1>&6
19055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19056 cat >> confdefs.h <<EOF
19057#define $ac_tr_func 1
19058EOF
19059 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19060#define HAVE_DLERROR 1
19061EOF
19062
19063else
698dcdb6
VZ
19064 echo "$ac_t""no" 1>&6
19065echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
cb61c62d 19066echo "configure:19067: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19067ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19068if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19069 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19070else
698dcdb6 19071 ac_save_LIBS="$LIBS"
f6bcfd97 19072LIBS="-ldl $LIBS"
698dcdb6 19073cat > conftest.$ac_ext <<EOF
cb61c62d 19074#line 19075 "configure"
f6bcfd97
BP
19075#include "confdefs.h"
19076/* Override any gcc2 internal prototype to avoid an error. */
19077/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19078 builtin and then its argument prototype would still apply. */
19079char dlerror();
19080
19081int main() {
19082dlerror()
19083; return 0; }
19084EOF
cb61c62d 19085if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19086 rm -rf conftest*
19087 eval "ac_cv_lib_$ac_lib_var=yes"
19088else
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19091 rm -rf conftest*
19092 eval "ac_cv_lib_$ac_lib_var=no"
19093fi
19094rm -f conftest*
19095LIBS="$ac_save_LIBS"
19096
19097fi
19098if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19099 echo "$ac_t""yes" 1>&6
19100 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19101#define HAVE_DLERROR 1
19102EOF
19103
698dcdb6
VZ
19104else
19105 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19106fi
19107
19108fi
19109done
19110
3a922bb4
RL
19111 fi
19112 fi
f6bcfd97 19113
3a922bb4
RL
19114 if test "$HAVE_DL_FUNCS" = 0; then
19115 if test "$HAVE_SHL_FUNCS" = 0; then
19116 if test "$USE_UNIX" = 1; then
19117 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19118 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19119 wxUSE_DYNLIB_CLASS=no
19120 else
19121 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19122 fi
19123 fi
10f2d63a
VZ
19124 fi
19125 fi
19126fi
19127
0b9ab0bd
RL
19128if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19129 cat >> confdefs.h <<\EOF
19130#define wxUSE_DYNAMIC_LOADER 1
19131EOF
19132
19133elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19135#define wxUSE_DYNLIB_CLASS 1
19136EOF
19137
19138fi
19139
698dcdb6 19140
1e6feb95
VZ
19141if test "$wxUSE_FONTMAP" = "yes" ; then
19142 cat >> confdefs.h <<\EOF
19143#define wxUSE_FONTMAP 1
19144EOF
19145
19146fi
19147
10f2d63a 19148if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19150#define wxUSE_UNICODE 1
19151EOF
19152
a72a4bfa
VS
19153
19154 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19155 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
cb61c62d 19156echo "configure:19157: checking for main in -lunicows" >&5
a72a4bfa
VS
19157ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19160else
19161 ac_save_LIBS="$LIBS"
19162LIBS="-lunicows $LIBS"
19163cat > conftest.$ac_ext <<EOF
cb61c62d 19164#line 19165 "configure"
a72a4bfa
VS
19165#include "confdefs.h"
19166
19167int main() {
19168main()
19169; return 0; }
19170EOF
cb61c62d 19171if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19172 rm -rf conftest*
19173 eval "ac_cv_lib_$ac_lib_var=yes"
19174else
19175 echo "configure: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19177 rm -rf conftest*
19178 eval "ac_cv_lib_$ac_lib_var=no"
19179fi
19180rm -f conftest*
19181LIBS="$ac_save_LIBS"
19182
19183fi
19184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19185 echo "$ac_t""yes" 1>&6
19186
19187 cat >> confdefs.h <<\EOF
19188#define wxUSE_UNICODE_MSLU 1
19189EOF
19190
19191
19192else
19193 echo "$ac_t""no" 1>&6
19194
19195 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19196 Applications will only run on Windows NT/2000/XP!" 1>&2
19197 wxUSE_UNICODE_MSLU=no
19198
19199fi
19200
19201 fi
10f2d63a
VZ
19202fi
19203
10f2d63a 19204if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19206#define wxUSE_EXPERIMENTAL_PRINTF 1
19207EOF
19208
19209fi
19210
698dcdb6 19211
698dcdb6 19212
10f2d63a
VZ
19213IODBC_C_SRC=""
19214if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19216#define wxUSE_ODBC 1
19217EOF
19218
19219 WXODBCFLAG="-D_IODBC_"
19220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19221fi
19222
698dcdb6 19223
10f2d63a 19224if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19226#define wxUSE_POSTSCRIPT 1
19227EOF
19228
19229fi
19230
698dcdb6 19231cat >> confdefs.h <<\EOF
10f2d63a
VZ
19232#define wxUSE_AFM_FOR_POSTSCRIPT 1
19233EOF
19234
698dcdb6
VZ
19235
19236cat >> confdefs.h <<\EOF
10f2d63a
VZ
19237#define wxUSE_NORMALIZED_PS_FONTS 1
19238EOF
19239
698dcdb6
VZ
19240
19241
10f2d63a 19242if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19244#define wxUSE_CONSTRAINTS 1
19245EOF
19246
19247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19248fi
19249
19250if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19251 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19252 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
19253 wxUSE_MDI_ARCHITECTURE=no
19254 fi
19255
19256 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19258#define wxUSE_MDI_ARCHITECTURE 1
19259EOF
19260
fc26f4ab
RL
19261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19262 fi
10f2d63a
VZ
19263fi
19264
19265if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19267#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19268EOF
19269
19270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19271 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19273 fi
19274fi
19275
19276if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19278#define wxUSE_HELP 1
19279EOF
19280
19281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19282
77e13408 19283 if test "$wxUSE_MSW" = 1; then
031d8228 19284 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
19285 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19286echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
cb61c62d 19287echo "configure:19288: checking for htmlhelp.h" >&5
29fd3c0c
VS
19288if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
19290else
19291 cat > conftest.$ac_ext <<EOF
cb61c62d 19292#line 19293 "configure"
29fd3c0c
VS
19293#include "confdefs.h"
19294#include <htmlhelp.h>
19295EOF
19296ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 19297{ (eval echo configure:19298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
19298ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19299if test -z "$ac_err"; then
19300 rm -rf conftest*
19301 eval "ac_cv_header_$ac_safe=yes"
19302else
19303 echo "$ac_err" >&5
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 rm -rf conftest*
19307 eval "ac_cv_header_$ac_safe=no"
19308fi
19309rm -f conftest*
19310fi
19311if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19312 echo "$ac_t""yes" 1>&6
19313
19314 cat >> confdefs.h <<\EOF
19315#define wxUSE_MS_HTML_HELP 1
19316EOF
19317
19318
19319else
19320 echo "$ac_t""no" 1>&6
19321
fc26f4ab 19322 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
19323 wxUSE_MS_HTML_HELP=no
19324
19325fi
19326
3e44f09d 19327 fi
3379ed37 19328 fi
031d8228
VS
19329
19330 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19331 if test "$wxUSE_HTML" = "yes"; then
19332 cat >> confdefs.h <<\EOF
19333#define wxUSE_WXHTML_HELP 1
19334EOF
19335
19336 else
19337 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19338 wxUSE_WXHTML_HELP=no
19339 fi
19340 fi
10f2d63a
VZ
19341fi
19342
19343if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19344 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19345 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19346 else
698dcdb6 19347 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19348#define wxUSE_PRINTING_ARCHITECTURE 1
19349EOF
19350
19351 fi
19352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19353fi
19354
19355if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19356 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19357#define wxUSE_PROLOGIO 1
19358EOF
19359
19360fi
19361
19362if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 19363 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19364#define wxUSE_RESOURCES 1
19365EOF
19366
3379ed37 19367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
19368fi
19369
19370if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19371 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19372#define wxUSE_X_RESOURCES 1
19373EOF
19374
19375fi
19376
698dcdb6 19377
77e13408
RL
19378if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19379 -o "$wxUSE_CLIPBOARD" = "yes" \
19380 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19381 for ac_hdr in ole2.h
10f2d63a 19382do
698dcdb6
VZ
19383ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19384echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cb61c62d 19385echo "configure:19386: checking for $ac_hdr" >&5
698dcdb6
VZ
19386if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19387 echo $ac_n "(cached) $ac_c" 1>&6
19388else
19389 cat > conftest.$ac_ext <<EOF
cb61c62d 19390#line 19391 "configure"
10f2d63a 19391#include "confdefs.h"
698dcdb6
VZ
19392#include <$ac_hdr>
19393EOF
19394ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cb61c62d 19395{ (eval echo configure:19396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19396ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19397if test -z "$ac_err"; then
19398 rm -rf conftest*
19399 eval "ac_cv_header_$ac_safe=yes"
1e487827 19400else
698dcdb6
VZ
19401 echo "$ac_err" >&5
19402 echo "configure: failed program was:" >&5
10f2d63a 19403 cat conftest.$ac_ext >&5
698dcdb6
VZ
19404 rm -rf conftest*
19405 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19406fi
698dcdb6 19407rm -f conftest*
10f2d63a 19408fi
698dcdb6
VZ
19409if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19412 cat >> confdefs.h <<EOF
19413#define $ac_tr_hdr 1
10f2d63a 19414EOF
698dcdb6
VZ
19415
19416else
19417 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19418fi
19419done
19420
698dcdb6 19421
2b9bdf71
VZ
19422 if test "$ac_cv_header_ole2_h" = "yes" ; then
19423 if test "$GCC" = yes ; then
19424 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19425 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19426 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19427 cat >> confdefs.h <<\EOF
4f11a343
VS
19428#define wxUSE_OLE 1
19429EOF
19430
b64f0a5f 19431
2b9bdf71
VZ
19432 fi
19433
19434 cat >> confdefs.h <<\EOF
19435#define wxUSE_DATAOBJ 1
19436EOF
19437
19438 else
19439 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19440
19441 wxUSE_CLIPBOARD=no
19442 wxUSE_DRAG_AND_DROP=no
19443 wxUSE_DATAOBJ=no
19444 fi
19445
77e13408 19446 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19447 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19448#define wxUSE_METAFILE 1
19449EOF
19450
2b9bdf71
VZ
19451
19452 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19453#define wxUSE_ENH_METAFILE 1
19454EOF
19455
2b9bdf71
VZ
19456 fi
19457fi
19458
19459if test "$wxUSE_IPC" = "yes"; then
19460 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19461 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19462 fi
19463
19464 cat >> confdefs.h <<\EOF
19465#define wxUSE_IPC 1
19466EOF
19467
19468fi
19469
19470if test "$wxUSE_CLIPBOARD" = "yes"; then
178572bb
RR
19471 if test "$wxUSE_X11" = 1; then
19472 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19473 wxUSE_CLIPBOARD=no
19474 fi
19475
19476 if test "$wxUSE_CLIPBOARD" = "yes"; then
19477 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19478#define wxUSE_CLIPBOARD 1
19479EOF
19480
673f4220 19481
178572bb 19482 cat >> confdefs.h <<\EOF
673f4220
VZ
19483#define wxUSE_DATAOBJ 1
19484EOF
19485
178572bb 19486 fi
2b9bdf71
VZ
19487fi
19488
19489if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19490 if test "$wxUSE_GTK" = 1; then
19491 if test "$WXGTK12" != 1; then
156b2523 19492 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19493 wxUSE_DRAG_AND_DROP=no
19494 fi
19495 fi
19496
2b9bdf71 19497 if test "$wxUSE_MOTIF" = 1; then
156b2523 19498 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19499 wxUSE_DRAG_AND_DROP=no
19500 fi
19501
f79bd02d
JS
19502 if test "$wxUSE_X11" = 1; then
19503 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19504 wxUSE_DRAG_AND_DROP=no
19505 fi
19506
10f2d63a 19507 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19508 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19509#define wxUSE_DRAG_AND_DROP 1
19510EOF
19511
19512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19513 fi
19514
19515fi
19516
19517if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19518 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19519#define wxUSE_SPLINES 1
19520EOF
19521
19522fi
19523
698dcdb6 19524
1e6feb95
VZ
19525USES_CONTROLS=0
19526if test "$wxUSE_CONTROLS" = "yes"; then
19527 USES_CONTROLS=1
19528fi
19529
10f2d63a 19530if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19531 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19532#define wxUSE_ACCEL 1
19533EOF
19534
1e6feb95
VZ
19535 USES_CONTROLS=1
19536fi
19537
19538if test "$wxUSE_BUTTON" = "yes"; then
19539 cat >> confdefs.h <<\EOF
19540#define wxUSE_BUTTON 1
19541EOF
19542
19543 USES_CONTROLS=1
19544fi
19545
19546if test "$wxUSE_BMPBUTTON" = "yes"; then
19547 cat >> confdefs.h <<\EOF
19548#define wxUSE_BMPBUTTON 1
19549EOF
19550
19551 USES_CONTROLS=1
19552fi
19553
19554if test "$wxUSE_CALCTRL" = "yes"; then
19555 cat >> confdefs.h <<\EOF
19556#define wxUSE_CALENDARCTRL 1
19557EOF
19558
19559 USES_CONTROLS=1
19560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19561fi
19562
19563if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19565#define wxUSE_CARET 1
19566EOF
19567
1e6feb95 19568 USES_CONTROLS=1
10f2d63a
VZ
19569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19570fi
19571
19572if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19574#define wxUSE_COMBOBOX 1
19575EOF
19576
1e6feb95 19577 USES_CONTROLS=1
10f2d63a
VZ
19578fi
19579
19580if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19582#define wxUSE_CHOICE 1
19583EOF
19584
1e6feb95 19585 USES_CONTROLS=1
10f2d63a
VZ
19586fi
19587
19588if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19589 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19590#define wxUSE_CHECKBOX 1
19591EOF
19592
1e6feb95 19593 USES_CONTROLS=1
10f2d63a
VZ
19594fi
19595
19596if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19597 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19598#define wxUSE_CHECKLISTBOX 1
19599EOF
19600
1e6feb95 19601 USES_CONTROLS=1
10f2d63a
VZ
19602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19603fi
19604
19605if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19606 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19607#define wxUSE_GAUGE 1
19608EOF
19609
1e6feb95 19610 USES_CONTROLS=1
10f2d63a
VZ
19611fi
19612
d6a55c4b
VZ
19613if test "$wxUSE_NEW_GRID" = "yes"; then
19614 wxUSE_GRID="yes"
698dcdb6 19615 cat >> confdefs.h <<\EOF
d6a55c4b 19616#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19617EOF
19618
1e6feb95 19619 USES_CONTROLS=1
d6a55c4b 19620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19621fi
19622
d6a55c4b 19623if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19624 cat >> confdefs.h <<\EOF
d6a55c4b 19625#define wxUSE_GRID 1
10f2d63a
VZ
19626EOF
19627
1e6feb95 19628 USES_CONTROLS=1
d6a55c4b 19629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19630fi
19631
19632if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19633 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19634#define wxUSE_IMAGLIST 1
19635EOF
19636
19637fi
19638
19639if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19640 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19641#define wxUSE_LISTBOX 1
19642EOF
19643
1e6feb95 19644 USES_CONTROLS=1
10f2d63a
VZ
19645fi
19646
19647if test "$wxUSE_LISTCTRL" = "yes"; then
19648 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19649 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19650#define wxUSE_LISTCTRL 1
19651EOF
19652
1e6feb95 19653 USES_CONTROLS=1
10f2d63a
VZ
19654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19655 else
698dcdb6 19656 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19657 fi
19658fi
19659
19660if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19661 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19662#define wxUSE_NOTEBOOK 1
19663EOF
19664
1e6feb95 19665 USES_CONTROLS=1
10f2d63a
VZ
19666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19667fi
19668
24176f2c
GD
19669if test "$wxUSE_PROPSHEET" = "yes"; then
19670 cat >> confdefs.h <<\EOF
19671#define wxUSE_PROPSHEET 1
19672EOF
19673
19674 USES_CONTROLS=1
19675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19676fi
19677
10f2d63a 19678if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19679 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19680#define wxUSE_RADIOBOX 1
19681EOF
19682
1e6feb95 19683 USES_CONTROLS=1
10f2d63a
VZ
19684fi
19685
19686if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19688#define wxUSE_RADIOBTN 1
19689EOF
19690
1e6feb95 19691 USES_CONTROLS=1
10f2d63a
VZ
19692fi
19693
19694if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19696#define wxUSE_SASH 1
19697EOF
19698
19699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19700fi
19701
19702if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19703 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19704#define wxUSE_SCROLLBAR 1
19705EOF
19706
1e6feb95 19707 USES_CONTROLS=1
741a9306 19708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19709fi
19710
19711if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19712 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19713#define wxUSE_SLIDER 1
19714EOF
19715
1e6feb95 19716 USES_CONTROLS=1
10f2d63a
VZ
19717fi
19718
19719if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19720 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19721#define wxUSE_SPINBTN 1
19722EOF
19723
1e6feb95 19724 USES_CONTROLS=1
10f2d63a
VZ
19725fi
19726
56cfaa52 19727if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19728 cat >> confdefs.h <<\EOF
56cfaa52
RR
19729#define wxUSE_SPINCTRL 1
19730EOF
19731
1e6feb95 19732 USES_CONTROLS=1
56cfaa52
RR
19733fi
19734
10f2d63a 19735if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19737#define wxUSE_SPLITTER 1
19738EOF
19739
19740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19741fi
19742
19743if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19744 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19745#define wxUSE_STATBMP 1
19746EOF
19747
1e6feb95 19748 USES_CONTROLS=1
10f2d63a
VZ
19749fi
19750
19751if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19752 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19753#define wxUSE_STATBOX 1
19754EOF
19755
1e6feb95
VZ
19756 USES_CONTROLS=1
19757fi
19758
19759if test "$wxUSE_STATTEXT" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761#define wxUSE_STATTEXT 1
19762EOF
19763
19764 USES_CONTROLS=1
10f2d63a
VZ
19765fi
19766
19767if test "$wxUSE_STATLINE" = "yes"; then
19768 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19769 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19770 else
698dcdb6 19771 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19772#define wxUSE_STATLINE 1
19773EOF
19774
1e6feb95 19775 USES_CONTROLS=1
10f2d63a
VZ
19776 fi
19777fi
19778
19779if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19780 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19781#define wxUSE_STATUSBAR 1
19782EOF
19783
1e6feb95 19784 USES_CONTROLS=1
698dcdb6 19785
2286341c 19786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19787fi
19788
19789if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19791#define wxUSE_TAB_DIALOG 1
19792EOF
19793
19794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19795fi
19796
1e6feb95
VZ
19797if test "$wxUSE_TEXTCTRL" = "yes"; then
19798 cat >> confdefs.h <<\EOF
19799#define wxUSE_TEXTCTRL 1
19800EOF
19801
19802 USES_CONTROLS=1
19803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19804fi
19805
1db8dc4a 19806if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19807 if test "$wxUSE_MAC" = 1; then
19808 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19809 wxUSE_TOGGLEBTN=no
19810 fi
19811 if test "$wxUSE_UNIVERSAL" = "yes"; then
19812 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
19813 wxUSE_TOGGLEBTN=no
19814 fi
19815
19816 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19817 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19818#define wxUSE_TOGGLEBTN 1
19819EOF
19820
1e6feb95 19821 USES_CONTROLS=1
a45d7ab7 19822 fi
1db8dc4a
VZ
19823fi
19824
360d6699 19825if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19826 cat >> confdefs.h <<\EOF
360d6699
VZ
19827#define wxUSE_TOOLBAR_SIMPLE 1
19828EOF
19829
19830 wxUSE_TOOLBAR="yes"
1e6feb95 19831 USES_CONTROLS=1
360d6699
VZ
19832fi
19833
10f2d63a 19834if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19836#define wxUSE_TOOLBAR 1
19837EOF
19838
1e6feb95 19839 USES_CONTROLS=1
698dcdb6 19840
360d6699
VZ
19841 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19842 wxUSE_TOOLBAR_NATIVE="yes"
19843 fi
19844
1e6feb95
VZ
19845 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19846 cat >> confdefs.h <<\EOF
360d6699
VZ
19847#define wxUSE_TOOLBAR_NATIVE 1
19848EOF
19849
1e6feb95
VZ
19850 USES_CONTROLS=1
19851 fi
19852
19853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19854fi
19855
10f2d63a
VZ
19856if test "$wxUSE_TOOLTIPS" = "yes"; then
19857 if test "$wxUSE_MOTIF" = 1; then
156b2523 19858 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19859 else
19860 if test "$wxUSE_WINE" = 1; then
156b2523 19861 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19862 else
69d27ff7 19863 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19864 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7 19865 else
178572bb
RR
19866 if test "$wxUSE_X11" = "1"; then
19867 echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2
19868 else
19869 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19870#define wxUSE_TOOLTIPS 1
19871EOF
19872
178572bb 19873 fi
69d27ff7 19874 fi
10f2d63a
VZ
19875 fi
19876 fi
19877fi
19878
19879if test "$wxUSE_TREECTRL" = "yes"; then
19880 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19881 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19882#define wxUSE_TREECTRL 1
19883EOF
19884
1e6feb95 19885 USES_CONTROLS=1
10f2d63a
VZ
19886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19887 else
698dcdb6 19888 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19889 fi
19890fi
19891
9f41d601 19892if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19893 if test "$wxUSE_MAC" = 1; then
156b2523 19894 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19895 else
485cf710
VZ
19896 if test "$wxUSE_MOTIF" = 1; then
19897 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19898 else
19899 cat >> confdefs.h <<\EOF
9f41d601
RR
19900#define wxUSE_POPUPWIN 1
19901EOF
19902
9926e4a4 19903
485cf710
VZ
19904 USES_CONTROLS=1
19905 fi
6abe4b65 19906 fi
9f41d601
RR
19907fi
19908
dd964dcc
VZ
19909if test "$wxUSE_TIPWINDOW" = "yes"; then
19910 cat >> confdefs.h <<\EOF
19911#define wxUSE_TIPWINDOW 1
19912EOF
19913
19914fi
19915
1e6feb95
VZ
19916if test "$USES_CONTROLS" = 1; then
19917 cat >> confdefs.h <<\EOF
19918#define wxUSE_CONTROLS 1
10f2d63a
VZ
19919EOF
19920
10f2d63a
VZ
19921fi
19922
1e6feb95 19923
24176f2c
GD
19924if test "$wxUSE_TREELAYOUT" = "yes"; then
19925 cat >> confdefs.h <<\EOF
19926#define wxUSE_TREELAYOUT 1
19927EOF
19928
19929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19930fi
1e6feb95 19931
24fd6d87
VZ
19932if test "$wxUSE_DRAGIMAGE" = "yes"; then
19933 cat >> confdefs.h <<\EOF
19934#define wxUSE_DRAGIMAGE 1
19935EOF
19936
19937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19938fi
19939
1e6feb95 19940if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 19941 cat >> confdefs.h <<\EOF
1e6feb95 19942#define wxUSE_MENUS 1
10f2d63a
VZ
19943EOF
19944
1e6feb95 19945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
19946fi
19947
1e6feb95
VZ
19948if test "$wxUSE_METAFILE" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950#define wxUSE_METAFILE 1
10f2d63a
VZ
19951EOF
19952
10f2d63a
VZ
19953fi
19954
1e6feb95
VZ
19955if test "$wxUSE_MIMETYPE" = "yes"; then
19956 cat >> confdefs.h <<\EOF
19957#define wxUSE_MIMETYPE 1
10f2d63a
VZ
19958EOF
19959
10f2d63a
VZ
19960fi
19961
3e44f09d
VZ
19962if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_SYSTEM_OPTIONS 1
19965EOF
19966
19967fi
19968
4cdb0ab0 19969if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
19970 if test "$wxUSE_SOCKETS" != "yes"; then
19971 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19972 wxUSE_PROTOCOL=no
19973 fi
19974
19975 if test "$wxUSE_PROTOCOL" = "yes"; then
19976 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19977#define wxUSE_PROTOCOL 1
19978EOF
19979
19980
3954f9ca
VS
19981 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19982 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19983#define wxUSE_PROTOCOL_HTTP 1
19984EOF
19985
3954f9ca
VS
19986 fi
19987 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19988 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19989#define wxUSE_PROTOCOL_FTP 1
19990EOF
19991
3954f9ca
VS
19992 fi
19993 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19994 cat >> confdefs.h <<\EOF
19995#define wxUSE_PROTOCOL_FILE 1
19996EOF
19997
19998 fi
4cdb0ab0 19999 fi
3954f9ca
VS
20000fi
20001
20002if test "$wxUSE_URL" = "yes"; then
20003 if test "$wxUSE_PROTOCOL" != "yes"; then
20004 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20005 wxUSE_URL=no
20006 fi
20007 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20008 cat >> confdefs.h <<\EOF
3954f9ca 20009#define wxUSE_URL 1
4cdb0ab0
VS
20010EOF
20011
20012 fi
20013fi
20014
10f2d63a 20015if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20017#define wxUSE_MINIFRAME 1
20018EOF
20019
20020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20021fi
20022
20023if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20025#define wxUSE_HTML 1
20026EOF
20027
20028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20029fi
20030
20031if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20032 cat >> confdefs.h <<\EOF
1e487827
VS
20033#define wxUSE_VALIDATORS 1
20034EOF
703e0a69 20035
698dcdb6
VZ
20036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20037fi
20038
edae8572
VZ
20039if test "$wxUSE_PALETTE" = "yes" ; then
20040 cat >> confdefs.h <<\EOF
20041#define wxUSE_PALETTE 1
20042EOF
20043
20044fi
20045
698dcdb6
VZ
20046if test "$wxUSE_IMAGE" = "yes" ; then
20047 cat >> confdefs.h <<\EOF
20048#define wxUSE_IMAGE 1
20049EOF
20050
20051fi
20052
20053if test "$wxUSE_GIF" = "yes" ; then
20054 cat >> confdefs.h <<\EOF
20055#define wxUSE_GIF 1
20056EOF
20057
20058fi
20059
20060if test "$wxUSE_PCX" = "yes" ; then
20061 cat >> confdefs.h <<\EOF
20062#define wxUSE_PCX 1
20063EOF
20064
20065fi
20066
4b6b4dfc
RR
20067if test "$wxUSE_IFF" = "yes" ; then
20068 cat >> confdefs.h <<\EOF
20069#define wxUSE_IFF 1
20070EOF
20071
20072fi
20073
698dcdb6
VZ
20074if test "$wxUSE_PNM" = "yes" ; then
20075 cat >> confdefs.h <<\EOF
20076#define wxUSE_PNM 1
20077EOF
20078
20079fi
20080
20081if test "$wxUSE_XPM" = "yes" ; then
20082 cat >> confdefs.h <<\EOF
20083#define wxUSE_XPM 1
20084EOF
20085
20086fi
20087
658974ae
VS
20088if test "$wxUSE_ICO_CUR" = "yes" ; then
20089 cat >> confdefs.h <<\EOF
20090#define wxUSE_ICO_CUR 1
20091EOF
20092
20093fi
20094
a72a4bfa
VS
20095if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20096 LIBS=" -lunicows $LIBS"
20097fi
20098
698dcdb6 20099
1e6feb95
VZ
20100if test "$wxUSE_CHOICEDLG" = "yes"; then
20101 cat >> confdefs.h <<\EOF
20102#define wxUSE_CHOICEDLG 1
20103EOF
20104
20105fi
20106
20107if test "$wxUSE_COLOURDLG" = "yes"; then
20108 cat >> confdefs.h <<\EOF
20109#define wxUSE_COLOURDLG 1
20110EOF
20111
20112fi
20113
20114if test "$wxUSE_FILEDLG" = "yes"; then
20115 cat >> confdefs.h <<\EOF
20116#define wxUSE_FILEDLG 1
20117EOF
20118
20119fi
20120
8db37e06
VZ
20121if test "$wxUSE_FINDREPLDLG" = "yes"; then
20122 cat >> confdefs.h <<\EOF
20123#define wxUSE_FINDREPLDLG 1
20124EOF
20125
20126fi
20127
1e6feb95
VZ
20128if test "$wxUSE_FONTDLG" = "yes"; then
20129 cat >> confdefs.h <<\EOF
20130#define wxUSE_FONTDLG 1
20131EOF
20132
20133fi
20134
20135if test "$wxUSE_DIRDLG" = "yes"; then
20136 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20137 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20138 else
20139 if test "$wxUSE_TREECTRL" != "yes"; then
20140 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20141 else
20142 cat >> confdefs.h <<\EOF
20143#define wxUSE_DIRDLG 1
20144EOF
20145
20146 fi
20147 fi
20148fi
20149
20150if test "$wxUSE_MSGDLG" = "yes"; then
20151 cat >> confdefs.h <<\EOF
20152#define wxUSE_MSGDLG 1
20153EOF
20154
20155fi
20156
20157if test "$wxUSE_NUMBERDLG" = "yes"; then
20158 cat >> confdefs.h <<\EOF
20159#define wxUSE_NUMBERDLG 1
20160EOF
20161
20162fi
20163
20164if test "$wxUSE_PROGRESSDLG" = "yes"; then
20165 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20166 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20167 else
20168 cat >> confdefs.h <<\EOF
20169#define wxUSE_PROGRESSDLG 1
20170EOF
20171
20172 fi
20173fi
20174
cbca9943
VZ
20175if test "$wxUSE_SPLASH" = "yes"; then
20176 cat >> confdefs.h <<\EOF
20177#define wxUSE_SPLASH 1
20178EOF
20179
20180fi
20181
1e6feb95
VZ
20182if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20183 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20184 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20185 else
20186 cat >> confdefs.h <<\EOF
20187#define wxUSE_STARTUP_TIPS 1
20188EOF
20189
20190 fi
20191fi
20192
20193if test "$wxUSE_TEXTDLG" = "yes"; then
20194 cat >> confdefs.h <<\EOF
20195#define wxUSE_TEXTDLG 1
20196EOF
20197
20198fi
20199
b1f5d087
VZ
20200if test "$wxUSE_WIZARDDLG" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202#define wxUSE_WIZARDDLG 1
20203EOF
20204
20205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20206fi
20207
1e6feb95 20208
698dcdb6
VZ
20209if test "$cross_compiling" = "yes"; then
20210 OSINFO="\"$host\""
20211else
20212 OSINFO=`uname -s -r -m`
20213 OSINFO="\"$OSINFO\""
20214fi
20215
20216cat >> confdefs.h <<EOF
20217#define WXWIN_OS_DESCRIPTION $OSINFO
20218EOF
20219
20220
20221
06dda230
VZ
20222if test "x$prefix" != "xNONE"; then
20223 wxPREFIX=$prefix
20224else
20225 wxPREFIX=$ac_default_prefix
20226fi
20227
7e67ed0d 20228cat >> confdefs.h <<EOF
06dda230 20229#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20230EOF
20231
20232
20233
698dcdb6 20234
3a922bb4 20235
f11bdd03 20236if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20237 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20238fi
3a922bb4 20239
3d63bc3a 20240
cb61c62d 20241LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20242
698dcdb6 20243if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20244
cb61c62d 20245 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20246
20247
20248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20249 drawing dynamic erase event exec font image \
20250 minimal richedit rotate widgets"
20251
3a922bb4
RL
20252 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20253else
20254 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20255fi
20256
698dcdb6 20257
d714471b 20258INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
cb61c62d 20259$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 20260
63e7762e 20261if test "$wxUSE_GTK" = 1; then
3d63bc3a 20262 WXCONFIG_INCLUDE=
698dcdb6
VZ
20263else
20264 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20265fi
20266
20267if test "$GXX" = yes ; then
20268 CXXWARNINGS="-Wall"
88e30f2b
RL
20269
20270 if test "$wxUSE_NO_DEPS" = "no" ; then
20271 CFLAGS="-MMD $CFLAGS"
20272 CXXFLAGS="-MMD $CXXFLAGS"
20273 fi
20274fi
20275
1725144d 20276EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20277
20278CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20279CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20280
3d63bc3a 20281LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 20282
698dcdb6
VZ
20283SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
32832908 20351
2f51a9ec
GD
20352
20353
20354
20355
f6bcfd97 20356
dad6c0ea 20357
caa2c79b 20358
3711412e 20359
1e6feb95
VZ
20360
20361
885d4bf5
VS
20362
20363
20364
20365
9b695262
VZ
20366
20367
62d0491b 20368
10f2d63a
VZ
20369
20370
698dcdb6 20371echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
178572bb 20372echo "configure:20373: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20373set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20374if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20376else
698dcdb6 20377 cat > conftestmake <<\EOF
10f2d63a
VZ
20378all:
20379 @echo 'ac_maketemp="${MAKE}"'
20380EOF
20381# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20382eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20383if test -n "$ac_maketemp"; then
20384 eval ac_cv_prog_make_${ac_make}_set=yes
20385else
20386 eval ac_cv_prog_make_${ac_make}_set=no
20387fi
698dcdb6 20388rm -f conftestmake
10f2d63a
VZ
20389fi
20390if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20391 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20392 SET_MAKE=
20393else
698dcdb6 20394 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20395 SET_MAKE="MAKE=${MAKE-make}"
20396fi
20397
698dcdb6 20398
3a922bb4
RL
20399if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20400 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20401fi
665bbe97 20402
698dcdb6 20403
10f2d63a 20404
2224580a 20405if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 20406 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22c3fb2b 20407 wx_cv_if_gnu_make=$IF_GNU_MAKE
e8482f24
GL
20408 wx_cv_path_ifs=$PATH_IFS
20409 wx_cv_program_ext=$PROGRAM_EXT
20410 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 20411 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 20412 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22c3fb2b
VZ
20413 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20414 wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 20415 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 20416 subdirs="demos samples utils contrib"
2224580a
VZ
20417
20418fi
10f2d63a 20419
698dcdb6
VZ
20420trap '' 1 2 15
20421cat > confcache <<\EOF
10f2d63a
VZ
20422# This file is a shell script that caches the results of configure
20423# tests run on this system so they can be shared between configure
698dcdb6
VZ
20424# scripts and configure runs. It is not useful on other systems.
20425# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20426#
698dcdb6
VZ
20427# By default, configure uses ./config.cache as the cache file,
20428# creating it if it does not exist already. You can give configure
20429# the --cache-file=FILE option to use a different cache file; that is
20430# what configure does when it calls configure scripts in
20431# subdirectories, so they share the cache.
20432# Giving --cache-file=/dev/null disables caching, for debugging configure.
20433# config.status only pays attention to the cache file if you give it the
20434# --recheck option to rerun configure.
10f2d63a 20435#
698dcdb6 20436EOF
10f2d63a
VZ
20437# The following way of writing the cache mishandles newlines in values,
20438# but we know of no workaround that is simple, portable, and efficient.
20439# So, don't put newlines in cache variables' values.
20440# Ultrix sh set writes to stderr and can't be redirected directly,
20441# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20442(set) 2>&1 |
20443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20444 *ac_space=\ *)
20445 # `set' does not quote correctly, so add quotes (double-quote substitution
20446 # turns \\\\ into \\, and sed turns \\ into \).
20447 sed -n \
20448 -e "s/'/'\\\\''/g" \
20449 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20450 ;;
20451 *)
20452 # `set' quotes correctly as required by POSIX, so do not add quotes.
20453 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20454 ;;
20455 esac >> confcache
20456if cmp -s $cache_file confcache; then
20457 :
20458else
10f2d63a 20459 if test -w $cache_file; then
698dcdb6
VZ
20460 echo "updating cache $cache_file"
20461 cat confcache > $cache_file
10f2d63a
VZ
20462 else
20463 echo "not updating unwritable cache $cache_file"
20464 fi
20465fi
20466rm -f confcache
20467
698dcdb6
VZ
20468trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20469
10f2d63a
VZ
20470test "x$prefix" = xNONE && prefix=$ac_default_prefix
20471# Let make expand exec_prefix.
20472test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20473
698dcdb6
VZ
20474# Any assignment to VPATH causes Sun make to only execute
20475# the first set of double-colon rules, so remove it if not needed.
20476# If there is a colon in the path, we need to keep it.
10f2d63a 20477if test "x$srcdir" = x.; then
698dcdb6 20478 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20479fi
20480
698dcdb6
VZ
20481trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20482
10f2d63a
VZ
20483DEFS=-DHAVE_CONFIG_H
20484
698dcdb6 20485# Without the "./", some shells look in PATH for config.status.
10f2d63a 20486: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20487
20488echo creating $CONFIG_STATUS
20489rm -f $CONFIG_STATUS
20490cat > $CONFIG_STATUS <<EOF
20491#! /bin/sh
10f2d63a
VZ
20492# Generated automatically by configure.
20493# Run this file to recreate the current configuration.
698dcdb6
VZ
20494# This directory was configured as follows,
20495# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20496#
20497# $0 $ac_configure_args
20498#
10f2d63a 20499# Compiler output produced by configure, useful for debugging
698dcdb6 20500# configure, is in ./config.log if it exists.
1e487827 20501
698dcdb6
VZ
20502ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20503for ac_option
10f2d63a 20504do
698dcdb6 20505 case "\$ac_option" in
10f2d63a 20506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20507 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20508 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20509 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20510 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20511 exit 0 ;;
20512 -help | --help | --hel | --he | --h)
20513 echo "\$ac_cs_usage"; exit 0 ;;
20514 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20515 esac
20516done
20517
698dcdb6
VZ
20518ac_given_srcdir=$srcdir
20519ac_given_INSTALL="$INSTALL"
703e0a69 20520
698dcdb6
VZ
20521trap 'rm -fr `echo "
20522 wx-config
20523 src/make.env
20524 src/makeprog.env
20525 src/makelib.env
20526 Makefile
20527 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20528EOF
698dcdb6 20529cat >> $CONFIG_STATUS <<EOF
1e487827 20530
698dcdb6
VZ
20531# Protect against being on the right side of a sed subst in config.status.
20532sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20533 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20534$ac_vpsub
20535$extrasub
20536s%@SHELL@%$SHELL%g
20537s%@CFLAGS@%$CFLAGS%g
20538s%@CPPFLAGS@%$CPPFLAGS%g
20539s%@CXXFLAGS@%$CXXFLAGS%g
20540s%@FFLAGS@%$FFLAGS%g
20541s%@DEFS@%$DEFS%g
20542s%@LDFLAGS@%$LDFLAGS%g
20543s%@LIBS@%$LIBS%g
20544s%@exec_prefix@%$exec_prefix%g
20545s%@prefix@%$prefix%g
20546s%@program_transform_name@%$program_transform_name%g
20547s%@bindir@%$bindir%g
20548s%@sbindir@%$sbindir%g
20549s%@libexecdir@%$libexecdir%g
20550s%@datadir@%$datadir%g
20551s%@sysconfdir@%$sysconfdir%g
20552s%@sharedstatedir@%$sharedstatedir%g
20553s%@localstatedir@%$localstatedir%g
20554s%@libdir@%$libdir%g
20555s%@includedir@%$includedir%g
20556s%@oldincludedir@%$oldincludedir%g
20557s%@infodir@%$infodir%g
20558s%@mandir@%$mandir%g
20559s%@host@%$host%g
20560s%@host_alias@%$host_alias%g
20561s%@host_cpu@%$host_cpu%g
20562s%@host_vendor@%$host_vendor%g
20563s%@host_os@%$host_os%g
20564s%@target@%$target%g
20565s%@target_alias@%$target_alias%g
20566s%@target_cpu@%$target_cpu%g
20567s%@target_vendor@%$target_vendor%g
20568s%@target_os@%$target_os%g
20569s%@build@%$build%g
20570s%@build_alias@%$build_alias%g
20571s%@build_cpu@%$build_cpu%g
20572s%@build_vendor@%$build_vendor%g
20573s%@build_os@%$build_os%g
20574s%@CC@%$CC%g
20575s%@CPP@%$CPP%g
20576s%@CXX@%$CXX%g
698dcdb6
VZ
20577s%@RANLIB@%$RANLIB%g
20578s%@AR@%$AR%g
20579s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20580s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20581s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20582s%@STRIP@%$STRIP%g
613d0995 20583s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20584s%@YACC@%$YACC%g
20585s%@LEX@%$LEX%g
20586s%@LEXLIB@%$LEXLIB%g
20587s%@LN_S@%$LN_S%g
20588s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
20589s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20590s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20591s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20592s%@X_CFLAGS@%$X_CFLAGS%g
20593s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20594s%@X_LIBS@%$X_LIBS%g
20595s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 20596s%@RESCOMP@%$RESCOMP%g
698dcdb6 20597s%@DEREZ@%$DEREZ%g
3a922bb4 20598s%@CXXCPP@%$CXXCPP%g
b040e242 20599s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20600s%@LEX_STEM@%$LEX_STEM%g
20601s%@PATH_IFS@%$PATH_IFS%g
20602s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20603s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20604s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20605s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20606s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20607s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20608s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20609s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20610s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20611s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20612s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20613s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20614s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20615s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20616s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20617s%@WX_ALL@%$WX_ALL%g
20618s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20619s%@SHARED_LD@%$SHARED_LD%g
20620s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20621s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20622s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20623s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20624s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20625s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20626s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20627s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20628s%@USE_GUI@%$USE_GUI%g
20629s%@AFMINSTALL@%$AFMINSTALL%g
20630s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20631s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20632s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20633s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20634s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20635s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20636s%@cross_compiling@%$cross_compiling%g
20637s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20638s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20639s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20640s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20641s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20642s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20643s%@ALL_HEADERS@%$ALL_HEADERS%g
20644s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20645s%@GUIDIST@%$GUIDIST%g
20646s%@PORT_FILES@%$PORT_FILES%g
20647s%@DISTDIR@%$DISTDIR%g
698dcdb6 20648s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20649s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 20650s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20651s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20652s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20653s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20654s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 20655s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 20656s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
20657s%@LIBWXMACRES@%$LIBWXMACRES%g
20658s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20659s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20660s%@DLLTOOL@%$DLLTOOL%g
20661s%@AS@%$AS%g
20662s%@NM@%$NM%g
20663s%@LD@%$LD%g
20664s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20665s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20666s%@SET_MAKE@%$SET_MAKE%g
20667s%@subdirs@%$subdirs%g
1e487827 20668
1e487827 20669CEOF
1e487827
VS
20670EOF
20671
698dcdb6
VZ
20672cat >> $CONFIG_STATUS <<\EOF
20673
20674# Split the substitutions into bite-sized pieces for seds with
20675# small command number limits, like on Digital OSF/1 and HP-UX.
20676ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20677ac_file=1 # Number of current file.
20678ac_beg=1 # First line for current file.
20679ac_end=$ac_max_sed_cmds # Line after last line for current file.
20680ac_more_lines=:
20681ac_sed_cmds=""
20682while $ac_more_lines; do
20683 if test $ac_beg -gt 1; then
20684 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20685 else
20686 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20687 fi
20688 if test ! -s conftest.s$ac_file; then
20689 ac_more_lines=false
20690 rm -f conftest.s$ac_file
20691 else
20692 if test -z "$ac_sed_cmds"; then
20693 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20694 else
698dcdb6 20695 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20696 fi
698dcdb6
VZ
20697 ac_file=`expr $ac_file + 1`
20698 ac_beg=$ac_end
20699 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20700 fi
698dcdb6
VZ
20701done
20702if test -z "$ac_sed_cmds"; then
20703 ac_sed_cmds=cat
20704fi
20705EOF
10f2d63a 20706
698dcdb6
VZ
20707cat >> $CONFIG_STATUS <<EOF
20708
20709CONFIG_FILES=\${CONFIG_FILES-"wx-config
20710 src/make.env
20711 src/makeprog.env
20712 src/makelib.env
20713 Makefile
20714 "}
10f2d63a 20715EOF
698dcdb6
VZ
20716cat >> $CONFIG_STATUS <<\EOF
20717for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20719 case "$ac_file" in
20720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20722 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20723 esac
20724
698dcdb6 20725 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20726
698dcdb6
VZ
20727 # Remove last slash and all that follows it. Not all systems have dirname.
20728 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20730 # The file is in a subdirectory.
20731 test ! -d "$ac_dir" && mkdir "$ac_dir"
20732 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20733 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20734 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20735 else
20736 ac_dir_suffix= ac_dots=
20737 fi
20738
698dcdb6
VZ
20739 case "$ac_given_srcdir" in
20740 .) srcdir=.
20741 if test -z "$ac_dots"; then top_srcdir=.
20742 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20743 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20744 *) # Relative path.
698dcdb6
VZ
20745 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20746 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20747 esac
20748
698dcdb6
VZ
20749 case "$ac_given_INSTALL" in
20750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20752 esac
20753
698dcdb6
VZ
20754 echo creating "$ac_file"
20755 rm -f "$ac_file"
20756 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20757 case "$ac_file" in
20758 *Makefile*) ac_comsub="1i\\
20759# $configure_input" ;;
20760 *) ac_comsub= ;;
20761 esac
10f2d63a 20762
698dcdb6
VZ
20763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20764 sed -e "$ac_comsub
20765s%@configure_input@%$configure_input%g
20766s%@srcdir@%$srcdir%g
20767s%@top_srcdir@%$top_srcdir%g
20768s%@INSTALL@%$INSTALL%g
20769" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20770fi; done
20771rm -f conftest.s*
10f2d63a
VZ
20772
20773# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20774# NAME is the cpp macro being defined and VALUE is the value it is being given.
20775#
20776# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20777ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20778ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20779ac_dC='\3'
20780ac_dD='%g'
20781# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20782ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20783ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20784ac_uC=' '
698dcdb6
VZ
20785ac_uD='\4%g'
20786# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20787ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20788ac_eB='$%\1#\2define\3'
20789ac_eC=' '
20790ac_eD='%g'
10f2d63a 20791
698dcdb6
VZ
20792if test "${CONFIG_HEADERS+set}" != set; then
20793EOF
20794cat >> $CONFIG_STATUS <<EOF
20795 CONFIG_HEADERS="setup.h:setup.h.in"
20796EOF
20797cat >> $CONFIG_STATUS <<\EOF
20798fi
20799for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20801 case "$ac_file" in
20802 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20803 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20804 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20805 esac
20806
698dcdb6
VZ
20807 echo creating $ac_file
20808
20809 rm -f conftest.frag conftest.in conftest.out
20810 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20811 cat $ac_file_inputs > conftest.in
20812
20813EOF
20814
20815# Transform confdefs.h into a sed script conftest.vals that substitutes
20816# the proper values into config.h.in to produce config.h. And first:
20817# Protect against being on the right side of a sed subst in config.status.
20818# Protect against being in an unquoted here document in config.status.
20819rm -f conftest.vals
20820cat > conftest.hdr <<\EOF
20821s/[\\&%]/\\&/g
20822s%[\\$`]%\\&%g
20823s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20824s%ac_d%ac_u%gp
20825s%ac_u%ac_e%gp
20826EOF
20827sed -n -f conftest.hdr confdefs.h > conftest.vals
20828rm -f conftest.hdr
10f2d63a
VZ
20829
20830# This sed command replaces #undef with comments. This is necessary, for
20831# example, in the case of _POSIX_SOURCE, which is predefined and required
20832# on some systems where configure will not decide to define it.
698dcdb6
VZ
20833cat >> conftest.vals <<\EOF
20834s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20835EOF
20836
698dcdb6
VZ
20837# Break up conftest.vals because some shells have a limit on
20838# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20839
20840rm -f conftest.tail
698dcdb6 20841while :
10f2d63a 20842do
698dcdb6
VZ
20843 ac_lines=`grep -c . conftest.vals`
20844 # grep -c gives empty output for an empty file on some AIX systems.
20845 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20846 # Write a limited-size here document to conftest.frag.
20847 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20848 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20849 echo 'CEOF
698dcdb6
VZ
20850 sed -f conftest.frag conftest.in > conftest.out
20851 rm -f conftest.in
20852 mv conftest.out conftest.in
20853' >> $CONFIG_STATUS
20854 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20855 rm -f conftest.vals
20856 mv conftest.tail conftest.vals
10f2d63a 20857done
698dcdb6
VZ
20858rm -f conftest.vals
20859
20860cat >> $CONFIG_STATUS <<\EOF
20861 rm -f conftest.frag conftest.h
20862 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20863 cat conftest.in >> conftest.h
20864 rm -f conftest.in
20865 if cmp -s $ac_file conftest.h 2>/dev/null; then
20866 echo "$ac_file is unchanged"
20867 rm -f conftest.h
10f2d63a 20868 else
698dcdb6
VZ
20869 # Remove last slash and all that follows it. Not all systems have dirname.
20870 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20871 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20872 # The file is in a subdirectory.
20873 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20874 fi
698dcdb6
VZ
20875 rm -f $ac_file
20876 mv conftest.h $ac_file
10f2d63a 20877 fi
698dcdb6
VZ
20878fi; done
20879
10f2d63a 20880EOF
698dcdb6 20881cat >> $CONFIG_STATUS <<EOF
10f2d63a 20882
3a922bb4 20883 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20884 LN_S="${LN_S}"
20885
20886
20887EOF
20888cat >> $CONFIG_STATUS <<\EOF
10f2d63a 20889
652d930d 20890 if test ! -h wx-config; then
991a5759 20891 chmod +x wx-config
3a922bb4
RL
20892 mv wx-config wx${TOOLCHAIN_NAME}-config
20893 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 20894 fi
665bbe97 20895
00cf1208
RR
20896 if test ! -d lib; then
20897 mkdir lib
20898 fi
20899 if test ! -d lib/wx; then
20900 mkdir lib/wx
20901 fi
20902 if test ! -d lib/wx/include; then
20903 mkdir lib/wx/include
20904 fi
3a922bb4
RL
20905 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20906 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 20907 fi
3a922bb4
RL
20908 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20909 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
20910 fi
20911 if test -f setup.h; then
3a922bb4 20912 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 20913 fi
698dcdb6
VZ
20914
20915exit 0
10f2d63a
VZ
20916EOF
20917chmod +x $CONFIG_STATUS
698dcdb6
VZ
20918rm -fr confdefs* $ac_clean_files
20919test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 20920
2224580a
VZ
20921if test "$no_recursion" != yes; then
20922
20923 # Remove --cache-file and --srcdir arguments so they do not pile up.
20924 ac_sub_configure_args=
20925 ac_prev=
20926 for ac_arg in $ac_configure_args; do
20927 if test -n "$ac_prev"; then
20928 ac_prev=
20929 continue
20930 fi
698dcdb6 20931 case "$ac_arg" in
2224580a
VZ
20932 -cache-file | --cache-file | --cache-fil | --cache-fi \
20933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20934 ac_prev=cache_file ;;
20935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 20936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
20937 ;;
20938 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20939 ac_prev=srcdir ;;
20940 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20941 ;;
20942 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20943 esac
20944 done
20945
698dcdb6 20946 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
20947
20948 # Do not complain, so a configure script can configure whichever
20949 # parts of a large source tree are present.
698dcdb6
VZ
20950 if test ! -d $srcdir/$ac_config_dir; then
20951 continue
20952 fi
20953
20954 echo configuring in $ac_config_dir
2224580a 20955
698dcdb6 20956 case "$srcdir" in
2224580a
VZ
20957 .) ;;
20958 *)
698dcdb6
VZ
20959 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20960 else
20961 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20962 fi
20963 ;;
2224580a
VZ
20964 esac
20965
20966 ac_popdir=`pwd`
698dcdb6 20967 cd $ac_config_dir
2224580a 20968
698dcdb6
VZ
20969 # A "../" for each directory in /$ac_config_dir.
20970 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 20971
698dcdb6 20972 case "$srcdir" in
2224580a
VZ
20973 .) # No --srcdir option. We are building in place.
20974 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
20975 /*) # Absolute path.
20976 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 20977 *) # Relative path.
698dcdb6 20978 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
20979 esac
20980
20981 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
20982 if test -f $ac_sub_srcdir/configure; then
20983 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
20984 elif test -f $ac_sub_srcdir/configure.in; then
20985 ac_sub_configure=$ac_configure
20986 else
698dcdb6 20987 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
20988 ac_sub_configure=
20989 fi
20990
20991 # The recursion is here.
20992 if test -n "$ac_sub_configure"; then
698dcdb6 20993
2224580a 20994 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
20995 case "$cache_file" in
20996 /*) ac_sub_cache_file=$cache_file ;;
2224580a 20997 *) # Relative path.
698dcdb6 20998 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 20999 esac
698dcdb6
VZ
21000 case "$ac_given_INSTALL" in
21001 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21002 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21003 esac
2224580a 21004
698dcdb6 21005 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21006 # The eval makes quoting arguments work.
698dcdb6
VZ
21007 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21008 then :
21009 else
21010 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21011 fi
2224580a
VZ
21012 fi
21013
21014 cd $ac_popdir
21015 done
21016fi
21017
698dcdb6 21018