]> git.saurik.com Git - wxWidgets.git/blame - configure
wxSTAY_ON_TOP support in wxMessageBox (patch 581826)
[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"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-intl use internationalization system"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
160ac_help="$ac_help
161 --enable-protocols use wxProtocol and derived classes"
162ac_help="$ac_help
163 --enable-ftp use wxFTP (requires wxProtocol"
164ac_help="$ac_help
165 --enable-http use wxHTTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-sockets use socket/network classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-cmdline use wxCmdLineParser class"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-datetime use wxDateTime class"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 178ac_help="$ac_help
8168de4c 179 --enable-stopwatch use wxStopWatch class"
1e6feb95 180ac_help="$ac_help
8168de4c 181 --enable-dialupman use dialup network classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-timer use wxTimer class"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-wave use wxWave class"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-fraction use wxFraction class"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
192ac_help="$ac_help
193 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-longlong use wxLongLong class"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-geometry use geometry class"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-log use logging system"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-streams use wxStream etc classes"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-file use wxFile classes"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-ffile use wxFFile classes"
1e6feb95 206ac_help="$ac_help
a3a584a7
VZ
207 --enable-textbuf use wxTextBuffer class"
208ac_help="$ac_help
209 --enable-textfile use wxTextFile class"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-fontmap use font encodings conversion classes"
1e6feb95 212ac_help="$ac_help
8168de4c 213 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
214ac_help="$ac_help
215 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-filesystem use virtual file systems classes"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-zipstream use wxZipInputStream"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 232ac_help="$ac_help
69d27ff7 233 --enable-mimetype use wxMimeTypesManager"
3e44f09d 234ac_help="$ac_help
b3e8d00a 235 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
236ac_help="$ac_help
237 --enable-url use wxURL class"
238ac_help="$ac_help
239 --enable-protocol use wxProtocol class"
240ac_help="$ac_help
241 --enable-protocol-http HTTP support in wxProtocol"
242ac_help="$ac_help
243 --enable-protocol-ftp FTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-threads use threads"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-docview use document view architecture"
698dcdb6 250ac_help="$ac_help
3379ed37 251 --enable-help use help subsystem"
29fd3c0c
VS
252ac_help="$ac_help
253 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
254ac_help="$ac_help
255 --enable-html use wxHTML sub-library"
256ac_help="$ac_help
257 --enable-htmlhelp use wxHTML-based help"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-constraints use layout-constraints system"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-printarch use printing architecture"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-mdi use multiple document interface architecture"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-loggui use standard GUI logger"
1e6feb95 266ac_help="$ac_help
8168de4c 267 --enable-logwin use wxLogWindow"
69d27ff7
MB
268ac_help="$ac_help
269 --enable-logdialog use wxLogDialog"
1e6feb95 270ac_help="$ac_help
8168de4c 271 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-prologio use Prolog IO library"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-resources use wxWindows resources"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-clipboard use wxClipboard classes"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-dnd use Drag'n'Drop classes"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-metafile use win32 metafiles"
698dcdb6 284ac_help="$ac_help
24176f2c 285 --enable-treelayout use wxTreeLayout classes"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-controls use all usual controls"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-accel use accelerators"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-button use wxButton class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-calendar use wxCalendarCtrl class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-caret use wxCaret class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-checkbox use wxCheckBox class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-choice use wxChoice class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-combobox use wxComboBox classes"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-gauge use wxGauge class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-grid use wxGrid class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-newgrid use new wxGrid class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-imaglist use wxImageList class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-listbox use wxListBox class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-listctrl use wxListCtrl class"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-notebook use wxNotebook class"
24176f2c
GD
320ac_help="$ac_help
321 --enable-propsheet use wxPropertySheet class"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-radiobox use wxRadioBox class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-radiobtn use wxRadioButton class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-sash use wxSashWindow class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-slider use wxSlider class"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-spinbtn use wxSpinButton class"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-splitter use wxSplitterWindow class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-statbmp use wxStaticBitmap class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-statbox use wxStaticBox class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-statline use wxStaticLine class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-stattext use wxStaticText class"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-statusbar use wxStatusBar class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tabdialog use wxTabControl class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-textctrl use wxTextCtrl class"
1e6feb95 352ac_help="$ac_help
8168de4c 353 --enable-togglebtn use wxToggleButton class"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-toolbar use wxToolBar class"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-tbarnative use native wxToolBar class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
362ac_help="$ac_help
363 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
364ac_help="$ac_help
365 --enable-popupwin use wxPopUpWindow class"
698dcdb6 366ac_help="$ac_help
b3e8d00a 367 --enable-commondlg use all common dialogs"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-choicedlg use wxChoiceDialog"
1e6feb95 370ac_help="$ac_help
8168de4c 371 --enable-coldlg use wxColourDialog"
1e6feb95 372ac_help="$ac_help
8168de4c 373 --enable-filedlg use wxFileDialog"
8db37e06
VZ
374ac_help="$ac_help
375 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 376ac_help="$ac_help
8168de4c 377 --enable-fontdlg use wxFontDialog"
1e6feb95 378ac_help="$ac_help
8168de4c 379 --enable-dirdlg use wxDirDialog"
698dcdb6 380ac_help="$ac_help
8168de4c 381 --enable-msgdlg use wxMessageDialog"
1e6feb95 382ac_help="$ac_help
8168de4c 383 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
384ac_help="$ac_help
385 --enable-splash use wxSplashScreen"
1e6feb95 386ac_help="$ac_help
8168de4c 387 --enable-textdlg use wxTextDialog"
698dcdb6 388ac_help="$ac_help
8168de4c 389 --enable-tipdlg use startup tips"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
392ac_help="$ac_help
393 --enable-wizarddlg use wxWizard"
698dcdb6 394ac_help="$ac_help
8168de4c 395 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 396ac_help="$ac_help
8168de4c 397 --enable-miniframe use wxMiniFrame class"
698dcdb6 398ac_help="$ac_help
8168de4c 399 --enable-tooltips use wxToolTip class"
698dcdb6 400ac_help="$ac_help
8168de4c 401 --enable-splines use spline drawing code"
698dcdb6 402ac_help="$ac_help
8168de4c 403 --enable-validators use wxValidator and derived classes"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-busyinfo use wxBusyInfo"
698dcdb6 406ac_help="$ac_help
b3e8d00a 407 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 408ac_help="$ac_help
8168de4c 409 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
410ac_help="$ac_help
411 --enable-dragimage use wxDragImage"
edae8572
VZ
412ac_help="$ac_help
413 --enable-palette use wxPalette class"
1e6feb95 414ac_help="$ac_help
8168de4c 415 --enable-image use wxImage class"
698dcdb6 416ac_help="$ac_help
8168de4c 417 --enable-gif use gif images (GIF file format)"
698dcdb6 418ac_help="$ac_help
8168de4c 419 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
420ac_help="$ac_help
421 --enable-iff use iff images (IFF file format)"
698dcdb6 422ac_help="$ac_help
8168de4c 423 --enable-pnm use pnm images (PNM file format)"
698dcdb6 424ac_help="$ac_help
8168de4c 425 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
426ac_help="$ac_help
427 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
428ac_help="$ac_help
429 --disable-largefile omit support for large files"
698dcdb6 430ac_help="$ac_help
9e691f46 431 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
432ac_help="$ac_help
433 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
434ac_help="$ac_help
435 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --disable-gtktest Do not try to compile and run a test GTK program"
438ac_help="$ac_help
439 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
440ac_help="$ac_help
441 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
444ac_help="$ac_help
445 --with-x use the X Window System"
b040e242
VS
446ac_help="$ac_help
447 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
448
449# Initialize some variables set by options.
450# The variables have the same names as the options, with
451# dashes changed to underlines.
698dcdb6
VZ
452build=NONE
453cache_file=./config.cache
10f2d63a 454exec_prefix=NONE
698dcdb6 455host=NONE
10f2d63a 456no_create=
698dcdb6 457nonopt=NONE
10f2d63a
VZ
458no_recursion=
459prefix=NONE
460program_prefix=NONE
461program_suffix=NONE
462program_transform_name=s,x,x,
463silent=
464site=
465srcdir=
698dcdb6 466target=NONE
10f2d63a
VZ
467verbose=
468x_includes=NONE
469x_libraries=NONE
470bindir='${exec_prefix}/bin'
471sbindir='${exec_prefix}/sbin'
472libexecdir='${exec_prefix}/libexec'
473datadir='${prefix}/share'
474sysconfdir='${prefix}/etc'
475sharedstatedir='${prefix}/com'
476localstatedir='${prefix}/var'
477libdir='${exec_prefix}/lib'
478includedir='${prefix}/include'
479oldincludedir='/usr/include'
480infodir='${prefix}/info'
481mandir='${prefix}/man'
482
698dcdb6
VZ
483# Initialize some other variables.
484subdirs=
485MFLAGS= MAKEFLAGS=
486SHELL=${CONFIG_SHELL-/bin/sh}
487# Maximum number of lines to put in a shell here document.
488ac_max_here_lines=12
10f2d63a
VZ
489
490ac_prev=
491for ac_option
492do
698dcdb6 493
10f2d63a
VZ
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
698dcdb6
VZ
501 case "$ac_option" in
502 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503 *) ac_optarg= ;;
504 esac
10f2d63a
VZ
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
698dcdb6 508 case "$ac_option" in
10f2d63a
VZ
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 513 bindir="$ac_optarg" ;;
10f2d63a
VZ
514
515 -build | --build | --buil | --bui | --bu)
698dcdb6 516 ac_prev=build ;;
10f2d63a 517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 518 build="$ac_optarg" ;;
10f2d63a
VZ
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 525 cache_file="$ac_optarg" ;;
10f2d63a
VZ
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
698dcdb6 531 datadir="$ac_optarg" ;;
10f2d63a
VZ
532
533 -disable-* | --disable-*)
698dcdb6 534 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 535 # Reject names that are not valid shell variable names.
698dcdb6
VZ
536 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538 fi
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
541
542 -enable-* | --enable-*)
698dcdb6 543 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 544 # Reject names that are not valid shell variable names.
698dcdb6
VZ
545 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547 fi
548 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549 case "$ac_option" in
550 *=*) ;;
10f2d63a
VZ
551 *) ac_optarg=yes ;;
552 esac
698dcdb6 553 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
698dcdb6 562 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
698dcdb6
VZ
568 -help | --help | --hel | --he)
569 # Omit some internal or obsolete options to make the list less imposing.
570 # This message is too long to be a string in the A/UX 3.1 sh.
571 cat << EOF
572Usage: configure [options] [host]
573Options: [defaults in brackets after descriptions]
574Configuration:
575 --cache-file=FILE cache test results in FILE
576 --help print this message
577 --no-create do not create output files
578 --quiet, --silent do not print \`checking...' messages
579 --version print the version of autoconf that created configure
580Directory and file names:
581 --prefix=PREFIX install architecture-independent files in PREFIX
582 [$ac_default_prefix]
583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
584 [same as prefix]
585 --bindir=DIR user executables in DIR [EPREFIX/bin]
586 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
587 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
588 --datadir=DIR read-only architecture-independent data in DIR
589 [PREFIX/share]
590 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
591 --sharedstatedir=DIR modifiable architecture-independent data in DIR
592 [PREFIX/com]
593 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
594 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
595 --includedir=DIR C header files in DIR [PREFIX/include]
596 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
597 --infodir=DIR info documentation in DIR [PREFIX/info]
598 --mandir=DIR man documentation in DIR [PREFIX/man]
599 --srcdir=DIR find the sources in DIR [configure dir or ..]
600 --program-prefix=PREFIX prepend PREFIX to installed program names
601 --program-suffix=SUFFIX append SUFFIX to installed program names
602 --program-transform-name=PROGRAM
603 run sed PROGRAM on installed program names
604EOF
605 cat << EOF
606Host type:
607 --build=BUILD configure for building on BUILD [BUILD=HOST]
608 --host=HOST configure for HOST [guessed]
609 --target=TARGET configure for TARGET [TARGET=HOST]
610Features and packages:
611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
615 --x-includes=DIR X include files are in DIR
616 --x-libraries=DIR X library files are in DIR
617EOF
618 if test -n "$ac_help"; then
619 echo "--enable and --with options recognized:$ac_help"
620 fi
621 exit 0 ;;
10f2d63a
VZ
622
623 -host | --host | --hos | --ho)
698dcdb6 624 ac_prev=host ;;
10f2d63a 625 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 626 host="$ac_optarg" ;;
10f2d63a
VZ
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 633 includedir="$ac_optarg" ;;
10f2d63a
VZ
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 638 infodir="$ac_optarg" ;;
10f2d63a
VZ
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 643 libdir="$ac_optarg" ;;
10f2d63a
VZ
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
698dcdb6 650 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 659 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 664 mandir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 685 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 690 prefix="$ac_optarg" ;;
10f2d63a
VZ
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 697 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 704 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 721 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
698dcdb6 731 sbindir="$ac_optarg" ;;
10f2d63a
VZ
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
698dcdb6 742 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
698dcdb6 747 site="$ac_optarg" ;;
10f2d63a
VZ
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 752 srcdir="$ac_optarg" ;;
10f2d63a
VZ
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 759 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 762 ac_prev=target ;;
10f2d63a 763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 764 target="$ac_optarg" ;;
10f2d63a
VZ
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
698dcdb6
VZ
769 -version | --version | --versio | --versi | --vers)
770 echo "configure generated by autoconf version 2.13"
771 exit 0 ;;
10f2d63a
VZ
772
773 -with-* | --with-*)
698dcdb6 774 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 775 # Reject names that are not valid shell variable names.
698dcdb6
VZ
776 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778 fi
10f2d63a 779 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
780 case "$ac_option" in
781 *=*) ;;
10f2d63a
VZ
782 *) ac_optarg=yes ;;
783 esac
698dcdb6 784 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
785
786 -without-* | --without-*)
698dcdb6 787 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 788 # Reject names that are not valid shell variable names.
698dcdb6
VZ
789 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
794
795 --x)
796 # Obsolete; use --with-x.
797 with_x=yes ;;
798
799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800 | --x-incl | --x-inc | --x-in | --x-i)
801 ac_prev=x_includes ;;
802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 804 x_includes="$ac_optarg" ;;
10f2d63a
VZ
805
806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808 ac_prev=x_libraries ;;
809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 811 x_libraries="$ac_optarg" ;;
10f2d63a 812
698dcdb6 813 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
814 ;;
815
816 *)
698dcdb6
VZ
817 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818 echo "configure: warning: $ac_option: invalid host type" 1>&2
819 fi
820 if test "x$nonopt" != xNONE; then
821 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822 fi
823 nonopt="$ac_option"
10f2d63a
VZ
824 ;;
825
826 esac
827done
828
829if test -n "$ac_prev"; then
698dcdb6
VZ
830 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831fi
832
833trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835# File descriptor usage:
836# 0 standard input
837# 1 file creation
838# 2 errors and warnings
839# 3 some systems may open it to /dev/tty
840# 4 used on the Kubota Titan
841# 6 checking for... messages and results
842# 5 compiler messages saved in config.log
843if test "$silent" = yes; then
844 exec 6>/dev/null
845else
846 exec 6>&1
10f2d63a 847fi
698dcdb6
VZ
848exec 5>./config.log
849
850echo "\
851This file contains any messages produced by compilers while
852running configure, to aid debugging if configure makes a mistake.
853" 1>&5
10f2d63a 854
698dcdb6
VZ
855# Strip out --no-create and --no-recursion so they do not pile up.
856# Also quote any args containing shell metacharacters.
857ac_configure_args=
858for ac_arg
10f2d63a 859do
698dcdb6
VZ
860 case "$ac_arg" in
861 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862 | --no-cr | --no-c) ;;
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
868 esac
869done
870
698dcdb6
VZ
871# NLS nuisances.
872# Only set these to C if already set. These must not be set unconditionally
873# because not all systems understand e.g. LANG=C (notably SCO).
874# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875# Non-C LC_CTYPE values break the ctype check.
876if test "${LANG+set}" = set; then LANG=C; export LANG; fi
877if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 880
698dcdb6
VZ
881# confdefs.h avoids OS command line length limits that DEFS can exceed.
882rm -rf conftest* confdefs.h
883# AIX cpp loses on an empty file, so make sure it contains at least a newline.
884echo > confdefs.h
10f2d63a 885
698dcdb6
VZ
886# A filename unique to this package, relative to the directory that
887# configure is in, which we can look for to find out if srcdir is correct.
888ac_unique_file=wx-config.in
10f2d63a
VZ
889
890# Find the source files, if location was not specified.
891if test -z "$srcdir"; then
892 ac_srcdir_defaulted=yes
893 # Try the directory containing this script, then its parent.
894 ac_prog=$0
698dcdb6 895 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
896 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897 srcdir=$ac_confdir
898 if test ! -r $srcdir/$ac_unique_file; then
899 srcdir=..
900 fi
901else
902 ac_srcdir_defaulted=no
903fi
904if test ! -r $srcdir/$ac_unique_file; then
905 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 906 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 907 else
698dcdb6 908 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
909 fi
910fi
698dcdb6 911srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
912
913# Prefer explicitly selected file to automatically selected ones.
914if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917 else
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919 fi
920fi
921for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
698dcdb6 923 echo "loading site script $ac_site_file"
10f2d63a
VZ
924 . "$ac_site_file"
925 fi
926done
927
928if test -r "$cache_file"; then
698dcdb6
VZ
929 echo "loading cache $cache_file"
930 . $cache_file
10f2d63a 931else
698dcdb6
VZ
932 echo "creating cache $cache_file"
933 > $cache_file
10f2d63a
VZ
934fi
935
936ac_ext=c
698dcdb6 937# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 938ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
939ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941cross_compiling=$ac_cv_prog_cc_cross
942
943ac_exeext=
944ac_objext=o
945if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948 ac_n= ac_c='
949' ac_t=' '
950 else
951 ac_n=-n ac_c= ac_t=
952 fi
10f2d63a 953else
698dcdb6 954 ac_n= ac_c='\c' ac_t=
10f2d63a 955fi
698dcdb6
VZ
956
957
10f2d63a 958
7c66a493
VZ
959ac_aux_dir=
960for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 fi
970done
971if test -z "$ac_aux_dir"; then
698dcdb6 972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 973fi
698dcdb6
VZ
974ac_config_guess=$ac_aux_dir/config.guess
975ac_config_sub=$ac_aux_dir/config.sub
976ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 977
698dcdb6
VZ
978
979# Do some error checking and defaulting for the host and target type.
980# The inputs are:
981# configure --host=HOST --target=TARGET --build=BUILD NONOPT
982#
983# The rules are:
984# 1. You are not allowed to specify --host, --target, and nonopt at the
985# same time.
986# 2. Host defaults to nonopt.
987# 3. If nonopt is not specified, then host defaults to the current host,
988# as determined by config.guess.
989# 4. Target and build default to nonopt.
990# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
991
992# The aliases save the names the user supplied, while $host etc.
993# will get canonicalized.
698dcdb6
VZ
994case $host---$target---$nonopt in
995NONE---*---* | *---NONE---* | *---*---NONE) ;;
996*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997esac
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
986ecc86 1006echo "configure:1007: checking host system type" >&5
698dcdb6
VZ
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026echo $ac_n "checking target system type""... $ac_c" 1>&6
986ecc86 1027echo "configure:1028: checking target system type" >&5
698dcdb6
VZ
1028
1029target_alias=$target
1030case "$target_alias" in
1031NONE)
1032 case $nonopt in
1033 NONE) target_alias=$host_alias ;;
1034 *) target_alias=$nonopt ;;
1035 esac ;;
1036esac
1037
1038target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042echo "$ac_t""$target" 1>&6
1043
1044echo $ac_n "checking build system type""... $ac_c" 1>&6
986ecc86 1045echo "configure:1046: checking build system type" >&5
698dcdb6
VZ
1046
1047build_alias=$build
1048case "$build_alias" in
1049NONE)
1050 case $nonopt in
1051 NONE) build_alias=$host_alias ;;
1052 *) build_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$build" 1>&6
1061
1062test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1064 NONENONEs,x,x, &&
1065 program_prefix=${target_alias}-
1066
698dcdb6
VZ
1067
1068
10f2d63a 1069WX_MAJOR_VERSION_NUMBER=2
37d403aa 1070WX_MINOR_VERSION_NUMBER=3
a0d927d1 1071WX_RELEASE_NUMBER=3
10f2d63a 1072
10f2d63a 1073WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1074WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1075
978f1259
RL
1076WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
a0d927d1 1078WX_CURRENT=2
6426998c
RL
1079WX_REVISION=0
1080WX_AGE=0
1081
698dcdb6
VZ
1082
1083
10f2d63a
VZ
1084USE_UNIX=1
1085USE_WIN32=0
f9bc1684 1086USE_DOS=0
b12915c1 1087USE_BEOS=0
1216f52d 1088USE_MAC=0
b12915c1 1089
10f2d63a
VZ
1090USE_LINUX=
1091USE_SGI=
1092USE_HPUX=
1093USE_SYSV=
1094USE_SVR4=
1095USE_AIX=
1096USE_SUN=
1097USE_SOLARIS=
1098USE_SUNOS=
1099USE_ALPHA=
1100USE_OSF=
1101USE_BSD=
f11bdd03 1102USE_DARWIN=
10f2d63a 1103USE_FREEBSD=
95c8801c 1104USE_OPENBSD=
f6bcfd97 1105USE_NETBSD=
10f2d63a
VZ
1106USE_VMS=
1107USE_ULTRIX=
10f2d63a
VZ
1108USE_DATA_GENERAL=
1109
ab9b9eab
VZ
1110NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
f79bd02d 1112ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1113
1114DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1115DEFAULT_wxUSE_MAC=0
1116DEFAULT_wxUSE_MGL=0
1725144d 1117DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1118DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_wxUSE_MSW=0
e07802fc 1120DEFAULT_wxUSE_PM=0
1e6feb95 1121DEFAULT_wxUSE_WINE=0
f79bd02d 1122DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1123
1124DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1125DEFAULT_DEFAULT_wxUSE_MAC=0
1126DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1127DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1128DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1130DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1131DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1132DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1133
d6a55c4b 1134PROGRAM_EXT=
3a922bb4 1135SO_SUFFIX=so
d6a55c4b 1136
10f2d63a
VZ
1137case "${host}" in
1138 *-hp-hpux* )
1139 USE_HPUX=1
1140 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1141 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1142 SO_SUFFIX=sl
698dcdb6 1143 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1144#define __HPUX__ 1
1145EOF
1146
1147 ;;
1148 *-*-linux* )
1149 USE_LINUX=1
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __LINUX__ 1
1152EOF
1153
1154 TMP=`uname -m`
1155 if test "x$TMP" = "xalpha"; then
1156 USE_ALPHA=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __ALPHA__ 1
1159EOF
1160
1161 fi
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-irix5* | *-*-irix6* )
1165 USE_SGI=1
1166 USE_SVR4=1
698dcdb6 1167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1168#define __SGI__ 1
1169EOF
1170
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __SVR4__ 1
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176 ;;
1177 *-*-solaris2* )
1178 USE_SUN=1
1179 USE_SOLARIS=1
1180 USE_SVR4=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __SUN__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __SOLARIS__ 1
1187EOF
1188
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __SVR4__ 1
1191EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1195 ;;
1196 *-*-sunos4* )
1197 USE_SUN=1
1198 USE_SUNOS=1
1199 USE_BSD=1
698dcdb6 1200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1201#define __SUN__ 1
1202EOF
1203
698dcdb6 1204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1205#define __SUNOS__ 1
1206EOF
1207
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __BSD__ 1
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
f6bcfd97 1214 *-*-freebsd*)
10f2d63a
VZ
1215 USE_BSD=1
1216 USE_FREEBSD=1
698dcdb6 1217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1218#define __FREEBSD__ 1
1219EOF
1220
698dcdb6 1221 cat >> confdefs.h <<\EOF
10f2d63a 1222#define __BSD__ 1
95c8801c
VS
1223EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-openbsd*)
1228 USE_BSD=1
1229 USE_OPENBSD=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
95c8801c
VS
1231#define __FREEBSD__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
95c8801c 1235#define __OPENBSD__ 1
f6bcfd97
BP
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-netbsd*)
1241 USE_BSD=1
1242 USE_NETBSD=1
698dcdb6 1243 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1244#define __FREEBSD__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
f6bcfd97 1248#define __NETBSD__ 1
10f2d63a
VZ
1249EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-osf* )
1254 USE_ALPHA=1
1255 USE_OSF=1
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define __ALPHA__ 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1261#define __OSF__ 1
1262EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1265 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1266 ;;
1267 *-*-dgux5* )
1268 USE_ALPHA=1
1269 USE_SVR4=1
698dcdb6 1270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1271#define __ALPHA__ 1
1272EOF
1273
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __SVR4__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 ;;
1280 *-*-sysv5* )
1281 USE_SYSV=1
1282 USE_SVR4=1
698dcdb6 1283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1284#define __SYSV__ 1
1285EOF
1286
698dcdb6 1287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1288#define __SVR4__ 1
1289EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-aix* )
1294 USE_AIX=1
1295 USE_SYSV=1
1296 USE_SVR4=1
321d2b14 1297 SO_SUFFIX=a
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __AIX__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __SYSV__ 1
1304EOF
1305
698dcdb6 1306 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1307#define __SVR4__ 1
1308EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312
1c8183e2 1313 *-*-cygwin* | *-*-mingw32* )
17234b26 1314 SO_SUFFIX=dll
cf27ef00 1315 PROGRAM_EXT=".exe"
7b7a7637 1316 RESCOMP=windres
10f2d63a
VZ
1317 DEFAULT_DEFAULT_wxUSE_MSW=1
1318 ;;
1319
f9bc1684
VS
1320 *-pc-msdosdjgpp )
1321 USE_UNIX=0
1322 USE_DOS=1
1323 cat >> confdefs.h <<\EOF
1324#define __DOS__ 1
1325EOF
1326
1327 PROGRAM_EXT=".exe"
1328 DEFAULT_DEFAULT_wxUSE_MGL=1
f9bc1684
VS
1329 ;;
1330
6fa882bd 1331 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1333#define __EMX__ 1
1334EOF
1335
cf27ef00 1336 PROGRAM_EXT=".exe"
e07802fc 1337 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1338 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1339 ;;
1340
d08b457b
GD
1341 powerpc-*-darwin* )
1342 USE_BSD=1
f11bdd03 1343 USE_DARWIN=1
3a922bb4 1344 SO_SUFFIX=dylib
698dcdb6 1345 cat >> confdefs.h <<\EOF
f11bdd03 1346#define __BSD__ 1
b4085ce6
GD
1347EOF
1348
698dcdb6 1349 cat >> confdefs.h <<\EOF
f11bdd03 1350#define __DARWIN__ 1
d08b457b
GD
1351EOF
1352
1353 cat >> confdefs.h <<\EOF
1354#define __POWERPC__ 1
b4085ce6
GD
1355EOF
1356
1357 DEFAULT_DEFAULT_wxUSE_MAC=1
1358 ;;
1359
b12915c1
VZ
1360 *-*-beos* )
1361 USE_BEOS=1
698dcdb6 1362 cat >> confdefs.h <<\EOF
b12915c1
VZ
1363#define __BEOS__ 1
1364EOF
1365
1366 ;;
1367
10f2d63a 1368 *)
698dcdb6 1369 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1370esac
1371
1e487827 1372
1e487827 1373
6232543b 1374
10f2d63a
VZ
1375 wx_arg_cache_file="configarg.cache"
1376 echo "loading argument cache $wx_arg_cache_file"
1377 rm -f ${wx_arg_cache_file}.tmp
1378 touch ${wx_arg_cache_file}.tmp
1379 touch ${wx_arg_cache_file}
698dcdb6 1380
10f2d63a
VZ
1381
1382DEBUG_CONFIGURE=0
1383if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1384 DEFAULT_wxUSE_UNIVERSAL=no
1385
d8356fa3
VZ
1386 DEFAULT_wxUSE_NANOX=no
1387
10f2d63a
VZ
1388 DEFAULT_wxUSE_THREADS=yes
1389
1390 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1391 DEFAULT_wxUSE_SONAME=no
1e6feb95 1392 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1393 DEFAULT_wxUSE_PROFILE=no
1394 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1395 DEFAULT_wxUSE_NO_RTTI=no
1396 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1397 DEFAULT_wxUSE_PERMISSIVE=no
1398 DEFAULT_wxUSE_DEBUG_FLAG=yes
1399 DEFAULT_wxUSE_DEBUG_INFO=yes
1400 DEFAULT_wxUSE_DEBUG_GDB=yes
1401 DEFAULT_wxUSE_MEM_TRACING=no
1402 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1403 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1404 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_APPLE_IEEE=no
1406
1407 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1408 DEFAULT_wxUSE_LOGWINDOW=no
1409 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1410 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1411
1412 DEFAULT_wxUSE_GUI=yes
1e6feb95 1413 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1414
3e44f09d 1415 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1419 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1420 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1421 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1422
eb4efbdc 1423 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1424 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1425 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1426 DEFAULT_wxUSE_CMDLINE_PARSER=no
1427 DEFAULT_wxUSE_DATETIME=no
1428 DEFAULT_wxUSE_TIMEDATE=no
1429 DEFAULT_wxUSE_TIMER=no
1430 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1431 DEFAULT_wxUSE_FILE=no
1e6feb95 1432 DEFAULT_wxUSE_FFILE=no
a3a584a7 1433 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1434 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_WAVE=no
1436 DEFAULT_wxUSE_INTL=no
1437 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1438 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_STREAMS=no
1440 DEFAULT_wxUSE_SOCKETS=no
1441 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1442 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1443 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1444 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1445 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1446 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1447
1448 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1449 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1450 DEFAULT_wxUSE_POSTSCRIPT=no
1451
1452 DEFAULT_wxUSE_X_RESOURCES=no
1453 DEFAULT_wxUSE_CLIPBOARD=no
1454 DEFAULT_wxUSE_TOOLTIPS=no
1455 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1456 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLINES=no
1458
1459 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1460 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1461 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1462
1463 DEFAULT_wxUSE_PROLOGIO=no
1464 DEFAULT_wxUSE_RESOURCES=no
1465 DEFAULT_wxUSE_CONSTRAINTS=no
1466 DEFAULT_wxUSE_IPC=no
1467 DEFAULT_wxUSE_HELP=no
29fd3c0c 1468 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1469 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1470 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1471 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1472 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1473 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1474 DEFAULT_wxUSE_PROTOCOL=no
1475 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1476 DEFAULT_wxUSE_PROTOCOL_FTP=no
1477 DEFAULT_wxUSE_PROTOCOL_FILE=no
1478 DEFAULT_wxUSE_URL=no
1479
10f2d63a 1480 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1481 DEFAULT_wxUSE_CHOICEDLG=no
1482 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1483 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1484 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1485 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1486 DEFAULT_wxUSE_FONTDLG=no
1487 DEFAULT_wxUSE_MSGDLG=no
1488 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1489 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1490 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_STARTUP_TIPS=no
1492 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1493 DEFAULT_wxUSE_WIZARDDLG=no
1494
1e6feb95 1495 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1496 DEFAULT_wxUSE_MINIFRAME=no
1497 DEFAULT_wxUSE_HTML=no
24528b0c 1498 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1499 DEFAULT_wxUSE_FS_INET=no
1500 DEFAULT_wxUSE_FS_ZIP=no
1501 DEFAULT_wxUSE_BUSYINFO=no
1502 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1503 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1504
1505 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1506 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1507 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1508 DEFAULT_wxUSE_CALCTRL=no
1509 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1510 DEFAULT_wxUSE_CHECKBOX=no
1511 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1512 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_COMBOBOX=no
1514 DEFAULT_wxUSE_GAUGE=no
1515 DEFAULT_wxUSE_GRID=no
1516 DEFAULT_wxUSE_NEW_GRID=no
1517 DEFAULT_wxUSE_IMAGLIST=no
1518 DEFAULT_wxUSE_LISTBOX=no
1519 DEFAULT_wxUSE_LISTCTRL=no
1520 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1521 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1522 DEFAULT_wxUSE_RADIOBOX=no
1523 DEFAULT_wxUSE_RADIOBTN=no
1524 DEFAULT_wxUSE_SASH=no
1525 DEFAULT_wxUSE_SCROLLBAR=no
1526 DEFAULT_wxUSE_SLIDER=no
1527 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1528 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_SPLITTER=no
1530 DEFAULT_wxUSE_STATBMP=no
1531 DEFAULT_wxUSE_STATBOX=no
1532 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1533 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1534 DEFAULT_wxUSE_STATUSBAR=yes
1535 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1536 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1537 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1538 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1539 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1540 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1541 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1542 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1543 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1544
1545 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1546 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_WCSRTOMBS=no
1548
edae8572 1549 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1550 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1551 DEFAULT_wxUSE_GIF=no
1552 DEFAULT_wxUSE_PCX=no
1553 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1554 DEFAULT_wxUSE_IFF=no
0046ff7c 1555 DEFAULT_wxUSE_XPM=no
658974ae 1556 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1557else
1e6feb95
VZ
1558 DEFAULT_wxUSE_UNIVERSAL=no
1559
d8356fa3
VZ
1560 DEFAULT_wxUSE_NANOX=no
1561
10f2d63a
VZ
1562 DEFAULT_wxUSE_THREADS=yes
1563
1564 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1565 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1566 DEFAULT_wxUSE_OPTIMISE=yes
1567 DEFAULT_wxUSE_PROFILE=no
1568 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1569 DEFAULT_wxUSE_NO_RTTI=no
1570 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1571 DEFAULT_wxUSE_PERMISSIVE=no
1572 DEFAULT_wxUSE_DEBUG_FLAG=no
1573 DEFAULT_wxUSE_DEBUG_INFO=no
1574 DEFAULT_wxUSE_DEBUG_GDB=no
1575 DEFAULT_wxUSE_MEM_TRACING=no
1576 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1577 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1578 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_APPLE_IEEE=yes
1580
1581 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1582 DEFAULT_wxUSE_LOGWINDOW=yes
1583 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1584 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1585
1586 DEFAULT_wxUSE_GUI=yes
1587
831b3152 1588 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1589 DEFAULT_wxUSE_ZLIB=yes
1590 DEFAULT_wxUSE_LIBPNG=yes
1591 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1592 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1593 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1594 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1595
eb4efbdc 1596 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1597 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1598 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1599 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1600 DEFAULT_wxUSE_DATETIME=yes
1601 DEFAULT_wxUSE_TIMEDATE=no
1602 DEFAULT_wxUSE_TIMER=yes
1603 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1604 DEFAULT_wxUSE_FILE=yes
1e6feb95 1605 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1606 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1607 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1608 DEFAULT_wxUSE_WAVE=no
1609 DEFAULT_wxUSE_INTL=yes
1610 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1611 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1612 DEFAULT_wxUSE_STREAMS=yes
1613 DEFAULT_wxUSE_SOCKETS=yes
1614 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1615 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1616 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1617 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1618 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1619 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1620
1621 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1622 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1623 DEFAULT_wxUSE_POSTSCRIPT=yes
1624
1625 DEFAULT_wxUSE_X_RESOURCES=no
1626 DEFAULT_wxUSE_CLIPBOARD=yes
1627 DEFAULT_wxUSE_TOOLTIPS=yes
1628 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1629 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1630 DEFAULT_wxUSE_SPLINES=yes
1631
1632 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1633 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1634 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1635
1636 DEFAULT_wxUSE_PROLOGIO=yes
1637 DEFAULT_wxUSE_RESOURCES=yes
1638 DEFAULT_wxUSE_CONSTRAINTS=yes
1639 DEFAULT_wxUSE_IPC=yes
1640 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1641 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1642 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1643 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1644 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1645 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1646 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1647 DEFAULT_wxUSE_PROTOCOL=yes
1648 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1649 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1650 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1651 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1652
1653 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1654 DEFAULT_wxUSE_CHOICEDLG=yes
1655 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1656 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1657 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1658 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1659 DEFAULT_wxUSE_FONTDLG=yes
1660 DEFAULT_wxUSE_MSGDLG=yes
1661 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1662 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1663 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_STARTUP_TIPS=yes
1665 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1666 DEFAULT_wxUSE_WIZARDDLG=yes
1667
1e6feb95 1668 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1669 DEFAULT_wxUSE_MINIFRAME=yes
1670 DEFAULT_wxUSE_HTML=yes
24528b0c 1671 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1672 DEFAULT_wxUSE_FS_INET=yes
1673 DEFAULT_wxUSE_FS_ZIP=yes
1674 DEFAULT_wxUSE_BUSYINFO=yes
1675 DEFAULT_wxUSE_ZIPSTREAM=yes
1676 DEFAULT_wxUSE_VALIDATORS=yes
1677
1678 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1679 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1680 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1681 DEFAULT_wxUSE_CALCTRL=yes
1682 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_CHECKBOX=yes
1684 DEFAULT_wxUSE_CHECKLST=yes
1685 DEFAULT_wxUSE_CHOICE=yes
1686 DEFAULT_wxUSE_COMBOBOX=yes
1687 DEFAULT_wxUSE_GAUGE=yes
1688 DEFAULT_wxUSE_GRID=yes
cc977e5f 1689 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1690 DEFAULT_wxUSE_IMAGLIST=yes
1691 DEFAULT_wxUSE_LISTBOX=yes
1692 DEFAULT_wxUSE_LISTCTRL=yes
1693 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1694 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1695 DEFAULT_wxUSE_RADIOBOX=yes
1696 DEFAULT_wxUSE_RADIOBTN=yes
1697 DEFAULT_wxUSE_SASH=yes
1698 DEFAULT_wxUSE_SCROLLBAR=yes
1699 DEFAULT_wxUSE_SLIDER=yes
1700 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1701 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1702 DEFAULT_wxUSE_SPLITTER=yes
1703 DEFAULT_wxUSE_STATBMP=yes
1704 DEFAULT_wxUSE_STATBOX=yes
1705 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1706 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1707 DEFAULT_wxUSE_STATUSBAR=yes
1708 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1709 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1710 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1711 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1712 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1713 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1714 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1715 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1716 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1717
1718 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1719 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_WCSRTOMBS=no
1721
edae8572 1722 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1723 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1724 DEFAULT_wxUSE_GIF=yes
1725 DEFAULT_wxUSE_PCX=yes
cc0e8480 1726 DEFAULT_wxUSE_IFF=no
10f2d63a 1727 DEFAULT_wxUSE_PNM=yes
0046ff7c 1728 DEFAULT_wxUSE_XPM=yes
658974ae 1729 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1730fi
1731
698dcdb6
VZ
1732
1733
10f2d63a
VZ
1734for toolkit in `echo $ALL_TOOLKITS`; do
1735 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1736 if test "x$LINE" != x ; then
1737 has_toolkit_in_cache=1
1738 eval "DEFAULT_$LINE"
1739 eval "CACHE_$toolkit=1"
1740 fi
1741done
1742
698dcdb6
VZ
1743
1744
1745 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
17234b26 1746echo "configure:1747: checking for --enable-gui" >&5
10f2d63a
VZ
1747 no_cache=0
1748 # Check whether --enable-gui or --disable-gui was given.
1749if test "${enable_gui+set}" = set; then
1750 enableval="$enable_gui"
698dcdb6 1751
10f2d63a
VZ
1752 if test "$enableval" = yes; then
1753 ac_cv_use_gui='wxUSE_GUI=yes'
1754 else
1755 ac_cv_use_gui='wxUSE_GUI=no'
1756 fi
698dcdb6 1757
10f2d63a 1758else
698dcdb6 1759
10f2d63a
VZ
1760 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1768
1769fi
10f2d63a
VZ
1770
1771
1772 eval "$ac_cv_use_gui"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_GUI" = yes; then
698dcdb6 1778 echo "$ac_t""yes" 1>&6
10f2d63a 1779 else
698dcdb6 1780 echo "$ac_t""no" 1>&6
10f2d63a 1781 fi
698dcdb6 1782
10f2d63a 1783
b12915c1 1784if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1785
1e6feb95
VZ
1786
1787 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
17234b26 1788echo "configure:1789: checking for --enable-universal" >&5
1e6feb95
VZ
1789 no_cache=0
1790 # Check whether --enable-universal or --disable-universal was given.
1791if test "${enable_universal+set}" = set; then
1792 enableval="$enable_universal"
1793
1794 if test "$enableval" = yes; then
1795 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1796 else
1797 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1798 fi
1799
1800else
1801
1802 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 eval "DEFAULT_$LINE"
1805 else
1806 no_cache=1
1807 fi
1808
1809 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1810
1811fi
1812
1813
1814 eval "$ac_cv_use_universal"
1815 if test "$no_cache" != 1; then
1816 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1817 fi
1818
1819 if test "$wxUSE_UNIVERSAL" = yes; then
1820 echo "$ac_t""yes" 1>&6
1821 else
1822 echo "$ac_t""no" 1>&6
1823 fi
1824
10f2d63a
VZ
1825# Check whether --with-gtk or --without-gtk was given.
1826if test "${with_gtk+set}" = set; then
1827 withval="$with_gtk"
1828 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1829fi
10f2d63a
VZ
1830
1831# Check whether --with-motif or --without-motif was given.
1832if test "${with_motif+set}" = set; then
1833 withval="$with_motif"
1834 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1835fi
10f2d63a 1836
b4085ce6
GD
1837# Check whether --with-mac or --without-mac was given.
1838if test "${with_mac+set}" = set; then
1839 withval="$with_mac"
1840 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1841fi
b4085ce6 1842
10f2d63a
VZ
1843# Check whether --with-wine or --without-wine was given.
1844if test "${with_wine+set}" = set; then
1845 withval="$with_wine"
1846 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1847fi
10f2d63a 1848
77e13408
RL
1849# Check whether --with-msw or --without-msw was given.
1850if test "${with_msw+set}" = set; then
1851 withval="$with_msw"
b4efce5e 1852 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1853fi
10f2d63a 1854
e07802fc
VZ
1855# Check whether --with-pm or --without-pm was given.
1856if test "${with_pm+set}" = set; then
1857 withval="$with_pm"
1858 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1859fi
1860
1e6feb95
VZ
1861# Check whether --with-mgl or --without-mgl was given.
1862if test "${with_mgl+set}" = set; then
1863 withval="$with_mgl"
6c657b52 1864 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1e6feb95
VZ
1865fi
1866
1725144d
RR
1867# Check whether --with-microwin or --without-microwin was given.
1868if test "${with_microwin+set}" = set; then
1869 withval="$with_microwin"
1870 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1871fi
1872
f79bd02d
JS
1873# Check whether --with-x11 or --without-x11 was given.
1874if test "${with_x11+set}" = set; then
1875 withval="$with_x11"
3c011993 1876 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1877fi
1878
10f2d63a 1879
ba875e66 1880 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
17234b26 1881echo "configure:1882: checking for --enable-nanox" >&5
d8356fa3 1882 no_cache=0
ba875e66
VZ
1883 # Check whether --enable-nanox or --disable-nanox was given.
1884if test "${enable_nanox+set}" = set; then
1885 enableval="$enable_nanox"
d8356fa3
VZ
1886
1887 if test "$enableval" = yes; then
ba875e66 1888 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1889 else
ba875e66 1890 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1891 fi
1892
1893else
1894
1895 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1896 if test "x$LINE" != x ; then
1897 eval "DEFAULT_$LINE"
1898 else
1899 no_cache=1
1900 fi
1901
ba875e66 1902 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1903
1904fi
1905
1906
ba875e66 1907 eval "$ac_cv_use_nanox"
d8356fa3 1908 if test "$no_cache" != 1; then
ba875e66 1909 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1910 fi
1911
1912 if test "$wxUSE_NANOX" = yes; then
1913 echo "$ac_t""yes" 1>&6
1914 else
1915 echo "$ac_t""no" 1>&6
1916 fi
1917
1918
8168de4c
VZ
1919# Check whether --enable-gtk2 or --disable-gtk2 was given.
1920if test "${enable_gtk2+set}" = set; then
1921 enableval="$enable_gtk2"
9e691f46 1922 wxUSE_GTK2="yes"
10f2d63a 1923else
9e691f46 1924 wxUSE_GTK2="no"
698dcdb6
VZ
1925fi
1926
703e0a69 1927
1e487827 1928
698dcdb6 1929 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
17234b26 1930echo "configure:1931: checking for --with-libpng" >&5
698dcdb6
VZ
1931 no_cache=0
1932 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1933if test "${with_libpng+set}" = set; then
1934 withval="$with_libpng"
698dcdb6 1935
10f2d63a 1936 if test "$withval" = yes; then
b12915c1 1937 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1938 elif test "$withval" = no; then
b12915c1 1939 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1940 elif test "$withval" = sys; then
1941 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1942 elif test "$withval" = builtin; then
1943 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1944 else
4f14bcd8 1945 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1946 fi
698dcdb6 1947
10f2d63a 1948else
698dcdb6 1949
b12915c1 1950 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
b12915c1 1957 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1958
1959fi
10f2d63a
VZ
1960
1961
b12915c1 1962 eval "$ac_cv_use_libpng"
10f2d63a 1963 if test "$no_cache" != 1; then
b12915c1 1964 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1965 fi
1966
b12915c1 1967 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1968 echo "$ac_t""yes" 1>&6
422107f9 1969 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1970 echo "$ac_t""no" 1>&6
422107f9 1971 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1972 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1973 elif test "$wxUSE_LIBPNG" = builtin; then
1974 echo "$ac_t""builtin version" 1>&6
422107f9 1975 else
4f14bcd8 1976 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1977 fi
698dcdb6 1978
10f2d63a 1979
698dcdb6 1980 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
17234b26 1981echo "configure:1982: checking for --with-libjpeg" >&5
10f2d63a 1982 no_cache=0
698dcdb6 1983 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1984if test "${with_libjpeg+set}" = set; then
1985 withval="$with_libjpeg"
698dcdb6 1986
10f2d63a 1987 if test "$withval" = yes; then
b12915c1 1988 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1989 elif test "$withval" = no; then
b12915c1 1990 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1991 elif test "$withval" = sys; then
1992 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1993 elif test "$withval" = builtin; then
1994 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1995 else
4f14bcd8 1996 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1997 fi
698dcdb6 1998
10f2d63a 1999else
698dcdb6 2000
b12915c1 2001 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
b12915c1 2008 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2009
2010fi
10f2d63a
VZ
2011
2012
b12915c1 2013 eval "$ac_cv_use_libjpeg"
10f2d63a 2014 if test "$no_cache" != 1; then
b12915c1 2015 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2016 fi
2017
b12915c1 2018 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2019 echo "$ac_t""yes" 1>&6
422107f9 2020 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2021 echo "$ac_t""no" 1>&6
422107f9 2022 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2023 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2024 elif test "$wxUSE_LIBJPEG" = builtin; then
2025 echo "$ac_t""builtin version" 1>&6
422107f9 2026 else
4f14bcd8 2027 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2028 fi
698dcdb6 2029
10f2d63a 2030
698dcdb6 2031 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
17234b26 2032echo "configure:2033: checking for --with-libtiff" >&5
10f2d63a 2033 no_cache=0
698dcdb6 2034 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2035if test "${with_libtiff+set}" = set; then
2036 withval="$with_libtiff"
698dcdb6 2037
10f2d63a 2038 if test "$withval" = yes; then
b12915c1 2039 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2040 elif test "$withval" = no; then
b12915c1 2041 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2042 elif test "$withval" = sys; then
2043 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2044 elif test "$withval" = builtin; then
2045 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2046 else
4f14bcd8 2047 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2048 fi
698dcdb6 2049
10f2d63a 2050else
698dcdb6 2051
b12915c1 2052 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
b12915c1 2059 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2060
2061fi
10f2d63a
VZ
2062
2063
b12915c1 2064 eval "$ac_cv_use_libtiff"
10f2d63a 2065 if test "$no_cache" != 1; then
b12915c1 2066 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2067 fi
2068
b12915c1 2069 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2070 echo "$ac_t""yes" 1>&6
0dcf9893 2071 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2072 echo "$ac_t""no" 1>&6
0dcf9893 2073 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2074 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2075 elif test "$wxUSE_LIBTIFF" = builtin; then
2076 echo "$ac_t""builtin version" 1>&6
0dcf9893 2077 else
4f14bcd8 2078 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2079 fi
698dcdb6 2080
10f2d63a 2081
698dcdb6 2082 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
17234b26 2083echo "configure:2084: checking for --with-opengl" >&5
10f2d63a 2084 no_cache=0
698dcdb6 2085 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2086if test "${with_opengl+set}" = set; then
2087 withval="$with_opengl"
698dcdb6 2088
10f2d63a 2089 if test "$withval" = yes; then
b12915c1 2090 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2091 else
b12915c1 2092 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2093 fi
698dcdb6 2094
10f2d63a 2095else
698dcdb6 2096
b12915c1 2097 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2098 if test "x$LINE" != x ; then
2099 eval "DEFAULT_$LINE"
2100 else
2101 no_cache=1
2102 fi
2103
b12915c1 2104 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2105
2106fi
10f2d63a
VZ
2107
2108
b12915c1 2109 eval "$ac_cv_use_opengl"
10f2d63a 2110 if test "$no_cache" != 1; then
b12915c1 2111 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2112 fi
2113
b12915c1 2114 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2115 echo "$ac_t""yes" 1>&6
10f2d63a 2116 else
698dcdb6 2117 echo "$ac_t""no" 1>&6
10f2d63a 2118 fi
698dcdb6 2119
10f2d63a 2120
b12915c1
VZ
2121fi
2122
1e487827 2123
698dcdb6 2124 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
17234b26 2125echo "configure:2126: checking for --with-dmalloc" >&5
698dcdb6
VZ
2126 no_cache=0
2127 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2128if test "${with_dmalloc+set}" = set; then
2129 withval="$with_dmalloc"
698dcdb6 2130
c7a2bf27 2131 if test "$withval" = yes; then
b12915c1 2132 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2133 else
b12915c1 2134 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2135 fi
698dcdb6 2136
c7a2bf27 2137else
698dcdb6 2138
b12915c1 2139 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
b12915c1 2146 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2147
2148fi
c7a2bf27
RR
2149
2150
b12915c1 2151 eval "$ac_cv_use_dmalloc"
c7a2bf27 2152 if test "$no_cache" != 1; then
b12915c1 2153 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2154 fi
2155
b12915c1 2156 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2157 echo "$ac_t""yes" 1>&6
c7a2bf27 2158 else
698dcdb6 2159 echo "$ac_t""no" 1>&6
c7a2bf27 2160 fi
698dcdb6 2161
c7a2bf27 2162
3e44f09d 2163 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
17234b26 2164echo "configure:2165: checking for --with-regex" >&5
3e44f09d
VZ
2165 no_cache=0
2166 # Check whether --with-regex or --without-regex was given.
2167if test "${with_regex+set}" = set; then
2168 withval="$with_regex"
2169
2170 if test "$withval" = yes; then
2171 ac_cv_use_regex='wxUSE_REGEX=yes'
2172 elif test "$withval" = no; then
2173 ac_cv_use_regex='wxUSE_REGEX=no'
2174 elif test "$withval" = sys; then
2175 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2176 elif test "$withval" = builtin; then
2177 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2178 else
4f14bcd8 2179 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2180 fi
2181
2182else
2183
2184 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2192
2193fi
2194
2195
2196 eval "$ac_cv_use_regex"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_REGEX" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 elif test "$wxUSE_REGEX" = no; then
2204 echo "$ac_t""no" 1>&6
2205 elif test "$wxUSE_REGEX" = sys; then
2206 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2207 elif test "$wxUSE_REGEX" = builtin; then
2208 echo "$ac_t""builtin version" 1>&6
3e44f09d 2209 else
4f14bcd8 2210 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2211 fi
2212
2213
698dcdb6 2214 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
17234b26 2215echo "configure:2216: checking for --with-zlib" >&5
10f2d63a 2216 no_cache=0
698dcdb6 2217 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2218if test "${with_zlib+set}" = set; then
2219 withval="$with_zlib"
698dcdb6 2220
10f2d63a 2221 if test "$withval" = yes; then
b12915c1 2222 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2223 elif test "$withval" = no; then
b12915c1 2224 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2225 elif test "$withval" = sys; then
2226 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2227 elif test "$withval" = builtin; then
2228 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2229 else
4f14bcd8 2230 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2231 fi
698dcdb6 2232
10f2d63a 2233else
698dcdb6 2234
b12915c1 2235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
b12915c1 2242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2243
2244fi
10f2d63a
VZ
2245
2246
b12915c1 2247 eval "$ac_cv_use_zlib"
10f2d63a 2248 if test "$no_cache" != 1; then
b12915c1 2249 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2250 fi
2251
b12915c1 2252 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2253 echo "$ac_t""yes" 1>&6
422107f9 2254 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2255 echo "$ac_t""no" 1>&6
422107f9 2256 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2257 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2258 elif test "$wxUSE_ZLIB" = builtin; then
2259 echo "$ac_t""builtin version" 1>&6
422107f9 2260 else
4f14bcd8 2261 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2262 fi
698dcdb6 2263
10f2d63a 2264
698dcdb6 2265 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
17234b26 2266echo "configure:2267: checking for --with-odbc" >&5
10f2d63a 2267 no_cache=0
698dcdb6 2268 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2269if test "${with_odbc+set}" = set; then
2270 withval="$with_odbc"
698dcdb6 2271
10f2d63a
VZ
2272 if test "$withval" = yes; then
2273 ac_cv_use_odbc='wxUSE_ODBC=yes'
2274 else
2275 ac_cv_use_odbc='wxUSE_ODBC=no'
2276 fi
698dcdb6 2277
10f2d63a 2278else
698dcdb6 2279
10f2d63a
VZ
2280 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2281 if test "x$LINE" != x ; then
2282 eval "DEFAULT_$LINE"
2283 else
2284 no_cache=1
2285 fi
2286
2287 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2288
2289fi
10f2d63a
VZ
2290
2291
2292 eval "$ac_cv_use_odbc"
2293 if test "$no_cache" != 1; then
2294 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2295 fi
2296
2297 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2298 echo "$ac_t""yes" 1>&6
10f2d63a 2299 else
698dcdb6 2300 echo "$ac_t""no" 1>&6
10f2d63a 2301 fi
698dcdb6
VZ
2302
2303
10f2d63a 2304
698dcdb6 2305
698dcdb6 2306 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
17234b26 2307echo "configure:2308: checking for --enable-shared" >&5
10f2d63a
VZ
2308 no_cache=0
2309 # Check whether --enable-shared or --disable-shared was given.
2310if test "${enable_shared+set}" = set; then
2311 enableval="$enable_shared"
698dcdb6 2312
10f2d63a
VZ
2313 if test "$enableval" = yes; then
2314 ac_cv_use_shared='wxUSE_SHARED=yes'
2315 else
2316 ac_cv_use_shared='wxUSE_SHARED=no'
2317 fi
698dcdb6 2318
10f2d63a 2319else
698dcdb6 2320
10f2d63a
VZ
2321 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2322 if test "x$LINE" != x ; then
2323 eval "DEFAULT_$LINE"
2324 else
2325 no_cache=1
2326 fi
2327
2328 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2329
2330fi
10f2d63a
VZ
2331
2332
2333 eval "$ac_cv_use_shared"
2334 if test "$no_cache" != 1; then
2335 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2336 fi
2337
2338 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2339 echo "$ac_t""yes" 1>&6
10f2d63a 2340 else
698dcdb6 2341 echo "$ac_t""no" 1>&6
10f2d63a 2342 fi
698dcdb6 2343
10f2d63a 2344
3a922bb4 2345 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
17234b26 2346echo "configure:2347: checking for --enable-soname" >&5
00cf1208 2347 no_cache=0
3a922bb4
RL
2348 # Check whether --enable-soname or --disable-soname was given.
2349if test "${enable_soname+set}" = set; then
2350 enableval="$enable_soname"
698dcdb6 2351
00cf1208 2352 if test "$enableval" = yes; then
3a922bb4 2353 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2354 else
3a922bb4 2355 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2356 fi
698dcdb6 2357
00cf1208 2358else
698dcdb6 2359
3a922bb4 2360 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
3a922bb4 2367 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2368
2369fi
00cf1208
RR
2370
2371
3a922bb4 2372 eval "$ac_cv_use_soname"
00cf1208 2373 if test "$no_cache" != 1; then
3a922bb4 2374 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2375 fi
2376
3a922bb4 2377 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2378 echo "$ac_t""yes" 1>&6
00cf1208 2379 else
698dcdb6 2380 echo "$ac_t""no" 1>&6
00cf1208 2381 fi
698dcdb6 2382
00cf1208 2383
698dcdb6 2384 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
17234b26 2385echo "configure:2386: checking for --enable-optimise" >&5
10f2d63a
VZ
2386 no_cache=0
2387 # Check whether --enable-optimise or --disable-optimise was given.
2388if test "${enable_optimise+set}" = set; then
2389 enableval="$enable_optimise"
698dcdb6 2390
10f2d63a
VZ
2391 if test "$enableval" = yes; then
2392 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2393 else
2394 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2395 fi
698dcdb6 2396
10f2d63a 2397else
698dcdb6 2398
10f2d63a
VZ
2399 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2400 if test "x$LINE" != x ; then
2401 eval "DEFAULT_$LINE"
2402 else
2403 no_cache=1
2404 fi
2405
2406 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2407
2408fi
10f2d63a
VZ
2409
2410
2411 eval "$ac_cv_use_optimise"
2412 if test "$no_cache" != 1; then
2413 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2414 fi
2415
2416 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2417 echo "$ac_t""yes" 1>&6
10f2d63a 2418 else
698dcdb6 2419 echo "$ac_t""no" 1>&6
10f2d63a 2420 fi
698dcdb6 2421
10f2d63a 2422
698dcdb6 2423 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
17234b26 2424echo "configure:2425: checking for --enable-debug" >&5
10f2d63a
VZ
2425 no_cache=0
2426 # Check whether --enable-debug or --disable-debug was given.
2427if test "${enable_debug+set}" = set; then
2428 enableval="$enable_debug"
698dcdb6 2429
10f2d63a
VZ
2430 if test "$enableval" = yes; then
2431 ac_cv_use_debug='wxUSE_DEBUG=yes'
2432 else
2433 ac_cv_use_debug='wxUSE_DEBUG=no'
2434 fi
698dcdb6 2435
10f2d63a 2436else
698dcdb6 2437
10f2d63a
VZ
2438 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2446
2447fi
10f2d63a
VZ
2448
2449
2450 eval "$ac_cv_use_debug"
2451 if test "$no_cache" != 1; then
2452 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2453 fi
2454
2455 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2456 echo "$ac_t""yes" 1>&6
10f2d63a 2457 else
698dcdb6 2458 echo "$ac_t""no" 1>&6
10f2d63a 2459 fi
698dcdb6 2460
10f2d63a 2461
683dccda
GD
2462
2463 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
17234b26 2464echo "configure:2465: checking for --enable-precomp" >&5
683dccda
GD
2465 no_cache=0
2466 # Check whether --enable-precomp or --disable-precomp was given.
2467if test "${enable_precomp+set}" = set; then
2468 enableval="$enable_precomp"
2469
2470 if test "$enableval" = yes; then
2471 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2472 else
2473 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2474 fi
2475
2476else
2477
2478 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2479 if test "x$LINE" != x ; then
2480 eval "DEFAULT_$LINE"
2481 else
2482 no_cache=1
2483 fi
2484
2485 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2486
2487fi
2488
2489
2490 eval "$ac_cv_use_precomp"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_PRECOMP" = yes; then
2496 echo "$ac_t""yes" 1>&6
2497 else
2498 echo "$ac_t""no" 1>&6
2499 fi
2500
2501
10f2d63a
VZ
2502if test "$wxUSE_DEBUG" = "yes"; then
2503 DEFAULT_wxUSE_DEBUG_FLAG=yes
2504 DEFAULT_wxUSE_DEBUG_INFO=yes
2505elif test "$wxUSE_DEBUG" = "no"; then
2506 DEFAULT_wxUSE_DEBUG_FLAG=no
2507 DEFAULT_wxUSE_DEBUG_INFO=no
2508fi
2509
698dcdb6
VZ
2510
2511 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
17234b26 2512echo "configure:2513: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2513 no_cache=0
2514 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2515if test "${enable_debug_flag+set}" = set; then
2516 enableval="$enable_debug_flag"
698dcdb6 2517
10f2d63a
VZ
2518 if test "$enableval" = yes; then
2519 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2520 else
2521 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2522 fi
698dcdb6 2523
10f2d63a 2524else
698dcdb6 2525
10f2d63a
VZ
2526 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2534
2535fi
10f2d63a
VZ
2536
2537
2538 eval "$ac_cv_use_debug_flag"
2539 if test "$no_cache" != 1; then
2540 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2541 fi
2542
2543 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2544 echo "$ac_t""yes" 1>&6
10f2d63a 2545 else
698dcdb6 2546 echo "$ac_t""no" 1>&6
10f2d63a 2547 fi
698dcdb6 2548
10f2d63a 2549
698dcdb6 2550 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
17234b26 2551echo "configure:2552: checking for --enable-debug_info" >&5
10f2d63a
VZ
2552 no_cache=0
2553 # Check whether --enable-debug_info or --disable-debug_info was given.
2554if test "${enable_debug_info+set}" = set; then
2555 enableval="$enable_debug_info"
698dcdb6 2556
10f2d63a
VZ
2557 if test "$enableval" = yes; then
2558 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2559 else
2560 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2561 fi
698dcdb6 2562
10f2d63a 2563else
698dcdb6 2564
10f2d63a
VZ
2565 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2566 if test "x$LINE" != x ; then
2567 eval "DEFAULT_$LINE"
2568 else
2569 no_cache=1
2570 fi
2571
2572 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2573
2574fi
10f2d63a
VZ
2575
2576
2577 eval "$ac_cv_use_debug_info"
2578 if test "$no_cache" != 1; then
2579 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2580 fi
2581
2582 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2583 echo "$ac_t""yes" 1>&6
10f2d63a 2584 else
698dcdb6 2585 echo "$ac_t""no" 1>&6
10f2d63a 2586 fi
698dcdb6 2587
10f2d63a 2588
698dcdb6 2589 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
17234b26 2590echo "configure:2591: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2591 no_cache=0
2592 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2593if test "${enable_debug_gdb+set}" = set; then
2594 enableval="$enable_debug_gdb"
698dcdb6 2595
10f2d63a
VZ
2596 if test "$enableval" = yes; then
2597 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2598 else
2599 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2600 fi
698dcdb6 2601
10f2d63a 2602else
698dcdb6 2603
10f2d63a
VZ
2604 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2605 if test "x$LINE" != x ; then
2606 eval "DEFAULT_$LINE"
2607 else
2608 no_cache=1
2609 fi
2610
2611 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2612
2613fi
10f2d63a
VZ
2614
2615
2616 eval "$ac_cv_use_debug_gdb"
2617 if test "$no_cache" != 1; then
2618 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2619 fi
2620
2621 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2622 echo "$ac_t""yes" 1>&6
10f2d63a 2623 else
698dcdb6 2624 echo "$ac_t""no" 1>&6
10f2d63a 2625 fi
698dcdb6 2626
10f2d63a 2627
698dcdb6 2628 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
17234b26 2629echo "configure:2630: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2630 no_cache=0
2631 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2632if test "${enable_debug_cntxt+set}" = set; then
2633 enableval="$enable_debug_cntxt"
698dcdb6 2634
10f2d63a
VZ
2635 if test "$enableval" = yes; then
2636 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2637 else
2638 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2639 fi
698dcdb6 2640
10f2d63a 2641else
698dcdb6 2642
10f2d63a
VZ
2643 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2651
2652fi
10f2d63a
VZ
2653
2654
2655 eval "$ac_cv_use_debug_cntxt"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2661 echo "$ac_t""yes" 1>&6
10f2d63a 2662 else
698dcdb6 2663 echo "$ac_t""no" 1>&6
10f2d63a 2664 fi
698dcdb6 2665
10f2d63a 2666
698dcdb6 2667 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
17234b26 2668echo "configure:2669: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2669 no_cache=0
2670 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2671if test "${enable_mem_tracing+set}" = set; then
2672 enableval="$enable_mem_tracing"
698dcdb6 2673
10f2d63a
VZ
2674 if test "$enableval" = yes; then
2675 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2676 else
2677 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2678 fi
698dcdb6 2679
10f2d63a 2680else
698dcdb6 2681
10f2d63a
VZ
2682 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2690
2691fi
10f2d63a
VZ
2692
2693
2694 eval "$ac_cv_use_mem_tracing"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2700 echo "$ac_t""yes" 1>&6
10f2d63a 2701 else
698dcdb6 2702 echo "$ac_t""no" 1>&6
10f2d63a 2703 fi
698dcdb6 2704
10f2d63a 2705
698dcdb6 2706 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
17234b26 2707echo "configure:2708: checking for --enable-profile" >&5
10f2d63a
VZ
2708 no_cache=0
2709 # Check whether --enable-profile or --disable-profile was given.
2710if test "${enable_profile+set}" = set; then
2711 enableval="$enable_profile"
698dcdb6 2712
10f2d63a
VZ
2713 if test "$enableval" = yes; then
2714 ac_cv_use_profile='wxUSE_PROFILE=yes'
2715 else
2716 ac_cv_use_profile='wxUSE_PROFILE=no'
2717 fi
698dcdb6 2718
10f2d63a 2719else
698dcdb6 2720
10f2d63a
VZ
2721 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2722 if test "x$LINE" != x ; then
2723 eval "DEFAULT_$LINE"
2724 else
2725 no_cache=1
2726 fi
2727
2728 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2729
2730fi
10f2d63a
VZ
2731
2732
2733 eval "$ac_cv_use_profile"
2734 if test "$no_cache" != 1; then
2735 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2736 fi
2737
2738 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2739 echo "$ac_t""yes" 1>&6
10f2d63a 2740 else
698dcdb6 2741 echo "$ac_t""no" 1>&6
10f2d63a 2742 fi
698dcdb6 2743
10f2d63a 2744
698dcdb6 2745 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
17234b26 2746echo "configure:2747: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2747 no_cache=0
2748 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2749if test "${enable_no_rtti+set}" = set; then
2750 enableval="$enable_no_rtti"
698dcdb6 2751
10f2d63a
VZ
2752 if test "$enableval" = yes; then
2753 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2754 else
2755 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2756 fi
698dcdb6 2757
10f2d63a 2758else
698dcdb6 2759
10f2d63a
VZ
2760 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2761 if test "x$LINE" != x ; then
2762 eval "DEFAULT_$LINE"
2763 else
2764 no_cache=1
2765 fi
2766
2767 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2768
2769fi
10f2d63a
VZ
2770
2771
2772 eval "$ac_cv_use_no_rtti"
2773 if test "$no_cache" != 1; then
2774 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2775 fi
2776
2777 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2778 echo "$ac_t""yes" 1>&6
10f2d63a 2779 else
698dcdb6 2780 echo "$ac_t""no" 1>&6
10f2d63a 2781 fi
698dcdb6 2782
10f2d63a 2783
698dcdb6 2784 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
17234b26 2785echo "configure:2786: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2786 no_cache=0
2787 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2788if test "${enable_no_exceptions+set}" = set; then
2789 enableval="$enable_no_exceptions"
698dcdb6 2790
10f2d63a
VZ
2791 if test "$enableval" = yes; then
2792 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2793 else
2794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2795 fi
698dcdb6 2796
10f2d63a 2797else
698dcdb6 2798
10f2d63a
VZ
2799 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2807
2808fi
10f2d63a
VZ
2809
2810
2811 eval "$ac_cv_use_no_exceptions"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2817 echo "$ac_t""yes" 1>&6
10f2d63a 2818 else
698dcdb6 2819 echo "$ac_t""no" 1>&6
10f2d63a 2820 fi
698dcdb6 2821
10f2d63a 2822
698dcdb6 2823 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
17234b26 2824echo "configure:2825: checking for --enable-permissive" >&5
10f2d63a
VZ
2825 no_cache=0
2826 # Check whether --enable-permissive or --disable-permissive was given.
2827if test "${enable_permissive+set}" = set; then
2828 enableval="$enable_permissive"
698dcdb6 2829
10f2d63a
VZ
2830 if test "$enableval" = yes; then
2831 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2832 else
2833 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2834 fi
698dcdb6 2835
10f2d63a 2836else
698dcdb6 2837
10f2d63a
VZ
2838 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2846
2847fi
10f2d63a
VZ
2848
2849
2850 eval "$ac_cv_use_permissive"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2856 echo "$ac_t""yes" 1>&6
10f2d63a 2857 else
698dcdb6 2858 echo "$ac_t""no" 1>&6
10f2d63a 2859 fi
698dcdb6 2860
10f2d63a 2861
698dcdb6 2862 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
17234b26 2863echo "configure:2864: checking for --enable-no_deps" >&5
10f2d63a
VZ
2864 no_cache=0
2865 # Check whether --enable-no_deps or --disable-no_deps was given.
2866if test "${enable_no_deps+set}" = set; then
2867 enableval="$enable_no_deps"
698dcdb6 2868
10f2d63a
VZ
2869 if test "$enableval" = yes; then
2870 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2871 else
2872 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2873 fi
698dcdb6 2874
10f2d63a 2875else
698dcdb6 2876
10f2d63a
VZ
2877 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2878 if test "x$LINE" != x ; then
2879 eval "DEFAULT_$LINE"
2880 else
2881 no_cache=1
2882 fi
2883
2884 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2885
2886fi
10f2d63a
VZ
2887
2888
2889 eval "$ac_cv_use_no_deps"
2890 if test "$no_cache" != 1; then
2891 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2892 fi
2893
2894 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2895 echo "$ac_t""yes" 1>&6
10f2d63a 2896 else
698dcdb6 2897 echo "$ac_t""no" 1>&6
10f2d63a 2898 fi
698dcdb6
VZ
2899
2900
10f2d63a 2901
54276ccf 2902 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
17234b26 2903echo "configure:2904: checking for --enable-compat20" >&5
54276ccf
VZ
2904 no_cache=0
2905 # Check whether --enable-compat20 or --disable-compat20 was given.
2906if test "${enable_compat20+set}" = set; then
2907 enableval="$enable_compat20"
2908
2909 if test "$enableval" = yes; then
2910 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2911 else
2912 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2913 fi
2914
2915else
2916
2917 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2918 if test "x$LINE" != x ; then
2919 eval "DEFAULT_$LINE"
2920 else
2921 no_cache=1
2922 fi
2923
2924 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2925
2926fi
2927
2928
2929 eval "$ac_cv_use_compat20"
2930 if test "$no_cache" != 1; then
2931 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2932 fi
2933
2934 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2935 echo "$ac_t""yes" 1>&6
2936 else
2937 echo "$ac_t""no" 1>&6
2938 fi
2939
2940
2941 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
17234b26 2942echo "configure:2943: checking for --enable-compat22" >&5
54276ccf
VZ
2943 no_cache=0
2944 # Check whether --enable-compat22 or --disable-compat22 was given.
2945if test "${enable_compat22+set}" = set; then
2946 enableval="$enable_compat22"
2947
2948 if test "$enableval" = yes; then
2949 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2950 else
2951 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2952 fi
2953
2954else
2955
2956 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2957 if test "x$LINE" != x ; then
2958 eval "DEFAULT_$LINE"
2959 else
2960 no_cache=1
2961 fi
2962
2963 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2964
2965fi
2966
2967
2968 eval "$ac_cv_use_compat22"
2969 if test "$no_cache" != 1; then
2970 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2971 fi
2972
2973 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2974 echo "$ac_t""yes" 1>&6
2975 else
2976 echo "$ac_t""no" 1>&6
2977 fi
2978
2979
2980
698dcdb6
VZ
2981
2982 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
17234b26 2983echo "configure:2984: checking for --enable-intl" >&5
10f2d63a
VZ
2984 no_cache=0
2985 # Check whether --enable-intl or --disable-intl was given.
2986if test "${enable_intl+set}" = set; then
2987 enableval="$enable_intl"
698dcdb6 2988
10f2d63a
VZ
2989 if test "$enableval" = yes; then
2990 ac_cv_use_intl='wxUSE_INTL=yes'
2991 else
2992 ac_cv_use_intl='wxUSE_INTL=no'
2993 fi
698dcdb6 2994
10f2d63a 2995else
698dcdb6 2996
10f2d63a
VZ
2997 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2998 if test "x$LINE" != x ; then
2999 eval "DEFAULT_$LINE"
3000 else
3001 no_cache=1
3002 fi
3003
3004 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3005
3006fi
10f2d63a
VZ
3007
3008
3009 eval "$ac_cv_use_intl"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_INTL" = yes; then
698dcdb6 3015 echo "$ac_t""yes" 1>&6
10f2d63a 3016 else
698dcdb6 3017 echo "$ac_t""no" 1>&6
10f2d63a 3018 fi
698dcdb6 3019
10f2d63a 3020
698dcdb6 3021 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
17234b26 3022echo "configure:3023: checking for --enable-config" >&5
10f2d63a
VZ
3023 no_cache=0
3024 # Check whether --enable-config or --disable-config was given.
3025if test "${enable_config+set}" = set; then
3026 enableval="$enable_config"
698dcdb6 3027
10f2d63a
VZ
3028 if test "$enableval" = yes; then
3029 ac_cv_use_config='wxUSE_CONFIG=yes'
3030 else
3031 ac_cv_use_config='wxUSE_CONFIG=no'
3032 fi
698dcdb6 3033
10f2d63a 3034else
698dcdb6 3035
10f2d63a
VZ
3036 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3044
3045fi
10f2d63a
VZ
3046
3047
3048 eval "$ac_cv_use_config"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3054 echo "$ac_t""yes" 1>&6
10f2d63a 3055 else
698dcdb6 3056 echo "$ac_t""no" 1>&6
10f2d63a 3057 fi
698dcdb6
VZ
3058
3059
b12915c1 3060
a1622950 3061 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
17234b26 3062echo "configure:3063: checking for --enable-protocols" >&5
a1622950
VZ
3063 no_cache=0
3064 # Check whether --enable-protocols or --disable-protocols was given.
3065if test "${enable_protocols+set}" = set; then
3066 enableval="$enable_protocols"
3067
3068 if test "$enableval" = yes; then
3069 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3070 else
3071 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3072 fi
3073
3074else
3075
3076 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3077 if test "x$LINE" != x ; then
3078 eval "DEFAULT_$LINE"
3079 else
3080 no_cache=1
3081 fi
3082
3083 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3084
3085fi
3086
3087
3088 eval "$ac_cv_use_protocols"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_PROTOCOL" = yes; then
3094 echo "$ac_t""yes" 1>&6
3095 else
3096 echo "$ac_t""no" 1>&6
3097 fi
3098
3099
3100 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
17234b26 3101echo "configure:3102: checking for --enable-ftp" >&5
a1622950
VZ
3102 no_cache=0
3103 # Check whether --enable-ftp or --disable-ftp was given.
3104if test "${enable_ftp+set}" = set; then
3105 enableval="$enable_ftp"
3106
3107 if test "$enableval" = yes; then
3108 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3109 else
3110 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3111 fi
3112
3113else
3114
3115 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3116 if test "x$LINE" != x ; then
3117 eval "DEFAULT_$LINE"
3118 else
3119 no_cache=1
3120 fi
3121
3122 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3123
3124fi
3125
3126
3127 eval "$ac_cv_use_ftp"
3128 if test "$no_cache" != 1; then
3129 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3130 fi
3131
3132 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3133 echo "$ac_t""yes" 1>&6
3134 else
3135 echo "$ac_t""no" 1>&6
3136 fi
3137
3138
3139 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
17234b26 3140echo "configure:3141: checking for --enable-http" >&5
a1622950
VZ
3141 no_cache=0
3142 # Check whether --enable-http or --disable-http was given.
3143if test "${enable_http+set}" = set; then
3144 enableval="$enable_http"
3145
3146 if test "$enableval" = yes; then
3147 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3148 else
3149 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3162
3163fi
3164
3165
3166 eval "$ac_cv_use_http"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3172 echo "$ac_t""yes" 1>&6
3173 else
3174 echo "$ac_t""no" 1>&6
3175 fi
3176
3177
3178 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
17234b26 3179echo "configure:3180: checking for --enable-fileproto" >&5
a1622950
VZ
3180 no_cache=0
3181 # Check whether --enable-fileproto or --disable-fileproto was given.
3182if test "${enable_fileproto+set}" = set; then
3183 enableval="$enable_fileproto"
3184
3185 if test "$enableval" = yes; then
3186 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3187 else
3188 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3201
3202fi
3203
3204
3205 eval "$ac_cv_use_fileproto"
3206 if test "$no_cache" != 1; then
3207 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3208 fi
3209
3210 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3211 echo "$ac_t""yes" 1>&6
3212 else
3213 echo "$ac_t""no" 1>&6
3214 fi
3215
3216
698dcdb6 3217 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
17234b26 3218echo "configure:3219: checking for --enable-sockets" >&5
10f2d63a
VZ
3219 no_cache=0
3220 # Check whether --enable-sockets or --disable-sockets was given.
3221if test "${enable_sockets+set}" = set; then
3222 enableval="$enable_sockets"
698dcdb6 3223
10f2d63a
VZ
3224 if test "$enableval" = yes; then
3225 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3226 else
3227 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3228 fi
698dcdb6 3229
10f2d63a 3230else
698dcdb6 3231
10f2d63a
VZ
3232 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3240
3241fi
10f2d63a
VZ
3242
3243
3244 eval "$ac_cv_use_sockets"
3245 if test "$no_cache" != 1; then
3246 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3247 fi
3248
3249 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3250 echo "$ac_t""yes" 1>&6
10f2d63a 3251 else
698dcdb6 3252 echo "$ac_t""no" 1>&6
10f2d63a 3253 fi
698dcdb6 3254
b12915c1 3255
698dcdb6
VZ
3256
3257 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
17234b26 3258echo "configure:3259: checking for --enable-ipc" >&5
10f2d63a 3259 no_cache=0
eb4efbdc
VZ
3260 # Check whether --enable-ipc or --disable-ipc was given.
3261if test "${enable_ipc+set}" = set; then
3262 enableval="$enable_ipc"
698dcdb6 3263
10f2d63a 3264 if test "$enableval" = yes; then
eb4efbdc 3265 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3266 else
eb4efbdc 3267 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3268 fi
698dcdb6 3269
10f2d63a 3270else
698dcdb6 3271
eb4efbdc 3272 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
eb4efbdc 3279 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3280
3281fi
10f2d63a
VZ
3282
3283
eb4efbdc 3284 eval "$ac_cv_use_ipc"
10f2d63a 3285 if test "$no_cache" != 1; then
eb4efbdc 3286 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3287 fi
3288
eb4efbdc 3289 if test "$wxUSE_IPC" = yes; then
698dcdb6 3290 echo "$ac_t""yes" 1>&6
10f2d63a 3291 else
698dcdb6 3292 echo "$ac_t""no" 1>&6
10f2d63a 3293 fi
698dcdb6
VZ
3294
3295
eb4efbdc 3296
1e6feb95 3297 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
17234b26 3298echo "configure:3299: checking for --enable-cmdline" >&5
1e6feb95
VZ
3299 no_cache=0
3300 # Check whether --enable-cmdline or --disable-cmdline was given.
3301if test "${enable_cmdline+set}" = set; then
3302 enableval="$enable_cmdline"
3303
3304 if test "$enableval" = yes; then
3305 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3306 else
3307 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3320
3321fi
3322
3323
3324 eval "$ac_cv_use_cmdline"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3330 echo "$ac_t""yes" 1>&6
3331 else
3332 echo "$ac_t""no" 1>&6
3333 fi
3334
3335
3336 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
17234b26 3337echo "configure:3338: checking for --enable-datetime" >&5
1e6feb95
VZ
3338 no_cache=0
3339 # Check whether --enable-datetime or --disable-datetime was given.
3340if test "${enable_datetime+set}" = set; then
3341 enableval="$enable_datetime"
3342
3343 if test "$enableval" = yes; then
3344 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3345 else
3346 ac_cv_use_datetime='wxUSE_DATETIME=no'
3347 fi
3348
3349else
3350
3351 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3359
3360fi
3361
3362
3363 eval "$ac_cv_use_datetime"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_DATETIME" = yes; then
3369 echo "$ac_t""yes" 1>&6
3370 else
3371 echo "$ac_t""no" 1>&6
3372 fi
3373
3374
3375 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
17234b26 3376echo "configure:3377: checking for --enable-timedate" >&5
1e6feb95
VZ
3377 no_cache=0
3378 # Check whether --enable-timedate or --disable-timedate was given.
3379if test "${enable_timedate+set}" = set; then
3380 enableval="$enable_timedate"
3381
3382 if test "$enableval" = yes; then
3383 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3384 else
3385 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3386 fi
3387
3388else
3389
3390 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3398
3399fi
3400
3401
3402 eval "$ac_cv_use_timedate"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_TIMEDATE" = yes; then
3408 echo "$ac_t""yes" 1>&6
3409 else
3410 echo "$ac_t""no" 1>&6
3411 fi
3412
3413
3414 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
17234b26 3415echo "configure:3416: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3416 no_cache=0
3417 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3418if test "${enable_stopwatch+set}" = set; then
3419 enableval="$enable_stopwatch"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3423 else
3424 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_stopwatch"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_STOPWATCH" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
698dcdb6 3453 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
17234b26 3454echo "configure:3455: checking for --enable-dialupman" >&5
10f2d63a 3455 no_cache=0
eb4efbdc
VZ
3456 # Check whether --enable-dialupman or --disable-dialupman was given.
3457if test "${enable_dialupman+set}" = set; then
3458 enableval="$enable_dialupman"
698dcdb6 3459
10f2d63a 3460 if test "$enableval" = yes; then
eb4efbdc 3461 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3462 else
eb4efbdc 3463 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3464 fi
698dcdb6 3465
10f2d63a 3466else
698dcdb6 3467
eb4efbdc 3468 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
eb4efbdc 3475 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3476
3477fi
10f2d63a
VZ
3478
3479
eb4efbdc 3480 eval "$ac_cv_use_dialupman"
10f2d63a 3481 if test "$no_cache" != 1; then
eb4efbdc 3482 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3483 fi
3484
eb4efbdc 3485 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3486 echo "$ac_t""yes" 1>&6
10f2d63a 3487 else
698dcdb6 3488 echo "$ac_t""no" 1>&6
10f2d63a 3489 fi
698dcdb6 3490
10f2d63a 3491
698dcdb6 3492 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
17234b26 3493echo "configure:3494: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3494 no_cache=0
3495 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3496if test "${enable_apple_ieee+set}" = set; then
3497 enableval="$enable_apple_ieee"
698dcdb6 3498
10f2d63a
VZ
3499 if test "$enableval" = yes; then
3500 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3501 else
3502 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3503 fi
698dcdb6 3504
10f2d63a 3505else
698dcdb6 3506
10f2d63a
VZ
3507 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3515
3516fi
10f2d63a
VZ
3517
3518
3519 eval "$ac_cv_use_apple_ieee"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3525 echo "$ac_t""yes" 1>&6
10f2d63a 3526 else
698dcdb6 3527 echo "$ac_t""no" 1>&6
10f2d63a 3528 fi
698dcdb6 3529
10f2d63a 3530
1e6feb95 3531 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
17234b26 3532echo "configure:3533: checking for --enable-timer" >&5
10f2d63a 3533 no_cache=0
1e6feb95
VZ
3534 # Check whether --enable-timer or --disable-timer was given.
3535if test "${enable_timer+set}" = set; then
3536 enableval="$enable_timer"
698dcdb6 3537
10f2d63a 3538 if test "$enableval" = yes; then
1e6feb95 3539 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3540 else
1e6feb95 3541 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3542 fi
698dcdb6 3543
10f2d63a 3544else
698dcdb6 3545
1e6feb95 3546 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3547 if test "x$LINE" != x ; then
3548 eval "DEFAULT_$LINE"
3549 else
3550 no_cache=1
3551 fi
3552
1e6feb95 3553 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3554
3555fi
10f2d63a
VZ
3556
3557
1e6feb95 3558 eval "$ac_cv_use_timer"
10f2d63a 3559 if test "$no_cache" != 1; then
1e6feb95 3560 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3561 fi
3562
1e6feb95 3563 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3564 echo "$ac_t""yes" 1>&6
10f2d63a 3565 else
698dcdb6 3566 echo "$ac_t""no" 1>&6
10f2d63a 3567 fi
698dcdb6 3568
10f2d63a 3569
698dcdb6 3570 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
17234b26 3571echo "configure:3572: checking for --enable-wave" >&5
10f2d63a
VZ
3572 no_cache=0
3573 # Check whether --enable-wave or --disable-wave was given.
3574if test "${enable_wave+set}" = set; then
3575 enableval="$enable_wave"
698dcdb6 3576
10f2d63a
VZ
3577 if test "$enableval" = yes; then
3578 ac_cv_use_wave='wxUSE_WAVE=yes'
3579 else
3580 ac_cv_use_wave='wxUSE_WAVE=no'
3581 fi
698dcdb6 3582
10f2d63a 3583else
698dcdb6 3584
10f2d63a
VZ
3585 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3593
3594fi
10f2d63a
VZ
3595
3596
3597 eval "$ac_cv_use_wave"
3598 if test "$no_cache" != 1; then
3599 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3600 fi
3601
3602 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3603 echo "$ac_t""yes" 1>&6
10f2d63a 3604 else
698dcdb6 3605 echo "$ac_t""no" 1>&6
10f2d63a 3606 fi
698dcdb6 3607
10f2d63a 3608
698dcdb6 3609 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
17234b26 3610echo "configure:3611: checking for --enable-fraction" >&5
10f2d63a
VZ
3611 no_cache=0
3612 # Check whether --enable-fraction or --disable-fraction was given.
3613if test "${enable_fraction+set}" = set; then
3614 enableval="$enable_fraction"
698dcdb6 3615
10f2d63a
VZ
3616 if test "$enableval" = yes; then
3617 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3618 else
3619 ac_cv_use_fraction='wxUSE_FRACTION=no'
3620 fi
698dcdb6 3621
10f2d63a 3622else
698dcdb6 3623
10f2d63a
VZ
3624 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3632
3633fi
10f2d63a
VZ
3634
3635
3636 eval "$ac_cv_use_fraction"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3642 echo "$ac_t""yes" 1>&6
10f2d63a 3643 else
698dcdb6 3644 echo "$ac_t""no" 1>&6
10f2d63a 3645 fi
698dcdb6 3646
10f2d63a 3647
698dcdb6 3648 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
17234b26 3649echo "configure:3650: checking for --enable-dynlib" >&5
10f2d63a
VZ
3650 no_cache=0
3651 # Check whether --enable-dynlib or --disable-dynlib was given.
3652if test "${enable_dynlib+set}" = set; then
3653 enableval="$enable_dynlib"
698dcdb6 3654
10f2d63a
VZ
3655 if test "$enableval" = yes; then
3656 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3657 else
3658 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3659 fi
698dcdb6 3660
10f2d63a 3661else
698dcdb6 3662
10f2d63a
VZ
3663 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3664 if test "x$LINE" != x ; then
3665 eval "DEFAULT_$LINE"
3666 else
3667 no_cache=1
3668 fi
3669
3670 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3671
3672fi
10f2d63a
VZ
3673
3674
3675 eval "$ac_cv_use_dynlib"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3681 echo "$ac_t""yes" 1>&6
10f2d63a 3682 else
698dcdb6 3683 echo "$ac_t""no" 1>&6
10f2d63a 3684 fi
698dcdb6 3685
10f2d63a 3686
0b9ab0bd 3687 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
17234b26 3688echo "configure:3689: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3689 no_cache=0
3690 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3691if test "${enable_dynamicloader+set}" = set; then
3692 enableval="$enable_dynamicloader"
3693
3694 if test "$enableval" = yes; then
3695 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3696 else
3697 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3698 fi
3699
3700else
3701
3702 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
3709 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3710
3711fi
3712
3713
3714 eval "$ac_cv_use_dynamicloader"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3720 echo "$ac_t""yes" 1>&6
3721 else
3722 echo "$ac_t""no" 1>&6
3723 fi
3724
3725
698dcdb6 3726 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
17234b26 3727echo "configure:3728: checking for --enable-longlong" >&5
10f2d63a
VZ
3728 no_cache=0
3729 # Check whether --enable-longlong or --disable-longlong was given.
3730if test "${enable_longlong+set}" = set; then
3731 enableval="$enable_longlong"
698dcdb6 3732
10f2d63a
VZ
3733 if test "$enableval" = yes; then
3734 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3735 else
3736 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3737 fi
698dcdb6 3738
10f2d63a 3739else
698dcdb6 3740
10f2d63a
VZ
3741 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3749
3750fi
10f2d63a
VZ
3751
3752
3753 eval "$ac_cv_use_longlong"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3759 echo "$ac_t""yes" 1>&6
10f2d63a 3760 else
698dcdb6 3761 echo "$ac_t""no" 1>&6
10f2d63a 3762 fi
698dcdb6 3763
10f2d63a 3764
698dcdb6 3765 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
17234b26 3766echo "configure:3767: checking for --enable-geometry" >&5
e8f65ba6
RR
3767 no_cache=0
3768 # Check whether --enable-geometry or --disable-geometry was given.
3769if test "${enable_geometry+set}" = set; then
3770 enableval="$enable_geometry"
698dcdb6 3771
e8f65ba6
RR
3772 if test "$enableval" = yes; then
3773 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3774 else
3775 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3776 fi
698dcdb6 3777
e8f65ba6 3778else
698dcdb6 3779
e8f65ba6
RR
3780 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3788
3789fi
e8f65ba6
RR
3790
3791
3792 eval "$ac_cv_use_geometry"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3798 echo "$ac_t""yes" 1>&6
e8f65ba6 3799 else
698dcdb6 3800 echo "$ac_t""no" 1>&6
e8f65ba6 3801 fi
698dcdb6 3802
e8f65ba6 3803
698dcdb6 3804 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
17234b26 3805echo "configure:3806: checking for --enable-log" >&5
10f2d63a
VZ
3806 no_cache=0
3807 # Check whether --enable-log or --disable-log was given.
3808if test "${enable_log+set}" = set; then
3809 enableval="$enable_log"
698dcdb6 3810
10f2d63a
VZ
3811 if test "$enableval" = yes; then
3812 ac_cv_use_log='wxUSE_LOG=yes'
3813 else
3814 ac_cv_use_log='wxUSE_LOG=no'
3815 fi
698dcdb6 3816
10f2d63a 3817else
698dcdb6 3818
10f2d63a
VZ
3819 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3827
3828fi
10f2d63a
VZ
3829
3830
3831 eval "$ac_cv_use_log"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_LOG" = yes; then
698dcdb6 3837 echo "$ac_t""yes" 1>&6
10f2d63a 3838 else
698dcdb6 3839 echo "$ac_t""no" 1>&6
10f2d63a 3840 fi
698dcdb6 3841
10f2d63a 3842
698dcdb6 3843 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
17234b26 3844echo "configure:3845: checking for --enable-streams" >&5
10f2d63a
VZ
3845 no_cache=0
3846 # Check whether --enable-streams or --disable-streams was given.
3847if test "${enable_streams+set}" = set; then
3848 enableval="$enable_streams"
698dcdb6 3849
10f2d63a
VZ
3850 if test "$enableval" = yes; then
3851 ac_cv_use_streams='wxUSE_STREAMS=yes'
3852 else
3853 ac_cv_use_streams='wxUSE_STREAMS=no'
3854 fi
698dcdb6 3855
10f2d63a 3856else
698dcdb6 3857
10f2d63a
VZ
3858 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3866
3867fi
10f2d63a
VZ
3868
3869
3870 eval "$ac_cv_use_streams"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3876 echo "$ac_t""yes" 1>&6
10f2d63a 3877 else
698dcdb6 3878 echo "$ac_t""no" 1>&6
10f2d63a 3879 fi
698dcdb6 3880
10f2d63a 3881
698dcdb6 3882 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
17234b26 3883echo "configure:3884: checking for --enable-file" >&5
10f2d63a
VZ
3884 no_cache=0
3885 # Check whether --enable-file or --disable-file was given.
3886if test "${enable_file+set}" = set; then
3887 enableval="$enable_file"
698dcdb6 3888
10f2d63a
VZ
3889 if test "$enableval" = yes; then
3890 ac_cv_use_file='wxUSE_FILE=yes'
3891 else
3892 ac_cv_use_file='wxUSE_FILE=no'
3893 fi
698dcdb6 3894
10f2d63a 3895else
698dcdb6 3896
10f2d63a
VZ
3897 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3898 if test "x$LINE" != x ; then
3899 eval "DEFAULT_$LINE"
3900 else
3901 no_cache=1
3902 fi
3903
3904 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3905
3906fi
10f2d63a
VZ
3907
3908
3909 eval "$ac_cv_use_file"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_FILE" = yes; then
698dcdb6 3915 echo "$ac_t""yes" 1>&6
10f2d63a 3916 else
698dcdb6 3917 echo "$ac_t""no" 1>&6
10f2d63a 3918 fi
698dcdb6 3919
10f2d63a 3920
1e6feb95 3921 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
17234b26 3922echo "configure:3923: checking for --enable-ffile" >&5
10f2d63a 3923 no_cache=0
1e6feb95
VZ
3924 # Check whether --enable-ffile or --disable-ffile was given.
3925if test "${enable_ffile+set}" = set; then
3926 enableval="$enable_ffile"
698dcdb6 3927
10f2d63a 3928 if test "$enableval" = yes; then
1e6feb95 3929 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3930 else
1e6feb95 3931 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3932 fi
698dcdb6 3933
10f2d63a 3934else
698dcdb6 3935
1e6feb95 3936 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
1e6feb95 3943 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3944
3945fi
10f2d63a
VZ
3946
3947
1e6feb95 3948 eval "$ac_cv_use_ffile"
10f2d63a 3949 if test "$no_cache" != 1; then
1e6feb95 3950 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3951 fi
3952
1e6feb95 3953 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3954 echo "$ac_t""yes" 1>&6
10f2d63a 3955 else
698dcdb6 3956 echo "$ac_t""no" 1>&6
10f2d63a 3957 fi
698dcdb6 3958
10f2d63a 3959
a3a584a7 3960 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
17234b26 3961echo "configure:3962: checking for --enable-textbuf" >&5
a3a584a7
VZ
3962 no_cache=0
3963 # Check whether --enable-textbuf or --disable-textbuf was given.
3964if test "${enable_textbuf+set}" = set; then
3965 enableval="$enable_textbuf"
3966
3967 if test "$enableval" = yes; then
3968 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3969 else
3970 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3971 fi
3972
3973else
3974
3975 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3976 if test "x$LINE" != x ; then
3977 eval "DEFAULT_$LINE"
3978 else
3979 no_cache=1
3980 fi
3981
3982 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3983
3984fi
3985
3986
3987 eval "$ac_cv_use_textbuf"
3988 if test "$no_cache" != 1; then
3989 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3990 fi
3991
3992 if test "$wxUSE_TEXTBUFFER" = yes; then
3993 echo "$ac_t""yes" 1>&6
3994 else
3995 echo "$ac_t""no" 1>&6
3996 fi
3997
3998
1e6feb95 3999 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
17234b26 4000echo "configure:4001: checking for --enable-textfile" >&5
10f2d63a 4001 no_cache=0
1e6feb95
VZ
4002 # Check whether --enable-textfile or --disable-textfile was given.
4003if test "${enable_textfile+set}" = set; then
4004 enableval="$enable_textfile"
698dcdb6 4005
10f2d63a 4006 if test "$enableval" = yes; then
1e6feb95 4007 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4008 else
1e6feb95 4009 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4010 fi
698dcdb6 4011
10f2d63a 4012else
698dcdb6 4013
1e6feb95 4014 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4015 if test "x$LINE" != x ; then
4016 eval "DEFAULT_$LINE"
4017 else
4018 no_cache=1
4019 fi
4020
1e6feb95 4021 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4022
4023fi
10f2d63a
VZ
4024
4025
1e6feb95 4026 eval "$ac_cv_use_textfile"
10f2d63a 4027 if test "$no_cache" != 1; then
1e6feb95 4028 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4029 fi
4030
1e6feb95 4031 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4032 echo "$ac_t""yes" 1>&6
10f2d63a 4033 else
698dcdb6 4034 echo "$ac_t""no" 1>&6
10f2d63a 4035 fi
698dcdb6 4036
10f2d63a 4037
1e6feb95 4038 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
17234b26 4039echo "configure:4040: checking for --enable-fontmap" >&5
10f2d63a 4040 no_cache=0
1e6feb95
VZ
4041 # Check whether --enable-fontmap or --disable-fontmap was given.
4042if test "${enable_fontmap+set}" = set; then
4043 enableval="$enable_fontmap"
698dcdb6 4044
10f2d63a 4045 if test "$enableval" = yes; then
1e6feb95 4046 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4047 else
1e6feb95 4048 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4049 fi
698dcdb6 4050
10f2d63a 4051else
698dcdb6 4052
1e6feb95 4053 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
1e6feb95 4060 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4061
4062fi
10f2d63a
VZ
4063
4064
1e6feb95 4065 eval "$ac_cv_use_fontmap"
10f2d63a 4066 if test "$no_cache" != 1; then
1e6feb95 4067 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4068 fi
4069
1e6feb95 4070 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4071 echo "$ac_t""yes" 1>&6
10f2d63a 4072 else
698dcdb6 4073 echo "$ac_t""no" 1>&6
10f2d63a 4074 fi
698dcdb6 4075
10f2d63a 4076
1e6feb95 4077 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
17234b26 4078echo "configure:4079: checking for --enable-unicode" >&5
10f2d63a 4079 no_cache=0
1e6feb95
VZ
4080 # Check whether --enable-unicode or --disable-unicode was given.
4081if test "${enable_unicode+set}" = set; then
4082 enableval="$enable_unicode"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4086 else
4087 ac_cv_use_unicode='wxUSE_UNICODE=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4100
4101fi
4102
4103
4104 eval "$ac_cv_use_unicode"
4105 if test "$no_cache" != 1; then
4106 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4107 fi
4108
4109 if test "$wxUSE_UNICODE" = yes; then
4110 echo "$ac_t""yes" 1>&6
4111 else
4112 echo "$ac_t""no" 1>&6
4113 fi
4114
4115
a72a4bfa 4116 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
17234b26 4117echo "configure:4118: checking for --enable-mslu" >&5
a72a4bfa
VS
4118 no_cache=0
4119 # Check whether --enable-mslu or --disable-mslu was given.
4120if test "${enable_mslu+set}" = set; then
4121 enableval="$enable_mslu"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4125 else
4126 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4139
4140fi
4141
4142
4143 eval "$ac_cv_use_mslu"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_UNICODE_MSLU" = yes; then
4149 echo "$ac_t""yes" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4152 fi
4153
4154
1e6feb95 4155 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
17234b26 4156echo "configure:4157: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4157 no_cache=0
4158 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4159if test "${enable_wxprintfv+set}" = set; then
4160 enableval="$enable_wxprintfv"
4161
4162 if test "$enableval" = yes; then
10f2d63a
VZ
4163 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4164 else
4165 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4166 fi
698dcdb6 4167
10f2d63a 4168else
698dcdb6 4169
10f2d63a
VZ
4170 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4178
4179fi
10f2d63a
VZ
4180
4181
4182 eval "$ac_cv_use_wxprintfv"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4188 echo "$ac_t""yes" 1>&6
10f2d63a 4189 else
698dcdb6 4190 echo "$ac_t""no" 1>&6
10f2d63a 4191 fi
698dcdb6 4192
10f2d63a 4193
698dcdb6 4194 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
17234b26 4195echo "configure:4196: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4196 no_cache=0
4197 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4198if test "${enable_std_iostreams+set}" = set; then
4199 enableval="$enable_std_iostreams"
698dcdb6 4200
10f2d63a
VZ
4201 if test "$enableval" = yes; then
4202 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4203 else
4204 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4205 fi
698dcdb6 4206
10f2d63a 4207else
698dcdb6 4208
10f2d63a
VZ
4209 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4210 if test "x$LINE" != x ; then
4211 eval "DEFAULT_$LINE"
4212 else
4213 no_cache=1
4214 fi
4215
4216 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4217
4218fi
10f2d63a
VZ
4219
4220
4221 eval "$ac_cv_use_std_iostreams"
4222 if test "$no_cache" != 1; then
4223 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4224 fi
4225
4226 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4227 echo "$ac_t""yes" 1>&6
10f2d63a 4228 else
698dcdb6 4229 echo "$ac_t""no" 1>&6
10f2d63a 4230 fi
698dcdb6 4231
10f2d63a 4232
698dcdb6 4233 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
17234b26 4234echo "configure:4235: checking for --enable-filesystem" >&5
24528b0c
VS
4235 no_cache=0
4236 # Check whether --enable-filesystem or --disable-filesystem was given.
4237if test "${enable_filesystem+set}" = set; then
4238 enableval="$enable_filesystem"
698dcdb6 4239
24528b0c
VS
4240 if test "$enableval" = yes; then
4241 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4242 else
4243 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4244 fi
698dcdb6 4245
24528b0c 4246else
698dcdb6 4247
24528b0c
VS
4248 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4256
4257fi
24528b0c
VS
4258
4259
4260 eval "$ac_cv_use_filesystem"
4261 if test "$no_cache" != 1; then
4262 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4263 fi
4264
4265 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4266 echo "$ac_t""yes" 1>&6
24528b0c 4267 else
698dcdb6 4268 echo "$ac_t""no" 1>&6
24528b0c 4269 fi
698dcdb6 4270
24528b0c 4271
698dcdb6 4272 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
17234b26 4273echo "configure:4274: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4274 no_cache=0
4275 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4276if test "${enable_fs_inet+set}" = set; then
4277 enableval="$enable_fs_inet"
698dcdb6 4278
10f2d63a
VZ
4279 if test "$enableval" = yes; then
4280 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4281 else
4282 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4283 fi
698dcdb6 4284
10f2d63a 4285else
698dcdb6 4286
10f2d63a
VZ
4287 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4295
4296fi
10f2d63a
VZ
4297
4298
4299 eval "$ac_cv_use_fs_inet"
4300 if test "$no_cache" != 1; then
4301 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4302 fi
4303
4304 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4305 echo "$ac_t""yes" 1>&6
10f2d63a 4306 else
698dcdb6 4307 echo "$ac_t""no" 1>&6
10f2d63a 4308 fi
698dcdb6 4309
10f2d63a 4310
698dcdb6 4311 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
17234b26 4312echo "configure:4313: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4313 no_cache=0
4314 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4315if test "${enable_fs_zip+set}" = set; then
4316 enableval="$enable_fs_zip"
698dcdb6 4317
10f2d63a
VZ
4318 if test "$enableval" = yes; then
4319 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4320 else
4321 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4322 fi
698dcdb6 4323
10f2d63a 4324else
698dcdb6 4325
10f2d63a
VZ
4326 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4334
4335fi
10f2d63a
VZ
4336
4337
4338 eval "$ac_cv_use_fs_zip"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4344 echo "$ac_t""yes" 1>&6
10f2d63a 4345 else
698dcdb6 4346 echo "$ac_t""no" 1>&6
10f2d63a 4347 fi
698dcdb6 4348
10f2d63a 4349
698dcdb6 4350 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
17234b26 4351echo "configure:4352: checking for --enable-zipstream" >&5
10f2d63a
VZ
4352 no_cache=0
4353 # Check whether --enable-zipstream or --disable-zipstream was given.
4354if test "${enable_zipstream+set}" = set; then
4355 enableval="$enable_zipstream"
698dcdb6 4356
10f2d63a
VZ
4357 if test "$enableval" = yes; then
4358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4359 else
4360 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4361 fi
698dcdb6 4362
10f2d63a 4363else
698dcdb6 4364
10f2d63a
VZ
4365 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4373
4374fi
10f2d63a
VZ
4375
4376
4377 eval "$ac_cv_use_zipstream"
4378 if test "$no_cache" != 1; then
4379 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4380 fi
4381
4382 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4383 echo "$ac_t""yes" 1>&6
10f2d63a 4384 else
698dcdb6 4385 echo "$ac_t""no" 1>&6
10f2d63a 4386 fi
698dcdb6 4387
10f2d63a 4388
698dcdb6
VZ
4389
4390 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
17234b26 4391echo "configure:4392: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4392 no_cache=0
4393 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4394if test "${enable_catch_segvs+set}" = set; then
4395 enableval="$enable_catch_segvs"
698dcdb6 4396
eb4efbdc
VZ
4397 if test "$enableval" = yes; then
4398 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4399 else
4400 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4401 fi
698dcdb6 4402
eb4efbdc 4403else
698dcdb6 4404
eb4efbdc
VZ
4405 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4406 if test "x$LINE" != x ; then
4407 eval "DEFAULT_$LINE"
4408 else
4409 no_cache=1
4410 fi
4411
4412 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4413
4414fi
eb4efbdc
VZ
4415
4416
4417 eval "$ac_cv_use_catch_segvs"
4418 if test "$no_cache" != 1; then
4419 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4420 fi
4421
4422 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4423 echo "$ac_t""yes" 1>&6
eb4efbdc 4424 else
698dcdb6 4425 echo "$ac_t""no" 1>&6
eb4efbdc 4426 fi
698dcdb6 4427
eb4efbdc 4428
698dcdb6 4429 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
17234b26 4430echo "configure:4431: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4431 no_cache=0
4432 # Check whether --enable-snglinst or --disable-snglinst was given.
4433if test "${enable_snglinst+set}" = set; then
4434 enableval="$enable_snglinst"
698dcdb6 4435
4f3c5f06
VZ
4436 if test "$enableval" = yes; then
4437 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4438 else
4439 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4440 fi
698dcdb6 4441
4f3c5f06 4442else
698dcdb6 4443
4f3c5f06
VZ
4444 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4445 if test "x$LINE" != x ; then
4446 eval "DEFAULT_$LINE"
4447 else
4448 no_cache=1
4449 fi
4450
4451 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4452
4453fi
4f3c5f06
VZ
4454
4455
4456 eval "$ac_cv_use_snglinst"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4462 echo "$ac_t""yes" 1>&6
4f3c5f06 4463 else
698dcdb6 4464 echo "$ac_t""no" 1>&6
4f3c5f06 4465 fi
698dcdb6
VZ
4466
4467
eb4efbdc 4468
1e6feb95 4469 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
17234b26 4470echo "configure:4471: checking for --enable-mimetype" >&5
1e6feb95
VZ
4471 no_cache=0
4472 # Check whether --enable-mimetype or --disable-mimetype was given.
4473if test "${enable_mimetype+set}" = set; then
4474 enableval="$enable_mimetype"
4475
4476 if test "$enableval" = yes; then
4477 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4478 else
4479 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4480 fi
4481
4482else
4483
4484 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
4491 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4492
4493fi
4494
4495
4496 eval "$ac_cv_use_mimetype"
4497 if test "$no_cache" != 1; then
4498 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4499 fi
4500
4501 if test "$wxUSE_MIMETYPE" = yes; then
4502 echo "$ac_t""yes" 1>&6
4503 else
4504 echo "$ac_t""no" 1>&6
4505 fi
4506
4507
3e44f09d 4508 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
17234b26 4509echo "configure:4510: checking for --enable-system_options" >&5
3e44f09d
VZ
4510 no_cache=0
4511 # Check whether --enable-system_options or --disable-system_options was given.
4512if test "${enable_system_options+set}" = set; then
4513 enableval="$enable_system_options"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4517 else
4518 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4519 fi
4520
4521else
4522
4523 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4531
4532fi
4533
4534
4535 eval "$ac_cv_use_system_options"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
1e6feb95 4547
4cdb0ab0 4548 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
17234b26 4549echo "configure:4550: checking for --enable-url" >&5
4cdb0ab0
VS
4550 no_cache=0
4551 # Check whether --enable-url or --disable-url was given.
4552if test "${enable_url+set}" = set; then
4553 enableval="$enable_url"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_url='wxUSE_URL=yes'
4557 else
4558 ac_cv_use_url='wxUSE_URL=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4571
4572fi
4573
4574
4575 eval "$ac_cv_use_url"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_URL" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
17234b26 4588echo "configure:4589: checking for --enable-protocol" >&5
4cdb0ab0
VS
4589 no_cache=0
4590 # Check whether --enable-protocol or --disable-protocol was given.
4591if test "${enable_protocol+set}" = set; then
4592 enableval="$enable_protocol"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4596 else
4597 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4610
4611fi
4612
4613
4614 eval "$ac_cv_use_protocol"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_PROTOCOL" = yes; then
4620 echo "$ac_t""yes" 1>&6
4621 else
4622 echo "$ac_t""no" 1>&6
4623 fi
4624
4625
4626 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
17234b26 4627echo "configure:4628: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4628 no_cache=0
4629 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4630if test "${enable_protocol_http+set}" = set; then
4631 enableval="$enable_protocol_http"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4635 else
4636 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4649
4650fi
4651
4652
4653 eval "$ac_cv_use_protocol_http"
4654 if test "$no_cache" != 1; then
4655 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4656 fi
4657
4658 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4659 echo "$ac_t""yes" 1>&6
4660 else
4661 echo "$ac_t""no" 1>&6
4662 fi
4663
4664
4665 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
17234b26 4666echo "configure:4667: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4667 no_cache=0
4668 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4669if test "${enable_protocol_ftp+set}" = set; then
4670 enableval="$enable_protocol_ftp"
4671
4672 if test "$enableval" = yes; then
4673 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4674 else
4675 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4676 fi
4677
4678else
4679
4680 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4688
4689fi
4690
4691
4692 eval "$ac_cv_use_protocol_ftp"
4693 if test "$no_cache" != 1; then
4694 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4695 fi
4696
4697 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4698 echo "$ac_t""yes" 1>&6
4699 else
4700 echo "$ac_t""no" 1>&6
4701 fi
4702
4703
4704 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
17234b26 4705echo "configure:4706: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4706 no_cache=0
4707 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4708if test "${enable_protocol_file+set}" = set; then
4709 enableval="$enable_protocol_file"
4710
4711 if test "$enableval" = yes; then
4712 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4713 else
4714 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4715 fi
4716
4717else
4718
4719 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4720 if test "x$LINE" != x ; then
4721 eval "DEFAULT_$LINE"
4722 else
4723 no_cache=1
4724 fi
4725
4726 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4727
4728fi
4729
4730
4731 eval "$ac_cv_use_protocol_file"
4732 if test "$no_cache" != 1; then
4733 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4734 fi
4735
4736 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4737 echo "$ac_t""yes" 1>&6
4738 else
4739 echo "$ac_t""no" 1>&6
4740 fi
4741
4742
4743
4744
698dcdb6
VZ
4745
4746 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
17234b26 4747echo "configure:4748: checking for --enable-threads" >&5
10f2d63a
VZ
4748 no_cache=0
4749 # Check whether --enable-threads or --disable-threads was given.
4750if test "${enable_threads+set}" = set; then
4751 enableval="$enable_threads"
698dcdb6 4752
10f2d63a
VZ
4753 if test "$enableval" = yes; then
4754 ac_cv_use_threads='wxUSE_THREADS=yes'
4755 else
4756 ac_cv_use_threads='wxUSE_THREADS=no'
4757 fi
698dcdb6 4758
10f2d63a 4759else
698dcdb6 4760
10f2d63a
VZ
4761 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
4768 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4769
4770fi
10f2d63a
VZ
4771
4772
4773 eval "$ac_cv_use_threads"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4779 echo "$ac_t""yes" 1>&6
10f2d63a 4780 else
698dcdb6 4781 echo "$ac_t""no" 1>&6
10f2d63a 4782 fi
698dcdb6 4783
10f2d63a 4784
b12915c1
VZ
4785if test "$wxUSE_GUI" = "yes"; then
4786
698dcdb6
VZ
4787
4788
4789 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
17234b26 4790echo "configure:4791: checking for --enable-docview" >&5
10f2d63a
VZ
4791 no_cache=0
4792 # Check whether --enable-docview or --disable-docview was given.
4793if test "${enable_docview+set}" = set; then
4794 enableval="$enable_docview"
698dcdb6 4795
10f2d63a
VZ
4796 if test "$enableval" = yes; then
4797 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4798 else
4799 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4800 fi
698dcdb6 4801
10f2d63a 4802else
698dcdb6 4803
10f2d63a
VZ
4804 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4805 if test "x$LINE" != x ; then
4806 eval "DEFAULT_$LINE"
4807 else
4808 no_cache=1
4809 fi
4810
4811 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4812
4813fi
10f2d63a
VZ
4814
4815
4816 eval "$ac_cv_use_docview"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4822 echo "$ac_t""yes" 1>&6
10f2d63a 4823 else
698dcdb6 4824 echo "$ac_t""no" 1>&6
10f2d63a 4825 fi
698dcdb6 4826
10f2d63a 4827
698dcdb6 4828 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
17234b26 4829echo "configure:4830: checking for --enable-help" >&5
10f2d63a
VZ
4830 no_cache=0
4831 # Check whether --enable-help or --disable-help was given.
4832if test "${enable_help+set}" = set; then
4833 enableval="$enable_help"
698dcdb6 4834
10f2d63a
VZ
4835 if test "$enableval" = yes; then
4836 ac_cv_use_help='wxUSE_HELP=yes'
4837 else
4838 ac_cv_use_help='wxUSE_HELP=no'
4839 fi
698dcdb6 4840
10f2d63a 4841else
698dcdb6 4842
10f2d63a
VZ
4843 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4851
4852fi
10f2d63a
VZ
4853
4854
4855 eval "$ac_cv_use_help"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_HELP" = yes; then
698dcdb6 4861 echo "$ac_t""yes" 1>&6
10f2d63a 4862 else
698dcdb6 4863 echo "$ac_t""no" 1>&6
10f2d63a 4864 fi
698dcdb6 4865
10f2d63a 4866
29fd3c0c 4867 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
17234b26 4868echo "configure:4869: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4869 no_cache=0
4870 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4871if test "${enable_mshtmlhelp+set}" = set; then
4872 enableval="$enable_mshtmlhelp"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4876 else
4877 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4890
4891fi
4892
4893
4894 eval "$ac_cv_use_mshtmlhelp"
4895 if test "$no_cache" != 1; then
4896 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4897 fi
4898
4899 if test "$wxUSE_MS_HTML_HELP" = yes; then
4900 echo "$ac_t""yes" 1>&6
4901 else
4902 echo "$ac_t""no" 1>&6
4903 fi
4904
4905
3379ed37 4906 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
17234b26 4907echo "configure:4908: checking for --enable-html" >&5
3379ed37
VZ
4908 no_cache=0
4909 # Check whether --enable-html or --disable-html was given.
4910if test "${enable_html+set}" = set; then
4911 enableval="$enable_html"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_html='wxUSE_HTML=yes'
4915 else
4916 ac_cv_use_html='wxUSE_HTML=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4929
4930fi
4931
4932
4933 eval "$ac_cv_use_html"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_HTML" = yes; then
4939 echo "$ac_t""yes" 1>&6
4940 else
4941 echo "$ac_t""no" 1>&6
4942 fi
4943
4944
4945 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
17234b26 4946echo "configure:4947: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4947 no_cache=0
4948 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4949if test "${enable_htmlhelp+set}" = set; then
4950 enableval="$enable_htmlhelp"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4954 else
4955 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4968
4969fi
4970
4971
4972 eval "$ac_cv_use_htmlhelp"
4973 if test "$no_cache" != 1; then
4974 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4975 fi
4976
4977 if test "$wxUSE_WXHTML_HELP" = yes; then
4978 echo "$ac_t""yes" 1>&6
4979 else
4980 echo "$ac_t""no" 1>&6
4981 fi
4982
4983
698dcdb6 4984 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
17234b26 4985echo "configure:4986: checking for --enable-constraints" >&5
10f2d63a
VZ
4986 no_cache=0
4987 # Check whether --enable-constraints or --disable-constraints was given.
4988if test "${enable_constraints+set}" = set; then
4989 enableval="$enable_constraints"
698dcdb6 4990
10f2d63a
VZ
4991 if test "$enableval" = yes; then
4992 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4993 else
4994 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4995 fi
698dcdb6 4996
10f2d63a 4997else
698dcdb6 4998
10f2d63a
VZ
4999 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5007
5008fi
10f2d63a
VZ
5009
5010
5011 eval "$ac_cv_use_constraints"
5012 if test "$no_cache" != 1; then
5013 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5014 fi
5015
5016 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5017 echo "$ac_t""yes" 1>&6
10f2d63a 5018 else
698dcdb6 5019 echo "$ac_t""no" 1>&6
10f2d63a 5020 fi
698dcdb6 5021
10f2d63a 5022
698dcdb6 5023 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
17234b26 5024echo "configure:5025: checking for --enable-printarch" >&5
10f2d63a
VZ
5025 no_cache=0
5026 # Check whether --enable-printarch or --disable-printarch was given.
5027if test "${enable_printarch+set}" = set; then
5028 enableval="$enable_printarch"
698dcdb6 5029
10f2d63a
VZ
5030 if test "$enableval" = yes; then
5031 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5032 else
5033 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5034 fi
698dcdb6 5035
10f2d63a 5036else
698dcdb6 5037
10f2d63a
VZ
5038 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
5041 else
5042 no_cache=1
5043 fi
5044
5045 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5046
5047fi
10f2d63a
VZ
5048
5049
5050 eval "$ac_cv_use_printarch"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5056 echo "$ac_t""yes" 1>&6
10f2d63a 5057 else
698dcdb6 5058 echo "$ac_t""no" 1>&6
10f2d63a 5059 fi
698dcdb6 5060
10f2d63a 5061
698dcdb6 5062 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
17234b26 5063echo "configure:5064: checking for --enable-mdi" >&5
10f2d63a
VZ
5064 no_cache=0
5065 # Check whether --enable-mdi or --disable-mdi was given.
5066if test "${enable_mdi+set}" = set; then
5067 enableval="$enable_mdi"
698dcdb6 5068
10f2d63a
VZ
5069 if test "$enableval" = yes; then
5070 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5071 else
5072 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5073 fi
698dcdb6 5074
10f2d63a 5075else
698dcdb6 5076
10f2d63a
VZ
5077 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5078 if test "x$LINE" != x ; then
5079 eval "DEFAULT_$LINE"
5080 else
5081 no_cache=1
5082 fi
5083
5084 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5085
5086fi
10f2d63a
VZ
5087
5088
5089 eval "$ac_cv_use_mdi"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5095 echo "$ac_t""yes" 1>&6
10f2d63a 5096 else
698dcdb6 5097 echo "$ac_t""no" 1>&6
10f2d63a 5098 fi
698dcdb6
VZ
5099
5100
1e6feb95 5101 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
17234b26 5102echo "configure:5103: checking for --enable-loggui" >&5
1e6feb95
VZ
5103 no_cache=0
5104 # Check whether --enable-loggui or --disable-loggui was given.
5105if test "${enable_loggui+set}" = set; then
5106 enableval="$enable_loggui"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5110 else
5111 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5124
5125fi
5126
5127
5128 eval "$ac_cv_use_loggui"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_LOGGUI" = yes; then
5134 echo "$ac_t""yes" 1>&6
5135 else
5136 echo "$ac_t""no" 1>&6
5137 fi
5138
5139
5140 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
17234b26 5141echo "configure:5142: checking for --enable-logwin" >&5
1e6feb95
VZ
5142 no_cache=0
5143 # Check whether --enable-logwin or --disable-logwin was given.
5144if test "${enable_logwin+set}" = set; then
5145 enableval="$enable_logwin"
5146
5147 if test "$enableval" = yes; then
5148 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5149 else
5150 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5151 fi
5152
5153else
5154
5155 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5156 if test "x$LINE" != x ; then
5157 eval "DEFAULT_$LINE"
5158 else
5159 no_cache=1
5160 fi
5161
5162 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5163
5164fi
5165
5166
5167 eval "$ac_cv_use_logwin"
5168 if test "$no_cache" != 1; then
5169 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5170 fi
5171
5172 if test "$wxUSE_LOGWINDOW" = yes; then
5173 echo "$ac_t""yes" 1>&6
5174 else
5175 echo "$ac_t""no" 1>&6
5176 fi
5177
5178
69d27ff7 5179 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
17234b26 5180echo "configure:5181: checking for --enable-logdialog" >&5
69d27ff7
MB
5181 no_cache=0
5182 # Check whether --enable-logdialog or --disable-logdialog was given.
5183if test "${enable_logdialog+set}" = set; then
5184 enableval="$enable_logdialog"
5185
5186 if test "$enableval" = yes; then
5187 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5188 else
5189 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5190 fi
5191
5192else
5193
5194 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5195 if test "x$LINE" != x ; then
5196 eval "DEFAULT_$LINE"
5197 else
5198 no_cache=1
5199 fi
5200
5201 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5202
5203fi
5204
5205
5206 eval "$ac_cv_use_logdialog"
5207 if test "$no_cache" != 1; then
5208 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5209 fi
5210
5211 if test "$wxUSE_LOGDIALOG" = yes; then
5212 echo "$ac_t""yes" 1>&6
5213 else
5214 echo "$ac_t""no" 1>&6
5215 fi
5216
5217
10f2d63a 5218
698dcdb6 5219 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
17234b26 5220echo "configure:5221: checking for --enable-postscript" >&5
10f2d63a
VZ
5221 no_cache=0
5222 # Check whether --enable-postscript or --disable-postscript was given.
5223if test "${enable_postscript+set}" = set; then
5224 enableval="$enable_postscript"
698dcdb6 5225
10f2d63a
VZ
5226 if test "$enableval" = yes; then
5227 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5228 else
5229 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5230 fi
698dcdb6 5231
10f2d63a 5232else
698dcdb6 5233
10f2d63a
VZ
5234 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5242
5243fi
10f2d63a
VZ
5244
5245
5246 eval "$ac_cv_use_postscript"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5252 echo "$ac_t""yes" 1>&6
10f2d63a 5253 else
698dcdb6 5254 echo "$ac_t""no" 1>&6
10f2d63a 5255 fi
698dcdb6
VZ
5256
5257
5258
10f2d63a 5259
1e6feb95 5260
698dcdb6 5261 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
17234b26 5262echo "configure:5263: checking for --enable-prologio" >&5
10f2d63a
VZ
5263 no_cache=0
5264 # Check whether --enable-prologio or --disable-prologio was given.
5265if test "${enable_prologio+set}" = set; then
5266 enableval="$enable_prologio"
698dcdb6 5267
10f2d63a
VZ
5268 if test "$enableval" = yes; then
5269 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5270 else
5271 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5272 fi
698dcdb6 5273
10f2d63a 5274else
698dcdb6 5275
10f2d63a
VZ
5276 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5277 if test "x$LINE" != x ; then
5278 eval "DEFAULT_$LINE"
5279 else
5280 no_cache=1
5281 fi
5282
5283 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5284
5285fi
10f2d63a
VZ
5286
5287
5288 eval "$ac_cv_use_prologio"
5289 if test "$no_cache" != 1; then
5290 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5291 fi
5292
5293 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5294 echo "$ac_t""yes" 1>&6
10f2d63a 5295 else
698dcdb6 5296 echo "$ac_t""no" 1>&6
10f2d63a 5297 fi
698dcdb6 5298
10f2d63a 5299
698dcdb6 5300 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
17234b26 5301echo "configure:5302: checking for --enable-resources" >&5
10f2d63a
VZ
5302 no_cache=0
5303 # Check whether --enable-resources or --disable-resources was given.
5304if test "${enable_resources+set}" = set; then
5305 enableval="$enable_resources"
698dcdb6 5306
10f2d63a
VZ
5307 if test "$enableval" = yes; then
5308 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5309 else
5310 ac_cv_use_resources='wxUSE_RESOURCES=no'
5311 fi
698dcdb6 5312
10f2d63a 5313else
698dcdb6 5314
10f2d63a
VZ
5315 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5316 if test "x$LINE" != x ; then
5317 eval "DEFAULT_$LINE"
5318 else
5319 no_cache=1
5320 fi
5321
5322 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5323
5324fi
10f2d63a
VZ
5325
5326
5327 eval "$ac_cv_use_resources"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5333 echo "$ac_t""yes" 1>&6
10f2d63a 5334 else
698dcdb6 5335 echo "$ac_t""no" 1>&6
10f2d63a 5336 fi
698dcdb6 5337
10f2d63a 5338
698dcdb6
VZ
5339
5340 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
17234b26 5341echo "configure:5342: checking for --enable-xresources" >&5
10f2d63a
VZ
5342 no_cache=0
5343 # Check whether --enable-xresources or --disable-xresources was given.
5344if test "${enable_xresources+set}" = set; then
5345 enableval="$enable_xresources"
698dcdb6 5346
10f2d63a
VZ
5347 if test "$enableval" = yes; then
5348 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5349 else
5350 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5351 fi
698dcdb6 5352
10f2d63a 5353else
698dcdb6 5354
10f2d63a
VZ
5355 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5363
5364fi
10f2d63a
VZ
5365
5366
5367 eval "$ac_cv_use_xresources"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5373 echo "$ac_t""yes" 1>&6
10f2d63a 5374 else
698dcdb6 5375 echo "$ac_t""no" 1>&6
10f2d63a 5376 fi
698dcdb6
VZ
5377
5378
10f2d63a 5379
698dcdb6
VZ
5380
5381 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
17234b26 5382echo "configure:5383: checking for --enable-clipboard" >&5
10f2d63a
VZ
5383 no_cache=0
5384 # Check whether --enable-clipboard or --disable-clipboard was given.
5385if test "${enable_clipboard+set}" = set; then
5386 enableval="$enable_clipboard"
698dcdb6 5387
10f2d63a
VZ
5388 if test "$enableval" = yes; then
5389 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5390 else
5391 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5392 fi
698dcdb6 5393
10f2d63a 5394else
698dcdb6 5395
10f2d63a
VZ
5396 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5404
5405fi
10f2d63a
VZ
5406
5407
5408 eval "$ac_cv_use_clipboard"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5414 echo "$ac_t""yes" 1>&6
10f2d63a 5415 else
698dcdb6 5416 echo "$ac_t""no" 1>&6
10f2d63a 5417 fi
698dcdb6 5418
10f2d63a 5419
698dcdb6 5420 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
17234b26 5421echo "configure:5422: checking for --enable-dnd" >&5
10f2d63a
VZ
5422 no_cache=0
5423 # Check whether --enable-dnd or --disable-dnd was given.
5424if test "${enable_dnd+set}" = set; then
5425 enableval="$enable_dnd"
698dcdb6 5426
10f2d63a
VZ
5427 if test "$enableval" = yes; then
5428 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5429 else
5430 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5431 fi
698dcdb6 5432
10f2d63a 5433else
698dcdb6 5434
10f2d63a
VZ
5435 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5443
5444fi
10f2d63a
VZ
5445
5446
5447 eval "$ac_cv_use_dnd"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5453 echo "$ac_t""yes" 1>&6
10f2d63a 5454 else
698dcdb6 5455 echo "$ac_t""no" 1>&6
10f2d63a 5456 fi
698dcdb6 5457
10f2d63a 5458
698dcdb6 5459 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
17234b26 5460echo "configure:5461: checking for --enable-metafile" >&5
b64f0a5f
RL
5461 no_cache=0
5462 # Check whether --enable-metafile or --disable-metafile was given.
5463if test "${enable_metafile+set}" = set; then
5464 enableval="$enable_metafile"
698dcdb6 5465
b64f0a5f
RL
5466 if test "$enableval" = yes; then
5467 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5468 else
5469 ac_cv_use_metafile='wxUSE_METAFILE=no'
5470 fi
698dcdb6 5471
b64f0a5f 5472else
698dcdb6 5473
b64f0a5f
RL
5474 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5482
5483fi
b64f0a5f
RL
5484
5485
5486 eval "$ac_cv_use_metafile"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5492 echo "$ac_t""yes" 1>&6
b64f0a5f 5493 else
698dcdb6 5494 echo "$ac_t""no" 1>&6
b64f0a5f 5495 fi
698dcdb6
VZ
5496
5497
10f2d63a 5498
24176f2c 5499 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
17234b26 5500echo "configure:5501: checking for --enable-treelayout" >&5
10f2d63a 5501 no_cache=0
24176f2c
GD
5502 # Check whether --enable-treelayout or --disable-treelayout was given.
5503if test "${enable_treelayout+set}" = set; then
5504 enableval="$enable_treelayout"
698dcdb6 5505
10f2d63a 5506 if test "$enableval" = yes; then
24176f2c 5507 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5508 else
24176f2c 5509 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5510 fi
698dcdb6 5511
10f2d63a 5512else
698dcdb6 5513
24176f2c 5514 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
24176f2c 5521 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5522
5523fi
10f2d63a
VZ
5524
5525
24176f2c 5526 eval "$ac_cv_use_treelayout"
10f2d63a 5527 if test "$no_cache" != 1; then
24176f2c 5528 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5529 fi
5530
24176f2c 5531 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5532 echo "$ac_t""yes" 1>&6
10f2d63a 5533 else
698dcdb6 5534 echo "$ac_t""no" 1>&6
10f2d63a 5535 fi
698dcdb6 5536
10f2d63a 5537
698dcdb6
VZ
5538
5539
5540 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
17234b26 5541echo "configure:5542: checking for --enable-controls" >&5
10f2d63a
VZ
5542 no_cache=0
5543 # Check whether --enable-controls or --disable-controls was given.
5544if test "${enable_controls+set}" = set; then
5545 enableval="$enable_controls"
698dcdb6 5546
10f2d63a
VZ
5547 if test "$enableval" = yes; then
5548 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5549 else
5550 ac_cv_use_controls='wxUSE_CONTROLS=no'
5551 fi
698dcdb6 5552
10f2d63a 5553else
698dcdb6 5554
10f2d63a
VZ
5555 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5563
5564fi
10f2d63a
VZ
5565
5566
5567 eval "$ac_cv_use_controls"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5573 echo "$ac_t""yes" 1>&6
10f2d63a 5574 else
698dcdb6 5575 echo "$ac_t""no" 1>&6
10f2d63a 5576 fi
698dcdb6 5577
10f2d63a
VZ
5578
5579if test "$wxUSE_CONTROLS" = "yes"; then
5580 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5581 DEFAULT_wxUSE_BMPBUTTON=yes
5582 DEFAULT_wxUSE_BUTTON=yes
5583 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5584 DEFAULT_wxUSE_CARET=yes
5585 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5586 DEFAULT_wxUSE_CHECKBOX=yes
5587 DEFAULT_wxUSE_CHECKLISTBOX=yes
5588 DEFAULT_wxUSE_CHOICE=yes
5589 DEFAULT_wxUSE_GAUGE=yes
5590 DEFAULT_wxUSE_GRID=yes
cc977e5f 5591 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5592 DEFAULT_wxUSE_IMAGLIST=yes
5593 DEFAULT_wxUSE_LISTBOX=yes
5594 DEFAULT_wxUSE_LISTCTRL=yes
5595 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5596 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5597 DEFAULT_wxUSE_RADIOBOX=yes
5598 DEFAULT_wxUSE_RADIOBTN=yes
5599 DEFAULT_wxUSE_SASH=yes
5600 DEFAULT_wxUSE_SCROLLBAR=yes
5601 DEFAULT_wxUSE_SLIDER=yes
5602 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5603 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5604 DEFAULT_wxUSE_SPLITTER=yes
5605 DEFAULT_wxUSE_STATBMP=yes
5606 DEFAULT_wxUSE_STATBOX=yes
5607 DEFAULT_wxUSE_STATLINE=yes
5608 DEFAULT_wxUSE_STATUSBAR=yes
5609 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5610 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5611 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5612 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5613 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5614 DEFAULT_wxUSE_TOOLTIPS=yes
5615 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5616 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5617 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5618elif test "$wxUSE_CONTROLS" = "no"; then
5619 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5620 DEFAULT_wxUSE_BMPBUTTON=no
5621 DEFAULT_wxUSE_BUTTON=no
5622 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5623 DEFAULT_wxUSE_CARET=no
5624 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5625 DEFAULT_wxUSE_CHECKBOX=no
5626 DEFAULT_wxUSE_CHECKLISTBOX=no
5627 DEFAULT_wxUSE_CHOICE=no
5628 DEFAULT_wxUSE_GAUGE=no
5629 DEFAULT_wxUSE_GRID=no
5630 DEFAULT_wxUSE_NEW_GRID=no
5631 DEFAULT_wxUSE_IMAGLIST=no
5632 DEFAULT_wxUSE_LISTBOX=no
5633 DEFAULT_wxUSE_LISTCTRL=no
5634 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5635 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5636 DEFAULT_wxUSE_RADIOBOX=no
5637 DEFAULT_wxUSE_RADIOBTN=no
5638 DEFAULT_wxUSE_SASH=no
5639 DEFAULT_wxUSE_SCROLLBAR=no
5640 DEFAULT_wxUSE_SLIDER=no
5641 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5642 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5643 DEFAULT_wxUSE_SPLITTER=no
5644 DEFAULT_wxUSE_STATBMP=no
5645 DEFAULT_wxUSE_STATBOX=no
5646 DEFAULT_wxUSE_STATLINE=no
5647 DEFAULT_wxUSE_STATUSBAR=no
5648 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5649 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5650 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5651 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5652 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5653 DEFAULT_wxUSE_TOOLTIPS=no
5654 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5655 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5656 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5657fi
5658
698dcdb6
VZ
5659
5660 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
17234b26 5661echo "configure:5662: checking for --enable-accel" >&5
10f2d63a
VZ
5662 no_cache=0
5663 # Check whether --enable-accel or --disable-accel was given.
5664if test "${enable_accel+set}" = set; then
5665 enableval="$enable_accel"
698dcdb6 5666
10f2d63a
VZ
5667 if test "$enableval" = yes; then
5668 ac_cv_use_accel='wxUSE_ACCEL=yes'
5669 else
5670 ac_cv_use_accel='wxUSE_ACCEL=no'
5671 fi
698dcdb6 5672
10f2d63a 5673else
698dcdb6 5674
10f2d63a
VZ
5675 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5683
5684fi
10f2d63a
VZ
5685
5686
5687 eval "$ac_cv_use_accel"
5688 if test "$no_cache" != 1; then
5689 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5690 fi
5691
5692 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5693 echo "$ac_t""yes" 1>&6
10f2d63a 5694 else
698dcdb6 5695 echo "$ac_t""no" 1>&6
10f2d63a 5696 fi
698dcdb6 5697
10f2d63a 5698
1e6feb95 5699 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
17234b26 5700echo "configure:5701: checking for --enable-button" >&5
10f2d63a 5701 no_cache=0
1e6feb95
VZ
5702 # Check whether --enable-button or --disable-button was given.
5703if test "${enable_button+set}" = set; then
5704 enableval="$enable_button"
698dcdb6 5705
10f2d63a 5706 if test "$enableval" = yes; then
1e6feb95 5707 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5708 else
1e6feb95 5709 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5710 fi
698dcdb6 5711
10f2d63a 5712else
698dcdb6 5713
1e6feb95 5714 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
1e6feb95 5721 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5722
5723fi
10f2d63a
VZ
5724
5725
1e6feb95 5726 eval "$ac_cv_use_button"
10f2d63a 5727 if test "$no_cache" != 1; then
1e6feb95 5728 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5729 fi
5730
1e6feb95 5731 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5732 echo "$ac_t""yes" 1>&6
10f2d63a 5733 else
698dcdb6 5734 echo "$ac_t""no" 1>&6
10f2d63a 5735 fi
698dcdb6 5736
10f2d63a 5737
698dcdb6 5738 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
17234b26 5739echo "configure:5740: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5740 no_cache=0
5741 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5742if test "${enable_bmpbutton+set}" = set; then
5743 enableval="$enable_bmpbutton"
698dcdb6 5744
10f2d63a
VZ
5745 if test "$enableval" = yes; then
5746 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5747 else
5748 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5749 fi
698dcdb6 5750
10f2d63a 5751else
698dcdb6 5752
10f2d63a
VZ
5753 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5761
5762fi
10f2d63a
VZ
5763
5764
5765 eval "$ac_cv_use_bmpbutton"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5771 echo "$ac_t""yes" 1>&6
10f2d63a 5772 else
698dcdb6 5773 echo "$ac_t""no" 1>&6
10f2d63a 5774 fi
698dcdb6 5775
10f2d63a 5776
1e6feb95 5777 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
17234b26 5778echo "configure:5779: checking for --enable-calendar" >&5
1e6feb95
VZ
5779 no_cache=0
5780 # Check whether --enable-calendar or --disable-calendar was given.
5781if test "${enable_calendar+set}" = set; then
5782 enableval="$enable_calendar"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5786 else
5787 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5800
5801fi
5802
5803
5804 eval "$ac_cv_use_calendar"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_CALCTRL" = yes; then
5810 echo "$ac_t""yes" 1>&6
5811 else
5812 echo "$ac_t""no" 1>&6
5813 fi
5814
5815
5816 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
17234b26 5817echo "configure:5818: checking for --enable-caret" >&5
1e6feb95
VZ
5818 no_cache=0
5819 # Check whether --enable-caret or --disable-caret was given.
5820if test "${enable_caret+set}" = set; then
5821 enableval="$enable_caret"
5822
5823 if test "$enableval" = yes; then
5824 ac_cv_use_caret='wxUSE_CARET=yes'
5825 else
5826 ac_cv_use_caret='wxUSE_CARET=no'
5827 fi
5828
5829else
5830
5831 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5832 if test "x$LINE" != x ; then
5833 eval "DEFAULT_$LINE"
5834 else
5835 no_cache=1
5836 fi
5837
5838 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5839
5840fi
5841
5842
5843 eval "$ac_cv_use_caret"
5844 if test "$no_cache" != 1; then
5845 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5846 fi
5847
5848 if test "$wxUSE_CARET" = yes; then
5849 echo "$ac_t""yes" 1>&6
5850 else
5851 echo "$ac_t""no" 1>&6
5852 fi
5853
5854
698dcdb6 5855 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
17234b26 5856echo "configure:5857: checking for --enable-checkbox" >&5
10f2d63a
VZ
5857 no_cache=0
5858 # Check whether --enable-checkbox or --disable-checkbox was given.
5859if test "${enable_checkbox+set}" = set; then
5860 enableval="$enable_checkbox"
698dcdb6 5861
10f2d63a
VZ
5862 if test "$enableval" = yes; then
5863 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5864 else
5865 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5866 fi
698dcdb6 5867
10f2d63a 5868else
698dcdb6 5869
10f2d63a
VZ
5870 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5871 if test "x$LINE" != x ; then
5872 eval "DEFAULT_$LINE"
5873 else
5874 no_cache=1
5875 fi
5876
5877 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5878
5879fi
10f2d63a
VZ
5880
5881
5882 eval "$ac_cv_use_checkbox"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5888 echo "$ac_t""yes" 1>&6
10f2d63a 5889 else
698dcdb6 5890 echo "$ac_t""no" 1>&6
10f2d63a 5891 fi
698dcdb6 5892
10f2d63a 5893
698dcdb6 5894 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
17234b26 5895echo "configure:5896: checking for --enable-checklst" >&5
10f2d63a
VZ
5896 no_cache=0
5897 # Check whether --enable-checklst or --disable-checklst was given.
5898if test "${enable_checklst+set}" = set; then
5899 enableval="$enable_checklst"
698dcdb6 5900
10f2d63a
VZ
5901 if test "$enableval" = yes; then
5902 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5903 else
5904 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5905 fi
698dcdb6 5906
10f2d63a 5907else
698dcdb6 5908
10f2d63a
VZ
5909 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5917
5918fi
10f2d63a
VZ
5919
5920
5921 eval "$ac_cv_use_checklst"
5922 if test "$no_cache" != 1; then
5923 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5924 fi
5925
5926 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5927 echo "$ac_t""yes" 1>&6
10f2d63a 5928 else
698dcdb6 5929 echo "$ac_t""no" 1>&6
10f2d63a 5930 fi
698dcdb6 5931
10f2d63a 5932
698dcdb6 5933 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
17234b26 5934echo "configure:5935: checking for --enable-choice" >&5
10f2d63a
VZ
5935 no_cache=0
5936 # Check whether --enable-choice or --disable-choice was given.
5937if test "${enable_choice+set}" = set; then
5938 enableval="$enable_choice"
698dcdb6 5939
10f2d63a
VZ
5940 if test "$enableval" = yes; then
5941 ac_cv_use_choice='wxUSE_CHOICE=yes'
5942 else
5943 ac_cv_use_choice='wxUSE_CHOICE=no'
5944 fi
698dcdb6 5945
10f2d63a 5946else
698dcdb6 5947
10f2d63a
VZ
5948 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5956
5957fi
10f2d63a
VZ
5958
5959
5960 eval "$ac_cv_use_choice"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5966 echo "$ac_t""yes" 1>&6
10f2d63a 5967 else
698dcdb6 5968 echo "$ac_t""no" 1>&6
10f2d63a 5969 fi
698dcdb6 5970
10f2d63a 5971
698dcdb6 5972 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
17234b26 5973echo "configure:5974: checking for --enable-combobox" >&5
10f2d63a
VZ
5974 no_cache=0
5975 # Check whether --enable-combobox or --disable-combobox was given.
5976if test "${enable_combobox+set}" = set; then
5977 enableval="$enable_combobox"
698dcdb6 5978
10f2d63a
VZ
5979 if test "$enableval" = yes; then
5980 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5981 else
5982 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5983 fi
698dcdb6 5984
10f2d63a 5985else
698dcdb6 5986
10f2d63a
VZ
5987 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5988 if test "x$LINE" != x ; then
5989 eval "DEFAULT_$LINE"
5990 else
5991 no_cache=1
5992 fi
5993
5994 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5995
5996fi
10f2d63a
VZ
5997
5998
5999 eval "$ac_cv_use_combobox"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6005 echo "$ac_t""yes" 1>&6
10f2d63a 6006 else
698dcdb6 6007 echo "$ac_t""no" 1>&6
10f2d63a 6008 fi
698dcdb6 6009
10f2d63a 6010
698dcdb6 6011 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
17234b26 6012echo "configure:6013: checking for --enable-gauge" >&5
10f2d63a
VZ
6013 no_cache=0
6014 # Check whether --enable-gauge or --disable-gauge was given.
6015if test "${enable_gauge+set}" = set; then
6016 enableval="$enable_gauge"
698dcdb6 6017
10f2d63a
VZ
6018 if test "$enableval" = yes; then
6019 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6020 else
6021 ac_cv_use_gauge='wxUSE_GAUGE=no'
6022 fi
698dcdb6 6023
10f2d63a 6024else
698dcdb6 6025
10f2d63a
VZ
6026 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6034
6035fi
10f2d63a
VZ
6036
6037
6038 eval "$ac_cv_use_gauge"
6039 if test "$no_cache" != 1; then
6040 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6041 fi
6042
6043 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6044 echo "$ac_t""yes" 1>&6
10f2d63a 6045 else
698dcdb6 6046 echo "$ac_t""no" 1>&6
10f2d63a 6047 fi
698dcdb6 6048
10f2d63a 6049
698dcdb6 6050 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
17234b26 6051echo "configure:6052: checking for --enable-grid" >&5
10f2d63a
VZ
6052 no_cache=0
6053 # Check whether --enable-grid or --disable-grid was given.
6054if test "${enable_grid+set}" = set; then
6055 enableval="$enable_grid"
698dcdb6 6056
10f2d63a
VZ
6057 if test "$enableval" = yes; then
6058 ac_cv_use_grid='wxUSE_GRID=yes'
6059 else
6060 ac_cv_use_grid='wxUSE_GRID=no'
6061 fi
698dcdb6 6062
10f2d63a 6063else
698dcdb6 6064
10f2d63a
VZ
6065 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6073
6074fi
10f2d63a
VZ
6075
6076
6077 eval "$ac_cv_use_grid"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_GRID" = yes; then
698dcdb6 6083 echo "$ac_t""yes" 1>&6
10f2d63a 6084 else
698dcdb6 6085 echo "$ac_t""no" 1>&6
10f2d63a 6086 fi
698dcdb6 6087
10f2d63a 6088
698dcdb6 6089 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
17234b26 6090echo "configure:6091: checking for --enable-newgrid" >&5
10f2d63a
VZ
6091 no_cache=0
6092 # Check whether --enable-newgrid or --disable-newgrid was given.
6093if test "${enable_newgrid+set}" = set; then
6094 enableval="$enable_newgrid"
698dcdb6 6095
10f2d63a
VZ
6096 if test "$enableval" = yes; then
6097 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6098 else
6099 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6100 fi
698dcdb6 6101
10f2d63a 6102else
698dcdb6 6103
10f2d63a
VZ
6104 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6112
6113fi
10f2d63a
VZ
6114
6115
6116 eval "$ac_cv_use_newgrid"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6122 echo "$ac_t""yes" 1>&6
10f2d63a 6123 else
698dcdb6 6124 echo "$ac_t""no" 1>&6
10f2d63a 6125 fi
698dcdb6 6126
10f2d63a 6127
698dcdb6 6128 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
17234b26 6129echo "configure:6130: checking for --enable-imaglist" >&5
10f2d63a
VZ
6130 no_cache=0
6131 # Check whether --enable-imaglist or --disable-imaglist was given.
6132if test "${enable_imaglist+set}" = set; then
6133 enableval="$enable_imaglist"
698dcdb6 6134
10f2d63a
VZ
6135 if test "$enableval" = yes; then
6136 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6137 else
6138 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6139 fi
698dcdb6 6140
10f2d63a 6141else
698dcdb6 6142
10f2d63a
VZ
6143 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6144 if test "x$LINE" != x ; then
6145 eval "DEFAULT_$LINE"
6146 else
6147 no_cache=1
6148 fi
6149
6150 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6151
6152fi
10f2d63a
VZ
6153
6154
6155 eval "$ac_cv_use_imaglist"
6156 if test "$no_cache" != 1; then
6157 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6158 fi
6159
6160 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6161 echo "$ac_t""yes" 1>&6
10f2d63a 6162 else
698dcdb6 6163 echo "$ac_t""no" 1>&6
10f2d63a 6164 fi
698dcdb6 6165
10f2d63a 6166
698dcdb6 6167 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
17234b26 6168echo "configure:6169: checking for --enable-listbox" >&5
10f2d63a
VZ
6169 no_cache=0
6170 # Check whether --enable-listbox or --disable-listbox was given.
6171if test "${enable_listbox+set}" = set; then
6172 enableval="$enable_listbox"
698dcdb6 6173
10f2d63a
VZ
6174 if test "$enableval" = yes; then
6175 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6176 else
6177 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6178 fi
698dcdb6 6179
10f2d63a 6180else
698dcdb6 6181
10f2d63a
VZ
6182 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
6189 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6190
6191fi
10f2d63a
VZ
6192
6193
6194 eval "$ac_cv_use_listbox"
6195 if test "$no_cache" != 1; then
6196 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6197 fi
6198
6199 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6200 echo "$ac_t""yes" 1>&6
10f2d63a 6201 else
698dcdb6 6202 echo "$ac_t""no" 1>&6
10f2d63a 6203 fi
698dcdb6 6204
10f2d63a 6205
698dcdb6 6206 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
17234b26 6207echo "configure:6208: checking for --enable-listctrl" >&5
10f2d63a
VZ
6208 no_cache=0
6209 # Check whether --enable-listctrl or --disable-listctrl was given.
6210if test "${enable_listctrl+set}" = set; then
6211 enableval="$enable_listctrl"
698dcdb6 6212
10f2d63a
VZ
6213 if test "$enableval" = yes; then
6214 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6215 else
6216 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6217 fi
698dcdb6 6218
10f2d63a 6219else
698dcdb6 6220
10f2d63a
VZ
6221 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6222 if test "x$LINE" != x ; then
6223 eval "DEFAULT_$LINE"
6224 else
6225 no_cache=1
6226 fi
6227
6228 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6229
6230fi
10f2d63a
VZ
6231
6232
6233 eval "$ac_cv_use_listctrl"
6234 if test "$no_cache" != 1; then
6235 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6236 fi
6237
6238 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6239 echo "$ac_t""yes" 1>&6
10f2d63a 6240 else
698dcdb6 6241 echo "$ac_t""no" 1>&6
10f2d63a 6242 fi
698dcdb6 6243
10f2d63a 6244
698dcdb6 6245 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
17234b26 6246echo "configure:6247: checking for --enable-notebook" >&5
10f2d63a
VZ
6247 no_cache=0
6248 # Check whether --enable-notebook or --disable-notebook was given.
6249if test "${enable_notebook+set}" = set; then
6250 enableval="$enable_notebook"
698dcdb6 6251
10f2d63a
VZ
6252 if test "$enableval" = yes; then
6253 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6254 else
6255 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6256 fi
698dcdb6 6257
10f2d63a 6258else
698dcdb6 6259
10f2d63a
VZ
6260 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6261 if test "x$LINE" != x ; then
6262 eval "DEFAULT_$LINE"
6263 else
6264 no_cache=1
6265 fi
6266
6267 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6268
6269fi
10f2d63a
VZ
6270
6271
6272 eval "$ac_cv_use_notebook"
6273 if test "$no_cache" != 1; then
6274 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6275 fi
6276
6277 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6278 echo "$ac_t""yes" 1>&6
10f2d63a 6279 else
698dcdb6 6280 echo "$ac_t""no" 1>&6
10f2d63a 6281 fi
698dcdb6 6282
10f2d63a 6283
24176f2c 6284 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
17234b26 6285echo "configure:6286: checking for --enable-propsheet" >&5
24176f2c
GD
6286 no_cache=0
6287 # Check whether --enable-propsheet or --disable-propsheet was given.
6288if test "${enable_propsheet+set}" = set; then
6289 enableval="$enable_propsheet"
6290
6291 if test "$enableval" = yes; then
6292 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6293 else
6294 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6295 fi
6296
6297else
6298
6299 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6300 if test "x$LINE" != x ; then
6301 eval "DEFAULT_$LINE"
6302 else
6303 no_cache=1
6304 fi
6305
6306 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6307
6308fi
6309
6310
6311 eval "$ac_cv_use_propsheet"
6312 if test "$no_cache" != 1; then
6313 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6314 fi
6315
6316 if test "$wxUSE_PROPSHEET" = yes; then
6317 echo "$ac_t""yes" 1>&6
6318 else
6319 echo "$ac_t""no" 1>&6
6320 fi
6321
6322
698dcdb6 6323 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
17234b26 6324echo "configure:6325: checking for --enable-radiobox" >&5
10f2d63a
VZ
6325 no_cache=0
6326 # Check whether --enable-radiobox or --disable-radiobox was given.
6327if test "${enable_radiobox+set}" = set; then
6328 enableval="$enable_radiobox"
698dcdb6 6329
10f2d63a
VZ
6330 if test "$enableval" = yes; then
6331 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6332 else
6333 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6334 fi
698dcdb6 6335
10f2d63a 6336else
698dcdb6 6337
10f2d63a
VZ
6338 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6346
6347fi
10f2d63a
VZ
6348
6349
6350 eval "$ac_cv_use_radiobox"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6356 echo "$ac_t""yes" 1>&6
10f2d63a 6357 else
698dcdb6 6358 echo "$ac_t""no" 1>&6
10f2d63a 6359 fi
698dcdb6 6360
10f2d63a 6361
698dcdb6 6362 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
17234b26 6363echo "configure:6364: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6364 no_cache=0
6365 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6366if test "${enable_radiobtn+set}" = set; then
6367 enableval="$enable_radiobtn"
698dcdb6 6368
10f2d63a
VZ
6369 if test "$enableval" = yes; then
6370 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6371 else
6372 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6373 fi
698dcdb6 6374
10f2d63a 6375else
698dcdb6 6376
10f2d63a
VZ
6377 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6385
6386fi
10f2d63a
VZ
6387
6388
6389 eval "$ac_cv_use_radiobtn"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6395 echo "$ac_t""yes" 1>&6
10f2d63a 6396 else
698dcdb6 6397 echo "$ac_t""no" 1>&6
10f2d63a 6398 fi
698dcdb6 6399
10f2d63a 6400
698dcdb6 6401 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
17234b26 6402echo "configure:6403: checking for --enable-sash" >&5
10f2d63a
VZ
6403 no_cache=0
6404 # Check whether --enable-sash or --disable-sash was given.
6405if test "${enable_sash+set}" = set; then
6406 enableval="$enable_sash"
698dcdb6 6407
10f2d63a
VZ
6408 if test "$enableval" = yes; then
6409 ac_cv_use_sash='wxUSE_SASH=yes'
6410 else
6411 ac_cv_use_sash='wxUSE_SASH=no'
6412 fi
698dcdb6 6413
10f2d63a 6414else
698dcdb6 6415
10f2d63a
VZ
6416 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
6423 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6424
6425fi
10f2d63a
VZ
6426
6427
6428 eval "$ac_cv_use_sash"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_SASH" = yes; then
698dcdb6 6434 echo "$ac_t""yes" 1>&6
10f2d63a 6435 else
698dcdb6 6436 echo "$ac_t""no" 1>&6
10f2d63a 6437 fi
698dcdb6 6438
10f2d63a 6439
698dcdb6 6440 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
17234b26 6441echo "configure:6442: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6442 no_cache=0
6443 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6444if test "${enable_scrollbar+set}" = set; then
6445 enableval="$enable_scrollbar"
698dcdb6 6446
10f2d63a
VZ
6447 if test "$enableval" = yes; then
6448 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6449 else
6450 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6451 fi
698dcdb6 6452
10f2d63a 6453else
698dcdb6 6454
10f2d63a
VZ
6455 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6456 if test "x$LINE" != x ; then
6457 eval "DEFAULT_$LINE"
6458 else
6459 no_cache=1
6460 fi
6461
6462 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6463
6464fi
10f2d63a
VZ
6465
6466
6467 eval "$ac_cv_use_scrollbar"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6473 echo "$ac_t""yes" 1>&6
10f2d63a 6474 else
698dcdb6 6475 echo "$ac_t""no" 1>&6
10f2d63a 6476 fi
698dcdb6 6477
10f2d63a 6478
698dcdb6 6479 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
17234b26 6480echo "configure:6481: checking for --enable-slider" >&5
10f2d63a
VZ
6481 no_cache=0
6482 # Check whether --enable-slider or --disable-slider was given.
6483if test "${enable_slider+set}" = set; then
6484 enableval="$enable_slider"
698dcdb6 6485
10f2d63a
VZ
6486 if test "$enableval" = yes; then
6487 ac_cv_use_slider='wxUSE_SLIDER=yes'
6488 else
6489 ac_cv_use_slider='wxUSE_SLIDER=no'
6490 fi
698dcdb6 6491
10f2d63a 6492else
698dcdb6 6493
10f2d63a
VZ
6494 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6502
6503fi
10f2d63a
VZ
6504
6505
6506 eval "$ac_cv_use_slider"
6507 if test "$no_cache" != 1; then
6508 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6509 fi
6510
6511 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6512 echo "$ac_t""yes" 1>&6
10f2d63a 6513 else
698dcdb6 6514 echo "$ac_t""no" 1>&6
10f2d63a 6515 fi
698dcdb6 6516
10f2d63a 6517
698dcdb6 6518 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
17234b26 6519echo "configure:6520: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6520 no_cache=0
6521 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6522if test "${enable_spinbtn+set}" = set; then
6523 enableval="$enable_spinbtn"
698dcdb6 6524
10f2d63a
VZ
6525 if test "$enableval" = yes; then
6526 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6527 else
6528 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6529 fi
698dcdb6 6530
10f2d63a 6531else
698dcdb6 6532
10f2d63a
VZ
6533 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6541
6542fi
10f2d63a
VZ
6543
6544
6545 eval "$ac_cv_use_spinbtn"
6546 if test "$no_cache" != 1; then
6547 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6548 fi
6549
6550 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6551 echo "$ac_t""yes" 1>&6
10f2d63a 6552 else
698dcdb6 6553 echo "$ac_t""no" 1>&6
10f2d63a 6554 fi
698dcdb6 6555
10f2d63a 6556
698dcdb6 6557 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
17234b26 6558echo "configure:6559: checking for --enable-spinctrl" >&5
56cfaa52
RR
6559 no_cache=0
6560 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6561if test "${enable_spinctrl+set}" = set; then
6562 enableval="$enable_spinctrl"
698dcdb6 6563
56cfaa52
RR
6564 if test "$enableval" = yes; then
6565 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6566 else
6567 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6568 fi
698dcdb6 6569
56cfaa52 6570else
698dcdb6 6571
56cfaa52
RR
6572 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6573 if test "x$LINE" != x ; then
6574 eval "DEFAULT_$LINE"
6575 else
6576 no_cache=1
6577 fi
6578
6579 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6580
6581fi
56cfaa52
RR
6582
6583
6584 eval "$ac_cv_use_spinctrl"
6585 if test "$no_cache" != 1; then
6586 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6587 fi
6588
6589 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6590 echo "$ac_t""yes" 1>&6
56cfaa52 6591 else
698dcdb6 6592 echo "$ac_t""no" 1>&6
56cfaa52 6593 fi
698dcdb6 6594
56cfaa52 6595
698dcdb6 6596 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
17234b26 6597echo "configure:6598: checking for --enable-splitter" >&5
10f2d63a
VZ
6598 no_cache=0
6599 # Check whether --enable-splitter or --disable-splitter was given.
6600if test "${enable_splitter+set}" = set; then
6601 enableval="$enable_splitter"
698dcdb6 6602
10f2d63a
VZ
6603 if test "$enableval" = yes; then
6604 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6605 else
6606 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6607 fi
698dcdb6 6608
10f2d63a 6609else
698dcdb6 6610
10f2d63a
VZ
6611 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6619
6620fi
10f2d63a
VZ
6621
6622
6623 eval "$ac_cv_use_splitter"
6624 if test "$no_cache" != 1; then
6625 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6626 fi
6627
6628 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6629 echo "$ac_t""yes" 1>&6
10f2d63a 6630 else
698dcdb6 6631 echo "$ac_t""no" 1>&6
10f2d63a 6632 fi
698dcdb6 6633
10f2d63a 6634
698dcdb6 6635 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
17234b26 6636echo "configure:6637: checking for --enable-statbmp" >&5
10f2d63a
VZ
6637 no_cache=0
6638 # Check whether --enable-statbmp or --disable-statbmp was given.
6639if test "${enable_statbmp+set}" = set; then
6640 enableval="$enable_statbmp"
698dcdb6 6641
10f2d63a
VZ
6642 if test "$enableval" = yes; then
6643 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6644 else
6645 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6646 fi
698dcdb6 6647
10f2d63a 6648else
698dcdb6 6649
10f2d63a
VZ
6650 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6658
6659fi
10f2d63a
VZ
6660
6661
6662 eval "$ac_cv_use_statbmp"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6668 echo "$ac_t""yes" 1>&6
10f2d63a 6669 else
698dcdb6 6670 echo "$ac_t""no" 1>&6
10f2d63a 6671 fi
698dcdb6 6672
10f2d63a 6673
698dcdb6 6674 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
17234b26 6675echo "configure:6676: checking for --enable-statbox" >&5
10f2d63a
VZ
6676 no_cache=0
6677 # Check whether --enable-statbox or --disable-statbox was given.
6678if test "${enable_statbox+set}" = set; then
6679 enableval="$enable_statbox"
698dcdb6 6680
10f2d63a
VZ
6681 if test "$enableval" = yes; then
6682 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6683 else
6684 ac_cv_use_statbox='wxUSE_STATBOX=no'
6685 fi
698dcdb6 6686
10f2d63a 6687else
698dcdb6 6688
10f2d63a
VZ
6689 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6697
6698fi
10f2d63a
VZ
6699
6700
6701 eval "$ac_cv_use_statbox"
6702 if test "$no_cache" != 1; then
6703 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6704 fi
6705
6706 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6707 echo "$ac_t""yes" 1>&6
10f2d63a 6708 else
698dcdb6 6709 echo "$ac_t""no" 1>&6
10f2d63a 6710 fi
698dcdb6 6711
10f2d63a 6712
698dcdb6 6713 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
17234b26 6714echo "configure:6715: checking for --enable-statline" >&5
10f2d63a
VZ
6715 no_cache=0
6716 # Check whether --enable-statline or --disable-statline was given.
6717if test "${enable_statline+set}" = set; then
6718 enableval="$enable_statline"
698dcdb6 6719
10f2d63a
VZ
6720 if test "$enableval" = yes; then
6721 ac_cv_use_statline='wxUSE_STATLINE=yes'
6722 else
6723 ac_cv_use_statline='wxUSE_STATLINE=no'
6724 fi
698dcdb6 6725
10f2d63a 6726else
698dcdb6 6727
10f2d63a
VZ
6728 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6736
6737fi
10f2d63a
VZ
6738
6739
6740 eval "$ac_cv_use_statline"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6743 fi
6744
6745 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6746 echo "$ac_t""yes" 1>&6
10f2d63a 6747 else
698dcdb6 6748 echo "$ac_t""no" 1>&6
10f2d63a 6749 fi
698dcdb6 6750
10f2d63a 6751
1e6feb95 6752 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
17234b26 6753echo "configure:6754: checking for --enable-stattext" >&5
1e6feb95
VZ
6754 no_cache=0
6755 # Check whether --enable-stattext or --disable-stattext was given.
6756if test "${enable_stattext+set}" = set; then
6757 enableval="$enable_stattext"
6758
6759 if test "$enableval" = yes; then
6760 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6761 else
6762 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6763 fi
6764
6765else
6766
6767 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6768 if test "x$LINE" != x ; then
6769 eval "DEFAULT_$LINE"
6770 else
6771 no_cache=1
6772 fi
6773
6774 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6775
6776fi
6777
6778
6779 eval "$ac_cv_use_stattext"
6780 if test "$no_cache" != 1; then
6781 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6782 fi
6783
6784 if test "$wxUSE_STATTEXT" = yes; then
6785 echo "$ac_t""yes" 1>&6
6786 else
6787 echo "$ac_t""no" 1>&6
6788 fi
6789
6790
698dcdb6 6791 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
17234b26 6792echo "configure:6793: checking for --enable-statusbar" >&5
10f2d63a
VZ
6793 no_cache=0
6794 # Check whether --enable-statusbar or --disable-statusbar was given.
6795if test "${enable_statusbar+set}" = set; then
6796 enableval="$enable_statusbar"
698dcdb6 6797
10f2d63a
VZ
6798 if test "$enableval" = yes; then
6799 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6800 else
6801 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6802 fi
698dcdb6 6803
10f2d63a 6804else
698dcdb6 6805
10f2d63a
VZ
6806 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6807 if test "x$LINE" != x ; then
6808 eval "DEFAULT_$LINE"
6809 else
6810 no_cache=1
6811 fi
6812
6813 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6814
6815fi
10f2d63a
VZ
6816
6817
6818 eval "$ac_cv_use_statusbar"
6819 if test "$no_cache" != 1; then
6820 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6821 fi
6822
6823 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6824 echo "$ac_t""yes" 1>&6
10f2d63a 6825 else
698dcdb6 6826 echo "$ac_t""no" 1>&6
10f2d63a 6827 fi
698dcdb6 6828
10f2d63a 6829
698dcdb6 6830 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
17234b26 6831echo "configure:6832: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6832 no_cache=0
6833 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6834if test "${enable_tabdialog+set}" = set; then
6835 enableval="$enable_tabdialog"
698dcdb6 6836
10f2d63a
VZ
6837 if test "$enableval" = yes; then
6838 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6839 else
6840 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6841 fi
698dcdb6 6842
10f2d63a 6843else
698dcdb6 6844
10f2d63a
VZ
6845 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6846 if test "x$LINE" != x ; then
6847 eval "DEFAULT_$LINE"
6848 else
6849 no_cache=1
6850 fi
6851
6852 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6853
6854fi
10f2d63a
VZ
6855
6856
6857 eval "$ac_cv_use_tabdialog"
6858 if test "$no_cache" != 1; then
6859 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6860 fi
6861
6862 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6863 echo "$ac_t""yes" 1>&6
10f2d63a 6864 else
698dcdb6 6865 echo "$ac_t""no" 1>&6
10f2d63a 6866 fi
698dcdb6 6867
10f2d63a 6868
1e6feb95 6869 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
17234b26 6870echo "configure:6871: checking for --enable-textctrl" >&5
1e6feb95
VZ
6871 no_cache=0
6872 # Check whether --enable-textctrl or --disable-textctrl was given.
6873if test "${enable_textctrl+set}" = set; then
6874 enableval="$enable_textctrl"
6875
6876 if test "$enableval" = yes; then
6877 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6878 else
6879 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6880 fi
6881
6882else
6883
6884 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6885 if test "x$LINE" != x ; then
6886 eval "DEFAULT_$LINE"
6887 else
6888 no_cache=1
6889 fi
6890
6891 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6892
6893fi
6894
6895
6896 eval "$ac_cv_use_textctrl"
6897 if test "$no_cache" != 1; then
6898 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6899 fi
6900
6901 if test "$wxUSE_TEXTCTRL" = yes; then
6902 echo "$ac_t""yes" 1>&6
6903 else
6904 echo "$ac_t""no" 1>&6
6905 fi
6906
6907
698dcdb6 6908 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
17234b26 6909echo "configure:6910: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6910 no_cache=0
6911 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6912if test "${enable_togglebtn+set}" = set; then
6913 enableval="$enable_togglebtn"
698dcdb6 6914
1db8dc4a
VZ
6915 if test "$enableval" = yes; then
6916 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6917 else
6918 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6919 fi
698dcdb6 6920
1db8dc4a 6921else
698dcdb6 6922
1db8dc4a
VZ
6923 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6924 if test "x$LINE" != x ; then
6925 eval "DEFAULT_$LINE"
6926 else
6927 no_cache=1
6928 fi
6929
6930 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6931
6932fi
1db8dc4a
VZ
6933
6934
6935 eval "$ac_cv_use_togglebtn"
6936 if test "$no_cache" != 1; then
6937 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6938 fi
6939
6940 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6941 echo "$ac_t""yes" 1>&6
1db8dc4a 6942 else
698dcdb6 6943 echo "$ac_t""no" 1>&6
1db8dc4a 6944 fi
698dcdb6 6945
1db8dc4a 6946
698dcdb6 6947 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
17234b26 6948echo "configure:6949: checking for --enable-toolbar" >&5
10f2d63a
VZ
6949 no_cache=0
6950 # Check whether --enable-toolbar or --disable-toolbar was given.
6951if test "${enable_toolbar+set}" = set; then
6952 enableval="$enable_toolbar"
698dcdb6 6953
10f2d63a
VZ
6954 if test "$enableval" = yes; then
6955 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6956 else
6957 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6958 fi
698dcdb6 6959
10f2d63a 6960else
698dcdb6 6961
10f2d63a
VZ
6962 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6963 if test "x$LINE" != x ; then
6964 eval "DEFAULT_$LINE"
6965 else
6966 no_cache=1
6967 fi
6968
6969 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6970
6971fi
10f2d63a
VZ
6972
6973
6974 eval "$ac_cv_use_toolbar"
6975 if test "$no_cache" != 1; then
6976 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6977 fi
6978
6979 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6980 echo "$ac_t""yes" 1>&6
10f2d63a 6981 else
698dcdb6 6982 echo "$ac_t""no" 1>&6
10f2d63a 6983 fi
698dcdb6 6984
10f2d63a 6985
698dcdb6 6986 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
17234b26 6987echo "configure:6988: checking for --enable-tbarnative" >&5
360d6699
VZ
6988 no_cache=0
6989 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6990if test "${enable_tbarnative+set}" = set; then
6991 enableval="$enable_tbarnative"
698dcdb6 6992
360d6699
VZ
6993 if test "$enableval" = yes; then
6994 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6995 else
6996 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6997 fi
698dcdb6 6998
360d6699 6999else
698dcdb6 7000
360d6699
VZ
7001 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7009
7010fi
360d6699
VZ
7011
7012
7013 eval "$ac_cv_use_tbarnative"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7019 echo "$ac_t""yes" 1>&6
360d6699 7020 else
698dcdb6 7021 echo "$ac_t""no" 1>&6
360d6699 7022 fi
698dcdb6 7023
360d6699 7024
698dcdb6 7025 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
17234b26 7026echo "configure:7027: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7027 no_cache=0
7028 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7029if test "${enable_tbarsmpl+set}" = set; then
7030 enableval="$enable_tbarsmpl"
698dcdb6 7031
360d6699
VZ
7032 if test "$enableval" = yes; then
7033 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7034 else
7035 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7036 fi
698dcdb6 7037
360d6699 7038else
698dcdb6 7039
360d6699
VZ
7040 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7041 if test "x$LINE" != x ; then
7042 eval "DEFAULT_$LINE"
7043 else
7044 no_cache=1
7045 fi
7046
7047 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7048
7049fi
360d6699
VZ
7050
7051
7052 eval "$ac_cv_use_tbarsmpl"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7058 echo "$ac_t""yes" 1>&6
360d6699 7059 else
698dcdb6 7060 echo "$ac_t""no" 1>&6
360d6699 7061 fi
698dcdb6 7062
360d6699 7063
698dcdb6 7064 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
17234b26 7065echo "configure:7066: checking for --enable-treectrl" >&5
10f2d63a
VZ
7066 no_cache=0
7067 # Check whether --enable-treectrl or --disable-treectrl was given.
7068if test "${enable_treectrl+set}" = set; then
7069 enableval="$enable_treectrl"
698dcdb6 7070
10f2d63a
VZ
7071 if test "$enableval" = yes; then
7072 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7073 else
7074 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7075 fi
698dcdb6 7076
10f2d63a 7077else
698dcdb6 7078
10f2d63a
VZ
7079 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7087
7088fi
10f2d63a
VZ
7089
7090
1e6feb95
VZ
7091 eval "$ac_cv_use_treectrl"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_TREECTRL" = yes; then
7097 echo "$ac_t""yes" 1>&6
7098 else
7099 echo "$ac_t""no" 1>&6
7100 fi
7101
7102
9926e4a4 7103 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
17234b26 7104echo "configure:7105: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7105 no_cache=0
7106 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7107if test "${enable_tipwindow+set}" = set; then
7108 enableval="$enable_tipwindow"
7109
7110 if test "$enableval" = yes; then
7111 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7112 else
7113 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7114 fi
7115
7116else
7117
7118 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7126
7127fi
7128
7129
7130 eval "$ac_cv_use_tipwindow"
7131 if test "$no_cache" != 1; then
7132 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7133 fi
7134
7135 if test "$wxUSE_TIPWINDOW" = yes; then
7136 echo "$ac_t""yes" 1>&6
7137 else
7138 echo "$ac_t""no" 1>&6
7139 fi
7140
7141
9f41d601 7142 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
17234b26 7143echo "configure:7144: checking for --enable-popupwin" >&5
9f41d601
RR
7144 no_cache=0
7145 # Check whether --enable-popupwin or --disable-popupwin was given.
7146if test "${enable_popupwin+set}" = set; then
7147 enableval="$enable_popupwin"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7151 else
7152 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7165
7166fi
7167
7168
7169 eval "$ac_cv_use_popupwin"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_POPUPWIN" = yes; then
7175 echo "$ac_t""yes" 1>&6
7176 else
7177 echo "$ac_t""no" 1>&6
7178 fi
7179
7180
1e6feb95
VZ
7181
7182
7183 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
17234b26 7184echo "configure:7185: checking for --enable-commondlg" >&5
1e6feb95
VZ
7185 no_cache=0
7186 # Check whether --enable-commondlg or --disable-commondlg was given.
7187if test "${enable_commondlg+set}" = set; then
7188 enableval="$enable_commondlg"
7189
7190 if test "$enableval" = yes; then
7191 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7192 else
7193 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7194 fi
7195
7196else
7197
7198 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7199 if test "x$LINE" != x ; then
7200 eval "DEFAULT_$LINE"
7201 else
7202 no_cache=1
7203 fi
7204
7205 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7206
7207fi
7208
7209
7210 eval "$ac_cv_use_commondlg"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_COMMONDLGS" = yes; then
7216 echo "$ac_t""yes" 1>&6
7217 else
7218 echo "$ac_t""no" 1>&6
7219 fi
7220
7221
7222 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
17234b26 7223echo "configure:7224: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7224 no_cache=0
7225 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7226if test "${enable_choicedlg+set}" = set; then
7227 enableval="$enable_choicedlg"
7228
7229 if test "$enableval" = yes; then
7230 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7231 else
7232 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7233 fi
7234
7235else
7236
7237 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7245
7246fi
7247
7248
7249 eval "$ac_cv_use_choicedlg"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_CHOICEDLG" = yes; then
7255 echo "$ac_t""yes" 1>&6
7256 else
7257 echo "$ac_t""no" 1>&6
7258 fi
7259
7260
7261 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
17234b26 7262echo "configure:7263: checking for --enable-coldlg" >&5
1e6feb95
VZ
7263 no_cache=0
7264 # Check whether --enable-coldlg or --disable-coldlg was given.
7265if test "${enable_coldlg+set}" = set; then
7266 enableval="$enable_coldlg"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7270 else
7271 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7284
7285fi
7286
7287
7288 eval "$ac_cv_use_coldlg"
7289 if test "$no_cache" != 1; then
7290 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7291 fi
7292
7293 if test "$wxUSE_COLOURDLG" = yes; then
7294 echo "$ac_t""yes" 1>&6
7295 else
7296 echo "$ac_t""no" 1>&6
7297 fi
7298
7299
7300 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
17234b26 7301echo "configure:7302: checking for --enable-filedlg" >&5
1e6feb95
VZ
7302 no_cache=0
7303 # Check whether --enable-filedlg or --disable-filedlg was given.
7304if test "${enable_filedlg+set}" = set; then
7305 enableval="$enable_filedlg"
7306
7307 if test "$enableval" = yes; then
7308 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7309 else
7310 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7311 fi
7312
7313else
7314
7315 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7323
7324fi
7325
7326
7327 eval "$ac_cv_use_filedlg"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_FILEDLG" = yes; then
7333 echo "$ac_t""yes" 1>&6
7334 else
7335 echo "$ac_t""no" 1>&6
7336 fi
7337
7338
69d27ff7 7339 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
17234b26 7340echo "configure:7341: checking for --enable-finddlg" >&5
8db37e06 7341 no_cache=0
69d27ff7
MB
7342 # Check whether --enable-finddlg or --disable-finddlg was given.
7343if test "${enable_finddlg+set}" = set; then
7344 enableval="$enable_finddlg"
8db37e06
VZ
7345
7346 if test "$enableval" = yes; then
69d27ff7 7347 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7348 else
69d27ff7 7349 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
69d27ff7 7361 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7362
7363fi
7364
7365
69d27ff7 7366 eval "$ac_cv_use_finddlg"
8db37e06 7367 if test "$no_cache" != 1; then
69d27ff7 7368 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7369 fi
7370
7371 if test "$wxUSE_FINDREPLDLG" = yes; then
7372 echo "$ac_t""yes" 1>&6
7373 else
7374 echo "$ac_t""no" 1>&6
7375 fi
7376
7377
1e6feb95 7378 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
17234b26 7379echo "configure:7380: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7380 no_cache=0
7381 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7382if test "${enable_fontdlg+set}" = set; then
7383 enableval="$enable_fontdlg"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7387 else
7388 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7401
7402fi
7403
7404
7405 eval "$ac_cv_use_fontdlg"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_FONTDLG" = yes; then
7411 echo "$ac_t""yes" 1>&6
7412 else
7413 echo "$ac_t""no" 1>&6
7414 fi
7415
7416
7417 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
17234b26 7418echo "configure:7419: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7419 no_cache=0
7420 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7421if test "${enable_dirdlg+set}" = set; then
7422 enableval="$enable_dirdlg"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7426 else
7427 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7440
7441fi
7442
7443
7444 eval "$ac_cv_use_dirdlg"
10f2d63a 7445 if test "$no_cache" != 1; then
1e6feb95 7446 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7447 fi
7448
1e6feb95 7449 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7450 echo "$ac_t""yes" 1>&6
10f2d63a 7451 else
698dcdb6 7452 echo "$ac_t""no" 1>&6
10f2d63a 7453 fi
698dcdb6
VZ
7454
7455
1e6feb95 7456 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
17234b26 7457echo "configure:7458: checking for --enable-msgdlg" >&5
10f2d63a 7458 no_cache=0
1e6feb95
VZ
7459 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7460if test "${enable_msgdlg+set}" = set; then
7461 enableval="$enable_msgdlg"
698dcdb6 7462
10f2d63a 7463 if test "$enableval" = yes; then
1e6feb95 7464 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7465 else
1e6feb95 7466 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7467 fi
698dcdb6 7468
10f2d63a 7469else
698dcdb6 7470
1e6feb95 7471 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
1e6feb95 7478 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7479
7480fi
10f2d63a
VZ
7481
7482
1e6feb95 7483 eval "$ac_cv_use_msgdlg"
10f2d63a 7484 if test "$no_cache" != 1; then
1e6feb95 7485 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7486 fi
7487
1e6feb95 7488 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7489 echo "$ac_t""yes" 1>&6
10f2d63a 7490 else
698dcdb6 7491 echo "$ac_t""no" 1>&6
10f2d63a 7492 fi
698dcdb6 7493
10f2d63a 7494
1e6feb95 7495 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
17234b26 7496echo "configure:7497: checking for --enable-numberdlg" >&5
10f2d63a 7497 no_cache=0
1e6feb95
VZ
7498 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7499if test "${enable_numberdlg+set}" = set; then
7500 enableval="$enable_numberdlg"
698dcdb6 7501
10f2d63a 7502 if test "$enableval" = yes; then
1e6feb95 7503 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7504 else
1e6feb95 7505 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7506 fi
698dcdb6 7507
10f2d63a 7508else
698dcdb6 7509
1e6feb95 7510 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
1e6feb95 7517 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7518
7519fi
10f2d63a
VZ
7520
7521
1e6feb95 7522 eval "$ac_cv_use_numberdlg"
10f2d63a 7523 if test "$no_cache" != 1; then
1e6feb95 7524 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7525 fi
7526
1e6feb95 7527 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7528 echo "$ac_t""yes" 1>&6
10f2d63a 7529 else
698dcdb6 7530 echo "$ac_t""no" 1>&6
10f2d63a 7531 fi
698dcdb6 7532
10f2d63a 7533
cbca9943 7534 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
17234b26 7535echo "configure:7536: checking for --enable-splash" >&5
cbca9943
VZ
7536 no_cache=0
7537 # Check whether --enable-splash or --disable-splash was given.
7538if test "${enable_splash+set}" = set; then
7539 enableval="$enable_splash"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_splash='wxUSE_SPLASH=yes'
7543 else
7544 ac_cv_use_splash='wxUSE_SPLASH=no'
7545 fi
7546
7547else
7548
7549 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7557
7558fi
7559
7560
7561 eval "$ac_cv_use_splash"
7562 if test "$no_cache" != 1; then
7563 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7564 fi
7565
7566 if test "$wxUSE_SPLASH" = yes; then
7567 echo "$ac_t""yes" 1>&6
7568 else
7569 echo "$ac_t""no" 1>&6
7570 fi
7571
7572
698dcdb6 7573 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
17234b26 7574echo "configure:7575: checking for --enable-textdlg" >&5
10f2d63a
VZ
7575 no_cache=0
7576 # Check whether --enable-textdlg or --disable-textdlg was given.
7577if test "${enable_textdlg+set}" = set; then
7578 enableval="$enable_textdlg"
698dcdb6 7579
10f2d63a
VZ
7580 if test "$enableval" = yes; then
7581 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7582 else
7583 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7584 fi
698dcdb6 7585
10f2d63a 7586else
698dcdb6 7587
10f2d63a
VZ
7588 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7589 if test "x$LINE" != x ; then
7590 eval "DEFAULT_$LINE"
7591 else
7592 no_cache=1
7593 fi
7594
7595 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7596
7597fi
10f2d63a
VZ
7598
7599
7600 eval "$ac_cv_use_textdlg"
7601 if test "$no_cache" != 1; then
7602 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7603 fi
7604
7605 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7606 echo "$ac_t""yes" 1>&6
10f2d63a 7607 else
698dcdb6 7608 echo "$ac_t""no" 1>&6
10f2d63a 7609 fi
698dcdb6 7610
10f2d63a 7611
698dcdb6 7612 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
17234b26 7613echo "configure:7614: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7614 no_cache=0
7615 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7616if test "${enable_tipdlg+set}" = set; then
7617 enableval="$enable_tipdlg"
698dcdb6 7618
10f2d63a
VZ
7619 if test "$enableval" = yes; then
7620 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7621 else
7622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7623 fi
698dcdb6 7624
10f2d63a 7625else
698dcdb6 7626
10f2d63a
VZ
7627 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7628 if test "x$LINE" != x ; then
7629 eval "DEFAULT_$LINE"
7630 else
7631 no_cache=1
7632 fi
7633
7634 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7635
7636fi
10f2d63a
VZ
7637
7638
7639 eval "$ac_cv_use_tipdlg"
7640 if test "$no_cache" != 1; then
7641 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7642 fi
7643
7644 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7645 echo "$ac_t""yes" 1>&6
10f2d63a 7646 else
698dcdb6 7647 echo "$ac_t""no" 1>&6
10f2d63a 7648 fi
698dcdb6 7649
10f2d63a 7650
698dcdb6 7651 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
17234b26 7652echo "configure:7653: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7653 no_cache=0
7654 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7655if test "${enable_progressdlg+set}" = set; then
7656 enableval="$enable_progressdlg"
698dcdb6 7657
10f2d63a
VZ
7658 if test "$enableval" = yes; then
7659 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7660 else
7661 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7662 fi
698dcdb6 7663
10f2d63a 7664else
698dcdb6 7665
10f2d63a
VZ
7666 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7674
7675fi
10f2d63a
VZ
7676
7677
7678 eval "$ac_cv_use_progressdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7684 echo "$ac_t""yes" 1>&6
10f2d63a 7685 else
698dcdb6 7686 echo "$ac_t""no" 1>&6
10f2d63a 7687 fi
698dcdb6 7688
10f2d63a 7689
b1f5d087 7690 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
17234b26 7691echo "configure:7692: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7692 no_cache=0
7693 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7694if test "${enable_wizarddlg+set}" = set; then
7695 enableval="$enable_wizarddlg"
7696
7697 if test "$enableval" = yes; then
7698 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7699 else
7700 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7701 fi
7702
7703else
7704
7705 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7713
7714fi
7715
7716
7717 eval "$ac_cv_use_wizarddlg"
7718 if test "$no_cache" != 1; then
7719 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7720 fi
7721
7722 if test "$wxUSE_WIZARDDLG" = yes; then
7723 echo "$ac_t""yes" 1>&6
7724 else
7725 echo "$ac_t""no" 1>&6
7726 fi
7727
7728
7729
7730
1e6feb95 7731 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
17234b26 7732echo "configure:7733: checking for --enable-menus" >&5
1e6feb95
VZ
7733 no_cache=0
7734 # Check whether --enable-menus or --disable-menus was given.
7735if test "${enable_menus+set}" = set; then
7736 enableval="$enable_menus"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_menus='wxUSE_MENUS=yes'
7740 else
7741 ac_cv_use_menus='wxUSE_MENUS=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7754
7755fi
7756
7757
7758 eval "$ac_cv_use_menus"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_MENUS" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
698dcdb6 7770 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
17234b26 7771echo "configure:7772: checking for --enable-miniframe" >&5
10f2d63a
VZ
7772 no_cache=0
7773 # Check whether --enable-miniframe or --disable-miniframe was given.
7774if test "${enable_miniframe+set}" = set; then
7775 enableval="$enable_miniframe"
698dcdb6 7776
10f2d63a
VZ
7777 if test "$enableval" = yes; then
7778 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7779 else
7780 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7781 fi
698dcdb6 7782
10f2d63a 7783else
698dcdb6 7784
10f2d63a
VZ
7785 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7786 if test "x$LINE" != x ; then
7787 eval "DEFAULT_$LINE"
7788 else
7789 no_cache=1
7790 fi
7791
7792 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7793
7794fi
10f2d63a
VZ
7795
7796
7797 eval "$ac_cv_use_miniframe"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7803 echo "$ac_t""yes" 1>&6
10f2d63a 7804 else
698dcdb6 7805 echo "$ac_t""no" 1>&6
10f2d63a 7806 fi
698dcdb6 7807
10f2d63a 7808
698dcdb6 7809 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
17234b26 7810echo "configure:7811: checking for --enable-tooltips" >&5
10f2d63a
VZ
7811 no_cache=0
7812 # Check whether --enable-tooltips or --disable-tooltips was given.
7813if test "${enable_tooltips+set}" = set; then
7814 enableval="$enable_tooltips"
698dcdb6 7815
10f2d63a
VZ
7816 if test "$enableval" = yes; then
7817 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7818 else
7819 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7820 fi
698dcdb6 7821
10f2d63a 7822else
698dcdb6 7823
10f2d63a
VZ
7824 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7825 if test "x$LINE" != x ; then
7826 eval "DEFAULT_$LINE"
7827 else
7828 no_cache=1
7829 fi
7830
7831 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7832
7833fi
10f2d63a
VZ
7834
7835
7836 eval "$ac_cv_use_tooltips"
7837 if test "$no_cache" != 1; then
7838 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7839 fi
7840
7841 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7842 echo "$ac_t""yes" 1>&6
10f2d63a 7843 else
698dcdb6 7844 echo "$ac_t""no" 1>&6
10f2d63a 7845 fi
698dcdb6 7846
10f2d63a 7847
698dcdb6 7848 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
17234b26 7849echo "configure:7850: checking for --enable-splines" >&5
10f2d63a
VZ
7850 no_cache=0
7851 # Check whether --enable-splines or --disable-splines was given.
7852if test "${enable_splines+set}" = set; then
7853 enableval="$enable_splines"
698dcdb6 7854
10f2d63a
VZ
7855 if test "$enableval" = yes; then
7856 ac_cv_use_splines='wxUSE_SPLINES=yes'
7857 else
7858 ac_cv_use_splines='wxUSE_SPLINES=no'
7859 fi
698dcdb6 7860
10f2d63a 7861else
698dcdb6 7862
10f2d63a
VZ
7863 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7864 if test "x$LINE" != x ; then
7865 eval "DEFAULT_$LINE"
7866 else
7867 no_cache=1
7868 fi
7869
7870 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7871
7872fi
10f2d63a
VZ
7873
7874
7875 eval "$ac_cv_use_splines"
7876 if test "$no_cache" != 1; then
7877 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7878 fi
7879
7880 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7881 echo "$ac_t""yes" 1>&6
10f2d63a 7882 else
698dcdb6 7883 echo "$ac_t""no" 1>&6
10f2d63a 7884 fi
698dcdb6 7885
10f2d63a 7886
698dcdb6 7887 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
17234b26 7888echo "configure:7889: checking for --enable-validators" >&5
10f2d63a
VZ
7889 no_cache=0
7890 # Check whether --enable-validators or --disable-validators was given.
7891if test "${enable_validators+set}" = set; then
7892 enableval="$enable_validators"
698dcdb6 7893
10f2d63a
VZ
7894 if test "$enableval" = yes; then
7895 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7896 else
7897 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7898 fi
698dcdb6 7899
10f2d63a 7900else
698dcdb6 7901
10f2d63a
VZ
7902 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7903 if test "x$LINE" != x ; then
7904 eval "DEFAULT_$LINE"
7905 else
7906 no_cache=1
7907 fi
7908
7909 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7910
7911fi
10f2d63a
VZ
7912
7913
7914 eval "$ac_cv_use_validators"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7920 echo "$ac_t""yes" 1>&6
10f2d63a 7921 else
698dcdb6 7922 echo "$ac_t""no" 1>&6
10f2d63a 7923 fi
698dcdb6 7924
10f2d63a 7925
698dcdb6 7926 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
17234b26 7927echo "configure:7928: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7928 no_cache=0
7929 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7930if test "${enable_busyinfo+set}" = set; then
7931 enableval="$enable_busyinfo"
698dcdb6 7932
10f2d63a
VZ
7933 if test "$enableval" = yes; then
7934 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7935 else
7936 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7937 fi
698dcdb6 7938
10f2d63a 7939else
698dcdb6 7940
10f2d63a
VZ
7941 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7942 if test "x$LINE" != x ; then
7943 eval "DEFAULT_$LINE"
7944 else
7945 no_cache=1
7946 fi
7947
7948 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7949
7950fi
10f2d63a
VZ
7951
7952
7953 eval "$ac_cv_use_busyinfo"
7954 if test "$no_cache" != 1; then
7955 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7956 fi
7957
7958 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7959 echo "$ac_t""yes" 1>&6
10f2d63a 7960 else
698dcdb6 7961 echo "$ac_t""no" 1>&6
10f2d63a 7962 fi
698dcdb6 7963
10f2d63a 7964
698dcdb6 7965 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
17234b26 7966echo "configure:7967: checking for --enable-joystick" >&5
f6bcfd97
BP
7967 no_cache=0
7968 # Check whether --enable-joystick or --disable-joystick was given.
7969if test "${enable_joystick+set}" = set; then
7970 enableval="$enable_joystick"
698dcdb6 7971
f6bcfd97
BP
7972 if test "$enableval" = yes; then
7973 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7974 else
7975 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7976 fi
698dcdb6 7977
f6bcfd97 7978else
698dcdb6 7979
f6bcfd97
BP
7980 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7988
7989fi
f6bcfd97
BP
7990
7991
7992 eval "$ac_cv_use_joystick"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7998 echo "$ac_t""yes" 1>&6
f6bcfd97 7999 else
698dcdb6 8000 echo "$ac_t""no" 1>&6
f6bcfd97 8001 fi
698dcdb6
VZ
8002
8003
1e6feb95 8004 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
17234b26 8005echo "configure:8006: checking for --enable-metafile" >&5
1e6feb95
VZ
8006 no_cache=0
8007 # Check whether --enable-metafile or --disable-metafile was given.
8008if test "${enable_metafile+set}" = set; then
8009 enableval="$enable_metafile"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8013 else
8014 ac_cv_use_metafile='wxUSE_METAFILE=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8027
8028fi
8029
8030
8031 eval "$ac_cv_use_metafile"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_METAFILE" = yes; then
8037 echo "$ac_t""yes" 1>&6
8038 else
8039 echo "$ac_t""no" 1>&6
8040 fi
8041
8042
24fd6d87 8043 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
17234b26 8044echo "configure:8045: checking for --enable-dragimage" >&5
24fd6d87
VZ
8045 no_cache=0
8046 # Check whether --enable-dragimage or --disable-dragimage was given.
8047if test "${enable_dragimage+set}" = set; then
8048 enableval="$enable_dragimage"
8049
8050 if test "$enableval" = yes; then
8051 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8052 else
8053 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8054 fi
8055
8056else
8057
8058 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8059 if test "x$LINE" != x ; then
8060 eval "DEFAULT_$LINE"
8061 else
8062 no_cache=1
8063 fi
8064
8065 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8066
8067fi
8068
8069
8070 eval "$ac_cv_use_dragimage"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_DRAGIMAGE" = yes; then
8076 echo "$ac_t""yes" 1>&6
8077 else
8078 echo "$ac_t""no" 1>&6
8079 fi
8080
8081
10f2d63a 8082
698dcdb6 8083
edae8572 8084 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
17234b26 8085echo "configure:8086: checking for --enable-palette" >&5
edae8572
VZ
8086 no_cache=0
8087 # Check whether --enable-palette or --disable-palette was given.
8088if test "${enable_palette+set}" = set; then
8089 enableval="$enable_palette"
8090
8091 if test "$enableval" = yes; then
8092 ac_cv_use_palette='wxUSE_PALETTE=yes'
8093 else
8094 ac_cv_use_palette='wxUSE_PALETTE=no'
8095 fi
8096
8097else
8098
8099 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8100 if test "x$LINE" != x ; then
8101 eval "DEFAULT_$LINE"
8102 else
8103 no_cache=1
8104 fi
8105
8106 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8107
8108fi
8109
8110
8111 eval "$ac_cv_use_palette"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_PALETTE" = yes; then
8117 echo "$ac_t""yes" 1>&6
8118 else
8119 echo "$ac_t""no" 1>&6
8120 fi
8121
8122
698dcdb6 8123 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
17234b26 8124echo "configure:8125: checking for --enable-image" >&5
0046ff7c
VS
8125 no_cache=0
8126 # Check whether --enable-image or --disable-image was given.
8127if test "${enable_image+set}" = set; then
8128 enableval="$enable_image"
698dcdb6 8129
0046ff7c
VS
8130 if test "$enableval" = yes; then
8131 ac_cv_use_image='wxUSE_IMAGE=yes'
8132 else
8133 ac_cv_use_image='wxUSE_IMAGE=no'
8134 fi
698dcdb6 8135
0046ff7c 8136else
698dcdb6 8137
0046ff7c
VS
8138 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8146
8147fi
0046ff7c
VS
8148
8149
8150 eval "$ac_cv_use_image"
8151 if test "$no_cache" != 1; then
8152 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8153 fi
8154
8155 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8156 echo "$ac_t""yes" 1>&6
0046ff7c 8157 else
698dcdb6 8158 echo "$ac_t""no" 1>&6
0046ff7c 8159 fi
698dcdb6 8160
0046ff7c 8161
698dcdb6 8162 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
17234b26 8163echo "configure:8164: checking for --enable-gif" >&5
10f2d63a
VZ
8164 no_cache=0
8165 # Check whether --enable-gif or --disable-gif was given.
8166if test "${enable_gif+set}" = set; then
8167 enableval="$enable_gif"
698dcdb6 8168
10f2d63a
VZ
8169 if test "$enableval" = yes; then
8170 ac_cv_use_gif='wxUSE_GIF=yes'
8171 else
8172 ac_cv_use_gif='wxUSE_GIF=no'
8173 fi
698dcdb6 8174
10f2d63a 8175else
698dcdb6 8176
10f2d63a
VZ
8177 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8185
8186fi
10f2d63a
VZ
8187
8188
8189 eval "$ac_cv_use_gif"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_GIF" = yes; then
698dcdb6 8195 echo "$ac_t""yes" 1>&6
10f2d63a 8196 else
698dcdb6 8197 echo "$ac_t""no" 1>&6
10f2d63a 8198 fi
698dcdb6 8199
10f2d63a 8200
698dcdb6 8201 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
17234b26 8202echo "configure:8203: checking for --enable-pcx" >&5
10f2d63a
VZ
8203 no_cache=0
8204 # Check whether --enable-pcx or --disable-pcx was given.
8205if test "${enable_pcx+set}" = set; then
8206 enableval="$enable_pcx"
698dcdb6 8207
10f2d63a
VZ
8208 if test "$enableval" = yes; then
8209 ac_cv_use_pcx='wxUSE_PCX=yes'
8210 else
8211 ac_cv_use_pcx='wxUSE_PCX=no'
8212 fi
698dcdb6 8213
10f2d63a 8214else
698dcdb6 8215
10f2d63a
VZ
8216 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8224
8225fi
10f2d63a
VZ
8226
8227
8228 eval "$ac_cv_use_pcx"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_PCX" = yes; then
698dcdb6 8234 echo "$ac_t""yes" 1>&6
10f2d63a 8235 else
698dcdb6 8236 echo "$ac_t""no" 1>&6
10f2d63a 8237 fi
698dcdb6 8238
10f2d63a 8239
4b6b4dfc 8240 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
17234b26 8241echo "configure:8242: checking for --enable-iff" >&5
4b6b4dfc
RR
8242 no_cache=0
8243 # Check whether --enable-iff or --disable-iff was given.
8244if test "${enable_iff+set}" = set; then
8245 enableval="$enable_iff"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_iff='wxUSE_IFF=yes'
8249 else
8250 ac_cv_use_iff='wxUSE_IFF=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8263
8264fi
8265
8266
8267 eval "$ac_cv_use_iff"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_IFF" = yes; then
8273 echo "$ac_t""yes" 1>&6
8274 else
8275 echo "$ac_t""no" 1>&6
8276 fi
8277
8278
698dcdb6 8279 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
17234b26 8280echo "configure:8281: checking for --enable-pnm" >&5
10f2d63a
VZ
8281 no_cache=0
8282 # Check whether --enable-pnm or --disable-pnm was given.
8283if test "${enable_pnm+set}" = set; then
8284 enableval="$enable_pnm"
698dcdb6 8285
10f2d63a
VZ
8286 if test "$enableval" = yes; then
8287 ac_cv_use_pnm='wxUSE_PNM=yes'
8288 else
8289 ac_cv_use_pnm='wxUSE_PNM=no'
8290 fi
698dcdb6 8291
10f2d63a 8292else
698dcdb6 8293
10f2d63a
VZ
8294 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8295 if test "x$LINE" != x ; then
8296 eval "DEFAULT_$LINE"
8297 else
8298 no_cache=1
8299 fi
8300
8301 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8302
8303fi
10f2d63a
VZ
8304
8305
8306 eval "$ac_cv_use_pnm"
8307 if test "$no_cache" != 1; then
8308 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8309 fi
8310
8311 if test "$wxUSE_PNM" = yes; then
698dcdb6 8312 echo "$ac_t""yes" 1>&6
10f2d63a 8313 else
698dcdb6 8314 echo "$ac_t""no" 1>&6
10f2d63a 8315 fi
698dcdb6 8316
10f2d63a 8317
69d27ff7 8318 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
17234b26 8319echo "configure:8320: checking for --enable-xpm" >&5
0046ff7c 8320 no_cache=0
69d27ff7
MB
8321 # Check whether --enable-xpm or --disable-xpm was given.
8322if test "${enable_xpm+set}" = set; then
8323 enableval="$enable_xpm"
698dcdb6 8324
0046ff7c 8325 if test "$enableval" = yes; then
69d27ff7 8326 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8327 else
69d27ff7 8328 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8329 fi
698dcdb6 8330
0046ff7c 8331else
698dcdb6 8332
0046ff7c
VS
8333 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8334 if test "x$LINE" != x ; then
8335 eval "DEFAULT_$LINE"
8336 else
8337 no_cache=1
8338 fi
8339
69d27ff7 8340 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8341
8342fi
0046ff7c
VS
8343
8344
69d27ff7 8345 eval "$ac_cv_use_xpm"
0046ff7c 8346 if test "$no_cache" != 1; then
69d27ff7 8347 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8348 fi
8349
8350 if test "$wxUSE_XPM" = yes; then
698dcdb6 8351 echo "$ac_t""yes" 1>&6
0046ff7c 8352 else
698dcdb6 8353 echo "$ac_t""no" 1>&6
0046ff7c 8354 fi
698dcdb6 8355
0046ff7c 8356
c7206e64 8357 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
17234b26 8358echo "configure:8359: checking for --enable-ico_cur" >&5
658974ae 8359 no_cache=0
c7206e64
VS
8360 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8361if test "${enable_ico_cur+set}" = set; then
8362 enableval="$enable_ico_cur"
658974ae
VS
8363
8364 if test "$enableval" = yes; then
c7206e64 8365 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8366 else
c7206e64 8367 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8368 fi
8369
8370else
8371
8372 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
c7206e64 8379 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8380
8381fi
8382
8383
c7206e64 8384 eval "$ac_cv_use_ico_cur"
658974ae 8385 if test "$no_cache" != 1; then
c7206e64 8386 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8387 fi
8388
8389 if test "$wxUSE_ICO_CUR" = yes; then
8390 echo "$ac_t""yes" 1>&6
8391 else
8392 echo "$ac_t""no" 1>&6
8393 fi
8394
8395
b12915c1
VZ
8396fi
8397
d558c907
VS
8398case "${host}" in
8399 *-pc-os2_emx | *-pc-os2-emx )
8400 LEX_STEM="lexyy"
8401 ;;
8402 *)
8403 PATH_IFS=':'
8404 LEX_STEM="lex.yy"
8405 ;;
8406esac
8407
8408
698dcdb6 8409
10f2d63a
VZ
8410 echo "saving argument cache $wx_arg_cache_file"
8411 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8412
10f2d63a 8413
698dcdb6
VZ
8414
8415echo $ac_n "checking for toolkit""... $ac_c" 1>&6
17234b26 8416echo "configure:8417: checking for toolkit" >&5
10f2d63a
VZ
8417
8418if test "$wxUSE_GUI" = "yes"; then
8419
3a922bb4
RL
8420 if test "$USE_BEOS" = 1; then
8421 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8422 fi
b12915c1 8423
3a922bb4
RL
8424 if test "$TOOLKIT_GIVEN" = 1; then
8425 for toolkit in `echo $ALL_TOOLKITS`; do
8426 var=wxUSE_$toolkit
8427 eval "value=\$${var}"
8428 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8429 done
10f2d63a 8430 else
3a922bb4
RL
8431 for toolkit in `echo $ALL_TOOLKITS`; do
8432 if test "$has_toolkit_in_cache" != 1; then
8433 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8434 else
8435 var=DEFAULT_wxUSE_$toolkit
8436 fi
8437 eval "wxUSE_$toolkit=\$${var}"
8438 done
10f2d63a 8439 fi
10f2d63a 8440
3a922bb4 8441 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8442 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8443
d558c907 8444 case "${host}" in
6fa882bd 8445 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8446 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8447 esac
10f2d63a 8448
3a922bb4
RL
8449 case "$NUM_TOOLKITS" in
8450 1)
8451 ;;
8452 0)
8453 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8454 ;;
8455 *)
8456 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8457 esac
10f2d63a 8458
3a922bb4
RL
8459 for toolkit in `echo $ALL_TOOLKITS`; do
8460 var=wxUSE_$toolkit
8461 eval "value=\$${var}"
8462 if test "x$value" != x; then
8463 cache_var=CACHE_$toolkit
8464 eval "cache=\$${cache_var}"
8465 if test "$cache" = 1; then
8466 echo "$var=$value" >> ${wx_arg_cache_file}
8467 fi
8468 if test "$value" = 1; then
8469 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8470 echo "$ac_t""$toolkit_echo" 1>&6
8471 fi
8472 fi
8473 done
10f2d63a 8474else
3a922bb4 8475 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8476fi
8477
698dcdb6 8478
17234b26
MB
8479define_win32=0
8480case "${host}" in
8481 *-*-cygwin*)
8482 if test "$wxUSE_MSW" = 1 ; then
8483 define_win32=1
8484 fi
8485 ;;
8486 *-*-mingw*)
8487 define_win32=1
8488 ;;
8489esac
8490
8491if test "$define_win32" = 1 ; then
8492 USE_UNIX=0
8493 USE_WIN32=1
8494 cat >> confdefs.h <<\EOF
8495#define __WIN32__ 1
8496EOF
8497
8498 cat >> confdefs.h <<\EOF
8499#define __WIN95__ 1
8500EOF
8501
8502 cat >> confdefs.h <<\EOF
8503#define __WINDOWS__ 1
8504EOF
8505
8506 cat >> confdefs.h <<\EOF
8507#define __GNUWIN32__ 1
8508EOF
8509
8510 cat >> confdefs.h <<\EOF
8511#define STRICT 1
8512EOF
8513
8514 cat >> confdefs.h <<\EOF
8515#define WINVER 0x0400
8516EOF
8517
8518else
8519 USE_UNIX=1
8520 USE_WIN32=0
8521fi
8522
8523if test "$USE_UNIX" = 1 ; then
8524 wxUSE_UNIX=yes
8525 cat >> confdefs.h <<\EOF
8526#define __UNIX__ 1
8527EOF
8528
8529fi
8530
8531
698dcdb6 8532cat > confcache <<\EOF
10f2d63a
VZ
8533# This file is a shell script that caches the results of configure
8534# tests run on this system so they can be shared between configure
698dcdb6
VZ
8535# scripts and configure runs. It is not useful on other systems.
8536# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8537#
698dcdb6
VZ
8538# By default, configure uses ./config.cache as the cache file,
8539# creating it if it does not exist already. You can give configure
8540# the --cache-file=FILE option to use a different cache file; that is
8541# what configure does when it calls configure scripts in
8542# subdirectories, so they share the cache.
8543# Giving --cache-file=/dev/null disables caching, for debugging configure.
8544# config.status only pays attention to the cache file if you give it the
8545# --recheck option to rerun configure.
10f2d63a 8546#
698dcdb6 8547EOF
10f2d63a
VZ
8548# The following way of writing the cache mishandles newlines in values,
8549# but we know of no workaround that is simple, portable, and efficient.
8550# So, don't put newlines in cache variables' values.
8551# Ultrix sh set writes to stderr and can't be redirected directly,
8552# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8553(set) 2>&1 |
8554 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8555 *ac_space=\ *)
8556 # `set' does not quote correctly, so add quotes (double-quote substitution
8557 # turns \\\\ into \\, and sed turns \\ into \).
8558 sed -n \
8559 -e "s/'/'\\\\''/g" \
8560 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8561 ;;
8562 *)
8563 # `set' quotes correctly as required by POSIX, so do not add quotes.
8564 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8565 ;;
8566 esac >> confcache
8567if cmp -s $cache_file confcache; then
8568 :
8569else
10f2d63a 8570 if test -w $cache_file; then
698dcdb6
VZ
8571 echo "updating cache $cache_file"
8572 cat confcache > $cache_file
10f2d63a
VZ
8573 else
8574 echo "not updating unwritable cache $cache_file"
8575 fi
8576fi
8577rm -f confcache
8578
698dcdb6 8579
e59890c3 8580if test "$build" != "$host" ; then
9d353d4a 8581 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8582 CC=$host_alias-gcc
8583 CXX=$host_alias-c++
8584 AR=$host_alias-ar
8585 RANLIB=$host_alias-ranlib
8586 DLLTOOL=$host_alias-dlltool
8587 RESCOMP=$host_alias-windres
8588 LD=$host_alias-ld
8589 NM=$host_alias-nm
8590 STRIP=$host_alias-strip
8591 else
8592 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8593 fi
10f2d63a
VZ
8594fi
8595
ec603395 8596CFLAGS=${CFLAGS:=}
698dcdb6 8597# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8598set dummy gcc; ac_word=$2
698dcdb6 8599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 8600echo "configure:8601: checking for $ac_word" >&5
698dcdb6
VZ
8601if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8603else
8604 if test -n "$CC"; then
8605 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8606else
698dcdb6
VZ
8607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8608 ac_dummy="$PATH"
8609 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 if test -f $ac_dir/$ac_word; then
8612 ac_cv_prog_CC="gcc"
8613 break
8614 fi
8615 done
8616 IFS="$ac_save_ifs"
10f2d63a 8617fi
6232543b 8618fi
698dcdb6 8619CC="$ac_cv_prog_CC"
6232543b 8620if test -n "$CC"; then
698dcdb6 8621 echo "$ac_t""$CC" 1>&6
1e487827 8622else
698dcdb6 8623 echo "$ac_t""no" 1>&6
1e487827 8624fi
6232543b 8625
1e487827
VS
8626if test -z "$CC"; then
8627 # Extract the first word of "cc", so it can be a program name with args.
8628set dummy cc; ac_word=$2
698dcdb6 8629echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 8630echo "configure:8631: checking for $ac_word" >&5
698dcdb6
VZ
8631if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8633else
8634 if test -n "$CC"; then
8635 ac_cv_prog_CC="$CC" # Let the user override the test.
8636else
698dcdb6 8637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8638 ac_prog_rejected=no
698dcdb6
VZ
8639 ac_dummy="$PATH"
8640 for ac_dir in $ac_dummy; do
8641 test -z "$ac_dir" && ac_dir=.
8642 if test -f $ac_dir/$ac_word; then
8643 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8644 ac_prog_rejected=yes
8645 continue
8646 fi
8647 ac_cv_prog_CC="cc"
8648 break
8649 fi
8650 done
8651 IFS="$ac_save_ifs"
1e487827
VS
8652if test $ac_prog_rejected = yes; then
8653 # We found a bogon in the path, so make sure we never use it.
8654 set dummy $ac_cv_prog_CC
8655 shift
698dcdb6 8656 if test $# -gt 0; then
1e487827
VS
8657 # We chose a different compiler from the bogus one.
8658 # However, it has the same basename, so the bogon will be chosen
8659 # first if we set CC to just the basename; use the full file name.
8660 shift
698dcdb6 8661 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8662 shift
8663 ac_cv_prog_CC="$@"
703e0a69 8664 fi
1e487827
VS
8665fi
8666fi
8667fi
698dcdb6 8668CC="$ac_cv_prog_CC"
1e487827 8669if test -n "$CC"; then
698dcdb6 8670 echo "$ac_t""$CC" 1>&6
703e0a69 8671else
698dcdb6 8672 echo "$ac_t""no" 1>&6
703e0a69 8673fi
1e487827 8674
698dcdb6
VZ
8675 if test -z "$CC"; then
8676 case "`uname -s`" in
8677 *win32* | *WIN32*)
8678 # Extract the first word of "cl", so it can be a program name with args.
8679set dummy cl; ac_word=$2
8680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 8681echo "configure:8682: checking for $ac_word" >&5
698dcdb6
VZ
8682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8684else
8685 if test -n "$CC"; then
8686 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8687else
698dcdb6
VZ
8688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8689 ac_dummy="$PATH"
8690 for ac_dir in $ac_dummy; do
8691 test -z "$ac_dir" && ac_dir=.
8692 if test -f $ac_dir/$ac_word; then
8693 ac_cv_prog_CC="cl"
8694 break
8695 fi
8696 done
8697 IFS="$ac_save_ifs"
703e0a69 8698fi
1e487827 8699fi
698dcdb6 8700CC="$ac_cv_prog_CC"
1e487827 8701if test -n "$CC"; then
698dcdb6 8702 echo "$ac_t""$CC" 1>&6
1e487827 8703else
698dcdb6 8704 echo "$ac_t""no" 1>&6
1e487827 8705fi
698dcdb6
VZ
8706 ;;
8707 esac
8708 fi
8709 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8710fi
8711
698dcdb6 8712echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
17234b26 8713echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8714
698dcdb6
VZ
8715ac_ext=c
8716# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8717ac_cpp='$CPP $CPPFLAGS'
8718ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8719ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8720cross_compiling=$ac_cv_prog_cc_cross
6232543b 8721
698dcdb6 8722cat > conftest.$ac_ext << EOF
1e487827 8723
17234b26 8724#line 8725 "configure"
1e487827
VS
8725#include "confdefs.h"
8726
698dcdb6
VZ
8727main(){return(0);}
8728EOF
17234b26 8729if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8730 ac_cv_prog_cc_works=yes
8731 # If we can't run a trivial program, we are probably using a cross compiler.
8732 if (./conftest; exit) 2>/dev/null; then
8733 ac_cv_prog_cc_cross=no
8734 else
8735 ac_cv_prog_cc_cross=yes
8736 fi
8737else
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 ac_cv_prog_cc_works=no
8741fi
8742rm -fr conftest*
8743ac_ext=c
8744# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8745ac_cpp='$CPP $CPPFLAGS'
8746ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8747ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8748cross_compiling=$ac_cv_prog_cc_cross
8749
8750echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8751if test $ac_cv_prog_cc_works = no; then
8752 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8753fi
8754echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
17234b26 8755echo "configure:8756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8756echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8757cross_compiling=$ac_cv_prog_cc_cross
8758
8759echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
17234b26 8760echo "configure:8761: checking whether we are using GNU C" >&5
698dcdb6
VZ
8761if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763else
8764 cat > conftest.c <<EOF
8765#ifdef __GNUC__
8766 yes;
1e487827 8767#endif
698dcdb6 8768EOF
17234b26 8769if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8770 ac_cv_prog_gcc=yes
8771else
8772 ac_cv_prog_gcc=no
8773fi
8774fi
1e487827 8775
698dcdb6 8776echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8777
698dcdb6
VZ
8778if test $ac_cv_prog_gcc = yes; then
8779 GCC=yes
8780else
8781 GCC=
8782fi
1e487827 8783
698dcdb6
VZ
8784ac_test_CFLAGS="${CFLAGS+set}"
8785ac_save_CFLAGS="$CFLAGS"
8786CFLAGS=
8787echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
17234b26 8788echo "configure:8789: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8789if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8791else
8792 echo 'void f(){}' > conftest.c
8793if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8794 ac_cv_prog_cc_g=yes
8795else
698dcdb6 8796 ac_cv_prog_cc_g=no
10f2d63a 8797fi
698dcdb6
VZ
8798rm -f conftest*
8799
10f2d63a 8800fi
698dcdb6
VZ
8801
8802echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8803if test "$ac_test_CFLAGS" = set; then
698dcdb6 8804 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8805elif test $ac_cv_prog_cc_g = yes; then
8806 if test "$GCC" = yes; then
8807 CFLAGS="-g -O2"
8808 else
8809 CFLAGS="-g"
8810 fi
8811else
8812 if test "$GCC" = yes; then
8813 CFLAGS="-O2"
8814 else
8815 CFLAGS=
8816 fi
8817fi
8818
8819
698dcdb6 8820echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
17234b26 8821echo "configure:8822: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8822# On Suns, sometimes $CPP names a directory.
8823if test -n "$CPP" && test -d "$CPP"; then
8824 CPP=
8825fi
8826if test -z "$CPP"; then
698dcdb6
VZ
8827if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8829else
8830 # This must be in double quotes, not single quotes, because CPP may get
8831 # substituted into the Makefile and "${CC-cc}" will confuse make.
8832 CPP="${CC-cc} -E"
10f2d63a 8833 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8834 # not just through cpp.
8835 cat > conftest.$ac_ext <<EOF
17234b26 8836#line 8837 "configure"
10f2d63a
VZ
8837#include "confdefs.h"
8838#include <assert.h>
698dcdb6
VZ
8839Syntax Error
8840EOF
8841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 8842{ (eval echo configure:8843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8844if test -z "$ac_err"; then
10f2d63a
VZ
8845 :
8846else
698dcdb6
VZ
8847 echo "$ac_err" >&5
8848 echo "configure: failed program was:" >&5
10f2d63a 8849 cat conftest.$ac_ext >&5
698dcdb6
VZ
8850 rm -rf conftest*
8851 CPP="${CC-cc} -E -traditional-cpp"
8852 cat > conftest.$ac_ext <<EOF
17234b26 8853#line 8854 "configure"
10f2d63a 8854#include "confdefs.h"
698dcdb6
VZ
8855#include <assert.h>
8856Syntax Error
8857EOF
8858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 8859{ (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861if test -z "$ac_err"; then
8862 :
10f2d63a 8863else
698dcdb6
VZ
8864 echo "$ac_err" >&5
8865 echo "configure: failed program was:" >&5
10f2d63a 8866 cat conftest.$ac_ext >&5
698dcdb6
VZ
8867 rm -rf conftest*
8868 CPP="${CC-cc} -nologo -E"
8869 cat > conftest.$ac_ext <<EOF
17234b26 8870#line 8871 "configure"
10f2d63a
VZ
8871#include "confdefs.h"
8872#include <assert.h>
698dcdb6
VZ
8873Syntax Error
8874EOF
8875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 8876{ (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878if test -z "$ac_err"; then
10f2d63a
VZ
8879 :
8880else
698dcdb6
VZ
8881 echo "$ac_err" >&5
8882 echo "configure: failed program was:" >&5
10f2d63a 8883 cat conftest.$ac_ext >&5
698dcdb6
VZ
8884 rm -rf conftest*
8885 CPP=/lib/cpp
10f2d63a 8886fi
698dcdb6 8887rm -f conftest*
10f2d63a 8888fi
698dcdb6 8889rm -f conftest*
703e0a69 8890fi
698dcdb6
VZ
8891rm -f conftest*
8892 ac_cv_prog_CPP="$CPP"
8893fi
8894 CPP="$ac_cv_prog_CPP"
10f2d63a 8895else
698dcdb6 8896 ac_cv_prog_CPP="$CPP"
10f2d63a 8897fi
698dcdb6 8898echo "$ac_t""$CPP" 1>&6
10f2d63a 8899
698dcdb6
VZ
8900if test $ac_cv_prog_gcc = yes; then
8901 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
17234b26 8902echo "configure:8903: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8903if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8905else
8906 ac_pattern="Autoconf.*'x'"
698dcdb6 8907 cat > conftest.$ac_ext <<EOF
17234b26 8908#line 8909 "configure"
10f2d63a
VZ
8909#include "confdefs.h"
8910#include <sgtty.h>
8911Autoconf TIOCGETP
698dcdb6 8912EOF
10f2d63a
VZ
8913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8915 rm -rf conftest*
10f2d63a
VZ
8916 ac_cv_prog_gcc_traditional=yes
8917else
698dcdb6 8918 rm -rf conftest*
10f2d63a
VZ
8919 ac_cv_prog_gcc_traditional=no
8920fi
8921rm -f conftest*
8922
698dcdb6 8923
10f2d63a 8924 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8925 cat > conftest.$ac_ext <<EOF
17234b26 8926#line 8927 "configure"
10f2d63a
VZ
8927#include "confdefs.h"
8928#include <termio.h>
8929Autoconf TCGETA
698dcdb6 8930EOF
10f2d63a
VZ
8931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8932 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8933 rm -rf conftest*
10f2d63a
VZ
8934 ac_cv_prog_gcc_traditional=yes
8935fi
8936rm -f conftest*
8937
8938 fi
8939fi
698dcdb6
VZ
8940
8941echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8942 if test $ac_cv_prog_gcc_traditional = yes; then
8943 CC="$CC -traditional"
8944 fi
8945fi
8946
703e0a69 8947
698dcdb6
VZ
8948
8949ac_ext=C
8950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8951ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8954cross_compiling=$ac_cv_prog_cxx_cross
8955
8956
ec603395 8957CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8958for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8959do
8960# Extract the first word of "$ac_prog", so it can be a program name with args.
8961set dummy $ac_prog; ac_word=$2
8962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 8963echo "configure:8964: checking for $ac_word" >&5
698dcdb6
VZ
8964if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8966else
8967 if test -n "$CXX"; then
8968 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8969else
698dcdb6
VZ
8970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8971 ac_dummy="$PATH"
8972 for ac_dir in $ac_dummy; do
8973 test -z "$ac_dir" && ac_dir=.
8974 if test -f $ac_dir/$ac_word; then
8975 ac_cv_prog_CXX="$ac_prog"
8976 break
8977 fi
8978 done
8979 IFS="$ac_save_ifs"
10f2d63a
VZ
8980fi
8981fi
698dcdb6 8982CXX="$ac_cv_prog_CXX"
10f2d63a 8983if test -n "$CXX"; then
698dcdb6 8984 echo "$ac_t""$CXX" 1>&6
10f2d63a 8985else
698dcdb6 8986 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8987fi
8988
698dcdb6 8989test -n "$CXX" && break
10f2d63a 8990done
698dcdb6 8991test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8992
8993
698dcdb6 8994echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
17234b26 8995echo "configure:8996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8996
698dcdb6
VZ
8997ac_ext=C
8998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9003
698dcdb6
VZ
9004cat > conftest.$ac_ext << EOF
9005
17234b26 9006#line 9007 "configure"
10f2d63a
VZ
9007#include "confdefs.h"
9008
698dcdb6
VZ
9009int main(){return(0);}
9010EOF
17234b26 9011if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9012 ac_cv_prog_cxx_works=yes
9013 # If we can't run a trivial program, we are probably using a cross compiler.
9014 if (./conftest; exit) 2>/dev/null; then
9015 ac_cv_prog_cxx_cross=no
9016 else
9017 ac_cv_prog_cxx_cross=yes
9018 fi
9019else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_prog_cxx_works=no
9023fi
9024rm -fr conftest*
9025ac_ext=C
9026# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9027ac_cpp='$CXXCPP $CPPFLAGS'
9028ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9029ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9030cross_compiling=$ac_cv_prog_cxx_cross
9031
9032echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9033if test $ac_cv_prog_cxx_works = no; then
9034 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9035fi
9036echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
17234b26 9037echo "configure:9038: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9038echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9039cross_compiling=$ac_cv_prog_cxx_cross
9040
9041echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
17234b26 9042echo "configure:9043: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9043if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046 cat > conftest.C <<EOF
9047#ifdef __GNUC__
9048 yes;
10f2d63a 9049#endif
698dcdb6 9050EOF
17234b26 9051if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9052 ac_cv_prog_gxx=yes
9053else
9054 ac_cv_prog_gxx=no
9055fi
9056fi
10f2d63a 9057
698dcdb6 9058echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9059
698dcdb6
VZ
9060if test $ac_cv_prog_gxx = yes; then
9061 GXX=yes
9062else
9063 GXX=
9064fi
10f2d63a 9065
698dcdb6
VZ
9066ac_test_CXXFLAGS="${CXXFLAGS+set}"
9067ac_save_CXXFLAGS="$CXXFLAGS"
9068CXXFLAGS=
9069echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
17234b26 9070echo "configure:9071: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9071if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9072 echo $ac_n "(cached) $ac_c" 1>&6
9073else
9074 echo 'void f(){}' > conftest.cc
9075if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9076 ac_cv_prog_cxx_g=yes
9077else
698dcdb6 9078 ac_cv_prog_cxx_g=no
10f2d63a 9079fi
698dcdb6
VZ
9080rm -f conftest*
9081
10f2d63a 9082fi
698dcdb6
VZ
9083
9084echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9085if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9086 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9087elif test $ac_cv_prog_cxx_g = yes; then
9088 if test "$GXX" = yes; then
9089 CXXFLAGS="-g -O2"
9090 else
9091 CXXFLAGS="-g"
9092 fi
9093else
9094 if test "$GXX" = yes; then
9095 CXXFLAGS="-O2"
9096 else
9097 CXXFLAGS=
9098 fi
9099fi
9100
9101
10f2d63a 9102ac_ext=c
698dcdb6 9103# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9104ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9105ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9106ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9107cross_compiling=$ac_cv_prog_cc_cross
9108
9109
9110# Extract the first word of "ranlib", so it can be a program name with args.
9111set dummy ranlib; ac_word=$2
9112echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 9113echo "configure:9114: checking for $ac_word" >&5
698dcdb6
VZ
9114if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9116else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119else
698dcdb6
VZ
9120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9121 ac_dummy="$PATH"
9122 for ac_dir in $ac_dummy; do
9123 test -z "$ac_dir" && ac_dir=.
9124 if test -f $ac_dir/$ac_word; then
9125 ac_cv_prog_RANLIB="ranlib"
9126 break
9127 fi
9128 done
9129 IFS="$ac_save_ifs"
9130 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9131fi
9132fi
698dcdb6 9133RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9134if test -n "$RANLIB"; then
698dcdb6 9135 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9136else
698dcdb6 9137 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9138fi
9139
9140
9141# Extract the first word of "ar", so it can be a program name with args.
9142set dummy ar; ac_word=$2
698dcdb6 9143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 9144echo "configure:9145: checking for $ac_word" >&5
698dcdb6
VZ
9145if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9147else
9148 if test -n "$AR"; then
9149 ac_cv_prog_AR="$AR" # Let the user override the test.
9150else
698dcdb6
VZ
9151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9152 ac_dummy="$PATH"
9153 for ac_dir in $ac_dummy; do
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f $ac_dir/$ac_word; then
9156 ac_cv_prog_AR="ar"
9157 break
9158 fi
9159 done
9160 IFS="$ac_save_ifs"
10f2d63a
VZ
9161 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9162fi
9163fi
698dcdb6 9164AR="$ac_cv_prog_AR"
10f2d63a 9165if test -n "$AR"; then
698dcdb6 9166 echo "$ac_t""$AR" 1>&6
10f2d63a 9167else
698dcdb6 9168 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9169fi
9170
698dcdb6 9171
6054113a 9172# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9173# so one script is as good as another. But avoid the broken or
9174# incompatible versions:
9175# SysV /etc/install, /usr/sbin/install
9176# SunOS /usr/etc/install
9177# IRIX /sbin/install
9178# AIX /bin/install
9179# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9180# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9181# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9182# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9183echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
17234b26 9184echo "configure:9185: checking for a BSD compatible install" >&5
10f2d63a 9185if test -z "$INSTALL"; then
698dcdb6
VZ
9186if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9188else
698dcdb6 9189 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9190 for ac_dir in $PATH; do
9191 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9192 case "$ac_dir/" in
9193 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9194 *)
9195 # OSF1 and SCO ODT 3.0 have their own names for install.
9196 # Don't use installbsd from OSF since it installs stuff as root
9197 # by default.
9198 for ac_prog in ginstall scoinst install; do
698dcdb6 9199 if test -f $ac_dir/$ac_prog; then
10f2d63a 9200 if test $ac_prog = install &&
698dcdb6 9201 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9202 # AIX install. It has an incompatible calling convention.
9203 :
9204 else
9205 ac_cv_path_install="$ac_dir/$ac_prog -c"
9206 break 2
9207 fi
9208 fi
9209 done
9210 ;;
9211 esac
9212 done
698dcdb6 9213 IFS="$ac_save_IFS"
10f2d63a
VZ
9214
9215fi
9216 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9217 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9218 else
9219 # As a last resort, use the slow shell script. We don't cache a
9220 # path for INSTALL within a source directory, because that will
9221 # break other packages using the cache if that directory is
9222 # removed, or if the path is relative.
698dcdb6 9223 INSTALL="$ac_install_sh"
10f2d63a
VZ
9224 fi
9225fi
698dcdb6 9226echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9227
9228# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9229# It thinks the first close brace ends the variable substitution.
9230test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9231
698dcdb6 9232test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9233
9234test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9235
1d1b75ac
VZ
9236
9237case ${INSTALL} in
9238 /* ) # Absolute
9239 ;;
9240 *)
9241 INSTALL=`pwd`/${INSTALL} ;;
9242esac
9243
9244
6054113a
GD
9245case "${host}" in
9246
b5853384 9247 powerpc-*-darwin* )
eb99ae0b
GD
9248 INSTALL_PROGRAM="cp -fp"
9249 INSTALL_DATA="cp -fp"
6054113a
GD
9250 ;;
9251 *)
9252 ;;
d6853540 9253esac
698dcdb6 9254
10f2d63a
VZ
9255# Extract the first word of "strip", so it can be a program name with args.
9256set dummy strip; ac_word=$2
698dcdb6 9257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 9258echo "configure:9259: checking for $ac_word" >&5
698dcdb6
VZ
9259if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9261else
9262 if test -n "$STRIP"; then
9263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9264else
698dcdb6
VZ
9265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9266 ac_dummy="$PATH"
9267 for ac_dir in $ac_dummy; do
9268 test -z "$ac_dir" && ac_dir=.
9269 if test -f $ac_dir/$ac_word; then
9270 ac_cv_prog_STRIP="strip"
9271 break
9272 fi
9273 done
9274 IFS="$ac_save_ifs"
10f2d63a
VZ
9275 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9276fi
9277fi
698dcdb6 9278STRIP="$ac_cv_prog_STRIP"
10f2d63a 9279if test -n "$STRIP"; then
698dcdb6 9280 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9281else
698dcdb6 9282 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9283fi
9284
698dcdb6 9285
414eab6d 9286echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
17234b26 9287echo "configure:9288: checking if make is GNU make" >&5
414eab6d
VZ
9288if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9290else
9291
9292 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9293 egrep -s GNU > /dev/null); then
414eab6d
VZ
9294 wx_cv_prog_makeisgnu="yes"
9295 else
9296 wx_cv_prog_makeisgnu="no"
9297 fi
9298
9299fi
9300
9301echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9302
9303if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9304 IF_GNU_MAKE=""
9305else
9306 IF_GNU_MAKE="#"
9307fi
9308
9309
9310
9311if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9312echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
17234b26 9313echo "configure:9314: checking if make supports VPATH" >&5
04e7a216
VZ
9314if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316else
9317
10f2d63a
VZ
9318cat - << EOF > confMake
9319check : file
9320 cp \$? \$@
9321 cp \$? final_file
9322EOF
9323
9324if test ! -d sub ; then
9325 mkdir sub
9326fi
9327echo dummy > sub/file
f6bcfd97 9328${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9329RESULT=$?
9330rm -f sub/file check final_file confMake
9331rmdir sub
9332if test "$RESULT" = 0; then
04e7a216 9333 wx_cv_prog_makevpath="yes"
10f2d63a 9334else
04e7a216
VZ
9335 wx_cv_prog_makevpath="no"
9336fi
9337
9338fi
9339
9340echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9341
9342if test "x$wx_cv_prog_makevpath" != "xyes"; then
9343{ echo "configure: error:
1e487827
VS
9344You need a make-utility that is able to use the variable
9345VPATH correctly.
9346If your version of make does not support VPATH correctly,
9347please install GNU-make (possibly as gmake), and start
9348configure with the following command:
9349export MAKE=gmake; ./configure for sh-type shells
9350setenv MAKE gmake; ./configure for csh-type shells
9351Also please do remember to use gmake in this case every time
9352you are trying to compile.
698dcdb6 9353" 1>&2; exit 1; }
414eab6d 9354fi fi
10f2d63a
VZ
9355for ac_prog in 'bison -y' byacc
9356do
698dcdb6 9357# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9358set dummy $ac_prog; ac_word=$2
698dcdb6 9359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 9360echo "configure:9361: checking for $ac_word" >&5
698dcdb6
VZ
9361if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9363else
9364 if test -n "$YACC"; then
9365 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9366else
698dcdb6
VZ
9367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9368 ac_dummy="$PATH"
9369 for ac_dir in $ac_dummy; do
9370 test -z "$ac_dir" && ac_dir=.
9371 if test -f $ac_dir/$ac_word; then
9372 ac_cv_prog_YACC="$ac_prog"
9373 break
9374 fi
9375 done
9376 IFS="$ac_save_ifs"
10f2d63a
VZ
9377fi
9378fi
698dcdb6 9379YACC="$ac_cv_prog_YACC"
10f2d63a 9380if test -n "$YACC"; then
698dcdb6 9381 echo "$ac_t""$YACC" 1>&6
10f2d63a 9382else
698dcdb6 9383 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9384fi
9385
698dcdb6 9386test -n "$YACC" && break
10f2d63a
VZ
9387done
9388test -n "$YACC" || YACC="yacc"
9389
698dcdb6
VZ
9390
9391# Extract the first word of "flex", so it can be a program name with args.
9392set dummy flex; ac_word=$2
9393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 9394echo "configure:9395: checking for $ac_word" >&5
698dcdb6
VZ
9395if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9397else
9398 if test -n "$LEX"; then
9399 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9400else
698dcdb6
VZ
9401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9402 ac_dummy="$PATH"
9403 for ac_dir in $ac_dummy; do
9404 test -z "$ac_dir" && ac_dir=.
9405 if test -f $ac_dir/$ac_word; then
9406 ac_cv_prog_LEX="flex"
9407 break
9408 fi
9409 done
9410 IFS="$ac_save_ifs"
9411 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9412fi
9413fi
698dcdb6 9414LEX="$ac_cv_prog_LEX"
10f2d63a 9415if test -n "$LEX"; then
698dcdb6 9416 echo "$ac_t""$LEX" 1>&6
10f2d63a 9417else
698dcdb6 9418 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9419fi
9420
9421if test -z "$LEXLIB"
9422then
698dcdb6
VZ
9423 case "$LEX" in
9424 flex*) ac_lib=fl ;;
9425 *) ac_lib=l ;;
9426 esac
9427 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
17234b26 9428echo "configure:9429: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9429ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9432else
9433 ac_save_LIBS="$LIBS"
9434LIBS="-l$ac_lib $LIBS"
9435cat > conftest.$ac_ext <<EOF
17234b26 9436#line 9437 "configure"
10f2d63a
VZ
9437#include "confdefs.h"
9438/* Override any gcc2 internal prototype to avoid an error. */
9439/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9440 builtin and then its argument prototype would still apply. */
9441char yywrap();
10f2d63a 9442
698dcdb6
VZ
9443int main() {
9444yywrap()
9445; return 0; }
9446EOF
17234b26 9447if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9448 rm -rf conftest*
9449 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9450else
698dcdb6
VZ
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9455fi
698dcdb6
VZ
9456rm -f conftest*
9457LIBS="$ac_save_LIBS"
9458
10f2d63a 9459fi
698dcdb6
VZ
9460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 LEXLIB="-l$ac_lib"
9463else
9464 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9465fi
9466
9467fi
9468
9469
698dcdb6 9470echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
17234b26 9471echo "configure:9472: checking whether ln -s works" >&5
698dcdb6
VZ
9472if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9474else
698dcdb6
VZ
9475 rm -f conftestdata
9476if ln -s X conftestdata 2>/dev/null
9477then
9478 rm -f conftestdata
9479 ac_cv_prog_LN_S="ln -s"
10f2d63a 9480else
698dcdb6 9481 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9482fi
9483fi
698dcdb6
VZ
9484LN_S="$ac_cv_prog_LN_S"
9485if test "$ac_cv_prog_LN_S" = "ln -s"; then
9486 echo "$ac_t""yes" 1>&6
10f2d63a 9487else
698dcdb6 9488 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9489fi
9490
9491
9492
21d1c967
GD
9493if test "$wxUSE_MAC" != 1; then
9494 for ac_hdr in strings.h
9495do
9496ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9497echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9498echo "configure:9499: checking for $ac_hdr" >&5
21d1c967 9499if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501else
90dd450c 9502 cat > conftest.$ac_ext <<EOF
17234b26 9503#line 9504 "configure"
19bc6aad 9504#include "confdefs.h"
21d1c967 9505#include <$ac_hdr>
19bc6aad 9506EOF
21d1c967 9507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9508{ (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510if test -z "$ac_err"; then
19bc6aad 9511 rm -rf conftest*
21d1c967 9512 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9513else
21d1c967 9514 echo "$ac_err" >&5
19bc6aad
VZ
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
21d1c967 9518 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9519fi
9520rm -f conftest*
19bc6aad 9521fi
21d1c967
GD
9522if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9525 cat >> confdefs.h <<EOF
9526#define $ac_tr_hdr 1
19bc6aad 9527EOF
21d1c967
GD
9528
9529else
9530 echo "$ac_t""no" 1>&6
9531fi
9532done
19bc6aad 9533
19bc6aad
VZ
9534fi
9535
21d1c967
GD
9536for ac_hdr in stdlib.h
9537do
9538ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9539echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9540echo "configure:9541: checking for $ac_hdr" >&5
21d1c967 9541if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9542 echo $ac_n "(cached) $ac_c" 1>&6
9543else
9544 cat > conftest.$ac_ext <<EOF
17234b26 9545#line 9546 "configure"
18dbb1f6 9546#include "confdefs.h"
21d1c967 9547#include <$ac_hdr>
18dbb1f6 9548EOF
21d1c967 9549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9550{ (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9551ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9552if test -z "$ac_err"; then
18dbb1f6 9553 rm -rf conftest*
21d1c967 9554 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9555else
21d1c967 9556 echo "$ac_err" >&5
18dbb1f6
VZ
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
21d1c967
GD
9559 rm -rf conftest*
9560 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9561fi
9562rm -f conftest*
90dd450c 9563fi
21d1c967
GD
9564if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9567 cat >> confdefs.h <<EOF
9568#define $ac_tr_hdr 1
90dd450c 9569EOF
21d1c967
GD
9570
9571else
9572 echo "$ac_t""no" 1>&6
9573fi
9574done
90dd450c 9575
21d1c967
GD
9576for ac_hdr in malloc.h
9577do
9578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9580echo "configure:9581: checking for $ac_hdr" >&5
21d1c967 9581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9582 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9583else
9584 cat > conftest.$ac_ext <<EOF
17234b26 9585#line 9586 "configure"
90dd450c 9586#include "confdefs.h"
21d1c967 9587#include <$ac_hdr>
18dbb1f6 9588EOF
21d1c967 9589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9590{ (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592if test -z "$ac_err"; then
9593 rm -rf conftest*
9594 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9595else
21d1c967 9596 echo "$ac_err" >&5
18dbb1f6
VZ
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
21d1c967
GD
9599 rm -rf conftest*
9600 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9601fi
21d1c967 9602rm -f conftest*
18dbb1f6 9603fi
21d1c967
GD
9604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607 cat >> confdefs.h <<EOF
9608#define $ac_tr_hdr 1
4f14bcd8 9609EOF
21d1c967
GD
9610
9611else
9612 echo "$ac_t""no" 1>&6
9613fi
9614done
dad6c0ea 9615
21d1c967
GD
9616for ac_hdr in unistd.h
9617do
9618ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9620echo "configure:9621: checking for $ac_hdr" >&5
21d1c967 9621if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623else
9624 cat > conftest.$ac_ext <<EOF
17234b26 9625#line 9626 "configure"
3a922bb4 9626#include "confdefs.h"
21d1c967 9627#include <$ac_hdr>
3a922bb4 9628EOF
21d1c967 9629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9630{ (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632if test -z "$ac_err"; then
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9635else
21d1c967 9636 echo "$ac_err" >&5
3a922bb4
RL
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
21d1c967
GD
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9641fi
21d1c967 9642rm -f conftest*
90dd450c 9643fi
21d1c967
GD
9644if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647 cat >> confdefs.h <<EOF
9648#define $ac_tr_hdr 1
90dd450c 9649EOF
21d1c967
GD
9650
9651else
9652 echo "$ac_t""no" 1>&6
9653fi
9654done
90dd450c 9655
21d1c967
GD
9656for ac_hdr in wchar.h
9657do
9658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9660echo "configure:9661: checking for $ac_hdr" >&5
21d1c967 9661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9662 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9663else
9664 cat > conftest.$ac_ext <<EOF
17234b26 9665#line 9666 "configure"
4f14bcd8 9666#include "confdefs.h"
21d1c967 9667#include <$ac_hdr>
3a922bb4 9668EOF
21d1c967 9669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9670{ (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9672if test -z "$ac_err"; then
9673 rm -rf conftest*
9674 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9675else
21d1c967 9676 echo "$ac_err" >&5
4f14bcd8
GD
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
21d1c967
GD
9679 rm -rf conftest*
9680 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9681fi
21d1c967 9682rm -f conftest*
4f14bcd8 9683fi
21d1c967
GD
9684if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9685 echo "$ac_t""yes" 1>&6
9686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9687 cat >> confdefs.h <<EOF
9688#define $ac_tr_hdr 1
4f14bcd8 9689EOF
21d1c967
GD
9690
9691else
9692 echo "$ac_t""no" 1>&6
9693fi
9694done
4f14bcd8 9695
4f14bcd8 9696
21d1c967
GD
9697if test "$ac_cv_header_wchar_h" != "yes"; then
9698 for ac_hdr in wcstr.h
9699do
9700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9702echo "configure:9703: checking for $ac_hdr" >&5
21d1c967 9703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706 cat > conftest.$ac_ext <<EOF
17234b26 9707#line 9708 "configure"
d4158b5d 9708#include "confdefs.h"
21d1c967 9709#include <$ac_hdr>
d4158b5d 9710EOF
21d1c967 9711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9712{ (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714if test -z "$ac_err"; then
9715 rm -rf conftest*
9716 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9717else
21d1c967 9718 echo "$ac_err" >&5
d4158b5d
VS
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
21d1c967
GD
9721 rm -rf conftest*
9722 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9723fi
21d1c967
GD
9724rm -f conftest*
9725fi
9726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9729 cat >> confdefs.h <<EOF
9730#define $ac_tr_hdr 1
9731EOF
9732
9733else
9734 echo "$ac_t""no" 1>&6
d4158b5d 9735fi
21d1c967 9736done
f6bcfd97 9737
90dd450c 9738fi
90dd450c
VZ
9739
9740
21d1c967
GD
9741for ac_hdr in fnmatch.h
9742do
9743ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9744echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9745echo "configure:9746: checking for $ac_hdr" >&5
21d1c967 9746if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9747 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9748else
9749 cat > conftest.$ac_ext <<EOF
17234b26 9750#line 9751 "configure"
90dd450c 9751#include "confdefs.h"
21d1c967 9752#include <$ac_hdr>
90dd450c 9753EOF
21d1c967 9754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9755{ (eval echo configure:9756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9757if test -z "$ac_err"; then
9758 rm -rf conftest*
9759 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9760else
21d1c967 9761 echo "$ac_err" >&5
3a922bb4
RL
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
21d1c967
GD
9764 rm -rf conftest*
9765 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9766fi
21d1c967 9767rm -f conftest*
4f14bcd8 9768fi
21d1c967
GD
9769if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9772 cat >> confdefs.h <<EOF
9773#define $ac_tr_hdr 1
90dd450c 9774EOF
21d1c967
GD
9775
9776else
9777 echo "$ac_t""no" 1>&6
9778fi
9779done
90dd450c
VZ
9780
9781
21d1c967
GD
9782if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9783 for ac_func in fnmatch
9784do
9785echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 9786echo "configure:9787: checking for $ac_func" >&5
21d1c967 9787if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9788 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9789else
9790 cat > conftest.$ac_ext <<EOF
17234b26 9791#line 9792 "configure"
90dd450c 9792#include "confdefs.h"
21d1c967
GD
9793/* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char $ac_func(); below. */
9795#include <assert.h>
9796/* Override any gcc2 internal prototype to avoid an error. */
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char $ac_func();
9800
9801int main() {
9802
9803/* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807choke me
9808#else
9809$ac_func();
9810#endif
9811
9812; return 0; }
90dd450c 9813EOF
17234b26 9814if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
9815 rm -rf conftest*
9816 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9817else
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
21d1c967
GD
9820 rm -rf conftest*
9821 eval "ac_cv_func_$ac_func=no"
90dd450c 9822fi
21d1c967 9823rm -f conftest*
4f14bcd8 9824fi
32832908 9825
21d1c967
GD
9826if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9827 echo "$ac_t""yes" 1>&6
9828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9829 cat >> confdefs.h <<EOF
9830#define $ac_tr_func 1
90dd450c 9831EOF
21d1c967
GD
9832
9833else
9834 echo "$ac_t""no" 1>&6
9835fi
9836done
90dd450c 9837
21d1c967 9838fi
90dd450c 9839
21d1c967
GD
9840for ac_hdr in langinfo.h
9841do
9842ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9843echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9844echo "configure:9845: checking for $ac_hdr" >&5
21d1c967 9845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9846 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9847else
9848 cat > conftest.$ac_ext <<EOF
17234b26 9849#line 9850 "configure"
90dd450c 9850#include "confdefs.h"
21d1c967 9851#include <$ac_hdr>
90dd450c 9852EOF
21d1c967 9853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9854{ (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9856if test -z "$ac_err"; then
9857 rm -rf conftest*
9858 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9859else
21d1c967 9860 echo "$ac_err" >&5
90dd450c
VZ
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
21d1c967
GD
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=no"
90dd450c 9865fi
21d1c967 9866rm -f conftest*
4f14bcd8 9867fi
21d1c967
GD
9868if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
9870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9871 cat >> confdefs.h <<EOF
9872#define $ac_tr_hdr 1
90dd450c 9873EOF
21d1c967
GD
9874
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878done
3a922bb4 9879
7b7a7637 9880
21d1c967
GD
9881if test "$wxUSE_GUI" = "yes"; then
9882 if test "$wxUSE_UNIX" = "yes"; then
9883 for ac_hdr in X11/XKBlib.h
9884do
9885ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9886echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 9887echo "configure:9888: checking for $ac_hdr" >&5
21d1c967 9888if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9889 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9890else
9891 cat > conftest.$ac_ext <<EOF
17234b26 9892#line 9893 "configure"
90dd450c 9893#include "confdefs.h"
21d1c967 9894#include <$ac_hdr>
90dd450c 9895EOF
21d1c967 9896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 9897{ (eval echo configure:9898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9899if test -z "$ac_err"; then
9900 rm -rf conftest*
9901 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9902else
21d1c967 9903 echo "$ac_err" >&5
90dd450c
VZ
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
21d1c967
GD
9906 rm -rf conftest*
9907 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9908fi
21d1c967 9909rm -f conftest*
90dd450c 9910fi
21d1c967
GD
9911if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9914 cat >> confdefs.h <<EOF
9915#define $ac_tr_hdr 1
4f14bcd8 9916EOF
21d1c967
GD
9917
9918else
9919 echo "$ac_t""no" 1>&6
9920fi
9921done
10f2d63a 9922
21d1c967 9923 fi
90dd450c 9924fi
81809c07 9925
21d1c967
GD
9926
9927echo $ac_n "checking for working const""... $ac_c" 1>&6
17234b26 9928echo "configure:9929: checking for working const" >&5
21d1c967 9929if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931else
21d1c967 9932 cat > conftest.$ac_ext <<EOF
17234b26 9933#line 9934 "configure"
4f14bcd8 9934#include "confdefs.h"
21d1c967 9935
4f14bcd8 9936int main() {
21d1c967
GD
9937
9938/* Ultrix mips cc rejects this. */
9939typedef int charset[2]; const charset x;
9940/* SunOS 4.1.1 cc rejects this. */
9941char const *const *ccp;
9942char **p;
9943/* NEC SVR4.0.2 mips cc rejects this. */
9944struct point {int x, y;};
9945static struct point const zero = {0,0};
9946/* AIX XL C 1.02.0.0 rejects this.
9947 It does not let you subtract one const X* pointer from another in an arm
9948 of an if-expression whose if-part is not a constant expression */
9949const char *g = "string";
9950ccp = &g + (g ? g-g : 0);
9951/* HPUX 7.0 cc rejects these. */
9952++ccp;
9953p = (char**) ccp;
9954ccp = (char const *const *) p;
9955{ /* SCO 3.2v4 cc rejects this. */
9956 char *t;
9957 char const *s = 0 ? (char *) 0 : (char const *) 0;
9958
9959 *t++ = 0;
9960}
9961{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9962 int x[] = {25, 17};
9963 const int *foo = &x[0];
9964 ++foo;
9965}
9966{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9967 typedef const int *iptr;
9968 iptr p = 0;
9969 ++p;
9970}
9971{ /* AIX XL C 1.02.0.0 rejects this saying
9972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9973 struct s { int j; const int *ap[3]; };
9974 struct s *b; b->j = 5;
9975}
9976{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9977 const int foo = 10;
9978}
4f14bcd8 9979
4f14bcd8
GD
9980; return 0; }
9981EOF
17234b26 9982if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9983 rm -rf conftest*
21d1c967 9984 ac_cv_c_const=yes
6f72b082 9985else
4f14bcd8
GD
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
21d1c967 9989 ac_cv_c_const=no
4f14bcd8
GD
9990fi
9991rm -f conftest*
698dcdb6 9992fi
6f72b082 9993
21d1c967
GD
9994echo "$ac_t""$ac_cv_c_const" 1>&6
9995if test $ac_cv_c_const = no; then
9996 cat >> confdefs.h <<\EOF
9997#define const
90dd450c
VZ
9998EOF
9999
21d1c967 10000fi
90dd450c 10001
21d1c967 10002echo $ac_n "checking for inline""... $ac_c" 1>&6
17234b26 10003echo "configure:10004: checking for inline" >&5
21d1c967 10004if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 10005 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10006else
21d1c967
GD
10007 ac_cv_c_inline=no
10008for ac_kw in inline __inline__ __inline; do
10009 cat > conftest.$ac_ext <<EOF
17234b26 10010#line 10011 "configure"
4f14bcd8 10011#include "confdefs.h"
90dd450c 10012
21d1c967
GD
10013int main() {
10014} $ac_kw foo() {
4f14bcd8
GD
10015; return 0; }
10016EOF
17234b26 10017if { (eval echo configure:10018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 10018 rm -rf conftest*
21d1c967 10019 ac_cv_c_inline=$ac_kw; break
6f72b082 10020else
4f14bcd8
GD
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
698dcdb6 10023fi
4f14bcd8 10024rm -f conftest*
21d1c967 10025done
4f14bcd8 10026
21d1c967 10027fi
4f14bcd8 10028
21d1c967
GD
10029echo "$ac_t""$ac_cv_c_inline" 1>&6
10030case "$ac_cv_c_inline" in
10031 inline | yes) ;;
10032 no) cat >> confdefs.h <<\EOF
10033#define inline
90dd450c 10034EOF
21d1c967
GD
10035 ;;
10036 *) cat >> confdefs.h <<EOF
10037#define inline $ac_cv_c_inline
4f14bcd8 10038EOF
21d1c967
GD
10039 ;;
10040esac
4f14bcd8 10041
90dd450c 10042
21d1c967 10043echo $ac_n "checking size of char""... $ac_c" 1>&6
17234b26 10044echo "configure:10045: checking size of char" >&5
21d1c967 10045if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047else
21d1c967
GD
10048 if test "$cross_compiling" = yes; then
10049 ac_cv_sizeof_char=1
4f14bcd8 10050else
90dd450c 10051 cat > conftest.$ac_ext <<EOF
17234b26 10052#line 10053 "configure"
4f14bcd8 10053#include "confdefs.h"
21d1c967 10054#include <stdio.h>
17234b26 10055#include <sys/types.h>
21d1c967
GD
10056main()
10057{
10058 FILE *f=fopen("conftestval", "w");
10059 if (!f) exit(1);
10060 fprintf(f, "%d\n", sizeof(char));
10061 exit(0);
90dd450c 10062}
4f14bcd8 10063EOF
17234b26 10064if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10065then
21d1c967 10066 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10067else
10068 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
90dd450c 10070 rm -fr conftest*
21d1c967 10071 ac_cv_sizeof_char=0
90dd450c
VZ
10072fi
10073rm -fr conftest*
4f14bcd8 10074fi
4f14bcd8
GD
10075
10076fi
21d1c967
GD
10077echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10078cat >> confdefs.h <<EOF
10079#define SIZEOF_CHAR $ac_cv_sizeof_char
10080EOF
4f14bcd8 10081
21d1c967
GD
10082
10083echo $ac_n "checking size of short""... $ac_c" 1>&6
17234b26 10084echo "configure:10085: checking size of short" >&5
21d1c967
GD
10085if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087else
10088 if test "$cross_compiling" = yes; then
10089 ac_cv_sizeof_short=2
10090else
10091 cat > conftest.$ac_ext <<EOF
17234b26 10092#line 10093 "configure"
21d1c967
GD
10093#include "confdefs.h"
10094#include <stdio.h>
17234b26 10095#include <sys/types.h>
21d1c967
GD
10096main()
10097{
10098 FILE *f=fopen("conftestval", "w");
10099 if (!f) exit(1);
10100 fprintf(f, "%d\n", sizeof(short));
10101 exit(0);
10102}
90dd450c 10103EOF
17234b26 10104if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10105then
10106 ac_cv_sizeof_short=`cat conftestval`
10107else
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10110 rm -fr conftest*
10111 ac_cv_sizeof_short=0
10112fi
10113rm -fr conftest*
10114fi
4f14bcd8 10115
4f14bcd8 10116fi
21d1c967
GD
10117echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10118cat >> confdefs.h <<EOF
10119#define SIZEOF_SHORT $ac_cv_sizeof_short
10120EOF
4f14bcd8
GD
10121
10122
21d1c967 10123echo $ac_n "checking size of void *""... $ac_c" 1>&6
17234b26 10124echo "configure:10125: checking size of void *" >&5
21d1c967 10125if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127else
21d1c967
GD
10128 if test "$cross_compiling" = yes; then
10129 ac_cv_sizeof_void_p=4
10130else
4f14bcd8 10131 cat > conftest.$ac_ext <<EOF
17234b26 10132#line 10133 "configure"
4f14bcd8 10133#include "confdefs.h"
21d1c967 10134#include <stdio.h>
17234b26 10135#include <sys/types.h>
21d1c967
GD
10136main()
10137{
10138 FILE *f=fopen("conftestval", "w");
10139 if (!f) exit(1);
10140 fprintf(f, "%d\n", sizeof(void *));
10141 exit(0);
10142}
4f14bcd8 10143EOF
17234b26 10144if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10145then
10146 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10147else
4f14bcd8
GD
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
21d1c967
GD
10150 rm -fr conftest*
10151 ac_cv_sizeof_void_p=0
4f14bcd8 10152fi
21d1c967 10153rm -fr conftest*
4f14bcd8 10154fi
4f14bcd8 10155
21d1c967
GD
10156fi
10157echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10158cat >> confdefs.h <<EOF
10159#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10160EOF
10161
90dd450c 10162
21d1c967 10163echo $ac_n "checking size of int""... $ac_c" 1>&6
17234b26 10164echo "configure:10165: checking size of int" >&5
21d1c967 10165if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10166 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10167else
10168 if test "$cross_compiling" = yes; then
10169 ac_cv_sizeof_int=4
4f14bcd8
GD
10170else
10171 cat > conftest.$ac_ext <<EOF
17234b26 10172#line 10173 "configure"
4f14bcd8 10173#include "confdefs.h"
21d1c967 10174#include <stdio.h>
17234b26 10175#include <sys/types.h>
21d1c967
GD
10176main()
10177{
10178 FILE *f=fopen("conftestval", "w");
10179 if (!f) exit(1);
10180 fprintf(f, "%d\n", sizeof(int));
10181 exit(0);
10182}
4f14bcd8 10183EOF
17234b26 10184if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10185then
10186 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10187else
4f14bcd8
GD
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
21d1c967
GD
10190 rm -fr conftest*
10191 ac_cv_sizeof_int=0
4f14bcd8 10192fi
21d1c967 10193rm -fr conftest*
4f14bcd8 10194fi
4f14bcd8 10195
21d1c967
GD
10196fi
10197echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10198cat >> confdefs.h <<EOF
10199#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10200EOF
10201
90dd450c 10202
21d1c967 10203echo $ac_n "checking size of long""... $ac_c" 1>&6
17234b26 10204echo "configure:10205: checking size of long" >&5
21d1c967 10205if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
21d1c967
GD
10208 if test "$cross_compiling" = yes; then
10209 ac_cv_sizeof_long=4
10210else
10211 cat > conftest.$ac_ext <<EOF
17234b26 10212#line 10213 "configure"
90dd450c 10213#include "confdefs.h"
21d1c967 10214#include <stdio.h>
17234b26 10215#include <sys/types.h>
21d1c967
GD
10216main()
10217{
10218 FILE *f=fopen("conftestval", "w");
10219 if (!f) exit(1);
10220 fprintf(f, "%d\n", sizeof(long));
10221 exit(0);
10222}
4f14bcd8 10223EOF
17234b26 10224if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10225then
10226 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10227else
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
21d1c967
GD
10230 rm -fr conftest*
10231 ac_cv_sizeof_long=0
4f14bcd8 10232fi
21d1c967 10233rm -fr conftest*
90dd450c 10234fi
4f14bcd8 10235
21d1c967
GD
10236fi
10237echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10238cat >> confdefs.h <<EOF
10239#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10240EOF
4f14bcd8 10241
4f14bcd8 10242
4f14bcd8 10243
21d1c967
GD
10244case "${host}" in
10245 arm-*-linux* )
10246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
17234b26 10247echo "configure:10248: checking size of long long" >&5
21d1c967
GD
10248if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250else
10251 if test "$cross_compiling" = yes; then
10252 ac_cv_sizeof_long_long=8
10253else
10254 cat > conftest.$ac_ext <<EOF
17234b26 10255#line 10256 "configure"
21d1c967
GD
10256#include "confdefs.h"
10257#include <stdio.h>
17234b26 10258#include <sys/types.h>
21d1c967
GD
10259main()
10260{
10261 FILE *f=fopen("conftestval", "w");
10262 if (!f) exit(1);
10263 fprintf(f, "%d\n", sizeof(long long));
10264 exit(0);
10265}
90dd450c 10266EOF
17234b26 10267if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10268then
10269 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10270else
21d1c967
GD
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 rm -fr conftest*
10274 ac_cv_sizeof_long_long=0
10275fi
10276rm -fr conftest*
90dd450c 10277fi
4f14bcd8 10278
21d1c967
GD
10279fi
10280echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10281cat >> confdefs.h <<EOF
10282#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10283EOF
90dd450c 10284
21d1c967
GD
10285
10286 ;;
10287 * )
10288 echo $ac_n "checking size of long long""... $ac_c" 1>&6
17234b26 10289echo "configure:10290: checking size of long long" >&5
21d1c967 10290if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10291 echo $ac_n "(cached) $ac_c" 1>&6
10292else
21d1c967
GD
10293 if test "$cross_compiling" = yes; then
10294 ac_cv_sizeof_long_long=0
10295else
10296 cat > conftest.$ac_ext <<EOF
17234b26 10297#line 10298 "configure"
90dd450c 10298#include "confdefs.h"
21d1c967 10299#include <stdio.h>
17234b26 10300#include <sys/types.h>
21d1c967
GD
10301main()
10302{
10303 FILE *f=fopen("conftestval", "w");
10304 if (!f) exit(1);
10305 fprintf(f, "%d\n", sizeof(long long));
10306 exit(0);
10307}
90dd450c 10308EOF
17234b26 10309if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10310then
10311 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10312else
90dd450c
VZ
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
21d1c967
GD
10315 rm -fr conftest*
10316 ac_cv_sizeof_long_long=0
90dd450c 10317fi
21d1c967 10318rm -fr conftest*
4f14bcd8
GD
10319fi
10320
90dd450c 10321fi
21d1c967
GD
10322echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10323cat >> confdefs.h <<EOF
10324#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10325EOF
9e691f46 10326
9e691f46 10327
21d1c967
GD
10328esac
10329
10330echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
17234b26 10331echo "configure:10332: checking size of wchar_t" >&5
21d1c967 10332if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10333 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10334else
10335
10336 if test "$cross_compiling" = yes; then
10337 wx_cv_sizeof_wchar_t=4
10338
6f72b082 10339else
698dcdb6 10340 cat > conftest.$ac_ext <<EOF
17234b26 10341#line 10342 "configure"
6f72b082 10342#include "confdefs.h"
21d1c967
GD
10343
10344 #ifdef HAVE_WCHAR_H
10345 # ifdef __CYGWIN__
10346 # include <stddef.h>
10347 # endif
10348 # include <wchar.h>
10349 #endif
10350 #ifdef HAVE_STDLIB_H
10351 # include <stdlib.h>
10352 #endif
10353 #include <stdio.h>
10354 int main()
10355 {
10356 FILE *f=fopen("conftestval", "w");
10357 if (!f) exit(1);
10358 fprintf(f, "%i", sizeof(wchar_t));
10359 exit(0);
10360 }
10361
698dcdb6 10362EOF
17234b26 10363if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10364then
10365 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10366else
698dcdb6
VZ
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
21d1c967
GD
10369 rm -fr conftest*
10370 wx_cv_sizeof_wchar_t=0
6f72b082 10371fi
21d1c967 10372rm -fr conftest*
6f72b082 10373fi
6f72b082 10374
90dd450c 10375
3f345b47
VZ
10376fi
10377
21d1c967 10378echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10379
21d1c967
GD
10380cat >> confdefs.h <<EOF
10381#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10382EOF
90dd450c 10383
90dd450c 10384
21d1c967
GD
10385# Check whether --enable-largefile or --disable-largefile was given.
10386if test "${enable_largefile+set}" = set; then
10387 enableval="$enable_largefile"
10388 :
3f345b47
VZ
10389fi
10390
21d1c967
GD
10391if test "$enable_largefile" != no; then
10392 wx_largefile=no
10393
10394 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
17234b26 10395echo "configure:10396: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21d1c967 10396if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10397 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10398else
21d1c967
GD
10399
10400 cat > conftest.$ac_ext <<EOF
17234b26 10401#line 10402 "configure"
90dd450c 10402#include "confdefs.h"
21d1c967
GD
10403#define _FILE_OFFSET_BITS 64
10404 #include <sys/types.h>
10405int main() {
10406typedef struct {
10407 unsigned int field: sizeof(off_t) == 8;
10408} wxlf;
10409
10410; return 0; }
90dd450c 10411EOF
17234b26 10412if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10413 rm -rf conftest*
21d1c967 10414 ac_cv_sys_file_offset_bits=64
f6bcfd97 10415else
90dd450c
VZ
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -rf conftest*
21d1c967 10419 ac_cv_sys_file_offset_bits=no
f6bcfd97 10420fi
90dd450c 10421rm -f conftest*
21d1c967
GD
10422
10423
90dd450c 10424fi
21d1c967
GD
10425
10426echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10427
10428 if test "$ac_cv_sys_file_offset_bits" != no; then
10429 wx_largefile=yes
10430 cat >> confdefs.h <<EOF
10431#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10432EOF
10433
10434 fi
10435
10436 if test "x$wx_largefile" != "xyes"; then
10437
10438 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
17234b26 10439echo "configure:10440: checking for _LARGE_FILES value needed for large files" >&5
21d1c967 10440if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10441 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10442else
21d1c967
GD
10443
10444 cat > conftest.$ac_ext <<EOF
17234b26 10445#line 10446 "configure"
f6bcfd97 10446#include "confdefs.h"
21d1c967
GD
10447#define _LARGE_FILES 1
10448 #include <sys/types.h>
90dd450c 10449int main() {
21d1c967
GD
10450typedef struct {
10451 unsigned int field: sizeof(off_t) == 8;
10452} wxlf;
10453
90dd450c 10454; return 0; }
698dcdb6 10455EOF
17234b26 10456if { (eval echo configure:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10457 rm -rf conftest*
21d1c967 10458 ac_cv_sys_large_files=1
f6bcfd97 10459else
698dcdb6
VZ
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
90dd450c 10462 rm -rf conftest*
21d1c967 10463 ac_cv_sys_large_files=no
f6bcfd97 10464fi
90dd450c 10465rm -f conftest*
21d1c967
GD
10466
10467
f6bcfd97 10468fi
698dcdb6 10469
21d1c967 10470echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10471
21d1c967
GD
10472 if test "$ac_cv_sys_large_files" != no; then
10473 wx_largefile=yes
10474 cat >> confdefs.h <<EOF
10475#define _LARGE_FILES $ac_cv_sys_large_files
10476EOF
90dd450c 10477
90dd450c
VZ
10478 fi
10479
90dd450c 10480 fi
90dd450c 10481
21d1c967 10482 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
17234b26 10483echo "configure:10484: checking if large file support is available" >&5
21d1c967
GD
10484 if test "x$wx_largefile" = "xyes"; then
10485 cat >> confdefs.h <<\EOF
10486#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10487EOF
10488
90dd450c 10489 fi
21d1c967
GD
10490 echo "$ac_t""$wx_largefile" 1>&6
10491fi
90dd450c 10492
90dd450c 10493
21d1c967 10494echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
17234b26 10495echo "configure:10496: checking whether byte ordering is bigendian" >&5
21d1c967 10496if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10497 echo $ac_n "(cached) $ac_c" 1>&6
10498else
21d1c967
GD
10499 ac_cv_c_bigendian=unknown
10500# See if sys/param.h defines the BYTE_ORDER macro.
10501cat > conftest.$ac_ext <<EOF
17234b26 10502#line 10503 "configure"
90dd450c 10503#include "confdefs.h"
21d1c967
GD
10504#include <sys/types.h>
10505#include <sys/param.h>
10506int main() {
10507
10508#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10509 bogus endian macros
10510#endif
10511; return 0; }
90dd450c 10512EOF
17234b26 10513if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10514 rm -rf conftest*
21d1c967 10515 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10516cat > conftest.$ac_ext <<EOF
17234b26 10517#line 10518 "configure"
90dd450c 10518#include "confdefs.h"
21d1c967
GD
10519#include <sys/types.h>
10520#include <sys/param.h>
3f345b47 10521int main() {
21d1c967
GD
10522
10523#if BYTE_ORDER != BIG_ENDIAN
10524 not big endian
10525#endif
3f345b47
VZ
10526; return 0; }
10527EOF
17234b26 10528if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10529 rm -rf conftest*
21d1c967 10530 ac_cv_c_bigendian=yes
3f345b47
VZ
10531else
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 rm -rf conftest*
21d1c967 10535 ac_cv_c_bigendian=no
3f345b47
VZ
10536fi
10537rm -f conftest*
3f345b47 10538else
21d1c967
GD
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
3f345b47 10541fi
21d1c967
GD
10542rm -f conftest*
10543if test $ac_cv_c_bigendian = unknown; then
10544if test "$cross_compiling" = yes; then
10545 ac_cv_c_bigendian=unknown
10f2d63a 10546else
90dd450c 10547 cat > conftest.$ac_ext <<EOF
17234b26 10548#line 10549 "configure"
90dd450c 10549#include "confdefs.h"
21d1c967
GD
10550main () {
10551 /* Are we little or big endian? From Harbison&Steele. */
10552 union
10553 {
10554 long l;
10555 char c[sizeof (long)];
10556 } u;
10557 u.l = 1;
10558 exit (u.c[sizeof (long) - 1] == 1);
10559}
3f345b47 10560EOF
17234b26 10561if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10562then
10563 ac_cv_c_bigendian=no
3f345b47
VZ
10564else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
21d1c967
GD
10567 rm -fr conftest*
10568 ac_cv_c_bigendian=yes
3f345b47 10569fi
21d1c967 10570rm -fr conftest*
8168de4c 10571fi
703e0a69 10572
21d1c967
GD
10573fi
10574fi
698dcdb6 10575
21d1c967
GD
10576echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10577if test $ac_cv_c_bigendian = unknown; then
10578 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
10579fi
10580if test $ac_cv_c_bigendian = yes; then
10581 cat >> confdefs.h <<\EOF
10582#define WORDS_BIGENDIAN 1
10583EOF
10584
10585fi
10586
10587
10588echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
17234b26 10589echo "configure:10590: checking how to run the C++ preprocessor" >&5
21d1c967
GD
10590if test -z "$CXXCPP"; then
10591if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10592 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10593else
21d1c967
GD
10594 ac_ext=C
10595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10599cross_compiling=$ac_cv_prog_cxx_cross
10600 CXXCPP="${CXX-g++} -E"
10601 cat > conftest.$ac_ext <<EOF
17234b26 10602#line 10603 "configure"
7ec2881a 10603#include "confdefs.h"
21d1c967 10604#include <stdlib.h>
698dcdb6 10605EOF
21d1c967 10606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 10607{ (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609if test -z "$ac_err"; then
10610 :
698dcdb6 10611else
21d1c967 10612 echo "$ac_err" >&5
698dcdb6
VZ
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 rm -rf conftest*
21d1c967 10616 CXXCPP=/lib/cpp
698dcdb6
VZ
10617fi
10618rm -f conftest*
21d1c967
GD
10619 ac_cv_prog_CXXCPP="$CXXCPP"
10620ac_ext=C
10621# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10622ac_cpp='$CXXCPP $CPPFLAGS'
10623ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10624ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10625cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10626fi
90dd450c 10627fi
21d1c967
GD
10628CXXCPP="$ac_cv_prog_CXXCPP"
10629echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10630
1725144d 10631
21d1c967 10632 if test "$cross_compiling" = "yes"; then
90dd450c 10633 cat >> confdefs.h <<\EOF
21d1c967 10634#define wxUSE_IOSTREAMH 1
90dd450c 10635EOF
ab9b9eab 10636
21d1c967
GD
10637 else
10638
10639 ac_ext=C
10640# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10641ac_cpp='$CXXCPP $CPPFLAGS'
10642ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10643ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10644cross_compiling=$ac_cv_prog_cxx_cross
10645
ba337fe7 10646
21d1c967
GD
10647 for ac_hdr in iostream
10648do
10649ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10650echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 10651echo "configure:10652: checking for $ac_hdr" >&5
90dd450c 10652if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10653 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10654else
90dd450c 10655 cat > conftest.$ac_ext <<EOF
17234b26 10656#line 10657 "configure"
ab9b9eab 10657#include "confdefs.h"
21d1c967 10658#include <$ac_hdr>
698dcdb6
VZ
10659EOF
10660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 10661{ (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10662ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10663if test -z "$ac_err"; then
10664 rm -rf conftest*
90dd450c 10665 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10666else
698dcdb6
VZ
10667 echo "$ac_err" >&5
10668 echo "configure: failed program was:" >&5
ab9b9eab 10669 cat conftest.$ac_ext >&5
698dcdb6 10670 rm -rf conftest*
90dd450c 10671 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10672fi
698dcdb6 10673rm -f conftest*
90dd450c
VZ
10674fi
10675if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10676 echo "$ac_t""yes" 1>&6
21d1c967
GD
10677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10678 cat >> confdefs.h <<EOF
10679#define $ac_tr_hdr 1
698dcdb6 10680EOF
21d1c967 10681
ab9b9eab 10682else
90dd450c
VZ
10683 echo "$ac_t""no" 1>&6
10684fi
21d1c967 10685done
10f2d63a 10686
10f2d63a 10687
21d1c967
GD
10688 if test "$ac_cv_header_iostream" = "yes" ; then
10689 :
10690 else
10691 cat >> confdefs.h <<\EOF
10692#define wxUSE_IOSTREAMH 1
10693EOF
788deba1 10694
90dd450c 10695 fi
ab9b9eab 10696
21d1c967
GD
10697 ac_ext=c
10698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10699ac_cpp='$CPP $CPPFLAGS'
10700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10702cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10703
21d1c967 10704 fi
ab9b9eab 10705
21d1c967
GD
10706
10707
10708 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
17234b26 10709echo "configure:10710: checking if C++ compiler supports bool" >&5
21d1c967 10710if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10711 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10712else
21d1c967
GD
10713
10714
10715 ac_ext=C
10716# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10717ac_cpp='$CXXCPP $CPPFLAGS'
10718ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10719ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10720cross_compiling=$ac_cv_prog_cxx_cross
10721
10722
10723 cat > conftest.$ac_ext <<EOF
17234b26 10724#line 10725 "configure"
ab9b9eab 10725#include "confdefs.h"
21d1c967
GD
10726
10727
10728int main() {
10729
10730 bool b = true;
10731
10732 return 0;
10733
10734; return 0; }
698dcdb6 10735EOF
17234b26 10736if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10737 rm -rf conftest*
21d1c967
GD
10738
10739 wx_cv_cpp_bool=yes
10740
698dcdb6
VZ
10741else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
21d1c967
GD
10745
10746 wx_cv_cpp_bool=no
10747
10748
698dcdb6
VZ
10749fi
10750rm -f conftest*
21d1c967
GD
10751
10752 ac_ext=c
10753# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754ac_cpp='$CPP $CPPFLAGS'
10755ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757cross_compiling=$ac_cv_prog_cc_cross
10758
10759
698dcdb6 10760fi
21d1c967
GD
10761
10762echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10763
10764 if test "$wx_cv_cpp_bool" = "yes"; then
10765 cat >> confdefs.h <<\EOF
10766#define HAVE_BOOL 1
90dd450c 10767EOF
ab9b9eab 10768
21d1c967
GD
10769 fi
10770
10771
10772
986ecc86 10773 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
17234b26 10774echo "configure:10775: checking if C++ compiler supports the explicit keyword" >&5
986ecc86
VZ
10775if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777else
10778
10779
10780 ac_ext=C
10781# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10782ac_cpp='$CXXCPP $CPPFLAGS'
10783ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10784ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10785cross_compiling=$ac_cv_prog_cxx_cross
10786
10787
10788 cat > conftest.$ac_ext <<EOF
17234b26 10789#line 10790 "configure"
986ecc86
VZ
10790#include "confdefs.h"
10791
10792 class Foo { public: explicit Foo(int) {} };
10793
10794int main() {
10795
10796 return 0;
10797
10798; return 0; }
10799EOF
17234b26 10800if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10801 rm -rf conftest*
10802
10803 cat > conftest.$ac_ext <<EOF
17234b26 10804#line 10805 "configure"
986ecc86
VZ
10805#include "confdefs.h"
10806
10807 class Foo { public: explicit Foo(int) {} };
10808 static void TakeFoo(const Foo& foo) { }
10809
10810int main() {
10811
10812 TakeFoo(17);
10813 return 0;
10814
10815; return 0; }
10816EOF
17234b26 10817if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10818 rm -rf conftest*
10819 wx_cv_explicit=no
10820else
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 rm -rf conftest*
10824 wx_cv_explicit=yes
10825
10826fi
10827rm -f conftest*
10828
10829else
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 rm -rf conftest*
10833 wx_cv_explicit=no
10834
10835fi
10836rm -f conftest*
10837
10838 ac_ext=c
10839# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10842ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10843cross_compiling=$ac_cv_prog_cc_cross
10844
10845
10846fi
10847
10848echo "$ac_t""$wx_cv_explicit" 1>&6
10849
10850 if test "$wx_cv_explicit" = "yes"; then
10851 cat >> confdefs.h <<\EOF
10852#define HAVE_EXPLICIT 1
10853EOF
10854
10855 fi
10856
10857
10858
21d1c967
GD
10859SEARCH_INCLUDE="\
10860 /usr/local/include \
10861 \
10862 /usr/Motif-1.2/include \
10863 /usr/Motif-2.1/include \
10864 \
10865 /usr/include/Motif1.2 \
10866 /opt/xpm/include/X11 \
10867 /opt/GBxpm/include/ \
10868 /opt/GBxpm/X11/include/ \
10869 \
10870 /usr/Motif1.2/include \
10871 /usr/dt/include \
10872 /usr/openwin/include \
10873 \
10874 /usr/include/Xm \
10875 \
10876 /usr/X11R6/include \
10877 /usr/X11R6.4/include \
10878 /usr/X11R5/include \
10879 /usr/X11R4/include \
10880 \
10881 /usr/include/X11R6 \
10882 /usr/include/X11R5 \
10883 /usr/include/X11R4 \
10884 \
10885 /usr/local/X11R6/include \
10886 /usr/local/X11R5/include \
10887 /usr/local/X11R4/include \
10888 \
10889 /usr/local/include/X11R6 \
10890 /usr/local/include/X11R5 \
10891 /usr/local/include/X11R4 \
10892 \
10893 /usr/X11/include \
10894 /usr/include/X11 \
10895 /usr/local/X11/include \
10896 /usr/local/include/X11 \
10897 \
10898 /usr/X386/include \
10899 /usr/x386/include \
10900 /usr/XFree86/include/X11 \
10901 \
10902 X:/XFree86/include \
10903 X:/XFree86/include/X11 \
10904 \
10905 /usr/include/gtk \
10906 /usr/local/include/gtk \
10907 /usr/include/glib \
10908 /usr/local/include/glib \
10909 \
10910 /usr/include/qt \
10911 /usr/local/include/qt \
10912 \
10913 /usr/include/windows \
10914 /usr/include/wine \
10915 /usr/local/include/wine \
10916 \
10917 /usr/unsupported/include \
10918 /usr/athena/include \
10919 /usr/local/x11r5/include \
10920 /usr/lpp/Xamples/include \
10921 \
10922 /usr/openwin/share/include \
10923 \
10924 /usr/include"
10925
10926SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10927
10928
10929cat > confcache <<\EOF
10930# This file is a shell script that caches the results of configure
10931# tests run on this system so they can be shared between configure
10932# scripts and configure runs. It is not useful on other systems.
10933# If it contains results you don't want to keep, you may remove or edit it.
10934#
10935# By default, configure uses ./config.cache as the cache file,
10936# creating it if it does not exist already. You can give configure
10937# the --cache-file=FILE option to use a different cache file; that is
10938# what configure does when it calls configure scripts in
10939# subdirectories, so they share the cache.
10940# Giving --cache-file=/dev/null disables caching, for debugging configure.
10941# config.status only pays attention to the cache file if you give it the
10942# --recheck option to rerun configure.
10943#
698dcdb6 10944EOF
21d1c967
GD
10945# The following way of writing the cache mishandles newlines in values,
10946# but we know of no workaround that is simple, portable, and efficient.
10947# So, don't put newlines in cache variables' values.
10948# Ultrix sh set writes to stderr and can't be redirected directly,
10949# and sets the high bit in the cache file unless we assign to the vars.
10950(set) 2>&1 |
10951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10952 *ac_space=\ *)
10953 # `set' does not quote correctly, so add quotes (double-quote substitution
10954 # turns \\\\ into \\, and sed turns \\ into \).
10955 sed -n \
10956 -e "s/'/'\\\\''/g" \
10957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10958 ;;
10959 *)
10960 # `set' quotes correctly as required by POSIX, so do not add quotes.
10961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10962 ;;
10963 esac >> confcache
10964if cmp -s $cache_file confcache; then
90dd450c 10965 :
698dcdb6 10966else
21d1c967
GD
10967 if test -w $cache_file; then
10968 echo "updating cache $cache_file"
10969 cat confcache > $cache_file
10970 else
10971 echo "not updating unwritable cache $cache_file"
10972 fi
ab9b9eab 10973fi
21d1c967 10974rm -f confcache
ab9b9eab 10975
ab9b9eab 10976
21d1c967
GD
10977if test "$USE_LINUX" = 1; then
10978 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
17234b26 10979echo "configure:10980: checking for glibc 2.1 or later" >&5
21d1c967 10980if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10981 echo $ac_n "(cached) $ac_c" 1>&6
10982else
90dd450c 10983
21d1c967 10984 cat > conftest.$ac_ext <<EOF
17234b26 10985#line 10986 "configure"
ab9b9eab 10986#include "confdefs.h"
21d1c967 10987#include <features.h>
698dcdb6 10988int main() {
ab9b9eab 10989
21d1c967
GD
10990 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10991 #error not glibc2.1
10992 #endif
10993
698dcdb6
VZ
10994; return 0; }
10995EOF
17234b26 10996if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10997 rm -rf conftest*
90dd450c 10998
21d1c967
GD
10999 wx_cv_lib_glibc21=yes
11000
698dcdb6
VZ
11001else
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11004 rm -rf conftest*
90dd450c 11005
21d1c967
GD
11006 wx_cv_lib_glibc21=no
11007
11008
698dcdb6
VZ
11009fi
11010rm -f conftest*
90dd450c 11011
698dcdb6
VZ
11012fi
11013
21d1c967
GD
11014echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11015 if test "$wx_cv_lib_glibc21" = "yes"; then
11016 cat >> confdefs.h <<\EOF
11017#define wxHAVE_GLIBC2 1
11018EOF
1e487827 11019
90dd450c 11020 fi
ab9b9eab
VZ
11021fi
11022
ab9b9eab 11023
ab9b9eab 11024
21d1c967
GD
11025REGEX_INCLUDE=
11026if test "$wxUSE_REGEX" != "no"; then
11027 cat >> confdefs.h <<\EOF
11028#define wxUSE_REGEX 1
11029EOF
698dcdb6 11030
ab9b9eab 11031
21d1c967
GD
11032 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11033 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11034echo $ac_n "checking for regex.h""... $ac_c" 1>&6
17234b26 11035echo "configure:11036: checking for regex.h" >&5
21d1c967 11036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 11037 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11038else
21d1c967 11039 cat > conftest.$ac_ext <<EOF
17234b26 11040#line 11041 "configure"
21d1c967
GD
11041#include "confdefs.h"
11042#include <regex.h>
11043EOF
11044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11045{ (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11047if test -z "$ac_err"; then
11048 rm -rf conftest*
11049 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11050else
21d1c967
GD
11051 echo "$ac_err" >&5
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11054 rm -rf conftest*
11055 eval "ac_cv_header_$ac_safe=no"
11056fi
11057rm -f conftest*
698dcdb6 11058fi
21d1c967
GD
11059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11060 echo "$ac_t""yes" 1>&6
11061 for ac_func in regcomp
11062do
11063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 11064echo "configure:11065: checking for $ac_func" >&5
21d1c967
GD
11065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067else
11068 cat > conftest.$ac_ext <<EOF
17234b26 11069#line 11070 "configure"
21d1c967
GD
11070#include "confdefs.h"
11071/* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char $ac_func(); below. */
11073#include <assert.h>
11074/* Override any gcc2 internal prototype to avoid an error. */
11075/* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077char $ac_func();
698dcdb6 11078
21d1c967 11079int main() {
90dd450c 11080
21d1c967
GD
11081/* The GNU C library defines this for functions which it implements
11082 to always fail with ENOSYS. Some functions are actually named
11083 something starting with __ and the normal name is an alias. */
11084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085choke me
11086#else
11087$ac_func();
11088#endif
90dd450c 11089
21d1c967
GD
11090; return 0; }
11091EOF
17234b26 11092if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
11093 rm -rf conftest*
11094 eval "ac_cv_func_$ac_func=yes"
11095else
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 rm -rf conftest*
11099 eval "ac_cv_func_$ac_func=no"
11100fi
11101rm -f conftest*
11102fi
90dd450c 11103
21d1c967
GD
11104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11105 echo "$ac_t""yes" 1>&6
11106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11107 cat >> confdefs.h <<EOF
11108#define $ac_tr_func 1
11109EOF
11110
90dd450c 11111else
21d1c967 11112 echo "$ac_t""no" 1>&6
698dcdb6 11113fi
21d1c967
GD
11114done
11115
698dcdb6
VZ
11116else
11117 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11118fi
11119
90dd450c 11120
21d1c967
GD
11121 if test "x$ac_cv_func_regcomp" != "xyes"; then
11122 if test "$wxUSE_REGEX" = "sys" ; then
11123 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11124 else
11125 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11126 wxUSE_REGEX=builtin
11127 fi
11128 else
11129 wxUSE_REGEX=sys
11130 fi
ab9b9eab 11131 fi
90dd450c 11132
21d1c967
GD
11133 if test "$wxUSE_REGEX" = "builtin" ; then
11134 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11135 fi
21d1c967 11136fi
90dd450c 11137
90dd450c 11138
21d1c967
GD
11139ZLIB_INCLUDE=
11140ZLIB_LINK=
11141if test "$wxUSE_ZLIB" != "no" ; then
11142 cat >> confdefs.h <<\EOF
11143#define wxUSE_ZLIB 1
11144EOF
11145
11146
11147 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11148 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11149echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
17234b26 11150echo "configure:11151: checking for zlib.h" >&5
21d1c967
GD
11151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11153else
698dcdb6 11154 cat > conftest.$ac_ext <<EOF
17234b26 11155#line 11156 "configure"
ab9b9eab 11156#include "confdefs.h"
21d1c967 11157#include <zlib.h>
698dcdb6 11158EOF
21d1c967 11159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11160{ (eval echo configure:11161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11162if test -z "$ac_err"; then
11163 rm -rf conftest*
11164 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11165else
21d1c967 11166 echo "$ac_err" >&5
698dcdb6
VZ
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
21d1c967
GD
11169 rm -rf conftest*
11170 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11171fi
21d1c967 11172rm -f conftest*
ab9b9eab 11173fi
21d1c967
GD
11174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11175 echo "$ac_t""yes" 1>&6
11176 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
17234b26 11177echo "configure:11178: checking for deflate in -lz" >&5
21d1c967
GD
11178ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11181else
11182 ac_save_LIBS="$LIBS"
11183LIBS="-lz $LIBS"
11184cat > conftest.$ac_ext <<EOF
17234b26 11185#line 11186 "configure"
ab9b9eab 11186#include "confdefs.h"
21d1c967
GD
11187/* Override any gcc2 internal prototype to avoid an error. */
11188/* We use char because int might match the return type of a gcc2
11189 builtin and then its argument prototype would still apply. */
11190char deflate();
ab9b9eab 11191
90dd450c 11192int main() {
21d1c967 11193deflate()
698dcdb6
VZ
11194; return 0; }
11195EOF
17234b26 11196if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11197 rm -rf conftest*
21d1c967 11198 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11199else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
21d1c967 11203 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11204fi
11205rm -f conftest*
21d1c967 11206LIBS="$ac_save_LIBS"
ab9b9eab 11207
21d1c967
GD
11208fi
11209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11211 ZLIB_LINK=" -lz"
ab9b9eab 11212else
21d1c967 11213 echo "$ac_t""no" 1>&6
90dd450c 11214fi
698dcdb6 11215
698dcdb6 11216else
21d1c967 11217 echo "$ac_t""no" 1>&6
698dcdb6 11218fi
698dcdb6 11219
21d1c967
GD
11220
11221 if test "x$ZLIB_LINK" = "x" ; then
11222 if test "$wxUSE_ZLIB" = "sys" ; then
11223 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11224 else
11225 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11226 wxUSE_ZLIB=builtin
11227 fi
11228 else
11229 wxUSE_ZLIB=sys
11230 fi
11231 fi
11232
11233 if test "$wxUSE_ZLIB" = "builtin" ; then
11234 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11235 fi
ab9b9eab
VZ
11236fi
11237
ab9b9eab 11238
21d1c967
GD
11239PNG_INCLUDE=
11240PNG_LINK=
11241if test "$wxUSE_LIBPNG" != "no" ; then
11242 cat >> confdefs.h <<\EOF
11243#define wxUSE_LIBPNG 1
11244EOF
90dd450c 11245
21d1c967
GD
11246
11247 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11248 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11249 wxUSE_LIBPNG=sys
11250 fi
90dd450c 11251
21d1c967
GD
11252 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11253 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11254 wxUSE_LIBPNG=builtin
11255 fi
11256
11257 if test "$wxUSE_MGL" != 1 ; then
11258 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11259 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11260echo $ac_n "checking for png.h""... $ac_c" 1>&6
17234b26 11261echo "configure:11262: checking for png.h" >&5
21d1c967 11262if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11263 echo $ac_n "(cached) $ac_c" 1>&6
11264else
21d1c967 11265 cat > conftest.$ac_ext <<EOF
17234b26 11266#line 11267 "configure"
21d1c967
GD
11267#include "confdefs.h"
11268#include <png.h>
11269EOF
11270ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11271{ (eval echo configure:11272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11272ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11273if test -z "$ac_err"; then
11274 rm -rf conftest*
11275 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11276else
21d1c967 11277 echo "$ac_err" >&5
90dd450c
VZ
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
21d1c967
GD
11280 rm -rf conftest*
11281 eval "ac_cv_header_$ac_safe=no"
90dd450c 11282fi
21d1c967 11283rm -f conftest*
90dd450c 11284fi
21d1c967
GD
11285if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11286 echo "$ac_t""yes" 1>&6
11287 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
17234b26 11288echo "configure:11289: checking for png_check_sig in -lpng" >&5
21d1c967
GD
11289ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292else
11293 ac_save_LIBS="$LIBS"
11294LIBS="-lpng -lz -lm $LIBS"
11295cat > conftest.$ac_ext <<EOF
17234b26 11296#line 11297 "configure"
90dd450c 11297#include "confdefs.h"
21d1c967
GD
11298/* Override any gcc2 internal prototype to avoid an error. */
11299/* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11301char png_check_sig();
90dd450c
VZ
11302
11303int main() {
21d1c967 11304png_check_sig()
90dd450c
VZ
11305; return 0; }
11306EOF
17234b26 11307if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11308 rm -rf conftest*
21d1c967 11309 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11310else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
21d1c967 11314 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11315fi
11316rm -f conftest*
21d1c967 11317LIBS="$ac_save_LIBS"
90dd450c 11318
90dd450c 11319fi
21d1c967
GD
11320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322 PNG_LINK=" -lpng"
90dd450c 11323else
21d1c967 11324 echo "$ac_t""no" 1>&6
90dd450c
VZ
11325fi
11326
21d1c967 11327
90dd450c 11328else
21d1c967 11329 echo "$ac_t""no" 1>&6
90dd450c
VZ
11330fi
11331
11332
21d1c967
GD
11333 if test "x$PNG_LINK" = "x" ; then
11334 if test "$wxUSE_LIBPNG" = "sys" ; then
11335 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11336 else
11337 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11338 wxUSE_LIBPNG=builtin
11339 fi
11340 else
11341 wxUSE_LIBPNG=yes
11342 fi
11343 fi
11344 fi
90dd450c 11345
21d1c967
GD
11346 if test "$wxUSE_LIBPNG" = "builtin" ; then
11347 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11348 fi
90dd450c 11349
21d1c967 11350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11351fi
11352
90dd450c 11353
21d1c967
GD
11354JPEG_INCLUDE=
11355JPEG_LINK=
11356if test "$wxUSE_LIBJPEG" != "no" ; then
11357 cat >> confdefs.h <<\EOF
11358#define wxUSE_LIBJPEG 1
11359EOF
90dd450c 11360
90dd450c 11361
21d1c967
GD
11362 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11363 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11364 wxUSE_LIBJPEG=sys
11365 fi
90dd450c 11366
21d1c967
GD
11367 if test "$wxUSE_MGL" != 1 ; then
11368 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11369 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
17234b26 11370echo "configure:11371: checking for jpeglib.h" >&5
21d1c967
GD
11371 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373else
11374 cat > conftest.$ac_ext <<EOF
17234b26 11375#line 11376 "configure"
21d1c967 11376#include "confdefs.h"
90dd450c 11377
21d1c967
GD
11378 #undef HAVE_STDLIB_H
11379 #include <stdio.h>
11380 #include <jpeglib.h>
11381
11382int main() {
90dd450c 11383
21d1c967
GD
11384
11385; return 0; }
90dd450c 11386EOF
17234b26 11387if { (eval echo configure:11388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
11388 rm -rf conftest*
11389 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11390else
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
21d1c967
GD
11393 rm -rf conftest*
11394 ac_cv_header_jpeglib_h=no
11395
90dd450c 11396fi
21d1c967
GD
11397rm -f conftest*
11398
90dd450c
VZ
11399fi
11400
21d1c967 11401 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11402
21d1c967
GD
11403 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11404 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
17234b26 11405echo "configure:11406: checking for jpeg_read_header in -ljpeg" >&5
21d1c967
GD
11406ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409else
11410 ac_save_LIBS="$LIBS"
11411LIBS="-ljpeg $LIBS"
11412cat > conftest.$ac_ext <<EOF
17234b26 11413#line 11414 "configure"
21d1c967
GD
11414#include "confdefs.h"
11415/* Override any gcc2 internal prototype to avoid an error. */
11416/* We use char because int might match the return type of a gcc2
11417 builtin and then its argument prototype would still apply. */
11418char jpeg_read_header();
90dd450c
VZ
11419
11420int main() {
21d1c967 11421jpeg_read_header()
90dd450c
VZ
11422; return 0; }
11423EOF
17234b26 11424if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11425 rm -rf conftest*
21d1c967 11426 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11427else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -rf conftest*
21d1c967 11431 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11432fi
11433rm -f conftest*
21d1c967 11434LIBS="$ac_save_LIBS"
90dd450c 11435
21d1c967
GD
11436fi
11437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11438 echo "$ac_t""yes" 1>&6
11439 JPEG_LINK=" -ljpeg"
11440else
11441 echo "$ac_t""no" 1>&6
90dd450c
VZ
11442fi
11443
21d1c967 11444 fi
90dd450c 11445
21d1c967
GD
11446 if test "x$JPEG_LINK" = "x" ; then
11447 if test "$wxUSE_LIBJPEG" = "sys" ; then
11448 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11449 else
11450 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11451 wxUSE_LIBJPEG=builtin
11452 fi
11453 else
11454 wxUSE_LIBJPEG=sys
11455 fi
11456 fi
11457 fi
90dd450c 11458
21d1c967
GD
11459 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11460 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11461 fi
11462fi
90dd450c 11463
90dd450c 11464
21d1c967
GD
11465TIFF_INCLUDE=
11466TIFF_LINK=
11467if test "$wxUSE_LIBTIFF" != "no" ; then
11468 cat >> confdefs.h <<\EOF
11469#define wxUSE_LIBTIFF 1
11470EOF
11471
11472
11473 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11474 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11475echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
17234b26 11476echo "configure:11477: checking for tiffio.h" >&5
21d1c967
GD
11477if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11479else
11480 cat > conftest.$ac_ext <<EOF
17234b26 11481#line 11482 "configure"
21d1c967
GD
11482#include "confdefs.h"
11483#include <tiffio.h>
11484EOF
11485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11486{ (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11488if test -z "$ac_err"; then
11489 rm -rf conftest*
11490 eval "ac_cv_header_$ac_safe=yes"
11491else
11492 echo "$ac_err" >&5
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 rm -rf conftest*
11496 eval "ac_cv_header_$ac_safe=no"
11497fi
11498rm -f conftest*
11499fi
11500if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11501 echo "$ac_t""yes" 1>&6
11502 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
17234b26 11503echo "configure:11504: checking for TIFFError in -ltiff" >&5
21d1c967 11504ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11506 echo $ac_n "(cached) $ac_c" 1>&6
11507else
11508 ac_save_LIBS="$LIBS"
21d1c967 11509LIBS="-ltiff -lm $LIBS"
698dcdb6 11510cat > conftest.$ac_ext <<EOF
17234b26 11511#line 11512 "configure"
ab9b9eab
VZ
11512#include "confdefs.h"
11513/* Override any gcc2 internal prototype to avoid an error. */
11514/* We use char because int might match the return type of a gcc2
698dcdb6 11515 builtin and then its argument prototype would still apply. */
21d1c967 11516char TIFFError();
698dcdb6
VZ
11517
11518int main() {
21d1c967 11519TIFFError()
698dcdb6
VZ
11520; return 0; }
11521EOF
17234b26 11522if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11523 rm -rf conftest*
11524 eval "ac_cv_lib_$ac_lib_var=yes"
11525else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_lib_$ac_lib_var=no"
11530fi
11531rm -f conftest*
11532LIBS="$ac_save_LIBS"
11533
11534fi
11535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
21d1c967 11537 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11538else
11539 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11540fi
11541
21d1c967
GD
11542
11543else
11544 echo "$ac_t""no" 1>&6
11545fi
cd6d6d5b 11546
c79a329d 11547
21d1c967
GD
11548 if test "x$TIFF_LINK" = "x" ; then
11549 if test "$wxUSE_LIBTIFF" = "sys" ; then
11550 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11551 else
21d1c967
GD
11552 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11553 wxUSE_LIBTIFF=builtin
d8356fa3 11554 fi
d8356fa3 11555 else
21d1c967 11556 wxUSE_LIBTIFF=sys
d8356fa3 11557 fi
21d1c967 11558 fi
d8356fa3 11559
21d1c967
GD
11560 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11561 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11562 fi
21d1c967 11563fi
10f2d63a 11564
90dd450c 11565
21d1c967 11566AFMINSTALL=
90dd450c 11567
21d1c967
GD
11568TOOLKIT=
11569TOOLKIT_INCLUDE=
11570WIDGET_SET=
11571
11572if test "$USE_WIN32" = 1 ; then
11573 for ac_hdr in w32api.h
11574do
11575ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11576echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 11577echo "configure:11578: checking for $ac_hdr" >&5
21d1c967 11578if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11579 echo $ac_n "(cached) $ac_c" 1>&6
11580else
21d1c967 11581 cat > conftest.$ac_ext <<EOF
17234b26 11582#line 11583 "configure"
f79bd02d 11583#include "confdefs.h"
21d1c967 11584#include <$ac_hdr>
f79bd02d
JS
11585EOF
11586ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11587{ (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11588ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589if test -z "$ac_err"; then
11590 rm -rf conftest*
21d1c967 11591 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11592else
11593 echo "$ac_err" >&5
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 rm -rf conftest*
21d1c967 11597 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11598fi
11599rm -f conftest*
21d1c967
GD
11600fi
11601if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11604 cat >> confdefs.h <<EOF
11605#define $ac_tr_hdr 1
11606EOF
11607
11608else
11609 echo "$ac_t""no" 1>&6
11610fi
11611done
f79bd02d 11612
21d1c967
GD
11613 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11614echo $ac_n "checking for windows.h""... $ac_c" 1>&6
17234b26 11615echo "configure:11616: checking for windows.h" >&5
21d1c967
GD
11616if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618else
11619 cat > conftest.$ac_ext <<EOF
17234b26 11620#line 11621 "configure"
90dd450c 11621#include "confdefs.h"
21d1c967 11622#include <windows.h>
f79bd02d 11623EOF
21d1c967 11624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 11625{ (eval echo configure:11626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11626ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11627if test -z "$ac_err"; then
90dd450c 11628 rm -rf conftest*
21d1c967 11629 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11630else
21d1c967 11631 echo "$ac_err" >&5
90dd450c
VZ
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
21d1c967 11635 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11636fi
11637rm -f conftest*
90dd450c 11638fi
21d1c967
GD
11639if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11640 echo "$ac_t""yes" 1>&6
11641 :
90dd450c 11642else
21d1c967
GD
11643 echo "$ac_t""no" 1>&6
11644
11645 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11646
90dd450c 11647fi
f79bd02d 11648
f79bd02d 11649
21d1c967 11650 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
17234b26 11651echo "configure:11652: checking if w32api has good enough MSIE support" >&5
21d1c967
GD
11652if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11654else
21d1c967 11655
f79bd02d 11656 cat > conftest.$ac_ext <<EOF
17234b26 11657#line 11658 "configure"
f79bd02d 11658#include "confdefs.h"
21d1c967 11659#include <w32api.h>
f79bd02d
JS
11660int main() {
11661
21d1c967
GD
11662 #define wxCHECK_W32API_VERSION( major, minor ) \
11663 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11664 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11665 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11666
11667 #if !wxCHECK_W32API_VERSION(1,1)
11668 #error You need w32api 1.1 or newer
11669 #endif
11670
f79bd02d
JS
11671; return 0; }
11672EOF
17234b26 11673if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11674 rm -rf conftest*
21d1c967
GD
11675
11676 wx_cv_w32api_win32_ie=yes
11677
f79bd02d
JS
11678else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
21d1c967
GD
11682
11683 wx_cv_w32api_win32_ie=no
11684
f79bd02d
JS
11685fi
11686rm -f conftest*
21d1c967
GD
11687
11688fi
f79bd02d 11689
21d1c967
GD
11690echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11691 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11692 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11693 fi
f79bd02d 11694
21d1c967
GD
11695 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11696
11697 case "${host}" in
11698 *-*-cygwin* )
11699 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11700 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11701 esac
f79bd02d 11702
21d1c967
GD
11703 if test "$wxUSE_ODBC" = "yes" ; then
11704 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11705 fi
f79bd02d 11706
21d1c967
GD
11707 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11708 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11709fi
f79bd02d 11710
21d1c967
GD
11711if test "$wxUSE_GUI" = "yes"; then
11712 USE_GUI=1
f79bd02d 11713
21d1c967 11714 GUI_TK_LIBRARY=
f79bd02d 11715
21d1c967
GD
11716 WXGTK12=
11717 WXGTK127=
11718 WXGTK20=
f79bd02d 11719
21d1c967
GD
11720 if test "$wxUSE_MSW" = 1 ; then
11721 TOOLKIT=MSW
11722 GUIDIST=MSW_DIST
f79bd02d 11723
21d1c967
GD
11724 case "${host}" in
11725 *-*-mingw32* )
11726 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11727 esac
f79bd02d
JS
11728 fi
11729
21d1c967
GD
11730 if test "$wxUSE_GTK" = 1; then
11731 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
17234b26 11732echo "configure:11733: checking for GTK+ version" >&5
21d1c967
GD
11733
11734 gtk_version_cached=1
11735 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11736 echo $ac_n "(cached) $ac_c" 1>&6
11737else
21d1c967
GD
11738
11739 gtk_version_cached=0
11740 echo "$ac_t""" 1>&6
f79bd02d 11741
21d1c967
GD
11742 GTK_MODULES=
11743 if test "$wxUSE_THREADS" = "yes"; then
11744 GTK_MODULES=gthread
11745 fi
f79bd02d 11746
21d1c967
GD
11747 wx_cv_lib_gtk=
11748 if test "x$wxUSE_GTK2" = "xyes"; then
11749 # Check whether --enable-gtktest or --disable-gtktest was given.
11750if test "${enable_gtktest+set}" = set; then
11751 enableval="$enable_gtktest"
f79bd02d
JS
11752 :
11753else
21d1c967 11754 enable_gtktest=yes
f79bd02d
JS
11755fi
11756
f79bd02d 11757
21d1c967
GD
11758 pkg_config_args=gtk+-2.0
11759 for module in . $GTK_MODULES
11760 do
11761 case "$module" in
11762 gthread)
11763 pkg_config_args="$pkg_config_args gthread-2.0"
11764 ;;
11765 esac
11766 done
11767
11768 no_gtk=""
f79bd02d 11769
21d1c967
GD
11770 # Extract the first word of "pkg-config", so it can be a program name with args.
11771set dummy pkg-config; ac_word=$2
11772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 11773echo "configure:11774: checking for $ac_word" >&5
21d1c967
GD
11774if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776else
11777 case "$PKG_CONFIG" in
11778 /*)
11779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11780 ;;
11781 ?:/*)
11782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11783 ;;
11784 *)
11785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11786 ac_dummy="$PATH"
11787 for ac_dir in $ac_dummy; do
11788 test -z "$ac_dir" && ac_dir=.
11789 if test -f $ac_dir/$ac_word; then
11790 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11791 break
11792 fi
11793 done
11794 IFS="$ac_save_ifs"
11795 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11796 ;;
11797esac
f79bd02d 11798fi
21d1c967
GD
11799PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11800if test -n "$PKG_CONFIG"; then
11801 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11802else
11803 echo "$ac_t""no" 1>&6
11804fi
11805
f79bd02d 11806
21d1c967
GD
11807 if test x$PKG_CONFIG != xno ; then
11808 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11809 :
11810 else
11811 echo *** pkg-config too old; version 0.7 or better required.
11812 no_gtk=yes
11813 PKG_CONFIG=no
11814 fi
11815 else
11816 no_gtk=yes
11817 fi
f79bd02d 11818
21d1c967
GD
11819 min_gtk_version=2.0.0
11820 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
17234b26 11821echo "configure:11822: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11822
21d1c967
GD
11823 if test x$PKG_CONFIG != xno ; then
11824 ## don't try to run the test against uninstalled libtool libs
11825 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11826 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11827 enable_gtktest=no
11828 fi
f79bd02d 11829
21d1c967
GD
11830 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11831 :
11832 else
11833 no_gtk=yes
11834 fi
11835 fi
f79bd02d 11836
21d1c967
GD
11837 if test x"$no_gtk" = x ; then
11838 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11839 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11840 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11842 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11843 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11844 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11846 if test "x$enable_gtktest" = "xyes" ; then
11847 ac_save_CFLAGS="$CFLAGS"
11848 ac_save_LIBS="$LIBS"
11849 CFLAGS="$CFLAGS $GTK_CFLAGS"
11850 LIBS="$GTK_LIBS $LIBS"
11851 rm -f conf.gtktest
11852 if test "$cross_compiling" = yes; then
11853 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11854else
21d1c967 11855 cat > conftest.$ac_ext <<EOF
17234b26 11856#line 11857 "configure"
f79bd02d 11857#include "confdefs.h"
f79bd02d 11858
21d1c967
GD
11859#include <gtk/gtk.h>
11860#include <stdio.h>
11861#include <stdlib.h>
f79bd02d 11862
21d1c967
GD
11863int
11864main ()
11865{
11866 int major, minor, micro;
11867 char *tmp_version;
f79bd02d 11868
21d1c967 11869 system ("touch conf.gtktest");
f79bd02d 11870
21d1c967
GD
11871 /* HP/UX 9 (%@#!) writes to sscanf strings */
11872 tmp_version = g_strdup("$min_gtk_version");
11873 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11874 printf("%s, bad version string\n", "$min_gtk_version");
11875 exit(1);
11876 }
f79bd02d 11877
21d1c967
GD
11878 if ((gtk_major_version != $gtk_config_major_version) ||
11879 (gtk_minor_version != $gtk_config_minor_version) ||
11880 (gtk_micro_version != $gtk_config_micro_version))
11881 {
11882 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11883 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11884 gtk_major_version, gtk_minor_version, gtk_micro_version);
11885 printf ("*** was found! If pkg-config was correct, then it is best\n");
11886 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11887 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11888 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11889 printf("*** required on your system.\n");
11890 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11891 printf("*** to point to the correct configuration files\n");
11892 }
11893 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11894 (gtk_minor_version != GTK_MINOR_VERSION) ||
11895 (gtk_micro_version != GTK_MICRO_VERSION))
11896 {
11897 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11898 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11899 printf("*** library (version %d.%d.%d)\n",
11900 gtk_major_version, gtk_minor_version, gtk_micro_version);
11901 }
11902 else
11903 {
11904 if ((gtk_major_version > major) ||
11905 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11906 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11907 {
11908 return 0;
11909 }
11910 else
11911 {
11912 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11913 gtk_major_version, gtk_minor_version, gtk_micro_version);
11914 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11915 major, minor, micro);
11916 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11917 printf("***\n");
11918 printf("*** If you have already installed a sufficiently new version, this error\n");
11919 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11920 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11921 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11922 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11923 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11924 printf("*** so that the correct libraries are found at run-time))\n");
11925 }
11926 }
11927 return 1;
11928}
f79bd02d 11929
f79bd02d 11930EOF
17234b26 11931if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
11932then
11933 :
f79bd02d
JS
11934else
11935 echo "configure: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
21d1c967
GD
11937 rm -fr conftest*
11938 no_gtk=yes
f79bd02d 11939fi
21d1c967 11940rm -fr conftest*
f79bd02d
JS
11941fi
11942
21d1c967
GD
11943 CFLAGS="$ac_save_CFLAGS"
11944 LIBS="$ac_save_LIBS"
11945 fi
11946 fi
11947 if test "x$no_gtk" = x ; then
11948 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11949 wx_cv_lib_gtk=2.0
11950 else
11951 echo "$ac_t""no" 1>&6
11952 if test "$PKG_CONFIG" = "no" ; then
11953 echo "*** A new enough version of pkg-config was not found."
11954 echo "*** See http://pkgconfig.sourceforge.net"
11955 else
11956 if test -f conf.gtktest ; then
11957 :
11958 else
11959 echo "*** Could not run GTK+ test program, checking why..."
11960 CFLAGS="$CFLAGS $GTK_CFLAGS"
11961 LIBS="$LIBS $GTK_LIBS"
11962 cat > conftest.$ac_ext <<EOF
17234b26 11963#line 11964 "configure"
f79bd02d 11964#include "confdefs.h"
21d1c967
GD
11965
11966#include <gtk/gtk.h>
11967#include <stdio.h>
f79bd02d
JS
11968
11969int main() {
21d1c967 11970 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11971; return 0; }
11972EOF
17234b26 11973if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11974 rm -rf conftest*
21d1c967
GD
11975 echo "*** The test program compiled, but did not run. This usually means"
11976 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11977 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11978 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11979 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11980 echo "*** is required on your system"
11981 echo "***"
11982 echo "*** If you have an old version installed, it is best to remove it, although"
11983 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11984else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
21d1c967
GD
11988 echo "*** The test program failed to compile or link. See the file config.log for the"
11989 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11990 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11991 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
11992fi
11993rm -f conftest*
21d1c967
GD
11994 CFLAGS="$ac_save_CFLAGS"
11995 LIBS="$ac_save_LIBS"
11996 fi
11997 fi
11998 GTK_CFLAGS=""
11999 GTK_LIBS=""
12000 :
12001 fi
12002
12003
12004 rm -f conf.gtktest
f79bd02d 12005
21d1c967 12006 fi
f79bd02d 12007
21d1c967
GD
12008 if test -z "$wx_cv_lib_gtk"; then
12009 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12010if test "${with_gtk_prefix+set}" = set; then
12011 withval="$with_gtk_prefix"
12012 gtk_config_prefix="$withval"
12013else
12014 gtk_config_prefix=""
12015fi
f79bd02d 12016
21d1c967
GD
12017# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12018if test "${with_gtk_exec_prefix+set}" = set; then
12019 withval="$with_gtk_exec_prefix"
12020 gtk_config_exec_prefix="$withval"
12021else
12022 gtk_config_exec_prefix=""
12023fi
12024
12025# Check whether --enable-gtktest or --disable-gtktest was given.
12026if test "${enable_gtktest+set}" = set; then
12027 enableval="$enable_gtktest"
12028 :
12029else
12030 enable_gtktest=yes
12031fi
12032
12033
12034 for module in . $GTK_MODULES
12035 do
12036 case "$module" in
12037 gthread)
12038 gtk_config_args="$gtk_config_args gthread"
12039 ;;
12040 esac
12041 done
12042
12043 if test x$gtk_config_exec_prefix != x ; then
12044 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12045 if test x${GTK_CONFIG+set} != xset ; then
12046 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12047 fi
12048 fi
12049 if test x$gtk_config_prefix != x ; then
12050 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12051 if test x${GTK_CONFIG+set} != xset ; then
12052 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12053 fi
12054 fi
12055
12056 # Extract the first word of "gtk-config", so it can be a program name with args.
12057set dummy gtk-config; ac_word=$2
12058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 12059echo "configure:12060: checking for $ac_word" >&5
21d1c967 12060if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 12061 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
12062else
12063 case "$GTK_CONFIG" in
12064 /*)
12065 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12066 ;;
12067 ?:/*)
12068 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12069 ;;
12070 *)
12071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12072 ac_dummy="$PATH"
12073 for ac_dir in $ac_dummy; do
12074 test -z "$ac_dir" && ac_dir=.
12075 if test -f $ac_dir/$ac_word; then
12076 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12077 break
12078 fi
12079 done
12080 IFS="$ac_save_ifs"
12081 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12082 ;;
12083esac
12084fi
12085GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12086if test -n "$GTK_CONFIG"; then
12087 echo "$ac_t""$GTK_CONFIG" 1>&6
12088else
12089 echo "$ac_t""no" 1>&6
12090fi
12091
12092 min_gtk_version=1.2.7
12093 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
17234b26 12094echo "configure:12095: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12095 no_gtk=""
12096 if test "$GTK_CONFIG" = "no" ; then
12097 no_gtk=yes
12098 else
12099 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12100 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12101 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12103 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12105 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12106 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12107 if test "x$enable_gtktest" = "xyes" ; then
12108 ac_save_CFLAGS="$CFLAGS"
12109 ac_save_LIBS="$LIBS"
12110 CFLAGS="$CFLAGS $GTK_CFLAGS"
12111 LIBS="$GTK_LIBS $LIBS"
12112 rm -f conf.gtktest
12113 if test "$cross_compiling" = yes; then
12114 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12115else
90dd450c 12116 cat > conftest.$ac_ext <<EOF
17234b26 12117#line 12118 "configure"
f79bd02d
JS
12118#include "confdefs.h"
12119
21d1c967
GD
12120#include <gtk/gtk.h>
12121#include <stdio.h>
12122#include <stdlib.h>
f79bd02d 12123
21d1c967
GD
12124int
12125main ()
12126{
12127 int major, minor, micro;
12128 char *tmp_version;
12129
12130 system ("touch conf.gtktest");
12131
12132 /* HP/UX 9 (%@#!) writes to sscanf strings */
12133 tmp_version = g_strdup("$min_gtk_version");
12134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12135 printf("%s, bad version string\n", "$min_gtk_version");
12136 exit(1);
12137 }
90dd450c 12138
21d1c967
GD
12139 if ((gtk_major_version != $gtk_config_major_version) ||
12140 (gtk_minor_version != $gtk_config_minor_version) ||
12141 (gtk_micro_version != $gtk_config_micro_version))
12142 {
12143 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12144 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12145 gtk_major_version, gtk_minor_version, gtk_micro_version);
12146 printf ("*** was found! If gtk-config was correct, then it is best\n");
12147 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12148 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12149 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12150 printf("*** required on your system.\n");
12151 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12152 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12153 printf("*** before re-running configure\n");
12154 }
12155#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12156 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12157 (gtk_minor_version != GTK_MINOR_VERSION) ||
12158 (gtk_micro_version != GTK_MICRO_VERSION))
12159 {
12160 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12161 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12162 printf("*** library (version %d.%d.%d)\n",
12163 gtk_major_version, gtk_minor_version, gtk_micro_version);
12164 }
12165#endif /* defined (GTK_MAJOR_VERSION) ... */
12166 else
12167 {
12168 if ((gtk_major_version > major) ||
12169 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12170 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12171 {
12172 return 0;
12173 }
12174 else
12175 {
12176 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12177 gtk_major_version, gtk_minor_version, gtk_micro_version);
12178 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12179 major, minor, micro);
12180 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12181 printf("***\n");
12182 printf("*** If you have already installed a sufficiently new version, this error\n");
12183 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12184 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12185 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12186 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12187 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12188 printf("*** so that the correct libraries are found at run-time))\n");
12189 }
12190 }
12191 return 1;
12192}
12193
12194EOF
17234b26 12195if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12196then
12197 :
12198else
12199 echo "configure: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 rm -fr conftest*
12202 no_gtk=yes
12203fi
12204rm -fr conftest*
12205fi
12206
12207 CFLAGS="$ac_save_CFLAGS"
12208 LIBS="$ac_save_LIBS"
12209 fi
12210 fi
12211 if test "x$no_gtk" = x ; then
12212 echo "$ac_t""yes" 1>&6
12213 wx_cv_lib_gtk=1.2.7
12214 else
12215 echo "$ac_t""no" 1>&6
12216 if test "$GTK_CONFIG" = "no" ; then
12217 echo "*** The gtk-config script installed by GTK could not be found"
12218 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12219 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12220 echo "*** full path to gtk-config."
12221 else
12222 if test -f conf.gtktest ; then
12223 :
12224 else
12225 echo "*** Could not run GTK test program, checking why..."
12226 CFLAGS="$CFLAGS $GTK_CFLAGS"
12227 LIBS="$LIBS $GTK_LIBS"
12228 cat > conftest.$ac_ext <<EOF
17234b26 12229#line 12230 "configure"
21d1c967
GD
12230#include "confdefs.h"
12231
12232#include <gtk/gtk.h>
12233#include <stdio.h>
12234
12235int main() {
12236 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12237; return 0; }
12238EOF
17234b26 12239if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12240 rm -rf conftest*
21d1c967
GD
12241 echo "*** The test program compiled, but did not run. This usually means"
12242 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12243 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12244 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12245 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12246 echo "*** is required on your system"
12247 echo "***"
12248 echo "*** If you have an old version installed, it is best to remove it, although"
12249 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12250 echo "***"
12251 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12252 echo "*** came with the system with the command"
12253 echo "***"
12254 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12255else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -rf conftest*
21d1c967
GD
12259 echo "*** The test program failed to compile or link. See the file config.log for the"
12260 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12261 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12262 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12263fi
12264rm -f conftest*
21d1c967
GD
12265 CFLAGS="$ac_save_CFLAGS"
12266 LIBS="$ac_save_LIBS"
12267 fi
12268 fi
12269 GTK_CFLAGS=""
12270 GTK_LIBS=""
12271 :
12272 fi
12273
12274
12275 rm -f conf.gtktest
12276
12277 fi
12278
12279 if test -z "$wx_cv_lib_gtk"; then
12280 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12281if test "${with_gtk_prefix+set}" = set; then
12282 withval="$with_gtk_prefix"
12283 gtk_config_prefix="$withval"
12284else
12285 gtk_config_prefix=""
90dd450c 12286fi
f79bd02d 12287
21d1c967
GD
12288# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12289if test "${with_gtk_exec_prefix+set}" = set; then
12290 withval="$with_gtk_exec_prefix"
12291 gtk_config_exec_prefix="$withval"
12292else
12293 gtk_config_exec_prefix=""
12294fi
12295
12296# Check whether --enable-gtktest or --disable-gtktest was given.
12297if test "${enable_gtktest+set}" = set; then
12298 enableval="$enable_gtktest"
90dd450c
VZ
12299 :
12300else
21d1c967 12301 enable_gtktest=yes
90dd450c 12302fi
f79bd02d 12303
21d1c967
GD
12304
12305 for module in . $GTK_MODULES
12306 do
12307 case "$module" in
12308 gthread)
12309 gtk_config_args="$gtk_config_args gthread"
12310 ;;
12311 esac
12312 done
12313
12314 if test x$gtk_config_exec_prefix != x ; then
12315 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12316 if test x${GTK_CONFIG+set} != xset ; then
12317 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12318 fi
12319 fi
12320 if test x$gtk_config_prefix != x ; then
12321 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12322 if test x${GTK_CONFIG+set} != xset ; then
12323 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12324 fi
12325 fi
12326
12327 # Extract the first word of "gtk-config", so it can be a program name with args.
12328set dummy gtk-config; ac_word=$2
12329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 12330echo "configure:12331: checking for $ac_word" >&5
21d1c967 12331if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333else
21d1c967
GD
12334 case "$GTK_CONFIG" in
12335 /*)
12336 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12337 ;;
12338 ?:/*)
12339 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12340 ;;
12341 *)
12342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12343 ac_dummy="$PATH"
12344 for ac_dir in $ac_dummy; do
12345 test -z "$ac_dir" && ac_dir=.
12346 if test -f $ac_dir/$ac_word; then
12347 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12348 break
12349 fi
12350 done
12351 IFS="$ac_save_ifs"
12352 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12353 ;;
12354esac
12355fi
12356GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12357if test -n "$GTK_CONFIG"; then
12358 echo "$ac_t""$GTK_CONFIG" 1>&6
12359else
12360 echo "$ac_t""no" 1>&6
12361fi
12362
12363 min_gtk_version=1.2.3
12364 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
17234b26 12365echo "configure:12366: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12366 no_gtk=""
12367 if test "$GTK_CONFIG" = "no" ; then
12368 no_gtk=yes
12369 else
12370 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12371 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12372 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12374 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12376 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12378 if test "x$enable_gtktest" = "xyes" ; then
12379 ac_save_CFLAGS="$CFLAGS"
12380 ac_save_LIBS="$LIBS"
12381 CFLAGS="$CFLAGS $GTK_CFLAGS"
12382 LIBS="$GTK_LIBS $LIBS"
12383 rm -f conf.gtktest
12384 if test "$cross_compiling" = yes; then
12385 echo $ac_n "cross compiling; assumed OK... $ac_c"
12386else
12387 cat > conftest.$ac_ext <<EOF
17234b26 12388#line 12389 "configure"
f79bd02d 12389#include "confdefs.h"
21d1c967
GD
12390
12391#include <gtk/gtk.h>
12392#include <stdio.h>
12393#include <stdlib.h>
12394
12395int
12396main ()
12397{
12398 int major, minor, micro;
12399 char *tmp_version;
12400
12401 system ("touch conf.gtktest");
12402
12403 /* HP/UX 9 (%@#!) writes to sscanf strings */
12404 tmp_version = g_strdup("$min_gtk_version");
12405 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12406 printf("%s, bad version string\n", "$min_gtk_version");
12407 exit(1);
12408 }
12409
12410 if ((gtk_major_version != $gtk_config_major_version) ||
12411 (gtk_minor_version != $gtk_config_minor_version) ||
12412 (gtk_micro_version != $gtk_config_micro_version))
12413 {
12414 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12415 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12416 gtk_major_version, gtk_minor_version, gtk_micro_version);
12417 printf ("*** was found! If gtk-config was correct, then it is best\n");
12418 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12419 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12420 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12421 printf("*** required on your system.\n");
12422 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12423 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12424 printf("*** before re-running configure\n");
12425 }
12426#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12427 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12428 (gtk_minor_version != GTK_MINOR_VERSION) ||
12429 (gtk_micro_version != GTK_MICRO_VERSION))
12430 {
12431 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12432 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12433 printf("*** library (version %d.%d.%d)\n",
12434 gtk_major_version, gtk_minor_version, gtk_micro_version);
12435 }
12436#endif /* defined (GTK_MAJOR_VERSION) ... */
12437 else
12438 {
12439 if ((gtk_major_version > major) ||
12440 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12441 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12442 {
12443 return 0;
12444 }
12445 else
12446 {
12447 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12448 gtk_major_version, gtk_minor_version, gtk_micro_version);
12449 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12450 major, minor, micro);
12451 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12452 printf("***\n");
12453 printf("*** If you have already installed a sufficiently new version, this error\n");
12454 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12455 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12456 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12457 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12458 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12459 printf("*** so that the correct libraries are found at run-time))\n");
12460 }
12461 }
12462 return 1;
12463}
12464
12465EOF
17234b26 12466if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12467then
12468 :
12469else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -fr conftest*
12473 no_gtk=yes
12474fi
12475rm -fr conftest*
12476fi
12477
12478 CFLAGS="$ac_save_CFLAGS"
12479 LIBS="$ac_save_LIBS"
12480 fi
12481 fi
12482 if test "x$no_gtk" = x ; then
12483 echo "$ac_t""yes" 1>&6
12484 wx_cv_lib_gtk=1.2.3
12485 else
12486 echo "$ac_t""no" 1>&6
12487 if test "$GTK_CONFIG" = "no" ; then
12488 echo "*** The gtk-config script installed by GTK could not be found"
12489 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12490 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12491 echo "*** full path to gtk-config."
12492 else
12493 if test -f conf.gtktest ; then
12494 :
12495 else
12496 echo "*** Could not run GTK test program, checking why..."
12497 CFLAGS="$CFLAGS $GTK_CFLAGS"
12498 LIBS="$LIBS $GTK_LIBS"
12499 cat > conftest.$ac_ext <<EOF
17234b26 12500#line 12501 "configure"
21d1c967
GD
12501#include "confdefs.h"
12502
12503#include <gtk/gtk.h>
12504#include <stdio.h>
f79bd02d 12505
f79bd02d 12506int main() {
21d1c967 12507 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12508; return 0; }
12509EOF
17234b26 12510if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12511 rm -rf conftest*
21d1c967
GD
12512 echo "*** The test program compiled, but did not run. This usually means"
12513 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12514 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12515 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12516 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12517 echo "*** is required on your system"
12518 echo "***"
12519 echo "*** If you have an old version installed, it is best to remove it, although"
12520 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12521 echo "***"
12522 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12523 echo "*** came with the system with the command"
12524 echo "***"
12525 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12526else
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 rm -rf conftest*
21d1c967
GD
12530 echo "*** The test program failed to compile or link. See the file config.log for the"
12531 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12532 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12533 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12534fi
12535rm -f conftest*
21d1c967
GD
12536 CFLAGS="$ac_save_CFLAGS"
12537 LIBS="$ac_save_LIBS"
12538 fi
12539 fi
12540 GTK_CFLAGS=""
12541 GTK_LIBS=""
12542 :
12543 fi
12544
12545
12546 rm -f conf.gtktest
f79bd02d 12547
21d1c967
GD
12548 fi
12549
12550 if test -z "$wx_cv_lib_gtk"; then
12551 wx_cv_lib_gtk=none
12552 else
12553 wx_cv_cflags_gtk=$GTK_CFLAGS
12554 wx_cv_libs_gtk=$GTK_LIBS
12555 fi
12556
12557
90dd450c 12558fi
b4085ce6 12559
e07802fc 12560
21d1c967
GD
12561 if test "$gtk_version_cached" = 1; then
12562 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12563 fi
12564
12565 case "$wx_cv_lib_gtk" in
12566 2.0) WXGTK20=1
12567 ;;
12568 1.2.7) WXGTK127=1
12569 WXGTK12=1
12570 ;;
12571 1.2.3) WXGTK12=1
12572 ;;
12573 *) { echo "configure: error:
12574Please check that gtk-config is in path, the directory
12575where GTK+ libraries are installed (returned by
12576'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12577equivalent variable and GTK+ is version 1.2.3 or above.
12578 " 1>&2; exit 1; }
12579 ;;
12580 esac
12581
12582 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12583 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12584
12585 AFMINSTALL=afminstall
12586 TOOLKIT=GTK
12587 GUIDIST=GTK_DIST
12588
12589 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
17234b26 12590echo "configure:12591: checking for gdk_im_open in -lgdk" >&5
21d1c967 12591ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12594else
12595 ac_save_LIBS="$LIBS"
21d1c967 12596LIBS="-lgdk $LIBS"
90dd450c 12597cat > conftest.$ac_ext <<EOF
17234b26 12598#line 12599 "configure"
90dd450c
VZ
12599#include "confdefs.h"
12600/* Override any gcc2 internal prototype to avoid an error. */
12601/* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
21d1c967 12603char gdk_im_open();
9b695262 12604
90dd450c 12605int main() {
21d1c967 12606gdk_im_open()
90dd450c
VZ
12607; return 0; }
12608EOF
17234b26 12609if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12610 rm -rf conftest*
12611 eval "ac_cv_lib_$ac_lib_var=yes"
12612else
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12615 rm -rf conftest*
12616 eval "ac_cv_lib_$ac_lib_var=no"
12617fi
12618rm -f conftest*
12619LIBS="$ac_save_LIBS"
9b695262 12620
90dd450c
VZ
12621fi
12622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12623 echo "$ac_t""yes" 1>&6
21d1c967
GD
12624 cat >> confdefs.h <<\EOF
12625#define HAVE_XIM 1
12626EOF
12627
90dd450c
VZ
12628else
12629 echo "$ac_t""no" 1>&6
12630fi
1e6feb95 12631
21d1c967 12632 fi
1e6feb95 12633
21d1c967
GD
12634 if test "$wxUSE_MGL" = 1; then
12635 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
17234b26 12636echo "configure:12637: checking for SciTech MGL library" >&5
21d1c967
GD
12637 if test "x$MGL_ROOT" = x ; then
12638 echo "$ac_t""not found" 1>&6
12639 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12640 else
12641 echo "$ac_t""$MGL_ROOT" 1>&6
12642 fi
12643
12644 case "${host}" in
12645 *-*-linux* )
12646 mgl_os=linux/gcc/glibc
12647 ;;
12648 *-pc-msdosdjgpp )
12649 mgl_os=dos32/dj2
12650 ;;
12651 *)
12652 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12653 esac
1e6feb95 12654
21d1c967 12655 mgl_lib_type=""
3fcdd07b 12656
21d1c967
GD
12657 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12658 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12659 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12660 mgl_lib_type=debug
12661 fi
12662 fi
12663 if test "x$mgl_lib_type" = x ; then
12664 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12665 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12666 mgl_lib_type=release
12667 else
12668 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12669 fi
90dd450c 12670 fi
2224580a 12671
1d1b75ac
VZ
12672 wxUSE_UNIVERSAL="yes"
12673
21d1c967
GD
12674 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12675 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12676
90dd450c 12677 AFMINSTALL=afminstall
21d1c967
GD
12678 TOOLKIT=MGL
12679 GUIDIST=MGL_DIST
12680 fi
dad6c0ea 12681
21d1c967
GD
12682 if test "$wxUSE_MICROWIN" = 1; then
12683 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
17234b26 12684echo "configure:12685: checking for MicroWindows" >&5
21d1c967
GD
12685 if test "x$MICROWINDOWS" = x ; then
12686 echo "$ac_t""not found" 1>&6
12687 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12688 else
12689 echo "$ac_t""$MICROWINDOWS" 1>&6
12690 fi
f6bcfd97 12691
21d1c967
GD
12692 if test -f $MICROWINDOWS/lib/libmwin.a; then
12693 echo "$ac_t""MicroWindows' libraries found." 1>&6
12694 else
12695 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12696 fi
0b2effe9 12697
21d1c967
GD
12698 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12699 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12700
1d1b75ac
VZ
12701 wxUSE_UNIVERSAL="yes"
12702
21d1c967
GD
12703 AFMINSTALL=afminstall
12704 TOOLKIT=MICROWIN
12705 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12706
12707 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12708 fi
f6bcfd97 12709
21d1c967
GD
12710 if test "$wxUSE_X11" = 1; then
12711 # If we find X, set shell vars x_includes and x_libraries to the
12712# paths, otherwise set no_x=yes.
12713# Uses ac_ vars as temps to allow command line to override cache and checks.
12714# --without-x overrides everything else, but does not touch the cache.
12715echo $ac_n "checking for X""... $ac_c" 1>&6
17234b26 12716echo "configure:12717: checking for X" >&5
d8356fa3 12717
21d1c967
GD
12718# Check whether --with-x or --without-x was given.
12719if test "${with_x+set}" = set; then
12720 withval="$with_x"
12721 :
12722fi
2224580a 12723
21d1c967
GD
12724# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12725if test "x$with_x" = xno; then
12726 # The user explicitly disabled X.
12727 have_x=disabled
12728else
12729 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12730 # Both variables are already set.
12731 have_x=yes
12732 else
12733if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12735else
12736 # One or both of the vars are not set, and there is no cached value.
12737ac_x_includes=NO ac_x_libraries=NO
12738rm -fr conftestdir
12739if mkdir conftestdir; then
12740 cd conftestdir
12741 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12742 cat > Imakefile <<'EOF'
12743acfindx:
12744 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12745EOF
12746 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12748 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12749 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12750 for ac_extension in a so sl; do
12751 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12752 test -f $ac_im_libdir/libX11.$ac_extension; then
12753 ac_im_usrlibdir=$ac_im_libdir; break
12754 fi
12755 done
12756 # Screen out bogus values from the imake configuration. They are
12757 # bogus both because they are the default anyway, and because
12758 # using them would break gcc on systems where it needs fixed includes.
12759 case "$ac_im_incroot" in
12760 /usr/include) ;;
12761 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12762 esac
12763 case "$ac_im_usrlibdir" in
12764 /usr/lib | /lib) ;;
12765 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12766 esac
12767 fi
12768 cd ..
12769 rm -fr conftestdir
12770fi
10f2d63a 12771
21d1c967
GD
12772if test "$ac_x_includes" = NO; then
12773 # Guess where to find include files, by looking for this one X11 .h file.
12774 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12775
21d1c967
GD
12776 # First, try using that file with no special directory specified.
12777cat > conftest.$ac_ext <<EOF
17234b26 12778#line 12779 "configure"
21d1c967
GD
12779#include "confdefs.h"
12780#include <$x_direct_test_include>
90dd450c 12781EOF
21d1c967 12782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 12783{ (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
12784ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785if test -z "$ac_err"; then
90dd450c 12786 rm -rf conftest*
21d1c967
GD
12787 # We can compile using X headers with no special include directory.
12788ac_x_includes=
90dd450c 12789else
21d1c967 12790 echo "$ac_err" >&5
90dd450c
VZ
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12793 rm -rf conftest*
21d1c967
GD
12794 # Look for the header file in a standard set of common directories.
12795# Check X11 before X11Rn because it is often a symlink to the current release.
12796 for ac_dir in \
12797 /usr/X11/include \
12798 /usr/X11R6/include \
12799 /usr/X11R5/include \
12800 /usr/X11R4/include \
12801 \
12802 /usr/include/X11 \
12803 /usr/include/X11R6 \
12804 /usr/include/X11R5 \
12805 /usr/include/X11R4 \
12806 \
12807 /usr/local/X11/include \
12808 /usr/local/X11R6/include \
12809 /usr/local/X11R5/include \
12810 /usr/local/X11R4/include \
12811 \
12812 /usr/local/include/X11 \
12813 /usr/local/include/X11R6 \
12814 /usr/local/include/X11R5 \
12815 /usr/local/include/X11R4 \
12816 \
12817 /usr/X386/include \
12818 /usr/x386/include \
12819 /usr/XFree86/include/X11 \
12820 \
12821 /usr/include \
12822 /usr/local/include \
12823 /usr/unsupported/include \
12824 /usr/athena/include \
12825 /usr/local/x11r5/include \
12826 /usr/lpp/Xamples/include \
12827 \
12828 /usr/openwin/include \
12829 /usr/openwin/share/include \
12830 ; \
12831 do
12832 if test -r "$ac_dir/$x_direct_test_include"; then
12833 ac_x_includes=$ac_dir
12834 break
12835 fi
12836 done
3a922bb4 12837fi
90dd450c 12838rm -f conftest*
21d1c967 12839fi # $ac_x_includes = NO
10f2d63a 12840
21d1c967
GD
12841if test "$ac_x_libraries" = NO; then
12842 # Check for the libraries.
be505a65 12843
21d1c967
GD
12844 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12845 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12846
21d1c967
GD
12847 # See if we find them without any special options.
12848 # Don't add to $LIBS permanently.
12849 ac_save_LIBS="$LIBS"
12850 LIBS="-l$x_direct_test_library $LIBS"
12851cat > conftest.$ac_ext <<EOF
17234b26 12852#line 12853 "configure"
3a922bb4 12853#include "confdefs.h"
21d1c967
GD
12854
12855int main() {
12856${x_direct_test_function}()
12857; return 0; }
3a922bb4 12858EOF
17234b26 12859if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12860 rm -rf conftest*
21d1c967
GD
12861 LIBS="$ac_save_LIBS"
12862# We can link X programs with no special library path.
12863ac_x_libraries=
3a922bb4 12864else
3a922bb4
RL
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 rm -rf conftest*
21d1c967
GD
12868 LIBS="$ac_save_LIBS"
12869# First see if replacing the include by lib works.
12870# Check X11 before X11Rn because it is often a symlink to the current release.
12871for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12872 /usr/X11/lib \
12873 /usr/X11R6/lib \
12874 /usr/X11R5/lib \
12875 /usr/X11R4/lib \
12876 \
12877 /usr/lib/X11 \
12878 /usr/lib/X11R6 \
12879 /usr/lib/X11R5 \
12880 /usr/lib/X11R4 \
12881 \
12882 /usr/local/X11/lib \
12883 /usr/local/X11R6/lib \
12884 /usr/local/X11R5/lib \
12885 /usr/local/X11R4/lib \
12886 \
12887 /usr/local/lib/X11 \
12888 /usr/local/lib/X11R6 \
12889 /usr/local/lib/X11R5 \
12890 /usr/local/lib/X11R4 \
12891 \
12892 /usr/X386/lib \
12893 /usr/x386/lib \
12894 /usr/XFree86/lib/X11 \
12895 \
12896 /usr/lib \
12897 /usr/local/lib \
12898 /usr/unsupported/lib \
12899 /usr/athena/lib \
12900 /usr/local/x11r5/lib \
12901 /usr/lpp/Xamples/lib \
12902 /lib/usr/lib/X11 \
12903 \
12904 /usr/openwin/lib \
12905 /usr/openwin/share/lib \
12906 ; \
12907do
12908 for ac_extension in a so sl; do
12909 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12910 ac_x_libraries=$ac_dir
12911 break 2
12912 fi
12913 done
12914done
3a922bb4
RL
12915fi
12916rm -f conftest*
21d1c967 12917fi # $ac_x_libraries = NO
90dd450c 12918
21d1c967
GD
12919if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12920 # Didn't find X anywhere. Cache the known absence of X.
12921 ac_cv_have_x="have_x=no"
12922else
12923 # Record where we found X for the cache.
12924 ac_cv_have_x="have_x=yes \
12925 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12926fi
21d1c967
GD
12927fi
12928 fi
12929 eval "$ac_cv_have_x"
12930fi # $with_x != no
90dd450c 12931
21d1c967
GD
12932if test "$have_x" != yes; then
12933 echo "$ac_t""$have_x" 1>&6
12934 no_x=yes
12935else
12936 # If each of the values was on the command line, it overrides each guess.
12937 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12938 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12939 # Update the cache value to reflect the command line values.
12940 ac_cv_have_x="have_x=yes \
12941 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12942 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12943fi
90dd450c 12944
21d1c967 12945if test "$no_x" = yes; then
90dd450c
VZ
12946 # Not all programs may use this symbol, but it does not hurt to define it.
12947 cat >> confdefs.h <<\EOF
12948#define X_DISPLAY_MISSING 1
12949EOF
12950
12951 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12952else
12953 if test -n "$x_includes"; then
12954 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12955 fi
3a922bb4 12956
90dd450c
VZ
12957 # It would also be nice to do this for all -L options, not just this one.
12958 if test -n "$x_libraries"; then
12959 X_LIBS="$X_LIBS -L$x_libraries"
12960 # For Solaris; some versions of Sun CC require a space after -R and
12961 # others require no space. Words are not sufficient . . . .
12962 case "`(uname -sr) 2>/dev/null`" in
12963 "SunOS 5"*)
12964 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
17234b26 12965echo "configure:12966: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12966 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12967 cat > conftest.$ac_ext <<EOF
17234b26 12968#line 12969 "configure"
90dd450c
VZ
12969#include "confdefs.h"
12970
12971int main() {
12972
12973; return 0; }
12974EOF
17234b26 12975if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12976 rm -rf conftest*
12977 ac_R_nospace=yes
3a922bb4 12978else
90dd450c
VZ
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 rm -rf conftest*
12982 ac_R_nospace=no
3a922bb4 12983fi
90dd450c
VZ
12984rm -f conftest*
12985 if test $ac_R_nospace = yes; then
12986 echo "$ac_t""no" 1>&6
12987 X_LIBS="$X_LIBS -R$x_libraries"
12988 else
12989 LIBS="$ac_xsave_LIBS -R $x_libraries"
12990 cat > conftest.$ac_ext <<EOF
17234b26 12991#line 12992 "configure"
90dd450c 12992#include "confdefs.h"
3a922bb4 12993
90dd450c 12994int main() {
6f754473 12995
90dd450c
VZ
12996; return 0; }
12997EOF
17234b26 12998if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12999 rm -rf conftest*
13000 ac_R_space=yes
13001else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 ac_R_space=no
13006fi
13007rm -f conftest*
13008 if test $ac_R_space = yes; then
13009 echo "$ac_t""yes" 1>&6
13010 X_LIBS="$X_LIBS -R $x_libraries"
13011 else
13012 echo "$ac_t""neither works" 1>&6
13013 fi
13014 fi
13015 LIBS="$ac_xsave_LIBS"
13016 esac
13017 fi
13018
13019 # Check for system-dependent libraries X programs must link with.
13020 # Do this before checking for the system-independent R6 libraries
13021 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13022
90dd450c
VZ
13023 if test "$ISC" = yes; then
13024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13025 else
13026 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13027 # libraries were built with DECnet support. And karl@cs.umb.edu says
13028 # the Alpha needs dnet_stub (dnet does not exist).
13029 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
17234b26 13030echo "configure:13031: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
13031ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13032if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13034else
13035 ac_save_LIBS="$LIBS"
13036LIBS="-ldnet $LIBS"
13037cat > conftest.$ac_ext <<EOF
17234b26 13038#line 13039 "configure"
90dd450c
VZ
13039#include "confdefs.h"
13040/* Override any gcc2 internal prototype to avoid an error. */
13041/* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043char dnet_ntoa();
6f754473 13044
90dd450c
VZ
13045int main() {
13046dnet_ntoa()
13047; return 0; }
6f754473 13048EOF
17234b26 13049if { (eval echo configure:13050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13050 rm -rf conftest*
13051 eval "ac_cv_lib_$ac_lib_var=yes"
13052else
13053 echo "configure: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 rm -rf conftest*
13056 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13057fi
90dd450c
VZ
13058rm -f conftest*
13059LIBS="$ac_save_LIBS"
3a922bb4 13060
3a922bb4 13061fi
90dd450c
VZ
13062if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13063 echo "$ac_t""yes" 1>&6
13064 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13065else
13066 echo "$ac_t""no" 1>&6
3a922bb4
RL
13067fi
13068
90dd450c
VZ
13069 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13070 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
17234b26 13071echo "configure:13072: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
13072ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13073if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13075else
13076 ac_save_LIBS="$LIBS"
13077LIBS="-ldnet_stub $LIBS"
13078cat > conftest.$ac_ext <<EOF
17234b26 13079#line 13080 "configure"
90dd450c
VZ
13080#include "confdefs.h"
13081/* Override any gcc2 internal prototype to avoid an error. */
13082/* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084char dnet_ntoa();
f676c7ff 13085
90dd450c
VZ
13086int main() {
13087dnet_ntoa()
13088; return 0; }
13089EOF
17234b26 13090if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13091 rm -rf conftest*
13092 eval "ac_cv_lib_$ac_lib_var=yes"
13093else
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13096 rm -rf conftest*
13097 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13098fi
90dd450c
VZ
13099rm -f conftest*
13100LIBS="$ac_save_LIBS"
3a922bb4 13101
90dd450c
VZ
13102fi
13103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13106else
13107 echo "$ac_t""no" 1>&6
3a922bb4
RL
13108fi
13109
90dd450c 13110 fi
978f1259 13111
90dd450c
VZ
13112 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13113 # to get the SysV transport functions.
13114 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13115 # needs -lnsl.
13116 # The nsl library prevents programs from opening the X display
13117 # on Irix 5.2, according to dickey@clark.net.
13118 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
17234b26 13119echo "configure:13120: checking for gethostbyname" >&5
90dd450c
VZ
13120if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13122else
13123 cat > conftest.$ac_ext <<EOF
17234b26 13124#line 13125 "configure"
90dd450c
VZ
13125#include "confdefs.h"
13126/* System header to define __stub macros and hopefully few prototypes,
13127 which can conflict with char gethostbyname(); below. */
13128#include <assert.h>
13129/* Override any gcc2 internal prototype to avoid an error. */
13130/* We use char because int might match the return type of a gcc2
13131 builtin and then its argument prototype would still apply. */
13132char gethostbyname();
978f1259 13133
90dd450c 13134int main() {
978f1259 13135
90dd450c
VZ
13136/* The GNU C library defines this for functions which it implements
13137 to always fail with ENOSYS. Some functions are actually named
13138 something starting with __ and the normal name is an alias. */
13139#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13140choke me
13141#else
13142gethostbyname();
13143#endif
978f1259 13144
90dd450c
VZ
13145; return 0; }
13146EOF
17234b26 13147if { (eval echo configure:13148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13148 rm -rf conftest*
13149 eval "ac_cv_func_gethostbyname=yes"
13150else
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 rm -rf conftest*
13154 eval "ac_cv_func_gethostbyname=no"
978f1259 13155fi
90dd450c 13156rm -f conftest*
4222829b
VS
13157fi
13158
90dd450c
VZ
13159if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13160 echo "$ac_t""yes" 1>&6
13161 :
13162else
13163 echo "$ac_t""no" 1>&6
13164fi
698dcdb6 13165
90dd450c
VZ
13166 if test $ac_cv_func_gethostbyname = no; then
13167 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
17234b26 13168echo "configure:13169: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13169ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13171 echo $ac_n "(cached) $ac_c" 1>&6
13172else
13173 ac_save_LIBS="$LIBS"
13174LIBS="-lnsl $LIBS"
13175cat > conftest.$ac_ext <<EOF
17234b26 13176#line 13177 "configure"
90dd450c
VZ
13177#include "confdefs.h"
13178/* Override any gcc2 internal prototype to avoid an error. */
13179/* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181char gethostbyname();
f6bcfd97 13182
90dd450c
VZ
13183int main() {
13184gethostbyname()
13185; return 0; }
13186EOF
17234b26 13187if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13188 rm -rf conftest*
13189 eval "ac_cv_lib_$ac_lib_var=yes"
13190else
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 eval "ac_cv_lib_$ac_lib_var=no"
13195fi
13196rm -f conftest*
13197LIBS="$ac_save_LIBS"
55e80573 13198
90dd450c
VZ
13199fi
13200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13201 echo "$ac_t""yes" 1>&6
13202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13203else
13204 echo "$ac_t""no" 1>&6
13205fi
b12915c1 13206
90dd450c
VZ
13207 fi
13208
13209 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13210 # socket/setsockopt and other routines are undefined under SCO ODT
13211 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13212 # on later versions), says simon@lia.di.epfl.ch: it contains
13213 # gethostby* variants that don't use the nameserver (or something).
13214 # -lsocket must be given before -lnsl if both are needed.
13215 # We assume that if connect needs -lnsl, so does gethostbyname.
13216 echo $ac_n "checking for connect""... $ac_c" 1>&6
17234b26 13217echo "configure:13218: checking for connect" >&5
90dd450c 13218if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13219 echo $ac_n "(cached) $ac_c" 1>&6
13220else
90dd450c 13221 cat > conftest.$ac_ext <<EOF
17234b26 13222#line 13223 "configure"
55e80573 13223#include "confdefs.h"
90dd450c
VZ
13224/* System header to define __stub macros and hopefully few prototypes,
13225 which can conflict with char connect(); below. */
13226#include <assert.h>
13227/* Override any gcc2 internal prototype to avoid an error. */
13228/* We use char because int might match the return type of a gcc2
13229 builtin and then its argument prototype would still apply. */
13230char connect();
55e80573
VZ
13231
13232int main() {
13233
90dd450c
VZ
13234/* The GNU C library defines this for functions which it implements
13235 to always fail with ENOSYS. Some functions are actually named
13236 something starting with __ and the normal name is an alias. */
13237#if defined (__stub_connect) || defined (__stub___connect)
13238choke me
13239#else
13240connect();
13241#endif
13242
55e80573
VZ
13243; return 0; }
13244EOF
17234b26 13245if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13246 rm -rf conftest*
90dd450c 13247 eval "ac_cv_func_connect=yes"
55e80573
VZ
13248else
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
90dd450c 13252 eval "ac_cv_func_connect=no"
55e80573
VZ
13253fi
13254rm -f conftest*
55e80573
VZ
13255fi
13256
90dd450c
VZ
13257if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 :
13260else
13261 echo "$ac_t""no" 1>&6
13262fi
55e80573 13263
90dd450c
VZ
13264 if test $ac_cv_func_connect = no; then
13265 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
17234b26 13266echo "configure:13267: checking for connect in -lsocket" >&5
90dd450c
VZ
13267ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270else
13271 ac_save_LIBS="$LIBS"
13272LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13273cat > conftest.$ac_ext <<EOF
17234b26 13274#line 13275 "configure"
90dd450c
VZ
13275#include "confdefs.h"
13276/* Override any gcc2 internal prototype to avoid an error. */
13277/* We use char because int might match the return type of a gcc2
13278 builtin and then its argument prototype would still apply. */
13279char connect();
55e80573 13280
90dd450c
VZ
13281int main() {
13282connect()
13283; return 0; }
13284EOF
17234b26 13285if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13286 rm -rf conftest*
13287 eval "ac_cv_lib_$ac_lib_var=yes"
13288else
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 rm -rf conftest*
13292 eval "ac_cv_lib_$ac_lib_var=no"
13293fi
13294rm -f conftest*
13295LIBS="$ac_save_LIBS"
77e13408 13296
90dd450c
VZ
13297fi
13298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13301else
13302 echo "$ac_t""no" 1>&6
13303fi
77e13408 13304
90dd450c 13305 fi
25d0687a 13306
90dd450c
VZ
13307 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13308 echo $ac_n "checking for remove""... $ac_c" 1>&6
17234b26 13309echo "configure:13310: checking for remove" >&5
90dd450c
VZ
13310if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
13312else
13313 cat > conftest.$ac_ext <<EOF
17234b26 13314#line 13315 "configure"
90dd450c
VZ
13315#include "confdefs.h"
13316/* System header to define __stub macros and hopefully few prototypes,
13317 which can conflict with char remove(); below. */
13318#include <assert.h>
13319/* Override any gcc2 internal prototype to avoid an error. */
13320/* We use char because int might match the return type of a gcc2
13321 builtin and then its argument prototype would still apply. */
13322char remove();
7b7a7637 13323
90dd450c 13324int main() {
55e80573 13325
90dd450c
VZ
13326/* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329#if defined (__stub_remove) || defined (__stub___remove)
13330choke me
13331#else
13332remove();
13333#endif
55e80573 13334
90dd450c
VZ
13335; return 0; }
13336EOF
17234b26 13337if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13338 rm -rf conftest*
13339 eval "ac_cv_func_remove=yes"
13340else
13341 echo "configure: failed program was:" >&5
13342 cat conftest.$ac_ext >&5
13343 rm -rf conftest*
13344 eval "ac_cv_func_remove=no"
13345fi
13346rm -f conftest*
13347fi
55e80573 13348
90dd450c
VZ
13349if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13350 echo "$ac_t""yes" 1>&6
13351 :
13352else
13353 echo "$ac_t""no" 1>&6
13354fi
10f2d63a 13355
90dd450c
VZ
13356 if test $ac_cv_func_remove = no; then
13357 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
17234b26 13358echo "configure:13359: checking for remove in -lposix" >&5
90dd450c
VZ
13359ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13360if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362else
13363 ac_save_LIBS="$LIBS"
13364LIBS="-lposix $LIBS"
13365cat > conftest.$ac_ext <<EOF
17234b26 13366#line 13367 "configure"
90dd450c
VZ
13367#include "confdefs.h"
13368/* Override any gcc2 internal prototype to avoid an error. */
13369/* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371char remove();
55e80573 13372
90dd450c
VZ
13373int main() {
13374remove()
13375; return 0; }
13376EOF
17234b26 13377if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13378 rm -rf conftest*
13379 eval "ac_cv_lib_$ac_lib_var=yes"
13380else
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 rm -rf conftest*
13384 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13385fi
90dd450c
VZ
13386rm -f conftest*
13387LIBS="$ac_save_LIBS"
f6bcfd97 13388
90dd450c
VZ
13389fi
13390if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13391 echo "$ac_t""yes" 1>&6
13392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13393else
13394 echo "$ac_t""no" 1>&6
13395fi
f6bcfd97 13396
6fa882bd
RR
13397 fi
13398
90dd450c
VZ
13399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13400 echo $ac_n "checking for shmat""... $ac_c" 1>&6
17234b26 13401echo "configure:13402: checking for shmat" >&5
90dd450c
VZ
13402if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404else
13405 cat > conftest.$ac_ext <<EOF
17234b26 13406#line 13407 "configure"
90dd450c
VZ
13407#include "confdefs.h"
13408/* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char shmat(); below. */
13410#include <assert.h>
13411/* Override any gcc2 internal prototype to avoid an error. */
13412/* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414char shmat();
698dcdb6 13415
90dd450c 13416int main() {
3a922bb4 13417
90dd450c
VZ
13418/* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421#if defined (__stub_shmat) || defined (__stub___shmat)
13422choke me
13423#else
13424shmat();
13425#endif
10f2d63a 13426
90dd450c
VZ
13427; return 0; }
13428EOF
17234b26 13429if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13430 rm -rf conftest*
13431 eval "ac_cv_func_shmat=yes"
d08b457b 13432else
90dd450c
VZ
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 rm -rf conftest*
13436 eval "ac_cv_func_shmat=no"
d08b457b 13437fi
90dd450c 13438rm -f conftest*
d08b457b 13439fi
90dd450c
VZ
13440
13441if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 :
d08b457b
GD
13444else
13445 echo "$ac_t""no" 1>&6
13446fi
13447
90dd450c
VZ
13448 if test $ac_cv_func_shmat = no; then
13449 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
17234b26 13450echo "configure:13451: checking for shmat in -lipc" >&5
90dd450c
VZ
13451ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13453 echo $ac_n "(cached) $ac_c" 1>&6
13454else
90dd450c
VZ
13455 ac_save_LIBS="$LIBS"
13456LIBS="-lipc $LIBS"
13457cat > conftest.$ac_ext <<EOF
17234b26 13458#line 13459 "configure"
90dd450c
VZ
13459#include "confdefs.h"
13460/* Override any gcc2 internal prototype to avoid an error. */
13461/* We use char because int might match the return type of a gcc2
13462 builtin and then its argument prototype would still apply. */
13463char shmat();
13464
13465int main() {
13466shmat()
13467; return 0; }
13468EOF
17234b26 13469if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13470 rm -rf conftest*
13471 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13472else
90dd450c
VZ
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 rm -rf conftest*
13476 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13477fi
90dd450c
VZ
13478rm -f conftest*
13479LIBS="$ac_save_LIBS"
13480
d08b457b 13481fi
90dd450c
VZ
13482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13483 echo "$ac_t""yes" 1>&6
13484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13485else
13486 echo "$ac_t""no" 1>&6
13487fi
13488
d558c907 13489 fi
90dd450c 13490 fi
3a922bb4 13491
90dd450c
VZ
13492 # Check for libraries that X11R6 Xt/Xaw programs need.
13493 ac_save_LDFLAGS="$LDFLAGS"
13494 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13495 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13496 # check for ICE first), but we must link in the order -lSM -lICE or
13497 # we get undefined symbols. So assume we have SM if we have ICE.
13498 # These have to be linked with before -lX11, unlike the other
13499 # libraries we check for below, so use a different variable.
13500 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13501 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
17234b26 13502echo "configure:13503: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13503ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13504if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13505 echo $ac_n "(cached) $ac_c" 1>&6
13506else
90dd450c
VZ
13507 ac_save_LIBS="$LIBS"
13508LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13509cat > conftest.$ac_ext <<EOF
17234b26 13510#line 13511 "configure"
9cfadba2 13511#include "confdefs.h"
90dd450c
VZ
13512/* Override any gcc2 internal prototype to avoid an error. */
13513/* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515char IceConnectionNumber();
13516
13517int main() {
13518IceConnectionNumber()
13519; return 0; }
698dcdb6 13520EOF
17234b26 13521if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13522 rm -rf conftest*
90dd450c 13523 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13524else
698dcdb6 13525 echo "configure: failed program was:" >&5
9cfadba2 13526 cat conftest.$ac_ext >&5
698dcdb6 13527 rm -rf conftest*
90dd450c 13528 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13529fi
698dcdb6 13530rm -f conftest*
90dd450c
VZ
13531LIBS="$ac_save_LIBS"
13532
9cfadba2 13533fi
90dd450c 13534if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13535 echo "$ac_t""yes" 1>&6
90dd450c 13536 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13537else
13538 echo "$ac_t""no" 1>&6
9cfadba2 13539fi
10f2d63a 13540
90dd450c
VZ
13541 LDFLAGS="$ac_save_LDFLAGS"
13542
13543fi
13544
13545
13546 if test "$no_x" = "yes"; then
13547 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13548 fi
13549
13550 GUI_TK_LIBRARY="$X_LIBS"
13551 TOOLKIT_INCLUDE="$X_CFLAGS"
13552 AFMINSTALL=afminstall
13553 COMPILED_X_PROGRAM=0
13554
21d1c967
GD
13555 if test "$wxUSE_NANOX" = "yes"; then
13556 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
17234b26 13557echo "configure:13558: checking for MicroWindows/NanoX distribution" >&5
21d1c967
GD
13558 if test "x$MICROWIN" = x ; then
13559 echo "$ac_t""not found" 1>&6
13560 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13561 else
21d1c967
GD
13562 echo "$ac_t""$MICROWIN" 1>&6
13563 cat >> confdefs.h <<\EOF
13564#define wxUSE_NANOX 1
698dcdb6 13565EOF
21d1c967 13566
90dd450c
VZ
13567 fi
13568 fi
13569
13570 xpm_link=
13571 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
17234b26 13572echo "configure:13573: checking for Xpm library" >&5
90dd450c
VZ
13573
13574ac_find_libraries=
13575for ac_dir in $SEARCH_LIB;
13576 do
13577 for ac_extension in a so sl dylib; do
13578 if test -f "$ac_dir/libXpm.$ac_extension"; then
13579 ac_find_libraries=$ac_dir
13580 break 2
13581 fi
13582 done
13583 done
13584
13585 if test "$ac_find_libraries" != "" ; then
13586
13587 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13588 result=$?
13589 if test $result = 0; then
13590 ac_path_to_link=""
13591 else
13592 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13593 fi
90dd450c 13594
21d1c967
GD
13595 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13596 xpm_link=" -lXpm"
13597 cat >> confdefs.h <<\EOF
13598#define wxHAVE_LIB_XPM 1
13599EOF
90dd450c 13600
21d1c967
GD
13601 echo "$ac_t""found at $ac_find_libraries" 1>&6
13602 else
13603 cat > conftest.$ac_ext <<EOF
17234b26 13604#line 13605 "configure"
21d1c967 13605#include "confdefs.h"
90dd450c 13606
21d1c967
GD
13607 #include <X11/xpm.h>
13608
13609int main() {
6f72b082 13610
21d1c967
GD
13611 int version;
13612 version = XpmLibraryVersion();
13613
13614; return 0; }
13615EOF
17234b26 13616if { (eval echo configure:13617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
13617 rm -rf conftest*
13618
13619 xpm_link=" -lXpm"
13620 cat >> confdefs.h <<\EOF
13621#define wxHAVE_LIB_XPM 1
13622EOF
90dd450c 13623
21d1c967
GD
13624 echo "$ac_t""found in default search path" 1>&6
13625 COMPILED_X_PROGRAM=0
13626
13627else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631
13632 echo "$ac_t""no" 1>&6
13633 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13634
13635
6f72b082 13636fi
21d1c967
GD
13637rm -f conftest*
13638 fi
90dd450c 13639
1d1b75ac
VZ
13640 wxUSE_UNIVERSAL="yes"
13641
21d1c967
GD
13642 if test "$wxUSE_NANOX" = "yes"; then
13643 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13644 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"
13645 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13646 else
13647 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13648 fi
6f72b082 13649
21d1c967
GD
13650 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13651 TOOLKIT=X11
13652 GUIDIST=X11_DIST
13653 fi
90dd450c 13654
21d1c967
GD
13655 if test "$wxUSE_WINE" = 1; then
13656 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13657echo $ac_n "checking for windows.h""... $ac_c" 1>&6
17234b26 13658echo "configure:13659: checking for windows.h" >&5
698dcdb6
VZ
13659if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13660 echo $ac_n "(cached) $ac_c" 1>&6
13661else
13662 cat > conftest.$ac_ext <<EOF
17234b26 13663#line 13664 "configure"
6f72b082 13664#include "confdefs.h"
21d1c967 13665#include <windows.h>
698dcdb6
VZ
13666EOF
13667ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 13668{ (eval echo configure:13669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13669ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13670if test -z "$ac_err"; then
13671 rm -rf conftest*
13672 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13673else
698dcdb6
VZ
13674 echo "$ac_err" >&5
13675 echo "configure: failed program was:" >&5
10f2d63a 13676 cat conftest.$ac_ext >&5
698dcdb6
VZ
13677 rm -rf conftest*
13678 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13679fi
698dcdb6 13680rm -f conftest*
10f2d63a 13681fi
698dcdb6
VZ
13682if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13683 echo "$ac_t""yes" 1>&6
21d1c967
GD
13684 :
13685else
13686 echo "$ac_t""no" 1>&6
13687
13688 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13689
13690fi
13691
13692
13693 xpm_link=
13694 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
17234b26 13695echo "configure:13696: checking for Xpm library" >&5
21d1c967 13696
90dd450c
VZ
13697ac_find_libraries=
13698for ac_dir in $SEARCH_LIB;
13699 do
13700 for ac_extension in a so sl dylib; do
21d1c967 13701 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13702 ac_find_libraries=$ac_dir
13703 break 2
13704 fi
13705 done
13706 done
13707
21d1c967
GD
13708 if test "$ac_find_libraries" != "" ; then
13709 GUI_TK_LIBRARY="-L$ac_find_libraries"
13710 xpm_link=" -lXpm"
13711 cat >> confdefs.h <<\EOF
13712#define wxHAVE_LIB_XPM 1
13713EOF
90dd450c 13714
21d1c967
GD
13715 echo "$ac_t""found at $ac_find_libraries" 1>&6
13716 else
13717 echo "$ac_t""no" 1>&6
13718 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13719 fi
13720
13721 mesa_link=
13722 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
17234b26 13723echo "configure:13724: checking for Mesa library" >&5
21d1c967 13724
90dd450c
VZ
13725ac_find_libraries=
13726for ac_dir in $SEARCH_LIB;
13727 do
13728 for ac_extension in a so sl dylib; do
13729 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13730 ac_find_libraries=$ac_dir
13731 break 2
13732 fi
13733 done
13734 done
13735
21d1c967
GD
13736 if test "$ac_find_libraries" != "" ; then
13737 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13738 mesa_link=" -lMesaGL"
13739 echo "$ac_t""found at $ac_find_libraries" 1>&6
13740 else
13741 { echo "configure: error: no" 1>&2; exit 1; }
13742 fi
13743
13744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13745 TOOLKIT=MSW
13746 GUIDIST=MSW_DIST
13747 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13748 fi
13749
13750 if test "$wxUSE_MOTIF" = 1; then
13751 if test "$no_x" = yes; then
13752 # Not all programs may use this symbol, but it does not hurt to define it.
13753 cat >> confdefs.h <<\EOF
13754#define X_DISPLAY_MISSING 1
13755EOF
13756
13757 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13758else
13759 if test -n "$x_includes"; then
13760 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13761 fi
13762
21d1c967
GD
13763 # It would also be nice to do this for all -L options, not just this one.
13764 if test -n "$x_libraries"; then
13765 X_LIBS="$X_LIBS -L$x_libraries"
13766 # For Solaris; some versions of Sun CC require a space after -R and
13767 # others require no space. Words are not sufficient . . . .
13768 case "`(uname -sr) 2>/dev/null`" in
13769 "SunOS 5"*)
13770 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
17234b26 13771echo "configure:13772: checking whether -R must be followed by a space" >&5
21d1c967
GD
13772 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13773 cat > conftest.$ac_ext <<EOF
17234b26 13774#line 13775 "configure"
21d1c967
GD
13775#include "confdefs.h"
13776
13777int main() {
13778
13779; return 0; }
13780EOF
17234b26 13781if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13782 rm -rf conftest*
13783 ac_R_nospace=yes
698dcdb6 13784else
21d1c967
GD
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 ac_R_nospace=no
10f2d63a 13789fi
21d1c967
GD
13790rm -f conftest*
13791 if test $ac_R_nospace = yes; then
13792 echo "$ac_t""no" 1>&6
13793 X_LIBS="$X_LIBS -R$x_libraries"
13794 else
13795 LIBS="$ac_xsave_LIBS -R $x_libraries"
13796 cat > conftest.$ac_ext <<EOF
17234b26 13797#line 13798 "configure"
21d1c967 13798#include "confdefs.h"
10f2d63a 13799
21d1c967 13800int main() {
f0c87536 13801
21d1c967 13802; return 0; }
698dcdb6 13803EOF
17234b26 13804if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13805 rm -rf conftest*
13806 ac_R_space=yes
13807else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 ac_R_space=no
13812fi
13813rm -f conftest*
13814 if test $ac_R_space = yes; then
13815 echo "$ac_t""yes" 1>&6
13816 X_LIBS="$X_LIBS -R $x_libraries"
13817 else
13818 echo "$ac_t""neither works" 1>&6
13819 fi
13820 fi
13821 LIBS="$ac_xsave_LIBS"
13822 esac
13823 fi
90dd450c 13824
21d1c967
GD
13825 # Check for system-dependent libraries X programs must link with.
13826 # Do this before checking for the system-independent R6 libraries
13827 # (-lICE), since we may need -lsocket or whatever for X linking.
13828
13829 if test "$ISC" = yes; then
13830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13831 else
13832 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13833 # libraries were built with DECnet support. And karl@cs.umb.edu says
13834 # the Alpha needs dnet_stub (dnet does not exist).
13835 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
17234b26 13836echo "configure:13837: checking for dnet_ntoa in -ldnet" >&5
21d1c967
GD
13837ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840else
13841 ac_save_LIBS="$LIBS"
13842LIBS="-ldnet $LIBS"
13843cat > conftest.$ac_ext <<EOF
17234b26 13844#line 13845 "configure"
21d1c967
GD
13845#include "confdefs.h"
13846/* Override any gcc2 internal prototype to avoid an error. */
13847/* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13849char dnet_ntoa();
13850
13851int main() {
13852dnet_ntoa()
13853; return 0; }
90dd450c 13854EOF
17234b26 13855if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13856 rm -rf conftest*
13857 eval "ac_cv_lib_$ac_lib_var=yes"
13858else
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13861 rm -rf conftest*
13862 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13863fi
21d1c967
GD
13864rm -f conftest*
13865LIBS="$ac_save_LIBS"
90dd450c 13866
0fb0dd83 13867fi
21d1c967
GD
13868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13869 echo "$ac_t""yes" 1>&6
13870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13871else
13872 echo "$ac_t""no" 1>&6
0fb0dd83 13873fi
0fb0dd83 13874
21d1c967
GD
13875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13876 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
17234b26 13877echo "configure:13878: checking for dnet_ntoa in -ldnet_stub" >&5
21d1c967
GD
13878ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13879if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881else
13882 ac_save_LIBS="$LIBS"
13883LIBS="-ldnet_stub $LIBS"
13884cat > conftest.$ac_ext <<EOF
17234b26 13885#line 13886 "configure"
21d1c967
GD
13886#include "confdefs.h"
13887/* Override any gcc2 internal prototype to avoid an error. */
13888/* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890char dnet_ntoa();
90dd450c 13891
21d1c967
GD
13892int main() {
13893dnet_ntoa()
13894; return 0; }
13895EOF
17234b26 13896if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13897 rm -rf conftest*
13898 eval "ac_cv_lib_$ac_lib_var=yes"
13899else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13904fi
21d1c967
GD
13905rm -f conftest*
13906LIBS="$ac_save_LIBS"
90dd450c 13907
21d1c967
GD
13908fi
13909if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13910 echo "$ac_t""yes" 1>&6
13911 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13912else
13913 echo "$ac_t""no" 1>&6
90dd450c
VZ
13914fi
13915
21d1c967 13916 fi
90dd450c 13917
21d1c967
GD
13918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13919 # to get the SysV transport functions.
13920 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13921 # needs -lnsl.
13922 # The nsl library prevents programs from opening the X display
13923 # on Irix 5.2, according to dickey@clark.net.
13924 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
17234b26 13925echo "configure:13926: checking for gethostbyname" >&5
21d1c967
GD
13926if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13927 echo $ac_n "(cached) $ac_c" 1>&6
13928else
13929 cat > conftest.$ac_ext <<EOF
17234b26 13930#line 13931 "configure"
21d1c967
GD
13931#include "confdefs.h"
13932/* System header to define __stub macros and hopefully few prototypes,
13933 which can conflict with char gethostbyname(); below. */
13934#include <assert.h>
13935/* Override any gcc2 internal prototype to avoid an error. */
13936/* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938char gethostbyname();
90dd450c 13939
21d1c967 13940int main() {
90dd450c 13941
21d1c967
GD
13942/* The GNU C library defines this for functions which it implements
13943 to always fail with ENOSYS. Some functions are actually named
13944 something starting with __ and the normal name is an alias. */
13945#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13946choke me
13947#else
13948gethostbyname();
13949#endif
90dd450c 13950
21d1c967
GD
13951; return 0; }
13952EOF
17234b26 13953if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13954 rm -rf conftest*
13955 eval "ac_cv_func_gethostbyname=yes"
13956else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_func_gethostbyname=no"
13961fi
13962rm -f conftest*
90dd450c
VZ
13963fi
13964
21d1c967
GD
13965if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13966 echo "$ac_t""yes" 1>&6
13967 :
13968else
13969 echo "$ac_t""no" 1>&6
13970fi
90dd450c 13971
21d1c967
GD
13972 if test $ac_cv_func_gethostbyname = no; then
13973 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
17234b26 13974echo "configure:13975: checking for gethostbyname in -lnsl" >&5
21d1c967
GD
13975ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13978else
13979 ac_save_LIBS="$LIBS"
13980LIBS="-lnsl $LIBS"
13981cat > conftest.$ac_ext <<EOF
17234b26 13982#line 13983 "configure"
21d1c967
GD
13983#include "confdefs.h"
13984/* Override any gcc2 internal prototype to avoid an error. */
13985/* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13987char gethostbyname();
90dd450c 13988
21d1c967
GD
13989int main() {
13990gethostbyname()
13991; return 0; }
13992EOF
17234b26 13993if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13994 rm -rf conftest*
13995 eval "ac_cv_lib_$ac_lib_var=yes"
13996else
13997 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 rm -rf conftest*
14000 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 14001fi
21d1c967
GD
14002rm -f conftest*
14003LIBS="$ac_save_LIBS"
f0c87536 14004
21d1c967
GD
14005fi
14006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14007 echo "$ac_t""yes" 1>&6
14008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14009else
14010 echo "$ac_t""no" 1>&6
14011fi
90dd450c 14012
90dd450c
VZ
14013 fi
14014
21d1c967
GD
14015 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14016 # socket/setsockopt and other routines are undefined under SCO ODT
14017 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14018 # on later versions), says simon@lia.di.epfl.ch: it contains
14019 # gethostby* variants that don't use the nameserver (or something).
14020 # -lsocket must be given before -lnsl if both are needed.
14021 # We assume that if connect needs -lnsl, so does gethostbyname.
14022 echo $ac_n "checking for connect""... $ac_c" 1>&6
17234b26 14023echo "configure:14024: checking for connect" >&5
21d1c967
GD
14024if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14025 echo $ac_n "(cached) $ac_c" 1>&6
14026else
14027 cat > conftest.$ac_ext <<EOF
17234b26 14028#line 14029 "configure"
21d1c967
GD
14029#include "confdefs.h"
14030/* System header to define __stub macros and hopefully few prototypes,
14031 which can conflict with char connect(); below. */
14032#include <assert.h>
14033/* Override any gcc2 internal prototype to avoid an error. */
14034/* We use char because int might match the return type of a gcc2
14035 builtin and then its argument prototype would still apply. */
14036char connect();
90dd450c 14037
21d1c967 14038int main() {
90dd450c 14039
21d1c967
GD
14040/* The GNU C library defines this for functions which it implements
14041 to always fail with ENOSYS. Some functions are actually named
14042 something starting with __ and the normal name is an alias. */
14043#if defined (__stub_connect) || defined (__stub___connect)
14044choke me
14045#else
14046connect();
14047#endif
90dd450c 14048
21d1c967
GD
14049; return 0; }
14050EOF
17234b26 14051if { (eval echo configure:14052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14052 rm -rf conftest*
14053 eval "ac_cv_func_connect=yes"
14054else
14055 echo "configure: failed program was:" >&5
14056 cat conftest.$ac_ext >&5
14057 rm -rf conftest*
14058 eval "ac_cv_func_connect=no"
14059fi
14060rm -f conftest*
14061fi
90dd450c 14062
21d1c967
GD
14063if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14064 echo "$ac_t""yes" 1>&6
14065 :
14066else
14067 echo "$ac_t""no" 1>&6
14068fi
1f8ae82f 14069
21d1c967
GD
14070 if test $ac_cv_func_connect = no; then
14071 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
17234b26 14072echo "configure:14073: checking for connect in -lsocket" >&5
21d1c967
GD
14073ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
14075 echo $ac_n "(cached) $ac_c" 1>&6
14076else
21d1c967
GD
14077 ac_save_LIBS="$LIBS"
14078LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14079cat > conftest.$ac_ext <<EOF
17234b26 14080#line 14081 "configure"
0fbb762e 14081#include "confdefs.h"
21d1c967
GD
14082/* Override any gcc2 internal prototype to avoid an error. */
14083/* We use char because int might match the return type of a gcc2
14084 builtin and then its argument prototype would still apply. */
14085char connect();
90dd450c
VZ
14086
14087int main() {
21d1c967 14088connect()
90dd450c 14089; return 0; }
0fbb762e 14090EOF
17234b26 14091if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 14092 rm -rf conftest*
21d1c967 14093 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 14094else
0fbb762e
MB
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 rm -rf conftest*
21d1c967 14098 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
14099fi
14100rm -f conftest*
21d1c967 14101LIBS="$ac_save_LIBS"
90dd450c 14102
21d1c967
GD
14103fi
14104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14105 echo "$ac_t""yes" 1>&6
14106 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14107else
14108 echo "$ac_t""no" 1>&6
14109fi
90dd450c 14110
21d1c967 14111 fi
90dd450c 14112
21d1c967
GD
14113 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14114 echo $ac_n "checking for remove""... $ac_c" 1>&6
17234b26 14115echo "configure:14116: checking for remove" >&5
21d1c967
GD
14116if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14117 echo $ac_n "(cached) $ac_c" 1>&6
14118else
14119 cat > conftest.$ac_ext <<EOF
17234b26 14120#line 14121 "configure"
21d1c967
GD
14121#include "confdefs.h"
14122/* System header to define __stub macros and hopefully few prototypes,
14123 which can conflict with char remove(); below. */
14124#include <assert.h>
14125/* Override any gcc2 internal prototype to avoid an error. */
14126/* We use char because int might match the return type of a gcc2
14127 builtin and then its argument prototype would still apply. */
14128char remove();
90dd450c 14129
21d1c967 14130int main() {
90dd450c 14131
21d1c967
GD
14132/* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135#if defined (__stub_remove) || defined (__stub___remove)
14136choke me
14137#else
14138remove();
14139#endif
90dd450c 14140
21d1c967
GD
14141; return 0; }
14142EOF
17234b26 14143if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14144 rm -rf conftest*
14145 eval "ac_cv_func_remove=yes"
14146else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150 eval "ac_cv_func_remove=no"
14151fi
14152rm -f conftest*
14153fi
90dd450c 14154
21d1c967
GD
14155if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14156 echo "$ac_t""yes" 1>&6
14157 :
14158else
14159 echo "$ac_t""no" 1>&6
14160fi
90dd450c 14161
21d1c967
GD
14162 if test $ac_cv_func_remove = no; then
14163 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
17234b26 14164echo "configure:14165: checking for remove in -lposix" >&5
21d1c967
GD
14165ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14166if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14167 echo $ac_n "(cached) $ac_c" 1>&6
14168else
14169 ac_save_LIBS="$LIBS"
14170LIBS="-lposix $LIBS"
14171cat > conftest.$ac_ext <<EOF
17234b26 14172#line 14173 "configure"
21d1c967
GD
14173#include "confdefs.h"
14174/* Override any gcc2 internal prototype to avoid an error. */
14175/* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177char remove();
90dd450c 14178
21d1c967
GD
14179int main() {
14180remove()
14181; return 0; }
14182EOF
17234b26 14183if { (eval echo configure:14184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14184 rm -rf conftest*
14185 eval "ac_cv_lib_$ac_lib_var=yes"
14186else
14187 echo "configure: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 rm -rf conftest*
14190 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14191fi
21d1c967
GD
14192rm -f conftest*
14193LIBS="$ac_save_LIBS"
0fbb762e 14194
21d1c967
GD
14195fi
14196if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14199else
14200 echo "$ac_t""no" 1>&6
14201fi
19bc6aad 14202
90dd450c 14203 fi
19bc6aad 14204
21d1c967
GD
14205 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14206 echo $ac_n "checking for shmat""... $ac_c" 1>&6
17234b26 14207echo "configure:14208: checking for shmat" >&5
21d1c967
GD
14208if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210else
14211 cat > conftest.$ac_ext <<EOF
17234b26 14212#line 14213 "configure"
21d1c967
GD
14213#include "confdefs.h"
14214/* System header to define __stub macros and hopefully few prototypes,
14215 which can conflict with char shmat(); below. */
14216#include <assert.h>
14217/* Override any gcc2 internal prototype to avoid an error. */
14218/* We use char because int might match the return type of a gcc2
14219 builtin and then its argument prototype would still apply. */
14220char shmat();
19bc6aad 14221
21d1c967 14222int main() {
90dd450c 14223
21d1c967
GD
14224/* The GNU C library defines this for functions which it implements
14225 to always fail with ENOSYS. Some functions are actually named
14226 something starting with __ and the normal name is an alias. */
14227#if defined (__stub_shmat) || defined (__stub___shmat)
14228choke me
14229#else
14230shmat();
14231#endif
90dd450c 14232
21d1c967
GD
14233; return 0; }
14234EOF
17234b26 14235if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14236 rm -rf conftest*
14237 eval "ac_cv_func_shmat=yes"
90dd450c 14238else
21d1c967
GD
14239 echo "configure: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 rm -rf conftest*
14242 eval "ac_cv_func_shmat=no"
19bc6aad 14243fi
21d1c967 14244rm -f conftest*
19bc6aad 14245fi
21d1c967
GD
14246
14247if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14248 echo "$ac_t""yes" 1>&6
14249 :
19bc6aad
VZ
14250else
14251 echo "$ac_t""no" 1>&6
14252fi
19bc6aad 14253
21d1c967
GD
14254 if test $ac_cv_func_shmat = no; then
14255 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
17234b26 14256echo "configure:14257: checking for shmat in -lipc" >&5
21d1c967
GD
14257ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260else
21d1c967
GD
14261 ac_save_LIBS="$LIBS"
14262LIBS="-lipc $LIBS"
14263cat > conftest.$ac_ext <<EOF
17234b26 14264#line 14265 "configure"
21d1c967
GD
14265#include "confdefs.h"
14266/* Override any gcc2 internal prototype to avoid an error. */
14267/* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14269char shmat();
14270
14271int main() {
14272shmat()
14273; return 0; }
14274EOF
17234b26 14275if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14278else
21d1c967
GD
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14283fi
21d1c967
GD
14284rm -f conftest*
14285LIBS="$ac_save_LIBS"
14286
9f8148b1 14287fi
21d1c967
GD
14288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14291else
14292 echo "$ac_t""no" 1>&6
14293fi
90dd450c 14294
90dd450c 14295 fi
21d1c967 14296 fi
10f2d63a 14297
21d1c967
GD
14298 # Check for libraries that X11R6 Xt/Xaw programs need.
14299 ac_save_LDFLAGS="$LDFLAGS"
14300 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14301 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14302 # check for ICE first), but we must link in the order -lSM -lICE or
14303 # we get undefined symbols. So assume we have SM if we have ICE.
14304 # These have to be linked with before -lX11, unlike the other
14305 # libraries we check for below, so use a different variable.
14306 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14307 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
17234b26 14308echo "configure:14309: checking for IceConnectionNumber in -lICE" >&5
21d1c967
GD
14309ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14311 echo $ac_n "(cached) $ac_c" 1>&6
14312else
21d1c967
GD
14313 ac_save_LIBS="$LIBS"
14314LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14315cat > conftest.$ac_ext <<EOF
17234b26 14316#line 14317 "configure"
29fd3c0c 14317#include "confdefs.h"
21d1c967
GD
14318/* Override any gcc2 internal prototype to avoid an error. */
14319/* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14321char IceConnectionNumber();
14322
14323int main() {
14324IceConnectionNumber()
14325; return 0; }
29fd3c0c 14326EOF
17234b26 14327if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14328 rm -rf conftest*
21d1c967 14329 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14330else
29fd3c0c
VS
14331 echo "configure: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
14333 rm -rf conftest*
21d1c967 14334 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14335fi
14336rm -f conftest*
21d1c967
GD
14337LIBS="$ac_save_LIBS"
14338
29fd3c0c 14339fi
21d1c967 14340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14341 echo "$ac_t""yes" 1>&6
21d1c967 14342 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14343else
14344 echo "$ac_t""no" 1>&6
14345fi
21d1c967
GD
14346
14347 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14348
10f2d63a
VZ
14349fi
14350
21d1c967
GD
14351
14352 if test "$no_x" = "yes"; then
14353 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14354 fi
14355
14356 GUI_TK_LIBRARY="$X_LIBS"
14357 TOOLKIT_INCLUDE="$X_CFLAGS"
14358 AFMINSTALL=afminstall
14359 COMPILED_X_PROGRAM=0
14360
14361 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
17234b26 14362echo "configure:14363: checking for Motif/Lesstif headers" >&5
21d1c967
GD
14363
14364ac_find_includes=
14365for ac_dir in $SEARCH_INCLUDE;
14366 do
14367 if test -f "$ac_dir/Xm/Xm.h"; then
14368 ac_find_includes=$ac_dir
14369 break
14370 fi
14371 done
14372
14373 if test "$ac_find_includes" != "" ; then
14374 echo "$ac_t""found $ac_find_includes" 1>&6
14375 else
14376 cat > conftest.$ac_ext <<EOF
17234b26 14377#line 14378 "configure"
10f2d63a 14378#include "confdefs.h"
21d1c967
GD
14379
14380 #include <Xm/Xm.h>
14381
14382int main() {
14383
14384 int version;
14385 version = xmUseVersion;
14386
14387; return 0; }
698dcdb6 14388EOF
17234b26 14389if { (eval echo configure:14390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14390 rm -rf conftest*
21d1c967
GD
14391
14392 echo "$ac_t""found in default search path" 1>&6
14393 COMPILED_X_PROGRAM=1
14394
10f2d63a 14395else
90dd450c
VZ
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
698dcdb6 14398 rm -rf conftest*
21d1c967
GD
14399
14400 echo "$ac_t""no" 1>&6
14401 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14402
14403
10f2d63a
VZ
14404fi
14405rm -f conftest*
21d1c967 14406 fi
10f2d63a 14407
21d1c967
GD
14408 if test "$COMPILED_X_PROGRAM" = 0; then
14409 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
17234b26 14410echo "configure:14411: checking for Motif/Lesstif library" >&5
21d1c967
GD
14411
14412ac_find_libraries=
14413for ac_dir in $SEARCH_LIB;
14414 do
14415 for ac_extension in a so sl dylib; do
14416 if test -f "$ac_dir/libXm.$ac_extension"; then
14417 ac_find_libraries=$ac_dir
14418 break 2
14419 fi
14420 done
14421 done
14422
14423 if test "$ac_find_libraries" != "" ; then
14424
14425 ac_path_to_include=$ac_find_includes
14426 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14427 result=$?
14428 if test $result = 0; then
14429 ac_path_to_include=""
14430 else
14431 ac_path_to_include=" -I$ac_find_includes"
14432 fi
14433
14434
14435 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14436 result=$?
14437 if test $result = 0; then
14438 ac_path_to_link=""
14439 else
14440 ac_path_to_link=" -L$ac_find_libraries"
14441 fi
14442
14443
14444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14445 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14446 echo "$ac_t""found at $ac_find_libraries" 1>&6
14447 else
14448 cat > conftest.$ac_ext <<EOF
17234b26 14449#line 14450 "configure"
d836ee96 14450#include "confdefs.h"
21d1c967
GD
14451
14452 #include <Xm/Xm.h>
14453
14454int main() {
14455
14456 int version;
14457 version = xmUseVersion;
14458
14459; return 0; }
d836ee96 14460EOF
17234b26 14461if { (eval echo configure:14462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14462 rm -rf conftest*
21d1c967
GD
14463
14464 echo "$ac_t""found in default search path" 1>&6
14465 COMPILED_X_PROGRAM=1
14466
d836ee96
VZ
14467else
14468 echo "configure: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 rm -rf conftest*
21d1c967
GD
14471
14472 echo "$ac_t""no" 1>&6
14473 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14474
14475
d836ee96
VZ
14476fi
14477rm -f conftest*
21d1c967
GD
14478 fi
14479 fi
14480
14481 xpm_link=
14482 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
17234b26 14483echo "configure:14484: checking for Xpm library" >&5
21d1c967
GD
14484
14485ac_find_libraries=
14486for ac_dir in $SEARCH_LIB;
14487 do
14488 for ac_extension in a so sl dylib; do
14489 if test -f "$ac_dir/libXpm.$ac_extension"; then
14490 ac_find_libraries=$ac_dir
14491 break 2
14492 fi
14493 done
14494 done
14495
14496 if test "$ac_find_libraries" != "" ; then
14497
14498 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14499 result=$?
14500 if test $result = 0; then
14501 ac_path_to_link=""
14502 else
14503 ac_path_to_link=" -L$ac_find_libraries"
14504 fi
14505
14506 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14507 xpm_link=" -lXpm"
14508 cat >> confdefs.h <<\EOF
14509#define wxHAVE_LIB_XPM 1
d836ee96 14510EOF
90dd450c 14511
21d1c967
GD
14512 echo "$ac_t""found at $ac_find_libraries" 1>&6
14513 else
14514 cat > conftest.$ac_ext <<EOF
17234b26 14515#line 14516 "configure"
d836ee96 14516#include "confdefs.h"
21d1c967
GD
14517
14518 #include <X11/xpm.h>
14519
14520int main() {
14521
14522 int version;
14523 version = XpmLibraryVersion();
14524
14525; return 0; }
d836ee96 14526EOF
17234b26 14527if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14528 rm -rf conftest*
21d1c967
GD
14529
14530 xpm_link=" -lXpm"
14531 cat >> confdefs.h <<\EOF
14532#define wxHAVE_LIB_XPM 1
14533EOF
14534
14535 echo "$ac_t""found in default search path" 1>&6
14536 COMPILED_X_PROGRAM=0
14537
d836ee96
VZ
14538else
14539 echo "configure: failed program was:" >&5
14540 cat conftest.$ac_ext >&5
14541 rm -rf conftest*
21d1c967
GD
14542
14543 echo "$ac_t""no" 1>&6
14544 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14545
14546
d836ee96
VZ
14547fi
14548rm -f conftest*
21d1c967
GD
14549 fi
14550
17234b26
MB
14551 xt_needs_sm_ice=
14552 case "${host}" in
14553 *-*-cygwin* )
14554 xt_needs_sm_ice=" -lSM -lICE"
14555 ;;
14556 esac
14557
14558 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11"
21d1c967
GD
14559 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14560 TOOLKIT=MOTIF
14561 GUIDIST=MOTIF_DIST
14562 fi
14563
14564 if test "$wxUSE_MAC" = 1; then
14565 if test "$wxUSE_PRECOMP" = "yes"; then
14566 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14567 else
14568 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14569 fi
14570 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14571 CFLAGS="$CFLAGS -fpascal-strings"
14572 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14573
14574 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14575 TOOLKIT=MAC
14576 GUIDIST=MACX_DIST
14577 fi
14578
14579 if test "$wxUSE_PM" = 1; then
14580 TOOLKIT=PM
14581 GUIDIST=GTK_DIST
14582 fi
14583
14584 if test "$TOOLKIT" = "PM" ; then
14585 TOOLKIT_DIR="os2"
14586 else
14587 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14588 fi
14589
14590 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14591
14592 if test "$wxUSE_UNIVERSAL" = "yes"; then
14593 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14594
14595 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14596 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14597
14598 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14599 if test "$wxUSE_X11" = 1; then
14600 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14601 else
14602 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14603 fi
14604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14605 WIDGET_SET=univ
14606 else
14607 ALL_OBJECTS="\$(GUIOBJS)"
14608 ALL_SOURCES="\$(ALL_SOURCES)"
14609 ALL_HEADERS="\$(ALL_HEADERS)"
14610 fi
14611
14612 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14613
14614 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14615 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14616 fi
14617
14618 if test "$wxUSE_HTML" = "yes"; then
14619 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14620 fi
14621
14622 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14623 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14624 fi
14625 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14626 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14627 fi
14628 if test "$wxUSE_LIBPNG" = "builtin" ; then
14629 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14630 fi
14631
14632 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14633 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14634else
21d1c967
GD
14635 USE_GUI=0
14636
14637 TOOLKIT_DIR="base"
14638
14639 if test "$USE_WIN32" = 1 ; then
14640 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14641 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14642
14643 TOOLKIT="MSW"
14644 else
14645 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14646 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14647 fi
14648
14649 ALL_SOURCES="\$(ALL_SOURCES)"
14650 ALL_HEADERS="\$(ALL_HEADERS)"
14651
14652 PORT_FILES="\${top_srcdir}/src/files.lst"
14653
14654 GUIDIST="BASE_DIST"
14655 DISTDIR="wxBase"
d836ee96
VZ
14656fi
14657
21d1c967
GD
14658
14659if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14660 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14661fi
21d1c967
GD
14662
14663if test "$wxUSE_REGEX" = "builtin" ; then
14664 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14665fi
21d1c967
GD
14666if test "$wxUSE_ZLIB" = "builtin" ; then
14667 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14668fi
14669
698dcdb6 14670
21d1c967
GD
14671if test "$wxUSE_OPENGL" = "yes"; then
14672 if test "$wxUSE_MAC" = 1; then
14673 OPENGL_LIBS="-framework OpenGL -framework AGL"
14674 elif test "$wxUSE_MSW" = 1; then
14675 OPENGL_LIBS="-lopengl32 -lglu32"
14676 else
14677 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14678echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
17234b26 14679echo "configure:14680: checking for GL/gl.h" >&5
90dd450c 14680if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14681 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14682else
698dcdb6 14683 cat > conftest.$ac_ext <<EOF
17234b26 14684#line 14685 "configure"
10f2d63a 14685#include "confdefs.h"
21d1c967 14686#include <GL/gl.h>
698dcdb6 14687EOF
90dd450c 14688ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 14689{ (eval echo configure:14690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14690ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14691if test -z "$ac_err"; then
4f14bcd8 14692 rm -rf conftest*
90dd450c 14693 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14694else
90dd450c 14695 echo "$ac_err" >&5
698dcdb6
VZ
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
4f14bcd8 14698 rm -rf conftest*
90dd450c 14699 eval "ac_cv_header_$ac_safe=no"
703e0a69 14700fi
4f14bcd8 14701rm -f conftest*
698dcdb6 14702fi
90dd450c
VZ
14703if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
21d1c967
GD
14705
14706 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
17234b26 14707echo "configure:14708: checking for -lGL" >&5
21d1c967
GD
14708
14709ac_find_libraries=
14710for ac_dir in $SEARCH_LIB;
14711 do
14712 for ac_extension in a so sl dylib; do
14713 if test -f "$ac_dir/libGL.$ac_extension"; then
14714 ac_find_libraries=$ac_dir
14715 break 2
14716 fi
14717 done
14718 done
14719
14720 if test "$ac_find_libraries" != "" ; then
14721
14722 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14723 result=$?
14724 if test $result = 0; then
14725 ac_path_to_link=""
14726 else
14727 ac_path_to_link=" -L$ac_find_libraries"
14728 fi
14729
14730 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14731 LDFLAGS_GL="$LDFLAGS"
14732 else
14733 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14734 fi
14735 OPENGL_LIBS="-lGL -lGLU"
14736 echo "$ac_t""yes" 1>&6
14737 else
14738 echo "$ac_t""no" 1>&6
14739 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
17234b26 14740echo "configure:14741: checking for -lMesaGL" >&5
21d1c967
GD
14741
14742ac_find_libraries=
14743for ac_dir in $SEARCH_LIB;
14744 do
14745 for ac_extension in a so sl dylib; do
14746 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14747 ac_find_libraries=$ac_dir
14748 break 2
14749 fi
14750 done
14751 done
14752
14753 if test "$ac_find_libraries" != "" ; then
14754
14755 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14756 result=$?
14757 if test $result = 0; then
14758 ac_path_to_link=""
14759 else
14760 ac_path_to_link=" -L$ac_find_libraries"
14761 fi
14762
14763 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14764 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14765 echo "$ac_t""yes" 1>&6
14766 else
14767 echo "$ac_t""no" 1>&6
14768 fi
14769 fi
14770
90dd450c
VZ
14771else
14772 echo "$ac_t""no" 1>&6
14773fi
698dcdb6
VZ
14774
14775
21d1c967
GD
14776 if test "x$OPENGL_LIBS" = "x"; then
14777 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14778 fi
14779 fi
90dd450c 14780
21d1c967
GD
14781 if test "$wxUSE_OPENGL" = "yes"; then
14782 cat >> confdefs.h <<\EOF
14783#define wxUSE_OPENGL 1
698dcdb6 14784EOF
21d1c967
GD
14785
14786 cat >> confdefs.h <<\EOF
14787#define wxUSE_GLCANVAS 1
14788EOF
14789
14790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14791 fi
10f2d63a 14792fi
21d1c967
GD
14793
14794if test -z "$TOOLKIT_VPATH" ; then
14795 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14796fi
21d1c967
GD
14797
14798if test -n "$TOOLKIT" ; then
14799 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14800fi
14801
14802lib_unicode_suffix=
14803if test "$wxUSE_UNICODE" = "yes"; then
14804 lib_unicode_suffix=u
90dd450c 14805fi
698dcdb6 14806
21d1c967
GD
14807lib_debug_suffix=
14808if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14809 lib_debug_suffix=d
14810fi
698dcdb6 14811
21d1c967
GD
14812TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14813TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14814
14815if test "$cross_compiling" = "yes"; then
14816 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14817 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14818fi
14819
14820WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14821WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14822
14823WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14824WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14825
14826WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14827WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14828WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14829WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14830
14831case "${host}" in
14832 *-*-cygwin* | *-*-mingw32* )
14833
14834
14835
17234b26 14836 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
14837 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14838 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14839 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14840 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14841 else
14842 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14843 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14844 fi
14845 ;;
14846
14847 *-*-darwin* )
14848 if test "$wxUSE_MAC" = 1; then
14849 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14850 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14851 fi
14852 ;;
14853esac
14854
14855WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14856WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14857
14858WXCONFIG_LIBS="-l${WX_LIBRARY}"
14859WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14860
14861if test "$wxUSE_OPENGL" = "yes"; then
14862 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14863 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14864fi
14865
14866
14867
14868if test "$wxUSE_SHARED" = "yes"; then
14869 case "${host}" in
14870 *-pc-os2_emx | *-pc-os2-emx | \
14871 *-pc-msdosdjgpp )
14872 wxUSE_SHARED=no
14873 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14874 ;;
14875 esac
14876fi
14877
14878if test "$wxUSE_SHARED" = "yes"; then
14879
14880 if test "$wxUSE_OPENGL" = "yes"; then
14881 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14882 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14883 else
14884 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14885 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14886 fi
14887
14888 if test "$GCC" = "yes"; then
14889 PIC_FLAG="-fPIC"
14890 fi
14891
14892 SHARED_LD="${CXX} -shared -o"
14893
14894 case "${host}" in
14895 *-hp-hpux* )
14896 if test "$GCC" == "yes"; then
14897 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14898 else
14899 LDFLAGS="$LDFLAGS -L/usr/lib"
14900
14901 SHARED_LD="${CXX} -b -o"
14902 PIC_FLAG="+Z"
14903 fi
14904
14905 if test "$wxUSE_OPENGL" = "yes"; then
14906 WX_ALL_INSTALLED="preinstall_gl"
14907 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14908 else
14909 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14910 fi
14911 ;;
14912
14913 *-*-linux* )
14914 if test "$GCC" != "yes"; then
14915 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
17234b26 14916echo "configure:14917: checking for Intel compiler" >&5
21d1c967 14917if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14918 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14919else
21d1c967
GD
14920
14921 cat > conftest.$ac_ext <<EOF
17234b26 14922#line 14923 "configure"
698dcdb6 14923#include "confdefs.h"
90dd450c
VZ
14924
14925int main() {
14926
21d1c967
GD
14927 #ifndef __INTEL_COMPILER
14928 #error Not icc
14929 #endif
14930
90dd450c 14931; return 0; }
698dcdb6 14932EOF
17234b26 14933if { (eval echo configure:14934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14934 rm -rf conftest*
21d1c967 14935 wx_cv_prog_icc=yes
6232543b 14936else
698dcdb6
VZ
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
90dd450c 14939 rm -rf conftest*
21d1c967
GD
14940 wx_cv_prog_icc=no
14941
6232543b 14942fi
90dd450c 14943rm -f conftest*
21d1c967 14944
698dcdb6
VZ
14945fi
14946
21d1c967
GD
14947echo "$ac_t""$wx_cv_prog_icc" 1>&6
14948 if test "$wx_cv_prog_icc" = "yes"; then
14949 PIC_FLAG="-KPIC"
14950 fi
14951 fi
14952
14953 if test "$wxUSE_SONAME" = "yes" ; then
14954 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14955 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14956 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14957 fi
14958 ;;
14959
14960 *-*-solaris2* )
14961 if test "$GCC" = yes ; then
14962 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14963 else
14964 SHARED_LD="${CXX} -G -o"
14965 PIC_FLAG="-KPIC"
14966 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14967 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14968 fi
14969 ;;
14970
14971 *-*-darwin* )
14972 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14973 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14974 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14975 PIC_FLAG="-dynamic -fPIC"
14976 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14977 SONAME_FLAGS_GL=${SONAME_FLAGS}
14978 ;;
14979
14980 *-*-aix* )
321d2b14
VZ
14981 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14982set dummy makeC++SharedLib; ac_word=$2
14983echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 14984echo "configure:14985: checking for $ac_word" >&5
321d2b14
VZ
14985if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14986 echo $ac_n "(cached) $ac_c" 1>&6
14987else
14988 if test -n "$AIX_CXX_LD"; then
14989 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14990else
14991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14992 ac_dummy="$PATH"
14993 for ac_dir in $ac_dummy; do
14994 test -z "$ac_dir" && ac_dir=.
14995 if test -f $ac_dir/$ac_word; then
14996 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14997 break
14998 fi
14999 done
15000 IFS="$ac_save_ifs"
15001 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15002fi
15003fi
15004AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15005if test -n "$AIX_CXX_LD"; then
15006 echo "$ac_t""$AIX_CXX_LD" 1>&6
15007else
15008 echo "$ac_t""no" 1>&6
15009fi
15010
15011
15012 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15013 ;;
15014
15015 *-*-cygwin* | *-*-mingw32* )
15016
15017 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15018
15019 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15020 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15021
15022 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15023
15024 if test "$wxUSE_OPENGL" = "yes"; then
15025 WX_ALL_INSTALLED="preinstall_gl"
15026 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15027 else
15028 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15029 fi
15030 ;;
15031
15032 *-*-beos* )
15033 SHARED_LD="${LD} -shared -o"
15034 ;;
15035
15036 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15037 *-*-sunos4* | \
15038 *-*-irix5* | *-*-irix6* | \
15039 *-*-osf* | \
15040 *-*-dgux5* | \
15041 *-*-sysv5* )
15042 ;;
15043
15044 *)
15045 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15046 esac
15047
15048 if test "x$WX_TARGET_LIBRARY" = "x"; then
15049 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15050 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15051 fi
15052
15053 WX_TARGET_LIBRARY_TYPE="so"
15054 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15055fi
10f2d63a 15056
21d1c967
GD
15057if test "$wxUSE_SHARED" = "no"; then
15058
15059 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15060 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15061 fi
15062
15063 if test "$wxUSE_MAC" = 1; then
15064 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15065 fi
15066
15067 if test "$wxUSE_OPENGL" = "yes"; then
15068 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15069 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15070 else
15071 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15072 fi
15073
15074 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15075 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15076
15077 WX_TARGET_LIBRARY_TYPE="a"
15078 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15079fi
1e487827 15080
21d1c967
GD
15081if test "$wxUSE_MAC" = 1; then
15082 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15083 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15084 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15085 # Extract the first word of "Rez", so it can be a program name with args.
15086set dummy Rez; ac_word=$2
15087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 15088echo "configure:15089: checking for $ac_word" >&5
21d1c967 15089if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 15090 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15091else
21d1c967
GD
15092 if test -n "$RESCOMP"; then
15093 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15094else
21d1c967
GD
15095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15096 ac_dummy="$PATH"
15097 for ac_dir in $ac_dummy; do
15098 test -z "$ac_dir" && ac_dir=.
15099 if test -f $ac_dir/$ac_word; then
15100 ac_cv_prog_RESCOMP="Rez"
15101 break
15102 fi
15103 done
15104 IFS="$ac_save_ifs"
15105 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15106fi
b93d0d08 15107fi
21d1c967
GD
15108RESCOMP="$ac_cv_prog_RESCOMP"
15109if test -n "$RESCOMP"; then
15110 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
15111else
15112 echo "$ac_t""no" 1>&6
15113fi
b93d0d08 15114
21d1c967
GD
15115 # Extract the first word of "DeRez", so it can be a program name with args.
15116set dummy DeRez; ac_word=$2
15117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17234b26 15118echo "configure:15119: checking for $ac_word" >&5
21d1c967 15119if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 15120 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15121else
21d1c967
GD
15122 if test -n "$DEREZ"; then
15123 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15124else
21d1c967
GD
15125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15126 ac_dummy="$PATH"
15127 for ac_dir in $ac_dummy; do
15128 test -z "$ac_dir" && ac_dir=.
15129 if test -f $ac_dir/$ac_word; then
15130 ac_cv_prog_DEREZ="DeRez"
15131 break
15132 fi
15133 done
15134 IFS="$ac_save_ifs"
15135 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15136fi
90dd450c 15137fi
21d1c967
GD
15138DEREZ="$ac_cv_prog_DEREZ"
15139if test -n "$DEREZ"; then
15140 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
15141else
15142 echo "$ac_t""no" 1>&6
3a922bb4 15143fi
698dcdb6 15144
21d1c967
GD
15145 MACOSX_BUNDLE="bundle"
15146 if test "$wxUSE_SHARED" = "yes"; then
15147 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15148 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15149 else
15150 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15151 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15152 fi
15153else
15154 if test "$wxUSE_PM" = 1; then
15155 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15156 fi
4f14bcd8 15157fi
10f2d63a 15158
703e0a69 15159
90dd450c 15160echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
17234b26 15161echo "configure:15162: checking for ANSI C header files" >&5
90dd450c 15162if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
15163 echo $ac_n "(cached) $ac_c" 1>&6
15164else
15165 cat > conftest.$ac_ext <<EOF
17234b26 15166#line 15167 "configure"
10f2d63a 15167#include "confdefs.h"
90dd450c
VZ
15168#include <stdlib.h>
15169#include <stdarg.h>
15170#include <string.h>
15171#include <float.h>
698dcdb6 15172EOF
90dd450c 15173ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 15174{ (eval echo configure:15175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15175ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15176if test -z "$ac_err"; then
15177 rm -rf conftest*
15178 ac_cv_header_stdc=yes
10f2d63a 15179else
90dd450c 15180 echo "$ac_err" >&5
698dcdb6 15181 echo "configure: failed program was:" >&5
10f2d63a 15182 cat conftest.$ac_ext >&5
90dd450c
VZ
15183 rm -rf conftest*
15184 ac_cv_header_stdc=no
10f2d63a 15185fi
90dd450c
VZ
15186rm -f conftest*
15187
15188if test $ac_cv_header_stdc = yes; then
15189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15190cat > conftest.$ac_ext <<EOF
17234b26 15191#line 15192 "configure"
90dd450c
VZ
15192#include "confdefs.h"
15193#include <string.h>
15194EOF
15195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 egrep "memchr" >/dev/null 2>&1; then
15197 :
15198else
15199 rm -rf conftest*
15200 ac_cv_header_stdc=no
10f2d63a 15201fi
90dd450c 15202rm -f conftest*
10f2d63a 15203
4f14bcd8 15204fi
90dd450c
VZ
15205
15206if test $ac_cv_header_stdc = yes; then
15207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15208cat > conftest.$ac_ext <<EOF
17234b26 15209#line 15210 "configure"
90dd450c
VZ
15210#include "confdefs.h"
15211#include <stdlib.h>
10f2d63a 15212EOF
90dd450c
VZ
15213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214 egrep "free" >/dev/null 2>&1; then
15215 :
15216else
15217 rm -rf conftest*
15218 ac_cv_header_stdc=no
15219fi
15220rm -f conftest*
10f2d63a 15221
90dd450c 15222fi
698dcdb6 15223
90dd450c
VZ
15224if test $ac_cv_header_stdc = yes; then
15225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15226if test "$cross_compiling" = yes; then
15227 :
4f14bcd8
GD
15228else
15229 cat > conftest.$ac_ext <<EOF
17234b26 15230#line 15231 "configure"
10f2d63a 15231#include "confdefs.h"
90dd450c
VZ
15232#include <ctype.h>
15233#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15234#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15236int main () { int i; for (i = 0; i < 256; i++)
15237if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15238exit (0); }
15239
698dcdb6 15240EOF
17234b26 15241if { (eval echo configure:15242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15242then
90dd450c 15243 :
10f2d63a 15244else
698dcdb6
VZ
15245 echo "configure: failed program was:" >&5
15246 cat conftest.$ac_ext >&5
4f14bcd8 15247 rm -fr conftest*
90dd450c 15248 ac_cv_header_stdc=no
10f2d63a 15249fi
4f14bcd8 15250rm -fr conftest*
10f2d63a 15251fi
698dcdb6 15252
4f14bcd8 15253fi
90dd450c 15254fi
10f2d63a 15255
90dd450c
VZ
15256echo "$ac_t""$ac_cv_header_stdc" 1>&6
15257if test $ac_cv_header_stdc = yes; then
15258 cat >> confdefs.h <<\EOF
15259#define STDC_HEADERS 1
15260EOF
698dcdb6 15261
90dd450c 15262fi
9d353d4a 15263
90dd450c 15264echo $ac_n "checking for mode_t""... $ac_c" 1>&6
17234b26 15265echo "configure:15266: checking for mode_t" >&5
90dd450c 15266if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15267 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15268else
15269 cat > conftest.$ac_ext <<EOF
17234b26 15270#line 15271 "configure"
9d353d4a 15271#include "confdefs.h"
90dd450c
VZ
15272#include <sys/types.h>
15273#if STDC_HEADERS
15274#include <stdlib.h>
15275#include <stddef.h>
15276#endif
9d353d4a 15277EOF
90dd450c
VZ
15278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15280 rm -rf conftest*
15281 ac_cv_type_mode_t=yes
9d353d4a 15282else
90dd450c
VZ
15283 rm -rf conftest*
15284 ac_cv_type_mode_t=no
9d353d4a 15285fi
90dd450c 15286rm -f conftest*
9d353d4a
RR
15287
15288fi
90dd450c
VZ
15289echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15290if test $ac_cv_type_mode_t = no; then
15291 cat >> confdefs.h <<\EOF
15292#define mode_t int
9d353d4a
RR
15293EOF
15294
90dd450c 15295fi
9d353d4a 15296
90dd450c 15297echo $ac_n "checking for off_t""... $ac_c" 1>&6
17234b26 15298echo "configure:15299: checking for off_t" >&5
90dd450c 15299if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15300 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15301else
15302 cat > conftest.$ac_ext <<EOF
17234b26 15303#line 15304 "configure"
10f2d63a 15304#include "confdefs.h"
90dd450c
VZ
15305#include <sys/types.h>
15306#if STDC_HEADERS
15307#include <stdlib.h>
15308#include <stddef.h>
15309#endif
698dcdb6 15310EOF
90dd450c
VZ
15311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15312 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15313 rm -rf conftest*
15314 ac_cv_type_off_t=yes
698dcdb6 15315else
90dd450c
VZ
15316 rm -rf conftest*
15317 ac_cv_type_off_t=no
698dcdb6 15318fi
90dd450c 15319rm -f conftest*
698dcdb6
VZ
15320
15321fi
90dd450c
VZ
15322echo "$ac_t""$ac_cv_type_off_t" 1>&6
15323if test $ac_cv_type_off_t = no; then
15324 cat >> confdefs.h <<\EOF
15325#define off_t long
10f2d63a
VZ
15326EOF
15327
90dd450c 15328fi
10f2d63a 15329
90dd450c 15330echo $ac_n "checking for pid_t""... $ac_c" 1>&6
17234b26 15331echo "configure:15332: checking for pid_t" >&5
90dd450c 15332if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15333 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15334else
15335 cat > conftest.$ac_ext <<EOF
17234b26 15336#line 15337 "configure"
10f2d63a 15337#include "confdefs.h"
90dd450c
VZ
15338#include <sys/types.h>
15339#if STDC_HEADERS
15340#include <stdlib.h>
15341#include <stddef.h>
15342#endif
698dcdb6 15343EOF
90dd450c
VZ
15344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15346 rm -rf conftest*
15347 ac_cv_type_pid_t=yes
698dcdb6 15348else
90dd450c
VZ
15349 rm -rf conftest*
15350 ac_cv_type_pid_t=no
4f14bcd8 15351fi
90dd450c 15352rm -f conftest*
698dcdb6
VZ
15353
15354fi
90dd450c
VZ
15355echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15356if test $ac_cv_type_pid_t = no; then
15357 cat >> confdefs.h <<\EOF
15358#define pid_t int
10f2d63a
VZ
15359EOF
15360
90dd450c 15361fi
18dbb1f6 15362
90dd450c 15363echo $ac_n "checking for size_t""... $ac_c" 1>&6
17234b26 15364echo "configure:15365: checking for size_t" >&5
90dd450c 15365if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15366 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15367else
15368 cat > conftest.$ac_ext <<EOF
17234b26 15369#line 15370 "configure"
4f14bcd8
GD
15370#include "confdefs.h"
15371#include <sys/types.h>
90dd450c
VZ
15372#if STDC_HEADERS
15373#include <stdlib.h>
15374#include <stddef.h>
4f14bcd8 15375#endif
18dbb1f6 15376EOF
90dd450c
VZ
15377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15378 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15379 rm -rf conftest*
90dd450c 15380 ac_cv_type_size_t=yes
18dbb1f6 15381else
18dbb1f6 15382 rm -rf conftest*
90dd450c 15383 ac_cv_type_size_t=no
18dbb1f6
VZ
15384fi
15385rm -f conftest*
90dd450c 15386
1e487827 15387fi
90dd450c
VZ
15388echo "$ac_t""$ac_cv_type_size_t" 1>&6
15389if test $ac_cv_type_size_t = no; then
15390 cat >> confdefs.h <<\EOF
15391#define size_t unsigned
15392EOF
15393
15394fi
15395
15396echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
17234b26 15397echo "configure:15398: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15398if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15399 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15400else
15401 cat > conftest.$ac_ext <<EOF
17234b26 15402#line 15403 "configure"
b3e8d00a 15403#include "confdefs.h"
90dd450c 15404#include <sys/types.h>
b3e8d00a 15405EOF
90dd450c
VZ
15406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15407 egrep "uid_t" >/dev/null 2>&1; then
15408 rm -rf conftest*
15409 ac_cv_type_uid_t=yes
b3e8d00a 15410else
90dd450c
VZ
15411 rm -rf conftest*
15412 ac_cv_type_uid_t=no
b3e8d00a 15413fi
90dd450c 15414rm -f conftest*
b3e8d00a 15415
4f14bcd8
GD
15416fi
15417
90dd450c
VZ
15418echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15419if test $ac_cv_type_uid_t = no; then
4f14bcd8 15420 cat >> confdefs.h <<\EOF
90dd450c
VZ
15421#define uid_t int
15422EOF
15423
15424 cat >> confdefs.h <<\EOF
15425#define gid_t int
b3e8d00a 15426EOF
4f14bcd8 15427
b3e8d00a 15428fi
b3e8d00a
VZ
15429
15430
90dd450c
VZ
15431
15432ac_ext=C
4f14bcd8
GD
15433# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15434ac_cpp='$CXXCPP $CPPFLAGS'
15435ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15436ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15437cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15438
15439echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
17234b26 15440echo "configure:15441: checking if size_t is unsigned int" >&5
90dd450c
VZ
15441if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15442 echo $ac_n "(cached) $ac_c" 1>&6
15443else
15444 cat > conftest.$ac_ext <<EOF
17234b26 15445#line 15446 "configure"
10f2d63a 15446#include "confdefs.h"
90dd450c
VZ
15447#include <stddef.h>
15448int main() {
15449
15450 return 0; }
15451
15452 struct Foo { void foo(size_t); void foo(unsigned int); };
15453
15454 int bar() {
15455
15456; return 0; }
698dcdb6 15457EOF
17234b26 15458if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15459 rm -rf conftest*
15460 wx_cv_size_t_is_uint=no
698dcdb6
VZ
15461else
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15464 rm -rf conftest*
90dd450c
VZ
15465 wx_cv_size_t_is_uint=yes
15466
698dcdb6
VZ
15467fi
15468rm -f conftest*
90dd450c 15469
698dcdb6
VZ
15470fi
15471
90dd450c 15472echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15473
90dd450c 15474if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15475 cat >> confdefs.h <<\EOF
90dd450c 15476#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15477EOF
15478
90dd450c
VZ
15479else
15480 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
17234b26 15481echo "configure:15482: checking if size_t is unsigned long" >&5
90dd450c 15482if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15483 echo $ac_n "(cached) $ac_c" 1>&6
15484else
15485 cat > conftest.$ac_ext <<EOF
17234b26 15486#line 15487 "configure"
10f2d63a 15487#include "confdefs.h"
90dd450c
VZ
15488#include <stddef.h>
15489int main() {
15490
15491 return 0; }
15492
15493 struct Foo { void foo(size_t); void foo(unsigned long); };
15494
15495 int bar() {
15496
15497; return 0; }
698dcdb6 15498EOF
17234b26 15499if { (eval echo configure:15500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15500 rm -rf conftest*
90dd450c 15501 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15502else
15503 echo "configure: failed program was:" >&5
15504 cat conftest.$ac_ext >&5
15505 rm -rf conftest*
90dd450c
VZ
15506 wx_cv_size_t_is_ulong=yes
15507
698dcdb6
VZ
15508fi
15509rm -f conftest*
90dd450c 15510
698dcdb6 15511fi
10f2d63a 15512
90dd450c 15513echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15514
90dd450c
VZ
15515 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15516 cat >> confdefs.h <<\EOF
15517#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15518EOF
15519
15520 fi
90dd450c 15521fi
1e487827 15522
90dd450c 15523ac_ext=c
4f14bcd8
GD
15524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15525ac_cpp='$CPP $CPPFLAGS'
15526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15528cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15529
698dcdb6
VZ
15530
15531
90dd450c 15532echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17234b26 15533echo "configure:15534: checking for pw_gecos in struct passwd" >&5
90dd450c 15534if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15535 echo $ac_n "(cached) $ac_c" 1>&6
15536else
15537
90dd450c 15538 cat > conftest.$ac_ext <<EOF
17234b26 15539#line 15540 "configure"
4f14bcd8 15540#include "confdefs.h"
90dd450c 15541#include <pwd.h>
4f14bcd8 15542int main() {
f6bcfd97 15543
90dd450c
VZ
15544 char *p;
15545 struct passwd *pw;
15546 p = pw->pw_gecos;
15547
698dcdb6
VZ
15548; return 0; }
15549EOF
17234b26 15550if { (eval echo configure:15551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15551 rm -rf conftest*
15552
90dd450c
VZ
15553 wx_cv_struct_pw_gecos=yes
15554
10f2d63a 15555else
698dcdb6
VZ
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559
90dd450c
VZ
15560 wx_cv_struct_pw_gecos=no
15561
15562
4f14bcd8
GD
15563fi
15564rm -f conftest*
90dd450c 15565
c521c494 15566
4f14bcd8 15567fi
c521c494 15568
90dd450c 15569echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15570
90dd450c 15571if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15572 cat >> confdefs.h <<\EOF
90dd450c 15573#define HAVE_PW_GECOS 1
4f14bcd8 15574EOF
c521c494 15575
90dd450c 15576fi
4f14bcd8
GD
15577
15578
d29b553b
VZ
15579WCHAR_OK=0
15580if test "$wx_cv_sizeof_wchar_t" != "0"; then
15581 WCHAR_LINK=
7a30264c
VZ
15582 for ac_func in wcslen
15583do
15584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 15585echo "configure:15586: checking for $ac_func" >&5
7a30264c 15586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15587 echo $ac_n "(cached) $ac_c" 1>&6
15588else
7a30264c 15589 cat > conftest.$ac_ext <<EOF
17234b26 15590#line 15591 "configure"
4f14bcd8 15591#include "confdefs.h"
7a30264c
VZ
15592/* System header to define __stub macros and hopefully few prototypes,
15593 which can conflict with char $ac_func(); below. */
15594#include <assert.h>
4f14bcd8
GD
15595/* Override any gcc2 internal prototype to avoid an error. */
15596/* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
7a30264c 15598char $ac_func();
4f14bcd8
GD
15599
15600int main() {
7a30264c
VZ
15601
15602/* The GNU C library defines this for functions which it implements
15603 to always fail with ENOSYS. Some functions are actually named
15604 something starting with __ and the normal name is an alias. */
15605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606choke me
15607#else
15608$ac_func();
15609#endif
15610
698dcdb6
VZ
15611; return 0; }
15612EOF
17234b26 15613if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15614 rm -rf conftest*
7a30264c 15615 eval "ac_cv_func_$ac_func=yes"
c521c494 15616else
698dcdb6
VZ
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
7a30264c 15620 eval "ac_cv_func_$ac_func=no"
6232543b 15621fi
698dcdb6 15622rm -f conftest*
1e487827 15623fi
7a30264c
VZ
15624
15625if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15626 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15628 cat >> confdefs.h <<EOF
15629#define $ac_tr_func 1
15630EOF
15631
15632 cat >> confdefs.h <<\EOF
4f14bcd8 15633#define HAVE_WCSLEN 1
9d8deca0
VZ
15634EOF
15635
7a30264c
VZ
15636 WCHAR_OK=1
15637
9d8deca0 15638else
4f14bcd8 15639 echo "$ac_t""no" 1>&6
7a30264c
VZ
15640fi
15641done
9d8deca0 15642
7a30264c
VZ
15643
15644 if test "$WCHAR_OK" = 0; then
15645 if test "$TOOLKIT" = "MSW"; then
15646 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17234b26 15647echo "configure:15648: checking for wcslen in -lmsvcrt" >&5
7a30264c 15648ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15650 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15651else
4f14bcd8 15652 ac_save_LIBS="$LIBS"
7a30264c 15653LIBS="-lmsvcrt $LIBS"
4f14bcd8 15654cat > conftest.$ac_ext <<EOF
17234b26 15655#line 15656 "configure"
10f2d63a 15656#include "confdefs.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. */
15660char wcslen();
10f2d63a 15661
698dcdb6 15662int main() {
4f14bcd8 15663wcslen()
698dcdb6
VZ
15664; return 0; }
15665EOF
17234b26 15666if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15667 rm -rf conftest*
4f14bcd8 15668 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15669else
698dcdb6
VZ
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
4f14bcd8 15673 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15674fi
698dcdb6 15675rm -f conftest*
4f14bcd8 15676LIBS="$ac_save_LIBS"
703e0a69 15677
1e487827 15678fi
4f14bcd8
GD
15679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
15681
7a30264c 15682 cat >> confdefs.h <<\EOF
4f14bcd8 15683#define HAVE_WCSLEN 1
9d8deca0
VZ
15684EOF
15685
7a30264c
VZ
15686 WCHAR_OK=1
15687
4f14bcd8
GD
15688else
15689 echo "$ac_t""no" 1>&6
d29b553b 15690fi
698dcdb6 15691
7a30264c
VZ
15692 else
15693 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17234b26 15694echo "configure:15695: checking for wcslen in -lw" >&5
7a30264c 15695ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698else
4f14bcd8 15699 ac_save_LIBS="$LIBS"
7a30264c 15700LIBS="-lw $LIBS"
4f14bcd8 15701cat > conftest.$ac_ext <<EOF
17234b26 15702#line 15703 "configure"
95c8801c 15703#include "confdefs.h"
4f14bcd8
GD
15704/* Override any gcc2 internal prototype to avoid an error. */
15705/* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707char wcslen();
95c8801c 15708
4f14bcd8
GD
15709int main() {
15710wcslen()
698dcdb6
VZ
15711; return 0; }
15712EOF
17234b26 15713if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15714 rm -rf conftest*
4f14bcd8 15715 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15716else
698dcdb6
VZ
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
4f14bcd8 15720 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15721fi
698dcdb6 15722rm -f conftest*
4f14bcd8 15723LIBS="$ac_save_LIBS"
95c8801c
VS
15724
15725fi
4f14bcd8
GD
15726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727 echo "$ac_t""yes" 1>&6
15728
7a30264c 15729 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15730#define HAVE_WCSLEN 1
15731EOF
698dcdb6 15732
7a30264c
VZ
15733 WCHAR_LINK=" -lw"
15734 WCHAR_OK=1
15735
4f14bcd8
GD
15736else
15737 echo "$ac_t""no" 1>&6
15738fi
10f2d63a 15739
7a30264c 15740 fi
d29b553b 15741 fi
4f14bcd8 15742fi
95c8801c 15743
d29b553b
VZ
15744if test "$WCHAR_OK" = 1; then
15745 cat >> confdefs.h <<\EOF
15746#define wxUSE_WCHAR_T 1
15747EOF
10f2d63a 15748
1e487827 15749
d29b553b 15750 for ac_func in wcsrtombs
eb4efbdc 15751do
698dcdb6 15752echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 15753echo "configure:15754: checking for $ac_func" >&5
698dcdb6
VZ
15754if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15756else
15757 cat > conftest.$ac_ext <<EOF
17234b26 15758#line 15759 "configure"
eb4efbdc
VZ
15759#include "confdefs.h"
15760/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15761 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15762#include <assert.h>
15763/* Override any gcc2 internal prototype to avoid an error. */
15764/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15765 builtin and then its argument prototype would still apply. */
15766char $ac_func();
15767
15768int main() {
eb4efbdc
VZ
15769
15770/* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15774choke me
15775#else
698dcdb6 15776$ac_func();
eb4efbdc
VZ
15777#endif
15778
698dcdb6 15779; return 0; }
eb4efbdc 15780EOF
17234b26 15781if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15782 rm -rf conftest*
15783 eval "ac_cv_func_$ac_func=yes"
15784else
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15787 rm -rf conftest*
15788 eval "ac_cv_func_$ac_func=no"
15789fi
15790rm -f conftest*
15791fi
eb4efbdc 15792
698dcdb6
VZ
15793if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15794 echo "$ac_t""yes" 1>&6
15795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15796 cat >> confdefs.h <<EOF
15797#define $ac_tr_func 1
15798EOF
15799
15800else
15801 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15802fi
15803done
15804
d29b553b 15805else
a1ea5055
GD
15806 if test "$USE_DARWIN" = 1; then
15807 cat >> confdefs.h <<\EOF
15808#define wxUSE_WCHAR_T 1
15809EOF
15810
15811 else
15812 echo "configure: warning: Wide character support is unavailable" 1>&2
15813 fi
d29b553b 15814fi
698dcdb6 15815
4f14bcd8 15816echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17234b26 15817echo "configure:15818: checking for vprintf" >&5
4f14bcd8 15818if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15819 echo $ac_n "(cached) $ac_c" 1>&6
15820else
4f14bcd8 15821 cat > conftest.$ac_ext <<EOF
17234b26 15822#line 15823 "configure"
f6bcfd97 15823#include "confdefs.h"
4f14bcd8
GD
15824/* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char vprintf(); below. */
15826#include <assert.h>
15827/* Override any gcc2 internal prototype to avoid an error. */
15828/* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830char vprintf();
15831
698dcdb6 15832int main() {
f6bcfd97 15833
4f14bcd8
GD
15834/* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837#if defined (__stub_vprintf) || defined (__stub___vprintf)
15838choke me
15839#else
15840vprintf();
15841#endif
f6bcfd97 15842
698dcdb6
VZ
15843; return 0; }
15844EOF
17234b26 15845if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15846 rm -rf conftest*
4f14bcd8 15847 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15848else
698dcdb6
VZ
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 rm -rf conftest*
4f14bcd8 15852 eval "ac_cv_func_vprintf=no"
6232543b 15853fi
698dcdb6 15854rm -f conftest*
1e487827 15855fi
698dcdb6 15856
4f14bcd8
GD
15857if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15858 echo "$ac_t""yes" 1>&6
15859 cat >> confdefs.h <<\EOF
15860#define HAVE_VPRINTF 1
f6bcfd97
BP
15861EOF
15862
4f14bcd8
GD
15863else
15864 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15865fi
15866
4f14bcd8
GD
15867if test "$ac_cv_func_vprintf" != yes; then
15868echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17234b26 15869echo "configure:15870: checking for _doprnt" >&5
4f14bcd8 15870if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872else
15873 cat > conftest.$ac_ext <<EOF
17234b26 15874#line 15875 "configure"
10f2d63a
VZ
15875#include "confdefs.h"
15876/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15877 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15878#include <assert.h>
15879/* Override any gcc2 internal prototype to avoid an error. */
15880/* We use char because int might match the return type of a gcc2
698dcdb6 15881 builtin and then its argument prototype would still apply. */
4f14bcd8 15882char _doprnt();
698dcdb6
VZ
15883
15884int main() {
10f2d63a
VZ
15885
15886/* The GNU C library defines this for functions which it implements
15887 to always fail with ENOSYS. Some functions are actually named
15888 something starting with __ and the normal name is an alias. */
4f14bcd8 15889#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15890choke me
15891#else
4f14bcd8 15892_doprnt();
10f2d63a
VZ
15893#endif
15894
698dcdb6 15895; return 0; }
10f2d63a 15896EOF
17234b26 15897if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15898 rm -rf conftest*
4f14bcd8 15899 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15900else
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 rm -rf conftest*
4f14bcd8 15904 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15905fi
15906rm -f conftest*
15907fi
270a909e 15908
4f14bcd8 15909if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15910 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15911 cat >> confdefs.h <<\EOF
15912#define HAVE_DOPRNT 1
698dcdb6 15913EOF
4f14bcd8 15914
698dcdb6
VZ
15915else
15916 echo "$ac_t""no" 1>&6
270a909e 15917fi
270a909e 15918
4f14bcd8 15919fi
1e487827 15920
52e8b690 15921
52e8b690 15922
52e8b690 15923
52e8b690 15924
52e8b690 15925
4f14bcd8 15926echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
17234b26 15927echo "configure:15928: checking for vsnprintf" >&5
4f14bcd8 15928if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15929 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15930else
4f14bcd8 15931
af15babd 15932 cat > conftest.$ac_ext <<EOF
17234b26 15933#line 15934 "configure"
c63c7106 15934#include "confdefs.h"
698dcdb6 15935
4f14bcd8
GD
15936 #include <stdio.h>
15937 #include <stdarg.h>
15938
af15babd
VZ
15939int main() {
15940
4f14bcd8
GD
15941 int wx_test_vsnprintf(const char *, ...);
15942
15943 wx_test_vsnprintf("%s");
15944 return 0;
15945 }
15946
15947 int wx_test_vsnprintf(const char *fmt, ...)
15948 {
15949 char *s;
15950
15951 va_list argp;
15952 va_start(argp, fmt);
15953 vsnprintf(s, 42, fmt, argp);
15954 va_end(argp);
15955
af15babd
VZ
15956; return 0; }
15957EOF
17234b26 15958if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15959 rm -rf conftest*
15960
4f14bcd8
GD
15961 wx_cv_func_vsnprintf=yes
15962
af15babd
VZ
15963else
15964 echo "configure: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 rm -rf conftest*
15967
4f14bcd8 15968 cat > conftest.$ac_ext <<EOF
17234b26 15969#line 15970 "configure"
af15babd 15970#include "confdefs.h"
af15babd 15971
4f14bcd8
GD
15972 #include <stdio.h>
15973 #include <stdarg.h>
15974
af15babd
VZ
15975int main() {
15976
4f14bcd8
GD
15977 int wx_test_vsnprintf(const char *, ...);
15978
15979 wx_test_vsnprintf("%s");
15980 return 0;
15981 }
15982
15983 int wx_test_vsnprintf(const char *fmt, ...)
15984 {
15985 char *s;
af15babd 15986
4f14bcd8
GD
15987 va_list argp;
15988 va_start(argp, fmt);
15989 _vsnprintf(s, 42, fmt, argp);
15990 va_end(argp);
15991
af15babd
VZ
15992; return 0; }
15993EOF
17234b26 15994if { (eval echo configure:15995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15995 rm -rf conftest*
4f14bcd8
GD
15996
15997 wx_cv_func_vsnprintf=yes
15998
af15babd
VZ
15999else
16000 echo "configure: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16002 rm -rf conftest*
4f14bcd8
GD
16003
16004 wx_cv_func_vsnprintf=no
16005
af15babd
VZ
16006fi
16007rm -f conftest*
4f14bcd8 16008
af15babd 16009fi
4f14bcd8 16010rm -f conftest*
af15babd 16011
af15babd 16012fi
af15babd 16013
4f14bcd8 16014echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 16015
4f14bcd8
GD
16016if test "$wx_cv_func_vsnprintf" = yes; then
16017 cat >> confdefs.h <<\EOF
16018#define HAVE_VSNPRINTF 1
16019EOF
16020
16021else
f9bc1684 16022 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
16023fi
16024
4f14bcd8 16025echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
17234b26 16026echo "configure:16027: checking for vsscanf" >&5
4f14bcd8 16027if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
16028 echo $ac_n "(cached) $ac_c" 1>&6
16029else
4f14bcd8 16030
af15babd 16031 cat > conftest.$ac_ext <<EOF
17234b26 16032#line 16033 "configure"
af15babd 16033#include "confdefs.h"
af15babd 16034
4f14bcd8
GD
16035 #include <stdio.h>
16036 #include <stdarg.h>
16037
af15babd
VZ
16038int main() {
16039
4f14bcd8
GD
16040 int wx_test_vsscanf(const char *, ...);
16041
16042 wx_test_vsscanf("%d");
16043 return 0;
16044 }
af15babd 16045
4f14bcd8
GD
16046 int wx_test_vsscanf(const char *fmt, ...)
16047 {
16048 va_list argp;
16049 va_start(argp, fmt);
16050 vsscanf("42", fmt, argp);
16051 va_end(argp);
16052
af15babd
VZ
16053; return 0; }
16054EOF
17234b26 16055if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16056 rm -rf conftest*
4f14bcd8
GD
16057
16058 wx_cv_func_vsscanf=yes
16059
af15babd
VZ
16060else
16061 echo "configure: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 rm -rf conftest*
4f14bcd8
GD
16064
16065 wx_cv_func_vsscanf=no
16066
af15babd
VZ
16067fi
16068rm -f conftest*
4f14bcd8 16069
af15babd
VZ
16070fi
16071
4f14bcd8
GD
16072echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16073
16074if test "$wx_cv_func_vsscanf" = yes; then
16075 cat >> confdefs.h <<\EOF
16076#define HAVE_VSSCANF 1
af15babd 16077EOF
4f14bcd8 16078
af15babd 16079fi
af15babd 16080
4f14bcd8 16081if test "$TOOLKIT" != "MSW"; then
af15babd 16082
4f14bcd8
GD
16083
16084
16085ac_ext=C
16086# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16087ac_cpp='$CXXCPP $CPPFLAGS'
16088ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16089ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16090cross_compiling=$ac_cv_prog_cxx_cross
16091
b040e242
VS
16092
16093
16094 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16095if test "${with_libiconv_prefix+set}" = set; then
16096 withval="$with_libiconv_prefix"
16097
16098 for dir in `echo "$withval" | tr : ' '`; do
16099 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16100 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16101 done
16102
16103fi
16104
16105
16106 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17234b26 16107echo "configure:16108: checking for iconv" >&5
b040e242 16108if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
16109 echo $ac_n "(cached) $ac_c" 1>&6
16110else
4f14bcd8 16111
b040e242
VS
16112 am_cv_func_iconv="no, consider installing GNU libiconv"
16113 am_cv_lib_iconv=no
4f14bcd8 16114 cat > conftest.$ac_ext <<EOF
17234b26 16115#line 16116 "configure"
af15babd 16116#include "confdefs.h"
b040e242 16117#include <stdlib.h>
4f14bcd8 16118#include <iconv.h>
af15babd 16119int main() {
b040e242
VS
16120iconv_t cd = iconv_open("","");
16121 iconv(cd,NULL,NULL,NULL,NULL);
16122 iconv_close(cd);
af15babd
VZ
16123; return 0; }
16124EOF
17234b26 16125if { (eval echo configure:16126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16126 rm -rf conftest*
b040e242 16127 am_cv_func_iconv=yes
af15babd
VZ
16128else
16129 echo "configure: failed program was:" >&5
16130 cat conftest.$ac_ext >&5
b040e242
VS
16131fi
16132rm -f conftest*
16133 if test "$am_cv_func_iconv" != yes; then
16134 am_save_LIBS="$LIBS"
16135 LIBS="$LIBS -liconv"
16136 cat > conftest.$ac_ext <<EOF
17234b26 16137#line 16138 "configure"
b040e242
VS
16138#include "confdefs.h"
16139#include <stdlib.h>
16140#include <iconv.h>
16141int main() {
16142iconv_t cd = iconv_open("","");
16143 iconv(cd,NULL,NULL,NULL,NULL);
16144 iconv_close(cd);
16145; return 0; }
16146EOF
17234b26 16147if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16148 rm -rf conftest*
b040e242
VS
16149 am_cv_lib_iconv=yes
16150 am_cv_func_iconv=yes
16151else
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
af15babd
VZ
16154fi
16155rm -f conftest*
b040e242
VS
16156 LIBS="$am_save_LIBS"
16157 fi
16158
16159fi
16160
16161echo "$ac_t""$am_cv_func_iconv" 1>&6
16162 if test "$am_cv_func_iconv" = yes; then
16163 cat >> confdefs.h <<\EOF
16164#define HAVE_ICONV 1
16165EOF
16166
b7043674 16167 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17234b26 16168echo "configure:16169: checking if iconv needs const" >&5
b7043674 16169if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16170 echo $ac_n "(cached) $ac_c" 1>&6
16171else
b7043674 16172 cat > conftest.$ac_ext <<EOF
17234b26 16173#line 16174 "configure"
b040e242
VS
16174#include "confdefs.h"
16175
16176#include <stdlib.h>
16177#include <iconv.h>
16178extern
16179#ifdef __cplusplus
16180"C"
16181#endif
16182#if defined(__STDC__) || defined(__cplusplus)
16183size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16184#else
16185size_t iconv();
16186#endif
b7043674 16187
b040e242 16188int main() {
af15babd 16189
b040e242
VS
16190; return 0; }
16191EOF
17234b26 16192if { (eval echo configure:16193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16193 rm -rf conftest*
b7043674 16194 wx_cv_func_iconv_const="no"
b040e242
VS
16195else
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 rm -rf conftest*
b7043674
VZ
16199 wx_cv_func_iconv_const="yes"
16200
b040e242
VS
16201fi
16202rm -f conftest*
b7043674 16203
af15babd 16204fi
af15babd 16205
b7043674
VZ
16206echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16207
16208 iconv_const=
1c405bb5 16209 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16210 iconv_const="const"
16211 fi
16212
b040e242 16213 cat >> confdefs.h <<EOF
b7043674 16214#define ICONV_CONST $iconv_const
b040e242
VS
16215EOF
16216
16217 fi
16218 LIBICONV=
16219 if test "$am_cv_lib_iconv" = yes; then
16220 LIBICONV="-liconv"
16221 fi
16222
16223
16224LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16225ac_ext=c
16226# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16227ac_cpp='$CPP $CPPFLAGS'
16228ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16229ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16230cross_compiling=$ac_cv_prog_cc_cross
af15babd 16231
af15babd 16232
4f14bcd8
GD
16233if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16234 for ac_func in sigaction
af15babd
VZ
16235do
16236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16237echo "configure:16238: checking for $ac_func" >&5
af15babd
VZ
16238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240else
16241 cat > conftest.$ac_ext <<EOF
17234b26 16242#line 16243 "configure"
af15babd
VZ
16243#include "confdefs.h"
16244/* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func(); below. */
16246#include <assert.h>
16247/* Override any gcc2 internal prototype to avoid an error. */
16248/* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250char $ac_func();
16251
16252int main() {
16253
16254/* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258choke me
16259#else
16260$ac_func();
16261#endif
16262
16263; return 0; }
16264EOF
17234b26 16265if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16266 rm -rf conftest*
16267 eval "ac_cv_func_$ac_func=yes"
16268else
16269 echo "configure: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 rm -rf conftest*
16272 eval "ac_cv_func_$ac_func=no"
16273fi
16274rm -f conftest*
16275fi
16276
16277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16278 echo "$ac_t""yes" 1>&6
16279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16280 cat >> confdefs.h <<EOF
16281#define $ac_tr_func 1
16282EOF
4f14bcd8 16283
af15babd
VZ
16284else
16285 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16286fi
16287done
16288
16289
16290 if test "$ac_cv_func_sigaction" = "no"; then
16291 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16292 wxUSE_ON_FATAL_EXCEPTION=no
16293 fi
16294
16295 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16296
16297 ac_ext=C
16298# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16299ac_cpp='$CXXCPP $CPPFLAGS'
16300ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16301ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16302cross_compiling=$ac_cv_prog_cxx_cross
16303
16304
16305 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17234b26 16306echo "configure:16307: checking for sa_handler type" >&5
4f14bcd8 16307if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16308 echo $ac_n "(cached) $ac_c" 1>&6
16309else
4f14bcd8
GD
16310
16311 cat > conftest.$ac_ext <<EOF
17234b26 16312#line 16313 "configure"
af15babd 16313#include "confdefs.h"
4f14bcd8 16314#include <signal.h>
af15babd 16315int main() {
4f14bcd8
GD
16316
16317 extern void testSigHandler(int);
16318
16319 struct sigaction sa;
16320 sa.sa_handler = testSigHandler;
16321
af15babd
VZ
16322; return 0; }
16323EOF
17234b26 16324if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16325 rm -rf conftest*
4f14bcd8
GD
16326
16327 wx_cv_type_sa_handler=int
16328
af15babd
VZ
16329else
16330 echo "configure: failed program was:" >&5
16331 cat conftest.$ac_ext >&5
16332 rm -rf conftest*
4f14bcd8
GD
16333
16334 wx_cv_type_sa_handler=void
16335
af15babd
VZ
16336fi
16337rm -f conftest*
4f14bcd8
GD
16338
16339fi
16340
16341echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16342
16343 ac_ext=c
16344# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16345ac_cpp='$CPP $CPPFLAGS'
16346ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16347ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16348cross_compiling=$ac_cv_prog_cc_cross
af15babd 16349
4f14bcd8
GD
16350
16351 cat >> confdefs.h <<EOF
16352#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16353EOF
16354
4f14bcd8
GD
16355 fi
16356fi
af15babd 16357
4f14bcd8 16358for ac_func in vfork
af15babd
VZ
16359do
16360echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16361echo "configure:16362: checking for $ac_func" >&5
af15babd
VZ
16362if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16364else
16365 cat > conftest.$ac_ext <<EOF
17234b26 16366#line 16367 "configure"
af15babd
VZ
16367#include "confdefs.h"
16368/* System header to define __stub macros and hopefully few prototypes,
16369 which can conflict with char $ac_func(); below. */
16370#include <assert.h>
16371/* Override any gcc2 internal prototype to avoid an error. */
16372/* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16374char $ac_func();
16375
16376int main() {
16377
16378/* The GNU C library defines this for functions which it implements
16379 to always fail with ENOSYS. Some functions are actually named
16380 something starting with __ and the normal name is an alias. */
16381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382choke me
16383#else
16384$ac_func();
16385#endif
16386
16387; return 0; }
16388EOF
17234b26 16389if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16390 rm -rf conftest*
16391 eval "ac_cv_func_$ac_func=yes"
16392else
16393 echo "configure: failed program was:" >&5
16394 cat conftest.$ac_ext >&5
16395 rm -rf conftest*
16396 eval "ac_cv_func_$ac_func=no"
16397fi
16398rm -f conftest*
16399fi
16400
16401if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16402 echo "$ac_t""yes" 1>&6
16403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16404 cat >> confdefs.h <<EOF
16405#define $ac_tr_func 1
16406EOF
4f14bcd8 16407
af15babd
VZ
16408else
16409 echo "$ac_t""no" 1>&6
af15babd
VZ
16410fi
16411done
16412
af15babd 16413
ade35f11
VZ
16414for ac_func in mkstemp mktemp
16415do
16416echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16417echo "configure:16418: checking for $ac_func" >&5
ade35f11
VZ
16418if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16419 echo $ac_n "(cached) $ac_c" 1>&6
16420else
16421 cat > conftest.$ac_ext <<EOF
17234b26 16422#line 16423 "configure"
ade35f11
VZ
16423#include "confdefs.h"
16424/* System header to define __stub macros and hopefully few prototypes,
16425 which can conflict with char $ac_func(); below. */
16426#include <assert.h>
16427/* Override any gcc2 internal prototype to avoid an error. */
16428/* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430char $ac_func();
16431
16432int main() {
16433
16434/* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438choke me
16439#else
16440$ac_func();
16441#endif
16442
16443; return 0; }
16444EOF
17234b26 16445if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16446 rm -rf conftest*
16447 eval "ac_cv_func_$ac_func=yes"
16448else
16449 echo "configure: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16451 rm -rf conftest*
16452 eval "ac_cv_func_$ac_func=no"
16453fi
16454rm -f conftest*
16455fi
16456
16457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16458 echo "$ac_t""yes" 1>&6
16459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16460 cat >> confdefs.h <<EOF
16461#define $ac_tr_func 1
16462EOF
16463 break
16464else
16465 echo "$ac_t""no" 1>&6
16466fi
16467done
16468
16469
4f14bcd8 16470echo $ac_n "checking for statfs""... $ac_c" 1>&6
17234b26 16471echo "configure:16472: checking for statfs" >&5
4f14bcd8
GD
16472if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474else
16475 cat > conftest.$ac_ext <<EOF
17234b26 16476#line 16477 "configure"
4f14bcd8
GD
16477#include "confdefs.h"
16478
16479 #if defined(__BSD__)
16480 #include <sys/param.h>
16481 #include <sys/mount.h>
16482 #else
16483 #include <sys/vfs.h>
16484 #endif
16485
16486int main() {
16487
16488 long l;
16489 struct statfs fs;
16490 statfs("/", &fs);
16491 l = fs.f_bsize;
16492 l += fs.f_blocks;
16493 l += fs.f_bavail;
16494
16495; return 0; }
16496EOF
17234b26 16497if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16498 rm -rf conftest*
16499
16500 wx_cv_func_statfs=yes
16501
16502else
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16505 rm -rf conftest*
16506
16507 wx_cv_func_statfs=no
af15babd
VZ
16508
16509
16510fi
4f14bcd8 16511rm -f conftest*
af15babd
VZ
16512
16513fi
16514
4f14bcd8
GD
16515echo "$ac_t""$wx_cv_func_statfs" 1>&6
16516
16517if test "$wx_cv_func_statfs" = "yes"; then
16518 cat >> confdefs.h <<\EOF
16519#define HAVE_STATFS 1
16520EOF
16521
16522else
16523 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17234b26 16524echo "configure:16525: checking for statvfs" >&5
4f14bcd8 16525if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16526 echo $ac_n "(cached) $ac_c" 1>&6
16527else
16528 cat > conftest.$ac_ext <<EOF
17234b26 16529#line 16530 "configure"
af15babd 16530#include "confdefs.h"
af15babd 16531
4f14bcd8
GD
16532 #include <sys/statvfs.h>
16533
af15babd
VZ
16534int main() {
16535
4f14bcd8
GD
16536 long l;
16537 struct statvfs fs;
16538 statvfs("/", &fs);
16539 l = fs.f_bsize;
16540 l += fs.f_blocks;
16541 l += fs.f_bavail;
16542
af15babd
VZ
16543; return 0; }
16544EOF
17234b26 16545if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16546 rm -rf conftest*
4f14bcd8
GD
16547
16548 wx_cv_func_statvfs=yes
16549
af15babd
VZ
16550else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
4f14bcd8
GD
16554
16555 wx_cv_func_statvfs=no
16556
16557
af15babd
VZ
16558fi
16559rm -f conftest*
4f14bcd8 16560
af15babd
VZ
16561fi
16562
4f14bcd8 16563echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16564
4f14bcd8
GD
16565 if test "$wx_cv_func_statvfs" = "yes"; then
16566 cat >> confdefs.h <<\EOF
16567#define HAVE_STATVFS 1
16568EOF
af15babd 16569
4f14bcd8
GD
16570 else
16571 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16572 fi
16573fi
af15babd 16574
4f14bcd8
GD
16575if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16576 for ac_func in fcntl flock
af15babd
VZ
16577do
16578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16579echo "configure:16580: checking for $ac_func" >&5
af15babd
VZ
16580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16581 echo $ac_n "(cached) $ac_c" 1>&6
16582else
16583 cat > conftest.$ac_ext <<EOF
17234b26 16584#line 16585 "configure"
af15babd
VZ
16585#include "confdefs.h"
16586/* System header to define __stub macros and hopefully few prototypes,
16587 which can conflict with char $ac_func(); below. */
16588#include <assert.h>
16589/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16590/* We use char because int might match the return type of a gcc2
16591 builtin and then its argument prototype would still apply. */
16592char $ac_func();
16593
16594int main() {
16595
16596/* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16600choke me
16601#else
16602$ac_func();
16603#endif
16604
16605; return 0; }
16606EOF
17234b26 16607if { (eval echo configure:16608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=yes"
16610else
16611 echo "configure: failed program was:" >&5
16612 cat conftest.$ac_ext >&5
16613 rm -rf conftest*
16614 eval "ac_cv_func_$ac_func=no"
16615fi
16616rm -f conftest*
16617fi
16618
16619if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16620 echo "$ac_t""yes" 1>&6
16621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16622 cat >> confdefs.h <<EOF
16623#define $ac_tr_func 1
16624EOF
4f14bcd8 16625 break
af15babd
VZ
16626else
16627 echo "$ac_t""no" 1>&6
16628fi
16629done
16630
16631
4f14bcd8
GD
16632 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16633 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16634 wxUSE_SNGLINST_CHECKER=no
16635 fi
16636fi
af15babd 16637
4f14bcd8 16638for ac_func in timegm
af15babd
VZ
16639do
16640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 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
17234b26 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. */
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
698dcdb6 16656int main() {
698dcdb6 16657
af15babd
VZ
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
698dcdb6
VZ
16667; return 0; }
16668EOF
17234b26 16669if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16670 rm -rf conftest*
af15babd 16671 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16672else
16673 echo "configure: failed program was:" >&5
16674 cat conftest.$ac_ext >&5
16675 rm -rf conftest*
af15babd 16676 eval "ac_cv_func_$ac_func=no"
1e487827 16677fi
9952adac 16678rm -f conftest*
af15babd 16679fi
703e0a69 16680
af15babd
VZ
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'`
4f14bcd8
GD
16684 cat >> confdefs.h <<EOF
16685#define $ac_tr_func 1
16686EOF
16687
16688else
16689 echo "$ac_t""no" 1>&6
af15babd
VZ
16690fi
16691done
16692
16693
4f14bcd8 16694for ac_func in putenv setenv
10f2d63a 16695do
698dcdb6 16696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16697echo "configure:16698: checking for $ac_func" >&5
698dcdb6
VZ
16698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16700else
16701 cat > conftest.$ac_ext <<EOF
17234b26 16702#line 16703 "configure"
af15babd
VZ
16703#include "confdefs.h"
16704/* System header to define __stub macros and hopefully few prototypes,
16705 which can conflict with char $ac_func(); below. */
16706#include <assert.h>
16707/* Override any gcc2 internal prototype to avoid an error. */
16708/* We use char because int might match the return type of a gcc2
16709 builtin and then its argument prototype would still apply. */
16710char $ac_func();
16711
16712int main() {
16713
16714/* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718choke me
16719#else
16720$ac_func();
16721#endif
16722
16723; return 0; }
16724EOF
17234b26 16725if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16726 rm -rf conftest*
16727 eval "ac_cv_func_$ac_func=yes"
16728else
16729 echo "configure: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16731 rm -rf conftest*
16732 eval "ac_cv_func_$ac_func=no"
16733fi
16734rm -f conftest*
16735fi
16736
16737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16738 echo "$ac_t""yes" 1>&6
16739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16740 cat >> confdefs.h <<EOF
16741#define $ac_tr_func 1
16742EOF
4f14bcd8 16743 break
af15babd
VZ
16744else
16745 echo "$ac_t""no" 1>&6
16746fi
af15babd
VZ
16747done
16748
16749
4f14bcd8
GD
16750HAVE_SOME_SLEEP_FUNC=0
16751if test "$USE_BEOS" = 1; then
16752 cat >> confdefs.h <<\EOF
16753#define HAVE_SLEEP 1
af15babd
VZ
16754EOF
16755
4f14bcd8 16756 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16757fi
16758
4f14bcd8
GD
16759if test "$USE_DARWIN" = 1; then
16760 cat >> confdefs.h <<\EOF
16761#define HAVE_USLEEP 1
af15babd 16762EOF
10f2d63a 16763
4f14bcd8 16764 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16765fi
16766
4f14bcd8
GD
16767if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16768 POSIX4_LINK=
16769 for ac_func in nanosleep
16770do
16771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16772echo "configure:16773: checking for $ac_func" >&5
4f14bcd8 16773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16774 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16775else
4f14bcd8 16776 cat > conftest.$ac_ext <<EOF
17234b26 16777#line 16778 "configure"
10f2d63a 16778#include "confdefs.h"
4f14bcd8
GD
16779/* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char $ac_func(); below. */
16781#include <assert.h>
10f2d63a
VZ
16782/* Override any gcc2 internal prototype to avoid an error. */
16783/* We use char because int might match the return type of a gcc2
698dcdb6 16784 builtin and then its argument prototype would still apply. */
4f14bcd8 16785char $ac_func();
698dcdb6
VZ
16786
16787int main() {
4f14bcd8
GD
16788
16789/* The GNU C library defines this for functions which it implements
16790 to always fail with ENOSYS. Some functions are actually named
16791 something starting with __ and the normal name is an alias. */
16792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16793choke me
16794#else
16795$ac_func();
16796#endif
16797
698dcdb6
VZ
16798; return 0; }
16799EOF
17234b26 16800if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16801 rm -rf conftest*
4f14bcd8 16802 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16803else
16804 echo "configure: failed program was:" >&5
16805 cat conftest.$ac_ext >&5
16806 rm -rf conftest*
4f14bcd8 16807 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16808fi
16809rm -f conftest*
698dcdb6 16810fi
4f14bcd8
GD
16811
16812if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16813 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16815 cat >> confdefs.h <<EOF
16816#define $ac_tr_func 1
16817EOF
16818 cat >> confdefs.h <<\EOF
16819#define HAVE_NANOSLEEP 1
16820EOF
16821
10f2d63a 16822else
698dcdb6 16823 echo "$ac_t""no" 1>&6
4f14bcd8 16824echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17234b26 16825echo "configure:16826: checking for nanosleep in -lposix4" >&5
4f14bcd8 16826ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16828 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16829else
698dcdb6 16830 ac_save_LIBS="$LIBS"
4f14bcd8 16831LIBS="-lposix4 $LIBS"
698dcdb6 16832cat > conftest.$ac_ext <<EOF
17234b26 16833#line 16834 "configure"
10f2d63a
VZ
16834#include "confdefs.h"
16835/* Override any gcc2 internal prototype to avoid an error. */
16836/* We use char because int might match the return type of a gcc2
698dcdb6 16837 builtin and then its argument prototype would still apply. */
4f14bcd8 16838char nanosleep();
698dcdb6
VZ
16839
16840int main() {
4f14bcd8 16841nanosleep()
698dcdb6
VZ
16842; return 0; }
16843EOF
17234b26 16844if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16845 rm -rf conftest*
16846 eval "ac_cv_lib_$ac_lib_var=yes"
16847else
16848 echo "configure: failed program was:" >&5
16849 cat conftest.$ac_ext >&5
16850 rm -rf conftest*
16851 eval "ac_cv_lib_$ac_lib_var=no"
16852fi
16853rm -f conftest*
16854LIBS="$ac_save_LIBS"
10f2d63a 16855
698dcdb6
VZ
16856fi
16857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16858 echo "$ac_t""yes" 1>&6
16859
4f14bcd8
GD
16860 cat >> confdefs.h <<\EOF
16861#define HAVE_NANOSLEEP 1
16862EOF
16863
3d63bc3a 16864 POSIX4_LINK=" -lposix4"
4f14bcd8 16865
10f2d63a 16866else
698dcdb6 16867 echo "$ac_t""no" 1>&6
10f2d63a 16868
4f14bcd8
GD
16869 for ac_func in usleep
16870do
16871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16872echo "configure:16873: checking for $ac_func" >&5
4f14bcd8 16873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16874 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16875else
698dcdb6 16876 cat > conftest.$ac_ext <<EOF
17234b26 16877#line 16878 "configure"
10f2d63a 16878#include "confdefs.h"
4f14bcd8
GD
16879/* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func(); below. */
16881#include <assert.h>
16882/* Override any gcc2 internal prototype to avoid an error. */
16883/* We use char because int might match the return type of a gcc2
16884 builtin and then its argument prototype would still apply. */
16885char $ac_func();
16886
16887int main() {
16888
16889/* The GNU C library defines this for functions which it implements
16890 to always fail with ENOSYS. Some functions are actually named
16891 something starting with __ and the normal name is an alias. */
16892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16893choke me
16894#else
16895$ac_func();
16896#endif
16897
16898; return 0; }
698dcdb6 16899EOF
17234b26 16900if { (eval echo configure:16901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16901 rm -rf conftest*
4f14bcd8 16902 eval "ac_cv_func_$ac_func=yes"
1e487827 16903else
698dcdb6 16904 echo "configure: failed program was:" >&5
10f2d63a 16905 cat conftest.$ac_ext >&5
698dcdb6 16906 rm -rf conftest*
4f14bcd8 16907 eval "ac_cv_func_$ac_func=no"
10f2d63a 16908fi
698dcdb6 16909rm -f conftest*
10f2d63a 16910fi
4f14bcd8
GD
16911
16912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16913 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16915 cat >> confdefs.h <<EOF
16916#define $ac_tr_func 1
16917EOF
16918 cat >> confdefs.h <<\EOF
16919#define HAVE_USLEEP 1
16920EOF
16921
698dcdb6
VZ
16922else
16923 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16924echo "configure: warning: wxSleep() function will not work" 1>&2
16925
10f2d63a 16926fi
4f14bcd8 16927done
10f2d63a 16928
4f14bcd8 16929
698dcdb6 16930
6232543b 16931fi
10f2d63a 16932
698dcdb6 16933
4f14bcd8 16934
1e487827 16935fi
4f14bcd8 16936done
703e0a69 16937
10f2d63a
VZ
16938fi
16939
4f14bcd8 16940for ac_func in uname gethostname
70846f0a 16941do
698dcdb6 16942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 16943echo "configure:16944: checking for $ac_func" >&5
698dcdb6
VZ
16944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16945 echo $ac_n "(cached) $ac_c" 1>&6
16946else
16947 cat > conftest.$ac_ext <<EOF
17234b26 16948#line 16949 "configure"
70846f0a
VZ
16949#include "confdefs.h"
16950/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16951 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16952#include <assert.h>
16953/* Override any gcc2 internal prototype to avoid an error. */
16954/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16955 builtin and then its argument prototype would still apply. */
16956char $ac_func();
16957
16958int main() {
70846f0a
VZ
16959
16960/* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16964choke me
16965#else
698dcdb6 16966$ac_func();
70846f0a
VZ
16967#endif
16968
698dcdb6 16969; return 0; }
70846f0a 16970EOF
17234b26 16971if { (eval echo configure:16972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16972 rm -rf conftest*
16973 eval "ac_cv_func_$ac_func=yes"
16974else
16975 echo "configure: failed program was:" >&5
16976 cat conftest.$ac_ext >&5
16977 rm -rf conftest*
16978 eval "ac_cv_func_$ac_func=no"
16979fi
16980rm -f conftest*
16981fi
70846f0a 16982
698dcdb6
VZ
16983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16984 echo "$ac_t""yes" 1>&6
16985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16986 cat >> confdefs.h <<EOF
16987#define $ac_tr_func 1
16988EOF
4f14bcd8 16989 break
698dcdb6
VZ
16990else
16991 echo "$ac_t""no" 1>&6
70846f0a
VZ
16992fi
16993done
16994
698dcdb6 16995
4f14bcd8
GD
16996
16997ac_ext=C
16998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16999ac_cpp='$CXXCPP $CPPFLAGS'
17000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17002cross_compiling=$ac_cv_prog_cxx_cross
17003
17004
17005for ac_func in strtok_r
10f2d63a 17006do
4f14bcd8 17007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 17008echo "configure:17009: checking for $ac_func" >&5
4f14bcd8 17009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17010 echo $ac_n "(cached) $ac_c" 1>&6
17011else
17012 cat > conftest.$ac_ext <<EOF
17234b26 17013#line 17014 "configure"
10f2d63a 17014#include "confdefs.h"
4f14bcd8
GD
17015/* System header to define __stub macros and hopefully few prototypes,
17016 which can conflict with char $ac_func(); below. */
17017#include <assert.h>
17018/* Override any gcc2 internal prototype to avoid an error. */
17019#ifdef __cplusplus
17020extern "C"
17021#endif
17022/* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024char $ac_func();
17025
17026int main() {
17027
17028/* The GNU C library defines this for functions which it implements
17029 to always fail with ENOSYS. Some functions are actually named
17030 something starting with __ and the normal name is an alias. */
17031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17032choke me
17033#else
17034$ac_func();
17035#endif
17036
17037; return 0; }
698dcdb6 17038EOF
17234b26 17039if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17040 rm -rf conftest*
4f14bcd8 17041 eval "ac_cv_func_$ac_func=yes"
1e487827 17042else
698dcdb6 17043 echo "configure: failed program was:" >&5
10f2d63a 17044 cat conftest.$ac_ext >&5
698dcdb6 17045 rm -rf conftest*
4f14bcd8 17046 eval "ac_cv_func_$ac_func=no"
10f2d63a 17047fi
698dcdb6 17048rm -f conftest*
10f2d63a 17049fi
4f14bcd8
GD
17050
17051if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17052 echo "$ac_t""yes" 1>&6
4f14bcd8 17053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 17054 cat >> confdefs.h <<EOF
4f14bcd8 17055#define $ac_tr_func 1
10f2d63a 17056EOF
698dcdb6
VZ
17057
17058else
17059 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17060fi
17061done
17062
698dcdb6 17063
4f14bcd8
GD
17064ac_ext=c
17065# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17066ac_cpp='$CPP $CPPFLAGS'
17067ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17068ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17069cross_compiling=$ac_cv_prog_cc_cross
17070
17071
17072INET_LINK=
17073for ac_func in inet_addr
17074do
17075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 17076echo "configure:17077: checking for $ac_func" >&5
4f14bcd8 17077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 17078 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17079else
4f14bcd8 17080 cat > conftest.$ac_ext <<EOF
17234b26 17081#line 17082 "configure"
10f2d63a 17082#include "confdefs.h"
4f14bcd8
GD
17083/* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func(); below. */
17085#include <assert.h>
10f2d63a
VZ
17086/* Override any gcc2 internal prototype to avoid an error. */
17087/* We use char because int might match the return type of a gcc2
698dcdb6 17088 builtin and then its argument prototype would still apply. */
4f14bcd8 17089char $ac_func();
698dcdb6
VZ
17090
17091int main() {
4f14bcd8
GD
17092
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17097choke me
17098#else
17099$ac_func();
17100#endif
17101
698dcdb6
VZ
17102; return 0; }
17103EOF
17234b26 17104if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17105 rm -rf conftest*
4f14bcd8 17106 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17107else
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17110 rm -rf conftest*
4f14bcd8 17111 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17112fi
17113rm -f conftest*
698dcdb6 17114fi
4f14bcd8
GD
17115
17116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17117 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17119 cat >> confdefs.h <<EOF
17120#define $ac_tr_func 1
17121EOF
17122 cat >> confdefs.h <<\EOF
17123#define HAVE_INET_ADDR 1
10f2d63a
VZ
17124EOF
17125
17126else
698dcdb6 17127 echo "$ac_t""no" 1>&6
4f14bcd8 17128echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17234b26 17129echo "configure:17130: checking for inet_addr in -lnsl" >&5
4f14bcd8 17130ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17131if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17133else
698dcdb6 17134 ac_save_LIBS="$LIBS"
4f14bcd8 17135LIBS="-lnsl $LIBS"
698dcdb6 17136cat > conftest.$ac_ext <<EOF
17234b26 17137#line 17138 "configure"
10f2d63a
VZ
17138#include "confdefs.h"
17139/* Override any gcc2 internal prototype to avoid an error. */
17140/* We use char because int might match the return type of a gcc2
698dcdb6 17141 builtin and then its argument prototype would still apply. */
4f14bcd8 17142char inet_addr();
698dcdb6
VZ
17143
17144int main() {
4f14bcd8 17145inet_addr()
698dcdb6
VZ
17146; return 0; }
17147EOF
17234b26 17148if { (eval echo configure:17149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17149 rm -rf conftest*
17150 eval "ac_cv_lib_$ac_lib_var=yes"
17151else
17152 echo "configure: failed program was:" >&5
17153 cat conftest.$ac_ext >&5
17154 rm -rf conftest*
17155 eval "ac_cv_lib_$ac_lib_var=no"
17156fi
17157rm -f conftest*
17158LIBS="$ac_save_LIBS"
17159
17160fi
17161if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17162 echo "$ac_t""yes" 1>&6
4f14bcd8 17163 INET_LINK="nsl"
10f2d63a 17164else
698dcdb6 17165 echo "$ac_t""no" 1>&6
4f14bcd8 17166echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17234b26 17167echo "configure:17168: checking for inet_addr in -lresolv" >&5
4f14bcd8 17168ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17170 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17171else
698dcdb6 17172 ac_save_LIBS="$LIBS"
4f14bcd8 17173LIBS="-lresolv $LIBS"
698dcdb6 17174cat > conftest.$ac_ext <<EOF
17234b26 17175#line 17176 "configure"
10f2d63a
VZ
17176#include "confdefs.h"
17177/* Override any gcc2 internal prototype to avoid an error. */
17178/* We use char because int might match the return type of a gcc2
698dcdb6 17179 builtin and then its argument prototype would still apply. */
4f14bcd8 17180char inet_addr();
698dcdb6
VZ
17181
17182int main() {
4f14bcd8 17183inet_addr()
698dcdb6
VZ
17184; return 0; }
17185EOF
17234b26 17186if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17187 rm -rf conftest*
17188 eval "ac_cv_lib_$ac_lib_var=yes"
17189else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 eval "ac_cv_lib_$ac_lib_var=no"
17194fi
17195rm -f conftest*
17196LIBS="$ac_save_LIBS"
17197
17198fi
17199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17200 echo "$ac_t""yes" 1>&6
4f14bcd8 17201 INET_LINK="resolv"
698dcdb6 17202else
4f14bcd8 17203 echo "$ac_t""no" 1>&6
3c011993 17204echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17234b26 17205echo "configure:17206: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17206ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17209else
17210 ac_save_LIBS="$LIBS"
17211LIBS="-lsocket $LIBS"
17212cat > conftest.$ac_ext <<EOF
17234b26 17213#line 17214 "configure"
3c011993
VZ
17214#include "confdefs.h"
17215/* Override any gcc2 internal prototype to avoid an error. */
17216/* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
17218char inet_addr();
17219
17220int main() {
17221inet_addr()
17222; return 0; }
17223EOF
17234b26 17224if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17225 rm -rf conftest*
17226 eval "ac_cv_lib_$ac_lib_var=yes"
17227else
17228 echo "configure: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 rm -rf conftest*
17231 eval "ac_cv_lib_$ac_lib_var=no"
17232fi
17233rm -f conftest*
17234LIBS="$ac_save_LIBS"
17235
17236fi
17237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17238 echo "$ac_t""yes" 1>&6
17239 INET_LINK="socket"
17240
17241else
17242 echo "$ac_t""no" 1>&6
17243fi
17244
17245
4f14bcd8 17246fi
698dcdb6 17247
4f14bcd8 17248
698dcdb6 17249fi
4f14bcd8
GD
17250
17251
698dcdb6
VZ
17252
17253fi
4f14bcd8
GD
17254done
17255
17256
17257for ac_func in inet_aton
17258do
17259echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 17260echo "configure:17261: checking for $ac_func" >&5
4f14bcd8 17261if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17262 echo $ac_n "(cached) $ac_c" 1>&6
17263else
4f14bcd8 17264 cat > conftest.$ac_ext <<EOF
17234b26 17265#line 17266 "configure"
f6bcfd97 17266#include "confdefs.h"
4f14bcd8
GD
17267/* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char $ac_func(); below. */
17269#include <assert.h>
f6bcfd97
BP
17270/* Override any gcc2 internal prototype to avoid an error. */
17271/* We use char because int might match the return type of a gcc2
698dcdb6 17272 builtin and then its argument prototype would still apply. */
4f14bcd8 17273char $ac_func();
698dcdb6
VZ
17274
17275int main() {
4f14bcd8
GD
17276
17277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17281choke me
17282#else
17283$ac_func();
17284#endif
17285
698dcdb6
VZ
17286; return 0; }
17287EOF
17234b26 17288if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17289 rm -rf conftest*
4f14bcd8 17290 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17291else
17292 echo "configure: failed program was:" >&5
17293 cat conftest.$ac_ext >&5
17294 rm -rf conftest*
4f14bcd8 17295 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17296fi
17297rm -f conftest*
698dcdb6 17298fi
4f14bcd8
GD
17299
17300if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17301 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17303 cat >> confdefs.h <<EOF
17304#define $ac_tr_func 1
17305EOF
17306 cat >> confdefs.h <<\EOF
17307#define HAVE_INET_ATON 1
17308EOF
17309
10f2d63a 17310else
698dcdb6 17311 echo "$ac_t""no" 1>&6
4f14bcd8 17312 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17234b26 17313echo "configure:17314: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17314ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17316 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17317else
698dcdb6 17318 ac_save_LIBS="$LIBS"
4f14bcd8 17319LIBS="-l$INET_LINK $LIBS"
698dcdb6 17320cat > conftest.$ac_ext <<EOF
17234b26 17321#line 17322 "configure"
10f2d63a 17322#include "confdefs.h"
6232543b 17323/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17324/* We use char because int might match the return type of a gcc2
698dcdb6 17325 builtin and then its argument prototype would still apply. */
4f14bcd8 17326char inet_aton();
698dcdb6
VZ
17327
17328int main() {
4f14bcd8 17329inet_aton()
698dcdb6
VZ
17330; return 0; }
17331EOF
17234b26 17332if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17333 rm -rf conftest*
17334 eval "ac_cv_lib_$ac_lib_var=yes"
17335else
17336 echo "configure: failed program was:" >&5
17337 cat conftest.$ac_ext >&5
17338 rm -rf conftest*
17339 eval "ac_cv_lib_$ac_lib_var=no"
17340fi
17341rm -f conftest*
17342LIBS="$ac_save_LIBS"
10f2d63a 17343
698dcdb6
VZ
17344fi
17345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17346 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17347 cat >> confdefs.h <<\EOF
17348#define HAVE_INET_ATON 1
17349EOF
17350
698dcdb6
VZ
17351else
17352 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17353fi
17354
4f14bcd8 17355
10f2d63a 17356fi
4f14bcd8 17357done
10f2d63a 17358
4f14bcd8
GD
17359
17360if test "x$INET_LINK" != "x"; then
17361 cat >> confdefs.h <<\EOF
17362#define HAVE_INET_ADDR 1
17363EOF
17364
3d63bc3a 17365 INET_LINK=" -l$INET_LINK"
6232543b 17366fi
10f2d63a 17367
1e487827 17368fi
703e0a69 17369
698dcdb6 17370
4f14bcd8
GD
17371cat > confcache <<\EOF
17372# This file is a shell script that caches the results of configure
17373# tests run on this system so they can be shared between configure
17374# scripts and configure runs. It is not useful on other systems.
17375# If it contains results you don't want to keep, you may remove or edit it.
17376#
17377# By default, configure uses ./config.cache as the cache file,
17378# creating it if it does not exist already. You can give configure
17379# the --cache-file=FILE option to use a different cache file; that is
17380# what configure does when it calls configure scripts in
17381# subdirectories, so they share the cache.
17382# Giving --cache-file=/dev/null disables caching, for debugging configure.
17383# config.status only pays attention to the cache file if you give it the
17384# --recheck option to rerun configure.
17385#
f6bcfd97 17386EOF
4f14bcd8
GD
17387# The following way of writing the cache mishandles newlines in values,
17388# but we know of no workaround that is simple, portable, and efficient.
17389# So, don't put newlines in cache variables' values.
17390# Ultrix sh set writes to stderr and can't be redirected directly,
17391# and sets the high bit in the cache file unless we assign to the vars.
17392(set) 2>&1 |
17393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17394 *ac_space=\ *)
17395 # `set' does not quote correctly, so add quotes (double-quote substitution
17396 # turns \\\\ into \\, and sed turns \\ into \).
17397 sed -n \
17398 -e "s/'/'\\\\''/g" \
17399 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17400 ;;
17401 *)
17402 # `set' quotes correctly as required by POSIX, so do not add quotes.
17403 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17404 ;;
17405 esac >> confcache
17406if cmp -s $cache_file confcache; then
17407 :
17408else
17409 if test -w $cache_file; then
17410 echo "updating cache $cache_file"
17411 cat confcache > $cache_file
f6bcfd97 17412 else
4f14bcd8 17413 echo "not updating unwritable cache $cache_file"
f6bcfd97 17414 fi
4f14bcd8
GD
17415fi
17416rm -f confcache
f6bcfd97 17417
4f14bcd8
GD
17418
17419
009fead0 17420CPP_MT_FLAG=
4f14bcd8
GD
17421if test "$TOOLKIT" != "MSW"; then
17422
009fead0 17423
7274f1c7 17424 THREADS_LINK=
009fead0 17425 THREADS_CFLAGS=
7274f1c7
RL
17426
17427 if test "$wxUSE_THREADS" = "yes" ; then
17428 if test "$wxUSE_WINE" = 1 ; then
156b2523 17429 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17430 wxUSE_THREADS="no"
17431 elif test "$USE_BEOS" = 1; then
156b2523 17432 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17433 wxUSE_THREADS="no"
17434 fi
4f14bcd8 17435 fi
4f14bcd8 17436
7274f1c7 17437 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17438
3010d50a 17439
009fead0
VZ
17440 THREAD_OPTS="-pthread"
17441 case "${host}" in
17442 *-*-solaris2* | *-*-sunos4* )
17443 if test "x$GCC" = "xyes"; then
126be6b4 17444 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17445 else
17446 THREAD_OPTS="-mt $THREAD_OPTS"
17447 fi
17448 ;;
17449 *-*-freebsd*)
17450 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17451 ;;
17234b26
MB
17452 *-*-darwin* | *-*-cygwin* )
17453 THREAD_OPTS=""
4101db81 17454 ;;
8f4a9a10 17455 *-*-aix*)
009fead0
VZ
17456 THREAD_OPTS="pthreads"
17457 ;;
009fead0 17458 esac
4f14bcd8 17459
02a1dfba 17460 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17461
009fead0
VZ
17462 THREADS_OK=no
17463 for flag in $THREAD_OPTS; do
17464 case $flag in
17465 none)
17466 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17234b26 17467echo "configure:17468: checking whether pthreads work without any flags" >&5
009fead0 17468 ;;
698dcdb6 17469
009fead0
VZ
17470 -*)
17471 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17234b26 17472echo "configure:17473: checking whether pthreads work with $flag" >&5
009fead0
VZ
17473 THREADS_CFLAGS="$flag"
17474 ;;
698dcdb6 17475
009fead0
VZ
17476 *)
17477 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17234b26 17478echo "configure:17479: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17479 THREADS_LINK="-l$flag"
17480 ;;
17481 esac
10f2d63a 17482
009fead0
VZ
17483 save_LIBS="$LIBS"
17484 save_CFLAGS="$CFLAGS"
17485 LIBS="$THREADS_LINK $LIBS"
04727afd 17486 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17487
009fead0 17488 cat > conftest.$ac_ext <<EOF
17234b26 17489#line 17490 "configure"
009fead0
VZ
17490#include "confdefs.h"
17491#include <pthread.h>
4f14bcd8 17492int main() {
009fead0 17493pthread_create(0,0,0,0);
698dcdb6
VZ
17494; return 0; }
17495EOF
17234b26 17496if { (eval echo configure:17497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17497 rm -rf conftest*
009fead0 17498 THREADS_OK=yes
10f2d63a 17499else
698dcdb6
VZ
17500 echo "configure: failed program was:" >&5
17501 cat conftest.$ac_ext >&5
6232543b 17502fi
698dcdb6 17503rm -f conftest*
698dcdb6 17504
009fead0
VZ
17505 LIBS="$save_LIBS"
17506 CFLAGS="$save_CFLAGS"
d9b9876f 17507
009fead0
VZ
17508 echo "$ac_t""$THREADS_OK" 1>&6
17509 if test "x$THREADS_OK" = "xyes"; then
17510 break;
17511 fi
d9b9876f 17512
009fead0
VZ
17513 THREADS_LINK=""
17514 THREADS_CFLAGS=""
17515 done
4f14bcd8 17516
009fead0
VZ
17517 if test "x$THREADS_OK" != "xyes"; then
17518 wxUSE_THREADS=no
17519 echo "configure: warning: No thread support on this system... disabled" 1>&2
17520 else
fe5a9cab
VZ
17521 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17522
009fead0 17523 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17234b26 17524echo "configure:17525: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17525 flag=no
17526 case "${host}" in
17527 *-aix* | *-freebsd*)
17528 flag="-D_THREAD_SAFE"
17529 ;;
17530 *solaris* | alpha*-osf*)
17531 flag="-D_REENTRANT"
17532 ;;
17533 esac
17534 echo "$ac_t""${flag}" 1>&6
17535 if test "x$flag" != xno; then
04727afd 17536 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17537 fi
17538
009fead0 17539 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17540 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17541 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17542 fi
17543 fi
4f14bcd8 17544 fi
4f14bcd8 17545
7274f1c7
RL
17546 if test "$wxUSE_THREADS" = "yes" ; then
17547 for ac_func in thr_setconcurrency
4f14bcd8
GD
17548do
17549echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 17550echo "configure:17551: checking for $ac_func" >&5
4f14bcd8 17551if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17552 echo $ac_n "(cached) $ac_c" 1>&6
17553else
4f14bcd8 17554 cat > conftest.$ac_ext <<EOF
17234b26 17555#line 17556 "configure"
d9b9876f 17556#include "confdefs.h"
4f14bcd8
GD
17557/* System header to define __stub macros and hopefully few prototypes,
17558 which can conflict with char $ac_func(); below. */
17559#include <assert.h>
17560/* Override any gcc2 internal prototype to avoid an error. */
17561/* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17563char $ac_func();
17564
698dcdb6 17565int main() {
d9b9876f 17566
4f14bcd8
GD
17567/* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17571choke me
17572#else
17573$ac_func();
17574#endif
17575
698dcdb6
VZ
17576; return 0; }
17577EOF
17234b26 17578if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17579 rm -rf conftest*
4f14bcd8 17580 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17581else
698dcdb6
VZ
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17584 rm -rf conftest*
4f14bcd8 17585 eval "ac_cv_func_$ac_func=no"
6232543b 17586fi
698dcdb6 17587rm -f conftest*
1e487827 17588fi
698dcdb6 17589
4f14bcd8
GD
17590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17591 echo "$ac_t""yes" 1>&6
17592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17593 cat >> confdefs.h <<EOF
17594#define $ac_tr_func 1
d9b9876f 17595EOF
4f14bcd8
GD
17596
17597else
17598 echo "$ac_t""no" 1>&6
10f2d63a 17599fi
4f14bcd8 17600done
10f2d63a 17601
10f2d63a 17602
7274f1c7 17603 for ac_hdr in sched.h
4f14bcd8
GD
17604do
17605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 17607echo "configure:17608: checking for $ac_hdr" >&5
4f14bcd8
GD
17608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17609 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17610else
4f14bcd8 17611 cat > conftest.$ac_ext <<EOF
17234b26 17612#line 17613 "configure"
4f14bcd8
GD
17613#include "confdefs.h"
17614#include <$ac_hdr>
13111b2a 17615EOF
4f14bcd8 17616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 17617{ (eval echo configure:17618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17619if test -z "$ac_err"; then
17620 rm -rf conftest*
17621 eval "ac_cv_header_$ac_safe=yes"
17622else
17623 echo "$ac_err" >&5
17624 echo "configure: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17626 rm -rf conftest*
17627 eval "ac_cv_header_$ac_safe=no"
13111b2a 17628fi
4f14bcd8 17629rm -f conftest*
10f2d63a 17630fi
4f14bcd8
GD
17631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17632 echo "$ac_t""yes" 1>&6
17633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17634 cat >> confdefs.h <<EOF
4f14bcd8 17635#define $ac_tr_hdr 1
f6bcfd97 17636EOF
4f14bcd8
GD
17637
17638else
17639 echo "$ac_t""no" 1>&6
f6bcfd97 17640fi
4f14bcd8 17641done
f6bcfd97 17642
009fead0
VZ
17643 if test "$ac_cv_header_sched_h" = "yes"; then
17644 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17234b26 17645echo "configure:17646: checking for sched_yield" >&5
009fead0 17646if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17647 echo $ac_n "(cached) $ac_c" 1>&6
17648else
009fead0 17649 cat > conftest.$ac_ext <<EOF
17234b26 17650#line 17651 "configure"
4f14bcd8 17651#include "confdefs.h"
009fead0
VZ
17652/* System header to define __stub macros and hopefully few prototypes,
17653 which can conflict with char sched_yield(); below. */
17654#include <assert.h>
4f14bcd8
GD
17655/* Override any gcc2 internal prototype to avoid an error. */
17656/* We use char because int might match the return type of a gcc2
17657 builtin and then its argument prototype would still apply. */
17658char sched_yield();
10f2d63a 17659
4f14bcd8 17660int main() {
009fead0
VZ
17661
17662/* The GNU C library defines this for functions which it implements
17663 to always fail with ENOSYS. Some functions are actually named
17664 something starting with __ and the normal name is an alias. */
17665#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17666choke me
17667#else
17668sched_yield();
17669#endif
17670
4f14bcd8 17671; return 0; }
10f2d63a 17672EOF
17234b26 17673if { (eval echo configure:17674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17674 rm -rf conftest*
009fead0 17675 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17676else
4f14bcd8
GD
17677 echo "configure: failed program was:" >&5
17678 cat conftest.$ac_ext >&5
17679 rm -rf conftest*
009fead0 17680 eval "ac_cv_func_sched_yield=no"
10f2d63a 17681fi
4f14bcd8 17682rm -f conftest*
4f14bcd8 17683fi
009fead0
VZ
17684
17685if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17686 echo "$ac_t""yes" 1>&6
17687 cat >> confdefs.h <<\EOF
17688#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17689EOF
17690
4f14bcd8
GD
17691else
17692 echo "$ac_t""no" 1>&6
009fead0
VZ
17693
17694 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17234b26 17695echo "configure:17696: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17696ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17698 echo $ac_n "(cached) $ac_c" 1>&6
17699else
17700 ac_save_LIBS="$LIBS"
17701LIBS="-lposix4 $LIBS"
17702cat > conftest.$ac_ext <<EOF
17234b26 17703#line 17704 "configure"
4f14bcd8
GD
17704#include "confdefs.h"
17705/* Override any gcc2 internal prototype to avoid an error. */
17706/* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708char sched_yield();
47c13eb7 17709
4f14bcd8
GD
17710int main() {
17711sched_yield()
17712; return 0; }
10f2d63a 17713EOF
17234b26 17714if { (eval echo configure:17715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17715 rm -rf conftest*
17716 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17717else
4f14bcd8
GD
17718 echo "configure: failed program was:" >&5
17719 cat conftest.$ac_ext >&5
17720 rm -rf conftest*
17721 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17722fi
4f14bcd8
GD
17723rm -f conftest*
17724LIBS="$ac_save_LIBS"
10f2d63a 17725
54276ccf 17726fi
4f14bcd8
GD
17727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17728 echo "$ac_t""yes" 1>&6
17729 cat >> confdefs.h <<\EOF
17730#define HAVE_SCHED_YIELD 1
54276ccf 17731EOF
3d63bc3a 17732 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17733else
17734 echo "$ac_t""no" 1>&6
17735echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17736
54276ccf
VZ
17737fi
17738
009fead0
VZ
17739
17740
4f14bcd8 17741fi
698dcdb6 17742
009fead0 17743 fi
10f2d63a 17744
7274f1c7 17745 HAVE_PRIOR_FUNCS=0
009fead0 17746 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17234b26 17747echo "configure:17748: checking for pthread_attr_getschedpolicy" >&5
009fead0 17748if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17749 echo $ac_n "(cached) $ac_c" 1>&6
17750else
009fead0 17751 cat > conftest.$ac_ext <<EOF
17234b26 17752#line 17753 "configure"
422107f9 17753#include "confdefs.h"
009fead0
VZ
17754/* System header to define __stub macros and hopefully few prototypes,
17755 which can conflict with char pthread_attr_getschedpolicy(); below. */
17756#include <assert.h>
4f14bcd8
GD
17757/* Override any gcc2 internal prototype to avoid an error. */
17758/* We use char because int might match the return type of a gcc2
17759 builtin and then its argument prototype would still apply. */
17760char pthread_attr_getschedpolicy();
17761
17762int main() {
009fead0
VZ
17763
17764/* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17768choke me
17769#else
17770pthread_attr_getschedpolicy();
17771#endif
17772
4f14bcd8 17773; return 0; }
698dcdb6 17774EOF
17234b26 17775if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17776 rm -rf conftest*
009fead0 17777 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17778else
698dcdb6 17779 echo "configure: failed program was:" >&5
422107f9 17780 cat conftest.$ac_ext >&5
698dcdb6 17781 rm -rf conftest*
009fead0 17782 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17783fi
698dcdb6 17784rm -f conftest*
422107f9 17785fi
009fead0
VZ
17786
17787if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17788 echo "$ac_t""yes" 1>&6
009fead0 17789 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17234b26 17790echo "configure:17791: checking for pthread_attr_setschedparam" >&5
009fead0 17791if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17792 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17793else
009fead0 17794 cat > conftest.$ac_ext <<EOF
17234b26 17795#line 17796 "configure"
422107f9 17796#include "confdefs.h"
009fead0
VZ
17797/* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char pthread_attr_setschedparam(); below. */
17799#include <assert.h>
422107f9
VZ
17800/* Override any gcc2 internal prototype to avoid an error. */
17801/* We use char because int might match the return type of a gcc2
698dcdb6 17802 builtin and then its argument prototype would still apply. */
4f14bcd8 17803char pthread_attr_setschedparam();
698dcdb6
VZ
17804
17805int main() {
009fead0
VZ
17806
17807/* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17811choke me
17812#else
17813pthread_attr_setschedparam();
17814#endif
17815
698dcdb6
VZ
17816; return 0; }
17817EOF
17234b26 17818if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17819 rm -rf conftest*
009fead0 17820 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17821else
17822 echo "configure: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17824 rm -rf conftest*
009fead0 17825 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17826fi
17827rm -f conftest*
698dcdb6 17828fi
009fead0
VZ
17829
17830if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17831 echo "$ac_t""yes" 1>&6
009fead0 17832 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17234b26 17833echo "configure:17834: checking for sched_get_priority_max" >&5
009fead0 17834if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17835 echo $ac_n "(cached) $ac_c" 1>&6
17836else
009fead0 17837 cat > conftest.$ac_ext <<EOF
17234b26 17838#line 17839 "configure"
422107f9 17839#include "confdefs.h"
009fead0
VZ
17840/* System header to define __stub macros and hopefully few prototypes
17841else
17842 echo "$ac_t""no" 1>&6
17843which can conflict with char sched_get_priority_max(); below. */
17844#include <assert.h>
4f14bcd8
GD
17845/* Override any gcc2 internal prototype to avoid an error. */
17846/* We use char because int might match the return type of a gcc2
17847 builtin and then its argument prototype would still apply. */
17848char sched_get_priority_max();
17849
17850int main() {
009fead0
VZ
17851
17852/* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17856choke me
17857#else
17858sched_get_priority_max();
17859#endif
17860
4f14bcd8 17861; return 0; }
698dcdb6 17862EOF
17234b26 17863if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17864 rm -rf conftest*
009fead0 17865 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17866else
698dcdb6 17867 echo "configure: failed program was:" >&5
422107f9 17868 cat conftest.$ac_ext >&5
698dcdb6 17869 rm -rf conftest*
009fead0 17870 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17871fi
698dcdb6 17872rm -f conftest*
422107f9 17873fi
009fead0
VZ
17874
17875if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17876 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17877 HAVE_PRIOR_FUNCS=1
17878else
17879 echo "$ac_t""no" 1>&6
17880echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17234b26 17881echo "configure:17882: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17882ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17883if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17884 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17885else
698dcdb6 17886 ac_save_LIBS="$LIBS"
4f14bcd8 17887LIBS="-lposix4 $LIBS"
698dcdb6 17888cat > conftest.$ac_ext <<EOF
17234b26 17889#line 17890 "configure"
422107f9
VZ
17890#include "confdefs.h"
17891/* Override any gcc2 internal prototype to avoid an error. */
17892/* We use char because int might match the return type of a gcc2
698dcdb6 17893 builtin and then its argument prototype would still apply. */
4f14bcd8 17894char sched_get_priority_max();
698dcdb6
VZ
17895
17896int main() {
4f14bcd8 17897sched_get_priority_max()
698dcdb6
VZ
17898; return 0; }
17899EOF
17234b26 17900if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17901 rm -rf conftest*
17902 eval "ac_cv_lib_$ac_lib_var=yes"
17903else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_lib_$ac_lib_var=no"
17908fi
17909rm -f conftest*
17910LIBS="$ac_save_LIBS"
17911
17912fi
17913if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17914 echo "$ac_t""yes" 1>&6
4f14bcd8 17915
7274f1c7
RL
17916 HAVE_PRIOR_FUNCS=1
17917 POSIX4_LINK=" -lposix4"
17918
698dcdb6
VZ
17919else
17920 echo "$ac_t""no" 1>&6
422107f9
VZ
17921fi
17922
7274f1c7 17923
422107f9
VZ
17924fi
17925
7274f1c7 17926
4f14bcd8
GD
17927else
17928 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17929fi
17930
7274f1c7 17931
4f14bcd8 17932fi
463abc64 17933
463abc64 17934
7274f1c7
RL
17935 if test "$HAVE_PRIOR_FUNCS" = 1; then
17936 cat >> confdefs.h <<\EOF
4f14bcd8 17937#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17938EOF
463abc64 17939
7274f1c7
RL
17940 else
17941 echo "configure: warning: Setting thread priority will not work" 1>&2
17942 fi
463abc64 17943
009fead0 17944 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17234b26 17945echo "configure:17946: checking for pthread_cancel" >&5
009fead0 17946if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17947 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17948else
009fead0 17949 cat > conftest.$ac_ext <<EOF
17234b26 17950#line 17951 "configure"
422107f9 17951#include "confdefs.h"
009fead0
VZ
17952/* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char pthread_cancel(); below. */
17954#include <assert.h>
422107f9
VZ
17955/* Override any gcc2 internal prototype to avoid an error. */
17956/* We use char because int might match the return type of a gcc2
698dcdb6 17957 builtin and then its argument prototype would still apply. */
4f14bcd8 17958char pthread_cancel();
698dcdb6
VZ
17959
17960int main() {
009fead0
VZ
17961
17962/* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17966choke me
17967#else
17968pthread_cancel();
17969#endif
17970
698dcdb6
VZ
17971; return 0; }
17972EOF
17234b26 17973if { (eval echo configure:17974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17974 rm -rf conftest*
009fead0 17975 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17976else
17977 echo "configure: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17979 rm -rf conftest*
009fead0 17980 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17981fi
17982rm -f conftest*
698dcdb6 17983fi
009fead0
VZ
17984
17985if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17986 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17987 cat >> confdefs.h <<\EOF
17988#define HAVE_PTHREAD_CANCEL 1
17989EOF
17990
698dcdb6
VZ
17991else
17992 echo "$ac_t""no" 1>&6
4f14bcd8 17993echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17994fi
17995
422107f9 17996
7274f1c7 17997 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17234b26 17998echo "configure:17999: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17999if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18000 echo $ac_n "(cached) $ac_c" 1>&6
18001else
18002
7274f1c7 18003 cat > conftest.$ac_ext <<EOF
17234b26 18004#line 18005 "configure"
4f14bcd8
GD
18005#include "confdefs.h"
18006#include <pthread.h>
18007int main() {
18008
7274f1c7
RL
18009 pthread_cleanup_push(NULL, NULL);
18010 pthread_cleanup_pop(0);
18011
4f14bcd8
GD
18012; return 0; }
18013EOF
17234b26 18014if { (eval echo configure:18015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
18015 rm -rf conftest*
18016
7274f1c7
RL
18017 wx_cv_func_pthread_cleanup_push=yes
18018
4f14bcd8
GD
18019else
18020 echo "configure: failed program was:" >&5
18021 cat conftest.$ac_ext >&5
18022 rm -rf conftest*
18023
7274f1c7
RL
18024 wx_cv_func_pthread_cleanup_push=no
18025
4f14bcd8
GD
18026fi
18027rm -f conftest*
7274f1c7 18028
10f2d63a
VZ
18029fi
18030
4f14bcd8
GD
18031echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18032
7274f1c7
RL
18033 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18034 cat >> confdefs.h <<\EOF
4f14bcd8 18035#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
18036EOF
18037
7274f1c7 18038 fi
4f14bcd8 18039
7274f1c7 18040
19bc6aad 18041 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
18042 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18043 fi
4f14bcd8 18044
7274f1c7 18045 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17234b26 18046echo "configure:18047: checking for pthread_mutexattr_t" >&5
4f14bcd8 18047if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
18048 echo $ac_n "(cached) $ac_c" 1>&6
18049else
4f14bcd8 18050
7274f1c7 18051 cat > conftest.$ac_ext <<EOF
17234b26 18052#line 18053 "configure"
0dcf9893 18053#include "confdefs.h"
4f14bcd8
GD
18054#include <pthread.h>
18055int main() {
18056
7274f1c7
RL
18057 pthread_mutexattr_t attr;
18058 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18059
4f14bcd8 18060; return 0; }
698dcdb6 18061EOF
17234b26 18062if { (eval echo configure:18063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18063 rm -rf conftest*
4f14bcd8 18064
7274f1c7
RL
18065 wx_cv_type_pthread_mutexattr_t=yes
18066
3fed1840 18067else
698dcdb6 18068 echo "configure: failed program was:" >&5
3fed1840 18069 cat conftest.$ac_ext >&5
698dcdb6 18070 rm -rf conftest*
4f14bcd8 18071
7274f1c7
RL
18072 wx_cv_type_pthread_mutexattr_t=no
18073
4f14bcd8 18074
3fed1840 18075fi
698dcdb6 18076rm -f conftest*
7274f1c7 18077
3fed1840 18078fi
4f14bcd8
GD
18079
18080echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18081
7274f1c7
RL
18082 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18083 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18084#define HAVE_PTHREAD_MUTEXATTR_T 1
18085EOF
18086
7274f1c7
RL
18087 else
18088 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17234b26 18089echo "configure:18090: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 18090if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 18091 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 18092else
4f14bcd8 18093
7274f1c7 18094 cat > conftest.$ac_ext <<EOF
17234b26 18095#line 18096 "configure"
3fed1840 18096#include "confdefs.h"
4f14bcd8 18097#include <pthread.h>
698dcdb6 18098int main() {
4f14bcd8 18099
7274f1c7
RL
18100 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18101
698dcdb6
VZ
18102; return 0; }
18103EOF
17234b26 18104if { (eval echo configure:18105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18105 rm -rf conftest*
4f14bcd8 18106
7274f1c7
RL
18107 wx_cv_type_pthread_rec_mutex_init=yes
18108
698dcdb6
VZ
18109else
18110 echo "configure: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18112 rm -rf conftest*
4f14bcd8 18113
7274f1c7
RL
18114 wx_cv_type_pthread_rec_mutex_init=no
18115
4f14bcd8 18116
698dcdb6
VZ
18117fi
18118rm -f conftest*
7274f1c7 18119
3fed1840
RR
18120fi
18121
4f14bcd8 18122echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
18123 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18124 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18125#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18126EOF
3fed1840 18127
7274f1c7
RL
18128 else
18129 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18130 fi
18131 fi
7274f1c7 18132 fi
3fed1840 18133
4f14bcd8
GD
18134fi
18135
18136if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 18137 cat >> confdefs.h <<\EOF
4f14bcd8 18138#define wxUSE_THREADS 1
7b6058cd
GD
18139EOF
18140
4f14bcd8 18141
4f14bcd8 18142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18143else
4f14bcd8
GD
18144 if test "$ac_cv_func_strtok_r" = "yes"; then
18145 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17234b26 18146echo "configure:18147: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18147 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18148 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18149 echo "$ac_t""yes" 1>&6
18150 else
18151 echo "$ac_t""no" 1>&6
18152 fi
18153 fi
18154fi
18155
18156if test "$WXGTK20" = 1 ; then
18157 cat >> confdefs.h <<EOF
18158#define __WXGTK20__ $WXGTK20
698dcdb6 18159EOF
4f14bcd8
GD
18160
18161 WXGTK12=1
10f2d63a 18162fi
4f14bcd8
GD
18163
18164if test "$WXGTK12" = 1 ; then
18165 cat >> confdefs.h <<EOF
18166#define __WXGTK12__ $WXGTK12
18167EOF
18168
10f2d63a 18169fi
698dcdb6 18170
4f14bcd8
GD
18171if test "$WXGTK127" = 1 ; then
18172 cat >> confdefs.h <<EOF
18173#define __WXGTK127__ $WXGTK127
698dcdb6 18174EOF
4f14bcd8 18175
698dcdb6 18176fi
10f2d63a 18177
4f14bcd8
GD
18178WXDEBUG=
18179
18180if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18181 WXDEBUG="-g"
18182 wxUSE_OPTIMISE=no
698dcdb6 18183fi
4f14bcd8
GD
18184
18185if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18186 wxUSE_DEBUG_INFO=yes
18187 WXDEBUG="-ggdb"
10f2d63a
VZ
18188fi
18189
4f14bcd8
GD
18190if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18191 cat >> confdefs.h <<\EOF
18192#define WXDEBUG 1
18193EOF
18194
18195 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18196else
4f14bcd8
GD
18197 if test "$wxUSE_GTK" = 1 ; then
18198 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18199 fi
18200fi
18201
18202if test "$wxUSE_MEM_TRACING" = "yes" ; then
18203 cat >> confdefs.h <<\EOF
18204#define wxUSE_MEMORY_TRACING 1
18205EOF
18206
18207 cat >> confdefs.h <<\EOF
18208#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18209EOF
18210
18211 cat >> confdefs.h <<\EOF
18212#define wxUSE_DEBUG_NEW_ALWAYS 1
18213EOF
18214
18215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18216fi
18217
18218if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18219 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18220fi
18221
18222PROFILE=
18223if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18224 PROFILE=" -pg"
10f2d63a
VZ
18225fi
18226
009fead0
VZ
18227CODE_GEN_FLAGS=
18228CODE_GEN_FLAGS_CXX=
88e30f2b 18229if test "$GCC" = "yes" ; then
4f14bcd8
GD
18230 if test "$wxUSE_NO_RTTI" = "yes" ; then
18231 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18232 fi
4f14bcd8
GD
18233 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18234 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18235 fi
18236 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18237 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18238 fi
4f14bcd8
GD
18239 if test "$USE_WIN32" = 1 ; then
18240 # I'm not even really sure what this was ever added to solve,
18241 # but someone added it for mingw native builds, so I guess
18242 # they had a reason, right??
18243 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18244 fi
1d1b75ac
VZ
18245
18246 case "${host}" in
18247 powerpc*-*-aix* )
18248 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18249 ;;
18250 esac
4f14bcd8
GD
18251fi
18252
4f14bcd8
GD
18253if test "$wxUSE_OPTIMISE" = "no" ; then
18254 OPTIMISE=
18255else
18256 if test "$GCC" = yes ; then
18257 OPTIMISE="-O2"
18258 case "${host}" in
18259 i586-*-*|i686-*-* )
18260 OPTIMISE="${OPTIMISE} "
18261 ;;
18262 esac
18263 else
18264 OPTIMISE="-O"
18265 fi
18266fi
18267
18268if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18269 cat >> confdefs.h <<\EOF
18270#define WXWIN_COMPATIBILITY_2 1
18271EOF
18272
18273
18274 WXWIN_COMPATIBILITY_2_2="yes"
18275fi
18276
0c9a1c32 18277if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18278 cat >> confdefs.h <<\EOF
18279#define WXWIN_COMPATIBILITY_2_2 1
18280EOF
18281
10f2d63a
VZ
18282fi
18283
698dcdb6 18284
10f2d63a 18285if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18287#define wxUSE_GUI 1
18288EOF
18289
698dcdb6 18290
10f2d63a 18291 else
698dcdb6 18292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18293#define wxUSE_NOGUI 1
18294EOF
18295
18296fi
18297
698dcdb6 18298
10f2d63a 18299if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18301#define wxUSE_UNIX 1
18302EOF
18303
18304fi
18305
698dcdb6 18306
10f2d63a 18307if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18309#define wxUSE_APPLE_IEEE 1
18310EOF
18311
18312fi
18313
1e6feb95
VZ
18314if test "$wxUSE_TIMER" = "yes"; then
18315 cat >> confdefs.h <<\EOF
18316#define wxUSE_TIMER 1
18317EOF
18318
18319fi
18320
10f2d63a 18321if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18322 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18323#define wxUSE_WAVE 1
18324EOF
18325
18326fi
18327
1e6feb95
VZ
18328if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18329 cat >> confdefs.h <<\EOF
18330#define wxUSE_CMDLINE_PARSER 1
18331EOF
18332
18333fi
18334
18335if test "$wxUSE_STOPWATCH" = "yes"; then
18336 cat >> confdefs.h <<\EOF
18337#define wxUSE_STOPWATCH 1
18338EOF
18339
18340fi
18341
18342if test "$wxUSE_DATETIME" = "yes"; then
18343 cat >> confdefs.h <<\EOF
18344#define wxUSE_DATETIME 1
18345EOF
18346
18347fi
18348
18349if test "$wxUSE_TIMEDATE" = "yes"; then
18350 cat >> confdefs.h <<\EOF
18351#define wxUSE_TIMEDATE 1
18352EOF
18353
18354fi
18355
10f2d63a 18356if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18357 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18358#define wxUSE_FILE 1
18359EOF
18360
18361fi
18362
1e6feb95
VZ
18363if test "$wxUSE_FFILE" = "yes"; then
18364 cat >> confdefs.h <<\EOF
18365#define wxUSE_FFILE 1
18366EOF
18367
18368fi
18369
24528b0c 18370if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18371 cat >> confdefs.h <<\EOF
24528b0c
VS
18372#define wxUSE_FILESYSTEM 1
18373EOF
18374
18375fi
18376
10f2d63a 18377if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18379#define wxUSE_FS_INET 1
18380EOF
18381
18382fi
18383
18384if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18385 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18386#define wxUSE_FS_ZIP 1
18387EOF
18388
18389fi
18390
18391if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18392 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18393#define wxUSE_ZIPSTREAM 1
18394EOF
18395
18396fi
18397
eb4efbdc 18398if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18399 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18400#define wxUSE_ON_FATAL_EXCEPTION 1
18401EOF
18402
18403fi
18404
4f3c5f06 18405if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18406 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18407#define wxUSE_SNGLINST_CHECKER 1
18408EOF
18409
18410fi
18411
10f2d63a 18412if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18413 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18414#define wxUSE_BUSYINFO 1
18415EOF
18416
18417fi
18418
18419if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18421#define wxUSE_STD_IOSTREAM 1
18422EOF
18423
18424fi
18425
a3a584a7
VZ
18426if test "$wxUSE_TEXTBUFFER" = "yes"; then
18427 cat >> confdefs.h <<\EOF
18428#define wxUSE_TEXTBUFFER 1
18429EOF
18430
18431fi
18432
10f2d63a 18433if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18434 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18435 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18436 else
698dcdb6 18437 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18438#define wxUSE_TEXTFILE 1
18439EOF
18440
18441 fi
18442fi
18443
18444if test "$wxUSE_CONFIG" = "yes" ; then
18445 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18446 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18447 else
698dcdb6 18448 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18449#define wxUSE_CONFIG 1
18450EOF
18451
18452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18453 fi
18454fi
18455
18456if test "$wxUSE_INTL" = "yes" ; then
18457 if test "$wxUSE_FILE" != "yes"; then
156b2523 18458 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18459 else
698dcdb6 18460 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18461#define wxUSE_INTL 1
18462EOF
18463
18464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18465 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18466 fi
18467fi
18468
18469if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18470 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18471#define wxUSE_LOG 1
18472EOF
18473
d73be714
VZ
18474
18475 if test "$wxUSE_LOGGUI" = "yes"; then
18476 cat >> confdefs.h <<\EOF
18477#define wxUSE_LOGGUI 1
18478EOF
18479
18480 fi
18481
18482 if test "$wxUSE_LOGWINDOW" = "yes"; then
18483 cat >> confdefs.h <<\EOF
18484#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18485EOF
18486
18487 fi
18488
18489 if test "$wxUSE_LOGDIALOG" = "yes"; then
18490 cat >> confdefs.h <<\EOF
18491#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18492EOF
18493
18494 fi
10f2d63a
VZ
18495fi
18496
18497if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18498 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18499#define wxUSE_LONGLONG 1
18500EOF
18501
18502fi
18503
e8f65ba6 18504if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18505 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18506#define wxUSE_GEOMETRY 1
18507EOF
18508
18509fi
18510
10f2d63a 18511if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18512 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18513#define wxUSE_DIALUP_MANAGER 1
18514EOF
18515
70f7a477 18516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18517fi
18518
18519if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18520 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18521#define wxUSE_STREAMS 1
18522EOF
18523
18524fi
18525
1e487827 18526
1e6feb95 18527if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18528 for ac_func in strptime
83307f33 18529do
698dcdb6 18530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 18531echo "configure:18532: checking for $ac_func" >&5
698dcdb6
VZ
18532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533 echo $ac_n "(cached) $ac_c" 1>&6
18534else
18535 cat > conftest.$ac_ext <<EOF
17234b26 18536#line 18537 "configure"
83307f33
VZ
18537#include "confdefs.h"
18538/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18539 which can conflict with char $ac_func(); below. */
83307f33
VZ
18540#include <assert.h>
18541/* Override any gcc2 internal prototype to avoid an error. */
18542/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18543 builtin and then its argument prototype would still apply. */
18544char $ac_func();
18545
18546int main() {
83307f33
VZ
18547
18548/* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552choke me
18553#else
698dcdb6 18554$ac_func();
83307f33
VZ
18555#endif
18556
698dcdb6 18557; return 0; }
83307f33 18558EOF
17234b26 18559if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18560 rm -rf conftest*
18561 eval "ac_cv_func_$ac_func=yes"
18562else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 eval "ac_cv_func_$ac_func=no"
18567fi
18568rm -f conftest*
18569fi
83307f33 18570
698dcdb6
VZ
18571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572 echo "$ac_t""yes" 1>&6
18573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574 cat >> confdefs.h <<EOF
18575#define $ac_tr_func 1
18576EOF
18577
18578else
18579 echo "$ac_t""no" 1>&6
83307f33
VZ
18580fi
18581done
18582
1e487827 18583
62cc730f 18584 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17234b26 18585echo "configure:18586: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18586if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18587 echo $ac_n "(cached) $ac_c" 1>&6
18588else
18589
18590 cat > conftest.$ac_ext <<EOF
17234b26 18591#line 18592 "configure"
360d6699
VZ
18592#include "confdefs.h"
18593
b4085ce6 18594 #include <time.h>
698dcdb6
VZ
18595
18596int main() {
360d6699
VZ
18597
18598 int tz;
4f11a343 18599 tz = timezone;
698dcdb6
VZ
18600
18601; return 0; }
18602EOF
17234b26 18603if { (eval echo configure:18604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18604 rm -rf conftest*
18605
4f11a343 18606 wx_cv_var_timezone=timezone
698dcdb6 18607
360d6699 18608else
698dcdb6
VZ
18609 echo "configure: failed program was:" >&5
18610 cat conftest.$ac_ext >&5
18611 rm -rf conftest*
18612
18613 cat > conftest.$ac_ext <<EOF
17234b26 18614#line 18615 "configure"
360d6699
VZ
18615#include "confdefs.h"
18616
b4085ce6 18617 #include <time.h>
698dcdb6
VZ
18618
18619int main() {
360d6699
VZ
18620
18621 int tz;
18622 tz = _timezone;
698dcdb6
VZ
18623
18624; return 0; }
18625EOF
17234b26 18626if { (eval echo configure:18627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18627 rm -rf conftest*
18628
360d6699 18629 wx_cv_var_timezone=_timezone
698dcdb6 18630
5357c8e8 18631else
698dcdb6
VZ
18632 echo "configure: failed program was:" >&5
18633 cat conftest.$ac_ext >&5
18634 rm -rf conftest*
18635
18636 cat > conftest.$ac_ext <<EOF
17234b26 18637#line 18638 "configure"
5357c8e8
VZ
18638#include "confdefs.h"
18639
b4085ce6 18640 #include <time.h>
698dcdb6
VZ
18641
18642int main() {
5357c8e8
VZ
18643
18644 int tz;
4f11a343 18645 tz = __timezone;
698dcdb6
VZ
18646
18647; return 0; }
18648EOF
17234b26 18649if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18650 rm -rf conftest*
18651
4f11a343 18652 wx_cv_var_timezone=__timezone
698dcdb6 18653
360d6699 18654else
698dcdb6
VZ
18655 echo "configure: failed program was:" >&5
18656 cat conftest.$ac_ext >&5
18657 rm -rf conftest*
f9bc1684
VS
18658
18659 if test "$USE_DOS" = 0 ; then
62cc730f 18660 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18661 fi
18662
698dcdb6 18663
360d6699 18664fi
698dcdb6
VZ
18665rm -f conftest*
18666
18667
360d6699 18668fi
698dcdb6
VZ
18669rm -f conftest*
18670
18671
6232543b 18672fi
698dcdb6
VZ
18673rm -f conftest*
18674
18675
1e487827 18676fi
703e0a69 18677
698dcdb6
VZ
18678echo "$ac_t""$wx_cv_var_timezone" 1>&6
18679
f9bc1684 18680 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18681 cat >> confdefs.h <<EOF
360d6699
VZ
18682#define WX_TIMEZONE $wx_cv_var_timezone
18683EOF
18684
f9bc1684 18685 fi
698dcdb6
VZ
18686
18687 for ac_func in localtime
afc31813 18688do
698dcdb6 18689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 18690echo "configure:18691: checking for $ac_func" >&5
698dcdb6
VZ
18691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18693else
18694 cat > conftest.$ac_ext <<EOF
17234b26 18695#line 18696 "configure"
10f2d63a 18696#include "confdefs.h"
afc31813 18697/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18698 which can conflict with char $ac_func(); below. */
afc31813
VZ
18699#include <assert.h>
18700/* Override any gcc2 internal prototype to avoid an error. */
18701/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18702 builtin and then its argument prototype would still apply. */
18703char $ac_func();
18704
18705int main() {
afc31813
VZ
18706
18707/* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18711choke me
18712#else
698dcdb6 18713$ac_func();
afc31813
VZ
18714#endif
18715
698dcdb6 18716; return 0; }
10f2d63a 18717EOF
17234b26 18718if { (eval echo configure:18719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18719 rm -rf conftest*
18720 eval "ac_cv_func_$ac_func=yes"
18721else
18722 echo "configure: failed program was:" >&5
18723 cat conftest.$ac_ext >&5
18724 rm -rf conftest*
18725 eval "ac_cv_func_$ac_func=no"
18726fi
18727rm -f conftest*
18728fi
afc31813 18729
698dcdb6
VZ
18730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18731 echo "$ac_t""yes" 1>&6
18732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18733 cat >> confdefs.h <<EOF
18734#define $ac_tr_func 1
18735EOF
18736
18737else
18738 echo "$ac_t""no" 1>&6
afc31813
VZ
18739fi
18740done
18741
1e487827 18742
698dcdb6
VZ
18743 if test "$ac_cv_func_localtime" = "yes"; then
18744 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17234b26 18745echo "configure:18746: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18746if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18747 echo $ac_n "(cached) $ac_c" 1>&6
18748else
18749
18750 cat > conftest.$ac_ext <<EOF
17234b26 18751#line 18752 "configure"
0470b1e6
VZ
18752#include "confdefs.h"
18753
b4085ce6 18754 #include <time.h>
698dcdb6
VZ
18755
18756int main() {
0470b1e6
VZ
18757
18758 struct tm tm;
18759 tm.tm_gmtoff++;
698dcdb6
VZ
18760
18761; return 0; }
18762EOF
17234b26 18763if { (eval echo configure:18764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18764 rm -rf conftest*
18765
f03a98d8 18766 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18767
0470b1e6 18768else
698dcdb6
VZ
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 rm -rf conftest*
18772 wx_cv_struct_tm_has_gmtoff=no
18773
0470b1e6 18774fi
698dcdb6
VZ
18775rm -f conftest*
18776
1e487827 18777fi
698dcdb6
VZ
18778
18779echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18780 fi
18781
18782 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18783 cat >> confdefs.h <<\EOF
6232543b
VS
18784#define WX_GMTOFF_IN_TM 1
18785EOF
0470b1e6 18786
3fcdd07b
VZ
18787 fi
18788
698dcdb6 18789 for ac_func in gettimeofday ftime
3fcdd07b 18790do
698dcdb6 18791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 18792echo "configure:18793: checking for $ac_func" >&5
698dcdb6
VZ
18793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18794 echo $ac_n "(cached) $ac_c" 1>&6
18795else
18796 cat > conftest.$ac_ext <<EOF
17234b26 18797#line 18798 "configure"
3fcdd07b
VZ
18798#include "confdefs.h"
18799/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18800 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18801#include <assert.h>
18802/* Override any gcc2 internal prototype to avoid an error. */
18803/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18804 builtin and then its argument prototype would still apply. */
18805char $ac_func();
18806
18807int main() {
3fcdd07b
VZ
18808
18809/* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18813choke me
18814#else
698dcdb6 18815$ac_func();
3fcdd07b
VZ
18816#endif
18817
698dcdb6
VZ
18818; return 0; }
18819EOF
17234b26 18820if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18821 rm -rf conftest*
18822 eval "ac_cv_func_$ac_func=yes"
18823else
18824 echo "configure: failed program was:" >&5
18825 cat conftest.$ac_ext >&5
18826 rm -rf conftest*
18827 eval "ac_cv_func_$ac_func=no"
18828fi
18829rm -f conftest*
18830fi
18831
18832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18833 echo "$ac_t""yes" 1>&6
18834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18835 cat >> confdefs.h <<EOF
18836#define $ac_tr_func 1
3fcdd07b
VZ
18837EOF
18838 break
698dcdb6
VZ
18839else
18840 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18841fi
18842done
18843
afc31813 18844
698dcdb6
VZ
18845 if test "$ac_cv_func_gettimeofday" = "yes"; then
18846 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17234b26 18847echo "configure:18848: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18848if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18849 echo $ac_n "(cached) $ac_c" 1>&6
18850else
18851
18852
18853 ac_ext=C
18854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18855ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18858cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18859
698dcdb6
VZ
18860
18861 cat > conftest.$ac_ext <<EOF
17234b26 18862#line 18863 "configure"
10f2d63a 18863#include "confdefs.h"
afc31813
VZ
18864
18865 #include <sys/time.h>
18866 #include <unistd.h>
698dcdb6
VZ
18867
18868int main() {
afc31813
VZ
18869
18870 struct timeval tv;
776862b4 18871 gettimeofday(&tv, NULL);
698dcdb6
VZ
18872
18873; return 0; }
18874EOF
17234b26 18875if { (eval echo configure:18876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18876 rm -rf conftest*
afc31813 18877 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18878else
698dcdb6
VZ
18879 echo "configure: failed program was:" >&5
18880 cat conftest.$ac_ext >&5
18881 rm -rf conftest*
18882 cat > conftest.$ac_ext <<EOF
17234b26 18883#line 18884 "configure"
10f2d63a 18884#include "confdefs.h"
afc31813
VZ
18885
18886 #include <sys/time.h>
18887 #include <unistd.h>
698dcdb6
VZ
18888
18889int main() {
afc31813
VZ
18890
18891 struct timeval tv;
18892 gettimeofday(&tv);
698dcdb6
VZ
18893
18894; return 0; }
18895EOF
17234b26 18896if { (eval echo configure:18897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18897 rm -rf conftest*
afc31813 18898 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18899else
698dcdb6
VZ
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
776862b4
VZ
18903
18904 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18905 wx_cv_func_gettimeofday_has_2_args=unknown
18906
698dcdb6 18907
10f2d63a 18908fi
698dcdb6
VZ
18909rm -f conftest*
18910
10f2d63a 18911fi
698dcdb6 18912rm -f conftest*
afc31813 18913 ac_ext=c
698dcdb6 18914# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18915ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18916ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18917ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18918cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18919
698dcdb6 18920
afc31813 18921fi
698dcdb6
VZ
18922
18923echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18924
afc31813 18925 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18926 cat >> confdefs.h <<\EOF
afc31813
VZ
18927#define WX_GETTIMEOFDAY_NO_TZ 1
18928EOF
18929
18930 fi
18931 fi
18932
698dcdb6 18933 cat >> confdefs.h <<\EOF
afc31813
VZ
18934#define wxUSE_TIMEDATE 1
18935EOF
18936
18937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18938fi
18939
698dcdb6 18940
0feee163 18941if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 18942 if test "$wxUSE_X11" = "1"; then
0feee163
VZ
18943 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18944 wxUSE_SOCKETS="no"
18945 fi
6c657b52
VS
18946
18947 if test "$wxUSE_MGL" = "1"; then
18948 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18949 wxUSE_SOCKETS="no"
18950 fi
0feee163 18951fi
b089607b 18952
0feee163
VZ
18953if test "$wxUSE_SOCKETS" = "yes"; then
18954 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18955 echo $ac_n "checking for socket""... $ac_c" 1>&6
17234b26 18956echo "configure:18957: checking for socket" >&5
698dcdb6
VZ
18957if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18959else
698dcdb6 18960 cat > conftest.$ac_ext <<EOF
17234b26 18961#line 18962 "configure"
c63c7106
VZ
18962#include "confdefs.h"
18963/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18964 which can conflict with char socket(); below. */
c63c7106
VZ
18965#include <assert.h>
18966/* Override any gcc2 internal prototype to avoid an error. */
18967/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18968 builtin and then its argument prototype would still apply. */
18969char socket();
18970
18971int main() {
c63c7106
VZ
18972
18973/* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976#if defined (__stub_socket) || defined (__stub___socket)
18977choke me
18978#else
698dcdb6 18979socket();
c63c7106
VZ
18980#endif
18981
698dcdb6
VZ
18982; return 0; }
18983EOF
17234b26 18984if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18985 rm -rf conftest*
18986 eval "ac_cv_func_socket=yes"
18987else
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 eval "ac_cv_func_socket=no"
18992fi
18993rm -f conftest*
18994fi
18995
18996if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18998 :
18999else
698dcdb6
VZ
19000 echo "$ac_t""no" 1>&6
19001echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17234b26 19002echo "configure:19003: checking for socket in -lsocket" >&5
698dcdb6
VZ
19003ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19005 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19006else
698dcdb6 19007 ac_save_LIBS="$LIBS"
c63c7106 19008LIBS="-lsocket $LIBS"
698dcdb6 19009cat > conftest.$ac_ext <<EOF
17234b26 19010#line 19011 "configure"
c63c7106
VZ
19011#include "confdefs.h"
19012/* Override any gcc2 internal prototype to avoid an error. */
19013/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19014 builtin and then its argument prototype would still apply. */
19015char socket();
19016
19017int main() {
19018socket()
19019; return 0; }
19020EOF
17234b26 19021if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19022 rm -rf conftest*
19023 eval "ac_cv_lib_$ac_lib_var=yes"
19024else
19025 echo "configure: failed program was:" >&5
19026 cat conftest.$ac_ext >&5
19027 rm -rf conftest*
19028 eval "ac_cv_lib_$ac_lib_var=no"
19029fi
19030rm -f conftest*
19031LIBS="$ac_save_LIBS"
19032
19033fi
19034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19035 echo "$ac_t""yes" 1>&6
d558c907
VS
19036 if test "$INET_LINK" != " -lsocket"; then
19037 INET_LINK="$INET_LINK -lsocket"
19038 fi
c63c7106 19039else
698dcdb6 19040 echo "$ac_t""no" 1>&6
afc31813 19041
3a922bb4
RL
19042 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19043 wxUSE_SOCKETS=no
19044
698dcdb6 19045
6232543b 19046fi
b089607b 19047
3a922bb4 19048
1e487827 19049fi
afc31813 19050
3a922bb4 19051 fi
0feee163 19052fi
51a9faba 19053
0feee163
VZ
19054if test "$wxUSE_SOCKETS" = "yes" ; then
19055 if test "$TOOLKIT" != "MSW"; then
3a922bb4 19056 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17234b26 19057echo "configure:19058: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
19058if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19059 echo $ac_n "(cached) $ac_c" 1>&6
19060else
19061
3a922bb4
RL
19062
19063 ac_ext=C
698dcdb6 19064# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 19065ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
19066ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19067ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19068cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 19069
698dcdb6 19070
3a922bb4 19071 cat > conftest.$ac_ext <<EOF
17234b26 19072#line 19073 "configure"
afc31813 19073#include "confdefs.h"
51a9faba 19074
3a922bb4
RL
19075 #include <sys/types.h>
19076 #include <sys/socket.h>
19077
698dcdb6 19078int main() {
51a9faba 19079
3a922bb4
RL
19080 socklen_t len;
19081 getsockname(0, 0, &len);
19082
698dcdb6
VZ
19083; return 0; }
19084EOF
17234b26 19085if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19086 rm -rf conftest*
51a9faba 19087 wx_cv_type_getsockname3=socklen_t
afc31813 19088else
698dcdb6
VZ
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19091 rm -rf conftest*
19092 cat > conftest.$ac_ext <<EOF
17234b26 19093#line 19094 "configure"
afc31813 19094#include "confdefs.h"
51a9faba 19095
3a922bb4
RL
19096 #include <sys/types.h>
19097 #include <sys/socket.h>
19098
698dcdb6 19099int main() {
51a9faba 19100
3a922bb4
RL
19101 size_t len;
19102 getsockname(0, 0, &len);
19103
698dcdb6
VZ
19104; return 0; }
19105EOF
17234b26 19106if { (eval echo configure:19107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19107 rm -rf conftest*
51a9faba 19108 wx_cv_type_getsockname3=size_t
afc31813 19109else
698dcdb6
VZ
19110 echo "configure: failed program was:" >&5
19111 cat conftest.$ac_ext >&5
19112 rm -rf conftest*
19113 cat > conftest.$ac_ext <<EOF
17234b26 19114#line 19115 "configure"
afc31813 19115#include "confdefs.h"
51a9faba 19116
3a922bb4
RL
19117 #include <sys/types.h>
19118 #include <sys/socket.h>
19119
698dcdb6 19120int main() {
51a9faba 19121
3a922bb4
RL
19122 int len;
19123 getsockname(0, 0, &len);
19124
698dcdb6
VZ
19125; return 0; }
19126EOF
17234b26 19127if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19128 rm -rf conftest*
51a9faba 19129 wx_cv_type_getsockname3=int
afc31813 19130else
698dcdb6
VZ
19131 echo "configure: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 rm -rf conftest*
19134 wx_cv_type_getsockname3=unknown
3a922bb4 19135
afc31813 19136fi
698dcdb6 19137rm -f conftest*
3a922bb4 19138
afc31813 19139fi
698dcdb6 19140rm -f conftest*
3a922bb4 19141
afc31813 19142fi
698dcdb6 19143rm -f conftest*
51a9faba 19144
3a922bb4 19145 ac_ext=c
698dcdb6 19146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19147ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
19148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19150cross_compiling=$ac_cv_prog_cc_cross
afc31813 19151
3a922bb4 19152
51a9faba 19153fi
698dcdb6
VZ
19154
19155echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19156
3a922bb4
RL
19157 if test "$wx_cv_type_getsockname3" = "unknown"; then
19158 wxUSE_SOCKETS=no
19159 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19160 else
19161 cat >> confdefs.h <<EOF
51a9faba
VZ
19162#define SOCKLEN_T $wx_cv_type_getsockname3
19163EOF
19164
3a922bb4 19165 fi
51a9faba
VZ
19166 fi
19167fi
afc31813 19168
51a9faba 19169if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 19170 cat >> confdefs.h <<\EOF
afc31813
VZ
19171#define wxUSE_SOCKETS 1
19172EOF
19173
70f7a477 19174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19175fi
19176
698dcdb6 19177
dc3d889d
VZ
19178if test "$wxUSE_GUI" = "yes"; then
19179
156b2523
GD
19180 if test "$TOOLKIT" = "MAC"; then
19181 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19182 wxUSE_JOYSTICK=no
19183 fi
19184 if test "$TOOLKIT" = "MOTIF"; then
19185 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19186 wxUSE_JOYSTICK=no
f79bd02d
JS
19187 fi
19188 if test "$TOOLKIT" = "X11"; then
19189 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19190 wxUSE_JOYSTICK=no
156b2523
GD
19191 fi
19192
3a922bb4
RL
19193 if test "$TOOLKIT" != "MSW"; then
19194 if test "$wxUSE_JOYSTICK" = "yes"; then
19195 for ac_hdr in linux/joystick.h
10f2d63a 19196do
698dcdb6
VZ
19197ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19198echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 19199echo "configure:19200: checking for $ac_hdr" >&5
698dcdb6
VZ
19200if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19202else
19203 cat > conftest.$ac_ext <<EOF
17234b26 19204#line 19205 "configure"
10f2d63a 19205#include "confdefs.h"
698dcdb6
VZ
19206#include <$ac_hdr>
19207EOF
19208ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 19209{ (eval echo configure:19210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19210ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19211if test -z "$ac_err"; then
19212 rm -rf conftest*
19213 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19214else
698dcdb6
VZ
19215 echo "$ac_err" >&5
19216 echo "configure: failed program was:" >&5
10f2d63a 19217 cat conftest.$ac_ext >&5
698dcdb6
VZ
19218 rm -rf conftest*
19219 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19220fi
698dcdb6 19221rm -f conftest*
10f2d63a 19222fi
698dcdb6
VZ
19223if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19224 echo "$ac_t""yes" 1>&6
19225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19226 cat >> confdefs.h <<EOF
19227#define $ac_tr_hdr 1
10f2d63a 19228EOF
698dcdb6
VZ
19229
19230else
19231 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19232fi
19233done
19234
3a922bb4
RL
19235 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19236 wxUSE_JOYSTICK=no
156b2523 19237 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19238 fi
19239 fi
19240 fi
b089607b 19241
3a922bb4
RL
19242 if test "$wxUSE_JOYSTICK" = "yes"; then
19243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19244#define wxUSE_JOYSTICK 1
19245EOF
19246
3a922bb4
RL
19247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19248 fi
dc3d889d
VZ
19249fi
19250
698dcdb6 19251
b089607b
VZ
19252if test "$TOOLKIT" != "MSW"; then
19253
3a922bb4
RL
19254 HAVE_DL_FUNCS=0
19255 HAVE_SHL_FUNCS=0
0b9ab0bd 19256 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19257 if test "$USE_DARWIN" = 1; then
19258 HAVE_DL_FUNCS=1
19259 else
19260 for ac_func in dlopen
10f2d63a 19261do
698dcdb6 19262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 19263echo "configure:19264: checking for $ac_func" >&5
698dcdb6
VZ
19264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
19266else
19267 cat > conftest.$ac_ext <<EOF
17234b26 19268#line 19269 "configure"
10f2d63a
VZ
19269#include "confdefs.h"
19270/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19271 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19272#include <assert.h>
19273/* Override any gcc2 internal prototype to avoid an error. */
19274/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19275 builtin and then its argument prototype would still apply. */
19276char $ac_func();
19277
19278int main() {
10f2d63a
VZ
19279
19280/* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19284choke me
19285#else
698dcdb6 19286$ac_func();
10f2d63a
VZ
19287#endif
19288
698dcdb6
VZ
19289; return 0; }
19290EOF
17234b26 19291if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19292 rm -rf conftest*
19293 eval "ac_cv_func_$ac_func=yes"
19294else
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19297 rm -rf conftest*
19298 eval "ac_cv_func_$ac_func=no"
19299fi
19300rm -f conftest*
19301fi
19302
19303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19304 echo "$ac_t""yes" 1>&6
19305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19306 cat >> confdefs.h <<EOF
19307#define $ac_tr_func 1
19308EOF
19309
3a922bb4 19310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19311#define HAVE_DLOPEN 1
19312EOF
19313
3a922bb4
RL
19314 HAVE_DL_FUNCS=1
19315
10f2d63a 19316else
698dcdb6
VZ
19317 echo "$ac_t""no" 1>&6
19318echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17234b26 19319echo "configure:19320: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19320ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19322 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19323else
698dcdb6 19324 ac_save_LIBS="$LIBS"
10f2d63a 19325LIBS="-ldl $LIBS"
698dcdb6 19326cat > conftest.$ac_ext <<EOF
17234b26 19327#line 19328 "configure"
10f2d63a
VZ
19328#include "confdefs.h"
19329/* Override any gcc2 internal prototype to avoid an error. */
19330/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19331 builtin and then its argument prototype would still apply. */
19332char dlopen();
19333
19334int main() {
19335dlopen()
19336; return 0; }
19337EOF
17234b26 19338if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19339 rm -rf conftest*
19340 eval "ac_cv_lib_$ac_lib_var=yes"
19341else
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19344 rm -rf conftest*
19345 eval "ac_cv_lib_$ac_lib_var=no"
19346fi
19347rm -f conftest*
19348LIBS="$ac_save_LIBS"
19349
19350fi
19351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19352 echo "$ac_t""yes" 1>&6
19353
3a922bb4 19354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19355#define HAVE_DLOPEN 1
19356EOF
19357
3a922bb4 19358 HAVE_DL_FUNCS=1
3d63bc3a 19359 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19360
10f2d63a 19361else
698dcdb6 19362 echo "$ac_t""no" 1>&6
10f2d63a 19363
3a922bb4 19364 for ac_func in shl_load
10f2d63a 19365do
698dcdb6 19366echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 19367echo "configure:19368: checking for $ac_func" >&5
698dcdb6
VZ
19368if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19369 echo $ac_n "(cached) $ac_c" 1>&6
19370else
19371 cat > conftest.$ac_ext <<EOF
17234b26 19372#line 19373 "configure"
10f2d63a
VZ
19373#include "confdefs.h"
19374/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19375 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19376#include <assert.h>
19377/* Override any gcc2 internal prototype to avoid an error. */
19378/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19379 builtin and then its argument prototype would still apply. */
19380char $ac_func();
19381
19382int main() {
10f2d63a
VZ
19383
19384/* The GNU C library defines this for functions which it implements
19385 to always fail with ENOSYS. Some functions are actually named
19386 something starting with __ and the normal name is an alias. */
19387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19388choke me
19389#else
698dcdb6 19390$ac_func();
10f2d63a
VZ
19391#endif
19392
698dcdb6
VZ
19393; return 0; }
19394EOF
17234b26 19395if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19396 rm -rf conftest*
19397 eval "ac_cv_func_$ac_func=yes"
19398else
19399 echo "configure: failed program was:" >&5
19400 cat conftest.$ac_ext >&5
19401 rm -rf conftest*
19402 eval "ac_cv_func_$ac_func=no"
19403fi
19404rm -f conftest*
19405fi
19406
19407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19408 echo "$ac_t""yes" 1>&6
19409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19410 cat >> confdefs.h <<EOF
19411#define $ac_tr_func 1
19412EOF
19413
3a922bb4 19414 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19415#define HAVE_SHL_LOAD 1
19416EOF
19417
3a922bb4
RL
19418 HAVE_SHL_FUNCS=1
19419
10f2d63a 19420else
698dcdb6
VZ
19421 echo "$ac_t""no" 1>&6
19422echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17234b26 19423echo "configure:19424: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19424ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19426 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19427else
698dcdb6 19428 ac_save_LIBS="$LIBS"
f6bcfd97 19429LIBS="-lshl_load $LIBS"
698dcdb6 19430cat > conftest.$ac_ext <<EOF
17234b26 19431#line 19432 "configure"
f6bcfd97
BP
19432#include "confdefs.h"
19433/* Override any gcc2 internal prototype to avoid an error. */
19434/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19435 builtin and then its argument prototype would still apply. */
19436char dld();
19437
19438int main() {
19439dld()
19440; return 0; }
19441EOF
17234b26 19442if { (eval echo configure:19443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19443 rm -rf conftest*
19444 eval "ac_cv_lib_$ac_lib_var=yes"
19445else
19446 echo "configure: failed program was:" >&5
19447 cat conftest.$ac_ext >&5
19448 rm -rf conftest*
19449 eval "ac_cv_lib_$ac_lib_var=no"
19450fi
19451rm -f conftest*
19452LIBS="$ac_save_LIBS"
f6bcfd97 19453
698dcdb6
VZ
19454fi
19455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19456 echo "$ac_t""yes" 1>&6
19457
3a922bb4 19458 HAVE_SHL_FUNCS=1
3d63bc3a 19459 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19460
698dcdb6
VZ
19461else
19462 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19463fi
19464
3a922bb4 19465
10f2d63a
VZ
19466fi
19467done
19468
3a922bb4 19469
10f2d63a
VZ
19470fi
19471
3a922bb4 19472
10f2d63a
VZ
19473fi
19474done
19475
1e487827 19476
3a922bb4
RL
19477 if test "$HAVE_DL_FUNCS" = 1; then
19478 for ac_func in dlerror
f6bcfd97 19479do
698dcdb6 19480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234b26 19481echo "configure:19482: checking for $ac_func" >&5
698dcdb6
VZ
19482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19483 echo $ac_n "(cached) $ac_c" 1>&6
19484else
19485 cat > conftest.$ac_ext <<EOF
17234b26 19486#line 19487 "configure"
f6bcfd97
BP
19487#include "confdefs.h"
19488/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19489 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19490#include <assert.h>
19491/* Override any gcc2 internal prototype to avoid an error. */
19492/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19493 builtin and then its argument prototype would still apply. */
19494char $ac_func();
19495
19496int main() {
f6bcfd97
BP
19497
19498/* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502choke me
19503#else
698dcdb6 19504$ac_func();
f6bcfd97
BP
19505#endif
19506
698dcdb6
VZ
19507; return 0; }
19508EOF
17234b26 19509if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19510 rm -rf conftest*
19511 eval "ac_cv_func_$ac_func=yes"
19512else
19513 echo "configure: failed program was:" >&5
19514 cat conftest.$ac_ext >&5
19515 rm -rf conftest*
19516 eval "ac_cv_func_$ac_func=no"
19517fi
19518rm -f conftest*
19519fi
19520
19521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19522 echo "$ac_t""yes" 1>&6
19523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19524 cat >> confdefs.h <<EOF
19525#define $ac_tr_func 1
19526EOF
19527 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19528#define HAVE_DLERROR 1
19529EOF
19530
19531else
698dcdb6
VZ
19532 echo "$ac_t""no" 1>&6
19533echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17234b26 19534echo "configure:19535: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19535ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19537 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19538else
698dcdb6 19539 ac_save_LIBS="$LIBS"
f6bcfd97 19540LIBS="-ldl $LIBS"
698dcdb6 19541cat > conftest.$ac_ext <<EOF
17234b26 19542#line 19543 "configure"
f6bcfd97
BP
19543#include "confdefs.h"
19544/* Override any gcc2 internal prototype to avoid an error. */
19545/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19546 builtin and then its argument prototype would still apply. */
19547char dlerror();
19548
19549int main() {
19550dlerror()
19551; return 0; }
19552EOF
17234b26 19553if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19554 rm -rf conftest*
19555 eval "ac_cv_lib_$ac_lib_var=yes"
19556else
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19559 rm -rf conftest*
19560 eval "ac_cv_lib_$ac_lib_var=no"
19561fi
19562rm -f conftest*
19563LIBS="$ac_save_LIBS"
19564
19565fi
19566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19567 echo "$ac_t""yes" 1>&6
19568 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19569#define HAVE_DLERROR 1
19570EOF
19571
698dcdb6
VZ
19572else
19573 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19574fi
19575
19576fi
19577done
19578
3a922bb4
RL
19579 fi
19580 fi
f6bcfd97 19581
3a922bb4
RL
19582 if test "$HAVE_DL_FUNCS" = 0; then
19583 if test "$HAVE_SHL_FUNCS" = 0; then
19584 if test "$USE_UNIX" = 1; then
19585 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19586 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19587 wxUSE_DYNLIB_CLASS=no
19588 else
19589 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19590 fi
19591 fi
10f2d63a
VZ
19592 fi
19593 fi
19594fi
19595
0b9ab0bd
RL
19596if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19597 cat >> confdefs.h <<\EOF
19598#define wxUSE_DYNAMIC_LOADER 1
19599EOF
19600
19601elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19603#define wxUSE_DYNLIB_CLASS 1
19604EOF
19605
19606fi
19607
698dcdb6 19608
1e6feb95
VZ
19609if test "$wxUSE_FONTMAP" = "yes" ; then
19610 cat >> confdefs.h <<\EOF
19611#define wxUSE_FONTMAP 1
19612EOF
19613
19614fi
19615
10f2d63a 19616if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19617 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19618#define wxUSE_UNICODE 1
19619EOF
19620
bbc3925a
VS
19621
19622 if test "$wxUSE_MSW" != 1; then
19623 wxUSE_UNICODE_MSLU=no
19624 fi
a72a4bfa
VS
19625
19626 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19627 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
17234b26 19628echo "configure:19629: checking for main in -lunicows" >&5
a72a4bfa
VS
19629ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19631 echo $ac_n "(cached) $ac_c" 1>&6
19632else
19633 ac_save_LIBS="$LIBS"
19634LIBS="-lunicows $LIBS"
19635cat > conftest.$ac_ext <<EOF
17234b26 19636#line 19637 "configure"
a72a4bfa
VS
19637#include "confdefs.h"
19638
19639int main() {
19640main()
19641; return 0; }
19642EOF
17234b26 19643if { (eval echo configure:19644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19644 rm -rf conftest*
19645 eval "ac_cv_lib_$ac_lib_var=yes"
19646else
19647 echo "configure: failed program was:" >&5
19648 cat conftest.$ac_ext >&5
19649 rm -rf conftest*
19650 eval "ac_cv_lib_$ac_lib_var=no"
19651fi
19652rm -f conftest*
19653LIBS="$ac_save_LIBS"
19654
19655fi
19656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19657 echo "$ac_t""yes" 1>&6
19658
19659 cat >> confdefs.h <<\EOF
19660#define wxUSE_UNICODE_MSLU 1
19661EOF
19662
19663
19664else
19665 echo "$ac_t""no" 1>&6
19666
19667 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19668 Applications will only run on Windows NT/2000/XP!" 1>&2
19669 wxUSE_UNICODE_MSLU=no
19670
19671fi
19672
19673 fi
10f2d63a
VZ
19674fi
19675
10f2d63a 19676if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19677 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19678#define wxUSE_EXPERIMENTAL_PRINTF 1
19679EOF
19680
19681fi
19682
698dcdb6 19683
698dcdb6 19684
10f2d63a
VZ
19685IODBC_C_SRC=""
19686if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19688#define wxUSE_ODBC 1
19689EOF
19690
19691 WXODBCFLAG="-D_IODBC_"
19692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19693fi
19694
698dcdb6 19695
10f2d63a 19696if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19697 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19698#define wxUSE_POSTSCRIPT 1
19699EOF
19700
19701fi
19702
698dcdb6 19703cat >> confdefs.h <<\EOF
10f2d63a
VZ
19704#define wxUSE_AFM_FOR_POSTSCRIPT 1
19705EOF
19706
698dcdb6
VZ
19707
19708cat >> confdefs.h <<\EOF
10f2d63a
VZ
19709#define wxUSE_NORMALIZED_PS_FONTS 1
19710EOF
19711
698dcdb6
VZ
19712
19713
10f2d63a 19714if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19715 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19716#define wxUSE_CONSTRAINTS 1
19717EOF
19718
19719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19720fi
19721
19722if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19723 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19724 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19725 wxUSE_MDI_ARCHITECTURE=no
19726 fi
19727
19728 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19729 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19730#define wxUSE_MDI_ARCHITECTURE 1
19731EOF
19732
fc26f4ab
RL
19733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19734 fi
10f2d63a
VZ
19735fi
19736
19737if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19738 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19739#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19740EOF
19741
19742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19743 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19745 fi
19746fi
19747
19748if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19749 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19750#define wxUSE_HELP 1
19751EOF
19752
19753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19754
77e13408 19755 if test "$wxUSE_MSW" = 1; then
031d8228 19756 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19757 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19758#define wxUSE_MS_HTML_HELP 1
19759EOF
19760
3e44f09d 19761 fi
3379ed37 19762 fi
031d8228
VS
19763
19764 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19765 if test "$wxUSE_HTML" = "yes"; then
19766 cat >> confdefs.h <<\EOF
19767#define wxUSE_WXHTML_HELP 1
19768EOF
19769
19770 else
19771 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19772 wxUSE_WXHTML_HELP=no
19773 fi
19774 fi
10f2d63a
VZ
19775fi
19776
19777if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19778 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19779 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19780 else
698dcdb6 19781 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19782#define wxUSE_PRINTING_ARCHITECTURE 1
19783EOF
19784
19785 fi
19786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19787fi
19788
19789if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19791#define wxUSE_PROLOGIO 1
19792EOF
19793
19794fi
19795
19796if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19797 if test "$wxUSE_NANOX" = "yes"; then
19798 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19799 else
19800 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19801#define wxUSE_RESOURCES 1
19802EOF
19803
e334d0ea
JS
19804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19805 fi
10f2d63a
VZ
19806fi
19807
19808if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19810#define wxUSE_X_RESOURCES 1
19811EOF
19812
19813fi
19814
698dcdb6 19815
77e13408
RL
19816if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19817 -o "$wxUSE_CLIPBOARD" = "yes" \
19818 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19819 for ac_hdr in ole2.h
10f2d63a 19820do
698dcdb6
VZ
19821ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19822echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234b26 19823echo "configure:19824: checking for $ac_hdr" >&5
698dcdb6
VZ
19824if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19825 echo $ac_n "(cached) $ac_c" 1>&6
19826else
19827 cat > conftest.$ac_ext <<EOF
17234b26 19828#line 19829 "configure"
10f2d63a 19829#include "confdefs.h"
698dcdb6
VZ
19830#include <$ac_hdr>
19831EOF
19832ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17234b26 19833{ (eval echo configure:19834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19834ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19835if test -z "$ac_err"; then
19836 rm -rf conftest*
19837 eval "ac_cv_header_$ac_safe=yes"
1e487827 19838else
698dcdb6
VZ
19839 echo "$ac_err" >&5
19840 echo "configure: failed program was:" >&5
10f2d63a 19841 cat conftest.$ac_ext >&5
698dcdb6
VZ
19842 rm -rf conftest*
19843 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19844fi
698dcdb6 19845rm -f conftest*
10f2d63a 19846fi
698dcdb6
VZ
19847if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19848 echo "$ac_t""yes" 1>&6
19849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19850 cat >> confdefs.h <<EOF
19851#define $ac_tr_hdr 1
10f2d63a 19852EOF
698dcdb6
VZ
19853
19854else
19855 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19856fi
19857done
19858
698dcdb6 19859
2b9bdf71
VZ
19860 if test "$ac_cv_header_ole2_h" = "yes" ; then
19861 if test "$GCC" = yes ; then
19862 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19863 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19864 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19865 cat >> confdefs.h <<\EOF
4f11a343
VS
19866#define wxUSE_OLE 1
19867EOF
19868
b64f0a5f 19869
2b9bdf71
VZ
19870 fi
19871
19872 cat >> confdefs.h <<\EOF
19873#define wxUSE_DATAOBJ 1
19874EOF
19875
19876 else
19877 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19878
19879 wxUSE_CLIPBOARD=no
19880 wxUSE_DRAG_AND_DROP=no
19881 wxUSE_DATAOBJ=no
19882 fi
19883
77e13408 19884 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19885 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19886#define wxUSE_METAFILE 1
19887EOF
19888
2b9bdf71
VZ
19889
19890 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19891#define wxUSE_ENH_METAFILE 1
19892EOF
19893
2b9bdf71
VZ
19894 fi
19895fi
19896
19897if test "$wxUSE_IPC" = "yes"; then
19898 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19899 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19900 fi
19901
19902 cat >> confdefs.h <<\EOF
19903#define wxUSE_IPC 1
19904EOF
19905
19906fi
19907
19908if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52
VS
19909 if test "$wxUSE_MGL" = 1; then
19910 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19911 wxUSE_CLIPBOARD=no
19912 fi
19913
19914 if test "$wxUSE_CLIPBOARD" = "yes"; then
19915 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19916#define wxUSE_CLIPBOARD 1
19917EOF
19918
673f4220 19919
6c657b52 19920 cat >> confdefs.h <<\EOF
673f4220
VZ
19921#define wxUSE_DATAOBJ 1
19922EOF
19923
6c657b52 19924 fi
2b9bdf71
VZ
19925fi
19926
19927if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19928 if test "$wxUSE_GTK" = 1; then
19929 if test "$WXGTK12" != 1; then
156b2523 19930 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19931 wxUSE_DRAG_AND_DROP=no
19932 fi
19933 fi
19934
2b9bdf71 19935 if test "$wxUSE_MOTIF" = 1; then
156b2523 19936 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19937 wxUSE_DRAG_AND_DROP=no
19938 fi
19939
f79bd02d
JS
19940 if test "$wxUSE_X11" = 1; then
19941 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19942 wxUSE_DRAG_AND_DROP=no
19943 fi
19944
6c657b52
VS
19945 if test "$wxUSE_MGL" = 1; then
19946 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19947 wxUSE_DRAG_AND_DROP=no
19948 fi
19949
10f2d63a 19950 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19952#define wxUSE_DRAG_AND_DROP 1
19953EOF
19954
19955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19956 fi
19957
19958fi
19959
19960if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19962#define wxUSE_SPLINES 1
19963EOF
19964
19965fi
19966
698dcdb6 19967
1e6feb95
VZ
19968USES_CONTROLS=0
19969if test "$wxUSE_CONTROLS" = "yes"; then
19970 USES_CONTROLS=1
19971fi
19972
10f2d63a 19973if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19975#define wxUSE_ACCEL 1
19976EOF
19977
1e6feb95
VZ
19978 USES_CONTROLS=1
19979fi
19980
19981if test "$wxUSE_BUTTON" = "yes"; then
19982 cat >> confdefs.h <<\EOF
19983#define wxUSE_BUTTON 1
19984EOF
19985
19986 USES_CONTROLS=1
19987fi
19988
19989if test "$wxUSE_BMPBUTTON" = "yes"; then
19990 cat >> confdefs.h <<\EOF
19991#define wxUSE_BMPBUTTON 1
19992EOF
19993
19994 USES_CONTROLS=1
19995fi
19996
19997if test "$wxUSE_CALCTRL" = "yes"; then
19998 cat >> confdefs.h <<\EOF
19999#define wxUSE_CALENDARCTRL 1
20000EOF
20001
20002 USES_CONTROLS=1
20003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20004fi
20005
20006if test "$wxUSE_CARET" = "yes"; then
698dcdb6 20007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20008#define wxUSE_CARET 1
20009EOF
20010
1e6feb95 20011 USES_CONTROLS=1
10f2d63a
VZ
20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20013fi
20014
20015if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 20016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20017#define wxUSE_COMBOBOX 1
20018EOF
20019
1e6feb95 20020 USES_CONTROLS=1
10f2d63a
VZ
20021fi
20022
20023if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 20024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20025#define wxUSE_CHOICE 1
20026EOF
20027
1e6feb95 20028 USES_CONTROLS=1
10f2d63a
VZ
20029fi
20030
20031if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 20032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20033#define wxUSE_CHECKBOX 1
20034EOF
20035
1e6feb95 20036 USES_CONTROLS=1
10f2d63a
VZ
20037fi
20038
20039if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 20040 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20041#define wxUSE_CHECKLISTBOX 1
20042EOF
20043
1e6feb95 20044 USES_CONTROLS=1
10f2d63a
VZ
20045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20046fi
20047
20048if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 20049 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20050#define wxUSE_GAUGE 1
20051EOF
20052
1e6feb95 20053 USES_CONTROLS=1
10f2d63a
VZ
20054fi
20055
d6a55c4b
VZ
20056if test "$wxUSE_NEW_GRID" = "yes"; then
20057 wxUSE_GRID="yes"
698dcdb6 20058 cat >> confdefs.h <<\EOF
d6a55c4b 20059#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20060EOF
20061
1e6feb95 20062 USES_CONTROLS=1
d6a55c4b 20063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20064fi
20065
d6a55c4b 20066if test "$wxUSE_GRID" = "yes"; then
698dcdb6 20067 cat >> confdefs.h <<\EOF
d6a55c4b 20068#define wxUSE_GRID 1
10f2d63a
VZ
20069EOF
20070
1e6feb95 20071 USES_CONTROLS=1
d6a55c4b 20072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20073fi
20074
20075if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20076 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20077#define wxUSE_IMAGLIST 1
20078EOF
20079
20080fi
20081
20082if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 20083 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20084#define wxUSE_LISTBOX 1
20085EOF
20086
1e6feb95 20087 USES_CONTROLS=1
10f2d63a
VZ
20088fi
20089
20090if test "$wxUSE_LISTCTRL" = "yes"; then
20091 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20093#define wxUSE_LISTCTRL 1
20094EOF
20095
1e6feb95 20096 USES_CONTROLS=1
10f2d63a
VZ
20097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20098 else
698dcdb6 20099 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20100 fi
20101fi
20102
20103if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 20104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20105#define wxUSE_NOTEBOOK 1
20106EOF
20107
1e6feb95 20108 USES_CONTROLS=1
10f2d63a
VZ
20109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20110fi
20111
24176f2c
GD
20112if test "$wxUSE_PROPSHEET" = "yes"; then
20113 cat >> confdefs.h <<\EOF
20114#define wxUSE_PROPSHEET 1
20115EOF
20116
20117 USES_CONTROLS=1
20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20119fi
20120
10f2d63a 20121if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 20122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20123#define wxUSE_RADIOBOX 1
20124EOF
20125
1e6feb95 20126 USES_CONTROLS=1
10f2d63a
VZ
20127fi
20128
20129if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 20130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20131#define wxUSE_RADIOBTN 1
20132EOF
20133
1e6feb95 20134 USES_CONTROLS=1
10f2d63a
VZ
20135fi
20136
20137if test "$wxUSE_SASH" = "yes"; then
698dcdb6 20138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20139#define wxUSE_SASH 1
20140EOF
20141
20142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20143fi
20144
20145if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 20146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20147#define wxUSE_SCROLLBAR 1
20148EOF
20149
1e6feb95 20150 USES_CONTROLS=1
741a9306 20151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20152fi
20153
20154if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 20155 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20156#define wxUSE_SLIDER 1
20157EOF
20158
1e6feb95 20159 USES_CONTROLS=1
10f2d63a
VZ
20160fi
20161
20162if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 20163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20164#define wxUSE_SPINBTN 1
20165EOF
20166
1e6feb95 20167 USES_CONTROLS=1
10f2d63a
VZ
20168fi
20169
56cfaa52 20170if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 20171 cat >> confdefs.h <<\EOF
56cfaa52
RR
20172#define wxUSE_SPINCTRL 1
20173EOF
20174
1e6feb95 20175 USES_CONTROLS=1
56cfaa52
RR
20176fi
20177
10f2d63a 20178if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 20179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20180#define wxUSE_SPLITTER 1
20181EOF
20182
20183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20184fi
20185
20186if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 20187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20188#define wxUSE_STATBMP 1
20189EOF
20190
1e6feb95 20191 USES_CONTROLS=1
10f2d63a
VZ
20192fi
20193
20194if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20196#define wxUSE_STATBOX 1
20197EOF
20198
1e6feb95
VZ
20199 USES_CONTROLS=1
20200fi
20201
20202if test "$wxUSE_STATTEXT" = "yes"; then
20203 cat >> confdefs.h <<\EOF
20204#define wxUSE_STATTEXT 1
20205EOF
20206
20207 USES_CONTROLS=1
10f2d63a
VZ
20208fi
20209
20210if test "$wxUSE_STATLINE" = "yes"; then
20211 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20212 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20213 else
698dcdb6 20214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20215#define wxUSE_STATLINE 1
20216EOF
20217
1e6feb95 20218 USES_CONTROLS=1
10f2d63a
VZ
20219 fi
20220fi
20221
20222if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20224#define wxUSE_STATUSBAR 1
20225EOF
20226
1e6feb95 20227 USES_CONTROLS=1
698dcdb6 20228
2286341c 20229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20230fi
20231
20232if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20234#define wxUSE_TAB_DIALOG 1
20235EOF
20236
20237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20238fi
20239
1e6feb95
VZ
20240if test "$wxUSE_TEXTCTRL" = "yes"; then
20241 cat >> confdefs.h <<\EOF
20242#define wxUSE_TEXTCTRL 1
20243EOF
20244
20245 USES_CONTROLS=1
20246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20247fi
20248
1db8dc4a 20249if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20250 if test "$wxUSE_MAC" = 1; then
20251 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20252 wxUSE_TOGGLEBTN=no
20253 fi
20254 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20255 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20256 wxUSE_TOGGLEBTN=no
20257 fi
20258
20259 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20260 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20261#define wxUSE_TOGGLEBTN 1
20262EOF
20263
1e6feb95 20264 USES_CONTROLS=1
a45d7ab7 20265 fi
1db8dc4a
VZ
20266fi
20267
360d6699 20268if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20269 cat >> confdefs.h <<\EOF
360d6699
VZ
20270#define wxUSE_TOOLBAR_SIMPLE 1
20271EOF
20272
20273 wxUSE_TOOLBAR="yes"
1e6feb95 20274 USES_CONTROLS=1
360d6699
VZ
20275fi
20276
10f2d63a 20277if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20279#define wxUSE_TOOLBAR 1
20280EOF
20281
1e6feb95 20282 USES_CONTROLS=1
698dcdb6 20283
360d6699
VZ
20284 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20285 wxUSE_TOOLBAR_NATIVE="yes"
20286 fi
20287
1e6feb95
VZ
20288 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20289 cat >> confdefs.h <<\EOF
360d6699
VZ
20290#define wxUSE_TOOLBAR_NATIVE 1
20291EOF
20292
1e6feb95
VZ
20293 USES_CONTROLS=1
20294 fi
20295
20296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20297fi
20298
10f2d63a
VZ
20299if test "$wxUSE_TOOLTIPS" = "yes"; then
20300 if test "$wxUSE_MOTIF" = 1; then
156b2523 20301 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20302 else
20303 if test "$wxUSE_WINE" = 1; then
156b2523 20304 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20305 else
69d27ff7 20306 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20307 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20308 else
3c011993 20309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20310#define wxUSE_TOOLTIPS 1
20311EOF
20312
69d27ff7 20313 fi
10f2d63a
VZ
20314 fi
20315 fi
20316fi
20317
20318if test "$wxUSE_TREECTRL" = "yes"; then
20319 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20320 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20321#define wxUSE_TREECTRL 1
20322EOF
20323
1e6feb95 20324 USES_CONTROLS=1
10f2d63a
VZ
20325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20326 else
698dcdb6 20327 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20328 fi
20329fi
20330
9f41d601 20331if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20332 if test "$wxUSE_MAC" = 1; then
156b2523 20333 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20334 else
485cf710
VZ
20335 if test "$wxUSE_MOTIF" = 1; then
20336 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20337 else
3c011993
VZ
20338 if test "$wxUSE_PM" = 1; then
20339 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20340 else
20341 cat >> confdefs.h <<\EOF
9f41d601
RR
20342#define wxUSE_POPUPWIN 1
20343EOF
20344
9926e4a4 20345
3c011993
VZ
20346 USES_CONTROLS=1
20347 fi
485cf710 20348 fi
6abe4b65 20349 fi
9f41d601
RR
20350fi
20351
dd964dcc 20352if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20353 if test "$wxUSE_PM" = 1; then
20354 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20355 else
20356 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20357#define wxUSE_TIPWINDOW 1
20358EOF
20359
3c011993 20360 fi
dd964dcc
VZ
20361fi
20362
1e6feb95
VZ
20363if test "$USES_CONTROLS" = 1; then
20364 cat >> confdefs.h <<\EOF
20365#define wxUSE_CONTROLS 1
10f2d63a
VZ
20366EOF
20367
10f2d63a
VZ
20368fi
20369
1e6feb95 20370
24176f2c
GD
20371if test "$wxUSE_TREELAYOUT" = "yes"; then
20372 cat >> confdefs.h <<\EOF
20373#define wxUSE_TREELAYOUT 1
20374EOF
20375
20376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20377fi
1e6feb95 20378
24fd6d87
VZ
20379if test "$wxUSE_DRAGIMAGE" = "yes"; then
20380 cat >> confdefs.h <<\EOF
20381#define wxUSE_DRAGIMAGE 1
20382EOF
20383
20384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20385fi
20386
1e6feb95 20387if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20388 cat >> confdefs.h <<\EOF
1e6feb95 20389#define wxUSE_MENUS 1
10f2d63a
VZ
20390EOF
20391
1e6feb95 20392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20393fi
20394
1e6feb95
VZ
20395if test "$wxUSE_METAFILE" = "yes"; then
20396 cat >> confdefs.h <<\EOF
20397#define wxUSE_METAFILE 1
10f2d63a
VZ
20398EOF
20399
10f2d63a
VZ
20400fi
20401
1e6feb95
VZ
20402if test "$wxUSE_MIMETYPE" = "yes"; then
20403 cat >> confdefs.h <<\EOF
20404#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20405EOF
20406
10f2d63a
VZ
20407fi
20408
3e44f09d
VZ
20409if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20410 cat >> confdefs.h <<\EOF
20411#define wxUSE_SYSTEM_OPTIONS 1
20412EOF
20413
321d2b14
VZ
20414if test "$TOOLKIT" = "MSW"; then
20415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20416fi
20417
3e44f09d
VZ
20418fi
20419
4cdb0ab0 20420if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20421 if test "$wxUSE_SOCKETS" != "yes"; then
20422 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20423 wxUSE_PROTOCOL=no
20424 fi
20425
20426 if test "$wxUSE_PROTOCOL" = "yes"; then
20427 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20428#define wxUSE_PROTOCOL 1
20429EOF
20430
20431
3954f9ca
VS
20432 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20433 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20434#define wxUSE_PROTOCOL_HTTP 1
20435EOF
20436
3954f9ca
VS
20437 fi
20438 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20439 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20440#define wxUSE_PROTOCOL_FTP 1
20441EOF
20442
3954f9ca
VS
20443 fi
20444 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20445 cat >> confdefs.h <<\EOF
20446#define wxUSE_PROTOCOL_FILE 1
20447EOF
20448
20449 fi
4cdb0ab0 20450 fi
3954f9ca
VS
20451fi
20452
20453if test "$wxUSE_URL" = "yes"; then
20454 if test "$wxUSE_PROTOCOL" != "yes"; then
20455 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20456 wxUSE_URL=no
20457 fi
20458 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20459 cat >> confdefs.h <<\EOF
3954f9ca 20460#define wxUSE_URL 1
4cdb0ab0
VS
20461EOF
20462
20463 fi
20464fi
20465
10f2d63a 20466if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20467 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20468#define wxUSE_MINIFRAME 1
20469EOF
20470
20471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20472fi
20473
20474if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20475 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20476#define wxUSE_HTML 1
20477EOF
20478
20479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20480fi
20481
20482if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20483 cat >> confdefs.h <<\EOF
1e487827
VS
20484#define wxUSE_VALIDATORS 1
20485EOF
703e0a69 20486
698dcdb6
VZ
20487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20488fi
20489
edae8572
VZ
20490if test "$wxUSE_PALETTE" = "yes" ; then
20491 cat >> confdefs.h <<\EOF
20492#define wxUSE_PALETTE 1
20493EOF
20494
20495fi
20496
698dcdb6
VZ
20497if test "$wxUSE_IMAGE" = "yes" ; then
20498 cat >> confdefs.h <<\EOF
20499#define wxUSE_IMAGE 1
20500EOF
20501
20502fi
20503
20504if test "$wxUSE_GIF" = "yes" ; then
20505 cat >> confdefs.h <<\EOF
20506#define wxUSE_GIF 1
20507EOF
20508
20509fi
20510
20511if test "$wxUSE_PCX" = "yes" ; then
20512 cat >> confdefs.h <<\EOF
20513#define wxUSE_PCX 1
20514EOF
20515
20516fi
20517
4b6b4dfc
RR
20518if test "$wxUSE_IFF" = "yes" ; then
20519 cat >> confdefs.h <<\EOF
20520#define wxUSE_IFF 1
20521EOF
20522
20523fi
20524
698dcdb6
VZ
20525if test "$wxUSE_PNM" = "yes" ; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_PNM 1
20528EOF
20529
20530fi
20531
20532if test "$wxUSE_XPM" = "yes" ; then
20533 cat >> confdefs.h <<\EOF
20534#define wxUSE_XPM 1
20535EOF
20536
20537fi
20538
658974ae
VS
20539if test "$wxUSE_ICO_CUR" = "yes" ; then
20540 cat >> confdefs.h <<\EOF
20541#define wxUSE_ICO_CUR 1
20542EOF
20543
20544fi
20545
a72a4bfa
VS
20546if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20547 LIBS=" -lunicows $LIBS"
20548fi
20549
698dcdb6 20550
1e6feb95
VZ
20551if test "$wxUSE_CHOICEDLG" = "yes"; then
20552 cat >> confdefs.h <<\EOF
20553#define wxUSE_CHOICEDLG 1
20554EOF
20555
20556fi
20557
20558if test "$wxUSE_COLOURDLG" = "yes"; then
20559 cat >> confdefs.h <<\EOF
20560#define wxUSE_COLOURDLG 1
20561EOF
20562
20563fi
20564
20565if test "$wxUSE_FILEDLG" = "yes"; then
20566 cat >> confdefs.h <<\EOF
20567#define wxUSE_FILEDLG 1
20568EOF
20569
20570fi
20571
8db37e06
VZ
20572if test "$wxUSE_FINDREPLDLG" = "yes"; then
20573 cat >> confdefs.h <<\EOF
20574#define wxUSE_FINDREPLDLG 1
20575EOF
20576
20577fi
20578
1e6feb95
VZ
20579if test "$wxUSE_FONTDLG" = "yes"; then
20580 cat >> confdefs.h <<\EOF
20581#define wxUSE_FONTDLG 1
20582EOF
20583
20584fi
20585
20586if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20587 if test "$wxUSE_TREECTRL" != "yes"; then
20588 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20589 else
ae1daed0 20590 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20591#define wxUSE_DIRDLG 1
20592EOF
20593
1e6feb95
VZ
20594 fi
20595fi
20596
20597if test "$wxUSE_MSGDLG" = "yes"; then
20598 cat >> confdefs.h <<\EOF
20599#define wxUSE_MSGDLG 1
20600EOF
20601
20602fi
20603
20604if test "$wxUSE_NUMBERDLG" = "yes"; then
20605 cat >> confdefs.h <<\EOF
20606#define wxUSE_NUMBERDLG 1
20607EOF
20608
20609fi
20610
20611if test "$wxUSE_PROGRESSDLG" = "yes"; then
20612 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20613 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20614 else
20615 cat >> confdefs.h <<\EOF
20616#define wxUSE_PROGRESSDLG 1
20617EOF
20618
20619 fi
20620fi
20621
cbca9943
VZ
20622if test "$wxUSE_SPLASH" = "yes"; then
20623 cat >> confdefs.h <<\EOF
20624#define wxUSE_SPLASH 1
20625EOF
20626
20627fi
20628
1e6feb95
VZ
20629if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20630 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20631 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20632 else
20633 cat >> confdefs.h <<\EOF
20634#define wxUSE_STARTUP_TIPS 1
20635EOF
20636
20637 fi
20638fi
20639
20640if test "$wxUSE_TEXTDLG" = "yes"; then
20641 cat >> confdefs.h <<\EOF
20642#define wxUSE_TEXTDLG 1
20643EOF
20644
20645fi
20646
b1f5d087
VZ
20647if test "$wxUSE_WIZARDDLG" = "yes"; then
20648 cat >> confdefs.h <<\EOF
20649#define wxUSE_WIZARDDLG 1
20650EOF
20651
20652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20653fi
20654
1e6feb95 20655
698dcdb6
VZ
20656if test "$cross_compiling" = "yes"; then
20657 OSINFO="\"$host\""
20658else
20659 OSINFO=`uname -s -r -m`
20660 OSINFO="\"$OSINFO\""
20661fi
20662
20663cat >> confdefs.h <<EOF
20664#define WXWIN_OS_DESCRIPTION $OSINFO
20665EOF
20666
20667
20668
06dda230
VZ
20669if test "x$prefix" != "xNONE"; then
20670 wxPREFIX=$prefix
20671else
20672 wxPREFIX=$ac_default_prefix
20673fi
20674
7e67ed0d 20675cat >> confdefs.h <<EOF
06dda230 20676#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20677EOF
20678
20679
20680
698dcdb6 20681
3a922bb4 20682
f11bdd03 20683if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20684 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20685fi
3a922bb4 20686
3d63bc3a 20687
009fead0 20688LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20689
698dcdb6 20690if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20691
cb61c62d 20692 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20693
20694
867a54b6 20695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20696 drawing dynamic erase event exec font image \
20697 minimal richedit rotate widgets"
20698
3a922bb4
RL
20699 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20700else
20701 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20702fi
20703
698dcdb6 20704
57973b9c
VZ
20705INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20706-I\${top_srcdir}/include \
20707$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20708$TOOLKIT_INCLUDE"
698dcdb6 20709
63e7762e 20710if test "$wxUSE_GTK" = 1; then
3d63bc3a 20711 WXCONFIG_INCLUDE=
698dcdb6
VZ
20712else
20713 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20714fi
20715
20716if test "$GXX" = yes ; then
20717 CXXWARNINGS="-Wall"
88e30f2b
RL
20718
20719 if test "$wxUSE_NO_DEPS" = "no" ; then
20720 CFLAGS="-MMD $CFLAGS"
20721 CXXFLAGS="-MMD $CXXFLAGS"
20722 fi
20723fi
20724
1725144d 20725EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20726
20727CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20728CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20729LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20730
fe5a9cab 20731LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20732
698dcdb6
VZ
20733SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
32832908 20801
2f51a9ec
GD
20802
20803
20804
20805
f6bcfd97 20806
dad6c0ea 20807
caa2c79b 20808
3711412e 20809
1e6feb95
VZ
20810
20811
885d4bf5
VS
20812
20813
20814
20815
9b695262
VZ
20816
20817
62d0491b 20818
ef7f2189 20819
40f7145c 20820
10f2d63a
VZ
20821
20822
698dcdb6 20823echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17234b26 20824echo "configure:20825: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20825set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20826if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20827 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20828else
698dcdb6 20829 cat > conftestmake <<\EOF
10f2d63a
VZ
20830all:
20831 @echo 'ac_maketemp="${MAKE}"'
20832EOF
20833# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20834eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20835if test -n "$ac_maketemp"; then
20836 eval ac_cv_prog_make_${ac_make}_set=yes
20837else
20838 eval ac_cv_prog_make_${ac_make}_set=no
20839fi
698dcdb6 20840rm -f conftestmake
10f2d63a
VZ
20841fi
20842if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20843 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20844 SET_MAKE=
20845else
698dcdb6 20846 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20847 SET_MAKE="MAKE=${MAKE-make}"
20848fi
20849
698dcdb6 20850
3a922bb4
RL
20851if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20852 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20853fi
665bbe97 20854
698dcdb6 20855
10f2d63a 20856
57973b9c
VZ
20857wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20858wx_cv_if_gnu_make=$IF_GNU_MAKE
20859wx_cv_path_ifs=$PATH_IFS
20860wx_cv_program_ext=$PROGRAM_EXT
20861wx_cv_target_library=$WX_TARGET_LIBRARY
20862wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20863wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20864export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20865 wx_cv_path_ifs wx_cv_program_ext \
20866 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20867
20868subdirs="demos samples utils contrib"
2224580a 20869
10f2d63a 20870
698dcdb6
VZ
20871trap '' 1 2 15
20872cat > confcache <<\EOF
10f2d63a
VZ
20873# This file is a shell script that caches the results of configure
20874# tests run on this system so they can be shared between configure
698dcdb6
VZ
20875# scripts and configure runs. It is not useful on other systems.
20876# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20877#
698dcdb6
VZ
20878# By default, configure uses ./config.cache as the cache file,
20879# creating it if it does not exist already. You can give configure
20880# the --cache-file=FILE option to use a different cache file; that is
20881# what configure does when it calls configure scripts in
20882# subdirectories, so they share the cache.
20883# Giving --cache-file=/dev/null disables caching, for debugging configure.
20884# config.status only pays attention to the cache file if you give it the
20885# --recheck option to rerun configure.
10f2d63a 20886#
698dcdb6 20887EOF
10f2d63a
VZ
20888# The following way of writing the cache mishandles newlines in values,
20889# but we know of no workaround that is simple, portable, and efficient.
20890# So, don't put newlines in cache variables' values.
20891# Ultrix sh set writes to stderr and can't be redirected directly,
20892# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20893(set) 2>&1 |
20894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20895 *ac_space=\ *)
20896 # `set' does not quote correctly, so add quotes (double-quote substitution
20897 # turns \\\\ into \\, and sed turns \\ into \).
20898 sed -n \
20899 -e "s/'/'\\\\''/g" \
20900 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20901 ;;
20902 *)
20903 # `set' quotes correctly as required by POSIX, so do not add quotes.
20904 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20905 ;;
20906 esac >> confcache
20907if cmp -s $cache_file confcache; then
20908 :
20909else
10f2d63a 20910 if test -w $cache_file; then
698dcdb6
VZ
20911 echo "updating cache $cache_file"
20912 cat confcache > $cache_file
10f2d63a
VZ
20913 else
20914 echo "not updating unwritable cache $cache_file"
20915 fi
20916fi
20917rm -f confcache
20918
698dcdb6
VZ
20919trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20920
10f2d63a
VZ
20921test "x$prefix" = xNONE && prefix=$ac_default_prefix
20922# Let make expand exec_prefix.
20923test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20924
698dcdb6
VZ
20925# Any assignment to VPATH causes Sun make to only execute
20926# the first set of double-colon rules, so remove it if not needed.
20927# If there is a colon in the path, we need to keep it.
10f2d63a 20928if test "x$srcdir" = x.; then
698dcdb6 20929 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20930fi
20931
698dcdb6
VZ
20932trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20933
10f2d63a
VZ
20934DEFS=-DHAVE_CONFIG_H
20935
698dcdb6 20936# Without the "./", some shells look in PATH for config.status.
10f2d63a 20937: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20938
20939echo creating $CONFIG_STATUS
20940rm -f $CONFIG_STATUS
20941cat > $CONFIG_STATUS <<EOF
20942#! /bin/sh
10f2d63a
VZ
20943# Generated automatically by configure.
20944# Run this file to recreate the current configuration.
698dcdb6
VZ
20945# This directory was configured as follows,
20946# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20947#
20948# $0 $ac_configure_args
20949#
10f2d63a 20950# Compiler output produced by configure, useful for debugging
698dcdb6 20951# configure, is in ./config.log if it exists.
1e487827 20952
698dcdb6
VZ
20953ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20954for ac_option
10f2d63a 20955do
698dcdb6 20956 case "\$ac_option" in
10f2d63a 20957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20958 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20959 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20960 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20961 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20962 exit 0 ;;
20963 -help | --help | --hel | --he | --h)
20964 echo "\$ac_cs_usage"; exit 0 ;;
20965 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20966 esac
20967done
20968
698dcdb6
VZ
20969ac_given_srcdir=$srcdir
20970ac_given_INSTALL="$INSTALL"
703e0a69 20971
698dcdb6
VZ
20972trap 'rm -fr `echo "
20973 wx-config
20974 src/make.env
20975 src/makeprog.env
20976 src/makelib.env
20977 Makefile
20978 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20979EOF
698dcdb6 20980cat >> $CONFIG_STATUS <<EOF
1e487827 20981
698dcdb6
VZ
20982# Protect against being on the right side of a sed subst in config.status.
20983sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20984 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20985$ac_vpsub
20986$extrasub
20987s%@SHELL@%$SHELL%g
20988s%@CFLAGS@%$CFLAGS%g
20989s%@CPPFLAGS@%$CPPFLAGS%g
20990s%@CXXFLAGS@%$CXXFLAGS%g
20991s%@FFLAGS@%$FFLAGS%g
20992s%@DEFS@%$DEFS%g
20993s%@LDFLAGS@%$LDFLAGS%g
20994s%@LIBS@%$LIBS%g
20995s%@exec_prefix@%$exec_prefix%g
20996s%@prefix@%$prefix%g
20997s%@program_transform_name@%$program_transform_name%g
20998s%@bindir@%$bindir%g
20999s%@sbindir@%$sbindir%g
21000s%@libexecdir@%$libexecdir%g
21001s%@datadir@%$datadir%g
21002s%@sysconfdir@%$sysconfdir%g
21003s%@sharedstatedir@%$sharedstatedir%g
21004s%@localstatedir@%$localstatedir%g
21005s%@libdir@%$libdir%g
21006s%@includedir@%$includedir%g
21007s%@oldincludedir@%$oldincludedir%g
21008s%@infodir@%$infodir%g
21009s%@mandir@%$mandir%g
21010s%@host@%$host%g
21011s%@host_alias@%$host_alias%g
21012s%@host_cpu@%$host_cpu%g
21013s%@host_vendor@%$host_vendor%g
21014s%@host_os@%$host_os%g
21015s%@target@%$target%g
21016s%@target_alias@%$target_alias%g
21017s%@target_cpu@%$target_cpu%g
21018s%@target_vendor@%$target_vendor%g
21019s%@target_os@%$target_os%g
21020s%@build@%$build%g
21021s%@build_alias@%$build_alias%g
21022s%@build_cpu@%$build_cpu%g
21023s%@build_vendor@%$build_vendor%g
21024s%@build_os@%$build_os%g
21025s%@CC@%$CC%g
21026s%@CPP@%$CPP%g
21027s%@CXX@%$CXX%g
698dcdb6
VZ
21028s%@RANLIB@%$RANLIB%g
21029s%@AR@%$AR%g
21030s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 21031s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 21032s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 21033s%@STRIP@%$STRIP%g
613d0995 21034s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
21035s%@YACC@%$YACC%g
21036s%@LEX@%$LEX%g
21037s%@LEXLIB@%$LEXLIB%g
21038s%@LN_S@%$LN_S%g
90dd450c 21039s%@CXXCPP@%$CXXCPP%g
9e691f46 21040s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
21041s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21042s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 21043s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
21044s%@X_CFLAGS@%$X_CFLAGS%g
21045s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21046s%@X_LIBS@%$X_LIBS%g
21047s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
321d2b14 21048s%@AIX_CXX_LD@%$AIX_CXX_LD%g
3a922bb4 21049s%@RESCOMP@%$RESCOMP%g
698dcdb6 21050s%@DEREZ@%$DEREZ%g
b040e242 21051s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
21052s%@LEX_STEM@%$LEX_STEM%g
21053s%@PATH_IFS@%$PATH_IFS%g
21054s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21055s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21056s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
21057s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21058s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 21059s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
21060s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21061s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21062s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 21063s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
21064s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21065s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
21066s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21067s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21068s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
21069s%@WX_ALL@%$WX_ALL%g
21070s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21071s%@SHARED_LD@%$SHARED_LD%g
21072s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
21073s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21074s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
21075s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21076s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
21077s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21078s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21079s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21080s%@USE_GUI@%$USE_GUI%g
21081s%@AFMINSTALL@%$AFMINSTALL%g
21082s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 21083s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 21084s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
21085s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21086s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 21087s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
21088s%@cross_compiling@%$cross_compiling%g
21089s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21090s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
21091s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21092s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
21093s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21094s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
21095s%@ALL_HEADERS@%$ALL_HEADERS%g
21096s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
21097s%@GUIDIST@%$GUIDIST%g
21098s%@PORT_FILES@%$PORT_FILES%g
21099s%@DISTDIR@%$DISTDIR%g
698dcdb6 21100s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 21101s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 21102s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 21103s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 21104s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 21105s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 21106s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 21107s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
21108s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21109s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 21110s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
21111s%@LIBWXMACRES@%$LIBWXMACRES%g
21112s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 21113s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
21114s%@DLLTOOL@%$DLLTOOL%g
21115s%@AS@%$AS%g
21116s%@NM@%$NM%g
21117s%@LD@%$LD%g
21118s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 21119s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
21120s%@SET_MAKE@%$SET_MAKE%g
21121s%@subdirs@%$subdirs%g
1e487827 21122
1e487827 21123CEOF
1e487827
VS
21124EOF
21125
698dcdb6
VZ
21126cat >> $CONFIG_STATUS <<\EOF
21127
21128# Split the substitutions into bite-sized pieces for seds with
21129# small command number limits, like on Digital OSF/1 and HP-UX.
21130ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21131ac_file=1 # Number of current file.
21132ac_beg=1 # First line for current file.
21133ac_end=$ac_max_sed_cmds # Line after last line for current file.
21134ac_more_lines=:
21135ac_sed_cmds=""
21136while $ac_more_lines; do
21137 if test $ac_beg -gt 1; then
21138 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21139 else
21140 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21141 fi
21142 if test ! -s conftest.s$ac_file; then
21143 ac_more_lines=false
21144 rm -f conftest.s$ac_file
21145 else
21146 if test -z "$ac_sed_cmds"; then
21147 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 21148 else
698dcdb6 21149 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 21150 fi
698dcdb6
VZ
21151 ac_file=`expr $ac_file + 1`
21152 ac_beg=$ac_end
21153 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21154 fi
698dcdb6
VZ
21155done
21156if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds=cat
21158fi
21159EOF
10f2d63a 21160
698dcdb6
VZ
21161cat >> $CONFIG_STATUS <<EOF
21162
21163CONFIG_FILES=\${CONFIG_FILES-"wx-config
21164 src/make.env
21165 src/makeprog.env
21166 src/makelib.env
21167 Makefile
21168 "}
10f2d63a 21169EOF
698dcdb6
VZ
21170cat >> $CONFIG_STATUS <<\EOF
21171for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21173 case "$ac_file" in
21174 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21175 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21176 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21177 esac
21178
698dcdb6 21179 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 21180
698dcdb6
VZ
21181 # Remove last slash and all that follows it. Not all systems have dirname.
21182 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21183 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21184 # The file is in a subdirectory.
21185 test ! -d "$ac_dir" && mkdir "$ac_dir"
21186 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21187 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 21188 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21189 else
21190 ac_dir_suffix= ac_dots=
21191 fi
21192
698dcdb6
VZ
21193 case "$ac_given_srcdir" in
21194 .) srcdir=.
21195 if test -z "$ac_dots"; then top_srcdir=.
21196 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21197 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21198 *) # Relative path.
698dcdb6
VZ
21199 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21200 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21201 esac
21202
698dcdb6
VZ
21203 case "$ac_given_INSTALL" in
21204 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21205 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21206 esac
21207
698dcdb6
VZ
21208 echo creating "$ac_file"
21209 rm -f "$ac_file"
21210 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21211 case "$ac_file" in
21212 *Makefile*) ac_comsub="1i\\
21213# $configure_input" ;;
21214 *) ac_comsub= ;;
21215 esac
10f2d63a 21216
698dcdb6
VZ
21217 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21218 sed -e "$ac_comsub
21219s%@configure_input@%$configure_input%g
21220s%@srcdir@%$srcdir%g
21221s%@top_srcdir@%$top_srcdir%g
21222s%@INSTALL@%$INSTALL%g
21223" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21224fi; done
21225rm -f conftest.s*
10f2d63a
VZ
21226
21227# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21228# NAME is the cpp macro being defined and VALUE is the value it is being given.
21229#
21230# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21231ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21232ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21233ac_dC='\3'
21234ac_dD='%g'
21235# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21236ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21237ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21238ac_uC=' '
698dcdb6
VZ
21239ac_uD='\4%g'
21240# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21241ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21242ac_eB='$%\1#\2define\3'
21243ac_eC=' '
21244ac_eD='%g'
10f2d63a 21245
698dcdb6
VZ
21246if test "${CONFIG_HEADERS+set}" != set; then
21247EOF
21248cat >> $CONFIG_STATUS <<EOF
21249 CONFIG_HEADERS="setup.h:setup.h.in"
21250EOF
21251cat >> $CONFIG_STATUS <<\EOF
21252fi
21253for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21255 case "$ac_file" in
21256 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21257 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21258 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21259 esac
21260
698dcdb6
VZ
21261 echo creating $ac_file
21262
21263 rm -f conftest.frag conftest.in conftest.out
21264 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21265 cat $ac_file_inputs > conftest.in
21266
21267EOF
21268
21269# Transform confdefs.h into a sed script conftest.vals that substitutes
21270# the proper values into config.h.in to produce config.h. And first:
21271# Protect against being on the right side of a sed subst in config.status.
21272# Protect against being in an unquoted here document in config.status.
21273rm -f conftest.vals
21274cat > conftest.hdr <<\EOF
21275s/[\\&%]/\\&/g
21276s%[\\$`]%\\&%g
21277s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21278s%ac_d%ac_u%gp
21279s%ac_u%ac_e%gp
21280EOF
21281sed -n -f conftest.hdr confdefs.h > conftest.vals
21282rm -f conftest.hdr
10f2d63a
VZ
21283
21284# This sed command replaces #undef with comments. This is necessary, for
21285# example, in the case of _POSIX_SOURCE, which is predefined and required
21286# on some systems where configure will not decide to define it.
698dcdb6
VZ
21287cat >> conftest.vals <<\EOF
21288s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21289EOF
21290
698dcdb6
VZ
21291# Break up conftest.vals because some shells have a limit on
21292# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21293
21294rm -f conftest.tail
698dcdb6 21295while :
10f2d63a 21296do
698dcdb6
VZ
21297 ac_lines=`grep -c . conftest.vals`
21298 # grep -c gives empty output for an empty file on some AIX systems.
21299 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21300 # Write a limited-size here document to conftest.frag.
21301 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21302 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21303 echo 'CEOF
698dcdb6
VZ
21304 sed -f conftest.frag conftest.in > conftest.out
21305 rm -f conftest.in
21306 mv conftest.out conftest.in
21307' >> $CONFIG_STATUS
21308 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21309 rm -f conftest.vals
21310 mv conftest.tail conftest.vals
10f2d63a 21311done
698dcdb6
VZ
21312rm -f conftest.vals
21313
21314cat >> $CONFIG_STATUS <<\EOF
21315 rm -f conftest.frag conftest.h
21316 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21317 cat conftest.in >> conftest.h
21318 rm -f conftest.in
21319 if cmp -s $ac_file conftest.h 2>/dev/null; then
21320 echo "$ac_file is unchanged"
21321 rm -f conftest.h
10f2d63a 21322 else
698dcdb6
VZ
21323 # Remove last slash and all that follows it. Not all systems have dirname.
21324 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21325 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21326 # The file is in a subdirectory.
21327 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21328 fi
698dcdb6
VZ
21329 rm -f $ac_file
21330 mv conftest.h $ac_file
10f2d63a 21331 fi
698dcdb6
VZ
21332fi; done
21333
10f2d63a 21334EOF
698dcdb6 21335cat >> $CONFIG_STATUS <<EOF
10f2d63a 21336
3a922bb4 21337 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21338 LN_S="${LN_S}"
21339
21340
21341EOF
21342cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21343
652d930d 21344 if test ! -h wx-config; then
991a5759 21345 chmod +x wx-config
3a922bb4
RL
21346 mv wx-config wx${TOOLCHAIN_NAME}-config
21347 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21348 fi
665bbe97 21349
00cf1208
RR
21350 if test ! -d lib; then
21351 mkdir lib
21352 fi
21353 if test ! -d lib/wx; then
21354 mkdir lib/wx
21355 fi
21356 if test ! -d lib/wx/include; then
21357 mkdir lib/wx/include
21358 fi
3a922bb4
RL
21359 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21360 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21361 fi
3a922bb4
RL
21362 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21363 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21364 fi
21365 if test -f setup.h; then
3a922bb4 21366 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21367 fi
698dcdb6
VZ
21368
21369exit 0
10f2d63a
VZ
21370EOF
21371chmod +x $CONFIG_STATUS
698dcdb6
VZ
21372rm -fr confdefs* $ac_clean_files
21373test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21374
2224580a
VZ
21375if test "$no_recursion" != yes; then
21376
21377 # Remove --cache-file and --srcdir arguments so they do not pile up.
21378 ac_sub_configure_args=
21379 ac_prev=
21380 for ac_arg in $ac_configure_args; do
21381 if test -n "$ac_prev"; then
21382 ac_prev=
21383 continue
21384 fi
698dcdb6 21385 case "$ac_arg" in
2224580a
VZ
21386 -cache-file | --cache-file | --cache-fil | --cache-fi \
21387 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21388 ac_prev=cache_file ;;
21389 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21390 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21391 ;;
21392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21393 ac_prev=srcdir ;;
21394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21395 ;;
21396 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21397 esac
21398 done
21399
8f4a9a10 21400 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21401
21402 # Do not complain, so a configure script can configure whichever
21403 # parts of a large source tree are present.
698dcdb6
VZ
21404 if test ! -d $srcdir/$ac_config_dir; then
21405 continue
21406 fi
21407
21408 echo configuring in $ac_config_dir
2224580a 21409
698dcdb6 21410 case "$srcdir" in
2224580a
VZ
21411 .) ;;
21412 *)
698dcdb6
VZ
21413 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21414 else
21415 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21416 fi
21417 ;;
2224580a
VZ
21418 esac
21419
21420 ac_popdir=`pwd`
698dcdb6 21421 cd $ac_config_dir
2224580a 21422
698dcdb6
VZ
21423 # A "../" for each directory in /$ac_config_dir.
21424 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21425
698dcdb6 21426 case "$srcdir" in
2224580a
VZ
21427 .) # No --srcdir option. We are building in place.
21428 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21429 /*) # Absolute path.
21430 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21431 *) # Relative path.
698dcdb6 21432 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21433 esac
21434
21435 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21436 if test -f $ac_sub_srcdir/configure; then
21437 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21438 elif test -f $ac_sub_srcdir/configure.in; then
21439 ac_sub_configure=$ac_configure
21440 else
698dcdb6 21441 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21442 ac_sub_configure=
21443 fi
21444
21445 # The recursion is here.
21446 if test -n "$ac_sub_configure"; then
698dcdb6 21447
2224580a 21448 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21449 case "$cache_file" in
21450 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21451 *) # Relative path.
698dcdb6 21452 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21453 esac
698dcdb6
VZ
21454 case "$ac_given_INSTALL" in
21455 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21456 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21457 esac
2224580a 21458
698dcdb6 21459 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21460 # The eval makes quoting arguments work.
698dcdb6
VZ
21461 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21462 then :
21463 else
21464 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21465 fi
2224580a
VZ
21466 fi
21467
21468 cd $ac_popdir
21469 done
21470fi
21471
698dcdb6 21472