]> git.saurik.com Git - wxWidgets.git/blame - configure
wxBase readme file location changed
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
b040e242
VS
41
42
43
b040e242
VS
44
45
46
47
48
49
50
51
52# Configure paths for GTK+
53# Owen Taylor 97-11-3
698dcdb6 54
698dcdb6
VZ
55
56
57# Guess values for system-dependent variables and create Makefiles.
58# Generated automatically using autoconf version 2.13
59# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60#
61# This configure script is free software; the Free Software Foundation
62# gives unlimited permission to copy, distribute and modify it.
63
64# Defaults:
65ac_help=
66ac_default_prefix=/usr/local
67# Any additions from configure.in:
68ac_help="$ac_help
8168de4c 69 --enable-gui use GUI classes"
1e6feb95 70ac_help="$ac_help
8168de4c 71 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-gtk use GTK+"
74ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76ac_help="$ac_help
77 --with-mac use Mac OS X"
78ac_help="$ac_help
79 --with-wine use WINE"
80ac_help="$ac_help
77e13408 81 --with-msw use MS-Windows"
698dcdb6
VZ
82ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
1e6feb95 84ac_help="$ac_help
b3e8d00a 85 --with-mgl use SciTech MGL"
1725144d
RR
86ac_help="$ac_help
87 --with-microwin use MicroWindows"
f79bd02d
JS
88ac_help="$ac_help
89 --with-x11 use X11"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-libpng use libpng (PNG image format)"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --with-freetype use freetype (font rasterizer)"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --with-opengl use OpenGL (or Mesa)"
698dcdb6 102ac_help="$ac_help
d0e9b150 103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
104ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --with-zlib use zlib for LZW compression"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-shared create shared library code"
698dcdb6 112ac_help="$ac_help
3a922bb4 113 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-optimise create optimised code"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-debug same as debug_flag and debug_info"
683dccda
GD
118ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-debug_info create code with debugging information"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-debug_cntxt use wxDebugContext"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-mem_tracing create code with memory tracing"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-profile create code with profiling information"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-no_rtti create code without RTTI information"
698dcdb6 134ac_help="$ac_help
b3e8d00a 135 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-no_deps create code without dependency information"
54276ccf 140ac_help="$ac_help
b3e8d00a 141 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 142ac_help="$ac_help
b3e8d00a 143 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 144ac_help="$ac_help
8168de4c 145 --enable-intl use internationalization system"
698dcdb6 146ac_help="$ac_help
8168de4c 147 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
148ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-sockets use socket/network classes"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-cmdline use wxCmdLineParser class"
1e6feb95 162ac_help="$ac_help
8168de4c 163 --enable-datetime use wxDateTime class"
1e6feb95 164ac_help="$ac_help
8168de4c 165 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 166ac_help="$ac_help
8168de4c 167 --enable-stopwatch use wxStopWatch class"
1e6feb95 168ac_help="$ac_help
8168de4c 169 --enable-dialupman use dialup network classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-timer use wxTimer class"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-wave use wxWave class"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-fraction use wxFraction class"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
180ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-longlong use wxLongLong class"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-geometry use geometry class"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-log use logging system"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-streams use wxStream etc classes"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-file use wxFile classes"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-ffile use wxFFile classes"
1e6feb95 194ac_help="$ac_help
a3a584a7
VZ
195 --enable-textbuf use wxTextBuffer class"
196ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-fontmap use font encodings conversion classes"
1e6feb95 200ac_help="$ac_help
8168de4c 201 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
202ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 208ac_help="$ac_help
8168de4c 209 --enable-filesystem use virtual file systems classes"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-zipstream use wxZipInputStream"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 220ac_help="$ac_help
69d27ff7 221 --enable-mimetype use wxMimeTypesManager"
3e44f09d 222ac_help="$ac_help
b3e8d00a 223 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
224ac_help="$ac_help
225 --enable-url use wxURL class"
226ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 234ac_help="$ac_help
8168de4c 235 --enable-threads use threads"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-docview use document view architecture"
698dcdb6 238ac_help="$ac_help
3379ed37 239 --enable-help use help subsystem"
29fd3c0c
VS
240ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
242ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-constraints use layout-constraints system"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-printarch use printing architecture"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-mdi use multiple document interface architecture"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-loggui use standard GUI logger"
1e6feb95 254ac_help="$ac_help
8168de4c 255 --enable-logwin use wxLogWindow"
69d27ff7
MB
256ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
1e6feb95 258ac_help="$ac_help
8168de4c 259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-prologio use Prolog IO library"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-resources use wxWindows resources"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-clipboard use wxClipboard classes"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-dnd use Drag'n'Drop classes"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-metafile use win32 metafiles"
698dcdb6 272ac_help="$ac_help
24176f2c 273 --enable-treelayout use wxTreeLayout classes"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-controls use all usual controls"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-accel use accelerators"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-button use wxButton class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-calendar use wxCalendarCtrl class"
1e6feb95 284ac_help="$ac_help
8168de4c 285 --enable-caret use wxCaret class"
1e6feb95 286ac_help="$ac_help
8168de4c 287 --enable-checkbox use wxCheckBox class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-choice use wxChoice class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-combobox use wxComboBox classes"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-gauge use wxGauge class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-grid use wxGrid class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-newgrid use new wxGrid class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-imaglist use wxImageList class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-listbox use wxListBox class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-listctrl use wxListCtrl class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-notebook use wxNotebook class"
24176f2c
GD
308ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-radiobox use wxRadioBox class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-radiobtn use wxRadioButton class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-sash use wxSashWindow class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-slider use wxSlider class"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-spinbtn use wxSpinButton class"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-splitter use wxSplitterWindow class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-statbmp use wxStaticBitmap class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-statbox use wxStaticBox class"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-statline use wxStaticLine class"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-stattext use wxStaticText class"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-statusbar use wxStatusBar class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tabdialog use wxTabControl class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-textctrl use wxTextCtrl class"
1e6feb95 340ac_help="$ac_help
8168de4c 341 --enable-togglebtn use wxToggleButton class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-toolbar use wxToolBar class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-tbarnative use native wxToolBar class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
350ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
352ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
698dcdb6 354ac_help="$ac_help
b3e8d00a 355 --enable-commondlg use all common dialogs"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-choicedlg use wxChoiceDialog"
1e6feb95 358ac_help="$ac_help
8168de4c 359 --enable-coldlg use wxColourDialog"
1e6feb95 360ac_help="$ac_help
8168de4c 361 --enable-filedlg use wxFileDialog"
8db37e06
VZ
362ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 364ac_help="$ac_help
8168de4c 365 --enable-fontdlg use wxFontDialog"
1e6feb95 366ac_help="$ac_help
8168de4c 367 --enable-dirdlg use wxDirDialog"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-msgdlg use wxMessageDialog"
1e6feb95 370ac_help="$ac_help
8168de4c 371 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
372ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
1e6feb95 374ac_help="$ac_help
8168de4c 375 --enable-textdlg use wxTextDialog"
698dcdb6 376ac_help="$ac_help
8168de4c 377 --enable-tipdlg use startup tips"
698dcdb6 378ac_help="$ac_help
8168de4c 379 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
380ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
698dcdb6 382ac_help="$ac_help
8168de4c 383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 384ac_help="$ac_help
8168de4c 385 --enable-miniframe use wxMiniFrame class"
698dcdb6 386ac_help="$ac_help
8168de4c 387 --enable-tooltips use wxToolTip class"
698dcdb6 388ac_help="$ac_help
8168de4c 389 --enable-splines use spline drawing code"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-validators use wxValidator and derived classes"
698dcdb6 392ac_help="$ac_help
8168de4c 393 --enable-busyinfo use wxBusyInfo"
698dcdb6 394ac_help="$ac_help
b3e8d00a 395 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 396ac_help="$ac_help
8168de4c 397 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
398ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
edae8572
VZ
400ac_help="$ac_help
401 --enable-palette use wxPalette class"
1e6feb95 402ac_help="$ac_help
8168de4c 403 --enable-image use wxImage class"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-gif use gif images (GIF file format)"
698dcdb6 406ac_help="$ac_help
8168de4c 407 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
408ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
698dcdb6 410ac_help="$ac_help
8168de4c 411 --enable-pnm use pnm images (PNM file format)"
698dcdb6 412ac_help="$ac_help
8168de4c 413 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
414ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
698dcdb6
VZ
416ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
422ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
434ac_help="$ac_help
435 --with-x use the X Window System"
b040e242
VS
436ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
438
439# Initialize some variables set by options.
440# The variables have the same names as the options, with
441# dashes changed to underlines.
698dcdb6
VZ
442build=NONE
443cache_file=./config.cache
10f2d63a 444exec_prefix=NONE
698dcdb6 445host=NONE
10f2d63a 446no_create=
698dcdb6 447nonopt=NONE
10f2d63a
VZ
448no_recursion=
449prefix=NONE
450program_prefix=NONE
451program_suffix=NONE
452program_transform_name=s,x,x,
453silent=
454site=
455srcdir=
698dcdb6 456target=NONE
10f2d63a
VZ
457verbose=
458x_includes=NONE
459x_libraries=NONE
460bindir='${exec_prefix}/bin'
461sbindir='${exec_prefix}/sbin'
462libexecdir='${exec_prefix}/libexec'
463datadir='${prefix}/share'
464sysconfdir='${prefix}/etc'
465sharedstatedir='${prefix}/com'
466localstatedir='${prefix}/var'
467libdir='${exec_prefix}/lib'
468includedir='${prefix}/include'
469oldincludedir='/usr/include'
470infodir='${prefix}/info'
471mandir='${prefix}/man'
472
698dcdb6
VZ
473# Initialize some other variables.
474subdirs=
475MFLAGS= MAKEFLAGS=
476SHELL=${CONFIG_SHELL-/bin/sh}
477# Maximum number of lines to put in a shell here document.
478ac_max_here_lines=12
10f2d63a
VZ
479
480ac_prev=
481for ac_option
482do
698dcdb6 483
10f2d63a
VZ
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
698dcdb6
VZ
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
10f2d63a
VZ
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
698dcdb6 498 case "$ac_option" in
10f2d63a
VZ
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 503 bindir="$ac_optarg" ;;
10f2d63a
VZ
504
505 -build | --build | --buil | --bui | --bu)
698dcdb6 506 ac_prev=build ;;
10f2d63a 507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 508 build="$ac_optarg" ;;
10f2d63a
VZ
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 515 cache_file="$ac_optarg" ;;
10f2d63a
VZ
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
698dcdb6 521 datadir="$ac_optarg" ;;
10f2d63a
VZ
522
523 -disable-* | --disable-*)
698dcdb6 524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 525 # Reject names that are not valid shell variable names.
698dcdb6
VZ
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
531
532 -enable-* | --enable-*)
698dcdb6 533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 534 # Reject names that are not valid shell variable names.
698dcdb6
VZ
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
10f2d63a
VZ
541 *) ac_optarg=yes ;;
542 esac
698dcdb6 543 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
698dcdb6 552 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
698dcdb6
VZ
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562Usage: configure [options] [host]
563Options: [defaults in brackets after descriptions]
564Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594EOF
595 cat << EOF
596Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
10f2d63a
VZ
612
613 -host | --host | --hos | --ho)
698dcdb6 614 ac_prev=host ;;
10f2d63a 615 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 616 host="$ac_optarg" ;;
10f2d63a
VZ
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 623 includedir="$ac_optarg" ;;
10f2d63a
VZ
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 628 infodir="$ac_optarg" ;;
10f2d63a
VZ
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 633 libdir="$ac_optarg" ;;
10f2d63a
VZ
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
698dcdb6 640 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 649 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 654 mandir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 675 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 680 prefix="$ac_optarg" ;;
10f2d63a
VZ
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 687 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 694 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 711 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
698dcdb6 721 sbindir="$ac_optarg" ;;
10f2d63a
VZ
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
698dcdb6 732 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
698dcdb6 737 site="$ac_optarg" ;;
10f2d63a
VZ
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 742 srcdir="$ac_optarg" ;;
10f2d63a
VZ
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 749 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 752 ac_prev=target ;;
10f2d63a 753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 754 target="$ac_optarg" ;;
10f2d63a
VZ
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
698dcdb6
VZ
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
10f2d63a
VZ
762
763 -with-* | --with-*)
698dcdb6 764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 765 # Reject names that are not valid shell variable names.
698dcdb6
VZ
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
10f2d63a 769 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
770 case "$ac_option" in
771 *=*) ;;
10f2d63a
VZ
772 *) ac_optarg=yes ;;
773 esac
698dcdb6 774 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
775
776 -without-* | --without-*)
698dcdb6 777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 778 # Reject names that are not valid shell variable names.
698dcdb6
VZ
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 794 x_includes="$ac_optarg" ;;
10f2d63a
VZ
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 801 x_libraries="$ac_optarg" ;;
10f2d63a 802
698dcdb6 803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
804 ;;
805
806 *)
698dcdb6
VZ
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
10f2d63a
VZ
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
698dcdb6
VZ
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821fi
822
823trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825# File descriptor usage:
826# 0 standard input
827# 1 file creation
828# 2 errors and warnings
829# 3 some systems may open it to /dev/tty
830# 4 used on the Kubota Titan
831# 6 checking for... messages and results
832# 5 compiler messages saved in config.log
833if test "$silent" = yes; then
834 exec 6>/dev/null
835else
836 exec 6>&1
10f2d63a 837fi
698dcdb6
VZ
838exec 5>./config.log
839
840echo "\
841This file contains any messages produced by compilers while
842running configure, to aid debugging if configure makes a mistake.
843" 1>&5
10f2d63a 844
698dcdb6
VZ
845# Strip out --no-create and --no-recursion so they do not pile up.
846# Also quote any args containing shell metacharacters.
847ac_configure_args=
848for ac_arg
10f2d63a 849do
698dcdb6
VZ
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
858 esac
859done
860
698dcdb6
VZ
861# NLS nuisances.
862# Only set these to C if already set. These must not be set unconditionally
863# because not all systems understand e.g. LANG=C (notably SCO).
864# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865# Non-C LC_CTYPE values break the ctype check.
866if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 870
698dcdb6
VZ
871# confdefs.h avoids OS command line length limits that DEFS can exceed.
872rm -rf conftest* confdefs.h
873# AIX cpp loses on an empty file, so make sure it contains at least a newline.
874echo > confdefs.h
10f2d63a 875
698dcdb6
VZ
876# A filename unique to this package, relative to the directory that
877# configure is in, which we can look for to find out if srcdir is correct.
878ac_unique_file=wx-config.in
10f2d63a
VZ
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
698dcdb6 885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 897 else
698dcdb6 898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
899 fi
900fi
698dcdb6 901srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
902
903# Prefer explicitly selected file to automatically selected ones.
904if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910fi
911for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
698dcdb6 913 echo "loading site script $ac_site_file"
10f2d63a
VZ
914 . "$ac_site_file"
915 fi
916done
917
918if test -r "$cache_file"; then
698dcdb6
VZ
919 echo "loading cache $cache_file"
920 . $cache_file
10f2d63a 921else
698dcdb6
VZ
922 echo "creating cache $cache_file"
923 > $cache_file
10f2d63a
VZ
924fi
925
926ac_ext=c
698dcdb6 927# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 928ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
929ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931cross_compiling=$ac_cv_prog_cc_cross
932
933ac_exeext=
934ac_objext=o
935if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
10f2d63a 943else
698dcdb6 944 ac_n= ac_c='\c' ac_t=
10f2d63a 945fi
698dcdb6
VZ
946
947
10f2d63a 948
7c66a493
VZ
949ac_aux_dir=
950for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960done
961if test -z "$ac_aux_dir"; then
698dcdb6 962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 963fi
698dcdb6
VZ
964ac_config_guess=$ac_aux_dir/config.guess
965ac_config_sub=$ac_aux_dir/config.sub
966ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 967
698dcdb6
VZ
968
969# Do some error checking and defaulting for the host and target type.
970# The inputs are:
971# configure --host=HOST --target=TARGET --build=BUILD NONOPT
972#
973# The rules are:
974# 1. You are not allowed to specify --host, --target, and nonopt at the
975# same time.
976# 2. Host defaults to nonopt.
977# 3. If nonopt is not specified, then host defaults to the current host,
978# as determined by config.guess.
979# 4. Target and build default to nonopt.
980# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
981
982# The aliases save the names the user supplied, while $host etc.
983# will get canonicalized.
698dcdb6
VZ
984case $host---$target---$nonopt in
985NONE---*---* | *---NONE---* | *---*---NONE) ;;
986*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987esac
988
989
990# Make sure we can run config.sub.
991if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993fi
994
995echo $ac_n "checking host system type""... $ac_c" 1>&6
f79bd02d 996echo "configure:997: checking host system type" >&5
698dcdb6
VZ
997
998host_alias=$host
999case "$host_alias" in
1000NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008esac
1009
1010host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014echo "$ac_t""$host" 1>&6
1015
1016echo $ac_n "checking target system type""... $ac_c" 1>&6
f79bd02d 1017echo "configure:1018: checking target system type" >&5
698dcdb6
VZ
1018
1019target_alias=$target
1020case "$target_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026esac
1027
1028target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032echo "$ac_t""$target" 1>&6
1033
1034echo $ac_n "checking build system type""... $ac_c" 1>&6
f79bd02d 1035echo "configure:1036: checking build system type" >&5
698dcdb6
VZ
1036
1037build_alias=$build
1038case "$build_alias" in
1039NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044esac
1045
1046build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050echo "$ac_t""$build" 1>&6
1051
1052test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
698dcdb6
VZ
1057
1058
10f2d63a 1059WX_MAJOR_VERSION_NUMBER=2
37d403aa 1060WX_MINOR_VERSION_NUMBER=3
a0d927d1 1061WX_RELEASE_NUMBER=3
10f2d63a 1062
10f2d63a 1063WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1064WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1065
978f1259
RL
1066WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
a0d927d1 1068WX_CURRENT=2
6426998c
RL
1069WX_REVISION=0
1070WX_AGE=0
1071
698dcdb6
VZ
1072
1073
10f2d63a
VZ
1074USE_UNIX=1
1075USE_WIN32=0
f9bc1684 1076USE_DOS=0
b12915c1 1077USE_BEOS=0
1216f52d 1078USE_MAC=0
b12915c1 1079
10f2d63a
VZ
1080USE_LINUX=
1081USE_SGI=
1082USE_HPUX=
1083USE_SYSV=
1084USE_SVR4=
1085USE_AIX=
1086USE_SUN=
1087USE_SOLARIS=
1088USE_SUNOS=
1089USE_ALPHA=
1090USE_OSF=
1091USE_BSD=
f11bdd03 1092USE_DARWIN=
10f2d63a 1093USE_FREEBSD=
95c8801c 1094USE_OPENBSD=
f6bcfd97 1095USE_NETBSD=
10f2d63a
VZ
1096USE_VMS=
1097USE_ULTRIX=
10f2d63a
VZ
1098USE_DATA_GENERAL=
1099
ab9b9eab
VZ
1100NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
3f345b47
VZ
1102CPP_MT_FLAG=-D_REENTRANT
1103
f79bd02d 1104ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1105
1106DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1107DEFAULT_wxUSE_MAC=0
1108DEFAULT_wxUSE_MGL=0
1725144d 1109DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1110DEFAULT_wxUSE_MOTIF=0
1111DEFAULT_wxUSE_MSW=0
e07802fc 1112DEFAULT_wxUSE_PM=0
1e6feb95 1113DEFAULT_wxUSE_WINE=0
f79bd02d 1114DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1115
1116DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1117DEFAULT_DEFAULT_wxUSE_MAC=0
1118DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1119DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1120DEFAULT_DEFAULT_wxUSE_MOTIF=0
1121DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1122DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1123DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1124DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1125
d6a55c4b 1126PROGRAM_EXT=
3a922bb4 1127SO_SUFFIX=so
d6a55c4b 1128
10f2d63a
VZ
1129case "${host}" in
1130 *-hp-hpux* )
1131 USE_HPUX=1
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1134 SO_SUFFIX=sl
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1136#define __HPUX__ 1
1137EOF
1138
1139 ;;
1140 *-*-linux* )
1141 USE_LINUX=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __LINUX__ 1
1144EOF
1145
1146 TMP=`uname -m`
1147 if test "x$TMP" = "xalpha"; then
1148 USE_ALPHA=1
698dcdb6 1149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1150#define __ALPHA__ 1
1151EOF
1152
1153 fi
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-irix5* | *-*-irix6* )
1157 USE_SGI=1
1158 USE_SVR4=1
698dcdb6 1159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1160#define __SGI__ 1
1161EOF
1162
698dcdb6 1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __SVR4__ 1
1165EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1168 ;;
1169 *-*-solaris2* )
1170 USE_SUN=1
1171 USE_SOLARIS=1
1172 USE_SVR4=1
698dcdb6 1173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1174#define __SUN__ 1
1175EOF
1176
698dcdb6 1177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1178#define __SOLARIS__ 1
1179EOF
1180
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __SVR4__ 1
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1187 ;;
1188 *-*-sunos4* )
1189 USE_SUN=1
1190 USE_SUNOS=1
1191 USE_BSD=1
698dcdb6 1192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1193#define __SUN__ 1
1194EOF
1195
698dcdb6 1196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1197#define __SUNOS__ 1
1198EOF
1199
698dcdb6 1200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1201#define __BSD__ 1
1202EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 ;;
f6bcfd97 1206 *-*-freebsd*)
10f2d63a
VZ
1207 USE_BSD=1
1208 USE_FREEBSD=1
3f345b47 1209 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __FREEBSD__ 1
1212EOF
1213
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a 1215#define __BSD__ 1
95c8801c
VS
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-openbsd*)
1221 USE_BSD=1
1222 USE_OPENBSD=1
698dcdb6 1223 cat >> confdefs.h <<\EOF
95c8801c
VS
1224#define __FREEBSD__ 1
1225EOF
1226
698dcdb6 1227 cat >> confdefs.h <<\EOF
95c8801c 1228#define __OPENBSD__ 1
f6bcfd97
BP
1229EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_GTK=1
1232 ;;
1233 *-*-netbsd*)
1234 USE_BSD=1
1235 USE_NETBSD=1
698dcdb6 1236 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1237#define __FREEBSD__ 1
1238EOF
1239
698dcdb6 1240 cat >> confdefs.h <<\EOF
f6bcfd97 1241#define __NETBSD__ 1
10f2d63a
VZ
1242EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-osf* )
1247 USE_ALPHA=1
1248 USE_OSF=1
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define __ALPHA__ 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __OSF__ 1
1255EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1258 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1259 ;;
1260 *-*-dgux5* )
1261 USE_ALPHA=1
1262 USE_SVR4=1
698dcdb6 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define __ALPHA__ 1
1265EOF
1266
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __SVR4__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 ;;
1273 *-*-sysv5* )
1274 USE_SYSV=1
1275 USE_SVR4=1
698dcdb6 1276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1277#define __SYSV__ 1
1278EOF
1279
698dcdb6 1280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1281#define __SVR4__ 1
1282EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-aix* )
1287 USE_AIX=1
1288 USE_SYSV=1
1289 USE_SVR4=1
698dcdb6 1290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1291#define __AIX__ 1
1292EOF
1293
698dcdb6 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __SYSV__ 1
1296EOF
1297
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __SVR4__ 1
1300EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304
1c8183e2 1305 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1306 USE_UNIX=0
1307 USE_WIN32=1
3a922bb4 1308 SO_SUFFIX=dll
698dcdb6 1309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1310#define __WIN32__ 1
1311EOF
1312
698dcdb6 1313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1314#define __WIN95__ 1
1315EOF
1316
698dcdb6 1317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1318#define __WINDOWS__ 1
1319EOF
1320
698dcdb6 1321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1322#define __GNUWIN32__ 1
1323EOF
1324
698dcdb6 1325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1326#define STRICT 1
1327EOF
1328
698dcdb6 1329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1330#define WINVER 0x0400
1331EOF
1332
cf27ef00 1333 PROGRAM_EXT=".exe"
7b7a7637 1334 RESCOMP=windres
10f2d63a
VZ
1335 DEFAULT_DEFAULT_wxUSE_MSW=1
1336 ;;
1337
f9bc1684
VS
1338 *-pc-msdosdjgpp )
1339 USE_UNIX=0
1340 USE_DOS=1
1341 cat >> confdefs.h <<\EOF
1342#define __DOS__ 1
1343EOF
1344
1345 PROGRAM_EXT=".exe"
1346 DEFAULT_DEFAULT_wxUSE_MGL=1
1347 DEFAULT_DEFAULT_wxUSE_SHARED=0
1348 ;;
1349
6fa882bd 1350 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1351 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1352#define __EMX__ 1
1353EOF
1354
cf27ef00 1355 PROGRAM_EXT=".exe"
e07802fc 1356 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1357 ;;
1358
d08b457b
GD
1359 powerpc-*-darwin* )
1360 USE_BSD=1
f11bdd03 1361 USE_DARWIN=1
3f345b47 1362 CPP_MT_FLAG=
3a922bb4 1363 SO_SUFFIX=dylib
698dcdb6 1364 cat >> confdefs.h <<\EOF
f11bdd03 1365#define __BSD__ 1
b4085ce6
GD
1366EOF
1367
698dcdb6 1368 cat >> confdefs.h <<\EOF
f11bdd03 1369#define __DARWIN__ 1
d08b457b
GD
1370EOF
1371
1372 cat >> confdefs.h <<\EOF
1373#define __POWERPC__ 1
b4085ce6
GD
1374EOF
1375
1376 DEFAULT_DEFAULT_wxUSE_MAC=1
1377 ;;
1378
b12915c1
VZ
1379 *-*-beos* )
1380 USE_BEOS=1
698dcdb6 1381 cat >> confdefs.h <<\EOF
b12915c1
VZ
1382#define __BEOS__ 1
1383EOF
1384
1385 ;;
1386
10f2d63a 1387 *)
698dcdb6 1388 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1389esac
1390
1391if test "$USE_UNIX" = 1 ; then
b12915c1 1392 wxUSE_UNIX=yes
698dcdb6 1393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1394#define __UNIX__ 1
1395EOF
1396
10f2d63a
VZ
1397fi
1398
2389f33b
VZ
1399if test "$USE_LINUX" = 1; then
1400 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
f79bd02d 1401echo "configure:1402: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1402if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404else
a72a4bfa
VS
1405
1406 cat > conftest.$ac_ext <<EOF
f79bd02d 1407#line 1408 "configure"
2389f33b
VZ
1408#include "confdefs.h"
1409#include <features.h>
1410int main() {
1411
1412 #if !__GLIBC_PREREQ(2, 1)
1413 #error not glibc2.1
1414 #endif
1415
1416; return 0; }
1417EOF
f79bd02d 1418if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1419 rm -rf conftest*
1420
1421 wx_lib_glibc21=yes
1422
1423else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427
1428 wx_lib_glibc21=no
1429
1430
1431fi
1432rm -f conftest*
1433
1434fi
1435
1436echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1437 if test "$wx_lib_glibc21" = "yes"; then
1438 cat >> confdefs.h <<\EOF
1439#define wxHAVE_GLIBC2 1
1440EOF
1441
1442 fi
1443fi
10f2d63a 1444
1e487827 1445
1e487827 1446
6232543b 1447
10f2d63a
VZ
1448 wx_arg_cache_file="configarg.cache"
1449 echo "loading argument cache $wx_arg_cache_file"
1450 rm -f ${wx_arg_cache_file}.tmp
1451 touch ${wx_arg_cache_file}.tmp
1452 touch ${wx_arg_cache_file}
698dcdb6 1453
10f2d63a
VZ
1454
1455DEBUG_CONFIGURE=0
1456if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1457 DEFAULT_wxUSE_UNIVERSAL=no
1458
10f2d63a
VZ
1459 DEFAULT_wxUSE_THREADS=yes
1460
1461 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1462 DEFAULT_wxUSE_SONAME=no
1e6feb95 1463 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_PROFILE=no
1465 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1466 DEFAULT_wxUSE_NO_RTTI=yes
1467 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1468 DEFAULT_wxUSE_PERMISSIVE=no
1469 DEFAULT_wxUSE_DEBUG_FLAG=yes
1470 DEFAULT_wxUSE_DEBUG_INFO=yes
1471 DEFAULT_wxUSE_DEBUG_GDB=yes
1472 DEFAULT_wxUSE_MEM_TRACING=no
1473 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1474 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1475 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1476 DEFAULT_wxUSE_APPLE_IEEE=no
1477
1478 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1479 DEFAULT_wxUSE_LOGWINDOW=no
1480 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1481 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1482
1483 DEFAULT_wxUSE_GUI=yes
1e6feb95 1484 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1485
3e44f09d 1486 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_ZLIB=no
1488 DEFAULT_wxUSE_LIBPNG=no
1489 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1490 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1491 DEFAULT_wxUSE_ODBC=no
3fed1840 1492 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1493 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1494
eb4efbdc 1495 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1496 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1497 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1498 DEFAULT_wxUSE_CMDLINE_PARSER=no
1499 DEFAULT_wxUSE_DATETIME=no
1500 DEFAULT_wxUSE_TIMEDATE=no
1501 DEFAULT_wxUSE_TIMER=no
1502 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1503 DEFAULT_wxUSE_FILE=no
1e6feb95 1504 DEFAULT_wxUSE_FFILE=no
a3a584a7 1505 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1506 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_WAVE=no
1508 DEFAULT_wxUSE_INTL=no
1509 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1510 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_STREAMS=no
1512 DEFAULT_wxUSE_SOCKETS=no
1513 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1514 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1515 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1516 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1517 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1518 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1519
1520 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1521 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1522 DEFAULT_wxUSE_POSTSCRIPT=no
1523
1524 DEFAULT_wxUSE_X_RESOURCES=no
1525 DEFAULT_wxUSE_CLIPBOARD=no
1526 DEFAULT_wxUSE_TOOLTIPS=no
1527 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1528 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_SPLINES=no
1530
1531 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1532 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1533 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1534
1535 DEFAULT_wxUSE_PROLOGIO=no
1536 DEFAULT_wxUSE_RESOURCES=no
1537 DEFAULT_wxUSE_CONSTRAINTS=no
1538 DEFAULT_wxUSE_IPC=no
1539 DEFAULT_wxUSE_HELP=no
29fd3c0c 1540 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1541 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1542 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1543 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1544 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1545 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1546 DEFAULT_wxUSE_PROTOCOL=no
1547 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1548 DEFAULT_wxUSE_PROTOCOL_FTP=no
1549 DEFAULT_wxUSE_PROTOCOL_FILE=no
1550 DEFAULT_wxUSE_URL=no
1551
10f2d63a 1552 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1553 DEFAULT_wxUSE_CHOICEDLG=no
1554 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1555 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1556 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1557 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1558 DEFAULT_wxUSE_FONTDLG=no
1559 DEFAULT_wxUSE_MSGDLG=no
1560 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1561 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1562 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_STARTUP_TIPS=no
1564 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1565 DEFAULT_wxUSE_WIZARDDLG=no
1566
1e6feb95 1567 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1568 DEFAULT_wxUSE_MINIFRAME=no
1569 DEFAULT_wxUSE_HTML=no
24528b0c 1570 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1571 DEFAULT_wxUSE_FS_INET=no
1572 DEFAULT_wxUSE_FS_ZIP=no
1573 DEFAULT_wxUSE_BUSYINFO=no
1574 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1575 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1576
1577 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1578 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1579 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1580 DEFAULT_wxUSE_CALCTRL=no
1581 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_CHECKBOX=no
1583 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1584 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1585 DEFAULT_wxUSE_COMBOBOX=no
1586 DEFAULT_wxUSE_GAUGE=no
1587 DEFAULT_wxUSE_GRID=no
1588 DEFAULT_wxUSE_NEW_GRID=no
1589 DEFAULT_wxUSE_IMAGLIST=no
1590 DEFAULT_wxUSE_LISTBOX=no
1591 DEFAULT_wxUSE_LISTCTRL=no
1592 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1593 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1594 DEFAULT_wxUSE_RADIOBOX=no
1595 DEFAULT_wxUSE_RADIOBTN=no
1596 DEFAULT_wxUSE_SASH=no
1597 DEFAULT_wxUSE_SCROLLBAR=no
1598 DEFAULT_wxUSE_SLIDER=no
1599 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1600 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1601 DEFAULT_wxUSE_SPLITTER=no
1602 DEFAULT_wxUSE_STATBMP=no
1603 DEFAULT_wxUSE_STATBOX=no
1604 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1605 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1606 DEFAULT_wxUSE_STATUSBAR=yes
1607 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1608 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1609 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1610 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1611 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1612 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1613 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1614 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1615 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1616
1617 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1618 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1619 DEFAULT_wxUSE_WCSRTOMBS=no
1620
edae8572 1621 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1622 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1623 DEFAULT_wxUSE_GIF=no
1624 DEFAULT_wxUSE_PCX=no
1625 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1626 DEFAULT_wxUSE_IFF=no
0046ff7c 1627 DEFAULT_wxUSE_XPM=no
658974ae 1628 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1629else
1e6feb95
VZ
1630 DEFAULT_wxUSE_UNIVERSAL=no
1631
10f2d63a
VZ
1632 DEFAULT_wxUSE_THREADS=yes
1633
1634 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1635 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1636 DEFAULT_wxUSE_OPTIMISE=yes
1637 DEFAULT_wxUSE_PROFILE=no
1638 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1639 DEFAULT_wxUSE_NO_RTTI=yes
1640 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1641 DEFAULT_wxUSE_PERMISSIVE=no
1642 DEFAULT_wxUSE_DEBUG_FLAG=no
1643 DEFAULT_wxUSE_DEBUG_INFO=no
1644 DEFAULT_wxUSE_DEBUG_GDB=no
1645 DEFAULT_wxUSE_MEM_TRACING=no
1646 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1647 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1648 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1649 DEFAULT_wxUSE_APPLE_IEEE=yes
1650
1651 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1652 DEFAULT_wxUSE_LOGWINDOW=yes
1653 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1654 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1655
1656 DEFAULT_wxUSE_GUI=yes
1657
831b3152 1658 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1659 DEFAULT_wxUSE_ZLIB=yes
1660 DEFAULT_wxUSE_LIBPNG=yes
1661 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1662 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1663 DEFAULT_wxUSE_ODBC=no
3fed1840 1664 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1665 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1666
eb4efbdc 1667 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1668 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1669 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1670 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1671 DEFAULT_wxUSE_DATETIME=yes
1672 DEFAULT_wxUSE_TIMEDATE=no
1673 DEFAULT_wxUSE_TIMER=yes
1674 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1675 DEFAULT_wxUSE_FILE=yes
1e6feb95 1676 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1677 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1678 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_WAVE=no
1680 DEFAULT_wxUSE_INTL=yes
1681 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1682 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_STREAMS=yes
1684 DEFAULT_wxUSE_SOCKETS=yes
1685 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1686 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1687 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1688 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1689 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1690 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1691
1692 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1693 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1694 DEFAULT_wxUSE_POSTSCRIPT=yes
1695
1696 DEFAULT_wxUSE_X_RESOURCES=no
1697 DEFAULT_wxUSE_CLIPBOARD=yes
1698 DEFAULT_wxUSE_TOOLTIPS=yes
1699 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1700 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1701 DEFAULT_wxUSE_SPLINES=yes
1702
1703 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1704 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1705 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1706
1707 DEFAULT_wxUSE_PROLOGIO=yes
1708 DEFAULT_wxUSE_RESOURCES=yes
1709 DEFAULT_wxUSE_CONSTRAINTS=yes
1710 DEFAULT_wxUSE_IPC=yes
1711 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1712 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1713 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1714 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1715 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1716 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1717 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1718 DEFAULT_wxUSE_PROTOCOL=yes
1719 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1720 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1721 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1722 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1723
1724 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1725 DEFAULT_wxUSE_CHOICEDLG=yes
1726 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1727 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1728 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1729 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1730 DEFAULT_wxUSE_FONTDLG=yes
1731 DEFAULT_wxUSE_MSGDLG=yes
1732 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1733 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1734 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1735 DEFAULT_wxUSE_STARTUP_TIPS=yes
1736 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1737 DEFAULT_wxUSE_WIZARDDLG=yes
1738
1e6feb95 1739 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1740 DEFAULT_wxUSE_MINIFRAME=yes
1741 DEFAULT_wxUSE_HTML=yes
24528b0c 1742 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1743 DEFAULT_wxUSE_FS_INET=yes
1744 DEFAULT_wxUSE_FS_ZIP=yes
1745 DEFAULT_wxUSE_BUSYINFO=yes
1746 DEFAULT_wxUSE_ZIPSTREAM=yes
1747 DEFAULT_wxUSE_VALIDATORS=yes
1748
1749 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1750 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1751 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1752 DEFAULT_wxUSE_CALCTRL=yes
1753 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1754 DEFAULT_wxUSE_CHECKBOX=yes
1755 DEFAULT_wxUSE_CHECKLST=yes
1756 DEFAULT_wxUSE_CHOICE=yes
1757 DEFAULT_wxUSE_COMBOBOX=yes
1758 DEFAULT_wxUSE_GAUGE=yes
1759 DEFAULT_wxUSE_GRID=yes
cc977e5f 1760 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1761 DEFAULT_wxUSE_IMAGLIST=yes
1762 DEFAULT_wxUSE_LISTBOX=yes
1763 DEFAULT_wxUSE_LISTCTRL=yes
1764 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1765 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1766 DEFAULT_wxUSE_RADIOBOX=yes
1767 DEFAULT_wxUSE_RADIOBTN=yes
1768 DEFAULT_wxUSE_SASH=yes
1769 DEFAULT_wxUSE_SCROLLBAR=yes
1770 DEFAULT_wxUSE_SLIDER=yes
1771 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1772 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1773 DEFAULT_wxUSE_SPLITTER=yes
1774 DEFAULT_wxUSE_STATBMP=yes
1775 DEFAULT_wxUSE_STATBOX=yes
1776 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1777 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1778 DEFAULT_wxUSE_STATUSBAR=yes
1779 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1780 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1781 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1782 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1783 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1784 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1785 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1786 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1787 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1788
1789 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1790 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1791 DEFAULT_wxUSE_WCSRTOMBS=no
1792
edae8572 1793 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1794 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1795 DEFAULT_wxUSE_GIF=yes
1796 DEFAULT_wxUSE_PCX=yes
cc0e8480 1797 DEFAULT_wxUSE_IFF=no
10f2d63a 1798 DEFAULT_wxUSE_PNM=yes
0046ff7c 1799 DEFAULT_wxUSE_XPM=yes
658974ae 1800 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1801fi
1802
698dcdb6
VZ
1803
1804
10f2d63a
VZ
1805for toolkit in `echo $ALL_TOOLKITS`; do
1806 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1807 if test "x$LINE" != x ; then
1808 has_toolkit_in_cache=1
1809 eval "DEFAULT_$LINE"
1810 eval "CACHE_$toolkit=1"
1811 fi
1812done
1813
698dcdb6
VZ
1814
1815
1816 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
f79bd02d 1817echo "configure:1818: checking for --enable-gui" >&5
10f2d63a
VZ
1818 no_cache=0
1819 # Check whether --enable-gui or --disable-gui was given.
1820if test "${enable_gui+set}" = set; then
1821 enableval="$enable_gui"
698dcdb6 1822
10f2d63a
VZ
1823 if test "$enableval" = yes; then
1824 ac_cv_use_gui='wxUSE_GUI=yes'
1825 else
1826 ac_cv_use_gui='wxUSE_GUI=no'
1827 fi
698dcdb6 1828
10f2d63a 1829else
698dcdb6 1830
10f2d63a
VZ
1831 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1832 if test "x$LINE" != x ; then
1833 eval "DEFAULT_$LINE"
1834 else
1835 no_cache=1
1836 fi
1837
1838 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1839
1840fi
10f2d63a
VZ
1841
1842
1843 eval "$ac_cv_use_gui"
1844 if test "$no_cache" != 1; then
1845 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1846 fi
1847
1848 if test "$wxUSE_GUI" = yes; then
698dcdb6 1849 echo "$ac_t""yes" 1>&6
10f2d63a 1850 else
698dcdb6 1851 echo "$ac_t""no" 1>&6
10f2d63a 1852 fi
698dcdb6 1853
10f2d63a 1854
b12915c1 1855if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1856
1e6feb95
VZ
1857
1858 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
f79bd02d 1859echo "configure:1860: checking for --enable-universal" >&5
1e6feb95
VZ
1860 no_cache=0
1861 # Check whether --enable-universal or --disable-universal was given.
1862if test "${enable_universal+set}" = set; then
1863 enableval="$enable_universal"
1864
1865 if test "$enableval" = yes; then
1866 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1867 else
1868 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1869 fi
1870
1871else
1872
1873 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1874 if test "x$LINE" != x ; then
1875 eval "DEFAULT_$LINE"
1876 else
1877 no_cache=1
1878 fi
1879
1880 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1881
1882fi
1883
1884
1885 eval "$ac_cv_use_universal"
1886 if test "$no_cache" != 1; then
1887 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1888 fi
1889
1890 if test "$wxUSE_UNIVERSAL" = yes; then
1891 echo "$ac_t""yes" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1894 fi
1895
10f2d63a
VZ
1896# Check whether --with-gtk or --without-gtk was given.
1897if test "${with_gtk+set}" = set; then
1898 withval="$with_gtk"
1899 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1900fi
10f2d63a
VZ
1901
1902# Check whether --with-motif or --without-motif was given.
1903if test "${with_motif+set}" = set; then
1904 withval="$with_motif"
1905 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1906fi
10f2d63a 1907
b4085ce6
GD
1908# Check whether --with-mac or --without-mac was given.
1909if test "${with_mac+set}" = set; then
1910 withval="$with_mac"
1911 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1912fi
b4085ce6 1913
10f2d63a
VZ
1914# Check whether --with-wine or --without-wine was given.
1915if test "${with_wine+set}" = set; then
1916 withval="$with_wine"
1917 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1918fi
10f2d63a 1919
77e13408
RL
1920# Check whether --with-msw or --without-msw was given.
1921if test "${with_msw+set}" = set; then
1922 withval="$with_msw"
1923 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1924fi
10f2d63a 1925
e07802fc
VZ
1926# Check whether --with-pm or --without-pm was given.
1927if test "${with_pm+set}" = set; then
1928 withval="$with_pm"
1929 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1930fi
1931
1e6feb95
VZ
1932# Check whether --with-mgl or --without-mgl was given.
1933if test "${with_mgl+set}" = set; then
1934 withval="$with_mgl"
1935 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1936fi
1937
1725144d
RR
1938# Check whether --with-microwin or --without-microwin was given.
1939if test "${with_microwin+set}" = set; then
1940 withval="$with_microwin"
1941 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1942fi
1943
f79bd02d
JS
1944# Check whether --with-x11 or --without-x11 was given.
1945if test "${with_x11+set}" = set; then
1946 withval="$with_x11"
1947 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1948fi
1949
10f2d63a 1950
8168de4c
VZ
1951# Check whether --enable-gtk2 or --disable-gtk2 was given.
1952if test "${enable_gtk2+set}" = set; then
1953 enableval="$enable_gtk2"
1954 wxUSE_GTK2=1
10f2d63a 1955else
8168de4c 1956 wxUSE_GTK2=0
698dcdb6
VZ
1957fi
1958
703e0a69 1959
1e487827 1960
698dcdb6 1961 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
f79bd02d 1962echo "configure:1963: checking for --with-libpng" >&5
698dcdb6
VZ
1963 no_cache=0
1964 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1965if test "${with_libpng+set}" = set; then
1966 withval="$with_libpng"
698dcdb6 1967
10f2d63a 1968 if test "$withval" = yes; then
b12915c1 1969 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1970 elif test "$withval" = no; then
b12915c1 1971 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1976 else
4f14bcd8 1977 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1978 fi
698dcdb6 1979
10f2d63a 1980else
698dcdb6 1981
b12915c1 1982 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
b12915c1 1989 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1990
1991fi
10f2d63a
VZ
1992
1993
b12915c1 1994 eval "$ac_cv_use_libpng"
10f2d63a 1995 if test "$no_cache" != 1; then
b12915c1 1996 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1997 fi
1998
b12915c1 1999 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 2000 echo "$ac_t""yes" 1>&6
422107f9 2001 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2002 echo "$ac_t""no" 1>&6
422107f9 2003 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2004 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2005 elif test "$wxUSE_LIBPNG" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
422107f9 2007 else
4f14bcd8 2008 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2009 fi
698dcdb6 2010
10f2d63a 2011
698dcdb6 2012 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
f79bd02d 2013echo "configure:2014: checking for --with-libjpeg" >&5
10f2d63a 2014 no_cache=0
698dcdb6 2015 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2016if test "${with_libjpeg+set}" = set; then
2017 withval="$with_libjpeg"
698dcdb6 2018
10f2d63a 2019 if test "$withval" = yes; then
b12915c1 2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2021 elif test "$withval" = no; then
b12915c1 2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2023 elif test "$withval" = sys; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2027 else
4f14bcd8 2028 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2029 fi
698dcdb6 2030
10f2d63a 2031else
698dcdb6 2032
b12915c1 2033 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
b12915c1 2040 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2041
2042fi
10f2d63a
VZ
2043
2044
b12915c1 2045 eval "$ac_cv_use_libjpeg"
10f2d63a 2046 if test "$no_cache" != 1; then
b12915c1 2047 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2048 fi
2049
b12915c1 2050 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2051 echo "$ac_t""yes" 1>&6
422107f9 2052 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2053 echo "$ac_t""no" 1>&6
422107f9 2054 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2055 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2056 elif test "$wxUSE_LIBJPEG" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
422107f9 2058 else
4f14bcd8 2059 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2060 fi
698dcdb6 2061
10f2d63a 2062
698dcdb6 2063 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
f79bd02d 2064echo "configure:2065: checking for --with-libtiff" >&5
10f2d63a 2065 no_cache=0
698dcdb6 2066 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2067if test "${with_libtiff+set}" = set; then
2068 withval="$with_libtiff"
698dcdb6 2069
10f2d63a 2070 if test "$withval" = yes; then
b12915c1 2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2072 elif test "$withval" = no; then
b12915c1 2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2074 elif test "$withval" = sys; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2076 elif test "$withval" = builtin; then
2077 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2078 else
4f14bcd8 2079 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2080 fi
698dcdb6 2081
10f2d63a 2082else
698dcdb6 2083
b12915c1 2084 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2085 if test "x$LINE" != x ; then
2086 eval "DEFAULT_$LINE"
2087 else
2088 no_cache=1
2089 fi
2090
b12915c1 2091 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2092
2093fi
10f2d63a
VZ
2094
2095
b12915c1 2096 eval "$ac_cv_use_libtiff"
10f2d63a 2097 if test "$no_cache" != 1; then
b12915c1 2098 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2099 fi
2100
b12915c1 2101 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2102 echo "$ac_t""yes" 1>&6
0dcf9893 2103 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2104 echo "$ac_t""no" 1>&6
0dcf9893 2105 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2106 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2107 elif test "$wxUSE_LIBTIFF" = builtin; then
2108 echo "$ac_t""builtin version" 1>&6
0dcf9893 2109 else
4f14bcd8 2110 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2111 fi
698dcdb6 2112
10f2d63a 2113
698dcdb6 2114 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
f79bd02d 2115echo "configure:2116: checking for --with-freetype" >&5
3fed1840 2116 no_cache=0
698dcdb6 2117 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2118if test "${with_freetype+set}" = set; then
2119 withval="$with_freetype"
698dcdb6 2120
3fed1840
RR
2121 if test "$withval" = yes; then
2122 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2123 elif test "$withval" = no; then
2124 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2125 elif test "$withval" = sys; then
2126 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2127 elif test "$withval" = builtin; then
2128 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2129 else
4f14bcd8 2130 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2131 fi
698dcdb6 2132
3fed1840 2133else
698dcdb6 2134
3fed1840
RR
2135 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2143
2144fi
3fed1840
RR
2145
2146
2147 eval "$ac_cv_use_freetype"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2153 echo "$ac_t""yes" 1>&6
3fed1840 2154 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2155 echo "$ac_t""no" 1>&6
3fed1840 2156 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2157 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2158 elif test "$wxUSE_FREETYPE" = builtin; then
2159 echo "$ac_t""builtin version" 1>&6
3fed1840 2160 else
4f14bcd8 2161 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2162 fi
698dcdb6 2163
3fed1840 2164
698dcdb6 2165 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
f79bd02d 2166echo "configure:2167: checking for --with-opengl" >&5
10f2d63a 2167 no_cache=0
698dcdb6 2168 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2169if test "${with_opengl+set}" = set; then
2170 withval="$with_opengl"
698dcdb6 2171
10f2d63a 2172 if test "$withval" = yes; then
b12915c1 2173 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2174 else
b12915c1 2175 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2176 fi
698dcdb6 2177
10f2d63a 2178else
698dcdb6 2179
b12915c1 2180 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
b12915c1 2187 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2188
2189fi
10f2d63a
VZ
2190
2191
b12915c1 2192 eval "$ac_cv_use_opengl"
10f2d63a 2193 if test "$no_cache" != 1; then
b12915c1 2194 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2195 fi
2196
b12915c1 2197 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2198 echo "$ac_t""yes" 1>&6
10f2d63a 2199 else
698dcdb6 2200 echo "$ac_t""no" 1>&6
10f2d63a 2201 fi
698dcdb6 2202
10f2d63a 2203
b12915c1
VZ
2204fi
2205
1e487827 2206
698dcdb6 2207 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
f79bd02d 2208echo "configure:2209: checking for --with-dmalloc" >&5
698dcdb6
VZ
2209 no_cache=0
2210 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2211if test "${with_dmalloc+set}" = set; then
2212 withval="$with_dmalloc"
698dcdb6 2213
c7a2bf27 2214 if test "$withval" = yes; then
b12915c1 2215 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2216 else
b12915c1 2217 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2218 fi
698dcdb6 2219
c7a2bf27 2220else
698dcdb6 2221
b12915c1 2222 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
b12915c1 2229 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2230
2231fi
c7a2bf27
RR
2232
2233
b12915c1 2234 eval "$ac_cv_use_dmalloc"
c7a2bf27 2235 if test "$no_cache" != 1; then
b12915c1 2236 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2237 fi
2238
b12915c1 2239 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2240 echo "$ac_t""yes" 1>&6
c7a2bf27 2241 else
698dcdb6 2242 echo "$ac_t""no" 1>&6
c7a2bf27 2243 fi
698dcdb6 2244
c7a2bf27 2245
3e44f09d 2246 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
f79bd02d 2247echo "configure:2248: checking for --with-regex" >&5
3e44f09d
VZ
2248 no_cache=0
2249 # Check whether --with-regex or --without-regex was given.
2250if test "${with_regex+set}" = set; then
2251 withval="$with_regex"
2252
2253 if test "$withval" = yes; then
2254 ac_cv_use_regex='wxUSE_REGEX=yes'
2255 elif test "$withval" = no; then
2256 ac_cv_use_regex='wxUSE_REGEX=no'
2257 elif test "$withval" = sys; then
2258 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2259 elif test "$withval" = builtin; then
2260 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2261 else
4f14bcd8 2262 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2263 fi
2264
2265else
2266
2267 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2268 if test "x$LINE" != x ; then
2269 eval "DEFAULT_$LINE"
2270 else
2271 no_cache=1
2272 fi
2273
2274 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2275
2276fi
2277
2278
2279 eval "$ac_cv_use_regex"
2280 if test "$no_cache" != 1; then
2281 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2282 fi
2283
2284 if test "$wxUSE_REGEX" = yes; then
2285 echo "$ac_t""yes" 1>&6
2286 elif test "$wxUSE_REGEX" = no; then
2287 echo "$ac_t""no" 1>&6
2288 elif test "$wxUSE_REGEX" = sys; then
2289 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2290 elif test "$wxUSE_REGEX" = builtin; then
2291 echo "$ac_t""builtin version" 1>&6
3e44f09d 2292 else
4f14bcd8 2293 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2294 fi
2295
2296
698dcdb6 2297 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
f79bd02d 2298echo "configure:2299: checking for --with-zlib" >&5
10f2d63a 2299 no_cache=0
698dcdb6 2300 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2301if test "${with_zlib+set}" = set; then
2302 withval="$with_zlib"
698dcdb6 2303
10f2d63a 2304 if test "$withval" = yes; then
b12915c1 2305 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2306 elif test "$withval" = no; then
b12915c1 2307 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2308 elif test "$withval" = sys; then
2309 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2310 elif test "$withval" = builtin; then
2311 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2312 else
4f14bcd8 2313 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2314 fi
698dcdb6 2315
10f2d63a 2316else
698dcdb6 2317
b12915c1 2318 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2319 if test "x$LINE" != x ; then
2320 eval "DEFAULT_$LINE"
2321 else
2322 no_cache=1
2323 fi
2324
b12915c1 2325 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2326
2327fi
10f2d63a
VZ
2328
2329
b12915c1 2330 eval "$ac_cv_use_zlib"
10f2d63a 2331 if test "$no_cache" != 1; then
b12915c1 2332 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2333 fi
2334
b12915c1 2335 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2336 echo "$ac_t""yes" 1>&6
422107f9 2337 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2338 echo "$ac_t""no" 1>&6
422107f9 2339 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2340 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2341 elif test "$wxUSE_ZLIB" = builtin; then
2342 echo "$ac_t""builtin version" 1>&6
422107f9 2343 else
4f14bcd8 2344 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2345 fi
698dcdb6 2346
10f2d63a 2347
698dcdb6 2348 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
f79bd02d 2349echo "configure:2350: checking for --with-odbc" >&5
10f2d63a 2350 no_cache=0
698dcdb6 2351 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2352if test "${with_odbc+set}" = set; then
2353 withval="$with_odbc"
698dcdb6 2354
10f2d63a
VZ
2355 if test "$withval" = yes; then
2356 ac_cv_use_odbc='wxUSE_ODBC=yes'
2357 else
2358 ac_cv_use_odbc='wxUSE_ODBC=no'
2359 fi
698dcdb6 2360
10f2d63a 2361else
698dcdb6 2362
10f2d63a
VZ
2363 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
2370 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2371
2372fi
10f2d63a
VZ
2373
2374
2375 eval "$ac_cv_use_odbc"
2376 if test "$no_cache" != 1; then
2377 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2378 fi
2379
2380 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2381 echo "$ac_t""yes" 1>&6
10f2d63a 2382 else
698dcdb6 2383 echo "$ac_t""no" 1>&6
10f2d63a 2384 fi
698dcdb6
VZ
2385
2386
10f2d63a 2387
698dcdb6 2388
698dcdb6 2389 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
f79bd02d 2390echo "configure:2391: checking for --enable-shared" >&5
10f2d63a
VZ
2391 no_cache=0
2392 # Check whether --enable-shared or --disable-shared was given.
2393if test "${enable_shared+set}" = set; then
2394 enableval="$enable_shared"
698dcdb6 2395
10f2d63a
VZ
2396 if test "$enableval" = yes; then
2397 ac_cv_use_shared='wxUSE_SHARED=yes'
2398 else
2399 ac_cv_use_shared='wxUSE_SHARED=no'
2400 fi
698dcdb6 2401
10f2d63a 2402else
698dcdb6 2403
10f2d63a
VZ
2404 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2412
2413fi
10f2d63a
VZ
2414
2415
2416 eval "$ac_cv_use_shared"
2417 if test "$no_cache" != 1; then
2418 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2419 fi
2420
2421 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2422 echo "$ac_t""yes" 1>&6
10f2d63a 2423 else
698dcdb6 2424 echo "$ac_t""no" 1>&6
10f2d63a 2425 fi
698dcdb6 2426
10f2d63a 2427
3a922bb4 2428 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
f79bd02d 2429echo "configure:2430: checking for --enable-soname" >&5
00cf1208 2430 no_cache=0
3a922bb4
RL
2431 # Check whether --enable-soname or --disable-soname was given.
2432if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
698dcdb6 2434
00cf1208 2435 if test "$enableval" = yes; then
3a922bb4 2436 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2437 else
3a922bb4 2438 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2439 fi
698dcdb6 2440
00cf1208 2441else
698dcdb6 2442
3a922bb4 2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
3a922bb4 2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2451
2452fi
00cf1208
RR
2453
2454
3a922bb4 2455 eval "$ac_cv_use_soname"
00cf1208 2456 if test "$no_cache" != 1; then
3a922bb4 2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2458 fi
2459
3a922bb4 2460 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2461 echo "$ac_t""yes" 1>&6
00cf1208 2462 else
698dcdb6 2463 echo "$ac_t""no" 1>&6
00cf1208 2464 fi
698dcdb6 2465
00cf1208 2466
698dcdb6 2467 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
f79bd02d 2468echo "configure:2469: checking for --enable-optimise" >&5
10f2d63a
VZ
2469 no_cache=0
2470 # Check whether --enable-optimise or --disable-optimise was given.
2471if test "${enable_optimise+set}" = set; then
2472 enableval="$enable_optimise"
698dcdb6 2473
10f2d63a
VZ
2474 if test "$enableval" = yes; then
2475 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2476 else
2477 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2478 fi
698dcdb6 2479
10f2d63a 2480else
698dcdb6 2481
10f2d63a
VZ
2482 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2490
2491fi
10f2d63a
VZ
2492
2493
2494 eval "$ac_cv_use_optimise"
2495 if test "$no_cache" != 1; then
2496 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2497 fi
2498
2499 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2500 echo "$ac_t""yes" 1>&6
10f2d63a 2501 else
698dcdb6 2502 echo "$ac_t""no" 1>&6
10f2d63a 2503 fi
698dcdb6 2504
10f2d63a 2505
698dcdb6 2506 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
f79bd02d 2507echo "configure:2508: checking for --enable-debug" >&5
10f2d63a
VZ
2508 no_cache=0
2509 # Check whether --enable-debug or --disable-debug was given.
2510if test "${enable_debug+set}" = set; then
2511 enableval="$enable_debug"
698dcdb6 2512
10f2d63a
VZ
2513 if test "$enableval" = yes; then
2514 ac_cv_use_debug='wxUSE_DEBUG=yes'
2515 else
2516 ac_cv_use_debug='wxUSE_DEBUG=no'
2517 fi
698dcdb6 2518
10f2d63a 2519else
698dcdb6 2520
10f2d63a
VZ
2521 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2522 if test "x$LINE" != x ; then
2523 eval "DEFAULT_$LINE"
2524 else
2525 no_cache=1
2526 fi
2527
2528 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2529
2530fi
10f2d63a
VZ
2531
2532
2533 eval "$ac_cv_use_debug"
2534 if test "$no_cache" != 1; then
2535 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2536 fi
2537
2538 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2539 echo "$ac_t""yes" 1>&6
10f2d63a 2540 else
698dcdb6 2541 echo "$ac_t""no" 1>&6
10f2d63a 2542 fi
698dcdb6 2543
10f2d63a 2544
683dccda
GD
2545
2546 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
f79bd02d 2547echo "configure:2548: checking for --enable-precomp" >&5
683dccda
GD
2548 no_cache=0
2549 # Check whether --enable-precomp or --disable-precomp was given.
2550if test "${enable_precomp+set}" = set; then
2551 enableval="$enable_precomp"
2552
2553 if test "$enableval" = yes; then
2554 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2555 else
2556 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2557 fi
2558
2559else
2560
2561 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2569
2570fi
2571
2572
2573 eval "$ac_cv_use_precomp"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_PRECOMP" = yes; then
2579 echo "$ac_t""yes" 1>&6
2580 else
2581 echo "$ac_t""no" 1>&6
2582 fi
2583
2584
10f2d63a
VZ
2585if test "$wxUSE_DEBUG" = "yes"; then
2586 DEFAULT_wxUSE_DEBUG_FLAG=yes
2587 DEFAULT_wxUSE_DEBUG_INFO=yes
2588elif test "$wxUSE_DEBUG" = "no"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=no
2590 DEFAULT_wxUSE_DEBUG_INFO=no
2591fi
2592
698dcdb6
VZ
2593
2594 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
f79bd02d 2595echo "configure:2596: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2596 no_cache=0
2597 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2598if test "${enable_debug_flag+set}" = set; then
2599 enableval="$enable_debug_flag"
698dcdb6 2600
10f2d63a
VZ
2601 if test "$enableval" = yes; then
2602 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2603 else
2604 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2605 fi
698dcdb6 2606
10f2d63a 2607else
698dcdb6 2608
10f2d63a
VZ
2609 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2610 if test "x$LINE" != x ; then
2611 eval "DEFAULT_$LINE"
2612 else
2613 no_cache=1
2614 fi
2615
2616 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2617
2618fi
10f2d63a
VZ
2619
2620
2621 eval "$ac_cv_use_debug_flag"
2622 if test "$no_cache" != 1; then
2623 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2624 fi
2625
2626 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2627 echo "$ac_t""yes" 1>&6
10f2d63a 2628 else
698dcdb6 2629 echo "$ac_t""no" 1>&6
10f2d63a 2630 fi
698dcdb6 2631
10f2d63a 2632
698dcdb6 2633 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
f79bd02d 2634echo "configure:2635: checking for --enable-debug_info" >&5
10f2d63a
VZ
2635 no_cache=0
2636 # Check whether --enable-debug_info or --disable-debug_info was given.
2637if test "${enable_debug_info+set}" = set; then
2638 enableval="$enable_debug_info"
698dcdb6 2639
10f2d63a
VZ
2640 if test "$enableval" = yes; then
2641 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2642 else
2643 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2644 fi
698dcdb6 2645
10f2d63a 2646else
698dcdb6 2647
10f2d63a
VZ
2648 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2649 if test "x$LINE" != x ; then
2650 eval "DEFAULT_$LINE"
2651 else
2652 no_cache=1
2653 fi
2654
2655 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2656
2657fi
10f2d63a
VZ
2658
2659
2660 eval "$ac_cv_use_debug_info"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2666 echo "$ac_t""yes" 1>&6
10f2d63a 2667 else
698dcdb6 2668 echo "$ac_t""no" 1>&6
10f2d63a 2669 fi
698dcdb6 2670
10f2d63a 2671
698dcdb6 2672 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
f79bd02d 2673echo "configure:2674: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2674 no_cache=0
2675 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2676if test "${enable_debug_gdb+set}" = set; then
2677 enableval="$enable_debug_gdb"
698dcdb6 2678
10f2d63a
VZ
2679 if test "$enableval" = yes; then
2680 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2681 else
2682 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2683 fi
698dcdb6 2684
10f2d63a 2685else
698dcdb6 2686
10f2d63a
VZ
2687 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2688 if test "x$LINE" != x ; then
2689 eval "DEFAULT_$LINE"
2690 else
2691 no_cache=1
2692 fi
2693
2694 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2695
2696fi
10f2d63a
VZ
2697
2698
2699 eval "$ac_cv_use_debug_gdb"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2705 echo "$ac_t""yes" 1>&6
10f2d63a 2706 else
698dcdb6 2707 echo "$ac_t""no" 1>&6
10f2d63a 2708 fi
698dcdb6 2709
10f2d63a 2710
698dcdb6 2711 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
f79bd02d 2712echo "configure:2713: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2713 no_cache=0
2714 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2715if test "${enable_debug_cntxt+set}" = set; then
2716 enableval="$enable_debug_cntxt"
698dcdb6 2717
10f2d63a
VZ
2718 if test "$enableval" = yes; then
2719 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2720 else
2721 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2722 fi
698dcdb6 2723
10f2d63a 2724else
698dcdb6 2725
10f2d63a
VZ
2726 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2734
2735fi
10f2d63a
VZ
2736
2737
2738 eval "$ac_cv_use_debug_cntxt"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2744 echo "$ac_t""yes" 1>&6
10f2d63a 2745 else
698dcdb6 2746 echo "$ac_t""no" 1>&6
10f2d63a 2747 fi
698dcdb6 2748
10f2d63a 2749
698dcdb6 2750 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
f79bd02d 2751echo "configure:2752: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2752 no_cache=0
2753 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2754if test "${enable_mem_tracing+set}" = set; then
2755 enableval="$enable_mem_tracing"
698dcdb6 2756
10f2d63a
VZ
2757 if test "$enableval" = yes; then
2758 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2759 else
2760 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2761 fi
698dcdb6 2762
10f2d63a 2763else
698dcdb6 2764
10f2d63a
VZ
2765 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2766 if test "x$LINE" != x ; then
2767 eval "DEFAULT_$LINE"
2768 else
2769 no_cache=1
2770 fi
2771
2772 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2773
2774fi
10f2d63a
VZ
2775
2776
2777 eval "$ac_cv_use_mem_tracing"
2778 if test "$no_cache" != 1; then
2779 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2780 fi
2781
2782 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2783 echo "$ac_t""yes" 1>&6
10f2d63a 2784 else
698dcdb6 2785 echo "$ac_t""no" 1>&6
10f2d63a 2786 fi
698dcdb6 2787
10f2d63a 2788
698dcdb6 2789 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
f79bd02d 2790echo "configure:2791: checking for --enable-profile" >&5
10f2d63a
VZ
2791 no_cache=0
2792 # Check whether --enable-profile or --disable-profile was given.
2793if test "${enable_profile+set}" = set; then
2794 enableval="$enable_profile"
698dcdb6 2795
10f2d63a
VZ
2796 if test "$enableval" = yes; then
2797 ac_cv_use_profile='wxUSE_PROFILE=yes'
2798 else
2799 ac_cv_use_profile='wxUSE_PROFILE=no'
2800 fi
698dcdb6 2801
10f2d63a 2802else
698dcdb6 2803
10f2d63a
VZ
2804 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2805 if test "x$LINE" != x ; then
2806 eval "DEFAULT_$LINE"
2807 else
2808 no_cache=1
2809 fi
2810
2811 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2812
2813fi
10f2d63a
VZ
2814
2815
2816 eval "$ac_cv_use_profile"
2817 if test "$no_cache" != 1; then
2818 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2819 fi
2820
2821 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2822 echo "$ac_t""yes" 1>&6
10f2d63a 2823 else
698dcdb6 2824 echo "$ac_t""no" 1>&6
10f2d63a 2825 fi
698dcdb6 2826
10f2d63a 2827
698dcdb6 2828 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
f79bd02d 2829echo "configure:2830: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2830 no_cache=0
2831 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2832if test "${enable_no_rtti+set}" = set; then
2833 enableval="$enable_no_rtti"
698dcdb6 2834
10f2d63a
VZ
2835 if test "$enableval" = yes; then
2836 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2837 else
2838 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2839 fi
698dcdb6 2840
10f2d63a 2841else
698dcdb6 2842
10f2d63a
VZ
2843 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2851
2852fi
10f2d63a
VZ
2853
2854
2855 eval "$ac_cv_use_no_rtti"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2861 echo "$ac_t""yes" 1>&6
10f2d63a 2862 else
698dcdb6 2863 echo "$ac_t""no" 1>&6
10f2d63a 2864 fi
698dcdb6 2865
10f2d63a 2866
698dcdb6 2867 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
f79bd02d 2868echo "configure:2869: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2869 no_cache=0
2870 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2871if test "${enable_no_exceptions+set}" = set; then
2872 enableval="$enable_no_exceptions"
698dcdb6 2873
10f2d63a
VZ
2874 if test "$enableval" = yes; then
2875 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2876 else
2877 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2878 fi
698dcdb6 2879
10f2d63a 2880else
698dcdb6 2881
10f2d63a
VZ
2882 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2883 if test "x$LINE" != x ; then
2884 eval "DEFAULT_$LINE"
2885 else
2886 no_cache=1
2887 fi
2888
2889 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2890
2891fi
10f2d63a
VZ
2892
2893
2894 eval "$ac_cv_use_no_exceptions"
2895 if test "$no_cache" != 1; then
2896 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2897 fi
2898
2899 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2900 echo "$ac_t""yes" 1>&6
10f2d63a 2901 else
698dcdb6 2902 echo "$ac_t""no" 1>&6
10f2d63a 2903 fi
698dcdb6 2904
10f2d63a 2905
698dcdb6 2906 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
f79bd02d 2907echo "configure:2908: checking for --enable-permissive" >&5
10f2d63a
VZ
2908 no_cache=0
2909 # Check whether --enable-permissive or --disable-permissive was given.
2910if test "${enable_permissive+set}" = set; then
2911 enableval="$enable_permissive"
698dcdb6 2912
10f2d63a
VZ
2913 if test "$enableval" = yes; then
2914 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2915 else
2916 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2917 fi
698dcdb6 2918
10f2d63a 2919else
698dcdb6 2920
10f2d63a
VZ
2921 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2929
2930fi
10f2d63a
VZ
2931
2932
2933 eval "$ac_cv_use_permissive"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2939 echo "$ac_t""yes" 1>&6
10f2d63a 2940 else
698dcdb6 2941 echo "$ac_t""no" 1>&6
10f2d63a 2942 fi
698dcdb6 2943
10f2d63a 2944
698dcdb6 2945 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
f79bd02d 2946echo "configure:2947: checking for --enable-no_deps" >&5
10f2d63a
VZ
2947 no_cache=0
2948 # Check whether --enable-no_deps or --disable-no_deps was given.
2949if test "${enable_no_deps+set}" = set; then
2950 enableval="$enable_no_deps"
698dcdb6 2951
10f2d63a
VZ
2952 if test "$enableval" = yes; then
2953 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2954 else
2955 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2956 fi
698dcdb6 2957
10f2d63a 2958else
698dcdb6 2959
10f2d63a
VZ
2960 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2961 if test "x$LINE" != x ; then
2962 eval "DEFAULT_$LINE"
2963 else
2964 no_cache=1
2965 fi
2966
2967 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2968
2969fi
10f2d63a
VZ
2970
2971
2972 eval "$ac_cv_use_no_deps"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2978 echo "$ac_t""yes" 1>&6
10f2d63a 2979 else
698dcdb6 2980 echo "$ac_t""no" 1>&6
10f2d63a 2981 fi
698dcdb6
VZ
2982
2983
10f2d63a 2984
54276ccf 2985 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
f79bd02d 2986echo "configure:2987: checking for --enable-compat20" >&5
54276ccf
VZ
2987 no_cache=0
2988 # Check whether --enable-compat20 or --disable-compat20 was given.
2989if test "${enable_compat20+set}" = set; then
2990 enableval="$enable_compat20"
2991
2992 if test "$enableval" = yes; then
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2994 else
2995 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2996 fi
2997
2998else
2999
3000 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3008
3009fi
3010
3011
3012 eval "$ac_cv_use_compat20"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3018 echo "$ac_t""yes" 1>&6
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023
3024 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
f79bd02d 3025echo "configure:3026: checking for --enable-compat22" >&5
54276ccf
VZ
3026 no_cache=0
3027 # Check whether --enable-compat22 or --disable-compat22 was given.
3028if test "${enable_compat22+set}" = set; then
3029 enableval="$enable_compat22"
3030
3031 if test "$enableval" = yes; then
3032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3033 else
3034 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3035 fi
3036
3037else
3038
3039 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3047
3048fi
3049
3050
3051 eval "$ac_cv_use_compat22"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3057 echo "$ac_t""yes" 1>&6
3058 else
3059 echo "$ac_t""no" 1>&6
3060 fi
3061
3062
3063
698dcdb6
VZ
3064
3065 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
f79bd02d 3066echo "configure:3067: checking for --enable-intl" >&5
10f2d63a
VZ
3067 no_cache=0
3068 # Check whether --enable-intl or --disable-intl was given.
3069if test "${enable_intl+set}" = set; then
3070 enableval="$enable_intl"
698dcdb6 3071
10f2d63a
VZ
3072 if test "$enableval" = yes; then
3073 ac_cv_use_intl='wxUSE_INTL=yes'
3074 else
3075 ac_cv_use_intl='wxUSE_INTL=no'
3076 fi
698dcdb6 3077
10f2d63a 3078else
698dcdb6 3079
10f2d63a
VZ
3080 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3088
3089fi
10f2d63a
VZ
3090
3091
3092 eval "$ac_cv_use_intl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_INTL" = yes; then
698dcdb6 3098 echo "$ac_t""yes" 1>&6
10f2d63a 3099 else
698dcdb6 3100 echo "$ac_t""no" 1>&6
10f2d63a 3101 fi
698dcdb6 3102
10f2d63a 3103
698dcdb6 3104 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
f79bd02d 3105echo "configure:3106: checking for --enable-config" >&5
10f2d63a
VZ
3106 no_cache=0
3107 # Check whether --enable-config or --disable-config was given.
3108if test "${enable_config+set}" = set; then
3109 enableval="$enable_config"
698dcdb6 3110
10f2d63a
VZ
3111 if test "$enableval" = yes; then
3112 ac_cv_use_config='wxUSE_CONFIG=yes'
3113 else
3114 ac_cv_use_config='wxUSE_CONFIG=no'
3115 fi
698dcdb6 3116
10f2d63a 3117else
698dcdb6 3118
10f2d63a
VZ
3119 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3127
3128fi
10f2d63a
VZ
3129
3130
3131 eval "$ac_cv_use_config"
3132 if test "$no_cache" != 1; then
3133 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3134 fi
3135
3136 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3137 echo "$ac_t""yes" 1>&6
10f2d63a 3138 else
698dcdb6 3139 echo "$ac_t""no" 1>&6
10f2d63a 3140 fi
698dcdb6
VZ
3141
3142
b12915c1 3143
a1622950 3144 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
f79bd02d 3145echo "configure:3146: checking for --enable-protocols" >&5
a1622950
VZ
3146 no_cache=0
3147 # Check whether --enable-protocols or --disable-protocols was given.
3148if test "${enable_protocols+set}" = set; then
3149 enableval="$enable_protocols"
3150
3151 if test "$enableval" = yes; then
3152 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3153 else
3154 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3155 fi
3156
3157else
3158
3159 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3160 if test "x$LINE" != x ; then
3161 eval "DEFAULT_$LINE"
3162 else
3163 no_cache=1
3164 fi
3165
3166 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3167
3168fi
3169
3170
3171 eval "$ac_cv_use_protocols"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_PROTOCOL" = yes; then
3177 echo "$ac_t""yes" 1>&6
3178 else
3179 echo "$ac_t""no" 1>&6
3180 fi
3181
3182
3183 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
f79bd02d 3184echo "configure:3185: checking for --enable-ftp" >&5
a1622950
VZ
3185 no_cache=0
3186 # Check whether --enable-ftp or --disable-ftp was given.
3187if test "${enable_ftp+set}" = set; then
3188 enableval="$enable_ftp"
3189
3190 if test "$enableval" = yes; then
3191 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3192 else
3193 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3206
3207fi
3208
3209
3210 eval "$ac_cv_use_ftp"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3216 echo "$ac_t""yes" 1>&6
3217 else
3218 echo "$ac_t""no" 1>&6
3219 fi
3220
3221
3222 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
f79bd02d 3223echo "configure:3224: checking for --enable-http" >&5
a1622950
VZ
3224 no_cache=0
3225 # Check whether --enable-http or --disable-http was given.
3226if test "${enable_http+set}" = set; then
3227 enableval="$enable_http"
3228
3229 if test "$enableval" = yes; then
3230 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3231 else
3232 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3233 fi
3234
3235else
3236
3237 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3245
3246fi
3247
3248
3249 eval "$ac_cv_use_http"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3255 echo "$ac_t""yes" 1>&6
3256 else
3257 echo "$ac_t""no" 1>&6
3258 fi
3259
3260
3261 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
f79bd02d 3262echo "configure:3263: checking for --enable-fileproto" >&5
a1622950
VZ
3263 no_cache=0
3264 # Check whether --enable-fileproto or --disable-fileproto was given.
3265if test "${enable_fileproto+set}" = set; then
3266 enableval="$enable_fileproto"
3267
3268 if test "$enableval" = yes; then
3269 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3270 else
3271 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3272 fi
3273
3274else
3275
3276 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3277 if test "x$LINE" != x ; then
3278 eval "DEFAULT_$LINE"
3279 else
3280 no_cache=1
3281 fi
3282
3283 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3284
3285fi
3286
3287
3288 eval "$ac_cv_use_fileproto"
3289 if test "$no_cache" != 1; then
3290 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3291 fi
3292
3293 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3294 echo "$ac_t""yes" 1>&6
3295 else
3296 echo "$ac_t""no" 1>&6
3297 fi
3298
3299
698dcdb6 3300 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
f79bd02d 3301echo "configure:3302: checking for --enable-sockets" >&5
10f2d63a
VZ
3302 no_cache=0
3303 # Check whether --enable-sockets or --disable-sockets was given.
3304if test "${enable_sockets+set}" = set; then
3305 enableval="$enable_sockets"
698dcdb6 3306
10f2d63a
VZ
3307 if test "$enableval" = yes; then
3308 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3309 else
3310 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3311 fi
698dcdb6 3312
10f2d63a 3313else
698dcdb6 3314
10f2d63a
VZ
3315 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3323
3324fi
10f2d63a
VZ
3325
3326
3327 eval "$ac_cv_use_sockets"
3328 if test "$no_cache" != 1; then
3329 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3330 fi
3331
3332 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3333 echo "$ac_t""yes" 1>&6
10f2d63a 3334 else
698dcdb6 3335 echo "$ac_t""no" 1>&6
10f2d63a 3336 fi
698dcdb6 3337
b12915c1 3338
698dcdb6
VZ
3339
3340 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
f79bd02d 3341echo "configure:3342: checking for --enable-ipc" >&5
10f2d63a 3342 no_cache=0
eb4efbdc
VZ
3343 # Check whether --enable-ipc or --disable-ipc was given.
3344if test "${enable_ipc+set}" = set; then
3345 enableval="$enable_ipc"
698dcdb6 3346
10f2d63a 3347 if test "$enableval" = yes; then
eb4efbdc 3348 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3349 else
eb4efbdc 3350 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3351 fi
698dcdb6 3352
10f2d63a 3353else
698dcdb6 3354
eb4efbdc 3355 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
eb4efbdc 3362 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3363
3364fi
10f2d63a
VZ
3365
3366
eb4efbdc 3367 eval "$ac_cv_use_ipc"
10f2d63a 3368 if test "$no_cache" != 1; then
eb4efbdc 3369 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3370 fi
3371
eb4efbdc 3372 if test "$wxUSE_IPC" = yes; then
698dcdb6 3373 echo "$ac_t""yes" 1>&6
10f2d63a 3374 else
698dcdb6 3375 echo "$ac_t""no" 1>&6
10f2d63a 3376 fi
698dcdb6
VZ
3377
3378
eb4efbdc 3379
1e6feb95 3380 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
f79bd02d 3381echo "configure:3382: checking for --enable-cmdline" >&5
1e6feb95
VZ
3382 no_cache=0
3383 # Check whether --enable-cmdline or --disable-cmdline was given.
3384if test "${enable_cmdline+set}" = set; then
3385 enableval="$enable_cmdline"
3386
3387 if test "$enableval" = yes; then
3388 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3389 else
3390 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3391 fi
3392
3393else
3394
3395 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3396 if test "x$LINE" != x ; then
3397 eval "DEFAULT_$LINE"
3398 else
3399 no_cache=1
3400 fi
3401
3402 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3403
3404fi
3405
3406
3407 eval "$ac_cv_use_cmdline"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3413 echo "$ac_t""yes" 1>&6
3414 else
3415 echo "$ac_t""no" 1>&6
3416 fi
3417
3418
3419 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
f79bd02d 3420echo "configure:3421: checking for --enable-datetime" >&5
1e6feb95
VZ
3421 no_cache=0
3422 # Check whether --enable-datetime or --disable-datetime was given.
3423if test "${enable_datetime+set}" = set; then
3424 enableval="$enable_datetime"
3425
3426 if test "$enableval" = yes; then
3427 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3428 else
3429 ac_cv_use_datetime='wxUSE_DATETIME=no'
3430 fi
3431
3432else
3433
3434 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3435 if test "x$LINE" != x ; then
3436 eval "DEFAULT_$LINE"
3437 else
3438 no_cache=1
3439 fi
3440
3441 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3442
3443fi
3444
3445
3446 eval "$ac_cv_use_datetime"
3447 if test "$no_cache" != 1; then
3448 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3449 fi
3450
3451 if test "$wxUSE_DATETIME" = yes; then
3452 echo "$ac_t""yes" 1>&6
3453 else
3454 echo "$ac_t""no" 1>&6
3455 fi
3456
3457
3458 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
f79bd02d 3459echo "configure:3460: checking for --enable-timedate" >&5
1e6feb95
VZ
3460 no_cache=0
3461 # Check whether --enable-timedate or --disable-timedate was given.
3462if test "${enable_timedate+set}" = set; then
3463 enableval="$enable_timedate"
3464
3465 if test "$enableval" = yes; then
3466 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3467 else
3468 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3469 fi
3470
3471else
3472
3473 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3474 if test "x$LINE" != x ; then
3475 eval "DEFAULT_$LINE"
3476 else
3477 no_cache=1
3478 fi
3479
3480 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3481
3482fi
3483
3484
3485 eval "$ac_cv_use_timedate"
3486 if test "$no_cache" != 1; then
3487 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3488 fi
3489
3490 if test "$wxUSE_TIMEDATE" = yes; then
3491 echo "$ac_t""yes" 1>&6
3492 else
3493 echo "$ac_t""no" 1>&6
3494 fi
3495
3496
3497 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
f79bd02d 3498echo "configure:3499: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3499 no_cache=0
3500 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3501if test "${enable_stopwatch+set}" = set; then
3502 enableval="$enable_stopwatch"
3503
3504 if test "$enableval" = yes; then
3505 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3506 else
3507 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3508 fi
3509
3510else
3511
3512 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3513 if test "x$LINE" != x ; then
3514 eval "DEFAULT_$LINE"
3515 else
3516 no_cache=1
3517 fi
3518
3519 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3520
3521fi
3522
3523
3524 eval "$ac_cv_use_stopwatch"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_STOPWATCH" = yes; then
3530 echo "$ac_t""yes" 1>&6
3531 else
3532 echo "$ac_t""no" 1>&6
3533 fi
3534
3535
698dcdb6 3536 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
f79bd02d 3537echo "configure:3538: checking for --enable-dialupman" >&5
10f2d63a 3538 no_cache=0
eb4efbdc
VZ
3539 # Check whether --enable-dialupman or --disable-dialupman was given.
3540if test "${enable_dialupman+set}" = set; then
3541 enableval="$enable_dialupman"
698dcdb6 3542
10f2d63a 3543 if test "$enableval" = yes; then
eb4efbdc 3544 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3545 else
eb4efbdc 3546 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3547 fi
698dcdb6 3548
10f2d63a 3549else
698dcdb6 3550
eb4efbdc 3551 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
eb4efbdc 3558 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3559
3560fi
10f2d63a
VZ
3561
3562
eb4efbdc 3563 eval "$ac_cv_use_dialupman"
10f2d63a 3564 if test "$no_cache" != 1; then
eb4efbdc 3565 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3566 fi
3567
eb4efbdc 3568 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3569 echo "$ac_t""yes" 1>&6
10f2d63a 3570 else
698dcdb6 3571 echo "$ac_t""no" 1>&6
10f2d63a 3572 fi
698dcdb6 3573
10f2d63a 3574
698dcdb6 3575 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
f79bd02d 3576echo "configure:3577: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3577 no_cache=0
3578 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3579if test "${enable_apple_ieee+set}" = set; then
3580 enableval="$enable_apple_ieee"
698dcdb6 3581
10f2d63a
VZ
3582 if test "$enableval" = yes; then
3583 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3584 else
3585 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3586 fi
698dcdb6 3587
10f2d63a 3588else
698dcdb6 3589
10f2d63a
VZ
3590 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3591 if test "x$LINE" != x ; then
3592 eval "DEFAULT_$LINE"
3593 else
3594 no_cache=1
3595 fi
3596
3597 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3598
3599fi
10f2d63a
VZ
3600
3601
3602 eval "$ac_cv_use_apple_ieee"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3608 echo "$ac_t""yes" 1>&6
10f2d63a 3609 else
698dcdb6 3610 echo "$ac_t""no" 1>&6
10f2d63a 3611 fi
698dcdb6 3612
10f2d63a 3613
1e6feb95 3614 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
f79bd02d 3615echo "configure:3616: checking for --enable-timer" >&5
10f2d63a 3616 no_cache=0
1e6feb95
VZ
3617 # Check whether --enable-timer or --disable-timer was given.
3618if test "${enable_timer+set}" = set; then
3619 enableval="$enable_timer"
698dcdb6 3620
10f2d63a 3621 if test "$enableval" = yes; then
1e6feb95 3622 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3623 else
1e6feb95 3624 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3625 fi
698dcdb6 3626
10f2d63a 3627else
698dcdb6 3628
1e6feb95 3629 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3630 if test "x$LINE" != x ; then
3631 eval "DEFAULT_$LINE"
3632 else
3633 no_cache=1
3634 fi
3635
1e6feb95 3636 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3637
3638fi
10f2d63a
VZ
3639
3640
1e6feb95 3641 eval "$ac_cv_use_timer"
10f2d63a 3642 if test "$no_cache" != 1; then
1e6feb95 3643 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3644 fi
3645
1e6feb95 3646 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3647 echo "$ac_t""yes" 1>&6
10f2d63a 3648 else
698dcdb6 3649 echo "$ac_t""no" 1>&6
10f2d63a 3650 fi
698dcdb6 3651
10f2d63a 3652
698dcdb6 3653 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
f79bd02d 3654echo "configure:3655: checking for --enable-wave" >&5
10f2d63a
VZ
3655 no_cache=0
3656 # Check whether --enable-wave or --disable-wave was given.
3657if test "${enable_wave+set}" = set; then
3658 enableval="$enable_wave"
698dcdb6 3659
10f2d63a
VZ
3660 if test "$enableval" = yes; then
3661 ac_cv_use_wave='wxUSE_WAVE=yes'
3662 else
3663 ac_cv_use_wave='wxUSE_WAVE=no'
3664 fi
698dcdb6 3665
10f2d63a 3666else
698dcdb6 3667
10f2d63a
VZ
3668 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3669 if test "x$LINE" != x ; then
3670 eval "DEFAULT_$LINE"
3671 else
3672 no_cache=1
3673 fi
3674
3675 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3676
3677fi
10f2d63a
VZ
3678
3679
3680 eval "$ac_cv_use_wave"
3681 if test "$no_cache" != 1; then
3682 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3683 fi
3684
3685 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3686 echo "$ac_t""yes" 1>&6
10f2d63a 3687 else
698dcdb6 3688 echo "$ac_t""no" 1>&6
10f2d63a 3689 fi
698dcdb6 3690
10f2d63a 3691
698dcdb6 3692 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
f79bd02d 3693echo "configure:3694: checking for --enable-fraction" >&5
10f2d63a
VZ
3694 no_cache=0
3695 # Check whether --enable-fraction or --disable-fraction was given.
3696if test "${enable_fraction+set}" = set; then
3697 enableval="$enable_fraction"
698dcdb6 3698
10f2d63a
VZ
3699 if test "$enableval" = yes; then
3700 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3701 else
3702 ac_cv_use_fraction='wxUSE_FRACTION=no'
3703 fi
698dcdb6 3704
10f2d63a 3705else
698dcdb6 3706
10f2d63a
VZ
3707 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3715
3716fi
10f2d63a
VZ
3717
3718
3719 eval "$ac_cv_use_fraction"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3725 echo "$ac_t""yes" 1>&6
10f2d63a 3726 else
698dcdb6 3727 echo "$ac_t""no" 1>&6
10f2d63a 3728 fi
698dcdb6 3729
10f2d63a 3730
698dcdb6 3731 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
f79bd02d 3732echo "configure:3733: checking for --enable-dynlib" >&5
10f2d63a
VZ
3733 no_cache=0
3734 # Check whether --enable-dynlib or --disable-dynlib was given.
3735if test "${enable_dynlib+set}" = set; then
3736 enableval="$enable_dynlib"
698dcdb6 3737
10f2d63a
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3740 else
3741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3742 fi
698dcdb6 3743
10f2d63a 3744else
698dcdb6 3745
10f2d63a
VZ
3746 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3754
3755fi
10f2d63a
VZ
3756
3757
3758 eval "$ac_cv_use_dynlib"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3764 echo "$ac_t""yes" 1>&6
10f2d63a 3765 else
698dcdb6 3766 echo "$ac_t""no" 1>&6
10f2d63a 3767 fi
698dcdb6 3768
10f2d63a 3769
0b9ab0bd 3770 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
f79bd02d 3771echo "configure:3772: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3772 no_cache=0
3773 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3774if test "${enable_dynamicloader+set}" = set; then
3775 enableval="$enable_dynamicloader"
3776
3777 if test "$enableval" = yes; then
3778 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3779 else
3780 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3781 fi
3782
3783else
3784
3785 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3786 if test "x$LINE" != x ; then
3787 eval "DEFAULT_$LINE"
3788 else
3789 no_cache=1
3790 fi
3791
3792 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3793
3794fi
3795
3796
3797 eval "$ac_cv_use_dynamicloader"
3798 if test "$no_cache" != 1; then
3799 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3800 fi
3801
3802 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3803 echo "$ac_t""yes" 1>&6
3804 else
3805 echo "$ac_t""no" 1>&6
3806 fi
3807
3808
698dcdb6 3809 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
f79bd02d 3810echo "configure:3811: checking for --enable-longlong" >&5
10f2d63a
VZ
3811 no_cache=0
3812 # Check whether --enable-longlong or --disable-longlong was given.
3813if test "${enable_longlong+set}" = set; then
3814 enableval="$enable_longlong"
698dcdb6 3815
10f2d63a
VZ
3816 if test "$enableval" = yes; then
3817 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3818 else
3819 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3820 fi
698dcdb6 3821
10f2d63a 3822else
698dcdb6 3823
10f2d63a
VZ
3824 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3832
3833fi
10f2d63a
VZ
3834
3835
3836 eval "$ac_cv_use_longlong"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3842 echo "$ac_t""yes" 1>&6
10f2d63a 3843 else
698dcdb6 3844 echo "$ac_t""no" 1>&6
10f2d63a 3845 fi
698dcdb6 3846
10f2d63a 3847
698dcdb6 3848 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
f79bd02d 3849echo "configure:3850: checking for --enable-geometry" >&5
e8f65ba6
RR
3850 no_cache=0
3851 # Check whether --enable-geometry or --disable-geometry was given.
3852if test "${enable_geometry+set}" = set; then
3853 enableval="$enable_geometry"
698dcdb6 3854
e8f65ba6
RR
3855 if test "$enableval" = yes; then
3856 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3857 else
3858 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3859 fi
698dcdb6 3860
e8f65ba6 3861else
698dcdb6 3862
e8f65ba6
RR
3863 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3871
3872fi
e8f65ba6
RR
3873
3874
3875 eval "$ac_cv_use_geometry"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3881 echo "$ac_t""yes" 1>&6
e8f65ba6 3882 else
698dcdb6 3883 echo "$ac_t""no" 1>&6
e8f65ba6 3884 fi
698dcdb6 3885
e8f65ba6 3886
698dcdb6 3887 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
f79bd02d 3888echo "configure:3889: checking for --enable-log" >&5
10f2d63a
VZ
3889 no_cache=0
3890 # Check whether --enable-log or --disable-log was given.
3891if test "${enable_log+set}" = set; then
3892 enableval="$enable_log"
698dcdb6 3893
10f2d63a
VZ
3894 if test "$enableval" = yes; then
3895 ac_cv_use_log='wxUSE_LOG=yes'
3896 else
3897 ac_cv_use_log='wxUSE_LOG=no'
3898 fi
698dcdb6 3899
10f2d63a 3900else
698dcdb6 3901
10f2d63a
VZ
3902 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3910
3911fi
10f2d63a
VZ
3912
3913
3914 eval "$ac_cv_use_log"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_LOG" = yes; then
698dcdb6 3920 echo "$ac_t""yes" 1>&6
10f2d63a 3921 else
698dcdb6 3922 echo "$ac_t""no" 1>&6
10f2d63a 3923 fi
698dcdb6 3924
10f2d63a 3925
698dcdb6 3926 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
f79bd02d 3927echo "configure:3928: checking for --enable-streams" >&5
10f2d63a
VZ
3928 no_cache=0
3929 # Check whether --enable-streams or --disable-streams was given.
3930if test "${enable_streams+set}" = set; then
3931 enableval="$enable_streams"
698dcdb6 3932
10f2d63a
VZ
3933 if test "$enableval" = yes; then
3934 ac_cv_use_streams='wxUSE_STREAMS=yes'
3935 else
3936 ac_cv_use_streams='wxUSE_STREAMS=no'
3937 fi
698dcdb6 3938
10f2d63a 3939else
698dcdb6 3940
10f2d63a
VZ
3941 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3949
3950fi
10f2d63a
VZ
3951
3952
3953 eval "$ac_cv_use_streams"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3959 echo "$ac_t""yes" 1>&6
10f2d63a 3960 else
698dcdb6 3961 echo "$ac_t""no" 1>&6
10f2d63a 3962 fi
698dcdb6 3963
10f2d63a 3964
698dcdb6 3965 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
f79bd02d 3966echo "configure:3967: checking for --enable-file" >&5
10f2d63a
VZ
3967 no_cache=0
3968 # Check whether --enable-file or --disable-file was given.
3969if test "${enable_file+set}" = set; then
3970 enableval="$enable_file"
698dcdb6 3971
10f2d63a
VZ
3972 if test "$enableval" = yes; then
3973 ac_cv_use_file='wxUSE_FILE=yes'
3974 else
3975 ac_cv_use_file='wxUSE_FILE=no'
3976 fi
698dcdb6 3977
10f2d63a 3978else
698dcdb6 3979
10f2d63a
VZ
3980 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3988
3989fi
10f2d63a
VZ
3990
3991
3992 eval "$ac_cv_use_file"
3993 if test "$no_cache" != 1; then
3994 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3995 fi
3996
3997 if test "$wxUSE_FILE" = yes; then
698dcdb6 3998 echo "$ac_t""yes" 1>&6
10f2d63a 3999 else
698dcdb6 4000 echo "$ac_t""no" 1>&6
10f2d63a 4001 fi
698dcdb6 4002
10f2d63a 4003
1e6feb95 4004 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
f79bd02d 4005echo "configure:4006: checking for --enable-ffile" >&5
10f2d63a 4006 no_cache=0
1e6feb95
VZ
4007 # Check whether --enable-ffile or --disable-ffile was given.
4008if test "${enable_ffile+set}" = set; then
4009 enableval="$enable_ffile"
698dcdb6 4010
10f2d63a 4011 if test "$enableval" = yes; then
1e6feb95 4012 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4013 else
1e6feb95 4014 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4015 fi
698dcdb6 4016
10f2d63a 4017else
698dcdb6 4018
1e6feb95 4019 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4020 if test "x$LINE" != x ; then
4021 eval "DEFAULT_$LINE"
4022 else
4023 no_cache=1
4024 fi
4025
1e6feb95 4026 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
4027
4028fi
10f2d63a
VZ
4029
4030
1e6feb95 4031 eval "$ac_cv_use_ffile"
10f2d63a 4032 if test "$no_cache" != 1; then
1e6feb95 4033 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4034 fi
4035
1e6feb95 4036 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4037 echo "$ac_t""yes" 1>&6
10f2d63a 4038 else
698dcdb6 4039 echo "$ac_t""no" 1>&6
10f2d63a 4040 fi
698dcdb6 4041
10f2d63a 4042
a3a584a7 4043 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
f79bd02d 4044echo "configure:4045: checking for --enable-textbuf" >&5
a3a584a7
VZ
4045 no_cache=0
4046 # Check whether --enable-textbuf or --disable-textbuf was given.
4047if test "${enable_textbuf+set}" = set; then
4048 enableval="$enable_textbuf"
4049
4050 if test "$enableval" = yes; then
4051 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4052 else
4053 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4054 fi
4055
4056else
4057
4058 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4059 if test "x$LINE" != x ; then
4060 eval "DEFAULT_$LINE"
4061 else
4062 no_cache=1
4063 fi
4064
4065 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4066
4067fi
4068
4069
4070 eval "$ac_cv_use_textbuf"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_TEXTBUFFER" = yes; then
4076 echo "$ac_t""yes" 1>&6
4077 else
4078 echo "$ac_t""no" 1>&6
4079 fi
4080
4081
1e6feb95 4082 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
f79bd02d 4083echo "configure:4084: checking for --enable-textfile" >&5
10f2d63a 4084 no_cache=0
1e6feb95
VZ
4085 # Check whether --enable-textfile or --disable-textfile was given.
4086if test "${enable_textfile+set}" = set; then
4087 enableval="$enable_textfile"
698dcdb6 4088
10f2d63a 4089 if test "$enableval" = yes; then
1e6feb95 4090 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4091 else
1e6feb95 4092 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4093 fi
698dcdb6 4094
10f2d63a 4095else
698dcdb6 4096
1e6feb95 4097 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
1e6feb95 4104 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4105
4106fi
10f2d63a
VZ
4107
4108
1e6feb95 4109 eval "$ac_cv_use_textfile"
10f2d63a 4110 if test "$no_cache" != 1; then
1e6feb95 4111 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4112 fi
4113
1e6feb95 4114 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4115 echo "$ac_t""yes" 1>&6
10f2d63a 4116 else
698dcdb6 4117 echo "$ac_t""no" 1>&6
10f2d63a 4118 fi
698dcdb6 4119
10f2d63a 4120
1e6feb95 4121 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
f79bd02d 4122echo "configure:4123: checking for --enable-fontmap" >&5
10f2d63a 4123 no_cache=0
1e6feb95
VZ
4124 # Check whether --enable-fontmap or --disable-fontmap was given.
4125if test "${enable_fontmap+set}" = set; then
4126 enableval="$enable_fontmap"
698dcdb6 4127
10f2d63a 4128 if test "$enableval" = yes; then
1e6feb95 4129 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4130 else
1e6feb95 4131 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4132 fi
698dcdb6 4133
10f2d63a 4134else
698dcdb6 4135
1e6feb95 4136 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
1e6feb95 4143 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4144
4145fi
10f2d63a
VZ
4146
4147
1e6feb95 4148 eval "$ac_cv_use_fontmap"
10f2d63a 4149 if test "$no_cache" != 1; then
1e6feb95 4150 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4151 fi
4152
1e6feb95 4153 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4154 echo "$ac_t""yes" 1>&6
10f2d63a 4155 else
698dcdb6 4156 echo "$ac_t""no" 1>&6
10f2d63a 4157 fi
698dcdb6 4158
10f2d63a 4159
1e6feb95 4160 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
f79bd02d 4161echo "configure:4162: checking for --enable-unicode" >&5
10f2d63a 4162 no_cache=0
1e6feb95
VZ
4163 # Check whether --enable-unicode or --disable-unicode was given.
4164if test "${enable_unicode+set}" = set; then
4165 enableval="$enable_unicode"
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4169 else
4170 ac_cv_use_unicode='wxUSE_UNICODE=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4183
4184fi
4185
4186
4187 eval "$ac_cv_use_unicode"
4188 if test "$no_cache" != 1; then
4189 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4190 fi
4191
4192 if test "$wxUSE_UNICODE" = yes; then
4193 echo "$ac_t""yes" 1>&6
4194 else
4195 echo "$ac_t""no" 1>&6
4196 fi
4197
4198
a72a4bfa 4199 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
f79bd02d 4200echo "configure:4201: checking for --enable-mslu" >&5
a72a4bfa
VS
4201 no_cache=0
4202 # Check whether --enable-mslu or --disable-mslu was given.
4203if test "${enable_mslu+set}" = set; then
4204 enableval="$enable_mslu"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4208 else
4209 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4210 fi
4211
4212else
4213
4214 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4222
4223fi
4224
4225
4226 eval "$ac_cv_use_mslu"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_UNICODE_MSLU" = yes; then
4232 echo "$ac_t""yes" 1>&6
4233 else
4234 echo "$ac_t""no" 1>&6
4235 fi
4236
4237
1e6feb95 4238 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
f79bd02d 4239echo "configure:4240: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4240 no_cache=0
4241 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4242if test "${enable_wxprintfv+set}" = set; then
4243 enableval="$enable_wxprintfv"
4244
4245 if test "$enableval" = yes; then
10f2d63a
VZ
4246 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4247 else
4248 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4249 fi
698dcdb6 4250
10f2d63a 4251else
698dcdb6 4252
10f2d63a
VZ
4253 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4261
4262fi
10f2d63a
VZ
4263
4264
4265 eval "$ac_cv_use_wxprintfv"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4271 echo "$ac_t""yes" 1>&6
10f2d63a 4272 else
698dcdb6 4273 echo "$ac_t""no" 1>&6
10f2d63a 4274 fi
698dcdb6 4275
10f2d63a 4276
698dcdb6 4277 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
f79bd02d 4278echo "configure:4279: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4279 no_cache=0
4280 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4281if test "${enable_std_iostreams+set}" = set; then
4282 enableval="$enable_std_iostreams"
698dcdb6 4283
10f2d63a
VZ
4284 if test "$enableval" = yes; then
4285 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4286 else
4287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4288 fi
698dcdb6 4289
10f2d63a 4290else
698dcdb6 4291
10f2d63a
VZ
4292 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4300
4301fi
10f2d63a
VZ
4302
4303
4304 eval "$ac_cv_use_std_iostreams"
4305 if test "$no_cache" != 1; then
4306 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4307 fi
4308
4309 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4310 echo "$ac_t""yes" 1>&6
10f2d63a 4311 else
698dcdb6 4312 echo "$ac_t""no" 1>&6
10f2d63a 4313 fi
698dcdb6 4314
10f2d63a 4315
698dcdb6 4316 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
f79bd02d 4317echo "configure:4318: checking for --enable-filesystem" >&5
24528b0c
VS
4318 no_cache=0
4319 # Check whether --enable-filesystem or --disable-filesystem was given.
4320if test "${enable_filesystem+set}" = set; then
4321 enableval="$enable_filesystem"
698dcdb6 4322
24528b0c
VS
4323 if test "$enableval" = yes; then
4324 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4325 else
4326 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4327 fi
698dcdb6 4328
24528b0c 4329else
698dcdb6 4330
24528b0c
VS
4331 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
4338 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4339
4340fi
24528b0c
VS
4341
4342
4343 eval "$ac_cv_use_filesystem"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4349 echo "$ac_t""yes" 1>&6
24528b0c 4350 else
698dcdb6 4351 echo "$ac_t""no" 1>&6
24528b0c 4352 fi
698dcdb6 4353
24528b0c 4354
698dcdb6 4355 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
f79bd02d 4356echo "configure:4357: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4357 no_cache=0
4358 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4359if test "${enable_fs_inet+set}" = set; then
4360 enableval="$enable_fs_inet"
698dcdb6 4361
10f2d63a
VZ
4362 if test "$enableval" = yes; then
4363 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4364 else
4365 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4366 fi
698dcdb6 4367
10f2d63a 4368else
698dcdb6 4369
10f2d63a
VZ
4370 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4378
4379fi
10f2d63a
VZ
4380
4381
4382 eval "$ac_cv_use_fs_inet"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4388 echo "$ac_t""yes" 1>&6
10f2d63a 4389 else
698dcdb6 4390 echo "$ac_t""no" 1>&6
10f2d63a 4391 fi
698dcdb6 4392
10f2d63a 4393
698dcdb6 4394 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
f79bd02d 4395echo "configure:4396: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4396 no_cache=0
4397 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4398if test "${enable_fs_zip+set}" = set; then
4399 enableval="$enable_fs_zip"
698dcdb6 4400
10f2d63a
VZ
4401 if test "$enableval" = yes; then
4402 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4403 else
4404 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4405 fi
698dcdb6 4406
10f2d63a 4407else
698dcdb6 4408
10f2d63a
VZ
4409 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
4416 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4417
4418fi
10f2d63a
VZ
4419
4420
4421 eval "$ac_cv_use_fs_zip"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4427 echo "$ac_t""yes" 1>&6
10f2d63a 4428 else
698dcdb6 4429 echo "$ac_t""no" 1>&6
10f2d63a 4430 fi
698dcdb6 4431
10f2d63a 4432
698dcdb6 4433 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
f79bd02d 4434echo "configure:4435: checking for --enable-zipstream" >&5
10f2d63a
VZ
4435 no_cache=0
4436 # Check whether --enable-zipstream or --disable-zipstream was given.
4437if test "${enable_zipstream+set}" = set; then
4438 enableval="$enable_zipstream"
698dcdb6 4439
10f2d63a
VZ
4440 if test "$enableval" = yes; then
4441 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4442 else
4443 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4444 fi
698dcdb6 4445
10f2d63a 4446else
698dcdb6 4447
10f2d63a
VZ
4448 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4456
4457fi
10f2d63a
VZ
4458
4459
4460 eval "$ac_cv_use_zipstream"
4461 if test "$no_cache" != 1; then
4462 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4463 fi
4464
4465 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4466 echo "$ac_t""yes" 1>&6
10f2d63a 4467 else
698dcdb6 4468 echo "$ac_t""no" 1>&6
10f2d63a 4469 fi
698dcdb6 4470
10f2d63a 4471
698dcdb6
VZ
4472
4473 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
f79bd02d 4474echo "configure:4475: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4475 no_cache=0
4476 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4477if test "${enable_catch_segvs+set}" = set; then
4478 enableval="$enable_catch_segvs"
698dcdb6 4479
eb4efbdc
VZ
4480 if test "$enableval" = yes; then
4481 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4482 else
4483 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4484 fi
698dcdb6 4485
eb4efbdc 4486else
698dcdb6 4487
eb4efbdc
VZ
4488 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4496
4497fi
eb4efbdc
VZ
4498
4499
4500 eval "$ac_cv_use_catch_segvs"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4506 echo "$ac_t""yes" 1>&6
eb4efbdc 4507 else
698dcdb6 4508 echo "$ac_t""no" 1>&6
eb4efbdc 4509 fi
698dcdb6 4510
eb4efbdc 4511
698dcdb6 4512 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
f79bd02d 4513echo "configure:4514: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4514 no_cache=0
4515 # Check whether --enable-snglinst or --disable-snglinst was given.
4516if test "${enable_snglinst+set}" = set; then
4517 enableval="$enable_snglinst"
698dcdb6 4518
4f3c5f06
VZ
4519 if test "$enableval" = yes; then
4520 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4521 else
4522 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4523 fi
698dcdb6 4524
4f3c5f06 4525else
698dcdb6 4526
4f3c5f06
VZ
4527 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4535
4536fi
4f3c5f06
VZ
4537
4538
4539 eval "$ac_cv_use_snglinst"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4545 echo "$ac_t""yes" 1>&6
4f3c5f06 4546 else
698dcdb6 4547 echo "$ac_t""no" 1>&6
4f3c5f06 4548 fi
698dcdb6
VZ
4549
4550
eb4efbdc 4551
1e6feb95 4552 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
f79bd02d 4553echo "configure:4554: checking for --enable-mimetype" >&5
1e6feb95
VZ
4554 no_cache=0
4555 # Check whether --enable-mimetype or --disable-mimetype was given.
4556if test "${enable_mimetype+set}" = set; then
4557 enableval="$enable_mimetype"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4561 else
4562 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4563 fi
4564
4565else
4566
4567 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4575
4576fi
4577
4578
4579 eval "$ac_cv_use_mimetype"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_MIMETYPE" = yes; then
4585 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4588 fi
4589
4590
3e44f09d 4591 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
f79bd02d 4592echo "configure:4593: checking for --enable-system_options" >&5
3e44f09d
VZ
4593 no_cache=0
4594 # Check whether --enable-system_options or --disable-system_options was given.
4595if test "${enable_system_options+set}" = set; then
4596 enableval="$enable_system_options"
4597
4598 if test "$enableval" = yes; then
4599 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4600 else
4601 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4602 fi
4603
4604else
4605
4606 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4607 if test "x$LINE" != x ; then
4608 eval "DEFAULT_$LINE"
4609 else
4610 no_cache=1
4611 fi
4612
4613 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4614
4615fi
4616
4617
4618 eval "$ac_cv_use_system_options"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4624 echo "$ac_t""yes" 1>&6
4625 else
4626 echo "$ac_t""no" 1>&6
4627 fi
4628
4629
1e6feb95 4630
4cdb0ab0 4631 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
f79bd02d 4632echo "configure:4633: checking for --enable-url" >&5
4cdb0ab0
VS
4633 no_cache=0
4634 # Check whether --enable-url or --disable-url was given.
4635if test "${enable_url+set}" = set; then
4636 enableval="$enable_url"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_url='wxUSE_URL=yes'
4640 else
4641 ac_cv_use_url='wxUSE_URL=no'
4642 fi
4643
4644else
4645
4646 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4654
4655fi
4656
4657
4658 eval "$ac_cv_use_url"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_URL" = yes; then
4664 echo "$ac_t""yes" 1>&6
4665 else
4666 echo "$ac_t""no" 1>&6
4667 fi
4668
4669
4670 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
f79bd02d 4671echo "configure:4672: checking for --enable-protocol" >&5
4cdb0ab0
VS
4672 no_cache=0
4673 # Check whether --enable-protocol or --disable-protocol was given.
4674if test "${enable_protocol+set}" = set; then
4675 enableval="$enable_protocol"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4679 else
4680 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4693
4694fi
4695
4696
4697 eval "$ac_cv_use_protocol"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_PROTOCOL" = yes; then
4703 echo "$ac_t""yes" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4706 fi
4707
4708
4709 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
f79bd02d 4710echo "configure:4711: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4711 no_cache=0
4712 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4713if test "${enable_protocol_http+set}" = set; then
4714 enableval="$enable_protocol_http"
4715
4716 if test "$enableval" = yes; then
4717 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4718 else
4719 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4720 fi
4721
4722else
4723
4724 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4725 if test "x$LINE" != x ; then
4726 eval "DEFAULT_$LINE"
4727 else
4728 no_cache=1
4729 fi
4730
4731 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4732
4733fi
4734
4735
4736 eval "$ac_cv_use_protocol_http"
4737 if test "$no_cache" != 1; then
4738 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4739 fi
4740
4741 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4742 echo "$ac_t""yes" 1>&6
4743 else
4744 echo "$ac_t""no" 1>&6
4745 fi
4746
4747
4748 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
f79bd02d 4749echo "configure:4750: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4750 no_cache=0
4751 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4752if test "${enable_protocol_ftp+set}" = set; then
4753 enableval="$enable_protocol_ftp"
4754
4755 if test "$enableval" = yes; then
4756 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4757 else
4758 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4759 fi
4760
4761else
4762
4763 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4764 if test "x$LINE" != x ; then
4765 eval "DEFAULT_$LINE"
4766 else
4767 no_cache=1
4768 fi
4769
4770 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4771
4772fi
4773
4774
4775 eval "$ac_cv_use_protocol_ftp"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4781 echo "$ac_t""yes" 1>&6
4782 else
4783 echo "$ac_t""no" 1>&6
4784 fi
4785
4786
4787 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
f79bd02d 4788echo "configure:4789: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4789 no_cache=0
4790 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4791if test "${enable_protocol_file+set}" = set; then
4792 enableval="$enable_protocol_file"
4793
4794 if test "$enableval" = yes; then
4795 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4796 else
4797 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4798 fi
4799
4800else
4801
4802 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4803 if test "x$LINE" != x ; then
4804 eval "DEFAULT_$LINE"
4805 else
4806 no_cache=1
4807 fi
4808
4809 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4810
4811fi
4812
4813
4814 eval "$ac_cv_use_protocol_file"
4815 if test "$no_cache" != 1; then
4816 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4817 fi
4818
4819 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4820 echo "$ac_t""yes" 1>&6
4821 else
4822 echo "$ac_t""no" 1>&6
4823 fi
4824
4825
4826
4827
698dcdb6
VZ
4828
4829 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
f79bd02d 4830echo "configure:4831: checking for --enable-threads" >&5
10f2d63a
VZ
4831 no_cache=0
4832 # Check whether --enable-threads or --disable-threads was given.
4833if test "${enable_threads+set}" = set; then
4834 enableval="$enable_threads"
698dcdb6 4835
10f2d63a
VZ
4836 if test "$enableval" = yes; then
4837 ac_cv_use_threads='wxUSE_THREADS=yes'
4838 else
4839 ac_cv_use_threads='wxUSE_THREADS=no'
4840 fi
698dcdb6 4841
10f2d63a 4842else
698dcdb6 4843
10f2d63a
VZ
4844 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4852
4853fi
10f2d63a
VZ
4854
4855
4856 eval "$ac_cv_use_threads"
4857 if test "$no_cache" != 1; then
4858 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4859 fi
4860
4861 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4862 echo "$ac_t""yes" 1>&6
10f2d63a 4863 else
698dcdb6 4864 echo "$ac_t""no" 1>&6
10f2d63a 4865 fi
698dcdb6 4866
10f2d63a 4867
b12915c1
VZ
4868if test "$wxUSE_GUI" = "yes"; then
4869
698dcdb6
VZ
4870
4871
4872 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
f79bd02d 4873echo "configure:4874: checking for --enable-docview" >&5
10f2d63a
VZ
4874 no_cache=0
4875 # Check whether --enable-docview or --disable-docview was given.
4876if test "${enable_docview+set}" = set; then
4877 enableval="$enable_docview"
698dcdb6 4878
10f2d63a
VZ
4879 if test "$enableval" = yes; then
4880 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4881 else
4882 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4883 fi
698dcdb6 4884
10f2d63a 4885else
698dcdb6 4886
10f2d63a
VZ
4887 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4895
4896fi
10f2d63a
VZ
4897
4898
4899 eval "$ac_cv_use_docview"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4905 echo "$ac_t""yes" 1>&6
10f2d63a 4906 else
698dcdb6 4907 echo "$ac_t""no" 1>&6
10f2d63a 4908 fi
698dcdb6 4909
10f2d63a 4910
698dcdb6 4911 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
f79bd02d 4912echo "configure:4913: checking for --enable-help" >&5
10f2d63a
VZ
4913 no_cache=0
4914 # Check whether --enable-help or --disable-help was given.
4915if test "${enable_help+set}" = set; then
4916 enableval="$enable_help"
698dcdb6 4917
10f2d63a
VZ
4918 if test "$enableval" = yes; then
4919 ac_cv_use_help='wxUSE_HELP=yes'
4920 else
4921 ac_cv_use_help='wxUSE_HELP=no'
4922 fi
698dcdb6 4923
10f2d63a 4924else
698dcdb6 4925
10f2d63a
VZ
4926 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4934
4935fi
10f2d63a
VZ
4936
4937
4938 eval "$ac_cv_use_help"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_HELP" = yes; then
698dcdb6 4944 echo "$ac_t""yes" 1>&6
10f2d63a 4945 else
698dcdb6 4946 echo "$ac_t""no" 1>&6
10f2d63a 4947 fi
698dcdb6 4948
10f2d63a 4949
29fd3c0c 4950 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
f79bd02d 4951echo "configure:4952: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4952 no_cache=0
4953 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4954if test "${enable_mshtmlhelp+set}" = set; then
4955 enableval="$enable_mshtmlhelp"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4959 else
4960 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4961 fi
4962
4963else
4964
4965 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4973
4974fi
4975
4976
4977 eval "$ac_cv_use_mshtmlhelp"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_MS_HTML_HELP" = yes; then
4983 echo "$ac_t""yes" 1>&6
4984 else
4985 echo "$ac_t""no" 1>&6
4986 fi
4987
4988
3379ed37 4989 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
f79bd02d 4990echo "configure:4991: checking for --enable-html" >&5
3379ed37
VZ
4991 no_cache=0
4992 # Check whether --enable-html or --disable-html was given.
4993if test "${enable_html+set}" = set; then
4994 enableval="$enable_html"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_html='wxUSE_HTML=yes'
4998 else
4999 ac_cv_use_html='wxUSE_HTML=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5012
5013fi
5014
5015
5016 eval "$ac_cv_use_html"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_HTML" = yes; then
5022 echo "$ac_t""yes" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027
5028 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
f79bd02d 5029echo "configure:5030: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5030 no_cache=0
5031 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5032if test "${enable_htmlhelp+set}" = set; then
5033 enableval="$enable_htmlhelp"
5034
5035 if test "$enableval" = yes; then
5036 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5037 else
5038 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5039 fi
5040
5041else
5042
5043 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5044 if test "x$LINE" != x ; then
5045 eval "DEFAULT_$LINE"
5046 else
5047 no_cache=1
5048 fi
5049
5050 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5051
5052fi
5053
5054
5055 eval "$ac_cv_use_htmlhelp"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_WXHTML_HELP" = yes; then
5061 echo "$ac_t""yes" 1>&6
5062 else
5063 echo "$ac_t""no" 1>&6
5064 fi
5065
5066
698dcdb6 5067 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
f79bd02d 5068echo "configure:5069: checking for --enable-constraints" >&5
10f2d63a
VZ
5069 no_cache=0
5070 # Check whether --enable-constraints or --disable-constraints was given.
5071if test "${enable_constraints+set}" = set; then
5072 enableval="$enable_constraints"
698dcdb6 5073
10f2d63a
VZ
5074 if test "$enableval" = yes; then
5075 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5076 else
5077 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5078 fi
698dcdb6 5079
10f2d63a 5080else
698dcdb6 5081
10f2d63a
VZ
5082 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5083 if test "x$LINE" != x ; then
5084 eval "DEFAULT_$LINE"
5085 else
5086 no_cache=1
5087 fi
5088
5089 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5090
5091fi
10f2d63a
VZ
5092
5093
5094 eval "$ac_cv_use_constraints"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5100 echo "$ac_t""yes" 1>&6
10f2d63a 5101 else
698dcdb6 5102 echo "$ac_t""no" 1>&6
10f2d63a 5103 fi
698dcdb6 5104
10f2d63a 5105
698dcdb6 5106 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
f79bd02d 5107echo "configure:5108: checking for --enable-printarch" >&5
10f2d63a
VZ
5108 no_cache=0
5109 # Check whether --enable-printarch or --disable-printarch was given.
5110if test "${enable_printarch+set}" = set; then
5111 enableval="$enable_printarch"
698dcdb6 5112
10f2d63a
VZ
5113 if test "$enableval" = yes; then
5114 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5115 else
5116 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5117 fi
698dcdb6 5118
10f2d63a 5119else
698dcdb6 5120
10f2d63a
VZ
5121 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5129
5130fi
10f2d63a
VZ
5131
5132
5133 eval "$ac_cv_use_printarch"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5139 echo "$ac_t""yes" 1>&6
10f2d63a 5140 else
698dcdb6 5141 echo "$ac_t""no" 1>&6
10f2d63a 5142 fi
698dcdb6 5143
10f2d63a 5144
698dcdb6 5145 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
f79bd02d 5146echo "configure:5147: checking for --enable-mdi" >&5
10f2d63a
VZ
5147 no_cache=0
5148 # Check whether --enable-mdi or --disable-mdi was given.
5149if test "${enable_mdi+set}" = set; then
5150 enableval="$enable_mdi"
698dcdb6 5151
10f2d63a
VZ
5152 if test "$enableval" = yes; then
5153 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5154 else
5155 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5156 fi
698dcdb6 5157
10f2d63a 5158else
698dcdb6 5159
10f2d63a
VZ
5160 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5168
5169fi
10f2d63a
VZ
5170
5171
5172 eval "$ac_cv_use_mdi"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5178 echo "$ac_t""yes" 1>&6
10f2d63a 5179 else
698dcdb6 5180 echo "$ac_t""no" 1>&6
10f2d63a 5181 fi
698dcdb6
VZ
5182
5183
1e6feb95 5184 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
f79bd02d 5185echo "configure:5186: checking for --enable-loggui" >&5
1e6feb95
VZ
5186 no_cache=0
5187 # Check whether --enable-loggui or --disable-loggui was given.
5188if test "${enable_loggui+set}" = set; then
5189 enableval="$enable_loggui"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5193 else
5194 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5207
5208fi
5209
5210
5211 eval "$ac_cv_use_loggui"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_LOGGUI" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
f79bd02d 5224echo "configure:5225: checking for --enable-logwin" >&5
1e6feb95
VZ
5225 no_cache=0
5226 # Check whether --enable-logwin or --disable-logwin was given.
5227if test "${enable_logwin+set}" = set; then
5228 enableval="$enable_logwin"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5232 else
5233 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5234 fi
5235
5236else
5237
5238 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5246
5247fi
5248
5249
5250 eval "$ac_cv_use_logwin"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_LOGWINDOW" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
69d27ff7 5262 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
f79bd02d 5263echo "configure:5264: checking for --enable-logdialog" >&5
69d27ff7
MB
5264 no_cache=0
5265 # Check whether --enable-logdialog or --disable-logdialog was given.
5266if test "${enable_logdialog+set}" = set; then
5267 enableval="$enable_logdialog"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5271 else
5272 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5273 fi
5274
5275else
5276
5277 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5285
5286fi
5287
5288
5289 eval "$ac_cv_use_logdialog"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_LOGDIALOG" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
10f2d63a 5301
698dcdb6 5302 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
f79bd02d 5303echo "configure:5304: checking for --enable-postscript" >&5
10f2d63a
VZ
5304 no_cache=0
5305 # Check whether --enable-postscript or --disable-postscript was given.
5306if test "${enable_postscript+set}" = set; then
5307 enableval="$enable_postscript"
698dcdb6 5308
10f2d63a
VZ
5309 if test "$enableval" = yes; then
5310 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5311 else
5312 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5313 fi
698dcdb6 5314
10f2d63a 5315else
698dcdb6 5316
10f2d63a
VZ
5317 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5318 if test "x$LINE" != x ; then
5319 eval "DEFAULT_$LINE"
5320 else
5321 no_cache=1
5322 fi
5323
5324 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5325
5326fi
10f2d63a
VZ
5327
5328
5329 eval "$ac_cv_use_postscript"
5330 if test "$no_cache" != 1; then
5331 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5332 fi
5333
5334 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5335 echo "$ac_t""yes" 1>&6
10f2d63a 5336 else
698dcdb6 5337 echo "$ac_t""no" 1>&6
10f2d63a 5338 fi
698dcdb6
VZ
5339
5340
5341
10f2d63a 5342
1e6feb95 5343
698dcdb6 5344 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
f79bd02d 5345echo "configure:5346: checking for --enable-prologio" >&5
10f2d63a
VZ
5346 no_cache=0
5347 # Check whether --enable-prologio or --disable-prologio was given.
5348if test "${enable_prologio+set}" = set; then
5349 enableval="$enable_prologio"
698dcdb6 5350
10f2d63a
VZ
5351 if test "$enableval" = yes; then
5352 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5353 else
5354 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5355 fi
698dcdb6 5356
10f2d63a 5357else
698dcdb6 5358
10f2d63a
VZ
5359 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5360 if test "x$LINE" != x ; then
5361 eval "DEFAULT_$LINE"
5362 else
5363 no_cache=1
5364 fi
5365
5366 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5367
5368fi
10f2d63a
VZ
5369
5370
5371 eval "$ac_cv_use_prologio"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5377 echo "$ac_t""yes" 1>&6
10f2d63a 5378 else
698dcdb6 5379 echo "$ac_t""no" 1>&6
10f2d63a 5380 fi
698dcdb6 5381
10f2d63a 5382
698dcdb6 5383 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
f79bd02d 5384echo "configure:5385: checking for --enable-resources" >&5
10f2d63a
VZ
5385 no_cache=0
5386 # Check whether --enable-resources or --disable-resources was given.
5387if test "${enable_resources+set}" = set; then
5388 enableval="$enable_resources"
698dcdb6 5389
10f2d63a
VZ
5390 if test "$enableval" = yes; then
5391 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5392 else
5393 ac_cv_use_resources='wxUSE_RESOURCES=no'
5394 fi
698dcdb6 5395
10f2d63a 5396else
698dcdb6 5397
10f2d63a
VZ
5398 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5406
5407fi
10f2d63a
VZ
5408
5409
5410 eval "$ac_cv_use_resources"
5411 if test "$no_cache" != 1; then
5412 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5413 fi
5414
5415 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5416 echo "$ac_t""yes" 1>&6
10f2d63a 5417 else
698dcdb6 5418 echo "$ac_t""no" 1>&6
10f2d63a 5419 fi
698dcdb6 5420
10f2d63a 5421
698dcdb6
VZ
5422
5423 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
f79bd02d 5424echo "configure:5425: checking for --enable-xresources" >&5
10f2d63a
VZ
5425 no_cache=0
5426 # Check whether --enable-xresources or --disable-xresources was given.
5427if test "${enable_xresources+set}" = set; then
5428 enableval="$enable_xresources"
698dcdb6 5429
10f2d63a
VZ
5430 if test "$enableval" = yes; then
5431 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5432 else
5433 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5434 fi
698dcdb6 5435
10f2d63a 5436else
698dcdb6 5437
10f2d63a
VZ
5438 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5446
5447fi
10f2d63a
VZ
5448
5449
5450 eval "$ac_cv_use_xresources"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5456 echo "$ac_t""yes" 1>&6
10f2d63a 5457 else
698dcdb6 5458 echo "$ac_t""no" 1>&6
10f2d63a 5459 fi
698dcdb6
VZ
5460
5461
10f2d63a 5462
698dcdb6
VZ
5463
5464 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
f79bd02d 5465echo "configure:5466: checking for --enable-clipboard" >&5
10f2d63a
VZ
5466 no_cache=0
5467 # Check whether --enable-clipboard or --disable-clipboard was given.
5468if test "${enable_clipboard+set}" = set; then
5469 enableval="$enable_clipboard"
698dcdb6 5470
10f2d63a
VZ
5471 if test "$enableval" = yes; then
5472 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5473 else
5474 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5475 fi
698dcdb6 5476
10f2d63a 5477else
698dcdb6 5478
10f2d63a
VZ
5479 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5480 if test "x$LINE" != x ; then
5481 eval "DEFAULT_$LINE"
5482 else
5483 no_cache=1
5484 fi
5485
5486 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5487
5488fi
10f2d63a
VZ
5489
5490
5491 eval "$ac_cv_use_clipboard"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5497 echo "$ac_t""yes" 1>&6
10f2d63a 5498 else
698dcdb6 5499 echo "$ac_t""no" 1>&6
10f2d63a 5500 fi
698dcdb6 5501
10f2d63a 5502
698dcdb6 5503 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
f79bd02d 5504echo "configure:5505: checking for --enable-dnd" >&5
10f2d63a
VZ
5505 no_cache=0
5506 # Check whether --enable-dnd or --disable-dnd was given.
5507if test "${enable_dnd+set}" = set; then
5508 enableval="$enable_dnd"
698dcdb6 5509
10f2d63a
VZ
5510 if test "$enableval" = yes; then
5511 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5512 else
5513 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5514 fi
698dcdb6 5515
10f2d63a 5516else
698dcdb6 5517
10f2d63a
VZ
5518 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5526
5527fi
10f2d63a
VZ
5528
5529
5530 eval "$ac_cv_use_dnd"
5531 if test "$no_cache" != 1; then
5532 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5533 fi
5534
5535 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5536 echo "$ac_t""yes" 1>&6
10f2d63a 5537 else
698dcdb6 5538 echo "$ac_t""no" 1>&6
10f2d63a 5539 fi
698dcdb6 5540
10f2d63a 5541
698dcdb6 5542 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f79bd02d 5543echo "configure:5544: checking for --enable-metafile" >&5
b64f0a5f
RL
5544 no_cache=0
5545 # Check whether --enable-metafile or --disable-metafile was given.
5546if test "${enable_metafile+set}" = set; then
5547 enableval="$enable_metafile"
698dcdb6 5548
b64f0a5f
RL
5549 if test "$enableval" = yes; then
5550 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5551 else
5552 ac_cv_use_metafile='wxUSE_METAFILE=no'
5553 fi
698dcdb6 5554
b64f0a5f 5555else
698dcdb6 5556
b64f0a5f
RL
5557 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5565
5566fi
b64f0a5f
RL
5567
5568
5569 eval "$ac_cv_use_metafile"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5575 echo "$ac_t""yes" 1>&6
b64f0a5f 5576 else
698dcdb6 5577 echo "$ac_t""no" 1>&6
b64f0a5f 5578 fi
698dcdb6
VZ
5579
5580
10f2d63a 5581
24176f2c 5582 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
f79bd02d 5583echo "configure:5584: checking for --enable-treelayout" >&5
10f2d63a 5584 no_cache=0
24176f2c
GD
5585 # Check whether --enable-treelayout or --disable-treelayout was given.
5586if test "${enable_treelayout+set}" = set; then
5587 enableval="$enable_treelayout"
698dcdb6 5588
10f2d63a 5589 if test "$enableval" = yes; then
24176f2c 5590 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5591 else
24176f2c 5592 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5593 fi
698dcdb6 5594
10f2d63a 5595else
698dcdb6 5596
24176f2c 5597 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 else
5601 no_cache=1
5602 fi
5603
24176f2c 5604 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5605
5606fi
10f2d63a
VZ
5607
5608
24176f2c 5609 eval "$ac_cv_use_treelayout"
10f2d63a 5610 if test "$no_cache" != 1; then
24176f2c 5611 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5612 fi
5613
24176f2c 5614 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5615 echo "$ac_t""yes" 1>&6
10f2d63a 5616 else
698dcdb6 5617 echo "$ac_t""no" 1>&6
10f2d63a 5618 fi
698dcdb6 5619
10f2d63a 5620
698dcdb6
VZ
5621
5622
5623 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
f79bd02d 5624echo "configure:5625: checking for --enable-controls" >&5
10f2d63a
VZ
5625 no_cache=0
5626 # Check whether --enable-controls or --disable-controls was given.
5627if test "${enable_controls+set}" = set; then
5628 enableval="$enable_controls"
698dcdb6 5629
10f2d63a
VZ
5630 if test "$enableval" = yes; then
5631 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5632 else
5633 ac_cv_use_controls='wxUSE_CONTROLS=no'
5634 fi
698dcdb6 5635
10f2d63a 5636else
698dcdb6 5637
10f2d63a
VZ
5638 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5646
5647fi
10f2d63a
VZ
5648
5649
5650 eval "$ac_cv_use_controls"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5656 echo "$ac_t""yes" 1>&6
10f2d63a 5657 else
698dcdb6 5658 echo "$ac_t""no" 1>&6
10f2d63a 5659 fi
698dcdb6 5660
10f2d63a
VZ
5661
5662if test "$wxUSE_CONTROLS" = "yes"; then
5663 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5664 DEFAULT_wxUSE_BMPBUTTON=yes
5665 DEFAULT_wxUSE_BUTTON=yes
5666 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5667 DEFAULT_wxUSE_CARET=yes
5668 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5669 DEFAULT_wxUSE_CHECKBOX=yes
5670 DEFAULT_wxUSE_CHECKLISTBOX=yes
5671 DEFAULT_wxUSE_CHOICE=yes
5672 DEFAULT_wxUSE_GAUGE=yes
5673 DEFAULT_wxUSE_GRID=yes
cc977e5f 5674 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5675 DEFAULT_wxUSE_IMAGLIST=yes
5676 DEFAULT_wxUSE_LISTBOX=yes
5677 DEFAULT_wxUSE_LISTCTRL=yes
5678 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5679 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5680 DEFAULT_wxUSE_RADIOBOX=yes
5681 DEFAULT_wxUSE_RADIOBTN=yes
5682 DEFAULT_wxUSE_SASH=yes
5683 DEFAULT_wxUSE_SCROLLBAR=yes
5684 DEFAULT_wxUSE_SLIDER=yes
5685 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5686 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5687 DEFAULT_wxUSE_SPLITTER=yes
5688 DEFAULT_wxUSE_STATBMP=yes
5689 DEFAULT_wxUSE_STATBOX=yes
5690 DEFAULT_wxUSE_STATLINE=yes
5691 DEFAULT_wxUSE_STATUSBAR=yes
5692 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5693 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5694 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5695 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5696 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5697 DEFAULT_wxUSE_TOOLTIPS=yes
5698 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5699 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5700 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5701elif test "$wxUSE_CONTROLS" = "no"; then
5702 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5703 DEFAULT_wxUSE_BMPBUTTON=no
5704 DEFAULT_wxUSE_BUTTON=no
5705 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5706 DEFAULT_wxUSE_CARET=no
5707 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5708 DEFAULT_wxUSE_CHECKBOX=no
5709 DEFAULT_wxUSE_CHECKLISTBOX=no
5710 DEFAULT_wxUSE_CHOICE=no
5711 DEFAULT_wxUSE_GAUGE=no
5712 DEFAULT_wxUSE_GRID=no
5713 DEFAULT_wxUSE_NEW_GRID=no
5714 DEFAULT_wxUSE_IMAGLIST=no
5715 DEFAULT_wxUSE_LISTBOX=no
5716 DEFAULT_wxUSE_LISTCTRL=no
5717 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5718 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5719 DEFAULT_wxUSE_RADIOBOX=no
5720 DEFAULT_wxUSE_RADIOBTN=no
5721 DEFAULT_wxUSE_SASH=no
5722 DEFAULT_wxUSE_SCROLLBAR=no
5723 DEFAULT_wxUSE_SLIDER=no
5724 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5725 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5726 DEFAULT_wxUSE_SPLITTER=no
5727 DEFAULT_wxUSE_STATBMP=no
5728 DEFAULT_wxUSE_STATBOX=no
5729 DEFAULT_wxUSE_STATLINE=no
5730 DEFAULT_wxUSE_STATUSBAR=no
5731 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5732 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5733 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5734 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5735 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5736 DEFAULT_wxUSE_TOOLTIPS=no
5737 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5738 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5739 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5740fi
5741
698dcdb6
VZ
5742
5743 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
f79bd02d 5744echo "configure:5745: checking for --enable-accel" >&5
10f2d63a
VZ
5745 no_cache=0
5746 # Check whether --enable-accel or --disable-accel was given.
5747if test "${enable_accel+set}" = set; then
5748 enableval="$enable_accel"
698dcdb6 5749
10f2d63a
VZ
5750 if test "$enableval" = yes; then
5751 ac_cv_use_accel='wxUSE_ACCEL=yes'
5752 else
5753 ac_cv_use_accel='wxUSE_ACCEL=no'
5754 fi
698dcdb6 5755
10f2d63a 5756else
698dcdb6 5757
10f2d63a
VZ
5758 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
5765 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5766
5767fi
10f2d63a
VZ
5768
5769
5770 eval "$ac_cv_use_accel"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5776 echo "$ac_t""yes" 1>&6
10f2d63a 5777 else
698dcdb6 5778 echo "$ac_t""no" 1>&6
10f2d63a 5779 fi
698dcdb6 5780
10f2d63a 5781
1e6feb95 5782 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
f79bd02d 5783echo "configure:5784: checking for --enable-button" >&5
10f2d63a 5784 no_cache=0
1e6feb95
VZ
5785 # Check whether --enable-button or --disable-button was given.
5786if test "${enable_button+set}" = set; then
5787 enableval="$enable_button"
698dcdb6 5788
10f2d63a 5789 if test "$enableval" = yes; then
1e6feb95 5790 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5791 else
1e6feb95 5792 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5793 fi
698dcdb6 5794
10f2d63a 5795else
698dcdb6 5796
1e6feb95 5797 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
1e6feb95 5804 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5805
5806fi
10f2d63a
VZ
5807
5808
1e6feb95 5809 eval "$ac_cv_use_button"
10f2d63a 5810 if test "$no_cache" != 1; then
1e6feb95 5811 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5812 fi
5813
1e6feb95 5814 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5815 echo "$ac_t""yes" 1>&6
10f2d63a 5816 else
698dcdb6 5817 echo "$ac_t""no" 1>&6
10f2d63a 5818 fi
698dcdb6 5819
10f2d63a 5820
698dcdb6 5821 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
f79bd02d 5822echo "configure:5823: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5823 no_cache=0
5824 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5825if test "${enable_bmpbutton+set}" = set; then
5826 enableval="$enable_bmpbutton"
698dcdb6 5827
10f2d63a
VZ
5828 if test "$enableval" = yes; then
5829 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5830 else
5831 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5832 fi
698dcdb6 5833
10f2d63a 5834else
698dcdb6 5835
10f2d63a
VZ
5836 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5844
5845fi
10f2d63a
VZ
5846
5847
5848 eval "$ac_cv_use_bmpbutton"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5854 echo "$ac_t""yes" 1>&6
10f2d63a 5855 else
698dcdb6 5856 echo "$ac_t""no" 1>&6
10f2d63a 5857 fi
698dcdb6 5858
10f2d63a 5859
1e6feb95 5860 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
f79bd02d 5861echo "configure:5862: checking for --enable-calendar" >&5
1e6feb95
VZ
5862 no_cache=0
5863 # Check whether --enable-calendar or --disable-calendar was given.
5864if test "${enable_calendar+set}" = set; then
5865 enableval="$enable_calendar"
5866
5867 if test "$enableval" = yes; then
5868 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5869 else
5870 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5871 fi
5872
5873else
5874
5875 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5876 if test "x$LINE" != x ; then
5877 eval "DEFAULT_$LINE"
5878 else
5879 no_cache=1
5880 fi
5881
5882 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5883
5884fi
5885
5886
5887 eval "$ac_cv_use_calendar"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_CALCTRL" = yes; then
5893 echo "$ac_t""yes" 1>&6
5894 else
5895 echo "$ac_t""no" 1>&6
5896 fi
5897
5898
5899 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
f79bd02d 5900echo "configure:5901: checking for --enable-caret" >&5
1e6feb95
VZ
5901 no_cache=0
5902 # Check whether --enable-caret or --disable-caret was given.
5903if test "${enable_caret+set}" = set; then
5904 enableval="$enable_caret"
5905
5906 if test "$enableval" = yes; then
5907 ac_cv_use_caret='wxUSE_CARET=yes'
5908 else
5909 ac_cv_use_caret='wxUSE_CARET=no'
5910 fi
5911
5912else
5913
5914 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5915 if test "x$LINE" != x ; then
5916 eval "DEFAULT_$LINE"
5917 else
5918 no_cache=1
5919 fi
5920
5921 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5922
5923fi
5924
5925
5926 eval "$ac_cv_use_caret"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_CARET" = yes; then
5932 echo "$ac_t""yes" 1>&6
5933 else
5934 echo "$ac_t""no" 1>&6
5935 fi
5936
5937
698dcdb6 5938 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
f79bd02d 5939echo "configure:5940: checking for --enable-checkbox" >&5
10f2d63a
VZ
5940 no_cache=0
5941 # Check whether --enable-checkbox or --disable-checkbox was given.
5942if test "${enable_checkbox+set}" = set; then
5943 enableval="$enable_checkbox"
698dcdb6 5944
10f2d63a
VZ
5945 if test "$enableval" = yes; then
5946 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5947 else
5948 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5949 fi
698dcdb6 5950
10f2d63a 5951else
698dcdb6 5952
10f2d63a
VZ
5953 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5961
5962fi
10f2d63a
VZ
5963
5964
5965 eval "$ac_cv_use_checkbox"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5971 echo "$ac_t""yes" 1>&6
10f2d63a 5972 else
698dcdb6 5973 echo "$ac_t""no" 1>&6
10f2d63a 5974 fi
698dcdb6 5975
10f2d63a 5976
698dcdb6 5977 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
f79bd02d 5978echo "configure:5979: checking for --enable-checklst" >&5
10f2d63a
VZ
5979 no_cache=0
5980 # Check whether --enable-checklst or --disable-checklst was given.
5981if test "${enable_checklst+set}" = set; then
5982 enableval="$enable_checklst"
698dcdb6 5983
10f2d63a
VZ
5984 if test "$enableval" = yes; then
5985 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5986 else
5987 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5988 fi
698dcdb6 5989
10f2d63a 5990else
698dcdb6 5991
10f2d63a
VZ
5992 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5993 if test "x$LINE" != x ; then
5994 eval "DEFAULT_$LINE"
5995 else
5996 no_cache=1
5997 fi
5998
5999 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
6000
6001fi
10f2d63a
VZ
6002
6003
6004 eval "$ac_cv_use_checklst"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 6010 echo "$ac_t""yes" 1>&6
10f2d63a 6011 else
698dcdb6 6012 echo "$ac_t""no" 1>&6
10f2d63a 6013 fi
698dcdb6 6014
10f2d63a 6015
698dcdb6 6016 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
f79bd02d 6017echo "configure:6018: checking for --enable-choice" >&5
10f2d63a
VZ
6018 no_cache=0
6019 # Check whether --enable-choice or --disable-choice was given.
6020if test "${enable_choice+set}" = set; then
6021 enableval="$enable_choice"
698dcdb6 6022
10f2d63a
VZ
6023 if test "$enableval" = yes; then
6024 ac_cv_use_choice='wxUSE_CHOICE=yes'
6025 else
6026 ac_cv_use_choice='wxUSE_CHOICE=no'
6027 fi
698dcdb6 6028
10f2d63a 6029else
698dcdb6 6030
10f2d63a
VZ
6031 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6032 if test "x$LINE" != x ; then
6033 eval "DEFAULT_$LINE"
6034 else
6035 no_cache=1
6036 fi
6037
6038 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6039
6040fi
10f2d63a
VZ
6041
6042
6043 eval "$ac_cv_use_choice"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6049 echo "$ac_t""yes" 1>&6
10f2d63a 6050 else
698dcdb6 6051 echo "$ac_t""no" 1>&6
10f2d63a 6052 fi
698dcdb6 6053
10f2d63a 6054
698dcdb6 6055 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
f79bd02d 6056echo "configure:6057: checking for --enable-combobox" >&5
10f2d63a
VZ
6057 no_cache=0
6058 # Check whether --enable-combobox or --disable-combobox was given.
6059if test "${enable_combobox+set}" = set; then
6060 enableval="$enable_combobox"
698dcdb6 6061
10f2d63a
VZ
6062 if test "$enableval" = yes; then
6063 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6064 else
6065 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6066 fi
698dcdb6 6067
10f2d63a 6068else
698dcdb6 6069
10f2d63a
VZ
6070 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6078
6079fi
10f2d63a
VZ
6080
6081
6082 eval "$ac_cv_use_combobox"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6088 echo "$ac_t""yes" 1>&6
10f2d63a 6089 else
698dcdb6 6090 echo "$ac_t""no" 1>&6
10f2d63a 6091 fi
698dcdb6 6092
10f2d63a 6093
698dcdb6 6094 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
f79bd02d 6095echo "configure:6096: checking for --enable-gauge" >&5
10f2d63a
VZ
6096 no_cache=0
6097 # Check whether --enable-gauge or --disable-gauge was given.
6098if test "${enable_gauge+set}" = set; then
6099 enableval="$enable_gauge"
698dcdb6 6100
10f2d63a
VZ
6101 if test "$enableval" = yes; then
6102 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6103 else
6104 ac_cv_use_gauge='wxUSE_GAUGE=no'
6105 fi
698dcdb6 6106
10f2d63a 6107else
698dcdb6 6108
10f2d63a
VZ
6109 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6117
6118fi
10f2d63a
VZ
6119
6120
6121 eval "$ac_cv_use_gauge"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6127 echo "$ac_t""yes" 1>&6
10f2d63a 6128 else
698dcdb6 6129 echo "$ac_t""no" 1>&6
10f2d63a 6130 fi
698dcdb6 6131
10f2d63a 6132
698dcdb6 6133 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
f79bd02d 6134echo "configure:6135: checking for --enable-grid" >&5
10f2d63a
VZ
6135 no_cache=0
6136 # Check whether --enable-grid or --disable-grid was given.
6137if test "${enable_grid+set}" = set; then
6138 enableval="$enable_grid"
698dcdb6 6139
10f2d63a
VZ
6140 if test "$enableval" = yes; then
6141 ac_cv_use_grid='wxUSE_GRID=yes'
6142 else
6143 ac_cv_use_grid='wxUSE_GRID=no'
6144 fi
698dcdb6 6145
10f2d63a 6146else
698dcdb6 6147
10f2d63a
VZ
6148 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6156
6157fi
10f2d63a
VZ
6158
6159
6160 eval "$ac_cv_use_grid"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_GRID" = yes; then
698dcdb6 6166 echo "$ac_t""yes" 1>&6
10f2d63a 6167 else
698dcdb6 6168 echo "$ac_t""no" 1>&6
10f2d63a 6169 fi
698dcdb6 6170
10f2d63a 6171
698dcdb6 6172 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
f79bd02d 6173echo "configure:6174: checking for --enable-newgrid" >&5
10f2d63a
VZ
6174 no_cache=0
6175 # Check whether --enable-newgrid or --disable-newgrid was given.
6176if test "${enable_newgrid+set}" = set; then
6177 enableval="$enable_newgrid"
698dcdb6 6178
10f2d63a
VZ
6179 if test "$enableval" = yes; then
6180 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6181 else
6182 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6183 fi
698dcdb6 6184
10f2d63a 6185else
698dcdb6 6186
10f2d63a
VZ
6187 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6195
6196fi
10f2d63a
VZ
6197
6198
6199 eval "$ac_cv_use_newgrid"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6205 echo "$ac_t""yes" 1>&6
10f2d63a 6206 else
698dcdb6 6207 echo "$ac_t""no" 1>&6
10f2d63a 6208 fi
698dcdb6 6209
10f2d63a 6210
698dcdb6 6211 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
f79bd02d 6212echo "configure:6213: checking for --enable-imaglist" >&5
10f2d63a
VZ
6213 no_cache=0
6214 # Check whether --enable-imaglist or --disable-imaglist was given.
6215if test "${enable_imaglist+set}" = set; then
6216 enableval="$enable_imaglist"
698dcdb6 6217
10f2d63a
VZ
6218 if test "$enableval" = yes; then
6219 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6220 else
6221 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6222 fi
698dcdb6 6223
10f2d63a 6224else
698dcdb6 6225
10f2d63a
VZ
6226 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6234
6235fi
10f2d63a
VZ
6236
6237
6238 eval "$ac_cv_use_imaglist"
6239 if test "$no_cache" != 1; then
6240 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6241 fi
6242
6243 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6244 echo "$ac_t""yes" 1>&6
10f2d63a 6245 else
698dcdb6 6246 echo "$ac_t""no" 1>&6
10f2d63a 6247 fi
698dcdb6 6248
10f2d63a 6249
698dcdb6 6250 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
f79bd02d 6251echo "configure:6252: checking for --enable-listbox" >&5
10f2d63a
VZ
6252 no_cache=0
6253 # Check whether --enable-listbox or --disable-listbox was given.
6254if test "${enable_listbox+set}" = set; then
6255 enableval="$enable_listbox"
698dcdb6 6256
10f2d63a
VZ
6257 if test "$enableval" = yes; then
6258 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6259 else
6260 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6261 fi
698dcdb6 6262
10f2d63a 6263else
698dcdb6 6264
10f2d63a
VZ
6265 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6273
6274fi
10f2d63a
VZ
6275
6276
6277 eval "$ac_cv_use_listbox"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6283 echo "$ac_t""yes" 1>&6
10f2d63a 6284 else
698dcdb6 6285 echo "$ac_t""no" 1>&6
10f2d63a 6286 fi
698dcdb6 6287
10f2d63a 6288
698dcdb6 6289 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
f79bd02d 6290echo "configure:6291: checking for --enable-listctrl" >&5
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-listctrl or --disable-listctrl was given.
6293if test "${enable_listctrl+set}" = set; then
6294 enableval="$enable_listctrl"
698dcdb6 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6298 else
6299 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6300 fi
698dcdb6 6301
10f2d63a 6302else
698dcdb6 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6312
6313fi
10f2d63a
VZ
6314
6315
6316 eval "$ac_cv_use_listctrl"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6322 echo "$ac_t""yes" 1>&6
10f2d63a 6323 else
698dcdb6 6324 echo "$ac_t""no" 1>&6
10f2d63a 6325 fi
698dcdb6 6326
10f2d63a 6327
698dcdb6 6328 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
f79bd02d 6329echo "configure:6330: checking for --enable-notebook" >&5
10f2d63a
VZ
6330 no_cache=0
6331 # Check whether --enable-notebook or --disable-notebook was given.
6332if test "${enable_notebook+set}" = set; then
6333 enableval="$enable_notebook"
698dcdb6 6334
10f2d63a
VZ
6335 if test "$enableval" = yes; then
6336 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6337 else
6338 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6339 fi
698dcdb6 6340
10f2d63a 6341else
698dcdb6 6342
10f2d63a
VZ
6343 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6344 if test "x$LINE" != x ; then
6345 eval "DEFAULT_$LINE"
6346 else
6347 no_cache=1
6348 fi
6349
6350 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6351
6352fi
10f2d63a
VZ
6353
6354
6355 eval "$ac_cv_use_notebook"
6356 if test "$no_cache" != 1; then
6357 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6358 fi
6359
6360 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6361 echo "$ac_t""yes" 1>&6
10f2d63a 6362 else
698dcdb6 6363 echo "$ac_t""no" 1>&6
10f2d63a 6364 fi
698dcdb6 6365
10f2d63a 6366
24176f2c 6367 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
f79bd02d 6368echo "configure:6369: checking for --enable-propsheet" >&5
24176f2c
GD
6369 no_cache=0
6370 # Check whether --enable-propsheet or --disable-propsheet was given.
6371if test "${enable_propsheet+set}" = set; then
6372 enableval="$enable_propsheet"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6376 else
6377 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6390
6391fi
6392
6393
6394 eval "$ac_cv_use_propsheet"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_PROPSHEET" = yes; then
6400 echo "$ac_t""yes" 1>&6
6401 else
6402 echo "$ac_t""no" 1>&6
6403 fi
6404
6405
698dcdb6 6406 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
f79bd02d 6407echo "configure:6408: checking for --enable-radiobox" >&5
10f2d63a
VZ
6408 no_cache=0
6409 # Check whether --enable-radiobox or --disable-radiobox was given.
6410if test "${enable_radiobox+set}" = set; then
6411 enableval="$enable_radiobox"
698dcdb6 6412
10f2d63a
VZ
6413 if test "$enableval" = yes; then
6414 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6415 else
6416 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6417 fi
698dcdb6 6418
10f2d63a 6419else
698dcdb6 6420
10f2d63a
VZ
6421 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6429
6430fi
10f2d63a
VZ
6431
6432
6433 eval "$ac_cv_use_radiobox"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6439 echo "$ac_t""yes" 1>&6
10f2d63a 6440 else
698dcdb6 6441 echo "$ac_t""no" 1>&6
10f2d63a 6442 fi
698dcdb6 6443
10f2d63a 6444
698dcdb6 6445 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
f79bd02d 6446echo "configure:6447: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6447 no_cache=0
6448 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6449if test "${enable_radiobtn+set}" = set; then
6450 enableval="$enable_radiobtn"
698dcdb6 6451
10f2d63a
VZ
6452 if test "$enableval" = yes; then
6453 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6454 else
6455 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6456 fi
698dcdb6 6457
10f2d63a 6458else
698dcdb6 6459
10f2d63a
VZ
6460 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
6467 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6468
6469fi
10f2d63a
VZ
6470
6471
6472 eval "$ac_cv_use_radiobtn"
6473 if test "$no_cache" != 1; then
6474 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6475 fi
6476
6477 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6478 echo "$ac_t""yes" 1>&6
10f2d63a 6479 else
698dcdb6 6480 echo "$ac_t""no" 1>&6
10f2d63a 6481 fi
698dcdb6 6482
10f2d63a 6483
698dcdb6 6484 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
f79bd02d 6485echo "configure:6486: checking for --enable-sash" >&5
10f2d63a
VZ
6486 no_cache=0
6487 # Check whether --enable-sash or --disable-sash was given.
6488if test "${enable_sash+set}" = set; then
6489 enableval="$enable_sash"
698dcdb6 6490
10f2d63a
VZ
6491 if test "$enableval" = yes; then
6492 ac_cv_use_sash='wxUSE_SASH=yes'
6493 else
6494 ac_cv_use_sash='wxUSE_SASH=no'
6495 fi
698dcdb6 6496
10f2d63a 6497else
698dcdb6 6498
10f2d63a
VZ
6499 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6507
6508fi
10f2d63a
VZ
6509
6510
6511 eval "$ac_cv_use_sash"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_SASH" = yes; then
698dcdb6 6517 echo "$ac_t""yes" 1>&6
10f2d63a 6518 else
698dcdb6 6519 echo "$ac_t""no" 1>&6
10f2d63a 6520 fi
698dcdb6 6521
10f2d63a 6522
698dcdb6 6523 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
f79bd02d 6524echo "configure:6525: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6525 no_cache=0
6526 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6527if test "${enable_scrollbar+set}" = set; then
6528 enableval="$enable_scrollbar"
698dcdb6 6529
10f2d63a
VZ
6530 if test "$enableval" = yes; then
6531 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6532 else
6533 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6534 fi
698dcdb6 6535
10f2d63a 6536else
698dcdb6 6537
10f2d63a
VZ
6538 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6546
6547fi
10f2d63a
VZ
6548
6549
6550 eval "$ac_cv_use_scrollbar"
6551 if test "$no_cache" != 1; then
6552 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6553 fi
6554
6555 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6556 echo "$ac_t""yes" 1>&6
10f2d63a 6557 else
698dcdb6 6558 echo "$ac_t""no" 1>&6
10f2d63a 6559 fi
698dcdb6 6560
10f2d63a 6561
698dcdb6 6562 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
f79bd02d 6563echo "configure:6564: checking for --enable-slider" >&5
10f2d63a
VZ
6564 no_cache=0
6565 # Check whether --enable-slider or --disable-slider was given.
6566if test "${enable_slider+set}" = set; then
6567 enableval="$enable_slider"
698dcdb6 6568
10f2d63a
VZ
6569 if test "$enableval" = yes; then
6570 ac_cv_use_slider='wxUSE_SLIDER=yes'
6571 else
6572 ac_cv_use_slider='wxUSE_SLIDER=no'
6573 fi
698dcdb6 6574
10f2d63a 6575else
698dcdb6 6576
10f2d63a
VZ
6577 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6578 if test "x$LINE" != x ; then
6579 eval "DEFAULT_$LINE"
6580 else
6581 no_cache=1
6582 fi
6583
6584 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6585
6586fi
10f2d63a
VZ
6587
6588
6589 eval "$ac_cv_use_slider"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6595 echo "$ac_t""yes" 1>&6
10f2d63a 6596 else
698dcdb6 6597 echo "$ac_t""no" 1>&6
10f2d63a 6598 fi
698dcdb6 6599
10f2d63a 6600
698dcdb6 6601 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
f79bd02d 6602echo "configure:6603: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6603 no_cache=0
6604 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6605if test "${enable_spinbtn+set}" = set; then
6606 enableval="$enable_spinbtn"
698dcdb6 6607
10f2d63a
VZ
6608 if test "$enableval" = yes; then
6609 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6610 else
6611 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6612 fi
698dcdb6 6613
10f2d63a 6614else
698dcdb6 6615
10f2d63a
VZ
6616 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6617 if test "x$LINE" != x ; then
6618 eval "DEFAULT_$LINE"
6619 else
6620 no_cache=1
6621 fi
6622
6623 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6624
6625fi
10f2d63a
VZ
6626
6627
6628 eval "$ac_cv_use_spinbtn"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6634 echo "$ac_t""yes" 1>&6
10f2d63a 6635 else
698dcdb6 6636 echo "$ac_t""no" 1>&6
10f2d63a 6637 fi
698dcdb6 6638
10f2d63a 6639
698dcdb6 6640 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
f79bd02d 6641echo "configure:6642: checking for --enable-spinctrl" >&5
56cfaa52
RR
6642 no_cache=0
6643 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6644if test "${enable_spinctrl+set}" = set; then
6645 enableval="$enable_spinctrl"
698dcdb6 6646
56cfaa52
RR
6647 if test "$enableval" = yes; then
6648 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6649 else
6650 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6651 fi
698dcdb6 6652
56cfaa52 6653else
698dcdb6 6654
56cfaa52
RR
6655 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6663
6664fi
56cfaa52
RR
6665
6666
6667 eval "$ac_cv_use_spinctrl"
6668 if test "$no_cache" != 1; then
6669 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6670 fi
6671
6672 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6673 echo "$ac_t""yes" 1>&6
56cfaa52 6674 else
698dcdb6 6675 echo "$ac_t""no" 1>&6
56cfaa52 6676 fi
698dcdb6 6677
56cfaa52 6678
698dcdb6 6679 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
f79bd02d 6680echo "configure:6681: checking for --enable-splitter" >&5
10f2d63a
VZ
6681 no_cache=0
6682 # Check whether --enable-splitter or --disable-splitter was given.
6683if test "${enable_splitter+set}" = set; then
6684 enableval="$enable_splitter"
698dcdb6 6685
10f2d63a
VZ
6686 if test "$enableval" = yes; then
6687 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6688 else
6689 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6690 fi
698dcdb6 6691
10f2d63a 6692else
698dcdb6 6693
10f2d63a
VZ
6694 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6702
6703fi
10f2d63a
VZ
6704
6705
6706 eval "$ac_cv_use_splitter"
6707 if test "$no_cache" != 1; then
6708 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6709 fi
6710
6711 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6712 echo "$ac_t""yes" 1>&6
10f2d63a 6713 else
698dcdb6 6714 echo "$ac_t""no" 1>&6
10f2d63a 6715 fi
698dcdb6 6716
10f2d63a 6717
698dcdb6 6718 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
f79bd02d 6719echo "configure:6720: checking for --enable-statbmp" >&5
10f2d63a
VZ
6720 no_cache=0
6721 # Check whether --enable-statbmp or --disable-statbmp was given.
6722if test "${enable_statbmp+set}" = set; then
6723 enableval="$enable_statbmp"
698dcdb6 6724
10f2d63a
VZ
6725 if test "$enableval" = yes; then
6726 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6727 else
6728 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6729 fi
698dcdb6 6730
10f2d63a 6731else
698dcdb6 6732
10f2d63a
VZ
6733 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6741
6742fi
10f2d63a
VZ
6743
6744
6745 eval "$ac_cv_use_statbmp"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6751 echo "$ac_t""yes" 1>&6
10f2d63a 6752 else
698dcdb6 6753 echo "$ac_t""no" 1>&6
10f2d63a 6754 fi
698dcdb6 6755
10f2d63a 6756
698dcdb6 6757 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
f79bd02d 6758echo "configure:6759: checking for --enable-statbox" >&5
10f2d63a
VZ
6759 no_cache=0
6760 # Check whether --enable-statbox or --disable-statbox was given.
6761if test "${enable_statbox+set}" = set; then
6762 enableval="$enable_statbox"
698dcdb6 6763
10f2d63a
VZ
6764 if test "$enableval" = yes; then
6765 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6766 else
6767 ac_cv_use_statbox='wxUSE_STATBOX=no'
6768 fi
698dcdb6 6769
10f2d63a 6770else
698dcdb6 6771
10f2d63a
VZ
6772 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6780
6781fi
10f2d63a
VZ
6782
6783
6784 eval "$ac_cv_use_statbox"
6785 if test "$no_cache" != 1; then
6786 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6787 fi
6788
6789 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6790 echo "$ac_t""yes" 1>&6
10f2d63a 6791 else
698dcdb6 6792 echo "$ac_t""no" 1>&6
10f2d63a 6793 fi
698dcdb6 6794
10f2d63a 6795
698dcdb6 6796 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
f79bd02d 6797echo "configure:6798: checking for --enable-statline" >&5
10f2d63a
VZ
6798 no_cache=0
6799 # Check whether --enable-statline or --disable-statline was given.
6800if test "${enable_statline+set}" = set; then
6801 enableval="$enable_statline"
698dcdb6 6802
10f2d63a
VZ
6803 if test "$enableval" = yes; then
6804 ac_cv_use_statline='wxUSE_STATLINE=yes'
6805 else
6806 ac_cv_use_statline='wxUSE_STATLINE=no'
6807 fi
698dcdb6 6808
10f2d63a 6809else
698dcdb6 6810
10f2d63a
VZ
6811 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6819
6820fi
10f2d63a
VZ
6821
6822
6823 eval "$ac_cv_use_statline"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6829 echo "$ac_t""yes" 1>&6
10f2d63a 6830 else
698dcdb6 6831 echo "$ac_t""no" 1>&6
10f2d63a 6832 fi
698dcdb6 6833
10f2d63a 6834
1e6feb95 6835 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
f79bd02d 6836echo "configure:6837: checking for --enable-stattext" >&5
1e6feb95
VZ
6837 no_cache=0
6838 # Check whether --enable-stattext or --disable-stattext was given.
6839if test "${enable_stattext+set}" = set; then
6840 enableval="$enable_stattext"
6841
6842 if test "$enableval" = yes; then
6843 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6844 else
6845 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6846 fi
6847
6848else
6849
6850 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6851 if test "x$LINE" != x ; then
6852 eval "DEFAULT_$LINE"
6853 else
6854 no_cache=1
6855 fi
6856
6857 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6858
6859fi
6860
6861
6862 eval "$ac_cv_use_stattext"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_STATTEXT" = yes; then
6868 echo "$ac_t""yes" 1>&6
6869 else
6870 echo "$ac_t""no" 1>&6
6871 fi
6872
6873
698dcdb6 6874 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
f79bd02d 6875echo "configure:6876: checking for --enable-statusbar" >&5
10f2d63a
VZ
6876 no_cache=0
6877 # Check whether --enable-statusbar or --disable-statusbar was given.
6878if test "${enable_statusbar+set}" = set; then
6879 enableval="$enable_statusbar"
698dcdb6 6880
10f2d63a
VZ
6881 if test "$enableval" = yes; then
6882 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6883 else
6884 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6885 fi
698dcdb6 6886
10f2d63a 6887else
698dcdb6 6888
10f2d63a
VZ
6889 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6890 if test "x$LINE" != x ; then
6891 eval "DEFAULT_$LINE"
6892 else
6893 no_cache=1
6894 fi
6895
6896 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6897
6898fi
10f2d63a
VZ
6899
6900
6901 eval "$ac_cv_use_statusbar"
6902 if test "$no_cache" != 1; then
6903 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6904 fi
6905
6906 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6907 echo "$ac_t""yes" 1>&6
10f2d63a 6908 else
698dcdb6 6909 echo "$ac_t""no" 1>&6
10f2d63a 6910 fi
698dcdb6 6911
10f2d63a 6912
698dcdb6 6913 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
f79bd02d 6914echo "configure:6915: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6915 no_cache=0
6916 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6917if test "${enable_tabdialog+set}" = set; then
6918 enableval="$enable_tabdialog"
698dcdb6 6919
10f2d63a
VZ
6920 if test "$enableval" = yes; then
6921 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6922 else
6923 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6924 fi
698dcdb6 6925
10f2d63a 6926else
698dcdb6 6927
10f2d63a
VZ
6928 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6929 if test "x$LINE" != x ; then
6930 eval "DEFAULT_$LINE"
6931 else
6932 no_cache=1
6933 fi
6934
6935 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6936
6937fi
10f2d63a
VZ
6938
6939
6940 eval "$ac_cv_use_tabdialog"
6941 if test "$no_cache" != 1; then
6942 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6943 fi
6944
6945 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6946 echo "$ac_t""yes" 1>&6
10f2d63a 6947 else
698dcdb6 6948 echo "$ac_t""no" 1>&6
10f2d63a 6949 fi
698dcdb6 6950
10f2d63a 6951
1e6feb95 6952 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
f79bd02d 6953echo "configure:6954: checking for --enable-textctrl" >&5
1e6feb95
VZ
6954 no_cache=0
6955 # Check whether --enable-textctrl or --disable-textctrl was given.
6956if test "${enable_textctrl+set}" = set; then
6957 enableval="$enable_textctrl"
6958
6959 if test "$enableval" = yes; then
6960 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6961 else
6962 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6963 fi
6964
6965else
6966
6967 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6968 if test "x$LINE" != x ; then
6969 eval "DEFAULT_$LINE"
6970 else
6971 no_cache=1
6972 fi
6973
6974 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6975
6976fi
6977
6978
6979 eval "$ac_cv_use_textctrl"
6980 if test "$no_cache" != 1; then
6981 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6982 fi
6983
6984 if test "$wxUSE_TEXTCTRL" = yes; then
6985 echo "$ac_t""yes" 1>&6
6986 else
6987 echo "$ac_t""no" 1>&6
6988 fi
6989
6990
698dcdb6 6991 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
f79bd02d 6992echo "configure:6993: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6993 no_cache=0
6994 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6995if test "${enable_togglebtn+set}" = set; then
6996 enableval="$enable_togglebtn"
698dcdb6 6997
1db8dc4a
VZ
6998 if test "$enableval" = yes; then
6999 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7000 else
7001 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7002 fi
698dcdb6 7003
1db8dc4a 7004else
698dcdb6 7005
1db8dc4a
VZ
7006 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7007 if test "x$LINE" != x ; then
7008 eval "DEFAULT_$LINE"
7009 else
7010 no_cache=1
7011 fi
7012
7013 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
7014
7015fi
1db8dc4a
VZ
7016
7017
7018 eval "$ac_cv_use_togglebtn"
7019 if test "$no_cache" != 1; then
7020 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7021 fi
7022
7023 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 7024 echo "$ac_t""yes" 1>&6
1db8dc4a 7025 else
698dcdb6 7026 echo "$ac_t""no" 1>&6
1db8dc4a 7027 fi
698dcdb6 7028
1db8dc4a 7029
698dcdb6 7030 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
f79bd02d 7031echo "configure:7032: checking for --enable-toolbar" >&5
10f2d63a
VZ
7032 no_cache=0
7033 # Check whether --enable-toolbar or --disable-toolbar was given.
7034if test "${enable_toolbar+set}" = set; then
7035 enableval="$enable_toolbar"
698dcdb6 7036
10f2d63a
VZ
7037 if test "$enableval" = yes; then
7038 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7039 else
7040 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7041 fi
698dcdb6 7042
10f2d63a 7043else
698dcdb6 7044
10f2d63a
VZ
7045 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7046 if test "x$LINE" != x ; then
7047 eval "DEFAULT_$LINE"
7048 else
7049 no_cache=1
7050 fi
7051
7052 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7053
7054fi
10f2d63a
VZ
7055
7056
7057 eval "$ac_cv_use_toolbar"
7058 if test "$no_cache" != 1; then
7059 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7060 fi
7061
7062 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7063 echo "$ac_t""yes" 1>&6
10f2d63a 7064 else
698dcdb6 7065 echo "$ac_t""no" 1>&6
10f2d63a 7066 fi
698dcdb6 7067
10f2d63a 7068
698dcdb6 7069 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
f79bd02d 7070echo "configure:7071: checking for --enable-tbarnative" >&5
360d6699
VZ
7071 no_cache=0
7072 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7073if test "${enable_tbarnative+set}" = set; then
7074 enableval="$enable_tbarnative"
698dcdb6 7075
360d6699
VZ
7076 if test "$enableval" = yes; then
7077 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7078 else
7079 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7080 fi
698dcdb6 7081
360d6699 7082else
698dcdb6 7083
360d6699
VZ
7084 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7085 if test "x$LINE" != x ; then
7086 eval "DEFAULT_$LINE"
7087 else
7088 no_cache=1
7089 fi
7090
7091 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7092
7093fi
360d6699
VZ
7094
7095
7096 eval "$ac_cv_use_tbarnative"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7102 echo "$ac_t""yes" 1>&6
360d6699 7103 else
698dcdb6 7104 echo "$ac_t""no" 1>&6
360d6699 7105 fi
698dcdb6 7106
360d6699 7107
698dcdb6 7108 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
f79bd02d 7109echo "configure:7110: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7110 no_cache=0
7111 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7112if test "${enable_tbarsmpl+set}" = set; then
7113 enableval="$enable_tbarsmpl"
698dcdb6 7114
360d6699
VZ
7115 if test "$enableval" = yes; then
7116 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7117 else
7118 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7119 fi
698dcdb6 7120
360d6699 7121else
698dcdb6 7122
360d6699
VZ
7123 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7131
7132fi
360d6699
VZ
7133
7134
7135 eval "$ac_cv_use_tbarsmpl"
7136 if test "$no_cache" != 1; then
7137 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7138 fi
7139
7140 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7141 echo "$ac_t""yes" 1>&6
360d6699 7142 else
698dcdb6 7143 echo "$ac_t""no" 1>&6
360d6699 7144 fi
698dcdb6 7145
360d6699 7146
698dcdb6 7147 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
f79bd02d 7148echo "configure:7149: checking for --enable-treectrl" >&5
10f2d63a
VZ
7149 no_cache=0
7150 # Check whether --enable-treectrl or --disable-treectrl was given.
7151if test "${enable_treectrl+set}" = set; then
7152 enableval="$enable_treectrl"
698dcdb6 7153
10f2d63a
VZ
7154 if test "$enableval" = yes; then
7155 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7156 else
7157 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7158 fi
698dcdb6 7159
10f2d63a 7160else
698dcdb6 7161
10f2d63a
VZ
7162 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7163 if test "x$LINE" != x ; then
7164 eval "DEFAULT_$LINE"
7165 else
7166 no_cache=1
7167 fi
7168
7169 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7170
7171fi
10f2d63a
VZ
7172
7173
1e6feb95
VZ
7174 eval "$ac_cv_use_treectrl"
7175 if test "$no_cache" != 1; then
7176 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7177 fi
7178
7179 if test "$wxUSE_TREECTRL" = yes; then
7180 echo "$ac_t""yes" 1>&6
7181 else
7182 echo "$ac_t""no" 1>&6
7183 fi
7184
7185
9926e4a4 7186 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
f79bd02d 7187echo "configure:7188: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7188 no_cache=0
7189 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7190if test "${enable_tipwindow+set}" = set; then
7191 enableval="$enable_tipwindow"
7192
7193 if test "$enableval" = yes; then
7194 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7195 else
7196 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7197 fi
7198
7199else
7200
7201 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7202 if test "x$LINE" != x ; then
7203 eval "DEFAULT_$LINE"
7204 else
7205 no_cache=1
7206 fi
7207
7208 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7209
7210fi
7211
7212
7213 eval "$ac_cv_use_tipwindow"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_TIPWINDOW" = yes; then
7219 echo "$ac_t""yes" 1>&6
7220 else
7221 echo "$ac_t""no" 1>&6
7222 fi
7223
7224
9f41d601 7225 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
f79bd02d 7226echo "configure:7227: checking for --enable-popupwin" >&5
9f41d601
RR
7227 no_cache=0
7228 # Check whether --enable-popupwin or --disable-popupwin was given.
7229if test "${enable_popupwin+set}" = set; then
7230 enableval="$enable_popupwin"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7234 else
7235 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7248
7249fi
7250
7251
7252 eval "$ac_cv_use_popupwin"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_POPUPWIN" = yes; then
7258 echo "$ac_t""yes" 1>&6
7259 else
7260 echo "$ac_t""no" 1>&6
7261 fi
7262
7263
1e6feb95
VZ
7264
7265
7266 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
f79bd02d 7267echo "configure:7268: checking for --enable-commondlg" >&5
1e6feb95
VZ
7268 no_cache=0
7269 # Check whether --enable-commondlg or --disable-commondlg was given.
7270if test "${enable_commondlg+set}" = set; then
7271 enableval="$enable_commondlg"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7275 else
7276 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7289
7290fi
7291
7292
7293 eval "$ac_cv_use_commondlg"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_COMMONDLGS" = yes; then
7299 echo "$ac_t""yes" 1>&6
7300 else
7301 echo "$ac_t""no" 1>&6
7302 fi
7303
7304
7305 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
f79bd02d 7306echo "configure:7307: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7307 no_cache=0
7308 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7309if test "${enable_choicedlg+set}" = set; then
7310 enableval="$enable_choicedlg"
7311
7312 if test "$enableval" = yes; then
7313 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7314 else
7315 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7316 fi
7317
7318else
7319
7320 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7328
7329fi
7330
7331
7332 eval "$ac_cv_use_choicedlg"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_CHOICEDLG" = yes; then
7338 echo "$ac_t""yes" 1>&6
7339 else
7340 echo "$ac_t""no" 1>&6
7341 fi
7342
7343
7344 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
f79bd02d 7345echo "configure:7346: checking for --enable-coldlg" >&5
1e6feb95
VZ
7346 no_cache=0
7347 # Check whether --enable-coldlg or --disable-coldlg was given.
7348if test "${enable_coldlg+set}" = set; then
7349 enableval="$enable_coldlg"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7353 else
7354 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7355 fi
7356
7357else
7358
7359 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7367
7368fi
7369
7370
7371 eval "$ac_cv_use_coldlg"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_COLOURDLG" = yes; then
7377 echo "$ac_t""yes" 1>&6
7378 else
7379 echo "$ac_t""no" 1>&6
7380 fi
7381
7382
7383 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
f79bd02d 7384echo "configure:7385: checking for --enable-filedlg" >&5
1e6feb95
VZ
7385 no_cache=0
7386 # Check whether --enable-filedlg or --disable-filedlg was given.
7387if test "${enable_filedlg+set}" = set; then
7388 enableval="$enable_filedlg"
7389
7390 if test "$enableval" = yes; then
7391 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7392 else
7393 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7394 fi
7395
7396else
7397
7398 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7399 if test "x$LINE" != x ; then
7400 eval "DEFAULT_$LINE"
7401 else
7402 no_cache=1
7403 fi
7404
7405 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7406
7407fi
7408
7409
7410 eval "$ac_cv_use_filedlg"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_FILEDLG" = yes; then
7416 echo "$ac_t""yes" 1>&6
7417 else
7418 echo "$ac_t""no" 1>&6
7419 fi
7420
7421
69d27ff7 7422 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
f79bd02d 7423echo "configure:7424: checking for --enable-finddlg" >&5
8db37e06 7424 no_cache=0
69d27ff7
MB
7425 # Check whether --enable-finddlg or --disable-finddlg was given.
7426if test "${enable_finddlg+set}" = set; then
7427 enableval="$enable_finddlg"
8db37e06
VZ
7428
7429 if test "$enableval" = yes; then
69d27ff7 7430 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7431 else
69d27ff7 7432 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7433 fi
7434
7435else
7436
7437 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
69d27ff7 7444 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7445
7446fi
7447
7448
69d27ff7 7449 eval "$ac_cv_use_finddlg"
8db37e06 7450 if test "$no_cache" != 1; then
69d27ff7 7451 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7452 fi
7453
7454 if test "$wxUSE_FINDREPLDLG" = yes; then
7455 echo "$ac_t""yes" 1>&6
7456 else
7457 echo "$ac_t""no" 1>&6
7458 fi
7459
7460
1e6feb95 7461 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
f79bd02d 7462echo "configure:7463: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7463 no_cache=0
7464 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7465if test "${enable_fontdlg+set}" = set; then
7466 enableval="$enable_fontdlg"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7470 else
7471 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7484
7485fi
7486
7487
7488 eval "$ac_cv_use_fontdlg"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_FONTDLG" = yes; then
7494 echo "$ac_t""yes" 1>&6
7495 else
7496 echo "$ac_t""no" 1>&6
7497 fi
7498
7499
7500 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
f79bd02d 7501echo "configure:7502: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7502 no_cache=0
7503 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7504if test "${enable_dirdlg+set}" = set; then
7505 enableval="$enable_dirdlg"
7506
7507 if test "$enableval" = yes; then
7508 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7509 else
7510 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7511 fi
7512
7513else
7514
7515 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7516 if test "x$LINE" != x ; then
7517 eval "DEFAULT_$LINE"
7518 else
7519 no_cache=1
7520 fi
7521
7522 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7523
7524fi
7525
7526
7527 eval "$ac_cv_use_dirdlg"
10f2d63a 7528 if test "$no_cache" != 1; then
1e6feb95 7529 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7530 fi
7531
1e6feb95 7532 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7533 echo "$ac_t""yes" 1>&6
10f2d63a 7534 else
698dcdb6 7535 echo "$ac_t""no" 1>&6
10f2d63a 7536 fi
698dcdb6
VZ
7537
7538
1e6feb95 7539 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
f79bd02d 7540echo "configure:7541: checking for --enable-msgdlg" >&5
10f2d63a 7541 no_cache=0
1e6feb95
VZ
7542 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7543if test "${enable_msgdlg+set}" = set; then
7544 enableval="$enable_msgdlg"
698dcdb6 7545
10f2d63a 7546 if test "$enableval" = yes; then
1e6feb95 7547 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7548 else
1e6feb95 7549 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7550 fi
698dcdb6 7551
10f2d63a 7552else
698dcdb6 7553
1e6feb95 7554 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
1e6feb95 7561 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7562
7563fi
10f2d63a
VZ
7564
7565
1e6feb95 7566 eval "$ac_cv_use_msgdlg"
10f2d63a 7567 if test "$no_cache" != 1; then
1e6feb95 7568 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7569 fi
7570
1e6feb95 7571 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7572 echo "$ac_t""yes" 1>&6
10f2d63a 7573 else
698dcdb6 7574 echo "$ac_t""no" 1>&6
10f2d63a 7575 fi
698dcdb6 7576
10f2d63a 7577
1e6feb95 7578 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
f79bd02d 7579echo "configure:7580: checking for --enable-numberdlg" >&5
10f2d63a 7580 no_cache=0
1e6feb95
VZ
7581 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7582if test "${enable_numberdlg+set}" = set; then
7583 enableval="$enable_numberdlg"
698dcdb6 7584
10f2d63a 7585 if test "$enableval" = yes; then
1e6feb95 7586 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7587 else
1e6feb95 7588 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7589 fi
698dcdb6 7590
10f2d63a 7591else
698dcdb6 7592
1e6feb95 7593 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
1e6feb95 7600 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7601
7602fi
10f2d63a
VZ
7603
7604
1e6feb95 7605 eval "$ac_cv_use_numberdlg"
10f2d63a 7606 if test "$no_cache" != 1; then
1e6feb95 7607 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7608 fi
7609
1e6feb95 7610 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7611 echo "$ac_t""yes" 1>&6
10f2d63a 7612 else
698dcdb6 7613 echo "$ac_t""no" 1>&6
10f2d63a 7614 fi
698dcdb6 7615
10f2d63a 7616
cbca9943 7617 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
f79bd02d 7618echo "configure:7619: checking for --enable-splash" >&5
cbca9943
VZ
7619 no_cache=0
7620 # Check whether --enable-splash or --disable-splash was given.
7621if test "${enable_splash+set}" = set; then
7622 enableval="$enable_splash"
7623
7624 if test "$enableval" = yes; then
7625 ac_cv_use_splash='wxUSE_SPLASH=yes'
7626 else
7627 ac_cv_use_splash='wxUSE_SPLASH=no'
7628 fi
7629
7630else
7631
7632 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7633 if test "x$LINE" != x ; then
7634 eval "DEFAULT_$LINE"
7635 else
7636 no_cache=1
7637 fi
7638
7639 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7640
7641fi
7642
7643
7644 eval "$ac_cv_use_splash"
7645 if test "$no_cache" != 1; then
7646 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7647 fi
7648
7649 if test "$wxUSE_SPLASH" = yes; then
7650 echo "$ac_t""yes" 1>&6
7651 else
7652 echo "$ac_t""no" 1>&6
7653 fi
7654
7655
698dcdb6 7656 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
f79bd02d 7657echo "configure:7658: checking for --enable-textdlg" >&5
10f2d63a
VZ
7658 no_cache=0
7659 # Check whether --enable-textdlg or --disable-textdlg was given.
7660if test "${enable_textdlg+set}" = set; then
7661 enableval="$enable_textdlg"
698dcdb6 7662
10f2d63a
VZ
7663 if test "$enableval" = yes; then
7664 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7665 else
7666 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7667 fi
698dcdb6 7668
10f2d63a 7669else
698dcdb6 7670
10f2d63a
VZ
7671 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7672 if test "x$LINE" != x ; then
7673 eval "DEFAULT_$LINE"
7674 else
7675 no_cache=1
7676 fi
7677
7678 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7679
7680fi
10f2d63a
VZ
7681
7682
7683 eval "$ac_cv_use_textdlg"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7689 echo "$ac_t""yes" 1>&6
10f2d63a 7690 else
698dcdb6 7691 echo "$ac_t""no" 1>&6
10f2d63a 7692 fi
698dcdb6 7693
10f2d63a 7694
698dcdb6 7695 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
f79bd02d 7696echo "configure:7697: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7697 no_cache=0
7698 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7699if test "${enable_tipdlg+set}" = set; then
7700 enableval="$enable_tipdlg"
698dcdb6 7701
10f2d63a
VZ
7702 if test "$enableval" = yes; then
7703 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7704 else
7705 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7706 fi
698dcdb6 7707
10f2d63a 7708else
698dcdb6 7709
10f2d63a
VZ
7710 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
7717 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7718
7719fi
10f2d63a
VZ
7720
7721
7722 eval "$ac_cv_use_tipdlg"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7728 echo "$ac_t""yes" 1>&6
10f2d63a 7729 else
698dcdb6 7730 echo "$ac_t""no" 1>&6
10f2d63a 7731 fi
698dcdb6 7732
10f2d63a 7733
698dcdb6 7734 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
f79bd02d 7735echo "configure:7736: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7736 no_cache=0
7737 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7738if test "${enable_progressdlg+set}" = set; then
7739 enableval="$enable_progressdlg"
698dcdb6 7740
10f2d63a
VZ
7741 if test "$enableval" = yes; then
7742 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7743 else
7744 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7745 fi
698dcdb6 7746
10f2d63a 7747else
698dcdb6 7748
10f2d63a
VZ
7749 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7750 if test "x$LINE" != x ; then
7751 eval "DEFAULT_$LINE"
7752 else
7753 no_cache=1
7754 fi
7755
7756 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7757
7758fi
10f2d63a
VZ
7759
7760
7761 eval "$ac_cv_use_progressdlg"
7762 if test "$no_cache" != 1; then
7763 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7764 fi
7765
7766 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7767 echo "$ac_t""yes" 1>&6
10f2d63a 7768 else
698dcdb6 7769 echo "$ac_t""no" 1>&6
10f2d63a 7770 fi
698dcdb6 7771
10f2d63a 7772
b1f5d087 7773 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
f79bd02d 7774echo "configure:7775: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7775 no_cache=0
7776 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7777if test "${enable_wizarddlg+set}" = set; then
7778 enableval="$enable_wizarddlg"
7779
7780 if test "$enableval" = yes; then
7781 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7782 else
7783 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7784 fi
7785
7786else
7787
7788 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7796
7797fi
7798
7799
7800 eval "$ac_cv_use_wizarddlg"
7801 if test "$no_cache" != 1; then
7802 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7803 fi
7804
7805 if test "$wxUSE_WIZARDDLG" = yes; then
7806 echo "$ac_t""yes" 1>&6
7807 else
7808 echo "$ac_t""no" 1>&6
7809 fi
7810
7811
7812
7813
1e6feb95 7814 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
f79bd02d 7815echo "configure:7816: checking for --enable-menus" >&5
1e6feb95
VZ
7816 no_cache=0
7817 # Check whether --enable-menus or --disable-menus was given.
7818if test "${enable_menus+set}" = set; then
7819 enableval="$enable_menus"
7820
7821 if test "$enableval" = yes; then
7822 ac_cv_use_menus='wxUSE_MENUS=yes'
7823 else
7824 ac_cv_use_menus='wxUSE_MENUS=no'
7825 fi
7826
7827else
7828
7829 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7830 if test "x$LINE" != x ; then
7831 eval "DEFAULT_$LINE"
7832 else
7833 no_cache=1
7834 fi
7835
7836 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7837
7838fi
7839
7840
7841 eval "$ac_cv_use_menus"
7842 if test "$no_cache" != 1; then
7843 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7844 fi
7845
7846 if test "$wxUSE_MENUS" = yes; then
7847 echo "$ac_t""yes" 1>&6
7848 else
7849 echo "$ac_t""no" 1>&6
7850 fi
7851
7852
698dcdb6 7853 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
f79bd02d 7854echo "configure:7855: checking for --enable-miniframe" >&5
10f2d63a
VZ
7855 no_cache=0
7856 # Check whether --enable-miniframe or --disable-miniframe was given.
7857if test "${enable_miniframe+set}" = set; then
7858 enableval="$enable_miniframe"
698dcdb6 7859
10f2d63a
VZ
7860 if test "$enableval" = yes; then
7861 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7862 else
7863 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7864 fi
698dcdb6 7865
10f2d63a 7866else
698dcdb6 7867
10f2d63a
VZ
7868 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7876
7877fi
10f2d63a
VZ
7878
7879
7880 eval "$ac_cv_use_miniframe"
7881 if test "$no_cache" != 1; then
7882 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7883 fi
7884
7885 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7886 echo "$ac_t""yes" 1>&6
10f2d63a 7887 else
698dcdb6 7888 echo "$ac_t""no" 1>&6
10f2d63a 7889 fi
698dcdb6 7890
10f2d63a 7891
698dcdb6 7892 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
f79bd02d 7893echo "configure:7894: checking for --enable-tooltips" >&5
10f2d63a
VZ
7894 no_cache=0
7895 # Check whether --enable-tooltips or --disable-tooltips was given.
7896if test "${enable_tooltips+set}" = set; then
7897 enableval="$enable_tooltips"
698dcdb6 7898
10f2d63a
VZ
7899 if test "$enableval" = yes; then
7900 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7901 else
7902 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7903 fi
698dcdb6 7904
10f2d63a 7905else
698dcdb6 7906
10f2d63a
VZ
7907 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7915
7916fi
10f2d63a
VZ
7917
7918
7919 eval "$ac_cv_use_tooltips"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7925 echo "$ac_t""yes" 1>&6
10f2d63a 7926 else
698dcdb6 7927 echo "$ac_t""no" 1>&6
10f2d63a 7928 fi
698dcdb6 7929
10f2d63a 7930
698dcdb6 7931 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
f79bd02d 7932echo "configure:7933: checking for --enable-splines" >&5
10f2d63a
VZ
7933 no_cache=0
7934 # Check whether --enable-splines or --disable-splines was given.
7935if test "${enable_splines+set}" = set; then
7936 enableval="$enable_splines"
698dcdb6 7937
10f2d63a
VZ
7938 if test "$enableval" = yes; then
7939 ac_cv_use_splines='wxUSE_SPLINES=yes'
7940 else
7941 ac_cv_use_splines='wxUSE_SPLINES=no'
7942 fi
698dcdb6 7943
10f2d63a 7944else
698dcdb6 7945
10f2d63a
VZ
7946 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7954
7955fi
10f2d63a
VZ
7956
7957
7958 eval "$ac_cv_use_splines"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7964 echo "$ac_t""yes" 1>&6
10f2d63a 7965 else
698dcdb6 7966 echo "$ac_t""no" 1>&6
10f2d63a 7967 fi
698dcdb6 7968
10f2d63a 7969
698dcdb6 7970 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
f79bd02d 7971echo "configure:7972: checking for --enable-validators" >&5
10f2d63a
VZ
7972 no_cache=0
7973 # Check whether --enable-validators or --disable-validators was given.
7974if test "${enable_validators+set}" = set; then
7975 enableval="$enable_validators"
698dcdb6 7976
10f2d63a
VZ
7977 if test "$enableval" = yes; then
7978 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7979 else
7980 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7981 fi
698dcdb6 7982
10f2d63a 7983else
698dcdb6 7984
10f2d63a
VZ
7985 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7993
7994fi
10f2d63a
VZ
7995
7996
7997 eval "$ac_cv_use_validators"
7998 if test "$no_cache" != 1; then
7999 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8000 fi
8001
8002 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 8003 echo "$ac_t""yes" 1>&6
10f2d63a 8004 else
698dcdb6 8005 echo "$ac_t""no" 1>&6
10f2d63a 8006 fi
698dcdb6 8007
10f2d63a 8008
698dcdb6 8009 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
f79bd02d 8010echo "configure:8011: checking for --enable-busyinfo" >&5
10f2d63a
VZ
8011 no_cache=0
8012 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8013if test "${enable_busyinfo+set}" = set; then
8014 enableval="$enable_busyinfo"
698dcdb6 8015
10f2d63a
VZ
8016 if test "$enableval" = yes; then
8017 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8018 else
8019 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8020 fi
698dcdb6 8021
10f2d63a 8022else
698dcdb6 8023
10f2d63a
VZ
8024 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8025 if test "x$LINE" != x ; then
8026 eval "DEFAULT_$LINE"
8027 else
8028 no_cache=1
8029 fi
8030
8031 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
8032
8033fi
10f2d63a
VZ
8034
8035
8036 eval "$ac_cv_use_busyinfo"
8037 if test "$no_cache" != 1; then
8038 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8039 fi
8040
8041 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8042 echo "$ac_t""yes" 1>&6
10f2d63a 8043 else
698dcdb6 8044 echo "$ac_t""no" 1>&6
10f2d63a 8045 fi
698dcdb6 8046
10f2d63a 8047
698dcdb6 8048 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
f79bd02d 8049echo "configure:8050: checking for --enable-joystick" >&5
f6bcfd97
BP
8050 no_cache=0
8051 # Check whether --enable-joystick or --disable-joystick was given.
8052if test "${enable_joystick+set}" = set; then
8053 enableval="$enable_joystick"
698dcdb6 8054
f6bcfd97
BP
8055 if test "$enableval" = yes; then
8056 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8057 else
8058 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8059 fi
698dcdb6 8060
f6bcfd97 8061else
698dcdb6 8062
f6bcfd97
BP
8063 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8071
8072fi
f6bcfd97
BP
8073
8074
8075 eval "$ac_cv_use_joystick"
8076 if test "$no_cache" != 1; then
8077 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8078 fi
8079
8080 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8081 echo "$ac_t""yes" 1>&6
f6bcfd97 8082 else
698dcdb6 8083 echo "$ac_t""no" 1>&6
f6bcfd97 8084 fi
698dcdb6
VZ
8085
8086
1e6feb95 8087 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f79bd02d 8088echo "configure:8089: checking for --enable-metafile" >&5
1e6feb95
VZ
8089 no_cache=0
8090 # Check whether --enable-metafile or --disable-metafile was given.
8091if test "${enable_metafile+set}" = set; then
8092 enableval="$enable_metafile"
8093
8094 if test "$enableval" = yes; then
8095 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8096 else
8097 ac_cv_use_metafile='wxUSE_METAFILE=no'
8098 fi
8099
8100else
8101
8102 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8110
8111fi
8112
8113
8114 eval "$ac_cv_use_metafile"
8115 if test "$no_cache" != 1; then
8116 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8117 fi
8118
8119 if test "$wxUSE_METAFILE" = yes; then
8120 echo "$ac_t""yes" 1>&6
8121 else
8122 echo "$ac_t""no" 1>&6
8123 fi
8124
8125
24fd6d87 8126 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
f79bd02d 8127echo "configure:8128: checking for --enable-dragimage" >&5
24fd6d87
VZ
8128 no_cache=0
8129 # Check whether --enable-dragimage or --disable-dragimage was given.
8130if test "${enable_dragimage+set}" = set; then
8131 enableval="$enable_dragimage"
8132
8133 if test "$enableval" = yes; then
8134 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8135 else
8136 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8137 fi
8138
8139else
8140
8141 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8149
8150fi
8151
8152
8153 eval "$ac_cv_use_dragimage"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_DRAGIMAGE" = yes; then
8159 echo "$ac_t""yes" 1>&6
8160 else
8161 echo "$ac_t""no" 1>&6
8162 fi
8163
8164
10f2d63a 8165
698dcdb6 8166
edae8572 8167 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
f79bd02d 8168echo "configure:8169: checking for --enable-palette" >&5
edae8572
VZ
8169 no_cache=0
8170 # Check whether --enable-palette or --disable-palette was given.
8171if test "${enable_palette+set}" = set; then
8172 enableval="$enable_palette"
8173
8174 if test "$enableval" = yes; then
8175 ac_cv_use_palette='wxUSE_PALETTE=yes'
8176 else
8177 ac_cv_use_palette='wxUSE_PALETTE=no'
8178 fi
8179
8180else
8181
8182 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8190
8191fi
8192
8193
8194 eval "$ac_cv_use_palette"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_PALETTE" = yes; then
8200 echo "$ac_t""yes" 1>&6
8201 else
8202 echo "$ac_t""no" 1>&6
8203 fi
8204
8205
698dcdb6 8206 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
f79bd02d 8207echo "configure:8208: checking for --enable-image" >&5
0046ff7c
VS
8208 no_cache=0
8209 # Check whether --enable-image or --disable-image was given.
8210if test "${enable_image+set}" = set; then
8211 enableval="$enable_image"
698dcdb6 8212
0046ff7c
VS
8213 if test "$enableval" = yes; then
8214 ac_cv_use_image='wxUSE_IMAGE=yes'
8215 else
8216 ac_cv_use_image='wxUSE_IMAGE=no'
8217 fi
698dcdb6 8218
0046ff7c 8219else
698dcdb6 8220
0046ff7c
VS
8221 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8222 if test "x$LINE" != x ; then
8223 eval "DEFAULT_$LINE"
8224 else
8225 no_cache=1
8226 fi
8227
8228 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8229
8230fi
0046ff7c
VS
8231
8232
8233 eval "$ac_cv_use_image"
8234 if test "$no_cache" != 1; then
8235 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8236 fi
8237
8238 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8239 echo "$ac_t""yes" 1>&6
0046ff7c 8240 else
698dcdb6 8241 echo "$ac_t""no" 1>&6
0046ff7c 8242 fi
698dcdb6 8243
0046ff7c 8244
698dcdb6 8245 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
f79bd02d 8246echo "configure:8247: checking for --enable-gif" >&5
10f2d63a
VZ
8247 no_cache=0
8248 # Check whether --enable-gif or --disable-gif was given.
8249if test "${enable_gif+set}" = set; then
8250 enableval="$enable_gif"
698dcdb6 8251
10f2d63a
VZ
8252 if test "$enableval" = yes; then
8253 ac_cv_use_gif='wxUSE_GIF=yes'
8254 else
8255 ac_cv_use_gif='wxUSE_GIF=no'
8256 fi
698dcdb6 8257
10f2d63a 8258else
698dcdb6 8259
10f2d63a
VZ
8260 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8268
8269fi
10f2d63a
VZ
8270
8271
8272 eval "$ac_cv_use_gif"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_GIF" = yes; then
698dcdb6 8278 echo "$ac_t""yes" 1>&6
10f2d63a 8279 else
698dcdb6 8280 echo "$ac_t""no" 1>&6
10f2d63a 8281 fi
698dcdb6 8282
10f2d63a 8283
698dcdb6 8284 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
f79bd02d 8285echo "configure:8286: checking for --enable-pcx" >&5
10f2d63a
VZ
8286 no_cache=0
8287 # Check whether --enable-pcx or --disable-pcx was given.
8288if test "${enable_pcx+set}" = set; then
8289 enableval="$enable_pcx"
698dcdb6 8290
10f2d63a
VZ
8291 if test "$enableval" = yes; then
8292 ac_cv_use_pcx='wxUSE_PCX=yes'
8293 else
8294 ac_cv_use_pcx='wxUSE_PCX=no'
8295 fi
698dcdb6 8296
10f2d63a 8297else
698dcdb6 8298
10f2d63a
VZ
8299 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8307
8308fi
10f2d63a
VZ
8309
8310
8311 eval "$ac_cv_use_pcx"
8312 if test "$no_cache" != 1; then
8313 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8314 fi
8315
8316 if test "$wxUSE_PCX" = yes; then
698dcdb6 8317 echo "$ac_t""yes" 1>&6
10f2d63a 8318 else
698dcdb6 8319 echo "$ac_t""no" 1>&6
10f2d63a 8320 fi
698dcdb6 8321
10f2d63a 8322
4b6b4dfc 8323 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
f79bd02d 8324echo "configure:8325: checking for --enable-iff" >&5
4b6b4dfc
RR
8325 no_cache=0
8326 # Check whether --enable-iff or --disable-iff was given.
8327if test "${enable_iff+set}" = set; then
8328 enableval="$enable_iff"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_iff='wxUSE_IFF=yes'
8332 else
8333 ac_cv_use_iff='wxUSE_IFF=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8346
8347fi
8348
8349
8350 eval "$ac_cv_use_iff"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_IFF" = yes; then
8356 echo "$ac_t""yes" 1>&6
8357 else
8358 echo "$ac_t""no" 1>&6
8359 fi
8360
8361
698dcdb6 8362 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
f79bd02d 8363echo "configure:8364: checking for --enable-pnm" >&5
10f2d63a
VZ
8364 no_cache=0
8365 # Check whether --enable-pnm or --disable-pnm was given.
8366if test "${enable_pnm+set}" = set; then
8367 enableval="$enable_pnm"
698dcdb6 8368
10f2d63a
VZ
8369 if test "$enableval" = yes; then
8370 ac_cv_use_pnm='wxUSE_PNM=yes'
8371 else
8372 ac_cv_use_pnm='wxUSE_PNM=no'
8373 fi
698dcdb6 8374
10f2d63a 8375else
698dcdb6 8376
10f2d63a
VZ
8377 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8385
8386fi
10f2d63a
VZ
8387
8388
8389 eval "$ac_cv_use_pnm"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_PNM" = yes; then
698dcdb6 8395 echo "$ac_t""yes" 1>&6
10f2d63a 8396 else
698dcdb6 8397 echo "$ac_t""no" 1>&6
10f2d63a 8398 fi
698dcdb6 8399
10f2d63a 8400
69d27ff7 8401 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
f79bd02d 8402echo "configure:8403: checking for --enable-xpm" >&5
0046ff7c 8403 no_cache=0
69d27ff7
MB
8404 # Check whether --enable-xpm or --disable-xpm was given.
8405if test "${enable_xpm+set}" = set; then
8406 enableval="$enable_xpm"
698dcdb6 8407
0046ff7c 8408 if test "$enableval" = yes; then
69d27ff7 8409 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8410 else
69d27ff7 8411 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8412 fi
698dcdb6 8413
0046ff7c 8414else
698dcdb6 8415
0046ff7c
VS
8416 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
69d27ff7 8423 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8424
8425fi
0046ff7c
VS
8426
8427
69d27ff7 8428 eval "$ac_cv_use_xpm"
0046ff7c 8429 if test "$no_cache" != 1; then
69d27ff7 8430 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8431 fi
8432
8433 if test "$wxUSE_XPM" = yes; then
698dcdb6 8434 echo "$ac_t""yes" 1>&6
0046ff7c 8435 else
698dcdb6 8436 echo "$ac_t""no" 1>&6
0046ff7c 8437 fi
698dcdb6 8438
0046ff7c 8439
c7206e64 8440 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
f79bd02d 8441echo "configure:8442: checking for --enable-ico_cur" >&5
658974ae 8442 no_cache=0
c7206e64
VS
8443 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8444if test "${enable_ico_cur+set}" = set; then
8445 enableval="$enable_ico_cur"
658974ae
VS
8446
8447 if test "$enableval" = yes; then
c7206e64 8448 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8449 else
c7206e64 8450 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8451 fi
8452
8453else
8454
8455 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8456 if test "x$LINE" != x ; then
8457 eval "DEFAULT_$LINE"
8458 else
8459 no_cache=1
8460 fi
8461
c7206e64 8462 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8463
8464fi
8465
8466
c7206e64 8467 eval "$ac_cv_use_ico_cur"
658974ae 8468 if test "$no_cache" != 1; then
c7206e64 8469 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8470 fi
8471
8472 if test "$wxUSE_ICO_CUR" = yes; then
8473 echo "$ac_t""yes" 1>&6
8474 else
8475 echo "$ac_t""no" 1>&6
8476 fi
8477
8478
b12915c1
VZ
8479fi
8480
698dcdb6 8481
10f2d63a
VZ
8482 echo "saving argument cache $wx_arg_cache_file"
8483 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8484
10f2d63a 8485
698dcdb6
VZ
8486
8487echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f79bd02d 8488echo "configure:8489: checking for toolkit" >&5
10f2d63a
VZ
8489
8490if test "$wxUSE_GUI" = "yes"; then
8491
3a922bb4
RL
8492 if test "$USE_BEOS" = 1; then
8493 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8494 fi
b12915c1 8495
3a922bb4
RL
8496 if test "$TOOLKIT_GIVEN" = 1; then
8497 for toolkit in `echo $ALL_TOOLKITS`; do
8498 var=wxUSE_$toolkit
8499 eval "value=\$${var}"
8500 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8501 done
10f2d63a 8502 else
3a922bb4
RL
8503 for toolkit in `echo $ALL_TOOLKITS`; do
8504 if test "$has_toolkit_in_cache" != 1; then
8505 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8506 else
8507 var=DEFAULT_wxUSE_$toolkit
8508 fi
8509 eval "wxUSE_$toolkit=\$${var}"
8510 done
10f2d63a 8511 fi
10f2d63a 8512
3a922bb4 8513 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8514 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8515
3a922bb4 8516 case "${host}" in
6fa882bd 8517 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8518 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8519 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8520 LEX_STEM="lexyy"
8521 ;;
8522 *)
8523 PATH_IFS=':'
8524 LEX_STEM="lex.yy"
8525 ;;
8526 esac
10f2d63a 8527
3a922bb4
RL
8528 case "$NUM_TOOLKITS" in
8529 1)
8530 ;;
8531 0)
8532 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8533 ;;
8534 *)
8535 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8536 esac
10f2d63a 8537
3a922bb4
RL
8538 for toolkit in `echo $ALL_TOOLKITS`; do
8539 var=wxUSE_$toolkit
8540 eval "value=\$${var}"
8541 if test "x$value" != x; then
8542 cache_var=CACHE_$toolkit
8543 eval "cache=\$${cache_var}"
8544 if test "$cache" = 1; then
8545 echo "$var=$value" >> ${wx_arg_cache_file}
8546 fi
8547 if test "$value" = 1; then
8548 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8549 echo "$ac_t""$toolkit_echo" 1>&6
8550 fi
8551 fi
8552 done
10f2d63a 8553else
cf27ef00 8554 PATH_IFS=':'
3a922bb4 8555 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8556fi
8557
698dcdb6
VZ
8558
8559cat > confcache <<\EOF
10f2d63a
VZ
8560# This file is a shell script that caches the results of configure
8561# tests run on this system so they can be shared between configure
698dcdb6
VZ
8562# scripts and configure runs. It is not useful on other systems.
8563# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8564#
698dcdb6
VZ
8565# By default, configure uses ./config.cache as the cache file,
8566# creating it if it does not exist already. You can give configure
8567# the --cache-file=FILE option to use a different cache file; that is
8568# what configure does when it calls configure scripts in
8569# subdirectories, so they share the cache.
8570# Giving --cache-file=/dev/null disables caching, for debugging configure.
8571# config.status only pays attention to the cache file if you give it the
8572# --recheck option to rerun configure.
10f2d63a 8573#
698dcdb6 8574EOF
10f2d63a
VZ
8575# The following way of writing the cache mishandles newlines in values,
8576# but we know of no workaround that is simple, portable, and efficient.
8577# So, don't put newlines in cache variables' values.
8578# Ultrix sh set writes to stderr and can't be redirected directly,
8579# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8580(set) 2>&1 |
8581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8582 *ac_space=\ *)
8583 # `set' does not quote correctly, so add quotes (double-quote substitution
8584 # turns \\\\ into \\, and sed turns \\ into \).
8585 sed -n \
8586 -e "s/'/'\\\\''/g" \
8587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8588 ;;
8589 *)
8590 # `set' quotes correctly as required by POSIX, so do not add quotes.
8591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8592 ;;
8593 esac >> confcache
8594if cmp -s $cache_file confcache; then
8595 :
8596else
10f2d63a 8597 if test -w $cache_file; then
698dcdb6
VZ
8598 echo "updating cache $cache_file"
8599 cat confcache > $cache_file
10f2d63a
VZ
8600 else
8601 echo "not updating unwritable cache $cache_file"
8602 fi
8603fi
8604rm -f confcache
8605
698dcdb6 8606
e59890c3 8607if test "$build" != "$host" ; then
f9bc1684 8608 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8609 CC=$host_alias-gcc
8610 CXX=$host_alias-c++
8611 AR=$host_alias-ar
8612 RANLIB=$host_alias-ranlib
8613 DLLTOOL=$host_alias-dlltool
8614 RESCOMP=$host_alias-windres
8615 LD=$host_alias-ld
8616 NM=$host_alias-nm
8617 STRIP=$host_alias-strip
8618 else
8619 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8620 fi
10f2d63a
VZ
8621fi
8622
698dcdb6 8623# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8624set dummy gcc; ac_word=$2
698dcdb6 8625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 8626echo "configure:8627: checking for $ac_word" >&5
698dcdb6
VZ
8627if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8629else
8630 if test -n "$CC"; then
8631 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8632else
698dcdb6
VZ
8633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8634 ac_dummy="$PATH"
8635 for ac_dir in $ac_dummy; do
8636 test -z "$ac_dir" && ac_dir=.
8637 if test -f $ac_dir/$ac_word; then
8638 ac_cv_prog_CC="gcc"
8639 break
8640 fi
8641 done
8642 IFS="$ac_save_ifs"
10f2d63a 8643fi
6232543b 8644fi
698dcdb6 8645CC="$ac_cv_prog_CC"
6232543b 8646if test -n "$CC"; then
698dcdb6 8647 echo "$ac_t""$CC" 1>&6
1e487827 8648else
698dcdb6 8649 echo "$ac_t""no" 1>&6
1e487827 8650fi
6232543b 8651
1e487827
VS
8652if test -z "$CC"; then
8653 # Extract the first word of "cc", so it can be a program name with args.
8654set dummy cc; ac_word=$2
698dcdb6 8655echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 8656echo "configure:8657: checking for $ac_word" >&5
698dcdb6
VZ
8657if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8659else
8660 if test -n "$CC"; then
8661 ac_cv_prog_CC="$CC" # Let the user override the test.
8662else
698dcdb6 8663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8664 ac_prog_rejected=no
698dcdb6
VZ
8665 ac_dummy="$PATH"
8666 for ac_dir in $ac_dummy; do
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f $ac_dir/$ac_word; then
8669 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8670 ac_prog_rejected=yes
8671 continue
8672 fi
8673 ac_cv_prog_CC="cc"
8674 break
8675 fi
8676 done
8677 IFS="$ac_save_ifs"
1e487827
VS
8678if test $ac_prog_rejected = yes; then
8679 # We found a bogon in the path, so make sure we never use it.
8680 set dummy $ac_cv_prog_CC
8681 shift
698dcdb6 8682 if test $# -gt 0; then
1e487827
VS
8683 # We chose a different compiler from the bogus one.
8684 # However, it has the same basename, so the bogon will be chosen
8685 # first if we set CC to just the basename; use the full file name.
8686 shift
698dcdb6 8687 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8688 shift
8689 ac_cv_prog_CC="$@"
703e0a69 8690 fi
1e487827
VS
8691fi
8692fi
8693fi
698dcdb6 8694CC="$ac_cv_prog_CC"
1e487827 8695if test -n "$CC"; then
698dcdb6 8696 echo "$ac_t""$CC" 1>&6
703e0a69 8697else
698dcdb6 8698 echo "$ac_t""no" 1>&6
703e0a69 8699fi
1e487827 8700
698dcdb6
VZ
8701 if test -z "$CC"; then
8702 case "`uname -s`" in
8703 *win32* | *WIN32*)
8704 # Extract the first word of "cl", so it can be a program name with args.
8705set dummy cl; ac_word=$2
8706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 8707echo "configure:8708: checking for $ac_word" >&5
698dcdb6
VZ
8708if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8710else
8711 if test -n "$CC"; then
8712 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8713else
698dcdb6
VZ
8714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8715 ac_dummy="$PATH"
8716 for ac_dir in $ac_dummy; do
8717 test -z "$ac_dir" && ac_dir=.
8718 if test -f $ac_dir/$ac_word; then
8719 ac_cv_prog_CC="cl"
8720 break
8721 fi
8722 done
8723 IFS="$ac_save_ifs"
703e0a69 8724fi
1e487827 8725fi
698dcdb6 8726CC="$ac_cv_prog_CC"
1e487827 8727if test -n "$CC"; then
698dcdb6 8728 echo "$ac_t""$CC" 1>&6
1e487827 8729else
698dcdb6 8730 echo "$ac_t""no" 1>&6
1e487827 8731fi
698dcdb6
VZ
8732 ;;
8733 esac
8734 fi
8735 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8736fi
8737
698dcdb6 8738echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f79bd02d 8739echo "configure:8740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8740
698dcdb6
VZ
8741ac_ext=c
8742# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8743ac_cpp='$CPP $CPPFLAGS'
8744ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8745ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8746cross_compiling=$ac_cv_prog_cc_cross
6232543b 8747
698dcdb6 8748cat > conftest.$ac_ext << EOF
1e487827 8749
f79bd02d 8750#line 8751 "configure"
1e487827
VS
8751#include "confdefs.h"
8752
698dcdb6
VZ
8753main(){return(0);}
8754EOF
f79bd02d 8755if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8756 ac_cv_prog_cc_works=yes
8757 # If we can't run a trivial program, we are probably using a cross compiler.
8758 if (./conftest; exit) 2>/dev/null; then
8759 ac_cv_prog_cc_cross=no
8760 else
8761 ac_cv_prog_cc_cross=yes
8762 fi
8763else
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 ac_cv_prog_cc_works=no
8767fi
8768rm -fr conftest*
8769ac_ext=c
8770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8771ac_cpp='$CPP $CPPFLAGS'
8772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8774cross_compiling=$ac_cv_prog_cc_cross
8775
8776echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8777if test $ac_cv_prog_cc_works = no; then
8778 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8779fi
8780echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f79bd02d 8781echo "configure:8782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8782echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8783cross_compiling=$ac_cv_prog_cc_cross
8784
8785echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f79bd02d 8786echo "configure:8787: checking whether we are using GNU C" >&5
698dcdb6
VZ
8787if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789else
8790 cat > conftest.c <<EOF
8791#ifdef __GNUC__
8792 yes;
1e487827 8793#endif
698dcdb6 8794EOF
f79bd02d 8795if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8796 ac_cv_prog_gcc=yes
8797else
8798 ac_cv_prog_gcc=no
8799fi
8800fi
1e487827 8801
698dcdb6 8802echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8803
698dcdb6
VZ
8804if test $ac_cv_prog_gcc = yes; then
8805 GCC=yes
8806else
8807 GCC=
8808fi
1e487827 8809
698dcdb6
VZ
8810ac_test_CFLAGS="${CFLAGS+set}"
8811ac_save_CFLAGS="$CFLAGS"
8812CFLAGS=
8813echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f79bd02d 8814echo "configure:8815: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8815if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8817else
8818 echo 'void f(){}' > conftest.c
8819if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8820 ac_cv_prog_cc_g=yes
8821else
698dcdb6 8822 ac_cv_prog_cc_g=no
10f2d63a 8823fi
698dcdb6
VZ
8824rm -f conftest*
8825
10f2d63a 8826fi
698dcdb6
VZ
8827
8828echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8829if test "$ac_test_CFLAGS" = set; then
698dcdb6 8830 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8831elif test $ac_cv_prog_cc_g = yes; then
8832 if test "$GCC" = yes; then
8833 CFLAGS="-g -O2"
8834 else
8835 CFLAGS="-g"
8836 fi
8837else
8838 if test "$GCC" = yes; then
8839 CFLAGS="-O2"
8840 else
8841 CFLAGS=
8842 fi
8843fi
8844
8845
8846CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8847
698dcdb6 8848echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f79bd02d 8849echo "configure:8850: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8850# On Suns, sometimes $CPP names a directory.
8851if test -n "$CPP" && test -d "$CPP"; then
8852 CPP=
8853fi
8854if test -z "$CPP"; then
698dcdb6
VZ
8855if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857else
8858 # This must be in double quotes, not single quotes, because CPP may get
8859 # substituted into the Makefile and "${CC-cc}" will confuse make.
8860 CPP="${CC-cc} -E"
10f2d63a 8861 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8862 # not just through cpp.
8863 cat > conftest.$ac_ext <<EOF
f79bd02d 8864#line 8865 "configure"
10f2d63a
VZ
8865#include "confdefs.h"
8866#include <assert.h>
698dcdb6
VZ
8867Syntax Error
8868EOF
8869ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 8870{ (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8871ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8872if test -z "$ac_err"; then
10f2d63a
VZ
8873 :
8874else
698dcdb6
VZ
8875 echo "$ac_err" >&5
8876 echo "configure: failed program was:" >&5
10f2d63a 8877 cat conftest.$ac_ext >&5
698dcdb6
VZ
8878 rm -rf conftest*
8879 CPP="${CC-cc} -E -traditional-cpp"
8880 cat > conftest.$ac_ext <<EOF
f79bd02d 8881#line 8882 "configure"
10f2d63a 8882#include "confdefs.h"
698dcdb6
VZ
8883#include <assert.h>
8884Syntax Error
8885EOF
8886ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 8887{ (eval echo configure:8888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8888ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8889if test -z "$ac_err"; then
8890 :
10f2d63a 8891else
698dcdb6
VZ
8892 echo "$ac_err" >&5
8893 echo "configure: failed program was:" >&5
10f2d63a 8894 cat conftest.$ac_ext >&5
698dcdb6
VZ
8895 rm -rf conftest*
8896 CPP="${CC-cc} -nologo -E"
8897 cat > conftest.$ac_ext <<EOF
f79bd02d 8898#line 8899 "configure"
10f2d63a
VZ
8899#include "confdefs.h"
8900#include <assert.h>
698dcdb6
VZ
8901Syntax Error
8902EOF
8903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 8904{ (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906if test -z "$ac_err"; then
10f2d63a
VZ
8907 :
8908else
698dcdb6
VZ
8909 echo "$ac_err" >&5
8910 echo "configure: failed program was:" >&5
10f2d63a 8911 cat conftest.$ac_ext >&5
698dcdb6
VZ
8912 rm -rf conftest*
8913 CPP=/lib/cpp
10f2d63a 8914fi
698dcdb6 8915rm -f conftest*
10f2d63a 8916fi
698dcdb6 8917rm -f conftest*
703e0a69 8918fi
698dcdb6
VZ
8919rm -f conftest*
8920 ac_cv_prog_CPP="$CPP"
8921fi
8922 CPP="$ac_cv_prog_CPP"
10f2d63a 8923else
698dcdb6 8924 ac_cv_prog_CPP="$CPP"
10f2d63a 8925fi
698dcdb6 8926echo "$ac_t""$CPP" 1>&6
10f2d63a 8927
698dcdb6
VZ
8928if test $ac_cv_prog_gcc = yes; then
8929 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f79bd02d 8930echo "configure:8931: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8931if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8933else
8934 ac_pattern="Autoconf.*'x'"
698dcdb6 8935 cat > conftest.$ac_ext <<EOF
f79bd02d 8936#line 8937 "configure"
10f2d63a
VZ
8937#include "confdefs.h"
8938#include <sgtty.h>
8939Autoconf TIOCGETP
698dcdb6 8940EOF
10f2d63a
VZ
8941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8943 rm -rf conftest*
10f2d63a
VZ
8944 ac_cv_prog_gcc_traditional=yes
8945else
698dcdb6 8946 rm -rf conftest*
10f2d63a
VZ
8947 ac_cv_prog_gcc_traditional=no
8948fi
8949rm -f conftest*
8950
698dcdb6 8951
10f2d63a 8952 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8953 cat > conftest.$ac_ext <<EOF
f79bd02d 8954#line 8955 "configure"
10f2d63a
VZ
8955#include "confdefs.h"
8956#include <termio.h>
8957Autoconf TCGETA
698dcdb6 8958EOF
10f2d63a
VZ
8959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8961 rm -rf conftest*
10f2d63a
VZ
8962 ac_cv_prog_gcc_traditional=yes
8963fi
8964rm -f conftest*
8965
8966 fi
8967fi
698dcdb6
VZ
8968
8969echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8970 if test $ac_cv_prog_gcc_traditional = yes; then
8971 CC="$CC -traditional"
8972 fi
8973fi
8974
703e0a69 8975
698dcdb6
VZ
8976
8977ac_ext=C
8978# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8979ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8980ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8981ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8982cross_compiling=$ac_cv_prog_cxx_cross
8983
8984
8985for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8986do
8987# Extract the first word of "$ac_prog", so it can be a program name with args.
8988set dummy $ac_prog; ac_word=$2
8989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 8990echo "configure:8991: checking for $ac_word" >&5
698dcdb6
VZ
8991if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8993else
8994 if test -n "$CXX"; then
8995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8996else
698dcdb6
VZ
8997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8998 ac_dummy="$PATH"
8999 for ac_dir in $ac_dummy; do
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f $ac_dir/$ac_word; then
9002 ac_cv_prog_CXX="$ac_prog"
9003 break
9004 fi
9005 done
9006 IFS="$ac_save_ifs"
10f2d63a
VZ
9007fi
9008fi
698dcdb6 9009CXX="$ac_cv_prog_CXX"
10f2d63a 9010if test -n "$CXX"; then
698dcdb6 9011 echo "$ac_t""$CXX" 1>&6
10f2d63a 9012else
698dcdb6 9013 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9014fi
9015
698dcdb6 9016test -n "$CXX" && break
10f2d63a 9017done
698dcdb6 9018test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
9019
9020
698dcdb6 9021echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f79bd02d 9022echo "configure:9023: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 9023
698dcdb6
VZ
9024ac_ext=C
9025# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026ac_cpp='$CXXCPP $CPPFLAGS'
9027ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9030
698dcdb6
VZ
9031cat > conftest.$ac_ext << EOF
9032
f79bd02d 9033#line 9034 "configure"
10f2d63a
VZ
9034#include "confdefs.h"
9035
698dcdb6
VZ
9036int main(){return(0);}
9037EOF
f79bd02d 9038if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9039 ac_cv_prog_cxx_works=yes
9040 # If we can't run a trivial program, we are probably using a cross compiler.
9041 if (./conftest; exit) 2>/dev/null; then
9042 ac_cv_prog_cxx_cross=no
9043 else
9044 ac_cv_prog_cxx_cross=yes
9045 fi
9046else
9047 echo "configure: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 ac_cv_prog_cxx_works=no
9050fi
9051rm -fr conftest*
9052ac_ext=C
9053# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9054ac_cpp='$CXXCPP $CPPFLAGS'
9055ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9056ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9057cross_compiling=$ac_cv_prog_cxx_cross
9058
9059echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9060if test $ac_cv_prog_cxx_works = no; then
9061 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9062fi
9063echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f79bd02d 9064echo "configure:9065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9065echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9066cross_compiling=$ac_cv_prog_cxx_cross
9067
9068echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f79bd02d 9069echo "configure:9070: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9070if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072else
9073 cat > conftest.C <<EOF
9074#ifdef __GNUC__
9075 yes;
10f2d63a 9076#endif
698dcdb6 9077EOF
f79bd02d 9078if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9079 ac_cv_prog_gxx=yes
9080else
9081 ac_cv_prog_gxx=no
9082fi
9083fi
10f2d63a 9084
698dcdb6 9085echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9086
698dcdb6
VZ
9087if test $ac_cv_prog_gxx = yes; then
9088 GXX=yes
9089else
9090 GXX=
9091fi
10f2d63a 9092
698dcdb6
VZ
9093ac_test_CXXFLAGS="${CXXFLAGS+set}"
9094ac_save_CXXFLAGS="$CXXFLAGS"
9095CXXFLAGS=
9096echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f79bd02d 9097echo "configure:9098: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9098if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9100else
9101 echo 'void f(){}' > conftest.cc
9102if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9103 ac_cv_prog_cxx_g=yes
9104else
698dcdb6 9105 ac_cv_prog_cxx_g=no
10f2d63a 9106fi
698dcdb6
VZ
9107rm -f conftest*
9108
10f2d63a 9109fi
698dcdb6
VZ
9110
9111echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9112if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9113 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9114elif test $ac_cv_prog_cxx_g = yes; then
9115 if test "$GXX" = yes; then
9116 CXXFLAGS="-g -O2"
9117 else
9118 CXXFLAGS="-g"
9119 fi
9120else
9121 if test "$GXX" = yes; then
9122 CXXFLAGS="-O2"
9123 else
9124 CXXFLAGS=
9125 fi
9126fi
9127
f79bd02d
JS
9128for ac_declaration in \
9129 ''\
9130 '#include <stdlib.h>' \
9131 'extern "C" void std::exit (int) throw (); using std::exit;' \
9132 'extern "C" void std::exit (int); using std::exit;' \
9133 'extern "C" void exit (int) throw ();' \
9134 'extern "C" void exit (int);' \
9135 'void exit (int);'
9136do
9137 cat > conftest.$ac_ext <<EOF
9138#line 9139 "configure"
9139#include "confdefs.h"
9140#include <stdlib.h>
9141$ac_declaration
9142int main() {
9143exit (42);
9144; return 0; }
9145EOF
9146if { (eval echo configure:9147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9147 :
9148else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 continue
9153fi
9154rm -f conftest*
9155 cat > conftest.$ac_ext <<EOF
9156#line 9157 "configure"
9157#include "confdefs.h"
9158$ac_declaration
9159int main() {
9160exit (42);
9161; return 0; }
9162EOF
9163if { (eval echo configure:9164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9164 rm -rf conftest*
9165 break
9166else
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169fi
9170rm -f conftest*
9171done
9172if test -n "$ac_declaration"; then
9173 echo '#ifdef __cplusplus' >>confdefs.h
9174 echo $ac_declaration >>confdefs.h
9175 echo '#endif' >>confdefs.h
9176fi
9177
9178
10f2d63a 9179
10f2d63a
VZ
9180CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9181
9182ac_ext=c
698dcdb6 9183# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9184ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9185ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9186ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9187cross_compiling=$ac_cv_prog_cc_cross
9188
9189
9190# Extract the first word of "ranlib", so it can be a program name with args.
9191set dummy ranlib; ac_word=$2
9192echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 9193echo "configure:9194: checking for $ac_word" >&5
698dcdb6
VZ
9194if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9196else
9197 if test -n "$RANLIB"; then
9198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9199else
698dcdb6
VZ
9200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9201 ac_dummy="$PATH"
9202 for ac_dir in $ac_dummy; do
9203 test -z "$ac_dir" && ac_dir=.
9204 if test -f $ac_dir/$ac_word; then
9205 ac_cv_prog_RANLIB="ranlib"
9206 break
9207 fi
9208 done
9209 IFS="$ac_save_ifs"
9210 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9211fi
9212fi
698dcdb6 9213RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9214if test -n "$RANLIB"; then
698dcdb6 9215 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9216else
698dcdb6 9217 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9218fi
9219
9220
9221# Extract the first word of "ar", so it can be a program name with args.
9222set dummy ar; ac_word=$2
698dcdb6 9223echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 9224echo "configure:9225: checking for $ac_word" >&5
698dcdb6
VZ
9225if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9227else
9228 if test -n "$AR"; then
9229 ac_cv_prog_AR="$AR" # Let the user override the test.
9230else
698dcdb6
VZ
9231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9232 ac_dummy="$PATH"
9233 for ac_dir in $ac_dummy; do
9234 test -z "$ac_dir" && ac_dir=.
9235 if test -f $ac_dir/$ac_word; then
9236 ac_cv_prog_AR="ar"
9237 break
9238 fi
9239 done
9240 IFS="$ac_save_ifs"
10f2d63a
VZ
9241 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9242fi
9243fi
698dcdb6 9244AR="$ac_cv_prog_AR"
10f2d63a 9245if test -n "$AR"; then
698dcdb6 9246 echo "$ac_t""$AR" 1>&6
10f2d63a 9247else
698dcdb6 9248 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9249fi
9250
698dcdb6 9251
6054113a 9252# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9253# so one script is as good as another. But avoid the broken or
9254# incompatible versions:
9255# SysV /etc/install, /usr/sbin/install
9256# SunOS /usr/etc/install
9257# IRIX /sbin/install
9258# AIX /bin/install
9259# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9260# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9261# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9262# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9263echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f79bd02d 9264echo "configure:9265: checking for a BSD compatible install" >&5
10f2d63a 9265if test -z "$INSTALL"; then
698dcdb6
VZ
9266if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9268else
698dcdb6 9269 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9270 for ac_dir in $PATH; do
9271 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9272 case "$ac_dir/" in
9273 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9274 *)
9275 # OSF1 and SCO ODT 3.0 have their own names for install.
9276 # Don't use installbsd from OSF since it installs stuff as root
9277 # by default.
9278 for ac_prog in ginstall scoinst install; do
698dcdb6 9279 if test -f $ac_dir/$ac_prog; then
10f2d63a 9280 if test $ac_prog = install &&
698dcdb6 9281 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9282 # AIX install. It has an incompatible calling convention.
9283 :
9284 else
9285 ac_cv_path_install="$ac_dir/$ac_prog -c"
9286 break 2
9287 fi
9288 fi
9289 done
9290 ;;
9291 esac
9292 done
698dcdb6 9293 IFS="$ac_save_IFS"
10f2d63a
VZ
9294
9295fi
9296 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9297 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9298 else
9299 # As a last resort, use the slow shell script. We don't cache a
9300 # path for INSTALL within a source directory, because that will
9301 # break other packages using the cache if that directory is
9302 # removed, or if the path is relative.
698dcdb6 9303 INSTALL="$ac_install_sh"
10f2d63a
VZ
9304 fi
9305fi
698dcdb6 9306echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9307
9308# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9309# It thinks the first close brace ends the variable substitution.
9310test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9311
698dcdb6 9312test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9313
9314test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9315
6054113a
GD
9316case "${host}" in
9317
b5853384 9318 powerpc-*-darwin* )
eb99ae0b
GD
9319 INSTALL_PROGRAM="cp -fp"
9320 INSTALL_DATA="cp -fp"
6054113a
GD
9321 ;;
9322 *)
9323 ;;
d6853540 9324esac
698dcdb6 9325
10f2d63a
VZ
9326# Extract the first word of "strip", so it can be a program name with args.
9327set dummy strip; ac_word=$2
698dcdb6 9328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 9329echo "configure:9330: checking for $ac_word" >&5
698dcdb6
VZ
9330if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9332else
9333 if test -n "$STRIP"; then
9334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9335else
698dcdb6
VZ
9336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9337 ac_dummy="$PATH"
9338 for ac_dir in $ac_dummy; do
9339 test -z "$ac_dir" && ac_dir=.
9340 if test -f $ac_dir/$ac_word; then
9341 ac_cv_prog_STRIP="strip"
9342 break
9343 fi
9344 done
9345 IFS="$ac_save_ifs"
10f2d63a
VZ
9346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9347fi
9348fi
698dcdb6 9349STRIP="$ac_cv_prog_STRIP"
10f2d63a 9350if test -n "$STRIP"; then
698dcdb6 9351 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9352else
698dcdb6 9353 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9354fi
9355
698dcdb6 9356
414eab6d 9357echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
f79bd02d 9358echo "configure:9359: checking if make is GNU make" >&5
414eab6d
VZ
9359if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361else
9362
9363 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9364 egrep -s GNU); then
9365 wx_cv_prog_makeisgnu="yes"
9366 else
9367 wx_cv_prog_makeisgnu="no"
9368 fi
9369
9370fi
9371
9372echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9373
9374if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9375 IF_GNU_MAKE=""
9376else
9377 IF_GNU_MAKE="#"
9378fi
9379
9380
9381
9382if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9383echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
f79bd02d 9384echo "configure:9385: checking if make supports VPATH" >&5
04e7a216
VZ
9385if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387else
9388
10f2d63a
VZ
9389cat - << EOF > confMake
9390check : file
9391 cp \$? \$@
9392 cp \$? final_file
9393EOF
9394
9395if test ! -d sub ; then
9396 mkdir sub
9397fi
9398echo dummy > sub/file
f6bcfd97 9399${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9400RESULT=$?
9401rm -f sub/file check final_file confMake
9402rmdir sub
9403if test "$RESULT" = 0; then
04e7a216 9404 wx_cv_prog_makevpath="yes"
10f2d63a 9405else
04e7a216
VZ
9406 wx_cv_prog_makevpath="no"
9407fi
9408
9409fi
9410
9411echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9412
9413if test "x$wx_cv_prog_makevpath" != "xyes"; then
9414{ echo "configure: error:
1e487827
VS
9415You need a make-utility that is able to use the variable
9416VPATH correctly.
9417If your version of make does not support VPATH correctly,
9418please install GNU-make (possibly as gmake), and start
9419configure with the following command:
9420export MAKE=gmake; ./configure for sh-type shells
9421setenv MAKE gmake; ./configure for csh-type shells
9422Also please do remember to use gmake in this case every time
9423you are trying to compile.
698dcdb6 9424" 1>&2; exit 1; }
414eab6d 9425fi fi
10f2d63a
VZ
9426for ac_prog in 'bison -y' byacc
9427do
698dcdb6 9428# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9429set dummy $ac_prog; ac_word=$2
698dcdb6 9430echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 9431echo "configure:9432: checking for $ac_word" >&5
698dcdb6
VZ
9432if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9434else
9435 if test -n "$YACC"; then
9436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9437else
698dcdb6
VZ
9438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9439 ac_dummy="$PATH"
9440 for ac_dir in $ac_dummy; do
9441 test -z "$ac_dir" && ac_dir=.
9442 if test -f $ac_dir/$ac_word; then
9443 ac_cv_prog_YACC="$ac_prog"
9444 break
9445 fi
9446 done
9447 IFS="$ac_save_ifs"
10f2d63a
VZ
9448fi
9449fi
698dcdb6 9450YACC="$ac_cv_prog_YACC"
10f2d63a 9451if test -n "$YACC"; then
698dcdb6 9452 echo "$ac_t""$YACC" 1>&6
10f2d63a 9453else
698dcdb6 9454 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9455fi
9456
698dcdb6 9457test -n "$YACC" && break
10f2d63a
VZ
9458done
9459test -n "$YACC" || YACC="yacc"
9460
698dcdb6
VZ
9461
9462# Extract the first word of "flex", so it can be a program name with args.
9463set dummy flex; ac_word=$2
9464echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 9465echo "configure:9466: checking for $ac_word" >&5
698dcdb6
VZ
9466if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9468else
9469 if test -n "$LEX"; then
9470 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9471else
698dcdb6
VZ
9472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9473 ac_dummy="$PATH"
9474 for ac_dir in $ac_dummy; do
9475 test -z "$ac_dir" && ac_dir=.
9476 if test -f $ac_dir/$ac_word; then
9477 ac_cv_prog_LEX="flex"
9478 break
9479 fi
9480 done
9481 IFS="$ac_save_ifs"
9482 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9483fi
9484fi
698dcdb6 9485LEX="$ac_cv_prog_LEX"
10f2d63a 9486if test -n "$LEX"; then
698dcdb6 9487 echo "$ac_t""$LEX" 1>&6
10f2d63a 9488else
698dcdb6 9489 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9490fi
9491
9492if test -z "$LEXLIB"
9493then
698dcdb6
VZ
9494 case "$LEX" in
9495 flex*) ac_lib=fl ;;
9496 *) ac_lib=l ;;
9497 esac
9498 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f79bd02d 9499echo "configure:9500: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9500ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9501if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503else
9504 ac_save_LIBS="$LIBS"
9505LIBS="-l$ac_lib $LIBS"
9506cat > conftest.$ac_ext <<EOF
f79bd02d 9507#line 9508 "configure"
10f2d63a
VZ
9508#include "confdefs.h"
9509/* Override any gcc2 internal prototype to avoid an error. */
9510/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9511 builtin and then its argument prototype would still apply. */
9512char yywrap();
10f2d63a 9513
698dcdb6
VZ
9514int main() {
9515yywrap()
9516; return 0; }
9517EOF
f79bd02d 9518if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9519 rm -rf conftest*
9520 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9521else
698dcdb6
VZ
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -rf conftest*
9525 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9526fi
698dcdb6
VZ
9527rm -f conftest*
9528LIBS="$ac_save_LIBS"
9529
10f2d63a 9530fi
698dcdb6
VZ
9531if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9533 LEXLIB="-l$ac_lib"
9534else
9535 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9536fi
9537
9538fi
9539
9540
698dcdb6 9541echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f79bd02d 9542echo "configure:9543: checking whether ln -s works" >&5
698dcdb6
VZ
9543if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9545else
698dcdb6
VZ
9546 rm -f conftestdata
9547if ln -s X conftestdata 2>/dev/null
9548then
9549 rm -f conftestdata
9550 ac_cv_prog_LN_S="ln -s"
10f2d63a 9551else
698dcdb6 9552 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9553fi
9554fi
698dcdb6
VZ
9555LN_S="$ac_cv_prog_LN_S"
9556if test "$ac_cv_prog_LN_S" = "ln -s"; then
9557 echo "$ac_t""yes" 1>&6
10f2d63a 9558else
698dcdb6 9559 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9560fi
9561
9562
9563
9564SEARCH_INCLUDE="\
9565 /usr/local/include \
9566 \
9567 /usr/Motif-1.2/include \
9568 /usr/Motif-2.1/include \
9569 \
9570 /usr/include/Motif1.2 \
9571 /opt/xpm/include/X11 \
9572 /opt/GBxpm/include/ \
9573 /opt/GBxpm/X11/include/ \
9574 \
9575 /usr/Motif1.2/include \
9576 /usr/dt/include \
afc31813
VZ
9577 /usr/openwin/include \
9578 \
10f2d63a
VZ
9579 /usr/include/Xm \
9580 \
9581 /usr/X11R6/include \
afc31813 9582 /usr/X11R6.4/include \
10f2d63a
VZ
9583 /usr/X11R5/include \
9584 /usr/X11R4/include \
9585 \
10f2d63a
VZ
9586 /usr/include/X11R6 \
9587 /usr/include/X11R5 \
9588 /usr/include/X11R4 \
9589 \
9590 /usr/local/X11R6/include \
9591 /usr/local/X11R5/include \
9592 /usr/local/X11R4/include \
9593 \
9594 /usr/local/include/X11R6 \
9595 /usr/local/include/X11R5 \
9596 /usr/local/include/X11R4 \
9597 \
9598 /usr/X11/include \
9599 /usr/include/X11 \
9600 /usr/local/X11/include \
9601 /usr/local/include/X11 \
9602 \
9603 /usr/X386/include \
9604 /usr/x386/include \
9605 /usr/XFree86/include/X11 \
9606 \
cf27ef00 9607 X:/XFree86/include \
ec14dd32
VZ
9608 X:/XFree86/include/X11 \
9609 \
10f2d63a
VZ
9610 /usr/include/gtk \
9611 /usr/local/include/gtk \
9612 /usr/include/glib \
9613 /usr/local/include/glib \
9614 \
9615 /usr/include/qt \
9616 /usr/local/include/qt \
9617 \
9618 /usr/include/windows \
9619 /usr/include/wine \
9620 /usr/local/include/wine \
9621 \
9622 /usr/unsupported/include \
9623 /usr/athena/include \
9624 /usr/local/x11r5/include \
9625 /usr/lpp/Xamples/include \
9626 \
10f2d63a 9627 /usr/openwin/share/include \
928b5c08
VZ
9628 \
9629 /usr/include"
10f2d63a
VZ
9630
9631SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9632
698dcdb6
VZ
9633
9634cat > confcache <<\EOF
10f2d63a
VZ
9635# This file is a shell script that caches the results of configure
9636# tests run on this system so they can be shared between configure
698dcdb6
VZ
9637# scripts and configure runs. It is not useful on other systems.
9638# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9639#
698dcdb6
VZ
9640# By default, configure uses ./config.cache as the cache file,
9641# creating it if it does not exist already. You can give configure
9642# the --cache-file=FILE option to use a different cache file; that is
9643# what configure does when it calls configure scripts in
9644# subdirectories, so they share the cache.
9645# Giving --cache-file=/dev/null disables caching, for debugging configure.
9646# config.status only pays attention to the cache file if you give it the
9647# --recheck option to rerun configure.
10f2d63a 9648#
698dcdb6 9649EOF
10f2d63a
VZ
9650# The following way of writing the cache mishandles newlines in values,
9651# but we know of no workaround that is simple, portable, and efficient.
9652# So, don't put newlines in cache variables' values.
9653# Ultrix sh set writes to stderr and can't be redirected directly,
9654# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9655(set) 2>&1 |
9656 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9657 *ac_space=\ *)
9658 # `set' does not quote correctly, so add quotes (double-quote substitution
9659 # turns \\\\ into \\, and sed turns \\ into \).
9660 sed -n \
9661 -e "s/'/'\\\\''/g" \
9662 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9663 ;;
9664 *)
9665 # `set' quotes correctly as required by POSIX, so do not add quotes.
9666 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9667 ;;
9668 esac >> confcache
9669if cmp -s $cache_file confcache; then
9670 :
9671else
10f2d63a 9672 if test -w $cache_file; then
698dcdb6
VZ
9673 echo "updating cache $cache_file"
9674 cat confcache > $cache_file
10f2d63a
VZ
9675 else
9676 echo "not updating unwritable cache $cache_file"
9677 fi
9678fi
9679rm -f confcache
9680
698dcdb6
VZ
9681
9682
4f14bcd8 9683
18dbb1f6
VZ
9684REGEX_INCLUDE=
9685if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9686 cat >> confdefs.h <<\EOF
9687#define wxUSE_REGEX 1
9688EOF
9689
9690
9691 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9692 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9693echo $ac_n "checking for regex.h""... $ac_c" 1>&6
f79bd02d 9694echo "configure:9695: checking for regex.h" >&5
18dbb1f6
VZ
9695if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9697else
9698 cat > conftest.$ac_ext <<EOF
f79bd02d 9699#line 9700 "configure"
18dbb1f6
VZ
9700#include "confdefs.h"
9701#include <regex.h>
9702EOF
9703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 9704{ (eval echo configure:9705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9706if test -z "$ac_err"; then
9707 rm -rf conftest*
9708 eval "ac_cv_header_$ac_safe=yes"
9709else
9710 echo "$ac_err" >&5
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=no"
9715fi
9716rm -f conftest*
9717fi
9718if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 for ac_func in regcomp
9721do
9722echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 9723echo "configure:9724: checking for $ac_func" >&5
18dbb1f6
VZ
9724if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726else
9727 cat > conftest.$ac_ext <<EOF
f79bd02d 9728#line 9729 "configure"
18dbb1f6
VZ
9729#include "confdefs.h"
9730/* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9732#include <assert.h>
9733/* Override any gcc2 internal prototype to avoid an error. */
9734/* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736char $ac_func();
9737
9738int main() {
9739
9740/* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9744choke me
9745#else
9746$ac_func();
9747#endif
9748
9749; return 0; }
9750EOF
f79bd02d 9751if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9752 rm -rf conftest*
9753 eval "ac_cv_func_$ac_func=yes"
9754else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_func_$ac_func=no"
9759fi
9760rm -f conftest*
9761fi
9762
9763if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9766 cat >> confdefs.h <<EOF
9767#define $ac_tr_func 1
9768EOF
9769
9770else
9771 echo "$ac_t""no" 1>&6
9772fi
9773done
9774
9775else
9776 echo "$ac_t""no" 1>&6
9777fi
9778
9779
4f14bcd8
GD
9780 if test "x$ac_cv_func_regcomp" != "xyes"; then
9781 if test "$wxUSE_REGEX" = "sys" ; then
9782 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9783 else
a3df447d 9784 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9785 wxUSE_REGEX=builtin
9786 fi
9787 else
9788 wxUSE_REGEX=sys
18dbb1f6 9789 fi
18dbb1f6
VZ
9790 fi
9791
4f14bcd8
GD
9792 if test "$wxUSE_REGEX" = "builtin" ; then
9793 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9794 fi
18dbb1f6
VZ
9795fi
9796
9797
4f14bcd8
GD
9798ZLIB_INCLUDE=
9799ZLIB_LINK=
9800if test "$wxUSE_ZLIB" != "no" ; then
9801 cat >> confdefs.h <<\EOF
9802#define wxUSE_ZLIB 1
9803EOF
dad6c0ea 9804
10f2d63a 9805
4f14bcd8
GD
9806 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9807 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9808echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
f79bd02d 9809echo "configure:9810: checking for zlib.h" >&5
3a922bb4
RL
9810if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812else
9813 cat > conftest.$ac_ext <<EOF
f79bd02d 9814#line 9815 "configure"
3a922bb4 9815#include "confdefs.h"
4f14bcd8 9816#include <zlib.h>
3a922bb4
RL
9817EOF
9818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 9819{ (eval echo configure:9820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821if test -z "$ac_err"; then
9822 rm -rf conftest*
9823 eval "ac_cv_header_$ac_safe=yes"
9824else
9825 echo "$ac_err" >&5
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9828 rm -rf conftest*
9829 eval "ac_cv_header_$ac_safe=no"
9830fi
9831rm -f conftest*
9832fi
9833if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
4f14bcd8 9835 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
f79bd02d 9836echo "configure:9837: checking for deflate in -lz" >&5
4f14bcd8
GD
9837ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9840else
9841 ac_save_LIBS="$LIBS"
9842LIBS="-lz $LIBS"
9843cat > conftest.$ac_ext <<EOF
f79bd02d 9844#line 9845 "configure"
4f14bcd8
GD
9845#include "confdefs.h"
9846/* Override any gcc2 internal prototype to avoid an error. */
9847/* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849char deflate();
9850
9851int main() {
9852deflate()
9853; return 0; }
3a922bb4 9854EOF
f79bd02d 9855if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9856 rm -rf conftest*
9857 eval "ac_cv_lib_$ac_lib_var=yes"
9858else
9859 echo "configure: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 rm -rf conftest*
9862 eval "ac_cv_lib_$ac_lib_var=no"
9863fi
9864rm -f conftest*
9865LIBS="$ac_save_LIBS"
9866
9867fi
9868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
3d63bc3a 9870 ZLIB_LINK=" -lz"
3a922bb4
RL
9871else
9872 echo "$ac_t""no" 1>&6
9873fi
10f2d63a 9874
4f14bcd8
GD
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878
9879
9880 if test "x$ZLIB_LINK" = "x" ; then
9881 if test "$wxUSE_ZLIB" = "sys" ; then
9882 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9883 else
a3df447d 9884 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9885 wxUSE_ZLIB=builtin
9886 fi
9887 else
9888 wxUSE_ZLIB=sys
9889 fi
9890 fi
9891
9892 if test "$wxUSE_ZLIB" = "builtin" ; then
9893 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9894 fi
9895fi
9896
9897
9898PNG_INCLUDE=
9899PNG_LINK=
9900if test "$wxUSE_LIBPNG" != "no" ; then
9901 cat >> confdefs.h <<\EOF
9902#define wxUSE_LIBPNG 1
9903EOF
9904
81809c07
VS
9905
9906 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9907 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9908 wxUSE_LIBPNG=sys
9909 fi
4f14bcd8 9910
81809c07 9911 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9912 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9913 wxUSE_LIBPNG=builtin
9914 fi
9915
81809c07
VS
9916 if test "$wxUSE_MGL" != 1 ; then
9917 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9918 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4f14bcd8 9919echo $ac_n "checking for png.h""... $ac_c" 1>&6
f79bd02d 9920echo "configure:9921: checking for png.h" >&5
d4158b5d
VS
9921if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9923else
9924 cat > conftest.$ac_ext <<EOF
f79bd02d 9925#line 9926 "configure"
d4158b5d 9926#include "confdefs.h"
4f14bcd8 9927#include <png.h>
d4158b5d
VS
9928EOF
9929ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 9930{ (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9931ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9932if test -z "$ac_err"; then
9933 rm -rf conftest*
9934 eval "ac_cv_header_$ac_safe=yes"
9935else
9936 echo "$ac_err" >&5
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 eval "ac_cv_header_$ac_safe=no"
9941fi
9942rm -f conftest*
9943fi
9944if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
4f14bcd8 9946 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
f79bd02d 9947echo "configure:9948: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9948ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9949if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9950 echo $ac_n "(cached) $ac_c" 1>&6
9951else
4f14bcd8
GD
9952 ac_save_LIBS="$LIBS"
9953LIBS="-lpng -lz -lm $LIBS"
9954cat > conftest.$ac_ext <<EOF
f79bd02d 9955#line 9956 "configure"
3a922bb4 9956#include "confdefs.h"
4f14bcd8
GD
9957/* Override any gcc2 internal prototype to avoid an error. */
9958/* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9960char png_check_sig();
f6bcfd97 9961
4f14bcd8
GD
9962int main() {
9963png_check_sig()
3a922bb4
RL
9964; return 0; }
9965EOF
f79bd02d 9966if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9967 rm -rf conftest*
4f14bcd8 9968 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9969else
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 rm -rf conftest*
4f14bcd8 9973 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9974fi
9975rm -f conftest*
4f14bcd8 9976LIBS="$ac_save_LIBS"
10f2d63a 9977
4f14bcd8
GD
9978fi
9979if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
3d63bc3a 9981 PNG_LINK=" -lpng"
4f14bcd8
GD
9982else
9983 echo "$ac_t""no" 1>&6
9984fi
32832908 9985
81809c07 9986
4f14bcd8
GD
9987else
9988 echo "$ac_t""no" 1>&6
9989fi
3a922bb4 9990
7b7a7637 9991
81809c07
VS
9992 if test "x$PNG_LINK" = "x" ; then
9993 if test "$wxUSE_LIBPNG" = "sys" ; then
9994 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9995 else
9996 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9997 wxUSE_LIBPNG=builtin
9998 fi
4f14bcd8 9999 else
81809c07 10000 wxUSE_LIBPNG=yes
4f14bcd8 10001 fi
4f14bcd8 10002 fi
3a922bb4
RL
10003 fi
10004
4f14bcd8
GD
10005 if test "$wxUSE_LIBPNG" = "builtin" ; then
10006 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
10007 fi
10008
4f14bcd8 10009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
10010fi
10011
32832908 10012
4f14bcd8
GD
10013JPEG_INCLUDE=
10014JPEG_LINK=
10015if test "$wxUSE_LIBJPEG" != "no" ; then
10016 cat >> confdefs.h <<\EOF
10017#define wxUSE_LIBJPEG 1
10018EOF
10f2d63a 10019
8168de4c 10020
81809c07
VS
10021 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
10022 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
10023 wxUSE_LIBJPEG=sys
10024 fi
10025
10026 if test "$wxUSE_MGL" != 1 ; then
10027 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
10028 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
f79bd02d 10029echo "configure:10030: checking for jpeglib.h" >&5
81809c07 10030 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032else
4f14bcd8 10033 cat > conftest.$ac_ext <<EOF
f79bd02d 10034#line 10035 "configure"
4f14bcd8 10035#include "confdefs.h"
8168de4c 10036
81809c07
VS
10037 #undef HAVE_STDLIB_H
10038 #include <stdio.h>
10039 #include <jpeglib.h>
10040
4f14bcd8
GD
10041int main() {
10042
81809c07 10043
4f14bcd8
GD
10044; return 0; }
10045EOF
f79bd02d 10046if { (eval echo configure:10047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10047 rm -rf conftest*
10048 ac_cv_header_jpeglib_h=yes
6f72b082 10049else
4f14bcd8
GD
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 rm -rf conftest*
10053 ac_cv_header_jpeglib_h=no
81809c07 10054
4f14bcd8
GD
10055fi
10056rm -f conftest*
81809c07 10057
698dcdb6 10058fi
6f72b082 10059
81809c07 10060 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
4f14bcd8 10061
81809c07
VS
10062 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10063 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
f79bd02d 10064echo "configure:10065: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
10065ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10068else
4f14bcd8
GD
10069 ac_save_LIBS="$LIBS"
10070LIBS="-ljpeg $LIBS"
10071cat > conftest.$ac_ext <<EOF
f79bd02d 10072#line 10073 "configure"
4f14bcd8
GD
10073#include "confdefs.h"
10074/* Override any gcc2 internal prototype to avoid an error. */
10075/* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077char jpeg_read_header();
698dcdb6 10078
4f14bcd8
GD
10079int main() {
10080jpeg_read_header()
10081; return 0; }
10082EOF
f79bd02d 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10084 rm -rf conftest*
10085 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 10086else
4f14bcd8
GD
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 10091fi
4f14bcd8
GD
10092rm -f conftest*
10093LIBS="$ac_save_LIBS"
698dcdb6 10094
4f14bcd8
GD
10095fi
10096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
3d63bc3a 10098 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
10099else
10100 echo "$ac_t""no" 1>&6
10101fi
10102
81809c07 10103 fi
4f14bcd8 10104
81809c07
VS
10105 if test "x$JPEG_LINK" = "x" ; then
10106 if test "$wxUSE_LIBJPEG" = "sys" ; then
10107 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10108 else
10109 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10110 wxUSE_LIBJPEG=builtin
10111 fi
4f14bcd8 10112 else
81809c07 10113 wxUSE_LIBJPEG=sys
4f14bcd8 10114 fi
4f14bcd8
GD
10115 fi
10116 fi
10117
10118 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10119 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10120 fi
10121fi
10122
10123
10124TIFF_INCLUDE=
10125TIFF_LINK=
10126if test "$wxUSE_LIBTIFF" != "no" ; then
10127 cat >> confdefs.h <<\EOF
10128#define wxUSE_LIBTIFF 1
10129EOF
10130
10131
10132 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10133 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10134echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
f79bd02d 10135echo "configure:10136: checking for tiffio.h" >&5
4f14bcd8
GD
10136if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138else
10139 cat > conftest.$ac_ext <<EOF
f79bd02d 10140#line 10141 "configure"
4f14bcd8
GD
10141#include "confdefs.h"
10142#include <tiffio.h>
10143EOF
10144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 10145{ (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10147if test -z "$ac_err"; then
10148 rm -rf conftest*
10149 eval "ac_cv_header_$ac_safe=yes"
10150else
10151 echo "$ac_err" >&5
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=no"
10156fi
10157rm -f conftest*
10158fi
10159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
f79bd02d 10162echo "configure:10163: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
10163ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166else
10167 ac_save_LIBS="$LIBS"
10168LIBS="-ltiff -lm $LIBS"
10169cat > conftest.$ac_ext <<EOF
f79bd02d 10170#line 10171 "configure"
4f14bcd8
GD
10171#include "confdefs.h"
10172/* Override any gcc2 internal prototype to avoid an error. */
10173/* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10175char TIFFError();
10176
10177int main() {
10178TIFFError()
10179; return 0; }
10180EOF
f79bd02d 10181if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=yes"
10184else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_lib_$ac_lib_var=no"
10189fi
10190rm -f conftest*
10191LIBS="$ac_save_LIBS"
10192
10193fi
10194if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
3d63bc3a 10196 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10197else
10198 echo "$ac_t""no" 1>&6
10199fi
10200
10201
10202else
10203 echo "$ac_t""no" 1>&6
10204fi
10205
10206
10207 if test "x$TIFF_LINK" = "x" ; then
10208 if test "$wxUSE_LIBTIFF" = "sys" ; then
10209 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10210 else
a3df447d 10211 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10212 wxUSE_LIBTIFF=builtin
10213 fi
10214 else
10215 wxUSE_LIBTIFF=sys
10216 fi
10217 fi
10218
10219 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10220 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10221 fi
10222fi
10223
10224
10225FREETYPE_INCLUDE=
10226FREETYPE_LINK=
10227if test "$wxUSE_FREETYPE" != "no" ; then
10228 cat >> confdefs.h <<\EOF
10229#define wxUSE_FREETYPE 1
10230EOF
10231
10232
10233 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10234 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10235echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
f79bd02d 10236echo "configure:10237: checking for freetype.h" >&5
4f14bcd8
GD
10237if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239else
10240 cat > conftest.$ac_ext <<EOF
f79bd02d 10241#line 10242 "configure"
4f14bcd8
GD
10242#include "confdefs.h"
10243#include <freetype.h>
10244EOF
10245ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 10246{ (eval echo configure:10247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10247ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10248if test -z "$ac_err"; then
10249 rm -rf conftest*
10250 eval "ac_cv_header_$ac_safe=yes"
10251else
10252 echo "$ac_err" >&5
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 eval "ac_cv_header_$ac_safe=no"
10257fi
10258rm -f conftest*
10259fi
10260if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
f79bd02d 10263echo "configure:10264: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
10264ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10265if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267else
10268 ac_save_LIBS="$LIBS"
10269LIBS="-lfreetype -lm $LIBS"
10270cat > conftest.$ac_ext <<EOF
f79bd02d 10271#line 10272 "configure"
4f14bcd8
GD
10272#include "confdefs.h"
10273/* Override any gcc2 internal prototype to avoid an error. */
10274/* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276char FT_Render_Glyph();
10277
10278int main() {
10279FT_Render_Glyph()
10280; return 0; }
10281EOF
f79bd02d 10282if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10283 rm -rf conftest*
10284 eval "ac_cv_lib_$ac_lib_var=yes"
10285else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 eval "ac_cv_lib_$ac_lib_var=no"
10290fi
10291rm -f conftest*
10292LIBS="$ac_save_LIBS"
10293
10294fi
10295if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
3d63bc3a 10297 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
10298else
10299 echo "$ac_t""no" 1>&6
10300fi
10301
10302
10303else
10304 echo "$ac_t""no" 1>&6
10305fi
10306
10307
10308 if test "x$FREETYPE_LINK" = "x" ; then
10309 if test "$wxUSE_FREETYPE" = "sys" ; then
10310 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10311 else
a3df447d 10312 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10313 wxUSE_FREETYPE=builtin
10314 fi
10315 else
10316 wxUSE_FREETYPE=sys
10317 fi
10318 fi
10319
10320 if test "$wxUSE_FREETYPE" = "builtin" ; then
10321 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10322 fi
10323fi
10324
10325
10326AFMINSTALL=
10327
10328TOOLKIT=
10329TOOLKIT_INCLUDE=
10330WIDGET_SET=
10331
10332if test "$USE_WIN32" = 1 ; then
10333 for ac_hdr in w32api.h
10334do
10335ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10336echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 10337echo "configure:10338: checking for $ac_hdr" >&5
4f14bcd8
GD
10338if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10339 echo $ac_n "(cached) $ac_c" 1>&6
10340else
10341 cat > conftest.$ac_ext <<EOF
f79bd02d 10342#line 10343 "configure"
4f14bcd8
GD
10343#include "confdefs.h"
10344#include <$ac_hdr>
10345EOF
10346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 10347{ (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10348ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10349if test -z "$ac_err"; then
10350 rm -rf conftest*
10351 eval "ac_cv_header_$ac_safe=yes"
10352else
10353 echo "$ac_err" >&5
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 rm -rf conftest*
10357 eval "ac_cv_header_$ac_safe=no"
10358fi
10359rm -f conftest*
10360fi
10361if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10364 cat >> confdefs.h <<EOF
10365#define $ac_tr_hdr 1
10366EOF
10367
10368else
10369 echo "$ac_t""no" 1>&6
10370fi
10371done
10372
10373 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10374echo $ac_n "checking for windows.h""... $ac_c" 1>&6
f79bd02d 10375echo "configure:10376: checking for windows.h" >&5
4f14bcd8
GD
10376if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378else
10379 cat > conftest.$ac_ext <<EOF
f79bd02d 10380#line 10381 "configure"
4f14bcd8
GD
10381#include "confdefs.h"
10382#include <windows.h>
10383EOF
10384ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 10385{ (eval echo configure:10386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10386ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10387if test -z "$ac_err"; then
10388 rm -rf conftest*
10389 eval "ac_cv_header_$ac_safe=yes"
10390else
10391 echo "$ac_err" >&5
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 rm -rf conftest*
10395 eval "ac_cv_header_$ac_safe=no"
10396fi
10397rm -f conftest*
10398fi
10399if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10400 echo "$ac_t""yes" 1>&6
10401 :
10402else
10403 echo "$ac_t""no" 1>&6
10404
10405 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10406
10407fi
10408
10409
10410 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
f79bd02d 10411echo "configure:10412: checking if w32api has good enough MSIE support" >&5
ea7682f0 10412if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10413 echo $ac_n "(cached) $ac_c" 1>&6
10414else
10415
10416 cat > conftest.$ac_ext <<EOF
f79bd02d 10417#line 10418 "configure"
4f14bcd8
GD
10418#include "confdefs.h"
10419#include <w32api.h>
10420int main() {
10421
10422 #define wxCHECK_W32API_VERSION( major, minor ) \
10423 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10424 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10425 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10426
10427 #if !wxCHECK_W32API_VERSION(1,1)
10428 #error You need w32api 1.1 or newer
10429 #endif
10430
10431; return 0; }
10432EOF
f79bd02d 10433if { (eval echo configure:10434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10434 rm -rf conftest*
10435
ea7682f0 10436 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10437
10438else
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10441 rm -rf conftest*
10442
ea7682f0 10443 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10444
10445fi
10446rm -f conftest*
10447
10448fi
10449
ea7682f0
VS
10450echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10451 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10452 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10453 fi
4f14bcd8
GD
10454
10455 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10456
77e13408
RL
10457 case "${host}" in
10458 *-*-cygwin* )
10459 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10460 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10461 esac
4f14bcd8
GD
10462
10463 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10464 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10465 fi
10466
4f14bcd8
GD
10467 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10468 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10469fi
10470
10471if test "$wxUSE_GUI" = "yes"; then
10472 USE_GUI=1
10473
10474 GUI_TK_LIBRARY=
10475
10476 WXGTK12=
10477 WXGTK127=
10478 WXGTK20=
10479
77e13408 10480 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10481 TOOLKIT=MSW
10482 GUIDIST=MSW_DIST
77e13408
RL
10483
10484 case "${host}" in
10485 *-*-mingw32* )
3d63bc3a 10486 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10487 esac
4f14bcd8
GD
10488 fi
10489
10490 if test "$wxUSE_GTK" = 1; then
10491 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
f79bd02d 10492echo "configure:10493: checking for GTK+ version" >&5
4f14bcd8
GD
10493
10494 gtk_version_cached=1
10495 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10497else
10498
10499 gtk_version_cached=0
d48ad9bd 10500 echo "$ac_t""" 1>&6
4f14bcd8 10501
3f345b47
VZ
10502 GTK_MODULES=
10503 if test "$wxUSE_THREADS" = "yes"; then
10504 GTK_MODULES=gthread
10505 fi
10506
4f14bcd8
GD
10507 wx_cv_lib_gtk=
10508 if test "x$wxUSE_GTK2" = "xyes"; then
10509 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10510if test "${with_gtk_prefix+set}" = set; then
10511 withval="$with_gtk_prefix"
10512 gtk_config_prefix="$withval"
10513else
10514 gtk_config_prefix=""
10515fi
10516
10517# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10518if test "${with_gtk_exec_prefix+set}" = set; then
10519 withval="$with_gtk_exec_prefix"
10520 gtk_config_exec_prefix="$withval"
10521else
10522 gtk_config_exec_prefix=""
10523fi
10524
10525# Check whether --enable-gtktest or --disable-gtktest was given.
10526if test "${enable_gtktest+set}" = set; then
10527 enableval="$enable_gtktest"
10528 :
10529else
10530 enable_gtktest=yes
10531fi
10532
10533
3f345b47 10534 for module in . $GTK_MODULES
4f14bcd8 10535 do
6f72b082 10536 case "$module" in
8168de4c 10537 gthread)
6f72b082
OK
10538 gtk_config_args="$gtk_config_args gthread"
10539 ;;
10540 esac
10541 done
10542
10543 if test x$gtk_config_exec_prefix != x ; then
10544 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10545 if test x${GTK_CONFIG_2_0+set} != xset ; then
10546 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10547 fi
10548 fi
10549 if test x$gtk_config_prefix != x ; then
10550 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10551 if test x${GTK_CONFIG_2_0+set} != xset ; then
10552 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10553 fi
10554 fi
10555
10556 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10557set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 10559echo "configure:10560: checking for $ac_word" >&5
698dcdb6
VZ
10560if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10562else
698dcdb6
VZ
10563 case "$GTK_CONFIG_2_0" in
10564 /*)
6f72b082
OK
10565 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10566 ;;
698dcdb6
VZ
10567 ?:/*)
10568 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10569 ;;
6f72b082 10570 *)
698dcdb6
VZ
10571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10572 ac_dummy="$PATH"
10573 for ac_dir in $ac_dummy; do
10574 test -z "$ac_dir" && ac_dir=.
10575 if test -f $ac_dir/$ac_word; then
10576 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10577 break
10578 fi
10579 done
10580 IFS="$ac_save_ifs"
6f72b082
OK
10581 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10582 ;;
10583esac
10584fi
698dcdb6 10585GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10586if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10587 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10588else
698dcdb6 10589 echo "$ac_t""no" 1>&6
6f72b082
OK
10590fi
10591
10592 min_gtk_version=1.3.1
698dcdb6 10593 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f79bd02d 10594echo "configure:10595: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10595 no_gtk=""
10596 if test "$GTK_CONFIG_2_0" = "no" ; then
10597 no_gtk=yes
10598 else
10599 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10600 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10601 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10602 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10603 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10605 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10607 if test "x$enable_gtktest" = "xyes" ; then
10608 ac_save_CFLAGS="$CFLAGS"
10609 ac_save_LIBS="$LIBS"
10610 CFLAGS="$CFLAGS $GTK_CFLAGS"
10611 LIBS="$GTK_LIBS $LIBS"
10612 rm -f conf.gtktest
10613 if test "$cross_compiling" = yes; then
10614 echo $ac_n "cross compiling; assumed OK... $ac_c"
10615else
698dcdb6 10616 cat > conftest.$ac_ext <<EOF
f79bd02d 10617#line 10618 "configure"
6f72b082
OK
10618#include "confdefs.h"
10619
10620#include <gtk/gtk.h>
10621#include <stdio.h>
10622#include <stdlib.h>
10623
8168de4c 10624int
6f72b082
OK
10625main ()
10626{
10627 int major, minor, micro;
10628 char *tmp_version;
10629
10630 system ("touch conf.gtktest");
10631
10632 /* HP/UX 9 (%@#!) writes to sscanf strings */
10633 tmp_version = g_strdup("$min_gtk_version");
10634 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10635 printf("%s, bad version string\n", "$min_gtk_version");
10636 exit(1);
10637 }
10638
10639 if ((gtk_major_version != $gtk_config_major_version) ||
10640 (gtk_minor_version != $gtk_config_minor_version) ||
10641 (gtk_micro_version != $gtk_config_micro_version))
10642 {
8168de4c 10643 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10644 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10645 gtk_major_version, gtk_minor_version, gtk_micro_version);
10646 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10647 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10648 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10649 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10650 printf("*** required on your system.\n");
10651 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10652 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10653 printf("*** before re-running configure\n");
8168de4c 10654 }
6f72b082
OK
10655#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10656 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10657 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10658 (gtk_micro_version != GTK_MICRO_VERSION))
10659 {
10660 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10661 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10662 printf("*** library (version %d.%d.%d)\n",
8168de4c 10663 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10664 }
10665#endif /* defined (GTK_MAJOR_VERSION) ... */
10666 else
10667 {
10668 if ((gtk_major_version > major) ||
10669 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10670 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10671 {
10672 return 0;
10673 }
10674 else
10675 {
10676 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10677 gtk_major_version, gtk_minor_version, gtk_micro_version);
10678 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10679 major, minor, micro);
6f72b082
OK
10680 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10681 printf("***\n");
10682 printf("*** If you have already installed a sufficiently new version, this error\n");
10683 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10684 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10685 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10686 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10687 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10688 printf("*** so that the correct libraries are found at run-time))\n");
10689 }
10690 }
10691 return 1;
10692}
10693
698dcdb6 10694EOF
f79bd02d 10695if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10696then
6f72b082
OK
10697 :
10698else
698dcdb6
VZ
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 rm -fr conftest*
10702 no_gtk=yes
6f72b082 10703fi
698dcdb6 10704rm -fr conftest*
6f72b082 10705fi
698dcdb6 10706
6f72b082
OK
10707 CFLAGS="$ac_save_CFLAGS"
10708 LIBS="$ac_save_LIBS"
10709 fi
10710 fi
10711 if test "x$no_gtk" = x ; then
698dcdb6 10712 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10713 wx_cv_lib_gtk=2.0
6f72b082 10714 else
698dcdb6 10715 echo "$ac_t""no" 1>&6
6f72b082
OK
10716 if test "$GTK_CONFIG_2_0" = "no" ; then
10717 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10718 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10719 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10720 echo "*** full path to gtk-config-2.0."
10721 else
10722 if test -f conf.gtktest ; then
10723 :
10724 else
10725 echo "*** Could not run GTK test program, checking why..."
10726 CFLAGS="$CFLAGS $GTK_CFLAGS"
10727 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10728 cat > conftest.$ac_ext <<EOF
f79bd02d 10729#line 10730 "configure"
6f72b082
OK
10730#include "confdefs.h"
10731
10732#include <gtk/gtk.h>
10733#include <stdio.h>
10734
698dcdb6
VZ
10735int main() {
10736 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10737; return 0; }
10738EOF
f79bd02d 10739if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10740 rm -rf conftest*
6f72b082
OK
10741 echo "*** The test program compiled, but did not run. This usually means"
10742 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10743 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10744 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10745 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10746 echo "*** is required on your system"
8168de4c 10747 echo "***"
6f72b082
OK
10748 echo "*** If you have an old version installed, it is best to remove it, although"
10749 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10750 echo "***"
10751 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10752 echo "*** came with the system with the command"
10753 echo "***"
698dcdb6 10754 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10755else
698dcdb6
VZ
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10760 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10761 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10762 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10763fi
698dcdb6 10764rm -f conftest*
6f72b082
OK
10765 CFLAGS="$ac_save_CFLAGS"
10766 LIBS="$ac_save_LIBS"
10767 fi
10768 fi
10769 GTK_CFLAGS=""
10770 GTK_LIBS=""
3f345b47 10771 :
8168de4c
VZ
10772 fi
10773
10774
10775 rm -f conf.gtktest
10776
10777 fi
10778
10779 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10780 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10781if test "${with_gtk_prefix+set}" = set; then
10782 withval="$with_gtk_prefix"
10783 gtk_config_prefix="$withval"
10784else
10785 gtk_config_prefix=""
10786fi
10787
10788# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10789if test "${with_gtk_exec_prefix+set}" = set; then
10790 withval="$with_gtk_exec_prefix"
10791 gtk_config_exec_prefix="$withval"
10792else
10793 gtk_config_exec_prefix=""
10794fi
10795
10796# Check whether --enable-gtktest or --disable-gtktest was given.
10797if test "${enable_gtktest+set}" = set; then
10798 enableval="$enable_gtktest"
10799 :
10800else
10801 enable_gtktest=yes
10802fi
10803
10804
10805 for module in . $GTK_MODULES
10806 do
10807 case "$module" in
10808 gthread)
10809 gtk_config_args="$gtk_config_args gthread"
10810 ;;
10811 esac
10812 done
10813
10f2d63a
VZ
10814 if test x$gtk_config_exec_prefix != x ; then
10815 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10816 if test x${GTK_CONFIG+set} != xset ; then
10817 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10818 fi
10819 fi
10820 if test x$gtk_config_prefix != x ; then
10821 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10822 if test x${GTK_CONFIG+set} != xset ; then
10823 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10824 fi
10825 fi
10826
10827 # Extract the first word of "gtk-config", so it can be a program name with args.
10828set dummy gtk-config; ac_word=$2
698dcdb6 10829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 10830echo "configure:10831: checking for $ac_word" >&5
698dcdb6
VZ
10831if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10833else
698dcdb6
VZ
10834 case "$GTK_CONFIG" in
10835 /*)
f6bcfd97
BP
10836 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10837 ;;
698dcdb6
VZ
10838 ?:/*)
10839 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10840 ;;
f6bcfd97 10841 *)
698dcdb6
VZ
10842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10843 ac_dummy="$PATH"
10844 for ac_dir in $ac_dummy; do
10845 test -z "$ac_dir" && ac_dir=.
10846 if test -f $ac_dir/$ac_word; then
10847 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10848 break
10849 fi
10850 done
10851 IFS="$ac_save_ifs"
f6bcfd97
BP
10852 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10853 ;;
10854esac
10855fi
698dcdb6 10856GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10857if test -n "$GTK_CONFIG"; then
698dcdb6 10858 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10859else
698dcdb6 10860 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10861fi
10862
10863 min_gtk_version=1.2.7
698dcdb6 10864 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f79bd02d 10865echo "configure:10866: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10866 no_gtk=""
3f345b47
VZ
10867 if test "$GTK_CONFIG" = "no" ; then
10868 no_gtk=yes
10869 else
10870 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10871 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10872 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10873 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10874 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10876 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10878 if test "x$enable_gtktest" = "xyes" ; then
10879 ac_save_CFLAGS="$CFLAGS"
10880 ac_save_LIBS="$LIBS"
10881 CFLAGS="$CFLAGS $GTK_CFLAGS"
10882 LIBS="$GTK_LIBS $LIBS"
10883 rm -f conf.gtktest
10884 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10885 echo $ac_n "cross compiling; assumed OK... $ac_c"
10886else
698dcdb6 10887 cat > conftest.$ac_ext <<EOF
f79bd02d 10888#line 10889 "configure"
f6bcfd97
BP
10889#include "confdefs.h"
10890
10891#include <gtk/gtk.h>
f6bcfd97
BP
10892#include <stdio.h>
10893#include <stdlib.h>
10894
3f345b47 10895int
f6bcfd97
BP
10896main ()
10897{
10898 int major, minor, micro;
3f345b47 10899 char *tmp_version;
f6bcfd97 10900
3f345b47 10901 system ("touch conf.gtktest");
f6bcfd97 10902
3f345b47
VZ
10903 /* HP/UX 9 (%@#!) writes to sscanf strings */
10904 tmp_version = g_strdup("$min_gtk_version");
10905 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10906 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10907 exit(1);
10908 }
10909
3f345b47
VZ
10910 if ((gtk_major_version != $gtk_config_major_version) ||
10911 (gtk_minor_version != $gtk_config_minor_version) ||
10912 (gtk_micro_version != $gtk_config_micro_version))
10913 {
10914 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10915 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10916 gtk_major_version, gtk_minor_version, gtk_micro_version);
10917 printf ("*** was found! If gtk-config was correct, then it is best\n");
10918 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10919 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10920 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10921 printf("*** required on your system.\n");
10922 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10923 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10924 printf("*** before re-running configure\n");
10925 }
10926#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10927 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10928 (gtk_minor_version != GTK_MINOR_VERSION) ||
10929 (gtk_micro_version != GTK_MICRO_VERSION))
10930 {
10931 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10932 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10933 printf("*** library (version %d.%d.%d)\n",
10934 gtk_major_version, gtk_minor_version, gtk_micro_version);
10935 }
10936#endif /* defined (GTK_MAJOR_VERSION) ... */
10937 else
10938 {
10939 if ((gtk_major_version > major) ||
10940 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10941 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10942 {
10943 return 0;
10944 }
10945 else
10946 {
10947 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10948 gtk_major_version, gtk_minor_version, gtk_micro_version);
10949 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10950 major, minor, micro);
10951 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10952 printf("***\n");
10953 printf("*** If you have already installed a sufficiently new version, this error\n");
10954 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10955 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10956 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10957 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10958 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10959 printf("*** so that the correct libraries are found at run-time))\n");
10960 }
10961 }
10962 return 1;
f6bcfd97
BP
10963}
10964
698dcdb6 10965EOF
f79bd02d 10966if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10967then
f6bcfd97
BP
10968 :
10969else
698dcdb6
VZ
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -fr conftest*
10973 no_gtk=yes
f6bcfd97 10974fi
698dcdb6 10975rm -fr conftest*
f6bcfd97 10976fi
698dcdb6 10977
3f345b47
VZ
10978 CFLAGS="$ac_save_CFLAGS"
10979 LIBS="$ac_save_LIBS"
10980 fi
f6bcfd97
BP
10981 fi
10982 if test "x$no_gtk" = x ; then
698dcdb6 10983 echo "$ac_t""yes" 1>&6
3f345b47 10984 wx_cv_lib_gtk=1.2.7
f6bcfd97 10985 else
698dcdb6 10986 echo "$ac_t""no" 1>&6
3f345b47
VZ
10987 if test "$GTK_CONFIG" = "no" ; then
10988 echo "*** The gtk-config script installed by GTK could not be found"
10989 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10990 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10991 echo "*** full path to gtk-config."
10992 else
10993 if test -f conf.gtktest ; then
10994 :
10995 else
10996 echo "*** Could not run GTK test program, checking why..."
10997 CFLAGS="$CFLAGS $GTK_CFLAGS"
10998 LIBS="$LIBS $GTK_LIBS"
10999 cat > conftest.$ac_ext <<EOF
f79bd02d 11000#line 11001 "configure"
3f345b47
VZ
11001#include "confdefs.h"
11002
11003#include <gtk/gtk.h>
11004#include <stdio.h>
11005
11006int main() {
11007 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11008; return 0; }
11009EOF
f79bd02d 11010if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11011 rm -rf conftest*
11012 echo "*** The test program compiled, but did not run. This usually means"
11013 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11014 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11015 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11016 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11017 echo "*** is required on your system"
11018 echo "***"
11019 echo "*** If you have an old version installed, it is best to remove it, although"
11020 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11021 echo "***"
11022 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11023 echo "*** came with the system with the command"
11024 echo "***"
11025 echo "*** rpm --erase --nodeps gtk gtk-devel"
11026else
11027 echo "configure: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 rm -rf conftest*
11030 echo "*** The test program failed to compile or link. See the file config.log for the"
11031 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11032 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11033 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11034fi
11035rm -f conftest*
11036 CFLAGS="$ac_save_CFLAGS"
11037 LIBS="$ac_save_LIBS"
11038 fi
11039 fi
f6bcfd97
BP
11040 GTK_CFLAGS=""
11041 GTK_LIBS=""
11042 :
11043 fi
698dcdb6
VZ
11044
11045
3f345b47 11046 rm -f conf.gtktest
f6bcfd97 11047
8168de4c
VZ
11048 fi
11049
11050 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
11051 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11052if test "${with_gtk_prefix+set}" = set; then
11053 withval="$with_gtk_prefix"
11054 gtk_config_prefix="$withval"
11055else
11056 gtk_config_prefix=""
11057fi
11058
11059# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11060if test "${with_gtk_exec_prefix+set}" = set; then
11061 withval="$with_gtk_exec_prefix"
11062 gtk_config_exec_prefix="$withval"
11063else
11064 gtk_config_exec_prefix=""
11065fi
11066
11067# Check whether --enable-gtktest or --disable-gtktest was given.
11068if test "${enable_gtktest+set}" = set; then
11069 enableval="$enable_gtktest"
11070 :
11071else
11072 enable_gtktest=yes
11073fi
11074
11075
11076 for module in . $GTK_MODULES
11077 do
11078 case "$module" in
11079 gthread)
11080 gtk_config_args="$gtk_config_args gthread"
11081 ;;
11082 esac
11083 done
11084
f6bcfd97
BP
11085 if test x$gtk_config_exec_prefix != x ; then
11086 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11087 if test x${GTK_CONFIG+set} != xset ; then
11088 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11089 fi
11090 fi
11091 if test x$gtk_config_prefix != x ; then
11092 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11093 if test x${GTK_CONFIG+set} != xset ; then
11094 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11095 fi
11096 fi
11097
11098 # Extract the first word of "gtk-config", so it can be a program name with args.
11099set dummy gtk-config; ac_word=$2
698dcdb6 11100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 11101echo "configure:11102: checking for $ac_word" >&5
698dcdb6
VZ
11102if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11104else
698dcdb6
VZ
11105 case "$GTK_CONFIG" in
11106 /*)
10f2d63a
VZ
11107 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11108 ;;
698dcdb6
VZ
11109 ?:/*)
11110 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11111 ;;
10f2d63a 11112 *)
698dcdb6
VZ
11113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11114 ac_dummy="$PATH"
11115 for ac_dir in $ac_dummy; do
11116 test -z "$ac_dir" && ac_dir=.
11117 if test -f $ac_dir/$ac_word; then
11118 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11119 break
11120 fi
11121 done
11122 IFS="$ac_save_ifs"
10f2d63a
VZ
11123 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11124 ;;
11125esac
11126fi
698dcdb6 11127GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 11128if test -n "$GTK_CONFIG"; then
698dcdb6 11129 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 11130else
698dcdb6 11131 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11132fi
11133
04165bec 11134 min_gtk_version=1.2.3
698dcdb6 11135 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f79bd02d 11136echo "configure:11137: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 11137 no_gtk=""
3f345b47
VZ
11138 if test "$GTK_CONFIG" = "no" ; then
11139 no_gtk=yes
11140 else
11141 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11142 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11143 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11145 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11147 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11149 if test "x$enable_gtktest" = "xyes" ; then
11150 ac_save_CFLAGS="$CFLAGS"
11151 ac_save_LIBS="$LIBS"
11152 CFLAGS="$CFLAGS $GTK_CFLAGS"
11153 LIBS="$GTK_LIBS $LIBS"
11154 rm -f conf.gtktest
11155 if test "$cross_compiling" = yes; then
10f2d63a
VZ
11156 echo $ac_n "cross compiling; assumed OK... $ac_c"
11157else
698dcdb6 11158 cat > conftest.$ac_ext <<EOF
f79bd02d 11159#line 11160 "configure"
10f2d63a
VZ
11160#include "confdefs.h"
11161
11162#include <gtk/gtk.h>
11163#include <stdio.h>
32832908 11164#include <stdlib.h>
10f2d63a 11165
3f345b47 11166int
10f2d63a
VZ
11167main ()
11168{
11169 int major, minor, micro;
3f345b47 11170 char *tmp_version;
10f2d63a 11171
3f345b47 11172 system ("touch conf.gtktest");
10f2d63a 11173
3f345b47
VZ
11174 /* HP/UX 9 (%@#!) writes to sscanf strings */
11175 tmp_version = g_strdup("$min_gtk_version");
11176 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11177 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
11178 exit(1);
11179 }
11180
3f345b47
VZ
11181 if ((gtk_major_version != $gtk_config_major_version) ||
11182 (gtk_minor_version != $gtk_config_minor_version) ||
11183 (gtk_micro_version != $gtk_config_micro_version))
11184 {
11185 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11186 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11187 gtk_major_version, gtk_minor_version, gtk_micro_version);
11188 printf ("*** was found! If gtk-config was correct, then it is best\n");
11189 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11190 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11191 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11192 printf("*** required on your system.\n");
11193 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11194 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11195 printf("*** before re-running configure\n");
11196 }
11197#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11198 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11199 (gtk_minor_version != GTK_MINOR_VERSION) ||
11200 (gtk_micro_version != GTK_MICRO_VERSION))
11201 {
11202 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11203 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11204 printf("*** library (version %d.%d.%d)\n",
11205 gtk_major_version, gtk_minor_version, gtk_micro_version);
11206 }
11207#endif /* defined (GTK_MAJOR_VERSION) ... */
11208 else
11209 {
11210 if ((gtk_major_version > major) ||
11211 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11212 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11213 {
11214 return 0;
11215 }
11216 else
11217 {
11218 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11219 gtk_major_version, gtk_minor_version, gtk_micro_version);
11220 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11221 major, minor, micro);
11222 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11223 printf("***\n");
11224 printf("*** If you have already installed a sufficiently new version, this error\n");
11225 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11226 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11227 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11228 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11229 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11230 printf("*** so that the correct libraries are found at run-time))\n");
11231 }
11232 }
11233 return 1;
10f2d63a
VZ
11234}
11235
698dcdb6 11236EOF
f79bd02d 11237if { (eval echo configure:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11238then
10f2d63a
VZ
11239 :
11240else
698dcdb6
VZ
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 rm -fr conftest*
11244 no_gtk=yes
10f2d63a 11245fi
698dcdb6 11246rm -fr conftest*
10f2d63a 11247fi
698dcdb6 11248
3f345b47
VZ
11249 CFLAGS="$ac_save_CFLAGS"
11250 LIBS="$ac_save_LIBS"
11251 fi
10f2d63a
VZ
11252 fi
11253 if test "x$no_gtk" = x ; then
698dcdb6 11254 echo "$ac_t""yes" 1>&6
3f345b47 11255 wx_cv_lib_gtk=1.2.3
10f2d63a 11256 else
698dcdb6 11257 echo "$ac_t""no" 1>&6
3f345b47
VZ
11258 if test "$GTK_CONFIG" = "no" ; then
11259 echo "*** The gtk-config script installed by GTK could not be found"
11260 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11261 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11262 echo "*** full path to gtk-config."
11263 else
11264 if test -f conf.gtktest ; then
11265 :
11266 else
11267 echo "*** Could not run GTK test program, checking why..."
11268 CFLAGS="$CFLAGS $GTK_CFLAGS"
11269 LIBS="$LIBS $GTK_LIBS"
11270 cat > conftest.$ac_ext <<EOF
f79bd02d 11271#line 11272 "configure"
3f345b47
VZ
11272#include "confdefs.h"
11273
11274#include <gtk/gtk.h>
11275#include <stdio.h>
11276
11277int main() {
11278 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11279; return 0; }
11280EOF
f79bd02d 11281if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11282 rm -rf conftest*
11283 echo "*** The test program compiled, but did not run. This usually means"
11284 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11285 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11286 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11287 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11288 echo "*** is required on your system"
11289 echo "***"
11290 echo "*** If you have an old version installed, it is best to remove it, although"
11291 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11292 echo "***"
11293 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11294 echo "*** came with the system with the command"
11295 echo "***"
11296 echo "*** rpm --erase --nodeps gtk gtk-devel"
11297else
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 echo "*** The test program failed to compile or link. See the file config.log for the"
11302 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11303 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11304 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11305fi
11306rm -f conftest*
11307 CFLAGS="$ac_save_CFLAGS"
11308 LIBS="$ac_save_LIBS"
11309 fi
11310 fi
10f2d63a
VZ
11311 GTK_CFLAGS=""
11312 GTK_LIBS=""
7e99ad86 11313 :
10f2d63a 11314 fi
698dcdb6
VZ
11315
11316
3f345b47 11317 rm -f conf.gtktest
10f2d63a 11318
8168de4c
VZ
11319 fi
11320
11321 if test -z "$wx_cv_lib_gtk"; then
11322 wx_cv_lib_gtk=none
138be253
VZ
11323 else
11324 wx_cv_cflags_gtk=$GTK_CFLAGS
11325 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11326 fi
11327
1e6feb95 11328
8168de4c 11329fi
703e0a69 11330
698dcdb6 11331
8168de4c
VZ
11332 if test "$gtk_version_cached" = 1; then
11333 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11334 fi
698dcdb6 11335
8168de4c
VZ
11336 case "$wx_cv_lib_gtk" in
11337 2.0) WXGTK20=1
11338 ;;
11339 1.2.7) WXGTK127=1
d1a8d972 11340 WXGTK12=1
8168de4c
VZ
11341 ;;
11342 1.2.3) WXGTK12=1
11343 ;;
11344 *) { echo "configure: error:
11345Please check that gtk-config is in path, the directory
11346where GTK+ libraries are installed (returned by
11347'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11348equivalent variable and GTK+ is version 1.2.3 or above.
11349 " 1>&2; exit 1; }
11350 ;;
11351 esac
2224580a 11352
138be253 11353 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11354 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11355
1e6feb95
VZ
11356 AFMINSTALL=afminstall
11357 TOOLKIT=GTK
11358 GUIDIST=GTK_DIST
7ec2881a 11359
1e6feb95 11360 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
f79bd02d 11361echo "configure:11362: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11362ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11363if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11365else
698dcdb6 11366 ac_save_LIBS="$LIBS"
7ec2881a 11367LIBS="-lgdk $LIBS"
698dcdb6 11368cat > conftest.$ac_ext <<EOF
f79bd02d 11369#line 11370 "configure"
7ec2881a
RR
11370#include "confdefs.h"
11371/* Override any gcc2 internal prototype to avoid an error. */
11372/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11373 builtin and then its argument prototype would still apply. */
11374char gdk_im_open();
11375
11376int main() {
11377gdk_im_open()
11378; return 0; }
11379EOF
f79bd02d 11380if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11381 rm -rf conftest*
11382 eval "ac_cv_lib_$ac_lib_var=yes"
11383else
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11386 rm -rf conftest*
11387 eval "ac_cv_lib_$ac_lib_var=no"
11388fi
11389rm -f conftest*
11390LIBS="$ac_save_LIBS"
11391
11392fi
11393if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11394 echo "$ac_t""yes" 1>&6
11395 cat >> confdefs.h <<\EOF
7ec2881a
RR
11396#define HAVE_XIM 1
11397EOF
11398
698dcdb6
VZ
11399else
11400 echo "$ac_t""no" 1>&6
7ec2881a
RR
11401fi
11402
1e6feb95 11403 fi
10f2d63a 11404
1e6feb95 11405 if test "$wxUSE_MGL" = 1; then
1e6feb95 11406 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
f79bd02d 11407echo "configure:11408: checking for SciTech MGL library" >&5
1e6feb95
VZ
11408 if test "x$MGL_ROOT" = x ; then
11409 echo "$ac_t""not found" 1>&6
11410 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11411 else
11412 echo "$ac_t""$MGL_ROOT" 1>&6
11413 fi
11414
f9bc1684
VS
11415 case "${host}" in
11416 *-*-linux* )
11417 mgl_os=linux/gcc/glibc
11418 ;;
11419 *-pc-msdosdjgpp )
11420 mgl_os=dos32/dj2
11421 ;;
11422 *)
11423 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11424 esac
11425
3a922bb4 11426 mgl_lib_type=""
1e6feb95
VZ
11427
11428 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11429 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11430 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11431 mgl_lib_type=debug
1e6feb95
VZ
11432 fi
11433 fi
3a922bb4 11434 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11435 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11436 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11437 mgl_lib_type=release
1e6feb95
VZ
11438 else
11439 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11440 fi
11441 fi
11442
11443 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11444 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11445
11446 AFMINSTALL=afminstall
11447 TOOLKIT=MGL
11448 GUIDIST=MGL_DIST
11449 fi
11450
1725144d
RR
11451 if test "$wxUSE_MICROWIN" = 1; then
11452 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
f79bd02d 11453echo "configure:11454: checking for MicroWindows" >&5
1725144d
RR
11454 if test "x$MICROWINDOWS" = x ; then
11455 echo "$ac_t""not found" 1>&6
11456 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11457 else
11458 echo "$ac_t""$MICROWINDOWS" 1>&6
11459 fi
11460
11461 if test -f $MICROWINDOWS/lib/libmwin.a; then
11462 echo "$ac_t""MicroWindows' libraries found." 1>&6
11463 else
11464 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11465 fi
11466
11467 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11468 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11469
11470 AFMINSTALL=afminstall
11471 TOOLKIT=MICROWIN
11472 GUIDIST=MICROWIN_DIST
11473
11474 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11475 fi
11476
f79bd02d 11477 if test "$wxUSE_X11" = 1; then
d714471b 11478 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11479# paths, otherwise set no_x=yes.
11480# Uses ac_ vars as temps to allow command line to override cache and checks.
11481# --without-x overrides everything else, but does not touch the cache.
11482echo $ac_n "checking for X""... $ac_c" 1>&6
f79bd02d 11483echo "configure:11484: checking for X" >&5
ab9b9eab
VZ
11484
11485# Check whether --with-x or --without-x was given.
11486if test "${with_x+set}" = set; then
11487 withval="$with_x"
698dcdb6
VZ
11488 :
11489fi
ba337fe7 11490
ab9b9eab
VZ
11491# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11492if test "x$with_x" = xno; then
11493 # The user explicitly disabled X.
11494 have_x=disabled
11495else
11496 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11497 # Both variables are already set.
11498 have_x=yes
11499 else
698dcdb6
VZ
11500if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11502else
11503 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11504ac_x_includes=NO ac_x_libraries=NO
11505rm -fr conftestdir
11506if mkdir conftestdir; then
11507 cd conftestdir
ab9b9eab 11508 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11509 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11510acfindx:
11511 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11512EOF
11513 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11515 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11517 for ac_extension in a so sl; do
ab9b9eab 11518 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11519 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11520 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11521 fi
11522 done
ab9b9eab
VZ
11523 # Screen out bogus values from the imake configuration. They are
11524 # bogus both because they are the default anyway, and because
11525 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11526 case "$ac_im_incroot" in
ab9b9eab 11527 /usr/include) ;;
698dcdb6 11528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11529 esac
698dcdb6 11530 case "$ac_im_usrlibdir" in
ab9b9eab 11531 /usr/lib | /lib) ;;
698dcdb6 11532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11533 esac
ba337fe7 11534 fi
ab9b9eab 11535 cd ..
698dcdb6 11536 rm -fr conftestdir
ab9b9eab 11537fi
10f2d63a 11538
698dcdb6
VZ
11539if test "$ac_x_includes" = NO; then
11540 # Guess where to find include files, by looking for this one X11 .h file.
11541 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11542
ab9b9eab 11543 # First, try using that file with no special directory specified.
698dcdb6 11544cat > conftest.$ac_ext <<EOF
f79bd02d 11545#line 11546 "configure"
ab9b9eab 11546#include "confdefs.h"
698dcdb6
VZ
11547#include <$x_direct_test_include>
11548EOF
11549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 11550{ (eval echo configure:11551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11551ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11552if test -z "$ac_err"; then
11553 rm -rf conftest*
ab9b9eab
VZ
11554 # We can compile using X headers with no special include directory.
11555ac_x_includes=
11556else
698dcdb6
VZ
11557 echo "$ac_err" >&5
11558 echo "configure: failed program was:" >&5
ab9b9eab 11559 cat conftest.$ac_ext >&5
698dcdb6
VZ
11560 rm -rf conftest*
11561 # Look for the header file in a standard set of common directories.
11562# Check X11 before X11Rn because it is often a symlink to the current release.
11563 for ac_dir in \
11564 /usr/X11/include \
11565 /usr/X11R6/include \
11566 /usr/X11R5/include \
11567 /usr/X11R4/include \
11568 \
11569 /usr/include/X11 \
11570 /usr/include/X11R6 \
11571 /usr/include/X11R5 \
11572 /usr/include/X11R4 \
11573 \
11574 /usr/local/X11/include \
11575 /usr/local/X11R6/include \
11576 /usr/local/X11R5/include \
11577 /usr/local/X11R4/include \
11578 \
11579 /usr/local/include/X11 \
11580 /usr/local/include/X11R6 \
11581 /usr/local/include/X11R5 \
11582 /usr/local/include/X11R4 \
11583 \
11584 /usr/X386/include \
11585 /usr/x386/include \
11586 /usr/XFree86/include/X11 \
11587 \
11588 /usr/include \
11589 /usr/local/include \
11590 /usr/unsupported/include \
11591 /usr/athena/include \
11592 /usr/local/x11r5/include \
11593 /usr/lpp/Xamples/include \
11594 \
11595 /usr/openwin/include \
11596 /usr/openwin/share/include \
11597 ; \
11598 do
11599 if test -r "$ac_dir/$x_direct_test_include"; then
11600 ac_x_includes=$ac_dir
11601 break
11602 fi
11603 done
ab9b9eab 11604fi
698dcdb6
VZ
11605rm -f conftest*
11606fi # $ac_x_includes = NO
10f2d63a 11607
698dcdb6 11608if test "$ac_x_libraries" = NO; then
ab9b9eab 11609 # Check for the libraries.
698dcdb6
VZ
11610
11611 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11612 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11613
ab9b9eab
VZ
11614 # See if we find them without any special options.
11615 # Don't add to $LIBS permanently.
698dcdb6
VZ
11616 ac_save_LIBS="$LIBS"
11617 LIBS="-l$x_direct_test_library $LIBS"
11618cat > conftest.$ac_ext <<EOF
f79bd02d 11619#line 11620 "configure"
ab9b9eab 11620#include "confdefs.h"
698dcdb6
VZ
11621
11622int main() {
11623${x_direct_test_function}()
11624; return 0; }
11625EOF
f79bd02d 11626if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11627 rm -rf conftest*
11628 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11629# We can link X programs with no special library path.
11630ac_x_libraries=
11631else
698dcdb6
VZ
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
11635 LIBS="$ac_save_LIBS"
11636# First see if replacing the include by lib works.
11637# Check X11 before X11Rn because it is often a symlink to the current release.
11638for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11639 /usr/X11/lib \
11640 /usr/X11R6/lib \
11641 /usr/X11R5/lib \
11642 /usr/X11R4/lib \
11643 \
11644 /usr/lib/X11 \
11645 /usr/lib/X11R6 \
11646 /usr/lib/X11R5 \
11647 /usr/lib/X11R4 \
11648 \
11649 /usr/local/X11/lib \
11650 /usr/local/X11R6/lib \
11651 /usr/local/X11R5/lib \
11652 /usr/local/X11R4/lib \
11653 \
11654 /usr/local/lib/X11 \
11655 /usr/local/lib/X11R6 \
11656 /usr/local/lib/X11R5 \
11657 /usr/local/lib/X11R4 \
11658 \
11659 /usr/X386/lib \
11660 /usr/x386/lib \
11661 /usr/XFree86/lib/X11 \
11662 \
11663 /usr/lib \
11664 /usr/local/lib \
11665 /usr/unsupported/lib \
11666 /usr/athena/lib \
11667 /usr/local/x11r5/lib \
11668 /usr/lpp/Xamples/lib \
11669 /lib/usr/lib/X11 \
11670 \
11671 /usr/openwin/lib \
11672 /usr/openwin/share/lib \
11673 ; \
ab9b9eab
VZ
11674do
11675 for ac_extension in a so sl; do
698dcdb6 11676 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11677 ac_x_libraries=$ac_dir
11678 break 2
10f2d63a 11679 fi
10f2d63a 11680 done
ab9b9eab
VZ
11681done
11682fi
698dcdb6
VZ
11683rm -f conftest*
11684fi # $ac_x_libraries = NO
10f2d63a 11685
698dcdb6 11686if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11687 # Didn't find X anywhere. Cache the known absence of X.
11688 ac_cv_have_x="have_x=no"
11689else
11690 # Record where we found X for the cache.
11691 ac_cv_have_x="have_x=yes \
11692 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11693fi
11694fi
10f2d63a 11695 fi
ab9b9eab
VZ
11696 eval "$ac_cv_have_x"
11697fi # $with_x != no
10f2d63a 11698
ab9b9eab 11699if test "$have_x" != yes; then
698dcdb6 11700 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11701 no_x=yes
11702else
11703 # If each of the values was on the command line, it overrides each guess.
11704 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11705 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11706 # Update the cache value to reflect the command line values.
11707 ac_cv_have_x="have_x=yes \
11708 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11709 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11710fi
10f2d63a 11711
ab9b9eab
VZ
11712if test "$no_x" = yes; then
11713 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11714 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11715#define X_DISPLAY_MISSING 1
11716EOF
10f2d63a 11717
ab9b9eab
VZ
11718 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11719else
11720 if test -n "$x_includes"; then
11721 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11722 fi
11723
ab9b9eab
VZ
11724 # It would also be nice to do this for all -L options, not just this one.
11725 if test -n "$x_libraries"; then
11726 X_LIBS="$X_LIBS -L$x_libraries"
11727 # For Solaris; some versions of Sun CC require a space after -R and
11728 # others require no space. Words are not sufficient . . . .
698dcdb6 11729 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11730 "SunOS 5"*)
698dcdb6 11731 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f79bd02d 11732echo "configure:11733: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11733 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11734 cat > conftest.$ac_ext <<EOF
f79bd02d 11735#line 11736 "configure"
ab9b9eab 11736#include "confdefs.h"
10f2d63a 11737
698dcdb6 11738int main() {
788deba1 11739
698dcdb6
VZ
11740; return 0; }
11741EOF
f79bd02d 11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11743 rm -rf conftest*
ab9b9eab
VZ
11744 ac_R_nospace=yes
11745else
698dcdb6
VZ
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 ac_R_nospace=no
ab9b9eab 11750fi
698dcdb6 11751rm -f conftest*
ab9b9eab 11752 if test $ac_R_nospace = yes; then
698dcdb6 11753 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11754 X_LIBS="$X_LIBS -R$x_libraries"
11755 else
11756 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11757 cat > conftest.$ac_ext <<EOF
f79bd02d 11758#line 11759 "configure"
ab9b9eab 11759#include "confdefs.h"
788deba1 11760
698dcdb6 11761int main() {
ab9b9eab 11762
698dcdb6
VZ
11763; return 0; }
11764EOF
f79bd02d 11765if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11766 rm -rf conftest*
ab9b9eab
VZ
11767 ac_R_space=yes
11768else
698dcdb6
VZ
11769 echo "configure: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 rm -rf conftest*
11772 ac_R_space=no
ab9b9eab 11773fi
698dcdb6 11774rm -f conftest*
ab9b9eab 11775 if test $ac_R_space = yes; then
698dcdb6 11776 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11777 X_LIBS="$X_LIBS -R $x_libraries"
11778 else
698dcdb6 11779 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11780 fi
11781 fi
698dcdb6 11782 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11783 esac
11784 fi
11785
11786 # Check for system-dependent libraries X programs must link with.
11787 # Do this before checking for the system-independent R6 libraries
11788 # (-lICE), since we may need -lsocket or whatever for X linking.
11789
11790 if test "$ISC" = yes; then
11791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11792 else
698dcdb6
VZ
11793 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11794 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11795 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11796 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f79bd02d 11797echo "configure:11798: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11798ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11801else
698dcdb6 11802 ac_save_LIBS="$LIBS"
ab9b9eab 11803LIBS="-ldnet $LIBS"
698dcdb6 11804cat > conftest.$ac_ext <<EOF
f79bd02d 11805#line 11806 "configure"
ab9b9eab
VZ
11806#include "confdefs.h"
11807/* Override any gcc2 internal prototype to avoid an error. */
11808/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11809 builtin and then its argument prototype would still apply. */
11810char dnet_ntoa();
11811
11812int main() {
11813dnet_ntoa()
11814; return 0; }
11815EOF
f79bd02d 11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11817 rm -rf conftest*
11818 eval "ac_cv_lib_$ac_lib_var=yes"
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_lib_$ac_lib_var=no"
11824fi
11825rm -f conftest*
11826LIBS="$ac_save_LIBS"
11827
11828fi
11829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
ab9b9eab 11831 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11832else
11833 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11834fi
11835
11836 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11837 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f79bd02d 11838echo "configure:11839: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11839ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11840if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11841 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11842else
698dcdb6 11843 ac_save_LIBS="$LIBS"
ab9b9eab 11844LIBS="-ldnet_stub $LIBS"
698dcdb6 11845cat > conftest.$ac_ext <<EOF
f79bd02d 11846#line 11847 "configure"
ab9b9eab
VZ
11847#include "confdefs.h"
11848/* Override any gcc2 internal prototype to avoid an error. */
11849/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11850 builtin and then its argument prototype would still apply. */
11851char dnet_ntoa();
11852
11853int main() {
11854dnet_ntoa()
11855; return 0; }
11856EOF
f79bd02d 11857if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11858 rm -rf conftest*
11859 eval "ac_cv_lib_$ac_lib_var=yes"
11860else
11861 echo "configure: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 rm -rf conftest*
11864 eval "ac_cv_lib_$ac_lib_var=no"
11865fi
11866rm -f conftest*
11867LIBS="$ac_save_LIBS"
11868
11869fi
11870if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11871 echo "$ac_t""yes" 1>&6
ab9b9eab 11872 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11873else
11874 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11875fi
11876
11877 fi
11878
11879 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11880 # to get the SysV transport functions.
698dcdb6 11881 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11882 # needs -lnsl.
11883 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11884 # on Irix 5.2, according to dickey@clark.net.
11885 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f79bd02d 11886echo "configure:11887: checking for gethostbyname" >&5
698dcdb6
VZ
11887if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11889else
11890 cat > conftest.$ac_ext <<EOF
f79bd02d 11891#line 11892 "configure"
ab9b9eab
VZ
11892#include "confdefs.h"
11893/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11894 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11895#include <assert.h>
11896/* Override any gcc2 internal prototype to avoid an error. */
11897/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11898 builtin and then its argument prototype would still apply. */
11899char gethostbyname();
11900
11901int main() {
ab9b9eab
VZ
11902
11903/* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11907choke me
11908#else
698dcdb6 11909gethostbyname();
ab9b9eab
VZ
11910#endif
11911
698dcdb6
VZ
11912; return 0; }
11913EOF
f79bd02d 11914if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11915 rm -rf conftest*
11916 eval "ac_cv_func_gethostbyname=yes"
11917else
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 rm -rf conftest*
11921 eval "ac_cv_func_gethostbyname=no"
11922fi
11923rm -f conftest*
11924fi
11925
11926if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11927 echo "$ac_t""yes" 1>&6
11928 :
11929else
11930 echo "$ac_t""no" 1>&6
11931fi
ab9b9eab
VZ
11932
11933 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11934 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f79bd02d 11935echo "configure:11936: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11936ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11937if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11939else
698dcdb6 11940 ac_save_LIBS="$LIBS"
ab9b9eab 11941LIBS="-lnsl $LIBS"
698dcdb6 11942cat > conftest.$ac_ext <<EOF
f79bd02d 11943#line 11944 "configure"
ab9b9eab
VZ
11944#include "confdefs.h"
11945/* Override any gcc2 internal prototype to avoid an error. */
11946/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11947 builtin and then its argument prototype would still apply. */
11948char gethostbyname();
6232543b 11949
698dcdb6
VZ
11950int main() {
11951gethostbyname()
11952; return 0; }
11953EOF
f79bd02d 11954if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11955 rm -rf conftest*
11956 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11957else
698dcdb6
VZ
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=no"
11962fi
11963rm -f conftest*
11964LIBS="$ac_save_LIBS"
1e487827 11965
698dcdb6
VZ
11966fi
11967if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11970else
11971 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11972fi
11973
11974 fi
11975
11976 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11977 # socket/setsockopt and other routines are undefined under SCO ODT
11978 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11979 # on later versions), says simon@lia.di.epfl.ch: it contains
11980 # gethostby* variants that don't use the nameserver (or something).
11981 # -lsocket must be given before -lnsl if both are needed.
11982 # We assume that if connect needs -lnsl, so does gethostbyname.
11983 echo $ac_n "checking for connect""... $ac_c" 1>&6
f79bd02d 11984echo "configure:11985: checking for connect" >&5
698dcdb6
VZ
11985if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987else
11988 cat > conftest.$ac_ext <<EOF
f79bd02d 11989#line 11990 "configure"
ab9b9eab
VZ
11990#include "confdefs.h"
11991/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11992 which can conflict with char connect(); below. */
ab9b9eab
VZ
11993#include <assert.h>
11994/* Override any gcc2 internal prototype to avoid an error. */
11995/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11996 builtin and then its argument prototype would still apply. */
11997char connect();
11998
11999int main() {
ab9b9eab
VZ
12000
12001/* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004#if defined (__stub_connect) || defined (__stub___connect)
12005choke me
12006#else
698dcdb6 12007connect();
ab9b9eab
VZ
12008#endif
12009
698dcdb6
VZ
12010; return 0; }
12011EOF
f79bd02d 12012if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12013 rm -rf conftest*
12014 eval "ac_cv_func_connect=yes"
12015else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 eval "ac_cv_func_connect=no"
12020fi
12021rm -f conftest*
12022fi
12023
12024if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 :
12027else
12028 echo "$ac_t""no" 1>&6
12029fi
ab9b9eab
VZ
12030
12031 if test $ac_cv_func_connect = no; then
698dcdb6 12032 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f79bd02d 12033echo "configure:12034: checking for connect in -lsocket" >&5
698dcdb6
VZ
12034ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12037else
698dcdb6 12038 ac_save_LIBS="$LIBS"
ab9b9eab 12039LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 12040cat > conftest.$ac_ext <<EOF
f79bd02d 12041#line 12042 "configure"
ab9b9eab
VZ
12042#include "confdefs.h"
12043/* Override any gcc2 internal prototype to avoid an error. */
12044/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12045 builtin and then its argument prototype would still apply. */
12046char connect();
12047
12048int main() {
12049connect()
12050; return 0; }
12051EOF
f79bd02d 12052if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=yes"
12055else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_lib_$ac_lib_var=no"
12060fi
12061rm -f conftest*
12062LIBS="$ac_save_LIBS"
12063
12064fi
12065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
ab9b9eab 12067 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
12068else
12069 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12070fi
12071
12072 fi
12073
698dcdb6
VZ
12074 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12075 echo $ac_n "checking for remove""... $ac_c" 1>&6
f79bd02d 12076echo "configure:12077: checking for remove" >&5
698dcdb6
VZ
12077if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12079else
698dcdb6 12080 cat > conftest.$ac_ext <<EOF
f79bd02d 12081#line 12082 "configure"
ab9b9eab
VZ
12082#include "confdefs.h"
12083/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12084 which can conflict with char remove(); below. */
ab9b9eab
VZ
12085#include <assert.h>
12086/* Override any gcc2 internal prototype to avoid an error. */
12087/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12088 builtin and then its argument prototype would still apply. */
12089char remove();
12090
12091int main() {
ab9b9eab
VZ
12092
12093/* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096#if defined (__stub_remove) || defined (__stub___remove)
12097choke me
12098#else
698dcdb6 12099remove();
ab9b9eab
VZ
12100#endif
12101
698dcdb6
VZ
12102; return 0; }
12103EOF
f79bd02d 12104if { (eval echo configure:12105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12105 rm -rf conftest*
12106 eval "ac_cv_func_remove=yes"
12107else
12108 echo "configure: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 rm -rf conftest*
12111 eval "ac_cv_func_remove=no"
12112fi
12113rm -f conftest*
12114fi
12115
12116if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 :
12119else
12120 echo "$ac_t""no" 1>&6
12121fi
ab9b9eab
VZ
12122
12123 if test $ac_cv_func_remove = no; then
698dcdb6 12124 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f79bd02d 12125echo "configure:12126: checking for remove in -lposix" >&5
698dcdb6
VZ
12126ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12127if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12129else
698dcdb6 12130 ac_save_LIBS="$LIBS"
ab9b9eab 12131LIBS="-lposix $LIBS"
698dcdb6 12132cat > conftest.$ac_ext <<EOF
f79bd02d 12133#line 12134 "configure"
ab9b9eab
VZ
12134#include "confdefs.h"
12135/* Override any gcc2 internal prototype to avoid an error. */
12136/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12137 builtin and then its argument prototype would still apply. */
12138char remove();
12139
12140int main() {
12141remove()
12142; return 0; }
12143EOF
f79bd02d 12144if { (eval echo configure:12145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12145 rm -rf conftest*
12146 eval "ac_cv_lib_$ac_lib_var=yes"
12147else
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 eval "ac_cv_lib_$ac_lib_var=no"
12152fi
12153rm -f conftest*
12154LIBS="$ac_save_LIBS"
12155
12156fi
12157if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12158 echo "$ac_t""yes" 1>&6
ab9b9eab 12159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
12160else
12161 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12162fi
12163
12164 fi
12165
12166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 12167 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f79bd02d 12168echo "configure:12169: checking for shmat" >&5
698dcdb6
VZ
12169if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12171else
698dcdb6 12172 cat > conftest.$ac_ext <<EOF
f79bd02d 12173#line 12174 "configure"
ab9b9eab
VZ
12174#include "confdefs.h"
12175/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12176 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12177#include <assert.h>
12178/* Override any gcc2 internal prototype to avoid an error. */
12179/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12180 builtin and then its argument prototype would still apply. */
12181char shmat();
12182
12183int main() {
ab9b9eab
VZ
12184
12185/* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188#if defined (__stub_shmat) || defined (__stub___shmat)
12189choke me
12190#else
698dcdb6 12191shmat();
ab9b9eab
VZ
12192#endif
12193
698dcdb6
VZ
12194; return 0; }
12195EOF
f79bd02d 12196if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12197 rm -rf conftest*
12198 eval "ac_cv_func_shmat=yes"
12199else
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 rm -rf conftest*
12203 eval "ac_cv_func_shmat=no"
12204fi
12205rm -f conftest*
12206fi
12207
12208if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12209 echo "$ac_t""yes" 1>&6
12210 :
12211else
12212 echo "$ac_t""no" 1>&6
12213fi
ab9b9eab
VZ
12214
12215 if test $ac_cv_func_shmat = no; then
698dcdb6 12216 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f79bd02d 12217echo "configure:12218: checking for shmat in -lipc" >&5
698dcdb6
VZ
12218ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12221else
698dcdb6 12222 ac_save_LIBS="$LIBS"
ab9b9eab 12223LIBS="-lipc $LIBS"
698dcdb6 12224cat > conftest.$ac_ext <<EOF
f79bd02d 12225#line 12226 "configure"
ab9b9eab
VZ
12226#include "confdefs.h"
12227/* Override any gcc2 internal prototype to avoid an error. */
12228/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12229 builtin and then its argument prototype would still apply. */
12230char shmat();
12231
12232int main() {
12233shmat()
12234; return 0; }
12235EOF
f79bd02d 12236if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12237 rm -rf conftest*
12238 eval "ac_cv_lib_$ac_lib_var=yes"
12239else
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -rf conftest*
12243 eval "ac_cv_lib_$ac_lib_var=no"
12244fi
12245rm -f conftest*
12246LIBS="$ac_save_LIBS"
12247
12248fi
12249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12250 echo "$ac_t""yes" 1>&6
ab9b9eab 12251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12252else
12253 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12254fi
12255
12256 fi
12257 fi
12258
12259 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12260 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12261 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12262 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12263 # check for ICE first), but we must link in the order -lSM -lICE or
12264 # we get undefined symbols. So assume we have SM if we have ICE.
12265 # These have to be linked with before -lX11, unlike the other
12266 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12267 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12268 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f79bd02d 12269echo "configure:12270: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12270ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12272 echo $ac_n "(cached) $ac_c" 1>&6
12273else
12274 ac_save_LIBS="$LIBS"
ab9b9eab 12275LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12276cat > conftest.$ac_ext <<EOF
f79bd02d 12277#line 12278 "configure"
ab9b9eab
VZ
12278#include "confdefs.h"
12279/* Override any gcc2 internal prototype to avoid an error. */
12280/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12281 builtin and then its argument prototype would still apply. */
12282char IceConnectionNumber();
12283
12284int main() {
12285IceConnectionNumber()
12286; return 0; }
12287EOF
f79bd02d 12288if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12289 rm -rf conftest*
12290 eval "ac_cv_lib_$ac_lib_var=yes"
12291else
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12294 rm -rf conftest*
12295 eval "ac_cv_lib_$ac_lib_var=no"
12296fi
12297rm -f conftest*
12298LIBS="$ac_save_LIBS"
12299
12300fi
12301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
ab9b9eab 12303 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12304else
12305 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12306fi
12307
698dcdb6 12308 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12309
12310fi
12311
12312
1e6feb95
VZ
12313 if test "$no_x" = "yes"; then
12314 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12315 fi
ab9b9eab 12316
1e6feb95
VZ
12317 GUI_TK_LIBRARY="$X_LIBS"
12318 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12319 AFMINSTALL=afminstall
1e6feb95 12320 COMPILED_X_PROGRAM=0
cd6d6d5b 12321
3d63bc3a 12322 xpm_link=
1e6feb95 12323 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f79bd02d 12324echo "configure:12325: checking for Xpm library" >&5
1e6feb95 12325
ab9b9eab
VZ
12326ac_find_libraries=
12327for ac_dir in $SEARCH_LIB;
12328 do
f11bdd03 12329 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12330 if test -f "$ac_dir/libXpm.$ac_extension"; then
12331 ac_find_libraries=$ac_dir
12332 break 2
12333 fi
12334 done
12335 done
12336
1e6feb95
VZ
12337 if test "$ac_find_libraries" != "" ; then
12338
ab9b9eab
VZ
12339 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12340 result=$?
12341 if test $result = 0; then
12342 ac_path_to_link=""
12343 else
62d0491b 12344 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12345 fi
12346
62d0491b 12347 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12348 xpm_link=" -lXpm"
1e6feb95 12349 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12350#define wxHAVE_LIB_XPM 1
12351EOF
12352
1e6feb95
VZ
12353 echo "$ac_t""found at $ac_find_libraries" 1>&6
12354 else
12355 cat > conftest.$ac_ext <<EOF
f79bd02d 12356#line 12357 "configure"
cd6d6d5b
VZ
12357#include "confdefs.h"
12358
1e6feb95
VZ
12359 #include <X11/xpm.h>
12360
698dcdb6 12361int main() {
cd6d6d5b 12362
1e6feb95 12363 int version;
1e6feb95
VZ
12364 version = XpmLibraryVersion();
12365
698dcdb6
VZ
12366; return 0; }
12367EOF
f79bd02d 12368if { (eval echo configure:12369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12369 rm -rf conftest*
12370
3d63bc3a 12371 xpm_link=" -lXpm"
3a922bb4 12372 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12373#define wxHAVE_LIB_XPM 1
12374EOF
12375
1e6feb95
VZ
12376 echo "$ac_t""found in default search path" 1>&6
12377 COMPILED_X_PROGRAM=0
12378
cd6d6d5b 12379else
698dcdb6
VZ
12380 echo "configure: failed program was:" >&5
12381 cat conftest.$ac_ext >&5
12382 rm -rf conftest*
12383
1e6feb95
VZ
12384 echo "$ac_t""no" 1>&6
12385 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12386
698dcdb6 12387
cd6d6d5b 12388fi
698dcdb6 12389rm -f conftest*
1e6feb95
VZ
12390 fi
12391
f79bd02d
JS
12392 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
12393 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
12394 TOOLKIT=X11
12395 GUIDIST=X11_DIST
12396 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXX11__"
1e6feb95 12397 fi
10f2d63a 12398
f79bd02d
JS
12399 if test "$wxUSE_WINE" = 1; then
12400 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12401echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12402echo "configure:12403: checking for windows.h" >&5
12403if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12405else
12406 cat > conftest.$ac_ext <<EOF
12407#line 12408 "configure"
12408#include "confdefs.h"
12409#include <windows.h>
12410EOF
12411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12412{ (eval echo configure:12413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12413ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12414if test -z "$ac_err"; then
12415 rm -rf conftest*
12416 eval "ac_cv_header_$ac_safe=yes"
12417else
12418 echo "$ac_err" >&5
12419 echo "configure: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 rm -rf conftest*
12422 eval "ac_cv_header_$ac_safe=no"
12423fi
12424rm -f conftest*
12425fi
12426if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12427 echo "$ac_t""yes" 1>&6
12428 :
12429else
12430 echo "$ac_t""no" 1>&6
12431
12432 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12433
12434fi
12435
12436
12437 xpm_link=
12438 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12439echo "configure:12440: checking for Xpm library" >&5
12440
12441ac_find_libraries=
12442for ac_dir in $SEARCH_LIB;
12443 do
12444 for ac_extension in a so sl dylib; do
12445 if test -f "$ac_dir/libXpm.$ac_extension"; then
12446 ac_find_libraries=$ac_dir
12447 break 2
12448 fi
12449 done
12450 done
12451
12452 if test "$ac_find_libraries" != "" ; then
12453 GUI_TK_LIBRARY="-L$ac_find_libraries"
12454 xpm_link=" -lXpm"
12455 cat >> confdefs.h <<\EOF
12456#define wxHAVE_LIB_XPM 1
12457EOF
12458
12459 echo "$ac_t""found at $ac_find_libraries" 1>&6
12460 else
12461 echo "$ac_t""no" 1>&6
12462 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12463 fi
12464
12465 mesa_link=
12466 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12467echo "configure:12468: checking for Mesa library" >&5
12468
12469ac_find_libraries=
12470for ac_dir in $SEARCH_LIB;
12471 do
12472 for ac_extension in a so sl dylib; do
12473 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12474 ac_find_libraries=$ac_dir
12475 break 2
12476 fi
12477 done
12478 done
12479
12480 if test "$ac_find_libraries" != "" ; then
12481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12482 mesa_link=" -lMesaGL"
12483 echo "$ac_t""found at $ac_find_libraries" 1>&6
12484 else
12485 { echo "configure: error: no" 1>&2; exit 1; }
12486 fi
12487
12488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12489 TOOLKIT=MSW
12490 GUIDIST=MSW_DIST
12491 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12492 fi
12493
12494 if test "$wxUSE_MOTIF" = 1; then
12495 if test "$no_x" = yes; then
12496 # Not all programs may use this symbol, but it does not hurt to define it.
12497 cat >> confdefs.h <<\EOF
12498#define X_DISPLAY_MISSING 1
12499EOF
12500
12501 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12502else
12503 if test -n "$x_includes"; then
12504 X_CFLAGS="$X_CFLAGS -I$x_includes"
12505 fi
12506
12507 # It would also be nice to do this for all -L options, not just this one.
12508 if test -n "$x_libraries"; then
12509 X_LIBS="$X_LIBS -L$x_libraries"
12510 # For Solaris; some versions of Sun CC require a space after -R and
12511 # others require no space. Words are not sufficient . . . .
12512 case "`(uname -sr) 2>/dev/null`" in
12513 "SunOS 5"*)
12514 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12515echo "configure:12516: checking whether -R must be followed by a space" >&5
12516 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12517 cat > conftest.$ac_ext <<EOF
12518#line 12519 "configure"
12519#include "confdefs.h"
12520
12521int main() {
12522
12523; return 0; }
12524EOF
12525if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 rm -rf conftest*
12527 ac_R_nospace=yes
12528else
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 rm -rf conftest*
12532 ac_R_nospace=no
12533fi
12534rm -f conftest*
12535 if test $ac_R_nospace = yes; then
12536 echo "$ac_t""no" 1>&6
12537 X_LIBS="$X_LIBS -R$x_libraries"
12538 else
12539 LIBS="$ac_xsave_LIBS -R $x_libraries"
12540 cat > conftest.$ac_ext <<EOF
12541#line 12542 "configure"
12542#include "confdefs.h"
12543
12544int main() {
12545
12546; return 0; }
12547EOF
12548if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12549 rm -rf conftest*
12550 ac_R_space=yes
12551else
12552 echo "configure: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 rm -rf conftest*
12555 ac_R_space=no
12556fi
12557rm -f conftest*
12558 if test $ac_R_space = yes; then
12559 echo "$ac_t""yes" 1>&6
12560 X_LIBS="$X_LIBS -R $x_libraries"
12561 else
12562 echo "$ac_t""neither works" 1>&6
12563 fi
12564 fi
12565 LIBS="$ac_xsave_LIBS"
12566 esac
12567 fi
12568
12569 # Check for system-dependent libraries X programs must link with.
12570 # Do this before checking for the system-independent R6 libraries
12571 # (-lICE), since we may need -lsocket or whatever for X linking.
12572
12573 if test "$ISC" = yes; then
12574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12575 else
12576 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12577 # libraries were built with DECnet support. And karl@cs.umb.edu says
12578 # the Alpha needs dnet_stub (dnet does not exist).
12579 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12580echo "configure:12581: checking for dnet_ntoa in -ldnet" >&5
12581ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12582if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584else
12585 ac_save_LIBS="$LIBS"
12586LIBS="-ldnet $LIBS"
12587cat > conftest.$ac_ext <<EOF
12588#line 12589 "configure"
12589#include "confdefs.h"
12590/* Override any gcc2 internal prototype to avoid an error. */
12591/* We use char because int might match the return type of a gcc2
12592 builtin and then its argument prototype would still apply. */
12593char dnet_ntoa();
12594
12595int main() {
12596dnet_ntoa()
12597; return 0; }
12598EOF
12599if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12600 rm -rf conftest*
12601 eval "ac_cv_lib_$ac_lib_var=yes"
12602else
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_lib_$ac_lib_var=no"
12607fi
12608rm -f conftest*
12609LIBS="$ac_save_LIBS"
12610
12611fi
12612if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12613 echo "$ac_t""yes" 1>&6
12614 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12615else
12616 echo "$ac_t""no" 1>&6
12617fi
12618
12619 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12620 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12621echo "configure:12622: checking for dnet_ntoa in -ldnet_stub" >&5
12622ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12623if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12625else
12626 ac_save_LIBS="$LIBS"
12627LIBS="-ldnet_stub $LIBS"
12628cat > conftest.$ac_ext <<EOF
12629#line 12630 "configure"
12630#include "confdefs.h"
12631/* Override any gcc2 internal prototype to avoid an error. */
12632/* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12634char dnet_ntoa();
12635
12636int main() {
12637dnet_ntoa()
12638; return 0; }
12639EOF
12640if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12641 rm -rf conftest*
12642 eval "ac_cv_lib_$ac_lib_var=yes"
12643else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 eval "ac_cv_lib_$ac_lib_var=no"
12648fi
12649rm -f conftest*
12650LIBS="$ac_save_LIBS"
12651
12652fi
12653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12656else
12657 echo "$ac_t""no" 1>&6
12658fi
12659
12660 fi
12661
12662 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12663 # to get the SysV transport functions.
12664 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12665 # needs -lnsl.
12666 # The nsl library prevents programs from opening the X display
12667 # on Irix 5.2, according to dickey@clark.net.
12668 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12669echo "configure:12670: checking for gethostbyname" >&5
12670if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672else
12673 cat > conftest.$ac_ext <<EOF
12674#line 12675 "configure"
12675#include "confdefs.h"
12676/* System header to define __stub macros and hopefully few prototypes,
12677 which can conflict with char gethostbyname(); below. */
12678#include <assert.h>
12679/* Override any gcc2 internal prototype to avoid an error. */
12680/* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682char gethostbyname();
12683
12684int main() {
12685
12686/* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12690choke me
12691#else
12692gethostbyname();
12693#endif
12694
12695; return 0; }
12696EOF
12697if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 rm -rf conftest*
12699 eval "ac_cv_func_gethostbyname=yes"
12700else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 eval "ac_cv_func_gethostbyname=no"
12705fi
12706rm -f conftest*
12707fi
12708
12709if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12710 echo "$ac_t""yes" 1>&6
12711 :
12712else
12713 echo "$ac_t""no" 1>&6
12714fi
12715
12716 if test $ac_cv_func_gethostbyname = no; then
12717 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12718echo "configure:12719: checking for gethostbyname in -lnsl" >&5
12719ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12720if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12721 echo $ac_n "(cached) $ac_c" 1>&6
12722else
12723 ac_save_LIBS="$LIBS"
12724LIBS="-lnsl $LIBS"
12725cat > conftest.$ac_ext <<EOF
12726#line 12727 "configure"
12727#include "confdefs.h"
12728/* Override any gcc2 internal prototype to avoid an error. */
12729/* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12731char gethostbyname();
12732
12733int main() {
12734gethostbyname()
12735; return 0; }
12736EOF
12737if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738 rm -rf conftest*
12739 eval "ac_cv_lib_$ac_lib_var=yes"
12740else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 eval "ac_cv_lib_$ac_lib_var=no"
12745fi
12746rm -f conftest*
12747LIBS="$ac_save_LIBS"
12748
12749fi
12750if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 echo "$ac_t""yes" 1>&6
12752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12753else
12754 echo "$ac_t""no" 1>&6
12755fi
12756
12757 fi
12758
12759 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12760 # socket/setsockopt and other routines are undefined under SCO ODT
12761 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12762 # on later versions), says simon@lia.di.epfl.ch: it contains
12763 # gethostby* variants that don't use the nameserver (or something).
12764 # -lsocket must be given before -lnsl if both are needed.
12765 # We assume that if connect needs -lnsl, so does gethostbyname.
12766 echo $ac_n "checking for connect""... $ac_c" 1>&6
12767echo "configure:12768: checking for connect" >&5
12768if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770else
12771 cat > conftest.$ac_ext <<EOF
12772#line 12773 "configure"
12773#include "confdefs.h"
12774/* System header to define __stub macros and hopefully few prototypes,
12775 which can conflict with char connect(); below. */
12776#include <assert.h>
12777/* Override any gcc2 internal prototype to avoid an error. */
12778/* We use char because int might match the return type of a gcc2
12779 builtin and then its argument prototype would still apply. */
12780char connect();
12781
12782int main() {
12783
12784/* The GNU C library defines this for functions which it implements
12785 to always fail with ENOSYS. Some functions are actually named
12786 something starting with __ and the normal name is an alias. */
12787#if defined (__stub_connect) || defined (__stub___connect)
12788choke me
12789#else
12790connect();
12791#endif
12792
12793; return 0; }
12794EOF
12795if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12796 rm -rf conftest*
12797 eval "ac_cv_func_connect=yes"
12798else
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 rm -rf conftest*
12802 eval "ac_cv_func_connect=no"
12803fi
12804rm -f conftest*
12805fi
12806
12807if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12808 echo "$ac_t""yes" 1>&6
12809 :
12810else
12811 echo "$ac_t""no" 1>&6
12812fi
12813
12814 if test $ac_cv_func_connect = no; then
12815 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12816echo "configure:12817: checking for connect in -lsocket" >&5
12817ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
12820else
12821 ac_save_LIBS="$LIBS"
12822LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12823cat > conftest.$ac_ext <<EOF
12824#line 12825 "configure"
12825#include "confdefs.h"
12826/* Override any gcc2 internal prototype to avoid an error. */
12827/* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829char connect();
12830
12831int main() {
12832connect()
12833; return 0; }
12834EOF
12835if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 rm -rf conftest*
12837 eval "ac_cv_lib_$ac_lib_var=yes"
12838else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 eval "ac_cv_lib_$ac_lib_var=no"
12843fi
12844rm -f conftest*
12845LIBS="$ac_save_LIBS"
12846
12847fi
12848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12851else
12852 echo "$ac_t""no" 1>&6
12853fi
12854
12855 fi
12856
12857 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12858 echo $ac_n "checking for remove""... $ac_c" 1>&6
12859echo "configure:12860: checking for remove" >&5
12860if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862else
12863 cat > conftest.$ac_ext <<EOF
12864#line 12865 "configure"
12865#include "confdefs.h"
12866/* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char remove(); below. */
12868#include <assert.h>
12869/* Override any gcc2 internal prototype to avoid an error. */
12870/* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872char remove();
12873
12874int main() {
12875
12876/* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879#if defined (__stub_remove) || defined (__stub___remove)
12880choke me
12881#else
12882remove();
12883#endif
12884
12885; return 0; }
12886EOF
12887if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888 rm -rf conftest*
12889 eval "ac_cv_func_remove=yes"
12890else
12891 echo "configure: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12893 rm -rf conftest*
12894 eval "ac_cv_func_remove=no"
12895fi
12896rm -f conftest*
12897fi
12898
12899if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 :
12902else
12903 echo "$ac_t""no" 1>&6
12904fi
12905
12906 if test $ac_cv_func_remove = no; then
12907 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12908echo "configure:12909: checking for remove in -lposix" >&5
12909ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12911 echo $ac_n "(cached) $ac_c" 1>&6
12912else
12913 ac_save_LIBS="$LIBS"
12914LIBS="-lposix $LIBS"
12915cat > conftest.$ac_ext <<EOF
12916#line 12917 "configure"
12917#include "confdefs.h"
12918/* Override any gcc2 internal prototype to avoid an error. */
12919/* We use char because int might match the return type of a gcc2
12920 builtin and then its argument prototype would still apply. */
12921char remove();
12922
12923int main() {
12924remove()
12925; return 0; }
12926EOF
12927if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12928 rm -rf conftest*
12929 eval "ac_cv_lib_$ac_lib_var=yes"
12930else
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12933 rm -rf conftest*
12934 eval "ac_cv_lib_$ac_lib_var=no"
12935fi
12936rm -f conftest*
12937LIBS="$ac_save_LIBS"
12938
12939fi
12940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12941 echo "$ac_t""yes" 1>&6
12942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12943else
12944 echo "$ac_t""no" 1>&6
12945fi
12946
12947 fi
12948
12949 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12950 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12951echo "configure:12952: checking for shmat" >&5
12952if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12954else
12955 cat > conftest.$ac_ext <<EOF
12956#line 12957 "configure"
12957#include "confdefs.h"
12958/* System header to define __stub macros and hopefully few prototypes,
12959 which can conflict with char shmat(); below. */
12960#include <assert.h>
12961/* Override any gcc2 internal prototype to avoid an error. */
12962/* We use char because int might match the return type of a gcc2
12963 builtin and then its argument prototype would still apply. */
12964char shmat();
12965
12966int main() {
12967
12968/* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971#if defined (__stub_shmat) || defined (__stub___shmat)
12972choke me
12973#else
12974shmat();
12975#endif
12976
12977; return 0; }
12978EOF
12979if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12980 rm -rf conftest*
12981 eval "ac_cv_func_shmat=yes"
12982else
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 rm -rf conftest*
12986 eval "ac_cv_func_shmat=no"
12987fi
12988rm -f conftest*
12989fi
12990
12991if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12992 echo "$ac_t""yes" 1>&6
12993 :
12994else
12995 echo "$ac_t""no" 1>&6
12996fi
12997
12998 if test $ac_cv_func_shmat = no; then
12999 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13000echo "configure:13001: checking for shmat in -lipc" >&5
13001ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13002if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13003 echo $ac_n "(cached) $ac_c" 1>&6
13004else
13005 ac_save_LIBS="$LIBS"
13006LIBS="-lipc $LIBS"
13007cat > conftest.$ac_ext <<EOF
13008#line 13009 "configure"
13009#include "confdefs.h"
13010/* Override any gcc2 internal prototype to avoid an error. */
13011/* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013char shmat();
13014
13015int main() {
13016shmat()
13017; return 0; }
13018EOF
13019if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13020 rm -rf conftest*
13021 eval "ac_cv_lib_$ac_lib_var=yes"
13022else
13023 echo "configure: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 rm -rf conftest*
13026 eval "ac_cv_lib_$ac_lib_var=no"
13027fi
13028rm -f conftest*
13029LIBS="$ac_save_LIBS"
13030
13031fi
13032if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13033 echo "$ac_t""yes" 1>&6
13034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13035else
13036 echo "$ac_t""no" 1>&6
13037fi
13038
13039 fi
13040 fi
13041
13042 # Check for libraries that X11R6 Xt/Xaw programs need.
13043 ac_save_LDFLAGS="$LDFLAGS"
13044 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13045 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13046 # check for ICE first), but we must link in the order -lSM -lICE or
13047 # we get undefined symbols. So assume we have SM if we have ICE.
13048 # These have to be linked with before -lX11, unlike the other
13049 # libraries we check for below, so use a different variable.
13050 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13051 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13052echo "configure:13053: checking for IceConnectionNumber in -lICE" >&5
13053ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
13056else
13057 ac_save_LIBS="$LIBS"
13058LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13059cat > conftest.$ac_ext <<EOF
13060#line 13061 "configure"
13061#include "confdefs.h"
13062/* Override any gcc2 internal prototype to avoid an error. */
13063/* We use char because int might match the return type of a gcc2
13064 builtin and then its argument prototype would still apply. */
13065char IceConnectionNumber();
13066
13067int main() {
13068IceConnectionNumber()
13069; return 0; }
13070EOF
13071if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13072 rm -rf conftest*
13073 eval "ac_cv_lib_$ac_lib_var=yes"
13074else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -rf conftest*
13078 eval "ac_cv_lib_$ac_lib_var=no"
13079fi
13080rm -f conftest*
13081LIBS="$ac_save_LIBS"
13082
13083fi
13084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13085 echo "$ac_t""yes" 1>&6
13086 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13087else
13088 echo "$ac_t""no" 1>&6
13089fi
13090
13091 LDFLAGS="$ac_save_LDFLAGS"
13092
13093fi
13094
13095
13096 if test "$no_x" = "yes"; then
13097 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13098 fi
13099
13100 GUI_TK_LIBRARY="$X_LIBS"
13101 TOOLKIT_INCLUDE="$X_CFLAGS"
13102 AFMINSTALL=afminstall
13103 COMPILED_X_PROGRAM=0
13104
13105 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
13106echo "configure:13107: checking for Motif/Lesstif headers" >&5
13107
13108ac_find_includes=
13109for ac_dir in $SEARCH_INCLUDE;
13110 do
13111 if test -f "$ac_dir/Xm/Xm.h"; then
13112 ac_find_includes=$ac_dir
13113 break
13114 fi
13115 done
13116
13117 if test "$ac_find_includes" != "" ; then
13118 echo "$ac_t""found $ac_find_includes" 1>&6
13119 else
13120 cat > conftest.$ac_ext <<EOF
13121#line 13122 "configure"
13122#include "confdefs.h"
13123
13124 #include <Xm/Xm.h>
13125
13126int main() {
13127
13128 int version;
13129 version = xmUseVersion;
13130
13131; return 0; }
13132EOF
13133if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13134 rm -rf conftest*
13135
13136 echo "$ac_t""found in default search path" 1>&6
13137 COMPILED_X_PROGRAM=1
13138
13139else
13140 echo "configure: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13142 rm -rf conftest*
13143
13144 echo "$ac_t""no" 1>&6
13145 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13146
13147
13148fi
13149rm -f conftest*
13150 fi
13151
13152 if test "$COMPILED_X_PROGRAM" = 0; then
13153 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13154echo "configure:13155: checking for Motif/Lesstif library" >&5
13155
13156ac_find_libraries=
13157for ac_dir in $SEARCH_LIB;
13158 do
13159 for ac_extension in a so sl dylib; do
13160 if test -f "$ac_dir/libXm.$ac_extension"; then
13161 ac_find_libraries=$ac_dir
13162 break 2
13163 fi
13164 done
13165 done
13166
13167 if test "$ac_find_libraries" != "" ; then
13168
13169 ac_path_to_include=$ac_find_includes
13170 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13171 result=$?
13172 if test $result = 0; then
13173 ac_path_to_include=""
13174 else
13175 ac_path_to_include=" -I$ac_find_includes"
13176 fi
13177
13178
13179 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13180 result=$?
13181 if test $result = 0; then
13182 ac_path_to_link=""
13183 else
13184 ac_path_to_link=" -L$ac_find_libraries"
13185 fi
13186
13187
13188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13189 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13190 echo "$ac_t""found at $ac_find_libraries" 1>&6
13191 else
13192 cat > conftest.$ac_ext <<EOF
13193#line 13194 "configure"
13194#include "confdefs.h"
13195
13196 #include <Xm/Xm.h>
13197
13198int main() {
13199
13200 int version;
13201 version = xmUseVersion;
13202
13203; return 0; }
13204EOF
13205if { (eval echo configure:13206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13206 rm -rf conftest*
13207
13208 echo "$ac_t""found in default search path" 1>&6
13209 COMPILED_X_PROGRAM=1
13210
13211else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215
13216 echo "$ac_t""no" 1>&6
13217 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13218
13219
13220fi
13221rm -f conftest*
13222 fi
13223 fi
13224
13225 xpm_link=
13226 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13227echo "configure:13228: checking for Xpm library" >&5
13228
13229ac_find_libraries=
13230for ac_dir in $SEARCH_LIB;
13231 do
13232 for ac_extension in a so sl dylib; do
13233 if test -f "$ac_dir/libXpm.$ac_extension"; then
13234 ac_find_libraries=$ac_dir
13235 break 2
13236 fi
13237 done
13238 done
13239
13240 if test "$ac_find_libraries" != "" ; then
13241
13242 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13243 result=$?
13244 if test $result = 0; then
13245 ac_path_to_link=""
13246 else
13247 ac_path_to_link=" -L$ac_find_libraries"
13248 fi
13249
13250 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13251 xpm_link=" -lXpm"
13252 cat >> confdefs.h <<\EOF
13253#define wxHAVE_LIB_XPM 1
13254EOF
13255
13256 echo "$ac_t""found at $ac_find_libraries" 1>&6
13257 else
13258 cat > conftest.$ac_ext <<EOF
13259#line 13260 "configure"
13260#include "confdefs.h"
13261
13262 #include <X11/xpm.h>
13263
13264int main() {
13265
13266 int version;
13267 version = XpmLibraryVersion();
13268
13269; return 0; }
13270EOF
13271if { (eval echo configure:13272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13272 rm -rf conftest*
13273
13274 xpm_link=" -lXpm"
13275 cat >> confdefs.h <<\EOF
13276#define wxHAVE_LIB_XPM 1
13277EOF
13278
13279 echo "$ac_t""found in default search path" 1>&6
13280 COMPILED_X_PROGRAM=0
13281
13282else
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 rm -rf conftest*
13286
13287 echo "$ac_t""no" 1>&6
13288 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13289
13290
13291fi
13292rm -f conftest*
13293 fi
13294
13295 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13296 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13297 TOOLKIT=MOTIF
13298 GUIDIST=MOTIF_DIST
13299 fi
13300
13301 if test "$wxUSE_MAC" = 1; then
13302 if test "$wxUSE_PRECOMP" = "yes"; then
13303 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13304 fi
13305 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13306 CFLAGS="$CFLAGS -fpascal-strings"
13307 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13308
13309 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13310 TOOLKIT=MAC
13311 GUIDIST=MACX_DIST
13312 fi
13313
13314 if test "$wxUSE_PM" = 1; then
13315 TOOLKIT=PM
1e6feb95
VZ
13316 GUIDIST=GTK_DIST
13317 fi
b4085ce6 13318
3a922bb4 13319 if test "$TOOLKIT" = "PM" ; then
1e6feb95 13320 TOOLKIT_DIR="os2"
3a922bb4
RL
13321 else
13322 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 13323 fi
e07802fc 13324
3a922bb4 13325 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 13326
3a922bb4
RL
13327 if test "$wxUSE_UNIVERSAL" = "yes"; then
13328 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
9b695262
VZ
13329
13330 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13331 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13332
3a922bb4
RL
13333 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13334 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13335 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13336 WIDGET_SET=univ
f6bcfd97 13337 else
3a922bb4 13338 ALL_OBJECTS="\$(GUIOBJS)"
9b695262
VZ
13339 ALL_SOURCES="\$(ALL_SOURCES)"
13340 ALL_HEADERS="\$(ALL_HEADERS)"
1e6feb95
VZ
13341 fi
13342
ba0e650c 13343 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 13344
f9bc1684 13345 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
13346 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13347 fi
13348
13349 if test "$wxUSE_HTML" = "yes"; then
13350 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13351 fi
3fcdd07b 13352
4f14bcd8 13353 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 13354 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 13355 fi
4f14bcd8 13356 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
13357 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13358 fi
4f14bcd8 13359 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
13360 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13361 fi
4f14bcd8 13362 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
13363 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
13364 fi
2224580a 13365
2224580a
VZ
13366 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13367 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 13368else
dad6c0ea
VZ
13369 USE_GUI=0
13370
3a922bb4 13371 TOOLKIT_DIR="base"
f6bcfd97 13372
3a922bb4
RL
13373 if test "$USE_WIN32" = 1 ; then
13374 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13375 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 13376
3a922bb4 13377 TOOLKIT="MSW"
f6bcfd97 13378 else
3a922bb4
RL
13379 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13380 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
13381 fi
13382
831b3152 13383 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
13384
13385 GUIDIST="BASE_DIST"
13386 DISTDIR="wxBase"
10f2d63a
VZ
13387fi
13388
e45387bf
VZ
13389
13390if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13391 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13392fi
13393
4f14bcd8 13394if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
13395 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13396fi
4f14bcd8 13397if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
13398 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13399fi
10f2d63a 13400
3a922bb4 13401if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
13402 if test "$wxUSE_MAC" = 1; then
13403 OPENGL_LIBS="-framework OpenGL -framework AGL"
13404 else
570cb8cb 13405
62d0491b 13406 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 13407echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f79bd02d 13408echo "configure:13409: checking for GL/gl.h" >&5
3a922bb4
RL
13409if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13411else
13412 cat > conftest.$ac_ext <<EOF
f79bd02d 13413#line 13414 "configure"
3a922bb4
RL
13414#include "confdefs.h"
13415#include <GL/gl.h>
13416EOF
13417ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 13418{ (eval echo configure:13419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
13419ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13420if test -z "$ac_err"; then
13421 rm -rf conftest*
13422 eval "ac_cv_header_$ac_safe=yes"
13423else
13424 echo "$ac_err" >&5
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13427 rm -rf conftest*
13428 eval "ac_cv_header_$ac_safe=no"
13429fi
13430rm -f conftest*
13431fi
13432if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434
1352efdf 13435 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
f79bd02d 13436echo "configure:13437: checking for -lGL" >&5
57964555 13437
62d0491b
RL
13438ac_find_libraries=
13439for ac_dir in $SEARCH_LIB;
13440 do
13441 for ac_extension in a so sl dylib; do
13442 if test -f "$ac_dir/libGL.$ac_extension"; then
13443 ac_find_libraries=$ac_dir
13444 break 2
13445 fi
13446 done
13447 done
3a922bb4 13448
62d0491b
RL
13449 if test "$ac_find_libraries" != "" ; then
13450
13451 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13452 result=$?
13453 if test $result = 0; then
13454 ac_path_to_link=""
13455 else
13456 ac_path_to_link=" -L$ac_find_libraries"
13457 fi
3a922bb4 13458
4b6b4dfc
RR
13459 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13460 LDFLAGS_GL="$LDFLAGS"
13461 else
13462 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13463 fi
62d0491b 13464 OPENGL_LIBS="-lGL -lGLU"
1352efdf 13465 echo "$ac_t""yes" 1>&6
62d0491b 13466 else
1352efdf
RL
13467 echo "$ac_t""no" 1>&6
13468 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
f79bd02d 13469echo "configure:13470: checking for -lMesaGL" >&5
62d0491b
RL
13470
13471ac_find_libraries=
13472for ac_dir in $SEARCH_LIB;
13473 do
13474 for ac_extension in a so sl dylib; do
13475 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13476 ac_find_libraries=$ac_dir
13477 break 2
13478 fi
13479 done
13480 done
3a922bb4 13481
62d0491b 13482 if test "$ac_find_libraries" != "" ; then
57964555 13483
62d0491b
RL
13484 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13485 result=$?
13486 if test $result = 0; then
13487 ac_path_to_link=""
13488 else
13489 ac_path_to_link=" -L$ac_find_libraries"
13490 fi
3a922bb4 13491
62d0491b
RL
13492 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13493 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
13494 echo "$ac_t""yes" 1>&6
13495 else
13496 echo "$ac_t""no" 1>&6
62d0491b
RL
13497 fi
13498 fi
13499
3a922bb4
RL
13500else
13501 echo "$ac_t""no" 1>&6
3a922bb4
RL
13502fi
13503
6f754473 13504
62d0491b
RL
13505
13506# AC_CHECK_HEADER(GL/gl.h,
13507# [
13508# AC_CHECK_LIB(GL, glFlush,
13509# [
13510# OPENGL_LIBS="-lGL -lGLU"
13511# ],
13512# [
13513# AC_CHECK_LIB(MesaGL, glFlush,
13514# [
13515# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13516# ],
13517# [],
13518# [-lm])
13519# ],
13520# [-lm])
13521# ])
13522
13523 if test "x$OPENGL_LIBS" = "x"; then
13524 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13525 fi
6f754473 13526 fi
6f754473 13527
62d0491b
RL
13528 if test "$wxUSE_OPENGL" = "yes"; then
13529 cat >> confdefs.h <<\EOF
6f754473
VZ
13530#define wxUSE_OPENGL 1
13531EOF
13532
62d0491b 13533 cat >> confdefs.h <<\EOF
6f754473
VZ
13534#define wxUSE_GLCANVAS 1
13535EOF
13536
62d0491b
RL
13537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13538 fi
3a922bb4
RL
13539fi
13540
13541if test -z "$TOOLKIT_VPATH" ; then
13542 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13543fi
13544
13545if test -n "$TOOLKIT" ; then
13546 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13547fi
13548
f676c7ff
MB
13549lib_unicode_suffix=
13550if test "$wxUSE_UNICODE" = "yes"; then
13551 lib_unicode_suffix=u
13552fi
13553
3a922bb4
RL
13554lib_debug_suffix=
13555if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13556 lib_debug_suffix=d
3a922bb4
RL
13557fi
13558
f676c7ff
MB
13559TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13560TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
13561
13562if test "$cross_compiling" = "yes"; then
13563 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13564 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13565fi
13566
13567WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13568WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13569
3a922bb4
RL
13570WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13571WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13572
13573WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13574WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13575WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13576WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13577
d08b457b 13578WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 13579WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 13580
978f1259
RL
13581case "${host}" in
13582 *-*-cygwin* | *-*-mingw32* )
13583
2da4f892 13584
978f1259
RL
13585
13586 if test "$cross_compiling" != "yes"; then
13587 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13588 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13589 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13590 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
13591 else
13592 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13593 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
13594 fi
13595
13596esac
13597
13598WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13599WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13600
13601WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 13602WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
13603
13604if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
13605 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13606 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
13607fi
13608
13609
3a922bb4
RL
13610
13611if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
13612
13613 if test "$wxUSE_OPENGL" = "yes"; then
13614 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 13615 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
13616 else
13617 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 13618 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
13619 fi
13620
dd4f7467 13621 if test "$GCC" = "yes"; then
55e80573 13622 PIC_FLAG="-fPIC"
dd4f7467 13623 fi
55e80573
VZ
13624
13625 SHARED_LD="${CXX} -shared -o"
698dcdb6 13626
10f2d63a
VZ
13627 case "${host}" in
13628 *-hp-hpux* )
d569ea8d
GD
13629 if test "$GCC" == "yes"; then
13630 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13631 else
3d63bc3a 13632 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 13633
10f2d63a
VZ
13634 SHARED_LD="${CXX} -b -o"
13635 PIC_FLAG="+Z"
13636 fi
55e80573 13637
7b7a7637
RL
13638 if test "$wxUSE_OPENGL" = "yes"; then
13639 WX_ALL_INSTALLED="preinstall_gl"
13640 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13641 else
13642 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13643 fi
10f2d63a 13644 ;;
b12915c1 13645
55e80573
VZ
13646 *-*-linux* )
13647 if test "$GCC" != "yes"; then
13648 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
f79bd02d 13649echo "configure:13650: checking for Intel compiler" >&5
55e80573
VZ
13650if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13652else
13653
13654 cat > conftest.$ac_ext <<EOF
f79bd02d 13655#line 13656 "configure"
55e80573
VZ
13656#include "confdefs.h"
13657
13658int main() {
13659
13660 #ifndef __INTEL_COMPILER
dd4f7467 13661 #error Not icc
55e80573
VZ
13662 #endif
13663
13664; return 0; }
13665EOF
f79bd02d 13666if { (eval echo configure:13667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
13667 rm -rf conftest*
13668 wx_cv_prog_icc=yes
13669else
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 wx_cv_prog_icc=no
13674
13675fi
13676rm -f conftest*
13677
13678fi
13679
13680echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
13681 if test "$wx_cv_prog_icc" = "yes"; then
13682 PIC_FLAG="-KPIC"
13683 fi
13684 fi
13685
3a922bb4
RL
13686 if test "$wxUSE_SONAME" = "yes" ; then
13687 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13688 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 13689 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 13690 fi
10f2d63a 13691 ;;
55e80573 13692
10f2d63a
VZ
13693 *-*-solaris2* )
13694 if test "$GCC" = yes ; then
f6bcfd97 13695 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
13696 else
13697 SHARED_LD="${CXX} -G -o"
13698 PIC_FLAG="-KPIC"
7b7a7637 13699 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 13700 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13701 fi
10f2d63a 13702 ;;
55e80573 13703
b4085ce6 13704 *-*-darwin* )
156b2523
GD
13705 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13706 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13707 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 13708 PIC_FLAG="-dynamic -fPIC"
10f2d63a 13709 ;;
55e80573 13710
10f2d63a
VZ
13711 *-*-aix* )
13712 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 13713 ;;
55e80573 13714
7b7a7637 13715 *-*-cygwin* | *-*-mingw32* )
77e13408 13716
2da4f892 13717 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 13718
77e13408 13719 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 13720 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
13721
13722 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
13723
13724 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 13725 WX_ALL_INSTALLED="preinstall_gl"
978f1259 13726 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 13727 else
978f1259 13728 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 13729 fi
10f2d63a 13730 ;;
55e80573 13731
6fa882bd 13732 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 13733 wxUSE_SHARED=no
10f2d63a 13734 ;;
55e80573 13735
b12915c1 13736 *-*-beos* )
e2b8b066 13737 SHARED_LD="${LD} -shared -o"
b12915c1 13738 ;;
55e80573
VZ
13739
13740 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13741 *-*-sunos4* | \
13742 *-*-irix5* | *-*-irix6* | \
13743 *-*-osf* | \
13744 *-*-dgux5* | \
13745 *-*-sysv5* )
13746 ;;
13747
10f2d63a 13748 *)
7b7a7637 13749 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
13750 esac
13751
13752 if test "x$WX_TARGET_LIBRARY" = "x"; then
13753 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 13754 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13755 fi
55e80573 13756
3711412e 13757 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 13758 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 13759fi
f6bcfd97 13760
3a922bb4 13761if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 13762
3a922bb4 13763 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
13764 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13765 fi
13766
6fa882bd
RR
13767 if test "$wxUSE_MAC" = 1; then
13768 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13769 fi
13770
3a922bb4
RL
13771 if test "$wxUSE_OPENGL" = "yes"; then
13772 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13773 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13774 else
13775 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13776 fi
698dcdb6 13777
3a922bb4
RL
13778 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13779 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13780
13781 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 13782 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 13783fi
10f2d63a 13784
d08b457b
GD
13785if test "$wxUSE_MAC" = 1; then
13786 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 13787 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
13788 # Extract the first word of "Rez", so it can be a program name with args.
13789set dummy Rez; ac_word=$2
13790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 13791echo "configure:13792: checking for $ac_word" >&5
d08b457b
GD
13792if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
13794else
13795 if test -n "$RESCOMP"; then
13796 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13797else
13798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13799 ac_dummy="$PATH"
13800 for ac_dir in $ac_dummy; do
13801 test -z "$ac_dir" && ac_dir=.
13802 if test -f $ac_dir/$ac_word; then
13803 ac_cv_prog_RESCOMP="Rez"
13804 break
13805 fi
13806 done
13807 IFS="$ac_save_ifs"
13808 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13809fi
13810fi
13811RESCOMP="$ac_cv_prog_RESCOMP"
13812if test -n "$RESCOMP"; then
13813 echo "$ac_t""$RESCOMP" 1>&6
13814else
13815 echo "$ac_t""no" 1>&6
13816fi
13817
9f8148b1
GD
13818 # Extract the first word of "DeRez", so it can be a program name with args.
13819set dummy DeRez; ac_word=$2
d08b457b 13820echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f79bd02d 13821echo "configure:13822: checking for $ac_word" >&5
d08b457b
GD
13822if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13823 echo $ac_n "(cached) $ac_c" 1>&6
13824else
13825 if test -n "$DEREZ"; then
13826 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13827else
13828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13829 ac_dummy="$PATH"
13830 for ac_dir in $ac_dummy; do
13831 test -z "$ac_dir" && ac_dir=.
13832 if test -f $ac_dir/$ac_word; then
9f8148b1 13833 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13834 break
13835 fi
13836 done
13837 IFS="$ac_save_ifs"
9f8148b1 13838 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13839fi
13840fi
13841DEREZ="$ac_cv_prog_DEREZ"
13842if test -n "$DEREZ"; then
13843 echo "$ac_t""$DEREZ" 1>&6
13844else
13845 echo "$ac_t""no" 1>&6
13846fi
13847
13848 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13849 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 13850 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
13851fi
13852
3a922bb4 13853
13c0541d
GD
13854if test "$wxUSE_MAC" != 1; then
13855 for ac_hdr in strings.h
9cfadba2 13856do
698dcdb6
VZ
13857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 13859echo "configure:13860: checking for $ac_hdr" >&5
698dcdb6
VZ
13860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13862else
13863 cat > conftest.$ac_ext <<EOF
f79bd02d 13864#line 13865 "configure"
9cfadba2 13865#include "confdefs.h"
698dcdb6
VZ
13866#include <$ac_hdr>
13867EOF
13868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 13869{ (eval echo configure:13870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13871if test -z "$ac_err"; then
13872 rm -rf conftest*
13873 eval "ac_cv_header_$ac_safe=yes"
6232543b 13874else
698dcdb6
VZ
13875 echo "$ac_err" >&5
13876 echo "configure: failed program was:" >&5
9cfadba2 13877 cat conftest.$ac_ext >&5
698dcdb6
VZ
13878 rm -rf conftest*
13879 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13880fi
698dcdb6 13881rm -f conftest*
9cfadba2 13882fi
698dcdb6
VZ
13883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13886 cat >> confdefs.h <<EOF
13887#define $ac_tr_hdr 1
9cfadba2 13888EOF
698dcdb6
VZ
13889
13890else
13891 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13892fi
13893done
10f2d63a 13894
13c0541d
GD
13895fi
13896
3a922bb4 13897for ac_hdr in stdlib.h
10f2d63a 13898do
698dcdb6
VZ
13899ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13900echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 13901echo "configure:13902: checking for $ac_hdr" >&5
698dcdb6
VZ
13902if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13904else
13905 cat > conftest.$ac_ext <<EOF
f79bd02d 13906#line 13907 "configure"
10f2d63a 13907#include "confdefs.h"
698dcdb6
VZ
13908#include <$ac_hdr>
13909EOF
13910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 13911{ (eval echo configure:13912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13913if test -z "$ac_err"; then
13914 rm -rf conftest*
13915 eval "ac_cv_header_$ac_safe=yes"
6232543b 13916else
698dcdb6
VZ
13917 echo "$ac_err" >&5
13918 echo "configure: failed program was:" >&5
10f2d63a 13919 cat conftest.$ac_ext >&5
698dcdb6
VZ
13920 rm -rf conftest*
13921 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13922fi
698dcdb6 13923rm -f conftest*
10f2d63a 13924fi
698dcdb6
VZ
13925if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13926 echo "$ac_t""yes" 1>&6
13927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13928 cat >> confdefs.h <<EOF
13929#define $ac_tr_hdr 1
10f2d63a 13930EOF
698dcdb6
VZ
13931
13932else
13933 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13934fi
13935done
13936
9f8148b1 13937for ac_hdr in malloc.h
10f2d63a 13938do
698dcdb6
VZ
13939ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13940echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 13941echo "configure:13942: checking for $ac_hdr" >&5
698dcdb6
VZ
13942if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944else
13945 cat > conftest.$ac_ext <<EOF
f79bd02d 13946#line 13947 "configure"
10f2d63a 13947#include "confdefs.h"
698dcdb6
VZ
13948#include <$ac_hdr>
13949EOF
13950ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 13951{ (eval echo configure:13952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13952ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13953if test -z "$ac_err"; then
13954 rm -rf conftest*
13955 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13956else
698dcdb6
VZ
13957 echo "$ac_err" >&5
13958 echo "configure: failed program was:" >&5
6f72b082 13959 cat conftest.$ac_ext >&5
698dcdb6
VZ
13960 rm -rf conftest*
13961 eval "ac_cv_header_$ac_safe=no"
6f72b082 13962fi
698dcdb6 13963rm -f conftest*
6f72b082 13964fi
698dcdb6
VZ
13965if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13966 echo "$ac_t""yes" 1>&6
13967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13968 cat >> confdefs.h <<EOF
13969#define $ac_tr_hdr 1
6f72b082 13970EOF
698dcdb6
VZ
13971
13972else
13973 echo "$ac_t""no" 1>&6
6f72b082
OK
13974fi
13975done
13976
9f8148b1 13977for ac_hdr in unistd.h
6f72b082 13978do
698dcdb6
VZ
13979ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13980echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 13981echo "configure:13982: checking for $ac_hdr" >&5
698dcdb6
VZ
13982if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984else
13985 cat > conftest.$ac_ext <<EOF
f79bd02d 13986#line 13987 "configure"
6f72b082 13987#include "confdefs.h"
698dcdb6
VZ
13988#include <$ac_hdr>
13989EOF
13990ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 13991{ (eval echo configure:13992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13992ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13993if test -z "$ac_err"; then
13994 rm -rf conftest*
13995 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13996else
698dcdb6
VZ
13997 echo "$ac_err" >&5
13998 echo "configure: failed program was:" >&5
6f72b082 13999 cat conftest.$ac_ext >&5
698dcdb6
VZ
14000 rm -rf conftest*
14001 eval "ac_cv_header_$ac_safe=no"
6f72b082 14002fi
698dcdb6 14003rm -f conftest*
6f72b082 14004fi
698dcdb6
VZ
14005if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14006 echo "$ac_t""yes" 1>&6
14007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14008 cat >> confdefs.h <<EOF
14009#define $ac_tr_hdr 1
6f72b082 14010EOF
698dcdb6
VZ
14011
14012else
14013 echo "$ac_t""no" 1>&6
6f72b082
OK
14014fi
14015done
14016
9f8148b1 14017for ac_hdr in wchar.h
6f72b082 14018do
698dcdb6
VZ
14019ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14020echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14021echo "configure:14022: checking for $ac_hdr" >&5
698dcdb6
VZ
14022if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14024else
14025 cat > conftest.$ac_ext <<EOF
f79bd02d 14026#line 14027 "configure"
6f72b082 14027#include "confdefs.h"
698dcdb6
VZ
14028#include <$ac_hdr>
14029EOF
14030ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14031{ (eval echo configure:14032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14032ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14033if test -z "$ac_err"; then
14034 rm -rf conftest*
14035 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14036else
698dcdb6
VZ
14037 echo "$ac_err" >&5
14038 echo "configure: failed program was:" >&5
10f2d63a 14039 cat conftest.$ac_ext >&5
698dcdb6
VZ
14040 rm -rf conftest*
14041 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14042fi
698dcdb6 14043rm -f conftest*
10f2d63a 14044fi
698dcdb6
VZ
14045if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14048 cat >> confdefs.h <<EOF
14049#define $ac_tr_hdr 1
10f2d63a 14050EOF
698dcdb6
VZ
14051
14052else
14053 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14054fi
14055done
14056
9f8148b1 14057for ac_hdr in wcstr.h
0fb0dd83 14058do
698dcdb6
VZ
14059ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14060echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14061echo "configure:14062: checking for $ac_hdr" >&5
698dcdb6
VZ
14062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14063 echo $ac_n "(cached) $ac_c" 1>&6
14064else
14065 cat > conftest.$ac_ext <<EOF
f79bd02d 14066#line 14067 "configure"
0fb0dd83 14067#include "confdefs.h"
698dcdb6
VZ
14068#include <$ac_hdr>
14069EOF
14070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14071{ (eval echo configure:14072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14073if test -z "$ac_err"; then
14074 rm -rf conftest*
14075 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 14076else
698dcdb6
VZ
14077 echo "$ac_err" >&5
14078 echo "configure: failed program was:" >&5
0fb0dd83 14079 cat conftest.$ac_ext >&5
698dcdb6
VZ
14080 rm -rf conftest*
14081 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 14082fi
698dcdb6 14083rm -f conftest*
0fb0dd83 14084fi
698dcdb6
VZ
14085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14086 echo "$ac_t""yes" 1>&6
14087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14088 cat >> confdefs.h <<EOF
14089#define $ac_tr_hdr 1
0fb0dd83 14090EOF
698dcdb6
VZ
14091
14092else
14093 echo "$ac_t""no" 1>&6
0fb0dd83
RR
14094fi
14095done
14096
9f8148b1 14097for ac_hdr in wctype.h
1f8ae82f 14098do
698dcdb6
VZ
14099ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14100echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14101echo "configure:14102: checking for $ac_hdr" >&5
698dcdb6
VZ
14102if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14104else
14105 cat > conftest.$ac_ext <<EOF
f79bd02d 14106#line 14107 "configure"
1f8ae82f 14107#include "confdefs.h"
698dcdb6
VZ
14108#include <$ac_hdr>
14109EOF
14110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14111{ (eval echo configure:14112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14113if test -z "$ac_err"; then
14114 rm -rf conftest*
14115 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 14116else
698dcdb6
VZ
14117 echo "$ac_err" >&5
14118 echo "configure: failed program was:" >&5
1f8ae82f 14119 cat conftest.$ac_ext >&5
698dcdb6
VZ
14120 rm -rf conftest*
14121 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 14122fi
698dcdb6 14123rm -f conftest*
1f8ae82f 14124fi
698dcdb6
VZ
14125if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14126 echo "$ac_t""yes" 1>&6
14127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14128 cat >> confdefs.h <<EOF
14129#define $ac_tr_hdr 1
1f8ae82f 14130EOF
698dcdb6
VZ
14131
14132else
14133 echo "$ac_t""no" 1>&6
1f8ae82f
GD
14134fi
14135done
14136
9f8148b1 14137for ac_hdr in fnmatch.h
10f2d63a 14138do
698dcdb6
VZ
14139ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14140echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14141echo "configure:14142: checking for $ac_hdr" >&5
0fbb762e
MB
14142if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144else
14145 cat > conftest.$ac_ext <<EOF
f79bd02d 14146#line 14147 "configure"
0fbb762e
MB
14147#include "confdefs.h"
14148#include <$ac_hdr>
14149EOF
14150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14151{ (eval echo configure:14152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
14152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14153if test -z "$ac_err"; then
14154 rm -rf conftest*
14155 eval "ac_cv_header_$ac_safe=yes"
14156else
14157 echo "$ac_err" >&5
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14160 rm -rf conftest*
14161 eval "ac_cv_header_$ac_safe=no"
14162fi
14163rm -f conftest*
14164fi
14165if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14166 echo "$ac_t""yes" 1>&6
14167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14168 cat >> confdefs.h <<EOF
14169#define $ac_tr_hdr 1
14170EOF
14171
14172else
14173 echo "$ac_t""no" 1>&6
14174fi
14175done
14176
9f8148b1
GD
14177for ac_hdr in langinfo.h
14178do
14179ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14180echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14181echo "configure:14182: checking for $ac_hdr" >&5
9f8148b1
GD
14182if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184else
14185 cat > conftest.$ac_ext <<EOF
f79bd02d 14186#line 14187 "configure"
9f8148b1
GD
14187#include "confdefs.h"
14188#include <$ac_hdr>
14189EOF
14190ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14191{ (eval echo configure:14192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
14192ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14193if test -z "$ac_err"; then
14194 rm -rf conftest*
14195 eval "ac_cv_header_$ac_safe=yes"
14196else
14197 echo "$ac_err" >&5
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 rm -rf conftest*
14201 eval "ac_cv_header_$ac_safe=no"
14202fi
14203rm -f conftest*
14204fi
14205if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14206 echo "$ac_t""yes" 1>&6
14207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14208 cat >> confdefs.h <<EOF
14209#define $ac_tr_hdr 1
14210EOF
14211
14212else
14213 echo "$ac_t""no" 1>&6
14214fi
14215done
14216
10f2d63a 14217
3a922bb4
RL
14218if test "$wxUSE_GUI" = "yes"; then
14219 if test "$wxUSE_UNIX" = "yes"; then
14220 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
14221do
14222ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14223echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 14224echo "configure:14225: checking for $ac_hdr" >&5
29fd3c0c
VS
14225if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14227else
14228 cat > conftest.$ac_ext <<EOF
f79bd02d 14229#line 14230 "configure"
29fd3c0c
VS
14230#include "confdefs.h"
14231#include <$ac_hdr>
14232EOF
14233ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14234{ (eval echo configure:14235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
14235ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14236if test -z "$ac_err"; then
14237 rm -rf conftest*
14238 eval "ac_cv_header_$ac_safe=yes"
14239else
14240 echo "$ac_err" >&5
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 rm -rf conftest*
14244 eval "ac_cv_header_$ac_safe=no"
14245fi
14246rm -f conftest*
14247fi
14248if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14249 echo "$ac_t""yes" 1>&6
14250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14251 cat >> confdefs.h <<EOF
14252#define $ac_tr_hdr 1
14253EOF
14254
14255else
14256 echo "$ac_t""no" 1>&6
14257fi
14258done
14259
3a922bb4 14260 fi
29fd3c0c
VS
14261fi
14262
698dcdb6
VZ
14263
14264echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f79bd02d 14265echo "configure:14266: checking for ANSI C header files" >&5
698dcdb6
VZ
14266if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14268else
698dcdb6 14269 cat > conftest.$ac_ext <<EOF
f79bd02d 14270#line 14271 "configure"
10f2d63a
VZ
14271#include "confdefs.h"
14272#include <stdlib.h>
14273#include <stdarg.h>
14274#include <string.h>
14275#include <float.h>
698dcdb6
VZ
14276EOF
14277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 14278{ (eval echo configure:14279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14280if test -z "$ac_err"; then
14281 rm -rf conftest*
10f2d63a
VZ
14282 ac_cv_header_stdc=yes
14283else
698dcdb6
VZ
14284 echo "$ac_err" >&5
14285 echo "configure: failed program was:" >&5
10f2d63a 14286 cat conftest.$ac_ext >&5
698dcdb6 14287 rm -rf conftest*
10f2d63a
VZ
14288 ac_cv_header_stdc=no
14289fi
698dcdb6 14290rm -f conftest*
10f2d63a
VZ
14291
14292if test $ac_cv_header_stdc = yes; then
14293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 14294cat > conftest.$ac_ext <<EOF
f79bd02d 14295#line 14296 "configure"
10f2d63a
VZ
14296#include "confdefs.h"
14297#include <string.h>
698dcdb6 14298EOF
10f2d63a
VZ
14299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300 egrep "memchr" >/dev/null 2>&1; then
14301 :
14302else
698dcdb6 14303 rm -rf conftest*
10f2d63a
VZ
14304 ac_cv_header_stdc=no
14305fi
14306rm -f conftest*
14307
14308fi
14309
14310if test $ac_cv_header_stdc = yes; then
14311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 14312cat > conftest.$ac_ext <<EOF
f79bd02d 14313#line 14314 "configure"
10f2d63a
VZ
14314#include "confdefs.h"
14315#include <stdlib.h>
698dcdb6 14316EOF
10f2d63a
VZ
14317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14318 egrep "free" >/dev/null 2>&1; then
14319 :
14320else
698dcdb6 14321 rm -rf conftest*
10f2d63a
VZ
14322 ac_cv_header_stdc=no
14323fi
14324rm -f conftest*
14325
14326fi
14327
14328if test $ac_cv_header_stdc = yes; then
14329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 14330if test "$cross_compiling" = yes; then
10f2d63a
VZ
14331 :
14332else
698dcdb6 14333 cat > conftest.$ac_ext <<EOF
f79bd02d 14334#line 14335 "configure"
10f2d63a
VZ
14335#include "confdefs.h"
14336#include <ctype.h>
698dcdb6
VZ
14337#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14338#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 14339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
14340int main () { int i; for (i = 0; i < 256; i++)
14341if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14342exit (0); }
14343
14344EOF
f79bd02d 14345if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14346then
10f2d63a
VZ
14347 :
14348else
698dcdb6
VZ
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -fr conftest*
14352 ac_cv_header_stdc=no
10f2d63a 14353fi
698dcdb6 14354rm -fr conftest*
10f2d63a 14355fi
698dcdb6 14356
10f2d63a
VZ
14357fi
14358fi
1e487827 14359
698dcdb6
VZ
14360echo "$ac_t""$ac_cv_header_stdc" 1>&6
14361if test $ac_cv_header_stdc = yes; then
14362 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14363#define STDC_HEADERS 1
14364EOF
14365
14366fi
14367
698dcdb6 14368echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f79bd02d 14369echo "configure:14370: checking for mode_t" >&5
698dcdb6
VZ
14370if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14372else
698dcdb6 14373 cat > conftest.$ac_ext <<EOF
f79bd02d 14374#line 14375 "configure"
1e487827 14375#include "confdefs.h"
698dcdb6
VZ
14376#include <sys/types.h>
14377#if STDC_HEADERS
14378#include <stdlib.h>
14379#include <stddef.h>
14380#endif
14381EOF
14382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14384 rm -rf conftest*
10f2d63a
VZ
14385 ac_cv_type_mode_t=yes
14386else
698dcdb6
VZ
14387 rm -rf conftest*
14388 ac_cv_type_mode_t=no
703e0a69 14389fi
698dcdb6 14390rm -f conftest*
1e487827 14391
698dcdb6
VZ
14392fi
14393echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14394if test $ac_cv_type_mode_t = no; then
14395 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14396#define mode_t int
14397EOF
14398
14399fi
14400
698dcdb6 14401echo $ac_n "checking for off_t""... $ac_c" 1>&6
f79bd02d 14402echo "configure:14403: checking for off_t" >&5
698dcdb6
VZ
14403if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14405else
698dcdb6 14406 cat > conftest.$ac_ext <<EOF
f79bd02d 14407#line 14408 "configure"
10f2d63a 14408#include "confdefs.h"
698dcdb6
VZ
14409#include <sys/types.h>
14410#if STDC_HEADERS
14411#include <stdlib.h>
14412#include <stddef.h>
14413#endif
14414EOF
14415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14417 rm -rf conftest*
10f2d63a
VZ
14418 ac_cv_type_off_t=yes
14419else
698dcdb6
VZ
14420 rm -rf conftest*
14421 ac_cv_type_off_t=no
703e0a69 14422fi
698dcdb6 14423rm -f conftest*
1e487827 14424
698dcdb6
VZ
14425fi
14426echo "$ac_t""$ac_cv_type_off_t" 1>&6
14427if test $ac_cv_type_off_t = no; then
14428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14429#define off_t long
14430EOF
14431
14432fi
14433
698dcdb6 14434echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f79bd02d 14435echo "configure:14436: checking for pid_t" >&5
698dcdb6
VZ
14436if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14437 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14438else
698dcdb6 14439 cat > conftest.$ac_ext <<EOF
f79bd02d 14440#line 14441 "configure"
10f2d63a 14441#include "confdefs.h"
698dcdb6
VZ
14442#include <sys/types.h>
14443#if STDC_HEADERS
14444#include <stdlib.h>
14445#include <stddef.h>
14446#endif
14447EOF
14448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14449 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14450 rm -rf conftest*
10f2d63a
VZ
14451 ac_cv_type_pid_t=yes
14452else
698dcdb6
VZ
14453 rm -rf conftest*
14454 ac_cv_type_pid_t=no
703e0a69 14455fi
698dcdb6 14456rm -f conftest*
1e487827 14457
698dcdb6
VZ
14458fi
14459echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14460if test $ac_cv_type_pid_t = no; then
14461 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14462#define pid_t int
14463EOF
14464
14465fi
14466
698dcdb6 14467echo $ac_n "checking for size_t""... $ac_c" 1>&6
f79bd02d 14468echo "configure:14469: checking for size_t" >&5
698dcdb6
VZ
14469if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14470 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14471else
698dcdb6 14472 cat > conftest.$ac_ext <<EOF
f79bd02d 14473#line 14474 "configure"
10f2d63a 14474#include "confdefs.h"
698dcdb6
VZ
14475#include <sys/types.h>
14476#if STDC_HEADERS
14477#include <stdlib.h>
14478#include <stddef.h>
14479#endif
14480EOF
14481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14483 rm -rf conftest*
10f2d63a
VZ
14484 ac_cv_type_size_t=yes
14485else
698dcdb6
VZ
14486 rm -rf conftest*
14487 ac_cv_type_size_t=no
703e0a69 14488fi
698dcdb6 14489rm -f conftest*
1e487827 14490
698dcdb6
VZ
14491fi
14492echo "$ac_t""$ac_cv_type_size_t" 1>&6
14493if test $ac_cv_type_size_t = no; then
14494 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14495#define size_t unsigned
14496EOF
14497
14498fi
14499
698dcdb6 14500echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f79bd02d 14501echo "configure:14502: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
14502if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14504else
698dcdb6 14505 cat > conftest.$ac_ext <<EOF
f79bd02d 14506#line 14507 "configure"
10f2d63a
VZ
14507#include "confdefs.h"
14508#include <sys/types.h>
698dcdb6 14509EOF
10f2d63a
VZ
14510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14511 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 14512 rm -rf conftest*
10f2d63a
VZ
14513 ac_cv_type_uid_t=yes
14514else
698dcdb6 14515 rm -rf conftest*
10f2d63a
VZ
14516 ac_cv_type_uid_t=no
14517fi
14518rm -f conftest*
14519
14520fi
1e487827 14521
698dcdb6
VZ
14522echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14523if test $ac_cv_type_uid_t = no; then
14524 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14525#define uid_t int
14526EOF
14527
698dcdb6 14528 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14529#define gid_t int
14530EOF
14531
14532fi
14533
1e487827 14534
698dcdb6 14535echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
f79bd02d 14536echo "configure:14537: checking for wchar_t" >&5
698dcdb6
VZ
14537if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14538 echo $ac_n "(cached) $ac_c" 1>&6
14539else
14540
14541 cat > conftest.$ac_ext <<EOF
f79bd02d 14542#line 14543 "configure"
0046ff7c 14543#include "confdefs.h"
4b42290e
GD
14544
14545 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14546 # ifdef __CYGWIN__
14547 # include <stddef.h>
14548 # endif
4b42290e
GD
14549 # include <wchar.h>
14550 #endif
14551 #ifdef HAVE_STDLIB_H
14552 # include <stdlib.h>
14553 #endif
14554
698dcdb6 14555int main() {
0046ff7c 14556
d836ee96
VZ
14557 wchar_t wc, *ws;
14558 wc = L'a';
14559 ws = L"Hello, world!";
698dcdb6
VZ
14560
14561; return 0; }
14562EOF
f79bd02d 14563if { (eval echo configure:14564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14564 rm -rf conftest*
1f8ae82f 14565 wx_cv_type_wchar_t=yes
0046ff7c 14566else
698dcdb6
VZ
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 rm -rf conftest*
14570 wx_cv_type_wchar_t=no
d836ee96 14571
6232543b 14572fi
698dcdb6 14573rm -f conftest*
703e0a69 14574
1e487827 14575fi
698dcdb6
VZ
14576
14577echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
14578
14579if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 14580 cat >> confdefs.h <<\EOF
0046ff7c
VS
14581#define wxUSE_WCHAR_T 1
14582EOF
14583
14584fi
14585
19af3b06
VZ
14586
14587ac_ext=C
14588# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14589ac_cpp='$CXXCPP $CPPFLAGS'
14590ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14591ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14592cross_compiling=$ac_cv_prog_cxx_cross
14593
d836ee96 14594echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
f79bd02d 14595echo "configure:14596: checking if size_t is unsigned int" >&5
d836ee96
VZ
14596if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14597 echo $ac_n "(cached) $ac_c" 1>&6
14598else
dd2c8b7c 14599 cat > conftest.$ac_ext <<EOF
f79bd02d 14600#line 14601 "configure"
d836ee96
VZ
14601#include "confdefs.h"
14602#include <stddef.h>
14603int main() {
14604
dd2c8b7c
VZ
14605 return 0; }
14606
d836ee96 14607 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
14608
14609 int bar() {
d836ee96
VZ
14610
14611; return 0; }
14612EOF
f79bd02d 14613if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14614 rm -rf conftest*
14615 wx_cv_size_t_is_uint=no
14616else
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -rf conftest*
14620 wx_cv_size_t_is_uint=yes
14621
14622fi
14623rm -f conftest*
14624
14625fi
14626
14627echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14628
14629if test "$wx_cv_size_t_is_uint" = "yes"; then
14630 cat >> confdefs.h <<\EOF
14631#define wxSIZE_T_IS_UINT 1
14632EOF
14633
14634else
14635 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
f79bd02d 14636echo "configure:14637: checking if size_t is unsigned long" >&5
d836ee96
VZ
14637if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14638 echo $ac_n "(cached) $ac_c" 1>&6
14639else
14640 cat > conftest.$ac_ext <<EOF
f79bd02d 14641#line 14642 "configure"
d836ee96
VZ
14642#include "confdefs.h"
14643#include <stddef.h>
14644int main() {
14645
dd2c8b7c
VZ
14646 return 0; }
14647
d836ee96 14648 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
14649
14650 int bar() {
d836ee96
VZ
14651
14652; return 0; }
14653EOF
f79bd02d 14654if { (eval echo configure:14655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14655 rm -rf conftest*
14656 wx_cv_size_t_is_ulong=no
14657else
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14660 rm -rf conftest*
14661 wx_cv_size_t_is_ulong=yes
14662
14663fi
14664rm -f conftest*
14665
14666fi
14667
14668echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14669
14670 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14671 cat >> confdefs.h <<\EOF
14672#define wxSIZE_T_IS_ULONG 1
14673EOF
14674
14675 fi
14676fi
14677
19af3b06
VZ
14678ac_ext=c
14679# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14680ac_cpp='$CPP $CPPFLAGS'
14681ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14682ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14683cross_compiling=$ac_cv_prog_cc_cross
14684
14685
1e487827 14686
698dcdb6 14687echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
f79bd02d 14688echo "configure:14689: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
14689if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14690 echo $ac_n "(cached) $ac_c" 1>&6
14691else
14692
14693 cat > conftest.$ac_ext <<EOF
f79bd02d 14694#line 14695 "configure"
b12915c1
VZ
14695#include "confdefs.h"
14696#include <pwd.h>
698dcdb6 14697int main() {
b12915c1
VZ
14698
14699 char *p;
14700 struct passwd *pw;
14701 p = pw->pw_gecos;
698dcdb6
VZ
14702
14703; return 0; }
14704EOF
f79bd02d 14705if { (eval echo configure:14706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14706 rm -rf conftest*
14707
b12915c1 14708 wx_cv_struct_pw_gecos=yes
698dcdb6 14709
b12915c1 14710else
698dcdb6
VZ
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714
b12915c1 14715 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
14716
14717
6232543b 14718fi
698dcdb6
VZ
14719rm -f conftest*
14720
703e0a69 14721
1e487827 14722fi
698dcdb6
VZ
14723
14724echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 14725
bd3277fe 14726if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 14727 cat >> confdefs.h <<\EOF
bd3277fe
VZ
14728#define HAVE_PW_GECOS 1
14729EOF
14730
14731fi
14732
698dcdb6
VZ
14733
14734echo $ac_n "checking for working const""... $ac_c" 1>&6
f79bd02d 14735echo "configure:14736: checking for working const" >&5
698dcdb6
VZ
14736if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14738else
698dcdb6 14739 cat > conftest.$ac_ext <<EOF
f79bd02d 14740#line 14741 "configure"
10f2d63a 14741#include "confdefs.h"
698dcdb6
VZ
14742
14743int main() {
14744
14745/* Ultrix mips cc rejects this. */
4cdb0ab0 14746typedef int charset[2]; const charset x;
698dcdb6
VZ
14747/* SunOS 4.1.1 cc rejects this. */
14748char const *const *ccp;
14749char **p;
14750/* NEC SVR4.0.2 mips cc rejects this. */
14751struct point {int x, y;};
14752static struct point const zero = {0,0};
14753/* AIX XL C 1.02.0.0 rejects this.
14754 It does not let you subtract one const X* pointer from another in an arm
14755 of an if-expression whose if-part is not a constant expression */
14756const char *g = "string";
14757ccp = &g + (g ? g-g : 0);
14758/* HPUX 7.0 cc rejects these. */
14759++ccp;
14760p = (char**) ccp;
14761ccp = (char const *const *) p;
14762{ /* SCO 3.2v4 cc rejects this. */
14763 char *t;
14764 char const *s = 0 ? (char *) 0 : (char const *) 0;
14765
14766 *t++ = 0;
10f2d63a 14767}
698dcdb6
VZ
14768{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14769 int x[] = {25, 17};
14770 const int *foo = &x[0];
14771 ++foo;
703e0a69 14772}
698dcdb6
VZ
14773{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14774 typedef const int *iptr;
14775 iptr p = 0;
14776 ++p;
6232543b 14777}
698dcdb6
VZ
14778{ /* AIX XL C 1.02.0.0 rejects this saying
14779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14780 struct s { int j; const int *ap[3]; };
14781 struct s *b; b->j = 5;
1e487827 14782}
698dcdb6
VZ
14783{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14784 const int foo = 10;
14785}
4f14bcd8
GD
14786
14787; return 0; }
698dcdb6 14788EOF
f79bd02d 14789if { (eval echo configure:14790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14790 rm -rf conftest*
14791 ac_cv_c_const=yes
698dcdb6
VZ
14792else
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
4f14bcd8
GD
14795 rm -rf conftest*
14796 ac_cv_c_const=no
703e0a69 14797fi
4f14bcd8 14798rm -f conftest*
698dcdb6
VZ
14799fi
14800
4f14bcd8
GD
14801echo "$ac_t""$ac_cv_c_const" 1>&6
14802if test $ac_cv_c_const = no; then
14803 cat >> confdefs.h <<\EOF
14804#define const
698dcdb6
VZ
14805EOF
14806
4f14bcd8 14807fi
698dcdb6 14808
4f14bcd8 14809echo $ac_n "checking for inline""... $ac_c" 1>&6
f79bd02d 14810echo "configure:14811: checking for inline" >&5
4f14bcd8 14811if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14812 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14813else
4f14bcd8
GD
14814 ac_cv_c_inline=no
14815for ac_kw in inline __inline__ __inline; do
698dcdb6 14816 cat > conftest.$ac_ext <<EOF
f79bd02d 14817#line 14818 "configure"
10f2d63a 14818#include "confdefs.h"
4f14bcd8
GD
14819
14820int main() {
4cdb0ab0 14821} $ac_kw foo() {
4f14bcd8 14822; return 0; }
698dcdb6 14823EOF
f79bd02d 14824if { (eval echo configure:14825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14825 rm -rf conftest*
14826 ac_cv_c_inline=$ac_kw; break
10f2d63a 14827else
698dcdb6
VZ
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
10f2d63a 14830fi
4f14bcd8
GD
14831rm -f conftest*
14832done
698dcdb6 14833
10f2d63a 14834fi
4f14bcd8
GD
14835
14836echo "$ac_t""$ac_cv_c_inline" 1>&6
14837case "$ac_cv_c_inline" in
14838 inline | yes) ;;
14839 no) cat >> confdefs.h <<\EOF
14840#define inline
14841EOF
14842 ;;
14843 *) cat >> confdefs.h <<EOF
14844#define inline $ac_cv_c_inline
698dcdb6 14845EOF
4f14bcd8
GD
14846 ;;
14847esac
698dcdb6
VZ
14848
14849
4f14bcd8 14850echo $ac_n "checking size of char""... $ac_c" 1>&6
f79bd02d 14851echo "configure:14852: checking size of char" >&5
4f14bcd8 14852if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14853 echo $ac_n "(cached) $ac_c" 1>&6
14854else
14855 if test "$cross_compiling" = yes; then
4f14bcd8 14856 ac_cv_sizeof_char=1
698dcdb6
VZ
14857else
14858 cat > conftest.$ac_ext <<EOF
f79bd02d 14859#line 14860 "configure"
698dcdb6
VZ
14860#include "confdefs.h"
14861#include <stdio.h>
f79bd02d 14862int main()
698dcdb6
VZ
14863{
14864 FILE *f=fopen("conftestval", "w");
f79bd02d 14865 if (!f) return(1);
4f14bcd8 14866 fprintf(f, "%d\n", sizeof(char));
f79bd02d 14867 return(0);
698dcdb6
VZ
14868}
14869EOF
f79bd02d 14870if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14871then
4f14bcd8 14872 ac_cv_sizeof_char=`cat conftestval`
6232543b 14873else
698dcdb6
VZ
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 rm -fr conftest*
4f14bcd8 14877 ac_cv_sizeof_char=0
6232543b 14878fi
698dcdb6
VZ
14879rm -fr conftest*
14880fi
14881
703e0a69 14882fi
4f14bcd8 14883echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14884cat >> confdefs.h <<EOF
4f14bcd8 14885#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14886EOF
14887
1e487827 14888
4f14bcd8 14889echo $ac_n "checking size of short""... $ac_c" 1>&6
f79bd02d 14890echo "configure:14891: checking size of short" >&5
4f14bcd8 14891if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893else
4f14bcd8
GD
14894 if test "$cross_compiling" = yes; then
14895 ac_cv_sizeof_short=2
b93d0d08 14896else
698dcdb6 14897 cat > conftest.$ac_ext <<EOF
f79bd02d 14898#line 14899 "configure"
b93d0d08 14899#include "confdefs.h"
4f14bcd8 14900#include <stdio.h>
f79bd02d 14901int main()
4f14bcd8
GD
14902{
14903 FILE *f=fopen("conftestval", "w");
f79bd02d 14904 if (!f) return(1);
4f14bcd8 14905 fprintf(f, "%d\n", sizeof(short));
f79bd02d 14906 return(0);
4f14bcd8 14907}
698dcdb6 14908EOF
f79bd02d 14909if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14910then
4f14bcd8 14911 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14912else
698dcdb6
VZ
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -fr conftest*
4f14bcd8 14916 ac_cv_sizeof_short=0
b93d0d08 14917fi
698dcdb6 14918rm -fr conftest*
b93d0d08
VS
14919fi
14920
b93d0d08 14921fi
4f14bcd8 14922echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14923cat >> confdefs.h <<EOF
4f14bcd8 14924#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14925EOF
14926
698dcdb6 14927
4f14bcd8 14928echo $ac_n "checking size of int *""... $ac_c" 1>&6
f79bd02d 14929echo "configure:14930: checking size of int *" >&5
4f14bcd8 14930if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14931 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14932else
4f14bcd8
GD
14933 if test "$cross_compiling" = yes; then
14934 ac_cv_sizeof_int_p=4
3a922bb4 14935else
3a922bb4 14936 cat > conftest.$ac_ext <<EOF
f79bd02d 14937#line 14938 "configure"
3a922bb4 14938#include "confdefs.h"
4f14bcd8 14939#include <stdio.h>
f79bd02d 14940int main()
4f14bcd8
GD
14941{
14942 FILE *f=fopen("conftestval", "w");
f79bd02d 14943 if (!f) return(1);
4f14bcd8 14944 fprintf(f, "%d\n", sizeof(int *));
f79bd02d 14945 return(0);
4f14bcd8
GD
14946}
14947EOF
f79bd02d 14948if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14949then
14950 ac_cv_sizeof_int_p=`cat conftestval`
14951else
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14954 rm -fr conftest*
14955 ac_cv_sizeof_int_p=0
3a922bb4 14956fi
4f14bcd8 14957rm -fr conftest*
3a922bb4 14958fi
698dcdb6 14959
4f14bcd8
GD
14960fi
14961echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14962cat >> confdefs.h <<EOF
14963#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14964EOF
14965
703e0a69 14966
4f14bcd8 14967echo $ac_n "checking size of int""... $ac_c" 1>&6
f79bd02d 14968echo "configure:14969: checking size of int" >&5
4f14bcd8 14969if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14970 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14971else
14972 if test "$cross_compiling" = yes; then
14973 ac_cv_sizeof_int=4
698dcdb6
VZ
14974else
14975 cat > conftest.$ac_ext <<EOF
f79bd02d 14976#line 14977 "configure"
10f2d63a 14977#include "confdefs.h"
4f14bcd8 14978#include <stdio.h>
f79bd02d 14979int main()
4f14bcd8
GD
14980{
14981 FILE *f=fopen("conftestval", "w");
f79bd02d 14982 if (!f) return(1);
4f14bcd8 14983 fprintf(f, "%d\n", sizeof(int));
f79bd02d 14984 return(0);
4f14bcd8 14985}
698dcdb6 14986EOF
f79bd02d 14987if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14988then
14989 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14990else
698dcdb6 14991 echo "configure: failed program was:" >&5
10f2d63a 14992 cat conftest.$ac_ext >&5
4f14bcd8
GD
14993 rm -fr conftest*
14994 ac_cv_sizeof_int=0
10f2d63a 14995fi
4f14bcd8 14996rm -fr conftest*
10f2d63a 14997fi
10f2d63a 14998
4f14bcd8
GD
14999fi
15000echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15001cat >> confdefs.h <<EOF
15002#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
15003EOF
15004
698dcdb6 15005
4f14bcd8 15006echo $ac_n "checking size of long""... $ac_c" 1>&6
f79bd02d 15007echo "configure:15008: checking size of long" >&5
4f14bcd8 15008if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
15009 echo $ac_n "(cached) $ac_c" 1>&6
15010else
4f14bcd8
GD
15011 if test "$cross_compiling" = yes; then
15012 ac_cv_sizeof_long=4
15013else
15014 cat > conftest.$ac_ext <<EOF
f79bd02d 15015#line 15016 "configure"
10f2d63a 15016#include "confdefs.h"
4f14bcd8 15017#include <stdio.h>
f79bd02d 15018int main()
4f14bcd8
GD
15019{
15020 FILE *f=fopen("conftestval", "w");
f79bd02d 15021 if (!f) return(1);
4f14bcd8 15022 fprintf(f, "%d\n", sizeof(long));
f79bd02d 15023 return(0);
4f14bcd8 15024}
698dcdb6 15025EOF
f79bd02d 15026if { (eval echo configure:15027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15027then
15028 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 15029else
698dcdb6
VZ
15030 echo "configure: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
4f14bcd8
GD
15032 rm -fr conftest*
15033 ac_cv_sizeof_long=0
10f2d63a 15034fi
4f14bcd8 15035rm -fr conftest*
10f2d63a 15036fi
698dcdb6 15037
4f14bcd8
GD
15038fi
15039echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15040cat >> confdefs.h <<EOF
15041#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
15042EOF
15043
698dcdb6 15044
4f14bcd8 15045echo $ac_n "checking size of long long""... $ac_c" 1>&6
f79bd02d 15046echo "configure:15047: checking size of long long" >&5
4f14bcd8 15047if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 15048 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15049else
4f14bcd8
GD
15050 if test "$cross_compiling" = yes; then
15051 ac_cv_sizeof_long_long=0
15052else
15053 cat > conftest.$ac_ext <<EOF
f79bd02d 15054#line 15055 "configure"
10f2d63a 15055#include "confdefs.h"
4f14bcd8 15056#include <stdio.h>
f79bd02d 15057int main()
4f14bcd8
GD
15058{
15059 FILE *f=fopen("conftestval", "w");
f79bd02d 15060 if (!f) return(1);
4f14bcd8 15061 fprintf(f, "%d\n", sizeof(long long));
f79bd02d 15062 return(0);
4f14bcd8 15063}
698dcdb6 15064EOF
f79bd02d 15065if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15066then
15067 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
15068else
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
4f14bcd8
GD
15071 rm -fr conftest*
15072 ac_cv_sizeof_long_long=0
15073fi
15074rm -fr conftest*
698dcdb6 15075fi
698dcdb6
VZ
15076
15077fi
4f14bcd8
GD
15078echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
15079cat >> confdefs.h <<EOF
15080#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
15081EOF
15082
10f2d63a 15083
4f14bcd8
GD
15084
15085echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
f79bd02d 15086echo "configure:15087: checking size of wchar_t" >&5
4f14bcd8 15087if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 15088 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15089else
4f14bcd8
GD
15090
15091 if test "$cross_compiling" = yes; then
15092 wx_cv_sizeof_wchar_t=4
15093
15094else
15095 cat > conftest.$ac_ext <<EOF
f79bd02d 15096#line 15097 "configure"
10f2d63a 15097#include "confdefs.h"
698dcdb6 15098
4f14bcd8 15099 #ifdef HAVE_WCHAR_H
0fbb762e
MB
15100 # ifdef __CYGWIN__
15101 # include <stddef.h>
15102 # endif
4f14bcd8
GD
15103 # include <wchar.h>
15104 #endif
15105 #ifdef HAVE_STDLIB_H
15106 # include <stdlib.h>
15107 #endif
15108 #include <stdio.h>
15109 int main()
15110 {
15111 FILE *f=fopen("conftestval", "w");
15112 if (!f) exit(1);
15113 fprintf(f, "%i", sizeof(wchar_t));
15114 exit(0);
15115 }
15116
698dcdb6 15117EOF
f79bd02d 15118if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15119then
15120 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
15121else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
4f14bcd8
GD
15124 rm -fr conftest*
15125 wx_cv_sizeof_wchar_t=0
698dcdb6 15126fi
4f14bcd8
GD
15127rm -fr conftest*
15128fi
15129
698dcdb6
VZ
15130
15131fi
4f14bcd8
GD
15132
15133echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15134
15135cat >> confdefs.h <<EOF
15136#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
15137EOF
15138
18dbb1f6 15139
4f14bcd8 15140echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
f79bd02d 15141echo "configure:15142: checking whether byte ordering is bigendian" >&5
4f14bcd8 15142if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
15143 echo $ac_n "(cached) $ac_c" 1>&6
15144else
4f14bcd8
GD
15145 ac_cv_c_bigendian=unknown
15146# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 15147cat > conftest.$ac_ext <<EOF
f79bd02d 15148#line 15149 "configure"
18dbb1f6 15149#include "confdefs.h"
4f14bcd8
GD
15150#include <sys/types.h>
15151#include <sys/param.h>
15152int main() {
18dbb1f6 15153
4f14bcd8
GD
15154#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15155 bogus endian macros
15156#endif
15157; return 0; }
15158EOF
f79bd02d 15159if { (eval echo configure:15160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15160 rm -rf conftest*
15161 # It does; now see whether it defined to BIG_ENDIAN or not.
15162cat > conftest.$ac_ext <<EOF
f79bd02d 15163#line 15164 "configure"
4f14bcd8
GD
15164#include "confdefs.h"
15165#include <sys/types.h>
15166#include <sys/param.h>
18dbb1f6 15167int main() {
4f14bcd8
GD
15168
15169#if BYTE_ORDER != BIG_ENDIAN
15170 not big endian
15171#endif
18dbb1f6
VZ
15172; return 0; }
15173EOF
f79bd02d 15174if { (eval echo configure:15175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 15175 rm -rf conftest*
4f14bcd8 15176 ac_cv_c_bigendian=yes
18dbb1f6
VZ
15177else
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 rm -rf conftest*
4f14bcd8 15181 ac_cv_c_bigendian=no
18dbb1f6
VZ
15182fi
15183rm -f conftest*
698dcdb6 15184else
4f14bcd8
GD
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
1e487827 15187fi
4f14bcd8
GD
15188rm -f conftest*
15189if test $ac_cv_c_bigendian = unknown; then
15190if test "$cross_compiling" = yes; then
15191 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
15192else
15193 cat > conftest.$ac_ext <<EOF
f79bd02d 15194#line 15195 "configure"
b3e8d00a 15195#include "confdefs.h"
4f14bcd8
GD
15196main () {
15197 /* Are we little or big endian? From Harbison&Steele. */
15198 union
15199 {
15200 long l;
15201 char c[sizeof (long)];
15202 } u;
15203 u.l = 1;
15204 exit (u.c[sizeof (long) - 1] == 1);
15205}
b3e8d00a 15206EOF
f79bd02d 15207if { (eval echo configure:15208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15208then
15209 ac_cv_c_bigendian=no
b3e8d00a
VZ
15210else
15211 echo "configure: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
4f14bcd8
GD
15213 rm -fr conftest*
15214 ac_cv_c_bigendian=yes
b3e8d00a 15215fi
4f14bcd8 15216rm -fr conftest*
b3e8d00a
VZ
15217fi
15218
4f14bcd8
GD
15219fi
15220fi
15221
15222echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15223if test $ac_cv_c_bigendian = unknown; then
15224 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
15225fi
15226if test $ac_cv_c_bigendian = yes; then
15227 cat >> confdefs.h <<\EOF
15228#define WORDS_BIGENDIAN 1
b3e8d00a 15229EOF
4f14bcd8 15230
b3e8d00a 15231fi
b3e8d00a
VZ
15232
15233
4f14bcd8 15234echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
f79bd02d 15235echo "configure:15236: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
15236if test -z "$CXXCPP"; then
15237if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239else
4f14bcd8
GD
15240 ac_ext=C
15241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15242ac_cpp='$CXXCPP $CPPFLAGS'
15243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15245cross_compiling=$ac_cv_prog_cxx_cross
15246 CXXCPP="${CXX-g++} -E"
698dcdb6 15247 cat > conftest.$ac_ext <<EOF
f79bd02d 15248#line 15249 "configure"
10f2d63a 15249#include "confdefs.h"
4f14bcd8 15250#include <stdlib.h>
698dcdb6 15251EOF
4f14bcd8 15252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 15253{ (eval echo configure:15254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15255if test -z "$ac_err"; then
15256 :
698dcdb6 15257else
4f14bcd8 15258 echo "$ac_err" >&5
698dcdb6
VZ
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
4f14bcd8 15262 CXXCPP=/lib/cpp
698dcdb6
VZ
15263fi
15264rm -f conftest*
4f14bcd8
GD
15265 ac_cv_prog_CXXCPP="$CXXCPP"
15266ac_ext=C
15267# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268ac_cpp='$CXXCPP $CPPFLAGS'
15269ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271cross_compiling=$ac_cv_prog_cxx_cross
15272fi
698dcdb6 15273fi
4f14bcd8
GD
15274CXXCPP="$ac_cv_prog_CXXCPP"
15275echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 15276
4f14bcd8
GD
15277
15278 if test "$cross_compiling" = "yes"; then
15279 cat >> confdefs.h <<\EOF
15280#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
15281EOF
15282
4f14bcd8
GD
15283 else
15284
15285 ac_ext=C
15286# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15287ac_cpp='$CXXCPP $CPPFLAGS'
15288ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15289ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15290cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 15291
4f14bcd8
GD
15292
15293 for ac_hdr in iostream
15294do
15295ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15296echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 15297echo "configure:15298: checking for $ac_hdr" >&5
4f14bcd8 15298if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
15299 echo $ac_n "(cached) $ac_c" 1>&6
15300else
15301 cat > conftest.$ac_ext <<EOF
f79bd02d 15302#line 15303 "configure"
10f2d63a 15303#include "confdefs.h"
4f14bcd8 15304#include <$ac_hdr>
698dcdb6 15305EOF
4f14bcd8 15306ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 15307{ (eval echo configure:15308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15308ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15309if test -z "$ac_err"; then
698dcdb6 15310 rm -rf conftest*
4f14bcd8 15311 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 15312else
4f14bcd8 15313 echo "$ac_err" >&5
698dcdb6
VZ
15314 echo "configure: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 rm -rf conftest*
4f14bcd8 15317 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
15318fi
15319rm -f conftest*
15320fi
4f14bcd8 15321if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 15322 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15324 cat >> confdefs.h <<EOF
15325#define $ac_tr_hdr 1
10f2d63a 15326EOF
4f14bcd8 15327
698dcdb6
VZ
15328else
15329 echo "$ac_t""no" 1>&6
10f2d63a 15330fi
4f14bcd8 15331done
10f2d63a 15332
10f2d63a 15333
4f14bcd8
GD
15334 if test "$ac_cv_header_iostream" = "yes" ; then
15335 :
15336 else
15337 cat >> confdefs.h <<\EOF
15338#define wxUSE_IOSTREAMH 1
15339EOF
15340
15341 fi
1e487827 15342
4f14bcd8
GD
15343 ac_ext=c
15344# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15345ac_cpp='$CPP $CPPFLAGS'
15346ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15347ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15348cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15349
4f14bcd8 15350 fi
698dcdb6
VZ
15351
15352
15353
4f14bcd8 15354 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
f79bd02d 15355echo "configure:15356: checking if C++ compiler supports bool" >&5
4f14bcd8 15356if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358else
15359
4f14bcd8
GD
15360
15361 ac_ext=C
15362# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15363ac_cpp='$CXXCPP $CPPFLAGS'
15364ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15365ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15366cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 15367
10f2d63a 15368
4f14bcd8 15369 cat > conftest.$ac_ext <<EOF
f79bd02d 15370#line 15371 "configure"
4f14bcd8 15371#include "confdefs.h"
10f2d63a 15372
4f14bcd8
GD
15373
15374int main() {
f6bcfd97 15375
4f14bcd8 15376 bool b = true;
f6bcfd97 15377
4f14bcd8
GD
15378 return 0;
15379
698dcdb6
VZ
15380; return 0; }
15381EOF
f79bd02d 15382if { (eval echo configure:15383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15383 rm -rf conftest*
15384
4f14bcd8
GD
15385 wx_cv_cpp_bool=yes
15386
10f2d63a 15387else
698dcdb6
VZ
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15390 rm -rf conftest*
15391
4f14bcd8
GD
15392 wx_cv_cpp_bool=no
15393
15394
15395fi
15396rm -f conftest*
c521c494 15397
4f14bcd8
GD
15398 ac_ext=c
15399# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15400ac_cpp='$CPP $CPPFLAGS'
15401ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15402ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15403cross_compiling=$ac_cv_prog_cc_cross
c521c494 15404
4f14bcd8
GD
15405
15406fi
c521c494 15407
4f14bcd8 15408echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 15409
4f14bcd8
GD
15410 if test "$wx_cv_cpp_bool" = "yes"; then
15411 cat >> confdefs.h <<\EOF
15412#define HAVE_BOOL 1
15413EOF
c521c494 15414
4f14bcd8
GD
15415 fi
15416
15417
15418
15419echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
f79bd02d 15420echo "configure:15421: checking for wcslen in -lc" >&5
4f14bcd8
GD
15421ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15422if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15423 echo $ac_n "(cached) $ac_c" 1>&6
15424else
15425 ac_save_LIBS="$LIBS"
15426LIBS="-lc $LIBS"
15427cat > conftest.$ac_ext <<EOF
f79bd02d 15428#line 15429 "configure"
4f14bcd8
GD
15429#include "confdefs.h"
15430/* Override any gcc2 internal prototype to avoid an error. */
15431/* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433char wcslen();
15434
15435int main() {
15436wcslen()
698dcdb6
VZ
15437; return 0; }
15438EOF
f79bd02d 15439if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15440 rm -rf conftest*
4f14bcd8 15441 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 15442else
698dcdb6
VZ
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
4f14bcd8 15446 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15447fi
698dcdb6 15448rm -f conftest*
4f14bcd8 15449LIBS="$ac_save_LIBS"
703e0a69 15450
1e487827 15451fi
4f14bcd8
GD
15452if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15453 echo "$ac_t""yes" 1>&6
15454
15455 cat >> confdefs.h <<\EOF
15456#define HAVE_WCSLEN 1
9d8deca0
VZ
15457EOF
15458
3d63bc3a 15459 WCHAR_LINK=
4f14bcd8 15460
9d8deca0 15461else
4f14bcd8 15462 echo "$ac_t""no" 1>&6
9d8deca0 15463
4f14bcd8 15464 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
f79bd02d 15465echo "configure:15466: checking for wcslen in -lw" >&5
4f14bcd8
GD
15466ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15468 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15469else
4f14bcd8
GD
15470 ac_save_LIBS="$LIBS"
15471LIBS="-lw $LIBS"
15472cat > conftest.$ac_ext <<EOF
f79bd02d 15473#line 15474 "configure"
10f2d63a 15474#include "confdefs.h"
4f14bcd8
GD
15475/* Override any gcc2 internal prototype to avoid an error. */
15476/* We use char because int might match the return type of a gcc2
15477 builtin and then its argument prototype would still apply. */
15478char wcslen();
10f2d63a 15479
698dcdb6 15480int main() {
4f14bcd8 15481wcslen()
698dcdb6
VZ
15482; return 0; }
15483EOF
f79bd02d 15484if { (eval echo configure:15485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15485 rm -rf conftest*
4f14bcd8 15486 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15487else
698dcdb6
VZ
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
4f14bcd8 15491 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15492fi
698dcdb6 15493rm -f conftest*
4f14bcd8 15494LIBS="$ac_save_LIBS"
703e0a69 15495
1e487827 15496fi
4f14bcd8
GD
15497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15498 echo "$ac_t""yes" 1>&6
15499
15500 cat >> confdefs.h <<\EOF
15501#define HAVE_WCSLEN 1
9d8deca0
VZ
15502EOF
15503
3d63bc3a 15504 WCHAR_LINK=" -lw"
4f14bcd8
GD
15505
15506else
15507 echo "$ac_t""no" 1>&6
698dcdb6 15508
4f14bcd8 15509 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
f79bd02d 15510echo "configure:15511: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
15511ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514else
4f14bcd8
GD
15515 ac_save_LIBS="$LIBS"
15516LIBS="-lmsvcrt $LIBS"
15517cat > conftest.$ac_ext <<EOF
f79bd02d 15518#line 15519 "configure"
95c8801c 15519#include "confdefs.h"
4f14bcd8
GD
15520/* Override any gcc2 internal prototype to avoid an error. */
15521/* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523char wcslen();
95c8801c 15524
4f14bcd8
GD
15525int main() {
15526wcslen()
698dcdb6
VZ
15527; return 0; }
15528EOF
f79bd02d 15529if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15530 rm -rf conftest*
4f14bcd8 15531 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15532else
698dcdb6
VZ
15533 echo "configure: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 rm -rf conftest*
4f14bcd8 15536 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15537fi
698dcdb6 15538rm -f conftest*
4f14bcd8 15539LIBS="$ac_save_LIBS"
95c8801c
VS
15540
15541fi
4f14bcd8
GD
15542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
15544
15545 cat >> confdefs.h <<\EOF
15546#define HAVE_WCSLEN 1
15547EOF
698dcdb6 15548
3d63bc3a 15549 WCHAR_LINK=
4f14bcd8
GD
15550
15551else
15552 echo "$ac_t""no" 1>&6
15553fi
10f2d63a 15554
4f14bcd8
GD
15555
15556fi
95c8801c 15557
4f14bcd8 15558
95c8801c 15559fi
10f2d63a 15560
1e487827 15561
4f14bcd8 15562for ac_func in wcsrtombs
eb4efbdc 15563do
698dcdb6 15564echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 15565echo "configure:15566: checking for $ac_func" >&5
698dcdb6
VZ
15566if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15567 echo $ac_n "(cached) $ac_c" 1>&6
15568else
15569 cat > conftest.$ac_ext <<EOF
f79bd02d 15570#line 15571 "configure"
eb4efbdc
VZ
15571#include "confdefs.h"
15572/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15573 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15574#include <assert.h>
15575/* Override any gcc2 internal prototype to avoid an error. */
15576/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15577 builtin and then its argument prototype would still apply. */
15578char $ac_func();
15579
15580int main() {
eb4efbdc
VZ
15581
15582/* The GNU C library defines this for functions which it implements
15583 to always fail with ENOSYS. Some functions are actually named
15584 something starting with __ and the normal name is an alias. */
15585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15586choke me
15587#else
698dcdb6 15588$ac_func();
eb4efbdc
VZ
15589#endif
15590
698dcdb6 15591; return 0; }
eb4efbdc 15592EOF
f79bd02d 15593if { (eval echo configure:15594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15594 rm -rf conftest*
15595 eval "ac_cv_func_$ac_func=yes"
15596else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600 eval "ac_cv_func_$ac_func=no"
15601fi
15602rm -f conftest*
15603fi
eb4efbdc 15604
698dcdb6
VZ
15605if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15608 cat >> confdefs.h <<EOF
15609#define $ac_tr_func 1
15610EOF
15611
15612else
15613 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15614fi
15615done
15616
698dcdb6 15617
4f14bcd8 15618echo $ac_n "checking for vprintf""... $ac_c" 1>&6
f79bd02d 15619echo "configure:15620: checking for vprintf" >&5
4f14bcd8 15620if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15621 echo $ac_n "(cached) $ac_c" 1>&6
15622else
4f14bcd8 15623 cat > conftest.$ac_ext <<EOF
f79bd02d 15624#line 15625 "configure"
f6bcfd97 15625#include "confdefs.h"
4f14bcd8
GD
15626/* System header to define __stub macros and hopefully few prototypes,
15627 which can conflict with char vprintf(); below. */
15628#include <assert.h>
15629/* Override any gcc2 internal prototype to avoid an error. */
15630/* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15632char vprintf();
15633
698dcdb6 15634int main() {
f6bcfd97 15635
4f14bcd8
GD
15636/* The GNU C library defines this for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639#if defined (__stub_vprintf) || defined (__stub___vprintf)
15640choke me
15641#else
15642vprintf();
15643#endif
f6bcfd97 15644
698dcdb6
VZ
15645; return 0; }
15646EOF
f79bd02d 15647if { (eval echo configure:15648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15648 rm -rf conftest*
4f14bcd8 15649 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15650else
698dcdb6
VZ
15651 echo "configure: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15653 rm -rf conftest*
4f14bcd8 15654 eval "ac_cv_func_vprintf=no"
6232543b 15655fi
698dcdb6 15656rm -f conftest*
1e487827 15657fi
698dcdb6 15658
4f14bcd8
GD
15659if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15661 cat >> confdefs.h <<\EOF
15662#define HAVE_VPRINTF 1
f6bcfd97
BP
15663EOF
15664
4f14bcd8
GD
15665else
15666 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15667fi
15668
4f14bcd8
GD
15669if test "$ac_cv_func_vprintf" != yes; then
15670echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
f79bd02d 15671echo "configure:15672: checking for _doprnt" >&5
4f14bcd8 15672if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15673 echo $ac_n "(cached) $ac_c" 1>&6
15674else
15675 cat > conftest.$ac_ext <<EOF
f79bd02d 15676#line 15677 "configure"
10f2d63a
VZ
15677#include "confdefs.h"
15678/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15679 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15680#include <assert.h>
15681/* Override any gcc2 internal prototype to avoid an error. */
15682/* We use char because int might match the return type of a gcc2
698dcdb6 15683 builtin and then its argument prototype would still apply. */
4f14bcd8 15684char _doprnt();
698dcdb6
VZ
15685
15686int main() {
10f2d63a
VZ
15687
15688/* The GNU C library defines this for functions which it implements
15689 to always fail with ENOSYS. Some functions are actually named
15690 something starting with __ and the normal name is an alias. */
4f14bcd8 15691#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15692choke me
15693#else
4f14bcd8 15694_doprnt();
10f2d63a
VZ
15695#endif
15696
698dcdb6 15697; return 0; }
10f2d63a 15698EOF
f79bd02d 15699if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15700 rm -rf conftest*
4f14bcd8 15701 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15702else
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 rm -rf conftest*
4f14bcd8 15706 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15707fi
15708rm -f conftest*
15709fi
270a909e 15710
4f14bcd8 15711if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15712 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15713 cat >> confdefs.h <<\EOF
15714#define HAVE_DOPRNT 1
698dcdb6 15715EOF
4f14bcd8 15716
698dcdb6
VZ
15717else
15718 echo "$ac_t""no" 1>&6
270a909e 15719fi
270a909e 15720
4f14bcd8 15721fi
1e487827 15722
52e8b690 15723
52e8b690 15724
52e8b690 15725
52e8b690 15726
52e8b690 15727
4f14bcd8 15728echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
f79bd02d 15729echo "configure:15730: checking for vsnprintf" >&5
4f14bcd8 15730if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15731 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15732else
4f14bcd8 15733
af15babd 15734 cat > conftest.$ac_ext <<EOF
f79bd02d 15735#line 15736 "configure"
c63c7106 15736#include "confdefs.h"
698dcdb6 15737
4f14bcd8
GD
15738 #include <stdio.h>
15739 #include <stdarg.h>
15740
af15babd
VZ
15741int main() {
15742
4f14bcd8
GD
15743 int wx_test_vsnprintf(const char *, ...);
15744
15745 wx_test_vsnprintf("%s");
15746 return 0;
15747 }
15748
15749 int wx_test_vsnprintf(const char *fmt, ...)
15750 {
15751 char *s;
15752
15753 va_list argp;
15754 va_start(argp, fmt);
15755 vsnprintf(s, 42, fmt, argp);
15756 va_end(argp);
15757
af15babd
VZ
15758; return 0; }
15759EOF
f79bd02d 15760if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15761 rm -rf conftest*
15762
4f14bcd8
GD
15763 wx_cv_func_vsnprintf=yes
15764
af15babd
VZ
15765else
15766 echo "configure: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15768 rm -rf conftest*
15769
4f14bcd8 15770 cat > conftest.$ac_ext <<EOF
f79bd02d 15771#line 15772 "configure"
af15babd 15772#include "confdefs.h"
af15babd 15773
4f14bcd8
GD
15774 #include <stdio.h>
15775 #include <stdarg.h>
15776
af15babd
VZ
15777int main() {
15778
4f14bcd8
GD
15779 int wx_test_vsnprintf(const char *, ...);
15780
15781 wx_test_vsnprintf("%s");
15782 return 0;
15783 }
15784
15785 int wx_test_vsnprintf(const char *fmt, ...)
15786 {
15787 char *s;
af15babd 15788
4f14bcd8
GD
15789 va_list argp;
15790 va_start(argp, fmt);
15791 _vsnprintf(s, 42, fmt, argp);
15792 va_end(argp);
15793
af15babd
VZ
15794; return 0; }
15795EOF
f79bd02d 15796if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15797 rm -rf conftest*
4f14bcd8
GD
15798
15799 wx_cv_func_vsnprintf=yes
15800
af15babd
VZ
15801else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
4f14bcd8
GD
15805
15806 wx_cv_func_vsnprintf=no
15807
af15babd
VZ
15808fi
15809rm -f conftest*
4f14bcd8 15810
af15babd 15811fi
4f14bcd8 15812rm -f conftest*
af15babd 15813
af15babd 15814fi
af15babd 15815
4f14bcd8 15816echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15817
4f14bcd8
GD
15818if test "$wx_cv_func_vsnprintf" = yes; then
15819 cat >> confdefs.h <<\EOF
15820#define HAVE_VSNPRINTF 1
15821EOF
15822
15823else
f9bc1684 15824 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15825fi
15826
4f14bcd8 15827echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
f79bd02d 15828echo "configure:15829: checking for vsscanf" >&5
4f14bcd8 15829if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15830 echo $ac_n "(cached) $ac_c" 1>&6
15831else
4f14bcd8 15832
af15babd 15833 cat > conftest.$ac_ext <<EOF
f79bd02d 15834#line 15835 "configure"
af15babd 15835#include "confdefs.h"
af15babd 15836
4f14bcd8
GD
15837 #include <stdio.h>
15838 #include <stdarg.h>
15839
af15babd
VZ
15840int main() {
15841
4f14bcd8
GD
15842 int wx_test_vsscanf(const char *, ...);
15843
15844 wx_test_vsscanf("%d");
15845 return 0;
15846 }
af15babd 15847
4f14bcd8
GD
15848 int wx_test_vsscanf(const char *fmt, ...)
15849 {
15850 va_list argp;
15851 va_start(argp, fmt);
15852 vsscanf("42", fmt, argp);
15853 va_end(argp);
15854
af15babd
VZ
15855; return 0; }
15856EOF
f79bd02d 15857if { (eval echo configure:15858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15858 rm -rf conftest*
4f14bcd8
GD
15859
15860 wx_cv_func_vsscanf=yes
15861
af15babd
VZ
15862else
15863 echo "configure: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 rm -rf conftest*
4f14bcd8
GD
15866
15867 wx_cv_func_vsscanf=no
15868
af15babd
VZ
15869fi
15870rm -f conftest*
4f14bcd8 15871
af15babd
VZ
15872fi
15873
4f14bcd8
GD
15874echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15875
15876if test "$wx_cv_func_vsscanf" = yes; then
15877 cat >> confdefs.h <<\EOF
15878#define HAVE_VSSCANF 1
af15babd 15879EOF
4f14bcd8 15880
af15babd 15881fi
af15babd 15882
4f14bcd8 15883if test "$TOOLKIT" != "MSW"; then
af15babd 15884
4f14bcd8
GD
15885
15886
15887ac_ext=C
15888# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889ac_cpp='$CXXCPP $CPPFLAGS'
15890ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892cross_compiling=$ac_cv_prog_cxx_cross
15893
b040e242
VS
15894
15895
15896 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15897if test "${with_libiconv_prefix+set}" = set; then
15898 withval="$with_libiconv_prefix"
15899
15900 for dir in `echo "$withval" | tr : ' '`; do
15901 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15902 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15903 done
15904
15905fi
15906
15907
15908 echo $ac_n "checking for iconv""... $ac_c" 1>&6
f79bd02d 15909echo "configure:15910: checking for iconv" >&5
b040e242 15910if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15911 echo $ac_n "(cached) $ac_c" 1>&6
15912else
4f14bcd8 15913
b040e242
VS
15914 am_cv_func_iconv="no, consider installing GNU libiconv"
15915 am_cv_lib_iconv=no
4f14bcd8 15916 cat > conftest.$ac_ext <<EOF
f79bd02d 15917#line 15918 "configure"
af15babd 15918#include "confdefs.h"
b040e242 15919#include <stdlib.h>
4f14bcd8 15920#include <iconv.h>
af15babd 15921int main() {
b040e242
VS
15922iconv_t cd = iconv_open("","");
15923 iconv(cd,NULL,NULL,NULL,NULL);
15924 iconv_close(cd);
af15babd
VZ
15925; return 0; }
15926EOF
f79bd02d 15927if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15928 rm -rf conftest*
b040e242 15929 am_cv_func_iconv=yes
af15babd
VZ
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
b040e242
VS
15933fi
15934rm -f conftest*
15935 if test "$am_cv_func_iconv" != yes; then
15936 am_save_LIBS="$LIBS"
15937 LIBS="$LIBS -liconv"
15938 cat > conftest.$ac_ext <<EOF
f79bd02d 15939#line 15940 "configure"
b040e242
VS
15940#include "confdefs.h"
15941#include <stdlib.h>
15942#include <iconv.h>
15943int main() {
15944iconv_t cd = iconv_open("","");
15945 iconv(cd,NULL,NULL,NULL,NULL);
15946 iconv_close(cd);
15947; return 0; }
15948EOF
f79bd02d 15949if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15950 rm -rf conftest*
b040e242
VS
15951 am_cv_lib_iconv=yes
15952 am_cv_func_iconv=yes
15953else
15954 echo "configure: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
af15babd
VZ
15956fi
15957rm -f conftest*
b040e242
VS
15958 LIBS="$am_save_LIBS"
15959 fi
15960
15961fi
15962
15963echo "$ac_t""$am_cv_func_iconv" 1>&6
15964 if test "$am_cv_func_iconv" = yes; then
15965 cat >> confdefs.h <<\EOF
15966#define HAVE_ICONV 1
15967EOF
15968
b7043674 15969 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
f79bd02d 15970echo "configure:15971: checking if iconv needs const" >&5
b7043674 15971if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
15972 echo $ac_n "(cached) $ac_c" 1>&6
15973else
b7043674 15974 cat > conftest.$ac_ext <<EOF
f79bd02d 15975#line 15976 "configure"
b040e242
VS
15976#include "confdefs.h"
15977
15978#include <stdlib.h>
15979#include <iconv.h>
15980extern
15981#ifdef __cplusplus
15982"C"
15983#endif
15984#if defined(__STDC__) || defined(__cplusplus)
15985size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15986#else
15987size_t iconv();
15988#endif
b7043674 15989
b040e242 15990int main() {
af15babd 15991
b040e242
VS
15992; return 0; }
15993EOF
f79bd02d 15994if { (eval echo configure:15995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 15995 rm -rf conftest*
b7043674 15996 wx_cv_func_iconv_const="no"
b040e242
VS
15997else
15998 echo "configure: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 rm -rf conftest*
b7043674
VZ
16001 wx_cv_func_iconv_const="yes"
16002
b040e242
VS
16003fi
16004rm -f conftest*
b7043674 16005
af15babd 16006fi
af15babd 16007
b7043674
VZ
16008echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16009
16010 iconv_const=
1c405bb5 16011 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16012 iconv_const="const"
16013 fi
16014
b040e242 16015 cat >> confdefs.h <<EOF
b7043674 16016#define ICONV_CONST $iconv_const
b040e242
VS
16017EOF
16018
16019 fi
16020 LIBICONV=
16021 if test "$am_cv_lib_iconv" = yes; then
16022 LIBICONV="-liconv"
16023 fi
16024
16025
16026LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16027ac_ext=c
16028# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16029ac_cpp='$CPP $CPPFLAGS'
16030ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16031ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16032cross_compiling=$ac_cv_prog_cc_cross
af15babd 16033
af15babd 16034
4f14bcd8
GD
16035if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16036 for ac_func in sigaction
af15babd
VZ
16037do
16038echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16039echo "configure:16040: checking for $ac_func" >&5
af15babd
VZ
16040if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16041 echo $ac_n "(cached) $ac_c" 1>&6
16042else
16043 cat > conftest.$ac_ext <<EOF
f79bd02d 16044#line 16045 "configure"
af15babd
VZ
16045#include "confdefs.h"
16046/* System header to define __stub macros and hopefully few prototypes,
16047 which can conflict with char $ac_func(); below. */
16048#include <assert.h>
16049/* Override any gcc2 internal prototype to avoid an error. */
16050/* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16052char $ac_func();
16053
16054int main() {
16055
16056/* The GNU C library defines this for functions which it implements
16057 to always fail with ENOSYS. Some functions are actually named
16058 something starting with __ and the normal name is an alias. */
16059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16060choke me
16061#else
16062$ac_func();
16063#endif
16064
16065; return 0; }
16066EOF
f79bd02d 16067if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16068 rm -rf conftest*
16069 eval "ac_cv_func_$ac_func=yes"
16070else
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16073 rm -rf conftest*
16074 eval "ac_cv_func_$ac_func=no"
16075fi
16076rm -f conftest*
16077fi
16078
16079if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16080 echo "$ac_t""yes" 1>&6
16081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16082 cat >> confdefs.h <<EOF
16083#define $ac_tr_func 1
16084EOF
4f14bcd8 16085
af15babd
VZ
16086else
16087 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16088fi
16089done
16090
16091
16092 if test "$ac_cv_func_sigaction" = "no"; then
16093 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16094 wxUSE_ON_FATAL_EXCEPTION=no
16095 fi
16096
16097 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16098
16099 ac_ext=C
16100# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16101ac_cpp='$CXXCPP $CPPFLAGS'
16102ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16103ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16104cross_compiling=$ac_cv_prog_cxx_cross
16105
16106
16107 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
f79bd02d 16108echo "configure:16109: checking for sa_handler type" >&5
4f14bcd8 16109if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111else
4f14bcd8
GD
16112
16113 cat > conftest.$ac_ext <<EOF
f79bd02d 16114#line 16115 "configure"
af15babd 16115#include "confdefs.h"
4f14bcd8 16116#include <signal.h>
af15babd 16117int main() {
4f14bcd8
GD
16118
16119 extern void testSigHandler(int);
16120
16121 struct sigaction sa;
16122 sa.sa_handler = testSigHandler;
16123
af15babd
VZ
16124; return 0; }
16125EOF
f79bd02d 16126if { (eval echo configure:16127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16127 rm -rf conftest*
4f14bcd8
GD
16128
16129 wx_cv_type_sa_handler=int
16130
af15babd
VZ
16131else
16132 echo "configure: failed program was:" >&5
16133 cat conftest.$ac_ext >&5
16134 rm -rf conftest*
4f14bcd8
GD
16135
16136 wx_cv_type_sa_handler=void
16137
af15babd
VZ
16138fi
16139rm -f conftest*
4f14bcd8
GD
16140
16141fi
16142
16143echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16144
16145 ac_ext=c
16146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16147ac_cpp='$CPP $CPPFLAGS'
16148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16150cross_compiling=$ac_cv_prog_cc_cross
af15babd 16151
4f14bcd8
GD
16152
16153 cat >> confdefs.h <<EOF
16154#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16155EOF
16156
4f14bcd8
GD
16157 fi
16158fi
af15babd 16159
4f14bcd8 16160for ac_func in vfork
af15babd
VZ
16161do
16162echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16163echo "configure:16164: checking for $ac_func" >&5
af15babd
VZ
16164if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16166else
16167 cat > conftest.$ac_ext <<EOF
f79bd02d 16168#line 16169 "configure"
af15babd
VZ
16169#include "confdefs.h"
16170/* System header to define __stub macros and hopefully few prototypes,
16171 which can conflict with char $ac_func(); below. */
16172#include <assert.h>
16173/* Override any gcc2 internal prototype to avoid an error. */
16174/* We use char because int might match the return type of a gcc2
16175 builtin and then its argument prototype would still apply. */
16176char $ac_func();
16177
16178int main() {
16179
16180/* The GNU C library defines this for functions which it implements
16181 to always fail with ENOSYS. Some functions are actually named
16182 something starting with __ and the normal name is an alias. */
16183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16184choke me
16185#else
16186$ac_func();
16187#endif
16188
16189; return 0; }
16190EOF
f79bd02d 16191if { (eval echo configure:16192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16192 rm -rf conftest*
16193 eval "ac_cv_func_$ac_func=yes"
16194else
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 rm -rf conftest*
16198 eval "ac_cv_func_$ac_func=no"
16199fi
16200rm -f conftest*
16201fi
16202
16203if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16204 echo "$ac_t""yes" 1>&6
16205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16206 cat >> confdefs.h <<EOF
16207#define $ac_tr_func 1
16208EOF
4f14bcd8 16209
af15babd
VZ
16210else
16211 echo "$ac_t""no" 1>&6
af15babd
VZ
16212fi
16213done
16214
af15babd 16215
ade35f11
VZ
16216for ac_func in mkstemp mktemp
16217do
16218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16219echo "configure:16220: checking for $ac_func" >&5
ade35f11
VZ
16220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16221 echo $ac_n "(cached) $ac_c" 1>&6
16222else
16223 cat > conftest.$ac_ext <<EOF
f79bd02d 16224#line 16225 "configure"
ade35f11
VZ
16225#include "confdefs.h"
16226/* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func(); below. */
16228#include <assert.h>
16229/* Override any gcc2 internal prototype to avoid an error. */
16230/* We use char because int might match the return type of a gcc2
16231 builtin and then its argument prototype would still apply. */
16232char $ac_func();
16233
16234int main() {
16235
16236/* The GNU C library defines this for functions which it implements
16237 to always fail with ENOSYS. Some functions are actually named
16238 something starting with __ and the normal name is an alias. */
16239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16240choke me
16241#else
16242$ac_func();
16243#endif
16244
16245; return 0; }
16246EOF
f79bd02d 16247if { (eval echo configure:16248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16248 rm -rf conftest*
16249 eval "ac_cv_func_$ac_func=yes"
16250else
16251 echo "configure: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16253 rm -rf conftest*
16254 eval "ac_cv_func_$ac_func=no"
16255fi
16256rm -f conftest*
16257fi
16258
16259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16260 echo "$ac_t""yes" 1>&6
16261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16262 cat >> confdefs.h <<EOF
16263#define $ac_tr_func 1
16264EOF
16265 break
16266else
16267 echo "$ac_t""no" 1>&6
16268fi
16269done
16270
16271
4f14bcd8 16272echo $ac_n "checking for statfs""... $ac_c" 1>&6
f79bd02d 16273echo "configure:16274: checking for statfs" >&5
4f14bcd8
GD
16274if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276else
16277 cat > conftest.$ac_ext <<EOF
f79bd02d 16278#line 16279 "configure"
4f14bcd8
GD
16279#include "confdefs.h"
16280
16281 #if defined(__BSD__)
16282 #include <sys/param.h>
16283 #include <sys/mount.h>
16284 #else
16285 #include <sys/vfs.h>
16286 #endif
16287
16288int main() {
16289
16290 long l;
16291 struct statfs fs;
16292 statfs("/", &fs);
16293 l = fs.f_bsize;
16294 l += fs.f_blocks;
16295 l += fs.f_bavail;
16296
16297; return 0; }
16298EOF
f79bd02d 16299if { (eval echo configure:16300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16300 rm -rf conftest*
16301
16302 wx_cv_func_statfs=yes
16303
16304else
16305 echo "configure: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 rm -rf conftest*
16308
16309 wx_cv_func_statfs=no
af15babd
VZ
16310
16311
16312fi
4f14bcd8 16313rm -f conftest*
af15babd
VZ
16314
16315fi
16316
4f14bcd8
GD
16317echo "$ac_t""$wx_cv_func_statfs" 1>&6
16318
16319if test "$wx_cv_func_statfs" = "yes"; then
16320 cat >> confdefs.h <<\EOF
16321#define HAVE_STATFS 1
16322EOF
16323
16324else
16325 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
f79bd02d 16326echo "configure:16327: checking for statvfs" >&5
4f14bcd8 16327if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16328 echo $ac_n "(cached) $ac_c" 1>&6
16329else
16330 cat > conftest.$ac_ext <<EOF
f79bd02d 16331#line 16332 "configure"
af15babd 16332#include "confdefs.h"
af15babd 16333
4f14bcd8
GD
16334 #include <sys/statvfs.h>
16335
af15babd
VZ
16336int main() {
16337
4f14bcd8
GD
16338 long l;
16339 struct statvfs fs;
16340 statvfs("/", &fs);
16341 l = fs.f_bsize;
16342 l += fs.f_blocks;
16343 l += fs.f_bavail;
16344
af15babd
VZ
16345; return 0; }
16346EOF
f79bd02d 16347if { (eval echo configure:16348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16348 rm -rf conftest*
4f14bcd8
GD
16349
16350 wx_cv_func_statvfs=yes
16351
af15babd
VZ
16352else
16353 echo "configure: failed program was:" >&5
16354 cat conftest.$ac_ext >&5
16355 rm -rf conftest*
4f14bcd8
GD
16356
16357 wx_cv_func_statvfs=no
16358
16359
af15babd
VZ
16360fi
16361rm -f conftest*
4f14bcd8 16362
af15babd
VZ
16363fi
16364
4f14bcd8 16365echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16366
4f14bcd8
GD
16367 if test "$wx_cv_func_statvfs" = "yes"; then
16368 cat >> confdefs.h <<\EOF
16369#define HAVE_STATVFS 1
16370EOF
af15babd 16371
4f14bcd8
GD
16372 else
16373 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16374 fi
16375fi
af15babd 16376
4f14bcd8
GD
16377if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16378 for ac_func in fcntl flock
af15babd
VZ
16379do
16380echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16381echo "configure:16382: checking for $ac_func" >&5
af15babd
VZ
16382if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16383 echo $ac_n "(cached) $ac_c" 1>&6
16384else
16385 cat > conftest.$ac_ext <<EOF
f79bd02d 16386#line 16387 "configure"
af15babd
VZ
16387#include "confdefs.h"
16388/* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func(); below. */
16390#include <assert.h>
16391/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16392/* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16394char $ac_func();
16395
16396int main() {
16397
16398/* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402choke me
16403#else
16404$ac_func();
16405#endif
16406
16407; return 0; }
16408EOF
f79bd02d 16409if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16410 rm -rf conftest*
16411 eval "ac_cv_func_$ac_func=yes"
16412else
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 rm -rf conftest*
16416 eval "ac_cv_func_$ac_func=no"
16417fi
16418rm -f conftest*
16419fi
16420
16421if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16422 echo "$ac_t""yes" 1>&6
16423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16424 cat >> confdefs.h <<EOF
16425#define $ac_tr_func 1
16426EOF
4f14bcd8 16427 break
af15babd
VZ
16428else
16429 echo "$ac_t""no" 1>&6
16430fi
16431done
16432
16433
4f14bcd8
GD
16434 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16435 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16436 wxUSE_SNGLINST_CHECKER=no
16437 fi
16438fi
af15babd 16439
4f14bcd8 16440for ac_func in timegm
af15babd
VZ
16441do
16442echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16443echo "configure:16444: checking for $ac_func" >&5
af15babd
VZ
16444if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16445 echo $ac_n "(cached) $ac_c" 1>&6
16446else
16447 cat > conftest.$ac_ext <<EOF
f79bd02d 16448#line 16449 "configure"
af15babd
VZ
16449#include "confdefs.h"
16450/* System header to define __stub macros and hopefully few prototypes,
16451 which can conflict with char $ac_func(); below. */
16452#include <assert.h>
16453/* Override any gcc2 internal prototype to avoid an error. */
16454/* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16456char $ac_func();
16457
698dcdb6 16458int main() {
698dcdb6 16459
af15babd
VZ
16460/* The GNU C library defines this for functions which it implements
16461 to always fail with ENOSYS. Some functions are actually named
16462 something starting with __ and the normal name is an alias. */
16463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16464choke me
16465#else
16466$ac_func();
16467#endif
16468
698dcdb6
VZ
16469; return 0; }
16470EOF
f79bd02d 16471if { (eval echo configure:16472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16472 rm -rf conftest*
af15babd 16473 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16474else
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 rm -rf conftest*
af15babd 16478 eval "ac_cv_func_$ac_func=no"
1e487827 16479fi
9952adac 16480rm -f conftest*
af15babd 16481fi
703e0a69 16482
af15babd
VZ
16483if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16484 echo "$ac_t""yes" 1>&6
16485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16486 cat >> confdefs.h <<EOF
16487#define $ac_tr_func 1
16488EOF
16489
16490else
16491 echo "$ac_t""no" 1>&6
af15babd
VZ
16492fi
16493done
16494
16495
4f14bcd8 16496for ac_func in putenv setenv
10f2d63a 16497do
698dcdb6 16498echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16499echo "configure:16500: checking for $ac_func" >&5
698dcdb6
VZ
16500if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16501 echo $ac_n "(cached) $ac_c" 1>&6
16502else
16503 cat > conftest.$ac_ext <<EOF
f79bd02d 16504#line 16505 "configure"
af15babd
VZ
16505#include "confdefs.h"
16506/* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char $ac_func(); below. */
16508#include <assert.h>
16509/* Override any gcc2 internal prototype to avoid an error. */
16510/* We use char because int might match the return type of a gcc2
16511 builtin and then its argument prototype would still apply. */
16512char $ac_func();
16513
16514int main() {
16515
16516/* The GNU C library defines this for functions which it implements
16517 to always fail with ENOSYS. Some functions are actually named
16518 something starting with __ and the normal name is an alias. */
16519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16520choke me
16521#else
16522$ac_func();
16523#endif
16524
16525; return 0; }
16526EOF
f79bd02d 16527if { (eval echo configure:16528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16528 rm -rf conftest*
16529 eval "ac_cv_func_$ac_func=yes"
16530else
16531 echo "configure: failed program was:" >&5
16532 cat conftest.$ac_ext >&5
16533 rm -rf conftest*
16534 eval "ac_cv_func_$ac_func=no"
16535fi
16536rm -f conftest*
16537fi
16538
16539if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16540 echo "$ac_t""yes" 1>&6
16541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16542 cat >> confdefs.h <<EOF
16543#define $ac_tr_func 1
16544EOF
4f14bcd8 16545 break
af15babd
VZ
16546else
16547 echo "$ac_t""no" 1>&6
16548fi
af15babd
VZ
16549done
16550
16551
4f14bcd8
GD
16552HAVE_SOME_SLEEP_FUNC=0
16553if test "$USE_BEOS" = 1; then
16554 cat >> confdefs.h <<\EOF
16555#define HAVE_SLEEP 1
af15babd
VZ
16556EOF
16557
4f14bcd8 16558 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16559fi
16560
4f14bcd8
GD
16561if test "$USE_DARWIN" = 1; then
16562 cat >> confdefs.h <<\EOF
16563#define HAVE_USLEEP 1
af15babd 16564EOF
10f2d63a 16565
4f14bcd8 16566 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16567fi
16568
4f14bcd8
GD
16569if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16570 POSIX4_LINK=
16571 for ac_func in nanosleep
16572do
16573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16574echo "configure:16575: checking for $ac_func" >&5
4f14bcd8 16575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16576 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16577else
4f14bcd8 16578 cat > conftest.$ac_ext <<EOF
f79bd02d 16579#line 16580 "configure"
10f2d63a 16580#include "confdefs.h"
4f14bcd8
GD
16581/* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func(); below. */
16583#include <assert.h>
10f2d63a
VZ
16584/* Override any gcc2 internal prototype to avoid an error. */
16585/* We use char because int might match the return type of a gcc2
698dcdb6 16586 builtin and then its argument prototype would still apply. */
4f14bcd8 16587char $ac_func();
698dcdb6
VZ
16588
16589int main() {
4f14bcd8
GD
16590
16591/* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595choke me
16596#else
16597$ac_func();
16598#endif
16599
698dcdb6
VZ
16600; return 0; }
16601EOF
f79bd02d 16602if { (eval echo configure:16603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16603 rm -rf conftest*
4f14bcd8 16604 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16605else
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 rm -rf conftest*
4f14bcd8 16609 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16610fi
16611rm -f conftest*
698dcdb6 16612fi
4f14bcd8
GD
16613
16614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16615 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16617 cat >> confdefs.h <<EOF
16618#define $ac_tr_func 1
16619EOF
16620 cat >> confdefs.h <<\EOF
16621#define HAVE_NANOSLEEP 1
16622EOF
16623
10f2d63a 16624else
698dcdb6 16625 echo "$ac_t""no" 1>&6
4f14bcd8 16626echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
f79bd02d 16627echo "configure:16628: checking for nanosleep in -lposix4" >&5
4f14bcd8 16628ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16629if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16631else
698dcdb6 16632 ac_save_LIBS="$LIBS"
4f14bcd8 16633LIBS="-lposix4 $LIBS"
698dcdb6 16634cat > conftest.$ac_ext <<EOF
f79bd02d 16635#line 16636 "configure"
10f2d63a
VZ
16636#include "confdefs.h"
16637/* Override any gcc2 internal prototype to avoid an error. */
16638/* We use char because int might match the return type of a gcc2
698dcdb6 16639 builtin and then its argument prototype would still apply. */
4f14bcd8 16640char nanosleep();
698dcdb6
VZ
16641
16642int main() {
4f14bcd8 16643nanosleep()
698dcdb6
VZ
16644; return 0; }
16645EOF
f79bd02d 16646if { (eval echo configure:16647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16647 rm -rf conftest*
16648 eval "ac_cv_lib_$ac_lib_var=yes"
16649else
16650 echo "configure: failed program was:" >&5
16651 cat conftest.$ac_ext >&5
16652 rm -rf conftest*
16653 eval "ac_cv_lib_$ac_lib_var=no"
16654fi
16655rm -f conftest*
16656LIBS="$ac_save_LIBS"
10f2d63a 16657
698dcdb6
VZ
16658fi
16659if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16660 echo "$ac_t""yes" 1>&6
16661
4f14bcd8
GD
16662 cat >> confdefs.h <<\EOF
16663#define HAVE_NANOSLEEP 1
16664EOF
16665
3d63bc3a 16666 POSIX4_LINK=" -lposix4"
4f14bcd8 16667
10f2d63a 16668else
698dcdb6 16669 echo "$ac_t""no" 1>&6
10f2d63a 16670
4f14bcd8
GD
16671 for ac_func in usleep
16672do
16673echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16674echo "configure:16675: checking for $ac_func" >&5
4f14bcd8 16675if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16676 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16677else
698dcdb6 16678 cat > conftest.$ac_ext <<EOF
f79bd02d 16679#line 16680 "configure"
10f2d63a 16680#include "confdefs.h"
4f14bcd8
GD
16681/* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char $ac_func(); below. */
16683#include <assert.h>
16684/* Override any gcc2 internal prototype to avoid an error. */
16685/* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687char $ac_func();
16688
16689int main() {
16690
16691/* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695choke me
16696#else
16697$ac_func();
16698#endif
16699
16700; return 0; }
698dcdb6 16701EOF
f79bd02d 16702if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16703 rm -rf conftest*
4f14bcd8 16704 eval "ac_cv_func_$ac_func=yes"
1e487827 16705else
698dcdb6 16706 echo "configure: failed program was:" >&5
10f2d63a 16707 cat conftest.$ac_ext >&5
698dcdb6 16708 rm -rf conftest*
4f14bcd8 16709 eval "ac_cv_func_$ac_func=no"
10f2d63a 16710fi
698dcdb6 16711rm -f conftest*
10f2d63a 16712fi
4f14bcd8
GD
16713
16714if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16715 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16717 cat >> confdefs.h <<EOF
16718#define $ac_tr_func 1
16719EOF
16720 cat >> confdefs.h <<\EOF
16721#define HAVE_USLEEP 1
16722EOF
16723
698dcdb6
VZ
16724else
16725 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16726echo "configure: warning: wxSleep() function will not work" 1>&2
16727
10f2d63a 16728fi
4f14bcd8 16729done
10f2d63a 16730
4f14bcd8 16731
698dcdb6 16732
6232543b 16733fi
10f2d63a 16734
698dcdb6 16735
4f14bcd8 16736
1e487827 16737fi
4f14bcd8 16738done
703e0a69 16739
10f2d63a
VZ
16740fi
16741
4f14bcd8 16742for ac_func in uname gethostname
70846f0a 16743do
698dcdb6 16744echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16745echo "configure:16746: checking for $ac_func" >&5
698dcdb6
VZ
16746if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16747 echo $ac_n "(cached) $ac_c" 1>&6
16748else
16749 cat > conftest.$ac_ext <<EOF
f79bd02d 16750#line 16751 "configure"
70846f0a
VZ
16751#include "confdefs.h"
16752/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16753 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16754#include <assert.h>
16755/* Override any gcc2 internal prototype to avoid an error. */
16756/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16757 builtin and then its argument prototype would still apply. */
16758char $ac_func();
16759
16760int main() {
70846f0a
VZ
16761
16762/* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16766choke me
16767#else
698dcdb6 16768$ac_func();
70846f0a
VZ
16769#endif
16770
698dcdb6 16771; return 0; }
70846f0a 16772EOF
f79bd02d 16773if { (eval echo configure:16774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16774 rm -rf conftest*
16775 eval "ac_cv_func_$ac_func=yes"
16776else
16777 echo "configure: failed program was:" >&5
16778 cat conftest.$ac_ext >&5
16779 rm -rf conftest*
16780 eval "ac_cv_func_$ac_func=no"
16781fi
16782rm -f conftest*
16783fi
70846f0a 16784
698dcdb6
VZ
16785if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16786 echo "$ac_t""yes" 1>&6
16787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16788 cat >> confdefs.h <<EOF
16789#define $ac_tr_func 1
16790EOF
4f14bcd8 16791 break
698dcdb6
VZ
16792else
16793 echo "$ac_t""no" 1>&6
70846f0a
VZ
16794fi
16795done
16796
698dcdb6 16797
4f14bcd8
GD
16798
16799ac_ext=C
16800# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16801ac_cpp='$CXXCPP $CPPFLAGS'
16802ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16803ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16804cross_compiling=$ac_cv_prog_cxx_cross
16805
16806
16807for ac_func in strtok_r
10f2d63a 16808do
4f14bcd8 16809echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16810echo "configure:16811: checking for $ac_func" >&5
4f14bcd8 16811if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16812 echo $ac_n "(cached) $ac_c" 1>&6
16813else
16814 cat > conftest.$ac_ext <<EOF
f79bd02d 16815#line 16816 "configure"
10f2d63a 16816#include "confdefs.h"
4f14bcd8
GD
16817/* System header to define __stub macros and hopefully few prototypes,
16818 which can conflict with char $ac_func(); below. */
16819#include <assert.h>
16820/* Override any gcc2 internal prototype to avoid an error. */
16821#ifdef __cplusplus
16822extern "C"
16823#endif
16824/* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16826char $ac_func();
16827
16828int main() {
16829
16830/* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16834choke me
16835#else
16836$ac_func();
16837#endif
16838
16839; return 0; }
698dcdb6 16840EOF
f79bd02d 16841if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16842 rm -rf conftest*
4f14bcd8 16843 eval "ac_cv_func_$ac_func=yes"
1e487827 16844else
698dcdb6 16845 echo "configure: failed program was:" >&5
10f2d63a 16846 cat conftest.$ac_ext >&5
698dcdb6 16847 rm -rf conftest*
4f14bcd8 16848 eval "ac_cv_func_$ac_func=no"
10f2d63a 16849fi
698dcdb6 16850rm -f conftest*
10f2d63a 16851fi
4f14bcd8
GD
16852
16853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16854 echo "$ac_t""yes" 1>&6
4f14bcd8 16855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16856 cat >> confdefs.h <<EOF
4f14bcd8 16857#define $ac_tr_func 1
10f2d63a 16858EOF
698dcdb6
VZ
16859
16860else
16861 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16862fi
16863done
16864
698dcdb6 16865
4f14bcd8
GD
16866ac_ext=c
16867# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16868ac_cpp='$CPP $CPPFLAGS'
16869ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16870ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16871cross_compiling=$ac_cv_prog_cc_cross
16872
16873
16874INET_LINK=
16875for ac_func in inet_addr
16876do
16877echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 16878echo "configure:16879: checking for $ac_func" >&5
4f14bcd8 16879if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16880 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16881else
4f14bcd8 16882 cat > conftest.$ac_ext <<EOF
f79bd02d 16883#line 16884 "configure"
10f2d63a 16884#include "confdefs.h"
4f14bcd8
GD
16885/* System header to define __stub macros and hopefully few prototypes,
16886 which can conflict with char $ac_func(); below. */
16887#include <assert.h>
10f2d63a
VZ
16888/* Override any gcc2 internal prototype to avoid an error. */
16889/* We use char because int might match the return type of a gcc2
698dcdb6 16890 builtin and then its argument prototype would still apply. */
4f14bcd8 16891char $ac_func();
698dcdb6
VZ
16892
16893int main() {
4f14bcd8
GD
16894
16895/* The GNU C library defines this for functions which it implements
16896 to always fail with ENOSYS. Some functions are actually named
16897 something starting with __ and the normal name is an alias. */
16898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899choke me
16900#else
16901$ac_func();
16902#endif
16903
698dcdb6
VZ
16904; return 0; }
16905EOF
f79bd02d 16906if { (eval echo configure:16907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16907 rm -rf conftest*
4f14bcd8 16908 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16909else
16910 echo "configure: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 rm -rf conftest*
4f14bcd8 16913 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16914fi
16915rm -f conftest*
698dcdb6 16916fi
4f14bcd8
GD
16917
16918if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16919 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16921 cat >> confdefs.h <<EOF
16922#define $ac_tr_func 1
16923EOF
16924 cat >> confdefs.h <<\EOF
16925#define HAVE_INET_ADDR 1
10f2d63a
VZ
16926EOF
16927
16928else
698dcdb6 16929 echo "$ac_t""no" 1>&6
4f14bcd8 16930echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
f79bd02d 16931echo "configure:16932: checking for inet_addr in -lnsl" >&5
4f14bcd8 16932ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16933if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16934 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16935else
698dcdb6 16936 ac_save_LIBS="$LIBS"
4f14bcd8 16937LIBS="-lnsl $LIBS"
698dcdb6 16938cat > conftest.$ac_ext <<EOF
f79bd02d 16939#line 16940 "configure"
10f2d63a
VZ
16940#include "confdefs.h"
16941/* Override any gcc2 internal prototype to avoid an error. */
16942/* We use char because int might match the return type of a gcc2
698dcdb6 16943 builtin and then its argument prototype would still apply. */
4f14bcd8 16944char inet_addr();
698dcdb6
VZ
16945
16946int main() {
4f14bcd8 16947inet_addr()
698dcdb6
VZ
16948; return 0; }
16949EOF
f79bd02d 16950if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16951 rm -rf conftest*
16952 eval "ac_cv_lib_$ac_lib_var=yes"
16953else
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 rm -rf conftest*
16957 eval "ac_cv_lib_$ac_lib_var=no"
16958fi
16959rm -f conftest*
16960LIBS="$ac_save_LIBS"
16961
16962fi
16963if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
4f14bcd8 16965 INET_LINK="nsl"
10f2d63a 16966else
698dcdb6 16967 echo "$ac_t""no" 1>&6
4f14bcd8 16968echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
f79bd02d 16969echo "configure:16970: checking for inet_addr in -lresolv" >&5
4f14bcd8 16970ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16973else
698dcdb6 16974 ac_save_LIBS="$LIBS"
4f14bcd8 16975LIBS="-lresolv $LIBS"
698dcdb6 16976cat > conftest.$ac_ext <<EOF
f79bd02d 16977#line 16978 "configure"
10f2d63a
VZ
16978#include "confdefs.h"
16979/* Override any gcc2 internal prototype to avoid an error. */
16980/* We use char because int might match the return type of a gcc2
698dcdb6 16981 builtin and then its argument prototype would still apply. */
4f14bcd8 16982char inet_addr();
698dcdb6
VZ
16983
16984int main() {
4f14bcd8 16985inet_addr()
698dcdb6
VZ
16986; return 0; }
16987EOF
f79bd02d 16988if { (eval echo configure:16989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16989 rm -rf conftest*
16990 eval "ac_cv_lib_$ac_lib_var=yes"
16991else
16992 echo "configure: failed program was:" >&5
16993 cat conftest.$ac_ext >&5
16994 rm -rf conftest*
16995 eval "ac_cv_lib_$ac_lib_var=no"
16996fi
16997rm -f conftest*
16998LIBS="$ac_save_LIBS"
16999
17000fi
17001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17002 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17003 INET_LINK="resolv"
17004
698dcdb6 17005else
4f14bcd8
GD
17006 echo "$ac_t""no" 1>&6
17007fi
698dcdb6 17008
4f14bcd8 17009
698dcdb6 17010fi
4f14bcd8
GD
17011
17012
698dcdb6
VZ
17013
17014fi
4f14bcd8
GD
17015done
17016
17017
17018for ac_func in inet_aton
17019do
17020echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 17021echo "configure:17022: checking for $ac_func" >&5
4f14bcd8 17022if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17023 echo $ac_n "(cached) $ac_c" 1>&6
17024else
4f14bcd8 17025 cat > conftest.$ac_ext <<EOF
f79bd02d 17026#line 17027 "configure"
f6bcfd97 17027#include "confdefs.h"
4f14bcd8
GD
17028/* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func(); below. */
17030#include <assert.h>
f6bcfd97
BP
17031/* Override any gcc2 internal prototype to avoid an error. */
17032/* We use char because int might match the return type of a gcc2
698dcdb6 17033 builtin and then its argument prototype would still apply. */
4f14bcd8 17034char $ac_func();
698dcdb6
VZ
17035
17036int main() {
4f14bcd8
GD
17037
17038/* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17042choke me
17043#else
17044$ac_func();
17045#endif
17046
698dcdb6
VZ
17047; return 0; }
17048EOF
f79bd02d 17049if { (eval echo configure:17050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17050 rm -rf conftest*
4f14bcd8 17051 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17052else
17053 echo "configure: failed program was:" >&5
17054 cat conftest.$ac_ext >&5
17055 rm -rf conftest*
4f14bcd8 17056 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17057fi
17058rm -f conftest*
698dcdb6 17059fi
4f14bcd8
GD
17060
17061if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17062 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17064 cat >> confdefs.h <<EOF
17065#define $ac_tr_func 1
17066EOF
17067 cat >> confdefs.h <<\EOF
17068#define HAVE_INET_ATON 1
17069EOF
17070
10f2d63a 17071else
698dcdb6 17072 echo "$ac_t""no" 1>&6
4f14bcd8 17073 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
f79bd02d 17074echo "configure:17075: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17075ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17078else
698dcdb6 17079 ac_save_LIBS="$LIBS"
4f14bcd8 17080LIBS="-l$INET_LINK $LIBS"
698dcdb6 17081cat > conftest.$ac_ext <<EOF
f79bd02d 17082#line 17083 "configure"
10f2d63a 17083#include "confdefs.h"
6232543b 17084/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17085/* We use char because int might match the return type of a gcc2
698dcdb6 17086 builtin and then its argument prototype would still apply. */
4f14bcd8 17087char inet_aton();
698dcdb6
VZ
17088
17089int main() {
4f14bcd8 17090inet_aton()
698dcdb6
VZ
17091; return 0; }
17092EOF
f79bd02d 17093if { (eval echo configure:17094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17094 rm -rf conftest*
17095 eval "ac_cv_lib_$ac_lib_var=yes"
17096else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 eval "ac_cv_lib_$ac_lib_var=no"
17101fi
17102rm -f conftest*
17103LIBS="$ac_save_LIBS"
10f2d63a 17104
698dcdb6
VZ
17105fi
17106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17108 cat >> confdefs.h <<\EOF
17109#define HAVE_INET_ATON 1
17110EOF
17111
698dcdb6
VZ
17112else
17113 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17114fi
17115
4f14bcd8 17116
10f2d63a 17117fi
4f14bcd8 17118done
10f2d63a 17119
4f14bcd8
GD
17120
17121if test "x$INET_LINK" != "x"; then
17122 cat >> confdefs.h <<\EOF
17123#define HAVE_INET_ADDR 1
17124EOF
17125
3d63bc3a 17126 INET_LINK=" -l$INET_LINK"
6232543b 17127fi
10f2d63a 17128
1e487827 17129fi
703e0a69 17130
698dcdb6 17131
4f14bcd8
GD
17132cat > confcache <<\EOF
17133# This file is a shell script that caches the results of configure
17134# tests run on this system so they can be shared between configure
17135# scripts and configure runs. It is not useful on other systems.
17136# If it contains results you don't want to keep, you may remove or edit it.
17137#
17138# By default, configure uses ./config.cache as the cache file,
17139# creating it if it does not exist already. You can give configure
17140# the --cache-file=FILE option to use a different cache file; that is
17141# what configure does when it calls configure scripts in
17142# subdirectories, so they share the cache.
17143# Giving --cache-file=/dev/null disables caching, for debugging configure.
17144# config.status only pays attention to the cache file if you give it the
17145# --recheck option to rerun configure.
17146#
f6bcfd97 17147EOF
4f14bcd8
GD
17148# The following way of writing the cache mishandles newlines in values,
17149# but we know of no workaround that is simple, portable, and efficient.
17150# So, don't put newlines in cache variables' values.
17151# Ultrix sh set writes to stderr and can't be redirected directly,
17152# and sets the high bit in the cache file unless we assign to the vars.
17153(set) 2>&1 |
17154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17155 *ac_space=\ *)
17156 # `set' does not quote correctly, so add quotes (double-quote substitution
17157 # turns \\\\ into \\, and sed turns \\ into \).
17158 sed -n \
17159 -e "s/'/'\\\\''/g" \
17160 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17161 ;;
17162 *)
17163 # `set' quotes correctly as required by POSIX, so do not add quotes.
17164 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17165 ;;
17166 esac >> confcache
17167if cmp -s $cache_file confcache; then
17168 :
17169else
17170 if test -w $cache_file; then
17171 echo "updating cache $cache_file"
17172 cat confcache > $cache_file
f6bcfd97 17173 else
4f14bcd8 17174 echo "not updating unwritable cache $cache_file"
f6bcfd97 17175 fi
4f14bcd8
GD
17176fi
17177rm -f confcache
f6bcfd97 17178
4f14bcd8
GD
17179
17180
17181if test "$TOOLKIT" != "MSW"; then
17182
7274f1c7
RL
17183
17184 THREADS_LINK=
17185 THREADS_OBJ=
17186 CODE_GEN_FLAGS=
17187 CODE_GEN_FLAGS_CXX=
17188
17189 if test "$wxUSE_THREADS" = "yes" ; then
17190 if test "$wxUSE_WINE" = 1 ; then
156b2523 17191 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17192 wxUSE_THREADS="no"
17193 elif test "$USE_BEOS" = 1; then
156b2523 17194 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17195 wxUSE_THREADS="no"
17196 fi
4f14bcd8 17197 fi
4f14bcd8 17198
7274f1c7
RL
17199 if test "$wxUSE_THREADS" = "yes" ; then
17200
17201 if test "$USE_AIX" = 1; then
17202 THREADS_LIB=pthreads
17203 else
17204 THREADS_LIB=pthread
17205 fi
4f14bcd8 17206
7274f1c7 17207 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
f79bd02d 17208echo "configure:17209: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 17209ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17211 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17212else
698dcdb6 17213 ac_save_LIBS="$LIBS"
4f14bcd8 17214LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 17215cat > conftest.$ac_ext <<EOF
f79bd02d 17216#line 17217 "configure"
10f2d63a
VZ
17217#include "confdefs.h"
17218/* Override any gcc2 internal prototype to avoid an error. */
17219/* We use char because int might match the return type of a gcc2
698dcdb6 17220 builtin and then its argument prototype would still apply. */
4f14bcd8 17221char pthread_create();
698dcdb6
VZ
17222
17223int main() {
4f14bcd8 17224pthread_create()
698dcdb6
VZ
17225; return 0; }
17226EOF
f79bd02d 17227if { (eval echo configure:17228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17228 rm -rf conftest*
17229 eval "ac_cv_lib_$ac_lib_var=yes"
17230else
17231 echo "configure: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 rm -rf conftest*
17234 eval "ac_cv_lib_$ac_lib_var=no"
17235fi
17236rm -f conftest*
17237LIBS="$ac_save_LIBS"
17238
17239fi
17240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17241 echo "$ac_t""yes" 1>&6
4f14bcd8 17242
7274f1c7
RL
17243 THREADS_OBJ="threadpsx.lo"
17244 THREADS_LINK=$THREADS_LIB
17245
10f2d63a 17246else
698dcdb6 17247 echo "$ac_t""no" 1>&6
10f2d63a 17248
7274f1c7 17249 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f79bd02d 17250echo "configure:17251: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
17251ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17252if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17253 echo $ac_n "(cached) $ac_c" 1>&6
17254else
4f14bcd8
GD
17255 ac_save_LIBS="$LIBS"
17256LIBS="-lc_r $LIBS"
17257cat > conftest.$ac_ext <<EOF
f79bd02d 17258#line 17259 "configure"
10f2d63a 17259#include "confdefs.h"
4f14bcd8
GD
17260/* Override any gcc2 internal prototype to avoid an error. */
17261/* We use char because int might match the return type of a gcc2
17262 builtin and then its argument prototype would still apply. */
17263char pthread_create();
10f2d63a 17264
4f14bcd8
GD
17265int main() {
17266pthread_create()
698dcdb6
VZ
17267; return 0; }
17268EOF
f79bd02d 17269if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17270 rm -rf conftest*
4f14bcd8 17271 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17272else
698dcdb6
VZ
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17275 rm -rf conftest*
4f14bcd8 17276 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 17277fi
698dcdb6 17278rm -f conftest*
4f14bcd8 17279LIBS="$ac_save_LIBS"
d9b9876f 17280
4f14bcd8
GD
17281fi
17282if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17283 echo "$ac_t""yes" 1>&6
17284
7274f1c7
RL
17285 THREADS_OBJ="threadpsx.lo"
17286 THREADS_LINK="c_r"
17287
4f14bcd8
GD
17288else
17289 echo "$ac_t""no" 1>&6
ab252f7b 17290
7274f1c7 17291 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 17292echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
f79bd02d 17293echo "configure:17294: checking for sys/prctl.h" >&5
4f14bcd8 17294if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 17295 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 17296else
4f14bcd8 17297 cat > conftest.$ac_ext <<EOF
f79bd02d 17298#line 17299 "configure"
d9b9876f 17299#include "confdefs.h"
4f14bcd8 17300#include <sys/prctl.h>
698dcdb6 17301EOF
4f14bcd8 17302ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 17303{ (eval echo configure:17304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17304ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17305if test -z "$ac_err"; then
698dcdb6 17306 rm -rf conftest*
4f14bcd8 17307 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 17308else
4f14bcd8 17309 echo "$ac_err" >&5
698dcdb6
VZ
17310 echo "configure: failed program was:" >&5
17311 cat conftest.$ac_ext >&5
17312 rm -rf conftest*
4f14bcd8 17313 eval "ac_cv_header_$ac_safe=no"
6232543b 17314fi
698dcdb6 17315rm -f conftest*
4f14bcd8
GD
17316fi
17317if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17318 echo "$ac_t""yes" 1>&6
698dcdb6 17319
7274f1c7
RL
17320 THREADS_OBJ="threadsgi.lo"
17321
4f14bcd8
GD
17322else
17323 echo "$ac_t""no" 1>&6
1e487827 17324fi
698dcdb6 17325
7274f1c7 17326
4f14bcd8 17327fi
d9b9876f 17328
7274f1c7 17329
4f14bcd8 17330fi
d9b9876f 17331
4f14bcd8 17332
7274f1c7
RL
17333 if test -z "$THREADS_OBJ" ; then
17334 wxUSE_THREADS=no
156b2523 17335 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 17336 fi
4f14bcd8 17337 fi
4f14bcd8 17338
7274f1c7
RL
17339 if test "$wxUSE_THREADS" = "yes" ; then
17340 for ac_func in thr_setconcurrency
4f14bcd8
GD
17341do
17342echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 17343echo "configure:17344: checking for $ac_func" >&5
4f14bcd8 17344if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17345 echo $ac_n "(cached) $ac_c" 1>&6
17346else
4f14bcd8 17347 cat > conftest.$ac_ext <<EOF
f79bd02d 17348#line 17349 "configure"
d9b9876f 17349#include "confdefs.h"
4f14bcd8
GD
17350/* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func(); below. */
17352#include <assert.h>
17353/* Override any gcc2 internal prototype to avoid an error. */
17354/* We use char because int might match the return type of a gcc2
17355 builtin and then its argument prototype would still apply. */
17356char $ac_func();
17357
698dcdb6 17358int main() {
d9b9876f 17359
4f14bcd8
GD
17360/* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17364choke me
17365#else
17366$ac_func();
17367#endif
17368
698dcdb6
VZ
17369; return 0; }
17370EOF
f79bd02d 17371if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17372 rm -rf conftest*
4f14bcd8 17373 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17374else
698dcdb6
VZ
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 rm -rf conftest*
4f14bcd8 17378 eval "ac_cv_func_$ac_func=no"
6232543b 17379fi
698dcdb6 17380rm -f conftest*
1e487827 17381fi
698dcdb6 17382
4f14bcd8
GD
17383if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17384 echo "$ac_t""yes" 1>&6
17385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17386 cat >> confdefs.h <<EOF
17387#define $ac_tr_func 1
d9b9876f 17388EOF
4f14bcd8
GD
17389
17390else
17391 echo "$ac_t""no" 1>&6
10f2d63a 17392fi
4f14bcd8 17393done
10f2d63a 17394
10f2d63a 17395
7274f1c7
RL
17396
17397 for ac_hdr in sched.h
4f14bcd8
GD
17398do
17399ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17400echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 17401echo "configure:17402: checking for $ac_hdr" >&5
4f14bcd8
GD
17402if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17404else
4f14bcd8 17405 cat > conftest.$ac_ext <<EOF
f79bd02d 17406#line 17407 "configure"
4f14bcd8
GD
17407#include "confdefs.h"
17408#include <$ac_hdr>
13111b2a 17409EOF
4f14bcd8 17410ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 17411{ (eval echo configure:17412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17412ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17413if test -z "$ac_err"; then
17414 rm -rf conftest*
17415 eval "ac_cv_header_$ac_safe=yes"
17416else
17417 echo "$ac_err" >&5
17418 echo "configure: failed program was:" >&5
17419 cat conftest.$ac_ext >&5
17420 rm -rf conftest*
17421 eval "ac_cv_header_$ac_safe=no"
13111b2a 17422fi
4f14bcd8 17423rm -f conftest*
10f2d63a 17424fi
4f14bcd8
GD
17425if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17426 echo "$ac_t""yes" 1>&6
17427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17428 cat >> confdefs.h <<EOF
4f14bcd8 17429#define $ac_tr_hdr 1
f6bcfd97 17430EOF
4f14bcd8
GD
17431
17432else
17433 echo "$ac_t""no" 1>&6
f6bcfd97 17434fi
4f14bcd8 17435done
f6bcfd97 17436
10f2d63a 17437
7274f1c7 17438 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
f79bd02d 17439echo "configure:17440: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
17440ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17441if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17442 echo $ac_n "(cached) $ac_c" 1>&6
17443else
17444 ac_save_LIBS="$LIBS"
17445LIBS="-l$THREADS_LINK $LIBS"
17446cat > conftest.$ac_ext <<EOF
f79bd02d 17447#line 17448 "configure"
4f14bcd8
GD
17448#include "confdefs.h"
17449/* Override any gcc2 internal prototype to avoid an error. */
17450/* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452char sched_yield();
10f2d63a 17453
4f14bcd8
GD
17454int main() {
17455sched_yield()
17456; return 0; }
10f2d63a 17457EOF
f79bd02d 17458if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17459 rm -rf conftest*
17460 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17461else
4f14bcd8
GD
17462 echo "configure: failed program was:" >&5
17463 cat conftest.$ac_ext >&5
17464 rm -rf conftest*
17465 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17466fi
4f14bcd8
GD
17467rm -f conftest*
17468LIBS="$ac_save_LIBS"
10f2d63a 17469
4f14bcd8
GD
17470fi
17471if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17472 echo "$ac_t""yes" 1>&6
17473 cat >> confdefs.h <<\EOF
17474#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17475EOF
17476
4f14bcd8
GD
17477else
17478 echo "$ac_t""no" 1>&6
17479echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
f79bd02d 17480echo "configure:17481: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17481ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17482if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17483 echo $ac_n "(cached) $ac_c" 1>&6
17484else
17485 ac_save_LIBS="$LIBS"
17486LIBS="-lposix4 $LIBS"
17487cat > conftest.$ac_ext <<EOF
f79bd02d 17488#line 17489 "configure"
4f14bcd8
GD
17489#include "confdefs.h"
17490/* Override any gcc2 internal prototype to avoid an error. */
17491/* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493char sched_yield();
47c13eb7 17494
4f14bcd8
GD
17495int main() {
17496sched_yield()
17497; return 0; }
10f2d63a 17498EOF
f79bd02d 17499if { (eval echo configure:17500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17500 rm -rf conftest*
17501 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17502else
4f14bcd8
GD
17503 echo "configure: failed program was:" >&5
17504 cat conftest.$ac_ext >&5
17505 rm -rf conftest*
17506 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17507fi
4f14bcd8
GD
17508rm -f conftest*
17509LIBS="$ac_save_LIBS"
10f2d63a 17510
54276ccf 17511fi
4f14bcd8
GD
17512if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17513 echo "$ac_t""yes" 1>&6
17514 cat >> confdefs.h <<\EOF
17515#define HAVE_SCHED_YIELD 1
54276ccf 17516EOF
3d63bc3a 17517 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17518else
17519 echo "$ac_t""no" 1>&6
17520echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 17521
54276ccf
VZ
17522fi
17523
7274f1c7 17524
4f14bcd8 17525fi
698dcdb6 17526
10f2d63a 17527
7274f1c7
RL
17528 HAVE_PRIOR_FUNCS=0
17529 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
f79bd02d 17530echo "configure:17531: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
17531ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17532if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17533 echo $ac_n "(cached) $ac_c" 1>&6
17534else
4f14bcd8
GD
17535 ac_save_LIBS="$LIBS"
17536LIBS="-l$THREADS_LINK $LIBS"
17537cat > conftest.$ac_ext <<EOF
f79bd02d 17538#line 17539 "configure"
422107f9 17539#include "confdefs.h"
4f14bcd8
GD
17540/* Override any gcc2 internal prototype to avoid an error. */
17541/* We use char because int might match the return type of a gcc2
17542 builtin and then its argument prototype would still apply. */
17543char pthread_attr_getschedpolicy();
17544
17545int main() {
17546pthread_attr_getschedpolicy()
17547; return 0; }
698dcdb6 17548EOF
f79bd02d 17549if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17550 rm -rf conftest*
4f14bcd8 17551 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 17552else
698dcdb6 17553 echo "configure: failed program was:" >&5
422107f9 17554 cat conftest.$ac_ext >&5
698dcdb6 17555 rm -rf conftest*
4f14bcd8 17556 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 17557fi
698dcdb6 17558rm -f conftest*
4f14bcd8
GD
17559LIBS="$ac_save_LIBS"
17560
422107f9 17561fi
4f14bcd8 17562if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 17563 echo "$ac_t""yes" 1>&6
4f14bcd8 17564 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
f79bd02d 17565echo "configure:17566: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 17566ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17567if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17568 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17569else
698dcdb6 17570 ac_save_LIBS="$LIBS"
4f14bcd8 17571LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 17572cat > conftest.$ac_ext <<EOF
f79bd02d 17573#line 17574 "configure"
422107f9
VZ
17574#include "confdefs.h"
17575/* Override any gcc2 internal prototype to avoid an error. */
17576/* We use char because int might match the return type of a gcc2
698dcdb6 17577 builtin and then its argument prototype would still apply. */
4f14bcd8 17578char pthread_attr_setschedparam();
698dcdb6
VZ
17579
17580int main() {
4f14bcd8 17581pthread_attr_setschedparam()
698dcdb6
VZ
17582; return 0; }
17583EOF
f79bd02d 17584if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17585 rm -rf conftest*
17586 eval "ac_cv_lib_$ac_lib_var=yes"
17587else
17588 echo "configure: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 rm -rf conftest*
17591 eval "ac_cv_lib_$ac_lib_var=no"
17592fi
17593rm -f conftest*
17594LIBS="$ac_save_LIBS"
17595
17596fi
17597if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17598 echo "$ac_t""yes" 1>&6
4f14bcd8 17599 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
f79bd02d 17600echo "configure:17601: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
17601ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17602if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
17603 echo $ac_n "(cached) $ac_c" 1>&6
17604else
4f14bcd8
GD
17605 ac_save_LIBS="$LIBS"
17606LIBS="-l$THREADS_LINK $LIBS"
17607cat > conftest.$ac_ext <<EOF
f79bd02d 17608#line 17609 "configure"
422107f9 17609#include "confdefs.h"
4f14bcd8
GD
17610/* Override any gcc2 internal prototype to avoid an error. */
17611/* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17613char sched_get_priority_max();
17614
17615int main() {
17616sched_get_priority_max()
17617; return 0; }
698dcdb6 17618EOF
f79bd02d 17619if { (eval echo configure:17620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17620 rm -rf conftest*
4f14bcd8 17621 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 17622else
698dcdb6 17623 echo "configure: failed program was:" >&5
422107f9 17624 cat conftest.$ac_ext >&5
698dcdb6 17625 rm -rf conftest*
4f14bcd8 17626 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 17627fi
698dcdb6 17628rm -f conftest*
4f14bcd8
GD
17629LIBS="$ac_save_LIBS"
17630
422107f9 17631fi
4f14bcd8 17632if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 17633 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17634 HAVE_PRIOR_FUNCS=1
17635else
17636 echo "$ac_t""no" 1>&6
17637echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
f79bd02d 17638echo "configure:17639: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17639ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17641 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17642else
698dcdb6 17643 ac_save_LIBS="$LIBS"
4f14bcd8 17644LIBS="-lposix4 $LIBS"
698dcdb6 17645cat > conftest.$ac_ext <<EOF
f79bd02d 17646#line 17647 "configure"
422107f9
VZ
17647#include "confdefs.h"
17648/* Override any gcc2 internal prototype to avoid an error. */
17649/* We use char because int might match the return type of a gcc2
698dcdb6 17650 builtin and then its argument prototype would still apply. */
4f14bcd8 17651char sched_get_priority_max();
698dcdb6
VZ
17652
17653int main() {
4f14bcd8 17654sched_get_priority_max()
698dcdb6
VZ
17655; return 0; }
17656EOF
f79bd02d 17657if { (eval echo configure:17658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17658 rm -rf conftest*
17659 eval "ac_cv_lib_$ac_lib_var=yes"
17660else
17661 echo "configure: failed program was:" >&5
17662 cat conftest.$ac_ext >&5
17663 rm -rf conftest*
17664 eval "ac_cv_lib_$ac_lib_var=no"
17665fi
17666rm -f conftest*
17667LIBS="$ac_save_LIBS"
17668
17669fi
17670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17671 echo "$ac_t""yes" 1>&6
4f14bcd8 17672
7274f1c7
RL
17673 HAVE_PRIOR_FUNCS=1
17674 POSIX4_LINK=" -lposix4"
17675
698dcdb6
VZ
17676else
17677 echo "$ac_t""no" 1>&6
422107f9
VZ
17678fi
17679
7274f1c7 17680
422107f9
VZ
17681fi
17682
7274f1c7 17683
4f14bcd8
GD
17684else
17685 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17686fi
17687
7274f1c7 17688
698dcdb6 17689else
4f14bcd8
GD
17690 echo "$ac_t""no" 1>&6
17691fi
463abc64 17692
463abc64 17693
7274f1c7
RL
17694 if test "$HAVE_PRIOR_FUNCS" = 1; then
17695 cat >> confdefs.h <<\EOF
4f14bcd8 17696#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17697EOF
463abc64 17698
7274f1c7
RL
17699 else
17700 echo "configure: warning: Setting thread priority will not work" 1>&2
17701 fi
463abc64 17702
7274f1c7 17703 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
f79bd02d 17704echo "configure:17705: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 17705ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17707 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17708else
698dcdb6 17709 ac_save_LIBS="$LIBS"
4f14bcd8 17710LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 17711cat > conftest.$ac_ext <<EOF
f79bd02d 17712#line 17713 "configure"
422107f9
VZ
17713#include "confdefs.h"
17714/* Override any gcc2 internal prototype to avoid an error. */
17715/* We use char because int might match the return type of a gcc2
698dcdb6 17716 builtin and then its argument prototype would still apply. */
4f14bcd8 17717char pthread_cancel();
698dcdb6
VZ
17718
17719int main() {
4f14bcd8 17720pthread_cancel()
698dcdb6
VZ
17721; return 0; }
17722EOF
f79bd02d 17723if { (eval echo configure:17724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17724 rm -rf conftest*
17725 eval "ac_cv_lib_$ac_lib_var=yes"
17726else
17727 echo "configure: failed program was:" >&5
17728 cat conftest.$ac_ext >&5
17729 rm -rf conftest*
17730 eval "ac_cv_lib_$ac_lib_var=no"
17731fi
17732rm -f conftest*
17733LIBS="$ac_save_LIBS"
17734
17735fi
17736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17737 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17738 cat >> confdefs.h <<\EOF
17739#define HAVE_PTHREAD_CANCEL 1
17740EOF
17741
698dcdb6
VZ
17742else
17743 echo "$ac_t""no" 1>&6
4f14bcd8 17744echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17745fi
17746
422107f9 17747
7274f1c7 17748 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
f79bd02d 17749echo "configure:17750: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17750if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17752else
17753
7274f1c7 17754 cat > conftest.$ac_ext <<EOF
f79bd02d 17755#line 17756 "configure"
4f14bcd8
GD
17756#include "confdefs.h"
17757#include <pthread.h>
17758int main() {
17759
7274f1c7
RL
17760 pthread_cleanup_push(NULL, NULL);
17761 pthread_cleanup_pop(0);
17762
4f14bcd8
GD
17763; return 0; }
17764EOF
f79bd02d 17765if { (eval echo configure:17766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17766 rm -rf conftest*
17767
7274f1c7
RL
17768 wx_cv_func_pthread_cleanup_push=yes
17769
4f14bcd8
GD
17770else
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774
7274f1c7
RL
17775 wx_cv_func_pthread_cleanup_push=no
17776
4f14bcd8
GD
17777fi
17778rm -f conftest*
7274f1c7 17779
10f2d63a
VZ
17780fi
17781
4f14bcd8
GD
17782echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17783
7274f1c7
RL
17784 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17785 cat >> confdefs.h <<\EOF
4f14bcd8 17786#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17787EOF
17788
7274f1c7 17789 fi
4f14bcd8 17790
7274f1c7
RL
17791
17792 if test "x$wx_lib_glibc21" = "xyes"; then
17793 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17794 fi
4f14bcd8 17795
7274f1c7 17796 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
f79bd02d 17797echo "configure:17798: checking for pthread_mutexattr_t" >&5
4f14bcd8 17798if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17799 echo $ac_n "(cached) $ac_c" 1>&6
17800else
4f14bcd8 17801
7274f1c7 17802 cat > conftest.$ac_ext <<EOF
f79bd02d 17803#line 17804 "configure"
0dcf9893 17804#include "confdefs.h"
4f14bcd8
GD
17805#include <pthread.h>
17806int main() {
17807
7274f1c7
RL
17808 pthread_mutexattr_t attr;
17809 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17810
4f14bcd8 17811; return 0; }
698dcdb6 17812EOF
f79bd02d 17813if { (eval echo configure:17814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17814 rm -rf conftest*
4f14bcd8 17815
7274f1c7
RL
17816 wx_cv_type_pthread_mutexattr_t=yes
17817
3fed1840 17818else
698dcdb6 17819 echo "configure: failed program was:" >&5
3fed1840 17820 cat conftest.$ac_ext >&5
698dcdb6 17821 rm -rf conftest*
4f14bcd8 17822
7274f1c7
RL
17823 wx_cv_type_pthread_mutexattr_t=no
17824
4f14bcd8 17825
3fed1840 17826fi
698dcdb6 17827rm -f conftest*
7274f1c7 17828
3fed1840 17829fi
4f14bcd8
GD
17830
17831echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17832
7274f1c7
RL
17833 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17834 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17835#define HAVE_PTHREAD_MUTEXATTR_T 1
17836EOF
17837
7274f1c7
RL
17838 else
17839 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
f79bd02d 17840echo "configure:17841: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17841if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17842 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17843else
4f14bcd8 17844
7274f1c7 17845 cat > conftest.$ac_ext <<EOF
f79bd02d 17846#line 17847 "configure"
3fed1840 17847#include "confdefs.h"
4f14bcd8 17848#include <pthread.h>
698dcdb6 17849int main() {
4f14bcd8 17850
7274f1c7
RL
17851 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17852
698dcdb6
VZ
17853; return 0; }
17854EOF
f79bd02d 17855if { (eval echo configure:17856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17856 rm -rf conftest*
4f14bcd8 17857
7274f1c7
RL
17858 wx_cv_type_pthread_rec_mutex_init=yes
17859
698dcdb6
VZ
17860else
17861 echo "configure: failed program was:" >&5
17862 cat conftest.$ac_ext >&5
17863 rm -rf conftest*
4f14bcd8 17864
7274f1c7
RL
17865 wx_cv_type_pthread_rec_mutex_init=no
17866
4f14bcd8 17867
698dcdb6
VZ
17868fi
17869rm -f conftest*
7274f1c7 17870
3fed1840
RR
17871fi
17872
4f14bcd8 17873echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17874 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17875 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17876#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17877EOF
3fed1840 17878
7274f1c7
RL
17879 else
17880 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17881 fi
17882 fi
4f14bcd8 17883
7274f1c7 17884 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 17885
7274f1c7
RL
17886 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17887 CPPFLAGS="$CFLAGS -mt"
17888 CXXFLAGS="$CXXFLAGS -mt"
17889 LDFLAGS="$LDFLAGS -mt"
17890 fi
17891 fi
3fed1840 17892
4f14bcd8
GD
17893fi
17894
17895if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17896 cat >> confdefs.h <<\EOF
4f14bcd8 17897#define wxUSE_THREADS 1
7b6058cd
GD
17898EOF
17899
4f14bcd8 17900
3f345b47 17901 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
17902
17903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17904else
4f14bcd8
GD
17905 if test "$ac_cv_func_strtok_r" = "yes"; then
17906 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
f79bd02d 17907echo "configure:17908: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17908 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17909 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17910 echo "$ac_t""yes" 1>&6
17911 else
17912 echo "$ac_t""no" 1>&6
17913 fi
17914 fi
17915fi
17916
17917if test "$WXGTK20" = 1 ; then
17918 cat >> confdefs.h <<EOF
17919#define __WXGTK20__ $WXGTK20
698dcdb6 17920EOF
4f14bcd8
GD
17921
17922 WXGTK12=1
10f2d63a 17923fi
4f14bcd8
GD
17924
17925if test "$WXGTK12" = 1 ; then
17926 cat >> confdefs.h <<EOF
17927#define __WXGTK12__ $WXGTK12
17928EOF
17929
10f2d63a 17930fi
698dcdb6 17931
4f14bcd8
GD
17932if test "$WXGTK127" = 1 ; then
17933 cat >> confdefs.h <<EOF
17934#define __WXGTK127__ $WXGTK127
698dcdb6 17935EOF
4f14bcd8 17936
698dcdb6 17937fi
10f2d63a 17938
4f14bcd8
GD
17939WXDEBUG=
17940
17941if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17942 WXDEBUG="-g"
17943 wxUSE_OPTIMISE=no
698dcdb6 17944fi
4f14bcd8
GD
17945
17946if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17947 wxUSE_DEBUG_INFO=yes
17948 WXDEBUG="-ggdb"
10f2d63a
VZ
17949fi
17950
4f14bcd8
GD
17951if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17952 cat >> confdefs.h <<\EOF
17953#define WXDEBUG 1
17954EOF
17955
17956 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17957else
4f14bcd8
GD
17958 if test "$wxUSE_GTK" = 1 ; then
17959 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17960 fi
17961fi
17962
17963if test "$wxUSE_MEM_TRACING" = "yes" ; then
17964 cat >> confdefs.h <<\EOF
17965#define wxUSE_MEMORY_TRACING 1
17966EOF
17967
17968 cat >> confdefs.h <<\EOF
17969#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17970EOF
17971
17972 cat >> confdefs.h <<\EOF
17973#define wxUSE_DEBUG_NEW_ALWAYS 1
17974EOF
17975
17976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17977fi
17978
17979if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17980 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17981fi
17982
17983PROFILE=
17984if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17985 PROFILE=" -pg"
10f2d63a
VZ
17986fi
17987
88e30f2b 17988if test "$GCC" = "yes" ; then
4f14bcd8
GD
17989 if test "$wxUSE_NO_RTTI" = "yes" ; then
17990 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17991 fi
4f14bcd8
GD
17992 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17993 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17994 fi
17995 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17996 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17997 fi
4f14bcd8
GD
17998 if test "$USE_WIN32" = 1 ; then
17999 # I'm not even really sure what this was ever added to solve,
18000 # but someone added it for mingw native builds, so I guess
18001 # they had a reason, right??
18002 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18003 fi
18004fi
18005
18006
18007CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
18008CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
18009if test "$wxUSE_OPTIMISE" = "no" ; then
18010 OPTIMISE=
18011else
18012 if test "$GCC" = yes ; then
18013 OPTIMISE="-O2"
18014 case "${host}" in
18015 i586-*-*|i686-*-* )
18016 OPTIMISE="${OPTIMISE} "
18017 ;;
18018 esac
18019 else
18020 OPTIMISE="-O"
18021 fi
18022fi
18023
18024if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18025 cat >> confdefs.h <<\EOF
18026#define WXWIN_COMPATIBILITY_2 1
18027EOF
18028
18029
18030 WXWIN_COMPATIBILITY_2_2="yes"
18031fi
18032
18033if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
18034 cat >> confdefs.h <<\EOF
18035#define WXWIN_COMPATIBILITY_2_2 1
18036EOF
18037
10f2d63a
VZ
18038fi
18039
698dcdb6 18040
10f2d63a 18041if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18042 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18043#define wxUSE_GUI 1
18044EOF
18045
698dcdb6 18046
10f2d63a 18047 else
698dcdb6 18048 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18049#define wxUSE_NOGUI 1
18050EOF
18051
18052fi
18053
698dcdb6 18054
10f2d63a 18055if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18056 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18057#define wxUSE_UNIX 1
18058EOF
18059
18060fi
18061
698dcdb6 18062
10f2d63a 18063if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18065#define wxUSE_APPLE_IEEE 1
18066EOF
18067
18068fi
18069
1e6feb95
VZ
18070if test "$wxUSE_TIMER" = "yes"; then
18071 cat >> confdefs.h <<\EOF
18072#define wxUSE_TIMER 1
18073EOF
18074
18075fi
18076
10f2d63a 18077if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18078 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18079#define wxUSE_WAVE 1
18080EOF
18081
18082fi
18083
1e6feb95
VZ
18084if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18085 cat >> confdefs.h <<\EOF
18086#define wxUSE_CMDLINE_PARSER 1
18087EOF
18088
18089fi
18090
18091if test "$wxUSE_STOPWATCH" = "yes"; then
18092 cat >> confdefs.h <<\EOF
18093#define wxUSE_STOPWATCH 1
18094EOF
18095
18096fi
18097
18098if test "$wxUSE_DATETIME" = "yes"; then
18099 cat >> confdefs.h <<\EOF
18100#define wxUSE_DATETIME 1
18101EOF
18102
18103fi
18104
18105if test "$wxUSE_TIMEDATE" = "yes"; then
18106 cat >> confdefs.h <<\EOF
18107#define wxUSE_TIMEDATE 1
18108EOF
18109
18110fi
18111
10f2d63a 18112if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18114#define wxUSE_FILE 1
18115EOF
18116
18117fi
18118
1e6feb95
VZ
18119if test "$wxUSE_FFILE" = "yes"; then
18120 cat >> confdefs.h <<\EOF
18121#define wxUSE_FFILE 1
18122EOF
18123
18124fi
18125
24528b0c 18126if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18127 cat >> confdefs.h <<\EOF
24528b0c
VS
18128#define wxUSE_FILESYSTEM 1
18129EOF
18130
18131fi
18132
10f2d63a 18133if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18135#define wxUSE_FS_INET 1
18136EOF
18137
18138fi
18139
18140if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18142#define wxUSE_FS_ZIP 1
18143EOF
18144
18145fi
18146
18147if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18148 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18149#define wxUSE_ZIPSTREAM 1
18150EOF
18151
18152fi
18153
eb4efbdc 18154if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18155 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18156#define wxUSE_ON_FATAL_EXCEPTION 1
18157EOF
18158
18159fi
18160
4f3c5f06 18161if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18162 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18163#define wxUSE_SNGLINST_CHECKER 1
18164EOF
18165
18166fi
18167
10f2d63a 18168if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18170#define wxUSE_BUSYINFO 1
18171EOF
18172
18173fi
18174
18175if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18176 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18177#define wxUSE_STD_IOSTREAM 1
18178EOF
18179
18180fi
18181
a3a584a7
VZ
18182if test "$wxUSE_TEXTBUFFER" = "yes"; then
18183 cat >> confdefs.h <<\EOF
18184#define wxUSE_TEXTBUFFER 1
18185EOF
18186
18187fi
18188
10f2d63a 18189if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18190 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18191 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18192 else
698dcdb6 18193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18194#define wxUSE_TEXTFILE 1
18195EOF
18196
18197 fi
18198fi
18199
18200if test "$wxUSE_CONFIG" = "yes" ; then
18201 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18202 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18203 else
698dcdb6 18204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18205#define wxUSE_CONFIG 1
18206EOF
18207
18208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18209 fi
18210fi
18211
18212if test "$wxUSE_INTL" = "yes" ; then
18213 if test "$wxUSE_FILE" != "yes"; then
156b2523 18214 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18215 else
698dcdb6 18216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18217#define wxUSE_INTL 1
18218EOF
18219
18220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18221 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18222 fi
18223fi
18224
18225if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18227#define wxUSE_LOG 1
18228EOF
18229
d73be714
VZ
18230
18231 if test "$wxUSE_LOGGUI" = "yes"; then
18232 cat >> confdefs.h <<\EOF
18233#define wxUSE_LOGGUI 1
18234EOF
18235
18236 fi
18237
18238 if test "$wxUSE_LOGWINDOW" = "yes"; then
18239 cat >> confdefs.h <<\EOF
18240#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18241EOF
18242
18243 fi
18244
18245 if test "$wxUSE_LOGDIALOG" = "yes"; then
18246 cat >> confdefs.h <<\EOF
18247#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18248EOF
18249
18250 fi
10f2d63a
VZ
18251fi
18252
18253if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18255#define wxUSE_LONGLONG 1
18256EOF
18257
18258fi
18259
e8f65ba6 18260if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18261 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18262#define wxUSE_GEOMETRY 1
18263EOF
18264
18265fi
18266
10f2d63a 18267if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18268 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18269#define wxUSE_DIALUP_MANAGER 1
18270EOF
18271
70f7a477 18272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18273fi
18274
18275if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18277#define wxUSE_STREAMS 1
18278EOF
18279
18280fi
18281
1e487827 18282
1e6feb95 18283if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18284 for ac_func in strptime
83307f33 18285do
698dcdb6 18286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 18287echo "configure:18288: checking for $ac_func" >&5
698dcdb6
VZ
18288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18289 echo $ac_n "(cached) $ac_c" 1>&6
18290else
18291 cat > conftest.$ac_ext <<EOF
f79bd02d 18292#line 18293 "configure"
83307f33
VZ
18293#include "confdefs.h"
18294/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18295 which can conflict with char $ac_func(); below. */
83307f33
VZ
18296#include <assert.h>
18297/* Override any gcc2 internal prototype to avoid an error. */
18298/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18299 builtin and then its argument prototype would still apply. */
18300char $ac_func();
18301
18302int main() {
83307f33
VZ
18303
18304/* The GNU C library defines this for functions which it implements
18305 to always fail with ENOSYS. Some functions are actually named
18306 something starting with __ and the normal name is an alias. */
18307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18308choke me
18309#else
698dcdb6 18310$ac_func();
83307f33
VZ
18311#endif
18312
698dcdb6 18313; return 0; }
83307f33 18314EOF
f79bd02d 18315if { (eval echo configure:18316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18316 rm -rf conftest*
18317 eval "ac_cv_func_$ac_func=yes"
18318else
18319 echo "configure: failed program was:" >&5
18320 cat conftest.$ac_ext >&5
18321 rm -rf conftest*
18322 eval "ac_cv_func_$ac_func=no"
18323fi
18324rm -f conftest*
18325fi
83307f33 18326
698dcdb6
VZ
18327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18328 echo "$ac_t""yes" 1>&6
18329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18330 cat >> confdefs.h <<EOF
18331#define $ac_tr_func 1
18332EOF
18333
18334else
18335 echo "$ac_t""no" 1>&6
83307f33
VZ
18336fi
18337done
18338
1e487827 18339
698dcdb6 18340 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
f79bd02d 18341echo "configure:18342: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18342if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18343 echo $ac_n "(cached) $ac_c" 1>&6
18344else
18345
18346 cat > conftest.$ac_ext <<EOF
f79bd02d 18347#line 18348 "configure"
360d6699
VZ
18348#include "confdefs.h"
18349
b4085ce6 18350 #include <time.h>
698dcdb6
VZ
18351
18352int main() {
360d6699
VZ
18353
18354 int tz;
4f11a343 18355 tz = timezone;
698dcdb6
VZ
18356
18357; return 0; }
18358EOF
f79bd02d 18359if { (eval echo configure:18360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18360 rm -rf conftest*
18361
4f11a343 18362 wx_cv_var_timezone=timezone
698dcdb6 18363
360d6699 18364else
698dcdb6
VZ
18365 echo "configure: failed program was:" >&5
18366 cat conftest.$ac_ext >&5
18367 rm -rf conftest*
18368
18369 cat > conftest.$ac_ext <<EOF
f79bd02d 18370#line 18371 "configure"
360d6699
VZ
18371#include "confdefs.h"
18372
b4085ce6 18373 #include <time.h>
698dcdb6
VZ
18374
18375int main() {
360d6699
VZ
18376
18377 int tz;
18378 tz = _timezone;
698dcdb6
VZ
18379
18380; return 0; }
18381EOF
f79bd02d 18382if { (eval echo configure:18383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18383 rm -rf conftest*
18384
360d6699 18385 wx_cv_var_timezone=_timezone
698dcdb6 18386
5357c8e8 18387else
698dcdb6
VZ
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 rm -rf conftest*
18391
18392 cat > conftest.$ac_ext <<EOF
f79bd02d 18393#line 18394 "configure"
5357c8e8
VZ
18394#include "confdefs.h"
18395
b4085ce6 18396 #include <time.h>
698dcdb6
VZ
18397
18398int main() {
5357c8e8
VZ
18399
18400 int tz;
4f11a343 18401 tz = __timezone;
698dcdb6
VZ
18402
18403; return 0; }
18404EOF
f79bd02d 18405if { (eval echo configure:18406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18406 rm -rf conftest*
18407
4f11a343 18408 wx_cv_var_timezone=__timezone
698dcdb6 18409
360d6699 18410else
698dcdb6
VZ
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413 rm -rf conftest*
f9bc1684
VS
18414
18415 if test "$USE_DOS" = 0 ; then
18416 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18417 fi
18418
698dcdb6 18419
360d6699 18420fi
698dcdb6
VZ
18421rm -f conftest*
18422
18423
360d6699 18424fi
698dcdb6
VZ
18425rm -f conftest*
18426
18427
6232543b 18428fi
698dcdb6
VZ
18429rm -f conftest*
18430
18431
1e487827 18432fi
703e0a69 18433
698dcdb6
VZ
18434echo "$ac_t""$wx_cv_var_timezone" 1>&6
18435
f9bc1684 18436 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18437 cat >> confdefs.h <<EOF
360d6699
VZ
18438#define WX_TIMEZONE $wx_cv_var_timezone
18439EOF
18440
f9bc1684 18441 fi
698dcdb6
VZ
18442
18443 for ac_func in localtime
afc31813 18444do
698dcdb6 18445echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 18446echo "configure:18447: checking for $ac_func" >&5
698dcdb6
VZ
18447if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18448 echo $ac_n "(cached) $ac_c" 1>&6
18449else
18450 cat > conftest.$ac_ext <<EOF
f79bd02d 18451#line 18452 "configure"
10f2d63a 18452#include "confdefs.h"
afc31813 18453/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18454 which can conflict with char $ac_func(); below. */
afc31813
VZ
18455#include <assert.h>
18456/* Override any gcc2 internal prototype to avoid an error. */
18457/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18458 builtin and then its argument prototype would still apply. */
18459char $ac_func();
18460
18461int main() {
afc31813
VZ
18462
18463/* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18467choke me
18468#else
698dcdb6 18469$ac_func();
afc31813
VZ
18470#endif
18471
698dcdb6 18472; return 0; }
10f2d63a 18473EOF
f79bd02d 18474if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18475 rm -rf conftest*
18476 eval "ac_cv_func_$ac_func=yes"
18477else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 eval "ac_cv_func_$ac_func=no"
18482fi
18483rm -f conftest*
18484fi
afc31813 18485
698dcdb6
VZ
18486if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18487 echo "$ac_t""yes" 1>&6
18488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18489 cat >> confdefs.h <<EOF
18490#define $ac_tr_func 1
18491EOF
18492
18493else
18494 echo "$ac_t""no" 1>&6
afc31813
VZ
18495fi
18496done
18497
1e487827 18498
698dcdb6
VZ
18499 if test "$ac_cv_func_localtime" = "yes"; then
18500 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
f79bd02d 18501echo "configure:18502: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18502if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18503 echo $ac_n "(cached) $ac_c" 1>&6
18504else
18505
18506 cat > conftest.$ac_ext <<EOF
f79bd02d 18507#line 18508 "configure"
0470b1e6
VZ
18508#include "confdefs.h"
18509
b4085ce6 18510 #include <time.h>
698dcdb6
VZ
18511
18512int main() {
0470b1e6
VZ
18513
18514 struct tm tm;
18515 tm.tm_gmtoff++;
698dcdb6
VZ
18516
18517; return 0; }
18518EOF
f79bd02d 18519if { (eval echo configure:18520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18520 rm -rf conftest*
18521
f03a98d8 18522 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18523
0470b1e6 18524else
698dcdb6
VZ
18525 echo "configure: failed program was:" >&5
18526 cat conftest.$ac_ext >&5
18527 rm -rf conftest*
18528 wx_cv_struct_tm_has_gmtoff=no
18529
0470b1e6 18530fi
698dcdb6
VZ
18531rm -f conftest*
18532
1e487827 18533fi
698dcdb6
VZ
18534
18535echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18536 fi
18537
18538 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18539 cat >> confdefs.h <<\EOF
6232543b
VS
18540#define WX_GMTOFF_IN_TM 1
18541EOF
0470b1e6 18542
3fcdd07b
VZ
18543 fi
18544
698dcdb6 18545 for ac_func in gettimeofday ftime
3fcdd07b 18546do
698dcdb6 18547echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 18548echo "configure:18549: checking for $ac_func" >&5
698dcdb6
VZ
18549if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550 echo $ac_n "(cached) $ac_c" 1>&6
18551else
18552 cat > conftest.$ac_ext <<EOF
f79bd02d 18553#line 18554 "configure"
3fcdd07b
VZ
18554#include "confdefs.h"
18555/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18556 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18557#include <assert.h>
18558/* Override any gcc2 internal prototype to avoid an error. */
18559/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18560 builtin and then its argument prototype would still apply. */
18561char $ac_func();
18562
18563int main() {
3fcdd07b
VZ
18564
18565/* The GNU C library defines this for functions which it implements
18566 to always fail with ENOSYS. Some functions are actually named
18567 something starting with __ and the normal name is an alias. */
18568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569choke me
18570#else
698dcdb6 18571$ac_func();
3fcdd07b
VZ
18572#endif
18573
698dcdb6
VZ
18574; return 0; }
18575EOF
f79bd02d 18576if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18577 rm -rf conftest*
18578 eval "ac_cv_func_$ac_func=yes"
18579else
18580 echo "configure: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=no"
18584fi
18585rm -f conftest*
18586fi
18587
18588if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589 echo "$ac_t""yes" 1>&6
18590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591 cat >> confdefs.h <<EOF
18592#define $ac_tr_func 1
3fcdd07b
VZ
18593EOF
18594 break
698dcdb6
VZ
18595else
18596 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18597fi
18598done
18599
afc31813 18600
698dcdb6
VZ
18601 if test "$ac_cv_func_gettimeofday" = "yes"; then
18602 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
f79bd02d 18603echo "configure:18604: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18604if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18605 echo $ac_n "(cached) $ac_c" 1>&6
18606else
18607
18608
18609 ac_ext=C
18610# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18611ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18612ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18613ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18614cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18615
698dcdb6
VZ
18616
18617 cat > conftest.$ac_ext <<EOF
f79bd02d 18618#line 18619 "configure"
10f2d63a 18619#include "confdefs.h"
afc31813
VZ
18620
18621 #include <sys/time.h>
18622 #include <unistd.h>
698dcdb6
VZ
18623
18624int main() {
afc31813
VZ
18625
18626 struct timeval tv;
776862b4 18627 gettimeofday(&tv, NULL);
698dcdb6
VZ
18628
18629; return 0; }
18630EOF
f79bd02d 18631if { (eval echo configure:18632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18632 rm -rf conftest*
afc31813 18633 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18634else
698dcdb6
VZ
18635 echo "configure: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 rm -rf conftest*
18638 cat > conftest.$ac_ext <<EOF
f79bd02d 18639#line 18640 "configure"
10f2d63a 18640#include "confdefs.h"
afc31813
VZ
18641
18642 #include <sys/time.h>
18643 #include <unistd.h>
698dcdb6
VZ
18644
18645int main() {
afc31813
VZ
18646
18647 struct timeval tv;
18648 gettimeofday(&tv);
698dcdb6
VZ
18649
18650; return 0; }
18651EOF
f79bd02d 18652if { (eval echo configure:18653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18653 rm -rf conftest*
afc31813 18654 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18655else
698dcdb6
VZ
18656 echo "configure: failed program was:" >&5
18657 cat conftest.$ac_ext >&5
18658 rm -rf conftest*
776862b4
VZ
18659
18660 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18661 wx_cv_func_gettimeofday_has_2_args=unknown
18662
698dcdb6 18663
10f2d63a 18664fi
698dcdb6
VZ
18665rm -f conftest*
18666
10f2d63a 18667fi
698dcdb6 18668rm -f conftest*
afc31813 18669 ac_ext=c
698dcdb6 18670# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18671ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18672ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18673ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18674cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18675
698dcdb6 18676
afc31813 18677fi
698dcdb6
VZ
18678
18679echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18680
afc31813 18681 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18682 cat >> confdefs.h <<\EOF
afc31813
VZ
18683#define WX_GETTIMEOFDAY_NO_TZ 1
18684EOF
18685
18686 fi
18687 fi
18688
698dcdb6 18689 cat >> confdefs.h <<\EOF
afc31813
VZ
18690#define wxUSE_TIMEDATE 1
18691EOF
18692
18693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18694fi
18695
698dcdb6 18696
b089607b
VZ
18697if test "$TOOLKIT" != "MSW"; then
18698
3a922bb4
RL
18699 if test "$wxUSE_SOCKETS" = "yes"; then
18700 echo $ac_n "checking for socket""... $ac_c" 1>&6
f79bd02d 18701echo "configure:18702: checking for socket" >&5
698dcdb6
VZ
18702if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18703 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18704else
698dcdb6 18705 cat > conftest.$ac_ext <<EOF
f79bd02d 18706#line 18707 "configure"
c63c7106
VZ
18707#include "confdefs.h"
18708/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18709 which can conflict with char socket(); below. */
c63c7106
VZ
18710#include <assert.h>
18711/* Override any gcc2 internal prototype to avoid an error. */
18712/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18713 builtin and then its argument prototype would still apply. */
18714char socket();
18715
18716int main() {
c63c7106
VZ
18717
18718/* The GNU C library defines this for functions which it implements
18719 to always fail with ENOSYS. Some functions are actually named
18720 something starting with __ and the normal name is an alias. */
18721#if defined (__stub_socket) || defined (__stub___socket)
18722choke me
18723#else
698dcdb6 18724socket();
c63c7106
VZ
18725#endif
18726
698dcdb6
VZ
18727; return 0; }
18728EOF
f79bd02d 18729if { (eval echo configure:18730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18730 rm -rf conftest*
18731 eval "ac_cv_func_socket=yes"
18732else
18733 echo "configure: failed program was:" >&5
18734 cat conftest.$ac_ext >&5
18735 rm -rf conftest*
18736 eval "ac_cv_func_socket=no"
18737fi
18738rm -f conftest*
18739fi
18740
18741if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18742 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18743 :
18744else
698dcdb6
VZ
18745 echo "$ac_t""no" 1>&6
18746echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
f79bd02d 18747echo "configure:18748: checking for socket in -lsocket" >&5
698dcdb6
VZ
18748ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18751else
698dcdb6 18752 ac_save_LIBS="$LIBS"
c63c7106 18753LIBS="-lsocket $LIBS"
698dcdb6 18754cat > conftest.$ac_ext <<EOF
f79bd02d 18755#line 18756 "configure"
c63c7106
VZ
18756#include "confdefs.h"
18757/* Override any gcc2 internal prototype to avoid an error. */
18758/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18759 builtin and then its argument prototype would still apply. */
18760char socket();
18761
18762int main() {
18763socket()
18764; return 0; }
18765EOF
f79bd02d 18766if { (eval echo configure:18767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18767 rm -rf conftest*
18768 eval "ac_cv_lib_$ac_lib_var=yes"
18769else
18770 echo "configure: failed program was:" >&5
18771 cat conftest.$ac_ext >&5
18772 rm -rf conftest*
18773 eval "ac_cv_lib_$ac_lib_var=no"
18774fi
18775rm -f conftest*
18776LIBS="$ac_save_LIBS"
18777
18778fi
18779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18780 echo "$ac_t""yes" 1>&6
c63c7106 18781 INET_LINK="$INET_LINK -lsocket"
c63c7106 18782else
698dcdb6 18783 echo "$ac_t""no" 1>&6
afc31813 18784
3a922bb4
RL
18785 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18786 wxUSE_SOCKETS=no
18787
698dcdb6 18788
6232543b 18789fi
b089607b 18790
3a922bb4 18791
1e487827 18792fi
afc31813 18793
3a922bb4 18794 fi
51a9faba 18795
3a922bb4
RL
18796
18797 if test "$wxUSE_SOCKETS" = "yes" ; then
18798 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
f79bd02d 18799echo "configure:18800: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18800if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18801 echo $ac_n "(cached) $ac_c" 1>&6
18802else
18803
3a922bb4
RL
18804
18805 ac_ext=C
698dcdb6 18806# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18807ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18808ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18809ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18810cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18811
698dcdb6 18812
3a922bb4 18813 cat > conftest.$ac_ext <<EOF
f79bd02d 18814#line 18815 "configure"
afc31813 18815#include "confdefs.h"
51a9faba 18816
3a922bb4
RL
18817 #include <sys/types.h>
18818 #include <sys/socket.h>
18819
698dcdb6 18820int main() {
51a9faba 18821
3a922bb4
RL
18822 socklen_t len;
18823 getsockname(0, 0, &len);
18824
698dcdb6
VZ
18825; return 0; }
18826EOF
f79bd02d 18827if { (eval echo configure:18828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18828 rm -rf conftest*
51a9faba 18829 wx_cv_type_getsockname3=socklen_t
afc31813 18830else
698dcdb6
VZ
18831 echo "configure: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 rm -rf conftest*
18834 cat > conftest.$ac_ext <<EOF
f79bd02d 18835#line 18836 "configure"
afc31813 18836#include "confdefs.h"
51a9faba 18837
3a922bb4
RL
18838 #include <sys/types.h>
18839 #include <sys/socket.h>
18840
698dcdb6 18841int main() {
51a9faba 18842
3a922bb4
RL
18843 size_t len;
18844 getsockname(0, 0, &len);
18845
698dcdb6
VZ
18846; return 0; }
18847EOF
f79bd02d 18848if { (eval echo configure:18849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18849 rm -rf conftest*
51a9faba 18850 wx_cv_type_getsockname3=size_t
afc31813 18851else
698dcdb6
VZ
18852 echo "configure: failed program was:" >&5
18853 cat conftest.$ac_ext >&5
18854 rm -rf conftest*
18855 cat > conftest.$ac_ext <<EOF
f79bd02d 18856#line 18857 "configure"
afc31813 18857#include "confdefs.h"
51a9faba 18858
3a922bb4
RL
18859 #include <sys/types.h>
18860 #include <sys/socket.h>
18861
698dcdb6 18862int main() {
51a9faba 18863
3a922bb4
RL
18864 int len;
18865 getsockname(0, 0, &len);
18866
698dcdb6
VZ
18867; return 0; }
18868EOF
f79bd02d 18869if { (eval echo configure:18870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18870 rm -rf conftest*
51a9faba 18871 wx_cv_type_getsockname3=int
afc31813 18872else
698dcdb6
VZ
18873 echo "configure: failed program was:" >&5
18874 cat conftest.$ac_ext >&5
18875 rm -rf conftest*
18876 wx_cv_type_getsockname3=unknown
3a922bb4 18877
afc31813 18878fi
698dcdb6 18879rm -f conftest*
3a922bb4 18880
afc31813 18881fi
698dcdb6 18882rm -f conftest*
3a922bb4 18883
afc31813 18884fi
698dcdb6 18885rm -f conftest*
51a9faba 18886
3a922bb4 18887 ac_ext=c
698dcdb6 18888# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18889ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18890ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18891ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18892cross_compiling=$ac_cv_prog_cc_cross
afc31813 18893
3a922bb4 18894
51a9faba 18895fi
698dcdb6
VZ
18896
18897echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18898
3a922bb4
RL
18899 if test "$wx_cv_type_getsockname3" = "unknown"; then
18900 wxUSE_SOCKETS=no
18901 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18902 else
18903 cat >> confdefs.h <<EOF
51a9faba
VZ
18904#define SOCKLEN_T $wx_cv_type_getsockname3
18905EOF
18906
3a922bb4 18907 fi
51a9faba
VZ
18908 fi
18909fi
afc31813 18910
51a9faba 18911if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18912 cat >> confdefs.h <<\EOF
afc31813
VZ
18913#define wxUSE_SOCKETS 1
18914EOF
18915
70f7a477 18916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18917fi
18918
698dcdb6 18919
dc3d889d
VZ
18920if test "$wxUSE_GUI" = "yes"; then
18921
156b2523
GD
18922 if test "$TOOLKIT" = "MAC"; then
18923 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18924 wxUSE_JOYSTICK=no
18925 fi
18926 if test "$TOOLKIT" = "MOTIF"; then
18927 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18928 wxUSE_JOYSTICK=no
f79bd02d
JS
18929 fi
18930 if test "$TOOLKIT" = "X11"; then
18931 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18932 wxUSE_JOYSTICK=no
156b2523
GD
18933 fi
18934
3a922bb4
RL
18935 if test "$TOOLKIT" != "MSW"; then
18936 if test "$wxUSE_JOYSTICK" = "yes"; then
18937 for ac_hdr in linux/joystick.h
10f2d63a 18938do
698dcdb6
VZ
18939ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18940echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 18941echo "configure:18942: checking for $ac_hdr" >&5
698dcdb6
VZ
18942if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18943 echo $ac_n "(cached) $ac_c" 1>&6
18944else
18945 cat > conftest.$ac_ext <<EOF
f79bd02d 18946#line 18947 "configure"
10f2d63a 18947#include "confdefs.h"
698dcdb6
VZ
18948#include <$ac_hdr>
18949EOF
18950ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 18951{ (eval echo configure:18952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18952ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18953if test -z "$ac_err"; then
18954 rm -rf conftest*
18955 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18956else
698dcdb6
VZ
18957 echo "$ac_err" >&5
18958 echo "configure: failed program was:" >&5
10f2d63a 18959 cat conftest.$ac_ext >&5
698dcdb6
VZ
18960 rm -rf conftest*
18961 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18962fi
698dcdb6 18963rm -f conftest*
10f2d63a 18964fi
698dcdb6
VZ
18965if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18966 echo "$ac_t""yes" 1>&6
18967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18968 cat >> confdefs.h <<EOF
18969#define $ac_tr_hdr 1
10f2d63a 18970EOF
698dcdb6
VZ
18971
18972else
18973 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18974fi
18975done
18976
3a922bb4
RL
18977 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18978 wxUSE_JOYSTICK=no
156b2523 18979 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18980 fi
18981 fi
18982 fi
b089607b 18983
3a922bb4
RL
18984 if test "$wxUSE_JOYSTICK" = "yes"; then
18985 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18986#define wxUSE_JOYSTICK 1
18987EOF
18988
3a922bb4
RL
18989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18990 fi
dc3d889d
VZ
18991fi
18992
698dcdb6 18993
b089607b
VZ
18994if test "$TOOLKIT" != "MSW"; then
18995
3a922bb4
RL
18996 HAVE_DL_FUNCS=0
18997 HAVE_SHL_FUNCS=0
0b9ab0bd 18998 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18999 if test "$USE_DARWIN" = 1; then
19000 HAVE_DL_FUNCS=1
19001 else
19002 for ac_func in dlopen
10f2d63a 19003do
698dcdb6 19004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 19005echo "configure:19006: checking for $ac_func" >&5
698dcdb6
VZ
19006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19007 echo $ac_n "(cached) $ac_c" 1>&6
19008else
19009 cat > conftest.$ac_ext <<EOF
f79bd02d 19010#line 19011 "configure"
10f2d63a
VZ
19011#include "confdefs.h"
19012/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19013 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19014#include <assert.h>
19015/* Override any gcc2 internal prototype to avoid an error. */
19016/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19017 builtin and then its argument prototype would still apply. */
19018char $ac_func();
19019
19020int main() {
10f2d63a
VZ
19021
19022/* The GNU C library defines this for functions which it implements
19023 to always fail with ENOSYS. Some functions are actually named
19024 something starting with __ and the normal name is an alias. */
19025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19026choke me
19027#else
698dcdb6 19028$ac_func();
10f2d63a
VZ
19029#endif
19030
698dcdb6
VZ
19031; return 0; }
19032EOF
f79bd02d 19033if { (eval echo configure:19034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19034 rm -rf conftest*
19035 eval "ac_cv_func_$ac_func=yes"
19036else
19037 echo "configure: failed program was:" >&5
19038 cat conftest.$ac_ext >&5
19039 rm -rf conftest*
19040 eval "ac_cv_func_$ac_func=no"
19041fi
19042rm -f conftest*
19043fi
19044
19045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19046 echo "$ac_t""yes" 1>&6
19047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19048 cat >> confdefs.h <<EOF
19049#define $ac_tr_func 1
19050EOF
19051
3a922bb4 19052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19053#define HAVE_DLOPEN 1
19054EOF
19055
3a922bb4
RL
19056 HAVE_DL_FUNCS=1
19057
10f2d63a 19058else
698dcdb6
VZ
19059 echo "$ac_t""no" 1>&6
19060echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
f79bd02d 19061echo "configure:19062: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19062ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19063if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19064 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19065else
698dcdb6 19066 ac_save_LIBS="$LIBS"
10f2d63a 19067LIBS="-ldl $LIBS"
698dcdb6 19068cat > conftest.$ac_ext <<EOF
f79bd02d 19069#line 19070 "configure"
10f2d63a
VZ
19070#include "confdefs.h"
19071/* Override any gcc2 internal prototype to avoid an error. */
19072/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19073 builtin and then its argument prototype would still apply. */
19074char dlopen();
19075
19076int main() {
19077dlopen()
19078; return 0; }
19079EOF
f79bd02d 19080if { (eval echo configure:19081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19081 rm -rf conftest*
19082 eval "ac_cv_lib_$ac_lib_var=yes"
19083else
19084 echo "configure: failed program was:" >&5
19085 cat conftest.$ac_ext >&5
19086 rm -rf conftest*
19087 eval "ac_cv_lib_$ac_lib_var=no"
19088fi
19089rm -f conftest*
19090LIBS="$ac_save_LIBS"
19091
19092fi
19093if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19094 echo "$ac_t""yes" 1>&6
19095
3a922bb4 19096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19097#define HAVE_DLOPEN 1
19098EOF
19099
3a922bb4 19100 HAVE_DL_FUNCS=1
3d63bc3a 19101 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19102
10f2d63a 19103else
698dcdb6 19104 echo "$ac_t""no" 1>&6
10f2d63a 19105
3a922bb4 19106 for ac_func in shl_load
10f2d63a 19107do
698dcdb6 19108echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 19109echo "configure:19110: checking for $ac_func" >&5
698dcdb6
VZ
19110if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19111 echo $ac_n "(cached) $ac_c" 1>&6
19112else
19113 cat > conftest.$ac_ext <<EOF
f79bd02d 19114#line 19115 "configure"
10f2d63a
VZ
19115#include "confdefs.h"
19116/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19117 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19118#include <assert.h>
19119/* Override any gcc2 internal prototype to avoid an error. */
19120/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19121 builtin and then its argument prototype would still apply. */
19122char $ac_func();
19123
19124int main() {
10f2d63a
VZ
19125
19126/* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
19129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19130choke me
19131#else
698dcdb6 19132$ac_func();
10f2d63a
VZ
19133#endif
19134
698dcdb6
VZ
19135; return 0; }
19136EOF
f79bd02d 19137if { (eval echo configure:19138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19138 rm -rf conftest*
19139 eval "ac_cv_func_$ac_func=yes"
19140else
19141 echo "configure: failed program was:" >&5
19142 cat conftest.$ac_ext >&5
19143 rm -rf conftest*
19144 eval "ac_cv_func_$ac_func=no"
19145fi
19146rm -f conftest*
19147fi
19148
19149if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19150 echo "$ac_t""yes" 1>&6
19151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19152 cat >> confdefs.h <<EOF
19153#define $ac_tr_func 1
19154EOF
19155
3a922bb4 19156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19157#define HAVE_SHL_LOAD 1
19158EOF
19159
3a922bb4
RL
19160 HAVE_SHL_FUNCS=1
19161
10f2d63a 19162else
698dcdb6
VZ
19163 echo "$ac_t""no" 1>&6
19164echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
f79bd02d 19165echo "configure:19166: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19166ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19169else
698dcdb6 19170 ac_save_LIBS="$LIBS"
f6bcfd97 19171LIBS="-lshl_load $LIBS"
698dcdb6 19172cat > conftest.$ac_ext <<EOF
f79bd02d 19173#line 19174 "configure"
f6bcfd97
BP
19174#include "confdefs.h"
19175/* Override any gcc2 internal prototype to avoid an error. */
19176/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19177 builtin and then its argument prototype would still apply. */
19178char dld();
19179
19180int main() {
19181dld()
19182; return 0; }
19183EOF
f79bd02d 19184if { (eval echo configure:19185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19185 rm -rf conftest*
19186 eval "ac_cv_lib_$ac_lib_var=yes"
19187else
19188 echo "configure: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 rm -rf conftest*
19191 eval "ac_cv_lib_$ac_lib_var=no"
19192fi
19193rm -f conftest*
19194LIBS="$ac_save_LIBS"
f6bcfd97 19195
698dcdb6
VZ
19196fi
19197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19198 echo "$ac_t""yes" 1>&6
19199
3a922bb4 19200 HAVE_SHL_FUNCS=1
3d63bc3a 19201 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19202
698dcdb6
VZ
19203else
19204 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19205fi
19206
3a922bb4 19207
10f2d63a
VZ
19208fi
19209done
19210
3a922bb4 19211
10f2d63a
VZ
19212fi
19213
3a922bb4 19214
10f2d63a
VZ
19215fi
19216done
19217
1e487827 19218
3a922bb4
RL
19219 if test "$HAVE_DL_FUNCS" = 1; then
19220 for ac_func in dlerror
f6bcfd97 19221do
698dcdb6 19222echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f79bd02d 19223echo "configure:19224: checking for $ac_func" >&5
698dcdb6
VZ
19224if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19225 echo $ac_n "(cached) $ac_c" 1>&6
19226else
19227 cat > conftest.$ac_ext <<EOF
f79bd02d 19228#line 19229 "configure"
f6bcfd97
BP
19229#include "confdefs.h"
19230/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19231 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19232#include <assert.h>
19233/* Override any gcc2 internal prototype to avoid an error. */
19234/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19235 builtin and then its argument prototype would still apply. */
19236char $ac_func();
19237
19238int main() {
f6bcfd97
BP
19239
19240/* The GNU C library defines this for functions which it implements
19241 to always fail with ENOSYS. Some functions are actually named
19242 something starting with __ and the normal name is an alias. */
19243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19244choke me
19245#else
698dcdb6 19246$ac_func();
f6bcfd97
BP
19247#endif
19248
698dcdb6
VZ
19249; return 0; }
19250EOF
f79bd02d 19251if { (eval echo configure:19252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19252 rm -rf conftest*
19253 eval "ac_cv_func_$ac_func=yes"
19254else
19255 echo "configure: failed program was:" >&5
19256 cat conftest.$ac_ext >&5
19257 rm -rf conftest*
19258 eval "ac_cv_func_$ac_func=no"
19259fi
19260rm -f conftest*
19261fi
19262
19263if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19264 echo "$ac_t""yes" 1>&6
19265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19266 cat >> confdefs.h <<EOF
19267#define $ac_tr_func 1
19268EOF
19269 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19270#define HAVE_DLERROR 1
19271EOF
19272
19273else
698dcdb6
VZ
19274 echo "$ac_t""no" 1>&6
19275echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
f79bd02d 19276echo "configure:19277: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19277ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19278if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19279 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19280else
698dcdb6 19281 ac_save_LIBS="$LIBS"
f6bcfd97 19282LIBS="-ldl $LIBS"
698dcdb6 19283cat > conftest.$ac_ext <<EOF
f79bd02d 19284#line 19285 "configure"
f6bcfd97
BP
19285#include "confdefs.h"
19286/* Override any gcc2 internal prototype to avoid an error. */
19287/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19288 builtin and then its argument prototype would still apply. */
19289char dlerror();
19290
19291int main() {
19292dlerror()
19293; return 0; }
19294EOF
f79bd02d 19295if { (eval echo configure:19296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19296 rm -rf conftest*
19297 eval "ac_cv_lib_$ac_lib_var=yes"
19298else
19299 echo "configure: failed program was:" >&5
19300 cat conftest.$ac_ext >&5
19301 rm -rf conftest*
19302 eval "ac_cv_lib_$ac_lib_var=no"
19303fi
19304rm -f conftest*
19305LIBS="$ac_save_LIBS"
19306
19307fi
19308if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19309 echo "$ac_t""yes" 1>&6
19310 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19311#define HAVE_DLERROR 1
19312EOF
19313
698dcdb6
VZ
19314else
19315 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19316fi
19317
19318fi
19319done
19320
3a922bb4
RL
19321 fi
19322 fi
f6bcfd97 19323
3a922bb4
RL
19324 if test "$HAVE_DL_FUNCS" = 0; then
19325 if test "$HAVE_SHL_FUNCS" = 0; then
19326 if test "$USE_UNIX" = 1; then
19327 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19328 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19329 wxUSE_DYNLIB_CLASS=no
19330 else
19331 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19332 fi
19333 fi
10f2d63a
VZ
19334 fi
19335 fi
19336fi
19337
0b9ab0bd
RL
19338if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19339 cat >> confdefs.h <<\EOF
19340#define wxUSE_DYNAMIC_LOADER 1
19341EOF
19342
19343elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19344 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19345#define wxUSE_DYNLIB_CLASS 1
19346EOF
19347
19348fi
19349
698dcdb6 19350
1e6feb95
VZ
19351if test "$wxUSE_FONTMAP" = "yes" ; then
19352 cat >> confdefs.h <<\EOF
19353#define wxUSE_FONTMAP 1
19354EOF
19355
19356fi
19357
10f2d63a 19358if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19359 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19360#define wxUSE_UNICODE 1
19361EOF
19362
a72a4bfa
VS
19363
19364 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19365 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
f79bd02d 19366echo "configure:19367: checking for main in -lunicows" >&5
a72a4bfa
VS
19367ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19369 echo $ac_n "(cached) $ac_c" 1>&6
19370else
19371 ac_save_LIBS="$LIBS"
19372LIBS="-lunicows $LIBS"
19373cat > conftest.$ac_ext <<EOF
f79bd02d 19374#line 19375 "configure"
a72a4bfa
VS
19375#include "confdefs.h"
19376
19377int main() {
19378main()
19379; return 0; }
19380EOF
f79bd02d 19381if { (eval echo configure:19382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19382 rm -rf conftest*
19383 eval "ac_cv_lib_$ac_lib_var=yes"
19384else
19385 echo "configure: failed program was:" >&5
19386 cat conftest.$ac_ext >&5
19387 rm -rf conftest*
19388 eval "ac_cv_lib_$ac_lib_var=no"
19389fi
19390rm -f conftest*
19391LIBS="$ac_save_LIBS"
19392
19393fi
19394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19395 echo "$ac_t""yes" 1>&6
19396
19397 cat >> confdefs.h <<\EOF
19398#define wxUSE_UNICODE_MSLU 1
19399EOF
19400
19401
19402else
19403 echo "$ac_t""no" 1>&6
19404
19405 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19406 Applications will only run on Windows NT/2000/XP!" 1>&2
19407 wxUSE_UNICODE_MSLU=no
19408
19409fi
19410
19411 fi
10f2d63a
VZ
19412fi
19413
10f2d63a 19414if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19415 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19416#define wxUSE_EXPERIMENTAL_PRINTF 1
19417EOF
19418
19419fi
19420
698dcdb6 19421
698dcdb6 19422
10f2d63a
VZ
19423IODBC_C_SRC=""
19424if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19425 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19426#define wxUSE_ODBC 1
19427EOF
19428
19429 WXODBCFLAG="-D_IODBC_"
19430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19431fi
19432
698dcdb6 19433
10f2d63a 19434if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19435 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19436#define wxUSE_POSTSCRIPT 1
19437EOF
19438
19439fi
19440
698dcdb6 19441cat >> confdefs.h <<\EOF
10f2d63a
VZ
19442#define wxUSE_AFM_FOR_POSTSCRIPT 1
19443EOF
19444
698dcdb6
VZ
19445
19446cat >> confdefs.h <<\EOF
10f2d63a
VZ
19447#define wxUSE_NORMALIZED_PS_FONTS 1
19448EOF
19449
698dcdb6
VZ
19450
19451
10f2d63a 19452if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19453 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19454#define wxUSE_CONSTRAINTS 1
19455EOF
19456
19457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19458fi
19459
19460if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19461 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19462 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
19463 wxUSE_MDI_ARCHITECTURE=no
19464 fi
19465
19466 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19467 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19468#define wxUSE_MDI_ARCHITECTURE 1
19469EOF
19470
fc26f4ab
RL
19471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19472 fi
10f2d63a
VZ
19473fi
19474
19475if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19477#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19478EOF
19479
19480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19481 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19483 fi
19484fi
19485
19486if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19487 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19488#define wxUSE_HELP 1
19489EOF
19490
19491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19492
77e13408 19493 if test "$wxUSE_MSW" = 1; then
031d8228 19494 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
19495 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19496echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
f79bd02d 19497echo "configure:19498: checking for htmlhelp.h" >&5
29fd3c0c
VS
19498if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19499 echo $ac_n "(cached) $ac_c" 1>&6
19500else
19501 cat > conftest.$ac_ext <<EOF
f79bd02d 19502#line 19503 "configure"
29fd3c0c
VS
19503#include "confdefs.h"
19504#include <htmlhelp.h>
19505EOF
19506ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 19507{ (eval echo configure:19508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
19508ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19509if test -z "$ac_err"; then
19510 rm -rf conftest*
19511 eval "ac_cv_header_$ac_safe=yes"
19512else
19513 echo "$ac_err" >&5
19514 echo "configure: failed program was:" >&5
19515 cat conftest.$ac_ext >&5
19516 rm -rf conftest*
19517 eval "ac_cv_header_$ac_safe=no"
19518fi
19519rm -f conftest*
19520fi
19521if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19522 echo "$ac_t""yes" 1>&6
19523
19524 cat >> confdefs.h <<\EOF
19525#define wxUSE_MS_HTML_HELP 1
19526EOF
19527
19528
19529else
19530 echo "$ac_t""no" 1>&6
19531
fc26f4ab 19532 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
19533 wxUSE_MS_HTML_HELP=no
19534
19535fi
19536
3e44f09d 19537 fi
3379ed37 19538 fi
031d8228
VS
19539
19540 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19541 if test "$wxUSE_HTML" = "yes"; then
19542 cat >> confdefs.h <<\EOF
19543#define wxUSE_WXHTML_HELP 1
19544EOF
19545
19546 else
19547 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19548 wxUSE_WXHTML_HELP=no
19549 fi
19550 fi
10f2d63a
VZ
19551fi
19552
19553if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19554 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19555 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19556 else
698dcdb6 19557 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19558#define wxUSE_PRINTING_ARCHITECTURE 1
19559EOF
19560
19561 fi
19562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19563fi
19564
19565if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19567#define wxUSE_PROLOGIO 1
19568EOF
19569
19570fi
19571
19572if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 19573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19574#define wxUSE_RESOURCES 1
19575EOF
19576
3379ed37 19577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
19578fi
19579
19580if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19582#define wxUSE_X_RESOURCES 1
19583EOF
19584
19585fi
19586
698dcdb6 19587
77e13408
RL
19588if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19589 -o "$wxUSE_CLIPBOARD" = "yes" \
19590 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19591 for ac_hdr in ole2.h
10f2d63a 19592do
698dcdb6
VZ
19593ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f79bd02d 19595echo "configure:19596: checking for $ac_hdr" >&5
698dcdb6
VZ
19596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19597 echo $ac_n "(cached) $ac_c" 1>&6
19598else
19599 cat > conftest.$ac_ext <<EOF
f79bd02d 19600#line 19601 "configure"
10f2d63a 19601#include "confdefs.h"
698dcdb6
VZ
19602#include <$ac_hdr>
19603EOF
19604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f79bd02d 19605{ (eval echo configure:19606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19607if test -z "$ac_err"; then
19608 rm -rf conftest*
19609 eval "ac_cv_header_$ac_safe=yes"
1e487827 19610else
698dcdb6
VZ
19611 echo "$ac_err" >&5
19612 echo "configure: failed program was:" >&5
10f2d63a 19613 cat conftest.$ac_ext >&5
698dcdb6
VZ
19614 rm -rf conftest*
19615 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19616fi
698dcdb6 19617rm -f conftest*
10f2d63a 19618fi
698dcdb6
VZ
19619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19620 echo "$ac_t""yes" 1>&6
19621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19622 cat >> confdefs.h <<EOF
19623#define $ac_tr_hdr 1
10f2d63a 19624EOF
698dcdb6
VZ
19625
19626else
19627 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19628fi
19629done
19630
698dcdb6 19631
2b9bdf71
VZ
19632 if test "$ac_cv_header_ole2_h" = "yes" ; then
19633 if test "$GCC" = yes ; then
19634 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19635 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19636 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19637 cat >> confdefs.h <<\EOF
4f11a343
VS
19638#define wxUSE_OLE 1
19639EOF
19640
b64f0a5f 19641
2b9bdf71
VZ
19642 fi
19643
19644 cat >> confdefs.h <<\EOF
19645#define wxUSE_DATAOBJ 1
19646EOF
19647
19648 else
19649 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19650
19651 wxUSE_CLIPBOARD=no
19652 wxUSE_DRAG_AND_DROP=no
19653 wxUSE_DATAOBJ=no
19654 fi
19655
77e13408 19656 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19657 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19658#define wxUSE_METAFILE 1
19659EOF
19660
2b9bdf71
VZ
19661
19662 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19663#define wxUSE_ENH_METAFILE 1
19664EOF
19665
2b9bdf71
VZ
19666 fi
19667fi
19668
19669if test "$wxUSE_IPC" = "yes"; then
19670 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19671 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19672 fi
19673
19674 cat >> confdefs.h <<\EOF
19675#define wxUSE_IPC 1
19676EOF
19677
19678fi
19679
19680if test "$wxUSE_CLIPBOARD" = "yes"; then
19681 cat >> confdefs.h <<\EOF
19682#define wxUSE_CLIPBOARD 1
19683EOF
19684
673f4220 19685
e33ef661 19686 cat >> confdefs.h <<\EOF
673f4220
VZ
19687#define wxUSE_DATAOBJ 1
19688EOF
19689
2b9bdf71
VZ
19690fi
19691
19692if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19693 if test "$wxUSE_GTK" = 1; then
19694 if test "$WXGTK12" != 1; then
156b2523 19695 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19696 wxUSE_DRAG_AND_DROP=no
19697 fi
19698 fi
19699
2b9bdf71 19700 if test "$wxUSE_MOTIF" = 1; then
156b2523 19701 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19702 wxUSE_DRAG_AND_DROP=no
19703 fi
19704
f79bd02d
JS
19705 if test "$wxUSE_X11" = 1; then
19706 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19707 wxUSE_DRAG_AND_DROP=no
19708 fi
19709
10f2d63a 19710 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19711 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19712#define wxUSE_DRAG_AND_DROP 1
19713EOF
19714
19715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19716 fi
19717
19718fi
19719
19720if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19721 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19722#define wxUSE_SPLINES 1
19723EOF
19724
19725fi
19726
698dcdb6 19727
1e6feb95
VZ
19728USES_CONTROLS=0
19729if test "$wxUSE_CONTROLS" = "yes"; then
19730 USES_CONTROLS=1
19731fi
19732
10f2d63a 19733if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19734 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19735#define wxUSE_ACCEL 1
19736EOF
19737
1e6feb95
VZ
19738 USES_CONTROLS=1
19739fi
19740
19741if test "$wxUSE_BUTTON" = "yes"; then
19742 cat >> confdefs.h <<\EOF
19743#define wxUSE_BUTTON 1
19744EOF
19745
19746 USES_CONTROLS=1
19747fi
19748
19749if test "$wxUSE_BMPBUTTON" = "yes"; then
19750 cat >> confdefs.h <<\EOF
19751#define wxUSE_BMPBUTTON 1
19752EOF
19753
19754 USES_CONTROLS=1
19755fi
19756
19757if test "$wxUSE_CALCTRL" = "yes"; then
19758 cat >> confdefs.h <<\EOF
19759#define wxUSE_CALENDARCTRL 1
19760EOF
19761
19762 USES_CONTROLS=1
19763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19764fi
19765
19766if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19767 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19768#define wxUSE_CARET 1
19769EOF
19770
1e6feb95 19771 USES_CONTROLS=1
10f2d63a
VZ
19772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19773fi
19774
19775if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19776 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19777#define wxUSE_COMBOBOX 1
19778EOF
19779
1e6feb95 19780 USES_CONTROLS=1
10f2d63a
VZ
19781fi
19782
19783if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19784 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19785#define wxUSE_CHOICE 1
19786EOF
19787
1e6feb95 19788 USES_CONTROLS=1
10f2d63a
VZ
19789fi
19790
19791if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19792 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19793#define wxUSE_CHECKBOX 1
19794EOF
19795
1e6feb95 19796 USES_CONTROLS=1
10f2d63a
VZ
19797fi
19798
19799if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19800 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19801#define wxUSE_CHECKLISTBOX 1
19802EOF
19803
1e6feb95 19804 USES_CONTROLS=1
10f2d63a
VZ
19805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19806fi
19807
19808if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19810#define wxUSE_GAUGE 1
19811EOF
19812
1e6feb95 19813 USES_CONTROLS=1
10f2d63a
VZ
19814fi
19815
d6a55c4b
VZ
19816if test "$wxUSE_NEW_GRID" = "yes"; then
19817 wxUSE_GRID="yes"
698dcdb6 19818 cat >> confdefs.h <<\EOF
d6a55c4b 19819#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19820EOF
19821
1e6feb95 19822 USES_CONTROLS=1
d6a55c4b 19823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19824fi
19825
d6a55c4b 19826if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19827 cat >> confdefs.h <<\EOF
d6a55c4b 19828#define wxUSE_GRID 1
10f2d63a
VZ
19829EOF
19830
1e6feb95 19831 USES_CONTROLS=1
d6a55c4b 19832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19833fi
19834
19835if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19836 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19837#define wxUSE_IMAGLIST 1
19838EOF
19839
19840fi
19841
19842if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19844#define wxUSE_LISTBOX 1
19845EOF
19846
1e6feb95 19847 USES_CONTROLS=1
10f2d63a
VZ
19848fi
19849
19850if test "$wxUSE_LISTCTRL" = "yes"; then
19851 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19852 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19853#define wxUSE_LISTCTRL 1
19854EOF
19855
1e6feb95 19856 USES_CONTROLS=1
10f2d63a
VZ
19857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19858 else
698dcdb6 19859 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19860 fi
19861fi
19862
19863if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19864 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19865#define wxUSE_NOTEBOOK 1
19866EOF
19867
1e6feb95 19868 USES_CONTROLS=1
10f2d63a
VZ
19869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19870fi
19871
24176f2c
GD
19872if test "$wxUSE_PROPSHEET" = "yes"; then
19873 cat >> confdefs.h <<\EOF
19874#define wxUSE_PROPSHEET 1
19875EOF
19876
19877 USES_CONTROLS=1
19878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19879fi
19880
10f2d63a 19881if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19882 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19883#define wxUSE_RADIOBOX 1
19884EOF
19885
1e6feb95 19886 USES_CONTROLS=1
10f2d63a
VZ
19887fi
19888
19889if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19890 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19891#define wxUSE_RADIOBTN 1
19892EOF
19893
1e6feb95 19894 USES_CONTROLS=1
10f2d63a
VZ
19895fi
19896
19897if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19898 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19899#define wxUSE_SASH 1
19900EOF
19901
19902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19903fi
19904
19905if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19906 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19907#define wxUSE_SCROLLBAR 1
19908EOF
19909
1e6feb95 19910 USES_CONTROLS=1
741a9306 19911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19912fi
19913
19914if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19915 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19916#define wxUSE_SLIDER 1
19917EOF
19918
1e6feb95 19919 USES_CONTROLS=1
10f2d63a
VZ
19920fi
19921
19922if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19924#define wxUSE_SPINBTN 1
19925EOF
19926
1e6feb95 19927 USES_CONTROLS=1
10f2d63a
VZ
19928fi
19929
56cfaa52 19930if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19931 cat >> confdefs.h <<\EOF
56cfaa52
RR
19932#define wxUSE_SPINCTRL 1
19933EOF
19934
1e6feb95 19935 USES_CONTROLS=1
56cfaa52
RR
19936fi
19937
10f2d63a 19938if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19939 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19940#define wxUSE_SPLITTER 1
19941EOF
19942
19943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19944fi
19945
19946if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19947 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19948#define wxUSE_STATBMP 1
19949EOF
19950
1e6feb95 19951 USES_CONTROLS=1
10f2d63a
VZ
19952fi
19953
19954if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19955 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19956#define wxUSE_STATBOX 1
19957EOF
19958
1e6feb95
VZ
19959 USES_CONTROLS=1
19960fi
19961
19962if test "$wxUSE_STATTEXT" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_STATTEXT 1
19965EOF
19966
19967 USES_CONTROLS=1
10f2d63a
VZ
19968fi
19969
19970if test "$wxUSE_STATLINE" = "yes"; then
19971 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19972 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19973 else
698dcdb6 19974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19975#define wxUSE_STATLINE 1
19976EOF
19977
1e6feb95 19978 USES_CONTROLS=1
10f2d63a
VZ
19979 fi
19980fi
19981
19982if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19984#define wxUSE_STATUSBAR 1
19985EOF
19986
1e6feb95 19987 USES_CONTROLS=1
698dcdb6 19988
2286341c 19989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19990fi
19991
19992if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19994#define wxUSE_TAB_DIALOG 1
19995EOF
19996
19997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19998fi
19999
1e6feb95
VZ
20000if test "$wxUSE_TEXTCTRL" = "yes"; then
20001 cat >> confdefs.h <<\EOF
20002#define wxUSE_TEXTCTRL 1
20003EOF
20004
20005 USES_CONTROLS=1
20006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20007fi
20008
1db8dc4a 20009if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20010 if test "$wxUSE_MAC" = 1; then
20011 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20012 wxUSE_TOGGLEBTN=no
20013 fi
20014 if test "$wxUSE_UNIVERSAL" = "yes"; then
20015 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
20016 wxUSE_TOGGLEBTN=no
20017 fi
20018
20019 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20020 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20021#define wxUSE_TOGGLEBTN 1
20022EOF
20023
1e6feb95 20024 USES_CONTROLS=1
a45d7ab7 20025 fi
1db8dc4a
VZ
20026fi
20027
360d6699 20028if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20029 cat >> confdefs.h <<\EOF
360d6699
VZ
20030#define wxUSE_TOOLBAR_SIMPLE 1
20031EOF
20032
20033 wxUSE_TOOLBAR="yes"
1e6feb95 20034 USES_CONTROLS=1
360d6699
VZ
20035fi
20036
10f2d63a 20037if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20038 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20039#define wxUSE_TOOLBAR 1
20040EOF
20041
1e6feb95 20042 USES_CONTROLS=1
698dcdb6 20043
360d6699
VZ
20044 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20045 wxUSE_TOOLBAR_NATIVE="yes"
20046 fi
20047
1e6feb95
VZ
20048 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20049 cat >> confdefs.h <<\EOF
360d6699
VZ
20050#define wxUSE_TOOLBAR_NATIVE 1
20051EOF
20052
1e6feb95
VZ
20053 USES_CONTROLS=1
20054 fi
20055
20056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20057fi
20058
10f2d63a
VZ
20059if test "$wxUSE_TOOLTIPS" = "yes"; then
20060 if test "$wxUSE_MOTIF" = 1; then
156b2523 20061 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20062 else
20063 if test "$wxUSE_WINE" = 1; then
156b2523 20064 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20065 else
69d27ff7 20066 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 20067 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
20068 else
20069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20070#define wxUSE_TOOLTIPS 1
20071EOF
20072
69d27ff7 20073 fi
10f2d63a
VZ
20074 fi
20075 fi
20076fi
20077
20078if test "$wxUSE_TREECTRL" = "yes"; then
20079 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20081#define wxUSE_TREECTRL 1
20082EOF
20083
1e6feb95 20084 USES_CONTROLS=1
10f2d63a
VZ
20085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20086 else
698dcdb6 20087 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20088 fi
20089fi
20090
9f41d601 20091if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20092 if test "$wxUSE_MAC" = 1; then
156b2523 20093 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20094 else
485cf710
VZ
20095 if test "$wxUSE_MOTIF" = 1; then
20096 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20097 else
20098 cat >> confdefs.h <<\EOF
9f41d601
RR
20099#define wxUSE_POPUPWIN 1
20100EOF
20101
9926e4a4 20102
485cf710
VZ
20103 USES_CONTROLS=1
20104 fi
6abe4b65 20105 fi
9f41d601
RR
20106fi
20107
dd964dcc
VZ
20108if test "$wxUSE_TIPWINDOW" = "yes"; then
20109 cat >> confdefs.h <<\EOF
20110#define wxUSE_TIPWINDOW 1
20111EOF
20112
20113fi
20114
1e6feb95
VZ
20115if test "$USES_CONTROLS" = 1; then
20116 cat >> confdefs.h <<\EOF
20117#define wxUSE_CONTROLS 1
10f2d63a
VZ
20118EOF
20119
10f2d63a
VZ
20120fi
20121
1e6feb95 20122
24176f2c
GD
20123if test "$wxUSE_TREELAYOUT" = "yes"; then
20124 cat >> confdefs.h <<\EOF
20125#define wxUSE_TREELAYOUT 1
20126EOF
20127
20128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20129fi
1e6feb95 20130
24fd6d87
VZ
20131if test "$wxUSE_DRAGIMAGE" = "yes"; then
20132 cat >> confdefs.h <<\EOF
20133#define wxUSE_DRAGIMAGE 1
20134EOF
20135
20136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20137fi
20138
1e6feb95 20139if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20140 cat >> confdefs.h <<\EOF
1e6feb95 20141#define wxUSE_MENUS 1
10f2d63a
VZ
20142EOF
20143
1e6feb95 20144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20145fi
20146
1e6feb95
VZ
20147if test "$wxUSE_METAFILE" = "yes"; then
20148 cat >> confdefs.h <<\EOF
20149#define wxUSE_METAFILE 1
10f2d63a
VZ
20150EOF
20151
10f2d63a
VZ
20152fi
20153
1e6feb95
VZ
20154if test "$wxUSE_MIMETYPE" = "yes"; then
20155 cat >> confdefs.h <<\EOF
20156#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20157EOF
20158
10f2d63a
VZ
20159fi
20160
3e44f09d
VZ
20161if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20162 cat >> confdefs.h <<\EOF
20163#define wxUSE_SYSTEM_OPTIONS 1
20164EOF
20165
20166fi
20167
4cdb0ab0 20168if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20169 if test "$wxUSE_SOCKETS" != "yes"; then
20170 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20171 wxUSE_PROTOCOL=no
20172 fi
20173
20174 if test "$wxUSE_PROTOCOL" = "yes"; then
20175 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20176#define wxUSE_PROTOCOL 1
20177EOF
20178
20179
3954f9ca
VS
20180 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20181 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20182#define wxUSE_PROTOCOL_HTTP 1
20183EOF
20184
3954f9ca
VS
20185 fi
20186 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20187 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20188#define wxUSE_PROTOCOL_FTP 1
20189EOF
20190
3954f9ca
VS
20191 fi
20192 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194#define wxUSE_PROTOCOL_FILE 1
20195EOF
20196
20197 fi
4cdb0ab0 20198 fi
3954f9ca
VS
20199fi
20200
20201if test "$wxUSE_URL" = "yes"; then
20202 if test "$wxUSE_PROTOCOL" != "yes"; then
20203 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20204 wxUSE_URL=no
20205 fi
20206 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20207 cat >> confdefs.h <<\EOF
3954f9ca 20208#define wxUSE_URL 1
4cdb0ab0
VS
20209EOF
20210
20211 fi
20212fi
20213
10f2d63a 20214if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20216#define wxUSE_MINIFRAME 1
20217EOF
20218
20219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20220fi
20221
20222if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20224#define wxUSE_HTML 1
20225EOF
20226
20227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20228fi
20229
20230if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20231 cat >> confdefs.h <<\EOF
1e487827
VS
20232#define wxUSE_VALIDATORS 1
20233EOF
703e0a69 20234
698dcdb6
VZ
20235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20236fi
20237
edae8572
VZ
20238if test "$wxUSE_PALETTE" = "yes" ; then
20239 cat >> confdefs.h <<\EOF
20240#define wxUSE_PALETTE 1
20241EOF
20242
20243fi
20244
698dcdb6
VZ
20245if test "$wxUSE_IMAGE" = "yes" ; then
20246 cat >> confdefs.h <<\EOF
20247#define wxUSE_IMAGE 1
20248EOF
20249
20250fi
20251
20252if test "$wxUSE_GIF" = "yes" ; then
20253 cat >> confdefs.h <<\EOF
20254#define wxUSE_GIF 1
20255EOF
20256
20257fi
20258
20259if test "$wxUSE_PCX" = "yes" ; then
20260 cat >> confdefs.h <<\EOF
20261#define wxUSE_PCX 1
20262EOF
20263
20264fi
20265
4b6b4dfc
RR
20266if test "$wxUSE_IFF" = "yes" ; then
20267 cat >> confdefs.h <<\EOF
20268#define wxUSE_IFF 1
20269EOF
20270
20271fi
20272
698dcdb6
VZ
20273if test "$wxUSE_PNM" = "yes" ; then
20274 cat >> confdefs.h <<\EOF
20275#define wxUSE_PNM 1
20276EOF
20277
20278fi
20279
20280if test "$wxUSE_XPM" = "yes" ; then
20281 cat >> confdefs.h <<\EOF
20282#define wxUSE_XPM 1
20283EOF
20284
20285fi
20286
658974ae
VS
20287if test "$wxUSE_ICO_CUR" = "yes" ; then
20288 cat >> confdefs.h <<\EOF
20289#define wxUSE_ICO_CUR 1
20290EOF
20291
20292fi
20293
a72a4bfa
VS
20294if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20295 LIBS=" -lunicows $LIBS"
20296fi
20297
698dcdb6 20298
1e6feb95
VZ
20299if test "$wxUSE_CHOICEDLG" = "yes"; then
20300 cat >> confdefs.h <<\EOF
20301#define wxUSE_CHOICEDLG 1
20302EOF
20303
20304fi
20305
20306if test "$wxUSE_COLOURDLG" = "yes"; then
20307 cat >> confdefs.h <<\EOF
20308#define wxUSE_COLOURDLG 1
20309EOF
20310
20311fi
20312
20313if test "$wxUSE_FILEDLG" = "yes"; then
20314 cat >> confdefs.h <<\EOF
20315#define wxUSE_FILEDLG 1
20316EOF
20317
20318fi
20319
8db37e06
VZ
20320if test "$wxUSE_FINDREPLDLG" = "yes"; then
20321 cat >> confdefs.h <<\EOF
20322#define wxUSE_FINDREPLDLG 1
20323EOF
20324
20325fi
20326
1e6feb95
VZ
20327if test "$wxUSE_FONTDLG" = "yes"; then
20328 cat >> confdefs.h <<\EOF
20329#define wxUSE_FONTDLG 1
20330EOF
20331
20332fi
20333
20334if test "$wxUSE_DIRDLG" = "yes"; then
20335 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20336 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20337 else
20338 if test "$wxUSE_TREECTRL" != "yes"; then
20339 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20340 else
20341 cat >> confdefs.h <<\EOF
20342#define wxUSE_DIRDLG 1
20343EOF
20344
20345 fi
20346 fi
20347fi
20348
20349if test "$wxUSE_MSGDLG" = "yes"; then
20350 cat >> confdefs.h <<\EOF
20351#define wxUSE_MSGDLG 1
20352EOF
20353
20354fi
20355
20356if test "$wxUSE_NUMBERDLG" = "yes"; then
20357 cat >> confdefs.h <<\EOF
20358#define wxUSE_NUMBERDLG 1
20359EOF
20360
20361fi
20362
20363if test "$wxUSE_PROGRESSDLG" = "yes"; then
20364 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20365 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20366 else
20367 cat >> confdefs.h <<\EOF
20368#define wxUSE_PROGRESSDLG 1
20369EOF
20370
20371 fi
20372fi
20373
cbca9943
VZ
20374if test "$wxUSE_SPLASH" = "yes"; then
20375 cat >> confdefs.h <<\EOF
20376#define wxUSE_SPLASH 1
20377EOF
20378
20379fi
20380
1e6feb95
VZ
20381if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20382 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20383 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20384 else
20385 cat >> confdefs.h <<\EOF
20386#define wxUSE_STARTUP_TIPS 1
20387EOF
20388
20389 fi
20390fi
20391
20392if test "$wxUSE_TEXTDLG" = "yes"; then
20393 cat >> confdefs.h <<\EOF
20394#define wxUSE_TEXTDLG 1
20395EOF
20396
20397fi
20398
b1f5d087
VZ
20399if test "$wxUSE_WIZARDDLG" = "yes"; then
20400 cat >> confdefs.h <<\EOF
20401#define wxUSE_WIZARDDLG 1
20402EOF
20403
20404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20405fi
20406
1e6feb95 20407
698dcdb6
VZ
20408if test "$cross_compiling" = "yes"; then
20409 OSINFO="\"$host\""
20410else
20411 OSINFO=`uname -s -r -m`
20412 OSINFO="\"$OSINFO\""
20413fi
20414
20415cat >> confdefs.h <<EOF
20416#define WXWIN_OS_DESCRIPTION $OSINFO
20417EOF
20418
20419
20420
06dda230
VZ
20421if test "x$prefix" != "xNONE"; then
20422 wxPREFIX=$prefix
20423else
20424 wxPREFIX=$ac_default_prefix
20425fi
20426
7e67ed0d 20427cat >> confdefs.h <<EOF
06dda230 20428#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20429EOF
20430
20431
20432
698dcdb6 20433
3a922bb4 20434
f11bdd03 20435if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20436 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20437fi
3a922bb4 20438
3d63bc3a
RL
20439
20440LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
20441
698dcdb6 20442if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
20443
20444 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
20445
20446
20447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20448 drawing dynamic erase event exec font image \
20449 minimal richedit rotate widgets"
20450
3a922bb4
RL
20451 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20452else
20453 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20454fi
20455
698dcdb6 20456
d714471b 20457INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
20458$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20459$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 20460
63e7762e 20461if test "$wxUSE_GTK" = 1; then
3d63bc3a 20462 WXCONFIG_INCLUDE=
698dcdb6
VZ
20463else
20464 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20465fi
20466
20467if test "$GXX" = yes ; then
20468 CXXWARNINGS="-Wall"
88e30f2b
RL
20469
20470 if test "$wxUSE_NO_DEPS" = "no" ; then
20471 CFLAGS="-MMD $CFLAGS"
20472 CXXFLAGS="-MMD $CXXFLAGS"
20473 fi
20474fi
20475
1725144d 20476EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20477
20478CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20479CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20480
3d63bc3a 20481LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 20482
698dcdb6
VZ
20483SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
32832908 20551
2f51a9ec
GD
20552
20553
20554
20555
f6bcfd97 20556
dad6c0ea 20557
caa2c79b 20558
3711412e 20559
1e6feb95
VZ
20560
20561
885d4bf5
VS
20562
20563
20564
20565
9b695262
VZ
20566
20567
62d0491b 20568
10f2d63a
VZ
20569
20570
698dcdb6 20571echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
f79bd02d 20572echo "configure:20573: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20573set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20574if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20576else
698dcdb6 20577 cat > conftestmake <<\EOF
10f2d63a
VZ
20578all:
20579 @echo 'ac_maketemp="${MAKE}"'
20580EOF
20581# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20582eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20583if test -n "$ac_maketemp"; then
20584 eval ac_cv_prog_make_${ac_make}_set=yes
20585else
20586 eval ac_cv_prog_make_${ac_make}_set=no
20587fi
698dcdb6 20588rm -f conftestmake
10f2d63a
VZ
20589fi
20590if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20591 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20592 SET_MAKE=
20593else
698dcdb6 20594 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20595 SET_MAKE="MAKE=${MAKE-make}"
20596fi
20597
698dcdb6 20598
3a922bb4
RL
20599if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20600 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20601fi
665bbe97 20602
698dcdb6 20603
10f2d63a 20604
2224580a 20605if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 20606 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22c3fb2b 20607 wx_cv_if_gnu_make=$IF_GNU_MAKE
e8482f24
GL
20608 wx_cv_path_ifs=$PATH_IFS
20609 wx_cv_program_ext=$PROGRAM_EXT
20610 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 20611 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 20612 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22c3fb2b
VZ
20613 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20614 wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 20615 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 20616 subdirs="demos samples utils contrib"
2224580a
VZ
20617
20618fi
10f2d63a 20619
698dcdb6
VZ
20620trap '' 1 2 15
20621cat > confcache <<\EOF
10f2d63a
VZ
20622# This file is a shell script that caches the results of configure
20623# tests run on this system so they can be shared between configure
698dcdb6
VZ
20624# scripts and configure runs. It is not useful on other systems.
20625# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20626#
698dcdb6
VZ
20627# By default, configure uses ./config.cache as the cache file,
20628# creating it if it does not exist already. You can give configure
20629# the --cache-file=FILE option to use a different cache file; that is
20630# what configure does when it calls configure scripts in
20631# subdirectories, so they share the cache.
20632# Giving --cache-file=/dev/null disables caching, for debugging configure.
20633# config.status only pays attention to the cache file if you give it the
20634# --recheck option to rerun configure.
10f2d63a 20635#
698dcdb6 20636EOF
10f2d63a
VZ
20637# The following way of writing the cache mishandles newlines in values,
20638# but we know of no workaround that is simple, portable, and efficient.
20639# So, don't put newlines in cache variables' values.
20640# Ultrix sh set writes to stderr and can't be redirected directly,
20641# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20642(set) 2>&1 |
20643 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20644 *ac_space=\ *)
20645 # `set' does not quote correctly, so add quotes (double-quote substitution
20646 # turns \\\\ into \\, and sed turns \\ into \).
20647 sed -n \
20648 -e "s/'/'\\\\''/g" \
20649 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20650 ;;
20651 *)
20652 # `set' quotes correctly as required by POSIX, so do not add quotes.
20653 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20654 ;;
20655 esac >> confcache
20656if cmp -s $cache_file confcache; then
20657 :
20658else
10f2d63a 20659 if test -w $cache_file; then
698dcdb6
VZ
20660 echo "updating cache $cache_file"
20661 cat confcache > $cache_file
10f2d63a
VZ
20662 else
20663 echo "not updating unwritable cache $cache_file"
20664 fi
20665fi
20666rm -f confcache
20667
698dcdb6
VZ
20668trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20669
10f2d63a
VZ
20670test "x$prefix" = xNONE && prefix=$ac_default_prefix
20671# Let make expand exec_prefix.
20672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20673
698dcdb6
VZ
20674# Any assignment to VPATH causes Sun make to only execute
20675# the first set of double-colon rules, so remove it if not needed.
20676# If there is a colon in the path, we need to keep it.
10f2d63a 20677if test "x$srcdir" = x.; then
698dcdb6 20678 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20679fi
20680
698dcdb6
VZ
20681trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20682
10f2d63a
VZ
20683DEFS=-DHAVE_CONFIG_H
20684
698dcdb6 20685# Without the "./", some shells look in PATH for config.status.
10f2d63a 20686: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20687
20688echo creating $CONFIG_STATUS
20689rm -f $CONFIG_STATUS
20690cat > $CONFIG_STATUS <<EOF
20691#! /bin/sh
10f2d63a
VZ
20692# Generated automatically by configure.
20693# Run this file to recreate the current configuration.
698dcdb6
VZ
20694# This directory was configured as follows,
20695# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20696#
20697# $0 $ac_configure_args
20698#
10f2d63a 20699# Compiler output produced by configure, useful for debugging
698dcdb6 20700# configure, is in ./config.log if it exists.
1e487827 20701
698dcdb6
VZ
20702ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20703for ac_option
10f2d63a 20704do
698dcdb6 20705 case "\$ac_option" in
10f2d63a 20706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20707 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20708 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20709 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20710 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20711 exit 0 ;;
20712 -help | --help | --hel | --he | --h)
20713 echo "\$ac_cs_usage"; exit 0 ;;
20714 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20715 esac
20716done
20717
698dcdb6
VZ
20718ac_given_srcdir=$srcdir
20719ac_given_INSTALL="$INSTALL"
703e0a69 20720
698dcdb6
VZ
20721trap 'rm -fr `echo "
20722 wx-config
20723 src/make.env
20724 src/makeprog.env
20725 src/makelib.env
20726 Makefile
20727 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20728EOF
698dcdb6 20729cat >> $CONFIG_STATUS <<EOF
1e487827 20730
698dcdb6
VZ
20731# Protect against being on the right side of a sed subst in config.status.
20732sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20733 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20734$ac_vpsub
20735$extrasub
20736s%@SHELL@%$SHELL%g
20737s%@CFLAGS@%$CFLAGS%g
20738s%@CPPFLAGS@%$CPPFLAGS%g
20739s%@CXXFLAGS@%$CXXFLAGS%g
20740s%@FFLAGS@%$FFLAGS%g
20741s%@DEFS@%$DEFS%g
20742s%@LDFLAGS@%$LDFLAGS%g
20743s%@LIBS@%$LIBS%g
20744s%@exec_prefix@%$exec_prefix%g
20745s%@prefix@%$prefix%g
20746s%@program_transform_name@%$program_transform_name%g
20747s%@bindir@%$bindir%g
20748s%@sbindir@%$sbindir%g
20749s%@libexecdir@%$libexecdir%g
20750s%@datadir@%$datadir%g
20751s%@sysconfdir@%$sysconfdir%g
20752s%@sharedstatedir@%$sharedstatedir%g
20753s%@localstatedir@%$localstatedir%g
20754s%@libdir@%$libdir%g
20755s%@includedir@%$includedir%g
20756s%@oldincludedir@%$oldincludedir%g
20757s%@infodir@%$infodir%g
20758s%@mandir@%$mandir%g
20759s%@host@%$host%g
20760s%@host_alias@%$host_alias%g
20761s%@host_cpu@%$host_cpu%g
20762s%@host_vendor@%$host_vendor%g
20763s%@host_os@%$host_os%g
20764s%@target@%$target%g
20765s%@target_alias@%$target_alias%g
20766s%@target_cpu@%$target_cpu%g
20767s%@target_vendor@%$target_vendor%g
20768s%@target_os@%$target_os%g
20769s%@build@%$build%g
20770s%@build_alias@%$build_alias%g
20771s%@build_cpu@%$build_cpu%g
20772s%@build_vendor@%$build_vendor%g
20773s%@build_os@%$build_os%g
20774s%@CC@%$CC%g
20775s%@CPP@%$CPP%g
20776s%@CXX@%$CXX%g
698dcdb6
VZ
20777s%@RANLIB@%$RANLIB%g
20778s%@AR@%$AR%g
20779s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20780s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20781s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20782s%@STRIP@%$STRIP%g
613d0995 20783s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20784s%@YACC@%$YACC%g
20785s%@LEX@%$LEX%g
20786s%@LEXLIB@%$LEXLIB%g
20787s%@LN_S@%$LN_S%g
20788s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
20789s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20790s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20791s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20792s%@X_CFLAGS@%$X_CFLAGS%g
20793s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20794s%@X_LIBS@%$X_LIBS%g
20795s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 20796s%@RESCOMP@%$RESCOMP%g
698dcdb6 20797s%@DEREZ@%$DEREZ%g
3a922bb4 20798s%@CXXCPP@%$CXXCPP%g
b040e242 20799s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20800s%@LEX_STEM@%$LEX_STEM%g
20801s%@PATH_IFS@%$PATH_IFS%g
20802s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20803s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20804s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20805s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20806s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20807s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20808s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20809s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20810s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20811s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20812s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20813s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20814s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20815s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20816s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20817s%@WX_ALL@%$WX_ALL%g
20818s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20819s%@SHARED_LD@%$SHARED_LD%g
20820s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20821s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20822s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20823s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20824s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20825s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20826s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20827s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20828s%@USE_GUI@%$USE_GUI%g
20829s%@AFMINSTALL@%$AFMINSTALL%g
20830s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20831s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20832s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20833s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20834s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20835s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20836s%@cross_compiling@%$cross_compiling%g
20837s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20838s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20839s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20840s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20841s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20842s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20843s%@ALL_HEADERS@%$ALL_HEADERS%g
20844s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20845s%@GUIDIST@%$GUIDIST%g
20846s%@PORT_FILES@%$PORT_FILES%g
20847s%@DISTDIR@%$DISTDIR%g
698dcdb6 20848s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20849s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 20850s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20851s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20852s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20853s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20854s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 20855s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 20856s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
20857s%@LIBWXMACRES@%$LIBWXMACRES%g
20858s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20859s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20860s%@DLLTOOL@%$DLLTOOL%g
20861s%@AS@%$AS%g
20862s%@NM@%$NM%g
20863s%@LD@%$LD%g
20864s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20865s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20866s%@SET_MAKE@%$SET_MAKE%g
20867s%@subdirs@%$subdirs%g
1e487827 20868
1e487827 20869CEOF
1e487827
VS
20870EOF
20871
698dcdb6
VZ
20872cat >> $CONFIG_STATUS <<\EOF
20873
20874# Split the substitutions into bite-sized pieces for seds with
20875# small command number limits, like on Digital OSF/1 and HP-UX.
20876ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20877ac_file=1 # Number of current file.
20878ac_beg=1 # First line for current file.
20879ac_end=$ac_max_sed_cmds # Line after last line for current file.
20880ac_more_lines=:
20881ac_sed_cmds=""
20882while $ac_more_lines; do
20883 if test $ac_beg -gt 1; then
20884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20885 else
20886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20887 fi
20888 if test ! -s conftest.s$ac_file; then
20889 ac_more_lines=false
20890 rm -f conftest.s$ac_file
20891 else
20892 if test -z "$ac_sed_cmds"; then
20893 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20894 else
698dcdb6 20895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20896 fi
698dcdb6
VZ
20897 ac_file=`expr $ac_file + 1`
20898 ac_beg=$ac_end
20899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20900 fi
698dcdb6
VZ
20901done
20902if test -z "$ac_sed_cmds"; then
20903 ac_sed_cmds=cat
20904fi
20905EOF
10f2d63a 20906
698dcdb6
VZ
20907cat >> $CONFIG_STATUS <<EOF
20908
20909CONFIG_FILES=\${CONFIG_FILES-"wx-config
20910 src/make.env
20911 src/makeprog.env
20912 src/makelib.env
20913 Makefile
20914 "}
10f2d63a 20915EOF
698dcdb6
VZ
20916cat >> $CONFIG_STATUS <<\EOF
20917for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20919 case "$ac_file" in
20920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20922 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20923 esac
20924
698dcdb6 20925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20926
698dcdb6
VZ
20927 # Remove last slash and all that follows it. Not all systems have dirname.
20928 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20930 # The file is in a subdirectory.
20931 test ! -d "$ac_dir" && mkdir "$ac_dir"
20932 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20933 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20934 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20935 else
20936 ac_dir_suffix= ac_dots=
20937 fi
20938
698dcdb6
VZ
20939 case "$ac_given_srcdir" in
20940 .) srcdir=.
20941 if test -z "$ac_dots"; then top_srcdir=.
20942 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20943 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20944 *) # Relative path.
698dcdb6
VZ
20945 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20946 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20947 esac
20948
698dcdb6
VZ
20949 case "$ac_given_INSTALL" in
20950 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20951 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20952 esac
20953
698dcdb6
VZ
20954 echo creating "$ac_file"
20955 rm -f "$ac_file"
20956 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20957 case "$ac_file" in
20958 *Makefile*) ac_comsub="1i\\
20959# $configure_input" ;;
20960 *) ac_comsub= ;;
20961 esac
10f2d63a 20962
698dcdb6
VZ
20963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20964 sed -e "$ac_comsub
20965s%@configure_input@%$configure_input%g
20966s%@srcdir@%$srcdir%g
20967s%@top_srcdir@%$top_srcdir%g
20968s%@INSTALL@%$INSTALL%g
20969" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20970fi; done
20971rm -f conftest.s*
10f2d63a
VZ
20972
20973# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20974# NAME is the cpp macro being defined and VALUE is the value it is being given.
20975#
20976# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20977ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20978ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20979ac_dC='\3'
20980ac_dD='%g'
20981# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20982ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20983ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20984ac_uC=' '
698dcdb6
VZ
20985ac_uD='\4%g'
20986# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20987ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20988ac_eB='$%\1#\2define\3'
20989ac_eC=' '
20990ac_eD='%g'
10f2d63a 20991
698dcdb6
VZ
20992if test "${CONFIG_HEADERS+set}" != set; then
20993EOF
20994cat >> $CONFIG_STATUS <<EOF
20995 CONFIG_HEADERS="setup.h:setup.h.in"
20996EOF
20997cat >> $CONFIG_STATUS <<\EOF
20998fi
20999for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21001 case "$ac_file" in
21002 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21003 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21004 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21005 esac
21006
698dcdb6
VZ
21007 echo creating $ac_file
21008
21009 rm -f conftest.frag conftest.in conftest.out
21010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21011 cat $ac_file_inputs > conftest.in
21012
21013EOF
21014
21015# Transform confdefs.h into a sed script conftest.vals that substitutes
21016# the proper values into config.h.in to produce config.h. And first:
21017# Protect against being on the right side of a sed subst in config.status.
21018# Protect against being in an unquoted here document in config.status.
21019rm -f conftest.vals
21020cat > conftest.hdr <<\EOF
21021s/[\\&%]/\\&/g
21022s%[\\$`]%\\&%g
21023s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21024s%ac_d%ac_u%gp
21025s%ac_u%ac_e%gp
21026EOF
21027sed -n -f conftest.hdr confdefs.h > conftest.vals
21028rm -f conftest.hdr
10f2d63a
VZ
21029
21030# This sed command replaces #undef with comments. This is necessary, for
21031# example, in the case of _POSIX_SOURCE, which is predefined and required
21032# on some systems where configure will not decide to define it.
698dcdb6
VZ
21033cat >> conftest.vals <<\EOF
21034s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21035EOF
21036
698dcdb6
VZ
21037# Break up conftest.vals because some shells have a limit on
21038# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21039
21040rm -f conftest.tail
698dcdb6 21041while :
10f2d63a 21042do
698dcdb6
VZ
21043 ac_lines=`grep -c . conftest.vals`
21044 # grep -c gives empty output for an empty file on some AIX systems.
21045 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21046 # Write a limited-size here document to conftest.frag.
21047 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21048 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21049 echo 'CEOF
698dcdb6
VZ
21050 sed -f conftest.frag conftest.in > conftest.out
21051 rm -f conftest.in
21052 mv conftest.out conftest.in
21053' >> $CONFIG_STATUS
21054 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21055 rm -f conftest.vals
21056 mv conftest.tail conftest.vals
10f2d63a 21057done
698dcdb6
VZ
21058rm -f conftest.vals
21059
21060cat >> $CONFIG_STATUS <<\EOF
21061 rm -f conftest.frag conftest.h
21062 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21063 cat conftest.in >> conftest.h
21064 rm -f conftest.in
21065 if cmp -s $ac_file conftest.h 2>/dev/null; then
21066 echo "$ac_file is unchanged"
21067 rm -f conftest.h
10f2d63a 21068 else
698dcdb6
VZ
21069 # Remove last slash and all that follows it. Not all systems have dirname.
21070 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21072 # The file is in a subdirectory.
21073 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21074 fi
698dcdb6
VZ
21075 rm -f $ac_file
21076 mv conftest.h $ac_file
10f2d63a 21077 fi
698dcdb6
VZ
21078fi; done
21079
10f2d63a 21080EOF
698dcdb6 21081cat >> $CONFIG_STATUS <<EOF
10f2d63a 21082
3a922bb4 21083 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21084 LN_S="${LN_S}"
21085
21086
21087EOF
21088cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21089
652d930d 21090 if test ! -h wx-config; then
991a5759 21091 chmod +x wx-config
3a922bb4
RL
21092 mv wx-config wx${TOOLCHAIN_NAME}-config
21093 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21094 fi
665bbe97 21095
00cf1208
RR
21096 if test ! -d lib; then
21097 mkdir lib
21098 fi
21099 if test ! -d lib/wx; then
21100 mkdir lib/wx
21101 fi
21102 if test ! -d lib/wx/include; then
21103 mkdir lib/wx/include
21104 fi
3a922bb4
RL
21105 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21106 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21107 fi
3a922bb4
RL
21108 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21109 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21110 fi
21111 if test -f setup.h; then
3a922bb4 21112 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21113 fi
698dcdb6
VZ
21114
21115exit 0
10f2d63a
VZ
21116EOF
21117chmod +x $CONFIG_STATUS
698dcdb6
VZ
21118rm -fr confdefs* $ac_clean_files
21119test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21120
2224580a
VZ
21121if test "$no_recursion" != yes; then
21122
21123 # Remove --cache-file and --srcdir arguments so they do not pile up.
21124 ac_sub_configure_args=
21125 ac_prev=
21126 for ac_arg in $ac_configure_args; do
21127 if test -n "$ac_prev"; then
21128 ac_prev=
21129 continue
21130 fi
698dcdb6 21131 case "$ac_arg" in
2224580a
VZ
21132 -cache-file | --cache-file | --cache-fil | --cache-fi \
21133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21134 ac_prev=cache_file ;;
21135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21137 ;;
21138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21139 ac_prev=srcdir ;;
21140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21141 ;;
21142 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21143 esac
21144 done
21145
698dcdb6 21146 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21147
21148 # Do not complain, so a configure script can configure whichever
21149 # parts of a large source tree are present.
698dcdb6
VZ
21150 if test ! -d $srcdir/$ac_config_dir; then
21151 continue
21152 fi
21153
21154 echo configuring in $ac_config_dir
2224580a 21155
698dcdb6 21156 case "$srcdir" in
2224580a
VZ
21157 .) ;;
21158 *)
698dcdb6
VZ
21159 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21160 else
21161 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21162 fi
21163 ;;
2224580a
VZ
21164 esac
21165
21166 ac_popdir=`pwd`
698dcdb6 21167 cd $ac_config_dir
2224580a 21168
698dcdb6
VZ
21169 # A "../" for each directory in /$ac_config_dir.
21170 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21171
698dcdb6 21172 case "$srcdir" in
2224580a
VZ
21173 .) # No --srcdir option. We are building in place.
21174 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21175 /*) # Absolute path.
21176 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21177 *) # Relative path.
698dcdb6 21178 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21179 esac
21180
21181 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21182 if test -f $ac_sub_srcdir/configure; then
21183 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21184 elif test -f $ac_sub_srcdir/configure.in; then
21185 ac_sub_configure=$ac_configure
21186 else
698dcdb6 21187 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21188 ac_sub_configure=
21189 fi
21190
21191 # The recursion is here.
21192 if test -n "$ac_sub_configure"; then
698dcdb6 21193
2224580a 21194 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21195 case "$cache_file" in
21196 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21197 *) # Relative path.
698dcdb6 21198 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21199 esac
698dcdb6
VZ
21200 case "$ac_given_INSTALL" in
21201 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21202 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21203 esac
2224580a 21204
698dcdb6 21205 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21206 # The eval makes quoting arguments work.
698dcdb6
VZ
21207 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21208 then :
21209 else
21210 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21211 fi
2224580a
VZ
21212 fi
21213
21214 cd $ac_popdir
21215 done
21216fi
21217
698dcdb6 21218