]> git.saurik.com Git - wxWidgets.git/blame - configure
Check if linking a motif program requires -lXp and/or -lSM -lICE
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
90dd450c
VZ
8
9
10
11
12
13
14
15
703e0a69 16
703e0a69
VZ
17
18
1e487827 19
1e487827 20
698dcdb6
VZ
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
b040e242
VS
49
50
51
986ecc86
VZ
52
53
54
b040e242
VS
55
56
57
58
9e691f46
VZ
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
b040e242
VS
61
62
63
64# Configure paths for GTK+
65# Owen Taylor 97-11-3
698dcdb6 66
698dcdb6
VZ
67
68
69# Guess values for system-dependent variables and create Makefiles.
70# Generated automatically using autoconf version 2.13
71# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72#
73# This configure script is free software; the Free Software Foundation
74# gives unlimited permission to copy, distribute and modify it.
75
76# Defaults:
77ac_help=
78ac_default_prefix=/usr/local
79# Any additions from configure.in:
80ac_help="$ac_help
8168de4c 81 --enable-gui use GUI classes"
1e6feb95 82ac_help="$ac_help
8168de4c 83 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
84ac_help="$ac_help
85 --with-gtk use GTK+"
86ac_help="$ac_help
87 --with-motif use Motif/Lesstif"
88ac_help="$ac_help
89 --with-mac use Mac OS X"
90ac_help="$ac_help
91 --with-wine use WINE"
92ac_help="$ac_help
77e13408 93 --with-msw use MS-Windows"
698dcdb6
VZ
94ac_help="$ac_help
95 --with-pm use OS/2 Presentation Manager"
1e6feb95 96ac_help="$ac_help
b3e8d00a 97 --with-mgl use SciTech MGL"
1725144d
RR
98ac_help="$ac_help
99 --with-microwin use MicroWindows"
f79bd02d
JS
100ac_help="$ac_help
101 --with-x11 use X11"
d8356fa3
VZ
102ac_help="$ac_help
103 --enable-nanox use NanoX"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --with-libpng use libpng (PNG image format)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --with-opengl use OpenGL (or Mesa)"
698dcdb6 114ac_help="$ac_help
d0e9b150 115 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
116ac_help="$ac_help
117 --with-regex enable support for wxRegEx class"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --with-zlib use zlib for LZW compression"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-shared create shared library code"
698dcdb6 124ac_help="$ac_help
3a922bb4 125 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-optimise create optimised code"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-debug same as debug_flag and debug_info"
683dccda
GD
130ac_help="$ac_help
131 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-debug_info create code with debugging information"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-debug_cntxt use wxDebugContext"
698dcdb6 140ac_help="$ac_help
8168de4c 141 --enable-mem_tracing create code with memory tracing"
698dcdb6 142ac_help="$ac_help
8168de4c 143 --enable-profile create code with profiling information"
698dcdb6 144ac_help="$ac_help
8168de4c 145 --enable-no_rtti create code without RTTI information"
698dcdb6 146ac_help="$ac_help
b3e8d00a 147 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-no_deps create code without dependency information"
54276ccf 152ac_help="$ac_help
b3e8d00a 153 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 154ac_help="$ac_help
0c9a1c32 155 --disable-compat22 disable wxWindows 2.2 compatibility"
3bd8fb5f
RD
156ac_help="$ac_help
157 --enable-rpath=DIR output the rpath flag from wx-config"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-intl use internationalization system"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
162ac_help="$ac_help
163 --enable-protocols use wxProtocol and derived classes"
164ac_help="$ac_help
165 --enable-ftp use wxFTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-http use wxHTTP (requires wxProtocol"
168ac_help="$ac_help
169 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-sockets use socket/network classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-cmdline use wxCmdLineParser class"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-datetime use wxDateTime class"
1e6feb95 178ac_help="$ac_help
8168de4c 179 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 180ac_help="$ac_help
8168de4c 181 --enable-stopwatch use wxStopWatch class"
1e6feb95 182ac_help="$ac_help
8168de4c 183 --enable-dialupman use dialup network classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-timer use wxTimer class"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-wave use wxWave class"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-fraction use wxFraction class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
194ac_help="$ac_help
195 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-longlong use wxLongLong class"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-geometry use geometry class"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-log use logging system"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-streams use wxStream etc classes"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-file use wxFile classes"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-ffile use wxFFile classes"
1e6feb95 208ac_help="$ac_help
a3a584a7
VZ
209 --enable-textbuf use wxTextBuffer class"
210ac_help="$ac_help
211 --enable-textfile use wxTextFile class"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-fontmap use font encodings conversion classes"
1e6feb95 214ac_help="$ac_help
8168de4c 215 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
216ac_help="$ac_help
217 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-filesystem use virtual file systems classes"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-zipstream use wxZipInputStream"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 234ac_help="$ac_help
69d27ff7 235 --enable-mimetype use wxMimeTypesManager"
3e44f09d 236ac_help="$ac_help
b3e8d00a 237 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
238ac_help="$ac_help
239 --enable-url use wxURL class"
240ac_help="$ac_help
241 --enable-protocol use wxProtocol class"
242ac_help="$ac_help
243 --enable-protocol-http HTTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-ftp FTP support in wxProtocol"
246ac_help="$ac_help
247 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-threads use threads"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-docview use document view architecture"
698dcdb6 252ac_help="$ac_help
3379ed37 253 --enable-help use help subsystem"
29fd3c0c
VS
254ac_help="$ac_help
255 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
256ac_help="$ac_help
257 --enable-html use wxHTML sub-library"
258ac_help="$ac_help
259 --enable-htmlhelp use wxHTML-based help"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-constraints use layout-constraints system"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-printarch use printing architecture"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-mdi use multiple document interface architecture"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-loggui use standard GUI logger"
1e6feb95 268ac_help="$ac_help
8168de4c 269 --enable-logwin use wxLogWindow"
69d27ff7
MB
270ac_help="$ac_help
271 --enable-logdialog use wxLogDialog"
1e6feb95 272ac_help="$ac_help
8168de4c 273 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-prologio use Prolog IO library"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-resources use wxWindows resources"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-clipboard use wxClipboard classes"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-dnd use Drag'n'Drop classes"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-metafile use win32 metafiles"
698dcdb6 286ac_help="$ac_help
24176f2c 287 --enable-treelayout use wxTreeLayout classes"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-controls use all usual controls"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-accel use accelerators"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-button use wxButton class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-calendar use wxCalendarCtrl class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-caret use wxCaret class"
1e6feb95 300ac_help="$ac_help
8168de4c 301 --enable-checkbox use wxCheckBox class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-choice use wxChoice class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-combobox use wxComboBox classes"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-gauge use wxGauge class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-grid use wxGrid class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-newgrid use new wxGrid class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-imaglist use wxImageList class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-listbox use wxListBox class"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-listctrl use wxListCtrl class"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-notebook use wxNotebook class"
24176f2c
GD
322ac_help="$ac_help
323 --enable-propsheet use wxPropertySheet class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-radiobox use wxRadioBox class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-radiobtn use wxRadioButton class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-sash use wxSashWindow class"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-slider use wxSlider class"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-spinbtn use wxSpinButton class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-splitter use wxSplitterWindow class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-statbmp use wxStaticBitmap class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-statbox use wxStaticBox class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-statline use wxStaticLine class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-stattext use wxStaticText class"
1e6feb95 348ac_help="$ac_help
8168de4c 349 --enable-statusbar use wxStatusBar class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-tabdialog use wxTabControl class"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-textctrl use wxTextCtrl class"
1e6feb95 354ac_help="$ac_help
8168de4c 355 --enable-togglebtn use wxToggleButton class"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-toolbar use wxToolBar class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-tbarnative use native wxToolBar class"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
364ac_help="$ac_help
365 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
366ac_help="$ac_help
367 --enable-popupwin use wxPopUpWindow class"
698dcdb6 368ac_help="$ac_help
b3e8d00a 369 --enable-commondlg use all common dialogs"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-choicedlg use wxChoiceDialog"
1e6feb95 372ac_help="$ac_help
8168de4c 373 --enable-coldlg use wxColourDialog"
1e6feb95 374ac_help="$ac_help
8168de4c 375 --enable-filedlg use wxFileDialog"
8db37e06
VZ
376ac_help="$ac_help
377 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 378ac_help="$ac_help
8168de4c 379 --enable-fontdlg use wxFontDialog"
1e6feb95 380ac_help="$ac_help
8168de4c 381 --enable-dirdlg use wxDirDialog"
698dcdb6 382ac_help="$ac_help
8168de4c 383 --enable-msgdlg use wxMessageDialog"
1e6feb95 384ac_help="$ac_help
8168de4c 385 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
386ac_help="$ac_help
387 --enable-splash use wxSplashScreen"
1e6feb95 388ac_help="$ac_help
8168de4c 389 --enable-textdlg use wxTextDialog"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-tipdlg use startup tips"
698dcdb6 392ac_help="$ac_help
8168de4c 393 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
394ac_help="$ac_help
395 --enable-wizarddlg use wxWizard"
698dcdb6 396ac_help="$ac_help
8168de4c 397 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 398ac_help="$ac_help
8168de4c 399 --enable-miniframe use wxMiniFrame class"
698dcdb6 400ac_help="$ac_help
8168de4c 401 --enable-tooltips use wxToolTip class"
698dcdb6 402ac_help="$ac_help
8168de4c 403 --enable-splines use spline drawing code"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-validators use wxValidator and derived classes"
698dcdb6 406ac_help="$ac_help
8168de4c 407 --enable-busyinfo use wxBusyInfo"
698dcdb6 408ac_help="$ac_help
b3e8d00a 409 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 410ac_help="$ac_help
8168de4c 411 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
412ac_help="$ac_help
413 --enable-dragimage use wxDragImage"
edae8572
VZ
414ac_help="$ac_help
415 --enable-palette use wxPalette class"
1e6feb95 416ac_help="$ac_help
8168de4c 417 --enable-image use wxImage class"
698dcdb6 418ac_help="$ac_help
8168de4c 419 --enable-gif use gif images (GIF file format)"
698dcdb6 420ac_help="$ac_help
8168de4c 421 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
422ac_help="$ac_help
423 --enable-iff use iff images (IFF file format)"
698dcdb6 424ac_help="$ac_help
8168de4c 425 --enable-pnm use pnm images (PNM file format)"
698dcdb6 426ac_help="$ac_help
8168de4c 427 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
428ac_help="$ac_help
429 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
430ac_help="$ac_help
431 --disable-largefile omit support for large files"
698dcdb6 432ac_help="$ac_help
9e691f46 433 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
434ac_help="$ac_help
435 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
438ac_help="$ac_help
439 --disable-gtktest Do not try to compile and run a test GTK program"
440ac_help="$ac_help
441 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
444ac_help="$ac_help
445 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
446ac_help="$ac_help
447 --with-x use the X Window System"
b040e242
VS
448ac_help="$ac_help
449 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
450
451# Initialize some variables set by options.
452# The variables have the same names as the options, with
453# dashes changed to underlines.
698dcdb6
VZ
454build=NONE
455cache_file=./config.cache
10f2d63a 456exec_prefix=NONE
698dcdb6 457host=NONE
10f2d63a 458no_create=
698dcdb6 459nonopt=NONE
10f2d63a
VZ
460no_recursion=
461prefix=NONE
462program_prefix=NONE
463program_suffix=NONE
464program_transform_name=s,x,x,
465silent=
466site=
467srcdir=
698dcdb6 468target=NONE
10f2d63a
VZ
469verbose=
470x_includes=NONE
471x_libraries=NONE
472bindir='${exec_prefix}/bin'
473sbindir='${exec_prefix}/sbin'
474libexecdir='${exec_prefix}/libexec'
475datadir='${prefix}/share'
476sysconfdir='${prefix}/etc'
477sharedstatedir='${prefix}/com'
478localstatedir='${prefix}/var'
479libdir='${exec_prefix}/lib'
480includedir='${prefix}/include'
481oldincludedir='/usr/include'
482infodir='${prefix}/info'
483mandir='${prefix}/man'
484
698dcdb6
VZ
485# Initialize some other variables.
486subdirs=
487MFLAGS= MAKEFLAGS=
488SHELL=${CONFIG_SHELL-/bin/sh}
489# Maximum number of lines to put in a shell here document.
490ac_max_here_lines=12
10f2d63a
VZ
491
492ac_prev=
493for ac_option
494do
698dcdb6 495
10f2d63a
VZ
496 # If the previous option needs an argument, assign it.
497 if test -n "$ac_prev"; then
498 eval "$ac_prev=\$ac_option"
499 ac_prev=
500 continue
501 fi
502
698dcdb6
VZ
503 case "$ac_option" in
504 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
505 *) ac_optarg= ;;
506 esac
10f2d63a
VZ
507
508 # Accept the important Cygnus configure options, so we can diagnose typos.
509
698dcdb6 510 case "$ac_option" in
10f2d63a
VZ
511
512 -bindir | --bindir | --bindi | --bind | --bin | --bi)
513 ac_prev=bindir ;;
514 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 515 bindir="$ac_optarg" ;;
10f2d63a
VZ
516
517 -build | --build | --buil | --bui | --bu)
698dcdb6 518 ac_prev=build ;;
10f2d63a 519 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 520 build="$ac_optarg" ;;
10f2d63a
VZ
521
522 -cache-file | --cache-file | --cache-fil | --cache-fi \
523 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
524 ac_prev=cache_file ;;
525 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
526 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 527 cache_file="$ac_optarg" ;;
10f2d63a
VZ
528
529 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
530 ac_prev=datadir ;;
531 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
532 | --da=*)
698dcdb6 533 datadir="$ac_optarg" ;;
10f2d63a
VZ
534
535 -disable-* | --disable-*)
698dcdb6 536 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 537 # Reject names that are not valid shell variable names.
698dcdb6
VZ
538 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
539 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
540 fi
541 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
542 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
543
544 -enable-* | --enable-*)
698dcdb6 545 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 546 # Reject names that are not valid shell variable names.
698dcdb6
VZ
547 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549 fi
550 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551 case "$ac_option" in
552 *=*) ;;
10f2d63a
VZ
553 *) ac_optarg=yes ;;
554 esac
698dcdb6 555 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
556
557 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
558 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
559 | --exec | --exe | --ex)
560 ac_prev=exec_prefix ;;
561 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
562 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
563 | --exec=* | --exe=* | --ex=*)
698dcdb6 564 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
565
566 -gas | --gas | --ga | --g)
567 # Obsolete; use --with-gas.
568 with_gas=yes ;;
569
698dcdb6
VZ
570 -help | --help | --hel | --he)
571 # Omit some internal or obsolete options to make the list less imposing.
572 # This message is too long to be a string in the A/UX 3.1 sh.
573 cat << EOF
574Usage: configure [options] [host]
575Options: [defaults in brackets after descriptions]
576Configuration:
577 --cache-file=FILE cache test results in FILE
578 --help print this message
579 --no-create do not create output files
580 --quiet, --silent do not print \`checking...' messages
581 --version print the version of autoconf that created configure
582Directory and file names:
583 --prefix=PREFIX install architecture-independent files in PREFIX
584 [$ac_default_prefix]
585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
586 [same as prefix]
587 --bindir=DIR user executables in DIR [EPREFIX/bin]
588 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
589 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
590 --datadir=DIR read-only architecture-independent data in DIR
591 [PREFIX/share]
592 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
593 --sharedstatedir=DIR modifiable architecture-independent data in DIR
594 [PREFIX/com]
595 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
596 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
597 --includedir=DIR C header files in DIR [PREFIX/include]
598 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
599 --infodir=DIR info documentation in DIR [PREFIX/info]
600 --mandir=DIR man documentation in DIR [PREFIX/man]
601 --srcdir=DIR find the sources in DIR [configure dir or ..]
602 --program-prefix=PREFIX prepend PREFIX to installed program names
603 --program-suffix=SUFFIX append SUFFIX to installed program names
604 --program-transform-name=PROGRAM
605 run sed PROGRAM on installed program names
606EOF
607 cat << EOF
608Host type:
609 --build=BUILD configure for building on BUILD [BUILD=HOST]
610 --host=HOST configure for HOST [guessed]
611 --target=TARGET configure for TARGET [TARGET=HOST]
612Features and packages:
613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
617 --x-includes=DIR X include files are in DIR
618 --x-libraries=DIR X library files are in DIR
619EOF
620 if test -n "$ac_help"; then
621 echo "--enable and --with options recognized:$ac_help"
622 fi
623 exit 0 ;;
10f2d63a
VZ
624
625 -host | --host | --hos | --ho)
698dcdb6 626 ac_prev=host ;;
10f2d63a 627 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 628 host="$ac_optarg" ;;
10f2d63a
VZ
629
630 -includedir | --includedir | --includedi | --included | --include \
631 | --includ | --inclu | --incl | --inc)
632 ac_prev=includedir ;;
633 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
634 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 635 includedir="$ac_optarg" ;;
10f2d63a
VZ
636
637 -infodir | --infodir | --infodi | --infod | --info | --inf)
638 ac_prev=infodir ;;
639 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 640 infodir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -libdir | --libdir | --libdi | --libd)
643 ac_prev=libdir ;;
644 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 645 libdir="$ac_optarg" ;;
10f2d63a
VZ
646
647 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
648 | --libexe | --libex | --libe)
649 ac_prev=libexecdir ;;
650 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
651 | --libexe=* | --libex=* | --libe=*)
698dcdb6 652 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
653
654 -localstatedir | --localstatedir | --localstatedi | --localstated \
655 | --localstate | --localstat | --localsta | --localst \
656 | --locals | --local | --loca | --loc | --lo)
657 ac_prev=localstatedir ;;
658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
659 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
660 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 661 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
664 ac_prev=mandir ;;
665 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 666 mandir="$ac_optarg" ;;
10f2d63a
VZ
667
668 -nfp | --nfp | --nf)
669 # Obsolete; use --without-fp.
670 with_fp=no ;;
671
672 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
673 | --no-cr | --no-c)
674 no_create=yes ;;
675
676 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
677 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
678 no_recursion=yes ;;
679
680 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
681 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
682 | --oldin | --oldi | --old | --ol | --o)
683 ac_prev=oldincludedir ;;
684 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
685 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
686 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 687 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
688
689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
690 ac_prev=prefix ;;
691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 692 prefix="$ac_optarg" ;;
10f2d63a
VZ
693
694 -program-prefix | --program-prefix | --program-prefi | --program-pref \
695 | --program-pre | --program-pr | --program-p)
696 ac_prev=program_prefix ;;
697 -program-prefix=* | --program-prefix=* | --program-prefi=* \
698 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 699 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
700
701 -program-suffix | --program-suffix | --program-suffi | --program-suff \
702 | --program-suf | --program-su | --program-s)
703 ac_prev=program_suffix ;;
704 -program-suffix=* | --program-suffix=* | --program-suffi=* \
705 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 706 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
707
708 -program-transform-name | --program-transform-name \
709 | --program-transform-nam | --program-transform-na \
710 | --program-transform-n | --program-transform- \
711 | --program-transform | --program-transfor \
712 | --program-transfo | --program-transf \
713 | --program-trans | --program-tran \
714 | --progr-tra | --program-tr | --program-t)
715 ac_prev=program_transform_name ;;
716 -program-transform-name=* | --program-transform-name=* \
717 | --program-transform-nam=* | --program-transform-na=* \
718 | --program-transform-n=* | --program-transform-=* \
719 | --program-transform=* | --program-transfor=* \
720 | --program-transfo=* | --program-transf=* \
721 | --program-trans=* | --program-tran=* \
722 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 723 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
724
725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
726 | -silent | --silent | --silen | --sile | --sil)
727 silent=yes ;;
728
729 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
730 ac_prev=sbindir ;;
731 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
732 | --sbi=* | --sb=*)
698dcdb6 733 sbindir="$ac_optarg" ;;
10f2d63a
VZ
734
735 -sharedstatedir | --sharedstatedir | --sharedstatedi \
736 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
737 | --sharedst | --shareds | --shared | --share | --shar \
738 | --sha | --sh)
739 ac_prev=sharedstatedir ;;
740 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
741 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
742 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
743 | --sha=* | --sh=*)
698dcdb6 744 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
745
746 -site | --site | --sit)
747 ac_prev=site ;;
748 -site=* | --site=* | --sit=*)
698dcdb6 749 site="$ac_optarg" ;;
10f2d63a
VZ
750
751 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
752 ac_prev=srcdir ;;
753 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 754 srcdir="$ac_optarg" ;;
10f2d63a
VZ
755
756 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
757 | --syscon | --sysco | --sysc | --sys | --sy)
758 ac_prev=sysconfdir ;;
759 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
760 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 761 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
762
763 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 764 ac_prev=target ;;
10f2d63a 765 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 766 target="$ac_optarg" ;;
10f2d63a
VZ
767
768 -v | -verbose | --verbose | --verbos | --verbo | --verb)
769 verbose=yes ;;
770
698dcdb6
VZ
771 -version | --version | --versio | --versi | --vers)
772 echo "configure generated by autoconf version 2.13"
773 exit 0 ;;
10f2d63a
VZ
774
775 -with-* | --with-*)
698dcdb6 776 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 777 # Reject names that are not valid shell variable names.
698dcdb6
VZ
778 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
779 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
780 fi
10f2d63a 781 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
782 case "$ac_option" in
783 *=*) ;;
10f2d63a
VZ
784 *) ac_optarg=yes ;;
785 esac
698dcdb6 786 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
787
788 -without-* | --without-*)
698dcdb6 789 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 790 # Reject names that are not valid shell variable names.
698dcdb6
VZ
791 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
796
797 --x)
798 # Obsolete; use --with-x.
799 with_x=yes ;;
800
801 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
802 | --x-incl | --x-inc | --x-in | --x-i)
803 ac_prev=x_includes ;;
804 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
805 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 806 x_includes="$ac_optarg" ;;
10f2d63a
VZ
807
808 -x-libraries | --x-libraries | --x-librarie | --x-librari \
809 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
810 ac_prev=x_libraries ;;
811 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
812 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 813 x_libraries="$ac_optarg" ;;
10f2d63a 814
698dcdb6 815 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
816 ;;
817
818 *)
698dcdb6
VZ
819 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
820 echo "configure: warning: $ac_option: invalid host type" 1>&2
821 fi
822 if test "x$nonopt" != xNONE; then
823 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
824 fi
825 nonopt="$ac_option"
10f2d63a
VZ
826 ;;
827
828 esac
829done
830
831if test -n "$ac_prev"; then
698dcdb6
VZ
832 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
833fi
834
835trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
836
837# File descriptor usage:
838# 0 standard input
839# 1 file creation
840# 2 errors and warnings
841# 3 some systems may open it to /dev/tty
842# 4 used on the Kubota Titan
843# 6 checking for... messages and results
844# 5 compiler messages saved in config.log
845if test "$silent" = yes; then
846 exec 6>/dev/null
847else
848 exec 6>&1
10f2d63a 849fi
698dcdb6
VZ
850exec 5>./config.log
851
852echo "\
853This file contains any messages produced by compilers while
854running configure, to aid debugging if configure makes a mistake.
855" 1>&5
10f2d63a 856
698dcdb6
VZ
857# Strip out --no-create and --no-recursion so they do not pile up.
858# Also quote any args containing shell metacharacters.
859ac_configure_args=
860for ac_arg
10f2d63a 861do
698dcdb6
VZ
862 case "$ac_arg" in
863 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
864 | --no-cr | --no-c) ;;
865 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
866 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
867 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
868 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
869 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
870 esac
871done
872
698dcdb6
VZ
873# NLS nuisances.
874# Only set these to C if already set. These must not be set unconditionally
875# because not all systems understand e.g. LANG=C (notably SCO).
876# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
877# Non-C LC_CTYPE values break the ctype check.
878if test "${LANG+set}" = set; then LANG=C; export LANG; fi
879if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
880if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
881if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 882
698dcdb6
VZ
883# confdefs.h avoids OS command line length limits that DEFS can exceed.
884rm -rf conftest* confdefs.h
885# AIX cpp loses on an empty file, so make sure it contains at least a newline.
886echo > confdefs.h
10f2d63a 887
698dcdb6
VZ
888# A filename unique to this package, relative to the directory that
889# configure is in, which we can look for to find out if srcdir is correct.
890ac_unique_file=wx-config.in
10f2d63a
VZ
891
892# Find the source files, if location was not specified.
893if test -z "$srcdir"; then
894 ac_srcdir_defaulted=yes
895 # Try the directory containing this script, then its parent.
896 ac_prog=$0
698dcdb6 897 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
898 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
899 srcdir=$ac_confdir
900 if test ! -r $srcdir/$ac_unique_file; then
901 srcdir=..
902 fi
903else
904 ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 908 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 909 else
698dcdb6 910 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
911 fi
912fi
698dcdb6 913srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
914
915# Prefer explicitly selected file to automatically selected ones.
916if test -z "$CONFIG_SITE"; then
917 if test "x$prefix" != xNONE; then
918 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
919 else
920 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
921 fi
922fi
923for ac_site_file in $CONFIG_SITE; do
924 if test -r "$ac_site_file"; then
698dcdb6 925 echo "loading site script $ac_site_file"
10f2d63a
VZ
926 . "$ac_site_file"
927 fi
928done
929
930if test -r "$cache_file"; then
698dcdb6
VZ
931 echo "loading cache $cache_file"
932 . $cache_file
10f2d63a 933else
698dcdb6
VZ
934 echo "creating cache $cache_file"
935 > $cache_file
10f2d63a
VZ
936fi
937
938ac_ext=c
698dcdb6 939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 940ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943cross_compiling=$ac_cv_prog_cc_cross
944
945ac_exeext=
946ac_objext=o
947if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
948 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
949 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
950 ac_n= ac_c='
951' ac_t=' '
952 else
953 ac_n=-n ac_c= ac_t=
954 fi
10f2d63a 955else
698dcdb6 956 ac_n= ac_c='\c' ac_t=
10f2d63a 957fi
698dcdb6
VZ
958
959
10f2d63a 960
7c66a493
VZ
961ac_aux_dir=
962for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
963 if test -f $ac_dir/install-sh; then
964 ac_aux_dir=$ac_dir
965 ac_install_sh="$ac_aux_dir/install-sh -c"
966 break
967 elif test -f $ac_dir/install.sh; then
968 ac_aux_dir=$ac_dir
969 ac_install_sh="$ac_aux_dir/install.sh -c"
970 break
971 fi
972done
973if test -z "$ac_aux_dir"; then
698dcdb6 974 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 975fi
698dcdb6
VZ
976ac_config_guess=$ac_aux_dir/config.guess
977ac_config_sub=$ac_aux_dir/config.sub
978ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 979
698dcdb6
VZ
980
981# Do some error checking and defaulting for the host and target type.
982# The inputs are:
983# configure --host=HOST --target=TARGET --build=BUILD NONOPT
984#
985# The rules are:
986# 1. You are not allowed to specify --host, --target, and nonopt at the
987# same time.
988# 2. Host defaults to nonopt.
989# 3. If nonopt is not specified, then host defaults to the current host,
990# as determined by config.guess.
991# 4. Target and build default to nonopt.
992# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
993
994# The aliases save the names the user supplied, while $host etc.
995# will get canonicalized.
698dcdb6
VZ
996case $host---$target---$nonopt in
997NONE---*---* | *---NONE---* | *---*---NONE) ;;
998*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
999esac
1000
1001
1002# Make sure we can run config.sub.
1003if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1004else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1005fi
1006
1007echo $ac_n "checking host system type""... $ac_c" 1>&6
3bd8fb5f 1008echo "configure:1009: checking host system type" >&5
698dcdb6
VZ
1009
1010host_alias=$host
1011case "$host_alias" in
1012NONE)
1013 case $nonopt in
1014 NONE)
1015 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1016 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1017 fi ;;
1018 *) host_alias=$nonopt ;;
1019 esac ;;
1020esac
1021
1022host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1023host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026echo "$ac_t""$host" 1>&6
1027
1028echo $ac_n "checking target system type""... $ac_c" 1>&6
3bd8fb5f 1029echo "configure:1030: checking target system type" >&5
698dcdb6
VZ
1030
1031target_alias=$target
1032case "$target_alias" in
1033NONE)
1034 case $nonopt in
1035 NONE) target_alias=$host_alias ;;
1036 *) target_alias=$nonopt ;;
1037 esac ;;
1038esac
1039
1040target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1041target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044echo "$ac_t""$target" 1>&6
1045
1046echo $ac_n "checking build system type""... $ac_c" 1>&6
3bd8fb5f 1047echo "configure:1048: checking build system type" >&5
698dcdb6
VZ
1048
1049build_alias=$build
1050case "$build_alias" in
1051NONE)
1052 case $nonopt in
1053 NONE) build_alias=$host_alias ;;
1054 *) build_alias=$nonopt ;;
1055 esac ;;
1056esac
1057
1058build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1059build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062echo "$ac_t""$build" 1>&6
1063
1064test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1065 test "$program_prefix$program_suffix$program_transform_name" = \
1066 NONENONEs,x,x, &&
1067 program_prefix=${target_alias}-
1068
698dcdb6
VZ
1069
1070
10f2d63a 1071WX_MAJOR_VERSION_NUMBER=2
37d403aa 1072WX_MINOR_VERSION_NUMBER=3
a0d927d1 1073WX_RELEASE_NUMBER=3
10f2d63a 1074
10f2d63a 1075WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1076WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1077
978f1259
RL
1078WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1079
a0d927d1 1080WX_CURRENT=2
6426998c
RL
1081WX_REVISION=0
1082WX_AGE=0
1083
698dcdb6
VZ
1084
1085
10f2d63a
VZ
1086USE_UNIX=1
1087USE_WIN32=0
f9bc1684 1088USE_DOS=0
b12915c1 1089USE_BEOS=0
1216f52d 1090USE_MAC=0
b12915c1 1091
10f2d63a
VZ
1092USE_LINUX=
1093USE_SGI=
1094USE_HPUX=
1095USE_SYSV=
1096USE_SVR4=
1097USE_AIX=
1098USE_SUN=
1099USE_SOLARIS=
1100USE_SUNOS=
1101USE_ALPHA=
1102USE_OSF=
1103USE_BSD=
f11bdd03 1104USE_DARWIN=
10f2d63a 1105USE_FREEBSD=
95c8801c 1106USE_OPENBSD=
f6bcfd97 1107USE_NETBSD=
10f2d63a
VZ
1108USE_VMS=
1109USE_ULTRIX=
10f2d63a
VZ
1110USE_DATA_GENERAL=
1111
ab9b9eab
VZ
1112NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1113
f79bd02d 1114ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1115
1116DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1117DEFAULT_wxUSE_MAC=0
1118DEFAULT_wxUSE_MGL=0
1725144d 1119DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1120DEFAULT_wxUSE_MOTIF=0
1121DEFAULT_wxUSE_MSW=0
e07802fc 1122DEFAULT_wxUSE_PM=0
1e6feb95 1123DEFAULT_wxUSE_WINE=0
f79bd02d 1124DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1125
1126DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1127DEFAULT_DEFAULT_wxUSE_MAC=0
1128DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1129DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1130DEFAULT_DEFAULT_wxUSE_MOTIF=0
1131DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1132DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1133DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1134DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1135
d6a55c4b 1136PROGRAM_EXT=
3a922bb4 1137SO_SUFFIX=so
d6a55c4b 1138
10f2d63a
VZ
1139case "${host}" in
1140 *-hp-hpux* )
1141 USE_HPUX=1
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1143 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1144 SO_SUFFIX=sl
698dcdb6 1145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1146#define __HPUX__ 1
1147EOF
1148
1149 ;;
1150 *-*-linux* )
1151 USE_LINUX=1
698dcdb6 1152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1153#define __LINUX__ 1
1154EOF
1155
1156 TMP=`uname -m`
1157 if test "x$TMP" = "xalpha"; then
1158 USE_ALPHA=1
698dcdb6 1159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1160#define __ALPHA__ 1
1161EOF
1162
1163 fi
1164 DEFAULT_DEFAULT_wxUSE_GTK=1
1165 ;;
1166 *-*-irix5* | *-*-irix6* )
1167 USE_SGI=1
1168 USE_SVR4=1
698dcdb6 1169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1170#define __SGI__ 1
1171EOF
1172
698dcdb6 1173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1174#define __SVR4__ 1
1175EOF
1176
1177 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1178 ;;
1179 *-*-solaris2* )
1180 USE_SUN=1
1181 USE_SOLARIS=1
1182 USE_SVR4=1
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __SUN__ 1
1185EOF
1186
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __SOLARIS__ 1
1189EOF
1190
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __SVR4__ 1
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1196 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1197 ;;
1198 *-*-sunos4* )
1199 USE_SUN=1
1200 USE_SUNOS=1
1201 USE_BSD=1
698dcdb6 1202 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1203#define __SUN__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __SUNOS__ 1
1208EOF
1209
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __BSD__ 1
1212EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 ;;
f6bcfd97 1216 *-*-freebsd*)
10f2d63a
VZ
1217 USE_BSD=1
1218 USE_FREEBSD=1
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __FREEBSD__ 1
1221EOF
1222
698dcdb6 1223 cat >> confdefs.h <<\EOF
10f2d63a 1224#define __BSD__ 1
95c8801c
VS
1225EOF
1226
1227 DEFAULT_DEFAULT_wxUSE_GTK=1
1228 ;;
1229 *-*-openbsd*)
1230 USE_BSD=1
1231 USE_OPENBSD=1
698dcdb6 1232 cat >> confdefs.h <<\EOF
95c8801c
VS
1233#define __FREEBSD__ 1
1234EOF
1235
698dcdb6 1236 cat >> confdefs.h <<\EOF
95c8801c 1237#define __OPENBSD__ 1
f6bcfd97
BP
1238EOF
1239
1240 DEFAULT_DEFAULT_wxUSE_GTK=1
1241 ;;
1242 *-*-netbsd*)
1243 USE_BSD=1
1244 USE_NETBSD=1
698dcdb6 1245 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1246#define __FREEBSD__ 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
f6bcfd97 1250#define __NETBSD__ 1
10f2d63a
VZ
1251EOF
1252
1253 DEFAULT_DEFAULT_wxUSE_GTK=1
1254 ;;
1255 *-*-osf* )
1256 USE_ALPHA=1
1257 USE_OSF=1
698dcdb6 1258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1259#define __ALPHA__ 1
1260EOF
1261
698dcdb6 1262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1263#define __OSF__ 1
1264EOF
1265
1266 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1267 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1268 ;;
1269 *-*-dgux5* )
1270 USE_ALPHA=1
1271 USE_SVR4=1
698dcdb6 1272 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1273#define __ALPHA__ 1
1274EOF
1275
698dcdb6 1276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1277#define __SVR4__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 ;;
1282 *-*-sysv5* )
1283 USE_SYSV=1
1284 USE_SVR4=1
698dcdb6 1285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1286#define __SYSV__ 1
1287EOF
1288
698dcdb6 1289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1290#define __SVR4__ 1
1291EOF
1292
1293 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1294 ;;
1295 *-*-aix* )
1296 USE_AIX=1
1297 USE_SYSV=1
1298 USE_SVR4=1
321d2b14 1299 SO_SUFFIX=a
698dcdb6 1300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1301#define __AIX__ 1
1302EOF
1303
698dcdb6 1304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1305#define __SYSV__ 1
1306EOF
1307
698dcdb6 1308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1309#define __SVR4__ 1
1310EOF
1311
1312 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1313 ;;
1314
1c8183e2 1315 *-*-cygwin* | *-*-mingw32* )
17234b26 1316 SO_SUFFIX=dll
cf27ef00 1317 PROGRAM_EXT=".exe"
7b7a7637 1318 RESCOMP=windres
10f2d63a
VZ
1319 DEFAULT_DEFAULT_wxUSE_MSW=1
1320 ;;
1321
f9bc1684
VS
1322 *-pc-msdosdjgpp )
1323 USE_UNIX=0
1324 USE_DOS=1
1325 cat >> confdefs.h <<\EOF
1326#define __DOS__ 1
1327EOF
1328
1329 PROGRAM_EXT=".exe"
1330 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1331 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1332 ;;
1333
6fa882bd 1334 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1335 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1336#define __EMX__ 1
1337EOF
1338
cf27ef00 1339 PROGRAM_EXT=".exe"
e07802fc 1340 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1341 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1342 ;;
1343
d08b457b
GD
1344 powerpc-*-darwin* )
1345 USE_BSD=1
f11bdd03 1346 USE_DARWIN=1
3a922bb4 1347 SO_SUFFIX=dylib
698dcdb6 1348 cat >> confdefs.h <<\EOF
f11bdd03 1349#define __BSD__ 1
b4085ce6
GD
1350EOF
1351
698dcdb6 1352 cat >> confdefs.h <<\EOF
f11bdd03 1353#define __DARWIN__ 1
d08b457b
GD
1354EOF
1355
1356 cat >> confdefs.h <<\EOF
1357#define __POWERPC__ 1
b4085ce6
GD
1358EOF
1359
1360 DEFAULT_DEFAULT_wxUSE_MAC=1
1361 ;;
1362
b12915c1
VZ
1363 *-*-beos* )
1364 USE_BEOS=1
698dcdb6 1365 cat >> confdefs.h <<\EOF
b12915c1
VZ
1366#define __BEOS__ 1
1367EOF
1368
1369 ;;
1370
10f2d63a 1371 *)
698dcdb6 1372 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1373esac
1374
1e487827 1375
1e487827 1376
6232543b 1377
10f2d63a
VZ
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
698dcdb6 1383
10f2d63a
VZ
1384
1385DEBUG_CONFIGURE=0
1386if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
d8356fa3
VZ
1389 DEFAULT_wxUSE_NANOX=no
1390
10f2d63a
VZ
1391 DEFAULT_wxUSE_THREADS=yes
1392
1393 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1394 DEFAULT_wxUSE_SONAME=no
1e6feb95 1395 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1396 DEFAULT_wxUSE_PROFILE=no
1397 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1398 DEFAULT_wxUSE_NO_RTTI=no
1399 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1400 DEFAULT_wxUSE_PERMISSIVE=no
1401 DEFAULT_wxUSE_DEBUG_FLAG=yes
1402 DEFAULT_wxUSE_DEBUG_INFO=yes
1403 DEFAULT_wxUSE_DEBUG_GDB=yes
1404 DEFAULT_wxUSE_MEM_TRACING=no
1405 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1406 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1407 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1408 DEFAULT_wxUSE_APPLE_IEEE=no
1409
1410 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1411 DEFAULT_wxUSE_LOGWINDOW=no
1412 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1413 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1414
1415 DEFAULT_wxUSE_GUI=yes
1e6feb95 1416 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1417
3e44f09d 1418 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1419 DEFAULT_wxUSE_ZLIB=no
1420 DEFAULT_wxUSE_LIBPNG=no
1421 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1422 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1423 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1424 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1425
eb4efbdc 1426 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1427 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1428 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1429 DEFAULT_wxUSE_CMDLINE_PARSER=no
1430 DEFAULT_wxUSE_DATETIME=no
1431 DEFAULT_wxUSE_TIMEDATE=no
1432 DEFAULT_wxUSE_TIMER=no
1433 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1434 DEFAULT_wxUSE_FILE=no
1e6feb95 1435 DEFAULT_wxUSE_FFILE=no
a3a584a7 1436 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1437 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1438 DEFAULT_wxUSE_WAVE=no
1439 DEFAULT_wxUSE_INTL=no
1440 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1441 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1442 DEFAULT_wxUSE_STREAMS=no
1443 DEFAULT_wxUSE_SOCKETS=no
1444 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1445 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1446 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1447 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1448 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1449 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1450
1451 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1452 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1453 DEFAULT_wxUSE_POSTSCRIPT=no
1454
1455 DEFAULT_wxUSE_X_RESOURCES=no
1456 DEFAULT_wxUSE_CLIPBOARD=no
1457 DEFAULT_wxUSE_TOOLTIPS=no
1458 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1459 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1460 DEFAULT_wxUSE_SPLINES=no
1461
1462 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1463 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1464 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1465
1466 DEFAULT_wxUSE_PROLOGIO=no
1467 DEFAULT_wxUSE_RESOURCES=no
1468 DEFAULT_wxUSE_CONSTRAINTS=no
1469 DEFAULT_wxUSE_IPC=no
1470 DEFAULT_wxUSE_HELP=no
29fd3c0c 1471 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1472 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1473 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1474 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1475 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1476 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1477 DEFAULT_wxUSE_PROTOCOL=no
1478 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1479 DEFAULT_wxUSE_PROTOCOL_FTP=no
1480 DEFAULT_wxUSE_PROTOCOL_FILE=no
1481 DEFAULT_wxUSE_URL=no
3bd8fb5f 1482
10f2d63a 1483 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1484 DEFAULT_wxUSE_CHOICEDLG=no
1485 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1486 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1487 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1488 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1489 DEFAULT_wxUSE_FONTDLG=no
1490 DEFAULT_wxUSE_MSGDLG=no
1491 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1492 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1493 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_STARTUP_TIPS=no
1495 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1496 DEFAULT_wxUSE_WIZARDDLG=no
1497
1e6feb95 1498 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1499 DEFAULT_wxUSE_MINIFRAME=no
1500 DEFAULT_wxUSE_HTML=no
24528b0c 1501 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1502 DEFAULT_wxUSE_FS_INET=no
1503 DEFAULT_wxUSE_FS_ZIP=no
1504 DEFAULT_wxUSE_BUSYINFO=no
1505 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1506 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1507
1508 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1509 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1510 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_CALCTRL=no
1512 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_CHECKBOX=no
1514 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1515 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_COMBOBOX=no
1517 DEFAULT_wxUSE_GAUGE=no
1518 DEFAULT_wxUSE_GRID=no
1519 DEFAULT_wxUSE_NEW_GRID=no
1520 DEFAULT_wxUSE_IMAGLIST=no
1521 DEFAULT_wxUSE_LISTBOX=no
1522 DEFAULT_wxUSE_LISTCTRL=no
1523 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1524 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_RADIOBOX=no
1526 DEFAULT_wxUSE_RADIOBTN=no
1527 DEFAULT_wxUSE_SASH=no
1528 DEFAULT_wxUSE_SCROLLBAR=no
1529 DEFAULT_wxUSE_SLIDER=no
1530 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1531 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1532 DEFAULT_wxUSE_SPLITTER=no
1533 DEFAULT_wxUSE_STATBMP=no
1534 DEFAULT_wxUSE_STATBOX=no
1535 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1536 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1537 DEFAULT_wxUSE_STATUSBAR=yes
1538 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1539 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1540 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1541 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1542 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1543 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1544 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1545 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1546 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1547
1548 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1549 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_WCSRTOMBS=no
1551
edae8572 1552 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1553 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1554 DEFAULT_wxUSE_GIF=no
1555 DEFAULT_wxUSE_PCX=no
1556 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1557 DEFAULT_wxUSE_IFF=no
0046ff7c 1558 DEFAULT_wxUSE_XPM=no
658974ae 1559 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1560else
1e6feb95
VZ
1561 DEFAULT_wxUSE_UNIVERSAL=no
1562
d8356fa3
VZ
1563 DEFAULT_wxUSE_NANOX=no
1564
10f2d63a
VZ
1565 DEFAULT_wxUSE_THREADS=yes
1566
1567 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1568 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1569 DEFAULT_wxUSE_OPTIMISE=yes
1570 DEFAULT_wxUSE_PROFILE=no
1571 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1572 DEFAULT_wxUSE_NO_RTTI=no
1573 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1574 DEFAULT_wxUSE_PERMISSIVE=no
1575 DEFAULT_wxUSE_DEBUG_FLAG=no
1576 DEFAULT_wxUSE_DEBUG_INFO=no
1577 DEFAULT_wxUSE_DEBUG_GDB=no
1578 DEFAULT_wxUSE_MEM_TRACING=no
1579 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1580 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1581 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_APPLE_IEEE=yes
1583
1584 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1585 DEFAULT_wxUSE_LOGWINDOW=yes
1586 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1587 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1588
1589 DEFAULT_wxUSE_GUI=yes
1590
831b3152 1591 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1592 DEFAULT_wxUSE_ZLIB=yes
1593 DEFAULT_wxUSE_LIBPNG=yes
1594 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1595 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1596 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1597 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1598
eb4efbdc 1599 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1600 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1601 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1602 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1603 DEFAULT_wxUSE_DATETIME=yes
1604 DEFAULT_wxUSE_TIMEDATE=no
1605 DEFAULT_wxUSE_TIMER=yes
1606 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1607 DEFAULT_wxUSE_FILE=yes
1e6feb95 1608 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1609 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1610 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1611 DEFAULT_wxUSE_WAVE=no
1612 DEFAULT_wxUSE_INTL=yes
1613 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1614 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1615 DEFAULT_wxUSE_STREAMS=yes
1616 DEFAULT_wxUSE_SOCKETS=yes
1617 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1618 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1619 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1620 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1621 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1622 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1623
1624 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1625 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1626 DEFAULT_wxUSE_POSTSCRIPT=yes
1627
1628 DEFAULT_wxUSE_X_RESOURCES=no
1629 DEFAULT_wxUSE_CLIPBOARD=yes
1630 DEFAULT_wxUSE_TOOLTIPS=yes
1631 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1632 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_SPLINES=yes
1634
1635 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1636 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1637 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1638
1639 DEFAULT_wxUSE_PROLOGIO=yes
1640 DEFAULT_wxUSE_RESOURCES=yes
1641 DEFAULT_wxUSE_CONSTRAINTS=yes
1642 DEFAULT_wxUSE_IPC=yes
1643 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1644 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1645 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1646 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1647 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1648 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1649 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1650 DEFAULT_wxUSE_PROTOCOL=yes
1651 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1652 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1653 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1654 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1655
1656 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1657 DEFAULT_wxUSE_CHOICEDLG=yes
1658 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1659 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1660 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1661 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1662 DEFAULT_wxUSE_FONTDLG=yes
1663 DEFAULT_wxUSE_MSGDLG=yes
1664 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1665 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1666 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1667 DEFAULT_wxUSE_STARTUP_TIPS=yes
1668 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1669 DEFAULT_wxUSE_WIZARDDLG=yes
1670
1e6feb95 1671 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1672 DEFAULT_wxUSE_MINIFRAME=yes
1673 DEFAULT_wxUSE_HTML=yes
24528b0c 1674 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1675 DEFAULT_wxUSE_FS_INET=yes
1676 DEFAULT_wxUSE_FS_ZIP=yes
1677 DEFAULT_wxUSE_BUSYINFO=yes
1678 DEFAULT_wxUSE_ZIPSTREAM=yes
1679 DEFAULT_wxUSE_VALIDATORS=yes
1680
1681 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1682 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1683 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_CALCTRL=yes
1685 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_CHECKBOX=yes
1687 DEFAULT_wxUSE_CHECKLST=yes
1688 DEFAULT_wxUSE_CHOICE=yes
1689 DEFAULT_wxUSE_COMBOBOX=yes
1690 DEFAULT_wxUSE_GAUGE=yes
1691 DEFAULT_wxUSE_GRID=yes
cc977e5f 1692 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1693 DEFAULT_wxUSE_IMAGLIST=yes
1694 DEFAULT_wxUSE_LISTBOX=yes
1695 DEFAULT_wxUSE_LISTCTRL=yes
1696 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1697 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_RADIOBOX=yes
1699 DEFAULT_wxUSE_RADIOBTN=yes
1700 DEFAULT_wxUSE_SASH=yes
1701 DEFAULT_wxUSE_SCROLLBAR=yes
1702 DEFAULT_wxUSE_SLIDER=yes
1703 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1704 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_SPLITTER=yes
1706 DEFAULT_wxUSE_STATBMP=yes
1707 DEFAULT_wxUSE_STATBOX=yes
1708 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1709 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_STATUSBAR=yes
1711 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1712 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1713 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1714 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1715 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1716 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1717 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1718 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1719 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1720
1721 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1722 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1723 DEFAULT_wxUSE_WCSRTOMBS=no
1724
edae8572 1725 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1726 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1727 DEFAULT_wxUSE_GIF=yes
1728 DEFAULT_wxUSE_PCX=yes
cc0e8480 1729 DEFAULT_wxUSE_IFF=no
10f2d63a 1730 DEFAULT_wxUSE_PNM=yes
0046ff7c 1731 DEFAULT_wxUSE_XPM=yes
658974ae 1732 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1733fi
1734
698dcdb6
VZ
1735
1736
10f2d63a
VZ
1737for toolkit in `echo $ALL_TOOLKITS`; do
1738 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1739 if test "x$LINE" != x ; then
1740 has_toolkit_in_cache=1
1741 eval "DEFAULT_$LINE"
1742 eval "CACHE_$toolkit=1"
1743 fi
1744done
1745
698dcdb6
VZ
1746
1747
1748 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
3bd8fb5f 1749echo "configure:1750: checking for --enable-gui" >&5
10f2d63a
VZ
1750 no_cache=0
1751 # Check whether --enable-gui or --disable-gui was given.
1752if test "${enable_gui+set}" = set; then
1753 enableval="$enable_gui"
698dcdb6 1754
10f2d63a
VZ
1755 if test "$enableval" = yes; then
1756 ac_cv_use_gui='wxUSE_GUI=yes'
1757 else
1758 ac_cv_use_gui='wxUSE_GUI=no'
1759 fi
698dcdb6 1760
10f2d63a 1761else
698dcdb6 1762
10f2d63a
VZ
1763 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1764 if test "x$LINE" != x ; then
1765 eval "DEFAULT_$LINE"
1766 else
1767 no_cache=1
1768 fi
1769
1770 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1771
1772fi
10f2d63a
VZ
1773
1774
1775 eval "$ac_cv_use_gui"
1776 if test "$no_cache" != 1; then
1777 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1778 fi
1779
1780 if test "$wxUSE_GUI" = yes; then
698dcdb6 1781 echo "$ac_t""yes" 1>&6
10f2d63a 1782 else
698dcdb6 1783 echo "$ac_t""no" 1>&6
10f2d63a 1784 fi
698dcdb6 1785
10f2d63a 1786
b12915c1 1787if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1788
1e6feb95
VZ
1789
1790 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
3bd8fb5f 1791echo "configure:1792: checking for --enable-universal" >&5
1e6feb95
VZ
1792 no_cache=0
1793 # Check whether --enable-universal or --disable-universal was given.
1794if test "${enable_universal+set}" = set; then
1795 enableval="$enable_universal"
1796
1797 if test "$enableval" = yes; then
1798 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1799 else
1800 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1801 fi
1802
1803else
1804
1805 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1806 if test "x$LINE" != x ; then
1807 eval "DEFAULT_$LINE"
1808 else
1809 no_cache=1
1810 fi
1811
1812 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1813
1814fi
1815
1816
1817 eval "$ac_cv_use_universal"
1818 if test "$no_cache" != 1; then
1819 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1820 fi
1821
1822 if test "$wxUSE_UNIVERSAL" = yes; then
1823 echo "$ac_t""yes" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1826 fi
1827
10f2d63a
VZ
1828# Check whether --with-gtk or --without-gtk was given.
1829if test "${with_gtk+set}" = set; then
1830 withval="$with_gtk"
1831 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1832fi
10f2d63a
VZ
1833
1834# Check whether --with-motif or --without-motif was given.
1835if test "${with_motif+set}" = set; then
1836 withval="$with_motif"
1837 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1838fi
10f2d63a 1839
b4085ce6
GD
1840# Check whether --with-mac or --without-mac was given.
1841if test "${with_mac+set}" = set; then
1842 withval="$with_mac"
1843 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1844fi
b4085ce6 1845
10f2d63a
VZ
1846# Check whether --with-wine or --without-wine was given.
1847if test "${with_wine+set}" = set; then
1848 withval="$with_wine"
1849 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1850fi
10f2d63a 1851
77e13408
RL
1852# Check whether --with-msw or --without-msw was given.
1853if test "${with_msw+set}" = set; then
1854 withval="$with_msw"
b4efce5e 1855 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1856fi
10f2d63a 1857
e07802fc
VZ
1858# Check whether --with-pm or --without-pm was given.
1859if test "${with_pm+set}" = set; then
1860 withval="$with_pm"
1861 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1862fi
1863
1e6feb95
VZ
1864# Check whether --with-mgl or --without-mgl was given.
1865if test "${with_mgl+set}" = set; then
1866 withval="$with_mgl"
6c657b52 1867 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1e6feb95
VZ
1868fi
1869
1725144d
RR
1870# Check whether --with-microwin or --without-microwin was given.
1871if test "${with_microwin+set}" = set; then
1872 withval="$with_microwin"
1873 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1874fi
1875
f79bd02d
JS
1876# Check whether --with-x11 or --without-x11 was given.
1877if test "${with_x11+set}" = set; then
1878 withval="$with_x11"
3c011993 1879 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1880fi
1881
10f2d63a 1882
ba875e66 1883 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
3bd8fb5f 1884echo "configure:1885: checking for --enable-nanox" >&5
d8356fa3 1885 no_cache=0
ba875e66
VZ
1886 # Check whether --enable-nanox or --disable-nanox was given.
1887if test "${enable_nanox+set}" = set; then
1888 enableval="$enable_nanox"
d8356fa3
VZ
1889
1890 if test "$enableval" = yes; then
ba875e66 1891 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1892 else
ba875e66 1893 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1894 fi
1895
1896else
1897
1898 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
ba875e66 1905 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1906
1907fi
1908
1909
ba875e66 1910 eval "$ac_cv_use_nanox"
d8356fa3 1911 if test "$no_cache" != 1; then
ba875e66 1912 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1913 fi
1914
1915 if test "$wxUSE_NANOX" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
8168de4c
VZ
1922# Check whether --enable-gtk2 or --disable-gtk2 was given.
1923if test "${enable_gtk2+set}" = set; then
1924 enableval="$enable_gtk2"
9e691f46 1925 wxUSE_GTK2="yes"
10f2d63a 1926else
9e691f46 1927 wxUSE_GTK2="no"
698dcdb6
VZ
1928fi
1929
703e0a69 1930
1e487827 1931
698dcdb6 1932 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3bd8fb5f 1933echo "configure:1934: checking for --with-libpng" >&5
698dcdb6
VZ
1934 no_cache=0
1935 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1936if test "${with_libpng+set}" = set; then
1937 withval="$with_libpng"
698dcdb6 1938
10f2d63a 1939 if test "$withval" = yes; then
b12915c1 1940 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1941 elif test "$withval" = no; then
b12915c1 1942 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1943 elif test "$withval" = sys; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1945 elif test "$withval" = builtin; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1947 else
4f14bcd8 1948 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1949 fi
698dcdb6 1950
10f2d63a 1951else
698dcdb6 1952
b12915c1 1953 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
b12915c1 1960 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1961
1962fi
10f2d63a
VZ
1963
1964
b12915c1 1965 eval "$ac_cv_use_libpng"
10f2d63a 1966 if test "$no_cache" != 1; then
b12915c1 1967 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1968 fi
1969
b12915c1 1970 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1971 echo "$ac_t""yes" 1>&6
422107f9 1972 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1973 echo "$ac_t""no" 1>&6
422107f9 1974 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1975 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1976 elif test "$wxUSE_LIBPNG" = builtin; then
1977 echo "$ac_t""builtin version" 1>&6
422107f9 1978 else
4f14bcd8 1979 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1980 fi
698dcdb6 1981
10f2d63a 1982
698dcdb6 1983 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3bd8fb5f 1984echo "configure:1985: checking for --with-libjpeg" >&5
10f2d63a 1985 no_cache=0
698dcdb6 1986 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1987if test "${with_libjpeg+set}" = set; then
1988 withval="$with_libjpeg"
698dcdb6 1989
10f2d63a 1990 if test "$withval" = yes; then
b12915c1 1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1992 elif test "$withval" = no; then
b12915c1 1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1994 elif test "$withval" = sys; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1996 elif test "$withval" = builtin; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1998 else
4f14bcd8 1999 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2000 fi
698dcdb6 2001
10f2d63a 2002else
698dcdb6 2003
b12915c1 2004 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
b12915c1 2011 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2012
2013fi
10f2d63a
VZ
2014
2015
b12915c1 2016 eval "$ac_cv_use_libjpeg"
10f2d63a 2017 if test "$no_cache" != 1; then
b12915c1 2018 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2019 fi
2020
b12915c1 2021 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2022 echo "$ac_t""yes" 1>&6
422107f9 2023 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2024 echo "$ac_t""no" 1>&6
422107f9 2025 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2026 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2027 elif test "$wxUSE_LIBJPEG" = builtin; then
2028 echo "$ac_t""builtin version" 1>&6
422107f9 2029 else
4f14bcd8 2030 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2031 fi
698dcdb6 2032
10f2d63a 2033
698dcdb6 2034 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3bd8fb5f 2035echo "configure:2036: checking for --with-libtiff" >&5
10f2d63a 2036 no_cache=0
698dcdb6 2037 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2038if test "${with_libtiff+set}" = set; then
2039 withval="$with_libtiff"
698dcdb6 2040
10f2d63a 2041 if test "$withval" = yes; then
b12915c1 2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2043 elif test "$withval" = no; then
b12915c1 2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2045 elif test "$withval" = sys; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2047 elif test "$withval" = builtin; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2049 else
4f14bcd8 2050 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2051 fi
698dcdb6 2052
10f2d63a 2053else
698dcdb6 2054
b12915c1 2055 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
b12915c1 2062 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2063
2064fi
10f2d63a
VZ
2065
2066
b12915c1 2067 eval "$ac_cv_use_libtiff"
10f2d63a 2068 if test "$no_cache" != 1; then
b12915c1 2069 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2070 fi
2071
b12915c1 2072 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2073 echo "$ac_t""yes" 1>&6
0dcf9893 2074 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2075 echo "$ac_t""no" 1>&6
0dcf9893 2076 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2077 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2078 elif test "$wxUSE_LIBTIFF" = builtin; then
2079 echo "$ac_t""builtin version" 1>&6
0dcf9893 2080 else
4f14bcd8 2081 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2082 fi
698dcdb6 2083
10f2d63a 2084
698dcdb6 2085 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3bd8fb5f 2086echo "configure:2087: checking for --with-opengl" >&5
10f2d63a 2087 no_cache=0
698dcdb6 2088 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2089if test "${with_opengl+set}" = set; then
2090 withval="$with_opengl"
698dcdb6 2091
10f2d63a 2092 if test "$withval" = yes; then
b12915c1 2093 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2094 else
b12915c1 2095 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2096 fi
698dcdb6 2097
10f2d63a 2098else
698dcdb6 2099
b12915c1 2100 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2101 if test "x$LINE" != x ; then
2102 eval "DEFAULT_$LINE"
2103 else
2104 no_cache=1
2105 fi
2106
b12915c1 2107 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2108
2109fi
10f2d63a
VZ
2110
2111
b12915c1 2112 eval "$ac_cv_use_opengl"
10f2d63a 2113 if test "$no_cache" != 1; then
b12915c1 2114 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2115 fi
2116
b12915c1 2117 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2118 echo "$ac_t""yes" 1>&6
10f2d63a 2119 else
698dcdb6 2120 echo "$ac_t""no" 1>&6
10f2d63a 2121 fi
698dcdb6 2122
10f2d63a 2123
b12915c1
VZ
2124fi
2125
1e487827 2126
698dcdb6 2127 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3bd8fb5f 2128echo "configure:2129: checking for --with-dmalloc" >&5
698dcdb6
VZ
2129 no_cache=0
2130 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2131if test "${with_dmalloc+set}" = set; then
2132 withval="$with_dmalloc"
698dcdb6 2133
c7a2bf27 2134 if test "$withval" = yes; then
b12915c1 2135 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2136 else
b12915c1 2137 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2138 fi
698dcdb6 2139
c7a2bf27 2140else
698dcdb6 2141
b12915c1 2142 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2143 if test "x$LINE" != x ; then
2144 eval "DEFAULT_$LINE"
2145 else
2146 no_cache=1
2147 fi
2148
b12915c1 2149 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2150
2151fi
c7a2bf27
RR
2152
2153
b12915c1 2154 eval "$ac_cv_use_dmalloc"
c7a2bf27 2155 if test "$no_cache" != 1; then
b12915c1 2156 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2157 fi
2158
b12915c1 2159 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2160 echo "$ac_t""yes" 1>&6
c7a2bf27 2161 else
698dcdb6 2162 echo "$ac_t""no" 1>&6
c7a2bf27 2163 fi
698dcdb6 2164
c7a2bf27 2165
3e44f09d 2166 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
3bd8fb5f 2167echo "configure:2168: checking for --with-regex" >&5
3e44f09d
VZ
2168 no_cache=0
2169 # Check whether --with-regex or --without-regex was given.
2170if test "${with_regex+set}" = set; then
2171 withval="$with_regex"
2172
2173 if test "$withval" = yes; then
2174 ac_cv_use_regex='wxUSE_REGEX=yes'
2175 elif test "$withval" = no; then
2176 ac_cv_use_regex='wxUSE_REGEX=no'
2177 elif test "$withval" = sys; then
2178 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2179 elif test "$withval" = builtin; then
2180 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2181 else
4f14bcd8 2182 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2183 fi
2184
2185else
2186
2187 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2188 if test "x$LINE" != x ; then
2189 eval "DEFAULT_$LINE"
2190 else
2191 no_cache=1
2192 fi
2193
2194 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2195
2196fi
2197
2198
2199 eval "$ac_cv_use_regex"
2200 if test "$no_cache" != 1; then
2201 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2202 fi
2203
2204 if test "$wxUSE_REGEX" = yes; then
2205 echo "$ac_t""yes" 1>&6
2206 elif test "$wxUSE_REGEX" = no; then
2207 echo "$ac_t""no" 1>&6
2208 elif test "$wxUSE_REGEX" = sys; then
2209 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2210 elif test "$wxUSE_REGEX" = builtin; then
2211 echo "$ac_t""builtin version" 1>&6
3e44f09d 2212 else
4f14bcd8 2213 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2214 fi
2215
2216
698dcdb6 2217 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3bd8fb5f 2218echo "configure:2219: checking for --with-zlib" >&5
10f2d63a 2219 no_cache=0
698dcdb6 2220 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2221if test "${with_zlib+set}" = set; then
2222 withval="$with_zlib"
698dcdb6 2223
10f2d63a 2224 if test "$withval" = yes; then
b12915c1 2225 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2226 elif test "$withval" = no; then
b12915c1 2227 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2228 elif test "$withval" = sys; then
2229 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2230 elif test "$withval" = builtin; then
2231 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2232 else
4f14bcd8 2233 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2234 fi
698dcdb6 2235
10f2d63a 2236else
698dcdb6 2237
b12915c1 2238 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2239 if test "x$LINE" != x ; then
2240 eval "DEFAULT_$LINE"
2241 else
2242 no_cache=1
2243 fi
2244
b12915c1 2245 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2246
2247fi
10f2d63a
VZ
2248
2249
b12915c1 2250 eval "$ac_cv_use_zlib"
10f2d63a 2251 if test "$no_cache" != 1; then
b12915c1 2252 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2253 fi
2254
b12915c1 2255 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2256 echo "$ac_t""yes" 1>&6
422107f9 2257 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2258 echo "$ac_t""no" 1>&6
422107f9 2259 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2260 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2261 elif test "$wxUSE_ZLIB" = builtin; then
2262 echo "$ac_t""builtin version" 1>&6
422107f9 2263 else
4f14bcd8 2264 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2265 fi
698dcdb6 2266
10f2d63a 2267
698dcdb6 2268 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3bd8fb5f 2269echo "configure:2270: checking for --with-odbc" >&5
10f2d63a 2270 no_cache=0
698dcdb6 2271 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2272if test "${with_odbc+set}" = set; then
2273 withval="$with_odbc"
698dcdb6 2274
10f2d63a
VZ
2275 if test "$withval" = yes; then
2276 ac_cv_use_odbc='wxUSE_ODBC=yes'
2277 else
2278 ac_cv_use_odbc='wxUSE_ODBC=no'
2279 fi
698dcdb6 2280
10f2d63a 2281else
698dcdb6 2282
10f2d63a
VZ
2283 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2284 if test "x$LINE" != x ; then
2285 eval "DEFAULT_$LINE"
2286 else
2287 no_cache=1
2288 fi
2289
2290 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2291
2292fi
10f2d63a
VZ
2293
2294
2295 eval "$ac_cv_use_odbc"
2296 if test "$no_cache" != 1; then
2297 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2298 fi
2299
2300 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2301 echo "$ac_t""yes" 1>&6
10f2d63a 2302 else
698dcdb6 2303 echo "$ac_t""no" 1>&6
10f2d63a 2304 fi
698dcdb6
VZ
2305
2306
10f2d63a 2307
698dcdb6 2308
698dcdb6 2309 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
3bd8fb5f 2310echo "configure:2311: checking for --enable-shared" >&5
10f2d63a
VZ
2311 no_cache=0
2312 # Check whether --enable-shared or --disable-shared was given.
2313if test "${enable_shared+set}" = set; then
2314 enableval="$enable_shared"
698dcdb6 2315
10f2d63a
VZ
2316 if test "$enableval" = yes; then
2317 ac_cv_use_shared='wxUSE_SHARED=yes'
2318 else
2319 ac_cv_use_shared='wxUSE_SHARED=no'
2320 fi
698dcdb6 2321
10f2d63a 2322else
698dcdb6 2323
10f2d63a
VZ
2324 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2325 if test "x$LINE" != x ; then
2326 eval "DEFAULT_$LINE"
2327 else
2328 no_cache=1
2329 fi
2330
2331 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2332
2333fi
10f2d63a
VZ
2334
2335
2336 eval "$ac_cv_use_shared"
2337 if test "$no_cache" != 1; then
2338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2339 fi
2340
2341 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2342 echo "$ac_t""yes" 1>&6
10f2d63a 2343 else
698dcdb6 2344 echo "$ac_t""no" 1>&6
10f2d63a 2345 fi
698dcdb6 2346
10f2d63a 2347
3a922bb4 2348 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
3bd8fb5f 2349echo "configure:2350: checking for --enable-soname" >&5
00cf1208 2350 no_cache=0
3a922bb4
RL
2351 # Check whether --enable-soname or --disable-soname was given.
2352if test "${enable_soname+set}" = set; then
2353 enableval="$enable_soname"
698dcdb6 2354
00cf1208 2355 if test "$enableval" = yes; then
3a922bb4 2356 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2357 else
3a922bb4 2358 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2359 fi
698dcdb6 2360
00cf1208 2361else
698dcdb6 2362
3a922bb4 2363 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
3a922bb4 2370 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2371
2372fi
00cf1208
RR
2373
2374
3a922bb4 2375 eval "$ac_cv_use_soname"
00cf1208 2376 if test "$no_cache" != 1; then
3a922bb4 2377 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2378 fi
2379
3a922bb4 2380 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2381 echo "$ac_t""yes" 1>&6
00cf1208 2382 else
698dcdb6 2383 echo "$ac_t""no" 1>&6
00cf1208 2384 fi
698dcdb6 2385
00cf1208 2386
698dcdb6 2387 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
3bd8fb5f 2388echo "configure:2389: checking for --enable-optimise" >&5
10f2d63a
VZ
2389 no_cache=0
2390 # Check whether --enable-optimise or --disable-optimise was given.
2391if test "${enable_optimise+set}" = set; then
2392 enableval="$enable_optimise"
698dcdb6 2393
10f2d63a
VZ
2394 if test "$enableval" = yes; then
2395 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2396 else
2397 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2398 fi
698dcdb6 2399
10f2d63a 2400else
698dcdb6 2401
10f2d63a
VZ
2402 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2403 if test "x$LINE" != x ; then
2404 eval "DEFAULT_$LINE"
2405 else
2406 no_cache=1
2407 fi
2408
2409 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2410
2411fi
10f2d63a
VZ
2412
2413
2414 eval "$ac_cv_use_optimise"
2415 if test "$no_cache" != 1; then
2416 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2417 fi
2418
2419 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2420 echo "$ac_t""yes" 1>&6
10f2d63a 2421 else
698dcdb6 2422 echo "$ac_t""no" 1>&6
10f2d63a 2423 fi
698dcdb6 2424
10f2d63a 2425
698dcdb6 2426 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
3bd8fb5f 2427echo "configure:2428: checking for --enable-debug" >&5
10f2d63a
VZ
2428 no_cache=0
2429 # Check whether --enable-debug or --disable-debug was given.
2430if test "${enable_debug+set}" = set; then
2431 enableval="$enable_debug"
698dcdb6 2432
10f2d63a
VZ
2433 if test "$enableval" = yes; then
2434 ac_cv_use_debug='wxUSE_DEBUG=yes'
2435 else
2436 ac_cv_use_debug='wxUSE_DEBUG=no'
2437 fi
698dcdb6 2438
10f2d63a 2439else
698dcdb6 2440
10f2d63a
VZ
2441 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2442 if test "x$LINE" != x ; then
2443 eval "DEFAULT_$LINE"
2444 else
2445 no_cache=1
2446 fi
2447
2448 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2449
2450fi
10f2d63a
VZ
2451
2452
2453 eval "$ac_cv_use_debug"
2454 if test "$no_cache" != 1; then
2455 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2456 fi
2457
2458 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2459 echo "$ac_t""yes" 1>&6
10f2d63a 2460 else
698dcdb6 2461 echo "$ac_t""no" 1>&6
10f2d63a 2462 fi
698dcdb6 2463
10f2d63a 2464
683dccda
GD
2465
2466 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
3bd8fb5f 2467echo "configure:2468: checking for --enable-precomp" >&5
683dccda
GD
2468 no_cache=0
2469 # Check whether --enable-precomp or --disable-precomp was given.
2470if test "${enable_precomp+set}" = set; then
2471 enableval="$enable_precomp"
2472
2473 if test "$enableval" = yes; then
2474 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2475 else
2476 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2477 fi
2478
2479else
2480
2481 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2482 if test "x$LINE" != x ; then
2483 eval "DEFAULT_$LINE"
2484 else
2485 no_cache=1
2486 fi
2487
2488 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2489
2490fi
2491
2492
2493 eval "$ac_cv_use_precomp"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_PRECOMP" = yes; then
2499 echo "$ac_t""yes" 1>&6
2500 else
2501 echo "$ac_t""no" 1>&6
2502 fi
2503
2504
10f2d63a
VZ
2505if test "$wxUSE_DEBUG" = "yes"; then
2506 DEFAULT_wxUSE_DEBUG_FLAG=yes
2507 DEFAULT_wxUSE_DEBUG_INFO=yes
2508elif test "$wxUSE_DEBUG" = "no"; then
2509 DEFAULT_wxUSE_DEBUG_FLAG=no
2510 DEFAULT_wxUSE_DEBUG_INFO=no
2511fi
2512
698dcdb6
VZ
2513
2514 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
3bd8fb5f 2515echo "configure:2516: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2516 no_cache=0
2517 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2518if test "${enable_debug_flag+set}" = set; then
2519 enableval="$enable_debug_flag"
698dcdb6 2520
10f2d63a
VZ
2521 if test "$enableval" = yes; then
2522 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2523 else
2524 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2525 fi
698dcdb6 2526
10f2d63a 2527else
698dcdb6 2528
10f2d63a
VZ
2529 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2537
2538fi
10f2d63a
VZ
2539
2540
2541 eval "$ac_cv_use_debug_flag"
2542 if test "$no_cache" != 1; then
2543 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2544 fi
2545
2546 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2547 echo "$ac_t""yes" 1>&6
10f2d63a 2548 else
698dcdb6 2549 echo "$ac_t""no" 1>&6
10f2d63a 2550 fi
698dcdb6 2551
10f2d63a 2552
698dcdb6 2553 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
3bd8fb5f 2554echo "configure:2555: checking for --enable-debug_info" >&5
10f2d63a
VZ
2555 no_cache=0
2556 # Check whether --enable-debug_info or --disable-debug_info was given.
2557if test "${enable_debug_info+set}" = set; then
2558 enableval="$enable_debug_info"
698dcdb6 2559
10f2d63a
VZ
2560 if test "$enableval" = yes; then
2561 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2562 else
2563 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2564 fi
698dcdb6 2565
10f2d63a 2566else
698dcdb6 2567
10f2d63a
VZ
2568 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2569 if test "x$LINE" != x ; then
2570 eval "DEFAULT_$LINE"
2571 else
2572 no_cache=1
2573 fi
2574
2575 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2576
2577fi
10f2d63a
VZ
2578
2579
2580 eval "$ac_cv_use_debug_info"
2581 if test "$no_cache" != 1; then
2582 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2583 fi
2584
2585 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2586 echo "$ac_t""yes" 1>&6
10f2d63a 2587 else
698dcdb6 2588 echo "$ac_t""no" 1>&6
10f2d63a 2589 fi
698dcdb6 2590
10f2d63a 2591
698dcdb6 2592 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
3bd8fb5f 2593echo "configure:2594: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2594 no_cache=0
2595 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2596if test "${enable_debug_gdb+set}" = set; then
2597 enableval="$enable_debug_gdb"
698dcdb6 2598
10f2d63a
VZ
2599 if test "$enableval" = yes; then
2600 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2601 else
2602 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2603 fi
698dcdb6 2604
10f2d63a 2605else
698dcdb6 2606
10f2d63a
VZ
2607 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2608 if test "x$LINE" != x ; then
2609 eval "DEFAULT_$LINE"
2610 else
2611 no_cache=1
2612 fi
2613
2614 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2615
2616fi
10f2d63a
VZ
2617
2618
2619 eval "$ac_cv_use_debug_gdb"
2620 if test "$no_cache" != 1; then
2621 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2622 fi
2623
2624 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2625 echo "$ac_t""yes" 1>&6
10f2d63a 2626 else
698dcdb6 2627 echo "$ac_t""no" 1>&6
10f2d63a 2628 fi
698dcdb6 2629
10f2d63a 2630
698dcdb6 2631 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
3bd8fb5f 2632echo "configure:2633: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2633 no_cache=0
2634 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2635if test "${enable_debug_cntxt+set}" = set; then
2636 enableval="$enable_debug_cntxt"
698dcdb6 2637
10f2d63a
VZ
2638 if test "$enableval" = yes; then
2639 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2640 else
2641 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2642 fi
698dcdb6 2643
10f2d63a 2644else
698dcdb6 2645
10f2d63a
VZ
2646 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2654
2655fi
10f2d63a
VZ
2656
2657
2658 eval "$ac_cv_use_debug_cntxt"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2664 echo "$ac_t""yes" 1>&6
10f2d63a 2665 else
698dcdb6 2666 echo "$ac_t""no" 1>&6
10f2d63a 2667 fi
698dcdb6 2668
10f2d63a 2669
698dcdb6 2670 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
3bd8fb5f 2671echo "configure:2672: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2672 no_cache=0
2673 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2674if test "${enable_mem_tracing+set}" = set; then
2675 enableval="$enable_mem_tracing"
698dcdb6 2676
10f2d63a
VZ
2677 if test "$enableval" = yes; then
2678 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2679 else
2680 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2681 fi
698dcdb6 2682
10f2d63a 2683else
698dcdb6 2684
10f2d63a
VZ
2685 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2686 if test "x$LINE" != x ; then
2687 eval "DEFAULT_$LINE"
2688 else
2689 no_cache=1
2690 fi
2691
2692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2693
2694fi
10f2d63a
VZ
2695
2696
2697 eval "$ac_cv_use_mem_tracing"
2698 if test "$no_cache" != 1; then
2699 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2700 fi
2701
2702 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2703 echo "$ac_t""yes" 1>&6
10f2d63a 2704 else
698dcdb6 2705 echo "$ac_t""no" 1>&6
10f2d63a 2706 fi
698dcdb6 2707
10f2d63a 2708
698dcdb6 2709 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
3bd8fb5f 2710echo "configure:2711: checking for --enable-profile" >&5
10f2d63a
VZ
2711 no_cache=0
2712 # Check whether --enable-profile or --disable-profile was given.
2713if test "${enable_profile+set}" = set; then
2714 enableval="$enable_profile"
698dcdb6 2715
10f2d63a
VZ
2716 if test "$enableval" = yes; then
2717 ac_cv_use_profile='wxUSE_PROFILE=yes'
2718 else
2719 ac_cv_use_profile='wxUSE_PROFILE=no'
2720 fi
698dcdb6 2721
10f2d63a 2722else
698dcdb6 2723
10f2d63a
VZ
2724 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2732
2733fi
10f2d63a
VZ
2734
2735
2736 eval "$ac_cv_use_profile"
2737 if test "$no_cache" != 1; then
2738 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2739 fi
2740
2741 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2742 echo "$ac_t""yes" 1>&6
10f2d63a 2743 else
698dcdb6 2744 echo "$ac_t""no" 1>&6
10f2d63a 2745 fi
698dcdb6 2746
10f2d63a 2747
698dcdb6 2748 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
3bd8fb5f 2749echo "configure:2750: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2750 no_cache=0
2751 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2752if test "${enable_no_rtti+set}" = set; then
2753 enableval="$enable_no_rtti"
698dcdb6 2754
10f2d63a
VZ
2755 if test "$enableval" = yes; then
2756 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2757 else
2758 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2759 fi
698dcdb6 2760
10f2d63a 2761else
698dcdb6 2762
10f2d63a
VZ
2763 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2771
2772fi
10f2d63a
VZ
2773
2774
2775 eval "$ac_cv_use_no_rtti"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2781 echo "$ac_t""yes" 1>&6
10f2d63a 2782 else
698dcdb6 2783 echo "$ac_t""no" 1>&6
10f2d63a 2784 fi
698dcdb6 2785
10f2d63a 2786
698dcdb6 2787 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
3bd8fb5f 2788echo "configure:2789: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2789 no_cache=0
2790 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2791if test "${enable_no_exceptions+set}" = set; then
2792 enableval="$enable_no_exceptions"
698dcdb6 2793
10f2d63a
VZ
2794 if test "$enableval" = yes; then
2795 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2796 else
2797 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2798 fi
698dcdb6 2799
10f2d63a 2800else
698dcdb6 2801
10f2d63a
VZ
2802 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2803 if test "x$LINE" != x ; then
2804 eval "DEFAULT_$LINE"
2805 else
2806 no_cache=1
2807 fi
2808
2809 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2810
2811fi
10f2d63a
VZ
2812
2813
2814 eval "$ac_cv_use_no_exceptions"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2820 echo "$ac_t""yes" 1>&6
10f2d63a 2821 else
698dcdb6 2822 echo "$ac_t""no" 1>&6
10f2d63a 2823 fi
698dcdb6 2824
10f2d63a 2825
698dcdb6 2826 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
3bd8fb5f 2827echo "configure:2828: checking for --enable-permissive" >&5
10f2d63a
VZ
2828 no_cache=0
2829 # Check whether --enable-permissive or --disable-permissive was given.
2830if test "${enable_permissive+set}" = set; then
2831 enableval="$enable_permissive"
698dcdb6 2832
10f2d63a
VZ
2833 if test "$enableval" = yes; then
2834 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2835 else
2836 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2837 fi
698dcdb6 2838
10f2d63a 2839else
698dcdb6 2840
10f2d63a
VZ
2841 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2849
2850fi
10f2d63a
VZ
2851
2852
2853 eval "$ac_cv_use_permissive"
2854 if test "$no_cache" != 1; then
2855 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2856 fi
2857
2858 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2859 echo "$ac_t""yes" 1>&6
10f2d63a 2860 else
698dcdb6 2861 echo "$ac_t""no" 1>&6
10f2d63a 2862 fi
698dcdb6 2863
10f2d63a 2864
698dcdb6 2865 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
3bd8fb5f 2866echo "configure:2867: checking for --enable-no_deps" >&5
10f2d63a
VZ
2867 no_cache=0
2868 # Check whether --enable-no_deps or --disable-no_deps was given.
2869if test "${enable_no_deps+set}" = set; then
2870 enableval="$enable_no_deps"
698dcdb6 2871
10f2d63a
VZ
2872 if test "$enableval" = yes; then
2873 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2874 else
2875 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2876 fi
698dcdb6 2877
10f2d63a 2878else
698dcdb6 2879
10f2d63a
VZ
2880 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2881 if test "x$LINE" != x ; then
2882 eval "DEFAULT_$LINE"
2883 else
2884 no_cache=1
2885 fi
2886
2887 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2888
2889fi
10f2d63a
VZ
2890
2891
2892 eval "$ac_cv_use_no_deps"
2893 if test "$no_cache" != 1; then
2894 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2895 fi
2896
2897 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2898 echo "$ac_t""yes" 1>&6
10f2d63a 2899 else
698dcdb6 2900 echo "$ac_t""no" 1>&6
10f2d63a 2901 fi
698dcdb6
VZ
2902
2903
10f2d63a 2904
54276ccf 2905 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
3bd8fb5f 2906echo "configure:2907: checking for --enable-compat20" >&5
54276ccf
VZ
2907 no_cache=0
2908 # Check whether --enable-compat20 or --disable-compat20 was given.
2909if test "${enable_compat20+set}" = set; then
2910 enableval="$enable_compat20"
2911
2912 if test "$enableval" = yes; then
2913 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2914 else
2915 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2916 fi
2917
2918else
2919
2920 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2928
2929fi
2930
2931
2932 eval "$ac_cv_use_compat20"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2938 echo "$ac_t""yes" 1>&6
2939 else
2940 echo "$ac_t""no" 1>&6
2941 fi
2942
2943
2944 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3bd8fb5f 2945echo "configure:2946: checking for --enable-compat22" >&5
54276ccf
VZ
2946 no_cache=0
2947 # Check whether --enable-compat22 or --disable-compat22 was given.
2948if test "${enable_compat22+set}" = set; then
2949 enableval="$enable_compat22"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2953 else
2954 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2955 fi
2956
2957else
2958
2959 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2967
2968fi
2969
2970
2971 eval "$ac_cv_use_compat22"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2977 echo "$ac_t""yes" 1>&6
2978 else
2979 echo "$ac_t""no" 1>&6
2980 fi
2981
2982
3bd8fb5f
RD
2983# Check whether --enable-rpath or --disable-rpath was given.
2984if test "${enable_rpath+set}" = set; then
2985 enableval="$enable_rpath"
2986 wxRPATH_DIR="$enableval"
2987fi
2988
2989
2990if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2991 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2992fi
2993
2994
54276ccf 2995
698dcdb6
VZ
2996
2997 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3bd8fb5f 2998echo "configure:2999: checking for --enable-intl" >&5
10f2d63a
VZ
2999 no_cache=0
3000 # Check whether --enable-intl or --disable-intl was given.
3001if test "${enable_intl+set}" = set; then
3002 enableval="$enable_intl"
698dcdb6 3003
10f2d63a
VZ
3004 if test "$enableval" = yes; then
3005 ac_cv_use_intl='wxUSE_INTL=yes'
3006 else
3007 ac_cv_use_intl='wxUSE_INTL=no'
3008 fi
698dcdb6 3009
10f2d63a 3010else
698dcdb6 3011
10f2d63a
VZ
3012 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3020
3021fi
10f2d63a
VZ
3022
3023
3024 eval "$ac_cv_use_intl"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_INTL" = yes; then
698dcdb6 3030 echo "$ac_t""yes" 1>&6
10f2d63a 3031 else
698dcdb6 3032 echo "$ac_t""no" 1>&6
10f2d63a 3033 fi
698dcdb6 3034
10f2d63a 3035
698dcdb6 3036 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3bd8fb5f 3037echo "configure:3038: checking for --enable-config" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-config or --disable-config was given.
3040if test "${enable_config+set}" = set; then
3041 enableval="$enable_config"
698dcdb6 3042
10f2d63a
VZ
3043 if test "$enableval" = yes; then
3044 ac_cv_use_config='wxUSE_CONFIG=yes'
3045 else
3046 ac_cv_use_config='wxUSE_CONFIG=no'
3047 fi
698dcdb6 3048
10f2d63a 3049else
698dcdb6 3050
10f2d63a
VZ
3051 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3059
3060fi
10f2d63a
VZ
3061
3062
3063 eval "$ac_cv_use_config"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3069 echo "$ac_t""yes" 1>&6
10f2d63a 3070 else
698dcdb6 3071 echo "$ac_t""no" 1>&6
10f2d63a 3072 fi
698dcdb6
VZ
3073
3074
b12915c1 3075
a1622950 3076 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3bd8fb5f 3077echo "configure:3078: checking for --enable-protocols" >&5
a1622950
VZ
3078 no_cache=0
3079 # Check whether --enable-protocols or --disable-protocols was given.
3080if test "${enable_protocols+set}" = set; then
3081 enableval="$enable_protocols"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3085 else
3086 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3087 fi
3088
3089else
3090
3091 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3099
3100fi
3101
3102
3103 eval "$ac_cv_use_protocols"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_PROTOCOL" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3bd8fb5f 3116echo "configure:3117: checking for --enable-ftp" >&5
a1622950
VZ
3117 no_cache=0
3118 # Check whether --enable-ftp or --disable-ftp was given.
3119if test "${enable_ftp+set}" = set; then
3120 enableval="$enable_ftp"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3124 else
3125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_ftp"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3bd8fb5f 3155echo "configure:3156: checking for --enable-http" >&5
a1622950
VZ
3156 no_cache=0
3157 # Check whether --enable-http or --disable-http was given.
3158if test "${enable_http+set}" = set; then
3159 enableval="$enable_http"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3163 else
3164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_http"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3bd8fb5f 3194echo "configure:3195: checking for --enable-fileproto" >&5
a1622950
VZ
3195 no_cache=0
3196 # Check whether --enable-fileproto or --disable-fileproto was given.
3197if test "${enable_fileproto+set}" = set; then
3198 enableval="$enable_fileproto"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3202 else
3203 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3216
3217fi
3218
3219
3220 eval "$ac_cv_use_fileproto"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
698dcdb6 3232 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3bd8fb5f 3233echo "configure:3234: checking for --enable-sockets" >&5
10f2d63a
VZ
3234 no_cache=0
3235 # Check whether --enable-sockets or --disable-sockets was given.
3236if test "${enable_sockets+set}" = set; then
3237 enableval="$enable_sockets"
698dcdb6 3238
10f2d63a
VZ
3239 if test "$enableval" = yes; then
3240 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3241 else
3242 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3243 fi
698dcdb6 3244
10f2d63a 3245else
698dcdb6 3246
10f2d63a
VZ
3247 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3255
3256fi
10f2d63a
VZ
3257
3258
3259 eval "$ac_cv_use_sockets"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3265 echo "$ac_t""yes" 1>&6
10f2d63a 3266 else
698dcdb6 3267 echo "$ac_t""no" 1>&6
10f2d63a 3268 fi
698dcdb6 3269
b12915c1 3270
698dcdb6
VZ
3271
3272 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3bd8fb5f 3273echo "configure:3274: checking for --enable-ipc" >&5
10f2d63a 3274 no_cache=0
eb4efbdc
VZ
3275 # Check whether --enable-ipc or --disable-ipc was given.
3276if test "${enable_ipc+set}" = set; then
3277 enableval="$enable_ipc"
698dcdb6 3278
10f2d63a 3279 if test "$enableval" = yes; then
eb4efbdc 3280 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3281 else
eb4efbdc 3282 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3283 fi
698dcdb6 3284
10f2d63a 3285else
698dcdb6 3286
eb4efbdc 3287 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
eb4efbdc 3294 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3295
3296fi
10f2d63a
VZ
3297
3298
eb4efbdc 3299 eval "$ac_cv_use_ipc"
10f2d63a 3300 if test "$no_cache" != 1; then
eb4efbdc 3301 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3302 fi
3303
eb4efbdc 3304 if test "$wxUSE_IPC" = yes; then
698dcdb6 3305 echo "$ac_t""yes" 1>&6
10f2d63a 3306 else
698dcdb6 3307 echo "$ac_t""no" 1>&6
10f2d63a 3308 fi
698dcdb6
VZ
3309
3310
eb4efbdc 3311
1e6feb95 3312 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3bd8fb5f 3313echo "configure:3314: checking for --enable-cmdline" >&5
1e6feb95
VZ
3314 no_cache=0
3315 # Check whether --enable-cmdline or --disable-cmdline was given.
3316if test "${enable_cmdline+set}" = set; then
3317 enableval="$enable_cmdline"
3318
3319 if test "$enableval" = yes; then
3320 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3321 else
3322 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3323 fi
3324
3325else
3326
3327 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3335
3336fi
3337
3338
3339 eval "$ac_cv_use_cmdline"
3340 if test "$no_cache" != 1; then
3341 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3342 fi
3343
3344 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3345 echo "$ac_t""yes" 1>&6
3346 else
3347 echo "$ac_t""no" 1>&6
3348 fi
3349
3350
3351 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3bd8fb5f 3352echo "configure:3353: checking for --enable-datetime" >&5
1e6feb95
VZ
3353 no_cache=0
3354 # Check whether --enable-datetime or --disable-datetime was given.
3355if test "${enable_datetime+set}" = set; then
3356 enableval="$enable_datetime"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3360 else
3361 ac_cv_use_datetime='wxUSE_DATETIME=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_datetime"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_DATETIME" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3bd8fb5f 3391echo "configure:3392: checking for --enable-timedate" >&5
1e6feb95
VZ
3392 no_cache=0
3393 # Check whether --enable-timedate or --disable-timedate was given.
3394if test "${enable_timedate+set}" = set; then
3395 enableval="$enable_timedate"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3399 else
3400 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_timedate"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_TIMEDATE" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3bd8fb5f 3430echo "configure:3431: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3431 no_cache=0
3432 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3433if test "${enable_stopwatch+set}" = set; then
3434 enableval="$enable_stopwatch"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3438 else
3439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_stopwatch"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_STOPWATCH" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
698dcdb6 3468 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3bd8fb5f 3469echo "configure:3470: checking for --enable-dialupman" >&5
10f2d63a 3470 no_cache=0
eb4efbdc
VZ
3471 # Check whether --enable-dialupman or --disable-dialupman was given.
3472if test "${enable_dialupman+set}" = set; then
3473 enableval="$enable_dialupman"
698dcdb6 3474
10f2d63a 3475 if test "$enableval" = yes; then
eb4efbdc 3476 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3477 else
eb4efbdc 3478 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3479 fi
698dcdb6 3480
10f2d63a 3481else
698dcdb6 3482
eb4efbdc 3483 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
eb4efbdc 3490 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3491
3492fi
10f2d63a
VZ
3493
3494
eb4efbdc 3495 eval "$ac_cv_use_dialupman"
10f2d63a 3496 if test "$no_cache" != 1; then
eb4efbdc 3497 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3498 fi
3499
eb4efbdc 3500 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3501 echo "$ac_t""yes" 1>&6
10f2d63a 3502 else
698dcdb6 3503 echo "$ac_t""no" 1>&6
10f2d63a 3504 fi
698dcdb6 3505
10f2d63a 3506
698dcdb6 3507 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3bd8fb5f 3508echo "configure:3509: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3509 no_cache=0
3510 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3511if test "${enable_apple_ieee+set}" = set; then
3512 enableval="$enable_apple_ieee"
698dcdb6 3513
10f2d63a
VZ
3514 if test "$enableval" = yes; then
3515 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3516 else
3517 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3518 fi
698dcdb6 3519
10f2d63a 3520else
698dcdb6 3521
10f2d63a
VZ
3522 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3530
3531fi
10f2d63a
VZ
3532
3533
3534 eval "$ac_cv_use_apple_ieee"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3540 echo "$ac_t""yes" 1>&6
10f2d63a 3541 else
698dcdb6 3542 echo "$ac_t""no" 1>&6
10f2d63a 3543 fi
698dcdb6 3544
10f2d63a 3545
1e6feb95 3546 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3bd8fb5f 3547echo "configure:3548: checking for --enable-timer" >&5
10f2d63a 3548 no_cache=0
1e6feb95
VZ
3549 # Check whether --enable-timer or --disable-timer was given.
3550if test "${enable_timer+set}" = set; then
3551 enableval="$enable_timer"
698dcdb6 3552
10f2d63a 3553 if test "$enableval" = yes; then
1e6feb95 3554 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3555 else
1e6feb95 3556 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3557 fi
698dcdb6 3558
10f2d63a 3559else
698dcdb6 3560
1e6feb95 3561 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
1e6feb95 3568 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3569
3570fi
10f2d63a
VZ
3571
3572
1e6feb95 3573 eval "$ac_cv_use_timer"
10f2d63a 3574 if test "$no_cache" != 1; then
1e6feb95 3575 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3576 fi
3577
1e6feb95 3578 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3579 echo "$ac_t""yes" 1>&6
10f2d63a 3580 else
698dcdb6 3581 echo "$ac_t""no" 1>&6
10f2d63a 3582 fi
698dcdb6 3583
10f2d63a 3584
698dcdb6 3585 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3bd8fb5f 3586echo "configure:3587: checking for --enable-wave" >&5
10f2d63a
VZ
3587 no_cache=0
3588 # Check whether --enable-wave or --disable-wave was given.
3589if test "${enable_wave+set}" = set; then
3590 enableval="$enable_wave"
698dcdb6 3591
10f2d63a
VZ
3592 if test "$enableval" = yes; then
3593 ac_cv_use_wave='wxUSE_WAVE=yes'
3594 else
3595 ac_cv_use_wave='wxUSE_WAVE=no'
3596 fi
698dcdb6 3597
10f2d63a 3598else
698dcdb6 3599
10f2d63a
VZ
3600 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3608
3609fi
10f2d63a
VZ
3610
3611
3612 eval "$ac_cv_use_wave"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3618 echo "$ac_t""yes" 1>&6
10f2d63a 3619 else
698dcdb6 3620 echo "$ac_t""no" 1>&6
10f2d63a 3621 fi
698dcdb6 3622
10f2d63a 3623
698dcdb6 3624 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3bd8fb5f 3625echo "configure:3626: checking for --enable-fraction" >&5
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-fraction or --disable-fraction was given.
3628if test "${enable_fraction+set}" = set; then
3629 enableval="$enable_fraction"
698dcdb6 3630
10f2d63a
VZ
3631 if test "$enableval" = yes; then
3632 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3633 else
3634 ac_cv_use_fraction='wxUSE_FRACTION=no'
3635 fi
698dcdb6 3636
10f2d63a 3637else
698dcdb6 3638
10f2d63a
VZ
3639 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3647
3648fi
10f2d63a
VZ
3649
3650
3651 eval "$ac_cv_use_fraction"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3657 echo "$ac_t""yes" 1>&6
10f2d63a 3658 else
698dcdb6 3659 echo "$ac_t""no" 1>&6
10f2d63a 3660 fi
698dcdb6 3661
10f2d63a 3662
698dcdb6 3663 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3bd8fb5f 3664echo "configure:3665: checking for --enable-dynlib" >&5
10f2d63a
VZ
3665 no_cache=0
3666 # Check whether --enable-dynlib or --disable-dynlib was given.
3667if test "${enable_dynlib+set}" = set; then
3668 enableval="$enable_dynlib"
698dcdb6 3669
10f2d63a
VZ
3670 if test "$enableval" = yes; then
3671 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3672 else
3673 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3674 fi
698dcdb6 3675
10f2d63a 3676else
698dcdb6 3677
10f2d63a
VZ
3678 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3686
3687fi
10f2d63a
VZ
3688
3689
3690 eval "$ac_cv_use_dynlib"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3696 echo "$ac_t""yes" 1>&6
10f2d63a 3697 else
698dcdb6 3698 echo "$ac_t""no" 1>&6
10f2d63a 3699 fi
698dcdb6 3700
10f2d63a 3701
0b9ab0bd 3702 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3bd8fb5f 3703echo "configure:3704: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3704 no_cache=0
3705 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3706if test "${enable_dynamicloader+set}" = set; then
3707 enableval="$enable_dynamicloader"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3711 else
3712 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_dynamicloader"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
698dcdb6 3741 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3bd8fb5f 3742echo "configure:3743: checking for --enable-longlong" >&5
10f2d63a
VZ
3743 no_cache=0
3744 # Check whether --enable-longlong or --disable-longlong was given.
3745if test "${enable_longlong+set}" = set; then
3746 enableval="$enable_longlong"
698dcdb6 3747
10f2d63a
VZ
3748 if test "$enableval" = yes; then
3749 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3750 else
3751 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3752 fi
698dcdb6 3753
10f2d63a 3754else
698dcdb6 3755
10f2d63a
VZ
3756 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3764
3765fi
10f2d63a
VZ
3766
3767
3768 eval "$ac_cv_use_longlong"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3774 echo "$ac_t""yes" 1>&6
10f2d63a 3775 else
698dcdb6 3776 echo "$ac_t""no" 1>&6
10f2d63a 3777 fi
698dcdb6 3778
10f2d63a 3779
698dcdb6 3780 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3bd8fb5f 3781echo "configure:3782: checking for --enable-geometry" >&5
e8f65ba6
RR
3782 no_cache=0
3783 # Check whether --enable-geometry or --disable-geometry was given.
3784if test "${enable_geometry+set}" = set; then
3785 enableval="$enable_geometry"
698dcdb6 3786
e8f65ba6
RR
3787 if test "$enableval" = yes; then
3788 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3789 else
3790 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3791 fi
698dcdb6 3792
e8f65ba6 3793else
698dcdb6 3794
e8f65ba6
RR
3795 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3803
3804fi
e8f65ba6
RR
3805
3806
3807 eval "$ac_cv_use_geometry"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3813 echo "$ac_t""yes" 1>&6
e8f65ba6 3814 else
698dcdb6 3815 echo "$ac_t""no" 1>&6
e8f65ba6 3816 fi
698dcdb6 3817
e8f65ba6 3818
698dcdb6 3819 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3bd8fb5f 3820echo "configure:3821: checking for --enable-log" >&5
10f2d63a
VZ
3821 no_cache=0
3822 # Check whether --enable-log or --disable-log was given.
3823if test "${enable_log+set}" = set; then
3824 enableval="$enable_log"
698dcdb6 3825
10f2d63a
VZ
3826 if test "$enableval" = yes; then
3827 ac_cv_use_log='wxUSE_LOG=yes'
3828 else
3829 ac_cv_use_log='wxUSE_LOG=no'
3830 fi
698dcdb6 3831
10f2d63a 3832else
698dcdb6 3833
10f2d63a
VZ
3834 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3842
3843fi
10f2d63a
VZ
3844
3845
3846 eval "$ac_cv_use_log"
3847 if test "$no_cache" != 1; then
3848 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3849 fi
3850
3851 if test "$wxUSE_LOG" = yes; then
698dcdb6 3852 echo "$ac_t""yes" 1>&6
10f2d63a 3853 else
698dcdb6 3854 echo "$ac_t""no" 1>&6
10f2d63a 3855 fi
698dcdb6 3856
10f2d63a 3857
698dcdb6 3858 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3bd8fb5f 3859echo "configure:3860: checking for --enable-streams" >&5
10f2d63a
VZ
3860 no_cache=0
3861 # Check whether --enable-streams or --disable-streams was given.
3862if test "${enable_streams+set}" = set; then
3863 enableval="$enable_streams"
698dcdb6 3864
10f2d63a
VZ
3865 if test "$enableval" = yes; then
3866 ac_cv_use_streams='wxUSE_STREAMS=yes'
3867 else
3868 ac_cv_use_streams='wxUSE_STREAMS=no'
3869 fi
698dcdb6 3870
10f2d63a 3871else
698dcdb6 3872
10f2d63a
VZ
3873 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3881
3882fi
10f2d63a
VZ
3883
3884
3885 eval "$ac_cv_use_streams"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3891 echo "$ac_t""yes" 1>&6
10f2d63a 3892 else
698dcdb6 3893 echo "$ac_t""no" 1>&6
10f2d63a 3894 fi
698dcdb6 3895
10f2d63a 3896
698dcdb6 3897 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3bd8fb5f 3898echo "configure:3899: checking for --enable-file" >&5
10f2d63a
VZ
3899 no_cache=0
3900 # Check whether --enable-file or --disable-file was given.
3901if test "${enable_file+set}" = set; then
3902 enableval="$enable_file"
698dcdb6 3903
10f2d63a
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_file='wxUSE_FILE=yes'
3906 else
3907 ac_cv_use_file='wxUSE_FILE=no'
3908 fi
698dcdb6 3909
10f2d63a 3910else
698dcdb6 3911
10f2d63a
VZ
3912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3920
3921fi
10f2d63a
VZ
3922
3923
3924 eval "$ac_cv_use_file"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_FILE" = yes; then
698dcdb6 3930 echo "$ac_t""yes" 1>&6
10f2d63a 3931 else
698dcdb6 3932 echo "$ac_t""no" 1>&6
10f2d63a 3933 fi
698dcdb6 3934
10f2d63a 3935
1e6feb95 3936 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3bd8fb5f 3937echo "configure:3938: checking for --enable-ffile" >&5
10f2d63a 3938 no_cache=0
1e6feb95
VZ
3939 # Check whether --enable-ffile or --disable-ffile was given.
3940if test "${enable_ffile+set}" = set; then
3941 enableval="$enable_ffile"
698dcdb6 3942
10f2d63a 3943 if test "$enableval" = yes; then
1e6feb95 3944 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3945 else
1e6feb95 3946 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3947 fi
698dcdb6 3948
10f2d63a 3949else
698dcdb6 3950
1e6feb95 3951 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
1e6feb95 3958 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3959
3960fi
10f2d63a
VZ
3961
3962
1e6feb95 3963 eval "$ac_cv_use_ffile"
10f2d63a 3964 if test "$no_cache" != 1; then
1e6feb95 3965 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3966 fi
3967
1e6feb95 3968 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3969 echo "$ac_t""yes" 1>&6
10f2d63a 3970 else
698dcdb6 3971 echo "$ac_t""no" 1>&6
10f2d63a 3972 fi
698dcdb6 3973
10f2d63a 3974
a3a584a7 3975 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3bd8fb5f 3976echo "configure:3977: checking for --enable-textbuf" >&5
a3a584a7
VZ
3977 no_cache=0
3978 # Check whether --enable-textbuf or --disable-textbuf was given.
3979if test "${enable_textbuf+set}" = set; then
3980 enableval="$enable_textbuf"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3984 else
3985 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3998
3999fi
4000
4001
4002 eval "$ac_cv_use_textbuf"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_TEXTBUFFER" = yes; then
4008 echo "$ac_t""yes" 1>&6
4009 else
4010 echo "$ac_t""no" 1>&6
4011 fi
4012
4013
1e6feb95 4014 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3bd8fb5f 4015echo "configure:4016: checking for --enable-textfile" >&5
10f2d63a 4016 no_cache=0
1e6feb95
VZ
4017 # Check whether --enable-textfile or --disable-textfile was given.
4018if test "${enable_textfile+set}" = set; then
4019 enableval="$enable_textfile"
698dcdb6 4020
10f2d63a 4021 if test "$enableval" = yes; then
1e6feb95 4022 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4023 else
1e6feb95 4024 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4025 fi
698dcdb6 4026
10f2d63a 4027else
698dcdb6 4028
1e6feb95 4029 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
1e6feb95 4036 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4037
4038fi
10f2d63a
VZ
4039
4040
1e6feb95 4041 eval "$ac_cv_use_textfile"
10f2d63a 4042 if test "$no_cache" != 1; then
1e6feb95 4043 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4044 fi
4045
1e6feb95 4046 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4047 echo "$ac_t""yes" 1>&6
10f2d63a 4048 else
698dcdb6 4049 echo "$ac_t""no" 1>&6
10f2d63a 4050 fi
698dcdb6 4051
10f2d63a 4052
1e6feb95 4053 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3bd8fb5f 4054echo "configure:4055: checking for --enable-fontmap" >&5
10f2d63a 4055 no_cache=0
1e6feb95
VZ
4056 # Check whether --enable-fontmap or --disable-fontmap was given.
4057if test "${enable_fontmap+set}" = set; then
4058 enableval="$enable_fontmap"
698dcdb6 4059
10f2d63a 4060 if test "$enableval" = yes; then
1e6feb95 4061 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4062 else
1e6feb95 4063 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4064 fi
698dcdb6 4065
10f2d63a 4066else
698dcdb6 4067
1e6feb95 4068 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
1e6feb95 4075 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4076
4077fi
10f2d63a
VZ
4078
4079
1e6feb95 4080 eval "$ac_cv_use_fontmap"
10f2d63a 4081 if test "$no_cache" != 1; then
1e6feb95 4082 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4083 fi
4084
1e6feb95 4085 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4086 echo "$ac_t""yes" 1>&6
10f2d63a 4087 else
698dcdb6 4088 echo "$ac_t""no" 1>&6
10f2d63a 4089 fi
698dcdb6 4090
10f2d63a 4091
1e6feb95 4092 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3bd8fb5f 4093echo "configure:4094: checking for --enable-unicode" >&5
10f2d63a 4094 no_cache=0
1e6feb95
VZ
4095 # Check whether --enable-unicode or --disable-unicode was given.
4096if test "${enable_unicode+set}" = set; then
4097 enableval="$enable_unicode"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4101 else
4102 ac_cv_use_unicode='wxUSE_UNICODE=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4115
4116fi
4117
4118
4119 eval "$ac_cv_use_unicode"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_UNICODE" = yes; then
4125 echo "$ac_t""yes" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4128 fi
4129
4130
a72a4bfa 4131 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
3bd8fb5f 4132echo "configure:4133: checking for --enable-mslu" >&5
a72a4bfa
VS
4133 no_cache=0
4134 # Check whether --enable-mslu or --disable-mslu was given.
4135if test "${enable_mslu+set}" = set; then
4136 enableval="$enable_mslu"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4140 else
4141 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4142 fi
4143
4144else
4145
4146 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4154
4155fi
4156
4157
4158 eval "$ac_cv_use_mslu"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_UNICODE_MSLU" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
1e6feb95 4170 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3bd8fb5f 4171echo "configure:4172: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4172 no_cache=0
4173 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4174if test "${enable_wxprintfv+set}" = set; then
4175 enableval="$enable_wxprintfv"
4176
4177 if test "$enableval" = yes; then
10f2d63a
VZ
4178 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4179 else
4180 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4181 fi
698dcdb6 4182
10f2d63a 4183else
698dcdb6 4184
10f2d63a
VZ
4185 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4193
4194fi
10f2d63a
VZ
4195
4196
4197 eval "$ac_cv_use_wxprintfv"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4203 echo "$ac_t""yes" 1>&6
10f2d63a 4204 else
698dcdb6 4205 echo "$ac_t""no" 1>&6
10f2d63a 4206 fi
698dcdb6 4207
10f2d63a 4208
698dcdb6 4209 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3bd8fb5f 4210echo "configure:4211: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4211 no_cache=0
4212 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4213if test "${enable_std_iostreams+set}" = set; then
4214 enableval="$enable_std_iostreams"
698dcdb6 4215
10f2d63a
VZ
4216 if test "$enableval" = yes; then
4217 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4218 else
4219 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4220 fi
698dcdb6 4221
10f2d63a 4222else
698dcdb6 4223
10f2d63a
VZ
4224 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4232
4233fi
10f2d63a
VZ
4234
4235
4236 eval "$ac_cv_use_std_iostreams"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4242 echo "$ac_t""yes" 1>&6
10f2d63a 4243 else
698dcdb6 4244 echo "$ac_t""no" 1>&6
10f2d63a 4245 fi
698dcdb6 4246
10f2d63a 4247
698dcdb6 4248 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3bd8fb5f 4249echo "configure:4250: checking for --enable-filesystem" >&5
24528b0c
VS
4250 no_cache=0
4251 # Check whether --enable-filesystem or --disable-filesystem was given.
4252if test "${enable_filesystem+set}" = set; then
4253 enableval="$enable_filesystem"
698dcdb6 4254
24528b0c
VS
4255 if test "$enableval" = yes; then
4256 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4257 else
4258 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4259 fi
698dcdb6 4260
24528b0c 4261else
698dcdb6 4262
24528b0c
VS
4263 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4271
4272fi
24528b0c
VS
4273
4274
4275 eval "$ac_cv_use_filesystem"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4281 echo "$ac_t""yes" 1>&6
24528b0c 4282 else
698dcdb6 4283 echo "$ac_t""no" 1>&6
24528b0c 4284 fi
698dcdb6 4285
24528b0c 4286
698dcdb6 4287 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3bd8fb5f 4288echo "configure:4289: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4289 no_cache=0
4290 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4291if test "${enable_fs_inet+set}" = set; then
4292 enableval="$enable_fs_inet"
698dcdb6 4293
10f2d63a
VZ
4294 if test "$enableval" = yes; then
4295 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4296 else
4297 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4298 fi
698dcdb6 4299
10f2d63a 4300else
698dcdb6 4301
10f2d63a
VZ
4302 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4310
4311fi
10f2d63a
VZ
4312
4313
4314 eval "$ac_cv_use_fs_inet"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4320 echo "$ac_t""yes" 1>&6
10f2d63a 4321 else
698dcdb6 4322 echo "$ac_t""no" 1>&6
10f2d63a 4323 fi
698dcdb6 4324
10f2d63a 4325
698dcdb6 4326 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3bd8fb5f 4327echo "configure:4328: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4328 no_cache=0
4329 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4330if test "${enable_fs_zip+set}" = set; then
4331 enableval="$enable_fs_zip"
698dcdb6 4332
10f2d63a
VZ
4333 if test "$enableval" = yes; then
4334 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4335 else
4336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4337 fi
698dcdb6 4338
10f2d63a 4339else
698dcdb6 4340
10f2d63a
VZ
4341 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4349
4350fi
10f2d63a
VZ
4351
4352
4353 eval "$ac_cv_use_fs_zip"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4359 echo "$ac_t""yes" 1>&6
10f2d63a 4360 else
698dcdb6 4361 echo "$ac_t""no" 1>&6
10f2d63a 4362 fi
698dcdb6 4363
10f2d63a 4364
698dcdb6 4365 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3bd8fb5f 4366echo "configure:4367: checking for --enable-zipstream" >&5
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-zipstream or --disable-zipstream was given.
4369if test "${enable_zipstream+set}" = set; then
4370 enableval="$enable_zipstream"
698dcdb6 4371
10f2d63a
VZ
4372 if test "$enableval" = yes; then
4373 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4374 else
4375 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4376 fi
698dcdb6 4377
10f2d63a 4378else
698dcdb6 4379
10f2d63a
VZ
4380 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4388
4389fi
10f2d63a
VZ
4390
4391
4392 eval "$ac_cv_use_zipstream"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4398 echo "$ac_t""yes" 1>&6
10f2d63a 4399 else
698dcdb6 4400 echo "$ac_t""no" 1>&6
10f2d63a 4401 fi
698dcdb6 4402
10f2d63a 4403
698dcdb6
VZ
4404
4405 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3bd8fb5f 4406echo "configure:4407: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4407 no_cache=0
4408 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4409if test "${enable_catch_segvs+set}" = set; then
4410 enableval="$enable_catch_segvs"
698dcdb6 4411
eb4efbdc
VZ
4412 if test "$enableval" = yes; then
4413 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4414 else
4415 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4416 fi
698dcdb6 4417
eb4efbdc 4418else
698dcdb6 4419
eb4efbdc
VZ
4420 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4428
4429fi
eb4efbdc
VZ
4430
4431
4432 eval "$ac_cv_use_catch_segvs"
4433 if test "$no_cache" != 1; then
4434 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4435 fi
4436
4437 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4438 echo "$ac_t""yes" 1>&6
eb4efbdc 4439 else
698dcdb6 4440 echo "$ac_t""no" 1>&6
eb4efbdc 4441 fi
698dcdb6 4442
eb4efbdc 4443
698dcdb6 4444 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3bd8fb5f 4445echo "configure:4446: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4446 no_cache=0
4447 # Check whether --enable-snglinst or --disable-snglinst was given.
4448if test "${enable_snglinst+set}" = set; then
4449 enableval="$enable_snglinst"
698dcdb6 4450
4f3c5f06
VZ
4451 if test "$enableval" = yes; then
4452 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4453 else
4454 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4455 fi
698dcdb6 4456
4f3c5f06 4457else
698dcdb6 4458
4f3c5f06
VZ
4459 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4467
4468fi
4f3c5f06
VZ
4469
4470
4471 eval "$ac_cv_use_snglinst"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4477 echo "$ac_t""yes" 1>&6
4f3c5f06 4478 else
698dcdb6 4479 echo "$ac_t""no" 1>&6
4f3c5f06 4480 fi
698dcdb6
VZ
4481
4482
eb4efbdc 4483
1e6feb95 4484 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3bd8fb5f 4485echo "configure:4486: checking for --enable-mimetype" >&5
1e6feb95
VZ
4486 no_cache=0
4487 # Check whether --enable-mimetype or --disable-mimetype was given.
4488if test "${enable_mimetype+set}" = set; then
4489 enableval="$enable_mimetype"
4490
4491 if test "$enableval" = yes; then
4492 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4493 else
4494 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4495 fi
4496
4497else
4498
4499 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4500 if test "x$LINE" != x ; then
4501 eval "DEFAULT_$LINE"
4502 else
4503 no_cache=1
4504 fi
4505
4506 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4507
4508fi
4509
4510
4511 eval "$ac_cv_use_mimetype"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_MIMETYPE" = yes; then
4517 echo "$ac_t""yes" 1>&6
4518 else
4519 echo "$ac_t""no" 1>&6
4520 fi
4521
4522
3e44f09d 4523 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
3bd8fb5f 4524echo "configure:4525: checking for --enable-system_options" >&5
3e44f09d
VZ
4525 no_cache=0
4526 # Check whether --enable-system_options or --disable-system_options was given.
4527if test "${enable_system_options+set}" = set; then
4528 enableval="$enable_system_options"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4532 else
4533 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4534 fi
4535
4536else
4537
4538 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4546
4547fi
4548
4549
4550 eval "$ac_cv_use_system_options"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
1e6feb95 4562
4cdb0ab0 4563 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
3bd8fb5f 4564echo "configure:4565: checking for --enable-url" >&5
4cdb0ab0
VS
4565 no_cache=0
4566 # Check whether --enable-url or --disable-url was given.
4567if test "${enable_url+set}" = set; then
4568 enableval="$enable_url"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_url='wxUSE_URL=yes'
4572 else
4573 ac_cv_use_url='wxUSE_URL=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4586
4587fi
4588
4589
4590 eval "$ac_cv_use_url"
4591 if test "$no_cache" != 1; then
4592 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4593 fi
4594
4595 if test "$wxUSE_URL" = yes; then
4596 echo "$ac_t""yes" 1>&6
4597 else
4598 echo "$ac_t""no" 1>&6
4599 fi
4600
4601
4602 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
3bd8fb5f 4603echo "configure:4604: checking for --enable-protocol" >&5
4cdb0ab0
VS
4604 no_cache=0
4605 # Check whether --enable-protocol or --disable-protocol was given.
4606if test "${enable_protocol+set}" = set; then
4607 enableval="$enable_protocol"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4611 else
4612 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_protocol"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_PROTOCOL" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
3bd8fb5f 4642echo "configure:4643: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4643 no_cache=0
4644 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4645if test "${enable_protocol_http+set}" = set; then
4646 enableval="$enable_protocol_http"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4650 else
4651 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_protocol_http"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
3bd8fb5f 4681echo "configure:4682: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4682 no_cache=0
4683 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4684if test "${enable_protocol_ftp+set}" = set; then
4685 enableval="$enable_protocol_ftp"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4689 else
4690 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_protocol_ftp"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
3bd8fb5f 4720echo "configure:4721: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4721 no_cache=0
4722 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4723if test "${enable_protocol_file+set}" = set; then
4724 enableval="$enable_protocol_file"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4728 else
4729 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_protocol_file"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758
4759
698dcdb6
VZ
4760
4761 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
3bd8fb5f 4762echo "configure:4763: checking for --enable-threads" >&5
10f2d63a
VZ
4763 no_cache=0
4764 # Check whether --enable-threads or --disable-threads was given.
4765if test "${enable_threads+set}" = set; then
4766 enableval="$enable_threads"
698dcdb6 4767
10f2d63a
VZ
4768 if test "$enableval" = yes; then
4769 ac_cv_use_threads='wxUSE_THREADS=yes'
4770 else
4771 ac_cv_use_threads='wxUSE_THREADS=no'
4772 fi
698dcdb6 4773
10f2d63a 4774else
698dcdb6 4775
10f2d63a
VZ
4776 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4784
4785fi
10f2d63a
VZ
4786
4787
4788 eval "$ac_cv_use_threads"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4794 echo "$ac_t""yes" 1>&6
10f2d63a 4795 else
698dcdb6 4796 echo "$ac_t""no" 1>&6
10f2d63a 4797 fi
698dcdb6 4798
10f2d63a 4799
b12915c1
VZ
4800if test "$wxUSE_GUI" = "yes"; then
4801
698dcdb6
VZ
4802
4803
4804 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
3bd8fb5f 4805echo "configure:4806: checking for --enable-docview" >&5
10f2d63a
VZ
4806 no_cache=0
4807 # Check whether --enable-docview or --disable-docview was given.
4808if test "${enable_docview+set}" = set; then
4809 enableval="$enable_docview"
698dcdb6 4810
10f2d63a
VZ
4811 if test "$enableval" = yes; then
4812 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4813 else
4814 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4815 fi
698dcdb6 4816
10f2d63a 4817else
698dcdb6 4818
10f2d63a
VZ
4819 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4827
4828fi
10f2d63a
VZ
4829
4830
4831 eval "$ac_cv_use_docview"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4837 echo "$ac_t""yes" 1>&6
10f2d63a 4838 else
698dcdb6 4839 echo "$ac_t""no" 1>&6
10f2d63a 4840 fi
698dcdb6 4841
10f2d63a 4842
698dcdb6 4843 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
3bd8fb5f 4844echo "configure:4845: checking for --enable-help" >&5
10f2d63a
VZ
4845 no_cache=0
4846 # Check whether --enable-help or --disable-help was given.
4847if test "${enable_help+set}" = set; then
4848 enableval="$enable_help"
698dcdb6 4849
10f2d63a
VZ
4850 if test "$enableval" = yes; then
4851 ac_cv_use_help='wxUSE_HELP=yes'
4852 else
4853 ac_cv_use_help='wxUSE_HELP=no'
4854 fi
698dcdb6 4855
10f2d63a 4856else
698dcdb6 4857
10f2d63a
VZ
4858 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4866
4867fi
10f2d63a
VZ
4868
4869
4870 eval "$ac_cv_use_help"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_HELP" = yes; then
698dcdb6 4876 echo "$ac_t""yes" 1>&6
10f2d63a 4877 else
698dcdb6 4878 echo "$ac_t""no" 1>&6
10f2d63a 4879 fi
698dcdb6 4880
10f2d63a 4881
29fd3c0c 4882 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
3bd8fb5f 4883echo "configure:4884: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4884 no_cache=0
4885 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4886if test "${enable_mshtmlhelp+set}" = set; then
4887 enableval="$enable_mshtmlhelp"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4891 else
4892 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4893 fi
4894
4895else
4896
4897 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4905
4906fi
4907
4908
4909 eval "$ac_cv_use_mshtmlhelp"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_MS_HTML_HELP" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
3379ed37 4921 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
3bd8fb5f 4922echo "configure:4923: checking for --enable-html" >&5
3379ed37
VZ
4923 no_cache=0
4924 # Check whether --enable-html or --disable-html was given.
4925if test "${enable_html+set}" = set; then
4926 enableval="$enable_html"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_html='wxUSE_HTML=yes'
4930 else
4931 ac_cv_use_html='wxUSE_HTML=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_html"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_HTML" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
3bd8fb5f 4961echo "configure:4962: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4962 no_cache=0
4963 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4964if test "${enable_htmlhelp+set}" = set; then
4965 enableval="$enable_htmlhelp"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4969 else
4970 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_htmlhelp"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_WXHTML_HELP" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
698dcdb6 4999 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
3bd8fb5f 5000echo "configure:5001: checking for --enable-constraints" >&5
10f2d63a
VZ
5001 no_cache=0
5002 # Check whether --enable-constraints or --disable-constraints was given.
5003if test "${enable_constraints+set}" = set; then
5004 enableval="$enable_constraints"
698dcdb6 5005
10f2d63a
VZ
5006 if test "$enableval" = yes; then
5007 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5008 else
5009 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5010 fi
698dcdb6 5011
10f2d63a 5012else
698dcdb6 5013
10f2d63a
VZ
5014 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5022
5023fi
10f2d63a
VZ
5024
5025
5026 eval "$ac_cv_use_constraints"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5032 echo "$ac_t""yes" 1>&6
10f2d63a 5033 else
698dcdb6 5034 echo "$ac_t""no" 1>&6
10f2d63a 5035 fi
698dcdb6 5036
10f2d63a 5037
698dcdb6 5038 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
3bd8fb5f 5039echo "configure:5040: checking for --enable-printarch" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-printarch or --disable-printarch was given.
5042if test "${enable_printarch+set}" = set; then
5043 enableval="$enable_printarch"
698dcdb6 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5047 else
5048 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5049 fi
698dcdb6 5050
10f2d63a 5051else
698dcdb6 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_printarch"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
698dcdb6 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
698dcdb6 5075
10f2d63a 5076
698dcdb6 5077 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
3bd8fb5f 5078echo "configure:5079: checking for --enable-mdi" >&5
10f2d63a
VZ
5079 no_cache=0
5080 # Check whether --enable-mdi or --disable-mdi was given.
5081if test "${enable_mdi+set}" = set; then
5082 enableval="$enable_mdi"
698dcdb6 5083
10f2d63a
VZ
5084 if test "$enableval" = yes; then
5085 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5086 else
5087 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5088 fi
698dcdb6 5089
10f2d63a 5090else
698dcdb6 5091
10f2d63a
VZ
5092 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5100
5101fi
10f2d63a
VZ
5102
5103
5104 eval "$ac_cv_use_mdi"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5110 echo "$ac_t""yes" 1>&6
10f2d63a 5111 else
698dcdb6 5112 echo "$ac_t""no" 1>&6
10f2d63a 5113 fi
698dcdb6
VZ
5114
5115
1e6feb95 5116 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
3bd8fb5f 5117echo "configure:5118: checking for --enable-loggui" >&5
1e6feb95
VZ
5118 no_cache=0
5119 # Check whether --enable-loggui or --disable-loggui was given.
5120if test "${enable_loggui+set}" = set; then
5121 enableval="$enable_loggui"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5125 else
5126 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5127 fi
5128
5129else
5130
5131 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5139
5140fi
5141
5142
5143 eval "$ac_cv_use_loggui"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_LOGGUI" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
3bd8fb5f 5156echo "configure:5157: checking for --enable-logwin" >&5
1e6feb95
VZ
5157 no_cache=0
5158 # Check whether --enable-logwin or --disable-logwin was given.
5159if test "${enable_logwin+set}" = set; then
5160 enableval="$enable_logwin"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5164 else
5165 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_logwin"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_LOGWINDOW" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
69d27ff7 5194 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
3bd8fb5f 5195echo "configure:5196: checking for --enable-logdialog" >&5
69d27ff7
MB
5196 no_cache=0
5197 # Check whether --enable-logdialog or --disable-logdialog was given.
5198if test "${enable_logdialog+set}" = set; then
5199 enableval="$enable_logdialog"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5203 else
5204 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_logdialog"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_LOGDIALOG" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
10f2d63a 5233
698dcdb6 5234 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
3bd8fb5f 5235echo "configure:5236: checking for --enable-postscript" >&5
10f2d63a
VZ
5236 no_cache=0
5237 # Check whether --enable-postscript or --disable-postscript was given.
5238if test "${enable_postscript+set}" = set; then
5239 enableval="$enable_postscript"
698dcdb6 5240
10f2d63a
VZ
5241 if test "$enableval" = yes; then
5242 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5243 else
5244 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5245 fi
698dcdb6 5246
10f2d63a 5247else
698dcdb6 5248
10f2d63a
VZ
5249 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5257
5258fi
10f2d63a
VZ
5259
5260
5261 eval "$ac_cv_use_postscript"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5267 echo "$ac_t""yes" 1>&6
10f2d63a 5268 else
698dcdb6 5269 echo "$ac_t""no" 1>&6
10f2d63a 5270 fi
698dcdb6
VZ
5271
5272
5273
10f2d63a 5274
1e6feb95 5275
698dcdb6 5276 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
3bd8fb5f 5277echo "configure:5278: checking for --enable-prologio" >&5
10f2d63a
VZ
5278 no_cache=0
5279 # Check whether --enable-prologio or --disable-prologio was given.
5280if test "${enable_prologio+set}" = set; then
5281 enableval="$enable_prologio"
698dcdb6 5282
10f2d63a
VZ
5283 if test "$enableval" = yes; then
5284 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5285 else
5286 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5287 fi
698dcdb6 5288
10f2d63a 5289else
698dcdb6 5290
10f2d63a
VZ
5291 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5299
5300fi
10f2d63a
VZ
5301
5302
5303 eval "$ac_cv_use_prologio"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5309 echo "$ac_t""yes" 1>&6
10f2d63a 5310 else
698dcdb6 5311 echo "$ac_t""no" 1>&6
10f2d63a 5312 fi
698dcdb6 5313
10f2d63a 5314
698dcdb6 5315 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
3bd8fb5f 5316echo "configure:5317: checking for --enable-resources" >&5
10f2d63a
VZ
5317 no_cache=0
5318 # Check whether --enable-resources or --disable-resources was given.
5319if test "${enable_resources+set}" = set; then
5320 enableval="$enable_resources"
698dcdb6 5321
10f2d63a
VZ
5322 if test "$enableval" = yes; then
5323 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5324 else
5325 ac_cv_use_resources='wxUSE_RESOURCES=no'
5326 fi
698dcdb6 5327
10f2d63a 5328else
698dcdb6 5329
10f2d63a
VZ
5330 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5338
5339fi
10f2d63a
VZ
5340
5341
5342 eval "$ac_cv_use_resources"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5348 echo "$ac_t""yes" 1>&6
10f2d63a 5349 else
698dcdb6 5350 echo "$ac_t""no" 1>&6
10f2d63a 5351 fi
698dcdb6 5352
10f2d63a 5353
698dcdb6
VZ
5354
5355 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
3bd8fb5f 5356echo "configure:5357: checking for --enable-xresources" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-xresources or --disable-xresources was given.
5359if test "${enable_xresources+set}" = set; then
5360 enableval="$enable_xresources"
698dcdb6 5361
10f2d63a
VZ
5362 if test "$enableval" = yes; then
5363 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5364 else
5365 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5366 fi
698dcdb6 5367
10f2d63a 5368else
698dcdb6 5369
10f2d63a
VZ
5370 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5378
5379fi
10f2d63a
VZ
5380
5381
5382 eval "$ac_cv_use_xresources"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5388 echo "$ac_t""yes" 1>&6
10f2d63a 5389 else
698dcdb6 5390 echo "$ac_t""no" 1>&6
10f2d63a 5391 fi
698dcdb6
VZ
5392
5393
10f2d63a 5394
698dcdb6
VZ
5395
5396 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
3bd8fb5f 5397echo "configure:5398: checking for --enable-clipboard" >&5
10f2d63a
VZ
5398 no_cache=0
5399 # Check whether --enable-clipboard or --disable-clipboard was given.
5400if test "${enable_clipboard+set}" = set; then
5401 enableval="$enable_clipboard"
698dcdb6 5402
10f2d63a
VZ
5403 if test "$enableval" = yes; then
5404 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5405 else
5406 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5407 fi
698dcdb6 5408
10f2d63a 5409else
698dcdb6 5410
10f2d63a
VZ
5411 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5419
5420fi
10f2d63a
VZ
5421
5422
5423 eval "$ac_cv_use_clipboard"
5424 if test "$no_cache" != 1; then
5425 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5426 fi
5427
5428 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5429 echo "$ac_t""yes" 1>&6
10f2d63a 5430 else
698dcdb6 5431 echo "$ac_t""no" 1>&6
10f2d63a 5432 fi
698dcdb6 5433
10f2d63a 5434
698dcdb6 5435 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
3bd8fb5f 5436echo "configure:5437: checking for --enable-dnd" >&5
10f2d63a
VZ
5437 no_cache=0
5438 # Check whether --enable-dnd or --disable-dnd was given.
5439if test "${enable_dnd+set}" = set; then
5440 enableval="$enable_dnd"
698dcdb6 5441
10f2d63a
VZ
5442 if test "$enableval" = yes; then
5443 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5444 else
5445 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5446 fi
698dcdb6 5447
10f2d63a 5448else
698dcdb6 5449
10f2d63a
VZ
5450 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5458
5459fi
10f2d63a
VZ
5460
5461
5462 eval "$ac_cv_use_dnd"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5468 echo "$ac_t""yes" 1>&6
10f2d63a 5469 else
698dcdb6 5470 echo "$ac_t""no" 1>&6
10f2d63a 5471 fi
698dcdb6 5472
10f2d63a 5473
698dcdb6 5474 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bd8fb5f 5475echo "configure:5476: checking for --enable-metafile" >&5
b64f0a5f
RL
5476 no_cache=0
5477 # Check whether --enable-metafile or --disable-metafile was given.
5478if test "${enable_metafile+set}" = set; then
5479 enableval="$enable_metafile"
698dcdb6 5480
b64f0a5f
RL
5481 if test "$enableval" = yes; then
5482 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5483 else
5484 ac_cv_use_metafile='wxUSE_METAFILE=no'
5485 fi
698dcdb6 5486
b64f0a5f 5487else
698dcdb6 5488
b64f0a5f
RL
5489 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5497
5498fi
b64f0a5f
RL
5499
5500
5501 eval "$ac_cv_use_metafile"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5507 echo "$ac_t""yes" 1>&6
b64f0a5f 5508 else
698dcdb6 5509 echo "$ac_t""no" 1>&6
b64f0a5f 5510 fi
698dcdb6
VZ
5511
5512
10f2d63a 5513
24176f2c 5514 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
3bd8fb5f 5515echo "configure:5516: checking for --enable-treelayout" >&5
10f2d63a 5516 no_cache=0
24176f2c
GD
5517 # Check whether --enable-treelayout or --disable-treelayout was given.
5518if test "${enable_treelayout+set}" = set; then
5519 enableval="$enable_treelayout"
698dcdb6 5520
10f2d63a 5521 if test "$enableval" = yes; then
24176f2c 5522 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5523 else
24176f2c 5524 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5525 fi
698dcdb6 5526
10f2d63a 5527else
698dcdb6 5528
24176f2c 5529 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
24176f2c 5536 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5537
5538fi
10f2d63a
VZ
5539
5540
24176f2c 5541 eval "$ac_cv_use_treelayout"
10f2d63a 5542 if test "$no_cache" != 1; then
24176f2c 5543 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5544 fi
5545
24176f2c 5546 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5547 echo "$ac_t""yes" 1>&6
10f2d63a 5548 else
698dcdb6 5549 echo "$ac_t""no" 1>&6
10f2d63a 5550 fi
698dcdb6 5551
10f2d63a 5552
698dcdb6
VZ
5553
5554
5555 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
3bd8fb5f 5556echo "configure:5557: checking for --enable-controls" >&5
10f2d63a
VZ
5557 no_cache=0
5558 # Check whether --enable-controls or --disable-controls was given.
5559if test "${enable_controls+set}" = set; then
5560 enableval="$enable_controls"
698dcdb6 5561
10f2d63a
VZ
5562 if test "$enableval" = yes; then
5563 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5564 else
5565 ac_cv_use_controls='wxUSE_CONTROLS=no'
5566 fi
698dcdb6 5567
10f2d63a 5568else
698dcdb6 5569
10f2d63a
VZ
5570 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5578
5579fi
10f2d63a
VZ
5580
5581
5582 eval "$ac_cv_use_controls"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5588 echo "$ac_t""yes" 1>&6
10f2d63a 5589 else
698dcdb6 5590 echo "$ac_t""no" 1>&6
10f2d63a 5591 fi
698dcdb6 5592
10f2d63a
VZ
5593
5594if test "$wxUSE_CONTROLS" = "yes"; then
5595 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5596 DEFAULT_wxUSE_BMPBUTTON=yes
5597 DEFAULT_wxUSE_BUTTON=yes
5598 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5599 DEFAULT_wxUSE_CARET=yes
5600 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5601 DEFAULT_wxUSE_CHECKBOX=yes
5602 DEFAULT_wxUSE_CHECKLISTBOX=yes
5603 DEFAULT_wxUSE_CHOICE=yes
5604 DEFAULT_wxUSE_GAUGE=yes
5605 DEFAULT_wxUSE_GRID=yes
cc977e5f 5606 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5607 DEFAULT_wxUSE_IMAGLIST=yes
5608 DEFAULT_wxUSE_LISTBOX=yes
5609 DEFAULT_wxUSE_LISTCTRL=yes
5610 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5611 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5612 DEFAULT_wxUSE_RADIOBOX=yes
5613 DEFAULT_wxUSE_RADIOBTN=yes
5614 DEFAULT_wxUSE_SASH=yes
5615 DEFAULT_wxUSE_SCROLLBAR=yes
5616 DEFAULT_wxUSE_SLIDER=yes
5617 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5618 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5619 DEFAULT_wxUSE_SPLITTER=yes
5620 DEFAULT_wxUSE_STATBMP=yes
5621 DEFAULT_wxUSE_STATBOX=yes
5622 DEFAULT_wxUSE_STATLINE=yes
5623 DEFAULT_wxUSE_STATUSBAR=yes
5624 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5625 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5626 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5627 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5628 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5629 DEFAULT_wxUSE_TOOLTIPS=yes
5630 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5631 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5632 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5633elif test "$wxUSE_CONTROLS" = "no"; then
5634 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5635 DEFAULT_wxUSE_BMPBUTTON=no
5636 DEFAULT_wxUSE_BUTTON=no
5637 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5638 DEFAULT_wxUSE_CARET=no
5639 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5640 DEFAULT_wxUSE_CHECKBOX=no
5641 DEFAULT_wxUSE_CHECKLISTBOX=no
5642 DEFAULT_wxUSE_CHOICE=no
5643 DEFAULT_wxUSE_GAUGE=no
5644 DEFAULT_wxUSE_GRID=no
5645 DEFAULT_wxUSE_NEW_GRID=no
5646 DEFAULT_wxUSE_IMAGLIST=no
5647 DEFAULT_wxUSE_LISTBOX=no
5648 DEFAULT_wxUSE_LISTCTRL=no
5649 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5650 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5651 DEFAULT_wxUSE_RADIOBOX=no
5652 DEFAULT_wxUSE_RADIOBTN=no
5653 DEFAULT_wxUSE_SASH=no
5654 DEFAULT_wxUSE_SCROLLBAR=no
5655 DEFAULT_wxUSE_SLIDER=no
5656 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5657 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5658 DEFAULT_wxUSE_SPLITTER=no
5659 DEFAULT_wxUSE_STATBMP=no
5660 DEFAULT_wxUSE_STATBOX=no
5661 DEFAULT_wxUSE_STATLINE=no
5662 DEFAULT_wxUSE_STATUSBAR=no
5663 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5664 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5665 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5666 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5667 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5668 DEFAULT_wxUSE_TOOLTIPS=no
5669 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5670 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5671 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5672fi
5673
698dcdb6
VZ
5674
5675 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
3bd8fb5f 5676echo "configure:5677: checking for --enable-accel" >&5
10f2d63a
VZ
5677 no_cache=0
5678 # Check whether --enable-accel or --disable-accel was given.
5679if test "${enable_accel+set}" = set; then
5680 enableval="$enable_accel"
698dcdb6 5681
10f2d63a
VZ
5682 if test "$enableval" = yes; then
5683 ac_cv_use_accel='wxUSE_ACCEL=yes'
5684 else
5685 ac_cv_use_accel='wxUSE_ACCEL=no'
5686 fi
698dcdb6 5687
10f2d63a 5688else
698dcdb6 5689
10f2d63a
VZ
5690 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5698
5699fi
10f2d63a
VZ
5700
5701
5702 eval "$ac_cv_use_accel"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5708 echo "$ac_t""yes" 1>&6
10f2d63a 5709 else
698dcdb6 5710 echo "$ac_t""no" 1>&6
10f2d63a 5711 fi
698dcdb6 5712
10f2d63a 5713
1e6feb95 5714 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
3bd8fb5f 5715echo "configure:5716: checking for --enable-button" >&5
10f2d63a 5716 no_cache=0
1e6feb95
VZ
5717 # Check whether --enable-button or --disable-button was given.
5718if test "${enable_button+set}" = set; then
5719 enableval="$enable_button"
698dcdb6 5720
10f2d63a 5721 if test "$enableval" = yes; then
1e6feb95 5722 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5723 else
1e6feb95 5724 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5725 fi
698dcdb6 5726
10f2d63a 5727else
698dcdb6 5728
1e6feb95 5729 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
1e6feb95 5736 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5737
5738fi
10f2d63a
VZ
5739
5740
1e6feb95 5741 eval "$ac_cv_use_button"
10f2d63a 5742 if test "$no_cache" != 1; then
1e6feb95 5743 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5744 fi
5745
1e6feb95 5746 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5747 echo "$ac_t""yes" 1>&6
10f2d63a 5748 else
698dcdb6 5749 echo "$ac_t""no" 1>&6
10f2d63a 5750 fi
698dcdb6 5751
10f2d63a 5752
698dcdb6 5753 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
3bd8fb5f 5754echo "configure:5755: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5755 no_cache=0
5756 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5757if test "${enable_bmpbutton+set}" = set; then
5758 enableval="$enable_bmpbutton"
698dcdb6 5759
10f2d63a
VZ
5760 if test "$enableval" = yes; then
5761 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5762 else
5763 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5764 fi
698dcdb6 5765
10f2d63a 5766else
698dcdb6 5767
10f2d63a
VZ
5768 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5776
5777fi
10f2d63a
VZ
5778
5779
5780 eval "$ac_cv_use_bmpbutton"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5786 echo "$ac_t""yes" 1>&6
10f2d63a 5787 else
698dcdb6 5788 echo "$ac_t""no" 1>&6
10f2d63a 5789 fi
698dcdb6 5790
10f2d63a 5791
1e6feb95 5792 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
3bd8fb5f 5793echo "configure:5794: checking for --enable-calendar" >&5
1e6feb95
VZ
5794 no_cache=0
5795 # Check whether --enable-calendar or --disable-calendar was given.
5796if test "${enable_calendar+set}" = set; then
5797 enableval="$enable_calendar"
5798
5799 if test "$enableval" = yes; then
5800 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5801 else
5802 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5803 fi
5804
5805else
5806
5807 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5815
5816fi
5817
5818
5819 eval "$ac_cv_use_calendar"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_CALCTRL" = yes; then
5825 echo "$ac_t""yes" 1>&6
5826 else
5827 echo "$ac_t""no" 1>&6
5828 fi
5829
5830
5831 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
3bd8fb5f 5832echo "configure:5833: checking for --enable-caret" >&5
1e6feb95
VZ
5833 no_cache=0
5834 # Check whether --enable-caret or --disable-caret was given.
5835if test "${enable_caret+set}" = set; then
5836 enableval="$enable_caret"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_caret='wxUSE_CARET=yes'
5840 else
5841 ac_cv_use_caret='wxUSE_CARET=no'
5842 fi
5843
5844else
5845
5846 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5854
5855fi
5856
5857
5858 eval "$ac_cv_use_caret"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_CARET" = yes; then
5864 echo "$ac_t""yes" 1>&6
5865 else
5866 echo "$ac_t""no" 1>&6
5867 fi
5868
5869
698dcdb6 5870 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
3bd8fb5f 5871echo "configure:5872: checking for --enable-checkbox" >&5
10f2d63a
VZ
5872 no_cache=0
5873 # Check whether --enable-checkbox or --disable-checkbox was given.
5874if test "${enable_checkbox+set}" = set; then
5875 enableval="$enable_checkbox"
698dcdb6 5876
10f2d63a
VZ
5877 if test "$enableval" = yes; then
5878 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5879 else
5880 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5881 fi
698dcdb6 5882
10f2d63a 5883else
698dcdb6 5884
10f2d63a
VZ
5885 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5893
5894fi
10f2d63a
VZ
5895
5896
5897 eval "$ac_cv_use_checkbox"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5903 echo "$ac_t""yes" 1>&6
10f2d63a 5904 else
698dcdb6 5905 echo "$ac_t""no" 1>&6
10f2d63a 5906 fi
698dcdb6 5907
10f2d63a 5908
698dcdb6 5909 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
3bd8fb5f 5910echo "configure:5911: checking for --enable-checklst" >&5
10f2d63a
VZ
5911 no_cache=0
5912 # Check whether --enable-checklst or --disable-checklst was given.
5913if test "${enable_checklst+set}" = set; then
5914 enableval="$enable_checklst"
698dcdb6 5915
10f2d63a
VZ
5916 if test "$enableval" = yes; then
5917 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5918 else
5919 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5920 fi
698dcdb6 5921
10f2d63a 5922else
698dcdb6 5923
10f2d63a
VZ
5924 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5932
5933fi
10f2d63a
VZ
5934
5935
5936 eval "$ac_cv_use_checklst"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5942 echo "$ac_t""yes" 1>&6
10f2d63a 5943 else
698dcdb6 5944 echo "$ac_t""no" 1>&6
10f2d63a 5945 fi
698dcdb6 5946
10f2d63a 5947
698dcdb6 5948 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
3bd8fb5f 5949echo "configure:5950: checking for --enable-choice" >&5
10f2d63a
VZ
5950 no_cache=0
5951 # Check whether --enable-choice or --disable-choice was given.
5952if test "${enable_choice+set}" = set; then
5953 enableval="$enable_choice"
698dcdb6 5954
10f2d63a
VZ
5955 if test "$enableval" = yes; then
5956 ac_cv_use_choice='wxUSE_CHOICE=yes'
5957 else
5958 ac_cv_use_choice='wxUSE_CHOICE=no'
5959 fi
698dcdb6 5960
10f2d63a 5961else
698dcdb6 5962
10f2d63a
VZ
5963 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5971
5972fi
10f2d63a
VZ
5973
5974
5975 eval "$ac_cv_use_choice"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5981 echo "$ac_t""yes" 1>&6
10f2d63a 5982 else
698dcdb6 5983 echo "$ac_t""no" 1>&6
10f2d63a 5984 fi
698dcdb6 5985
10f2d63a 5986
698dcdb6 5987 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
3bd8fb5f 5988echo "configure:5989: checking for --enable-combobox" >&5
10f2d63a
VZ
5989 no_cache=0
5990 # Check whether --enable-combobox or --disable-combobox was given.
5991if test "${enable_combobox+set}" = set; then
5992 enableval="$enable_combobox"
698dcdb6 5993
10f2d63a
VZ
5994 if test "$enableval" = yes; then
5995 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5996 else
5997 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5998 fi
698dcdb6 5999
10f2d63a 6000else
698dcdb6 6001
10f2d63a
VZ
6002 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6010
6011fi
10f2d63a
VZ
6012
6013
6014 eval "$ac_cv_use_combobox"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6020 echo "$ac_t""yes" 1>&6
10f2d63a 6021 else
698dcdb6 6022 echo "$ac_t""no" 1>&6
10f2d63a 6023 fi
698dcdb6 6024
10f2d63a 6025
698dcdb6 6026 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
3bd8fb5f 6027echo "configure:6028: checking for --enable-gauge" >&5
10f2d63a
VZ
6028 no_cache=0
6029 # Check whether --enable-gauge or --disable-gauge was given.
6030if test "${enable_gauge+set}" = set; then
6031 enableval="$enable_gauge"
698dcdb6 6032
10f2d63a
VZ
6033 if test "$enableval" = yes; then
6034 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6035 else
6036 ac_cv_use_gauge='wxUSE_GAUGE=no'
6037 fi
698dcdb6 6038
10f2d63a 6039else
698dcdb6 6040
10f2d63a
VZ
6041 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6049
6050fi
10f2d63a
VZ
6051
6052
6053 eval "$ac_cv_use_gauge"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6059 echo "$ac_t""yes" 1>&6
10f2d63a 6060 else
698dcdb6 6061 echo "$ac_t""no" 1>&6
10f2d63a 6062 fi
698dcdb6 6063
10f2d63a 6064
698dcdb6 6065 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
3bd8fb5f 6066echo "configure:6067: checking for --enable-grid" >&5
10f2d63a
VZ
6067 no_cache=0
6068 # Check whether --enable-grid or --disable-grid was given.
6069if test "${enable_grid+set}" = set; then
6070 enableval="$enable_grid"
698dcdb6 6071
10f2d63a
VZ
6072 if test "$enableval" = yes; then
6073 ac_cv_use_grid='wxUSE_GRID=yes'
6074 else
6075 ac_cv_use_grid='wxUSE_GRID=no'
6076 fi
698dcdb6 6077
10f2d63a 6078else
698dcdb6 6079
10f2d63a
VZ
6080 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6088
6089fi
10f2d63a
VZ
6090
6091
6092 eval "$ac_cv_use_grid"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_GRID" = yes; then
698dcdb6 6098 echo "$ac_t""yes" 1>&6
10f2d63a 6099 else
698dcdb6 6100 echo "$ac_t""no" 1>&6
10f2d63a 6101 fi
698dcdb6 6102
10f2d63a 6103
698dcdb6 6104 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
3bd8fb5f 6105echo "configure:6106: checking for --enable-newgrid" >&5
10f2d63a
VZ
6106 no_cache=0
6107 # Check whether --enable-newgrid or --disable-newgrid was given.
6108if test "${enable_newgrid+set}" = set; then
6109 enableval="$enable_newgrid"
698dcdb6 6110
10f2d63a
VZ
6111 if test "$enableval" = yes; then
6112 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6113 else
6114 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6115 fi
698dcdb6 6116
10f2d63a 6117else
698dcdb6 6118
10f2d63a
VZ
6119 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6127
6128fi
10f2d63a
VZ
6129
6130
6131 eval "$ac_cv_use_newgrid"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6137 echo "$ac_t""yes" 1>&6
10f2d63a 6138 else
698dcdb6 6139 echo "$ac_t""no" 1>&6
10f2d63a 6140 fi
698dcdb6 6141
10f2d63a 6142
698dcdb6 6143 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
3bd8fb5f 6144echo "configure:6145: checking for --enable-imaglist" >&5
10f2d63a
VZ
6145 no_cache=0
6146 # Check whether --enable-imaglist or --disable-imaglist was given.
6147if test "${enable_imaglist+set}" = set; then
6148 enableval="$enable_imaglist"
698dcdb6 6149
10f2d63a
VZ
6150 if test "$enableval" = yes; then
6151 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6152 else
6153 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6154 fi
698dcdb6 6155
10f2d63a 6156else
698dcdb6 6157
10f2d63a
VZ
6158 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6166
6167fi
10f2d63a
VZ
6168
6169
6170 eval "$ac_cv_use_imaglist"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6176 echo "$ac_t""yes" 1>&6
10f2d63a 6177 else
698dcdb6 6178 echo "$ac_t""no" 1>&6
10f2d63a 6179 fi
698dcdb6 6180
10f2d63a 6181
698dcdb6 6182 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
3bd8fb5f 6183echo "configure:6184: checking for --enable-listbox" >&5
10f2d63a
VZ
6184 no_cache=0
6185 # Check whether --enable-listbox or --disable-listbox was given.
6186if test "${enable_listbox+set}" = set; then
6187 enableval="$enable_listbox"
698dcdb6 6188
10f2d63a
VZ
6189 if test "$enableval" = yes; then
6190 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6191 else
6192 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6193 fi
698dcdb6 6194
10f2d63a 6195else
698dcdb6 6196
10f2d63a
VZ
6197 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6205
6206fi
10f2d63a
VZ
6207
6208
6209 eval "$ac_cv_use_listbox"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6215 echo "$ac_t""yes" 1>&6
10f2d63a 6216 else
698dcdb6 6217 echo "$ac_t""no" 1>&6
10f2d63a 6218 fi
698dcdb6 6219
10f2d63a 6220
698dcdb6 6221 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
3bd8fb5f 6222echo "configure:6223: checking for --enable-listctrl" >&5
10f2d63a
VZ
6223 no_cache=0
6224 # Check whether --enable-listctrl or --disable-listctrl was given.
6225if test "${enable_listctrl+set}" = set; then
6226 enableval="$enable_listctrl"
698dcdb6 6227
10f2d63a
VZ
6228 if test "$enableval" = yes; then
6229 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6230 else
6231 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6232 fi
698dcdb6 6233
10f2d63a 6234else
698dcdb6 6235
10f2d63a
VZ
6236 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6244
6245fi
10f2d63a
VZ
6246
6247
6248 eval "$ac_cv_use_listctrl"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6254 echo "$ac_t""yes" 1>&6
10f2d63a 6255 else
698dcdb6 6256 echo "$ac_t""no" 1>&6
10f2d63a 6257 fi
698dcdb6 6258
10f2d63a 6259
698dcdb6 6260 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
3bd8fb5f 6261echo "configure:6262: checking for --enable-notebook" >&5
10f2d63a
VZ
6262 no_cache=0
6263 # Check whether --enable-notebook or --disable-notebook was given.
6264if test "${enable_notebook+set}" = set; then
6265 enableval="$enable_notebook"
698dcdb6 6266
10f2d63a
VZ
6267 if test "$enableval" = yes; then
6268 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6269 else
6270 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6271 fi
698dcdb6 6272
10f2d63a 6273else
698dcdb6 6274
10f2d63a
VZ
6275 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6283
6284fi
10f2d63a
VZ
6285
6286
6287 eval "$ac_cv_use_notebook"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6293 echo "$ac_t""yes" 1>&6
10f2d63a 6294 else
698dcdb6 6295 echo "$ac_t""no" 1>&6
10f2d63a 6296 fi
698dcdb6 6297
10f2d63a 6298
24176f2c 6299 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
3bd8fb5f 6300echo "configure:6301: checking for --enable-propsheet" >&5
24176f2c
GD
6301 no_cache=0
6302 # Check whether --enable-propsheet or --disable-propsheet was given.
6303if test "${enable_propsheet+set}" = set; then
6304 enableval="$enable_propsheet"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6308 else
6309 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6322
6323fi
6324
6325
6326 eval "$ac_cv_use_propsheet"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_PROPSHEET" = yes; then
6332 echo "$ac_t""yes" 1>&6
6333 else
6334 echo "$ac_t""no" 1>&6
6335 fi
6336
6337
698dcdb6 6338 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
3bd8fb5f 6339echo "configure:6340: checking for --enable-radiobox" >&5
10f2d63a
VZ
6340 no_cache=0
6341 # Check whether --enable-radiobox or --disable-radiobox was given.
6342if test "${enable_radiobox+set}" = set; then
6343 enableval="$enable_radiobox"
698dcdb6 6344
10f2d63a
VZ
6345 if test "$enableval" = yes; then
6346 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6347 else
6348 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6349 fi
698dcdb6 6350
10f2d63a 6351else
698dcdb6 6352
10f2d63a
VZ
6353 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6361
6362fi
10f2d63a
VZ
6363
6364
6365 eval "$ac_cv_use_radiobox"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6371 echo "$ac_t""yes" 1>&6
10f2d63a 6372 else
698dcdb6 6373 echo "$ac_t""no" 1>&6
10f2d63a 6374 fi
698dcdb6 6375
10f2d63a 6376
698dcdb6 6377 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
3bd8fb5f 6378echo "configure:6379: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6379 no_cache=0
6380 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6381if test "${enable_radiobtn+set}" = set; then
6382 enableval="$enable_radiobtn"
698dcdb6 6383
10f2d63a
VZ
6384 if test "$enableval" = yes; then
6385 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6386 else
6387 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6388 fi
698dcdb6 6389
10f2d63a 6390else
698dcdb6 6391
10f2d63a
VZ
6392 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6400
6401fi
10f2d63a
VZ
6402
6403
6404 eval "$ac_cv_use_radiobtn"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6410 echo "$ac_t""yes" 1>&6
10f2d63a 6411 else
698dcdb6 6412 echo "$ac_t""no" 1>&6
10f2d63a 6413 fi
698dcdb6 6414
10f2d63a 6415
698dcdb6 6416 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
3bd8fb5f 6417echo "configure:6418: checking for --enable-sash" >&5
10f2d63a
VZ
6418 no_cache=0
6419 # Check whether --enable-sash or --disable-sash was given.
6420if test "${enable_sash+set}" = set; then
6421 enableval="$enable_sash"
698dcdb6 6422
10f2d63a
VZ
6423 if test "$enableval" = yes; then
6424 ac_cv_use_sash='wxUSE_SASH=yes'
6425 else
6426 ac_cv_use_sash='wxUSE_SASH=no'
6427 fi
698dcdb6 6428
10f2d63a 6429else
698dcdb6 6430
10f2d63a
VZ
6431 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6439
6440fi
10f2d63a
VZ
6441
6442
6443 eval "$ac_cv_use_sash"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_SASH" = yes; then
698dcdb6 6449 echo "$ac_t""yes" 1>&6
10f2d63a 6450 else
698dcdb6 6451 echo "$ac_t""no" 1>&6
10f2d63a 6452 fi
698dcdb6 6453
10f2d63a 6454
698dcdb6 6455 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
3bd8fb5f 6456echo "configure:6457: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6457 no_cache=0
6458 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6459if test "${enable_scrollbar+set}" = set; then
6460 enableval="$enable_scrollbar"
698dcdb6 6461
10f2d63a
VZ
6462 if test "$enableval" = yes; then
6463 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6464 else
6465 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6466 fi
698dcdb6 6467
10f2d63a 6468else
698dcdb6 6469
10f2d63a
VZ
6470 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6478
6479fi
10f2d63a
VZ
6480
6481
6482 eval "$ac_cv_use_scrollbar"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6488 echo "$ac_t""yes" 1>&6
10f2d63a 6489 else
698dcdb6 6490 echo "$ac_t""no" 1>&6
10f2d63a 6491 fi
698dcdb6 6492
10f2d63a 6493
698dcdb6 6494 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
3bd8fb5f 6495echo "configure:6496: checking for --enable-slider" >&5
10f2d63a
VZ
6496 no_cache=0
6497 # Check whether --enable-slider or --disable-slider was given.
6498if test "${enable_slider+set}" = set; then
6499 enableval="$enable_slider"
698dcdb6 6500
10f2d63a
VZ
6501 if test "$enableval" = yes; then
6502 ac_cv_use_slider='wxUSE_SLIDER=yes'
6503 else
6504 ac_cv_use_slider='wxUSE_SLIDER=no'
6505 fi
698dcdb6 6506
10f2d63a 6507else
698dcdb6 6508
10f2d63a
VZ
6509 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6517
6518fi
10f2d63a
VZ
6519
6520
6521 eval "$ac_cv_use_slider"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6527 echo "$ac_t""yes" 1>&6
10f2d63a 6528 else
698dcdb6 6529 echo "$ac_t""no" 1>&6
10f2d63a 6530 fi
698dcdb6 6531
10f2d63a 6532
698dcdb6 6533 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
3bd8fb5f 6534echo "configure:6535: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6535 no_cache=0
6536 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6537if test "${enable_spinbtn+set}" = set; then
6538 enableval="$enable_spinbtn"
698dcdb6 6539
10f2d63a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6542 else
6543 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6544 fi
698dcdb6 6545
10f2d63a 6546else
698dcdb6 6547
10f2d63a
VZ
6548 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6556
6557fi
10f2d63a
VZ
6558
6559
6560 eval "$ac_cv_use_spinbtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6566 echo "$ac_t""yes" 1>&6
10f2d63a 6567 else
698dcdb6 6568 echo "$ac_t""no" 1>&6
10f2d63a 6569 fi
698dcdb6 6570
10f2d63a 6571
698dcdb6 6572 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
3bd8fb5f 6573echo "configure:6574: checking for --enable-spinctrl" >&5
56cfaa52
RR
6574 no_cache=0
6575 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6576if test "${enable_spinctrl+set}" = set; then
6577 enableval="$enable_spinctrl"
698dcdb6 6578
56cfaa52
RR
6579 if test "$enableval" = yes; then
6580 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6581 else
6582 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6583 fi
698dcdb6 6584
56cfaa52 6585else
698dcdb6 6586
56cfaa52
RR
6587 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6595
6596fi
56cfaa52
RR
6597
6598
6599 eval "$ac_cv_use_spinctrl"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6605 echo "$ac_t""yes" 1>&6
56cfaa52 6606 else
698dcdb6 6607 echo "$ac_t""no" 1>&6
56cfaa52 6608 fi
698dcdb6 6609
56cfaa52 6610
698dcdb6 6611 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
3bd8fb5f 6612echo "configure:6613: checking for --enable-splitter" >&5
10f2d63a
VZ
6613 no_cache=0
6614 # Check whether --enable-splitter or --disable-splitter was given.
6615if test "${enable_splitter+set}" = set; then
6616 enableval="$enable_splitter"
698dcdb6 6617
10f2d63a
VZ
6618 if test "$enableval" = yes; then
6619 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6620 else
6621 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6622 fi
698dcdb6 6623
10f2d63a 6624else
698dcdb6 6625
10f2d63a
VZ
6626 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6634
6635fi
10f2d63a
VZ
6636
6637
6638 eval "$ac_cv_use_splitter"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6644 echo "$ac_t""yes" 1>&6
10f2d63a 6645 else
698dcdb6 6646 echo "$ac_t""no" 1>&6
10f2d63a 6647 fi
698dcdb6 6648
10f2d63a 6649
698dcdb6 6650 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
3bd8fb5f 6651echo "configure:6652: checking for --enable-statbmp" >&5
10f2d63a
VZ
6652 no_cache=0
6653 # Check whether --enable-statbmp or --disable-statbmp was given.
6654if test "${enable_statbmp+set}" = set; then
6655 enableval="$enable_statbmp"
698dcdb6 6656
10f2d63a
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6659 else
6660 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6661 fi
698dcdb6 6662
10f2d63a 6663else
698dcdb6 6664
10f2d63a
VZ
6665 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6673
6674fi
10f2d63a
VZ
6675
6676
6677 eval "$ac_cv_use_statbmp"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6683 echo "$ac_t""yes" 1>&6
10f2d63a 6684 else
698dcdb6 6685 echo "$ac_t""no" 1>&6
10f2d63a 6686 fi
698dcdb6 6687
10f2d63a 6688
698dcdb6 6689 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
3bd8fb5f 6690echo "configure:6691: checking for --enable-statbox" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-statbox or --disable-statbox was given.
6693if test "${enable_statbox+set}" = set; then
6694 enableval="$enable_statbox"
698dcdb6 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6698 else
6699 ac_cv_use_statbox='wxUSE_STATBOX=no'
6700 fi
698dcdb6 6701
10f2d63a 6702else
698dcdb6 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_statbox"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
698dcdb6 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
698dcdb6 6726
10f2d63a 6727
698dcdb6 6728 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
3bd8fb5f 6729echo "configure:6730: checking for --enable-statline" >&5
10f2d63a
VZ
6730 no_cache=0
6731 # Check whether --enable-statline or --disable-statline was given.
6732if test "${enable_statline+set}" = set; then
6733 enableval="$enable_statline"
698dcdb6 6734
10f2d63a
VZ
6735 if test "$enableval" = yes; then
6736 ac_cv_use_statline='wxUSE_STATLINE=yes'
6737 else
6738 ac_cv_use_statline='wxUSE_STATLINE=no'
6739 fi
698dcdb6 6740
10f2d63a 6741else
698dcdb6 6742
10f2d63a
VZ
6743 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6751
6752fi
10f2d63a
VZ
6753
6754
6755 eval "$ac_cv_use_statline"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6761 echo "$ac_t""yes" 1>&6
10f2d63a 6762 else
698dcdb6 6763 echo "$ac_t""no" 1>&6
10f2d63a 6764 fi
698dcdb6 6765
10f2d63a 6766
1e6feb95 6767 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
3bd8fb5f 6768echo "configure:6769: checking for --enable-stattext" >&5
1e6feb95
VZ
6769 no_cache=0
6770 # Check whether --enable-stattext or --disable-stattext was given.
6771if test "${enable_stattext+set}" = set; then
6772 enableval="$enable_stattext"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6776 else
6777 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6790
6791fi
6792
6793
6794 eval "$ac_cv_use_stattext"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_STATTEXT" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
698dcdb6 6806 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
3bd8fb5f 6807echo "configure:6808: checking for --enable-statusbar" >&5
10f2d63a
VZ
6808 no_cache=0
6809 # Check whether --enable-statusbar or --disable-statusbar was given.
6810if test "${enable_statusbar+set}" = set; then
6811 enableval="$enable_statusbar"
698dcdb6 6812
10f2d63a
VZ
6813 if test "$enableval" = yes; then
6814 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6815 else
6816 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6817 fi
698dcdb6 6818
10f2d63a 6819else
698dcdb6 6820
10f2d63a
VZ
6821 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6829
6830fi
10f2d63a
VZ
6831
6832
6833 eval "$ac_cv_use_statusbar"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6839 echo "$ac_t""yes" 1>&6
10f2d63a 6840 else
698dcdb6 6841 echo "$ac_t""no" 1>&6
10f2d63a 6842 fi
698dcdb6 6843
10f2d63a 6844
698dcdb6 6845 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
3bd8fb5f 6846echo "configure:6847: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6847 no_cache=0
6848 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6849if test "${enable_tabdialog+set}" = set; then
6850 enableval="$enable_tabdialog"
698dcdb6 6851
10f2d63a
VZ
6852 if test "$enableval" = yes; then
6853 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6854 else
6855 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6856 fi
698dcdb6 6857
10f2d63a 6858else
698dcdb6 6859
10f2d63a
VZ
6860 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6868
6869fi
10f2d63a
VZ
6870
6871
6872 eval "$ac_cv_use_tabdialog"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6878 echo "$ac_t""yes" 1>&6
10f2d63a 6879 else
698dcdb6 6880 echo "$ac_t""no" 1>&6
10f2d63a 6881 fi
698dcdb6 6882
10f2d63a 6883
1e6feb95 6884 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
3bd8fb5f 6885echo "configure:6886: checking for --enable-textctrl" >&5
1e6feb95
VZ
6886 no_cache=0
6887 # Check whether --enable-textctrl or --disable-textctrl was given.
6888if test "${enable_textctrl+set}" = set; then
6889 enableval="$enable_textctrl"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6893 else
6894 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6907
6908fi
6909
6910
6911 eval "$ac_cv_use_textctrl"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_TEXTCTRL" = yes; then
6917 echo "$ac_t""yes" 1>&6
6918 else
6919 echo "$ac_t""no" 1>&6
6920 fi
6921
6922
698dcdb6 6923 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
3bd8fb5f 6924echo "configure:6925: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6925 no_cache=0
6926 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6927if test "${enable_togglebtn+set}" = set; then
6928 enableval="$enable_togglebtn"
698dcdb6 6929
1db8dc4a
VZ
6930 if test "$enableval" = yes; then
6931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6932 else
6933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6934 fi
698dcdb6 6935
1db8dc4a 6936else
698dcdb6 6937
1db8dc4a
VZ
6938 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6946
6947fi
1db8dc4a
VZ
6948
6949
6950 eval "$ac_cv_use_togglebtn"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6956 echo "$ac_t""yes" 1>&6
1db8dc4a 6957 else
698dcdb6 6958 echo "$ac_t""no" 1>&6
1db8dc4a 6959 fi
698dcdb6 6960
1db8dc4a 6961
698dcdb6 6962 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
3bd8fb5f 6963echo "configure:6964: checking for --enable-toolbar" >&5
10f2d63a
VZ
6964 no_cache=0
6965 # Check whether --enable-toolbar or --disable-toolbar was given.
6966if test "${enable_toolbar+set}" = set; then
6967 enableval="$enable_toolbar"
698dcdb6 6968
10f2d63a
VZ
6969 if test "$enableval" = yes; then
6970 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6971 else
6972 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6973 fi
698dcdb6 6974
10f2d63a 6975else
698dcdb6 6976
10f2d63a
VZ
6977 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6985
6986fi
10f2d63a
VZ
6987
6988
6989 eval "$ac_cv_use_toolbar"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6995 echo "$ac_t""yes" 1>&6
10f2d63a 6996 else
698dcdb6 6997 echo "$ac_t""no" 1>&6
10f2d63a 6998 fi
698dcdb6 6999
10f2d63a 7000
698dcdb6 7001 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
3bd8fb5f 7002echo "configure:7003: checking for --enable-tbarnative" >&5
360d6699
VZ
7003 no_cache=0
7004 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7005if test "${enable_tbarnative+set}" = set; then
7006 enableval="$enable_tbarnative"
698dcdb6 7007
360d6699
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7010 else
7011 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7012 fi
698dcdb6 7013
360d6699 7014else
698dcdb6 7015
360d6699
VZ
7016 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7024
7025fi
360d6699
VZ
7026
7027
7028 eval "$ac_cv_use_tbarnative"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7034 echo "$ac_t""yes" 1>&6
360d6699 7035 else
698dcdb6 7036 echo "$ac_t""no" 1>&6
360d6699 7037 fi
698dcdb6 7038
360d6699 7039
698dcdb6 7040 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
3bd8fb5f 7041echo "configure:7042: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7042 no_cache=0
7043 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7044if test "${enable_tbarsmpl+set}" = set; then
7045 enableval="$enable_tbarsmpl"
698dcdb6 7046
360d6699
VZ
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7049 else
7050 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7051 fi
698dcdb6 7052
360d6699 7053else
698dcdb6 7054
360d6699
VZ
7055 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7063
7064fi
360d6699
VZ
7065
7066
7067 eval "$ac_cv_use_tbarsmpl"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7073 echo "$ac_t""yes" 1>&6
360d6699 7074 else
698dcdb6 7075 echo "$ac_t""no" 1>&6
360d6699 7076 fi
698dcdb6 7077
360d6699 7078
698dcdb6 7079 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
3bd8fb5f 7080echo "configure:7081: checking for --enable-treectrl" >&5
10f2d63a
VZ
7081 no_cache=0
7082 # Check whether --enable-treectrl or --disable-treectrl was given.
7083if test "${enable_treectrl+set}" = set; then
7084 enableval="$enable_treectrl"
698dcdb6 7085
10f2d63a
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7088 else
7089 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7090 fi
698dcdb6 7091
10f2d63a 7092else
698dcdb6 7093
10f2d63a
VZ
7094 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7102
7103fi
10f2d63a
VZ
7104
7105
1e6feb95
VZ
7106 eval "$ac_cv_use_treectrl"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_TREECTRL" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
9926e4a4 7118 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
3bd8fb5f 7119echo "configure:7120: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7120 no_cache=0
7121 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7122if test "${enable_tipwindow+set}" = set; then
7123 enableval="$enable_tipwindow"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7127 else
7128 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_tipwindow"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TIPWINDOW" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
9f41d601 7157 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
3bd8fb5f 7158echo "configure:7159: checking for --enable-popupwin" >&5
9f41d601
RR
7159 no_cache=0
7160 # Check whether --enable-popupwin or --disable-popupwin was given.
7161if test "${enable_popupwin+set}" = set; then
7162 enableval="$enable_popupwin"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7166 else
7167 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_popupwin"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_POPUPWIN" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
1e6feb95
VZ
7196
7197
7198 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
3bd8fb5f 7199echo "configure:7200: checking for --enable-commondlg" >&5
1e6feb95
VZ
7200 no_cache=0
7201 # Check whether --enable-commondlg or --disable-commondlg was given.
7202if test "${enable_commondlg+set}" = set; then
7203 enableval="$enable_commondlg"
7204
7205 if test "$enableval" = yes; then
7206 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7207 else
7208 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7209 fi
7210
7211else
7212
7213 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7221
7222fi
7223
7224
7225 eval "$ac_cv_use_commondlg"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_COMMONDLGS" = yes; then
7231 echo "$ac_t""yes" 1>&6
7232 else
7233 echo "$ac_t""no" 1>&6
7234 fi
7235
7236
7237 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
3bd8fb5f 7238echo "configure:7239: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7239 no_cache=0
7240 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7241if test "${enable_choicedlg+set}" = set; then
7242 enableval="$enable_choicedlg"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7246 else
7247 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7260
7261fi
7262
7263
7264 eval "$ac_cv_use_choicedlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_CHOICEDLG" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
3bd8fb5f 7277echo "configure:7278: checking for --enable-coldlg" >&5
1e6feb95
VZ
7278 no_cache=0
7279 # Check whether --enable-coldlg or --disable-coldlg was given.
7280if test "${enable_coldlg+set}" = set; then
7281 enableval="$enable_coldlg"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7285 else
7286 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7287 fi
7288
7289else
7290
7291 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7299
7300fi
7301
7302
7303 eval "$ac_cv_use_coldlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_COLOURDLG" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
3bd8fb5f 7316echo "configure:7317: checking for --enable-filedlg" >&5
1e6feb95
VZ
7317 no_cache=0
7318 # Check whether --enable-filedlg or --disable-filedlg was given.
7319if test "${enable_filedlg+set}" = set; then
7320 enableval="$enable_filedlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7324 else
7325 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7338
7339fi
7340
7341
7342 eval "$ac_cv_use_filedlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_FILEDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
69d27ff7 7354 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
3bd8fb5f 7355echo "configure:7356: checking for --enable-finddlg" >&5
8db37e06 7356 no_cache=0
69d27ff7
MB
7357 # Check whether --enable-finddlg or --disable-finddlg was given.
7358if test "${enable_finddlg+set}" = set; then
7359 enableval="$enable_finddlg"
8db37e06
VZ
7360
7361 if test "$enableval" = yes; then
69d27ff7 7362 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7363 else
69d27ff7 7364 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
69d27ff7 7376 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7377
7378fi
7379
7380
69d27ff7 7381 eval "$ac_cv_use_finddlg"
8db37e06 7382 if test "$no_cache" != 1; then
69d27ff7 7383 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7384 fi
7385
7386 if test "$wxUSE_FINDREPLDLG" = yes; then
7387 echo "$ac_t""yes" 1>&6
7388 else
7389 echo "$ac_t""no" 1>&6
7390 fi
7391
7392
1e6feb95 7393 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
3bd8fb5f 7394echo "configure:7395: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7395 no_cache=0
7396 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7397if test "${enable_fontdlg+set}" = set; then
7398 enableval="$enable_fontdlg"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7402 else
7403 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7416
7417fi
7418
7419
7420 eval "$ac_cv_use_fontdlg"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_FONTDLG" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
7432 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
3bd8fb5f 7433echo "configure:7434: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7434 no_cache=0
7435 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7436if test "${enable_dirdlg+set}" = set; then
7437 enableval="$enable_dirdlg"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7441 else
7442 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_dirdlg"
10f2d63a 7460 if test "$no_cache" != 1; then
1e6feb95 7461 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7462 fi
7463
1e6feb95 7464 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7465 echo "$ac_t""yes" 1>&6
10f2d63a 7466 else
698dcdb6 7467 echo "$ac_t""no" 1>&6
10f2d63a 7468 fi
698dcdb6
VZ
7469
7470
1e6feb95 7471 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
3bd8fb5f 7472echo "configure:7473: checking for --enable-msgdlg" >&5
10f2d63a 7473 no_cache=0
1e6feb95
VZ
7474 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7475if test "${enable_msgdlg+set}" = set; then
7476 enableval="$enable_msgdlg"
698dcdb6 7477
10f2d63a 7478 if test "$enableval" = yes; then
1e6feb95 7479 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7480 else
1e6feb95 7481 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7482 fi
698dcdb6 7483
10f2d63a 7484else
698dcdb6 7485
1e6feb95 7486 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
1e6feb95 7493 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7494
7495fi
10f2d63a
VZ
7496
7497
1e6feb95 7498 eval "$ac_cv_use_msgdlg"
10f2d63a 7499 if test "$no_cache" != 1; then
1e6feb95 7500 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7501 fi
7502
1e6feb95 7503 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7504 echo "$ac_t""yes" 1>&6
10f2d63a 7505 else
698dcdb6 7506 echo "$ac_t""no" 1>&6
10f2d63a 7507 fi
698dcdb6 7508
10f2d63a 7509
1e6feb95 7510 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
3bd8fb5f 7511echo "configure:7512: checking for --enable-numberdlg" >&5
10f2d63a 7512 no_cache=0
1e6feb95
VZ
7513 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7514if test "${enable_numberdlg+set}" = set; then
7515 enableval="$enable_numberdlg"
698dcdb6 7516
10f2d63a 7517 if test "$enableval" = yes; then
1e6feb95 7518 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7519 else
1e6feb95 7520 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7521 fi
698dcdb6 7522
10f2d63a 7523else
698dcdb6 7524
1e6feb95 7525 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
1e6feb95 7532 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7533
7534fi
10f2d63a
VZ
7535
7536
1e6feb95 7537 eval "$ac_cv_use_numberdlg"
10f2d63a 7538 if test "$no_cache" != 1; then
1e6feb95 7539 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7540 fi
7541
1e6feb95 7542 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7543 echo "$ac_t""yes" 1>&6
10f2d63a 7544 else
698dcdb6 7545 echo "$ac_t""no" 1>&6
10f2d63a 7546 fi
698dcdb6 7547
10f2d63a 7548
cbca9943 7549 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
3bd8fb5f 7550echo "configure:7551: checking for --enable-splash" >&5
cbca9943
VZ
7551 no_cache=0
7552 # Check whether --enable-splash or --disable-splash was given.
7553if test "${enable_splash+set}" = set; then
7554 enableval="$enable_splash"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_splash='wxUSE_SPLASH=yes'
7558 else
7559 ac_cv_use_splash='wxUSE_SPLASH=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7572
7573fi
7574
7575
7576 eval "$ac_cv_use_splash"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_SPLASH" = yes; then
7582 echo "$ac_t""yes" 1>&6
7583 else
7584 echo "$ac_t""no" 1>&6
7585 fi
7586
7587
698dcdb6 7588 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
3bd8fb5f 7589echo "configure:7590: checking for --enable-textdlg" >&5
10f2d63a
VZ
7590 no_cache=0
7591 # Check whether --enable-textdlg or --disable-textdlg was given.
7592if test "${enable_textdlg+set}" = set; then
7593 enableval="$enable_textdlg"
698dcdb6 7594
10f2d63a
VZ
7595 if test "$enableval" = yes; then
7596 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7597 else
7598 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7599 fi
698dcdb6 7600
10f2d63a 7601else
698dcdb6 7602
10f2d63a
VZ
7603 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7611
7612fi
10f2d63a
VZ
7613
7614
7615 eval "$ac_cv_use_textdlg"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7621 echo "$ac_t""yes" 1>&6
10f2d63a 7622 else
698dcdb6 7623 echo "$ac_t""no" 1>&6
10f2d63a 7624 fi
698dcdb6 7625
10f2d63a 7626
698dcdb6 7627 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
3bd8fb5f 7628echo "configure:7629: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7631if test "${enable_tipdlg+set}" = set; then
7632 enableval="$enable_tipdlg"
698dcdb6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7636 else
7637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7638 fi
698dcdb6 7639
10f2d63a 7640else
698dcdb6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7650
7651fi
10f2d63a
VZ
7652
7653
7654 eval "$ac_cv_use_tipdlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7660 echo "$ac_t""yes" 1>&6
10f2d63a 7661 else
698dcdb6 7662 echo "$ac_t""no" 1>&6
10f2d63a 7663 fi
698dcdb6 7664
10f2d63a 7665
698dcdb6 7666 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
3bd8fb5f 7667echo "configure:7668: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7668 no_cache=0
7669 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7670if test "${enable_progressdlg+set}" = set; then
7671 enableval="$enable_progressdlg"
698dcdb6 7672
10f2d63a
VZ
7673 if test "$enableval" = yes; then
7674 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7675 else
7676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7677 fi
698dcdb6 7678
10f2d63a 7679else
698dcdb6 7680
10f2d63a
VZ
7681 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7689
7690fi
10f2d63a
VZ
7691
7692
7693 eval "$ac_cv_use_progressdlg"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7699 echo "$ac_t""yes" 1>&6
10f2d63a 7700 else
698dcdb6 7701 echo "$ac_t""no" 1>&6
10f2d63a 7702 fi
698dcdb6 7703
10f2d63a 7704
b1f5d087 7705 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
3bd8fb5f 7706echo "configure:7707: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7707 no_cache=0
7708 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7709if test "${enable_wizarddlg+set}" = set; then
7710 enableval="$enable_wizarddlg"
7711
7712 if test "$enableval" = yes; then
7713 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7714 else
7715 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7716 fi
7717
7718else
7719
7720 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7721 if test "x$LINE" != x ; then
7722 eval "DEFAULT_$LINE"
7723 else
7724 no_cache=1
7725 fi
7726
7727 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7728
7729fi
7730
7731
7732 eval "$ac_cv_use_wizarddlg"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_WIZARDDLG" = yes; then
7738 echo "$ac_t""yes" 1>&6
7739 else
7740 echo "$ac_t""no" 1>&6
7741 fi
7742
7743
7744
7745
1e6feb95 7746 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
3bd8fb5f 7747echo "configure:7748: checking for --enable-menus" >&5
1e6feb95
VZ
7748 no_cache=0
7749 # Check whether --enable-menus or --disable-menus was given.
7750if test "${enable_menus+set}" = set; then
7751 enableval="$enable_menus"
7752
7753 if test "$enableval" = yes; then
7754 ac_cv_use_menus='wxUSE_MENUS=yes'
7755 else
7756 ac_cv_use_menus='wxUSE_MENUS=no'
7757 fi
7758
7759else
7760
7761 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7762 if test "x$LINE" != x ; then
7763 eval "DEFAULT_$LINE"
7764 else
7765 no_cache=1
7766 fi
7767
7768 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7769
7770fi
7771
7772
7773 eval "$ac_cv_use_menus"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_MENUS" = yes; then
7779 echo "$ac_t""yes" 1>&6
7780 else
7781 echo "$ac_t""no" 1>&6
7782 fi
7783
7784
698dcdb6 7785 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
3bd8fb5f 7786echo "configure:7787: checking for --enable-miniframe" >&5
10f2d63a
VZ
7787 no_cache=0
7788 # Check whether --enable-miniframe or --disable-miniframe was given.
7789if test "${enable_miniframe+set}" = set; then
7790 enableval="$enable_miniframe"
698dcdb6 7791
10f2d63a
VZ
7792 if test "$enableval" = yes; then
7793 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7794 else
7795 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7796 fi
698dcdb6 7797
10f2d63a 7798else
698dcdb6 7799
10f2d63a
VZ
7800 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7808
7809fi
10f2d63a
VZ
7810
7811
7812 eval "$ac_cv_use_miniframe"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7818 echo "$ac_t""yes" 1>&6
10f2d63a 7819 else
698dcdb6 7820 echo "$ac_t""no" 1>&6
10f2d63a 7821 fi
698dcdb6 7822
10f2d63a 7823
698dcdb6 7824 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
3bd8fb5f 7825echo "configure:7826: checking for --enable-tooltips" >&5
10f2d63a
VZ
7826 no_cache=0
7827 # Check whether --enable-tooltips or --disable-tooltips was given.
7828if test "${enable_tooltips+set}" = set; then
7829 enableval="$enable_tooltips"
698dcdb6 7830
10f2d63a
VZ
7831 if test "$enableval" = yes; then
7832 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7833 else
7834 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7835 fi
698dcdb6 7836
10f2d63a 7837else
698dcdb6 7838
10f2d63a
VZ
7839 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7847
7848fi
10f2d63a
VZ
7849
7850
7851 eval "$ac_cv_use_tooltips"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7857 echo "$ac_t""yes" 1>&6
10f2d63a 7858 else
698dcdb6 7859 echo "$ac_t""no" 1>&6
10f2d63a 7860 fi
698dcdb6 7861
10f2d63a 7862
698dcdb6 7863 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
3bd8fb5f 7864echo "configure:7865: checking for --enable-splines" >&5
10f2d63a
VZ
7865 no_cache=0
7866 # Check whether --enable-splines or --disable-splines was given.
7867if test "${enable_splines+set}" = set; then
7868 enableval="$enable_splines"
698dcdb6 7869
10f2d63a
VZ
7870 if test "$enableval" = yes; then
7871 ac_cv_use_splines='wxUSE_SPLINES=yes'
7872 else
7873 ac_cv_use_splines='wxUSE_SPLINES=no'
7874 fi
698dcdb6 7875
10f2d63a 7876else
698dcdb6 7877
10f2d63a
VZ
7878 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7886
7887fi
10f2d63a
VZ
7888
7889
7890 eval "$ac_cv_use_splines"
7891 if test "$no_cache" != 1; then
7892 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7893 fi
7894
7895 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7896 echo "$ac_t""yes" 1>&6
10f2d63a 7897 else
698dcdb6 7898 echo "$ac_t""no" 1>&6
10f2d63a 7899 fi
698dcdb6 7900
10f2d63a 7901
698dcdb6 7902 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
3bd8fb5f 7903echo "configure:7904: checking for --enable-validators" >&5
10f2d63a
VZ
7904 no_cache=0
7905 # Check whether --enable-validators or --disable-validators was given.
7906if test "${enable_validators+set}" = set; then
7907 enableval="$enable_validators"
698dcdb6 7908
10f2d63a
VZ
7909 if test "$enableval" = yes; then
7910 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7911 else
7912 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7913 fi
698dcdb6 7914
10f2d63a 7915else
698dcdb6 7916
10f2d63a
VZ
7917 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7918 if test "x$LINE" != x ; then
7919 eval "DEFAULT_$LINE"
7920 else
7921 no_cache=1
7922 fi
7923
7924 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7925
7926fi
10f2d63a
VZ
7927
7928
7929 eval "$ac_cv_use_validators"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7935 echo "$ac_t""yes" 1>&6
10f2d63a 7936 else
698dcdb6 7937 echo "$ac_t""no" 1>&6
10f2d63a 7938 fi
698dcdb6 7939
10f2d63a 7940
698dcdb6 7941 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
3bd8fb5f 7942echo "configure:7943: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7943 no_cache=0
7944 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7945if test "${enable_busyinfo+set}" = set; then
7946 enableval="$enable_busyinfo"
698dcdb6 7947
10f2d63a
VZ
7948 if test "$enableval" = yes; then
7949 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7950 else
7951 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7952 fi
698dcdb6 7953
10f2d63a 7954else
698dcdb6 7955
10f2d63a
VZ
7956 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7957 if test "x$LINE" != x ; then
7958 eval "DEFAULT_$LINE"
7959 else
7960 no_cache=1
7961 fi
7962
7963 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7964
7965fi
10f2d63a
VZ
7966
7967
7968 eval "$ac_cv_use_busyinfo"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7974 echo "$ac_t""yes" 1>&6
10f2d63a 7975 else
698dcdb6 7976 echo "$ac_t""no" 1>&6
10f2d63a 7977 fi
698dcdb6 7978
10f2d63a 7979
698dcdb6 7980 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
3bd8fb5f 7981echo "configure:7982: checking for --enable-joystick" >&5
f6bcfd97
BP
7982 no_cache=0
7983 # Check whether --enable-joystick or --disable-joystick was given.
7984if test "${enable_joystick+set}" = set; then
7985 enableval="$enable_joystick"
698dcdb6 7986
f6bcfd97
BP
7987 if test "$enableval" = yes; then
7988 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7989 else
7990 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7991 fi
698dcdb6 7992
f6bcfd97 7993else
698dcdb6 7994
f6bcfd97
BP
7995 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8003
8004fi
f6bcfd97
BP
8005
8006
8007 eval "$ac_cv_use_joystick"
8008 if test "$no_cache" != 1; then
8009 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8010 fi
8011
8012 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8013 echo "$ac_t""yes" 1>&6
f6bcfd97 8014 else
698dcdb6 8015 echo "$ac_t""no" 1>&6
f6bcfd97 8016 fi
698dcdb6
VZ
8017
8018
1e6feb95 8019 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bd8fb5f 8020echo "configure:8021: checking for --enable-metafile" >&5
1e6feb95
VZ
8021 no_cache=0
8022 # Check whether --enable-metafile or --disable-metafile was given.
8023if test "${enable_metafile+set}" = set; then
8024 enableval="$enable_metafile"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8028 else
8029 ac_cv_use_metafile='wxUSE_METAFILE=no'
8030 fi
8031
8032else
8033
8034 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8042
8043fi
8044
8045
8046 eval "$ac_cv_use_metafile"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_METAFILE" = yes; then
8052 echo "$ac_t""yes" 1>&6
8053 else
8054 echo "$ac_t""no" 1>&6
8055 fi
8056
8057
24fd6d87 8058 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
3bd8fb5f 8059echo "configure:8060: checking for --enable-dragimage" >&5
24fd6d87
VZ
8060 no_cache=0
8061 # Check whether --enable-dragimage or --disable-dragimage was given.
8062if test "${enable_dragimage+set}" = set; then
8063 enableval="$enable_dragimage"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8067 else
8068 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8081
8082fi
8083
8084
8085 eval "$ac_cv_use_dragimage"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_DRAGIMAGE" = yes; then
8091 echo "$ac_t""yes" 1>&6
8092 else
8093 echo "$ac_t""no" 1>&6
8094 fi
8095
8096
10f2d63a 8097
698dcdb6 8098
edae8572 8099 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
3bd8fb5f 8100echo "configure:8101: checking for --enable-palette" >&5
edae8572
VZ
8101 no_cache=0
8102 # Check whether --enable-palette or --disable-palette was given.
8103if test "${enable_palette+set}" = set; then
8104 enableval="$enable_palette"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_palette='wxUSE_PALETTE=yes'
8108 else
8109 ac_cv_use_palette='wxUSE_PALETTE=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8122
8123fi
8124
8125
8126 eval "$ac_cv_use_palette"
8127 if test "$no_cache" != 1; then
8128 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8129 fi
8130
8131 if test "$wxUSE_PALETTE" = yes; then
8132 echo "$ac_t""yes" 1>&6
8133 else
8134 echo "$ac_t""no" 1>&6
8135 fi
8136
8137
698dcdb6 8138 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
3bd8fb5f 8139echo "configure:8140: checking for --enable-image" >&5
0046ff7c
VS
8140 no_cache=0
8141 # Check whether --enable-image or --disable-image was given.
8142if test "${enable_image+set}" = set; then
8143 enableval="$enable_image"
698dcdb6 8144
0046ff7c
VS
8145 if test "$enableval" = yes; then
8146 ac_cv_use_image='wxUSE_IMAGE=yes'
8147 else
8148 ac_cv_use_image='wxUSE_IMAGE=no'
8149 fi
698dcdb6 8150
0046ff7c 8151else
698dcdb6 8152
0046ff7c
VS
8153 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8161
8162fi
0046ff7c
VS
8163
8164
8165 eval "$ac_cv_use_image"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8171 echo "$ac_t""yes" 1>&6
0046ff7c 8172 else
698dcdb6 8173 echo "$ac_t""no" 1>&6
0046ff7c 8174 fi
698dcdb6 8175
0046ff7c 8176
698dcdb6 8177 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
3bd8fb5f 8178echo "configure:8179: checking for --enable-gif" >&5
10f2d63a
VZ
8179 no_cache=0
8180 # Check whether --enable-gif or --disable-gif was given.
8181if test "${enable_gif+set}" = set; then
8182 enableval="$enable_gif"
698dcdb6 8183
10f2d63a
VZ
8184 if test "$enableval" = yes; then
8185 ac_cv_use_gif='wxUSE_GIF=yes'
8186 else
8187 ac_cv_use_gif='wxUSE_GIF=no'
8188 fi
698dcdb6 8189
10f2d63a 8190else
698dcdb6 8191
10f2d63a
VZ
8192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8200
8201fi
10f2d63a
VZ
8202
8203
8204 eval "$ac_cv_use_gif"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_GIF" = yes; then
698dcdb6 8210 echo "$ac_t""yes" 1>&6
10f2d63a 8211 else
698dcdb6 8212 echo "$ac_t""no" 1>&6
10f2d63a 8213 fi
698dcdb6 8214
10f2d63a 8215
698dcdb6 8216 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
3bd8fb5f 8217echo "configure:8218: checking for --enable-pcx" >&5
10f2d63a
VZ
8218 no_cache=0
8219 # Check whether --enable-pcx or --disable-pcx was given.
8220if test "${enable_pcx+set}" = set; then
8221 enableval="$enable_pcx"
698dcdb6 8222
10f2d63a
VZ
8223 if test "$enableval" = yes; then
8224 ac_cv_use_pcx='wxUSE_PCX=yes'
8225 else
8226 ac_cv_use_pcx='wxUSE_PCX=no'
8227 fi
698dcdb6 8228
10f2d63a 8229else
698dcdb6 8230
10f2d63a
VZ
8231 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8239
8240fi
10f2d63a
VZ
8241
8242
8243 eval "$ac_cv_use_pcx"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_PCX" = yes; then
698dcdb6 8249 echo "$ac_t""yes" 1>&6
10f2d63a 8250 else
698dcdb6 8251 echo "$ac_t""no" 1>&6
10f2d63a 8252 fi
698dcdb6 8253
10f2d63a 8254
4b6b4dfc 8255 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
3bd8fb5f 8256echo "configure:8257: checking for --enable-iff" >&5
4b6b4dfc
RR
8257 no_cache=0
8258 # Check whether --enable-iff or --disable-iff was given.
8259if test "${enable_iff+set}" = set; then
8260 enableval="$enable_iff"
8261
8262 if test "$enableval" = yes; then
8263 ac_cv_use_iff='wxUSE_IFF=yes'
8264 else
8265 ac_cv_use_iff='wxUSE_IFF=no'
8266 fi
8267
8268else
8269
8270 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8271 if test "x$LINE" != x ; then
8272 eval "DEFAULT_$LINE"
8273 else
8274 no_cache=1
8275 fi
8276
8277 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8278
8279fi
8280
8281
8282 eval "$ac_cv_use_iff"
8283 if test "$no_cache" != 1; then
8284 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8285 fi
8286
8287 if test "$wxUSE_IFF" = yes; then
8288 echo "$ac_t""yes" 1>&6
8289 else
8290 echo "$ac_t""no" 1>&6
8291 fi
8292
8293
698dcdb6 8294 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3bd8fb5f 8295echo "configure:8296: checking for --enable-pnm" >&5
10f2d63a
VZ
8296 no_cache=0
8297 # Check whether --enable-pnm or --disable-pnm was given.
8298if test "${enable_pnm+set}" = set; then
8299 enableval="$enable_pnm"
698dcdb6 8300
10f2d63a
VZ
8301 if test "$enableval" = yes; then
8302 ac_cv_use_pnm='wxUSE_PNM=yes'
8303 else
8304 ac_cv_use_pnm='wxUSE_PNM=no'
8305 fi
698dcdb6 8306
10f2d63a 8307else
698dcdb6 8308
10f2d63a
VZ
8309 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8317
8318fi
10f2d63a
VZ
8319
8320
8321 eval "$ac_cv_use_pnm"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_PNM" = yes; then
698dcdb6 8327 echo "$ac_t""yes" 1>&6
10f2d63a 8328 else
698dcdb6 8329 echo "$ac_t""no" 1>&6
10f2d63a 8330 fi
698dcdb6 8331
10f2d63a 8332
69d27ff7 8333 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
3bd8fb5f 8334echo "configure:8335: checking for --enable-xpm" >&5
0046ff7c 8335 no_cache=0
69d27ff7
MB
8336 # Check whether --enable-xpm or --disable-xpm was given.
8337if test "${enable_xpm+set}" = set; then
8338 enableval="$enable_xpm"
698dcdb6 8339
0046ff7c 8340 if test "$enableval" = yes; then
69d27ff7 8341 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8342 else
69d27ff7 8343 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8344 fi
698dcdb6 8345
0046ff7c 8346else
698dcdb6 8347
0046ff7c
VS
8348 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
69d27ff7 8355 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8356
8357fi
0046ff7c
VS
8358
8359
69d27ff7 8360 eval "$ac_cv_use_xpm"
0046ff7c 8361 if test "$no_cache" != 1; then
69d27ff7 8362 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8363 fi
8364
8365 if test "$wxUSE_XPM" = yes; then
698dcdb6 8366 echo "$ac_t""yes" 1>&6
0046ff7c 8367 else
698dcdb6 8368 echo "$ac_t""no" 1>&6
0046ff7c 8369 fi
698dcdb6 8370
0046ff7c 8371
c7206e64 8372 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
3bd8fb5f 8373echo "configure:8374: checking for --enable-ico_cur" >&5
658974ae 8374 no_cache=0
c7206e64
VS
8375 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8376if test "${enable_ico_cur+set}" = set; then
8377 enableval="$enable_ico_cur"
658974ae
VS
8378
8379 if test "$enableval" = yes; then
c7206e64 8380 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8381 else
c7206e64 8382 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
c7206e64 8394 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8395
8396fi
8397
8398
c7206e64 8399 eval "$ac_cv_use_ico_cur"
658974ae 8400 if test "$no_cache" != 1; then
c7206e64 8401 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8402 fi
8403
8404 if test "$wxUSE_ICO_CUR" = yes; then
8405 echo "$ac_t""yes" 1>&6
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410
b12915c1
VZ
8411fi
8412
d558c907
VS
8413case "${host}" in
8414 *-pc-os2_emx | *-pc-os2-emx )
8415 LEX_STEM="lexyy"
8416 ;;
8417 *)
8418 PATH_IFS=':'
8419 LEX_STEM="lex.yy"
8420 ;;
8421esac
8422
8423
698dcdb6 8424
10f2d63a
VZ
8425 echo "saving argument cache $wx_arg_cache_file"
8426 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8427
10f2d63a 8428
698dcdb6
VZ
8429
8430echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3bd8fb5f 8431echo "configure:8432: checking for toolkit" >&5
10f2d63a
VZ
8432
8433if test "$wxUSE_GUI" = "yes"; then
8434
3a922bb4
RL
8435 if test "$USE_BEOS" = 1; then
8436 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8437 fi
b12915c1 8438
3a922bb4
RL
8439 if test "$TOOLKIT_GIVEN" = 1; then
8440 for toolkit in `echo $ALL_TOOLKITS`; do
8441 var=wxUSE_$toolkit
8442 eval "value=\$${var}"
8443 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8444 done
10f2d63a 8445 else
3a922bb4
RL
8446 for toolkit in `echo $ALL_TOOLKITS`; do
8447 if test "$has_toolkit_in_cache" != 1; then
8448 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8449 else
8450 var=DEFAULT_wxUSE_$toolkit
8451 fi
8452 eval "wxUSE_$toolkit=\$${var}"
8453 done
10f2d63a 8454 fi
10f2d63a 8455
3a922bb4 8456 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8457 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8458
d558c907 8459 case "${host}" in
6fa882bd 8460 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8461 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8462 esac
10f2d63a 8463
3a922bb4
RL
8464 case "$NUM_TOOLKITS" in
8465 1)
8466 ;;
8467 0)
8468 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8469 ;;
8470 *)
8471 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8472 esac
10f2d63a 8473
3a922bb4
RL
8474 for toolkit in `echo $ALL_TOOLKITS`; do
8475 var=wxUSE_$toolkit
8476 eval "value=\$${var}"
8477 if test "x$value" != x; then
8478 cache_var=CACHE_$toolkit
8479 eval "cache=\$${cache_var}"
8480 if test "$cache" = 1; then
8481 echo "$var=$value" >> ${wx_arg_cache_file}
8482 fi
8483 if test "$value" = 1; then
8484 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8485 echo "$ac_t""$toolkit_echo" 1>&6
8486 fi
8487 fi
8488 done
10f2d63a 8489else
3a922bb4 8490 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8491fi
8492
698dcdb6 8493
17234b26
MB
8494define_win32=0
8495case "${host}" in
8496 *-*-cygwin*)
8497 if test "$wxUSE_MSW" = 1 ; then
8498 define_win32=1
8499 fi
8500 ;;
8501 *-*-mingw*)
8502 define_win32=1
8503 ;;
8504esac
8505
8506if test "$define_win32" = 1 ; then
8507 USE_UNIX=0
8508 USE_WIN32=1
8509 cat >> confdefs.h <<\EOF
8510#define __WIN32__ 1
8511EOF
8512
8513 cat >> confdefs.h <<\EOF
8514#define __WIN95__ 1
8515EOF
8516
8517 cat >> confdefs.h <<\EOF
8518#define __WINDOWS__ 1
8519EOF
8520
8521 cat >> confdefs.h <<\EOF
8522#define __GNUWIN32__ 1
8523EOF
8524
8525 cat >> confdefs.h <<\EOF
8526#define STRICT 1
8527EOF
8528
8529 cat >> confdefs.h <<\EOF
8530#define WINVER 0x0400
8531EOF
8532
8533else
8534 USE_UNIX=1
8535 USE_WIN32=0
8536fi
8537
8538if test "$USE_UNIX" = 1 ; then
8539 wxUSE_UNIX=yes
8540 cat >> confdefs.h <<\EOF
8541#define __UNIX__ 1
8542EOF
8543
8544fi
8545
8546
698dcdb6 8547cat > confcache <<\EOF
10f2d63a
VZ
8548# This file is a shell script that caches the results of configure
8549# tests run on this system so they can be shared between configure
698dcdb6
VZ
8550# scripts and configure runs. It is not useful on other systems.
8551# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8552#
698dcdb6
VZ
8553# By default, configure uses ./config.cache as the cache file,
8554# creating it if it does not exist already. You can give configure
8555# the --cache-file=FILE option to use a different cache file; that is
8556# what configure does when it calls configure scripts in
8557# subdirectories, so they share the cache.
8558# Giving --cache-file=/dev/null disables caching, for debugging configure.
8559# config.status only pays attention to the cache file if you give it the
8560# --recheck option to rerun configure.
10f2d63a 8561#
698dcdb6 8562EOF
10f2d63a
VZ
8563# The following way of writing the cache mishandles newlines in values,
8564# but we know of no workaround that is simple, portable, and efficient.
8565# So, don't put newlines in cache variables' values.
8566# Ultrix sh set writes to stderr and can't be redirected directly,
8567# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8568(set) 2>&1 |
8569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8570 *ac_space=\ *)
8571 # `set' does not quote correctly, so add quotes (double-quote substitution
8572 # turns \\\\ into \\, and sed turns \\ into \).
8573 sed -n \
8574 -e "s/'/'\\\\''/g" \
8575 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8576 ;;
8577 *)
8578 # `set' quotes correctly as required by POSIX, so do not add quotes.
8579 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8580 ;;
8581 esac >> confcache
8582if cmp -s $cache_file confcache; then
8583 :
8584else
10f2d63a 8585 if test -w $cache_file; then
698dcdb6
VZ
8586 echo "updating cache $cache_file"
8587 cat confcache > $cache_file
10f2d63a
VZ
8588 else
8589 echo "not updating unwritable cache $cache_file"
8590 fi
8591fi
8592rm -f confcache
8593
698dcdb6 8594
e59890c3 8595if test "$build" != "$host" ; then
9d353d4a 8596 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8597 CC=$host_alias-gcc
8598 CXX=$host_alias-c++
8599 AR=$host_alias-ar
8600 RANLIB=$host_alias-ranlib
8601 DLLTOOL=$host_alias-dlltool
8602 RESCOMP=$host_alias-windres
8603 LD=$host_alias-ld
8604 NM=$host_alias-nm
8605 STRIP=$host_alias-strip
8606 else
8607 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8608 fi
10f2d63a
VZ
8609fi
8610
ec603395 8611CFLAGS=${CFLAGS:=}
698dcdb6 8612# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8613set dummy gcc; ac_word=$2
698dcdb6 8614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8615echo "configure:8616: checking for $ac_word" >&5
698dcdb6
VZ
8616if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8618else
8619 if test -n "$CC"; then
8620 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8621else
698dcdb6
VZ
8622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8623 ac_dummy="$PATH"
8624 for ac_dir in $ac_dummy; do
8625 test -z "$ac_dir" && ac_dir=.
8626 if test -f $ac_dir/$ac_word; then
8627 ac_cv_prog_CC="gcc"
8628 break
8629 fi
8630 done
8631 IFS="$ac_save_ifs"
10f2d63a 8632fi
6232543b 8633fi
698dcdb6 8634CC="$ac_cv_prog_CC"
6232543b 8635if test -n "$CC"; then
698dcdb6 8636 echo "$ac_t""$CC" 1>&6
1e487827 8637else
698dcdb6 8638 echo "$ac_t""no" 1>&6
1e487827 8639fi
6232543b 8640
1e487827
VS
8641if test -z "$CC"; then
8642 # Extract the first word of "cc", so it can be a program name with args.
8643set dummy cc; ac_word=$2
698dcdb6 8644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8645echo "configure:8646: checking for $ac_word" >&5
698dcdb6
VZ
8646if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8648else
8649 if test -n "$CC"; then
8650 ac_cv_prog_CC="$CC" # Let the user override the test.
8651else
698dcdb6 8652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8653 ac_prog_rejected=no
698dcdb6
VZ
8654 ac_dummy="$PATH"
8655 for ac_dir in $ac_dummy; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8659 ac_prog_rejected=yes
8660 continue
8661 fi
8662 ac_cv_prog_CC="cc"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
1e487827
VS
8667if test $ac_prog_rejected = yes; then
8668 # We found a bogon in the path, so make sure we never use it.
8669 set dummy $ac_cv_prog_CC
8670 shift
698dcdb6 8671 if test $# -gt 0; then
1e487827
VS
8672 # We chose a different compiler from the bogus one.
8673 # However, it has the same basename, so the bogon will be chosen
8674 # first if we set CC to just the basename; use the full file name.
8675 shift
698dcdb6 8676 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8677 shift
8678 ac_cv_prog_CC="$@"
703e0a69 8679 fi
1e487827
VS
8680fi
8681fi
8682fi
698dcdb6 8683CC="$ac_cv_prog_CC"
1e487827 8684if test -n "$CC"; then
698dcdb6 8685 echo "$ac_t""$CC" 1>&6
703e0a69 8686else
698dcdb6 8687 echo "$ac_t""no" 1>&6
703e0a69 8688fi
1e487827 8689
698dcdb6
VZ
8690 if test -z "$CC"; then
8691 case "`uname -s`" in
8692 *win32* | *WIN32*)
8693 # Extract the first word of "cl", so it can be a program name with args.
8694set dummy cl; ac_word=$2
8695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8696echo "configure:8697: checking for $ac_word" >&5
698dcdb6
VZ
8697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8699else
8700 if test -n "$CC"; then
8701 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8702else
698dcdb6
VZ
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_prog_CC="cl"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
703e0a69 8713fi
1e487827 8714fi
698dcdb6 8715CC="$ac_cv_prog_CC"
1e487827 8716if test -n "$CC"; then
698dcdb6 8717 echo "$ac_t""$CC" 1>&6
1e487827 8718else
698dcdb6 8719 echo "$ac_t""no" 1>&6
1e487827 8720fi
698dcdb6
VZ
8721 ;;
8722 esac
8723 fi
8724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8725fi
8726
698dcdb6 8727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bd8fb5f 8728echo "configure:8729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8729
698dcdb6
VZ
8730ac_ext=c
8731# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8732ac_cpp='$CPP $CPPFLAGS'
8733ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8734ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8735cross_compiling=$ac_cv_prog_cc_cross
6232543b 8736
698dcdb6 8737cat > conftest.$ac_ext << EOF
1e487827 8738
3bd8fb5f 8739#line 8740 "configure"
1e487827
VS
8740#include "confdefs.h"
8741
698dcdb6
VZ
8742main(){return(0);}
8743EOF
3bd8fb5f 8744if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8745 ac_cv_prog_cc_works=yes
8746 # If we can't run a trivial program, we are probably using a cross compiler.
8747 if (./conftest; exit) 2>/dev/null; then
8748 ac_cv_prog_cc_cross=no
8749 else
8750 ac_cv_prog_cc_cross=yes
8751 fi
8752else
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_prog_cc_works=no
8756fi
8757rm -fr conftest*
8758ac_ext=c
8759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8760ac_cpp='$CPP $CPPFLAGS'
8761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8763cross_compiling=$ac_cv_prog_cc_cross
8764
8765echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8766if test $ac_cv_prog_cc_works = no; then
8767 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8768fi
8769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bd8fb5f 8770echo "configure:8771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8771echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8772cross_compiling=$ac_cv_prog_cc_cross
8773
8774echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3bd8fb5f 8775echo "configure:8776: checking whether we are using GNU C" >&5
698dcdb6
VZ
8776if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8778else
8779 cat > conftest.c <<EOF
8780#ifdef __GNUC__
8781 yes;
1e487827 8782#endif
698dcdb6 8783EOF
3bd8fb5f 8784if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8785 ac_cv_prog_gcc=yes
8786else
8787 ac_cv_prog_gcc=no
8788fi
8789fi
1e487827 8790
698dcdb6 8791echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8792
698dcdb6
VZ
8793if test $ac_cv_prog_gcc = yes; then
8794 GCC=yes
8795else
8796 GCC=
8797fi
1e487827 8798
698dcdb6
VZ
8799ac_test_CFLAGS="${CFLAGS+set}"
8800ac_save_CFLAGS="$CFLAGS"
8801CFLAGS=
8802echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3bd8fb5f 8803echo "configure:8804: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8804if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 echo 'void f(){}' > conftest.c
8808if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8809 ac_cv_prog_cc_g=yes
8810else
698dcdb6 8811 ac_cv_prog_cc_g=no
10f2d63a 8812fi
698dcdb6
VZ
8813rm -f conftest*
8814
10f2d63a 8815fi
698dcdb6
VZ
8816
8817echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8818if test "$ac_test_CFLAGS" = set; then
698dcdb6 8819 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8820elif test $ac_cv_prog_cc_g = yes; then
8821 if test "$GCC" = yes; then
8822 CFLAGS="-g -O2"
8823 else
8824 CFLAGS="-g"
8825 fi
8826else
8827 if test "$GCC" = yes; then
8828 CFLAGS="-O2"
8829 else
8830 CFLAGS=
8831 fi
8832fi
8833
8834
698dcdb6 8835echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3bd8fb5f 8836echo "configure:8837: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8837# On Suns, sometimes $CPP names a directory.
8838if test -n "$CPP" && test -d "$CPP"; then
8839 CPP=
8840fi
8841if test -z "$CPP"; then
698dcdb6
VZ
8842if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8843 echo $ac_n "(cached) $ac_c" 1>&6
8844else
8845 # This must be in double quotes, not single quotes, because CPP may get
8846 # substituted into the Makefile and "${CC-cc}" will confuse make.
8847 CPP="${CC-cc} -E"
10f2d63a 8848 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8849 # not just through cpp.
8850 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8851#line 8852 "configure"
10f2d63a
VZ
8852#include "confdefs.h"
8853#include <assert.h>
698dcdb6
VZ
8854Syntax Error
8855EOF
8856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 8857{ (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8859if test -z "$ac_err"; then
10f2d63a
VZ
8860 :
8861else
698dcdb6
VZ
8862 echo "$ac_err" >&5
8863 echo "configure: failed program was:" >&5
10f2d63a 8864 cat conftest.$ac_ext >&5
698dcdb6
VZ
8865 rm -rf conftest*
8866 CPP="${CC-cc} -E -traditional-cpp"
8867 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8868#line 8869 "configure"
10f2d63a 8869#include "confdefs.h"
698dcdb6
VZ
8870#include <assert.h>
8871Syntax Error
8872EOF
8873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 8874{ (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8875ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8876if test -z "$ac_err"; then
8877 :
10f2d63a 8878else
698dcdb6
VZ
8879 echo "$ac_err" >&5
8880 echo "configure: failed program was:" >&5
10f2d63a 8881 cat conftest.$ac_ext >&5
698dcdb6
VZ
8882 rm -rf conftest*
8883 CPP="${CC-cc} -nologo -E"
8884 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8885#line 8886 "configure"
10f2d63a
VZ
8886#include "confdefs.h"
8887#include <assert.h>
698dcdb6
VZ
8888Syntax Error
8889EOF
8890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 8891{ (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893if test -z "$ac_err"; then
10f2d63a
VZ
8894 :
8895else
698dcdb6
VZ
8896 echo "$ac_err" >&5
8897 echo "configure: failed program was:" >&5
10f2d63a 8898 cat conftest.$ac_ext >&5
698dcdb6
VZ
8899 rm -rf conftest*
8900 CPP=/lib/cpp
10f2d63a 8901fi
698dcdb6 8902rm -f conftest*
10f2d63a 8903fi
698dcdb6 8904rm -f conftest*
703e0a69 8905fi
698dcdb6
VZ
8906rm -f conftest*
8907 ac_cv_prog_CPP="$CPP"
8908fi
8909 CPP="$ac_cv_prog_CPP"
10f2d63a 8910else
698dcdb6 8911 ac_cv_prog_CPP="$CPP"
10f2d63a 8912fi
698dcdb6 8913echo "$ac_t""$CPP" 1>&6
10f2d63a 8914
698dcdb6
VZ
8915if test $ac_cv_prog_gcc = yes; then
8916 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3bd8fb5f 8917echo "configure:8918: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8918if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8920else
8921 ac_pattern="Autoconf.*'x'"
698dcdb6 8922 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8923#line 8924 "configure"
10f2d63a
VZ
8924#include "confdefs.h"
8925#include <sgtty.h>
8926Autoconf TIOCGETP
698dcdb6 8927EOF
10f2d63a
VZ
8928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8929 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8930 rm -rf conftest*
10f2d63a
VZ
8931 ac_cv_prog_gcc_traditional=yes
8932else
698dcdb6 8933 rm -rf conftest*
10f2d63a
VZ
8934 ac_cv_prog_gcc_traditional=no
8935fi
8936rm -f conftest*
8937
698dcdb6 8938
10f2d63a 8939 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8940 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8941#line 8942 "configure"
10f2d63a
VZ
8942#include "confdefs.h"
8943#include <termio.h>
8944Autoconf TCGETA
698dcdb6 8945EOF
10f2d63a
VZ
8946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8948 rm -rf conftest*
10f2d63a
VZ
8949 ac_cv_prog_gcc_traditional=yes
8950fi
8951rm -f conftest*
8952
8953 fi
8954fi
698dcdb6
VZ
8955
8956echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8957 if test $ac_cv_prog_gcc_traditional = yes; then
8958 CC="$CC -traditional"
8959 fi
8960fi
8961
703e0a69 8962
698dcdb6
VZ
8963
8964ac_ext=C
8965# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8966ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8967ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8968ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8969cross_compiling=$ac_cv_prog_cxx_cross
8970
8971
ec603395 8972CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8973for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8974do
8975# Extract the first word of "$ac_prog", so it can be a program name with args.
8976set dummy $ac_prog; ac_word=$2
8977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8978echo "configure:8979: checking for $ac_word" >&5
698dcdb6
VZ
8979if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8981else
8982 if test -n "$CXX"; then
8983 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8984else
698dcdb6
VZ
8985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8986 ac_dummy="$PATH"
8987 for ac_dir in $ac_dummy; do
8988 test -z "$ac_dir" && ac_dir=.
8989 if test -f $ac_dir/$ac_word; then
8990 ac_cv_prog_CXX="$ac_prog"
8991 break
8992 fi
8993 done
8994 IFS="$ac_save_ifs"
10f2d63a
VZ
8995fi
8996fi
698dcdb6 8997CXX="$ac_cv_prog_CXX"
10f2d63a 8998if test -n "$CXX"; then
698dcdb6 8999 echo "$ac_t""$CXX" 1>&6
10f2d63a 9000else
698dcdb6 9001 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9002fi
9003
698dcdb6 9004test -n "$CXX" && break
10f2d63a 9005done
698dcdb6 9006test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
9007
9008
698dcdb6 9009echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bd8fb5f 9010echo "configure:9011: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 9011
698dcdb6
VZ
9012ac_ext=C
9013# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9014ac_cpp='$CXXCPP $CPPFLAGS'
9015ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9016ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9017cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9018
698dcdb6
VZ
9019cat > conftest.$ac_ext << EOF
9020
3bd8fb5f 9021#line 9022 "configure"
10f2d63a
VZ
9022#include "confdefs.h"
9023
698dcdb6
VZ
9024int main(){return(0);}
9025EOF
3bd8fb5f 9026if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9027 ac_cv_prog_cxx_works=yes
9028 # If we can't run a trivial program, we are probably using a cross compiler.
9029 if (./conftest; exit) 2>/dev/null; then
9030 ac_cv_prog_cxx_cross=no
9031 else
9032 ac_cv_prog_cxx_cross=yes
9033 fi
9034else
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9037 ac_cv_prog_cxx_works=no
9038fi
9039rm -fr conftest*
9040ac_ext=C
9041# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9042ac_cpp='$CXXCPP $CPPFLAGS'
9043ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9044ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9045cross_compiling=$ac_cv_prog_cxx_cross
9046
9047echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9048if test $ac_cv_prog_cxx_works = no; then
9049 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9050fi
9051echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bd8fb5f 9052echo "configure:9053: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9053echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9054cross_compiling=$ac_cv_prog_cxx_cross
9055
9056echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3bd8fb5f 9057echo "configure:9058: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9058if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9060else
9061 cat > conftest.C <<EOF
9062#ifdef __GNUC__
9063 yes;
10f2d63a 9064#endif
698dcdb6 9065EOF
3bd8fb5f 9066if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9067 ac_cv_prog_gxx=yes
9068else
9069 ac_cv_prog_gxx=no
9070fi
9071fi
10f2d63a 9072
698dcdb6 9073echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9074
698dcdb6
VZ
9075if test $ac_cv_prog_gxx = yes; then
9076 GXX=yes
9077else
9078 GXX=
9079fi
10f2d63a 9080
698dcdb6
VZ
9081ac_test_CXXFLAGS="${CXXFLAGS+set}"
9082ac_save_CXXFLAGS="$CXXFLAGS"
9083CXXFLAGS=
9084echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3bd8fb5f 9085echo "configure:9086: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9086if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088else
9089 echo 'void f(){}' > conftest.cc
9090if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9091 ac_cv_prog_cxx_g=yes
9092else
698dcdb6 9093 ac_cv_prog_cxx_g=no
10f2d63a 9094fi
698dcdb6
VZ
9095rm -f conftest*
9096
10f2d63a 9097fi
698dcdb6
VZ
9098
9099echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9100if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9101 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9102elif test $ac_cv_prog_cxx_g = yes; then
9103 if test "$GXX" = yes; then
9104 CXXFLAGS="-g -O2"
9105 else
9106 CXXFLAGS="-g"
9107 fi
9108else
9109 if test "$GXX" = yes; then
9110 CXXFLAGS="-O2"
9111 else
9112 CXXFLAGS=
9113 fi
9114fi
9115
9116
10f2d63a 9117ac_ext=c
698dcdb6 9118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9119ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9122cross_compiling=$ac_cv_prog_cc_cross
9123
9124
9125# Extract the first word of "ranlib", so it can be a program name with args.
9126set dummy ranlib; ac_word=$2
9127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9128echo "configure:9129: checking for $ac_word" >&5
698dcdb6
VZ
9129if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9131else
9132 if test -n "$RANLIB"; then
9133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9134else
698dcdb6
VZ
9135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9136 ac_dummy="$PATH"
9137 for ac_dir in $ac_dummy; do
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f $ac_dir/$ac_word; then
9140 ac_cv_prog_RANLIB="ranlib"
9141 break
9142 fi
9143 done
9144 IFS="$ac_save_ifs"
9145 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9146fi
9147fi
698dcdb6 9148RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9149if test -n "$RANLIB"; then
698dcdb6 9150 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9151else
698dcdb6 9152 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9153fi
9154
9155
9156# Extract the first word of "ar", so it can be a program name with args.
9157set dummy ar; ac_word=$2
698dcdb6 9158echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9159echo "configure:9160: checking for $ac_word" >&5
698dcdb6
VZ
9160if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9162else
9163 if test -n "$AR"; then
9164 ac_cv_prog_AR="$AR" # Let the user override the test.
9165else
698dcdb6
VZ
9166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9167 ac_dummy="$PATH"
9168 for ac_dir in $ac_dummy; do
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f $ac_dir/$ac_word; then
9171 ac_cv_prog_AR="ar"
9172 break
9173 fi
9174 done
9175 IFS="$ac_save_ifs"
10f2d63a
VZ
9176 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9177fi
9178fi
698dcdb6 9179AR="$ac_cv_prog_AR"
10f2d63a 9180if test -n "$AR"; then
698dcdb6 9181 echo "$ac_t""$AR" 1>&6
10f2d63a 9182else
698dcdb6 9183 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9184fi
9185
698dcdb6 9186
6054113a 9187# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9188# so one script is as good as another. But avoid the broken or
9189# incompatible versions:
9190# SysV /etc/install, /usr/sbin/install
9191# SunOS /usr/etc/install
9192# IRIX /sbin/install
9193# AIX /bin/install
9194# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9195# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9196# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9197# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9198echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3bd8fb5f 9199echo "configure:9200: checking for a BSD compatible install" >&5
10f2d63a 9200if test -z "$INSTALL"; then
698dcdb6
VZ
9201if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9203else
698dcdb6 9204 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9205 for ac_dir in $PATH; do
9206 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9207 case "$ac_dir/" in
9208 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9209 *)
9210 # OSF1 and SCO ODT 3.0 have their own names for install.
9211 # Don't use installbsd from OSF since it installs stuff as root
9212 # by default.
9213 for ac_prog in ginstall scoinst install; do
698dcdb6 9214 if test -f $ac_dir/$ac_prog; then
10f2d63a 9215 if test $ac_prog = install &&
698dcdb6 9216 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9217 # AIX install. It has an incompatible calling convention.
9218 :
9219 else
9220 ac_cv_path_install="$ac_dir/$ac_prog -c"
9221 break 2
9222 fi
9223 fi
9224 done
9225 ;;
9226 esac
9227 done
698dcdb6 9228 IFS="$ac_save_IFS"
10f2d63a
VZ
9229
9230fi
9231 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9232 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9233 else
9234 # As a last resort, use the slow shell script. We don't cache a
9235 # path for INSTALL within a source directory, because that will
9236 # break other packages using the cache if that directory is
9237 # removed, or if the path is relative.
698dcdb6 9238 INSTALL="$ac_install_sh"
10f2d63a
VZ
9239 fi
9240fi
698dcdb6 9241echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9242
9243# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9244# It thinks the first close brace ends the variable substitution.
9245test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9246
698dcdb6 9247test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9248
9249test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9250
1d1b75ac
VZ
9251
9252case ${INSTALL} in
9253 /* ) # Absolute
9254 ;;
3bd8fb5f 9255 *)
1d1b75ac
VZ
9256 INSTALL=`pwd`/${INSTALL} ;;
9257esac
9258
9259
6054113a
GD
9260case "${host}" in
9261
b5853384 9262 powerpc-*-darwin* )
eb99ae0b
GD
9263 INSTALL_PROGRAM="cp -fp"
9264 INSTALL_DATA="cp -fp"
6054113a
GD
9265 ;;
9266 *)
9267 ;;
d6853540 9268esac
698dcdb6 9269
10f2d63a
VZ
9270# Extract the first word of "strip", so it can be a program name with args.
9271set dummy strip; ac_word=$2
698dcdb6 9272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9273echo "configure:9274: checking for $ac_word" >&5
698dcdb6
VZ
9274if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9276else
9277 if test -n "$STRIP"; then
9278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9279else
698dcdb6
VZ
9280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9281 ac_dummy="$PATH"
9282 for ac_dir in $ac_dummy; do
9283 test -z "$ac_dir" && ac_dir=.
9284 if test -f $ac_dir/$ac_word; then
9285 ac_cv_prog_STRIP="strip"
9286 break
9287 fi
9288 done
9289 IFS="$ac_save_ifs"
10f2d63a
VZ
9290 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9291fi
9292fi
698dcdb6 9293STRIP="$ac_cv_prog_STRIP"
10f2d63a 9294if test -n "$STRIP"; then
698dcdb6 9295 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9296else
698dcdb6 9297 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9298fi
9299
698dcdb6 9300
414eab6d 9301echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
3bd8fb5f 9302echo "configure:9303: checking if make is GNU make" >&5
414eab6d
VZ
9303if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9305else
9306
9307 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9308 egrep -s GNU > /dev/null); then
414eab6d
VZ
9309 wx_cv_prog_makeisgnu="yes"
9310 else
9311 wx_cv_prog_makeisgnu="no"
9312 fi
9313
9314fi
9315
9316echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9317
9318if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9319 IF_GNU_MAKE=""
9320else
9321 IF_GNU_MAKE="#"
9322fi
9323
9324
9325
9326if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9327echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
3bd8fb5f 9328echo "configure:9329: checking if make supports VPATH" >&5
04e7a216
VZ
9329if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331else
9332
10f2d63a
VZ
9333cat - << EOF > confMake
9334check : file
9335 cp \$? \$@
9336 cp \$? final_file
9337EOF
9338
9339if test ! -d sub ; then
9340 mkdir sub
9341fi
9342echo dummy > sub/file
f6bcfd97 9343${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9344RESULT=$?
9345rm -f sub/file check final_file confMake
9346rmdir sub
9347if test "$RESULT" = 0; then
04e7a216 9348 wx_cv_prog_makevpath="yes"
10f2d63a 9349else
04e7a216
VZ
9350 wx_cv_prog_makevpath="no"
9351fi
9352
9353fi
9354
9355echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9356
9357if test "x$wx_cv_prog_makevpath" != "xyes"; then
9358{ echo "configure: error:
1e487827
VS
9359You need a make-utility that is able to use the variable
9360VPATH correctly.
9361If your version of make does not support VPATH correctly,
9362please install GNU-make (possibly as gmake), and start
9363configure with the following command:
9364export MAKE=gmake; ./configure for sh-type shells
9365setenv MAKE gmake; ./configure for csh-type shells
9366Also please do remember to use gmake in this case every time
9367you are trying to compile.
698dcdb6 9368" 1>&2; exit 1; }
414eab6d 9369fi fi
10f2d63a
VZ
9370for ac_prog in 'bison -y' byacc
9371do
698dcdb6 9372# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9373set dummy $ac_prog; ac_word=$2
698dcdb6 9374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9375echo "configure:9376: checking for $ac_word" >&5
698dcdb6
VZ
9376if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9378else
9379 if test -n "$YACC"; then
9380 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9381else
698dcdb6
VZ
9382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9383 ac_dummy="$PATH"
9384 for ac_dir in $ac_dummy; do
9385 test -z "$ac_dir" && ac_dir=.
9386 if test -f $ac_dir/$ac_word; then
9387 ac_cv_prog_YACC="$ac_prog"
9388 break
9389 fi
9390 done
9391 IFS="$ac_save_ifs"
10f2d63a
VZ
9392fi
9393fi
698dcdb6 9394YACC="$ac_cv_prog_YACC"
10f2d63a 9395if test -n "$YACC"; then
698dcdb6 9396 echo "$ac_t""$YACC" 1>&6
10f2d63a 9397else
698dcdb6 9398 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9399fi
9400
698dcdb6 9401test -n "$YACC" && break
10f2d63a
VZ
9402done
9403test -n "$YACC" || YACC="yacc"
9404
698dcdb6
VZ
9405
9406# Extract the first word of "flex", so it can be a program name with args.
9407set dummy flex; ac_word=$2
9408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9409echo "configure:9410: checking for $ac_word" >&5
698dcdb6
VZ
9410if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9412else
9413 if test -n "$LEX"; then
9414 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9415else
698dcdb6
VZ
9416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9417 ac_dummy="$PATH"
9418 for ac_dir in $ac_dummy; do
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f $ac_dir/$ac_word; then
9421 ac_cv_prog_LEX="flex"
9422 break
9423 fi
9424 done
9425 IFS="$ac_save_ifs"
9426 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9427fi
9428fi
698dcdb6 9429LEX="$ac_cv_prog_LEX"
10f2d63a 9430if test -n "$LEX"; then
698dcdb6 9431 echo "$ac_t""$LEX" 1>&6
10f2d63a 9432else
698dcdb6 9433 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9434fi
9435
9436if test -z "$LEXLIB"
9437then
698dcdb6
VZ
9438 case "$LEX" in
9439 flex*) ac_lib=fl ;;
9440 *) ac_lib=l ;;
9441 esac
9442 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3bd8fb5f 9443echo "configure:9444: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9444ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447else
9448 ac_save_LIBS="$LIBS"
9449LIBS="-l$ac_lib $LIBS"
9450cat > conftest.$ac_ext <<EOF
3bd8fb5f 9451#line 9452 "configure"
10f2d63a
VZ
9452#include "confdefs.h"
9453/* Override any gcc2 internal prototype to avoid an error. */
9454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9455 builtin and then its argument prototype would still apply. */
9456char yywrap();
10f2d63a 9457
698dcdb6
VZ
9458int main() {
9459yywrap()
9460; return 0; }
9461EOF
3bd8fb5f 9462if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9463 rm -rf conftest*
9464 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9465else
698dcdb6
VZ
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 rm -rf conftest*
9469 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9470fi
698dcdb6
VZ
9471rm -f conftest*
9472LIBS="$ac_save_LIBS"
9473
10f2d63a 9474fi
698dcdb6
VZ
9475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 LEXLIB="-l$ac_lib"
9478else
9479 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9480fi
9481
9482fi
9483
9484
698dcdb6 9485echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3bd8fb5f 9486echo "configure:9487: checking whether ln -s works" >&5
698dcdb6
VZ
9487if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9489else
698dcdb6
VZ
9490 rm -f conftestdata
9491if ln -s X conftestdata 2>/dev/null
9492then
9493 rm -f conftestdata
9494 ac_cv_prog_LN_S="ln -s"
10f2d63a 9495else
698dcdb6 9496 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9497fi
9498fi
698dcdb6
VZ
9499LN_S="$ac_cv_prog_LN_S"
9500if test "$ac_cv_prog_LN_S" = "ln -s"; then
9501 echo "$ac_t""yes" 1>&6
10f2d63a 9502else
698dcdb6 9503 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9504fi
9505
9506
9507
21d1c967
GD
9508if test "$wxUSE_MAC" != 1; then
9509 for ac_hdr in strings.h
9510do
9511ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9512echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9513echo "configure:9514: checking for $ac_hdr" >&5
21d1c967 9514if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9515 echo $ac_n "(cached) $ac_c" 1>&6
9516else
90dd450c 9517 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9518#line 9519 "configure"
19bc6aad 9519#include "confdefs.h"
21d1c967 9520#include <$ac_hdr>
19bc6aad 9521EOF
21d1c967 9522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9523{ (eval echo configure:9524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9525if test -z "$ac_err"; then
19bc6aad 9526 rm -rf conftest*
21d1c967 9527 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9528else
21d1c967 9529 echo "$ac_err" >&5
19bc6aad
VZ
9530 echo "configure: failed program was:" >&5
9531 cat conftest.$ac_ext >&5
9532 rm -rf conftest*
21d1c967 9533 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9534fi
9535rm -f conftest*
19bc6aad 9536fi
21d1c967
GD
9537if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9538 echo "$ac_t""yes" 1>&6
9539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9540 cat >> confdefs.h <<EOF
9541#define $ac_tr_hdr 1
19bc6aad 9542EOF
21d1c967
GD
9543
9544else
9545 echo "$ac_t""no" 1>&6
9546fi
9547done
19bc6aad 9548
19bc6aad
VZ
9549fi
9550
21d1c967
GD
9551for ac_hdr in stdlib.h
9552do
9553ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9554echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9555echo "configure:9556: checking for $ac_hdr" >&5
21d1c967 9556if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9557 echo $ac_n "(cached) $ac_c" 1>&6
9558else
9559 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9560#line 9561 "configure"
18dbb1f6 9561#include "confdefs.h"
21d1c967 9562#include <$ac_hdr>
18dbb1f6 9563EOF
21d1c967 9564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9565{ (eval echo configure:9566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9567if test -z "$ac_err"; then
18dbb1f6 9568 rm -rf conftest*
21d1c967 9569 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9570else
21d1c967 9571 echo "$ac_err" >&5
18dbb1f6
VZ
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
21d1c967
GD
9574 rm -rf conftest*
9575 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9576fi
9577rm -f conftest*
90dd450c 9578fi
21d1c967
GD
9579if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9580 echo "$ac_t""yes" 1>&6
9581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9582 cat >> confdefs.h <<EOF
9583#define $ac_tr_hdr 1
90dd450c 9584EOF
21d1c967
GD
9585
9586else
9587 echo "$ac_t""no" 1>&6
9588fi
9589done
90dd450c 9590
21d1c967
GD
9591for ac_hdr in malloc.h
9592do
9593ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9595echo "configure:9596: checking for $ac_hdr" >&5
21d1c967 9596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9597 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9598else
9599 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9600#line 9601 "configure"
90dd450c 9601#include "confdefs.h"
21d1c967 9602#include <$ac_hdr>
18dbb1f6 9603EOF
21d1c967 9604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9605{ (eval echo configure:9606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9607if test -z "$ac_err"; then
9608 rm -rf conftest*
9609 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9610else
21d1c967 9611 echo "$ac_err" >&5
18dbb1f6
VZ
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
21d1c967
GD
9614 rm -rf conftest*
9615 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9616fi
21d1c967 9617rm -f conftest*
18dbb1f6 9618fi
21d1c967
GD
9619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9620 echo "$ac_t""yes" 1>&6
9621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9622 cat >> confdefs.h <<EOF
9623#define $ac_tr_hdr 1
4f14bcd8 9624EOF
21d1c967
GD
9625
9626else
9627 echo "$ac_t""no" 1>&6
9628fi
9629done
dad6c0ea 9630
21d1c967
GD
9631for ac_hdr in unistd.h
9632do
9633ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9634echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9635echo "configure:9636: checking for $ac_hdr" >&5
21d1c967 9636if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638else
9639 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9640#line 9641 "configure"
3a922bb4 9641#include "confdefs.h"
21d1c967 9642#include <$ac_hdr>
3a922bb4 9643EOF
21d1c967 9644ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9645{ (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9646ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9647if test -z "$ac_err"; then
9648 rm -rf conftest*
9649 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9650else
21d1c967 9651 echo "$ac_err" >&5
3a922bb4
RL
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
21d1c967
GD
9654 rm -rf conftest*
9655 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9656fi
21d1c967 9657rm -f conftest*
90dd450c 9658fi
21d1c967
GD
9659if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9660 echo "$ac_t""yes" 1>&6
9661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9662 cat >> confdefs.h <<EOF
9663#define $ac_tr_hdr 1
90dd450c 9664EOF
21d1c967
GD
9665
9666else
9667 echo "$ac_t""no" 1>&6
9668fi
9669done
90dd450c 9670
21d1c967
GD
9671for ac_hdr in wchar.h
9672do
9673ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9674echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9675echo "configure:9676: checking for $ac_hdr" >&5
21d1c967 9676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9677 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9678else
9679 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9680#line 9681 "configure"
4f14bcd8 9681#include "confdefs.h"
21d1c967 9682#include <$ac_hdr>
3a922bb4 9683EOF
21d1c967 9684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9685{ (eval echo configure:9686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9687if test -z "$ac_err"; then
9688 rm -rf conftest*
9689 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9690else
21d1c967 9691 echo "$ac_err" >&5
4f14bcd8
GD
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
21d1c967
GD
9694 rm -rf conftest*
9695 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9696fi
21d1c967 9697rm -f conftest*
4f14bcd8 9698fi
21d1c967
GD
9699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9700 echo "$ac_t""yes" 1>&6
9701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9702 cat >> confdefs.h <<EOF
9703#define $ac_tr_hdr 1
4f14bcd8 9704EOF
21d1c967
GD
9705
9706else
9707 echo "$ac_t""no" 1>&6
9708fi
9709done
4f14bcd8 9710
4f14bcd8 9711
21d1c967
GD
9712if test "$ac_cv_header_wchar_h" != "yes"; then
9713 for ac_hdr in wcstr.h
9714do
9715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9717echo "configure:9718: checking for $ac_hdr" >&5
21d1c967 9718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720else
9721 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9722#line 9723 "configure"
d4158b5d 9723#include "confdefs.h"
21d1c967 9724#include <$ac_hdr>
d4158b5d 9725EOF
21d1c967 9726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9727{ (eval echo configure:9728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9729if test -z "$ac_err"; then
9730 rm -rf conftest*
9731 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9732else
21d1c967 9733 echo "$ac_err" >&5
d4158b5d
VS
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
21d1c967
GD
9736 rm -rf conftest*
9737 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9738fi
21d1c967
GD
9739rm -f conftest*
9740fi
9741if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9742 echo "$ac_t""yes" 1>&6
9743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9744 cat >> confdefs.h <<EOF
9745#define $ac_tr_hdr 1
9746EOF
9747
9748else
9749 echo "$ac_t""no" 1>&6
d4158b5d 9750fi
21d1c967 9751done
f6bcfd97 9752
90dd450c 9753fi
90dd450c
VZ
9754
9755
21d1c967
GD
9756for ac_hdr in fnmatch.h
9757do
9758ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9759echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9760echo "configure:9761: checking for $ac_hdr" >&5
21d1c967 9761if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9762 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9763else
9764 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9765#line 9766 "configure"
90dd450c 9766#include "confdefs.h"
21d1c967 9767#include <$ac_hdr>
90dd450c 9768EOF
21d1c967 9769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9770{ (eval echo configure:9771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9771ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9772if test -z "$ac_err"; then
9773 rm -rf conftest*
9774 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9775else
21d1c967 9776 echo "$ac_err" >&5
3a922bb4
RL
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
21d1c967
GD
9779 rm -rf conftest*
9780 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9781fi
21d1c967 9782rm -f conftest*
4f14bcd8 9783fi
21d1c967
GD
9784if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9785 echo "$ac_t""yes" 1>&6
9786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9787 cat >> confdefs.h <<EOF
9788#define $ac_tr_hdr 1
90dd450c 9789EOF
21d1c967
GD
9790
9791else
9792 echo "$ac_t""no" 1>&6
9793fi
9794done
90dd450c
VZ
9795
9796
21d1c967
GD
9797if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9798 for ac_func in fnmatch
9799do
9800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 9801echo "configure:9802: checking for $ac_func" >&5
21d1c967 9802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9803 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9804else
9805 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9806#line 9807 "configure"
90dd450c 9807#include "confdefs.h"
21d1c967
GD
9808/* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func(); below. */
9810#include <assert.h>
9811/* Override any gcc2 internal prototype to avoid an error. */
9812/* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814char $ac_func();
9815
9816int main() {
9817
9818/* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822choke me
9823#else
9824$ac_func();
9825#endif
9826
9827; return 0; }
90dd450c 9828EOF
3bd8fb5f 9829if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
9830 rm -rf conftest*
9831 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9832else
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
21d1c967
GD
9835 rm -rf conftest*
9836 eval "ac_cv_func_$ac_func=no"
90dd450c 9837fi
21d1c967 9838rm -f conftest*
4f14bcd8 9839fi
32832908 9840
21d1c967
GD
9841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9842 echo "$ac_t""yes" 1>&6
9843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9844 cat >> confdefs.h <<EOF
9845#define $ac_tr_func 1
90dd450c 9846EOF
21d1c967
GD
9847
9848else
9849 echo "$ac_t""no" 1>&6
9850fi
9851done
90dd450c 9852
21d1c967 9853fi
90dd450c 9854
21d1c967
GD
9855for ac_hdr in langinfo.h
9856do
9857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9859echo "configure:9860: checking for $ac_hdr" >&5
21d1c967 9860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9861 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9862else
9863 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9864#line 9865 "configure"
90dd450c 9865#include "confdefs.h"
21d1c967 9866#include <$ac_hdr>
90dd450c 9867EOF
21d1c967 9868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9869{ (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9871if test -z "$ac_err"; then
9872 rm -rf conftest*
9873 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9874else
21d1c967 9875 echo "$ac_err" >&5
90dd450c
VZ
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
21d1c967
GD
9878 rm -rf conftest*
9879 eval "ac_cv_header_$ac_safe=no"
90dd450c 9880fi
21d1c967 9881rm -f conftest*
4f14bcd8 9882fi
21d1c967
GD
9883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9884 echo "$ac_t""yes" 1>&6
9885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9886 cat >> confdefs.h <<EOF
9887#define $ac_tr_hdr 1
90dd450c 9888EOF
21d1c967
GD
9889
9890else
9891 echo "$ac_t""no" 1>&6
9892fi
9893done
3a922bb4 9894
7b7a7637 9895
21d1c967
GD
9896if test "$wxUSE_GUI" = "yes"; then
9897 if test "$wxUSE_UNIX" = "yes"; then
9898 for ac_hdr in X11/XKBlib.h
9899do
9900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9902echo "configure:9903: checking for $ac_hdr" >&5
21d1c967 9903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9904 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9905else
9906 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9907#line 9908 "configure"
90dd450c 9908#include "confdefs.h"
21d1c967 9909#include <$ac_hdr>
90dd450c 9910EOF
21d1c967 9911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9912{ (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9914if test -z "$ac_err"; then
9915 rm -rf conftest*
9916 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9917else
21d1c967 9918 echo "$ac_err" >&5
90dd450c
VZ
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
21d1c967
GD
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9923fi
21d1c967 9924rm -f conftest*
90dd450c 9925fi
21d1c967
GD
9926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9929 cat >> confdefs.h <<EOF
9930#define $ac_tr_hdr 1
4f14bcd8 9931EOF
21d1c967
GD
9932
9933else
9934 echo "$ac_t""no" 1>&6
9935fi
9936done
10f2d63a 9937
21d1c967 9938 fi
90dd450c 9939fi
81809c07 9940
21d1c967
GD
9941
9942echo $ac_n "checking for working const""... $ac_c" 1>&6
3bd8fb5f 9943echo "configure:9944: checking for working const" >&5
21d1c967 9944if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9945 echo $ac_n "(cached) $ac_c" 1>&6
9946else
21d1c967 9947 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9948#line 9949 "configure"
4f14bcd8 9949#include "confdefs.h"
21d1c967 9950
4f14bcd8 9951int main() {
21d1c967
GD
9952
9953/* Ultrix mips cc rejects this. */
9954typedef int charset[2]; const charset x;
9955/* SunOS 4.1.1 cc rejects this. */
9956char const *const *ccp;
9957char **p;
9958/* NEC SVR4.0.2 mips cc rejects this. */
9959struct point {int x, y;};
9960static struct point const zero = {0,0};
9961/* AIX XL C 1.02.0.0 rejects this.
9962 It does not let you subtract one const X* pointer from another in an arm
9963 of an if-expression whose if-part is not a constant expression */
9964const char *g = "string";
9965ccp = &g + (g ? g-g : 0);
9966/* HPUX 7.0 cc rejects these. */
9967++ccp;
9968p = (char**) ccp;
9969ccp = (char const *const *) p;
9970{ /* SCO 3.2v4 cc rejects this. */
9971 char *t;
9972 char const *s = 0 ? (char *) 0 : (char const *) 0;
9973
9974 *t++ = 0;
9975}
9976{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9977 int x[] = {25, 17};
9978 const int *foo = &x[0];
9979 ++foo;
9980}
9981{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9982 typedef const int *iptr;
9983 iptr p = 0;
9984 ++p;
9985}
9986{ /* AIX XL C 1.02.0.0 rejects this saying
9987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9988 struct s { int j; const int *ap[3]; };
9989 struct s *b; b->j = 5;
9990}
9991{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9992 const int foo = 10;
9993}
4f14bcd8 9994
4f14bcd8
GD
9995; return 0; }
9996EOF
3bd8fb5f 9997if { (eval echo configure:9998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9998 rm -rf conftest*
21d1c967 9999 ac_cv_c_const=yes
6f72b082 10000else
4f14bcd8
GD
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10003 rm -rf conftest*
21d1c967 10004 ac_cv_c_const=no
4f14bcd8
GD
10005fi
10006rm -f conftest*
698dcdb6 10007fi
6f72b082 10008
21d1c967
GD
10009echo "$ac_t""$ac_cv_c_const" 1>&6
10010if test $ac_cv_c_const = no; then
10011 cat >> confdefs.h <<\EOF
10012#define const
90dd450c
VZ
10013EOF
10014
21d1c967 10015fi
90dd450c 10016
21d1c967 10017echo $ac_n "checking for inline""... $ac_c" 1>&6
3bd8fb5f 10018echo "configure:10019: checking for inline" >&5
21d1c967 10019if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 10020 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10021else
21d1c967
GD
10022 ac_cv_c_inline=no
10023for ac_kw in inline __inline__ __inline; do
10024 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10025#line 10026 "configure"
4f14bcd8 10026#include "confdefs.h"
90dd450c 10027
21d1c967
GD
10028int main() {
10029} $ac_kw foo() {
4f14bcd8
GD
10030; return 0; }
10031EOF
3bd8fb5f 10032if { (eval echo configure:10033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 10033 rm -rf conftest*
21d1c967 10034 ac_cv_c_inline=$ac_kw; break
6f72b082 10035else
4f14bcd8
GD
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
698dcdb6 10038fi
4f14bcd8 10039rm -f conftest*
21d1c967 10040done
4f14bcd8 10041
21d1c967 10042fi
4f14bcd8 10043
21d1c967
GD
10044echo "$ac_t""$ac_cv_c_inline" 1>&6
10045case "$ac_cv_c_inline" in
10046 inline | yes) ;;
10047 no) cat >> confdefs.h <<\EOF
10048#define inline
90dd450c 10049EOF
21d1c967
GD
10050 ;;
10051 *) cat >> confdefs.h <<EOF
10052#define inline $ac_cv_c_inline
4f14bcd8 10053EOF
21d1c967
GD
10054 ;;
10055esac
4f14bcd8 10056
90dd450c 10057
21d1c967 10058echo $ac_n "checking size of char""... $ac_c" 1>&6
3bd8fb5f 10059echo "configure:10060: checking size of char" >&5
21d1c967 10060if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10061 echo $ac_n "(cached) $ac_c" 1>&6
10062else
21d1c967
GD
10063 if test "$cross_compiling" = yes; then
10064 ac_cv_sizeof_char=1
4f14bcd8 10065else
90dd450c 10066 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10067#line 10068 "configure"
4f14bcd8 10068#include "confdefs.h"
21d1c967 10069#include <stdio.h>
6a30f1c8 10070#include <sys/types.h>
21d1c967
GD
10071main()
10072{
10073 FILE *f=fopen("conftestval", "w");
10074 if (!f) exit(1);
10075 fprintf(f, "%d\n", sizeof(char));
10076 exit(0);
90dd450c 10077}
4f14bcd8 10078EOF
6a30f1c8 10079if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10080then
21d1c967 10081 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10082else
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
90dd450c 10085 rm -fr conftest*
21d1c967 10086 ac_cv_sizeof_char=0
90dd450c
VZ
10087fi
10088rm -fr conftest*
4f14bcd8 10089fi
4f14bcd8
GD
10090
10091fi
21d1c967
GD
10092echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10093cat >> confdefs.h <<EOF
10094#define SIZEOF_CHAR $ac_cv_sizeof_char
10095EOF
4f14bcd8 10096
21d1c967
GD
10097
10098echo $ac_n "checking size of short""... $ac_c" 1>&6
6a30f1c8 10099echo "configure:10100: checking size of short" >&5
21d1c967
GD
10100if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10102else
10103 if test "$cross_compiling" = yes; then
10104 ac_cv_sizeof_short=2
10105else
10106 cat > conftest.$ac_ext <<EOF
6a30f1c8 10107#line 10108 "configure"
21d1c967
GD
10108#include "confdefs.h"
10109#include <stdio.h>
6a30f1c8 10110#include <sys/types.h>
21d1c967
GD
10111main()
10112{
10113 FILE *f=fopen("conftestval", "w");
10114 if (!f) exit(1);
10115 fprintf(f, "%d\n", sizeof(short));
10116 exit(0);
10117}
90dd450c 10118EOF
6a30f1c8 10119if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10120then
10121 ac_cv_sizeof_short=`cat conftestval`
10122else
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 rm -fr conftest*
10126 ac_cv_sizeof_short=0
10127fi
10128rm -fr conftest*
10129fi
4f14bcd8 10130
4f14bcd8 10131fi
21d1c967
GD
10132echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10133cat >> confdefs.h <<EOF
10134#define SIZEOF_SHORT $ac_cv_sizeof_short
10135EOF
4f14bcd8
GD
10136
10137
21d1c967 10138echo $ac_n "checking size of void *""... $ac_c" 1>&6
6a30f1c8 10139echo "configure:10140: checking size of void *" >&5
21d1c967 10140if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10141 echo $ac_n "(cached) $ac_c" 1>&6
10142else
21d1c967
GD
10143 if test "$cross_compiling" = yes; then
10144 ac_cv_sizeof_void_p=4
10145else
4f14bcd8 10146 cat > conftest.$ac_ext <<EOF
6a30f1c8 10147#line 10148 "configure"
4f14bcd8 10148#include "confdefs.h"
21d1c967 10149#include <stdio.h>
6a30f1c8 10150#include <sys/types.h>
21d1c967
GD
10151main()
10152{
10153 FILE *f=fopen("conftestval", "w");
10154 if (!f) exit(1);
10155 fprintf(f, "%d\n", sizeof(void *));
10156 exit(0);
10157}
4f14bcd8 10158EOF
6a30f1c8 10159if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10160then
10161 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10162else
4f14bcd8
GD
10163 echo "configure: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
21d1c967
GD
10165 rm -fr conftest*
10166 ac_cv_sizeof_void_p=0
4f14bcd8 10167fi
21d1c967 10168rm -fr conftest*
4f14bcd8 10169fi
4f14bcd8 10170
21d1c967
GD
10171fi
10172echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10173cat >> confdefs.h <<EOF
10174#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10175EOF
10176
90dd450c 10177
21d1c967 10178echo $ac_n "checking size of int""... $ac_c" 1>&6
6a30f1c8 10179echo "configure:10180: checking size of int" >&5
21d1c967 10180if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10181 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10182else
10183 if test "$cross_compiling" = yes; then
10184 ac_cv_sizeof_int=4
4f14bcd8
GD
10185else
10186 cat > conftest.$ac_ext <<EOF
6a30f1c8 10187#line 10188 "configure"
4f14bcd8 10188#include "confdefs.h"
21d1c967 10189#include <stdio.h>
6a30f1c8 10190#include <sys/types.h>
21d1c967
GD
10191main()
10192{
10193 FILE *f=fopen("conftestval", "w");
10194 if (!f) exit(1);
10195 fprintf(f, "%d\n", sizeof(int));
10196 exit(0);
10197}
4f14bcd8 10198EOF
6a30f1c8 10199if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10200then
10201 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10202else
4f14bcd8
GD
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
21d1c967
GD
10205 rm -fr conftest*
10206 ac_cv_sizeof_int=0
4f14bcd8 10207fi
21d1c967 10208rm -fr conftest*
4f14bcd8 10209fi
4f14bcd8 10210
21d1c967
GD
10211fi
10212echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10213cat >> confdefs.h <<EOF
10214#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10215EOF
10216
90dd450c 10217
21d1c967 10218echo $ac_n "checking size of long""... $ac_c" 1>&6
6a30f1c8 10219echo "configure:10220: checking size of long" >&5
21d1c967 10220if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10221 echo $ac_n "(cached) $ac_c" 1>&6
10222else
21d1c967
GD
10223 if test "$cross_compiling" = yes; then
10224 ac_cv_sizeof_long=4
10225else
10226 cat > conftest.$ac_ext <<EOF
6a30f1c8 10227#line 10228 "configure"
90dd450c 10228#include "confdefs.h"
21d1c967 10229#include <stdio.h>
6a30f1c8 10230#include <sys/types.h>
21d1c967
GD
10231main()
10232{
10233 FILE *f=fopen("conftestval", "w");
10234 if (!f) exit(1);
10235 fprintf(f, "%d\n", sizeof(long));
10236 exit(0);
10237}
4f14bcd8 10238EOF
6a30f1c8 10239if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10240then
10241 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10242else
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
21d1c967
GD
10245 rm -fr conftest*
10246 ac_cv_sizeof_long=0
4f14bcd8 10247fi
21d1c967 10248rm -fr conftest*
90dd450c 10249fi
4f14bcd8 10250
21d1c967
GD
10251fi
10252echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10253cat >> confdefs.h <<EOF
10254#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10255EOF
4f14bcd8 10256
4f14bcd8 10257
4f14bcd8 10258
21d1c967
GD
10259case "${host}" in
10260 arm-*-linux* )
10261 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6a30f1c8 10262echo "configure:10263: checking size of long long" >&5
21d1c967
GD
10263if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10264 echo $ac_n "(cached) $ac_c" 1>&6
10265else
10266 if test "$cross_compiling" = yes; then
10267 ac_cv_sizeof_long_long=8
10268else
10269 cat > conftest.$ac_ext <<EOF
6a30f1c8 10270#line 10271 "configure"
21d1c967
GD
10271#include "confdefs.h"
10272#include <stdio.h>
6a30f1c8 10273#include <sys/types.h>
21d1c967
GD
10274main()
10275{
10276 FILE *f=fopen("conftestval", "w");
10277 if (!f) exit(1);
10278 fprintf(f, "%d\n", sizeof(long long));
10279 exit(0);
10280}
90dd450c 10281EOF
6a30f1c8 10282if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10283then
10284 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10285else
21d1c967
GD
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -fr conftest*
10289 ac_cv_sizeof_long_long=0
10290fi
10291rm -fr conftest*
90dd450c 10292fi
4f14bcd8 10293
21d1c967
GD
10294fi
10295echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10296cat >> confdefs.h <<EOF
10297#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10298EOF
90dd450c 10299
21d1c967
GD
10300
10301 ;;
10302 * )
10303 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6a30f1c8 10304echo "configure:10305: checking size of long long" >&5
21d1c967 10305if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10306 echo $ac_n "(cached) $ac_c" 1>&6
10307else
21d1c967
GD
10308 if test "$cross_compiling" = yes; then
10309 ac_cv_sizeof_long_long=0
10310else
10311 cat > conftest.$ac_ext <<EOF
6a30f1c8 10312#line 10313 "configure"
90dd450c 10313#include "confdefs.h"
21d1c967 10314#include <stdio.h>
6a30f1c8 10315#include <sys/types.h>
21d1c967
GD
10316main()
10317{
10318 FILE *f=fopen("conftestval", "w");
10319 if (!f) exit(1);
10320 fprintf(f, "%d\n", sizeof(long long));
10321 exit(0);
10322}
90dd450c 10323EOF
6a30f1c8 10324if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10325then
10326 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10327else
90dd450c
VZ
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
21d1c967
GD
10330 rm -fr conftest*
10331 ac_cv_sizeof_long_long=0
90dd450c 10332fi
21d1c967 10333rm -fr conftest*
4f14bcd8
GD
10334fi
10335
90dd450c 10336fi
21d1c967
GD
10337echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10338cat >> confdefs.h <<EOF
10339#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10340EOF
9e691f46 10341
9e691f46 10342
21d1c967
GD
10343esac
10344
10345echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
6a30f1c8 10346echo "configure:10347: checking size of wchar_t" >&5
21d1c967 10347if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10348 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10349else
10350
10351 if test "$cross_compiling" = yes; then
10352 wx_cv_sizeof_wchar_t=4
10353
6f72b082 10354else
698dcdb6 10355 cat > conftest.$ac_ext <<EOF
6a30f1c8 10356#line 10357 "configure"
6f72b082 10357#include "confdefs.h"
21d1c967
GD
10358
10359 #ifdef HAVE_WCHAR_H
10360 # ifdef __CYGWIN__
10361 # include <stddef.h>
10362 # endif
10363 # include <wchar.h>
10364 #endif
10365 #ifdef HAVE_STDLIB_H
10366 # include <stdlib.h>
10367 #endif
10368 #include <stdio.h>
10369 int main()
10370 {
10371 FILE *f=fopen("conftestval", "w");
10372 if (!f) exit(1);
10373 fprintf(f, "%i", sizeof(wchar_t));
10374 exit(0);
10375 }
10376
698dcdb6 10377EOF
6a30f1c8 10378if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10379then
10380 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10381else
698dcdb6
VZ
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
21d1c967
GD
10384 rm -fr conftest*
10385 wx_cv_sizeof_wchar_t=0
6f72b082 10386fi
21d1c967 10387rm -fr conftest*
6f72b082 10388fi
6f72b082 10389
90dd450c 10390
3f345b47
VZ
10391fi
10392
21d1c967 10393echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10394
21d1c967
GD
10395cat >> confdefs.h <<EOF
10396#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10397EOF
90dd450c 10398
90dd450c 10399
21d1c967
GD
10400# Check whether --enable-largefile or --disable-largefile was given.
10401if test "${enable_largefile+set}" = set; then
10402 enableval="$enable_largefile"
10403 :
3f345b47
VZ
10404fi
10405
21d1c967
GD
10406if test "$enable_largefile" != no; then
10407 wx_largefile=no
10408
10409 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
6a30f1c8 10410echo "configure:10411: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21d1c967 10411if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10412 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10413else
21d1c967
GD
10414
10415 cat > conftest.$ac_ext <<EOF
6a30f1c8 10416#line 10417 "configure"
90dd450c 10417#include "confdefs.h"
21d1c967
GD
10418#define _FILE_OFFSET_BITS 64
10419 #include <sys/types.h>
10420int main() {
10421typedef struct {
10422 unsigned int field: sizeof(off_t) == 8;
10423} wxlf;
10424
10425; return 0; }
90dd450c 10426EOF
6a30f1c8 10427if { (eval echo configure:10428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10428 rm -rf conftest*
21d1c967 10429 ac_cv_sys_file_offset_bits=64
f6bcfd97 10430else
90dd450c
VZ
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10433 rm -rf conftest*
21d1c967 10434 ac_cv_sys_file_offset_bits=no
f6bcfd97 10435fi
90dd450c 10436rm -f conftest*
21d1c967
GD
10437
10438
90dd450c 10439fi
21d1c967
GD
10440
10441echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10442
10443 if test "$ac_cv_sys_file_offset_bits" != no; then
10444 wx_largefile=yes
10445 cat >> confdefs.h <<EOF
10446#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10447EOF
10448
10449 fi
10450
10451 if test "x$wx_largefile" != "xyes"; then
10452
10453 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
6a30f1c8 10454echo "configure:10455: checking for _LARGE_FILES value needed for large files" >&5
21d1c967 10455if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10456 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10457else
21d1c967
GD
10458
10459 cat > conftest.$ac_ext <<EOF
6a30f1c8 10460#line 10461 "configure"
f6bcfd97 10461#include "confdefs.h"
21d1c967
GD
10462#define _LARGE_FILES 1
10463 #include <sys/types.h>
90dd450c 10464int main() {
21d1c967
GD
10465typedef struct {
10466 unsigned int field: sizeof(off_t) == 8;
10467} wxlf;
10468
90dd450c 10469; return 0; }
698dcdb6 10470EOF
6a30f1c8 10471if { (eval echo configure:10472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10472 rm -rf conftest*
21d1c967 10473 ac_cv_sys_large_files=1
f6bcfd97 10474else
698dcdb6
VZ
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
90dd450c 10477 rm -rf conftest*
21d1c967 10478 ac_cv_sys_large_files=no
f6bcfd97 10479fi
90dd450c 10480rm -f conftest*
21d1c967
GD
10481
10482
f6bcfd97 10483fi
698dcdb6 10484
21d1c967 10485echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10486
21d1c967
GD
10487 if test "$ac_cv_sys_large_files" != no; then
10488 wx_largefile=yes
10489 cat >> confdefs.h <<EOF
10490#define _LARGE_FILES $ac_cv_sys_large_files
10491EOF
90dd450c 10492
90dd450c
VZ
10493 fi
10494
90dd450c 10495 fi
90dd450c 10496
21d1c967 10497 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
6a30f1c8 10498echo "configure:10499: checking if large file support is available" >&5
21d1c967
GD
10499 if test "x$wx_largefile" = "xyes"; then
10500 cat >> confdefs.h <<\EOF
10501#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10502EOF
10503
90dd450c 10504 fi
21d1c967
GD
10505 echo "$ac_t""$wx_largefile" 1>&6
10506fi
90dd450c 10507
90dd450c 10508
21d1c967 10509echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6a30f1c8 10510echo "configure:10511: checking whether byte ordering is bigendian" >&5
21d1c967 10511if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10512 echo $ac_n "(cached) $ac_c" 1>&6
10513else
21d1c967
GD
10514 ac_cv_c_bigendian=unknown
10515# See if sys/param.h defines the BYTE_ORDER macro.
10516cat > conftest.$ac_ext <<EOF
6a30f1c8 10517#line 10518 "configure"
90dd450c 10518#include "confdefs.h"
21d1c967
GD
10519#include <sys/types.h>
10520#include <sys/param.h>
10521int main() {
10522
10523#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10524 bogus endian macros
10525#endif
10526; return 0; }
90dd450c 10527EOF
6a30f1c8 10528if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10529 rm -rf conftest*
21d1c967 10530 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10531cat > conftest.$ac_ext <<EOF
6a30f1c8 10532#line 10533 "configure"
90dd450c 10533#include "confdefs.h"
21d1c967
GD
10534#include <sys/types.h>
10535#include <sys/param.h>
3f345b47 10536int main() {
21d1c967
GD
10537
10538#if BYTE_ORDER != BIG_ENDIAN
10539 not big endian
10540#endif
3f345b47
VZ
10541; return 0; }
10542EOF
6a30f1c8 10543if { (eval echo configure:10544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10544 rm -rf conftest*
21d1c967 10545 ac_cv_c_bigendian=yes
3f345b47
VZ
10546else
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 rm -rf conftest*
21d1c967 10550 ac_cv_c_bigendian=no
3f345b47
VZ
10551fi
10552rm -f conftest*
3f345b47 10553else
21d1c967
GD
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
3f345b47 10556fi
21d1c967
GD
10557rm -f conftest*
10558if test $ac_cv_c_bigendian = unknown; then
10559if test "$cross_compiling" = yes; then
10560 ac_cv_c_bigendian=unknown
10f2d63a 10561else
90dd450c 10562 cat > conftest.$ac_ext <<EOF
6a30f1c8 10563#line 10564 "configure"
90dd450c 10564#include "confdefs.h"
21d1c967
GD
10565main () {
10566 /* Are we little or big endian? From Harbison&Steele. */
10567 union
10568 {
10569 long l;
10570 char c[sizeof (long)];
10571 } u;
10572 u.l = 1;
10573 exit (u.c[sizeof (long) - 1] == 1);
10574}
3f345b47 10575EOF
6a30f1c8 10576if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10577then
10578 ac_cv_c_bigendian=no
3f345b47
VZ
10579else
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
21d1c967
GD
10582 rm -fr conftest*
10583 ac_cv_c_bigendian=yes
3f345b47 10584fi
21d1c967 10585rm -fr conftest*
8168de4c 10586fi
703e0a69 10587
21d1c967
GD
10588fi
10589fi
698dcdb6 10590
21d1c967
GD
10591echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10592if test $ac_cv_c_bigendian = unknown; then
10593 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
10594fi
10595if test $ac_cv_c_bigendian = yes; then
10596 cat >> confdefs.h <<\EOF
10597#define WORDS_BIGENDIAN 1
10598EOF
10599
10600fi
10601
10602
10603echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6a30f1c8 10604echo "configure:10605: checking how to run the C++ preprocessor" >&5
21d1c967
GD
10605if test -z "$CXXCPP"; then
10606if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10607 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10608else
21d1c967
GD
10609 ac_ext=C
10610# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10611ac_cpp='$CXXCPP $CPPFLAGS'
10612ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10613ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10614cross_compiling=$ac_cv_prog_cxx_cross
10615 CXXCPP="${CXX-g++} -E"
10616 cat > conftest.$ac_ext <<EOF
6a30f1c8 10617#line 10618 "configure"
7ec2881a 10618#include "confdefs.h"
21d1c967 10619#include <stdlib.h>
698dcdb6 10620EOF
21d1c967 10621ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 10622{ (eval echo configure:10623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10623ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10624if test -z "$ac_err"; then
10625 :
698dcdb6 10626else
21d1c967 10627 echo "$ac_err" >&5
698dcdb6
VZ
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 rm -rf conftest*
21d1c967 10631 CXXCPP=/lib/cpp
698dcdb6
VZ
10632fi
10633rm -f conftest*
21d1c967
GD
10634 ac_cv_prog_CXXCPP="$CXXCPP"
10635ac_ext=C
10636# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10637ac_cpp='$CXXCPP $CPPFLAGS'
10638ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10639ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10640cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10641fi
90dd450c 10642fi
21d1c967
GD
10643CXXCPP="$ac_cv_prog_CXXCPP"
10644echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10645
1725144d 10646
21d1c967 10647 if test "$cross_compiling" = "yes"; then
90dd450c 10648 cat >> confdefs.h <<\EOF
21d1c967 10649#define wxUSE_IOSTREAMH 1
90dd450c 10650EOF
ab9b9eab 10651
21d1c967
GD
10652 else
10653
10654 ac_ext=C
10655# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10656ac_cpp='$CXXCPP $CPPFLAGS'
10657ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10658ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10659cross_compiling=$ac_cv_prog_cxx_cross
10660
ba337fe7 10661
21d1c967
GD
10662 for ac_hdr in iostream
10663do
10664ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10665echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a30f1c8 10666echo "configure:10667: checking for $ac_hdr" >&5
90dd450c 10667if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10668 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10669else
90dd450c 10670 cat > conftest.$ac_ext <<EOF
6a30f1c8 10671#line 10672 "configure"
ab9b9eab 10672#include "confdefs.h"
21d1c967 10673#include <$ac_hdr>
698dcdb6
VZ
10674EOF
10675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 10676{ (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10678if test -z "$ac_err"; then
10679 rm -rf conftest*
90dd450c 10680 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10681else
698dcdb6
VZ
10682 echo "$ac_err" >&5
10683 echo "configure: failed program was:" >&5
ab9b9eab 10684 cat conftest.$ac_ext >&5
698dcdb6 10685 rm -rf conftest*
90dd450c 10686 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10687fi
698dcdb6 10688rm -f conftest*
90dd450c
VZ
10689fi
10690if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
21d1c967
GD
10692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10693 cat >> confdefs.h <<EOF
10694#define $ac_tr_hdr 1
698dcdb6 10695EOF
21d1c967 10696
ab9b9eab 10697else
90dd450c
VZ
10698 echo "$ac_t""no" 1>&6
10699fi
21d1c967 10700done
10f2d63a 10701
10f2d63a 10702
21d1c967
GD
10703 if test "$ac_cv_header_iostream" = "yes" ; then
10704 :
10705 else
10706 cat >> confdefs.h <<\EOF
10707#define wxUSE_IOSTREAMH 1
10708EOF
788deba1 10709
90dd450c 10710 fi
ab9b9eab 10711
21d1c967
GD
10712 ac_ext=c
10713# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10714ac_cpp='$CPP $CPPFLAGS'
10715ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10716ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10717cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10718
21d1c967 10719 fi
ab9b9eab 10720
21d1c967
GD
10721
10722
10723 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6a30f1c8 10724echo "configure:10725: checking if C++ compiler supports bool" >&5
21d1c967 10725if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10726 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10727else
21d1c967
GD
10728
10729
10730 ac_ext=C
10731# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732ac_cpp='$CXXCPP $CPPFLAGS'
10733ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735cross_compiling=$ac_cv_prog_cxx_cross
10736
10737
10738 cat > conftest.$ac_ext <<EOF
6a30f1c8 10739#line 10740 "configure"
ab9b9eab 10740#include "confdefs.h"
21d1c967
GD
10741
10742
10743int main() {
10744
10745 bool b = true;
10746
10747 return 0;
10748
10749; return 0; }
698dcdb6 10750EOF
6a30f1c8 10751if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10752 rm -rf conftest*
21d1c967
GD
10753
10754 wx_cv_cpp_bool=yes
10755
698dcdb6
VZ
10756else
10757 echo "configure: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 rm -rf conftest*
21d1c967
GD
10760
10761 wx_cv_cpp_bool=no
10762
10763
698dcdb6
VZ
10764fi
10765rm -f conftest*
21d1c967
GD
10766
10767 ac_ext=c
10768# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10769ac_cpp='$CPP $CPPFLAGS'
10770ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10771ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10772cross_compiling=$ac_cv_prog_cc_cross
10773
10774
698dcdb6 10775fi
21d1c967
GD
10776
10777echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10778
10779 if test "$wx_cv_cpp_bool" = "yes"; then
10780 cat >> confdefs.h <<\EOF
10781#define HAVE_BOOL 1
90dd450c 10782EOF
ab9b9eab 10783
21d1c967
GD
10784 fi
10785
10786
10787
986ecc86 10788 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
6a30f1c8 10789echo "configure:10790: checking if C++ compiler supports the explicit keyword" >&5
986ecc86
VZ
10790if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10792else
10793
10794
10795 ac_ext=C
10796# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10797ac_cpp='$CXXCPP $CPPFLAGS'
10798ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10799ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10800cross_compiling=$ac_cv_prog_cxx_cross
10801
10802
10803 cat > conftest.$ac_ext <<EOF
6a30f1c8 10804#line 10805 "configure"
986ecc86
VZ
10805#include "confdefs.h"
10806
10807 class Foo { public: explicit Foo(int) {} };
10808
10809int main() {
10810
10811 return 0;
10812
10813; return 0; }
10814EOF
6a30f1c8 10815if { (eval echo configure:10816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10816 rm -rf conftest*
10817
10818 cat > conftest.$ac_ext <<EOF
6a30f1c8 10819#line 10820 "configure"
986ecc86
VZ
10820#include "confdefs.h"
10821
10822 class Foo { public: explicit Foo(int) {} };
10823 static void TakeFoo(const Foo& foo) { }
10824
10825int main() {
10826
10827 TakeFoo(17);
10828 return 0;
10829
10830; return 0; }
10831EOF
6a30f1c8 10832if { (eval echo configure:10833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10833 rm -rf conftest*
10834 wx_cv_explicit=no
10835else
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 rm -rf conftest*
10839 wx_cv_explicit=yes
10840
10841fi
10842rm -f conftest*
10843
10844else
10845 echo "configure: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10847 rm -rf conftest*
10848 wx_cv_explicit=no
10849
10850fi
10851rm -f conftest*
10852
10853 ac_ext=c
10854# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10855ac_cpp='$CPP $CPPFLAGS'
10856ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10857ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10858cross_compiling=$ac_cv_prog_cc_cross
10859
10860
10861fi
10862
10863echo "$ac_t""$wx_cv_explicit" 1>&6
10864
10865 if test "$wx_cv_explicit" = "yes"; then
10866 cat >> confdefs.h <<\EOF
10867#define HAVE_EXPLICIT 1
10868EOF
10869
10870 fi
10871
10872
10873
21d1c967
GD
10874SEARCH_INCLUDE="\
10875 /usr/local/include \
10876 \
10877 /usr/Motif-1.2/include \
10878 /usr/Motif-2.1/include \
10879 \
10880 /usr/include/Motif1.2 \
10881 /opt/xpm/include/X11 \
10882 /opt/GBxpm/include/ \
10883 /opt/GBxpm/X11/include/ \
10884 \
10885 /usr/Motif1.2/include \
10886 /usr/dt/include \
10887 /usr/openwin/include \
10888 \
10889 /usr/include/Xm \
10890 \
10891 /usr/X11R6/include \
10892 /usr/X11R6.4/include \
10893 /usr/X11R5/include \
10894 /usr/X11R4/include \
10895 \
10896 /usr/include/X11R6 \
10897 /usr/include/X11R5 \
10898 /usr/include/X11R4 \
10899 \
10900 /usr/local/X11R6/include \
10901 /usr/local/X11R5/include \
10902 /usr/local/X11R4/include \
10903 \
10904 /usr/local/include/X11R6 \
10905 /usr/local/include/X11R5 \
10906 /usr/local/include/X11R4 \
10907 \
10908 /usr/X11/include \
10909 /usr/include/X11 \
10910 /usr/local/X11/include \
10911 /usr/local/include/X11 \
10912 \
10913 /usr/X386/include \
10914 /usr/x386/include \
10915 /usr/XFree86/include/X11 \
10916 \
10917 X:/XFree86/include \
10918 X:/XFree86/include/X11 \
10919 \
10920 /usr/include/gtk \
10921 /usr/local/include/gtk \
10922 /usr/include/glib \
10923 /usr/local/include/glib \
10924 \
10925 /usr/include/qt \
10926 /usr/local/include/qt \
10927 \
10928 /usr/include/windows \
10929 /usr/include/wine \
10930 /usr/local/include/wine \
10931 \
10932 /usr/unsupported/include \
10933 /usr/athena/include \
10934 /usr/local/x11r5/include \
10935 /usr/lpp/Xamples/include \
10936 \
10937 /usr/openwin/share/include \
10938 \
10939 /usr/include"
10940
10941SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10942
10943
10944cat > confcache <<\EOF
10945# This file is a shell script that caches the results of configure
10946# tests run on this system so they can be shared between configure
10947# scripts and configure runs. It is not useful on other systems.
10948# If it contains results you don't want to keep, you may remove or edit it.
10949#
10950# By default, configure uses ./config.cache as the cache file,
10951# creating it if it does not exist already. You can give configure
10952# the --cache-file=FILE option to use a different cache file; that is
10953# what configure does when it calls configure scripts in
10954# subdirectories, so they share the cache.
10955# Giving --cache-file=/dev/null disables caching, for debugging configure.
10956# config.status only pays attention to the cache file if you give it the
10957# --recheck option to rerun configure.
10958#
698dcdb6 10959EOF
21d1c967
GD
10960# The following way of writing the cache mishandles newlines in values,
10961# but we know of no workaround that is simple, portable, and efficient.
10962# So, don't put newlines in cache variables' values.
10963# Ultrix sh set writes to stderr and can't be redirected directly,
10964# and sets the high bit in the cache file unless we assign to the vars.
10965(set) 2>&1 |
10966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10967 *ac_space=\ *)
10968 # `set' does not quote correctly, so add quotes (double-quote substitution
10969 # turns \\\\ into \\, and sed turns \\ into \).
10970 sed -n \
10971 -e "s/'/'\\\\''/g" \
10972 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10973 ;;
10974 *)
10975 # `set' quotes correctly as required by POSIX, so do not add quotes.
10976 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10977 ;;
10978 esac >> confcache
10979if cmp -s $cache_file confcache; then
90dd450c 10980 :
698dcdb6 10981else
21d1c967
GD
10982 if test -w $cache_file; then
10983 echo "updating cache $cache_file"
10984 cat confcache > $cache_file
10985 else
10986 echo "not updating unwritable cache $cache_file"
10987 fi
ab9b9eab 10988fi
21d1c967 10989rm -f confcache
ab9b9eab 10990
ab9b9eab 10991
21d1c967
GD
10992if test "$USE_LINUX" = 1; then
10993 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
6a30f1c8 10994echo "configure:10995: checking for glibc 2.1 or later" >&5
21d1c967 10995if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10996 echo $ac_n "(cached) $ac_c" 1>&6
10997else
90dd450c 10998
21d1c967 10999 cat > conftest.$ac_ext <<EOF
6a30f1c8 11000#line 11001 "configure"
ab9b9eab 11001#include "confdefs.h"
21d1c967 11002#include <features.h>
698dcdb6 11003int main() {
ab9b9eab 11004
21d1c967
GD
11005 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11006 #error not glibc2.1
11007 #endif
11008
698dcdb6
VZ
11009; return 0; }
11010EOF
6a30f1c8 11011if { (eval echo configure:11012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11012 rm -rf conftest*
90dd450c 11013
21d1c967
GD
11014 wx_cv_lib_glibc21=yes
11015
698dcdb6
VZ
11016else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
90dd450c 11020
21d1c967
GD
11021 wx_cv_lib_glibc21=no
11022
11023
698dcdb6
VZ
11024fi
11025rm -f conftest*
90dd450c 11026
698dcdb6
VZ
11027fi
11028
21d1c967
GD
11029echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11030 if test "$wx_cv_lib_glibc21" = "yes"; then
11031 cat >> confdefs.h <<\EOF
11032#define wxHAVE_GLIBC2 1
11033EOF
1e487827 11034
90dd450c 11035 fi
ab9b9eab
VZ
11036fi
11037
ab9b9eab 11038
ab9b9eab 11039
21d1c967
GD
11040REGEX_INCLUDE=
11041if test "$wxUSE_REGEX" != "no"; then
11042 cat >> confdefs.h <<\EOF
11043#define wxUSE_REGEX 1
11044EOF
698dcdb6 11045
ab9b9eab 11046
21d1c967
GD
11047 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11048 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11049echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6a30f1c8 11050echo "configure:11051: checking for regex.h" >&5
21d1c967 11051if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 11052 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11053else
21d1c967 11054 cat > conftest.$ac_ext <<EOF
6a30f1c8 11055#line 11056 "configure"
21d1c967
GD
11056#include "confdefs.h"
11057#include <regex.h>
11058EOF
11059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11060{ (eval echo configure:11061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11062if test -z "$ac_err"; then
11063 rm -rf conftest*
11064 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11065else
21d1c967
GD
11066 echo "$ac_err" >&5
11067 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 rm -rf conftest*
11070 eval "ac_cv_header_$ac_safe=no"
11071fi
11072rm -f conftest*
698dcdb6 11073fi
21d1c967
GD
11074if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11075 echo "$ac_t""yes" 1>&6
11076 for ac_func in regcomp
11077do
11078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 11079echo "configure:11080: checking for $ac_func" >&5
21d1c967
GD
11080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11082else
11083 cat > conftest.$ac_ext <<EOF
6a30f1c8 11084#line 11085 "configure"
21d1c967
GD
11085#include "confdefs.h"
11086/* System header to define __stub macros and hopefully few prototypes,
11087 which can conflict with char $ac_func(); below. */
11088#include <assert.h>
11089/* Override any gcc2 internal prototype to avoid an error. */
11090/* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11092char $ac_func();
698dcdb6 11093
21d1c967 11094int main() {
90dd450c 11095
21d1c967
GD
11096/* The GNU C library defines this for functions which it implements
11097 to always fail with ENOSYS. Some functions are actually named
11098 something starting with __ and the normal name is an alias. */
11099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100choke me
11101#else
11102$ac_func();
11103#endif
90dd450c 11104
21d1c967
GD
11105; return 0; }
11106EOF
6a30f1c8 11107if { (eval echo configure:11108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
11108 rm -rf conftest*
11109 eval "ac_cv_func_$ac_func=yes"
11110else
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 rm -rf conftest*
11114 eval "ac_cv_func_$ac_func=no"
11115fi
11116rm -f conftest*
11117fi
90dd450c 11118
21d1c967
GD
11119if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11120 echo "$ac_t""yes" 1>&6
11121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11122 cat >> confdefs.h <<EOF
11123#define $ac_tr_func 1
11124EOF
11125
90dd450c 11126else
21d1c967 11127 echo "$ac_t""no" 1>&6
698dcdb6 11128fi
21d1c967
GD
11129done
11130
698dcdb6
VZ
11131else
11132 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11133fi
11134
90dd450c 11135
21d1c967
GD
11136 if test "x$ac_cv_func_regcomp" != "xyes"; then
11137 if test "$wxUSE_REGEX" = "sys" ; then
11138 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11139 else
11140 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11141 wxUSE_REGEX=builtin
11142 fi
11143 else
11144 wxUSE_REGEX=sys
11145 fi
ab9b9eab 11146 fi
90dd450c 11147
21d1c967
GD
11148 if test "$wxUSE_REGEX" = "builtin" ; then
11149 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11150 fi
21d1c967 11151fi
90dd450c 11152
90dd450c 11153
21d1c967
GD
11154ZLIB_INCLUDE=
11155ZLIB_LINK=
11156if test "$wxUSE_ZLIB" != "no" ; then
11157 cat >> confdefs.h <<\EOF
11158#define wxUSE_ZLIB 1
11159EOF
11160
11161
11162 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11163 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11164echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6a30f1c8 11165echo "configure:11166: checking for zlib.h" >&5
21d1c967
GD
11166if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11168else
698dcdb6 11169 cat > conftest.$ac_ext <<EOF
6a30f1c8 11170#line 11171 "configure"
ab9b9eab 11171#include "confdefs.h"
21d1c967 11172#include <zlib.h>
698dcdb6 11173EOF
21d1c967 11174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11175{ (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11177if test -z "$ac_err"; then
11178 rm -rf conftest*
11179 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11180else
21d1c967 11181 echo "$ac_err" >&5
698dcdb6
VZ
11182 echo "configure: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
21d1c967
GD
11184 rm -rf conftest*
11185 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11186fi
21d1c967 11187rm -f conftest*
ab9b9eab 11188fi
21d1c967
GD
11189if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11190 echo "$ac_t""yes" 1>&6
11191 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6a30f1c8 11192echo "configure:11193: checking for deflate in -lz" >&5
21d1c967
GD
11193ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196else
11197 ac_save_LIBS="$LIBS"
11198LIBS="-lz $LIBS"
11199cat > conftest.$ac_ext <<EOF
6a30f1c8 11200#line 11201 "configure"
ab9b9eab 11201#include "confdefs.h"
21d1c967
GD
11202/* Override any gcc2 internal prototype to avoid an error. */
11203/* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205char deflate();
ab9b9eab 11206
90dd450c 11207int main() {
21d1c967 11208deflate()
698dcdb6
VZ
11209; return 0; }
11210EOF
6a30f1c8 11211if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11212 rm -rf conftest*
21d1c967 11213 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11214else
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 rm -rf conftest*
21d1c967 11218 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11219fi
11220rm -f conftest*
21d1c967 11221LIBS="$ac_save_LIBS"
ab9b9eab 11222
21d1c967
GD
11223fi
11224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11226 ZLIB_LINK=" -lz"
ab9b9eab 11227else
21d1c967 11228 echo "$ac_t""no" 1>&6
90dd450c 11229fi
698dcdb6 11230
698dcdb6 11231else
21d1c967 11232 echo "$ac_t""no" 1>&6
698dcdb6 11233fi
698dcdb6 11234
21d1c967
GD
11235
11236 if test "x$ZLIB_LINK" = "x" ; then
11237 if test "$wxUSE_ZLIB" = "sys" ; then
11238 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11239 else
11240 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11241 wxUSE_ZLIB=builtin
11242 fi
11243 else
11244 wxUSE_ZLIB=sys
11245 fi
11246 fi
11247
11248 if test "$wxUSE_ZLIB" = "builtin" ; then
11249 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11250 fi
ab9b9eab
VZ
11251fi
11252
ab9b9eab 11253
21d1c967
GD
11254PNG_INCLUDE=
11255PNG_LINK=
11256if test "$wxUSE_LIBPNG" != "no" ; then
11257 cat >> confdefs.h <<\EOF
11258#define wxUSE_LIBPNG 1
11259EOF
90dd450c 11260
3bd8fb5f 11261
21d1c967
GD
11262 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11263 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11264 wxUSE_LIBPNG=sys
11265 fi
90dd450c 11266
21d1c967
GD
11267 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11268 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11269 wxUSE_LIBPNG=builtin
11270 fi
11271
11272 if test "$wxUSE_MGL" != 1 ; then
11273 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11274 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11275echo $ac_n "checking for png.h""... $ac_c" 1>&6
6a30f1c8 11276echo "configure:11277: checking for png.h" >&5
21d1c967 11277if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11278 echo $ac_n "(cached) $ac_c" 1>&6
11279else
21d1c967 11280 cat > conftest.$ac_ext <<EOF
6a30f1c8 11281#line 11282 "configure"
21d1c967
GD
11282#include "confdefs.h"
11283#include <png.h>
11284EOF
11285ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11286{ (eval echo configure:11287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11287ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11288if test -z "$ac_err"; then
11289 rm -rf conftest*
11290 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11291else
21d1c967 11292 echo "$ac_err" >&5
90dd450c
VZ
11293 echo "configure: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
21d1c967
GD
11295 rm -rf conftest*
11296 eval "ac_cv_header_$ac_safe=no"
90dd450c 11297fi
21d1c967 11298rm -f conftest*
90dd450c 11299fi
21d1c967
GD
11300if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11301 echo "$ac_t""yes" 1>&6
11302 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
6a30f1c8 11303echo "configure:11304: checking for png_check_sig in -lpng" >&5
21d1c967
GD
11304ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11305if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11307else
11308 ac_save_LIBS="$LIBS"
11309LIBS="-lpng -lz -lm $LIBS"
11310cat > conftest.$ac_ext <<EOF
6a30f1c8 11311#line 11312 "configure"
90dd450c 11312#include "confdefs.h"
21d1c967
GD
11313/* Override any gcc2 internal prototype to avoid an error. */
11314/* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11316char png_check_sig();
90dd450c
VZ
11317
11318int main() {
21d1c967 11319png_check_sig()
90dd450c
VZ
11320; return 0; }
11321EOF
6a30f1c8 11322if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11323 rm -rf conftest*
21d1c967 11324 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11325else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -rf conftest*
21d1c967 11329 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11330fi
11331rm -f conftest*
21d1c967 11332LIBS="$ac_save_LIBS"
90dd450c 11333
90dd450c 11334fi
21d1c967
GD
11335if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 PNG_LINK=" -lpng"
90dd450c 11338else
21d1c967 11339 echo "$ac_t""no" 1>&6
90dd450c
VZ
11340fi
11341
21d1c967 11342
90dd450c 11343else
21d1c967 11344 echo "$ac_t""no" 1>&6
90dd450c
VZ
11345fi
11346
11347
21d1c967
GD
11348 if test "x$PNG_LINK" = "x" ; then
11349 if test "$wxUSE_LIBPNG" = "sys" ; then
11350 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11351 else
11352 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11353 wxUSE_LIBPNG=builtin
11354 fi
11355 else
11356 wxUSE_LIBPNG=yes
11357 fi
11358 fi
11359 fi
90dd450c 11360
21d1c967
GD
11361 if test "$wxUSE_LIBPNG" = "builtin" ; then
11362 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11363 fi
90dd450c 11364
21d1c967 11365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11366fi
11367
90dd450c 11368
21d1c967
GD
11369JPEG_INCLUDE=
11370JPEG_LINK=
11371if test "$wxUSE_LIBJPEG" != "no" ; then
11372 cat >> confdefs.h <<\EOF
11373#define wxUSE_LIBJPEG 1
11374EOF
90dd450c 11375
90dd450c 11376
21d1c967
GD
11377 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11378 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11379 wxUSE_LIBJPEG=sys
11380 fi
90dd450c 11381
21d1c967
GD
11382 if test "$wxUSE_MGL" != 1 ; then
11383 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11384 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6a30f1c8 11385echo "configure:11386: checking for jpeglib.h" >&5
21d1c967
GD
11386 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11388else
11389 cat > conftest.$ac_ext <<EOF
6a30f1c8 11390#line 11391 "configure"
21d1c967 11391#include "confdefs.h"
90dd450c 11392
21d1c967
GD
11393 #undef HAVE_STDLIB_H
11394 #include <stdio.h>
11395 #include <jpeglib.h>
11396
11397int main() {
90dd450c 11398
21d1c967
GD
11399
11400; return 0; }
90dd450c 11401EOF
6a30f1c8 11402if { (eval echo configure:11403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
11403 rm -rf conftest*
11404 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11405else
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
21d1c967
GD
11408 rm -rf conftest*
11409 ac_cv_header_jpeglib_h=no
11410
90dd450c 11411fi
21d1c967
GD
11412rm -f conftest*
11413
90dd450c
VZ
11414fi
11415
21d1c967 11416 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11417
21d1c967
GD
11418 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11419 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
6a30f1c8 11420echo "configure:11421: checking for jpeg_read_header in -ljpeg" >&5
21d1c967
GD
11421ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11422if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11424else
11425 ac_save_LIBS="$LIBS"
11426LIBS="-ljpeg $LIBS"
11427cat > conftest.$ac_ext <<EOF
6a30f1c8 11428#line 11429 "configure"
21d1c967
GD
11429#include "confdefs.h"
11430/* Override any gcc2 internal prototype to avoid an error. */
11431/* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11433char jpeg_read_header();
90dd450c
VZ
11434
11435int main() {
21d1c967 11436jpeg_read_header()
90dd450c
VZ
11437; return 0; }
11438EOF
6a30f1c8 11439if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11440 rm -rf conftest*
21d1c967 11441 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11442else
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 rm -rf conftest*
21d1c967 11446 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11447fi
11448rm -f conftest*
21d1c967 11449LIBS="$ac_save_LIBS"
90dd450c 11450
21d1c967
GD
11451fi
11452if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11453 echo "$ac_t""yes" 1>&6
11454 JPEG_LINK=" -ljpeg"
11455else
11456 echo "$ac_t""no" 1>&6
90dd450c
VZ
11457fi
11458
21d1c967 11459 fi
90dd450c 11460
21d1c967
GD
11461 if test "x$JPEG_LINK" = "x" ; then
11462 if test "$wxUSE_LIBJPEG" = "sys" ; then
11463 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11464 else
11465 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11466 wxUSE_LIBJPEG=builtin
11467 fi
11468 else
11469 wxUSE_LIBJPEG=sys
11470 fi
11471 fi
11472 fi
90dd450c 11473
21d1c967
GD
11474 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11475 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11476 fi
11477fi
90dd450c 11478
90dd450c 11479
21d1c967
GD
11480TIFF_INCLUDE=
11481TIFF_LINK=
11482if test "$wxUSE_LIBTIFF" != "no" ; then
11483 cat >> confdefs.h <<\EOF
11484#define wxUSE_LIBTIFF 1
11485EOF
11486
11487
11488 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11489 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11490echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6a30f1c8 11491echo "configure:11492: checking for tiffio.h" >&5
21d1c967
GD
11492if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11493 echo $ac_n "(cached) $ac_c" 1>&6
11494else
11495 cat > conftest.$ac_ext <<EOF
6a30f1c8 11496#line 11497 "configure"
21d1c967
GD
11497#include "confdefs.h"
11498#include <tiffio.h>
11499EOF
11500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11501{ (eval echo configure:11502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11503if test -z "$ac_err"; then
11504 rm -rf conftest*
11505 eval "ac_cv_header_$ac_safe=yes"
11506else
11507 echo "$ac_err" >&5
11508 echo "configure: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 rm -rf conftest*
11511 eval "ac_cv_header_$ac_safe=no"
11512fi
11513rm -f conftest*
11514fi
11515if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11516 echo "$ac_t""yes" 1>&6
11517 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
6a30f1c8 11518echo "configure:11519: checking for TIFFError in -ltiff" >&5
21d1c967 11519ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11520if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11522else
11523 ac_save_LIBS="$LIBS"
21d1c967 11524LIBS="-ltiff -lm $LIBS"
698dcdb6 11525cat > conftest.$ac_ext <<EOF
6a30f1c8 11526#line 11527 "configure"
ab9b9eab
VZ
11527#include "confdefs.h"
11528/* Override any gcc2 internal prototype to avoid an error. */
11529/* We use char because int might match the return type of a gcc2
698dcdb6 11530 builtin and then its argument prototype would still apply. */
21d1c967 11531char TIFFError();
698dcdb6
VZ
11532
11533int main() {
21d1c967 11534TIFFError()
698dcdb6
VZ
11535; return 0; }
11536EOF
6a30f1c8 11537if { (eval echo configure:11538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11538 rm -rf conftest*
11539 eval "ac_cv_lib_$ac_lib_var=yes"
11540else
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11543 rm -rf conftest*
11544 eval "ac_cv_lib_$ac_lib_var=no"
11545fi
11546rm -f conftest*
11547LIBS="$ac_save_LIBS"
11548
11549fi
11550if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11551 echo "$ac_t""yes" 1>&6
21d1c967 11552 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11553else
11554 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11555fi
11556
21d1c967
GD
11557
11558else
11559 echo "$ac_t""no" 1>&6
11560fi
cd6d6d5b 11561
c79a329d 11562
21d1c967
GD
11563 if test "x$TIFF_LINK" = "x" ; then
11564 if test "$wxUSE_LIBTIFF" = "sys" ; then
11565 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11566 else
21d1c967
GD
11567 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11568 wxUSE_LIBTIFF=builtin
d8356fa3 11569 fi
d8356fa3 11570 else
21d1c967 11571 wxUSE_LIBTIFF=sys
d8356fa3 11572 fi
21d1c967 11573 fi
d8356fa3 11574
21d1c967
GD
11575 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11576 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11577 fi
21d1c967 11578fi
10f2d63a 11579
90dd450c 11580
21d1c967 11581AFMINSTALL=
90dd450c 11582
21d1c967
GD
11583TOOLKIT=
11584TOOLKIT_INCLUDE=
11585WIDGET_SET=
11586
11587if test "$USE_WIN32" = 1 ; then
11588 for ac_hdr in w32api.h
11589do
11590ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11591echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a30f1c8 11592echo "configure:11593: checking for $ac_hdr" >&5
21d1c967 11593if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11594 echo $ac_n "(cached) $ac_c" 1>&6
11595else
21d1c967 11596 cat > conftest.$ac_ext <<EOF
6a30f1c8 11597#line 11598 "configure"
f79bd02d 11598#include "confdefs.h"
21d1c967 11599#include <$ac_hdr>
f79bd02d
JS
11600EOF
11601ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11602{ (eval echo configure:11603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11603ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11604if test -z "$ac_err"; then
11605 rm -rf conftest*
21d1c967 11606 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11607else
11608 echo "$ac_err" >&5
11609 echo "configure: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 rm -rf conftest*
21d1c967 11612 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11613fi
11614rm -f conftest*
21d1c967
GD
11615fi
11616if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11617 echo "$ac_t""yes" 1>&6
11618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11619 cat >> confdefs.h <<EOF
11620#define $ac_tr_hdr 1
11621EOF
11622
11623else
11624 echo "$ac_t""no" 1>&6
11625fi
11626done
f79bd02d 11627
21d1c967
GD
11628 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11629echo $ac_n "checking for windows.h""... $ac_c" 1>&6
6a30f1c8 11630echo "configure:11631: checking for windows.h" >&5
21d1c967
GD
11631if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11633else
11634 cat > conftest.$ac_ext <<EOF
6a30f1c8 11635#line 11636 "configure"
90dd450c 11636#include "confdefs.h"
21d1c967 11637#include <windows.h>
f79bd02d 11638EOF
21d1c967 11639ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 11640{ (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11641ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642if test -z "$ac_err"; then
90dd450c 11643 rm -rf conftest*
21d1c967 11644 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11645else
21d1c967 11646 echo "$ac_err" >&5
90dd450c
VZ
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
21d1c967 11650 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11651fi
11652rm -f conftest*
90dd450c 11653fi
21d1c967
GD
11654if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656 :
90dd450c 11657else
21d1c967
GD
11658 echo "$ac_t""no" 1>&6
11659
11660 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11661
90dd450c 11662fi
f79bd02d 11663
f79bd02d 11664
21d1c967 11665 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
6a30f1c8 11666echo "configure:11667: checking if w32api has good enough MSIE support" >&5
21d1c967
GD
11667if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11669else
21d1c967 11670
f79bd02d 11671 cat > conftest.$ac_ext <<EOF
6a30f1c8 11672#line 11673 "configure"
f79bd02d 11673#include "confdefs.h"
21d1c967 11674#include <w32api.h>
f79bd02d
JS
11675int main() {
11676
21d1c967
GD
11677 #define wxCHECK_W32API_VERSION( major, minor ) \
11678 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11679 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11680 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11681
11682 #if !wxCHECK_W32API_VERSION(1,1)
11683 #error You need w32api 1.1 or newer
11684 #endif
11685
f79bd02d
JS
11686; return 0; }
11687EOF
6a30f1c8 11688if { (eval echo configure:11689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11689 rm -rf conftest*
21d1c967
GD
11690
11691 wx_cv_w32api_win32_ie=yes
11692
f79bd02d
JS
11693else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -rf conftest*
21d1c967
GD
11697
11698 wx_cv_w32api_win32_ie=no
11699
f79bd02d
JS
11700fi
11701rm -f conftest*
21d1c967
GD
11702
11703fi
f79bd02d 11704
21d1c967
GD
11705echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11706 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11707 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11708 fi
f79bd02d 11709
21d1c967
GD
11710 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11711
11712 case "${host}" in
11713 *-*-cygwin* )
11714 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11715 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11716 esac
f79bd02d 11717
21d1c967
GD
11718 if test "$wxUSE_ODBC" = "yes" ; then
11719 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11720 fi
f79bd02d 11721
21d1c967
GD
11722 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11723 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11724fi
f79bd02d 11725
21d1c967
GD
11726if test "$wxUSE_GUI" = "yes"; then
11727 USE_GUI=1
f79bd02d 11728
21d1c967 11729 GUI_TK_LIBRARY=
f79bd02d 11730
21d1c967
GD
11731 WXGTK12=
11732 WXGTK127=
11733 WXGTK20=
f79bd02d 11734
21d1c967
GD
11735 if test "$wxUSE_MSW" = 1 ; then
11736 TOOLKIT=MSW
11737 GUIDIST=MSW_DIST
f79bd02d 11738
21d1c967
GD
11739 case "${host}" in
11740 *-*-mingw32* )
11741 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11742 esac
f79bd02d
JS
11743 fi
11744
21d1c967
GD
11745 if test "$wxUSE_GTK" = 1; then
11746 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
6a30f1c8 11747echo "configure:11748: checking for GTK+ version" >&5
21d1c967
GD
11748
11749 gtk_version_cached=1
11750 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11751 echo $ac_n "(cached) $ac_c" 1>&6
11752else
21d1c967
GD
11753
11754 gtk_version_cached=0
11755 echo "$ac_t""" 1>&6
f79bd02d 11756
21d1c967
GD
11757 GTK_MODULES=
11758 if test "$wxUSE_THREADS" = "yes"; then
11759 GTK_MODULES=gthread
11760 fi
f79bd02d 11761
21d1c967
GD
11762 wx_cv_lib_gtk=
11763 if test "x$wxUSE_GTK2" = "xyes"; then
11764 # Check whether --enable-gtktest or --disable-gtktest was given.
11765if test "${enable_gtktest+set}" = set; then
11766 enableval="$enable_gtktest"
f79bd02d
JS
11767 :
11768else
21d1c967 11769 enable_gtktest=yes
f79bd02d
JS
11770fi
11771
f79bd02d 11772
21d1c967
GD
11773 pkg_config_args=gtk+-2.0
11774 for module in . $GTK_MODULES
11775 do
11776 case "$module" in
11777 gthread)
11778 pkg_config_args="$pkg_config_args gthread-2.0"
11779 ;;
11780 esac
11781 done
11782
11783 no_gtk=""
f79bd02d 11784
21d1c967
GD
11785 # Extract the first word of "pkg-config", so it can be a program name with args.
11786set dummy pkg-config; ac_word=$2
11787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 11788echo "configure:11789: checking for $ac_word" >&5
21d1c967
GD
11789if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 case "$PKG_CONFIG" in
11793 /*)
11794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11795 ;;
11796 ?:/*)
11797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11798 ;;
11799 *)
11800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11801 ac_dummy="$PATH"
11802 for ac_dir in $ac_dummy; do
11803 test -z "$ac_dir" && ac_dir=.
11804 if test -f $ac_dir/$ac_word; then
11805 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11806 break
11807 fi
11808 done
11809 IFS="$ac_save_ifs"
11810 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11811 ;;
11812esac
f79bd02d 11813fi
21d1c967
GD
11814PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11815if test -n "$PKG_CONFIG"; then
11816 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11817else
11818 echo "$ac_t""no" 1>&6
11819fi
11820
f79bd02d 11821
21d1c967
GD
11822 if test x$PKG_CONFIG != xno ; then
11823 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11824 :
11825 else
11826 echo *** pkg-config too old; version 0.7 or better required.
11827 no_gtk=yes
11828 PKG_CONFIG=no
11829 fi
11830 else
11831 no_gtk=yes
11832 fi
f79bd02d 11833
21d1c967
GD
11834 min_gtk_version=2.0.0
11835 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
6a30f1c8 11836echo "configure:11837: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11837
21d1c967
GD
11838 if test x$PKG_CONFIG != xno ; then
11839 ## don't try to run the test against uninstalled libtool libs
11840 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11841 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11842 enable_gtktest=no
11843 fi
f79bd02d 11844
21d1c967
GD
11845 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11846 :
11847 else
11848 no_gtk=yes
11849 fi
11850 fi
f79bd02d 11851
21d1c967
GD
11852 if test x"$no_gtk" = x ; then
11853 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11854 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11855 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11856 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11857 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11858 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11859 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11860 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11861 if test "x$enable_gtktest" = "xyes" ; then
11862 ac_save_CFLAGS="$CFLAGS"
11863 ac_save_LIBS="$LIBS"
11864 CFLAGS="$CFLAGS $GTK_CFLAGS"
11865 LIBS="$GTK_LIBS $LIBS"
11866 rm -f conf.gtktest
11867 if test "$cross_compiling" = yes; then
11868 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11869else
21d1c967 11870 cat > conftest.$ac_ext <<EOF
6a30f1c8 11871#line 11872 "configure"
f79bd02d 11872#include "confdefs.h"
f79bd02d 11873
21d1c967
GD
11874#include <gtk/gtk.h>
11875#include <stdio.h>
11876#include <stdlib.h>
f79bd02d 11877
21d1c967
GD
11878int
11879main ()
11880{
11881 int major, minor, micro;
11882 char *tmp_version;
f79bd02d 11883
21d1c967 11884 system ("touch conf.gtktest");
f79bd02d 11885
21d1c967
GD
11886 /* HP/UX 9 (%@#!) writes to sscanf strings */
11887 tmp_version = g_strdup("$min_gtk_version");
11888 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11889 printf("%s, bad version string\n", "$min_gtk_version");
11890 exit(1);
11891 }
f79bd02d 11892
21d1c967
GD
11893 if ((gtk_major_version != $gtk_config_major_version) ||
11894 (gtk_minor_version != $gtk_config_minor_version) ||
11895 (gtk_micro_version != $gtk_config_micro_version))
11896 {
11897 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11898 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11899 gtk_major_version, gtk_minor_version, gtk_micro_version);
11900 printf ("*** was found! If pkg-config was correct, then it is best\n");
11901 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11902 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11903 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11904 printf("*** required on your system.\n");
11905 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11906 printf("*** to point to the correct configuration files\n");
11907 }
11908 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11909 (gtk_minor_version != GTK_MINOR_VERSION) ||
11910 (gtk_micro_version != GTK_MICRO_VERSION))
11911 {
11912 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11913 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11914 printf("*** library (version %d.%d.%d)\n",
11915 gtk_major_version, gtk_minor_version, gtk_micro_version);
11916 }
11917 else
11918 {
11919 if ((gtk_major_version > major) ||
11920 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11921 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11922 {
11923 return 0;
11924 }
11925 else
11926 {
11927 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11928 gtk_major_version, gtk_minor_version, gtk_micro_version);
11929 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11930 major, minor, micro);
11931 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11932 printf("***\n");
11933 printf("*** If you have already installed a sufficiently new version, this error\n");
11934 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11935 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11936 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11937 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11938 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11939 printf("*** so that the correct libraries are found at run-time))\n");
11940 }
11941 }
11942 return 1;
11943}
f79bd02d 11944
f79bd02d 11945EOF
6a30f1c8 11946if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
11947then
11948 :
f79bd02d
JS
11949else
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
21d1c967
GD
11952 rm -fr conftest*
11953 no_gtk=yes
f79bd02d 11954fi
21d1c967 11955rm -fr conftest*
f79bd02d
JS
11956fi
11957
21d1c967
GD
11958 CFLAGS="$ac_save_CFLAGS"
11959 LIBS="$ac_save_LIBS"
11960 fi
11961 fi
11962 if test "x$no_gtk" = x ; then
11963 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11964 wx_cv_lib_gtk=2.0
11965 else
11966 echo "$ac_t""no" 1>&6
11967 if test "$PKG_CONFIG" = "no" ; then
11968 echo "*** A new enough version of pkg-config was not found."
11969 echo "*** See http://pkgconfig.sourceforge.net"
11970 else
11971 if test -f conf.gtktest ; then
11972 :
11973 else
11974 echo "*** Could not run GTK+ test program, checking why..."
11975 CFLAGS="$CFLAGS $GTK_CFLAGS"
11976 LIBS="$LIBS $GTK_LIBS"
11977 cat > conftest.$ac_ext <<EOF
6a30f1c8 11978#line 11979 "configure"
f79bd02d 11979#include "confdefs.h"
21d1c967
GD
11980
11981#include <gtk/gtk.h>
11982#include <stdio.h>
f79bd02d
JS
11983
11984int main() {
21d1c967 11985 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11986; return 0; }
11987EOF
6a30f1c8 11988if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11989 rm -rf conftest*
21d1c967
GD
11990 echo "*** The test program compiled, but did not run. This usually means"
11991 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11992 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11993 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11994 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11995 echo "*** is required on your system"
11996 echo "***"
11997 echo "*** If you have an old version installed, it is best to remove it, although"
11998 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11999else
12000 echo "configure: failed program was:" >&5
12001 cat conftest.$ac_ext >&5
12002 rm -rf conftest*
21d1c967
GD
12003 echo "*** The test program failed to compile or link. See the file config.log for the"
12004 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
12005 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
12006 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
12007fi
12008rm -f conftest*
21d1c967
GD
12009 CFLAGS="$ac_save_CFLAGS"
12010 LIBS="$ac_save_LIBS"
12011 fi
12012 fi
12013 GTK_CFLAGS=""
12014 GTK_LIBS=""
12015 :
12016 fi
12017
12018
12019 rm -f conf.gtktest
f79bd02d 12020
21d1c967 12021 fi
f79bd02d 12022
21d1c967
GD
12023 if test -z "$wx_cv_lib_gtk"; then
12024 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12025if test "${with_gtk_prefix+set}" = set; then
12026 withval="$with_gtk_prefix"
12027 gtk_config_prefix="$withval"
12028else
12029 gtk_config_prefix=""
12030fi
f79bd02d 12031
21d1c967
GD
12032# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12033if test "${with_gtk_exec_prefix+set}" = set; then
12034 withval="$with_gtk_exec_prefix"
12035 gtk_config_exec_prefix="$withval"
12036else
12037 gtk_config_exec_prefix=""
12038fi
12039
12040# Check whether --enable-gtktest or --disable-gtktest was given.
12041if test "${enable_gtktest+set}" = set; then
12042 enableval="$enable_gtktest"
12043 :
12044else
12045 enable_gtktest=yes
12046fi
12047
12048
12049 for module in . $GTK_MODULES
12050 do
12051 case "$module" in
12052 gthread)
12053 gtk_config_args="$gtk_config_args gthread"
12054 ;;
12055 esac
12056 done
12057
12058 if test x$gtk_config_exec_prefix != x ; then
12059 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12060 if test x${GTK_CONFIG+set} != xset ; then
12061 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12062 fi
12063 fi
12064 if test x$gtk_config_prefix != x ; then
12065 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12066 if test x${GTK_CONFIG+set} != xset ; then
12067 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12068 fi
12069 fi
12070
12071 # Extract the first word of "gtk-config", so it can be a program name with args.
12072set dummy gtk-config; ac_word=$2
12073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 12074echo "configure:12075: checking for $ac_word" >&5
21d1c967 12075if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 12076 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
12077else
12078 case "$GTK_CONFIG" in
12079 /*)
12080 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12081 ;;
12082 ?:/*)
12083 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12084 ;;
12085 *)
12086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12087 ac_dummy="$PATH"
12088 for ac_dir in $ac_dummy; do
12089 test -z "$ac_dir" && ac_dir=.
12090 if test -f $ac_dir/$ac_word; then
12091 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12092 break
12093 fi
12094 done
12095 IFS="$ac_save_ifs"
12096 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12097 ;;
12098esac
12099fi
12100GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12101if test -n "$GTK_CONFIG"; then
12102 echo "$ac_t""$GTK_CONFIG" 1>&6
12103else
12104 echo "$ac_t""no" 1>&6
12105fi
12106
12107 min_gtk_version=1.2.7
12108 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6a30f1c8 12109echo "configure:12110: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12110 no_gtk=""
12111 if test "$GTK_CONFIG" = "no" ; then
12112 no_gtk=yes
12113 else
12114 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12115 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12116 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12118 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12120 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12121 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12122 if test "x$enable_gtktest" = "xyes" ; then
12123 ac_save_CFLAGS="$CFLAGS"
12124 ac_save_LIBS="$LIBS"
12125 CFLAGS="$CFLAGS $GTK_CFLAGS"
12126 LIBS="$GTK_LIBS $LIBS"
12127 rm -f conf.gtktest
12128 if test "$cross_compiling" = yes; then
12129 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12130else
90dd450c 12131 cat > conftest.$ac_ext <<EOF
6a30f1c8 12132#line 12133 "configure"
f79bd02d
JS
12133#include "confdefs.h"
12134
21d1c967
GD
12135#include <gtk/gtk.h>
12136#include <stdio.h>
12137#include <stdlib.h>
f79bd02d 12138
21d1c967
GD
12139int
12140main ()
12141{
12142 int major, minor, micro;
12143 char *tmp_version;
12144
12145 system ("touch conf.gtktest");
12146
12147 /* HP/UX 9 (%@#!) writes to sscanf strings */
12148 tmp_version = g_strdup("$min_gtk_version");
12149 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12150 printf("%s, bad version string\n", "$min_gtk_version");
12151 exit(1);
12152 }
90dd450c 12153
21d1c967
GD
12154 if ((gtk_major_version != $gtk_config_major_version) ||
12155 (gtk_minor_version != $gtk_config_minor_version) ||
12156 (gtk_micro_version != $gtk_config_micro_version))
12157 {
12158 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12159 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12160 gtk_major_version, gtk_minor_version, gtk_micro_version);
12161 printf ("*** was found! If gtk-config was correct, then it is best\n");
12162 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12163 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12164 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12165 printf("*** required on your system.\n");
12166 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12167 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12168 printf("*** before re-running configure\n");
12169 }
12170#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12171 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12172 (gtk_minor_version != GTK_MINOR_VERSION) ||
12173 (gtk_micro_version != GTK_MICRO_VERSION))
12174 {
12175 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12176 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12177 printf("*** library (version %d.%d.%d)\n",
12178 gtk_major_version, gtk_minor_version, gtk_micro_version);
12179 }
12180#endif /* defined (GTK_MAJOR_VERSION) ... */
12181 else
12182 {
12183 if ((gtk_major_version > major) ||
12184 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12185 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12186 {
12187 return 0;
12188 }
12189 else
12190 {
12191 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12192 gtk_major_version, gtk_minor_version, gtk_micro_version);
12193 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12194 major, minor, micro);
12195 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12196 printf("***\n");
12197 printf("*** If you have already installed a sufficiently new version, this error\n");
12198 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12199 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12200 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12201 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12202 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12203 printf("*** so that the correct libraries are found at run-time))\n");
12204 }
12205 }
12206 return 1;
12207}
12208
12209EOF
6a30f1c8 12210if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12211then
12212 :
12213else
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 rm -fr conftest*
12217 no_gtk=yes
12218fi
12219rm -fr conftest*
12220fi
12221
12222 CFLAGS="$ac_save_CFLAGS"
12223 LIBS="$ac_save_LIBS"
12224 fi
12225 fi
12226 if test "x$no_gtk" = x ; then
12227 echo "$ac_t""yes" 1>&6
12228 wx_cv_lib_gtk=1.2.7
12229 else
12230 echo "$ac_t""no" 1>&6
12231 if test "$GTK_CONFIG" = "no" ; then
12232 echo "*** The gtk-config script installed by GTK could not be found"
12233 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12234 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12235 echo "*** full path to gtk-config."
12236 else
12237 if test -f conf.gtktest ; then
12238 :
12239 else
12240 echo "*** Could not run GTK test program, checking why..."
12241 CFLAGS="$CFLAGS $GTK_CFLAGS"
12242 LIBS="$LIBS $GTK_LIBS"
12243 cat > conftest.$ac_ext <<EOF
6a30f1c8 12244#line 12245 "configure"
21d1c967
GD
12245#include "confdefs.h"
12246
12247#include <gtk/gtk.h>
12248#include <stdio.h>
12249
12250int main() {
12251 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12252; return 0; }
12253EOF
6a30f1c8 12254if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12255 rm -rf conftest*
21d1c967
GD
12256 echo "*** The test program compiled, but did not run. This usually means"
12257 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12258 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12259 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12260 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12261 echo "*** is required on your system"
12262 echo "***"
12263 echo "*** If you have an old version installed, it is best to remove it, although"
12264 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12265 echo "***"
12266 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12267 echo "*** came with the system with the command"
12268 echo "***"
12269 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12270else
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
21d1c967
GD
12274 echo "*** The test program failed to compile or link. See the file config.log for the"
12275 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12276 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12277 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12278fi
12279rm -f conftest*
21d1c967
GD
12280 CFLAGS="$ac_save_CFLAGS"
12281 LIBS="$ac_save_LIBS"
12282 fi
12283 fi
12284 GTK_CFLAGS=""
12285 GTK_LIBS=""
12286 :
12287 fi
12288
12289
12290 rm -f conf.gtktest
12291
12292 fi
12293
12294 if test -z "$wx_cv_lib_gtk"; then
12295 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12296if test "${with_gtk_prefix+set}" = set; then
12297 withval="$with_gtk_prefix"
12298 gtk_config_prefix="$withval"
12299else
12300 gtk_config_prefix=""
90dd450c 12301fi
f79bd02d 12302
21d1c967
GD
12303# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12304if test "${with_gtk_exec_prefix+set}" = set; then
12305 withval="$with_gtk_exec_prefix"
12306 gtk_config_exec_prefix="$withval"
12307else
12308 gtk_config_exec_prefix=""
12309fi
12310
12311# Check whether --enable-gtktest or --disable-gtktest was given.
12312if test "${enable_gtktest+set}" = set; then
12313 enableval="$enable_gtktest"
90dd450c
VZ
12314 :
12315else
21d1c967 12316 enable_gtktest=yes
90dd450c 12317fi
f79bd02d 12318
21d1c967
GD
12319
12320 for module in . $GTK_MODULES
12321 do
12322 case "$module" in
12323 gthread)
12324 gtk_config_args="$gtk_config_args gthread"
12325 ;;
12326 esac
12327 done
12328
12329 if test x$gtk_config_exec_prefix != x ; then
12330 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12331 if test x${GTK_CONFIG+set} != xset ; then
12332 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12333 fi
12334 fi
12335 if test x$gtk_config_prefix != x ; then
12336 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12337 if test x${GTK_CONFIG+set} != xset ; then
12338 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12339 fi
12340 fi
12341
12342 # Extract the first word of "gtk-config", so it can be a program name with args.
12343set dummy gtk-config; ac_word=$2
12344echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 12345echo "configure:12346: checking for $ac_word" >&5
21d1c967 12346if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12347 echo $ac_n "(cached) $ac_c" 1>&6
12348else
21d1c967
GD
12349 case "$GTK_CONFIG" in
12350 /*)
12351 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12352 ;;
12353 ?:/*)
12354 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12355 ;;
12356 *)
12357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12358 ac_dummy="$PATH"
12359 for ac_dir in $ac_dummy; do
12360 test -z "$ac_dir" && ac_dir=.
12361 if test -f $ac_dir/$ac_word; then
12362 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12363 break
12364 fi
12365 done
12366 IFS="$ac_save_ifs"
12367 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12368 ;;
12369esac
12370fi
12371GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12372if test -n "$GTK_CONFIG"; then
12373 echo "$ac_t""$GTK_CONFIG" 1>&6
12374else
12375 echo "$ac_t""no" 1>&6
12376fi
12377
12378 min_gtk_version=1.2.3
12379 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6a30f1c8 12380echo "configure:12381: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12381 no_gtk=""
12382 if test "$GTK_CONFIG" = "no" ; then
12383 no_gtk=yes
12384 else
12385 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12386 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12387 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12389 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12391 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12393 if test "x$enable_gtktest" = "xyes" ; then
12394 ac_save_CFLAGS="$CFLAGS"
12395 ac_save_LIBS="$LIBS"
12396 CFLAGS="$CFLAGS $GTK_CFLAGS"
12397 LIBS="$GTK_LIBS $LIBS"
12398 rm -f conf.gtktest
12399 if test "$cross_compiling" = yes; then
12400 echo $ac_n "cross compiling; assumed OK... $ac_c"
12401else
12402 cat > conftest.$ac_ext <<EOF
6a30f1c8 12403#line 12404 "configure"
f79bd02d 12404#include "confdefs.h"
21d1c967
GD
12405
12406#include <gtk/gtk.h>
12407#include <stdio.h>
12408#include <stdlib.h>
12409
12410int
12411main ()
12412{
12413 int major, minor, micro;
12414 char *tmp_version;
12415
12416 system ("touch conf.gtktest");
12417
12418 /* HP/UX 9 (%@#!) writes to sscanf strings */
12419 tmp_version = g_strdup("$min_gtk_version");
12420 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12421 printf("%s, bad version string\n", "$min_gtk_version");
12422 exit(1);
12423 }
12424
12425 if ((gtk_major_version != $gtk_config_major_version) ||
12426 (gtk_minor_version != $gtk_config_minor_version) ||
12427 (gtk_micro_version != $gtk_config_micro_version))
12428 {
12429 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12430 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12431 gtk_major_version, gtk_minor_version, gtk_micro_version);
12432 printf ("*** was found! If gtk-config was correct, then it is best\n");
12433 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12434 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12435 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12436 printf("*** required on your system.\n");
12437 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12438 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12439 printf("*** before re-running configure\n");
12440 }
12441#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12442 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12443 (gtk_minor_version != GTK_MINOR_VERSION) ||
12444 (gtk_micro_version != GTK_MICRO_VERSION))
12445 {
12446 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12447 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12448 printf("*** library (version %d.%d.%d)\n",
12449 gtk_major_version, gtk_minor_version, gtk_micro_version);
12450 }
12451#endif /* defined (GTK_MAJOR_VERSION) ... */
12452 else
12453 {
12454 if ((gtk_major_version > major) ||
12455 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12456 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12457 {
12458 return 0;
12459 }
12460 else
12461 {
12462 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12463 gtk_major_version, gtk_minor_version, gtk_micro_version);
12464 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12465 major, minor, micro);
12466 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12467 printf("***\n");
12468 printf("*** If you have already installed a sufficiently new version, this error\n");
12469 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12470 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12471 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12472 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12473 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12474 printf("*** so that the correct libraries are found at run-time))\n");
12475 }
12476 }
12477 return 1;
12478}
12479
12480EOF
6a30f1c8 12481if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12482then
12483 :
12484else
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487 rm -fr conftest*
12488 no_gtk=yes
12489fi
12490rm -fr conftest*
12491fi
12492
12493 CFLAGS="$ac_save_CFLAGS"
12494 LIBS="$ac_save_LIBS"
12495 fi
12496 fi
12497 if test "x$no_gtk" = x ; then
12498 echo "$ac_t""yes" 1>&6
12499 wx_cv_lib_gtk=1.2.3
12500 else
12501 echo "$ac_t""no" 1>&6
12502 if test "$GTK_CONFIG" = "no" ; then
12503 echo "*** The gtk-config script installed by GTK could not be found"
12504 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12505 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12506 echo "*** full path to gtk-config."
12507 else
12508 if test -f conf.gtktest ; then
12509 :
12510 else
12511 echo "*** Could not run GTK test program, checking why..."
12512 CFLAGS="$CFLAGS $GTK_CFLAGS"
12513 LIBS="$LIBS $GTK_LIBS"
12514 cat > conftest.$ac_ext <<EOF
6a30f1c8 12515#line 12516 "configure"
21d1c967
GD
12516#include "confdefs.h"
12517
12518#include <gtk/gtk.h>
12519#include <stdio.h>
f79bd02d 12520
f79bd02d 12521int main() {
21d1c967 12522 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12523; return 0; }
12524EOF
6a30f1c8 12525if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12526 rm -rf conftest*
21d1c967
GD
12527 echo "*** The test program compiled, but did not run. This usually means"
12528 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12529 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12530 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12531 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12532 echo "*** is required on your system"
12533 echo "***"
12534 echo "*** If you have an old version installed, it is best to remove it, although"
12535 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12536 echo "***"
12537 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12538 echo "*** came with the system with the command"
12539 echo "***"
12540 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12541else
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544 rm -rf conftest*
21d1c967
GD
12545 echo "*** The test program failed to compile or link. See the file config.log for the"
12546 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12547 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12548 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12549fi
12550rm -f conftest*
21d1c967
GD
12551 CFLAGS="$ac_save_CFLAGS"
12552 LIBS="$ac_save_LIBS"
12553 fi
12554 fi
12555 GTK_CFLAGS=""
12556 GTK_LIBS=""
12557 :
12558 fi
12559
12560
12561 rm -f conf.gtktest
f79bd02d 12562
21d1c967
GD
12563 fi
12564
12565 if test -z "$wx_cv_lib_gtk"; then
12566 wx_cv_lib_gtk=none
12567 else
12568 wx_cv_cflags_gtk=$GTK_CFLAGS
12569 wx_cv_libs_gtk=$GTK_LIBS
12570 fi
12571
12572
90dd450c 12573fi
b4085ce6 12574
e07802fc 12575
21d1c967
GD
12576 if test "$gtk_version_cached" = 1; then
12577 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12578 fi
12579
12580 case "$wx_cv_lib_gtk" in
12581 2.0) WXGTK20=1
12582 ;;
12583 1.2.7) WXGTK127=1
12584 WXGTK12=1
12585 ;;
12586 1.2.3) WXGTK12=1
12587 ;;
12588 *) { echo "configure: error:
12589Please check that gtk-config is in path, the directory
12590where GTK+ libraries are installed (returned by
12591'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12592equivalent variable and GTK+ is version 1.2.3 or above.
12593 " 1>&2; exit 1; }
12594 ;;
12595 esac
12596
12597 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12598 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12599
12600 AFMINSTALL=afminstall
12601 TOOLKIT=GTK
12602 GUIDIST=GTK_DIST
12603
12604 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
6a30f1c8 12605echo "configure:12606: checking for gdk_im_open in -lgdk" >&5
21d1c967 12606ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12609else
12610 ac_save_LIBS="$LIBS"
21d1c967 12611LIBS="-lgdk $LIBS"
90dd450c 12612cat > conftest.$ac_ext <<EOF
6a30f1c8 12613#line 12614 "configure"
90dd450c
VZ
12614#include "confdefs.h"
12615/* Override any gcc2 internal prototype to avoid an error. */
12616/* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
21d1c967 12618char gdk_im_open();
9b695262 12619
90dd450c 12620int main() {
21d1c967 12621gdk_im_open()
90dd450c
VZ
12622; return 0; }
12623EOF
6a30f1c8 12624if { (eval echo configure:12625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12625 rm -rf conftest*
12626 eval "ac_cv_lib_$ac_lib_var=yes"
12627else
12628 echo "configure: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12630 rm -rf conftest*
12631 eval "ac_cv_lib_$ac_lib_var=no"
12632fi
12633rm -f conftest*
12634LIBS="$ac_save_LIBS"
9b695262 12635
90dd450c
VZ
12636fi
12637if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12638 echo "$ac_t""yes" 1>&6
21d1c967
GD
12639 cat >> confdefs.h <<\EOF
12640#define HAVE_XIM 1
12641EOF
12642
90dd450c
VZ
12643else
12644 echo "$ac_t""no" 1>&6
12645fi
1e6feb95 12646
21d1c967 12647 fi
1e6feb95 12648
21d1c967
GD
12649 if test "$wxUSE_MGL" = 1; then
12650 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
6a30f1c8 12651echo "configure:12652: checking for SciTech MGL library" >&5
21d1c967
GD
12652 if test "x$MGL_ROOT" = x ; then
12653 echo "$ac_t""not found" 1>&6
12654 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12655 else
12656 echo "$ac_t""$MGL_ROOT" 1>&6
12657 fi
12658
12659 case "${host}" in
12660 *-*-linux* )
12661 mgl_os=linux/gcc/glibc
12662 ;;
12663 *-pc-msdosdjgpp )
12664 mgl_os=dos32/dj2
12665 ;;
12666 *)
12667 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12668 esac
1e6feb95 12669
21d1c967 12670 mgl_lib_type=""
3fcdd07b 12671
21d1c967
GD
12672 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12673 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12674 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12675 mgl_lib_type=debug
12676 fi
12677 fi
12678 if test "x$mgl_lib_type" = x ; then
12679 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12680 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12681 mgl_lib_type=release
12682 else
12683 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12684 fi
90dd450c 12685 fi
2224580a 12686
1d1b75ac
VZ
12687 wxUSE_UNIVERSAL="yes"
12688
21d1c967
GD
12689 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12690 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12691
90dd450c 12692 AFMINSTALL=afminstall
21d1c967
GD
12693 TOOLKIT=MGL
12694 GUIDIST=MGL_DIST
12695 fi
dad6c0ea 12696
21d1c967
GD
12697 if test "$wxUSE_MICROWIN" = 1; then
12698 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
6a30f1c8 12699echo "configure:12700: checking for MicroWindows" >&5
21d1c967
GD
12700 if test "x$MICROWINDOWS" = x ; then
12701 echo "$ac_t""not found" 1>&6
12702 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12703 else
12704 echo "$ac_t""$MICROWINDOWS" 1>&6
12705 fi
f6bcfd97 12706
21d1c967
GD
12707 if test -f $MICROWINDOWS/lib/libmwin.a; then
12708 echo "$ac_t""MicroWindows' libraries found." 1>&6
12709 else
12710 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12711 fi
0b2effe9 12712
21d1c967
GD
12713 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12714 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12715
1d1b75ac
VZ
12716 wxUSE_UNIVERSAL="yes"
12717
21d1c967
GD
12718 AFMINSTALL=afminstall
12719 TOOLKIT=MICROWIN
12720 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12721
12722 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12723 fi
f6bcfd97 12724
21d1c967
GD
12725 if test "$wxUSE_X11" = 1; then
12726 # If we find X, set shell vars x_includes and x_libraries to the
12727# paths, otherwise set no_x=yes.
12728# Uses ac_ vars as temps to allow command line to override cache and checks.
12729# --without-x overrides everything else, but does not touch the cache.
12730echo $ac_n "checking for X""... $ac_c" 1>&6
6a30f1c8 12731echo "configure:12732: checking for X" >&5
d8356fa3 12732
21d1c967
GD
12733# Check whether --with-x or --without-x was given.
12734if test "${with_x+set}" = set; then
12735 withval="$with_x"
12736 :
12737fi
2224580a 12738
21d1c967
GD
12739# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12740if test "x$with_x" = xno; then
12741 # The user explicitly disabled X.
12742 have_x=disabled
12743else
12744 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12745 # Both variables are already set.
12746 have_x=yes
12747 else
12748if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12750else
12751 # One or both of the vars are not set, and there is no cached value.
12752ac_x_includes=NO ac_x_libraries=NO
12753rm -fr conftestdir
12754if mkdir conftestdir; then
12755 cd conftestdir
12756 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12757 cat > Imakefile <<'EOF'
12758acfindx:
12759 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12760EOF
12761 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12763 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12764 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12765 for ac_extension in a so sl; do
12766 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12767 test -f $ac_im_libdir/libX11.$ac_extension; then
12768 ac_im_usrlibdir=$ac_im_libdir; break
12769 fi
12770 done
12771 # Screen out bogus values from the imake configuration. They are
12772 # bogus both because they are the default anyway, and because
12773 # using them would break gcc on systems where it needs fixed includes.
12774 case "$ac_im_incroot" in
12775 /usr/include) ;;
12776 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12777 esac
12778 case "$ac_im_usrlibdir" in
12779 /usr/lib | /lib) ;;
12780 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12781 esac
12782 fi
12783 cd ..
12784 rm -fr conftestdir
12785fi
10f2d63a 12786
21d1c967
GD
12787if test "$ac_x_includes" = NO; then
12788 # Guess where to find include files, by looking for this one X11 .h file.
12789 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12790
21d1c967
GD
12791 # First, try using that file with no special directory specified.
12792cat > conftest.$ac_ext <<EOF
6a30f1c8 12793#line 12794 "configure"
21d1c967
GD
12794#include "confdefs.h"
12795#include <$x_direct_test_include>
90dd450c 12796EOF
21d1c967 12797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 12798{ (eval echo configure:12799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
12799ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12800if test -z "$ac_err"; then
90dd450c 12801 rm -rf conftest*
21d1c967
GD
12802 # We can compile using X headers with no special include directory.
12803ac_x_includes=
90dd450c 12804else
21d1c967 12805 echo "$ac_err" >&5
90dd450c
VZ
12806 echo "configure: failed program was:" >&5
12807 cat conftest.$ac_ext >&5
12808 rm -rf conftest*
21d1c967
GD
12809 # Look for the header file in a standard set of common directories.
12810# Check X11 before X11Rn because it is often a symlink to the current release.
12811 for ac_dir in \
12812 /usr/X11/include \
12813 /usr/X11R6/include \
12814 /usr/X11R5/include \
12815 /usr/X11R4/include \
12816 \
12817 /usr/include/X11 \
12818 /usr/include/X11R6 \
12819 /usr/include/X11R5 \
12820 /usr/include/X11R4 \
12821 \
12822 /usr/local/X11/include \
12823 /usr/local/X11R6/include \
12824 /usr/local/X11R5/include \
12825 /usr/local/X11R4/include \
12826 \
12827 /usr/local/include/X11 \
12828 /usr/local/include/X11R6 \
12829 /usr/local/include/X11R5 \
12830 /usr/local/include/X11R4 \
12831 \
12832 /usr/X386/include \
12833 /usr/x386/include \
12834 /usr/XFree86/include/X11 \
12835 \
12836 /usr/include \
12837 /usr/local/include \
12838 /usr/unsupported/include \
12839 /usr/athena/include \
12840 /usr/local/x11r5/include \
12841 /usr/lpp/Xamples/include \
12842 \
12843 /usr/openwin/include \
12844 /usr/openwin/share/include \
12845 ; \
12846 do
12847 if test -r "$ac_dir/$x_direct_test_include"; then
12848 ac_x_includes=$ac_dir
12849 break
12850 fi
12851 done
3a922bb4 12852fi
90dd450c 12853rm -f conftest*
21d1c967 12854fi # $ac_x_includes = NO
10f2d63a 12855
21d1c967
GD
12856if test "$ac_x_libraries" = NO; then
12857 # Check for the libraries.
be505a65 12858
21d1c967
GD
12859 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12860 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12861
21d1c967
GD
12862 # See if we find them without any special options.
12863 # Don't add to $LIBS permanently.
12864 ac_save_LIBS="$LIBS"
12865 LIBS="-l$x_direct_test_library $LIBS"
12866cat > conftest.$ac_ext <<EOF
6a30f1c8 12867#line 12868 "configure"
3a922bb4 12868#include "confdefs.h"
21d1c967
GD
12869
12870int main() {
12871${x_direct_test_function}()
12872; return 0; }
3a922bb4 12873EOF
6a30f1c8 12874if { (eval echo configure:12875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12875 rm -rf conftest*
21d1c967
GD
12876 LIBS="$ac_save_LIBS"
12877# We can link X programs with no special library path.
12878ac_x_libraries=
3a922bb4 12879else
3a922bb4
RL
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 rm -rf conftest*
21d1c967
GD
12883 LIBS="$ac_save_LIBS"
12884# First see if replacing the include by lib works.
12885# Check X11 before X11Rn because it is often a symlink to the current release.
12886for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12887 /usr/X11/lib \
12888 /usr/X11R6/lib \
12889 /usr/X11R5/lib \
12890 /usr/X11R4/lib \
12891 \
12892 /usr/lib/X11 \
12893 /usr/lib/X11R6 \
12894 /usr/lib/X11R5 \
12895 /usr/lib/X11R4 \
12896 \
12897 /usr/local/X11/lib \
12898 /usr/local/X11R6/lib \
12899 /usr/local/X11R5/lib \
12900 /usr/local/X11R4/lib \
12901 \
12902 /usr/local/lib/X11 \
12903 /usr/local/lib/X11R6 \
12904 /usr/local/lib/X11R5 \
12905 /usr/local/lib/X11R4 \
12906 \
12907 /usr/X386/lib \
12908 /usr/x386/lib \
12909 /usr/XFree86/lib/X11 \
12910 \
12911 /usr/lib \
12912 /usr/local/lib \
12913 /usr/unsupported/lib \
12914 /usr/athena/lib \
12915 /usr/local/x11r5/lib \
12916 /usr/lpp/Xamples/lib \
12917 /lib/usr/lib/X11 \
12918 \
12919 /usr/openwin/lib \
12920 /usr/openwin/share/lib \
12921 ; \
12922do
12923 for ac_extension in a so sl; do
12924 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12925 ac_x_libraries=$ac_dir
12926 break 2
12927 fi
12928 done
12929done
3a922bb4
RL
12930fi
12931rm -f conftest*
21d1c967 12932fi # $ac_x_libraries = NO
90dd450c 12933
21d1c967
GD
12934if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12935 # Didn't find X anywhere. Cache the known absence of X.
12936 ac_cv_have_x="have_x=no"
12937else
12938 # Record where we found X for the cache.
12939 ac_cv_have_x="have_x=yes \
12940 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12941fi
21d1c967
GD
12942fi
12943 fi
12944 eval "$ac_cv_have_x"
12945fi # $with_x != no
90dd450c 12946
21d1c967
GD
12947if test "$have_x" != yes; then
12948 echo "$ac_t""$have_x" 1>&6
12949 no_x=yes
12950else
12951 # If each of the values was on the command line, it overrides each guess.
12952 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12953 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12954 # Update the cache value to reflect the command line values.
12955 ac_cv_have_x="have_x=yes \
12956 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12957 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12958fi
90dd450c 12959
21d1c967 12960if test "$no_x" = yes; then
90dd450c
VZ
12961 # Not all programs may use this symbol, but it does not hurt to define it.
12962 cat >> confdefs.h <<\EOF
12963#define X_DISPLAY_MISSING 1
12964EOF
12965
12966 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12967else
12968 if test -n "$x_includes"; then
12969 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12970 fi
3a922bb4 12971
90dd450c
VZ
12972 # It would also be nice to do this for all -L options, not just this one.
12973 if test -n "$x_libraries"; then
12974 X_LIBS="$X_LIBS -L$x_libraries"
12975 # For Solaris; some versions of Sun CC require a space after -R and
12976 # others require no space. Words are not sufficient . . . .
12977 case "`(uname -sr) 2>/dev/null`" in
12978 "SunOS 5"*)
12979 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6a30f1c8 12980echo "configure:12981: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12981 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12982 cat > conftest.$ac_ext <<EOF
6a30f1c8 12983#line 12984 "configure"
90dd450c
VZ
12984#include "confdefs.h"
12985
12986int main() {
12987
12988; return 0; }
12989EOF
6a30f1c8 12990if { (eval echo configure:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12991 rm -rf conftest*
12992 ac_R_nospace=yes
3a922bb4 12993else
90dd450c
VZ
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12996 rm -rf conftest*
12997 ac_R_nospace=no
3a922bb4 12998fi
90dd450c
VZ
12999rm -f conftest*
13000 if test $ac_R_nospace = yes; then
13001 echo "$ac_t""no" 1>&6
13002 X_LIBS="$X_LIBS -R$x_libraries"
13003 else
13004 LIBS="$ac_xsave_LIBS -R $x_libraries"
13005 cat > conftest.$ac_ext <<EOF
6a30f1c8 13006#line 13007 "configure"
90dd450c 13007#include "confdefs.h"
3a922bb4 13008
90dd450c 13009int main() {
6f754473 13010
90dd450c
VZ
13011; return 0; }
13012EOF
6a30f1c8 13013if { (eval echo configure:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13014 rm -rf conftest*
13015 ac_R_space=yes
13016else
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 rm -rf conftest*
13020 ac_R_space=no
13021fi
13022rm -f conftest*
13023 if test $ac_R_space = yes; then
13024 echo "$ac_t""yes" 1>&6
13025 X_LIBS="$X_LIBS -R $x_libraries"
13026 else
13027 echo "$ac_t""neither works" 1>&6
13028 fi
13029 fi
13030 LIBS="$ac_xsave_LIBS"
13031 esac
13032 fi
13033
13034 # Check for system-dependent libraries X programs must link with.
13035 # Do this before checking for the system-independent R6 libraries
13036 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13037
90dd450c
VZ
13038 if test "$ISC" = yes; then
13039 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13040 else
13041 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13042 # libraries were built with DECnet support. And karl@cs.umb.edu says
13043 # the Alpha needs dnet_stub (dnet does not exist).
13044 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6a30f1c8 13045echo "configure:13046: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
13046ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13048 echo $ac_n "(cached) $ac_c" 1>&6
13049else
13050 ac_save_LIBS="$LIBS"
13051LIBS="-ldnet $LIBS"
13052cat > conftest.$ac_ext <<EOF
6a30f1c8 13053#line 13054 "configure"
90dd450c
VZ
13054#include "confdefs.h"
13055/* Override any gcc2 internal prototype to avoid an error. */
13056/* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058char dnet_ntoa();
6f754473 13059
90dd450c
VZ
13060int main() {
13061dnet_ntoa()
13062; return 0; }
6f754473 13063EOF
6a30f1c8 13064if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13065 rm -rf conftest*
13066 eval "ac_cv_lib_$ac_lib_var=yes"
13067else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13072fi
90dd450c
VZ
13073rm -f conftest*
13074LIBS="$ac_save_LIBS"
3a922bb4 13075
3a922bb4 13076fi
90dd450c
VZ
13077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13080else
13081 echo "$ac_t""no" 1>&6
3a922bb4
RL
13082fi
13083
90dd450c
VZ
13084 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13085 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6a30f1c8 13086echo "configure:13087: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
13087ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13089 echo $ac_n "(cached) $ac_c" 1>&6
13090else
13091 ac_save_LIBS="$LIBS"
13092LIBS="-ldnet_stub $LIBS"
13093cat > conftest.$ac_ext <<EOF
6a30f1c8 13094#line 13095 "configure"
90dd450c
VZ
13095#include "confdefs.h"
13096/* Override any gcc2 internal prototype to avoid an error. */
13097/* We use char because int might match the return type of a gcc2
13098 builtin and then its argument prototype would still apply. */
13099char dnet_ntoa();
f676c7ff 13100
90dd450c
VZ
13101int main() {
13102dnet_ntoa()
13103; return 0; }
13104EOF
6a30f1c8 13105if { (eval echo configure:13106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13106 rm -rf conftest*
13107 eval "ac_cv_lib_$ac_lib_var=yes"
13108else
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 rm -rf conftest*
13112 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13113fi
90dd450c
VZ
13114rm -f conftest*
13115LIBS="$ac_save_LIBS"
3a922bb4 13116
90dd450c
VZ
13117fi
13118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13119 echo "$ac_t""yes" 1>&6
13120 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13121else
13122 echo "$ac_t""no" 1>&6
3a922bb4
RL
13123fi
13124
90dd450c 13125 fi
978f1259 13126
90dd450c
VZ
13127 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13128 # to get the SysV transport functions.
13129 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13130 # needs -lnsl.
13131 # The nsl library prevents programs from opening the X display
13132 # on Irix 5.2, according to dickey@clark.net.
13133 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6a30f1c8 13134echo "configure:13135: checking for gethostbyname" >&5
90dd450c
VZ
13135if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137else
13138 cat > conftest.$ac_ext <<EOF
6a30f1c8 13139#line 13140 "configure"
90dd450c
VZ
13140#include "confdefs.h"
13141/* System header to define __stub macros and hopefully few prototypes,
13142 which can conflict with char gethostbyname(); below. */
13143#include <assert.h>
13144/* Override any gcc2 internal prototype to avoid an error. */
13145/* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147char gethostbyname();
978f1259 13148
90dd450c 13149int main() {
978f1259 13150
90dd450c
VZ
13151/* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13155choke me
13156#else
13157gethostbyname();
13158#endif
978f1259 13159
90dd450c
VZ
13160; return 0; }
13161EOF
6a30f1c8 13162if { (eval echo configure:13163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13163 rm -rf conftest*
13164 eval "ac_cv_func_gethostbyname=yes"
13165else
13166 echo "configure: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 rm -rf conftest*
13169 eval "ac_cv_func_gethostbyname=no"
978f1259 13170fi
90dd450c 13171rm -f conftest*
4222829b
VS
13172fi
13173
90dd450c
VZ
13174if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 :
13177else
13178 echo "$ac_t""no" 1>&6
13179fi
698dcdb6 13180
90dd450c
VZ
13181 if test $ac_cv_func_gethostbyname = no; then
13182 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6a30f1c8 13183echo "configure:13184: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13184ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13186 echo $ac_n "(cached) $ac_c" 1>&6
13187else
13188 ac_save_LIBS="$LIBS"
13189LIBS="-lnsl $LIBS"
13190cat > conftest.$ac_ext <<EOF
6a30f1c8 13191#line 13192 "configure"
90dd450c
VZ
13192#include "confdefs.h"
13193/* Override any gcc2 internal prototype to avoid an error. */
13194/* We use char because int might match the return type of a gcc2
13195 builtin and then its argument prototype would still apply. */
13196char gethostbyname();
f6bcfd97 13197
90dd450c
VZ
13198int main() {
13199gethostbyname()
13200; return 0; }
13201EOF
6a30f1c8 13202if { (eval echo configure:13203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13203 rm -rf conftest*
13204 eval "ac_cv_lib_$ac_lib_var=yes"
13205else
13206 echo "configure: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 rm -rf conftest*
13209 eval "ac_cv_lib_$ac_lib_var=no"
13210fi
13211rm -f conftest*
13212LIBS="$ac_save_LIBS"
55e80573 13213
90dd450c
VZ
13214fi
13215if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13216 echo "$ac_t""yes" 1>&6
13217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13218else
13219 echo "$ac_t""no" 1>&6
13220fi
b12915c1 13221
90dd450c
VZ
13222 fi
13223
13224 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13225 # socket/setsockopt and other routines are undefined under SCO ODT
13226 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13227 # on later versions), says simon@lia.di.epfl.ch: it contains
13228 # gethostby* variants that don't use the nameserver (or something).
13229 # -lsocket must be given before -lnsl if both are needed.
13230 # We assume that if connect needs -lnsl, so does gethostbyname.
13231 echo $ac_n "checking for connect""... $ac_c" 1>&6
6a30f1c8 13232echo "configure:13233: checking for connect" >&5
90dd450c 13233if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13234 echo $ac_n "(cached) $ac_c" 1>&6
13235else
90dd450c 13236 cat > conftest.$ac_ext <<EOF
6a30f1c8 13237#line 13238 "configure"
55e80573 13238#include "confdefs.h"
90dd450c
VZ
13239/* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char connect(); below. */
13241#include <assert.h>
13242/* Override any gcc2 internal prototype to avoid an error. */
13243/* We use char because int might match the return type of a gcc2
13244 builtin and then its argument prototype would still apply. */
13245char connect();
55e80573
VZ
13246
13247int main() {
13248
90dd450c
VZ
13249/* The GNU C library defines this for functions which it implements
13250 to always fail with ENOSYS. Some functions are actually named
13251 something starting with __ and the normal name is an alias. */
13252#if defined (__stub_connect) || defined (__stub___connect)
13253choke me
13254#else
13255connect();
13256#endif
13257
55e80573
VZ
13258; return 0; }
13259EOF
6a30f1c8 13260if { (eval echo configure:13261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13261 rm -rf conftest*
90dd450c 13262 eval "ac_cv_func_connect=yes"
55e80573
VZ
13263else
13264 echo "configure: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13266 rm -rf conftest*
90dd450c 13267 eval "ac_cv_func_connect=no"
55e80573
VZ
13268fi
13269rm -f conftest*
55e80573
VZ
13270fi
13271
90dd450c
VZ
13272if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13273 echo "$ac_t""yes" 1>&6
13274 :
13275else
13276 echo "$ac_t""no" 1>&6
13277fi
55e80573 13278
90dd450c
VZ
13279 if test $ac_cv_func_connect = no; then
13280 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6a30f1c8 13281echo "configure:13282: checking for connect in -lsocket" >&5
90dd450c
VZ
13282ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13285else
13286 ac_save_LIBS="$LIBS"
13287LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13288cat > conftest.$ac_ext <<EOF
6a30f1c8 13289#line 13290 "configure"
90dd450c
VZ
13290#include "confdefs.h"
13291/* Override any gcc2 internal prototype to avoid an error. */
13292/* We use char because int might match the return type of a gcc2
13293 builtin and then its argument prototype would still apply. */
13294char connect();
55e80573 13295
90dd450c
VZ
13296int main() {
13297connect()
13298; return 0; }
13299EOF
6a30f1c8 13300if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13301 rm -rf conftest*
13302 eval "ac_cv_lib_$ac_lib_var=yes"
13303else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_lib_$ac_lib_var=no"
13308fi
13309rm -f conftest*
13310LIBS="$ac_save_LIBS"
77e13408 13311
90dd450c
VZ
13312fi
13313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13314 echo "$ac_t""yes" 1>&6
13315 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13316else
13317 echo "$ac_t""no" 1>&6
13318fi
77e13408 13319
90dd450c 13320 fi
25d0687a 13321
90dd450c
VZ
13322 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13323 echo $ac_n "checking for remove""... $ac_c" 1>&6
6a30f1c8 13324echo "configure:13325: checking for remove" >&5
90dd450c
VZ
13325if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13326 echo $ac_n "(cached) $ac_c" 1>&6
13327else
13328 cat > conftest.$ac_ext <<EOF
6a30f1c8 13329#line 13330 "configure"
90dd450c
VZ
13330#include "confdefs.h"
13331/* System header to define __stub macros and hopefully few prototypes,
13332 which can conflict with char remove(); below. */
13333#include <assert.h>
13334/* Override any gcc2 internal prototype to avoid an error. */
13335/* We use char because int might match the return type of a gcc2
13336 builtin and then its argument prototype would still apply. */
13337char remove();
7b7a7637 13338
90dd450c 13339int main() {
55e80573 13340
90dd450c
VZ
13341/* The GNU C library defines this for functions which it implements
13342 to always fail with ENOSYS. Some functions are actually named
13343 something starting with __ and the normal name is an alias. */
13344#if defined (__stub_remove) || defined (__stub___remove)
13345choke me
13346#else
13347remove();
13348#endif
55e80573 13349
90dd450c
VZ
13350; return 0; }
13351EOF
6a30f1c8 13352if { (eval echo configure:13353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13353 rm -rf conftest*
13354 eval "ac_cv_func_remove=yes"
13355else
13356 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
13358 rm -rf conftest*
13359 eval "ac_cv_func_remove=no"
13360fi
13361rm -f conftest*
13362fi
55e80573 13363
90dd450c
VZ
13364if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13365 echo "$ac_t""yes" 1>&6
13366 :
13367else
13368 echo "$ac_t""no" 1>&6
13369fi
10f2d63a 13370
90dd450c
VZ
13371 if test $ac_cv_func_remove = no; then
13372 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6a30f1c8 13373echo "configure:13374: checking for remove in -lposix" >&5
90dd450c
VZ
13374ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13376 echo $ac_n "(cached) $ac_c" 1>&6
13377else
13378 ac_save_LIBS="$LIBS"
13379LIBS="-lposix $LIBS"
13380cat > conftest.$ac_ext <<EOF
6a30f1c8 13381#line 13382 "configure"
90dd450c
VZ
13382#include "confdefs.h"
13383/* Override any gcc2 internal prototype to avoid an error. */
13384/* We use char because int might match the return type of a gcc2
13385 builtin and then its argument prototype would still apply. */
13386char remove();
55e80573 13387
90dd450c
VZ
13388int main() {
13389remove()
13390; return 0; }
13391EOF
6a30f1c8 13392if { (eval echo configure:13393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13393 rm -rf conftest*
13394 eval "ac_cv_lib_$ac_lib_var=yes"
13395else
13396 echo "configure: failed program was:" >&5
13397 cat conftest.$ac_ext >&5
13398 rm -rf conftest*
13399 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13400fi
90dd450c
VZ
13401rm -f conftest*
13402LIBS="$ac_save_LIBS"
f6bcfd97 13403
90dd450c
VZ
13404fi
13405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13406 echo "$ac_t""yes" 1>&6
13407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13408else
13409 echo "$ac_t""no" 1>&6
13410fi
f6bcfd97 13411
6fa882bd
RR
13412 fi
13413
90dd450c
VZ
13414 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13415 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6a30f1c8 13416echo "configure:13417: checking for shmat" >&5
90dd450c
VZ
13417if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13418 echo $ac_n "(cached) $ac_c" 1>&6
13419else
13420 cat > conftest.$ac_ext <<EOF
6a30f1c8 13421#line 13422 "configure"
90dd450c
VZ
13422#include "confdefs.h"
13423/* System header to define __stub macros and hopefully few prototypes,
13424 which can conflict with char shmat(); below. */
13425#include <assert.h>
13426/* Override any gcc2 internal prototype to avoid an error. */
13427/* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13429char shmat();
698dcdb6 13430
90dd450c 13431int main() {
3a922bb4 13432
90dd450c
VZ
13433/* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436#if defined (__stub_shmat) || defined (__stub___shmat)
13437choke me
13438#else
13439shmat();
13440#endif
10f2d63a 13441
90dd450c
VZ
13442; return 0; }
13443EOF
6a30f1c8 13444if { (eval echo configure:13445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13445 rm -rf conftest*
13446 eval "ac_cv_func_shmat=yes"
d08b457b 13447else
90dd450c
VZ
13448 echo "configure: failed program was:" >&5
13449 cat conftest.$ac_ext >&5
13450 rm -rf conftest*
13451 eval "ac_cv_func_shmat=no"
d08b457b 13452fi
90dd450c 13453rm -f conftest*
d08b457b 13454fi
90dd450c
VZ
13455
13456if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13457 echo "$ac_t""yes" 1>&6
13458 :
d08b457b
GD
13459else
13460 echo "$ac_t""no" 1>&6
13461fi
13462
90dd450c
VZ
13463 if test $ac_cv_func_shmat = no; then
13464 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6a30f1c8 13465echo "configure:13466: checking for shmat in -lipc" >&5
90dd450c
VZ
13466ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13468 echo $ac_n "(cached) $ac_c" 1>&6
13469else
90dd450c
VZ
13470 ac_save_LIBS="$LIBS"
13471LIBS="-lipc $LIBS"
13472cat > conftest.$ac_ext <<EOF
6a30f1c8 13473#line 13474 "configure"
90dd450c
VZ
13474#include "confdefs.h"
13475/* Override any gcc2 internal prototype to avoid an error. */
13476/* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478char shmat();
13479
13480int main() {
13481shmat()
13482; return 0; }
13483EOF
6a30f1c8 13484if { (eval echo configure:13485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13485 rm -rf conftest*
13486 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13487else
90dd450c
VZ
13488 echo "configure: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 rm -rf conftest*
13491 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13492fi
90dd450c
VZ
13493rm -f conftest*
13494LIBS="$ac_save_LIBS"
13495
d08b457b 13496fi
90dd450c
VZ
13497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13500else
13501 echo "$ac_t""no" 1>&6
13502fi
13503
d558c907 13504 fi
90dd450c 13505 fi
3a922bb4 13506
90dd450c
VZ
13507 # Check for libraries that X11R6 Xt/Xaw programs need.
13508 ac_save_LDFLAGS="$LDFLAGS"
13509 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13510 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13511 # check for ICE first), but we must link in the order -lSM -lICE or
13512 # we get undefined symbols. So assume we have SM if we have ICE.
13513 # These have to be linked with before -lX11, unlike the other
13514 # libraries we check for below, so use a different variable.
13515 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13516 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6a30f1c8 13517echo "configure:13518: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13518ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13520 echo $ac_n "(cached) $ac_c" 1>&6
13521else
90dd450c
VZ
13522 ac_save_LIBS="$LIBS"
13523LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13524cat > conftest.$ac_ext <<EOF
6a30f1c8 13525#line 13526 "configure"
9cfadba2 13526#include "confdefs.h"
90dd450c
VZ
13527/* Override any gcc2 internal prototype to avoid an error. */
13528/* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530char IceConnectionNumber();
13531
13532int main() {
13533IceConnectionNumber()
13534; return 0; }
698dcdb6 13535EOF
6a30f1c8 13536if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13537 rm -rf conftest*
90dd450c 13538 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13539else
698dcdb6 13540 echo "configure: failed program was:" >&5
9cfadba2 13541 cat conftest.$ac_ext >&5
698dcdb6 13542 rm -rf conftest*
90dd450c 13543 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13544fi
698dcdb6 13545rm -f conftest*
90dd450c
VZ
13546LIBS="$ac_save_LIBS"
13547
9cfadba2 13548fi
90dd450c 13549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13550 echo "$ac_t""yes" 1>&6
90dd450c 13551 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13552else
13553 echo "$ac_t""no" 1>&6
9cfadba2 13554fi
10f2d63a 13555
90dd450c
VZ
13556 LDFLAGS="$ac_save_LDFLAGS"
13557
13558fi
13559
13560
13561 if test "$no_x" = "yes"; then
13562 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13563 fi
13564
13565 GUI_TK_LIBRARY="$X_LIBS"
13566 TOOLKIT_INCLUDE="$X_CFLAGS"
13567 AFMINSTALL=afminstall
13568 COMPILED_X_PROGRAM=0
13569
21d1c967
GD
13570 if test "$wxUSE_NANOX" = "yes"; then
13571 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
6a30f1c8 13572echo "configure:13573: checking for MicroWindows/NanoX distribution" >&5
21d1c967
GD
13573 if test "x$MICROWIN" = x ; then
13574 echo "$ac_t""not found" 1>&6
13575 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13576 else
21d1c967
GD
13577 echo "$ac_t""$MICROWIN" 1>&6
13578 cat >> confdefs.h <<\EOF
13579#define wxUSE_NANOX 1
698dcdb6 13580EOF
21d1c967 13581
90dd450c
VZ
13582 fi
13583 fi
13584
13585 xpm_link=
13586 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6a30f1c8 13587echo "configure:13588: checking for Xpm library" >&5
90dd450c
VZ
13588
13589ac_find_libraries=
13590for ac_dir in $SEARCH_LIB;
13591 do
13592 for ac_extension in a so sl dylib; do
13593 if test -f "$ac_dir/libXpm.$ac_extension"; then
13594 ac_find_libraries=$ac_dir
13595 break 2
13596 fi
13597 done
13598 done
13599
13600 if test "$ac_find_libraries" != "" ; then
13601
13602 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13603 result=$?
13604 if test $result = 0; then
13605 ac_path_to_link=""
13606 else
13607 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13608 fi
90dd450c 13609
21d1c967
GD
13610 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13611 xpm_link=" -lXpm"
13612 cat >> confdefs.h <<\EOF
13613#define wxHAVE_LIB_XPM 1
13614EOF
90dd450c 13615
21d1c967
GD
13616 echo "$ac_t""found at $ac_find_libraries" 1>&6
13617 else
13618 cat > conftest.$ac_ext <<EOF
6a30f1c8 13619#line 13620 "configure"
21d1c967 13620#include "confdefs.h"
90dd450c 13621
21d1c967
GD
13622 #include <X11/xpm.h>
13623
13624int main() {
6f72b082 13625
21d1c967
GD
13626 int version;
13627 version = XpmLibraryVersion();
13628
13629; return 0; }
13630EOF
6a30f1c8 13631if { (eval echo configure:13632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
13632 rm -rf conftest*
13633
13634 xpm_link=" -lXpm"
13635 cat >> confdefs.h <<\EOF
13636#define wxHAVE_LIB_XPM 1
13637EOF
90dd450c 13638
21d1c967
GD
13639 echo "$ac_t""found in default search path" 1>&6
13640 COMPILED_X_PROGRAM=0
13641
13642else
13643 echo "configure: failed program was:" >&5
13644 cat conftest.$ac_ext >&5
13645 rm -rf conftest*
13646
13647 echo "$ac_t""no" 1>&6
13648 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13649
13650
6f72b082 13651fi
21d1c967
GD
13652rm -f conftest*
13653 fi
90dd450c 13654
1d1b75ac
VZ
13655 wxUSE_UNIVERSAL="yes"
13656
21d1c967
GD
13657 if test "$wxUSE_NANOX" = "yes"; then
13658 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13659 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13660 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13661 else
13662 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13663 fi
6f72b082 13664
21d1c967
GD
13665 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13666 TOOLKIT=X11
13667 GUIDIST=X11_DIST
13668 fi
90dd450c 13669
21d1c967
GD
13670 if test "$wxUSE_WINE" = 1; then
13671 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13672echo $ac_n "checking for windows.h""... $ac_c" 1>&6
6a30f1c8 13673echo "configure:13674: checking for windows.h" >&5
698dcdb6
VZ
13674if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13675 echo $ac_n "(cached) $ac_c" 1>&6
13676else
13677 cat > conftest.$ac_ext <<EOF
6a30f1c8 13678#line 13679 "configure"
6f72b082 13679#include "confdefs.h"
21d1c967 13680#include <windows.h>
698dcdb6
VZ
13681EOF
13682ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 13683{ (eval echo configure:13684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13684ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13685if test -z "$ac_err"; then
13686 rm -rf conftest*
13687 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13688else
698dcdb6
VZ
13689 echo "$ac_err" >&5
13690 echo "configure: failed program was:" >&5
10f2d63a 13691 cat conftest.$ac_ext >&5
698dcdb6
VZ
13692 rm -rf conftest*
13693 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13694fi
698dcdb6 13695rm -f conftest*
10f2d63a 13696fi
698dcdb6
VZ
13697if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13698 echo "$ac_t""yes" 1>&6
21d1c967
GD
13699 :
13700else
13701 echo "$ac_t""no" 1>&6
13702
13703 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13704
13705fi
13706
13707
13708 xpm_link=
13709 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6a30f1c8 13710echo "configure:13711: checking for Xpm library" >&5
21d1c967 13711
90dd450c
VZ
13712ac_find_libraries=
13713for ac_dir in $SEARCH_LIB;
13714 do
13715 for ac_extension in a so sl dylib; do
21d1c967 13716 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13717 ac_find_libraries=$ac_dir
13718 break 2
13719 fi
13720 done
13721 done
13722
21d1c967
GD
13723 if test "$ac_find_libraries" != "" ; then
13724 GUI_TK_LIBRARY="-L$ac_find_libraries"
13725 xpm_link=" -lXpm"
13726 cat >> confdefs.h <<\EOF
13727#define wxHAVE_LIB_XPM 1
13728EOF
90dd450c 13729
21d1c967
GD
13730 echo "$ac_t""found at $ac_find_libraries" 1>&6
13731 else
13732 echo "$ac_t""no" 1>&6
13733 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13734 fi
13735
13736 mesa_link=
13737 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6a30f1c8 13738echo "configure:13739: checking for Mesa library" >&5
21d1c967 13739
90dd450c
VZ
13740ac_find_libraries=
13741for ac_dir in $SEARCH_LIB;
13742 do
13743 for ac_extension in a so sl dylib; do
13744 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13745 ac_find_libraries=$ac_dir
13746 break 2
13747 fi
13748 done
13749 done
13750
21d1c967
GD
13751 if test "$ac_find_libraries" != "" ; then
13752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13753 mesa_link=" -lMesaGL"
13754 echo "$ac_t""found at $ac_find_libraries" 1>&6
13755 else
13756 { echo "configure: error: no" 1>&2; exit 1; }
13757 fi
13758
13759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13760 TOOLKIT=MSW
13761 GUIDIST=MSW_DIST
13762 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13763 fi
13764
13765 if test "$wxUSE_MOTIF" = 1; then
13766 if test "$no_x" = yes; then
13767 # Not all programs may use this symbol, but it does not hurt to define it.
13768 cat >> confdefs.h <<\EOF
13769#define X_DISPLAY_MISSING 1
13770EOF
13771
13772 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13773else
13774 if test -n "$x_includes"; then
13775 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13776 fi
13777
21d1c967
GD
13778 # It would also be nice to do this for all -L options, not just this one.
13779 if test -n "$x_libraries"; then
13780 X_LIBS="$X_LIBS -L$x_libraries"
13781 # For Solaris; some versions of Sun CC require a space after -R and
13782 # others require no space. Words are not sufficient . . . .
13783 case "`(uname -sr) 2>/dev/null`" in
13784 "SunOS 5"*)
13785 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6a30f1c8 13786echo "configure:13787: checking whether -R must be followed by a space" >&5
21d1c967
GD
13787 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13788 cat > conftest.$ac_ext <<EOF
6a30f1c8 13789#line 13790 "configure"
21d1c967
GD
13790#include "confdefs.h"
13791
13792int main() {
13793
13794; return 0; }
13795EOF
6a30f1c8 13796if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13797 rm -rf conftest*
13798 ac_R_nospace=yes
698dcdb6 13799else
21d1c967
GD
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 rm -rf conftest*
13803 ac_R_nospace=no
10f2d63a 13804fi
21d1c967
GD
13805rm -f conftest*
13806 if test $ac_R_nospace = yes; then
13807 echo "$ac_t""no" 1>&6
13808 X_LIBS="$X_LIBS -R$x_libraries"
13809 else
13810 LIBS="$ac_xsave_LIBS -R $x_libraries"
13811 cat > conftest.$ac_ext <<EOF
6a30f1c8 13812#line 13813 "configure"
21d1c967 13813#include "confdefs.h"
10f2d63a 13814
21d1c967 13815int main() {
f0c87536 13816
21d1c967 13817; return 0; }
698dcdb6 13818EOF
6a30f1c8 13819if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13820 rm -rf conftest*
13821 ac_R_space=yes
13822else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -rf conftest*
13826 ac_R_space=no
13827fi
13828rm -f conftest*
13829 if test $ac_R_space = yes; then
13830 echo "$ac_t""yes" 1>&6
13831 X_LIBS="$X_LIBS -R $x_libraries"
13832 else
13833 echo "$ac_t""neither works" 1>&6
13834 fi
13835 fi
13836 LIBS="$ac_xsave_LIBS"
13837 esac
13838 fi
90dd450c 13839
21d1c967
GD
13840 # Check for system-dependent libraries X programs must link with.
13841 # Do this before checking for the system-independent R6 libraries
13842 # (-lICE), since we may need -lsocket or whatever for X linking.
13843
13844 if test "$ISC" = yes; then
13845 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13846 else
13847 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13848 # libraries were built with DECnet support. And karl@cs.umb.edu says
13849 # the Alpha needs dnet_stub (dnet does not exist).
13850 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6a30f1c8 13851echo "configure:13852: checking for dnet_ntoa in -ldnet" >&5
21d1c967
GD
13852ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 ac_save_LIBS="$LIBS"
13857LIBS="-ldnet $LIBS"
13858cat > conftest.$ac_ext <<EOF
6a30f1c8 13859#line 13860 "configure"
21d1c967
GD
13860#include "confdefs.h"
13861/* Override any gcc2 internal prototype to avoid an error. */
13862/* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13864char dnet_ntoa();
13865
13866int main() {
13867dnet_ntoa()
13868; return 0; }
90dd450c 13869EOF
6a30f1c8 13870if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13871 rm -rf conftest*
13872 eval "ac_cv_lib_$ac_lib_var=yes"
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13878fi
21d1c967
GD
13879rm -f conftest*
13880LIBS="$ac_save_LIBS"
90dd450c 13881
0fb0dd83 13882fi
21d1c967
GD
13883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13886else
13887 echo "$ac_t""no" 1>&6
0fb0dd83 13888fi
0fb0dd83 13889
21d1c967
GD
13890 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13891 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6a30f1c8 13892echo "configure:13893: checking for dnet_ntoa in -ldnet_stub" >&5
21d1c967
GD
13893ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13896else
13897 ac_save_LIBS="$LIBS"
13898LIBS="-ldnet_stub $LIBS"
13899cat > conftest.$ac_ext <<EOF
6a30f1c8 13900#line 13901 "configure"
21d1c967
GD
13901#include "confdefs.h"
13902/* Override any gcc2 internal prototype to avoid an error. */
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char dnet_ntoa();
90dd450c 13906
21d1c967
GD
13907int main() {
13908dnet_ntoa()
13909; return 0; }
13910EOF
6a30f1c8 13911if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13912 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=yes"
13914else
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 rm -rf conftest*
13918 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13919fi
21d1c967
GD
13920rm -f conftest*
13921LIBS="$ac_save_LIBS"
90dd450c 13922
21d1c967
GD
13923fi
13924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13925 echo "$ac_t""yes" 1>&6
13926 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13927else
13928 echo "$ac_t""no" 1>&6
90dd450c
VZ
13929fi
13930
21d1c967 13931 fi
90dd450c 13932
21d1c967
GD
13933 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13934 # to get the SysV transport functions.
13935 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13936 # needs -lnsl.
13937 # The nsl library prevents programs from opening the X display
13938 # on Irix 5.2, according to dickey@clark.net.
13939 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6a30f1c8 13940echo "configure:13941: checking for gethostbyname" >&5
21d1c967
GD
13941if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13942 echo $ac_n "(cached) $ac_c" 1>&6
13943else
13944 cat > conftest.$ac_ext <<EOF
6a30f1c8 13945#line 13946 "configure"
21d1c967
GD
13946#include "confdefs.h"
13947/* System header to define __stub macros and hopefully few prototypes,
13948 which can conflict with char gethostbyname(); below. */
13949#include <assert.h>
13950/* Override any gcc2 internal prototype to avoid an error. */
13951/* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953char gethostbyname();
90dd450c 13954
21d1c967 13955int main() {
90dd450c 13956
21d1c967
GD
13957/* The GNU C library defines this for functions which it implements
13958 to always fail with ENOSYS. Some functions are actually named
13959 something starting with __ and the normal name is an alias. */
13960#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13961choke me
13962#else
13963gethostbyname();
13964#endif
90dd450c 13965
21d1c967
GD
13966; return 0; }
13967EOF
6a30f1c8 13968if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13969 rm -rf conftest*
13970 eval "ac_cv_func_gethostbyname=yes"
13971else
13972 echo "configure: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 rm -rf conftest*
13975 eval "ac_cv_func_gethostbyname=no"
13976fi
13977rm -f conftest*
90dd450c
VZ
13978fi
13979
21d1c967
GD
13980if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13982 :
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
90dd450c 13986
21d1c967
GD
13987 if test $ac_cv_func_gethostbyname = no; then
13988 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6a30f1c8 13989echo "configure:13990: checking for gethostbyname in -lnsl" >&5
21d1c967
GD
13990ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13993else
13994 ac_save_LIBS="$LIBS"
13995LIBS="-lnsl $LIBS"
13996cat > conftest.$ac_ext <<EOF
6a30f1c8 13997#line 13998 "configure"
21d1c967
GD
13998#include "confdefs.h"
13999/* Override any gcc2 internal prototype to avoid an error. */
14000/* We use char because int might match the return type of a gcc2
14001 builtin and then its argument prototype would still apply. */
14002char gethostbyname();
90dd450c 14003
21d1c967
GD
14004int main() {
14005gethostbyname()
14006; return 0; }
14007EOF
6a30f1c8 14008if { (eval echo configure:14009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14009 rm -rf conftest*
14010 eval "ac_cv_lib_$ac_lib_var=yes"
14011else
14012 echo "configure: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14014 rm -rf conftest*
14015 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 14016fi
21d1c967
GD
14017rm -f conftest*
14018LIBS="$ac_save_LIBS"
f0c87536 14019
21d1c967
GD
14020fi
14021if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14022 echo "$ac_t""yes" 1>&6
14023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14024else
14025 echo "$ac_t""no" 1>&6
14026fi
90dd450c 14027
90dd450c
VZ
14028 fi
14029
21d1c967
GD
14030 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14031 # socket/setsockopt and other routines are undefined under SCO ODT
14032 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14033 # on later versions), says simon@lia.di.epfl.ch: it contains
14034 # gethostby* variants that don't use the nameserver (or something).
14035 # -lsocket must be given before -lnsl if both are needed.
14036 # We assume that if connect needs -lnsl, so does gethostbyname.
14037 echo $ac_n "checking for connect""... $ac_c" 1>&6
6a30f1c8 14038echo "configure:14039: checking for connect" >&5
21d1c967
GD
14039if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14040 echo $ac_n "(cached) $ac_c" 1>&6
14041else
14042 cat > conftest.$ac_ext <<EOF
6a30f1c8 14043#line 14044 "configure"
21d1c967
GD
14044#include "confdefs.h"
14045/* System header to define __stub macros and hopefully few prototypes,
14046 which can conflict with char connect(); below. */
14047#include <assert.h>
14048/* Override any gcc2 internal prototype to avoid an error. */
14049/* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */
14051char connect();
90dd450c 14052
21d1c967 14053int main() {
90dd450c 14054
21d1c967
GD
14055/* The GNU C library defines this for functions which it implements
14056 to always fail with ENOSYS. Some functions are actually named
14057 something starting with __ and the normal name is an alias. */
14058#if defined (__stub_connect) || defined (__stub___connect)
14059choke me
14060#else
14061connect();
14062#endif
90dd450c 14063
21d1c967
GD
14064; return 0; }
14065EOF
6a30f1c8 14066if { (eval echo configure:14067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14067 rm -rf conftest*
14068 eval "ac_cv_func_connect=yes"
14069else
14070 echo "configure: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 rm -rf conftest*
14073 eval "ac_cv_func_connect=no"
14074fi
14075rm -f conftest*
14076fi
90dd450c 14077
21d1c967
GD
14078if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14080 :
14081else
14082 echo "$ac_t""no" 1>&6
14083fi
1f8ae82f 14084
21d1c967
GD
14085 if test $ac_cv_func_connect = no; then
14086 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6a30f1c8 14087echo "configure:14088: checking for connect in -lsocket" >&5
21d1c967
GD
14088ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
14090 echo $ac_n "(cached) $ac_c" 1>&6
14091else
21d1c967
GD
14092 ac_save_LIBS="$LIBS"
14093LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14094cat > conftest.$ac_ext <<EOF
6a30f1c8 14095#line 14096 "configure"
0fbb762e 14096#include "confdefs.h"
21d1c967
GD
14097/* Override any gcc2 internal prototype to avoid an error. */
14098/* We use char because int might match the return type of a gcc2
14099 builtin and then its argument prototype would still apply. */
14100char connect();
90dd450c
VZ
14101
14102int main() {
21d1c967 14103connect()
90dd450c 14104; return 0; }
0fbb762e 14105EOF
6a30f1c8 14106if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 14107 rm -rf conftest*
21d1c967 14108 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 14109else
0fbb762e
MB
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 rm -rf conftest*
21d1c967 14113 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
14114fi
14115rm -f conftest*
21d1c967 14116LIBS="$ac_save_LIBS"
90dd450c 14117
21d1c967
GD
14118fi
14119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14120 echo "$ac_t""yes" 1>&6
14121 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14122else
14123 echo "$ac_t""no" 1>&6
14124fi
90dd450c 14125
21d1c967 14126 fi
90dd450c 14127
21d1c967
GD
14128 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14129 echo $ac_n "checking for remove""... $ac_c" 1>&6
6a30f1c8 14130echo "configure:14131: checking for remove" >&5
21d1c967
GD
14131if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14132 echo $ac_n "(cached) $ac_c" 1>&6
14133else
14134 cat > conftest.$ac_ext <<EOF
6a30f1c8 14135#line 14136 "configure"
21d1c967
GD
14136#include "confdefs.h"
14137/* System header to define __stub macros and hopefully few prototypes,
14138 which can conflict with char remove(); below. */
14139#include <assert.h>
14140/* Override any gcc2 internal prototype to avoid an error. */
14141/* We use char because int might match the return type of a gcc2
14142 builtin and then its argument prototype would still apply. */
14143char remove();
90dd450c 14144
21d1c967 14145int main() {
90dd450c 14146
21d1c967
GD
14147/* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150#if defined (__stub_remove) || defined (__stub___remove)
14151choke me
14152#else
14153remove();
14154#endif
90dd450c 14155
21d1c967
GD
14156; return 0; }
14157EOF
6a30f1c8 14158if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14159 rm -rf conftest*
14160 eval "ac_cv_func_remove=yes"
14161else
14162 echo "configure: failed program was:" >&5
14163 cat conftest.$ac_ext >&5
14164 rm -rf conftest*
14165 eval "ac_cv_func_remove=no"
14166fi
14167rm -f conftest*
14168fi
90dd450c 14169
21d1c967
GD
14170if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14171 echo "$ac_t""yes" 1>&6
14172 :
14173else
14174 echo "$ac_t""no" 1>&6
14175fi
90dd450c 14176
21d1c967
GD
14177 if test $ac_cv_func_remove = no; then
14178 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6a30f1c8 14179echo "configure:14180: checking for remove in -lposix" >&5
21d1c967
GD
14180ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14183else
14184 ac_save_LIBS="$LIBS"
14185LIBS="-lposix $LIBS"
14186cat > conftest.$ac_ext <<EOF
6a30f1c8 14187#line 14188 "configure"
21d1c967
GD
14188#include "confdefs.h"
14189/* Override any gcc2 internal prototype to avoid an error. */
14190/* We use char because int might match the return type of a gcc2
14191 builtin and then its argument prototype would still apply. */
14192char remove();
90dd450c 14193
21d1c967
GD
14194int main() {
14195remove()
14196; return 0; }
14197EOF
6a30f1c8 14198if { (eval echo configure:14199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14199 rm -rf conftest*
14200 eval "ac_cv_lib_$ac_lib_var=yes"
14201else
14202 echo "configure: failed program was:" >&5
14203 cat conftest.$ac_ext >&5
14204 rm -rf conftest*
14205 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14206fi
21d1c967
GD
14207rm -f conftest*
14208LIBS="$ac_save_LIBS"
0fbb762e 14209
21d1c967
GD
14210fi
14211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14212 echo "$ac_t""yes" 1>&6
14213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14214else
14215 echo "$ac_t""no" 1>&6
14216fi
19bc6aad 14217
90dd450c 14218 fi
19bc6aad 14219
21d1c967
GD
14220 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14221 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6a30f1c8 14222echo "configure:14223: checking for shmat" >&5
21d1c967
GD
14223if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14224 echo $ac_n "(cached) $ac_c" 1>&6
14225else
14226 cat > conftest.$ac_ext <<EOF
6a30f1c8 14227#line 14228 "configure"
21d1c967
GD
14228#include "confdefs.h"
14229/* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char shmat(); below. */
14231#include <assert.h>
14232/* Override any gcc2 internal prototype to avoid an error. */
14233/* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235char shmat();
19bc6aad 14236
21d1c967 14237int main() {
90dd450c 14238
21d1c967
GD
14239/* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242#if defined (__stub_shmat) || defined (__stub___shmat)
14243choke me
14244#else
14245shmat();
14246#endif
90dd450c 14247
21d1c967
GD
14248; return 0; }
14249EOF
6a30f1c8 14250if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14251 rm -rf conftest*
14252 eval "ac_cv_func_shmat=yes"
90dd450c 14253else
21d1c967
GD
14254 echo "configure: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14256 rm -rf conftest*
14257 eval "ac_cv_func_shmat=no"
19bc6aad 14258fi
21d1c967 14259rm -f conftest*
19bc6aad 14260fi
21d1c967
GD
14261
14262if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 :
19bc6aad
VZ
14265else
14266 echo "$ac_t""no" 1>&6
14267fi
19bc6aad 14268
21d1c967
GD
14269 if test $ac_cv_func_shmat = no; then
14270 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6a30f1c8 14271echo "configure:14272: checking for shmat in -lipc" >&5
21d1c967
GD
14272ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14274 echo $ac_n "(cached) $ac_c" 1>&6
14275else
21d1c967
GD
14276 ac_save_LIBS="$LIBS"
14277LIBS="-lipc $LIBS"
14278cat > conftest.$ac_ext <<EOF
6a30f1c8 14279#line 14280 "configure"
21d1c967
GD
14280#include "confdefs.h"
14281/* Override any gcc2 internal prototype to avoid an error. */
14282/* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14284char shmat();
14285
14286int main() {
14287shmat()
14288; return 0; }
14289EOF
6a30f1c8 14290if { (eval echo configure:14291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14291 rm -rf conftest*
14292 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14293else
21d1c967
GD
14294 echo "configure: failed program was:" >&5
14295 cat conftest.$ac_ext >&5
14296 rm -rf conftest*
14297 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14298fi
21d1c967
GD
14299rm -f conftest*
14300LIBS="$ac_save_LIBS"
14301
9f8148b1 14302fi
21d1c967
GD
14303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14304 echo "$ac_t""yes" 1>&6
14305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14306else
14307 echo "$ac_t""no" 1>&6
14308fi
90dd450c 14309
90dd450c 14310 fi
21d1c967 14311 fi
10f2d63a 14312
21d1c967
GD
14313 # Check for libraries that X11R6 Xt/Xaw programs need.
14314 ac_save_LDFLAGS="$LDFLAGS"
14315 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14316 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14317 # check for ICE first), but we must link in the order -lSM -lICE or
14318 # we get undefined symbols. So assume we have SM if we have ICE.
14319 # These have to be linked with before -lX11, unlike the other
14320 # libraries we check for below, so use a different variable.
14321 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14322 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6a30f1c8 14323echo "configure:14324: checking for IceConnectionNumber in -lICE" >&5
21d1c967
GD
14324ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14325if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14326 echo $ac_n "(cached) $ac_c" 1>&6
14327else
21d1c967
GD
14328 ac_save_LIBS="$LIBS"
14329LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14330cat > conftest.$ac_ext <<EOF
6a30f1c8 14331#line 14332 "configure"
29fd3c0c 14332#include "confdefs.h"
21d1c967
GD
14333/* Override any gcc2 internal prototype to avoid an error. */
14334/* We use char because int might match the return type of a gcc2
14335 builtin and then its argument prototype would still apply. */
14336char IceConnectionNumber();
14337
14338int main() {
14339IceConnectionNumber()
14340; return 0; }
29fd3c0c 14341EOF
6a30f1c8 14342if { (eval echo configure:14343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14343 rm -rf conftest*
21d1c967 14344 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14345else
29fd3c0c
VS
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 rm -rf conftest*
21d1c967 14349 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14350fi
14351rm -f conftest*
21d1c967
GD
14352LIBS="$ac_save_LIBS"
14353
29fd3c0c 14354fi
21d1c967 14355if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14356 echo "$ac_t""yes" 1>&6
21d1c967 14357 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14358else
14359 echo "$ac_t""no" 1>&6
14360fi
21d1c967
GD
14361
14362 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14363
10f2d63a
VZ
14364fi
14365
21d1c967
GD
14366
14367 if test "$no_x" = "yes"; then
14368 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14369 fi
14370
14371 GUI_TK_LIBRARY="$X_LIBS"
14372 TOOLKIT_INCLUDE="$X_CFLAGS"
14373 AFMINSTALL=afminstall
14374 COMPILED_X_PROGRAM=0
14375
14376 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
6a30f1c8 14377echo "configure:14378: checking for Motif/Lesstif headers" >&5
21d1c967
GD
14378
14379ac_find_includes=
14380for ac_dir in $SEARCH_INCLUDE;
14381 do
14382 if test -f "$ac_dir/Xm/Xm.h"; then
14383 ac_find_includes=$ac_dir
14384 break
14385 fi
14386 done
14387
14388 if test "$ac_find_includes" != "" ; then
14389 echo "$ac_t""found $ac_find_includes" 1>&6
14390 else
14391 cat > conftest.$ac_ext <<EOF
6a30f1c8 14392#line 14393 "configure"
10f2d63a 14393#include "confdefs.h"
21d1c967
GD
14394
14395 #include <Xm/Xm.h>
14396
14397int main() {
14398
14399 int version;
14400 version = xmUseVersion;
14401
14402; return 0; }
698dcdb6 14403EOF
6a30f1c8 14404if { (eval echo configure:14405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14405 rm -rf conftest*
21d1c967
GD
14406
14407 echo "$ac_t""found in default search path" 1>&6
14408 COMPILED_X_PROGRAM=1
14409
10f2d63a 14410else
90dd450c
VZ
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
698dcdb6 14413 rm -rf conftest*
21d1c967
GD
14414
14415 echo "$ac_t""no" 1>&6
14416 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14417
14418
10f2d63a
VZ
14419fi
14420rm -f conftest*
21d1c967 14421 fi
10f2d63a 14422
21d1c967
GD
14423 if test "$COMPILED_X_PROGRAM" = 0; then
14424 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6a30f1c8 14425echo "configure:14426: checking for Motif/Lesstif library" >&5
21d1c967
GD
14426
14427ac_find_libraries=
14428for ac_dir in $SEARCH_LIB;
14429 do
14430 for ac_extension in a so sl dylib; do
14431 if test -f "$ac_dir/libXm.$ac_extension"; then
14432 ac_find_libraries=$ac_dir
14433 break 2
14434 fi
14435 done
14436 done
14437
14438 if test "$ac_find_libraries" != "" ; then
14439
14440 ac_path_to_include=$ac_find_includes
14441 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14442 result=$?
14443 if test $result = 0; then
14444 ac_path_to_include=""
14445 else
14446 ac_path_to_include=" -I$ac_find_includes"
14447 fi
14448
14449
14450 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14451 result=$?
14452 if test $result = 0; then
14453 ac_path_to_link=""
14454 else
14455 ac_path_to_link=" -L$ac_find_libraries"
14456 fi
14457
14458
14459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14460 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14461 echo "$ac_t""found at $ac_find_libraries" 1>&6
14462 else
14463 cat > conftest.$ac_ext <<EOF
6a30f1c8 14464#line 14465 "configure"
d836ee96 14465#include "confdefs.h"
21d1c967
GD
14466
14467 #include <Xm/Xm.h>
14468
14469int main() {
14470
14471 int version;
14472 version = xmUseVersion;
14473
14474; return 0; }
d836ee96 14475EOF
6a30f1c8 14476if { (eval echo configure:14477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14477 rm -rf conftest*
21d1c967
GD
14478
14479 echo "$ac_t""found in default search path" 1>&6
14480 COMPILED_X_PROGRAM=1
14481
d836ee96
VZ
14482else
14483 echo "configure: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 rm -rf conftest*
21d1c967
GD
14486
14487 echo "$ac_t""no" 1>&6
14488 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14489
14490
d836ee96
VZ
14491fi
14492rm -f conftest*
21d1c967
GD
14493 fi
14494 fi
14495
14496 xpm_link=
14497 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6a30f1c8 14498echo "configure:14499: checking for Xpm library" >&5
21d1c967
GD
14499
14500ac_find_libraries=
14501for ac_dir in $SEARCH_LIB;
14502 do
14503 for ac_extension in a so sl dylib; do
14504 if test -f "$ac_dir/libXpm.$ac_extension"; then
14505 ac_find_libraries=$ac_dir
14506 break 2
14507 fi
14508 done
14509 done
14510
14511 if test "$ac_find_libraries" != "" ; then
14512
14513 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14514 result=$?
14515 if test $result = 0; then
14516 ac_path_to_link=""
14517 else
14518 ac_path_to_link=" -L$ac_find_libraries"
14519 fi
14520
14521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14522 xpm_link=" -lXpm"
14523 cat >> confdefs.h <<\EOF
14524#define wxHAVE_LIB_XPM 1
d836ee96 14525EOF
90dd450c 14526
21d1c967
GD
14527 echo "$ac_t""found at $ac_find_libraries" 1>&6
14528 else
14529 cat > conftest.$ac_ext <<EOF
6a30f1c8 14530#line 14531 "configure"
d836ee96 14531#include "confdefs.h"
21d1c967
GD
14532
14533 #include <X11/xpm.h>
14534
14535int main() {
14536
14537 int version;
14538 version = XpmLibraryVersion();
14539
14540; return 0; }
d836ee96 14541EOF
6a30f1c8 14542if { (eval echo configure:14543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14543 rm -rf conftest*
21d1c967
GD
14544
14545 xpm_link=" -lXpm"
14546 cat >> confdefs.h <<\EOF
14547#define wxHAVE_LIB_XPM 1
14548EOF
14549
14550 echo "$ac_t""found in default search path" 1>&6
14551 COMPILED_X_PROGRAM=0
14552
d836ee96
VZ
14553else
14554 echo "configure: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 rm -rf conftest*
21d1c967
GD
14557
14558 echo "$ac_t""no" 1>&6
14559 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14560
14561
d836ee96
VZ
14562fi
14563rm -f conftest*
21d1c967
GD
14564 fi
14565
6a30f1c8
MB
14566 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14567echo "configure:14568: checking if we need -lXp and/or -lSM -lICE" >&5
14568 libp_link=""
14569 libsm_ice_link=""
14570 libs_found=0
14571 for libp in "" " -lXp"; do
14572 if test "$libs_found" = "0"; then
14573 for libsm_ice in " -lSM -lICE"; do
14574 if test "$libs_found" = "0"; then
14575 save_LIBS="$LIBS"
14576 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14577 cat > conftest.$ac_ext <<EOF
14578#line 14579 "configure"
14579#include "confdefs.h"
17234b26 14580
6a30f1c8
MB
14581 #include <Xm/Xm.h>
14582 #include <Xm/List.h>
14583
14584int main() {
14585
14586 XmString string = NULL;
14587 Widget w = NULL;
14588 int position = 0;
14589 XmListAddItem(w, string, position);
14590
14591; return 0; }
14592EOF
14593if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14594 rm -rf conftest*
14595
14596 libp_link="$libp"
14597 libsm_ice_link="$libsm_ice"
14598 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14599 libs_found=1
14600
14601else
14602 echo "configure: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14604 rm -rf conftest*
14605
14606
14607fi
14608rm -f conftest*
14609 LIBS="$save_LIBS"
14610 fi
14611 done
14612 fi
14613 done
14614
14615 if test "$libs_found" = "0"; then
14616 echo "$ac_t""can't find the right libraries" 1>&6
14617 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14618 fi
14619
14620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
14621 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14622 TOOLKIT=MOTIF
14623 GUIDIST=MOTIF_DIST
14624 fi
14625
14626 if test "$wxUSE_MAC" = 1; then
14627 if test "$wxUSE_PRECOMP" = "yes"; then
14628 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14629 else
14630 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14631 fi
14632 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14633 CFLAGS="$CFLAGS -fpascal-strings"
14634 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14635
14636 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14637 TOOLKIT=MAC
14638 GUIDIST=MACX_DIST
14639 fi
14640
14641 if test "$wxUSE_PM" = 1; then
14642 TOOLKIT=PM
14643 GUIDIST=GTK_DIST
14644 fi
14645
14646 if test "$TOOLKIT" = "PM" ; then
14647 TOOLKIT_DIR="os2"
14648 else
14649 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14650 fi
14651
14652 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14653
14654 if test "$wxUSE_UNIVERSAL" = "yes"; then
14655 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14656
14657 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14658 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14659
14660 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14661 if test "$wxUSE_X11" = 1; then
14662 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14663 else
14664 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14665 fi
14666 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14667 WIDGET_SET=univ
14668 else
14669 ALL_OBJECTS="\$(GUIOBJS)"
14670 ALL_SOURCES="\$(ALL_SOURCES)"
14671 ALL_HEADERS="\$(ALL_HEADERS)"
14672 fi
14673
14674 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14675
14676 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14677 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14678 fi
14679
14680 if test "$wxUSE_HTML" = "yes"; then
14681 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14682 fi
14683
14684 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14685 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14686 fi
14687 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14688 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14689 fi
14690 if test "$wxUSE_LIBPNG" = "builtin" ; then
14691 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14692 fi
14693
14694 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14695 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14696else
21d1c967
GD
14697 USE_GUI=0
14698
14699 TOOLKIT_DIR="base"
14700
14701 if test "$USE_WIN32" = 1 ; then
14702 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14703 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14704
14705 TOOLKIT="MSW"
14706 else
14707 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14708 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14709 fi
14710
14711 ALL_SOURCES="\$(ALL_SOURCES)"
14712 ALL_HEADERS="\$(ALL_HEADERS)"
14713
14714 PORT_FILES="\${top_srcdir}/src/files.lst"
14715
14716 GUIDIST="BASE_DIST"
14717 DISTDIR="wxBase"
d836ee96
VZ
14718fi
14719
21d1c967
GD
14720
14721if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14722 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14723fi
21d1c967
GD
14724
14725if test "$wxUSE_REGEX" = "builtin" ; then
14726 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14727fi
21d1c967
GD
14728if test "$wxUSE_ZLIB" = "builtin" ; then
14729 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14730fi
14731
698dcdb6 14732
21d1c967
GD
14733if test "$wxUSE_OPENGL" = "yes"; then
14734 if test "$wxUSE_MAC" = 1; then
14735 OPENGL_LIBS="-framework OpenGL -framework AGL"
14736 elif test "$wxUSE_MSW" = 1; then
14737 OPENGL_LIBS="-lopengl32 -lglu32"
14738 else
14739 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14740echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
6a30f1c8 14741echo "configure:14742: checking for GL/gl.h" >&5
90dd450c 14742if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14743 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14744else
698dcdb6 14745 cat > conftest.$ac_ext <<EOF
6a30f1c8 14746#line 14747 "configure"
10f2d63a 14747#include "confdefs.h"
21d1c967 14748#include <GL/gl.h>
698dcdb6 14749EOF
90dd450c 14750ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 14751{ (eval echo configure:14752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14752ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14753if test -z "$ac_err"; then
4f14bcd8 14754 rm -rf conftest*
90dd450c 14755 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14756else
90dd450c 14757 echo "$ac_err" >&5
698dcdb6
VZ
14758 echo "configure: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
4f14bcd8 14760 rm -rf conftest*
90dd450c 14761 eval "ac_cv_header_$ac_safe=no"
703e0a69 14762fi
4f14bcd8 14763rm -f conftest*
698dcdb6 14764fi
90dd450c
VZ
14765if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14766 echo "$ac_t""yes" 1>&6
21d1c967
GD
14767
14768 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
6a30f1c8 14769echo "configure:14770: checking for -lGL" >&5
21d1c967
GD
14770
14771ac_find_libraries=
14772for ac_dir in $SEARCH_LIB;
14773 do
14774 for ac_extension in a so sl dylib; do
14775 if test -f "$ac_dir/libGL.$ac_extension"; then
14776 ac_find_libraries=$ac_dir
14777 break 2
14778 fi
14779 done
14780 done
14781
14782 if test "$ac_find_libraries" != "" ; then
14783
14784 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14785 result=$?
14786 if test $result = 0; then
14787 ac_path_to_link=""
14788 else
14789 ac_path_to_link=" -L$ac_find_libraries"
14790 fi
14791
14792 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14793 LDFLAGS_GL="$LDFLAGS"
14794 else
14795 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14796 fi
14797 OPENGL_LIBS="-lGL -lGLU"
14798 echo "$ac_t""yes" 1>&6
14799 else
14800 echo "$ac_t""no" 1>&6
14801 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
6a30f1c8 14802echo "configure:14803: checking for -lMesaGL" >&5
21d1c967
GD
14803
14804ac_find_libraries=
14805for ac_dir in $SEARCH_LIB;
14806 do
14807 for ac_extension in a so sl dylib; do
14808 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14809 ac_find_libraries=$ac_dir
14810 break 2
14811 fi
14812 done
14813 done
14814
14815 if test "$ac_find_libraries" != "" ; then
14816
14817 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14818 result=$?
14819 if test $result = 0; then
14820 ac_path_to_link=""
14821 else
14822 ac_path_to_link=" -L$ac_find_libraries"
14823 fi
14824
14825 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14826 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14827 echo "$ac_t""yes" 1>&6
14828 else
14829 echo "$ac_t""no" 1>&6
14830 fi
14831 fi
14832
90dd450c
VZ
14833else
14834 echo "$ac_t""no" 1>&6
14835fi
698dcdb6
VZ
14836
14837
21d1c967
GD
14838 if test "x$OPENGL_LIBS" = "x"; then
14839 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14840 fi
14841 fi
90dd450c 14842
21d1c967
GD
14843 if test "$wxUSE_OPENGL" = "yes"; then
14844 cat >> confdefs.h <<\EOF
14845#define wxUSE_OPENGL 1
698dcdb6 14846EOF
21d1c967
GD
14847
14848 cat >> confdefs.h <<\EOF
14849#define wxUSE_GLCANVAS 1
14850EOF
14851
14852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14853 fi
10f2d63a 14854fi
21d1c967
GD
14855
14856if test -z "$TOOLKIT_VPATH" ; then
14857 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14858fi
21d1c967
GD
14859
14860if test -n "$TOOLKIT" ; then
14861 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14862fi
14863
14864lib_unicode_suffix=
14865if test "$wxUSE_UNICODE" = "yes"; then
14866 lib_unicode_suffix=u
90dd450c 14867fi
698dcdb6 14868
21d1c967
GD
14869lib_debug_suffix=
14870if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14871 lib_debug_suffix=d
14872fi
698dcdb6 14873
21d1c967
GD
14874TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14875TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14876
14877if test "$cross_compiling" = "yes"; then
14878 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14879 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14880fi
14881
14882WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14883WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14884
14885WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14886WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14887
14888WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14889WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14890WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14891WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14892
14893case "${host}" in
14894 *-*-cygwin* | *-*-mingw32* )
14895
14896
14897
17234b26 14898 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
14899 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14900 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14901 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14902 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14903 else
14904 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14905 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14906 fi
14907 ;;
14908
14909 *-*-darwin* )
14910 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 14911 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
14912 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14913 fi
14914 ;;
14915esac
14916
14917WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14918WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14919
14920WXCONFIG_LIBS="-l${WX_LIBRARY}"
14921WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14922
14923if test "$wxUSE_OPENGL" = "yes"; then
14924 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14925 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14926fi
14927
14928
14929
14930if test "$wxUSE_SHARED" = "yes"; then
14931 case "${host}" in
14932 *-pc-os2_emx | *-pc-os2-emx | \
14933 *-pc-msdosdjgpp )
14934 wxUSE_SHARED=no
14935 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14936 ;;
14937 esac
14938fi
14939
14940if test "$wxUSE_SHARED" = "yes"; then
14941
14942 if test "$wxUSE_OPENGL" = "yes"; then
14943 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14944 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14945 else
14946 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14947 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14948 fi
14949
14950 if test "$GCC" = "yes"; then
14951 PIC_FLAG="-fPIC"
14952 fi
14953
14954 SHARED_LD="${CXX} -shared -o"
14955
14956 case "${host}" in
14957 *-hp-hpux* )
14958 if test "$GCC" == "yes"; then
14959 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14960 else
14961 LDFLAGS="$LDFLAGS -L/usr/lib"
14962
14963 SHARED_LD="${CXX} -b -o"
14964 PIC_FLAG="+Z"
14965 fi
14966
14967 if test "$wxUSE_OPENGL" = "yes"; then
14968 WX_ALL_INSTALLED="preinstall_gl"
14969 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14970 else
14971 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14972 fi
14973 ;;
14974
14975 *-*-linux* )
14976 if test "$GCC" != "yes"; then
14977 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
6a30f1c8 14978echo "configure:14979: checking for Intel compiler" >&5
21d1c967 14979if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14980 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14981else
21d1c967
GD
14982
14983 cat > conftest.$ac_ext <<EOF
6a30f1c8 14984#line 14985 "configure"
698dcdb6 14985#include "confdefs.h"
90dd450c
VZ
14986
14987int main() {
14988
21d1c967
GD
14989 #ifndef __INTEL_COMPILER
14990 #error Not icc
14991 #endif
14992
90dd450c 14993; return 0; }
698dcdb6 14994EOF
6a30f1c8 14995if { (eval echo configure:14996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14996 rm -rf conftest*
21d1c967 14997 wx_cv_prog_icc=yes
6232543b 14998else
698dcdb6
VZ
14999 echo "configure: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
90dd450c 15001 rm -rf conftest*
21d1c967
GD
15002 wx_cv_prog_icc=no
15003
6232543b 15004fi
90dd450c 15005rm -f conftest*
21d1c967 15006
698dcdb6
VZ
15007fi
15008
21d1c967
GD
15009echo "$ac_t""$wx_cv_prog_icc" 1>&6
15010 if test "$wx_cv_prog_icc" = "yes"; then
15011 PIC_FLAG="-KPIC"
15012 fi
15013 fi
15014
15015 if test "$wxUSE_SONAME" = "yes" ; then
15016 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15017 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15018 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15019 fi
15020 ;;
15021
15022 *-*-solaris2* )
15023 if test "$GCC" = yes ; then
15024 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15025 else
15026 SHARED_LD="${CXX} -G -o"
15027 PIC_FLAG="-KPIC"
15028 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15029 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15030 fi
15031 ;;
15032
15033 *-*-darwin* )
15034 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15035 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15036 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15037 PIC_FLAG="-dynamic -fPIC"
15038 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15039 SONAME_FLAGS_GL=${SONAME_FLAGS}
15040 ;;
15041
15042 *-*-aix* )
321d2b14
VZ
15043 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15044set dummy makeC++SharedLib; ac_word=$2
15045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 15046echo "configure:15047: checking for $ac_word" >&5
321d2b14
VZ
15047if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049else
15050 if test -n "$AIX_CXX_LD"; then
15051 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15052else
15053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15054 ac_dummy="$PATH"
15055 for ac_dir in $ac_dummy; do
15056 test -z "$ac_dir" && ac_dir=.
15057 if test -f $ac_dir/$ac_word; then
15058 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15059 break
15060 fi
15061 done
15062 IFS="$ac_save_ifs"
15063 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15064fi
15065fi
15066AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15067if test -n "$AIX_CXX_LD"; then
15068 echo "$ac_t""$AIX_CXX_LD" 1>&6
15069else
15070 echo "$ac_t""no" 1>&6
15071fi
15072
15073
15074 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15075 ;;
15076
15077 *-*-cygwin* | *-*-mingw32* )
15078
15079 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15080
15081 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15082 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15083
15084 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15085
15086 if test "$wxUSE_OPENGL" = "yes"; then
15087 WX_ALL_INSTALLED="preinstall_gl"
15088 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15089 else
15090 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15091 fi
15092 ;;
15093
15094 *-*-beos* )
15095 SHARED_LD="${LD} -shared -o"
15096 ;;
15097
15098 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15099 *-*-sunos4* | \
15100 *-*-irix5* | *-*-irix6* | \
15101 *-*-osf* | \
15102 *-*-dgux5* | \
15103 *-*-sysv5* )
15104 ;;
15105
15106 *)
15107 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15108 esac
15109
15110 if test "x$WX_TARGET_LIBRARY" = "x"; then
15111 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15112 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15113 fi
15114
15115 WX_TARGET_LIBRARY_TYPE="so"
15116 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15117fi
10f2d63a 15118
21d1c967
GD
15119if test "$wxUSE_SHARED" = "no"; then
15120
15121 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15122 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15123 fi
15124
15125 if test "$wxUSE_MAC" = 1; then
15126 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15127 fi
15128
15129 if test "$wxUSE_OPENGL" = "yes"; then
15130 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15131 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15132 else
15133 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15134 fi
15135
15136 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15137 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15138
15139 WX_TARGET_LIBRARY_TYPE="a"
15140 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15141fi
1e487827 15142
21d1c967
GD
15143if test "$wxUSE_MAC" = 1; then
15144 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15145 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15146 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15147 # Extract the first word of "Rez", so it can be a program name with args.
15148set dummy Rez; ac_word=$2
15149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 15150echo "configure:15151: checking for $ac_word" >&5
21d1c967 15151if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 15152 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15153else
21d1c967
GD
15154 if test -n "$RESCOMP"; then
15155 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15156else
21d1c967
GD
15157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15158 ac_dummy="$PATH"
15159 for ac_dir in $ac_dummy; do
15160 test -z "$ac_dir" && ac_dir=.
15161 if test -f $ac_dir/$ac_word; then
15162 ac_cv_prog_RESCOMP="Rez"
15163 break
15164 fi
15165 done
15166 IFS="$ac_save_ifs"
15167 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15168fi
b93d0d08 15169fi
21d1c967
GD
15170RESCOMP="$ac_cv_prog_RESCOMP"
15171if test -n "$RESCOMP"; then
15172 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
15173else
15174 echo "$ac_t""no" 1>&6
15175fi
b93d0d08 15176
21d1c967
GD
15177 # Extract the first word of "DeRez", so it can be a program name with args.
15178set dummy DeRez; ac_word=$2
15179echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a30f1c8 15180echo "configure:15181: checking for $ac_word" >&5
21d1c967 15181if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 15182 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15183else
21d1c967
GD
15184 if test -n "$DEREZ"; then
15185 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15186else
21d1c967
GD
15187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15188 ac_dummy="$PATH"
15189 for ac_dir in $ac_dummy; do
15190 test -z "$ac_dir" && ac_dir=.
15191 if test -f $ac_dir/$ac_word; then
15192 ac_cv_prog_DEREZ="DeRez"
15193 break
15194 fi
15195 done
15196 IFS="$ac_save_ifs"
15197 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15198fi
90dd450c 15199fi
21d1c967
GD
15200DEREZ="$ac_cv_prog_DEREZ"
15201if test -n "$DEREZ"; then
15202 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
15203else
15204 echo "$ac_t""no" 1>&6
3a922bb4 15205fi
698dcdb6 15206
21d1c967
GD
15207 MACOSX_BUNDLE="bundle"
15208 if test "$wxUSE_SHARED" = "yes"; then
15209 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15210 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15211 else
15212 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15213 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15214 fi
15215else
15216 if test "$wxUSE_PM" = 1; then
15217 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15218 fi
4f14bcd8 15219fi
10f2d63a 15220
703e0a69 15221
90dd450c 15222echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6a30f1c8 15223echo "configure:15224: checking for ANSI C header files" >&5
90dd450c 15224if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
15225 echo $ac_n "(cached) $ac_c" 1>&6
15226else
15227 cat > conftest.$ac_ext <<EOF
6a30f1c8 15228#line 15229 "configure"
10f2d63a 15229#include "confdefs.h"
90dd450c
VZ
15230#include <stdlib.h>
15231#include <stdarg.h>
15232#include <string.h>
15233#include <float.h>
698dcdb6 15234EOF
90dd450c 15235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 15236{ (eval echo configure:15237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15238if test -z "$ac_err"; then
15239 rm -rf conftest*
15240 ac_cv_header_stdc=yes
10f2d63a 15241else
90dd450c 15242 echo "$ac_err" >&5
698dcdb6 15243 echo "configure: failed program was:" >&5
10f2d63a 15244 cat conftest.$ac_ext >&5
90dd450c
VZ
15245 rm -rf conftest*
15246 ac_cv_header_stdc=no
10f2d63a 15247fi
90dd450c
VZ
15248rm -f conftest*
15249
15250if test $ac_cv_header_stdc = yes; then
15251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15252cat > conftest.$ac_ext <<EOF
6a30f1c8 15253#line 15254 "configure"
90dd450c
VZ
15254#include "confdefs.h"
15255#include <string.h>
15256EOF
15257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15258 egrep "memchr" >/dev/null 2>&1; then
15259 :
15260else
15261 rm -rf conftest*
15262 ac_cv_header_stdc=no
10f2d63a 15263fi
90dd450c 15264rm -f conftest*
10f2d63a 15265
4f14bcd8 15266fi
90dd450c
VZ
15267
15268if test $ac_cv_header_stdc = yes; then
15269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15270cat > conftest.$ac_ext <<EOF
6a30f1c8 15271#line 15272 "configure"
90dd450c
VZ
15272#include "confdefs.h"
15273#include <stdlib.h>
10f2d63a 15274EOF
90dd450c
VZ
15275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15276 egrep "free" >/dev/null 2>&1; then
15277 :
15278else
15279 rm -rf conftest*
15280 ac_cv_header_stdc=no
15281fi
15282rm -f conftest*
10f2d63a 15283
90dd450c 15284fi
698dcdb6 15285
90dd450c
VZ
15286if test $ac_cv_header_stdc = yes; then
15287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15288if test "$cross_compiling" = yes; then
15289 :
4f14bcd8
GD
15290else
15291 cat > conftest.$ac_ext <<EOF
6a30f1c8 15292#line 15293 "configure"
10f2d63a 15293#include "confdefs.h"
90dd450c
VZ
15294#include <ctype.h>
15295#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15296#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15297#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15298int main () { int i; for (i = 0; i < 256; i++)
15299if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15300exit (0); }
15301
698dcdb6 15302EOF
6a30f1c8 15303if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15304then
90dd450c 15305 :
10f2d63a 15306else
698dcdb6
VZ
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
4f14bcd8 15309 rm -fr conftest*
90dd450c 15310 ac_cv_header_stdc=no
10f2d63a 15311fi
4f14bcd8 15312rm -fr conftest*
10f2d63a 15313fi
698dcdb6 15314
4f14bcd8 15315fi
90dd450c 15316fi
10f2d63a 15317
90dd450c
VZ
15318echo "$ac_t""$ac_cv_header_stdc" 1>&6
15319if test $ac_cv_header_stdc = yes; then
15320 cat >> confdefs.h <<\EOF
15321#define STDC_HEADERS 1
15322EOF
698dcdb6 15323
90dd450c 15324fi
9d353d4a 15325
90dd450c 15326echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6a30f1c8 15327echo "configure:15328: checking for mode_t" >&5
90dd450c 15328if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15329 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15330else
15331 cat > conftest.$ac_ext <<EOF
6a30f1c8 15332#line 15333 "configure"
9d353d4a 15333#include "confdefs.h"
90dd450c
VZ
15334#include <sys/types.h>
15335#if STDC_HEADERS
15336#include <stdlib.h>
15337#include <stddef.h>
15338#endif
9d353d4a 15339EOF
90dd450c
VZ
15340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15341 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15342 rm -rf conftest*
15343 ac_cv_type_mode_t=yes
9d353d4a 15344else
90dd450c
VZ
15345 rm -rf conftest*
15346 ac_cv_type_mode_t=no
9d353d4a 15347fi
90dd450c 15348rm -f conftest*
9d353d4a
RR
15349
15350fi
90dd450c
VZ
15351echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15352if test $ac_cv_type_mode_t = no; then
15353 cat >> confdefs.h <<\EOF
15354#define mode_t int
9d353d4a
RR
15355EOF
15356
90dd450c 15357fi
9d353d4a 15358
90dd450c 15359echo $ac_n "checking for off_t""... $ac_c" 1>&6
6a30f1c8 15360echo "configure:15361: checking for off_t" >&5
90dd450c 15361if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15362 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15363else
15364 cat > conftest.$ac_ext <<EOF
6a30f1c8 15365#line 15366 "configure"
10f2d63a 15366#include "confdefs.h"
90dd450c
VZ
15367#include <sys/types.h>
15368#if STDC_HEADERS
15369#include <stdlib.h>
15370#include <stddef.h>
15371#endif
698dcdb6 15372EOF
90dd450c
VZ
15373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15374 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15375 rm -rf conftest*
15376 ac_cv_type_off_t=yes
698dcdb6 15377else
90dd450c
VZ
15378 rm -rf conftest*
15379 ac_cv_type_off_t=no
698dcdb6 15380fi
90dd450c 15381rm -f conftest*
698dcdb6
VZ
15382
15383fi
90dd450c
VZ
15384echo "$ac_t""$ac_cv_type_off_t" 1>&6
15385if test $ac_cv_type_off_t = no; then
15386 cat >> confdefs.h <<\EOF
15387#define off_t long
10f2d63a
VZ
15388EOF
15389
90dd450c 15390fi
10f2d63a 15391
90dd450c 15392echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6a30f1c8 15393echo "configure:15394: checking for pid_t" >&5
90dd450c 15394if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15395 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15396else
15397 cat > conftest.$ac_ext <<EOF
6a30f1c8 15398#line 15399 "configure"
10f2d63a 15399#include "confdefs.h"
90dd450c
VZ
15400#include <sys/types.h>
15401#if STDC_HEADERS
15402#include <stdlib.h>
15403#include <stddef.h>
15404#endif
698dcdb6 15405EOF
90dd450c
VZ
15406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15407 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15408 rm -rf conftest*
15409 ac_cv_type_pid_t=yes
698dcdb6 15410else
90dd450c
VZ
15411 rm -rf conftest*
15412 ac_cv_type_pid_t=no
4f14bcd8 15413fi
90dd450c 15414rm -f conftest*
698dcdb6
VZ
15415
15416fi
90dd450c
VZ
15417echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15418if test $ac_cv_type_pid_t = no; then
15419 cat >> confdefs.h <<\EOF
15420#define pid_t int
10f2d63a
VZ
15421EOF
15422
90dd450c 15423fi
18dbb1f6 15424
90dd450c 15425echo $ac_n "checking for size_t""... $ac_c" 1>&6
6a30f1c8 15426echo "configure:15427: checking for size_t" >&5
90dd450c 15427if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15428 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15429else
15430 cat > conftest.$ac_ext <<EOF
6a30f1c8 15431#line 15432 "configure"
4f14bcd8
GD
15432#include "confdefs.h"
15433#include <sys/types.h>
90dd450c
VZ
15434#if STDC_HEADERS
15435#include <stdlib.h>
15436#include <stddef.h>
4f14bcd8 15437#endif
18dbb1f6 15438EOF
90dd450c
VZ
15439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15440 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15441 rm -rf conftest*
90dd450c 15442 ac_cv_type_size_t=yes
18dbb1f6 15443else
18dbb1f6 15444 rm -rf conftest*
90dd450c 15445 ac_cv_type_size_t=no
18dbb1f6
VZ
15446fi
15447rm -f conftest*
90dd450c 15448
1e487827 15449fi
90dd450c
VZ
15450echo "$ac_t""$ac_cv_type_size_t" 1>&6
15451if test $ac_cv_type_size_t = no; then
15452 cat >> confdefs.h <<\EOF
15453#define size_t unsigned
15454EOF
15455
15456fi
15457
15458echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6a30f1c8 15459echo "configure:15460: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15460if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15461 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15462else
15463 cat > conftest.$ac_ext <<EOF
6a30f1c8 15464#line 15465 "configure"
b3e8d00a 15465#include "confdefs.h"
90dd450c 15466#include <sys/types.h>
b3e8d00a 15467EOF
90dd450c
VZ
15468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15469 egrep "uid_t" >/dev/null 2>&1; then
15470 rm -rf conftest*
15471 ac_cv_type_uid_t=yes
b3e8d00a 15472else
90dd450c
VZ
15473 rm -rf conftest*
15474 ac_cv_type_uid_t=no
b3e8d00a 15475fi
90dd450c 15476rm -f conftest*
b3e8d00a 15477
4f14bcd8
GD
15478fi
15479
90dd450c
VZ
15480echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15481if test $ac_cv_type_uid_t = no; then
4f14bcd8 15482 cat >> confdefs.h <<\EOF
90dd450c
VZ
15483#define uid_t int
15484EOF
15485
15486 cat >> confdefs.h <<\EOF
15487#define gid_t int
b3e8d00a 15488EOF
4f14bcd8 15489
b3e8d00a 15490fi
b3e8d00a
VZ
15491
15492
90dd450c
VZ
15493
15494ac_ext=C
4f14bcd8
GD
15495# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15496ac_cpp='$CXXCPP $CPPFLAGS'
15497ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15498ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15499cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15500
15501echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
6a30f1c8 15502echo "configure:15503: checking if size_t is unsigned int" >&5
90dd450c
VZ
15503if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15505else
15506 cat > conftest.$ac_ext <<EOF
6a30f1c8 15507#line 15508 "configure"
10f2d63a 15508#include "confdefs.h"
90dd450c
VZ
15509#include <stddef.h>
15510int main() {
15511
15512 return 0; }
15513
15514 struct Foo { void foo(size_t); void foo(unsigned int); };
15515
15516 int bar() {
15517
15518; return 0; }
698dcdb6 15519EOF
6a30f1c8 15520if { (eval echo configure:15521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15521 rm -rf conftest*
15522 wx_cv_size_t_is_uint=no
698dcdb6
VZ
15523else
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 rm -rf conftest*
90dd450c
VZ
15527 wx_cv_size_t_is_uint=yes
15528
698dcdb6
VZ
15529fi
15530rm -f conftest*
90dd450c 15531
698dcdb6
VZ
15532fi
15533
90dd450c 15534echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15535
90dd450c 15536if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15537 cat >> confdefs.h <<\EOF
90dd450c 15538#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15539EOF
15540
90dd450c
VZ
15541else
15542 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
6a30f1c8 15543echo "configure:15544: checking if size_t is unsigned long" >&5
90dd450c 15544if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15545 echo $ac_n "(cached) $ac_c" 1>&6
15546else
15547 cat > conftest.$ac_ext <<EOF
6a30f1c8 15548#line 15549 "configure"
10f2d63a 15549#include "confdefs.h"
90dd450c
VZ
15550#include <stddef.h>
15551int main() {
15552
15553 return 0; }
15554
15555 struct Foo { void foo(size_t); void foo(unsigned long); };
15556
15557 int bar() {
15558
15559; return 0; }
698dcdb6 15560EOF
6a30f1c8 15561if { (eval echo configure:15562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15562 rm -rf conftest*
90dd450c 15563 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15564else
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 rm -rf conftest*
90dd450c
VZ
15568 wx_cv_size_t_is_ulong=yes
15569
698dcdb6
VZ
15570fi
15571rm -f conftest*
90dd450c 15572
698dcdb6 15573fi
10f2d63a 15574
90dd450c 15575echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15576
90dd450c
VZ
15577 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15578 cat >> confdefs.h <<\EOF
15579#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15580EOF
15581
15582 fi
90dd450c 15583fi
1e487827 15584
90dd450c 15585ac_ext=c
4f14bcd8
GD
15586# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15587ac_cpp='$CPP $CPPFLAGS'
15588ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15589ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15590cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15591
698dcdb6
VZ
15592
15593
90dd450c 15594echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
6a30f1c8 15595echo "configure:15596: checking for pw_gecos in struct passwd" >&5
90dd450c 15596if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15597 echo $ac_n "(cached) $ac_c" 1>&6
15598else
15599
90dd450c 15600 cat > conftest.$ac_ext <<EOF
6a30f1c8 15601#line 15602 "configure"
4f14bcd8 15602#include "confdefs.h"
90dd450c 15603#include <pwd.h>
4f14bcd8 15604int main() {
f6bcfd97 15605
90dd450c
VZ
15606 char *p;
15607 struct passwd *pw;
15608 p = pw->pw_gecos;
15609
698dcdb6
VZ
15610; return 0; }
15611EOF
6a30f1c8 15612if { (eval echo configure:15613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15613 rm -rf conftest*
15614
90dd450c
VZ
15615 wx_cv_struct_pw_gecos=yes
15616
10f2d63a 15617else
698dcdb6
VZ
15618 echo "configure: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15620 rm -rf conftest*
15621
90dd450c
VZ
15622 wx_cv_struct_pw_gecos=no
15623
15624
4f14bcd8
GD
15625fi
15626rm -f conftest*
90dd450c 15627
c521c494 15628
4f14bcd8 15629fi
c521c494 15630
90dd450c 15631echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15632
90dd450c 15633if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15634 cat >> confdefs.h <<\EOF
90dd450c 15635#define HAVE_PW_GECOS 1
4f14bcd8 15636EOF
c521c494 15637
90dd450c 15638fi
4f14bcd8
GD
15639
15640
d29b553b
VZ
15641WCHAR_OK=0
15642if test "$wx_cv_sizeof_wchar_t" != "0"; then
15643 WCHAR_LINK=
7a30264c
VZ
15644 for ac_func in wcslen
15645do
15646echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 15647echo "configure:15648: checking for $ac_func" >&5
7a30264c 15648if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15649 echo $ac_n "(cached) $ac_c" 1>&6
15650else
7a30264c 15651 cat > conftest.$ac_ext <<EOF
6a30f1c8 15652#line 15653 "configure"
4f14bcd8 15653#include "confdefs.h"
7a30264c
VZ
15654/* System header to define __stub macros and hopefully few prototypes,
15655 which can conflict with char $ac_func(); below. */
15656#include <assert.h>
4f14bcd8
GD
15657/* Override any gcc2 internal prototype to avoid an error. */
15658/* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
7a30264c 15660char $ac_func();
4f14bcd8
GD
15661
15662int main() {
7a30264c
VZ
15663
15664/* The GNU C library defines this for functions which it implements
15665 to always fail with ENOSYS. Some functions are actually named
15666 something starting with __ and the normal name is an alias. */
15667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15668choke me
15669#else
15670$ac_func();
15671#endif
15672
698dcdb6
VZ
15673; return 0; }
15674EOF
6a30f1c8 15675if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15676 rm -rf conftest*
7a30264c 15677 eval "ac_cv_func_$ac_func=yes"
c521c494 15678else
698dcdb6
VZ
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15681 rm -rf conftest*
7a30264c 15682 eval "ac_cv_func_$ac_func=no"
6232543b 15683fi
698dcdb6 15684rm -f conftest*
1e487827 15685fi
7a30264c
VZ
15686
15687if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15688 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15690 cat >> confdefs.h <<EOF
15691#define $ac_tr_func 1
15692EOF
15693
15694 cat >> confdefs.h <<\EOF
4f14bcd8 15695#define HAVE_WCSLEN 1
9d8deca0
VZ
15696EOF
15697
7a30264c
VZ
15698 WCHAR_OK=1
15699
9d8deca0 15700else
4f14bcd8 15701 echo "$ac_t""no" 1>&6
7a30264c
VZ
15702fi
15703done
9d8deca0 15704
7a30264c
VZ
15705
15706 if test "$WCHAR_OK" = 0; then
15707 if test "$TOOLKIT" = "MSW"; then
15708 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
6a30f1c8 15709echo "configure:15710: checking for wcslen in -lmsvcrt" >&5
7a30264c 15710ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15712 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15713else
4f14bcd8 15714 ac_save_LIBS="$LIBS"
7a30264c 15715LIBS="-lmsvcrt $LIBS"
4f14bcd8 15716cat > conftest.$ac_ext <<EOF
6a30f1c8 15717#line 15718 "configure"
10f2d63a 15718#include "confdefs.h"
4f14bcd8
GD
15719/* Override any gcc2 internal prototype to avoid an error. */
15720/* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15722char wcslen();
10f2d63a 15723
698dcdb6 15724int main() {
4f14bcd8 15725wcslen()
698dcdb6
VZ
15726; return 0; }
15727EOF
6a30f1c8 15728if { (eval echo configure:15729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15729 rm -rf conftest*
4f14bcd8 15730 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15731else
698dcdb6
VZ
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
4f14bcd8 15735 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15736fi
698dcdb6 15737rm -f conftest*
4f14bcd8 15738LIBS="$ac_save_LIBS"
703e0a69 15739
1e487827 15740fi
4f14bcd8
GD
15741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15742 echo "$ac_t""yes" 1>&6
15743
7a30264c 15744 cat >> confdefs.h <<\EOF
4f14bcd8 15745#define HAVE_WCSLEN 1
9d8deca0
VZ
15746EOF
15747
7a30264c
VZ
15748 WCHAR_OK=1
15749
4f14bcd8
GD
15750else
15751 echo "$ac_t""no" 1>&6
d29b553b 15752fi
698dcdb6 15753
7a30264c
VZ
15754 else
15755 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6a30f1c8 15756echo "configure:15757: checking for wcslen in -lw" >&5
7a30264c 15757ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15758if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15759 echo $ac_n "(cached) $ac_c" 1>&6
15760else
4f14bcd8 15761 ac_save_LIBS="$LIBS"
7a30264c 15762LIBS="-lw $LIBS"
4f14bcd8 15763cat > conftest.$ac_ext <<EOF
6a30f1c8 15764#line 15765 "configure"
95c8801c 15765#include "confdefs.h"
4f14bcd8
GD
15766/* Override any gcc2 internal prototype to avoid an error. */
15767/* We use char because int might match the return type of a gcc2
15768 builtin and then its argument prototype would still apply. */
15769char wcslen();
95c8801c 15770
4f14bcd8
GD
15771int main() {
15772wcslen()
698dcdb6
VZ
15773; return 0; }
15774EOF
6a30f1c8 15775if { (eval echo configure:15776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15776 rm -rf conftest*
4f14bcd8 15777 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15778else
698dcdb6
VZ
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
4f14bcd8 15782 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15783fi
698dcdb6 15784rm -f conftest*
4f14bcd8 15785LIBS="$ac_save_LIBS"
95c8801c
VS
15786
15787fi
4f14bcd8
GD
15788if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15789 echo "$ac_t""yes" 1>&6
15790
7a30264c 15791 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15792#define HAVE_WCSLEN 1
15793EOF
698dcdb6 15794
7a30264c
VZ
15795 WCHAR_LINK=" -lw"
15796 WCHAR_OK=1
15797
4f14bcd8
GD
15798else
15799 echo "$ac_t""no" 1>&6
15800fi
10f2d63a 15801
7a30264c 15802 fi
d29b553b 15803 fi
4f14bcd8 15804fi
95c8801c 15805
d29b553b
VZ
15806if test "$WCHAR_OK" = 1; then
15807 cat >> confdefs.h <<\EOF
15808#define wxUSE_WCHAR_T 1
15809EOF
10f2d63a 15810
1e487827 15811
d29b553b 15812 for ac_func in wcsrtombs
eb4efbdc 15813do
698dcdb6 15814echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 15815echo "configure:15816: checking for $ac_func" >&5
698dcdb6
VZ
15816if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15817 echo $ac_n "(cached) $ac_c" 1>&6
15818else
15819 cat > conftest.$ac_ext <<EOF
6a30f1c8 15820#line 15821 "configure"
eb4efbdc
VZ
15821#include "confdefs.h"
15822/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15823 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15824#include <assert.h>
15825/* Override any gcc2 internal prototype to avoid an error. */
15826/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15827 builtin and then its argument prototype would still apply. */
15828char $ac_func();
15829
15830int main() {
eb4efbdc
VZ
15831
15832/* The GNU C library defines this for functions which it implements
15833 to always fail with ENOSYS. Some functions are actually named
15834 something starting with __ and the normal name is an alias. */
15835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15836choke me
15837#else
698dcdb6 15838$ac_func();
eb4efbdc
VZ
15839#endif
15840
698dcdb6 15841; return 0; }
eb4efbdc 15842EOF
6a30f1c8 15843if { (eval echo configure:15844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15844 rm -rf conftest*
15845 eval "ac_cv_func_$ac_func=yes"
15846else
15847 echo "configure: failed program was:" >&5
15848 cat conftest.$ac_ext >&5
15849 rm -rf conftest*
15850 eval "ac_cv_func_$ac_func=no"
15851fi
15852rm -f conftest*
15853fi
eb4efbdc 15854
698dcdb6
VZ
15855if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15856 echo "$ac_t""yes" 1>&6
15857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15858 cat >> confdefs.h <<EOF
15859#define $ac_tr_func 1
15860EOF
15861
15862else
15863 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15864fi
15865done
15866
d29b553b 15867else
a1ea5055
GD
15868 if test "$USE_DARWIN" = 1; then
15869 cat >> confdefs.h <<\EOF
15870#define wxUSE_WCHAR_T 1
15871EOF
15872
15873 else
15874 echo "configure: warning: Wide character support is unavailable" 1>&2
15875 fi
d29b553b 15876fi
698dcdb6 15877
4f14bcd8 15878echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6a30f1c8 15879echo "configure:15880: checking for vprintf" >&5
4f14bcd8 15880if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15881 echo $ac_n "(cached) $ac_c" 1>&6
15882else
4f14bcd8 15883 cat > conftest.$ac_ext <<EOF
6a30f1c8 15884#line 15885 "configure"
f6bcfd97 15885#include "confdefs.h"
4f14bcd8
GD
15886/* System header to define __stub macros and hopefully few prototypes,
15887 which can conflict with char vprintf(); below. */
15888#include <assert.h>
15889/* Override any gcc2 internal prototype to avoid an error. */
15890/* We use char because int might match the return type of a gcc2
15891 builtin and then its argument prototype would still apply. */
15892char vprintf();
15893
698dcdb6 15894int main() {
f6bcfd97 15895
4f14bcd8
GD
15896/* The GNU C library defines this for functions which it implements
15897 to always fail with ENOSYS. Some functions are actually named
15898 something starting with __ and the normal name is an alias. */
15899#if defined (__stub_vprintf) || defined (__stub___vprintf)
15900choke me
15901#else
15902vprintf();
15903#endif
f6bcfd97 15904
698dcdb6
VZ
15905; return 0; }
15906EOF
6a30f1c8 15907if { (eval echo configure:15908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15908 rm -rf conftest*
4f14bcd8 15909 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15910else
698dcdb6
VZ
15911 echo "configure: failed program was:" >&5
15912 cat conftest.$ac_ext >&5
15913 rm -rf conftest*
4f14bcd8 15914 eval "ac_cv_func_vprintf=no"
6232543b 15915fi
698dcdb6 15916rm -f conftest*
1e487827 15917fi
698dcdb6 15918
4f14bcd8
GD
15919if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15920 echo "$ac_t""yes" 1>&6
15921 cat >> confdefs.h <<\EOF
15922#define HAVE_VPRINTF 1
f6bcfd97
BP
15923EOF
15924
4f14bcd8
GD
15925else
15926 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15927fi
15928
4f14bcd8
GD
15929if test "$ac_cv_func_vprintf" != yes; then
15930echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6a30f1c8 15931echo "configure:15932: checking for _doprnt" >&5
4f14bcd8 15932if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15933 echo $ac_n "(cached) $ac_c" 1>&6
15934else
15935 cat > conftest.$ac_ext <<EOF
6a30f1c8 15936#line 15937 "configure"
10f2d63a
VZ
15937#include "confdefs.h"
15938/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15939 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15940#include <assert.h>
15941/* Override any gcc2 internal prototype to avoid an error. */
15942/* We use char because int might match the return type of a gcc2
698dcdb6 15943 builtin and then its argument prototype would still apply. */
4f14bcd8 15944char _doprnt();
698dcdb6
VZ
15945
15946int main() {
10f2d63a
VZ
15947
15948/* The GNU C library defines this for functions which it implements
15949 to always fail with ENOSYS. Some functions are actually named
15950 something starting with __ and the normal name is an alias. */
4f14bcd8 15951#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15952choke me
15953#else
4f14bcd8 15954_doprnt();
10f2d63a
VZ
15955#endif
15956
698dcdb6 15957; return 0; }
10f2d63a 15958EOF
6a30f1c8 15959if { (eval echo configure:15960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15960 rm -rf conftest*
4f14bcd8 15961 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15962else
15963 echo "configure: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15965 rm -rf conftest*
4f14bcd8 15966 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15967fi
15968rm -f conftest*
15969fi
270a909e 15970
4f14bcd8 15971if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15972 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15973 cat >> confdefs.h <<\EOF
15974#define HAVE_DOPRNT 1
698dcdb6 15975EOF
4f14bcd8 15976
698dcdb6
VZ
15977else
15978 echo "$ac_t""no" 1>&6
270a909e 15979fi
270a909e 15980
4f14bcd8 15981fi
1e487827 15982
52e8b690 15983
52e8b690 15984
52e8b690 15985
52e8b690 15986
52e8b690 15987
4f14bcd8 15988echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6a30f1c8 15989echo "configure:15990: checking for vsnprintf" >&5
4f14bcd8 15990if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15991 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15992else
4f14bcd8 15993
af15babd 15994 cat > conftest.$ac_ext <<EOF
6a30f1c8 15995#line 15996 "configure"
c63c7106 15996#include "confdefs.h"
698dcdb6 15997
4f14bcd8
GD
15998 #include <stdio.h>
15999 #include <stdarg.h>
16000
af15babd
VZ
16001int main() {
16002
4f14bcd8
GD
16003 int wx_test_vsnprintf(const char *, ...);
16004
16005 wx_test_vsnprintf("%s");
16006 return 0;
16007 }
16008
16009 int wx_test_vsnprintf(const char *fmt, ...)
16010 {
16011 char *s;
16012
16013 va_list argp;
16014 va_start(argp, fmt);
16015 vsnprintf(s, 42, fmt, argp);
16016 va_end(argp);
16017
af15babd
VZ
16018; return 0; }
16019EOF
6a30f1c8 16020if { (eval echo configure:16021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16021 rm -rf conftest*
16022
4f14bcd8
GD
16023 wx_cv_func_vsnprintf=yes
16024
af15babd
VZ
16025else
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 rm -rf conftest*
16029
4f14bcd8 16030 cat > conftest.$ac_ext <<EOF
6a30f1c8 16031#line 16032 "configure"
af15babd 16032#include "confdefs.h"
af15babd 16033
4f14bcd8
GD
16034 #include <stdio.h>
16035 #include <stdarg.h>
16036
af15babd
VZ
16037int main() {
16038
4f14bcd8
GD
16039 int wx_test_vsnprintf(const char *, ...);
16040
16041 wx_test_vsnprintf("%s");
16042 return 0;
16043 }
16044
16045 int wx_test_vsnprintf(const char *fmt, ...)
16046 {
16047 char *s;
af15babd 16048
4f14bcd8
GD
16049 va_list argp;
16050 va_start(argp, fmt);
16051 _vsnprintf(s, 42, fmt, argp);
16052 va_end(argp);
16053
af15babd
VZ
16054; return 0; }
16055EOF
6a30f1c8 16056if { (eval echo configure:16057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16057 rm -rf conftest*
4f14bcd8
GD
16058
16059 wx_cv_func_vsnprintf=yes
16060
af15babd
VZ
16061else
16062 echo "configure: failed program was:" >&5
16063 cat conftest.$ac_ext >&5
16064 rm -rf conftest*
4f14bcd8
GD
16065
16066 wx_cv_func_vsnprintf=no
16067
af15babd
VZ
16068fi
16069rm -f conftest*
4f14bcd8 16070
af15babd 16071fi
4f14bcd8 16072rm -f conftest*
af15babd 16073
af15babd 16074fi
af15babd 16075
4f14bcd8 16076echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 16077
4f14bcd8
GD
16078if test "$wx_cv_func_vsnprintf" = yes; then
16079 cat >> confdefs.h <<\EOF
16080#define HAVE_VSNPRINTF 1
16081EOF
16082
16083else
f9bc1684 16084 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
16085fi
16086
4f14bcd8 16087echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
6a30f1c8 16088echo "configure:16089: checking for vsscanf" >&5
4f14bcd8 16089if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
16090 echo $ac_n "(cached) $ac_c" 1>&6
16091else
4f14bcd8 16092
af15babd 16093 cat > conftest.$ac_ext <<EOF
6a30f1c8 16094#line 16095 "configure"
af15babd 16095#include "confdefs.h"
af15babd 16096
4f14bcd8
GD
16097 #include <stdio.h>
16098 #include <stdarg.h>
16099
af15babd
VZ
16100int main() {
16101
4f14bcd8
GD
16102 int wx_test_vsscanf(const char *, ...);
16103
16104 wx_test_vsscanf("%d");
16105 return 0;
16106 }
af15babd 16107
4f14bcd8
GD
16108 int wx_test_vsscanf(const char *fmt, ...)
16109 {
16110 va_list argp;
16111 va_start(argp, fmt);
16112 vsscanf("42", fmt, argp);
16113 va_end(argp);
16114
af15babd
VZ
16115; return 0; }
16116EOF
6a30f1c8 16117if { (eval echo configure:16118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16118 rm -rf conftest*
4f14bcd8
GD
16119
16120 wx_cv_func_vsscanf=yes
16121
af15babd
VZ
16122else
16123 echo "configure: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16125 rm -rf conftest*
4f14bcd8
GD
16126
16127 wx_cv_func_vsscanf=no
16128
af15babd
VZ
16129fi
16130rm -f conftest*
4f14bcd8 16131
af15babd
VZ
16132fi
16133
4f14bcd8
GD
16134echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16135
16136if test "$wx_cv_func_vsscanf" = yes; then
16137 cat >> confdefs.h <<\EOF
16138#define HAVE_VSSCANF 1
af15babd 16139EOF
4f14bcd8 16140
af15babd 16141fi
af15babd 16142
4f14bcd8 16143if test "$TOOLKIT" != "MSW"; then
af15babd 16144
4f14bcd8
GD
16145
16146
16147ac_ext=C
16148# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16149ac_cpp='$CXXCPP $CPPFLAGS'
16150ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16151ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16152cross_compiling=$ac_cv_prog_cxx_cross
16153
b040e242
VS
16154
16155
16156 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16157if test "${with_libiconv_prefix+set}" = set; then
16158 withval="$with_libiconv_prefix"
16159
16160 for dir in `echo "$withval" | tr : ' '`; do
16161 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16162 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16163 done
16164
16165fi
16166
16167
16168 echo $ac_n "checking for iconv""... $ac_c" 1>&6
6a30f1c8 16169echo "configure:16170: checking for iconv" >&5
b040e242 16170if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
16171 echo $ac_n "(cached) $ac_c" 1>&6
16172else
4f14bcd8 16173
b040e242
VS
16174 am_cv_func_iconv="no, consider installing GNU libiconv"
16175 am_cv_lib_iconv=no
4f14bcd8 16176 cat > conftest.$ac_ext <<EOF
6a30f1c8 16177#line 16178 "configure"
af15babd 16178#include "confdefs.h"
b040e242 16179#include <stdlib.h>
4f14bcd8 16180#include <iconv.h>
af15babd 16181int main() {
b040e242
VS
16182iconv_t cd = iconv_open("","");
16183 iconv(cd,NULL,NULL,NULL,NULL);
16184 iconv_close(cd);
af15babd
VZ
16185; return 0; }
16186EOF
6a30f1c8 16187if { (eval echo configure:16188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16188 rm -rf conftest*
b040e242 16189 am_cv_func_iconv=yes
af15babd
VZ
16190else
16191 echo "configure: failed program was:" >&5
16192 cat conftest.$ac_ext >&5
b040e242
VS
16193fi
16194rm -f conftest*
16195 if test "$am_cv_func_iconv" != yes; then
16196 am_save_LIBS="$LIBS"
16197 LIBS="$LIBS -liconv"
16198 cat > conftest.$ac_ext <<EOF
6a30f1c8 16199#line 16200 "configure"
b040e242
VS
16200#include "confdefs.h"
16201#include <stdlib.h>
16202#include <iconv.h>
16203int main() {
16204iconv_t cd = iconv_open("","");
16205 iconv(cd,NULL,NULL,NULL,NULL);
16206 iconv_close(cd);
16207; return 0; }
16208EOF
6a30f1c8 16209if { (eval echo configure:16210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16210 rm -rf conftest*
b040e242
VS
16211 am_cv_lib_iconv=yes
16212 am_cv_func_iconv=yes
16213else
16214 echo "configure: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
af15babd
VZ
16216fi
16217rm -f conftest*
b040e242
VS
16218 LIBS="$am_save_LIBS"
16219 fi
16220
16221fi
16222
16223echo "$ac_t""$am_cv_func_iconv" 1>&6
16224 if test "$am_cv_func_iconv" = yes; then
16225 cat >> confdefs.h <<\EOF
16226#define HAVE_ICONV 1
16227EOF
16228
b7043674 16229 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
6a30f1c8 16230echo "configure:16231: checking if iconv needs const" >&5
b7043674 16231if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16232 echo $ac_n "(cached) $ac_c" 1>&6
16233else
b7043674 16234 cat > conftest.$ac_ext <<EOF
6a30f1c8 16235#line 16236 "configure"
b040e242
VS
16236#include "confdefs.h"
16237
16238#include <stdlib.h>
16239#include <iconv.h>
16240extern
16241#ifdef __cplusplus
16242"C"
16243#endif
16244#if defined(__STDC__) || defined(__cplusplus)
16245size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16246#else
16247size_t iconv();
16248#endif
b7043674 16249
b040e242 16250int main() {
af15babd 16251
b040e242
VS
16252; return 0; }
16253EOF
6a30f1c8 16254if { (eval echo configure:16255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16255 rm -rf conftest*
b7043674 16256 wx_cv_func_iconv_const="no"
b040e242
VS
16257else
16258 echo "configure: failed program was:" >&5
16259 cat conftest.$ac_ext >&5
16260 rm -rf conftest*
b7043674
VZ
16261 wx_cv_func_iconv_const="yes"
16262
b040e242
VS
16263fi
16264rm -f conftest*
b7043674 16265
af15babd 16266fi
af15babd 16267
b7043674
VZ
16268echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16269
16270 iconv_const=
1c405bb5 16271 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16272 iconv_const="const"
16273 fi
16274
b040e242 16275 cat >> confdefs.h <<EOF
b7043674 16276#define ICONV_CONST $iconv_const
b040e242
VS
16277EOF
16278
16279 fi
16280 LIBICONV=
16281 if test "$am_cv_lib_iconv" = yes; then
16282 LIBICONV="-liconv"
16283 fi
16284
16285
16286LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16287ac_ext=c
16288# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16289ac_cpp='$CPP $CPPFLAGS'
16290ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16291ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16292cross_compiling=$ac_cv_prog_cc_cross
af15babd 16293
af15babd 16294
4f14bcd8
GD
16295if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16296 for ac_func in sigaction
af15babd
VZ
16297do
16298echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16299echo "configure:16300: checking for $ac_func" >&5
af15babd
VZ
16300if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16301 echo $ac_n "(cached) $ac_c" 1>&6
16302else
16303 cat > conftest.$ac_ext <<EOF
6a30f1c8 16304#line 16305 "configure"
af15babd
VZ
16305#include "confdefs.h"
16306/* System header to define __stub macros and hopefully few prototypes,
16307 which can conflict with char $ac_func(); below. */
16308#include <assert.h>
16309/* Override any gcc2 internal prototype to avoid an error. */
16310/* We use char because int might match the return type of a gcc2
16311 builtin and then its argument prototype would still apply. */
16312char $ac_func();
16313
16314int main() {
16315
16316/* The GNU C library defines this for functions which it implements
16317 to always fail with ENOSYS. Some functions are actually named
16318 something starting with __ and the normal name is an alias. */
16319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16320choke me
16321#else
16322$ac_func();
16323#endif
16324
16325; return 0; }
16326EOF
6a30f1c8 16327if { (eval echo configure:16328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16328 rm -rf conftest*
16329 eval "ac_cv_func_$ac_func=yes"
16330else
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 rm -rf conftest*
16334 eval "ac_cv_func_$ac_func=no"
16335fi
16336rm -f conftest*
16337fi
16338
16339if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16340 echo "$ac_t""yes" 1>&6
16341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16342 cat >> confdefs.h <<EOF
16343#define $ac_tr_func 1
16344EOF
4f14bcd8 16345
af15babd
VZ
16346else
16347 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16348fi
16349done
16350
16351
16352 if test "$ac_cv_func_sigaction" = "no"; then
16353 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16354 wxUSE_ON_FATAL_EXCEPTION=no
16355 fi
16356
16357 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16358
16359 ac_ext=C
16360# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16361ac_cpp='$CXXCPP $CPPFLAGS'
16362ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16363ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16364cross_compiling=$ac_cv_prog_cxx_cross
16365
16366
16367 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
6a30f1c8 16368echo "configure:16369: checking for sa_handler type" >&5
4f14bcd8 16369if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16370 echo $ac_n "(cached) $ac_c" 1>&6
16371else
4f14bcd8
GD
16372
16373 cat > conftest.$ac_ext <<EOF
6a30f1c8 16374#line 16375 "configure"
af15babd 16375#include "confdefs.h"
4f14bcd8 16376#include <signal.h>
af15babd 16377int main() {
4f14bcd8
GD
16378
16379 extern void testSigHandler(int);
16380
16381 struct sigaction sa;
16382 sa.sa_handler = testSigHandler;
16383
af15babd
VZ
16384; return 0; }
16385EOF
6a30f1c8 16386if { (eval echo configure:16387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16387 rm -rf conftest*
4f14bcd8
GD
16388
16389 wx_cv_type_sa_handler=int
16390
af15babd
VZ
16391else
16392 echo "configure: failed program was:" >&5
16393 cat conftest.$ac_ext >&5
16394 rm -rf conftest*
4f14bcd8
GD
16395
16396 wx_cv_type_sa_handler=void
16397
af15babd
VZ
16398fi
16399rm -f conftest*
4f14bcd8
GD
16400
16401fi
16402
16403echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16404
16405 ac_ext=c
16406# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16407ac_cpp='$CPP $CPPFLAGS'
16408ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16409ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16410cross_compiling=$ac_cv_prog_cc_cross
af15babd 16411
4f14bcd8
GD
16412
16413 cat >> confdefs.h <<EOF
16414#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16415EOF
16416
4f14bcd8
GD
16417 fi
16418fi
af15babd 16419
4f14bcd8 16420for ac_func in vfork
af15babd
VZ
16421do
16422echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16423echo "configure:16424: checking for $ac_func" >&5
af15babd
VZ
16424if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16425 echo $ac_n "(cached) $ac_c" 1>&6
16426else
16427 cat > conftest.$ac_ext <<EOF
6a30f1c8 16428#line 16429 "configure"
af15babd
VZ
16429#include "confdefs.h"
16430/* System header to define __stub macros and hopefully few prototypes,
16431 which can conflict with char $ac_func(); below. */
16432#include <assert.h>
16433/* Override any gcc2 internal prototype to avoid an error. */
16434/* We use char because int might match the return type of a gcc2
16435 builtin and then its argument prototype would still apply. */
16436char $ac_func();
16437
16438int main() {
16439
16440/* The GNU C library defines this for functions which it implements
16441 to always fail with ENOSYS. Some functions are actually named
16442 something starting with __ and the normal name is an alias. */
16443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16444choke me
16445#else
16446$ac_func();
16447#endif
16448
16449; return 0; }
16450EOF
6a30f1c8 16451if { (eval echo configure:16452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16452 rm -rf conftest*
16453 eval "ac_cv_func_$ac_func=yes"
16454else
16455 echo "configure: failed program was:" >&5
16456 cat conftest.$ac_ext >&5
16457 rm -rf conftest*
16458 eval "ac_cv_func_$ac_func=no"
16459fi
16460rm -f conftest*
16461fi
16462
16463if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16464 echo "$ac_t""yes" 1>&6
16465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16466 cat >> confdefs.h <<EOF
16467#define $ac_tr_func 1
16468EOF
4f14bcd8 16469
af15babd
VZ
16470else
16471 echo "$ac_t""no" 1>&6
af15babd
VZ
16472fi
16473done
16474
af15babd 16475
ade35f11
VZ
16476for ac_func in mkstemp mktemp
16477do
16478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16479echo "configure:16480: checking for $ac_func" >&5
ade35f11
VZ
16480if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16482else
16483 cat > conftest.$ac_ext <<EOF
6a30f1c8 16484#line 16485 "configure"
ade35f11
VZ
16485#include "confdefs.h"
16486/* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func(); below. */
16488#include <assert.h>
16489/* Override any gcc2 internal prototype to avoid an error. */
16490/* We use char because int might match the return type of a gcc2
16491 builtin and then its argument prototype would still apply. */
16492char $ac_func();
16493
16494int main() {
16495
16496/* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
16499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16500choke me
16501#else
16502$ac_func();
16503#endif
16504
16505; return 0; }
16506EOF
6a30f1c8 16507if { (eval echo configure:16508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16508 rm -rf conftest*
16509 eval "ac_cv_func_$ac_func=yes"
16510else
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 eval "ac_cv_func_$ac_func=no"
16515fi
16516rm -f conftest*
16517fi
16518
16519if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16520 echo "$ac_t""yes" 1>&6
16521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16522 cat >> confdefs.h <<EOF
16523#define $ac_tr_func 1
16524EOF
16525 break
16526else
16527 echo "$ac_t""no" 1>&6
16528fi
16529done
16530
16531
4f14bcd8 16532echo $ac_n "checking for statfs""... $ac_c" 1>&6
6a30f1c8 16533echo "configure:16534: checking for statfs" >&5
4f14bcd8
GD
16534if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16536else
16537 cat > conftest.$ac_ext <<EOF
6a30f1c8 16538#line 16539 "configure"
4f14bcd8
GD
16539#include "confdefs.h"
16540
16541 #if defined(__BSD__)
16542 #include <sys/param.h>
16543 #include <sys/mount.h>
16544 #else
16545 #include <sys/vfs.h>
16546 #endif
16547
16548int main() {
16549
16550 long l;
16551 struct statfs fs;
16552 statfs("/", &fs);
16553 l = fs.f_bsize;
16554 l += fs.f_blocks;
16555 l += fs.f_bavail;
16556
16557; return 0; }
16558EOF
6a30f1c8 16559if { (eval echo configure:16560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16560 rm -rf conftest*
16561
16562 wx_cv_func_statfs=yes
16563
16564else
16565 echo "configure: failed program was:" >&5
16566 cat conftest.$ac_ext >&5
16567 rm -rf conftest*
16568
16569 wx_cv_func_statfs=no
af15babd
VZ
16570
16571
16572fi
4f14bcd8 16573rm -f conftest*
af15babd
VZ
16574
16575fi
16576
4f14bcd8
GD
16577echo "$ac_t""$wx_cv_func_statfs" 1>&6
16578
16579if test "$wx_cv_func_statfs" = "yes"; then
16580 cat >> confdefs.h <<\EOF
16581#define HAVE_STATFS 1
16582EOF
16583
16584else
16585 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
6a30f1c8 16586echo "configure:16587: checking for statvfs" >&5
4f14bcd8 16587if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16588 echo $ac_n "(cached) $ac_c" 1>&6
16589else
16590 cat > conftest.$ac_ext <<EOF
6a30f1c8 16591#line 16592 "configure"
af15babd 16592#include "confdefs.h"
af15babd 16593
4f14bcd8
GD
16594 #include <sys/statvfs.h>
16595
af15babd
VZ
16596int main() {
16597
4f14bcd8
GD
16598 long l;
16599 struct statvfs fs;
16600 statvfs("/", &fs);
16601 l = fs.f_bsize;
16602 l += fs.f_blocks;
16603 l += fs.f_bavail;
16604
af15babd
VZ
16605; return 0; }
16606EOF
6a30f1c8 16607if { (eval echo configure:16608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16608 rm -rf conftest*
4f14bcd8
GD
16609
16610 wx_cv_func_statvfs=yes
16611
af15babd
VZ
16612else
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16615 rm -rf conftest*
4f14bcd8
GD
16616
16617 wx_cv_func_statvfs=no
16618
16619
af15babd
VZ
16620fi
16621rm -f conftest*
4f14bcd8 16622
af15babd
VZ
16623fi
16624
4f14bcd8 16625echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16626
4f14bcd8
GD
16627 if test "$wx_cv_func_statvfs" = "yes"; then
16628 cat >> confdefs.h <<\EOF
16629#define HAVE_STATVFS 1
16630EOF
af15babd 16631
4f14bcd8
GD
16632 else
16633 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16634 fi
16635fi
af15babd 16636
4f14bcd8
GD
16637if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16638 for ac_func in fcntl flock
af15babd
VZ
16639do
16640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16641echo "configure:16642: checking for $ac_func" >&5
af15babd
VZ
16642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16643 echo $ac_n "(cached) $ac_c" 1>&6
16644else
16645 cat > conftest.$ac_ext <<EOF
6a30f1c8 16646#line 16647 "configure"
af15babd
VZ
16647#include "confdefs.h"
16648/* System header to define __stub macros and hopefully few prototypes,
16649 which can conflict with char $ac_func(); below. */
16650#include <assert.h>
16651/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16652/* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16654char $ac_func();
16655
16656int main() {
16657
16658/* The GNU C library defines this for functions which it implements
16659 to always fail with ENOSYS. Some functions are actually named
16660 something starting with __ and the normal name is an alias. */
16661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16662choke me
16663#else
16664$ac_func();
16665#endif
16666
16667; return 0; }
16668EOF
6a30f1c8 16669if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16670 rm -rf conftest*
16671 eval "ac_cv_func_$ac_func=yes"
16672else
16673 echo "configure: failed program was:" >&5
16674 cat conftest.$ac_ext >&5
16675 rm -rf conftest*
16676 eval "ac_cv_func_$ac_func=no"
16677fi
16678rm -f conftest*
16679fi
16680
16681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16682 echo "$ac_t""yes" 1>&6
16683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16684 cat >> confdefs.h <<EOF
16685#define $ac_tr_func 1
16686EOF
4f14bcd8 16687 break
af15babd
VZ
16688else
16689 echo "$ac_t""no" 1>&6
16690fi
16691done
16692
16693
4f14bcd8
GD
16694 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16695 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16696 wxUSE_SNGLINST_CHECKER=no
16697 fi
16698fi
af15babd 16699
4f14bcd8 16700for ac_func in timegm
af15babd
VZ
16701do
16702echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16703echo "configure:16704: checking for $ac_func" >&5
af15babd
VZ
16704if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16705 echo $ac_n "(cached) $ac_c" 1>&6
16706else
16707 cat > conftest.$ac_ext <<EOF
6a30f1c8 16708#line 16709 "configure"
af15babd
VZ
16709#include "confdefs.h"
16710/* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func(); below. */
16712#include <assert.h>
16713/* Override any gcc2 internal prototype to avoid an error. */
16714/* We use char because int might match the return type of a gcc2
16715 builtin and then its argument prototype would still apply. */
16716char $ac_func();
16717
698dcdb6 16718int main() {
698dcdb6 16719
af15babd
VZ
16720/* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16724choke me
16725#else
16726$ac_func();
16727#endif
16728
698dcdb6
VZ
16729; return 0; }
16730EOF
6a30f1c8 16731if { (eval echo configure:16732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16732 rm -rf conftest*
af15babd 16733 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16734else
16735 echo "configure: failed program was:" >&5
16736 cat conftest.$ac_ext >&5
16737 rm -rf conftest*
af15babd 16738 eval "ac_cv_func_$ac_func=no"
1e487827 16739fi
9952adac 16740rm -f conftest*
af15babd 16741fi
703e0a69 16742
af15babd
VZ
16743if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16744 echo "$ac_t""yes" 1>&6
16745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16746 cat >> confdefs.h <<EOF
16747#define $ac_tr_func 1
16748EOF
16749
16750else
16751 echo "$ac_t""no" 1>&6
af15babd
VZ
16752fi
16753done
16754
16755
4f14bcd8 16756for ac_func in putenv setenv
10f2d63a 16757do
698dcdb6 16758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16759echo "configure:16760: checking for $ac_func" >&5
698dcdb6
VZ
16760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16761 echo $ac_n "(cached) $ac_c" 1>&6
16762else
16763 cat > conftest.$ac_ext <<EOF
6a30f1c8 16764#line 16765 "configure"
af15babd
VZ
16765#include "confdefs.h"
16766/* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char $ac_func(); below. */
16768#include <assert.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
16771 builtin and then its argument prototype would still apply. */
16772char $ac_func();
16773
16774int main() {
16775
16776/* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16780choke me
16781#else
16782$ac_func();
16783#endif
16784
16785; return 0; }
16786EOF
6a30f1c8 16787if { (eval echo configure:16788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16788 rm -rf conftest*
16789 eval "ac_cv_func_$ac_func=yes"
16790else
16791 echo "configure: failed program was:" >&5
16792 cat conftest.$ac_ext >&5
16793 rm -rf conftest*
16794 eval "ac_cv_func_$ac_func=no"
16795fi
16796rm -f conftest*
16797fi
16798
16799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16800 echo "$ac_t""yes" 1>&6
16801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16802 cat >> confdefs.h <<EOF
16803#define $ac_tr_func 1
16804EOF
4f14bcd8 16805 break
af15babd
VZ
16806else
16807 echo "$ac_t""no" 1>&6
16808fi
af15babd
VZ
16809done
16810
16811
4f14bcd8
GD
16812HAVE_SOME_SLEEP_FUNC=0
16813if test "$USE_BEOS" = 1; then
16814 cat >> confdefs.h <<\EOF
16815#define HAVE_SLEEP 1
af15babd
VZ
16816EOF
16817
4f14bcd8 16818 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16819fi
16820
4f14bcd8
GD
16821if test "$USE_DARWIN" = 1; then
16822 cat >> confdefs.h <<\EOF
16823#define HAVE_USLEEP 1
af15babd 16824EOF
10f2d63a 16825
4f14bcd8 16826 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16827fi
16828
4f14bcd8
GD
16829if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16830 POSIX4_LINK=
16831 for ac_func in nanosleep
16832do
16833echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16834echo "configure:16835: checking for $ac_func" >&5
4f14bcd8 16835if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16836 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16837else
4f14bcd8 16838 cat > conftest.$ac_ext <<EOF
6a30f1c8 16839#line 16840 "configure"
10f2d63a 16840#include "confdefs.h"
4f14bcd8
GD
16841/* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func(); below. */
16843#include <assert.h>
10f2d63a
VZ
16844/* Override any gcc2 internal prototype to avoid an error. */
16845/* We use char because int might match the return type of a gcc2
698dcdb6 16846 builtin and then its argument prototype would still apply. */
4f14bcd8 16847char $ac_func();
698dcdb6
VZ
16848
16849int main() {
4f14bcd8
GD
16850
16851/* The GNU C library defines this for functions which it implements
16852 to always fail with ENOSYS. Some functions are actually named
16853 something starting with __ and the normal name is an alias. */
16854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16855choke me
16856#else
16857$ac_func();
16858#endif
16859
698dcdb6
VZ
16860; return 0; }
16861EOF
6a30f1c8 16862if { (eval echo configure:16863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16863 rm -rf conftest*
4f14bcd8 16864 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16865else
16866 echo "configure: failed program was:" >&5
16867 cat conftest.$ac_ext >&5
16868 rm -rf conftest*
4f14bcd8 16869 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16870fi
16871rm -f conftest*
698dcdb6 16872fi
4f14bcd8
GD
16873
16874if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16875 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16877 cat >> confdefs.h <<EOF
16878#define $ac_tr_func 1
16879EOF
16880 cat >> confdefs.h <<\EOF
16881#define HAVE_NANOSLEEP 1
16882EOF
16883
10f2d63a 16884else
698dcdb6 16885 echo "$ac_t""no" 1>&6
4f14bcd8 16886echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6a30f1c8 16887echo "configure:16888: checking for nanosleep in -lposix4" >&5
4f14bcd8 16888ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16890 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16891else
698dcdb6 16892 ac_save_LIBS="$LIBS"
4f14bcd8 16893LIBS="-lposix4 $LIBS"
698dcdb6 16894cat > conftest.$ac_ext <<EOF
6a30f1c8 16895#line 16896 "configure"
10f2d63a
VZ
16896#include "confdefs.h"
16897/* Override any gcc2 internal prototype to avoid an error. */
16898/* We use char because int might match the return type of a gcc2
698dcdb6 16899 builtin and then its argument prototype would still apply. */
4f14bcd8 16900char nanosleep();
698dcdb6
VZ
16901
16902int main() {
4f14bcd8 16903nanosleep()
698dcdb6
VZ
16904; return 0; }
16905EOF
6a30f1c8 16906if { (eval echo configure:16907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16907 rm -rf conftest*
16908 eval "ac_cv_lib_$ac_lib_var=yes"
16909else
16910 echo "configure: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 rm -rf conftest*
16913 eval "ac_cv_lib_$ac_lib_var=no"
16914fi
16915rm -f conftest*
16916LIBS="$ac_save_LIBS"
10f2d63a 16917
698dcdb6
VZ
16918fi
16919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16920 echo "$ac_t""yes" 1>&6
16921
4f14bcd8
GD
16922 cat >> confdefs.h <<\EOF
16923#define HAVE_NANOSLEEP 1
16924EOF
16925
3d63bc3a 16926 POSIX4_LINK=" -lposix4"
4f14bcd8 16927
10f2d63a 16928else
698dcdb6 16929 echo "$ac_t""no" 1>&6
10f2d63a 16930
4f14bcd8
GD
16931 for ac_func in usleep
16932do
16933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 16934echo "configure:16935: checking for $ac_func" >&5
4f14bcd8 16935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16936 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16937else
698dcdb6 16938 cat > conftest.$ac_ext <<EOF
6a30f1c8 16939#line 16940 "configure"
10f2d63a 16940#include "confdefs.h"
4f14bcd8
GD
16941/* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func(); below. */
16943#include <assert.h>
16944/* Override any gcc2 internal prototype to avoid an error. */
16945/* We use char because int might match the return type of a gcc2
16946 builtin and then its argument prototype would still apply. */
16947char $ac_func();
16948
16949int main() {
16950
16951/* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16955choke me
16956#else
16957$ac_func();
16958#endif
16959
16960; return 0; }
698dcdb6 16961EOF
6a30f1c8 16962if { (eval echo configure:16963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16963 rm -rf conftest*
4f14bcd8 16964 eval "ac_cv_func_$ac_func=yes"
1e487827 16965else
698dcdb6 16966 echo "configure: failed program was:" >&5
10f2d63a 16967 cat conftest.$ac_ext >&5
698dcdb6 16968 rm -rf conftest*
4f14bcd8 16969 eval "ac_cv_func_$ac_func=no"
10f2d63a 16970fi
698dcdb6 16971rm -f conftest*
10f2d63a 16972fi
4f14bcd8
GD
16973
16974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16975 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16977 cat >> confdefs.h <<EOF
16978#define $ac_tr_func 1
16979EOF
16980 cat >> confdefs.h <<\EOF
16981#define HAVE_USLEEP 1
16982EOF
16983
698dcdb6
VZ
16984else
16985 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16986echo "configure: warning: wxSleep() function will not work" 1>&2
16987
10f2d63a 16988fi
4f14bcd8 16989done
10f2d63a 16990
4f14bcd8 16991
698dcdb6 16992
6232543b 16993fi
10f2d63a 16994
698dcdb6 16995
4f14bcd8 16996
1e487827 16997fi
4f14bcd8 16998done
703e0a69 16999
10f2d63a
VZ
17000fi
17001
4f14bcd8 17002for ac_func in uname gethostname
70846f0a 17003do
698dcdb6 17004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 17005echo "configure:17006: checking for $ac_func" >&5
698dcdb6
VZ
17006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17007 echo $ac_n "(cached) $ac_c" 1>&6
17008else
17009 cat > conftest.$ac_ext <<EOF
6a30f1c8 17010#line 17011 "configure"
70846f0a
VZ
17011#include "confdefs.h"
17012/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17013 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17014#include <assert.h>
17015/* Override any gcc2 internal prototype to avoid an error. */
17016/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17017 builtin and then its argument prototype would still apply. */
17018char $ac_func();
17019
17020int main() {
70846f0a
VZ
17021
17022/* The GNU C library defines this for functions which it implements
17023 to always fail with ENOSYS. Some functions are actually named
17024 something starting with __ and the normal name is an alias. */
17025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17026choke me
17027#else
698dcdb6 17028$ac_func();
70846f0a
VZ
17029#endif
17030
698dcdb6 17031; return 0; }
70846f0a 17032EOF
6a30f1c8 17033if { (eval echo configure:17034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17034 rm -rf conftest*
17035 eval "ac_cv_func_$ac_func=yes"
17036else
17037 echo "configure: failed program was:" >&5
17038 cat conftest.$ac_ext >&5
17039 rm -rf conftest*
17040 eval "ac_cv_func_$ac_func=no"
17041fi
17042rm -f conftest*
17043fi
70846f0a 17044
698dcdb6
VZ
17045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17046 echo "$ac_t""yes" 1>&6
17047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17048 cat >> confdefs.h <<EOF
17049#define $ac_tr_func 1
17050EOF
4f14bcd8 17051 break
698dcdb6
VZ
17052else
17053 echo "$ac_t""no" 1>&6
70846f0a
VZ
17054fi
17055done
17056
698dcdb6 17057
4f14bcd8
GD
17058
17059ac_ext=C
17060# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17061ac_cpp='$CXXCPP $CPPFLAGS'
17062ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17063ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17064cross_compiling=$ac_cv_prog_cxx_cross
17065
17066
17067for ac_func in strtok_r
10f2d63a 17068do
4f14bcd8 17069echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 17070echo "configure:17071: checking for $ac_func" >&5
4f14bcd8 17071if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17072 echo $ac_n "(cached) $ac_c" 1>&6
17073else
17074 cat > conftest.$ac_ext <<EOF
6a30f1c8 17075#line 17076 "configure"
10f2d63a 17076#include "confdefs.h"
4f14bcd8
GD
17077/* System header to define __stub macros and hopefully few prototypes,
17078 which can conflict with char $ac_func(); below. */
17079#include <assert.h>
17080/* Override any gcc2 internal prototype to avoid an error. */
17081#ifdef __cplusplus
17082extern "C"
17083#endif
17084/* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17086char $ac_func();
17087
17088int main() {
17089
17090/* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17094choke me
17095#else
17096$ac_func();
17097#endif
17098
17099; return 0; }
698dcdb6 17100EOF
6a30f1c8 17101if { (eval echo configure:17102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17102 rm -rf conftest*
4f14bcd8 17103 eval "ac_cv_func_$ac_func=yes"
1e487827 17104else
698dcdb6 17105 echo "configure: failed program was:" >&5
10f2d63a 17106 cat conftest.$ac_ext >&5
698dcdb6 17107 rm -rf conftest*
4f14bcd8 17108 eval "ac_cv_func_$ac_func=no"
10f2d63a 17109fi
698dcdb6 17110rm -f conftest*
10f2d63a 17111fi
4f14bcd8
GD
17112
17113if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17114 echo "$ac_t""yes" 1>&6
4f14bcd8 17115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 17116 cat >> confdefs.h <<EOF
4f14bcd8 17117#define $ac_tr_func 1
10f2d63a 17118EOF
698dcdb6
VZ
17119
17120else
17121 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17122fi
17123done
17124
698dcdb6 17125
4f14bcd8
GD
17126ac_ext=c
17127# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17128ac_cpp='$CPP $CPPFLAGS'
17129ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17130ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17131cross_compiling=$ac_cv_prog_cc_cross
17132
17133
17134INET_LINK=
17135for ac_func in inet_addr
17136do
17137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 17138echo "configure:17139: checking for $ac_func" >&5
4f14bcd8 17139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 17140 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17141else
4f14bcd8 17142 cat > conftest.$ac_ext <<EOF
6a30f1c8 17143#line 17144 "configure"
10f2d63a 17144#include "confdefs.h"
4f14bcd8
GD
17145/* System header to define __stub macros and hopefully few prototypes,
17146 which can conflict with char $ac_func(); below. */
17147#include <assert.h>
10f2d63a
VZ
17148/* Override any gcc2 internal prototype to avoid an error. */
17149/* We use char because int might match the return type of a gcc2
698dcdb6 17150 builtin and then its argument prototype would still apply. */
4f14bcd8 17151char $ac_func();
698dcdb6
VZ
17152
17153int main() {
4f14bcd8
GD
17154
17155/* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159choke me
17160#else
17161$ac_func();
17162#endif
17163
698dcdb6
VZ
17164; return 0; }
17165EOF
6a30f1c8 17166if { (eval echo configure:17167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17167 rm -rf conftest*
4f14bcd8 17168 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17169else
17170 echo "configure: failed program was:" >&5
17171 cat conftest.$ac_ext >&5
17172 rm -rf conftest*
4f14bcd8 17173 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17174fi
17175rm -f conftest*
698dcdb6 17176fi
4f14bcd8
GD
17177
17178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17179 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17181 cat >> confdefs.h <<EOF
17182#define $ac_tr_func 1
17183EOF
17184 cat >> confdefs.h <<\EOF
17185#define HAVE_INET_ADDR 1
10f2d63a
VZ
17186EOF
17187
17188else
698dcdb6 17189 echo "$ac_t""no" 1>&6
4f14bcd8 17190echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
6a30f1c8 17191echo "configure:17192: checking for inet_addr in -lnsl" >&5
4f14bcd8 17192ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17194 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17195else
698dcdb6 17196 ac_save_LIBS="$LIBS"
4f14bcd8 17197LIBS="-lnsl $LIBS"
698dcdb6 17198cat > conftest.$ac_ext <<EOF
6a30f1c8 17199#line 17200 "configure"
10f2d63a
VZ
17200#include "confdefs.h"
17201/* Override any gcc2 internal prototype to avoid an error. */
17202/* We use char because int might match the return type of a gcc2
698dcdb6 17203 builtin and then its argument prototype would still apply. */
4f14bcd8 17204char inet_addr();
698dcdb6
VZ
17205
17206int main() {
4f14bcd8 17207inet_addr()
698dcdb6
VZ
17208; return 0; }
17209EOF
6a30f1c8 17210if { (eval echo configure:17211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17211 rm -rf conftest*
17212 eval "ac_cv_lib_$ac_lib_var=yes"
17213else
17214 echo "configure: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 rm -rf conftest*
17217 eval "ac_cv_lib_$ac_lib_var=no"
17218fi
17219rm -f conftest*
17220LIBS="$ac_save_LIBS"
17221
17222fi
17223if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17224 echo "$ac_t""yes" 1>&6
4f14bcd8 17225 INET_LINK="nsl"
10f2d63a 17226else
698dcdb6 17227 echo "$ac_t""no" 1>&6
4f14bcd8 17228echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
6a30f1c8 17229echo "configure:17230: checking for inet_addr in -lresolv" >&5
4f14bcd8 17230ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17233else
698dcdb6 17234 ac_save_LIBS="$LIBS"
4f14bcd8 17235LIBS="-lresolv $LIBS"
698dcdb6 17236cat > conftest.$ac_ext <<EOF
6a30f1c8 17237#line 17238 "configure"
10f2d63a
VZ
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
698dcdb6 17241 builtin and then its argument prototype would still apply. */
4f14bcd8 17242char inet_addr();
698dcdb6
VZ
17243
17244int main() {
4f14bcd8 17245inet_addr()
698dcdb6
VZ
17246; return 0; }
17247EOF
6a30f1c8 17248if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17249 rm -rf conftest*
17250 eval "ac_cv_lib_$ac_lib_var=yes"
17251else
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"
17256fi
17257rm -f conftest*
17258LIBS="$ac_save_LIBS"
17259
17260fi
17261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
4f14bcd8 17263 INET_LINK="resolv"
698dcdb6 17264else
4f14bcd8 17265 echo "$ac_t""no" 1>&6
3c011993 17266echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
6a30f1c8 17267echo "configure:17268: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17268ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17270 echo $ac_n "(cached) $ac_c" 1>&6
17271else
17272 ac_save_LIBS="$LIBS"
17273LIBS="-lsocket $LIBS"
17274cat > conftest.$ac_ext <<EOF
6a30f1c8 17275#line 17276 "configure"
3c011993
VZ
17276#include "confdefs.h"
17277/* Override any gcc2 internal prototype to avoid an error. */
17278/* We use char because int might match the return type of a gcc2
17279 builtin and then its argument prototype would still apply. */
17280char inet_addr();
17281
17282int main() {
17283inet_addr()
17284; return 0; }
17285EOF
6a30f1c8 17286if { (eval echo configure:17287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17287 rm -rf conftest*
17288 eval "ac_cv_lib_$ac_lib_var=yes"
17289else
17290 echo "configure: failed program was:" >&5
17291 cat conftest.$ac_ext >&5
17292 rm -rf conftest*
17293 eval "ac_cv_lib_$ac_lib_var=no"
17294fi
17295rm -f conftest*
17296LIBS="$ac_save_LIBS"
17297
17298fi
17299if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17300 echo "$ac_t""yes" 1>&6
17301 INET_LINK="socket"
17302
17303else
17304 echo "$ac_t""no" 1>&6
17305fi
17306
17307
4f14bcd8 17308fi
698dcdb6 17309
4f14bcd8 17310
698dcdb6 17311fi
4f14bcd8
GD
17312
17313
698dcdb6
VZ
17314
17315fi
4f14bcd8
GD
17316done
17317
17318
17319for ac_func in inet_aton
17320do
17321echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 17322echo "configure:17323: checking for $ac_func" >&5
4f14bcd8 17323if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17324 echo $ac_n "(cached) $ac_c" 1>&6
17325else
4f14bcd8 17326 cat > conftest.$ac_ext <<EOF
6a30f1c8 17327#line 17328 "configure"
f6bcfd97 17328#include "confdefs.h"
4f14bcd8
GD
17329/* System header to define __stub macros and hopefully few prototypes,
17330 which can conflict with char $ac_func(); below. */
17331#include <assert.h>
f6bcfd97
BP
17332/* Override any gcc2 internal prototype to avoid an error. */
17333/* We use char because int might match the return type of a gcc2
698dcdb6 17334 builtin and then its argument prototype would still apply. */
4f14bcd8 17335char $ac_func();
698dcdb6
VZ
17336
17337int main() {
4f14bcd8
GD
17338
17339/* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17343choke me
17344#else
17345$ac_func();
17346#endif
17347
698dcdb6
VZ
17348; return 0; }
17349EOF
6a30f1c8 17350if { (eval echo configure:17351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17351 rm -rf conftest*
4f14bcd8 17352 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17353else
17354 echo "configure: failed program was:" >&5
17355 cat conftest.$ac_ext >&5
17356 rm -rf conftest*
4f14bcd8 17357 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17358fi
17359rm -f conftest*
698dcdb6 17360fi
4f14bcd8
GD
17361
17362if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17363 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17365 cat >> confdefs.h <<EOF
17366#define $ac_tr_func 1
17367EOF
17368 cat >> confdefs.h <<\EOF
17369#define HAVE_INET_ATON 1
17370EOF
17371
10f2d63a 17372else
698dcdb6 17373 echo "$ac_t""no" 1>&6
4f14bcd8 17374 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
6a30f1c8 17375echo "configure:17376: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17376ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17377if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17378 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17379else
698dcdb6 17380 ac_save_LIBS="$LIBS"
4f14bcd8 17381LIBS="-l$INET_LINK $LIBS"
698dcdb6 17382cat > conftest.$ac_ext <<EOF
6a30f1c8 17383#line 17384 "configure"
10f2d63a 17384#include "confdefs.h"
6232543b 17385/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17386/* We use char because int might match the return type of a gcc2
698dcdb6 17387 builtin and then its argument prototype would still apply. */
4f14bcd8 17388char inet_aton();
698dcdb6
VZ
17389
17390int main() {
4f14bcd8 17391inet_aton()
698dcdb6
VZ
17392; return 0; }
17393EOF
6a30f1c8 17394if { (eval echo configure:17395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17395 rm -rf conftest*
17396 eval "ac_cv_lib_$ac_lib_var=yes"
17397else
17398 echo "configure: failed program was:" >&5
17399 cat conftest.$ac_ext >&5
17400 rm -rf conftest*
17401 eval "ac_cv_lib_$ac_lib_var=no"
17402fi
17403rm -f conftest*
17404LIBS="$ac_save_LIBS"
10f2d63a 17405
698dcdb6
VZ
17406fi
17407if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17408 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17409 cat >> confdefs.h <<\EOF
17410#define HAVE_INET_ATON 1
17411EOF
17412
698dcdb6
VZ
17413else
17414 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17415fi
17416
4f14bcd8 17417
10f2d63a 17418fi
4f14bcd8 17419done
10f2d63a 17420
4f14bcd8
GD
17421
17422if test "x$INET_LINK" != "x"; then
17423 cat >> confdefs.h <<\EOF
17424#define HAVE_INET_ADDR 1
17425EOF
17426
3d63bc3a 17427 INET_LINK=" -l$INET_LINK"
6232543b 17428fi
10f2d63a 17429
1e487827 17430fi
703e0a69 17431
698dcdb6 17432
4f14bcd8
GD
17433cat > confcache <<\EOF
17434# This file is a shell script that caches the results of configure
17435# tests run on this system so they can be shared between configure
17436# scripts and configure runs. It is not useful on other systems.
17437# If it contains results you don't want to keep, you may remove or edit it.
17438#
17439# By default, configure uses ./config.cache as the cache file,
17440# creating it if it does not exist already. You can give configure
17441# the --cache-file=FILE option to use a different cache file; that is
17442# what configure does when it calls configure scripts in
17443# subdirectories, so they share the cache.
17444# Giving --cache-file=/dev/null disables caching, for debugging configure.
17445# config.status only pays attention to the cache file if you give it the
17446# --recheck option to rerun configure.
17447#
f6bcfd97 17448EOF
4f14bcd8
GD
17449# The following way of writing the cache mishandles newlines in values,
17450# but we know of no workaround that is simple, portable, and efficient.
17451# So, don't put newlines in cache variables' values.
17452# Ultrix sh set writes to stderr and can't be redirected directly,
17453# and sets the high bit in the cache file unless we assign to the vars.
17454(set) 2>&1 |
17455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17456 *ac_space=\ *)
17457 # `set' does not quote correctly, so add quotes (double-quote substitution
17458 # turns \\\\ into \\, and sed turns \\ into \).
17459 sed -n \
17460 -e "s/'/'\\\\''/g" \
17461 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17462 ;;
17463 *)
17464 # `set' quotes correctly as required by POSIX, so do not add quotes.
17465 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17466 ;;
17467 esac >> confcache
17468if cmp -s $cache_file confcache; then
17469 :
17470else
17471 if test -w $cache_file; then
17472 echo "updating cache $cache_file"
17473 cat confcache > $cache_file
f6bcfd97 17474 else
4f14bcd8 17475 echo "not updating unwritable cache $cache_file"
f6bcfd97 17476 fi
4f14bcd8
GD
17477fi
17478rm -f confcache
f6bcfd97 17479
4f14bcd8
GD
17480
17481
009fead0 17482CPP_MT_FLAG=
4f14bcd8
GD
17483if test "$TOOLKIT" != "MSW"; then
17484
009fead0 17485
7274f1c7 17486 THREADS_LINK=
009fead0 17487 THREADS_CFLAGS=
7274f1c7
RL
17488
17489 if test "$wxUSE_THREADS" = "yes" ; then
17490 if test "$wxUSE_WINE" = 1 ; then
156b2523 17491 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17492 wxUSE_THREADS="no"
17493 elif test "$USE_BEOS" = 1; then
156b2523 17494 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17495 wxUSE_THREADS="no"
17496 fi
4f14bcd8 17497 fi
4f14bcd8 17498
7274f1c7 17499 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17500
3010d50a 17501
009fead0
VZ
17502 THREAD_OPTS="-pthread"
17503 case "${host}" in
17504 *-*-solaris2* | *-*-sunos4* )
17505 if test "x$GCC" = "xyes"; then
126be6b4 17506 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17507 else
17508 THREAD_OPTS="-mt $THREAD_OPTS"
17509 fi
17510 ;;
17511 *-*-freebsd*)
17512 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17513 ;;
17234b26
MB
17514 *-*-darwin* | *-*-cygwin* )
17515 THREAD_OPTS=""
4101db81 17516 ;;
8f4a9a10 17517 *-*-aix*)
009fead0
VZ
17518 THREAD_OPTS="pthreads"
17519 ;;
009fead0 17520 esac
4f14bcd8 17521
02a1dfba 17522 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17523
009fead0
VZ
17524 THREADS_OK=no
17525 for flag in $THREAD_OPTS; do
17526 case $flag in
17527 none)
17528 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
6a30f1c8 17529echo "configure:17530: checking whether pthreads work without any flags" >&5
009fead0 17530 ;;
698dcdb6 17531
009fead0
VZ
17532 -*)
17533 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
6a30f1c8 17534echo "configure:17535: checking whether pthreads work with $flag" >&5
009fead0
VZ
17535 THREADS_CFLAGS="$flag"
17536 ;;
698dcdb6 17537
009fead0
VZ
17538 *)
17539 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
6a30f1c8 17540echo "configure:17541: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17541 THREADS_LINK="-l$flag"
17542 ;;
17543 esac
10f2d63a 17544
009fead0
VZ
17545 save_LIBS="$LIBS"
17546 save_CFLAGS="$CFLAGS"
17547 LIBS="$THREADS_LINK $LIBS"
04727afd 17548 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17549
009fead0 17550 cat > conftest.$ac_ext <<EOF
6a30f1c8 17551#line 17552 "configure"
009fead0
VZ
17552#include "confdefs.h"
17553#include <pthread.h>
4f14bcd8 17554int main() {
009fead0 17555pthread_create(0,0,0,0);
698dcdb6
VZ
17556; return 0; }
17557EOF
6a30f1c8 17558if { (eval echo configure:17559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17559 rm -rf conftest*
009fead0 17560 THREADS_OK=yes
10f2d63a 17561else
698dcdb6
VZ
17562 echo "configure: failed program was:" >&5
17563 cat conftest.$ac_ext >&5
6232543b 17564fi
698dcdb6 17565rm -f conftest*
698dcdb6 17566
009fead0
VZ
17567 LIBS="$save_LIBS"
17568 CFLAGS="$save_CFLAGS"
d9b9876f 17569
009fead0
VZ
17570 echo "$ac_t""$THREADS_OK" 1>&6
17571 if test "x$THREADS_OK" = "xyes"; then
17572 break;
17573 fi
d9b9876f 17574
009fead0
VZ
17575 THREADS_LINK=""
17576 THREADS_CFLAGS=""
17577 done
4f14bcd8 17578
009fead0
VZ
17579 if test "x$THREADS_OK" != "xyes"; then
17580 wxUSE_THREADS=no
17581 echo "configure: warning: No thread support on this system... disabled" 1>&2
17582 else
fe5a9cab
VZ
17583 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17584
009fead0 17585 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
6a30f1c8 17586echo "configure:17587: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17587 flag=no
17588 case "${host}" in
17589 *-aix* | *-freebsd*)
17590 flag="-D_THREAD_SAFE"
17591 ;;
17592 *solaris* | alpha*-osf*)
17593 flag="-D_REENTRANT"
17594 ;;
17595 esac
17596 echo "$ac_t""${flag}" 1>&6
17597 if test "x$flag" != xno; then
04727afd 17598 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17599 fi
17600
009fead0 17601 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17602 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17603 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17604 fi
17605 fi
4f14bcd8 17606 fi
4f14bcd8 17607
7274f1c7
RL
17608 if test "$wxUSE_THREADS" = "yes" ; then
17609 for ac_func in thr_setconcurrency
4f14bcd8
GD
17610do
17611echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 17612echo "configure:17613: checking for $ac_func" >&5
4f14bcd8 17613if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17614 echo $ac_n "(cached) $ac_c" 1>&6
17615else
4f14bcd8 17616 cat > conftest.$ac_ext <<EOF
6a30f1c8 17617#line 17618 "configure"
d9b9876f 17618#include "confdefs.h"
4f14bcd8
GD
17619/* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char $ac_func(); below. */
17621#include <assert.h>
17622/* Override any gcc2 internal prototype to avoid an error. */
17623/* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625char $ac_func();
17626
698dcdb6 17627int main() {
d9b9876f 17628
4f14bcd8
GD
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17633choke me
17634#else
17635$ac_func();
17636#endif
17637
698dcdb6
VZ
17638; return 0; }
17639EOF
6a30f1c8 17640if { (eval echo configure:17641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17641 rm -rf conftest*
4f14bcd8 17642 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17643else
698dcdb6
VZ
17644 echo "configure: failed program was:" >&5
17645 cat conftest.$ac_ext >&5
17646 rm -rf conftest*
4f14bcd8 17647 eval "ac_cv_func_$ac_func=no"
6232543b 17648fi
698dcdb6 17649rm -f conftest*
1e487827 17650fi
698dcdb6 17651
4f14bcd8
GD
17652if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17653 echo "$ac_t""yes" 1>&6
17654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17655 cat >> confdefs.h <<EOF
17656#define $ac_tr_func 1
d9b9876f 17657EOF
4f14bcd8
GD
17658
17659else
17660 echo "$ac_t""no" 1>&6
10f2d63a 17661fi
4f14bcd8 17662done
10f2d63a 17663
10f2d63a 17664
7274f1c7 17665 for ac_hdr in sched.h
4f14bcd8
GD
17666do
17667ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17668echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a30f1c8 17669echo "configure:17670: checking for $ac_hdr" >&5
4f14bcd8
GD
17670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17672else
4f14bcd8 17673 cat > conftest.$ac_ext <<EOF
6a30f1c8 17674#line 17675 "configure"
4f14bcd8
GD
17675#include "confdefs.h"
17676#include <$ac_hdr>
13111b2a 17677EOF
4f14bcd8 17678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 17679{ (eval echo configure:17680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17681if test -z "$ac_err"; then
17682 rm -rf conftest*
17683 eval "ac_cv_header_$ac_safe=yes"
17684else
17685 echo "$ac_err" >&5
17686 echo "configure: failed program was:" >&5
17687 cat conftest.$ac_ext >&5
17688 rm -rf conftest*
17689 eval "ac_cv_header_$ac_safe=no"
13111b2a 17690fi
4f14bcd8 17691rm -f conftest*
10f2d63a 17692fi
4f14bcd8
GD
17693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17694 echo "$ac_t""yes" 1>&6
17695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17696 cat >> confdefs.h <<EOF
4f14bcd8 17697#define $ac_tr_hdr 1
f6bcfd97 17698EOF
4f14bcd8
GD
17699
17700else
17701 echo "$ac_t""no" 1>&6
f6bcfd97 17702fi
4f14bcd8 17703done
f6bcfd97 17704
009fead0
VZ
17705 if test "$ac_cv_header_sched_h" = "yes"; then
17706 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
6a30f1c8 17707echo "configure:17708: checking for sched_yield" >&5
009fead0 17708if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17709 echo $ac_n "(cached) $ac_c" 1>&6
17710else
009fead0 17711 cat > conftest.$ac_ext <<EOF
6a30f1c8 17712#line 17713 "configure"
4f14bcd8 17713#include "confdefs.h"
009fead0
VZ
17714/* System header to define __stub macros and hopefully few prototypes,
17715 which can conflict with char sched_yield(); below. */
17716#include <assert.h>
4f14bcd8
GD
17717/* Override any gcc2 internal prototype to avoid an error. */
17718/* We use char because int might match the return type of a gcc2
17719 builtin and then its argument prototype would still apply. */
17720char sched_yield();
10f2d63a 17721
4f14bcd8 17722int main() {
009fead0
VZ
17723
17724/* The GNU C library defines this for functions which it implements
17725 to always fail with ENOSYS. Some functions are actually named
17726 something starting with __ and the normal name is an alias. */
17727#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17728choke me
17729#else
17730sched_yield();
17731#endif
17732
4f14bcd8 17733; return 0; }
10f2d63a 17734EOF
6a30f1c8 17735if { (eval echo configure:17736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17736 rm -rf conftest*
009fead0 17737 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17738else
4f14bcd8
GD
17739 echo "configure: failed program was:" >&5
17740 cat conftest.$ac_ext >&5
17741 rm -rf conftest*
009fead0 17742 eval "ac_cv_func_sched_yield=no"
10f2d63a 17743fi
4f14bcd8 17744rm -f conftest*
4f14bcd8 17745fi
009fead0
VZ
17746
17747if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17748 echo "$ac_t""yes" 1>&6
17749 cat >> confdefs.h <<\EOF
17750#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17751EOF
17752
4f14bcd8
GD
17753else
17754 echo "$ac_t""no" 1>&6
009fead0
VZ
17755
17756 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6a30f1c8 17757echo "configure:17758: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17758ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17759if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17760 echo $ac_n "(cached) $ac_c" 1>&6
17761else
17762 ac_save_LIBS="$LIBS"
17763LIBS="-lposix4 $LIBS"
17764cat > conftest.$ac_ext <<EOF
6a30f1c8 17765#line 17766 "configure"
4f14bcd8
GD
17766#include "confdefs.h"
17767/* Override any gcc2 internal prototype to avoid an error. */
17768/* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17770char sched_yield();
47c13eb7 17771
4f14bcd8
GD
17772int main() {
17773sched_yield()
17774; return 0; }
10f2d63a 17775EOF
6a30f1c8 17776if { (eval echo configure:17777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17777 rm -rf conftest*
17778 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17779else
4f14bcd8
GD
17780 echo "configure: failed program was:" >&5
17781 cat conftest.$ac_ext >&5
17782 rm -rf conftest*
17783 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17784fi
4f14bcd8
GD
17785rm -f conftest*
17786LIBS="$ac_save_LIBS"
10f2d63a 17787
54276ccf 17788fi
4f14bcd8
GD
17789if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17790 echo "$ac_t""yes" 1>&6
17791 cat >> confdefs.h <<\EOF
17792#define HAVE_SCHED_YIELD 1
54276ccf 17793EOF
3d63bc3a 17794 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17795else
17796 echo "$ac_t""no" 1>&6
17797echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17798
54276ccf
VZ
17799fi
17800
009fead0
VZ
17801
17802
4f14bcd8 17803fi
698dcdb6 17804
009fead0 17805 fi
10f2d63a 17806
7274f1c7 17807 HAVE_PRIOR_FUNCS=0
009fead0 17808 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
6a30f1c8 17809echo "configure:17810: checking for pthread_attr_getschedpolicy" >&5
009fead0 17810if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17811 echo $ac_n "(cached) $ac_c" 1>&6
17812else
009fead0 17813 cat > conftest.$ac_ext <<EOF
6a30f1c8 17814#line 17815 "configure"
422107f9 17815#include "confdefs.h"
009fead0
VZ
17816/* System header to define __stub macros and hopefully few prototypes,
17817 which can conflict with char pthread_attr_getschedpolicy(); below. */
17818#include <assert.h>
4f14bcd8
GD
17819/* Override any gcc2 internal prototype to avoid an error. */
17820/* We use char because int might match the return type of a gcc2
17821 builtin and then its argument prototype would still apply. */
17822char pthread_attr_getschedpolicy();
17823
17824int main() {
009fead0
VZ
17825
17826/* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17830choke me
17831#else
17832pthread_attr_getschedpolicy();
17833#endif
17834
4f14bcd8 17835; return 0; }
698dcdb6 17836EOF
6a30f1c8 17837if { (eval echo configure:17838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17838 rm -rf conftest*
009fead0 17839 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17840else
698dcdb6 17841 echo "configure: failed program was:" >&5
422107f9 17842 cat conftest.$ac_ext >&5
698dcdb6 17843 rm -rf conftest*
009fead0 17844 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17845fi
698dcdb6 17846rm -f conftest*
422107f9 17847fi
009fead0
VZ
17848
17849if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17850 echo "$ac_t""yes" 1>&6
009fead0 17851 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
6a30f1c8 17852echo "configure:17853: checking for pthread_attr_setschedparam" >&5
009fead0 17853if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17854 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17855else
009fead0 17856 cat > conftest.$ac_ext <<EOF
6a30f1c8 17857#line 17858 "configure"
422107f9 17858#include "confdefs.h"
009fead0
VZ
17859/* System header to define __stub macros and hopefully few prototypes,
17860 which can conflict with char pthread_attr_setschedparam(); below. */
17861#include <assert.h>
422107f9
VZ
17862/* Override any gcc2 internal prototype to avoid an error. */
17863/* We use char because int might match the return type of a gcc2
698dcdb6 17864 builtin and then its argument prototype would still apply. */
4f14bcd8 17865char pthread_attr_setschedparam();
698dcdb6
VZ
17866
17867int main() {
009fead0
VZ
17868
17869/* The GNU C library defines this for functions which it implements
17870 to always fail with ENOSYS. Some functions are actually named
17871 something starting with __ and the normal name is an alias. */
17872#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17873choke me
17874#else
17875pthread_attr_setschedparam();
17876#endif
17877
698dcdb6
VZ
17878; return 0; }
17879EOF
6a30f1c8 17880if { (eval echo configure:17881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17881 rm -rf conftest*
009fead0 17882 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17883else
17884 echo "configure: failed program was:" >&5
17885 cat conftest.$ac_ext >&5
17886 rm -rf conftest*
009fead0 17887 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17888fi
17889rm -f conftest*
698dcdb6 17890fi
009fead0
VZ
17891
17892if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17893 echo "$ac_t""yes" 1>&6
009fead0 17894 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
6a30f1c8 17895echo "configure:17896: checking for sched_get_priority_max" >&5
009fead0 17896if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17897 echo $ac_n "(cached) $ac_c" 1>&6
17898else
009fead0 17899 cat > conftest.$ac_ext <<EOF
6a30f1c8 17900#line 17901 "configure"
422107f9 17901#include "confdefs.h"
009fead0
VZ
17902/* System header to define __stub macros and hopefully few prototypes
17903else
17904 echo "$ac_t""no" 1>&6
17905which can conflict with char sched_get_priority_max(); below. */
17906#include <assert.h>
4f14bcd8
GD
17907/* Override any gcc2 internal prototype to avoid an error. */
17908/* We use char because int might match the return type of a gcc2
17909 builtin and then its argument prototype would still apply. */
17910char sched_get_priority_max();
17911
17912int main() {
009fead0
VZ
17913
17914/* The GNU C library defines this for functions which it implements
17915 to always fail with ENOSYS. Some functions are actually named
17916 something starting with __ and the normal name is an alias. */
17917#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17918choke me
17919#else
17920sched_get_priority_max();
17921#endif
17922
4f14bcd8 17923; return 0; }
698dcdb6 17924EOF
6a30f1c8 17925if { (eval echo configure:17926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17926 rm -rf conftest*
009fead0 17927 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17928else
698dcdb6 17929 echo "configure: failed program was:" >&5
422107f9 17930 cat conftest.$ac_ext >&5
698dcdb6 17931 rm -rf conftest*
009fead0 17932 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17933fi
698dcdb6 17934rm -f conftest*
422107f9 17935fi
009fead0
VZ
17936
17937if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17938 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17939 HAVE_PRIOR_FUNCS=1
17940else
17941 echo "$ac_t""no" 1>&6
17942echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
6a30f1c8 17943echo "configure:17944: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17944ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17945if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17946 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17947else
698dcdb6 17948 ac_save_LIBS="$LIBS"
4f14bcd8 17949LIBS="-lposix4 $LIBS"
698dcdb6 17950cat > conftest.$ac_ext <<EOF
6a30f1c8 17951#line 17952 "configure"
422107f9
VZ
17952#include "confdefs.h"
17953/* Override any gcc2 internal prototype to avoid an error. */
17954/* We use char because int might match the return type of a gcc2
698dcdb6 17955 builtin and then its argument prototype would still apply. */
4f14bcd8 17956char sched_get_priority_max();
698dcdb6
VZ
17957
17958int main() {
4f14bcd8 17959sched_get_priority_max()
698dcdb6
VZ
17960; return 0; }
17961EOF
6a30f1c8 17962if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17963 rm -rf conftest*
17964 eval "ac_cv_lib_$ac_lib_var=yes"
17965else
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17968 rm -rf conftest*
17969 eval "ac_cv_lib_$ac_lib_var=no"
17970fi
17971rm -f conftest*
17972LIBS="$ac_save_LIBS"
17973
17974fi
17975if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17976 echo "$ac_t""yes" 1>&6
4f14bcd8 17977
7274f1c7
RL
17978 HAVE_PRIOR_FUNCS=1
17979 POSIX4_LINK=" -lposix4"
17980
698dcdb6
VZ
17981else
17982 echo "$ac_t""no" 1>&6
422107f9
VZ
17983fi
17984
7274f1c7 17985
422107f9
VZ
17986fi
17987
7274f1c7 17988
4f14bcd8
GD
17989else
17990 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17991fi
17992
7274f1c7 17993
4f14bcd8 17994fi
463abc64 17995
463abc64 17996
7274f1c7
RL
17997 if test "$HAVE_PRIOR_FUNCS" = 1; then
17998 cat >> confdefs.h <<\EOF
4f14bcd8 17999#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 18000EOF
463abc64 18001
7274f1c7
RL
18002 else
18003 echo "configure: warning: Setting thread priority will not work" 1>&2
18004 fi
463abc64 18005
009fead0 18006 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
6a30f1c8 18007echo "configure:18008: checking for pthread_cancel" >&5
009fead0 18008if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 18009 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18010else
009fead0 18011 cat > conftest.$ac_ext <<EOF
6a30f1c8 18012#line 18013 "configure"
422107f9 18013#include "confdefs.h"
009fead0
VZ
18014/* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char pthread_cancel(); below. */
18016#include <assert.h>
422107f9
VZ
18017/* Override any gcc2 internal prototype to avoid an error. */
18018/* We use char because int might match the return type of a gcc2
698dcdb6 18019 builtin and then its argument prototype would still apply. */
4f14bcd8 18020char pthread_cancel();
698dcdb6
VZ
18021
18022int main() {
009fead0
VZ
18023
18024/* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18028choke me
18029#else
18030pthread_cancel();
18031#endif
18032
698dcdb6
VZ
18033; return 0; }
18034EOF
6a30f1c8 18035if { (eval echo configure:18036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 18036 rm -rf conftest*
009fead0 18037 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
18038else
18039 echo "configure: failed program was:" >&5
18040 cat conftest.$ac_ext >&5
18041 rm -rf conftest*
009fead0 18042 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
18043fi
18044rm -f conftest*
698dcdb6 18045fi
009fead0
VZ
18046
18047if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 18048 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18049 cat >> confdefs.h <<\EOF
18050#define HAVE_PTHREAD_CANCEL 1
18051EOF
18052
698dcdb6
VZ
18053else
18054 echo "$ac_t""no" 1>&6
4f14bcd8 18055echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18056fi
18057
422107f9 18058
7274f1c7 18059 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
6a30f1c8 18060echo "configure:18061: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
18061if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18062 echo $ac_n "(cached) $ac_c" 1>&6
18063else
18064
7274f1c7 18065 cat > conftest.$ac_ext <<EOF
6a30f1c8 18066#line 18067 "configure"
4f14bcd8
GD
18067#include "confdefs.h"
18068#include <pthread.h>
18069int main() {
18070
7274f1c7
RL
18071 pthread_cleanup_push(NULL, NULL);
18072 pthread_cleanup_pop(0);
18073
4f14bcd8
GD
18074; return 0; }
18075EOF
6a30f1c8 18076if { (eval echo configure:18077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
18077 rm -rf conftest*
18078
7274f1c7
RL
18079 wx_cv_func_pthread_cleanup_push=yes
18080
4f14bcd8
GD
18081else
18082 echo "configure: failed program was:" >&5
18083 cat conftest.$ac_ext >&5
18084 rm -rf conftest*
18085
7274f1c7
RL
18086 wx_cv_func_pthread_cleanup_push=no
18087
4f14bcd8
GD
18088fi
18089rm -f conftest*
7274f1c7 18090
10f2d63a
VZ
18091fi
18092
4f14bcd8
GD
18093echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18094
7274f1c7
RL
18095 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18096 cat >> confdefs.h <<\EOF
4f14bcd8 18097#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
18098EOF
18099
7274f1c7 18100 fi
4f14bcd8 18101
7274f1c7 18102
19bc6aad 18103 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
18104 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18105 fi
4f14bcd8 18106
7274f1c7 18107 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
6a30f1c8 18108echo "configure:18109: checking for pthread_mutexattr_t" >&5
4f14bcd8 18109if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
18110 echo $ac_n "(cached) $ac_c" 1>&6
18111else
4f14bcd8 18112
7274f1c7 18113 cat > conftest.$ac_ext <<EOF
6a30f1c8 18114#line 18115 "configure"
0dcf9893 18115#include "confdefs.h"
4f14bcd8
GD
18116#include <pthread.h>
18117int main() {
18118
7274f1c7
RL
18119 pthread_mutexattr_t attr;
18120 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18121
4f14bcd8 18122; return 0; }
698dcdb6 18123EOF
6a30f1c8 18124if { (eval echo configure:18125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18125 rm -rf conftest*
4f14bcd8 18126
7274f1c7
RL
18127 wx_cv_type_pthread_mutexattr_t=yes
18128
3fed1840 18129else
698dcdb6 18130 echo "configure: failed program was:" >&5
3fed1840 18131 cat conftest.$ac_ext >&5
698dcdb6 18132 rm -rf conftest*
4f14bcd8 18133
7274f1c7
RL
18134 wx_cv_type_pthread_mutexattr_t=no
18135
4f14bcd8 18136
3fed1840 18137fi
698dcdb6 18138rm -f conftest*
7274f1c7 18139
3fed1840 18140fi
4f14bcd8
GD
18141
18142echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18143
7274f1c7
RL
18144 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18145 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18146#define HAVE_PTHREAD_MUTEXATTR_T 1
18147EOF
18148
7274f1c7
RL
18149 else
18150 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
6a30f1c8 18151echo "configure:18152: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 18152if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 18153 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 18154else
4f14bcd8 18155
7274f1c7 18156 cat > conftest.$ac_ext <<EOF
6a30f1c8 18157#line 18158 "configure"
3fed1840 18158#include "confdefs.h"
4f14bcd8 18159#include <pthread.h>
698dcdb6 18160int main() {
4f14bcd8 18161
7274f1c7
RL
18162 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18163
698dcdb6
VZ
18164; return 0; }
18165EOF
6a30f1c8 18166if { (eval echo configure:18167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18167 rm -rf conftest*
4f14bcd8 18168
7274f1c7
RL
18169 wx_cv_type_pthread_rec_mutex_init=yes
18170
698dcdb6
VZ
18171else
18172 echo "configure: failed program was:" >&5
18173 cat conftest.$ac_ext >&5
18174 rm -rf conftest*
4f14bcd8 18175
7274f1c7
RL
18176 wx_cv_type_pthread_rec_mutex_init=no
18177
4f14bcd8 18178
698dcdb6
VZ
18179fi
18180rm -f conftest*
7274f1c7 18181
3fed1840
RR
18182fi
18183
4f14bcd8 18184echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
18185 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18186 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18187#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18188EOF
3fed1840 18189
7274f1c7
RL
18190 else
18191 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18192 fi
18193 fi
7274f1c7 18194 fi
3fed1840 18195
4f14bcd8
GD
18196fi
18197
18198if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 18199 cat >> confdefs.h <<\EOF
4f14bcd8 18200#define wxUSE_THREADS 1
7b6058cd
GD
18201EOF
18202
4f14bcd8 18203
4f14bcd8 18204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18205else
4f14bcd8
GD
18206 if test "$ac_cv_func_strtok_r" = "yes"; then
18207 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
6a30f1c8 18208echo "configure:18209: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18209 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18210 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18211 echo "$ac_t""yes" 1>&6
18212 else
18213 echo "$ac_t""no" 1>&6
18214 fi
18215 fi
18216fi
18217
18218if test "$WXGTK20" = 1 ; then
18219 cat >> confdefs.h <<EOF
18220#define __WXGTK20__ $WXGTK20
698dcdb6 18221EOF
4f14bcd8
GD
18222
18223 WXGTK12=1
10f2d63a 18224fi
4f14bcd8
GD
18225
18226if test "$WXGTK12" = 1 ; then
18227 cat >> confdefs.h <<EOF
18228#define __WXGTK12__ $WXGTK12
18229EOF
18230
10f2d63a 18231fi
698dcdb6 18232
4f14bcd8
GD
18233if test "$WXGTK127" = 1 ; then
18234 cat >> confdefs.h <<EOF
18235#define __WXGTK127__ $WXGTK127
698dcdb6 18236EOF
4f14bcd8 18237
698dcdb6 18238fi
10f2d63a 18239
4f14bcd8
GD
18240WXDEBUG=
18241
18242if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18243 WXDEBUG="-g"
18244 wxUSE_OPTIMISE=no
698dcdb6 18245fi
4f14bcd8
GD
18246
18247if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18248 wxUSE_DEBUG_INFO=yes
18249 WXDEBUG="-ggdb"
10f2d63a
VZ
18250fi
18251
4f14bcd8
GD
18252if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18253 cat >> confdefs.h <<\EOF
18254#define WXDEBUG 1
18255EOF
18256
18257 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18258else
4f14bcd8
GD
18259 if test "$wxUSE_GTK" = 1 ; then
18260 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18261 fi
18262fi
18263
18264if test "$wxUSE_MEM_TRACING" = "yes" ; then
18265 cat >> confdefs.h <<\EOF
18266#define wxUSE_MEMORY_TRACING 1
18267EOF
18268
18269 cat >> confdefs.h <<\EOF
18270#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18271EOF
18272
18273 cat >> confdefs.h <<\EOF
18274#define wxUSE_DEBUG_NEW_ALWAYS 1
18275EOF
18276
18277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18278fi
18279
18280if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18281 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18282fi
18283
18284PROFILE=
18285if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18286 PROFILE=" -pg"
10f2d63a
VZ
18287fi
18288
009fead0
VZ
18289CODE_GEN_FLAGS=
18290CODE_GEN_FLAGS_CXX=
88e30f2b 18291if test "$GCC" = "yes" ; then
4f14bcd8
GD
18292 if test "$wxUSE_NO_RTTI" = "yes" ; then
18293 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18294 fi
4f14bcd8
GD
18295 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18296 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18297 fi
18298 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18299 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18300 fi
4f14bcd8
GD
18301 if test "$USE_WIN32" = 1 ; then
18302 # I'm not even really sure what this was ever added to solve,
18303 # but someone added it for mingw native builds, so I guess
18304 # they had a reason, right??
18305 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18306 fi
1d1b75ac
VZ
18307
18308 case "${host}" in
18309 powerpc*-*-aix* )
18310 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18311 ;;
18312 esac
4f14bcd8
GD
18313fi
18314
4f14bcd8
GD
18315if test "$wxUSE_OPTIMISE" = "no" ; then
18316 OPTIMISE=
18317else
18318 if test "$GCC" = yes ; then
18319 OPTIMISE="-O2"
18320 case "${host}" in
18321 i586-*-*|i686-*-* )
18322 OPTIMISE="${OPTIMISE} "
18323 ;;
18324 esac
18325 else
18326 OPTIMISE="-O"
18327 fi
18328fi
18329
18330if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18331 cat >> confdefs.h <<\EOF
18332#define WXWIN_COMPATIBILITY_2 1
18333EOF
18334
18335
18336 WXWIN_COMPATIBILITY_2_2="yes"
18337fi
18338
0c9a1c32 18339if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18340 cat >> confdefs.h <<\EOF
18341#define WXWIN_COMPATIBILITY_2_2 1
18342EOF
18343
10f2d63a
VZ
18344fi
18345
698dcdb6 18346
10f2d63a 18347if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18348 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18349#define wxUSE_GUI 1
18350EOF
18351
698dcdb6 18352
10f2d63a 18353 else
698dcdb6 18354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18355#define wxUSE_NOGUI 1
18356EOF
18357
18358fi
18359
698dcdb6 18360
10f2d63a 18361if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18362 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18363#define wxUSE_UNIX 1
18364EOF
18365
18366fi
18367
698dcdb6 18368
10f2d63a 18369if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18370 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18371#define wxUSE_APPLE_IEEE 1
18372EOF
18373
18374fi
18375
1e6feb95
VZ
18376if test "$wxUSE_TIMER" = "yes"; then
18377 cat >> confdefs.h <<\EOF
18378#define wxUSE_TIMER 1
18379EOF
18380
18381fi
18382
10f2d63a 18383if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18384 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18385#define wxUSE_WAVE 1
18386EOF
18387
18388fi
18389
1e6feb95
VZ
18390if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18391 cat >> confdefs.h <<\EOF
18392#define wxUSE_CMDLINE_PARSER 1
18393EOF
18394
18395fi
18396
18397if test "$wxUSE_STOPWATCH" = "yes"; then
18398 cat >> confdefs.h <<\EOF
18399#define wxUSE_STOPWATCH 1
18400EOF
18401
18402fi
18403
18404if test "$wxUSE_DATETIME" = "yes"; then
18405 cat >> confdefs.h <<\EOF
18406#define wxUSE_DATETIME 1
18407EOF
18408
18409fi
18410
18411if test "$wxUSE_TIMEDATE" = "yes"; then
18412 cat >> confdefs.h <<\EOF
18413#define wxUSE_TIMEDATE 1
18414EOF
18415
18416fi
18417
10f2d63a 18418if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18419 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18420#define wxUSE_FILE 1
18421EOF
18422
18423fi
18424
1e6feb95
VZ
18425if test "$wxUSE_FFILE" = "yes"; then
18426 cat >> confdefs.h <<\EOF
18427#define wxUSE_FFILE 1
18428EOF
18429
18430fi
18431
24528b0c 18432if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18433 cat >> confdefs.h <<\EOF
24528b0c
VS
18434#define wxUSE_FILESYSTEM 1
18435EOF
18436
18437fi
18438
10f2d63a 18439if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18440 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18441#define wxUSE_FS_INET 1
18442EOF
18443
18444fi
18445
18446if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18447 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18448#define wxUSE_FS_ZIP 1
18449EOF
18450
18451fi
18452
18453if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18454 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18455#define wxUSE_ZIPSTREAM 1
18456EOF
18457
18458fi
18459
eb4efbdc 18460if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18461 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18462#define wxUSE_ON_FATAL_EXCEPTION 1
18463EOF
18464
18465fi
18466
4f3c5f06 18467if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18468 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18469#define wxUSE_SNGLINST_CHECKER 1
18470EOF
18471
18472fi
18473
10f2d63a 18474if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18475 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18476#define wxUSE_BUSYINFO 1
18477EOF
18478
18479fi
18480
18481if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18482 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18483#define wxUSE_STD_IOSTREAM 1
18484EOF
18485
18486fi
18487
a3a584a7
VZ
18488if test "$wxUSE_TEXTBUFFER" = "yes"; then
18489 cat >> confdefs.h <<\EOF
18490#define wxUSE_TEXTBUFFER 1
18491EOF
18492
18493fi
18494
10f2d63a 18495if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18496 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18497 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18498 else
698dcdb6 18499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18500#define wxUSE_TEXTFILE 1
18501EOF
18502
18503 fi
18504fi
18505
18506if test "$wxUSE_CONFIG" = "yes" ; then
18507 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18508 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18509 else
698dcdb6 18510 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18511#define wxUSE_CONFIG 1
18512EOF
18513
18514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18515 fi
18516fi
18517
18518if test "$wxUSE_INTL" = "yes" ; then
18519 if test "$wxUSE_FILE" != "yes"; then
156b2523 18520 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18521 else
698dcdb6 18522 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18523#define wxUSE_INTL 1
18524EOF
18525
18526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18527 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18528 fi
18529fi
18530
18531if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18532 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18533#define wxUSE_LOG 1
18534EOF
18535
d73be714
VZ
18536
18537 if test "$wxUSE_LOGGUI" = "yes"; then
18538 cat >> confdefs.h <<\EOF
18539#define wxUSE_LOGGUI 1
18540EOF
18541
18542 fi
18543
18544 if test "$wxUSE_LOGWINDOW" = "yes"; then
18545 cat >> confdefs.h <<\EOF
18546#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18547EOF
18548
18549 fi
18550
18551 if test "$wxUSE_LOGDIALOG" = "yes"; then
18552 cat >> confdefs.h <<\EOF
18553#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18554EOF
18555
18556 fi
10f2d63a
VZ
18557fi
18558
18559if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18560 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18561#define wxUSE_LONGLONG 1
18562EOF
18563
18564fi
18565
e8f65ba6 18566if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18567 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18568#define wxUSE_GEOMETRY 1
18569EOF
18570
18571fi
18572
10f2d63a 18573if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18574 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18575#define wxUSE_DIALUP_MANAGER 1
18576EOF
18577
70f7a477 18578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18579fi
18580
18581if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18582 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18583#define wxUSE_STREAMS 1
18584EOF
18585
18586fi
18587
1e487827 18588
1e6feb95 18589if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18590 for ac_func in strptime
83307f33 18591do
698dcdb6 18592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 18593echo "configure:18594: checking for $ac_func" >&5
698dcdb6
VZ
18594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18595 echo $ac_n "(cached) $ac_c" 1>&6
18596else
18597 cat > conftest.$ac_ext <<EOF
6a30f1c8 18598#line 18599 "configure"
83307f33
VZ
18599#include "confdefs.h"
18600/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18601 which can conflict with char $ac_func(); below. */
83307f33
VZ
18602#include <assert.h>
18603/* Override any gcc2 internal prototype to avoid an error. */
18604/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18605 builtin and then its argument prototype would still apply. */
18606char $ac_func();
18607
18608int main() {
83307f33
VZ
18609
18610/* The GNU C library defines this for functions which it implements
18611 to always fail with ENOSYS. Some functions are actually named
18612 something starting with __ and the normal name is an alias. */
18613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18614choke me
18615#else
698dcdb6 18616$ac_func();
83307f33
VZ
18617#endif
18618
698dcdb6 18619; return 0; }
83307f33 18620EOF
6a30f1c8 18621if { (eval echo configure:18622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18622 rm -rf conftest*
18623 eval "ac_cv_func_$ac_func=yes"
18624else
18625 echo "configure: failed program was:" >&5
18626 cat conftest.$ac_ext >&5
18627 rm -rf conftest*
18628 eval "ac_cv_func_$ac_func=no"
18629fi
18630rm -f conftest*
18631fi
83307f33 18632
698dcdb6
VZ
18633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18634 echo "$ac_t""yes" 1>&6
18635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18636 cat >> confdefs.h <<EOF
18637#define $ac_tr_func 1
18638EOF
18639
18640else
18641 echo "$ac_t""no" 1>&6
83307f33
VZ
18642fi
18643done
18644
1e487827 18645
62cc730f 18646 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
6a30f1c8 18647echo "configure:18648: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18648if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18649 echo $ac_n "(cached) $ac_c" 1>&6
18650else
18651
18652 cat > conftest.$ac_ext <<EOF
6a30f1c8 18653#line 18654 "configure"
360d6699
VZ
18654#include "confdefs.h"
18655
b4085ce6 18656 #include <time.h>
698dcdb6
VZ
18657
18658int main() {
360d6699
VZ
18659
18660 int tz;
4f11a343 18661 tz = timezone;
698dcdb6
VZ
18662
18663; return 0; }
18664EOF
6a30f1c8 18665if { (eval echo configure:18666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18666 rm -rf conftest*
18667
4f11a343 18668 wx_cv_var_timezone=timezone
698dcdb6 18669
360d6699 18670else
698dcdb6
VZ
18671 echo "configure: failed program was:" >&5
18672 cat conftest.$ac_ext >&5
18673 rm -rf conftest*
18674
18675 cat > conftest.$ac_ext <<EOF
6a30f1c8 18676#line 18677 "configure"
360d6699
VZ
18677#include "confdefs.h"
18678
b4085ce6 18679 #include <time.h>
698dcdb6
VZ
18680
18681int main() {
360d6699
VZ
18682
18683 int tz;
18684 tz = _timezone;
698dcdb6
VZ
18685
18686; return 0; }
18687EOF
6a30f1c8 18688if { (eval echo configure:18689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18689 rm -rf conftest*
18690
360d6699 18691 wx_cv_var_timezone=_timezone
698dcdb6 18692
5357c8e8 18693else
698dcdb6
VZ
18694 echo "configure: failed program was:" >&5
18695 cat conftest.$ac_ext >&5
18696 rm -rf conftest*
18697
18698 cat > conftest.$ac_ext <<EOF
6a30f1c8 18699#line 18700 "configure"
5357c8e8
VZ
18700#include "confdefs.h"
18701
b4085ce6 18702 #include <time.h>
698dcdb6
VZ
18703
18704int main() {
5357c8e8
VZ
18705
18706 int tz;
4f11a343 18707 tz = __timezone;
698dcdb6
VZ
18708
18709; return 0; }
18710EOF
6a30f1c8 18711if { (eval echo configure:18712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18712 rm -rf conftest*
18713
4f11a343 18714 wx_cv_var_timezone=__timezone
698dcdb6 18715
360d6699 18716else
698dcdb6
VZ
18717 echo "configure: failed program was:" >&5
18718 cat conftest.$ac_ext >&5
18719 rm -rf conftest*
f9bc1684
VS
18720
18721 if test "$USE_DOS" = 0 ; then
62cc730f 18722 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18723 fi
18724
698dcdb6 18725
360d6699 18726fi
698dcdb6
VZ
18727rm -f conftest*
18728
18729
360d6699 18730fi
698dcdb6
VZ
18731rm -f conftest*
18732
18733
6232543b 18734fi
698dcdb6
VZ
18735rm -f conftest*
18736
18737
1e487827 18738fi
703e0a69 18739
698dcdb6
VZ
18740echo "$ac_t""$wx_cv_var_timezone" 1>&6
18741
f9bc1684 18742 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18743 cat >> confdefs.h <<EOF
360d6699
VZ
18744#define WX_TIMEZONE $wx_cv_var_timezone
18745EOF
18746
f9bc1684 18747 fi
698dcdb6
VZ
18748
18749 for ac_func in localtime
afc31813 18750do
698dcdb6 18751echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 18752echo "configure:18753: checking for $ac_func" >&5
698dcdb6
VZ
18753if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18754 echo $ac_n "(cached) $ac_c" 1>&6
18755else
18756 cat > conftest.$ac_ext <<EOF
6a30f1c8 18757#line 18758 "configure"
10f2d63a 18758#include "confdefs.h"
afc31813 18759/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18760 which can conflict with char $ac_func(); below. */
afc31813
VZ
18761#include <assert.h>
18762/* Override any gcc2 internal prototype to avoid an error. */
18763/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18764 builtin and then its argument prototype would still apply. */
18765char $ac_func();
18766
18767int main() {
afc31813
VZ
18768
18769/* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18773choke me
18774#else
698dcdb6 18775$ac_func();
afc31813
VZ
18776#endif
18777
698dcdb6 18778; return 0; }
10f2d63a 18779EOF
6a30f1c8 18780if { (eval echo configure:18781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18781 rm -rf conftest*
18782 eval "ac_cv_func_$ac_func=yes"
18783else
18784 echo "configure: failed program was:" >&5
18785 cat conftest.$ac_ext >&5
18786 rm -rf conftest*
18787 eval "ac_cv_func_$ac_func=no"
18788fi
18789rm -f conftest*
18790fi
afc31813 18791
698dcdb6
VZ
18792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18793 echo "$ac_t""yes" 1>&6
18794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18795 cat >> confdefs.h <<EOF
18796#define $ac_tr_func 1
18797EOF
18798
18799else
18800 echo "$ac_t""no" 1>&6
afc31813
VZ
18801fi
18802done
18803
1e487827 18804
698dcdb6
VZ
18805 if test "$ac_cv_func_localtime" = "yes"; then
18806 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6a30f1c8 18807echo "configure:18808: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18808if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18809 echo $ac_n "(cached) $ac_c" 1>&6
18810else
18811
18812 cat > conftest.$ac_ext <<EOF
6a30f1c8 18813#line 18814 "configure"
0470b1e6
VZ
18814#include "confdefs.h"
18815
b4085ce6 18816 #include <time.h>
698dcdb6
VZ
18817
18818int main() {
0470b1e6
VZ
18819
18820 struct tm tm;
18821 tm.tm_gmtoff++;
698dcdb6
VZ
18822
18823; return 0; }
18824EOF
6a30f1c8 18825if { (eval echo configure:18826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18826 rm -rf conftest*
18827
f03a98d8 18828 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18829
0470b1e6 18830else
698dcdb6
VZ
18831 echo "configure: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 rm -rf conftest*
18834 wx_cv_struct_tm_has_gmtoff=no
18835
0470b1e6 18836fi
698dcdb6
VZ
18837rm -f conftest*
18838
1e487827 18839fi
698dcdb6
VZ
18840
18841echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18842 fi
18843
18844 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18845 cat >> confdefs.h <<\EOF
6232543b
VS
18846#define WX_GMTOFF_IN_TM 1
18847EOF
0470b1e6 18848
3fcdd07b
VZ
18849 fi
18850
698dcdb6 18851 for ac_func in gettimeofday ftime
3fcdd07b 18852do
698dcdb6 18853echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 18854echo "configure:18855: checking for $ac_func" >&5
698dcdb6
VZ
18855if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18856 echo $ac_n "(cached) $ac_c" 1>&6
18857else
18858 cat > conftest.$ac_ext <<EOF
6a30f1c8 18859#line 18860 "configure"
3fcdd07b
VZ
18860#include "confdefs.h"
18861/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18862 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18863#include <assert.h>
18864/* Override any gcc2 internal prototype to avoid an error. */
18865/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18866 builtin and then its argument prototype would still apply. */
18867char $ac_func();
18868
18869int main() {
3fcdd07b
VZ
18870
18871/* The GNU C library defines this for functions which it implements
18872 to always fail with ENOSYS. Some functions are actually named
18873 something starting with __ and the normal name is an alias. */
18874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18875choke me
18876#else
698dcdb6 18877$ac_func();
3fcdd07b
VZ
18878#endif
18879
698dcdb6
VZ
18880; return 0; }
18881EOF
6a30f1c8 18882if { (eval echo configure:18883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18883 rm -rf conftest*
18884 eval "ac_cv_func_$ac_func=yes"
18885else
18886 echo "configure: failed program was:" >&5
18887 cat conftest.$ac_ext >&5
18888 rm -rf conftest*
18889 eval "ac_cv_func_$ac_func=no"
18890fi
18891rm -f conftest*
18892fi
18893
18894if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18895 echo "$ac_t""yes" 1>&6
18896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18897 cat >> confdefs.h <<EOF
18898#define $ac_tr_func 1
3fcdd07b
VZ
18899EOF
18900 break
698dcdb6
VZ
18901else
18902 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18903fi
18904done
18905
afc31813 18906
698dcdb6
VZ
18907 if test "$ac_cv_func_gettimeofday" = "yes"; then
18908 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
6a30f1c8 18909echo "configure:18910: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18910if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18911 echo $ac_n "(cached) $ac_c" 1>&6
18912else
18913
18914
18915 ac_ext=C
18916# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18917ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18918ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18919ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18920cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18921
698dcdb6
VZ
18922
18923 cat > conftest.$ac_ext <<EOF
6a30f1c8 18924#line 18925 "configure"
10f2d63a 18925#include "confdefs.h"
afc31813
VZ
18926
18927 #include <sys/time.h>
18928 #include <unistd.h>
698dcdb6
VZ
18929
18930int main() {
afc31813
VZ
18931
18932 struct timeval tv;
776862b4 18933 gettimeofday(&tv, NULL);
698dcdb6
VZ
18934
18935; return 0; }
18936EOF
6a30f1c8 18937if { (eval echo configure:18938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18938 rm -rf conftest*
afc31813 18939 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18940else
698dcdb6
VZ
18941 echo "configure: failed program was:" >&5
18942 cat conftest.$ac_ext >&5
18943 rm -rf conftest*
18944 cat > conftest.$ac_ext <<EOF
6a30f1c8 18945#line 18946 "configure"
10f2d63a 18946#include "confdefs.h"
afc31813
VZ
18947
18948 #include <sys/time.h>
18949 #include <unistd.h>
698dcdb6
VZ
18950
18951int main() {
afc31813
VZ
18952
18953 struct timeval tv;
18954 gettimeofday(&tv);
698dcdb6
VZ
18955
18956; return 0; }
18957EOF
6a30f1c8 18958if { (eval echo configure:18959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18959 rm -rf conftest*
afc31813 18960 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18961else
698dcdb6
VZ
18962 echo "configure: failed program was:" >&5
18963 cat conftest.$ac_ext >&5
18964 rm -rf conftest*
776862b4
VZ
18965
18966 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18967 wx_cv_func_gettimeofday_has_2_args=unknown
18968
698dcdb6 18969
10f2d63a 18970fi
698dcdb6
VZ
18971rm -f conftest*
18972
10f2d63a 18973fi
698dcdb6 18974rm -f conftest*
afc31813 18975 ac_ext=c
698dcdb6 18976# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18977ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18978ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18979ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18980cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18981
698dcdb6 18982
afc31813 18983fi
698dcdb6
VZ
18984
18985echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18986
afc31813 18987 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18988 cat >> confdefs.h <<\EOF
afc31813
VZ
18989#define WX_GETTIMEOFDAY_NO_TZ 1
18990EOF
18991
18992 fi
18993 fi
18994
698dcdb6 18995 cat >> confdefs.h <<\EOF
afc31813
VZ
18996#define wxUSE_TIMEDATE 1
18997EOF
18998
18999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19000fi
19001
698dcdb6 19002
0feee163 19003if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 19004 if test "$wxUSE_X11" = "1"; then
0feee163
VZ
19005 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
19006 wxUSE_SOCKETS="no"
19007 fi
6c657b52
VS
19008
19009 if test "$wxUSE_MGL" = "1"; then
19010 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19011 wxUSE_SOCKETS="no"
19012 fi
0feee163 19013fi
b089607b 19014
0feee163
VZ
19015if test "$wxUSE_SOCKETS" = "yes"; then
19016 if test "$TOOLKIT" != "MSW"; then
3a922bb4 19017 echo $ac_n "checking for socket""... $ac_c" 1>&6
6a30f1c8 19018echo "configure:19019: checking for socket" >&5
698dcdb6
VZ
19019if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19021else
698dcdb6 19022 cat > conftest.$ac_ext <<EOF
6a30f1c8 19023#line 19024 "configure"
c63c7106
VZ
19024#include "confdefs.h"
19025/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19026 which can conflict with char socket(); below. */
c63c7106
VZ
19027#include <assert.h>
19028/* Override any gcc2 internal prototype to avoid an error. */
19029/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19030 builtin and then its argument prototype would still apply. */
19031char socket();
19032
19033int main() {
c63c7106
VZ
19034
19035/* The GNU C library defines this for functions which it implements
19036 to always fail with ENOSYS. Some functions are actually named
19037 something starting with __ and the normal name is an alias. */
19038#if defined (__stub_socket) || defined (__stub___socket)
19039choke me
19040#else
698dcdb6 19041socket();
c63c7106
VZ
19042#endif
19043
698dcdb6
VZ
19044; return 0; }
19045EOF
6a30f1c8 19046if { (eval echo configure:19047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19047 rm -rf conftest*
19048 eval "ac_cv_func_socket=yes"
19049else
19050 echo "configure: failed program was:" >&5
19051 cat conftest.$ac_ext >&5
19052 rm -rf conftest*
19053 eval "ac_cv_func_socket=no"
19054fi
19055rm -f conftest*
19056fi
19057
19058if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19059 echo "$ac_t""yes" 1>&6
c63c7106
VZ
19060 :
19061else
698dcdb6
VZ
19062 echo "$ac_t""no" 1>&6
19063echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6a30f1c8 19064echo "configure:19065: checking for socket in -lsocket" >&5
698dcdb6
VZ
19065ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19068else
698dcdb6 19069 ac_save_LIBS="$LIBS"
c63c7106 19070LIBS="-lsocket $LIBS"
698dcdb6 19071cat > conftest.$ac_ext <<EOF
6a30f1c8 19072#line 19073 "configure"
c63c7106
VZ
19073#include "confdefs.h"
19074/* Override any gcc2 internal prototype to avoid an error. */
19075/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19076 builtin and then its argument prototype would still apply. */
19077char socket();
19078
19079int main() {
19080socket()
19081; return 0; }
19082EOF
6a30f1c8 19083if { (eval echo configure:19084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19084 rm -rf conftest*
19085 eval "ac_cv_lib_$ac_lib_var=yes"
19086else
19087 echo "configure: failed program was:" >&5
19088 cat conftest.$ac_ext >&5
19089 rm -rf conftest*
19090 eval "ac_cv_lib_$ac_lib_var=no"
19091fi
19092rm -f conftest*
19093LIBS="$ac_save_LIBS"
19094
19095fi
19096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19097 echo "$ac_t""yes" 1>&6
d558c907
VS
19098 if test "$INET_LINK" != " -lsocket"; then
19099 INET_LINK="$INET_LINK -lsocket"
19100 fi
c63c7106 19101else
698dcdb6 19102 echo "$ac_t""no" 1>&6
afc31813 19103
3a922bb4
RL
19104 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19105 wxUSE_SOCKETS=no
19106
698dcdb6 19107
6232543b 19108fi
b089607b 19109
3a922bb4 19110
1e487827 19111fi
afc31813 19112
3a922bb4 19113 fi
0feee163 19114fi
51a9faba 19115
0feee163
VZ
19116if test "$wxUSE_SOCKETS" = "yes" ; then
19117 if test "$TOOLKIT" != "MSW"; then
3a922bb4 19118 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
6a30f1c8 19119echo "configure:19120: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
19120if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19121 echo $ac_n "(cached) $ac_c" 1>&6
19122else
19123
3a922bb4
RL
19124
19125 ac_ext=C
698dcdb6 19126# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 19127ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
19128ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19129ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19130cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 19131
698dcdb6 19132
3a922bb4 19133 cat > conftest.$ac_ext <<EOF
6a30f1c8 19134#line 19135 "configure"
afc31813 19135#include "confdefs.h"
51a9faba 19136
3a922bb4
RL
19137 #include <sys/types.h>
19138 #include <sys/socket.h>
19139
698dcdb6 19140int main() {
51a9faba 19141
3a922bb4
RL
19142 socklen_t len;
19143 getsockname(0, 0, &len);
19144
698dcdb6
VZ
19145; return 0; }
19146EOF
6a30f1c8 19147if { (eval echo configure:19148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19148 rm -rf conftest*
51a9faba 19149 wx_cv_type_getsockname3=socklen_t
afc31813 19150else
698dcdb6
VZ
19151 echo "configure: failed program was:" >&5
19152 cat conftest.$ac_ext >&5
19153 rm -rf conftest*
19154 cat > conftest.$ac_ext <<EOF
6a30f1c8 19155#line 19156 "configure"
afc31813 19156#include "confdefs.h"
51a9faba 19157
3a922bb4
RL
19158 #include <sys/types.h>
19159 #include <sys/socket.h>
19160
698dcdb6 19161int main() {
51a9faba 19162
3a922bb4
RL
19163 size_t len;
19164 getsockname(0, 0, &len);
19165
698dcdb6
VZ
19166; return 0; }
19167EOF
6a30f1c8 19168if { (eval echo configure:19169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19169 rm -rf conftest*
51a9faba 19170 wx_cv_type_getsockname3=size_t
afc31813 19171else
698dcdb6
VZ
19172 echo "configure: failed program was:" >&5
19173 cat conftest.$ac_ext >&5
19174 rm -rf conftest*
19175 cat > conftest.$ac_ext <<EOF
6a30f1c8 19176#line 19177 "configure"
afc31813 19177#include "confdefs.h"
51a9faba 19178
3a922bb4
RL
19179 #include <sys/types.h>
19180 #include <sys/socket.h>
19181
698dcdb6 19182int main() {
51a9faba 19183
3a922bb4
RL
19184 int len;
19185 getsockname(0, 0, &len);
19186
698dcdb6
VZ
19187; return 0; }
19188EOF
6a30f1c8 19189if { (eval echo configure:19190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19190 rm -rf conftest*
51a9faba 19191 wx_cv_type_getsockname3=int
afc31813 19192else
698dcdb6
VZ
19193 echo "configure: failed program was:" >&5
19194 cat conftest.$ac_ext >&5
19195 rm -rf conftest*
19196 wx_cv_type_getsockname3=unknown
3a922bb4 19197
afc31813 19198fi
698dcdb6 19199rm -f conftest*
3a922bb4 19200
afc31813 19201fi
698dcdb6 19202rm -f conftest*
3a922bb4 19203
afc31813 19204fi
698dcdb6 19205rm -f conftest*
51a9faba 19206
3a922bb4 19207 ac_ext=c
698dcdb6 19208# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19209ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
19210ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19211ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19212cross_compiling=$ac_cv_prog_cc_cross
afc31813 19213
3a922bb4 19214
51a9faba 19215fi
698dcdb6
VZ
19216
19217echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19218
3a922bb4
RL
19219 if test "$wx_cv_type_getsockname3" = "unknown"; then
19220 wxUSE_SOCKETS=no
19221 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19222 else
19223 cat >> confdefs.h <<EOF
51a9faba
VZ
19224#define SOCKLEN_T $wx_cv_type_getsockname3
19225EOF
19226
3a922bb4 19227 fi
51a9faba
VZ
19228 fi
19229fi
afc31813 19230
51a9faba 19231if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 19232 cat >> confdefs.h <<\EOF
afc31813
VZ
19233#define wxUSE_SOCKETS 1
19234EOF
19235
70f7a477 19236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19237fi
19238
698dcdb6 19239
dc3d889d
VZ
19240if test "$wxUSE_GUI" = "yes"; then
19241
156b2523
GD
19242 if test "$TOOLKIT" = "MAC"; then
19243 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19244 wxUSE_JOYSTICK=no
19245 fi
19246 if test "$TOOLKIT" = "MOTIF"; then
19247 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19248 wxUSE_JOYSTICK=no
f79bd02d
JS
19249 fi
19250 if test "$TOOLKIT" = "X11"; then
19251 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19252 wxUSE_JOYSTICK=no
156b2523
GD
19253 fi
19254
3a922bb4
RL
19255 if test "$TOOLKIT" != "MSW"; then
19256 if test "$wxUSE_JOYSTICK" = "yes"; then
19257 for ac_hdr in linux/joystick.h
10f2d63a 19258do
698dcdb6
VZ
19259ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19260echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a30f1c8 19261echo "configure:19262: checking for $ac_hdr" >&5
698dcdb6
VZ
19262if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19263 echo $ac_n "(cached) $ac_c" 1>&6
19264else
19265 cat > conftest.$ac_ext <<EOF
6a30f1c8 19266#line 19267 "configure"
10f2d63a 19267#include "confdefs.h"
698dcdb6
VZ
19268#include <$ac_hdr>
19269EOF
19270ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 19271{ (eval echo configure:19272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19272ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19273if test -z "$ac_err"; then
19274 rm -rf conftest*
19275 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19276else
698dcdb6
VZ
19277 echo "$ac_err" >&5
19278 echo "configure: failed program was:" >&5
10f2d63a 19279 cat conftest.$ac_ext >&5
698dcdb6
VZ
19280 rm -rf conftest*
19281 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19282fi
698dcdb6 19283rm -f conftest*
10f2d63a 19284fi
698dcdb6
VZ
19285if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19286 echo "$ac_t""yes" 1>&6
19287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19288 cat >> confdefs.h <<EOF
19289#define $ac_tr_hdr 1
10f2d63a 19290EOF
698dcdb6
VZ
19291
19292else
19293 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19294fi
19295done
19296
3a922bb4
RL
19297 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19298 wxUSE_JOYSTICK=no
156b2523 19299 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19300 fi
19301 fi
19302 fi
b089607b 19303
3a922bb4
RL
19304 if test "$wxUSE_JOYSTICK" = "yes"; then
19305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19306#define wxUSE_JOYSTICK 1
19307EOF
19308
3a922bb4
RL
19309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19310 fi
dc3d889d
VZ
19311fi
19312
698dcdb6 19313
b089607b
VZ
19314if test "$TOOLKIT" != "MSW"; then
19315
3a922bb4
RL
19316 HAVE_DL_FUNCS=0
19317 HAVE_SHL_FUNCS=0
0b9ab0bd 19318 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19319 if test "$USE_DARWIN" = 1; then
19320 HAVE_DL_FUNCS=1
19321 else
19322 for ac_func in dlopen
10f2d63a 19323do
698dcdb6 19324echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 19325echo "configure:19326: checking for $ac_func" >&5
698dcdb6
VZ
19326if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19327 echo $ac_n "(cached) $ac_c" 1>&6
19328else
19329 cat > conftest.$ac_ext <<EOF
6a30f1c8 19330#line 19331 "configure"
10f2d63a
VZ
19331#include "confdefs.h"
19332/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19333 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19334#include <assert.h>
19335/* Override any gcc2 internal prototype to avoid an error. */
19336/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19337 builtin and then its argument prototype would still apply. */
19338char $ac_func();
19339
19340int main() {
10f2d63a
VZ
19341
19342/* The GNU C library defines this for functions which it implements
19343 to always fail with ENOSYS. Some functions are actually named
19344 something starting with __ and the normal name is an alias. */
19345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19346choke me
19347#else
698dcdb6 19348$ac_func();
10f2d63a
VZ
19349#endif
19350
698dcdb6
VZ
19351; return 0; }
19352EOF
6a30f1c8 19353if { (eval echo configure:19354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19354 rm -rf conftest*
19355 eval "ac_cv_func_$ac_func=yes"
19356else
19357 echo "configure: failed program was:" >&5
19358 cat conftest.$ac_ext >&5
19359 rm -rf conftest*
19360 eval "ac_cv_func_$ac_func=no"
19361fi
19362rm -f conftest*
19363fi
19364
19365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19366 echo "$ac_t""yes" 1>&6
19367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19368 cat >> confdefs.h <<EOF
19369#define $ac_tr_func 1
19370EOF
19371
3a922bb4 19372 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19373#define HAVE_DLOPEN 1
19374EOF
19375
3a922bb4
RL
19376 HAVE_DL_FUNCS=1
19377
10f2d63a 19378else
698dcdb6
VZ
19379 echo "$ac_t""no" 1>&6
19380echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6a30f1c8 19381echo "configure:19382: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19382ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19383if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19384 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19385else
698dcdb6 19386 ac_save_LIBS="$LIBS"
10f2d63a 19387LIBS="-ldl $LIBS"
698dcdb6 19388cat > conftest.$ac_ext <<EOF
6a30f1c8 19389#line 19390 "configure"
10f2d63a
VZ
19390#include "confdefs.h"
19391/* Override any gcc2 internal prototype to avoid an error. */
19392/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19393 builtin and then its argument prototype would still apply. */
19394char dlopen();
19395
19396int main() {
19397dlopen()
19398; return 0; }
19399EOF
6a30f1c8 19400if { (eval echo configure:19401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19401 rm -rf conftest*
19402 eval "ac_cv_lib_$ac_lib_var=yes"
19403else
19404 echo "configure: failed program was:" >&5
19405 cat conftest.$ac_ext >&5
19406 rm -rf conftest*
19407 eval "ac_cv_lib_$ac_lib_var=no"
19408fi
19409rm -f conftest*
19410LIBS="$ac_save_LIBS"
19411
19412fi
19413if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19414 echo "$ac_t""yes" 1>&6
19415
3a922bb4 19416 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19417#define HAVE_DLOPEN 1
19418EOF
19419
3a922bb4 19420 HAVE_DL_FUNCS=1
3d63bc3a 19421 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19422
10f2d63a 19423else
698dcdb6 19424 echo "$ac_t""no" 1>&6
10f2d63a 19425
3a922bb4 19426 for ac_func in shl_load
10f2d63a 19427do
698dcdb6 19428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 19429echo "configure:19430: checking for $ac_func" >&5
698dcdb6
VZ
19430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19431 echo $ac_n "(cached) $ac_c" 1>&6
19432else
19433 cat > conftest.$ac_ext <<EOF
6a30f1c8 19434#line 19435 "configure"
10f2d63a
VZ
19435#include "confdefs.h"
19436/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19437 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19438#include <assert.h>
19439/* Override any gcc2 internal prototype to avoid an error. */
19440/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19441 builtin and then its argument prototype would still apply. */
19442char $ac_func();
19443
19444int main() {
10f2d63a
VZ
19445
19446/* The GNU C library defines this for functions which it implements
19447 to always fail with ENOSYS. Some functions are actually named
19448 something starting with __ and the normal name is an alias. */
19449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19450choke me
19451#else
698dcdb6 19452$ac_func();
10f2d63a
VZ
19453#endif
19454
698dcdb6
VZ
19455; return 0; }
19456EOF
6a30f1c8 19457if { (eval echo configure:19458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19458 rm -rf conftest*
19459 eval "ac_cv_func_$ac_func=yes"
19460else
19461 echo "configure: failed program was:" >&5
19462 cat conftest.$ac_ext >&5
19463 rm -rf conftest*
19464 eval "ac_cv_func_$ac_func=no"
19465fi
19466rm -f conftest*
19467fi
19468
19469if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19470 echo "$ac_t""yes" 1>&6
19471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19472 cat >> confdefs.h <<EOF
19473#define $ac_tr_func 1
19474EOF
19475
3a922bb4 19476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19477#define HAVE_SHL_LOAD 1
19478EOF
19479
3a922bb4
RL
19480 HAVE_SHL_FUNCS=1
19481
10f2d63a 19482else
698dcdb6
VZ
19483 echo "$ac_t""no" 1>&6
19484echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
6a30f1c8 19485echo "configure:19486: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19486ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19488 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19489else
698dcdb6 19490 ac_save_LIBS="$LIBS"
f6bcfd97 19491LIBS="-lshl_load $LIBS"
698dcdb6 19492cat > conftest.$ac_ext <<EOF
6a30f1c8 19493#line 19494 "configure"
f6bcfd97
BP
19494#include "confdefs.h"
19495/* Override any gcc2 internal prototype to avoid an error. */
19496/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19497 builtin and then its argument prototype would still apply. */
19498char dld();
19499
19500int main() {
19501dld()
19502; return 0; }
19503EOF
6a30f1c8 19504if { (eval echo configure:19505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19505 rm -rf conftest*
19506 eval "ac_cv_lib_$ac_lib_var=yes"
19507else
19508 echo "configure: failed program was:" >&5
19509 cat conftest.$ac_ext >&5
19510 rm -rf conftest*
19511 eval "ac_cv_lib_$ac_lib_var=no"
19512fi
19513rm -f conftest*
19514LIBS="$ac_save_LIBS"
f6bcfd97 19515
698dcdb6
VZ
19516fi
19517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19518 echo "$ac_t""yes" 1>&6
19519
3a922bb4 19520 HAVE_SHL_FUNCS=1
3d63bc3a 19521 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19522
698dcdb6
VZ
19523else
19524 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19525fi
19526
3a922bb4 19527
10f2d63a
VZ
19528fi
19529done
19530
3a922bb4 19531
10f2d63a
VZ
19532fi
19533
3a922bb4 19534
10f2d63a
VZ
19535fi
19536done
19537
1e487827 19538
3a922bb4
RL
19539 if test "$HAVE_DL_FUNCS" = 1; then
19540 for ac_func in dlerror
f6bcfd97 19541do
698dcdb6 19542echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a30f1c8 19543echo "configure:19544: checking for $ac_func" >&5
698dcdb6
VZ
19544if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19545 echo $ac_n "(cached) $ac_c" 1>&6
19546else
19547 cat > conftest.$ac_ext <<EOF
6a30f1c8 19548#line 19549 "configure"
f6bcfd97
BP
19549#include "confdefs.h"
19550/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19551 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19552#include <assert.h>
19553/* Override any gcc2 internal prototype to avoid an error. */
19554/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19555 builtin and then its argument prototype would still apply. */
19556char $ac_func();
19557
19558int main() {
f6bcfd97
BP
19559
19560/* The GNU C library defines this for functions which it implements
19561 to always fail with ENOSYS. Some functions are actually named
19562 something starting with __ and the normal name is an alias. */
19563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19564choke me
19565#else
698dcdb6 19566$ac_func();
f6bcfd97
BP
19567#endif
19568
698dcdb6
VZ
19569; return 0; }
19570EOF
6a30f1c8 19571if { (eval echo configure:19572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19572 rm -rf conftest*
19573 eval "ac_cv_func_$ac_func=yes"
19574else
19575 echo "configure: failed program was:" >&5
19576 cat conftest.$ac_ext >&5
19577 rm -rf conftest*
19578 eval "ac_cv_func_$ac_func=no"
19579fi
19580rm -f conftest*
19581fi
19582
19583if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19584 echo "$ac_t""yes" 1>&6
19585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19586 cat >> confdefs.h <<EOF
19587#define $ac_tr_func 1
19588EOF
19589 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19590#define HAVE_DLERROR 1
19591EOF
19592
19593else
698dcdb6
VZ
19594 echo "$ac_t""no" 1>&6
19595echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
6a30f1c8 19596echo "configure:19597: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19597ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19598if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19599 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19600else
698dcdb6 19601 ac_save_LIBS="$LIBS"
f6bcfd97 19602LIBS="-ldl $LIBS"
698dcdb6 19603cat > conftest.$ac_ext <<EOF
6a30f1c8 19604#line 19605 "configure"
f6bcfd97
BP
19605#include "confdefs.h"
19606/* Override any gcc2 internal prototype to avoid an error. */
19607/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19608 builtin and then its argument prototype would still apply. */
19609char dlerror();
19610
19611int main() {
19612dlerror()
19613; return 0; }
19614EOF
6a30f1c8 19615if { (eval echo configure:19616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19616 rm -rf conftest*
19617 eval "ac_cv_lib_$ac_lib_var=yes"
19618else
19619 echo "configure: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19621 rm -rf conftest*
19622 eval "ac_cv_lib_$ac_lib_var=no"
19623fi
19624rm -f conftest*
19625LIBS="$ac_save_LIBS"
19626
19627fi
19628if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19629 echo "$ac_t""yes" 1>&6
19630 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19631#define HAVE_DLERROR 1
19632EOF
19633
698dcdb6
VZ
19634else
19635 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19636fi
19637
19638fi
19639done
19640
3a922bb4
RL
19641 fi
19642 fi
f6bcfd97 19643
3a922bb4
RL
19644 if test "$HAVE_DL_FUNCS" = 0; then
19645 if test "$HAVE_SHL_FUNCS" = 0; then
19646 if test "$USE_UNIX" = 1; then
19647 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19648 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19649 wxUSE_DYNLIB_CLASS=no
19650 else
19651 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19652 fi
19653 fi
10f2d63a
VZ
19654 fi
19655 fi
19656fi
19657
0b9ab0bd
RL
19658if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19659 cat >> confdefs.h <<\EOF
19660#define wxUSE_DYNAMIC_LOADER 1
19661EOF
19662
19663elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19664 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19665#define wxUSE_DYNLIB_CLASS 1
19666EOF
19667
19668fi
19669
698dcdb6 19670
1e6feb95
VZ
19671if test "$wxUSE_FONTMAP" = "yes" ; then
19672 cat >> confdefs.h <<\EOF
19673#define wxUSE_FONTMAP 1
19674EOF
19675
19676fi
19677
10f2d63a 19678if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19679 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19680#define wxUSE_UNICODE 1
19681EOF
19682
3bd8fb5f 19683
bbc3925a
VS
19684 if test "$wxUSE_MSW" != 1; then
19685 wxUSE_UNICODE_MSLU=no
19686 fi
a72a4bfa
VS
19687
19688 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19689 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
6a30f1c8 19690echo "configure:19691: checking for main in -lunicows" >&5
a72a4bfa
VS
19691ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19692if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19693 echo $ac_n "(cached) $ac_c" 1>&6
19694else
19695 ac_save_LIBS="$LIBS"
19696LIBS="-lunicows $LIBS"
19697cat > conftest.$ac_ext <<EOF
6a30f1c8 19698#line 19699 "configure"
a72a4bfa
VS
19699#include "confdefs.h"
19700
19701int main() {
19702main()
19703; return 0; }
19704EOF
6a30f1c8 19705if { (eval echo configure:19706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19706 rm -rf conftest*
19707 eval "ac_cv_lib_$ac_lib_var=yes"
19708else
19709 echo "configure: failed program was:" >&5
19710 cat conftest.$ac_ext >&5
19711 rm -rf conftest*
19712 eval "ac_cv_lib_$ac_lib_var=no"
19713fi
19714rm -f conftest*
19715LIBS="$ac_save_LIBS"
19716
19717fi
19718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19719 echo "$ac_t""yes" 1>&6
19720
19721 cat >> confdefs.h <<\EOF
19722#define wxUSE_UNICODE_MSLU 1
19723EOF
19724
19725
19726else
19727 echo "$ac_t""no" 1>&6
19728
19729 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19730 Applications will only run on Windows NT/2000/XP!" 1>&2
19731 wxUSE_UNICODE_MSLU=no
19732
19733fi
19734
19735 fi
10f2d63a
VZ
19736fi
19737
10f2d63a 19738if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19740#define wxUSE_EXPERIMENTAL_PRINTF 1
19741EOF
19742
19743fi
19744
698dcdb6 19745
698dcdb6 19746
10f2d63a
VZ
19747IODBC_C_SRC=""
19748if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19749 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19750#define wxUSE_ODBC 1
19751EOF
19752
19753 WXODBCFLAG="-D_IODBC_"
19754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19755fi
19756
698dcdb6 19757
10f2d63a 19758if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19759 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19760#define wxUSE_POSTSCRIPT 1
19761EOF
19762
19763fi
19764
698dcdb6 19765cat >> confdefs.h <<\EOF
10f2d63a
VZ
19766#define wxUSE_AFM_FOR_POSTSCRIPT 1
19767EOF
19768
698dcdb6
VZ
19769
19770cat >> confdefs.h <<\EOF
10f2d63a
VZ
19771#define wxUSE_NORMALIZED_PS_FONTS 1
19772EOF
19773
698dcdb6
VZ
19774
19775
10f2d63a 19776if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19777 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19778#define wxUSE_CONSTRAINTS 1
19779EOF
19780
19781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19782fi
19783
19784if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19785 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19786 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19787 wxUSE_MDI_ARCHITECTURE=no
19788 fi
19789
19790 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19791 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19792#define wxUSE_MDI_ARCHITECTURE 1
19793EOF
19794
fc26f4ab
RL
19795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19796 fi
10f2d63a
VZ
19797fi
19798
19799if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19800 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19801#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19802EOF
19803
19804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19805 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19807 fi
19808fi
19809
19810if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19811 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19812#define wxUSE_HELP 1
19813EOF
19814
19815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19816
77e13408 19817 if test "$wxUSE_MSW" = 1; then
031d8228 19818 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19819 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19820#define wxUSE_MS_HTML_HELP 1
19821EOF
19822
3e44f09d 19823 fi
3379ed37 19824 fi
031d8228
VS
19825
19826 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19827 if test "$wxUSE_HTML" = "yes"; then
19828 cat >> confdefs.h <<\EOF
19829#define wxUSE_WXHTML_HELP 1
19830EOF
19831
19832 else
19833 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19834 wxUSE_WXHTML_HELP=no
19835 fi
19836 fi
10f2d63a
VZ
19837fi
19838
19839if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19840 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19841 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19842 else
698dcdb6 19843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19844#define wxUSE_PRINTING_ARCHITECTURE 1
19845EOF
19846
19847 fi
19848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19849fi
19850
19851if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19852 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19853#define wxUSE_PROLOGIO 1
19854EOF
19855
19856fi
19857
19858if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19859 if test "$wxUSE_NANOX" = "yes"; then
19860 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19861 else
19862 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19863#define wxUSE_RESOURCES 1
19864EOF
19865
e334d0ea
JS
19866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19867 fi
10f2d63a
VZ
19868fi
19869
19870if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19871 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19872#define wxUSE_X_RESOURCES 1
19873EOF
19874
19875fi
19876
698dcdb6 19877
77e13408
RL
19878if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19879 -o "$wxUSE_CLIPBOARD" = "yes" \
19880 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19881 for ac_hdr in ole2.h
10f2d63a 19882do
698dcdb6
VZ
19883ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19884echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a30f1c8 19885echo "configure:19886: checking for $ac_hdr" >&5
698dcdb6
VZ
19886if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19887 echo $ac_n "(cached) $ac_c" 1>&6
19888else
19889 cat > conftest.$ac_ext <<EOF
6a30f1c8 19890#line 19891 "configure"
10f2d63a 19891#include "confdefs.h"
698dcdb6
VZ
19892#include <$ac_hdr>
19893EOF
19894ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a30f1c8 19895{ (eval echo configure:19896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19896ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19897if test -z "$ac_err"; then
19898 rm -rf conftest*
19899 eval "ac_cv_header_$ac_safe=yes"
1e487827 19900else
698dcdb6
VZ
19901 echo "$ac_err" >&5
19902 echo "configure: failed program was:" >&5
10f2d63a 19903 cat conftest.$ac_ext >&5
698dcdb6
VZ
19904 rm -rf conftest*
19905 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19906fi
698dcdb6 19907rm -f conftest*
10f2d63a 19908fi
698dcdb6
VZ
19909if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19910 echo "$ac_t""yes" 1>&6
19911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19912 cat >> confdefs.h <<EOF
19913#define $ac_tr_hdr 1
10f2d63a 19914EOF
698dcdb6
VZ
19915
19916else
19917 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19918fi
19919done
19920
698dcdb6 19921
2b9bdf71
VZ
19922 if test "$ac_cv_header_ole2_h" = "yes" ; then
19923 if test "$GCC" = yes ; then
19924 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19925 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19926 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19927 cat >> confdefs.h <<\EOF
4f11a343
VS
19928#define wxUSE_OLE 1
19929EOF
19930
b64f0a5f 19931
2b9bdf71
VZ
19932 fi
19933
19934 cat >> confdefs.h <<\EOF
19935#define wxUSE_DATAOBJ 1
19936EOF
19937
19938 else
19939 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19940
19941 wxUSE_CLIPBOARD=no
19942 wxUSE_DRAG_AND_DROP=no
19943 wxUSE_DATAOBJ=no
19944 fi
19945
77e13408 19946 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19947 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19948#define wxUSE_METAFILE 1
19949EOF
19950
2b9bdf71
VZ
19951
19952 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19953#define wxUSE_ENH_METAFILE 1
19954EOF
19955
2b9bdf71
VZ
19956 fi
19957fi
19958
19959if test "$wxUSE_IPC" = "yes"; then
19960 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19961 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19962 fi
19963
19964 cat >> confdefs.h <<\EOF
19965#define wxUSE_IPC 1
19966EOF
19967
19968fi
19969
19970if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52
VS
19971 if test "$wxUSE_MGL" = 1; then
19972 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19973 wxUSE_CLIPBOARD=no
19974 fi
19975
19976 if test "$wxUSE_CLIPBOARD" = "yes"; then
19977 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19978#define wxUSE_CLIPBOARD 1
19979EOF
19980
673f4220 19981
6c657b52 19982 cat >> confdefs.h <<\EOF
673f4220
VZ
19983#define wxUSE_DATAOBJ 1
19984EOF
19985
6c657b52 19986 fi
2b9bdf71
VZ
19987fi
19988
19989if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19990 if test "$wxUSE_GTK" = 1; then
19991 if test "$WXGTK12" != 1; then
156b2523 19992 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19993 wxUSE_DRAG_AND_DROP=no
19994 fi
19995 fi
19996
2b9bdf71 19997 if test "$wxUSE_MOTIF" = 1; then
156b2523 19998 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19999 wxUSE_DRAG_AND_DROP=no
20000 fi
20001
f79bd02d
JS
20002 if test "$wxUSE_X11" = 1; then
20003 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20004 wxUSE_DRAG_AND_DROP=no
20005 fi
20006
6c657b52
VS
20007 if test "$wxUSE_MGL" = 1; then
20008 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20009 wxUSE_DRAG_AND_DROP=no
20010 fi
20011
10f2d63a 20012 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 20013 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20014#define wxUSE_DRAG_AND_DROP 1
20015EOF
20016
20017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20018 fi
20019
20020fi
20021
20022if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 20023 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20024#define wxUSE_SPLINES 1
20025EOF
20026
20027fi
20028
698dcdb6 20029
1e6feb95
VZ
20030USES_CONTROLS=0
20031if test "$wxUSE_CONTROLS" = "yes"; then
20032 USES_CONTROLS=1
20033fi
20034
10f2d63a 20035if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 20036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20037#define wxUSE_ACCEL 1
20038EOF
20039
1e6feb95
VZ
20040 USES_CONTROLS=1
20041fi
20042
20043if test "$wxUSE_BUTTON" = "yes"; then
20044 cat >> confdefs.h <<\EOF
20045#define wxUSE_BUTTON 1
20046EOF
20047
20048 USES_CONTROLS=1
20049fi
20050
20051if test "$wxUSE_BMPBUTTON" = "yes"; then
20052 cat >> confdefs.h <<\EOF
20053#define wxUSE_BMPBUTTON 1
20054EOF
20055
20056 USES_CONTROLS=1
20057fi
20058
20059if test "$wxUSE_CALCTRL" = "yes"; then
20060 cat >> confdefs.h <<\EOF
20061#define wxUSE_CALENDARCTRL 1
20062EOF
20063
20064 USES_CONTROLS=1
20065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20066fi
20067
20068if test "$wxUSE_CARET" = "yes"; then
698dcdb6 20069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20070#define wxUSE_CARET 1
20071EOF
20072
1e6feb95 20073 USES_CONTROLS=1
10f2d63a
VZ
20074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20075fi
20076
20077if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 20078 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20079#define wxUSE_COMBOBOX 1
20080EOF
20081
1e6feb95 20082 USES_CONTROLS=1
10f2d63a
VZ
20083fi
20084
20085if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 20086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20087#define wxUSE_CHOICE 1
20088EOF
20089
1e6feb95 20090 USES_CONTROLS=1
10f2d63a
VZ
20091fi
20092
20093if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 20094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20095#define wxUSE_CHECKBOX 1
20096EOF
20097
1e6feb95 20098 USES_CONTROLS=1
10f2d63a
VZ
20099fi
20100
20101if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 20102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20103#define wxUSE_CHECKLISTBOX 1
20104EOF
20105
1e6feb95 20106 USES_CONTROLS=1
10f2d63a
VZ
20107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20108fi
20109
20110if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 20111 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20112#define wxUSE_GAUGE 1
20113EOF
20114
1e6feb95 20115 USES_CONTROLS=1
10f2d63a
VZ
20116fi
20117
d6a55c4b
VZ
20118if test "$wxUSE_NEW_GRID" = "yes"; then
20119 wxUSE_GRID="yes"
698dcdb6 20120 cat >> confdefs.h <<\EOF
d6a55c4b 20121#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20122EOF
20123
1e6feb95 20124 USES_CONTROLS=1
d6a55c4b 20125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20126fi
20127
d6a55c4b 20128if test "$wxUSE_GRID" = "yes"; then
698dcdb6 20129 cat >> confdefs.h <<\EOF
d6a55c4b 20130#define wxUSE_GRID 1
10f2d63a
VZ
20131EOF
20132
1e6feb95 20133 USES_CONTROLS=1
d6a55c4b 20134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20135fi
20136
20137if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20139#define wxUSE_IMAGLIST 1
20140EOF
20141
20142fi
20143
20144if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 20145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20146#define wxUSE_LISTBOX 1
20147EOF
20148
1e6feb95 20149 USES_CONTROLS=1
10f2d63a
VZ
20150fi
20151
20152if test "$wxUSE_LISTCTRL" = "yes"; then
20153 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20155#define wxUSE_LISTCTRL 1
20156EOF
20157
1e6feb95 20158 USES_CONTROLS=1
10f2d63a
VZ
20159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20160 else
698dcdb6 20161 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20162 fi
20163fi
20164
20165if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 20166 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20167#define wxUSE_NOTEBOOK 1
20168EOF
20169
1e6feb95 20170 USES_CONTROLS=1
10f2d63a
VZ
20171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20172fi
20173
24176f2c
GD
20174if test "$wxUSE_PROPSHEET" = "yes"; then
20175 cat >> confdefs.h <<\EOF
20176#define wxUSE_PROPSHEET 1
20177EOF
20178
20179 USES_CONTROLS=1
20180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20181fi
20182
10f2d63a 20183if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 20184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20185#define wxUSE_RADIOBOX 1
20186EOF
20187
1e6feb95 20188 USES_CONTROLS=1
10f2d63a
VZ
20189fi
20190
20191if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 20192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20193#define wxUSE_RADIOBTN 1
20194EOF
20195
1e6feb95 20196 USES_CONTROLS=1
10f2d63a
VZ
20197fi
20198
20199if test "$wxUSE_SASH" = "yes"; then
698dcdb6 20200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20201#define wxUSE_SASH 1
20202EOF
20203
20204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20205fi
20206
20207if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 20208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20209#define wxUSE_SCROLLBAR 1
20210EOF
20211
1e6feb95 20212 USES_CONTROLS=1
741a9306 20213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20214fi
20215
20216if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 20217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20218#define wxUSE_SLIDER 1
20219EOF
20220
1e6feb95 20221 USES_CONTROLS=1
10f2d63a
VZ
20222fi
20223
20224if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 20225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20226#define wxUSE_SPINBTN 1
20227EOF
20228
1e6feb95 20229 USES_CONTROLS=1
10f2d63a
VZ
20230fi
20231
56cfaa52 20232if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 20233 cat >> confdefs.h <<\EOF
56cfaa52
RR
20234#define wxUSE_SPINCTRL 1
20235EOF
20236
1e6feb95 20237 USES_CONTROLS=1
56cfaa52
RR
20238fi
20239
10f2d63a 20240if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 20241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20242#define wxUSE_SPLITTER 1
20243EOF
20244
20245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20246fi
20247
20248if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 20249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20250#define wxUSE_STATBMP 1
20251EOF
20252
1e6feb95 20253 USES_CONTROLS=1
10f2d63a
VZ
20254fi
20255
20256if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20258#define wxUSE_STATBOX 1
20259EOF
20260
1e6feb95
VZ
20261 USES_CONTROLS=1
20262fi
20263
20264if test "$wxUSE_STATTEXT" = "yes"; then
20265 cat >> confdefs.h <<\EOF
20266#define wxUSE_STATTEXT 1
20267EOF
20268
20269 USES_CONTROLS=1
10f2d63a
VZ
20270fi
20271
20272if test "$wxUSE_STATLINE" = "yes"; then
20273 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20274 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20275 else
698dcdb6 20276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20277#define wxUSE_STATLINE 1
20278EOF
20279
1e6feb95 20280 USES_CONTROLS=1
10f2d63a
VZ
20281 fi
20282fi
20283
20284if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20286#define wxUSE_STATUSBAR 1
20287EOF
20288
1e6feb95 20289 USES_CONTROLS=1
698dcdb6 20290
2286341c 20291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20292fi
20293
20294if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20295 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20296#define wxUSE_TAB_DIALOG 1
20297EOF
20298
20299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20300fi
20301
1e6feb95
VZ
20302if test "$wxUSE_TEXTCTRL" = "yes"; then
20303 cat >> confdefs.h <<\EOF
20304#define wxUSE_TEXTCTRL 1
20305EOF
20306
20307 USES_CONTROLS=1
20308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20309fi
20310
1db8dc4a 20311if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20312 if test "$wxUSE_MAC" = 1; then
20313 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20314 wxUSE_TOGGLEBTN=no
20315 fi
20316 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20317 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20318 wxUSE_TOGGLEBTN=no
20319 fi
20320
20321 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20322 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20323#define wxUSE_TOGGLEBTN 1
20324EOF
20325
1e6feb95 20326 USES_CONTROLS=1
a45d7ab7 20327 fi
1db8dc4a
VZ
20328fi
20329
360d6699 20330if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20331 cat >> confdefs.h <<\EOF
360d6699
VZ
20332#define wxUSE_TOOLBAR_SIMPLE 1
20333EOF
20334
20335 wxUSE_TOOLBAR="yes"
1e6feb95 20336 USES_CONTROLS=1
360d6699
VZ
20337fi
20338
10f2d63a 20339if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20340 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20341#define wxUSE_TOOLBAR 1
20342EOF
20343
1e6feb95 20344 USES_CONTROLS=1
698dcdb6 20345
360d6699
VZ
20346 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20347 wxUSE_TOOLBAR_NATIVE="yes"
20348 fi
20349
1e6feb95
VZ
20350 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20351 cat >> confdefs.h <<\EOF
360d6699
VZ
20352#define wxUSE_TOOLBAR_NATIVE 1
20353EOF
20354
1e6feb95
VZ
20355 USES_CONTROLS=1
20356 fi
20357
20358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20359fi
20360
10f2d63a
VZ
20361if test "$wxUSE_TOOLTIPS" = "yes"; then
20362 if test "$wxUSE_MOTIF" = 1; then
156b2523 20363 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20364 else
20365 if test "$wxUSE_WINE" = 1; then
156b2523 20366 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20367 else
69d27ff7 20368 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20369 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20370 else
3c011993 20371 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20372#define wxUSE_TOOLTIPS 1
20373EOF
20374
69d27ff7 20375 fi
10f2d63a
VZ
20376 fi
20377 fi
20378fi
20379
20380if test "$wxUSE_TREECTRL" = "yes"; then
20381 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20382 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20383#define wxUSE_TREECTRL 1
20384EOF
20385
1e6feb95 20386 USES_CONTROLS=1
10f2d63a
VZ
20387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20388 else
698dcdb6 20389 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20390 fi
20391fi
20392
9f41d601 20393if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20394 if test "$wxUSE_MAC" = 1; then
156b2523 20395 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20396 else
485cf710
VZ
20397 if test "$wxUSE_MOTIF" = 1; then
20398 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20399 else
3c011993
VZ
20400 if test "$wxUSE_PM" = 1; then
20401 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20402 else
3c011993 20403 cat >> confdefs.h <<\EOF
9f41d601
RR
20404#define wxUSE_POPUPWIN 1
20405EOF
20406
9926e4a4 20407
3c011993
VZ
20408 USES_CONTROLS=1
20409 fi
485cf710 20410 fi
6abe4b65 20411 fi
9f41d601
RR
20412fi
20413
dd964dcc 20414if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20415 if test "$wxUSE_PM" = 1; then
20416 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20417 else
3c011993 20418 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20419#define wxUSE_TIPWINDOW 1
20420EOF
20421
3c011993 20422 fi
dd964dcc
VZ
20423fi
20424
1e6feb95
VZ
20425if test "$USES_CONTROLS" = 1; then
20426 cat >> confdefs.h <<\EOF
20427#define wxUSE_CONTROLS 1
10f2d63a
VZ
20428EOF
20429
10f2d63a
VZ
20430fi
20431
1e6feb95 20432
24176f2c
GD
20433if test "$wxUSE_TREELAYOUT" = "yes"; then
20434 cat >> confdefs.h <<\EOF
20435#define wxUSE_TREELAYOUT 1
20436EOF
20437
20438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20439fi
1e6feb95 20440
24fd6d87
VZ
20441if test "$wxUSE_DRAGIMAGE" = "yes"; then
20442 cat >> confdefs.h <<\EOF
20443#define wxUSE_DRAGIMAGE 1
20444EOF
20445
20446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20447fi
20448
1e6feb95 20449if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20450 cat >> confdefs.h <<\EOF
1e6feb95 20451#define wxUSE_MENUS 1
10f2d63a
VZ
20452EOF
20453
1e6feb95 20454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20455fi
20456
1e6feb95
VZ
20457if test "$wxUSE_METAFILE" = "yes"; then
20458 cat >> confdefs.h <<\EOF
20459#define wxUSE_METAFILE 1
10f2d63a
VZ
20460EOF
20461
10f2d63a
VZ
20462fi
20463
1e6feb95
VZ
20464if test "$wxUSE_MIMETYPE" = "yes"; then
20465 cat >> confdefs.h <<\EOF
20466#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20467EOF
20468
10f2d63a
VZ
20469fi
20470
3e44f09d
VZ
20471if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20472 cat >> confdefs.h <<\EOF
20473#define wxUSE_SYSTEM_OPTIONS 1
20474EOF
20475
321d2b14
VZ
20476if test "$TOOLKIT" = "MSW"; then
20477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20478fi
20479
3e44f09d
VZ
20480fi
20481
4cdb0ab0 20482if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20483 if test "$wxUSE_SOCKETS" != "yes"; then
20484 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20485 wxUSE_PROTOCOL=no
20486 fi
20487
20488 if test "$wxUSE_PROTOCOL" = "yes"; then
20489 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20490#define wxUSE_PROTOCOL 1
20491EOF
20492
20493
3954f9ca
VS
20494 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20495 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20496#define wxUSE_PROTOCOL_HTTP 1
20497EOF
20498
3954f9ca
VS
20499 fi
20500 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20501 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20502#define wxUSE_PROTOCOL_FTP 1
20503EOF
20504
3954f9ca
VS
20505 fi
20506 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20507 cat >> confdefs.h <<\EOF
20508#define wxUSE_PROTOCOL_FILE 1
20509EOF
20510
20511 fi
4cdb0ab0 20512 fi
3954f9ca
VS
20513fi
20514
20515if test "$wxUSE_URL" = "yes"; then
20516 if test "$wxUSE_PROTOCOL" != "yes"; then
20517 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20518 wxUSE_URL=no
20519 fi
20520 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20521 cat >> confdefs.h <<\EOF
3954f9ca 20522#define wxUSE_URL 1
4cdb0ab0
VS
20523EOF
20524
20525 fi
20526fi
20527
10f2d63a 20528if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20529 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20530#define wxUSE_MINIFRAME 1
20531EOF
20532
20533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20534fi
20535
20536if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20538#define wxUSE_HTML 1
20539EOF
20540
20541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20542fi
20543
20544if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20545 cat >> confdefs.h <<\EOF
1e487827
VS
20546#define wxUSE_VALIDATORS 1
20547EOF
703e0a69 20548
698dcdb6
VZ
20549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20550fi
20551
edae8572
VZ
20552if test "$wxUSE_PALETTE" = "yes" ; then
20553 cat >> confdefs.h <<\EOF
20554#define wxUSE_PALETTE 1
20555EOF
20556
20557fi
20558
698dcdb6
VZ
20559if test "$wxUSE_IMAGE" = "yes" ; then
20560 cat >> confdefs.h <<\EOF
20561#define wxUSE_IMAGE 1
20562EOF
20563
20564fi
20565
20566if test "$wxUSE_GIF" = "yes" ; then
20567 cat >> confdefs.h <<\EOF
20568#define wxUSE_GIF 1
20569EOF
20570
20571fi
20572
20573if test "$wxUSE_PCX" = "yes" ; then
20574 cat >> confdefs.h <<\EOF
20575#define wxUSE_PCX 1
20576EOF
20577
20578fi
20579
4b6b4dfc
RR
20580if test "$wxUSE_IFF" = "yes" ; then
20581 cat >> confdefs.h <<\EOF
20582#define wxUSE_IFF 1
20583EOF
20584
20585fi
20586
698dcdb6
VZ
20587if test "$wxUSE_PNM" = "yes" ; then
20588 cat >> confdefs.h <<\EOF
20589#define wxUSE_PNM 1
20590EOF
20591
20592fi
20593
20594if test "$wxUSE_XPM" = "yes" ; then
20595 cat >> confdefs.h <<\EOF
20596#define wxUSE_XPM 1
20597EOF
20598
20599fi
20600
658974ae
VS
20601if test "$wxUSE_ICO_CUR" = "yes" ; then
20602 cat >> confdefs.h <<\EOF
20603#define wxUSE_ICO_CUR 1
20604EOF
20605
20606fi
20607
a72a4bfa
VS
20608if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20609 LIBS=" -lunicows $LIBS"
20610fi
20611
698dcdb6 20612
1e6feb95
VZ
20613if test "$wxUSE_CHOICEDLG" = "yes"; then
20614 cat >> confdefs.h <<\EOF
20615#define wxUSE_CHOICEDLG 1
20616EOF
20617
20618fi
20619
20620if test "$wxUSE_COLOURDLG" = "yes"; then
20621 cat >> confdefs.h <<\EOF
20622#define wxUSE_COLOURDLG 1
20623EOF
20624
20625fi
20626
20627if test "$wxUSE_FILEDLG" = "yes"; then
20628 cat >> confdefs.h <<\EOF
20629#define wxUSE_FILEDLG 1
20630EOF
20631
20632fi
20633
8db37e06
VZ
20634if test "$wxUSE_FINDREPLDLG" = "yes"; then
20635 cat >> confdefs.h <<\EOF
20636#define wxUSE_FINDREPLDLG 1
20637EOF
20638
20639fi
20640
1e6feb95
VZ
20641if test "$wxUSE_FONTDLG" = "yes"; then
20642 cat >> confdefs.h <<\EOF
20643#define wxUSE_FONTDLG 1
20644EOF
20645
20646fi
20647
20648if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20649 if test "$wxUSE_TREECTRL" != "yes"; then
20650 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20651 else
ae1daed0 20652 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20653#define wxUSE_DIRDLG 1
20654EOF
20655
1e6feb95
VZ
20656 fi
20657fi
20658
20659if test "$wxUSE_MSGDLG" = "yes"; then
20660 cat >> confdefs.h <<\EOF
20661#define wxUSE_MSGDLG 1
20662EOF
20663
20664fi
20665
20666if test "$wxUSE_NUMBERDLG" = "yes"; then
20667 cat >> confdefs.h <<\EOF
20668#define wxUSE_NUMBERDLG 1
20669EOF
20670
20671fi
20672
20673if test "$wxUSE_PROGRESSDLG" = "yes"; then
20674 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20675 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20676 else
20677 cat >> confdefs.h <<\EOF
20678#define wxUSE_PROGRESSDLG 1
20679EOF
20680
20681 fi
20682fi
20683
cbca9943
VZ
20684if test "$wxUSE_SPLASH" = "yes"; then
20685 cat >> confdefs.h <<\EOF
20686#define wxUSE_SPLASH 1
20687EOF
20688
20689fi
20690
1e6feb95
VZ
20691if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20692 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20693 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20694 else
20695 cat >> confdefs.h <<\EOF
20696#define wxUSE_STARTUP_TIPS 1
20697EOF
20698
20699 fi
20700fi
20701
20702if test "$wxUSE_TEXTDLG" = "yes"; then
20703 cat >> confdefs.h <<\EOF
20704#define wxUSE_TEXTDLG 1
20705EOF
20706
20707fi
20708
b1f5d087
VZ
20709if test "$wxUSE_WIZARDDLG" = "yes"; then
20710 cat >> confdefs.h <<\EOF
20711#define wxUSE_WIZARDDLG 1
20712EOF
20713
20714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20715fi
20716
1e6feb95 20717
698dcdb6
VZ
20718if test "$cross_compiling" = "yes"; then
20719 OSINFO="\"$host\""
20720else
20721 OSINFO=`uname -s -r -m`
20722 OSINFO="\"$OSINFO\""
20723fi
20724
20725cat >> confdefs.h <<EOF
20726#define WXWIN_OS_DESCRIPTION $OSINFO
20727EOF
20728
20729
20730
06dda230
VZ
20731if test "x$prefix" != "xNONE"; then
20732 wxPREFIX=$prefix
20733else
20734 wxPREFIX=$ac_default_prefix
20735fi
20736
7e67ed0d 20737cat >> confdefs.h <<EOF
06dda230 20738#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20739EOF
20740
20741
20742
698dcdb6 20743
3a922bb4 20744
f11bdd03 20745if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20746 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20747fi
3a922bb4 20748
3d63bc3a 20749
009fead0 20750LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20751
698dcdb6 20752if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20753
cb61c62d 20754 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20755
20756
867a54b6 20757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20758 drawing dynamic erase event exec font image \
20759 minimal richedit rotate widgets"
20760
3a922bb4
RL
20761 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20762else
20763 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20764fi
20765
698dcdb6 20766
57973b9c
VZ
20767INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20768-I\${top_srcdir}/include \
20769$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20770$TOOLKIT_INCLUDE"
698dcdb6 20771
63e7762e 20772if test "$wxUSE_GTK" = 1; then
3d63bc3a 20773 WXCONFIG_INCLUDE=
698dcdb6
VZ
20774else
20775 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20776fi
20777
20778if test "$GXX" = yes ; then
20779 CXXWARNINGS="-Wall"
88e30f2b
RL
20780
20781 if test "$wxUSE_NO_DEPS" = "no" ; then
20782 CFLAGS="-MMD $CFLAGS"
20783 CXXFLAGS="-MMD $CXXFLAGS"
20784 fi
20785fi
20786
1725144d 20787EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20788
20789CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20790CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20791LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20792
fe5a9cab 20793LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20794
698dcdb6
VZ
20795SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
32832908 20863
2f51a9ec
GD
20864
20865
20866
20867
f6bcfd97 20868
dad6c0ea 20869
caa2c79b 20870
3711412e 20871
1e6feb95
VZ
20872
20873
885d4bf5
VS
20874
20875
20876
20877
9b695262
VZ
20878
20879
62d0491b 20880
ef7f2189 20881
40f7145c 20882
3bd8fb5f 20883
10f2d63a
VZ
20884
20885
698dcdb6 20886echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6a30f1c8 20887echo "configure:20888: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20888set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20889if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20890 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20891else
698dcdb6 20892 cat > conftestmake <<\EOF
10f2d63a
VZ
20893all:
20894 @echo 'ac_maketemp="${MAKE}"'
20895EOF
20896# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20897eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20898if test -n "$ac_maketemp"; then
20899 eval ac_cv_prog_make_${ac_make}_set=yes
20900else
20901 eval ac_cv_prog_make_${ac_make}_set=no
20902fi
698dcdb6 20903rm -f conftestmake
10f2d63a
VZ
20904fi
20905if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20906 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20907 SET_MAKE=
20908else
698dcdb6 20909 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20910 SET_MAKE="MAKE=${MAKE-make}"
20911fi
20912
698dcdb6 20913
3a922bb4
RL
20914if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20915 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20916fi
665bbe97 20917
698dcdb6 20918
10f2d63a 20919
57973b9c
VZ
20920wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20921wx_cv_if_gnu_make=$IF_GNU_MAKE
20922wx_cv_path_ifs=$PATH_IFS
20923wx_cv_program_ext=$PROGRAM_EXT
20924wx_cv_target_library=$WX_TARGET_LIBRARY
20925wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20926wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20927export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20928 wx_cv_path_ifs wx_cv_program_ext \
20929 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20930
20931subdirs="demos samples utils contrib"
2224580a 20932
10f2d63a 20933
698dcdb6
VZ
20934trap '' 1 2 15
20935cat > confcache <<\EOF
10f2d63a
VZ
20936# This file is a shell script that caches the results of configure
20937# tests run on this system so they can be shared between configure
698dcdb6
VZ
20938# scripts and configure runs. It is not useful on other systems.
20939# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20940#
698dcdb6
VZ
20941# By default, configure uses ./config.cache as the cache file,
20942# creating it if it does not exist already. You can give configure
20943# the --cache-file=FILE option to use a different cache file; that is
20944# what configure does when it calls configure scripts in
20945# subdirectories, so they share the cache.
20946# Giving --cache-file=/dev/null disables caching, for debugging configure.
20947# config.status only pays attention to the cache file if you give it the
20948# --recheck option to rerun configure.
10f2d63a 20949#
698dcdb6 20950EOF
10f2d63a
VZ
20951# The following way of writing the cache mishandles newlines in values,
20952# but we know of no workaround that is simple, portable, and efficient.
20953# So, don't put newlines in cache variables' values.
20954# Ultrix sh set writes to stderr and can't be redirected directly,
20955# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20956(set) 2>&1 |
20957 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20958 *ac_space=\ *)
20959 # `set' does not quote correctly, so add quotes (double-quote substitution
20960 # turns \\\\ into \\, and sed turns \\ into \).
20961 sed -n \
20962 -e "s/'/'\\\\''/g" \
20963 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20964 ;;
20965 *)
20966 # `set' quotes correctly as required by POSIX, so do not add quotes.
20967 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20968 ;;
20969 esac >> confcache
20970if cmp -s $cache_file confcache; then
20971 :
20972else
10f2d63a 20973 if test -w $cache_file; then
698dcdb6
VZ
20974 echo "updating cache $cache_file"
20975 cat confcache > $cache_file
10f2d63a
VZ
20976 else
20977 echo "not updating unwritable cache $cache_file"
20978 fi
20979fi
20980rm -f confcache
20981
698dcdb6
VZ
20982trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20983
10f2d63a
VZ
20984test "x$prefix" = xNONE && prefix=$ac_default_prefix
20985# Let make expand exec_prefix.
20986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20987
698dcdb6
VZ
20988# Any assignment to VPATH causes Sun make to only execute
20989# the first set of double-colon rules, so remove it if not needed.
20990# If there is a colon in the path, we need to keep it.
10f2d63a 20991if test "x$srcdir" = x.; then
698dcdb6 20992 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20993fi
20994
698dcdb6
VZ
20995trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20996
10f2d63a
VZ
20997DEFS=-DHAVE_CONFIG_H
20998
698dcdb6 20999# Without the "./", some shells look in PATH for config.status.
10f2d63a 21000: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
21001
21002echo creating $CONFIG_STATUS
21003rm -f $CONFIG_STATUS
21004cat > $CONFIG_STATUS <<EOF
21005#! /bin/sh
10f2d63a
VZ
21006# Generated automatically by configure.
21007# Run this file to recreate the current configuration.
698dcdb6
VZ
21008# This directory was configured as follows,
21009# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21010#
21011# $0 $ac_configure_args
21012#
10f2d63a 21013# Compiler output produced by configure, useful for debugging
698dcdb6 21014# configure, is in ./config.log if it exists.
1e487827 21015
698dcdb6
VZ
21016ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21017for ac_option
10f2d63a 21018do
698dcdb6 21019 case "\$ac_option" in
10f2d63a 21020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
21021 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21022 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21023 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21024 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21025 exit 0 ;;
21026 -help | --help | --hel | --he | --h)
21027 echo "\$ac_cs_usage"; exit 0 ;;
21028 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
21029 esac
21030done
21031
698dcdb6
VZ
21032ac_given_srcdir=$srcdir
21033ac_given_INSTALL="$INSTALL"
703e0a69 21034
698dcdb6
VZ
21035trap 'rm -fr `echo "
21036 wx-config
21037 src/make.env
21038 src/makeprog.env
21039 src/makelib.env
21040 Makefile
21041 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 21042EOF
698dcdb6 21043cat >> $CONFIG_STATUS <<EOF
1e487827 21044
698dcdb6
VZ
21045# Protect against being on the right side of a sed subst in config.status.
21046sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21047 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21048$ac_vpsub
21049$extrasub
21050s%@SHELL@%$SHELL%g
21051s%@CFLAGS@%$CFLAGS%g
21052s%@CPPFLAGS@%$CPPFLAGS%g
21053s%@CXXFLAGS@%$CXXFLAGS%g
21054s%@FFLAGS@%$FFLAGS%g
21055s%@DEFS@%$DEFS%g
21056s%@LDFLAGS@%$LDFLAGS%g
21057s%@LIBS@%$LIBS%g
21058s%@exec_prefix@%$exec_prefix%g
21059s%@prefix@%$prefix%g
21060s%@program_transform_name@%$program_transform_name%g
21061s%@bindir@%$bindir%g
21062s%@sbindir@%$sbindir%g
21063s%@libexecdir@%$libexecdir%g
21064s%@datadir@%$datadir%g
21065s%@sysconfdir@%$sysconfdir%g
21066s%@sharedstatedir@%$sharedstatedir%g
21067s%@localstatedir@%$localstatedir%g
21068s%@libdir@%$libdir%g
21069s%@includedir@%$includedir%g
21070s%@oldincludedir@%$oldincludedir%g
21071s%@infodir@%$infodir%g
21072s%@mandir@%$mandir%g
21073s%@host@%$host%g
21074s%@host_alias@%$host_alias%g
21075s%@host_cpu@%$host_cpu%g
21076s%@host_vendor@%$host_vendor%g
21077s%@host_os@%$host_os%g
21078s%@target@%$target%g
21079s%@target_alias@%$target_alias%g
21080s%@target_cpu@%$target_cpu%g
21081s%@target_vendor@%$target_vendor%g
21082s%@target_os@%$target_os%g
21083s%@build@%$build%g
21084s%@build_alias@%$build_alias%g
21085s%@build_cpu@%$build_cpu%g
21086s%@build_vendor@%$build_vendor%g
21087s%@build_os@%$build_os%g
21088s%@CC@%$CC%g
21089s%@CPP@%$CPP%g
21090s%@CXX@%$CXX%g
698dcdb6
VZ
21091s%@RANLIB@%$RANLIB%g
21092s%@AR@%$AR%g
21093s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 21094s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 21095s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 21096s%@STRIP@%$STRIP%g
613d0995 21097s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
21098s%@YACC@%$YACC%g
21099s%@LEX@%$LEX%g
21100s%@LEXLIB@%$LEXLIB%g
21101s%@LN_S@%$LN_S%g
90dd450c 21102s%@CXXCPP@%$CXXCPP%g
9e691f46 21103s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
21104s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21105s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 21106s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
21107s%@X_CFLAGS@%$X_CFLAGS%g
21108s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21109s%@X_LIBS@%$X_LIBS%g
21110s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
321d2b14 21111s%@AIX_CXX_LD@%$AIX_CXX_LD%g
3a922bb4 21112s%@RESCOMP@%$RESCOMP%g
698dcdb6 21113s%@DEREZ@%$DEREZ%g
b040e242 21114s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
21115s%@LEX_STEM@%$LEX_STEM%g
21116s%@PATH_IFS@%$PATH_IFS%g
21117s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21118s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21119s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
21120s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21121s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 21122s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
21123s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21124s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21125s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 21126s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
21127s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21128s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
21129s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21130s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21131s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
21132s%@WX_ALL@%$WX_ALL%g
21133s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21134s%@SHARED_LD@%$SHARED_LD%g
21135s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
21136s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21137s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
21138s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21139s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
21140s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21141s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21142s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21143s%@USE_GUI@%$USE_GUI%g
21144s%@AFMINSTALL@%$AFMINSTALL%g
21145s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 21146s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 21147s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
21148s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21149s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 21150s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
21151s%@cross_compiling@%$cross_compiling%g
21152s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21153s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
21154s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21155s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6 21156s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
3bd8fb5f 21157s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
698dcdb6 21158s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
21159s%@ALL_HEADERS@%$ALL_HEADERS%g
21160s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
21161s%@GUIDIST@%$GUIDIST%g
21162s%@PORT_FILES@%$PORT_FILES%g
21163s%@DISTDIR@%$DISTDIR%g
698dcdb6 21164s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 21165s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 21166s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 21167s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 21168s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 21169s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 21170s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 21171s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
21172s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21173s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 21174s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
21175s%@LIBWXMACRES@%$LIBWXMACRES%g
21176s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 21177s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
21178s%@DLLTOOL@%$DLLTOOL%g
21179s%@AS@%$AS%g
21180s%@NM@%$NM%g
21181s%@LD@%$LD%g
21182s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 21183s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
21184s%@SET_MAKE@%$SET_MAKE%g
21185s%@subdirs@%$subdirs%g
1e487827 21186
1e487827 21187CEOF
1e487827
VS
21188EOF
21189
698dcdb6
VZ
21190cat >> $CONFIG_STATUS <<\EOF
21191
21192# Split the substitutions into bite-sized pieces for seds with
21193# small command number limits, like on Digital OSF/1 and HP-UX.
21194ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21195ac_file=1 # Number of current file.
21196ac_beg=1 # First line for current file.
21197ac_end=$ac_max_sed_cmds # Line after last line for current file.
21198ac_more_lines=:
21199ac_sed_cmds=""
21200while $ac_more_lines; do
21201 if test $ac_beg -gt 1; then
21202 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21203 else
21204 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21205 fi
21206 if test ! -s conftest.s$ac_file; then
21207 ac_more_lines=false
21208 rm -f conftest.s$ac_file
21209 else
21210 if test -z "$ac_sed_cmds"; then
21211 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 21212 else
698dcdb6 21213 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 21214 fi
698dcdb6
VZ
21215 ac_file=`expr $ac_file + 1`
21216 ac_beg=$ac_end
21217 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21218 fi
698dcdb6
VZ
21219done
21220if test -z "$ac_sed_cmds"; then
21221 ac_sed_cmds=cat
21222fi
21223EOF
10f2d63a 21224
698dcdb6
VZ
21225cat >> $CONFIG_STATUS <<EOF
21226
21227CONFIG_FILES=\${CONFIG_FILES-"wx-config
21228 src/make.env
21229 src/makeprog.env
21230 src/makelib.env
21231 Makefile
21232 "}
10f2d63a 21233EOF
698dcdb6
VZ
21234cat >> $CONFIG_STATUS <<\EOF
21235for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21237 case "$ac_file" in
21238 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21239 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21240 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21241 esac
21242
698dcdb6 21243 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 21244
698dcdb6
VZ
21245 # Remove last slash and all that follows it. Not all systems have dirname.
21246 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21247 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21248 # The file is in a subdirectory.
21249 test ! -d "$ac_dir" && mkdir "$ac_dir"
21250 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21251 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 21252 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21253 else
21254 ac_dir_suffix= ac_dots=
21255 fi
21256
698dcdb6
VZ
21257 case "$ac_given_srcdir" in
21258 .) srcdir=.
21259 if test -z "$ac_dots"; then top_srcdir=.
21260 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21261 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21262 *) # Relative path.
698dcdb6
VZ
21263 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21264 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21265 esac
21266
698dcdb6
VZ
21267 case "$ac_given_INSTALL" in
21268 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21269 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21270 esac
21271
698dcdb6
VZ
21272 echo creating "$ac_file"
21273 rm -f "$ac_file"
21274 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21275 case "$ac_file" in
21276 *Makefile*) ac_comsub="1i\\
21277# $configure_input" ;;
21278 *) ac_comsub= ;;
21279 esac
10f2d63a 21280
698dcdb6
VZ
21281 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21282 sed -e "$ac_comsub
21283s%@configure_input@%$configure_input%g
21284s%@srcdir@%$srcdir%g
21285s%@top_srcdir@%$top_srcdir%g
21286s%@INSTALL@%$INSTALL%g
21287" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21288fi; done
21289rm -f conftest.s*
10f2d63a
VZ
21290
21291# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21292# NAME is the cpp macro being defined and VALUE is the value it is being given.
21293#
21294# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21295ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21296ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21297ac_dC='\3'
21298ac_dD='%g'
21299# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21300ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21301ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21302ac_uC=' '
698dcdb6
VZ
21303ac_uD='\4%g'
21304# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21305ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21306ac_eB='$%\1#\2define\3'
21307ac_eC=' '
21308ac_eD='%g'
10f2d63a 21309
698dcdb6
VZ
21310if test "${CONFIG_HEADERS+set}" != set; then
21311EOF
21312cat >> $CONFIG_STATUS <<EOF
21313 CONFIG_HEADERS="setup.h:setup.h.in"
21314EOF
21315cat >> $CONFIG_STATUS <<\EOF
21316fi
21317for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21319 case "$ac_file" in
21320 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21321 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21322 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21323 esac
21324
698dcdb6
VZ
21325 echo creating $ac_file
21326
21327 rm -f conftest.frag conftest.in conftest.out
21328 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21329 cat $ac_file_inputs > conftest.in
21330
21331EOF
21332
21333# Transform confdefs.h into a sed script conftest.vals that substitutes
21334# the proper values into config.h.in to produce config.h. And first:
21335# Protect against being on the right side of a sed subst in config.status.
21336# Protect against being in an unquoted here document in config.status.
21337rm -f conftest.vals
21338cat > conftest.hdr <<\EOF
21339s/[\\&%]/\\&/g
21340s%[\\$`]%\\&%g
21341s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21342s%ac_d%ac_u%gp
21343s%ac_u%ac_e%gp
21344EOF
21345sed -n -f conftest.hdr confdefs.h > conftest.vals
21346rm -f conftest.hdr
10f2d63a
VZ
21347
21348# This sed command replaces #undef with comments. This is necessary, for
21349# example, in the case of _POSIX_SOURCE, which is predefined and required
21350# on some systems where configure will not decide to define it.
698dcdb6
VZ
21351cat >> conftest.vals <<\EOF
21352s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21353EOF
21354
698dcdb6
VZ
21355# Break up conftest.vals because some shells have a limit on
21356# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21357
21358rm -f conftest.tail
698dcdb6 21359while :
10f2d63a 21360do
698dcdb6
VZ
21361 ac_lines=`grep -c . conftest.vals`
21362 # grep -c gives empty output for an empty file on some AIX systems.
21363 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21364 # Write a limited-size here document to conftest.frag.
21365 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21366 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21367 echo 'CEOF
698dcdb6
VZ
21368 sed -f conftest.frag conftest.in > conftest.out
21369 rm -f conftest.in
21370 mv conftest.out conftest.in
21371' >> $CONFIG_STATUS
21372 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21373 rm -f conftest.vals
21374 mv conftest.tail conftest.vals
10f2d63a 21375done
698dcdb6
VZ
21376rm -f conftest.vals
21377
21378cat >> $CONFIG_STATUS <<\EOF
21379 rm -f conftest.frag conftest.h
21380 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21381 cat conftest.in >> conftest.h
21382 rm -f conftest.in
21383 if cmp -s $ac_file conftest.h 2>/dev/null; then
21384 echo "$ac_file is unchanged"
21385 rm -f conftest.h
10f2d63a 21386 else
698dcdb6
VZ
21387 # Remove last slash and all that follows it. Not all systems have dirname.
21388 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21389 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21390 # The file is in a subdirectory.
21391 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21392 fi
698dcdb6
VZ
21393 rm -f $ac_file
21394 mv conftest.h $ac_file
10f2d63a 21395 fi
698dcdb6
VZ
21396fi; done
21397
10f2d63a 21398EOF
698dcdb6 21399cat >> $CONFIG_STATUS <<EOF
10f2d63a 21400
3a922bb4 21401 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21402 LN_S="${LN_S}"
21403
21404
21405EOF
21406cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21407
652d930d 21408 if test ! -h wx-config; then
991a5759 21409 chmod +x wx-config
3a922bb4
RL
21410 mv wx-config wx${TOOLCHAIN_NAME}-config
21411 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21412 fi
665bbe97 21413
00cf1208
RR
21414 if test ! -d lib; then
21415 mkdir lib
21416 fi
21417 if test ! -d lib/wx; then
21418 mkdir lib/wx
21419 fi
21420 if test ! -d lib/wx/include; then
21421 mkdir lib/wx/include
21422 fi
3a922bb4
RL
21423 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21424 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21425 fi
3a922bb4
RL
21426 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21427 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21428 fi
21429 if test -f setup.h; then
3a922bb4 21430 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21431 fi
698dcdb6
VZ
21432
21433exit 0
10f2d63a
VZ
21434EOF
21435chmod +x $CONFIG_STATUS
698dcdb6
VZ
21436rm -fr confdefs* $ac_clean_files
21437test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21438
2224580a
VZ
21439if test "$no_recursion" != yes; then
21440
21441 # Remove --cache-file and --srcdir arguments so they do not pile up.
21442 ac_sub_configure_args=
21443 ac_prev=
21444 for ac_arg in $ac_configure_args; do
21445 if test -n "$ac_prev"; then
21446 ac_prev=
21447 continue
21448 fi
698dcdb6 21449 case "$ac_arg" in
2224580a
VZ
21450 -cache-file | --cache-file | --cache-fil | --cache-fi \
21451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21452 ac_prev=cache_file ;;
21453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21455 ;;
21456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21457 ac_prev=srcdir ;;
21458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21459 ;;
21460 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21461 esac
21462 done
21463
8f4a9a10 21464 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21465
21466 # Do not complain, so a configure script can configure whichever
21467 # parts of a large source tree are present.
698dcdb6
VZ
21468 if test ! -d $srcdir/$ac_config_dir; then
21469 continue
21470 fi
21471
21472 echo configuring in $ac_config_dir
2224580a 21473
698dcdb6 21474 case "$srcdir" in
2224580a
VZ
21475 .) ;;
21476 *)
698dcdb6
VZ
21477 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21478 else
21479 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21480 fi
21481 ;;
2224580a
VZ
21482 esac
21483
21484 ac_popdir=`pwd`
698dcdb6 21485 cd $ac_config_dir
2224580a 21486
698dcdb6
VZ
21487 # A "../" for each directory in /$ac_config_dir.
21488 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21489
698dcdb6 21490 case "$srcdir" in
2224580a
VZ
21491 .) # No --srcdir option. We are building in place.
21492 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21493 /*) # Absolute path.
21494 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21495 *) # Relative path.
698dcdb6 21496 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21497 esac
21498
21499 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21500 if test -f $ac_sub_srcdir/configure; then
21501 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21502 elif test -f $ac_sub_srcdir/configure.in; then
21503 ac_sub_configure=$ac_configure
21504 else
698dcdb6 21505 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21506 ac_sub_configure=
21507 fi
21508
21509 # The recursion is here.
21510 if test -n "$ac_sub_configure"; then
698dcdb6 21511
2224580a 21512 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21513 case "$cache_file" in
21514 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21515 *) # Relative path.
698dcdb6 21516 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21517 esac
698dcdb6
VZ
21518 case "$ac_given_INSTALL" in
21519 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21520 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21521 esac
2224580a 21522
698dcdb6 21523 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21524 # The eval makes quoting arguments work.
698dcdb6
VZ
21525 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21526 then :
21527 else
21528 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21529 fi
2224580a
VZ
21530 fi
21531
21532 cd $ac_popdir
21533 done
21534fi
21535
698dcdb6 21536