]> git.saurik.com Git - wxWidgets.git/blame - configure
Added first cut at XRC docs; added font spec for wxWindows manual (new Tex2RTF feature!);
[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
44
45#serial AM2
46
47
48
49
50
51
52
53
54# Configure paths for GTK+
55# Owen Taylor 97-11-3
698dcdb6 56
698dcdb6
VZ
57
58
59# Guess values for system-dependent variables and create Makefiles.
60# Generated automatically using autoconf version 2.13
61# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
62#
63# This configure script is free software; the Free Software Foundation
64# gives unlimited permission to copy, distribute and modify it.
65
66# Defaults:
67ac_help=
68ac_default_prefix=/usr/local
69# Any additions from configure.in:
70ac_help="$ac_help
8168de4c 71 --enable-gui use GUI classes"
1e6feb95 72ac_help="$ac_help
8168de4c 73 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
74ac_help="$ac_help
75 --with-gtk use GTK+"
76ac_help="$ac_help
77 --with-motif use Motif/Lesstif"
78ac_help="$ac_help
79 --with-mac use Mac OS X"
80ac_help="$ac_help
81 --with-wine use WINE"
82ac_help="$ac_help
77e13408 83 --with-msw use MS-Windows"
698dcdb6
VZ
84ac_help="$ac_help
85 --with-pm use OS/2 Presentation Manager"
1e6feb95 86ac_help="$ac_help
b3e8d00a 87 --with-mgl use SciTech MGL"
1725144d
RR
88ac_help="$ac_help
89 --with-microwin use MicroWindows"
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
b040e242 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
b040e242 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
b040e242 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
1725144d 1104ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
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
10f2d63a
VZ
1114
1115DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1116DEFAULT_DEFAULT_wxUSE_MAC=0
1117DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1118DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1119DEFAULT_DEFAULT_wxUSE_MOTIF=0
1120DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1121DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1122DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1123
d6a55c4b 1124PROGRAM_EXT=
3a922bb4 1125SO_SUFFIX=so
d6a55c4b 1126
10f2d63a
VZ
1127case "${host}" in
1128 *-hp-hpux* )
1129 USE_HPUX=1
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1132 SO_SUFFIX=sl
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __HPUX__ 1
1135EOF
1136
1137 ;;
1138 *-*-linux* )
1139 USE_LINUX=1
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __LINUX__ 1
1142EOF
1143
1144 TMP=`uname -m`
1145 if test "x$TMP" = "xalpha"; then
1146 USE_ALPHA=1
698dcdb6 1147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1148#define __ALPHA__ 1
1149EOF
1150
1151 fi
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-irix5* | *-*-irix6* )
1155 USE_SGI=1
1156 USE_SVR4=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __SGI__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1162#define __SVR4__ 1
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 ;;
1167 *-*-solaris2* )
1168 USE_SUN=1
1169 USE_SOLARIS=1
1170 USE_SVR4=1
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __SUN__ 1
1173EOF
1174
698dcdb6 1175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1176#define __SOLARIS__ 1
1177EOF
1178
698dcdb6 1179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1180#define __SVR4__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1185 ;;
1186 *-*-sunos4* )
1187 USE_SUN=1
1188 USE_SUNOS=1
1189 USE_BSD=1
698dcdb6 1190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1191#define __SUN__ 1
1192EOF
1193
698dcdb6 1194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1195#define __SUNOS__ 1
1196EOF
1197
698dcdb6 1198 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1199#define __BSD__ 1
1200EOF
1201
1202 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1203 ;;
f6bcfd97 1204 *-*-freebsd*)
10f2d63a
VZ
1205 USE_BSD=1
1206 USE_FREEBSD=1
3f345b47 1207 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __FREEBSD__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a 1213#define __BSD__ 1
95c8801c
VS
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_GTK=1
1217 ;;
1218 *-*-openbsd*)
1219 USE_BSD=1
1220 USE_OPENBSD=1
698dcdb6 1221 cat >> confdefs.h <<\EOF
95c8801c
VS
1222#define __FREEBSD__ 1
1223EOF
1224
698dcdb6 1225 cat >> confdefs.h <<\EOF
95c8801c 1226#define __OPENBSD__ 1
f6bcfd97
BP
1227EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-netbsd*)
1232 USE_BSD=1
1233 USE_NETBSD=1
698dcdb6 1234 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1235#define __FREEBSD__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
f6bcfd97 1239#define __NETBSD__ 1
10f2d63a
VZ
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-osf* )
1245 USE_ALPHA=1
1246 USE_OSF=1
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __ALPHA__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __OSF__ 1
1253EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1256 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1257 ;;
1258 *-*-dgux5* )
1259 USE_ALPHA=1
1260 USE_SVR4=1
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __ALPHA__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __SVR4__ 1
1267EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271 *-*-sysv5* )
1272 USE_SYSV=1
1273 USE_SVR4=1
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __SYSV__ 1
1276EOF
1277
698dcdb6 1278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1279#define __SVR4__ 1
1280EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-aix* )
1285 USE_AIX=1
1286 USE_SYSV=1
1287 USE_SVR4=1
698dcdb6 1288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1289#define __AIX__ 1
1290EOF
1291
698dcdb6 1292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1293#define __SYSV__ 1
1294EOF
1295
698dcdb6 1296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1297#define __SVR4__ 1
1298EOF
1299
1300 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1301 ;;
1302
1c8183e2 1303 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1304 USE_UNIX=0
1305 USE_WIN32=1
3a922bb4 1306 SO_SUFFIX=dll
698dcdb6 1307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1308#define __WIN32__ 1
1309EOF
1310
698dcdb6 1311 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1312#define __WIN95__ 1
1313EOF
1314
698dcdb6 1315 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1316#define __WINDOWS__ 1
1317EOF
1318
698dcdb6 1319 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1320#define __GNUWIN32__ 1
1321EOF
1322
698dcdb6 1323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1324#define STRICT 1
1325EOF
1326
698dcdb6 1327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1328#define WINVER 0x0400
1329EOF
1330
cf27ef00 1331 PROGRAM_EXT=".exe"
7b7a7637 1332 RESCOMP=windres
10f2d63a
VZ
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
f9bc1684
VS
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340#define __DOS__ 1
1341EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 DEFAULT_DEFAULT_wxUSE_SHARED=0
1346 ;;
1347
6fa882bd 1348 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1349 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1350#define __EMX__ 1
1351EOF
1352
cf27ef00 1353 PROGRAM_EXT=".exe"
e07802fc 1354 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1355 ;;
1356
d08b457b
GD
1357 powerpc-*-darwin* )
1358 USE_BSD=1
f11bdd03 1359 USE_DARWIN=1
3f345b47 1360 CPP_MT_FLAG=
3a922bb4 1361 SO_SUFFIX=dylib
698dcdb6 1362 cat >> confdefs.h <<\EOF
f11bdd03 1363#define __BSD__ 1
b4085ce6
GD
1364EOF
1365
698dcdb6 1366 cat >> confdefs.h <<\EOF
f11bdd03 1367#define __DARWIN__ 1
d08b457b
GD
1368EOF
1369
1370 cat >> confdefs.h <<\EOF
1371#define __POWERPC__ 1
b4085ce6
GD
1372EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
b12915c1
VZ
1377 *-*-beos* )
1378 USE_BEOS=1
698dcdb6 1379 cat >> confdefs.h <<\EOF
b12915c1
VZ
1380#define __BEOS__ 1
1381EOF
1382
1383 ;;
1384
10f2d63a 1385 *)
698dcdb6 1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1387esac
1388
1389if test "$USE_UNIX" = 1 ; then
b12915c1 1390 wxUSE_UNIX=yes
698dcdb6 1391 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1392#define __UNIX__ 1
1393EOF
1394
10f2d63a
VZ
1395fi
1396
2389f33b
VZ
1397if test "$USE_LINUX" = 1; then
1398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
b040e242 1399echo "configure:1400: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1400if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402else
a72a4bfa
VS
1403
1404 cat > conftest.$ac_ext <<EOF
b040e242 1405#line 1406 "configure"
2389f33b
VZ
1406#include "confdefs.h"
1407#include <features.h>
1408int main() {
1409
1410 #if !__GLIBC_PREREQ(2, 1)
1411 #error not glibc2.1
1412 #endif
1413
1414; return 0; }
1415EOF
b040e242 1416if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1417 rm -rf conftest*
1418
1419 wx_lib_glibc21=yes
1420
1421else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425
1426 wx_lib_glibc21=no
1427
1428
1429fi
1430rm -f conftest*
1431
1432fi
1433
1434echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1435 if test "$wx_lib_glibc21" = "yes"; then
1436 cat >> confdefs.h <<\EOF
1437#define wxHAVE_GLIBC2 1
1438EOF
1439
1440 fi
1441fi
10f2d63a 1442
1e487827 1443
1e487827 1444
6232543b 1445
10f2d63a
VZ
1446 wx_arg_cache_file="configarg.cache"
1447 echo "loading argument cache $wx_arg_cache_file"
1448 rm -f ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}
698dcdb6 1451
10f2d63a
VZ
1452
1453DEBUG_CONFIGURE=0
1454if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1455 DEFAULT_wxUSE_UNIVERSAL=no
1456
10f2d63a
VZ
1457 DEFAULT_wxUSE_THREADS=yes
1458
1459 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1460 DEFAULT_wxUSE_SONAME=no
1e6feb95 1461 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1462 DEFAULT_wxUSE_PROFILE=no
1463 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1464 DEFAULT_wxUSE_NO_RTTI=yes
1465 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_PERMISSIVE=no
1467 DEFAULT_wxUSE_DEBUG_FLAG=yes
1468 DEFAULT_wxUSE_DEBUG_INFO=yes
1469 DEFAULT_wxUSE_DEBUG_GDB=yes
1470 DEFAULT_wxUSE_MEM_TRACING=no
1471 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1472 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1473 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1474 DEFAULT_wxUSE_APPLE_IEEE=no
1475
1476 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1477 DEFAULT_wxUSE_LOGWINDOW=no
1478 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1479 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1480
1481 DEFAULT_wxUSE_GUI=yes
1e6feb95 1482 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1483
3e44f09d 1484 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1485 DEFAULT_wxUSE_ZLIB=no
1486 DEFAULT_wxUSE_LIBPNG=no
1487 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1488 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1489 DEFAULT_wxUSE_ODBC=no
3fed1840 1490 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1491 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1492
eb4efbdc 1493 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1494 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1495 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1496 DEFAULT_wxUSE_CMDLINE_PARSER=no
1497 DEFAULT_wxUSE_DATETIME=no
1498 DEFAULT_wxUSE_TIMEDATE=no
1499 DEFAULT_wxUSE_TIMER=no
1500 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1501 DEFAULT_wxUSE_FILE=no
1e6feb95 1502 DEFAULT_wxUSE_FFILE=no
a3a584a7 1503 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1504 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1505 DEFAULT_wxUSE_WAVE=no
1506 DEFAULT_wxUSE_INTL=no
1507 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1508 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_STREAMS=no
1510 DEFAULT_wxUSE_SOCKETS=no
1511 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1512 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1513 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1514 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1515 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1516 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1517
1518 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1519 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1520 DEFAULT_wxUSE_POSTSCRIPT=no
1521
1522 DEFAULT_wxUSE_X_RESOURCES=no
1523 DEFAULT_wxUSE_CLIPBOARD=no
1524 DEFAULT_wxUSE_TOOLTIPS=no
1525 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1526 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_SPLINES=no
1528
1529 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1530 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1531 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1532
1533 DEFAULT_wxUSE_PROLOGIO=no
1534 DEFAULT_wxUSE_RESOURCES=no
1535 DEFAULT_wxUSE_CONSTRAINTS=no
1536 DEFAULT_wxUSE_IPC=no
1537 DEFAULT_wxUSE_HELP=no
29fd3c0c 1538 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1539 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1540 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1541 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1542 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1543 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1544 DEFAULT_wxUSE_PROTOCOL=no
1545 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1546 DEFAULT_wxUSE_PROTOCOL_FTP=no
1547 DEFAULT_wxUSE_PROTOCOL_FILE=no
1548 DEFAULT_wxUSE_URL=no
1549
10f2d63a 1550 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1551 DEFAULT_wxUSE_CHOICEDLG=no
1552 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1553 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1554 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1555 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1556 DEFAULT_wxUSE_FONTDLG=no
1557 DEFAULT_wxUSE_MSGDLG=no
1558 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1559 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1560 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1561 DEFAULT_wxUSE_STARTUP_TIPS=no
1562 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1563 DEFAULT_wxUSE_WIZARDDLG=no
1564
1e6feb95 1565 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1566 DEFAULT_wxUSE_MINIFRAME=no
1567 DEFAULT_wxUSE_HTML=no
24528b0c 1568 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1569 DEFAULT_wxUSE_FS_INET=no
1570 DEFAULT_wxUSE_FS_ZIP=no
1571 DEFAULT_wxUSE_BUSYINFO=no
1572 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1573 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1574
1575 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1576 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1577 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1578 DEFAULT_wxUSE_CALCTRL=no
1579 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1580 DEFAULT_wxUSE_CHECKBOX=no
1581 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1582 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1583 DEFAULT_wxUSE_COMBOBOX=no
1584 DEFAULT_wxUSE_GAUGE=no
1585 DEFAULT_wxUSE_GRID=no
1586 DEFAULT_wxUSE_NEW_GRID=no
1587 DEFAULT_wxUSE_IMAGLIST=no
1588 DEFAULT_wxUSE_LISTBOX=no
1589 DEFAULT_wxUSE_LISTCTRL=no
1590 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1591 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1592 DEFAULT_wxUSE_RADIOBOX=no
1593 DEFAULT_wxUSE_RADIOBTN=no
1594 DEFAULT_wxUSE_SASH=no
1595 DEFAULT_wxUSE_SCROLLBAR=no
1596 DEFAULT_wxUSE_SLIDER=no
1597 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1598 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1599 DEFAULT_wxUSE_SPLITTER=no
1600 DEFAULT_wxUSE_STATBMP=no
1601 DEFAULT_wxUSE_STATBOX=no
1602 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1603 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1604 DEFAULT_wxUSE_STATUSBAR=yes
1605 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1606 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1607 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1608 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1609 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1610 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1611 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1612 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1613 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1614
1615 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1616 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1617 DEFAULT_wxUSE_WCSRTOMBS=no
1618
edae8572 1619 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1620 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1621 DEFAULT_wxUSE_GIF=no
1622 DEFAULT_wxUSE_PCX=no
1623 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1624 DEFAULT_wxUSE_IFF=no
0046ff7c 1625 DEFAULT_wxUSE_XPM=no
658974ae 1626 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1627else
1e6feb95
VZ
1628 DEFAULT_wxUSE_UNIVERSAL=no
1629
10f2d63a
VZ
1630 DEFAULT_wxUSE_THREADS=yes
1631
1632 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1633 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1634 DEFAULT_wxUSE_OPTIMISE=yes
1635 DEFAULT_wxUSE_PROFILE=no
1636 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1637 DEFAULT_wxUSE_NO_RTTI=yes
1638 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_PERMISSIVE=no
1640 DEFAULT_wxUSE_DEBUG_FLAG=no
1641 DEFAULT_wxUSE_DEBUG_INFO=no
1642 DEFAULT_wxUSE_DEBUG_GDB=no
1643 DEFAULT_wxUSE_MEM_TRACING=no
1644 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1645 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1646 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1647 DEFAULT_wxUSE_APPLE_IEEE=yes
1648
1649 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1650 DEFAULT_wxUSE_LOGWINDOW=yes
1651 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1652 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1653
1654 DEFAULT_wxUSE_GUI=yes
1655
831b3152 1656 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1657 DEFAULT_wxUSE_ZLIB=yes
1658 DEFAULT_wxUSE_LIBPNG=yes
1659 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1660 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1661 DEFAULT_wxUSE_ODBC=no
3fed1840 1662 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1663 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1664
eb4efbdc 1665 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1666 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1667 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1668 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1669 DEFAULT_wxUSE_DATETIME=yes
1670 DEFAULT_wxUSE_TIMEDATE=no
1671 DEFAULT_wxUSE_TIMER=yes
1672 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1673 DEFAULT_wxUSE_FILE=yes
1e6feb95 1674 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1675 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1676 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1677 DEFAULT_wxUSE_WAVE=no
1678 DEFAULT_wxUSE_INTL=yes
1679 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1680 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1681 DEFAULT_wxUSE_STREAMS=yes
1682 DEFAULT_wxUSE_SOCKETS=yes
1683 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1684 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1685 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1686 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1687 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1688 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1689
1690 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1691 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1692 DEFAULT_wxUSE_POSTSCRIPT=yes
1693
1694 DEFAULT_wxUSE_X_RESOURCES=no
1695 DEFAULT_wxUSE_CLIPBOARD=yes
1696 DEFAULT_wxUSE_TOOLTIPS=yes
1697 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1698 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_SPLINES=yes
1700
1701 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1702 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1703 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1704
1705 DEFAULT_wxUSE_PROLOGIO=yes
1706 DEFAULT_wxUSE_RESOURCES=yes
1707 DEFAULT_wxUSE_CONSTRAINTS=yes
1708 DEFAULT_wxUSE_IPC=yes
1709 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1710 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1711 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1712 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1713 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1714 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1715 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1716 DEFAULT_wxUSE_PROTOCOL=yes
1717 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1718 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1719 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1720 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1721
1722 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1723 DEFAULT_wxUSE_CHOICEDLG=yes
1724 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1725 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1726 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1727 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1728 DEFAULT_wxUSE_FONTDLG=yes
1729 DEFAULT_wxUSE_MSGDLG=yes
1730 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1731 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1732 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1733 DEFAULT_wxUSE_STARTUP_TIPS=yes
1734 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1735 DEFAULT_wxUSE_WIZARDDLG=yes
1736
1e6feb95 1737 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1738 DEFAULT_wxUSE_MINIFRAME=yes
1739 DEFAULT_wxUSE_HTML=yes
24528b0c 1740 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1741 DEFAULT_wxUSE_FS_INET=yes
1742 DEFAULT_wxUSE_FS_ZIP=yes
1743 DEFAULT_wxUSE_BUSYINFO=yes
1744 DEFAULT_wxUSE_ZIPSTREAM=yes
1745 DEFAULT_wxUSE_VALIDATORS=yes
1746
1747 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1748 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1749 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1750 DEFAULT_wxUSE_CALCTRL=yes
1751 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1752 DEFAULT_wxUSE_CHECKBOX=yes
1753 DEFAULT_wxUSE_CHECKLST=yes
1754 DEFAULT_wxUSE_CHOICE=yes
1755 DEFAULT_wxUSE_COMBOBOX=yes
1756 DEFAULT_wxUSE_GAUGE=yes
1757 DEFAULT_wxUSE_GRID=yes
cc977e5f 1758 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1759 DEFAULT_wxUSE_IMAGLIST=yes
1760 DEFAULT_wxUSE_LISTBOX=yes
1761 DEFAULT_wxUSE_LISTCTRL=yes
1762 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1763 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1764 DEFAULT_wxUSE_RADIOBOX=yes
1765 DEFAULT_wxUSE_RADIOBTN=yes
1766 DEFAULT_wxUSE_SASH=yes
1767 DEFAULT_wxUSE_SCROLLBAR=yes
1768 DEFAULT_wxUSE_SLIDER=yes
1769 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1770 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1771 DEFAULT_wxUSE_SPLITTER=yes
1772 DEFAULT_wxUSE_STATBMP=yes
1773 DEFAULT_wxUSE_STATBOX=yes
1774 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1775 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1776 DEFAULT_wxUSE_STATUSBAR=yes
1777 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1778 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1779 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1780 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1781 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1782 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1783 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1784 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1785 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1786
1787 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1788 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1789 DEFAULT_wxUSE_WCSRTOMBS=no
1790
edae8572 1791 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1792 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1793 DEFAULT_wxUSE_GIF=yes
1794 DEFAULT_wxUSE_PCX=yes
cc0e8480 1795 DEFAULT_wxUSE_IFF=no
10f2d63a 1796 DEFAULT_wxUSE_PNM=yes
0046ff7c 1797 DEFAULT_wxUSE_XPM=yes
658974ae 1798 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1799fi
1800
698dcdb6
VZ
1801
1802
10f2d63a
VZ
1803for toolkit in `echo $ALL_TOOLKITS`; do
1804 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1805 if test "x$LINE" != x ; then
1806 has_toolkit_in_cache=1
1807 eval "DEFAULT_$LINE"
1808 eval "CACHE_$toolkit=1"
1809 fi
1810done
1811
698dcdb6
VZ
1812
1813
1814 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
b040e242 1815echo "configure:1816: checking for --enable-gui" >&5
10f2d63a
VZ
1816 no_cache=0
1817 # Check whether --enable-gui or --disable-gui was given.
1818if test "${enable_gui+set}" = set; then
1819 enableval="$enable_gui"
698dcdb6 1820
10f2d63a
VZ
1821 if test "$enableval" = yes; then
1822 ac_cv_use_gui='wxUSE_GUI=yes'
1823 else
1824 ac_cv_use_gui='wxUSE_GUI=no'
1825 fi
698dcdb6 1826
10f2d63a 1827else
698dcdb6 1828
10f2d63a
VZ
1829 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
1836 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1837
1838fi
10f2d63a
VZ
1839
1840
1841 eval "$ac_cv_use_gui"
1842 if test "$no_cache" != 1; then
1843 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1844 fi
1845
1846 if test "$wxUSE_GUI" = yes; then
698dcdb6 1847 echo "$ac_t""yes" 1>&6
10f2d63a 1848 else
698dcdb6 1849 echo "$ac_t""no" 1>&6
10f2d63a 1850 fi
698dcdb6 1851
10f2d63a 1852
b12915c1 1853if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1854
1e6feb95
VZ
1855
1856 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
b040e242 1857echo "configure:1858: checking for --enable-universal" >&5
1e6feb95
VZ
1858 no_cache=0
1859 # Check whether --enable-universal or --disable-universal was given.
1860if test "${enable_universal+set}" = set; then
1861 enableval="$enable_universal"
1862
1863 if test "$enableval" = yes; then
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1865 else
1866 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1867 fi
1868
1869else
1870
1871 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1872 if test "x$LINE" != x ; then
1873 eval "DEFAULT_$LINE"
1874 else
1875 no_cache=1
1876 fi
1877
1878 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1879
1880fi
1881
1882
1883 eval "$ac_cv_use_universal"
1884 if test "$no_cache" != 1; then
1885 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1886 fi
1887
1888 if test "$wxUSE_UNIVERSAL" = yes; then
1889 echo "$ac_t""yes" 1>&6
1890 else
1891 echo "$ac_t""no" 1>&6
1892 fi
1893
10f2d63a
VZ
1894# Check whether --with-gtk or --without-gtk was given.
1895if test "${with_gtk+set}" = set; then
1896 withval="$with_gtk"
1897 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1898fi
10f2d63a
VZ
1899
1900# Check whether --with-motif or --without-motif was given.
1901if test "${with_motif+set}" = set; then
1902 withval="$with_motif"
1903 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1904fi
10f2d63a 1905
b4085ce6
GD
1906# Check whether --with-mac or --without-mac was given.
1907if test "${with_mac+set}" = set; then
1908 withval="$with_mac"
1909 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1910fi
b4085ce6 1911
10f2d63a
VZ
1912# Check whether --with-wine or --without-wine was given.
1913if test "${with_wine+set}" = set; then
1914 withval="$with_wine"
1915 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1916fi
10f2d63a 1917
77e13408
RL
1918# Check whether --with-msw or --without-msw was given.
1919if test "${with_msw+set}" = set; then
1920 withval="$with_msw"
1921 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1922fi
10f2d63a 1923
e07802fc
VZ
1924# Check whether --with-pm or --without-pm was given.
1925if test "${with_pm+set}" = set; then
1926 withval="$with_pm"
1927 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1928fi
1929
1e6feb95
VZ
1930# Check whether --with-mgl or --without-mgl was given.
1931if test "${with_mgl+set}" = set; then
1932 withval="$with_mgl"
1933 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1934fi
1935
1725144d
RR
1936# Check whether --with-microwin or --without-microwin was given.
1937if test "${with_microwin+set}" = set; then
1938 withval="$with_microwin"
1939 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1940fi
1941
10f2d63a 1942
8168de4c
VZ
1943# Check whether --enable-gtk2 or --disable-gtk2 was given.
1944if test "${enable_gtk2+set}" = set; then
1945 enableval="$enable_gtk2"
1946 wxUSE_GTK2=1
10f2d63a 1947else
8168de4c 1948 wxUSE_GTK2=0
698dcdb6
VZ
1949fi
1950
703e0a69 1951
1e487827 1952
698dcdb6 1953 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
b040e242 1954echo "configure:1955: checking for --with-libpng" >&5
698dcdb6
VZ
1955 no_cache=0
1956 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1957if test "${with_libpng+set}" = set; then
1958 withval="$with_libpng"
698dcdb6 1959
10f2d63a 1960 if test "$withval" = yes; then
b12915c1 1961 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1962 elif test "$withval" = no; then
b12915c1 1963 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1964 elif test "$withval" = sys; then
1965 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1966 elif test "$withval" = builtin; then
1967 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1968 else
4f14bcd8 1969 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1970 fi
698dcdb6 1971
10f2d63a 1972else
698dcdb6 1973
b12915c1 1974 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1975 if test "x$LINE" != x ; then
1976 eval "DEFAULT_$LINE"
1977 else
1978 no_cache=1
1979 fi
1980
b12915c1 1981 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1982
1983fi
10f2d63a
VZ
1984
1985
b12915c1 1986 eval "$ac_cv_use_libpng"
10f2d63a 1987 if test "$no_cache" != 1; then
b12915c1 1988 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1989 fi
1990
b12915c1 1991 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1992 echo "$ac_t""yes" 1>&6
422107f9 1993 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1994 echo "$ac_t""no" 1>&6
422107f9 1995 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1996 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1997 elif test "$wxUSE_LIBPNG" = builtin; then
1998 echo "$ac_t""builtin version" 1>&6
422107f9 1999 else
4f14bcd8 2000 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2001 fi
698dcdb6 2002
10f2d63a 2003
698dcdb6 2004 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
b040e242 2005echo "configure:2006: checking for --with-libjpeg" >&5
10f2d63a 2006 no_cache=0
698dcdb6 2007 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2008if test "${with_libjpeg+set}" = set; then
2009 withval="$with_libjpeg"
698dcdb6 2010
10f2d63a 2011 if test "$withval" = yes; then
b12915c1 2012 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2013 elif test "$withval" = no; then
b12915c1 2014 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2015 elif test "$withval" = sys; then
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2017 elif test "$withval" = builtin; then
2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2019 else
4f14bcd8 2020 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2021 fi
698dcdb6 2022
10f2d63a 2023else
698dcdb6 2024
b12915c1 2025 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2026 if test "x$LINE" != x ; then
2027 eval "DEFAULT_$LINE"
2028 else
2029 no_cache=1
2030 fi
2031
b12915c1 2032 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2033
2034fi
10f2d63a
VZ
2035
2036
b12915c1 2037 eval "$ac_cv_use_libjpeg"
10f2d63a 2038 if test "$no_cache" != 1; then
b12915c1 2039 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2040 fi
2041
b12915c1 2042 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2043 echo "$ac_t""yes" 1>&6
422107f9 2044 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2045 echo "$ac_t""no" 1>&6
422107f9 2046 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2047 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2048 elif test "$wxUSE_LIBJPEG" = builtin; then
2049 echo "$ac_t""builtin version" 1>&6
422107f9 2050 else
4f14bcd8 2051 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2052 fi
698dcdb6 2053
10f2d63a 2054
698dcdb6 2055 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
b040e242 2056echo "configure:2057: checking for --with-libtiff" >&5
10f2d63a 2057 no_cache=0
698dcdb6 2058 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2059if test "${with_libtiff+set}" = set; then
2060 withval="$with_libtiff"
698dcdb6 2061
10f2d63a 2062 if test "$withval" = yes; then
b12915c1 2063 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2064 elif test "$withval" = no; then
b12915c1 2065 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2066 elif test "$withval" = sys; then
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2068 elif test "$withval" = builtin; then
2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2070 else
4f14bcd8 2071 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2072 fi
698dcdb6 2073
10f2d63a 2074else
698dcdb6 2075
b12915c1 2076 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
b12915c1 2083 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2084
2085fi
10f2d63a
VZ
2086
2087
b12915c1 2088 eval "$ac_cv_use_libtiff"
10f2d63a 2089 if test "$no_cache" != 1; then
b12915c1 2090 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2091 fi
2092
b12915c1 2093 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2094 echo "$ac_t""yes" 1>&6
0dcf9893 2095 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2096 echo "$ac_t""no" 1>&6
0dcf9893 2097 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2098 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2099 elif test "$wxUSE_LIBTIFF" = builtin; then
2100 echo "$ac_t""builtin version" 1>&6
0dcf9893 2101 else
4f14bcd8 2102 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2103 fi
698dcdb6 2104
10f2d63a 2105
698dcdb6 2106 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
b040e242 2107echo "configure:2108: checking for --with-freetype" >&5
3fed1840 2108 no_cache=0
698dcdb6 2109 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2110if test "${with_freetype+set}" = set; then
2111 withval="$with_freetype"
698dcdb6 2112
3fed1840
RR
2113 if test "$withval" = yes; then
2114 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2115 elif test "$withval" = no; then
2116 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2117 elif test "$withval" = sys; then
2118 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2119 elif test "$withval" = builtin; then
2120 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2121 else
4f14bcd8 2122 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2123 fi
698dcdb6 2124
3fed1840 2125else
698dcdb6 2126
3fed1840
RR
2127 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
2134 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2135
2136fi
3fed1840
RR
2137
2138
2139 eval "$ac_cv_use_freetype"
2140 if test "$no_cache" != 1; then
2141 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2142 fi
2143
2144 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2145 echo "$ac_t""yes" 1>&6
3fed1840 2146 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2147 echo "$ac_t""no" 1>&6
3fed1840 2148 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2149 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2150 elif test "$wxUSE_FREETYPE" = builtin; then
2151 echo "$ac_t""builtin version" 1>&6
3fed1840 2152 else
4f14bcd8 2153 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2154 fi
698dcdb6 2155
3fed1840 2156
698dcdb6 2157 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
b040e242 2158echo "configure:2159: checking for --with-opengl" >&5
10f2d63a 2159 no_cache=0
698dcdb6 2160 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2161if test "${with_opengl+set}" = set; then
2162 withval="$with_opengl"
698dcdb6 2163
10f2d63a 2164 if test "$withval" = yes; then
b12915c1 2165 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2166 else
b12915c1 2167 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2168 fi
698dcdb6 2169
10f2d63a 2170else
698dcdb6 2171
b12915c1 2172 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2173 if test "x$LINE" != x ; then
2174 eval "DEFAULT_$LINE"
2175 else
2176 no_cache=1
2177 fi
2178
b12915c1 2179 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2180
2181fi
10f2d63a
VZ
2182
2183
b12915c1 2184 eval "$ac_cv_use_opengl"
10f2d63a 2185 if test "$no_cache" != 1; then
b12915c1 2186 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2187 fi
2188
b12915c1 2189 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2190 echo "$ac_t""yes" 1>&6
10f2d63a 2191 else
698dcdb6 2192 echo "$ac_t""no" 1>&6
10f2d63a 2193 fi
698dcdb6 2194
10f2d63a 2195
b12915c1
VZ
2196fi
2197
1e487827 2198
698dcdb6 2199 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
b040e242 2200echo "configure:2201: checking for --with-dmalloc" >&5
698dcdb6
VZ
2201 no_cache=0
2202 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2203if test "${with_dmalloc+set}" = set; then
2204 withval="$with_dmalloc"
698dcdb6 2205
c7a2bf27 2206 if test "$withval" = yes; then
b12915c1 2207 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2208 else
b12915c1 2209 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2210 fi
698dcdb6 2211
c7a2bf27 2212else
698dcdb6 2213
b12915c1 2214 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
b12915c1 2221 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2222
2223fi
c7a2bf27
RR
2224
2225
b12915c1 2226 eval "$ac_cv_use_dmalloc"
c7a2bf27 2227 if test "$no_cache" != 1; then
b12915c1 2228 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2229 fi
2230
b12915c1 2231 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2232 echo "$ac_t""yes" 1>&6
c7a2bf27 2233 else
698dcdb6 2234 echo "$ac_t""no" 1>&6
c7a2bf27 2235 fi
698dcdb6 2236
c7a2bf27 2237
3e44f09d 2238 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
b040e242 2239echo "configure:2240: checking for --with-regex" >&5
3e44f09d
VZ
2240 no_cache=0
2241 # Check whether --with-regex or --without-regex was given.
2242if test "${with_regex+set}" = set; then
2243 withval="$with_regex"
2244
2245 if test "$withval" = yes; then
2246 ac_cv_use_regex='wxUSE_REGEX=yes'
2247 elif test "$withval" = no; then
2248 ac_cv_use_regex='wxUSE_REGEX=no'
2249 elif test "$withval" = sys; then
2250 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2251 elif test "$withval" = builtin; then
2252 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2253 else
4f14bcd8 2254 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2255 fi
2256
2257else
2258
2259 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2260 if test "x$LINE" != x ; then
2261 eval "DEFAULT_$LINE"
2262 else
2263 no_cache=1
2264 fi
2265
2266 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2267
2268fi
2269
2270
2271 eval "$ac_cv_use_regex"
2272 if test "$no_cache" != 1; then
2273 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2274 fi
2275
2276 if test "$wxUSE_REGEX" = yes; then
2277 echo "$ac_t""yes" 1>&6
2278 elif test "$wxUSE_REGEX" = no; then
2279 echo "$ac_t""no" 1>&6
2280 elif test "$wxUSE_REGEX" = sys; then
2281 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2282 elif test "$wxUSE_REGEX" = builtin; then
2283 echo "$ac_t""builtin version" 1>&6
3e44f09d 2284 else
4f14bcd8 2285 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2286 fi
2287
2288
698dcdb6 2289 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
b040e242 2290echo "configure:2291: checking for --with-zlib" >&5
10f2d63a 2291 no_cache=0
698dcdb6 2292 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2293if test "${with_zlib+set}" = set; then
2294 withval="$with_zlib"
698dcdb6 2295
10f2d63a 2296 if test "$withval" = yes; then
b12915c1 2297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2298 elif test "$withval" = no; then
b12915c1 2299 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2300 elif test "$withval" = sys; then
2301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2302 elif test "$withval" = builtin; then
2303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2304 else
4f14bcd8 2305 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2306 fi
698dcdb6 2307
10f2d63a 2308else
698dcdb6 2309
b12915c1 2310 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
b12915c1 2317 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2318
2319fi
10f2d63a
VZ
2320
2321
b12915c1 2322 eval "$ac_cv_use_zlib"
10f2d63a 2323 if test "$no_cache" != 1; then
b12915c1 2324 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2325 fi
2326
b12915c1 2327 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2328 echo "$ac_t""yes" 1>&6
422107f9 2329 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2330 echo "$ac_t""no" 1>&6
422107f9 2331 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2332 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2333 elif test "$wxUSE_ZLIB" = builtin; then
2334 echo "$ac_t""builtin version" 1>&6
422107f9 2335 else
4f14bcd8 2336 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2337 fi
698dcdb6 2338
10f2d63a 2339
698dcdb6 2340 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
b040e242 2341echo "configure:2342: checking for --with-odbc" >&5
10f2d63a 2342 no_cache=0
698dcdb6 2343 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2344if test "${with_odbc+set}" = set; then
2345 withval="$with_odbc"
698dcdb6 2346
10f2d63a
VZ
2347 if test "$withval" = yes; then
2348 ac_cv_use_odbc='wxUSE_ODBC=yes'
2349 else
2350 ac_cv_use_odbc='wxUSE_ODBC=no'
2351 fi
698dcdb6 2352
10f2d63a 2353else
698dcdb6 2354
10f2d63a
VZ
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2363
2364fi
10f2d63a
VZ
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2373 echo "$ac_t""yes" 1>&6
10f2d63a 2374 else
698dcdb6 2375 echo "$ac_t""no" 1>&6
10f2d63a 2376 fi
698dcdb6
VZ
2377
2378
10f2d63a 2379
698dcdb6 2380
698dcdb6 2381 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
b040e242 2382echo "configure:2383: checking for --enable-shared" >&5
10f2d63a
VZ
2383 no_cache=0
2384 # Check whether --enable-shared or --disable-shared was given.
2385if test "${enable_shared+set}" = set; then
2386 enableval="$enable_shared"
698dcdb6 2387
10f2d63a
VZ
2388 if test "$enableval" = yes; then
2389 ac_cv_use_shared='wxUSE_SHARED=yes'
2390 else
2391 ac_cv_use_shared='wxUSE_SHARED=no'
2392 fi
698dcdb6 2393
10f2d63a 2394else
698dcdb6 2395
10f2d63a
VZ
2396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2404
2405fi
10f2d63a
VZ
2406
2407
2408 eval "$ac_cv_use_shared"
2409 if test "$no_cache" != 1; then
2410 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2411 fi
2412
2413 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2414 echo "$ac_t""yes" 1>&6
10f2d63a 2415 else
698dcdb6 2416 echo "$ac_t""no" 1>&6
10f2d63a 2417 fi
698dcdb6 2418
10f2d63a 2419
3a922bb4 2420 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
b040e242 2421echo "configure:2422: checking for --enable-soname" >&5
00cf1208 2422 no_cache=0
3a922bb4
RL
2423 # Check whether --enable-soname or --disable-soname was given.
2424if test "${enable_soname+set}" = set; then
2425 enableval="$enable_soname"
698dcdb6 2426
00cf1208 2427 if test "$enableval" = yes; then
3a922bb4 2428 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2429 else
3a922bb4 2430 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2431 fi
698dcdb6 2432
00cf1208 2433else
698dcdb6 2434
3a922bb4 2435 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2436 if test "x$LINE" != x ; then
2437 eval "DEFAULT_$LINE"
2438 else
2439 no_cache=1
2440 fi
2441
3a922bb4 2442 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2443
2444fi
00cf1208
RR
2445
2446
3a922bb4 2447 eval "$ac_cv_use_soname"
00cf1208 2448 if test "$no_cache" != 1; then
3a922bb4 2449 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2450 fi
2451
3a922bb4 2452 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2453 echo "$ac_t""yes" 1>&6
00cf1208 2454 else
698dcdb6 2455 echo "$ac_t""no" 1>&6
00cf1208 2456 fi
698dcdb6 2457
00cf1208 2458
698dcdb6 2459 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
b040e242 2460echo "configure:2461: checking for --enable-optimise" >&5
10f2d63a
VZ
2461 no_cache=0
2462 # Check whether --enable-optimise or --disable-optimise was given.
2463if test "${enable_optimise+set}" = set; then
2464 enableval="$enable_optimise"
698dcdb6 2465
10f2d63a
VZ
2466 if test "$enableval" = yes; then
2467 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2468 else
2469 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2470 fi
698dcdb6 2471
10f2d63a 2472else
698dcdb6 2473
10f2d63a
VZ
2474 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2475 if test "x$LINE" != x ; then
2476 eval "DEFAULT_$LINE"
2477 else
2478 no_cache=1
2479 fi
2480
2481 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2482
2483fi
10f2d63a
VZ
2484
2485
2486 eval "$ac_cv_use_optimise"
2487 if test "$no_cache" != 1; then
2488 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2489 fi
2490
2491 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2492 echo "$ac_t""yes" 1>&6
10f2d63a 2493 else
698dcdb6 2494 echo "$ac_t""no" 1>&6
10f2d63a 2495 fi
698dcdb6 2496
10f2d63a 2497
698dcdb6 2498 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
b040e242 2499echo "configure:2500: checking for --enable-debug" >&5
10f2d63a
VZ
2500 no_cache=0
2501 # Check whether --enable-debug or --disable-debug was given.
2502if test "${enable_debug+set}" = set; then
2503 enableval="$enable_debug"
698dcdb6 2504
10f2d63a
VZ
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug='wxUSE_DEBUG=yes'
2507 else
2508 ac_cv_use_debug='wxUSE_DEBUG=no'
2509 fi
698dcdb6 2510
10f2d63a 2511else
698dcdb6 2512
10f2d63a
VZ
2513 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2521
2522fi
10f2d63a
VZ
2523
2524
2525 eval "$ac_cv_use_debug"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2531 echo "$ac_t""yes" 1>&6
10f2d63a 2532 else
698dcdb6 2533 echo "$ac_t""no" 1>&6
10f2d63a 2534 fi
698dcdb6 2535
10f2d63a 2536
683dccda
GD
2537
2538 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
b040e242 2539echo "configure:2540: checking for --enable-precomp" >&5
683dccda
GD
2540 no_cache=0
2541 # Check whether --enable-precomp or --disable-precomp was given.
2542if test "${enable_precomp+set}" = set; then
2543 enableval="$enable_precomp"
2544
2545 if test "$enableval" = yes; then
2546 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2547 else
2548 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2549 fi
2550
2551else
2552
2553 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2561
2562fi
2563
2564
2565 eval "$ac_cv_use_precomp"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_PRECOMP" = yes; then
2571 echo "$ac_t""yes" 1>&6
2572 else
2573 echo "$ac_t""no" 1>&6
2574 fi
2575
2576
10f2d63a
VZ
2577if test "$wxUSE_DEBUG" = "yes"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=yes
2579 DEFAULT_wxUSE_DEBUG_INFO=yes
2580elif test "$wxUSE_DEBUG" = "no"; then
2581 DEFAULT_wxUSE_DEBUG_FLAG=no
2582 DEFAULT_wxUSE_DEBUG_INFO=no
2583fi
2584
698dcdb6
VZ
2585
2586 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
b040e242 2587echo "configure:2588: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2588 no_cache=0
2589 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2590if test "${enable_debug_flag+set}" = set; then
2591 enableval="$enable_debug_flag"
698dcdb6 2592
10f2d63a
VZ
2593 if test "$enableval" = yes; then
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2595 else
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2597 fi
698dcdb6 2598
10f2d63a 2599else
698dcdb6 2600
10f2d63a
VZ
2601 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2602 if test "x$LINE" != x ; then
2603 eval "DEFAULT_$LINE"
2604 else
2605 no_cache=1
2606 fi
2607
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2609
2610fi
10f2d63a
VZ
2611
2612
2613 eval "$ac_cv_use_debug_flag"
2614 if test "$no_cache" != 1; then
2615 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2616 fi
2617
2618 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2619 echo "$ac_t""yes" 1>&6
10f2d63a 2620 else
698dcdb6 2621 echo "$ac_t""no" 1>&6
10f2d63a 2622 fi
698dcdb6 2623
10f2d63a 2624
698dcdb6 2625 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
b040e242 2626echo "configure:2627: checking for --enable-debug_info" >&5
10f2d63a
VZ
2627 no_cache=0
2628 # Check whether --enable-debug_info or --disable-debug_info was given.
2629if test "${enable_debug_info+set}" = set; then
2630 enableval="$enable_debug_info"
698dcdb6 2631
10f2d63a
VZ
2632 if test "$enableval" = yes; then
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2634 else
2635 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2636 fi
698dcdb6 2637
10f2d63a 2638else
698dcdb6 2639
10f2d63a
VZ
2640 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2648
2649fi
10f2d63a
VZ
2650
2651
2652 eval "$ac_cv_use_debug_info"
2653 if test "$no_cache" != 1; then
2654 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2655 fi
2656
2657 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2658 echo "$ac_t""yes" 1>&6
10f2d63a 2659 else
698dcdb6 2660 echo "$ac_t""no" 1>&6
10f2d63a 2661 fi
698dcdb6 2662
10f2d63a 2663
698dcdb6 2664 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
b040e242 2665echo "configure:2666: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2666 no_cache=0
2667 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2668if test "${enable_debug_gdb+set}" = set; then
2669 enableval="$enable_debug_gdb"
698dcdb6 2670
10f2d63a
VZ
2671 if test "$enableval" = yes; then
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2673 else
2674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2675 fi
698dcdb6 2676
10f2d63a 2677else
698dcdb6 2678
10f2d63a
VZ
2679 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2687
2688fi
10f2d63a
VZ
2689
2690
2691 eval "$ac_cv_use_debug_gdb"
2692 if test "$no_cache" != 1; then
2693 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2694 fi
2695
2696 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2697 echo "$ac_t""yes" 1>&6
10f2d63a 2698 else
698dcdb6 2699 echo "$ac_t""no" 1>&6
10f2d63a 2700 fi
698dcdb6 2701
10f2d63a 2702
698dcdb6 2703 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
b040e242 2704echo "configure:2705: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2705 no_cache=0
2706 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2707if test "${enable_debug_cntxt+set}" = set; then
2708 enableval="$enable_debug_cntxt"
698dcdb6 2709
10f2d63a
VZ
2710 if test "$enableval" = yes; then
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2712 else
2713 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2714 fi
698dcdb6 2715
10f2d63a 2716else
698dcdb6 2717
10f2d63a
VZ
2718 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2726
2727fi
10f2d63a
VZ
2728
2729
2730 eval "$ac_cv_use_debug_cntxt"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2736 echo "$ac_t""yes" 1>&6
10f2d63a 2737 else
698dcdb6 2738 echo "$ac_t""no" 1>&6
10f2d63a 2739 fi
698dcdb6 2740
10f2d63a 2741
698dcdb6 2742 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
b040e242 2743echo "configure:2744: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2744 no_cache=0
2745 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2746if test "${enable_mem_tracing+set}" = set; then
2747 enableval="$enable_mem_tracing"
698dcdb6 2748
10f2d63a
VZ
2749 if test "$enableval" = yes; then
2750 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2751 else
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2753 fi
698dcdb6 2754
10f2d63a 2755else
698dcdb6 2756
10f2d63a
VZ
2757 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2758 if test "x$LINE" != x ; then
2759 eval "DEFAULT_$LINE"
2760 else
2761 no_cache=1
2762 fi
2763
2764 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2765
2766fi
10f2d63a
VZ
2767
2768
2769 eval "$ac_cv_use_mem_tracing"
2770 if test "$no_cache" != 1; then
2771 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2772 fi
2773
2774 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2775 echo "$ac_t""yes" 1>&6
10f2d63a 2776 else
698dcdb6 2777 echo "$ac_t""no" 1>&6
10f2d63a 2778 fi
698dcdb6 2779
10f2d63a 2780
698dcdb6 2781 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
b040e242 2782echo "configure:2783: checking for --enable-profile" >&5
10f2d63a
VZ
2783 no_cache=0
2784 # Check whether --enable-profile or --disable-profile was given.
2785if test "${enable_profile+set}" = set; then
2786 enableval="$enable_profile"
698dcdb6 2787
10f2d63a
VZ
2788 if test "$enableval" = yes; then
2789 ac_cv_use_profile='wxUSE_PROFILE=yes'
2790 else
2791 ac_cv_use_profile='wxUSE_PROFILE=no'
2792 fi
698dcdb6 2793
10f2d63a 2794else
698dcdb6 2795
10f2d63a
VZ
2796 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2804
2805fi
10f2d63a
VZ
2806
2807
2808 eval "$ac_cv_use_profile"
2809 if test "$no_cache" != 1; then
2810 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2811 fi
2812
2813 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2814 echo "$ac_t""yes" 1>&6
10f2d63a 2815 else
698dcdb6 2816 echo "$ac_t""no" 1>&6
10f2d63a 2817 fi
698dcdb6 2818
10f2d63a 2819
698dcdb6 2820 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
b040e242 2821echo "configure:2822: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2822 no_cache=0
2823 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2824if test "${enable_no_rtti+set}" = set; then
2825 enableval="$enable_no_rtti"
698dcdb6 2826
10f2d63a
VZ
2827 if test "$enableval" = yes; then
2828 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2829 else
2830 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2831 fi
698dcdb6 2832
10f2d63a 2833else
698dcdb6 2834
10f2d63a
VZ
2835 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2836 if test "x$LINE" != x ; then
2837 eval "DEFAULT_$LINE"
2838 else
2839 no_cache=1
2840 fi
2841
2842 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2843
2844fi
10f2d63a
VZ
2845
2846
2847 eval "$ac_cv_use_no_rtti"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2853 echo "$ac_t""yes" 1>&6
10f2d63a 2854 else
698dcdb6 2855 echo "$ac_t""no" 1>&6
10f2d63a 2856 fi
698dcdb6 2857
10f2d63a 2858
698dcdb6 2859 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
b040e242 2860echo "configure:2861: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2861 no_cache=0
2862 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2863if test "${enable_no_exceptions+set}" = set; then
2864 enableval="$enable_no_exceptions"
698dcdb6 2865
10f2d63a
VZ
2866 if test "$enableval" = yes; then
2867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2868 else
2869 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2870 fi
698dcdb6 2871
10f2d63a 2872else
698dcdb6 2873
10f2d63a
VZ
2874 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2875 if test "x$LINE" != x ; then
2876 eval "DEFAULT_$LINE"
2877 else
2878 no_cache=1
2879 fi
2880
2881 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2882
2883fi
10f2d63a
VZ
2884
2885
2886 eval "$ac_cv_use_no_exceptions"
2887 if test "$no_cache" != 1; then
2888 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2889 fi
2890
2891 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2892 echo "$ac_t""yes" 1>&6
10f2d63a 2893 else
698dcdb6 2894 echo "$ac_t""no" 1>&6
10f2d63a 2895 fi
698dcdb6 2896
10f2d63a 2897
698dcdb6 2898 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
b040e242 2899echo "configure:2900: checking for --enable-permissive" >&5
10f2d63a
VZ
2900 no_cache=0
2901 # Check whether --enable-permissive or --disable-permissive was given.
2902if test "${enable_permissive+set}" = set; then
2903 enableval="$enable_permissive"
698dcdb6 2904
10f2d63a
VZ
2905 if test "$enableval" = yes; then
2906 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2907 else
2908 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2909 fi
698dcdb6 2910
10f2d63a 2911else
698dcdb6 2912
10f2d63a
VZ
2913 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2914 if test "x$LINE" != x ; then
2915 eval "DEFAULT_$LINE"
2916 else
2917 no_cache=1
2918 fi
2919
2920 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2921
2922fi
10f2d63a
VZ
2923
2924
2925 eval "$ac_cv_use_permissive"
2926 if test "$no_cache" != 1; then
2927 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2928 fi
2929
2930 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2931 echo "$ac_t""yes" 1>&6
10f2d63a 2932 else
698dcdb6 2933 echo "$ac_t""no" 1>&6
10f2d63a 2934 fi
698dcdb6 2935
10f2d63a 2936
698dcdb6 2937 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
b040e242 2938echo "configure:2939: checking for --enable-no_deps" >&5
10f2d63a
VZ
2939 no_cache=0
2940 # Check whether --enable-no_deps or --disable-no_deps was given.
2941if test "${enable_no_deps+set}" = set; then
2942 enableval="$enable_no_deps"
698dcdb6 2943
10f2d63a
VZ
2944 if test "$enableval" = yes; then
2945 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2946 else
2947 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2948 fi
698dcdb6 2949
10f2d63a 2950else
698dcdb6 2951
10f2d63a
VZ
2952 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2953 if test "x$LINE" != x ; then
2954 eval "DEFAULT_$LINE"
2955 else
2956 no_cache=1
2957 fi
2958
2959 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2960
2961fi
10f2d63a
VZ
2962
2963
2964 eval "$ac_cv_use_no_deps"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2970 echo "$ac_t""yes" 1>&6
10f2d63a 2971 else
698dcdb6 2972 echo "$ac_t""no" 1>&6
10f2d63a 2973 fi
698dcdb6
VZ
2974
2975
10f2d63a 2976
54276ccf 2977 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
b040e242 2978echo "configure:2979: checking for --enable-compat20" >&5
54276ccf
VZ
2979 no_cache=0
2980 # Check whether --enable-compat20 or --disable-compat20 was given.
2981if test "${enable_compat20+set}" = set; then
2982 enableval="$enable_compat20"
2983
2984 if test "$enableval" = yes; then
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2986 else
2987 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2988 fi
2989
2990else
2991
2992 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3000
3001fi
3002
3003
3004 eval "$ac_cv_use_compat20"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3010 echo "$ac_t""yes" 1>&6
3011 else
3012 echo "$ac_t""no" 1>&6
3013 fi
3014
3015
3016 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
b040e242 3017echo "configure:3018: checking for --enable-compat22" >&5
54276ccf
VZ
3018 no_cache=0
3019 # Check whether --enable-compat22 or --disable-compat22 was given.
3020if test "${enable_compat22+set}" = set; then
3021 enableval="$enable_compat22"
3022
3023 if test "$enableval" = yes; then
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3025 else
3026 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3027 fi
3028
3029else
3030
3031 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3039
3040fi
3041
3042
3043 eval "$ac_cv_use_compat22"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3049 echo "$ac_t""yes" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3052 fi
3053
3054
3055
698dcdb6
VZ
3056
3057 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
b040e242 3058echo "configure:3059: checking for --enable-intl" >&5
10f2d63a
VZ
3059 no_cache=0
3060 # Check whether --enable-intl or --disable-intl was given.
3061if test "${enable_intl+set}" = set; then
3062 enableval="$enable_intl"
698dcdb6 3063
10f2d63a
VZ
3064 if test "$enableval" = yes; then
3065 ac_cv_use_intl='wxUSE_INTL=yes'
3066 else
3067 ac_cv_use_intl='wxUSE_INTL=no'
3068 fi
698dcdb6 3069
10f2d63a 3070else
698dcdb6 3071
10f2d63a
VZ
3072 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3080
3081fi
10f2d63a
VZ
3082
3083
3084 eval "$ac_cv_use_intl"
3085 if test "$no_cache" != 1; then
3086 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3087 fi
3088
3089 if test "$wxUSE_INTL" = yes; then
698dcdb6 3090 echo "$ac_t""yes" 1>&6
10f2d63a 3091 else
698dcdb6 3092 echo "$ac_t""no" 1>&6
10f2d63a 3093 fi
698dcdb6 3094
10f2d63a 3095
698dcdb6 3096 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
b040e242 3097echo "configure:3098: checking for --enable-config" >&5
10f2d63a
VZ
3098 no_cache=0
3099 # Check whether --enable-config or --disable-config was given.
3100if test "${enable_config+set}" = set; then
3101 enableval="$enable_config"
698dcdb6 3102
10f2d63a
VZ
3103 if test "$enableval" = yes; then
3104 ac_cv_use_config='wxUSE_CONFIG=yes'
3105 else
3106 ac_cv_use_config='wxUSE_CONFIG=no'
3107 fi
698dcdb6 3108
10f2d63a 3109else
698dcdb6 3110
10f2d63a
VZ
3111 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3119
3120fi
10f2d63a
VZ
3121
3122
3123 eval "$ac_cv_use_config"
3124 if test "$no_cache" != 1; then
3125 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3126 fi
3127
3128 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3129 echo "$ac_t""yes" 1>&6
10f2d63a 3130 else
698dcdb6 3131 echo "$ac_t""no" 1>&6
10f2d63a 3132 fi
698dcdb6
VZ
3133
3134
b12915c1 3135
a1622950 3136 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
b040e242 3137echo "configure:3138: checking for --enable-protocols" >&5
a1622950
VZ
3138 no_cache=0
3139 # Check whether --enable-protocols or --disable-protocols was given.
3140if test "${enable_protocols+set}" = set; then
3141 enableval="$enable_protocols"
3142
3143 if test "$enableval" = yes; then
3144 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3145 else
3146 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3147 fi
3148
3149else
3150
3151 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3159
3160fi
3161
3162
3163 eval "$ac_cv_use_protocols"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_PROTOCOL" = yes; then
3169 echo "$ac_t""yes" 1>&6
3170 else
3171 echo "$ac_t""no" 1>&6
3172 fi
3173
3174
3175 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
b040e242 3176echo "configure:3177: checking for --enable-ftp" >&5
a1622950
VZ
3177 no_cache=0
3178 # Check whether --enable-ftp or --disable-ftp was given.
3179if test "${enable_ftp+set}" = set; then
3180 enableval="$enable_ftp"
3181
3182 if test "$enableval" = yes; then
3183 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3184 else
3185 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3186 fi
3187
3188else
3189
3190 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3191 if test "x$LINE" != x ; then
3192 eval "DEFAULT_$LINE"
3193 else
3194 no_cache=1
3195 fi
3196
3197 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3198
3199fi
3200
3201
3202 eval "$ac_cv_use_ftp"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3208 echo "$ac_t""yes" 1>&6
3209 else
3210 echo "$ac_t""no" 1>&6
3211 fi
3212
3213
3214 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
b040e242 3215echo "configure:3216: checking for --enable-http" >&5
a1622950
VZ
3216 no_cache=0
3217 # Check whether --enable-http or --disable-http was given.
3218if test "${enable_http+set}" = set; then
3219 enableval="$enable_http"
3220
3221 if test "$enableval" = yes; then
3222 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3223 else
3224 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3237
3238fi
3239
3240
3241 eval "$ac_cv_use_http"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3247 echo "$ac_t""yes" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252
3253 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
b040e242 3254echo "configure:3255: checking for --enable-fileproto" >&5
a1622950
VZ
3255 no_cache=0
3256 # Check whether --enable-fileproto or --disable-fileproto was given.
3257if test "${enable_fileproto+set}" = set; then
3258 enableval="$enable_fileproto"
3259
3260 if test "$enableval" = yes; then
3261 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3262 else
3263 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3264 fi
3265
3266else
3267
3268 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3269 if test "x$LINE" != x ; then
3270 eval "DEFAULT_$LINE"
3271 else
3272 no_cache=1
3273 fi
3274
3275 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3276
3277fi
3278
3279
3280 eval "$ac_cv_use_fileproto"
3281 if test "$no_cache" != 1; then
3282 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3283 fi
3284
3285 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3286 echo "$ac_t""yes" 1>&6
3287 else
3288 echo "$ac_t""no" 1>&6
3289 fi
3290
3291
698dcdb6 3292 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
b040e242 3293echo "configure:3294: checking for --enable-sockets" >&5
10f2d63a
VZ
3294 no_cache=0
3295 # Check whether --enable-sockets or --disable-sockets was given.
3296if test "${enable_sockets+set}" = set; then
3297 enableval="$enable_sockets"
698dcdb6 3298
10f2d63a
VZ
3299 if test "$enableval" = yes; then
3300 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3301 else
3302 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3303 fi
698dcdb6 3304
10f2d63a 3305else
698dcdb6 3306
10f2d63a
VZ
3307 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3315
3316fi
10f2d63a
VZ
3317
3318
3319 eval "$ac_cv_use_sockets"
3320 if test "$no_cache" != 1; then
3321 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3322 fi
3323
3324 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3325 echo "$ac_t""yes" 1>&6
10f2d63a 3326 else
698dcdb6 3327 echo "$ac_t""no" 1>&6
10f2d63a 3328 fi
698dcdb6 3329
b12915c1 3330
698dcdb6
VZ
3331
3332 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
b040e242 3333echo "configure:3334: checking for --enable-ipc" >&5
10f2d63a 3334 no_cache=0
eb4efbdc
VZ
3335 # Check whether --enable-ipc or --disable-ipc was given.
3336if test "${enable_ipc+set}" = set; then
3337 enableval="$enable_ipc"
698dcdb6 3338
10f2d63a 3339 if test "$enableval" = yes; then
eb4efbdc 3340 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3341 else
eb4efbdc 3342 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3343 fi
698dcdb6 3344
10f2d63a 3345else
698dcdb6 3346
eb4efbdc 3347 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
eb4efbdc 3354 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3355
3356fi
10f2d63a
VZ
3357
3358
eb4efbdc 3359 eval "$ac_cv_use_ipc"
10f2d63a 3360 if test "$no_cache" != 1; then
eb4efbdc 3361 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3362 fi
3363
eb4efbdc 3364 if test "$wxUSE_IPC" = yes; then
698dcdb6 3365 echo "$ac_t""yes" 1>&6
10f2d63a 3366 else
698dcdb6 3367 echo "$ac_t""no" 1>&6
10f2d63a 3368 fi
698dcdb6
VZ
3369
3370
eb4efbdc 3371
1e6feb95 3372 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
b040e242 3373echo "configure:3374: checking for --enable-cmdline" >&5
1e6feb95
VZ
3374 no_cache=0
3375 # Check whether --enable-cmdline or --disable-cmdline was given.
3376if test "${enable_cmdline+set}" = set; then
3377 enableval="$enable_cmdline"
3378
3379 if test "$enableval" = yes; then
3380 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3381 else
3382 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3383 fi
3384
3385else
3386
3387 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3388 if test "x$LINE" != x ; then
3389 eval "DEFAULT_$LINE"
3390 else
3391 no_cache=1
3392 fi
3393
3394 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3395
3396fi
3397
3398
3399 eval "$ac_cv_use_cmdline"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3405 echo "$ac_t""yes" 1>&6
3406 else
3407 echo "$ac_t""no" 1>&6
3408 fi
3409
3410
3411 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
b040e242 3412echo "configure:3413: checking for --enable-datetime" >&5
1e6feb95
VZ
3413 no_cache=0
3414 # Check whether --enable-datetime or --disable-datetime was given.
3415if test "${enable_datetime+set}" = set; then
3416 enableval="$enable_datetime"
3417
3418 if test "$enableval" = yes; then
3419 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3420 else
3421 ac_cv_use_datetime='wxUSE_DATETIME=no'
3422 fi
3423
3424else
3425
3426 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3427 if test "x$LINE" != x ; then
3428 eval "DEFAULT_$LINE"
3429 else
3430 no_cache=1
3431 fi
3432
3433 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3434
3435fi
3436
3437
3438 eval "$ac_cv_use_datetime"
3439 if test "$no_cache" != 1; then
3440 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3441 fi
3442
3443 if test "$wxUSE_DATETIME" = yes; then
3444 echo "$ac_t""yes" 1>&6
3445 else
3446 echo "$ac_t""no" 1>&6
3447 fi
3448
3449
3450 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
b040e242 3451echo "configure:3452: checking for --enable-timedate" >&5
1e6feb95
VZ
3452 no_cache=0
3453 # Check whether --enable-timedate or --disable-timedate was given.
3454if test "${enable_timedate+set}" = set; then
3455 enableval="$enable_timedate"
3456
3457 if test "$enableval" = yes; then
3458 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3459 else
3460 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3461 fi
3462
3463else
3464
3465 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3466 if test "x$LINE" != x ; then
3467 eval "DEFAULT_$LINE"
3468 else
3469 no_cache=1
3470 fi
3471
3472 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3473
3474fi
3475
3476
3477 eval "$ac_cv_use_timedate"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_TIMEDATE" = yes; then
3483 echo "$ac_t""yes" 1>&6
3484 else
3485 echo "$ac_t""no" 1>&6
3486 fi
3487
3488
3489 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
b040e242 3490echo "configure:3491: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3491 no_cache=0
3492 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3493if test "${enable_stopwatch+set}" = set; then
3494 enableval="$enable_stopwatch"
3495
3496 if test "$enableval" = yes; then
3497 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3498 else
3499 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3500 fi
3501
3502else
3503
3504 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3505 if test "x$LINE" != x ; then
3506 eval "DEFAULT_$LINE"
3507 else
3508 no_cache=1
3509 fi
3510
3511 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3512
3513fi
3514
3515
3516 eval "$ac_cv_use_stopwatch"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_STOPWATCH" = yes; then
3522 echo "$ac_t""yes" 1>&6
3523 else
3524 echo "$ac_t""no" 1>&6
3525 fi
3526
3527
698dcdb6 3528 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
b040e242 3529echo "configure:3530: checking for --enable-dialupman" >&5
10f2d63a 3530 no_cache=0
eb4efbdc
VZ
3531 # Check whether --enable-dialupman or --disable-dialupman was given.
3532if test "${enable_dialupman+set}" = set; then
3533 enableval="$enable_dialupman"
698dcdb6 3534
10f2d63a 3535 if test "$enableval" = yes; then
eb4efbdc 3536 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3537 else
eb4efbdc 3538 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3539 fi
698dcdb6 3540
10f2d63a 3541else
698dcdb6 3542
eb4efbdc 3543 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
eb4efbdc 3550 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3551
3552fi
10f2d63a
VZ
3553
3554
eb4efbdc 3555 eval "$ac_cv_use_dialupman"
10f2d63a 3556 if test "$no_cache" != 1; then
eb4efbdc 3557 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3558 fi
3559
eb4efbdc 3560 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3561 echo "$ac_t""yes" 1>&6
10f2d63a 3562 else
698dcdb6 3563 echo "$ac_t""no" 1>&6
10f2d63a 3564 fi
698dcdb6 3565
10f2d63a 3566
698dcdb6 3567 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
b040e242 3568echo "configure:3569: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3569 no_cache=0
3570 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3571if test "${enable_apple_ieee+set}" = set; then
3572 enableval="$enable_apple_ieee"
698dcdb6 3573
10f2d63a
VZ
3574 if test "$enableval" = yes; then
3575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3576 else
3577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3578 fi
698dcdb6 3579
10f2d63a 3580else
698dcdb6 3581
10f2d63a
VZ
3582 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3590
3591fi
10f2d63a
VZ
3592
3593
3594 eval "$ac_cv_use_apple_ieee"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3600 echo "$ac_t""yes" 1>&6
10f2d63a 3601 else
698dcdb6 3602 echo "$ac_t""no" 1>&6
10f2d63a 3603 fi
698dcdb6 3604
10f2d63a 3605
1e6feb95 3606 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
b040e242 3607echo "configure:3608: checking for --enable-timer" >&5
10f2d63a 3608 no_cache=0
1e6feb95
VZ
3609 # Check whether --enable-timer or --disable-timer was given.
3610if test "${enable_timer+set}" = set; then
3611 enableval="$enable_timer"
698dcdb6 3612
10f2d63a 3613 if test "$enableval" = yes; then
1e6feb95 3614 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3615 else
1e6feb95 3616 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3617 fi
698dcdb6 3618
10f2d63a 3619else
698dcdb6 3620
1e6feb95 3621 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
1e6feb95 3628 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3629
3630fi
10f2d63a
VZ
3631
3632
1e6feb95 3633 eval "$ac_cv_use_timer"
10f2d63a 3634 if test "$no_cache" != 1; then
1e6feb95 3635 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3636 fi
3637
1e6feb95 3638 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3639 echo "$ac_t""yes" 1>&6
10f2d63a 3640 else
698dcdb6 3641 echo "$ac_t""no" 1>&6
10f2d63a 3642 fi
698dcdb6 3643
10f2d63a 3644
698dcdb6 3645 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
b040e242 3646echo "configure:3647: checking for --enable-wave" >&5
10f2d63a
VZ
3647 no_cache=0
3648 # Check whether --enable-wave or --disable-wave was given.
3649if test "${enable_wave+set}" = set; then
3650 enableval="$enable_wave"
698dcdb6 3651
10f2d63a
VZ
3652 if test "$enableval" = yes; then
3653 ac_cv_use_wave='wxUSE_WAVE=yes'
3654 else
3655 ac_cv_use_wave='wxUSE_WAVE=no'
3656 fi
698dcdb6 3657
10f2d63a 3658else
698dcdb6 3659
10f2d63a
VZ
3660 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3668
3669fi
10f2d63a
VZ
3670
3671
3672 eval "$ac_cv_use_wave"
3673 if test "$no_cache" != 1; then
3674 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3675 fi
3676
3677 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3678 echo "$ac_t""yes" 1>&6
10f2d63a 3679 else
698dcdb6 3680 echo "$ac_t""no" 1>&6
10f2d63a 3681 fi
698dcdb6 3682
10f2d63a 3683
698dcdb6 3684 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
b040e242 3685echo "configure:3686: checking for --enable-fraction" >&5
10f2d63a
VZ
3686 no_cache=0
3687 # Check whether --enable-fraction or --disable-fraction was given.
3688if test "${enable_fraction+set}" = set; then
3689 enableval="$enable_fraction"
698dcdb6 3690
10f2d63a
VZ
3691 if test "$enableval" = yes; then
3692 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3693 else
3694 ac_cv_use_fraction='wxUSE_FRACTION=no'
3695 fi
698dcdb6 3696
10f2d63a 3697else
698dcdb6 3698
10f2d63a
VZ
3699 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3700 if test "x$LINE" != x ; then
3701 eval "DEFAULT_$LINE"
3702 else
3703 no_cache=1
3704 fi
3705
3706 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3707
3708fi
10f2d63a
VZ
3709
3710
3711 eval "$ac_cv_use_fraction"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3717 echo "$ac_t""yes" 1>&6
10f2d63a 3718 else
698dcdb6 3719 echo "$ac_t""no" 1>&6
10f2d63a 3720 fi
698dcdb6 3721
10f2d63a 3722
698dcdb6 3723 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
b040e242 3724echo "configure:3725: checking for --enable-dynlib" >&5
10f2d63a
VZ
3725 no_cache=0
3726 # Check whether --enable-dynlib or --disable-dynlib was given.
3727if test "${enable_dynlib+set}" = set; then
3728 enableval="$enable_dynlib"
698dcdb6 3729
10f2d63a
VZ
3730 if test "$enableval" = yes; then
3731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3732 else
3733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3734 fi
698dcdb6 3735
10f2d63a 3736else
698dcdb6 3737
10f2d63a
VZ
3738 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3746
3747fi
10f2d63a
VZ
3748
3749
3750 eval "$ac_cv_use_dynlib"
3751 if test "$no_cache" != 1; then
3752 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3753 fi
3754
3755 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3756 echo "$ac_t""yes" 1>&6
10f2d63a 3757 else
698dcdb6 3758 echo "$ac_t""no" 1>&6
10f2d63a 3759 fi
698dcdb6 3760
10f2d63a 3761
0b9ab0bd 3762 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
b040e242 3763echo "configure:3764: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3764 no_cache=0
3765 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3766if test "${enable_dynamicloader+set}" = set; then
3767 enableval="$enable_dynamicloader"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3771 else
3772 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3773 fi
3774
3775else
3776
3777 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3785
3786fi
3787
3788
3789 eval "$ac_cv_use_dynamicloader"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3795 echo "$ac_t""yes" 1>&6
3796 else
3797 echo "$ac_t""no" 1>&6
3798 fi
3799
3800
698dcdb6 3801 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
b040e242 3802echo "configure:3803: checking for --enable-longlong" >&5
10f2d63a
VZ
3803 no_cache=0
3804 # Check whether --enable-longlong or --disable-longlong was given.
3805if test "${enable_longlong+set}" = set; then
3806 enableval="$enable_longlong"
698dcdb6 3807
10f2d63a
VZ
3808 if test "$enableval" = yes; then
3809 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3810 else
3811 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3812 fi
698dcdb6 3813
10f2d63a 3814else
698dcdb6 3815
10f2d63a
VZ
3816 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3824
3825fi
10f2d63a
VZ
3826
3827
3828 eval "$ac_cv_use_longlong"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3834 echo "$ac_t""yes" 1>&6
10f2d63a 3835 else
698dcdb6 3836 echo "$ac_t""no" 1>&6
10f2d63a 3837 fi
698dcdb6 3838
10f2d63a 3839
698dcdb6 3840 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
b040e242 3841echo "configure:3842: checking for --enable-geometry" >&5
e8f65ba6
RR
3842 no_cache=0
3843 # Check whether --enable-geometry or --disable-geometry was given.
3844if test "${enable_geometry+set}" = set; then
3845 enableval="$enable_geometry"
698dcdb6 3846
e8f65ba6
RR
3847 if test "$enableval" = yes; then
3848 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3849 else
3850 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3851 fi
698dcdb6 3852
e8f65ba6 3853else
698dcdb6 3854
e8f65ba6
RR
3855 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3856 if test "x$LINE" != x ; then
3857 eval "DEFAULT_$LINE"
3858 else
3859 no_cache=1
3860 fi
3861
3862 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3863
3864fi
e8f65ba6
RR
3865
3866
3867 eval "$ac_cv_use_geometry"
3868 if test "$no_cache" != 1; then
3869 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3870 fi
3871
3872 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3873 echo "$ac_t""yes" 1>&6
e8f65ba6 3874 else
698dcdb6 3875 echo "$ac_t""no" 1>&6
e8f65ba6 3876 fi
698dcdb6 3877
e8f65ba6 3878
698dcdb6 3879 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
b040e242 3880echo "configure:3881: checking for --enable-log" >&5
10f2d63a
VZ
3881 no_cache=0
3882 # Check whether --enable-log or --disable-log was given.
3883if test "${enable_log+set}" = set; then
3884 enableval="$enable_log"
698dcdb6 3885
10f2d63a
VZ
3886 if test "$enableval" = yes; then
3887 ac_cv_use_log='wxUSE_LOG=yes'
3888 else
3889 ac_cv_use_log='wxUSE_LOG=no'
3890 fi
698dcdb6 3891
10f2d63a 3892else
698dcdb6 3893
10f2d63a
VZ
3894 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3895 if test "x$LINE" != x ; then
3896 eval "DEFAULT_$LINE"
3897 else
3898 no_cache=1
3899 fi
3900
3901 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3902
3903fi
10f2d63a
VZ
3904
3905
3906 eval "$ac_cv_use_log"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_LOG" = yes; then
698dcdb6 3912 echo "$ac_t""yes" 1>&6
10f2d63a 3913 else
698dcdb6 3914 echo "$ac_t""no" 1>&6
10f2d63a 3915 fi
698dcdb6 3916
10f2d63a 3917
698dcdb6 3918 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
b040e242 3919echo "configure:3920: checking for --enable-streams" >&5
10f2d63a
VZ
3920 no_cache=0
3921 # Check whether --enable-streams or --disable-streams was given.
3922if test "${enable_streams+set}" = set; then
3923 enableval="$enable_streams"
698dcdb6 3924
10f2d63a
VZ
3925 if test "$enableval" = yes; then
3926 ac_cv_use_streams='wxUSE_STREAMS=yes'
3927 else
3928 ac_cv_use_streams='wxUSE_STREAMS=no'
3929 fi
698dcdb6 3930
10f2d63a 3931else
698dcdb6 3932
10f2d63a
VZ
3933 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3941
3942fi
10f2d63a
VZ
3943
3944
3945 eval "$ac_cv_use_streams"
3946 if test "$no_cache" != 1; then
3947 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3948 fi
3949
3950 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3951 echo "$ac_t""yes" 1>&6
10f2d63a 3952 else
698dcdb6 3953 echo "$ac_t""no" 1>&6
10f2d63a 3954 fi
698dcdb6 3955
10f2d63a 3956
698dcdb6 3957 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
b040e242 3958echo "configure:3959: checking for --enable-file" >&5
10f2d63a
VZ
3959 no_cache=0
3960 # Check whether --enable-file or --disable-file was given.
3961if test "${enable_file+set}" = set; then
3962 enableval="$enable_file"
698dcdb6 3963
10f2d63a
VZ
3964 if test "$enableval" = yes; then
3965 ac_cv_use_file='wxUSE_FILE=yes'
3966 else
3967 ac_cv_use_file='wxUSE_FILE=no'
3968 fi
698dcdb6 3969
10f2d63a 3970else
698dcdb6 3971
10f2d63a
VZ
3972 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3973 if test "x$LINE" != x ; then
3974 eval "DEFAULT_$LINE"
3975 else
3976 no_cache=1
3977 fi
3978
3979 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3980
3981fi
10f2d63a
VZ
3982
3983
3984 eval "$ac_cv_use_file"
3985 if test "$no_cache" != 1; then
3986 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3987 fi
3988
3989 if test "$wxUSE_FILE" = yes; then
698dcdb6 3990 echo "$ac_t""yes" 1>&6
10f2d63a 3991 else
698dcdb6 3992 echo "$ac_t""no" 1>&6
10f2d63a 3993 fi
698dcdb6 3994
10f2d63a 3995
1e6feb95 3996 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
b040e242 3997echo "configure:3998: checking for --enable-ffile" >&5
10f2d63a 3998 no_cache=0
1e6feb95
VZ
3999 # Check whether --enable-ffile or --disable-ffile was given.
4000if test "${enable_ffile+set}" = set; then
4001 enableval="$enable_ffile"
698dcdb6 4002
10f2d63a 4003 if test "$enableval" = yes; then
1e6feb95 4004 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4005 else
1e6feb95 4006 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4007 fi
698dcdb6 4008
10f2d63a 4009else
698dcdb6 4010
1e6feb95 4011 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
1e6feb95 4018 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
4019
4020fi
10f2d63a
VZ
4021
4022
1e6feb95 4023 eval "$ac_cv_use_ffile"
10f2d63a 4024 if test "$no_cache" != 1; then
1e6feb95 4025 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4026 fi
4027
1e6feb95 4028 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4029 echo "$ac_t""yes" 1>&6
10f2d63a 4030 else
698dcdb6 4031 echo "$ac_t""no" 1>&6
10f2d63a 4032 fi
698dcdb6 4033
10f2d63a 4034
a3a584a7 4035 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
b040e242 4036echo "configure:4037: checking for --enable-textbuf" >&5
a3a584a7
VZ
4037 no_cache=0
4038 # Check whether --enable-textbuf or --disable-textbuf was given.
4039if test "${enable_textbuf+set}" = set; then
4040 enableval="$enable_textbuf"
4041
4042 if test "$enableval" = yes; then
4043 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4044 else
4045 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4046 fi
4047
4048else
4049
4050 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4058
4059fi
4060
4061
4062 eval "$ac_cv_use_textbuf"
4063 if test "$no_cache" != 1; then
4064 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4065 fi
4066
4067 if test "$wxUSE_TEXTBUFFER" = yes; then
4068 echo "$ac_t""yes" 1>&6
4069 else
4070 echo "$ac_t""no" 1>&6
4071 fi
4072
4073
1e6feb95 4074 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
b040e242 4075echo "configure:4076: checking for --enable-textfile" >&5
10f2d63a 4076 no_cache=0
1e6feb95
VZ
4077 # Check whether --enable-textfile or --disable-textfile was given.
4078if test "${enable_textfile+set}" = set; then
4079 enableval="$enable_textfile"
698dcdb6 4080
10f2d63a 4081 if test "$enableval" = yes; then
1e6feb95 4082 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4083 else
1e6feb95 4084 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4085 fi
698dcdb6 4086
10f2d63a 4087else
698dcdb6 4088
1e6feb95 4089 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
1e6feb95 4096 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4097
4098fi
10f2d63a
VZ
4099
4100
1e6feb95 4101 eval "$ac_cv_use_textfile"
10f2d63a 4102 if test "$no_cache" != 1; then
1e6feb95 4103 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4104 fi
4105
1e6feb95 4106 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4107 echo "$ac_t""yes" 1>&6
10f2d63a 4108 else
698dcdb6 4109 echo "$ac_t""no" 1>&6
10f2d63a 4110 fi
698dcdb6 4111
10f2d63a 4112
1e6feb95 4113 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
b040e242 4114echo "configure:4115: checking for --enable-fontmap" >&5
10f2d63a 4115 no_cache=0
1e6feb95
VZ
4116 # Check whether --enable-fontmap or --disable-fontmap was given.
4117if test "${enable_fontmap+set}" = set; then
4118 enableval="$enable_fontmap"
698dcdb6 4119
10f2d63a 4120 if test "$enableval" = yes; then
1e6feb95 4121 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4122 else
1e6feb95 4123 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4124 fi
698dcdb6 4125
10f2d63a 4126else
698dcdb6 4127
1e6feb95 4128 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4129 if test "x$LINE" != x ; then
4130 eval "DEFAULT_$LINE"
4131 else
4132 no_cache=1
4133 fi
4134
1e6feb95 4135 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4136
4137fi
10f2d63a
VZ
4138
4139
1e6feb95 4140 eval "$ac_cv_use_fontmap"
10f2d63a 4141 if test "$no_cache" != 1; then
1e6feb95 4142 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4143 fi
4144
1e6feb95 4145 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4146 echo "$ac_t""yes" 1>&6
10f2d63a 4147 else
698dcdb6 4148 echo "$ac_t""no" 1>&6
10f2d63a 4149 fi
698dcdb6 4150
10f2d63a 4151
1e6feb95 4152 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
b040e242 4153echo "configure:4154: checking for --enable-unicode" >&5
10f2d63a 4154 no_cache=0
1e6feb95
VZ
4155 # Check whether --enable-unicode or --disable-unicode was given.
4156if test "${enable_unicode+set}" = set; then
4157 enableval="$enable_unicode"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4161 else
4162 ac_cv_use_unicode='wxUSE_UNICODE=no'
4163 fi
4164
4165else
4166
4167 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4175
4176fi
4177
4178
4179 eval "$ac_cv_use_unicode"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_UNICODE" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
a72a4bfa 4191 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
b040e242 4192echo "configure:4193: checking for --enable-mslu" >&5
a72a4bfa
VS
4193 no_cache=0
4194 # Check whether --enable-mslu or --disable-mslu was given.
4195if test "${enable_mslu+set}" = set; then
4196 enableval="$enable_mslu"
4197
4198 if test "$enableval" = yes; then
4199 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4200 else
4201 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4202 fi
4203
4204else
4205
4206 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4207 if test "x$LINE" != x ; then
4208 eval "DEFAULT_$LINE"
4209 else
4210 no_cache=1
4211 fi
4212
4213 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4214
4215fi
4216
4217
4218 eval "$ac_cv_use_mslu"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_UNICODE_MSLU" = yes; then
4224 echo "$ac_t""yes" 1>&6
4225 else
4226 echo "$ac_t""no" 1>&6
4227 fi
4228
4229
1e6feb95 4230 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
b040e242 4231echo "configure:4232: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4232 no_cache=0
4233 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4234if test "${enable_wxprintfv+set}" = set; then
4235 enableval="$enable_wxprintfv"
4236
4237 if test "$enableval" = yes; then
10f2d63a
VZ
4238 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4239 else
4240 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4241 fi
698dcdb6 4242
10f2d63a 4243else
698dcdb6 4244
10f2d63a
VZ
4245 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4246 if test "x$LINE" != x ; then
4247 eval "DEFAULT_$LINE"
4248 else
4249 no_cache=1
4250 fi
4251
4252 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4253
4254fi
10f2d63a
VZ
4255
4256
4257 eval "$ac_cv_use_wxprintfv"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4263 echo "$ac_t""yes" 1>&6
10f2d63a 4264 else
698dcdb6 4265 echo "$ac_t""no" 1>&6
10f2d63a 4266 fi
698dcdb6 4267
10f2d63a 4268
698dcdb6 4269 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
b040e242 4270echo "configure:4271: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4271 no_cache=0
4272 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4273if test "${enable_std_iostreams+set}" = set; then
4274 enableval="$enable_std_iostreams"
698dcdb6 4275
10f2d63a
VZ
4276 if test "$enableval" = yes; then
4277 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4278 else
4279 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4280 fi
698dcdb6 4281
10f2d63a 4282else
698dcdb6 4283
10f2d63a
VZ
4284 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4285 if test "x$LINE" != x ; then
4286 eval "DEFAULT_$LINE"
4287 else
4288 no_cache=1
4289 fi
4290
4291 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4292
4293fi
10f2d63a
VZ
4294
4295
4296 eval "$ac_cv_use_std_iostreams"
4297 if test "$no_cache" != 1; then
4298 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4299 fi
4300
4301 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4302 echo "$ac_t""yes" 1>&6
10f2d63a 4303 else
698dcdb6 4304 echo "$ac_t""no" 1>&6
10f2d63a 4305 fi
698dcdb6 4306
10f2d63a 4307
698dcdb6 4308 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
b040e242 4309echo "configure:4310: checking for --enable-filesystem" >&5
24528b0c
VS
4310 no_cache=0
4311 # Check whether --enable-filesystem or --disable-filesystem was given.
4312if test "${enable_filesystem+set}" = set; then
4313 enableval="$enable_filesystem"
698dcdb6 4314
24528b0c
VS
4315 if test "$enableval" = yes; then
4316 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4317 else
4318 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4319 fi
698dcdb6 4320
24528b0c 4321else
698dcdb6 4322
24528b0c
VS
4323 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4331
4332fi
24528b0c
VS
4333
4334
4335 eval "$ac_cv_use_filesystem"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4341 echo "$ac_t""yes" 1>&6
24528b0c 4342 else
698dcdb6 4343 echo "$ac_t""no" 1>&6
24528b0c 4344 fi
698dcdb6 4345
24528b0c 4346
698dcdb6 4347 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
b040e242 4348echo "configure:4349: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4349 no_cache=0
4350 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4351if test "${enable_fs_inet+set}" = set; then
4352 enableval="$enable_fs_inet"
698dcdb6 4353
10f2d63a
VZ
4354 if test "$enableval" = yes; then
4355 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4356 else
4357 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4358 fi
698dcdb6 4359
10f2d63a 4360else
698dcdb6 4361
10f2d63a
VZ
4362 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4363 if test "x$LINE" != x ; then
4364 eval "DEFAULT_$LINE"
4365 else
4366 no_cache=1
4367 fi
4368
4369 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4370
4371fi
10f2d63a
VZ
4372
4373
4374 eval "$ac_cv_use_fs_inet"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4380 echo "$ac_t""yes" 1>&6
10f2d63a 4381 else
698dcdb6 4382 echo "$ac_t""no" 1>&6
10f2d63a 4383 fi
698dcdb6 4384
10f2d63a 4385
698dcdb6 4386 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
b040e242 4387echo "configure:4388: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4388 no_cache=0
4389 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4390if test "${enable_fs_zip+set}" = set; then
4391 enableval="$enable_fs_zip"
698dcdb6 4392
10f2d63a
VZ
4393 if test "$enableval" = yes; then
4394 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4395 else
4396 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4397 fi
698dcdb6 4398
10f2d63a 4399else
698dcdb6 4400
10f2d63a
VZ
4401 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
4408 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4409
4410fi
10f2d63a
VZ
4411
4412
4413 eval "$ac_cv_use_fs_zip"
4414 if test "$no_cache" != 1; then
4415 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4416 fi
4417
4418 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4419 echo "$ac_t""yes" 1>&6
10f2d63a 4420 else
698dcdb6 4421 echo "$ac_t""no" 1>&6
10f2d63a 4422 fi
698dcdb6 4423
10f2d63a 4424
698dcdb6 4425 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
b040e242 4426echo "configure:4427: checking for --enable-zipstream" >&5
10f2d63a
VZ
4427 no_cache=0
4428 # Check whether --enable-zipstream or --disable-zipstream was given.
4429if test "${enable_zipstream+set}" = set; then
4430 enableval="$enable_zipstream"
698dcdb6 4431
10f2d63a
VZ
4432 if test "$enableval" = yes; then
4433 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4434 else
4435 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4436 fi
698dcdb6 4437
10f2d63a 4438else
698dcdb6 4439
10f2d63a
VZ
4440 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4448
4449fi
10f2d63a
VZ
4450
4451
4452 eval "$ac_cv_use_zipstream"
4453 if test "$no_cache" != 1; then
4454 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4455 fi
4456
4457 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4458 echo "$ac_t""yes" 1>&6
10f2d63a 4459 else
698dcdb6 4460 echo "$ac_t""no" 1>&6
10f2d63a 4461 fi
698dcdb6 4462
10f2d63a 4463
698dcdb6
VZ
4464
4465 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
b040e242 4466echo "configure:4467: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4467 no_cache=0
4468 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4469if test "${enable_catch_segvs+set}" = set; then
4470 enableval="$enable_catch_segvs"
698dcdb6 4471
eb4efbdc
VZ
4472 if test "$enableval" = yes; then
4473 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4474 else
4475 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4476 fi
698dcdb6 4477
eb4efbdc 4478else
698dcdb6 4479
eb4efbdc
VZ
4480 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4488
4489fi
eb4efbdc
VZ
4490
4491
4492 eval "$ac_cv_use_catch_segvs"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4498 echo "$ac_t""yes" 1>&6
eb4efbdc 4499 else
698dcdb6 4500 echo "$ac_t""no" 1>&6
eb4efbdc 4501 fi
698dcdb6 4502
eb4efbdc 4503
698dcdb6 4504 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
b040e242 4505echo "configure:4506: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4506 no_cache=0
4507 # Check whether --enable-snglinst or --disable-snglinst was given.
4508if test "${enable_snglinst+set}" = set; then
4509 enableval="$enable_snglinst"
698dcdb6 4510
4f3c5f06
VZ
4511 if test "$enableval" = yes; then
4512 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4513 else
4514 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4515 fi
698dcdb6 4516
4f3c5f06 4517else
698dcdb6 4518
4f3c5f06
VZ
4519 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4527
4528fi
4f3c5f06
VZ
4529
4530
4531 eval "$ac_cv_use_snglinst"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4537 echo "$ac_t""yes" 1>&6
4f3c5f06 4538 else
698dcdb6 4539 echo "$ac_t""no" 1>&6
4f3c5f06 4540 fi
698dcdb6
VZ
4541
4542
eb4efbdc 4543
1e6feb95 4544 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
b040e242 4545echo "configure:4546: checking for --enable-mimetype" >&5
1e6feb95
VZ
4546 no_cache=0
4547 # Check whether --enable-mimetype or --disable-mimetype was given.
4548if test "${enable_mimetype+set}" = set; then
4549 enableval="$enable_mimetype"
4550
4551 if test "$enableval" = yes; then
4552 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4553 else
4554 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4555 fi
4556
4557else
4558
4559 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4560 if test "x$LINE" != x ; then
4561 eval "DEFAULT_$LINE"
4562 else
4563 no_cache=1
4564 fi
4565
4566 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4567
4568fi
4569
4570
4571 eval "$ac_cv_use_mimetype"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_MIMETYPE" = yes; then
4577 echo "$ac_t""yes" 1>&6
4578 else
4579 echo "$ac_t""no" 1>&6
4580 fi
4581
4582
3e44f09d 4583 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
b040e242 4584echo "configure:4585: checking for --enable-system_options" >&5
3e44f09d
VZ
4585 no_cache=0
4586 # Check whether --enable-system_options or --disable-system_options was given.
4587if test "${enable_system_options+set}" = set; then
4588 enableval="$enable_system_options"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4592 else
4593 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4594 fi
4595
4596else
4597
4598 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4606
4607fi
4608
4609
4610 eval "$ac_cv_use_system_options"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4616 echo "$ac_t""yes" 1>&6
4617 else
4618 echo "$ac_t""no" 1>&6
4619 fi
4620
4621
1e6feb95 4622
4cdb0ab0 4623 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
b040e242 4624echo "configure:4625: checking for --enable-url" >&5
4cdb0ab0
VS
4625 no_cache=0
4626 # Check whether --enable-url or --disable-url was given.
4627if test "${enable_url+set}" = set; then
4628 enableval="$enable_url"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_url='wxUSE_URL=yes'
4632 else
4633 ac_cv_use_url='wxUSE_URL=no'
4634 fi
4635
4636else
4637
4638 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4646
4647fi
4648
4649
4650 eval "$ac_cv_use_url"
4651 if test "$no_cache" != 1; then
4652 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4653 fi
4654
4655 if test "$wxUSE_URL" = yes; then
4656 echo "$ac_t""yes" 1>&6
4657 else
4658 echo "$ac_t""no" 1>&6
4659 fi
4660
4661
4662 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
b040e242 4663echo "configure:4664: checking for --enable-protocol" >&5
4cdb0ab0
VS
4664 no_cache=0
4665 # Check whether --enable-protocol or --disable-protocol was given.
4666if test "${enable_protocol+set}" = set; then
4667 enableval="$enable_protocol"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4671 else
4672 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4685
4686fi
4687
4688
4689 eval "$ac_cv_use_protocol"
4690 if test "$no_cache" != 1; then
4691 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4692 fi
4693
4694 if test "$wxUSE_PROTOCOL" = yes; then
4695 echo "$ac_t""yes" 1>&6
4696 else
4697 echo "$ac_t""no" 1>&6
4698 fi
4699
4700
4701 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
b040e242 4702echo "configure:4703: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4703 no_cache=0
4704 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4705if test "${enable_protocol_http+set}" = set; then
4706 enableval="$enable_protocol_http"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4710 else
4711 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4724
4725fi
4726
4727
4728 eval "$ac_cv_use_protocol_http"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4734 echo "$ac_t""yes" 1>&6
4735 else
4736 echo "$ac_t""no" 1>&6
4737 fi
4738
4739
4740 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
b040e242 4741echo "configure:4742: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4742 no_cache=0
4743 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4744if test "${enable_protocol_ftp+set}" = set; then
4745 enableval="$enable_protocol_ftp"
4746
4747 if test "$enableval" = yes; then
4748 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4749 else
4750 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4751 fi
4752
4753else
4754
4755 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4763
4764fi
4765
4766
4767 eval "$ac_cv_use_protocol_ftp"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4773 echo "$ac_t""yes" 1>&6
4774 else
4775 echo "$ac_t""no" 1>&6
4776 fi
4777
4778
4779 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
b040e242 4780echo "configure:4781: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4781 no_cache=0
4782 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4783if test "${enable_protocol_file+set}" = set; then
4784 enableval="$enable_protocol_file"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4788 else
4789 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4802
4803fi
4804
4805
4806 eval "$ac_cv_use_protocol_file"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818
4819
698dcdb6
VZ
4820
4821 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
b040e242 4822echo "configure:4823: checking for --enable-threads" >&5
10f2d63a
VZ
4823 no_cache=0
4824 # Check whether --enable-threads or --disable-threads was given.
4825if test "${enable_threads+set}" = set; then
4826 enableval="$enable_threads"
698dcdb6 4827
10f2d63a
VZ
4828 if test "$enableval" = yes; then
4829 ac_cv_use_threads='wxUSE_THREADS=yes'
4830 else
4831 ac_cv_use_threads='wxUSE_THREADS=no'
4832 fi
698dcdb6 4833
10f2d63a 4834else
698dcdb6 4835
10f2d63a
VZ
4836 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4844
4845fi
10f2d63a
VZ
4846
4847
4848 eval "$ac_cv_use_threads"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4854 echo "$ac_t""yes" 1>&6
10f2d63a 4855 else
698dcdb6 4856 echo "$ac_t""no" 1>&6
10f2d63a 4857 fi
698dcdb6 4858
10f2d63a 4859
b12915c1
VZ
4860if test "$wxUSE_GUI" = "yes"; then
4861
698dcdb6
VZ
4862
4863
4864 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
b040e242 4865echo "configure:4866: checking for --enable-docview" >&5
10f2d63a
VZ
4866 no_cache=0
4867 # Check whether --enable-docview or --disable-docview was given.
4868if test "${enable_docview+set}" = set; then
4869 enableval="$enable_docview"
698dcdb6 4870
10f2d63a
VZ
4871 if test "$enableval" = yes; then
4872 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4873 else
4874 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4875 fi
698dcdb6 4876
10f2d63a 4877else
698dcdb6 4878
10f2d63a
VZ
4879 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4880 if test "x$LINE" != x ; then
4881 eval "DEFAULT_$LINE"
4882 else
4883 no_cache=1
4884 fi
4885
4886 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4887
4888fi
10f2d63a
VZ
4889
4890
4891 eval "$ac_cv_use_docview"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4897 echo "$ac_t""yes" 1>&6
10f2d63a 4898 else
698dcdb6 4899 echo "$ac_t""no" 1>&6
10f2d63a 4900 fi
698dcdb6 4901
10f2d63a 4902
698dcdb6 4903 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
b040e242 4904echo "configure:4905: checking for --enable-help" >&5
10f2d63a
VZ
4905 no_cache=0
4906 # Check whether --enable-help or --disable-help was given.
4907if test "${enable_help+set}" = set; then
4908 enableval="$enable_help"
698dcdb6 4909
10f2d63a
VZ
4910 if test "$enableval" = yes; then
4911 ac_cv_use_help='wxUSE_HELP=yes'
4912 else
4913 ac_cv_use_help='wxUSE_HELP=no'
4914 fi
698dcdb6 4915
10f2d63a 4916else
698dcdb6 4917
10f2d63a
VZ
4918 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4919 if test "x$LINE" != x ; then
4920 eval "DEFAULT_$LINE"
4921 else
4922 no_cache=1
4923 fi
4924
4925 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4926
4927fi
10f2d63a
VZ
4928
4929
4930 eval "$ac_cv_use_help"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_HELP" = yes; then
698dcdb6 4936 echo "$ac_t""yes" 1>&6
10f2d63a 4937 else
698dcdb6 4938 echo "$ac_t""no" 1>&6
10f2d63a 4939 fi
698dcdb6 4940
10f2d63a 4941
29fd3c0c 4942 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
b040e242 4943echo "configure:4944: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4944 no_cache=0
4945 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4946if test "${enable_mshtmlhelp+set}" = set; then
4947 enableval="$enable_mshtmlhelp"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4951 else
4952 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4965
4966fi
4967
4968
4969 eval "$ac_cv_use_mshtmlhelp"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_MS_HTML_HELP" = yes; then
4975 echo "$ac_t""yes" 1>&6
4976 else
4977 echo "$ac_t""no" 1>&6
4978 fi
4979
4980
3379ed37 4981 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
b040e242 4982echo "configure:4983: checking for --enable-html" >&5
3379ed37
VZ
4983 no_cache=0
4984 # Check whether --enable-html or --disable-html was given.
4985if test "${enable_html+set}" = set; then
4986 enableval="$enable_html"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_html='wxUSE_HTML=yes'
4990 else
4991 ac_cv_use_html='wxUSE_HTML=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5004
5005fi
5006
5007
5008 eval "$ac_cv_use_html"
5009 if test "$no_cache" != 1; then
5010 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5011 fi
5012
5013 if test "$wxUSE_HTML" = yes; then
5014 echo "$ac_t""yes" 1>&6
5015 else
5016 echo "$ac_t""no" 1>&6
5017 fi
5018
5019
5020 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
b040e242 5021echo "configure:5022: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5022 no_cache=0
5023 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5024if test "${enable_htmlhelp+set}" = set; then
5025 enableval="$enable_htmlhelp"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5029 else
5030 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5043
5044fi
5045
5046
5047 eval "$ac_cv_use_htmlhelp"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_WXHTML_HELP" = yes; then
5053 echo "$ac_t""yes" 1>&6
5054 else
5055 echo "$ac_t""no" 1>&6
5056 fi
5057
5058
698dcdb6 5059 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
b040e242 5060echo "configure:5061: checking for --enable-constraints" >&5
10f2d63a
VZ
5061 no_cache=0
5062 # Check whether --enable-constraints or --disable-constraints was given.
5063if test "${enable_constraints+set}" = set; then
5064 enableval="$enable_constraints"
698dcdb6 5065
10f2d63a
VZ
5066 if test "$enableval" = yes; then
5067 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5068 else
5069 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5070 fi
698dcdb6 5071
10f2d63a 5072else
698dcdb6 5073
10f2d63a
VZ
5074 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5082
5083fi
10f2d63a
VZ
5084
5085
5086 eval "$ac_cv_use_constraints"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5092 echo "$ac_t""yes" 1>&6
10f2d63a 5093 else
698dcdb6 5094 echo "$ac_t""no" 1>&6
10f2d63a 5095 fi
698dcdb6 5096
10f2d63a 5097
698dcdb6 5098 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
b040e242 5099echo "configure:5100: checking for --enable-printarch" >&5
10f2d63a
VZ
5100 no_cache=0
5101 # Check whether --enable-printarch or --disable-printarch was given.
5102if test "${enable_printarch+set}" = set; then
5103 enableval="$enable_printarch"
698dcdb6 5104
10f2d63a
VZ
5105 if test "$enableval" = yes; then
5106 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5107 else
5108 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5109 fi
698dcdb6 5110
10f2d63a 5111else
698dcdb6 5112
10f2d63a
VZ
5113 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5121
5122fi
10f2d63a
VZ
5123
5124
5125 eval "$ac_cv_use_printarch"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5131 echo "$ac_t""yes" 1>&6
10f2d63a 5132 else
698dcdb6 5133 echo "$ac_t""no" 1>&6
10f2d63a 5134 fi
698dcdb6 5135
10f2d63a 5136
698dcdb6 5137 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
b040e242 5138echo "configure:5139: checking for --enable-mdi" >&5
10f2d63a
VZ
5139 no_cache=0
5140 # Check whether --enable-mdi or --disable-mdi was given.
5141if test "${enable_mdi+set}" = set; then
5142 enableval="$enable_mdi"
698dcdb6 5143
10f2d63a
VZ
5144 if test "$enableval" = yes; then
5145 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5146 else
5147 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5148 fi
698dcdb6 5149
10f2d63a 5150else
698dcdb6 5151
10f2d63a
VZ
5152 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5160
5161fi
10f2d63a
VZ
5162
5163
5164 eval "$ac_cv_use_mdi"
5165 if test "$no_cache" != 1; then
5166 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5167 fi
5168
5169 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5170 echo "$ac_t""yes" 1>&6
10f2d63a 5171 else
698dcdb6 5172 echo "$ac_t""no" 1>&6
10f2d63a 5173 fi
698dcdb6
VZ
5174
5175
1e6feb95 5176 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
b040e242 5177echo "configure:5178: checking for --enable-loggui" >&5
1e6feb95
VZ
5178 no_cache=0
5179 # Check whether --enable-loggui or --disable-loggui was given.
5180if test "${enable_loggui+set}" = set; then
5181 enableval="$enable_loggui"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5185 else
5186 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5187 fi
5188
5189else
5190
5191 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5199
5200fi
5201
5202
5203 eval "$ac_cv_use_loggui"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_LOGGUI" = yes; then
5209 echo "$ac_t""yes" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5212 fi
5213
5214
5215 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
b040e242 5216echo "configure:5217: checking for --enable-logwin" >&5
1e6feb95
VZ
5217 no_cache=0
5218 # Check whether --enable-logwin or --disable-logwin was given.
5219if test "${enable_logwin+set}" = set; then
5220 enableval="$enable_logwin"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5224 else
5225 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5226 fi
5227
5228else
5229
5230 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5238
5239fi
5240
5241
5242 eval "$ac_cv_use_logwin"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_LOGWINDOW" = yes; then
5248 echo "$ac_t""yes" 1>&6
5249 else
5250 echo "$ac_t""no" 1>&6
5251 fi
5252
5253
69d27ff7 5254 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
b040e242 5255echo "configure:5256: checking for --enable-logdialog" >&5
69d27ff7
MB
5256 no_cache=0
5257 # Check whether --enable-logdialog or --disable-logdialog was given.
5258if test "${enable_logdialog+set}" = set; then
5259 enableval="$enable_logdialog"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5263 else
5264 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5265 fi
5266
5267else
5268
5269 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5277
5278fi
5279
5280
5281 eval "$ac_cv_use_logdialog"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_LOGDIALOG" = yes; then
5287 echo "$ac_t""yes" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 fi
5291
5292
10f2d63a 5293
698dcdb6 5294 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
b040e242 5295echo "configure:5296: checking for --enable-postscript" >&5
10f2d63a
VZ
5296 no_cache=0
5297 # Check whether --enable-postscript or --disable-postscript was given.
5298if test "${enable_postscript+set}" = set; then
5299 enableval="$enable_postscript"
698dcdb6 5300
10f2d63a
VZ
5301 if test "$enableval" = yes; then
5302 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5303 else
5304 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5305 fi
698dcdb6 5306
10f2d63a 5307else
698dcdb6 5308
10f2d63a
VZ
5309 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5317
5318fi
10f2d63a
VZ
5319
5320
5321 eval "$ac_cv_use_postscript"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5327 echo "$ac_t""yes" 1>&6
10f2d63a 5328 else
698dcdb6 5329 echo "$ac_t""no" 1>&6
10f2d63a 5330 fi
698dcdb6
VZ
5331
5332
5333
10f2d63a 5334
1e6feb95 5335
698dcdb6 5336 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
b040e242 5337echo "configure:5338: checking for --enable-prologio" >&5
10f2d63a
VZ
5338 no_cache=0
5339 # Check whether --enable-prologio or --disable-prologio was given.
5340if test "${enable_prologio+set}" = set; then
5341 enableval="$enable_prologio"
698dcdb6 5342
10f2d63a
VZ
5343 if test "$enableval" = yes; then
5344 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5345 else
5346 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5347 fi
698dcdb6 5348
10f2d63a 5349else
698dcdb6 5350
10f2d63a
VZ
5351 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5359
5360fi
10f2d63a
VZ
5361
5362
5363 eval "$ac_cv_use_prologio"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5369 echo "$ac_t""yes" 1>&6
10f2d63a 5370 else
698dcdb6 5371 echo "$ac_t""no" 1>&6
10f2d63a 5372 fi
698dcdb6 5373
10f2d63a 5374
698dcdb6 5375 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
b040e242 5376echo "configure:5377: checking for --enable-resources" >&5
10f2d63a
VZ
5377 no_cache=0
5378 # Check whether --enable-resources or --disable-resources was given.
5379if test "${enable_resources+set}" = set; then
5380 enableval="$enable_resources"
698dcdb6 5381
10f2d63a
VZ
5382 if test "$enableval" = yes; then
5383 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5384 else
5385 ac_cv_use_resources='wxUSE_RESOURCES=no'
5386 fi
698dcdb6 5387
10f2d63a 5388else
698dcdb6 5389
10f2d63a
VZ
5390 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5398
5399fi
10f2d63a
VZ
5400
5401
5402 eval "$ac_cv_use_resources"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5408 echo "$ac_t""yes" 1>&6
10f2d63a 5409 else
698dcdb6 5410 echo "$ac_t""no" 1>&6
10f2d63a 5411 fi
698dcdb6 5412
10f2d63a 5413
698dcdb6
VZ
5414
5415 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
b040e242 5416echo "configure:5417: checking for --enable-xresources" >&5
10f2d63a
VZ
5417 no_cache=0
5418 # Check whether --enable-xresources or --disable-xresources was given.
5419if test "${enable_xresources+set}" = set; then
5420 enableval="$enable_xresources"
698dcdb6 5421
10f2d63a
VZ
5422 if test "$enableval" = yes; then
5423 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5424 else
5425 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5426 fi
698dcdb6 5427
10f2d63a 5428else
698dcdb6 5429
10f2d63a
VZ
5430 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5438
5439fi
10f2d63a
VZ
5440
5441
5442 eval "$ac_cv_use_xresources"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5448 echo "$ac_t""yes" 1>&6
10f2d63a 5449 else
698dcdb6 5450 echo "$ac_t""no" 1>&6
10f2d63a 5451 fi
698dcdb6
VZ
5452
5453
10f2d63a 5454
698dcdb6
VZ
5455
5456 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
b040e242 5457echo "configure:5458: checking for --enable-clipboard" >&5
10f2d63a
VZ
5458 no_cache=0
5459 # Check whether --enable-clipboard or --disable-clipboard was given.
5460if test "${enable_clipboard+set}" = set; then
5461 enableval="$enable_clipboard"
698dcdb6 5462
10f2d63a
VZ
5463 if test "$enableval" = yes; then
5464 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5465 else
5466 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5467 fi
698dcdb6 5468
10f2d63a 5469else
698dcdb6 5470
10f2d63a
VZ
5471 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5472 if test "x$LINE" != x ; then
5473 eval "DEFAULT_$LINE"
5474 else
5475 no_cache=1
5476 fi
5477
5478 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5479
5480fi
10f2d63a
VZ
5481
5482
5483 eval "$ac_cv_use_clipboard"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5489 echo "$ac_t""yes" 1>&6
10f2d63a 5490 else
698dcdb6 5491 echo "$ac_t""no" 1>&6
10f2d63a 5492 fi
698dcdb6 5493
10f2d63a 5494
698dcdb6 5495 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
b040e242 5496echo "configure:5497: checking for --enable-dnd" >&5
10f2d63a
VZ
5497 no_cache=0
5498 # Check whether --enable-dnd or --disable-dnd was given.
5499if test "${enable_dnd+set}" = set; then
5500 enableval="$enable_dnd"
698dcdb6 5501
10f2d63a
VZ
5502 if test "$enableval" = yes; then
5503 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5504 else
5505 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5506 fi
698dcdb6 5507
10f2d63a 5508else
698dcdb6 5509
10f2d63a
VZ
5510 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5518
5519fi
10f2d63a
VZ
5520
5521
5522 eval "$ac_cv_use_dnd"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5528 echo "$ac_t""yes" 1>&6
10f2d63a 5529 else
698dcdb6 5530 echo "$ac_t""no" 1>&6
10f2d63a 5531 fi
698dcdb6 5532
10f2d63a 5533
698dcdb6 5534 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
b040e242 5535echo "configure:5536: checking for --enable-metafile" >&5
b64f0a5f
RL
5536 no_cache=0
5537 # Check whether --enable-metafile or --disable-metafile was given.
5538if test "${enable_metafile+set}" = set; then
5539 enableval="$enable_metafile"
698dcdb6 5540
b64f0a5f
RL
5541 if test "$enableval" = yes; then
5542 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5543 else
5544 ac_cv_use_metafile='wxUSE_METAFILE=no'
5545 fi
698dcdb6 5546
b64f0a5f 5547else
698dcdb6 5548
b64f0a5f
RL
5549 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5557
5558fi
b64f0a5f
RL
5559
5560
5561 eval "$ac_cv_use_metafile"
5562 if test "$no_cache" != 1; then
5563 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5564 fi
5565
5566 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5567 echo "$ac_t""yes" 1>&6
b64f0a5f 5568 else
698dcdb6 5569 echo "$ac_t""no" 1>&6
b64f0a5f 5570 fi
698dcdb6
VZ
5571
5572
10f2d63a 5573
24176f2c 5574 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
b040e242 5575echo "configure:5576: checking for --enable-treelayout" >&5
10f2d63a 5576 no_cache=0
24176f2c
GD
5577 # Check whether --enable-treelayout or --disable-treelayout was given.
5578if test "${enable_treelayout+set}" = set; then
5579 enableval="$enable_treelayout"
698dcdb6 5580
10f2d63a 5581 if test "$enableval" = yes; then
24176f2c 5582 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5583 else
24176f2c 5584 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5585 fi
698dcdb6 5586
10f2d63a 5587else
698dcdb6 5588
24176f2c 5589 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
24176f2c 5596 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5597
5598fi
10f2d63a
VZ
5599
5600
24176f2c 5601 eval "$ac_cv_use_treelayout"
10f2d63a 5602 if test "$no_cache" != 1; then
24176f2c 5603 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5604 fi
5605
24176f2c 5606 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5607 echo "$ac_t""yes" 1>&6
10f2d63a 5608 else
698dcdb6 5609 echo "$ac_t""no" 1>&6
10f2d63a 5610 fi
698dcdb6 5611
10f2d63a 5612
698dcdb6
VZ
5613
5614
5615 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
b040e242 5616echo "configure:5617: checking for --enable-controls" >&5
10f2d63a
VZ
5617 no_cache=0
5618 # Check whether --enable-controls or --disable-controls was given.
5619if test "${enable_controls+set}" = set; then
5620 enableval="$enable_controls"
698dcdb6 5621
10f2d63a
VZ
5622 if test "$enableval" = yes; then
5623 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5624 else
5625 ac_cv_use_controls='wxUSE_CONTROLS=no'
5626 fi
698dcdb6 5627
10f2d63a 5628else
698dcdb6 5629
10f2d63a
VZ
5630 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5638
5639fi
10f2d63a
VZ
5640
5641
5642 eval "$ac_cv_use_controls"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5648 echo "$ac_t""yes" 1>&6
10f2d63a 5649 else
698dcdb6 5650 echo "$ac_t""no" 1>&6
10f2d63a 5651 fi
698dcdb6 5652
10f2d63a
VZ
5653
5654if test "$wxUSE_CONTROLS" = "yes"; then
5655 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5656 DEFAULT_wxUSE_BMPBUTTON=yes
5657 DEFAULT_wxUSE_BUTTON=yes
5658 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5659 DEFAULT_wxUSE_CARET=yes
5660 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5661 DEFAULT_wxUSE_CHECKBOX=yes
5662 DEFAULT_wxUSE_CHECKLISTBOX=yes
5663 DEFAULT_wxUSE_CHOICE=yes
5664 DEFAULT_wxUSE_GAUGE=yes
5665 DEFAULT_wxUSE_GRID=yes
cc977e5f 5666 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5667 DEFAULT_wxUSE_IMAGLIST=yes
5668 DEFAULT_wxUSE_LISTBOX=yes
5669 DEFAULT_wxUSE_LISTCTRL=yes
5670 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5671 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5672 DEFAULT_wxUSE_RADIOBOX=yes
5673 DEFAULT_wxUSE_RADIOBTN=yes
5674 DEFAULT_wxUSE_SASH=yes
5675 DEFAULT_wxUSE_SCROLLBAR=yes
5676 DEFAULT_wxUSE_SLIDER=yes
5677 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5678 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5679 DEFAULT_wxUSE_SPLITTER=yes
5680 DEFAULT_wxUSE_STATBMP=yes
5681 DEFAULT_wxUSE_STATBOX=yes
5682 DEFAULT_wxUSE_STATLINE=yes
5683 DEFAULT_wxUSE_STATUSBAR=yes
5684 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5685 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5686 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5687 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5688 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5689 DEFAULT_wxUSE_TOOLTIPS=yes
5690 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5691 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5692 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5693elif test "$wxUSE_CONTROLS" = "no"; then
5694 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5695 DEFAULT_wxUSE_BMPBUTTON=no
5696 DEFAULT_wxUSE_BUTTON=no
5697 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5698 DEFAULT_wxUSE_CARET=no
5699 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5700 DEFAULT_wxUSE_CHECKBOX=no
5701 DEFAULT_wxUSE_CHECKLISTBOX=no
5702 DEFAULT_wxUSE_CHOICE=no
5703 DEFAULT_wxUSE_GAUGE=no
5704 DEFAULT_wxUSE_GRID=no
5705 DEFAULT_wxUSE_NEW_GRID=no
5706 DEFAULT_wxUSE_IMAGLIST=no
5707 DEFAULT_wxUSE_LISTBOX=no
5708 DEFAULT_wxUSE_LISTCTRL=no
5709 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5710 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5711 DEFAULT_wxUSE_RADIOBOX=no
5712 DEFAULT_wxUSE_RADIOBTN=no
5713 DEFAULT_wxUSE_SASH=no
5714 DEFAULT_wxUSE_SCROLLBAR=no
5715 DEFAULT_wxUSE_SLIDER=no
5716 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5717 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5718 DEFAULT_wxUSE_SPLITTER=no
5719 DEFAULT_wxUSE_STATBMP=no
5720 DEFAULT_wxUSE_STATBOX=no
5721 DEFAULT_wxUSE_STATLINE=no
5722 DEFAULT_wxUSE_STATUSBAR=no
5723 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5724 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5725 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5726 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5727 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5728 DEFAULT_wxUSE_TOOLTIPS=no
5729 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5730 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5731 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5732fi
5733
698dcdb6
VZ
5734
5735 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
b040e242 5736echo "configure:5737: checking for --enable-accel" >&5
10f2d63a
VZ
5737 no_cache=0
5738 # Check whether --enable-accel or --disable-accel was given.
5739if test "${enable_accel+set}" = set; then
5740 enableval="$enable_accel"
698dcdb6 5741
10f2d63a
VZ
5742 if test "$enableval" = yes; then
5743 ac_cv_use_accel='wxUSE_ACCEL=yes'
5744 else
5745 ac_cv_use_accel='wxUSE_ACCEL=no'
5746 fi
698dcdb6 5747
10f2d63a 5748else
698dcdb6 5749
10f2d63a
VZ
5750 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5751 if test "x$LINE" != x ; then
5752 eval "DEFAULT_$LINE"
5753 else
5754 no_cache=1
5755 fi
5756
5757 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5758
5759fi
10f2d63a
VZ
5760
5761
5762 eval "$ac_cv_use_accel"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5768 echo "$ac_t""yes" 1>&6
10f2d63a 5769 else
698dcdb6 5770 echo "$ac_t""no" 1>&6
10f2d63a 5771 fi
698dcdb6 5772
10f2d63a 5773
1e6feb95 5774 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
b040e242 5775echo "configure:5776: checking for --enable-button" >&5
10f2d63a 5776 no_cache=0
1e6feb95
VZ
5777 # Check whether --enable-button or --disable-button was given.
5778if test "${enable_button+set}" = set; then
5779 enableval="$enable_button"
698dcdb6 5780
10f2d63a 5781 if test "$enableval" = yes; then
1e6feb95 5782 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5783 else
1e6feb95 5784 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5785 fi
698dcdb6 5786
10f2d63a 5787else
698dcdb6 5788
1e6feb95 5789 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
1e6feb95 5796 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5797
5798fi
10f2d63a
VZ
5799
5800
1e6feb95 5801 eval "$ac_cv_use_button"
10f2d63a 5802 if test "$no_cache" != 1; then
1e6feb95 5803 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5804 fi
5805
1e6feb95 5806 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5807 echo "$ac_t""yes" 1>&6
10f2d63a 5808 else
698dcdb6 5809 echo "$ac_t""no" 1>&6
10f2d63a 5810 fi
698dcdb6 5811
10f2d63a 5812
698dcdb6 5813 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
b040e242 5814echo "configure:5815: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5815 no_cache=0
5816 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5817if test "${enable_bmpbutton+set}" = set; then
5818 enableval="$enable_bmpbutton"
698dcdb6 5819
10f2d63a
VZ
5820 if test "$enableval" = yes; then
5821 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5822 else
5823 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5824 fi
698dcdb6 5825
10f2d63a 5826else
698dcdb6 5827
10f2d63a
VZ
5828 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5829 if test "x$LINE" != x ; then
5830 eval "DEFAULT_$LINE"
5831 else
5832 no_cache=1
5833 fi
5834
5835 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5836
5837fi
10f2d63a
VZ
5838
5839
5840 eval "$ac_cv_use_bmpbutton"
5841 if test "$no_cache" != 1; then
5842 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5843 fi
5844
5845 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5846 echo "$ac_t""yes" 1>&6
10f2d63a 5847 else
698dcdb6 5848 echo "$ac_t""no" 1>&6
10f2d63a 5849 fi
698dcdb6 5850
10f2d63a 5851
1e6feb95 5852 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
b040e242 5853echo "configure:5854: checking for --enable-calendar" >&5
1e6feb95
VZ
5854 no_cache=0
5855 # Check whether --enable-calendar or --disable-calendar was given.
5856if test "${enable_calendar+set}" = set; then
5857 enableval="$enable_calendar"
5858
5859 if test "$enableval" = yes; then
5860 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5861 else
5862 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5863 fi
5864
5865else
5866
5867 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5868 if test "x$LINE" != x ; then
5869 eval "DEFAULT_$LINE"
5870 else
5871 no_cache=1
5872 fi
5873
5874 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5875
5876fi
5877
5878
5879 eval "$ac_cv_use_calendar"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_CALCTRL" = yes; then
5885 echo "$ac_t""yes" 1>&6
5886 else
5887 echo "$ac_t""no" 1>&6
5888 fi
5889
5890
5891 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
b040e242 5892echo "configure:5893: checking for --enable-caret" >&5
1e6feb95
VZ
5893 no_cache=0
5894 # Check whether --enable-caret or --disable-caret was given.
5895if test "${enable_caret+set}" = set; then
5896 enableval="$enable_caret"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_caret='wxUSE_CARET=yes'
5900 else
5901 ac_cv_use_caret='wxUSE_CARET=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5914
5915fi
5916
5917
5918 eval "$ac_cv_use_caret"
5919 if test "$no_cache" != 1; then
5920 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5921 fi
5922
5923 if test "$wxUSE_CARET" = yes; then
5924 echo "$ac_t""yes" 1>&6
5925 else
5926 echo "$ac_t""no" 1>&6
5927 fi
5928
5929
698dcdb6 5930 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
b040e242 5931echo "configure:5932: checking for --enable-checkbox" >&5
10f2d63a
VZ
5932 no_cache=0
5933 # Check whether --enable-checkbox or --disable-checkbox was given.
5934if test "${enable_checkbox+set}" = set; then
5935 enableval="$enable_checkbox"
698dcdb6 5936
10f2d63a
VZ
5937 if test "$enableval" = yes; then
5938 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5939 else
5940 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5941 fi
698dcdb6 5942
10f2d63a 5943else
698dcdb6 5944
10f2d63a
VZ
5945 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5953
5954fi
10f2d63a
VZ
5955
5956
5957 eval "$ac_cv_use_checkbox"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5963 echo "$ac_t""yes" 1>&6
10f2d63a 5964 else
698dcdb6 5965 echo "$ac_t""no" 1>&6
10f2d63a 5966 fi
698dcdb6 5967
10f2d63a 5968
698dcdb6 5969 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
b040e242 5970echo "configure:5971: checking for --enable-checklst" >&5
10f2d63a
VZ
5971 no_cache=0
5972 # Check whether --enable-checklst or --disable-checklst was given.
5973if test "${enable_checklst+set}" = set; then
5974 enableval="$enable_checklst"
698dcdb6 5975
10f2d63a
VZ
5976 if test "$enableval" = yes; then
5977 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5978 else
5979 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5980 fi
698dcdb6 5981
10f2d63a 5982else
698dcdb6 5983
10f2d63a
VZ
5984 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5992
5993fi
10f2d63a
VZ
5994
5995
5996 eval "$ac_cv_use_checklst"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 6002 echo "$ac_t""yes" 1>&6
10f2d63a 6003 else
698dcdb6 6004 echo "$ac_t""no" 1>&6
10f2d63a 6005 fi
698dcdb6 6006
10f2d63a 6007
698dcdb6 6008 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
b040e242 6009echo "configure:6010: checking for --enable-choice" >&5
10f2d63a
VZ
6010 no_cache=0
6011 # Check whether --enable-choice or --disable-choice was given.
6012if test "${enable_choice+set}" = set; then
6013 enableval="$enable_choice"
698dcdb6 6014
10f2d63a
VZ
6015 if test "$enableval" = yes; then
6016 ac_cv_use_choice='wxUSE_CHOICE=yes'
6017 else
6018 ac_cv_use_choice='wxUSE_CHOICE=no'
6019 fi
698dcdb6 6020
10f2d63a 6021else
698dcdb6 6022
10f2d63a
VZ
6023 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6031
6032fi
10f2d63a
VZ
6033
6034
6035 eval "$ac_cv_use_choice"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6041 echo "$ac_t""yes" 1>&6
10f2d63a 6042 else
698dcdb6 6043 echo "$ac_t""no" 1>&6
10f2d63a 6044 fi
698dcdb6 6045
10f2d63a 6046
698dcdb6 6047 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
b040e242 6048echo "configure:6049: checking for --enable-combobox" >&5
10f2d63a
VZ
6049 no_cache=0
6050 # Check whether --enable-combobox or --disable-combobox was given.
6051if test "${enable_combobox+set}" = set; then
6052 enableval="$enable_combobox"
698dcdb6 6053
10f2d63a
VZ
6054 if test "$enableval" = yes; then
6055 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6056 else
6057 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6058 fi
698dcdb6 6059
10f2d63a 6060else
698dcdb6 6061
10f2d63a
VZ
6062 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6063 if test "x$LINE" != x ; then
6064 eval "DEFAULT_$LINE"
6065 else
6066 no_cache=1
6067 fi
6068
6069 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6070
6071fi
10f2d63a
VZ
6072
6073
6074 eval "$ac_cv_use_combobox"
6075 if test "$no_cache" != 1; then
6076 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6077 fi
6078
6079 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6080 echo "$ac_t""yes" 1>&6
10f2d63a 6081 else
698dcdb6 6082 echo "$ac_t""no" 1>&6
10f2d63a 6083 fi
698dcdb6 6084
10f2d63a 6085
698dcdb6 6086 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
b040e242 6087echo "configure:6088: checking for --enable-gauge" >&5
10f2d63a
VZ
6088 no_cache=0
6089 # Check whether --enable-gauge or --disable-gauge was given.
6090if test "${enable_gauge+set}" = set; then
6091 enableval="$enable_gauge"
698dcdb6 6092
10f2d63a
VZ
6093 if test "$enableval" = yes; then
6094 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6095 else
6096 ac_cv_use_gauge='wxUSE_GAUGE=no'
6097 fi
698dcdb6 6098
10f2d63a 6099else
698dcdb6 6100
10f2d63a
VZ
6101 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6109
6110fi
10f2d63a
VZ
6111
6112
6113 eval "$ac_cv_use_gauge"
6114 if test "$no_cache" != 1; then
6115 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6116 fi
6117
6118 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6119 echo "$ac_t""yes" 1>&6
10f2d63a 6120 else
698dcdb6 6121 echo "$ac_t""no" 1>&6
10f2d63a 6122 fi
698dcdb6 6123
10f2d63a 6124
698dcdb6 6125 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
b040e242 6126echo "configure:6127: checking for --enable-grid" >&5
10f2d63a
VZ
6127 no_cache=0
6128 # Check whether --enable-grid or --disable-grid was given.
6129if test "${enable_grid+set}" = set; then
6130 enableval="$enable_grid"
698dcdb6 6131
10f2d63a
VZ
6132 if test "$enableval" = yes; then
6133 ac_cv_use_grid='wxUSE_GRID=yes'
6134 else
6135 ac_cv_use_grid='wxUSE_GRID=no'
6136 fi
698dcdb6 6137
10f2d63a 6138else
698dcdb6 6139
10f2d63a
VZ
6140 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6141 if test "x$LINE" != x ; then
6142 eval "DEFAULT_$LINE"
6143 else
6144 no_cache=1
6145 fi
6146
6147 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6148
6149fi
10f2d63a
VZ
6150
6151
6152 eval "$ac_cv_use_grid"
6153 if test "$no_cache" != 1; then
6154 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6155 fi
6156
6157 if test "$wxUSE_GRID" = yes; then
698dcdb6 6158 echo "$ac_t""yes" 1>&6
10f2d63a 6159 else
698dcdb6 6160 echo "$ac_t""no" 1>&6
10f2d63a 6161 fi
698dcdb6 6162
10f2d63a 6163
698dcdb6 6164 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
b040e242 6165echo "configure:6166: checking for --enable-newgrid" >&5
10f2d63a
VZ
6166 no_cache=0
6167 # Check whether --enable-newgrid or --disable-newgrid was given.
6168if test "${enable_newgrid+set}" = set; then
6169 enableval="$enable_newgrid"
698dcdb6 6170
10f2d63a
VZ
6171 if test "$enableval" = yes; then
6172 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6173 else
6174 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6175 fi
698dcdb6 6176
10f2d63a 6177else
698dcdb6 6178
10f2d63a
VZ
6179 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6180 if test "x$LINE" != x ; then
6181 eval "DEFAULT_$LINE"
6182 else
6183 no_cache=1
6184 fi
6185
6186 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6187
6188fi
10f2d63a
VZ
6189
6190
6191 eval "$ac_cv_use_newgrid"
6192 if test "$no_cache" != 1; then
6193 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6194 fi
6195
6196 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6197 echo "$ac_t""yes" 1>&6
10f2d63a 6198 else
698dcdb6 6199 echo "$ac_t""no" 1>&6
10f2d63a 6200 fi
698dcdb6 6201
10f2d63a 6202
698dcdb6 6203 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
b040e242 6204echo "configure:6205: checking for --enable-imaglist" >&5
10f2d63a
VZ
6205 no_cache=0
6206 # Check whether --enable-imaglist or --disable-imaglist was given.
6207if test "${enable_imaglist+set}" = set; then
6208 enableval="$enable_imaglist"
698dcdb6 6209
10f2d63a
VZ
6210 if test "$enableval" = yes; then
6211 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6212 else
6213 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6214 fi
698dcdb6 6215
10f2d63a 6216else
698dcdb6 6217
10f2d63a
VZ
6218 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6219 if test "x$LINE" != x ; then
6220 eval "DEFAULT_$LINE"
6221 else
6222 no_cache=1
6223 fi
6224
6225 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6226
6227fi
10f2d63a
VZ
6228
6229
6230 eval "$ac_cv_use_imaglist"
6231 if test "$no_cache" != 1; then
6232 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6233 fi
6234
6235 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6236 echo "$ac_t""yes" 1>&6
10f2d63a 6237 else
698dcdb6 6238 echo "$ac_t""no" 1>&6
10f2d63a 6239 fi
698dcdb6 6240
10f2d63a 6241
698dcdb6 6242 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
b040e242 6243echo "configure:6244: checking for --enable-listbox" >&5
10f2d63a
VZ
6244 no_cache=0
6245 # Check whether --enable-listbox or --disable-listbox was given.
6246if test "${enable_listbox+set}" = set; then
6247 enableval="$enable_listbox"
698dcdb6 6248
10f2d63a
VZ
6249 if test "$enableval" = yes; then
6250 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6251 else
6252 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6253 fi
698dcdb6 6254
10f2d63a 6255else
698dcdb6 6256
10f2d63a
VZ
6257 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6258 if test "x$LINE" != x ; then
6259 eval "DEFAULT_$LINE"
6260 else
6261 no_cache=1
6262 fi
6263
6264 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6265
6266fi
10f2d63a
VZ
6267
6268
6269 eval "$ac_cv_use_listbox"
6270 if test "$no_cache" != 1; then
6271 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6272 fi
6273
6274 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6275 echo "$ac_t""yes" 1>&6
10f2d63a 6276 else
698dcdb6 6277 echo "$ac_t""no" 1>&6
10f2d63a 6278 fi
698dcdb6 6279
10f2d63a 6280
698dcdb6 6281 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
b040e242 6282echo "configure:6283: checking for --enable-listctrl" >&5
10f2d63a
VZ
6283 no_cache=0
6284 # Check whether --enable-listctrl or --disable-listctrl was given.
6285if test "${enable_listctrl+set}" = set; then
6286 enableval="$enable_listctrl"
698dcdb6 6287
10f2d63a
VZ
6288 if test "$enableval" = yes; then
6289 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6290 else
6291 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6292 fi
698dcdb6 6293
10f2d63a 6294else
698dcdb6 6295
10f2d63a
VZ
6296 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6304
6305fi
10f2d63a
VZ
6306
6307
6308 eval "$ac_cv_use_listctrl"
6309 if test "$no_cache" != 1; then
6310 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6311 fi
6312
6313 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6314 echo "$ac_t""yes" 1>&6
10f2d63a 6315 else
698dcdb6 6316 echo "$ac_t""no" 1>&6
10f2d63a 6317 fi
698dcdb6 6318
10f2d63a 6319
698dcdb6 6320 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
b040e242 6321echo "configure:6322: checking for --enable-notebook" >&5
10f2d63a
VZ
6322 no_cache=0
6323 # Check whether --enable-notebook or --disable-notebook was given.
6324if test "${enable_notebook+set}" = set; then
6325 enableval="$enable_notebook"
698dcdb6 6326
10f2d63a
VZ
6327 if test "$enableval" = yes; then
6328 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6329 else
6330 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6331 fi
698dcdb6 6332
10f2d63a 6333else
698dcdb6 6334
10f2d63a
VZ
6335 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6336 if test "x$LINE" != x ; then
6337 eval "DEFAULT_$LINE"
6338 else
6339 no_cache=1
6340 fi
6341
6342 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6343
6344fi
10f2d63a
VZ
6345
6346
6347 eval "$ac_cv_use_notebook"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6353 echo "$ac_t""yes" 1>&6
10f2d63a 6354 else
698dcdb6 6355 echo "$ac_t""no" 1>&6
10f2d63a 6356 fi
698dcdb6 6357
10f2d63a 6358
24176f2c 6359 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
b040e242 6360echo "configure:6361: checking for --enable-propsheet" >&5
24176f2c
GD
6361 no_cache=0
6362 # Check whether --enable-propsheet or --disable-propsheet was given.
6363if test "${enable_propsheet+set}" = set; then
6364 enableval="$enable_propsheet"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6368 else
6369 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6370 fi
6371
6372else
6373
6374 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6382
6383fi
6384
6385
6386 eval "$ac_cv_use_propsheet"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_PROPSHEET" = yes; then
6392 echo "$ac_t""yes" 1>&6
6393 else
6394 echo "$ac_t""no" 1>&6
6395 fi
6396
6397
698dcdb6 6398 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
b040e242 6399echo "configure:6400: checking for --enable-radiobox" >&5
10f2d63a
VZ
6400 no_cache=0
6401 # Check whether --enable-radiobox or --disable-radiobox was given.
6402if test "${enable_radiobox+set}" = set; then
6403 enableval="$enable_radiobox"
698dcdb6 6404
10f2d63a
VZ
6405 if test "$enableval" = yes; then
6406 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6407 else
6408 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6409 fi
698dcdb6 6410
10f2d63a 6411else
698dcdb6 6412
10f2d63a
VZ
6413 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
6420 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6421
6422fi
10f2d63a
VZ
6423
6424
6425 eval "$ac_cv_use_radiobox"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6431 echo "$ac_t""yes" 1>&6
10f2d63a 6432 else
698dcdb6 6433 echo "$ac_t""no" 1>&6
10f2d63a 6434 fi
698dcdb6 6435
10f2d63a 6436
698dcdb6 6437 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
b040e242 6438echo "configure:6439: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6439 no_cache=0
6440 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6441if test "${enable_radiobtn+set}" = set; then
6442 enableval="$enable_radiobtn"
698dcdb6 6443
10f2d63a
VZ
6444 if test "$enableval" = yes; then
6445 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6446 else
6447 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6448 fi
698dcdb6 6449
10f2d63a 6450else
698dcdb6 6451
10f2d63a
VZ
6452 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6453 if test "x$LINE" != x ; then
6454 eval "DEFAULT_$LINE"
6455 else
6456 no_cache=1
6457 fi
6458
6459 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6460
6461fi
10f2d63a
VZ
6462
6463
6464 eval "$ac_cv_use_radiobtn"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6470 echo "$ac_t""yes" 1>&6
10f2d63a 6471 else
698dcdb6 6472 echo "$ac_t""no" 1>&6
10f2d63a 6473 fi
698dcdb6 6474
10f2d63a 6475
698dcdb6 6476 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
b040e242 6477echo "configure:6478: checking for --enable-sash" >&5
10f2d63a
VZ
6478 no_cache=0
6479 # Check whether --enable-sash or --disable-sash was given.
6480if test "${enable_sash+set}" = set; then
6481 enableval="$enable_sash"
698dcdb6 6482
10f2d63a
VZ
6483 if test "$enableval" = yes; then
6484 ac_cv_use_sash='wxUSE_SASH=yes'
6485 else
6486 ac_cv_use_sash='wxUSE_SASH=no'
6487 fi
698dcdb6 6488
10f2d63a 6489else
698dcdb6 6490
10f2d63a
VZ
6491 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6499
6500fi
10f2d63a
VZ
6501
6502
6503 eval "$ac_cv_use_sash"
6504 if test "$no_cache" != 1; then
6505 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6506 fi
6507
6508 if test "$wxUSE_SASH" = yes; then
698dcdb6 6509 echo "$ac_t""yes" 1>&6
10f2d63a 6510 else
698dcdb6 6511 echo "$ac_t""no" 1>&6
10f2d63a 6512 fi
698dcdb6 6513
10f2d63a 6514
698dcdb6 6515 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
b040e242 6516echo "configure:6517: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6517 no_cache=0
6518 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6519if test "${enable_scrollbar+set}" = set; then
6520 enableval="$enable_scrollbar"
698dcdb6 6521
10f2d63a
VZ
6522 if test "$enableval" = yes; then
6523 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6524 else
6525 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6526 fi
698dcdb6 6527
10f2d63a 6528else
698dcdb6 6529
10f2d63a
VZ
6530 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6538
6539fi
10f2d63a
VZ
6540
6541
6542 eval "$ac_cv_use_scrollbar"
6543 if test "$no_cache" != 1; then
6544 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6545 fi
6546
6547 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6548 echo "$ac_t""yes" 1>&6
10f2d63a 6549 else
698dcdb6 6550 echo "$ac_t""no" 1>&6
10f2d63a 6551 fi
698dcdb6 6552
10f2d63a 6553
698dcdb6 6554 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
b040e242 6555echo "configure:6556: checking for --enable-slider" >&5
10f2d63a
VZ
6556 no_cache=0
6557 # Check whether --enable-slider or --disable-slider was given.
6558if test "${enable_slider+set}" = set; then
6559 enableval="$enable_slider"
698dcdb6 6560
10f2d63a
VZ
6561 if test "$enableval" = yes; then
6562 ac_cv_use_slider='wxUSE_SLIDER=yes'
6563 else
6564 ac_cv_use_slider='wxUSE_SLIDER=no'
6565 fi
698dcdb6 6566
10f2d63a 6567else
698dcdb6 6568
10f2d63a
VZ
6569 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6577
6578fi
10f2d63a
VZ
6579
6580
6581 eval "$ac_cv_use_slider"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6584 fi
6585
6586 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6587 echo "$ac_t""yes" 1>&6
10f2d63a 6588 else
698dcdb6 6589 echo "$ac_t""no" 1>&6
10f2d63a 6590 fi
698dcdb6 6591
10f2d63a 6592
698dcdb6 6593 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
b040e242 6594echo "configure:6595: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6595 no_cache=0
6596 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6597if test "${enable_spinbtn+set}" = set; then
6598 enableval="$enable_spinbtn"
698dcdb6 6599
10f2d63a
VZ
6600 if test "$enableval" = yes; then
6601 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6602 else
6603 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6604 fi
698dcdb6 6605
10f2d63a 6606else
698dcdb6 6607
10f2d63a
VZ
6608 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6616
6617fi
10f2d63a
VZ
6618
6619
6620 eval "$ac_cv_use_spinbtn"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6626 echo "$ac_t""yes" 1>&6
10f2d63a 6627 else
698dcdb6 6628 echo "$ac_t""no" 1>&6
10f2d63a 6629 fi
698dcdb6 6630
10f2d63a 6631
698dcdb6 6632 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
b040e242 6633echo "configure:6634: checking for --enable-spinctrl" >&5
56cfaa52
RR
6634 no_cache=0
6635 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6636if test "${enable_spinctrl+set}" = set; then
6637 enableval="$enable_spinctrl"
698dcdb6 6638
56cfaa52
RR
6639 if test "$enableval" = yes; then
6640 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6641 else
6642 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6643 fi
698dcdb6 6644
56cfaa52 6645else
698dcdb6 6646
56cfaa52
RR
6647 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6655
6656fi
56cfaa52
RR
6657
6658
6659 eval "$ac_cv_use_spinctrl"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6665 echo "$ac_t""yes" 1>&6
56cfaa52 6666 else
698dcdb6 6667 echo "$ac_t""no" 1>&6
56cfaa52 6668 fi
698dcdb6 6669
56cfaa52 6670
698dcdb6 6671 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
b040e242 6672echo "configure:6673: checking for --enable-splitter" >&5
10f2d63a
VZ
6673 no_cache=0
6674 # Check whether --enable-splitter or --disable-splitter was given.
6675if test "${enable_splitter+set}" = set; then
6676 enableval="$enable_splitter"
698dcdb6 6677
10f2d63a
VZ
6678 if test "$enableval" = yes; then
6679 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6680 else
6681 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6682 fi
698dcdb6 6683
10f2d63a 6684else
698dcdb6 6685
10f2d63a
VZ
6686 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6694
6695fi
10f2d63a
VZ
6696
6697
6698 eval "$ac_cv_use_splitter"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6704 echo "$ac_t""yes" 1>&6
10f2d63a 6705 else
698dcdb6 6706 echo "$ac_t""no" 1>&6
10f2d63a 6707 fi
698dcdb6 6708
10f2d63a 6709
698dcdb6 6710 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
b040e242 6711echo "configure:6712: checking for --enable-statbmp" >&5
10f2d63a
VZ
6712 no_cache=0
6713 # Check whether --enable-statbmp or --disable-statbmp was given.
6714if test "${enable_statbmp+set}" = set; then
6715 enableval="$enable_statbmp"
698dcdb6 6716
10f2d63a
VZ
6717 if test "$enableval" = yes; then
6718 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6719 else
6720 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6721 fi
698dcdb6 6722
10f2d63a 6723else
698dcdb6 6724
10f2d63a
VZ
6725 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6726 if test "x$LINE" != x ; then
6727 eval "DEFAULT_$LINE"
6728 else
6729 no_cache=1
6730 fi
6731
6732 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6733
6734fi
10f2d63a
VZ
6735
6736
6737 eval "$ac_cv_use_statbmp"
6738 if test "$no_cache" != 1; then
6739 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6740 fi
6741
6742 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6743 echo "$ac_t""yes" 1>&6
10f2d63a 6744 else
698dcdb6 6745 echo "$ac_t""no" 1>&6
10f2d63a 6746 fi
698dcdb6 6747
10f2d63a 6748
698dcdb6 6749 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
b040e242 6750echo "configure:6751: checking for --enable-statbox" >&5
10f2d63a
VZ
6751 no_cache=0
6752 # Check whether --enable-statbox or --disable-statbox was given.
6753if test "${enable_statbox+set}" = set; then
6754 enableval="$enable_statbox"
698dcdb6 6755
10f2d63a
VZ
6756 if test "$enableval" = yes; then
6757 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6758 else
6759 ac_cv_use_statbox='wxUSE_STATBOX=no'
6760 fi
698dcdb6 6761
10f2d63a 6762else
698dcdb6 6763
10f2d63a
VZ
6764 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6765 if test "x$LINE" != x ; then
6766 eval "DEFAULT_$LINE"
6767 else
6768 no_cache=1
6769 fi
6770
6771 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6772
6773fi
10f2d63a
VZ
6774
6775
6776 eval "$ac_cv_use_statbox"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6782 echo "$ac_t""yes" 1>&6
10f2d63a 6783 else
698dcdb6 6784 echo "$ac_t""no" 1>&6
10f2d63a 6785 fi
698dcdb6 6786
10f2d63a 6787
698dcdb6 6788 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
b040e242 6789echo "configure:6790: checking for --enable-statline" >&5
10f2d63a
VZ
6790 no_cache=0
6791 # Check whether --enable-statline or --disable-statline was given.
6792if test "${enable_statline+set}" = set; then
6793 enableval="$enable_statline"
698dcdb6 6794
10f2d63a
VZ
6795 if test "$enableval" = yes; then
6796 ac_cv_use_statline='wxUSE_STATLINE=yes'
6797 else
6798 ac_cv_use_statline='wxUSE_STATLINE=no'
6799 fi
698dcdb6 6800
10f2d63a 6801else
698dcdb6 6802
10f2d63a
VZ
6803 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6804 if test "x$LINE" != x ; then
6805 eval "DEFAULT_$LINE"
6806 else
6807 no_cache=1
6808 fi
6809
6810 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6811
6812fi
10f2d63a
VZ
6813
6814
6815 eval "$ac_cv_use_statline"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6818 fi
6819
6820 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6821 echo "$ac_t""yes" 1>&6
10f2d63a 6822 else
698dcdb6 6823 echo "$ac_t""no" 1>&6
10f2d63a 6824 fi
698dcdb6 6825
10f2d63a 6826
1e6feb95 6827 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
b040e242 6828echo "configure:6829: checking for --enable-stattext" >&5
1e6feb95
VZ
6829 no_cache=0
6830 # Check whether --enable-stattext or --disable-stattext was given.
6831if test "${enable_stattext+set}" = set; then
6832 enableval="$enable_stattext"
6833
6834 if test "$enableval" = yes; then
6835 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6836 else
6837 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6838 fi
6839
6840else
6841
6842 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6850
6851fi
6852
6853
6854 eval "$ac_cv_use_stattext"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_STATTEXT" = yes; then
6860 echo "$ac_t""yes" 1>&6
6861 else
6862 echo "$ac_t""no" 1>&6
6863 fi
6864
6865
698dcdb6 6866 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
b040e242 6867echo "configure:6868: checking for --enable-statusbar" >&5
10f2d63a
VZ
6868 no_cache=0
6869 # Check whether --enable-statusbar or --disable-statusbar was given.
6870if test "${enable_statusbar+set}" = set; then
6871 enableval="$enable_statusbar"
698dcdb6 6872
10f2d63a
VZ
6873 if test "$enableval" = yes; then
6874 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6875 else
6876 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6877 fi
698dcdb6 6878
10f2d63a 6879else
698dcdb6 6880
10f2d63a
VZ
6881 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6889
6890fi
10f2d63a
VZ
6891
6892
6893 eval "$ac_cv_use_statusbar"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6896 fi
6897
6898 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6899 echo "$ac_t""yes" 1>&6
10f2d63a 6900 else
698dcdb6 6901 echo "$ac_t""no" 1>&6
10f2d63a 6902 fi
698dcdb6 6903
10f2d63a 6904
698dcdb6 6905 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
b040e242 6906echo "configure:6907: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6907 no_cache=0
6908 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6909if test "${enable_tabdialog+set}" = set; then
6910 enableval="$enable_tabdialog"
698dcdb6 6911
10f2d63a
VZ
6912 if test "$enableval" = yes; then
6913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6914 else
6915 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6916 fi
698dcdb6 6917
10f2d63a 6918else
698dcdb6 6919
10f2d63a
VZ
6920 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6928
6929fi
10f2d63a
VZ
6930
6931
6932 eval "$ac_cv_use_tabdialog"
6933 if test "$no_cache" != 1; then
6934 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6935 fi
6936
6937 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6938 echo "$ac_t""yes" 1>&6
10f2d63a 6939 else
698dcdb6 6940 echo "$ac_t""no" 1>&6
10f2d63a 6941 fi
698dcdb6 6942
10f2d63a 6943
1e6feb95 6944 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
b040e242 6945echo "configure:6946: checking for --enable-textctrl" >&5
1e6feb95
VZ
6946 no_cache=0
6947 # Check whether --enable-textctrl or --disable-textctrl was given.
6948if test "${enable_textctrl+set}" = set; then
6949 enableval="$enable_textctrl"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6953 else
6954 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6967
6968fi
6969
6970
6971 eval "$ac_cv_use_textctrl"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_TEXTCTRL" = yes; then
6977 echo "$ac_t""yes" 1>&6
6978 else
6979 echo "$ac_t""no" 1>&6
6980 fi
6981
6982
698dcdb6 6983 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
b040e242 6984echo "configure:6985: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6985 no_cache=0
6986 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6987if test "${enable_togglebtn+set}" = set; then
6988 enableval="$enable_togglebtn"
698dcdb6 6989
1db8dc4a
VZ
6990 if test "$enableval" = yes; then
6991 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6992 else
6993 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6994 fi
698dcdb6 6995
1db8dc4a 6996else
698dcdb6 6997
1db8dc4a
VZ
6998 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
7006
7007fi
1db8dc4a
VZ
7008
7009
7010 eval "$ac_cv_use_togglebtn"
7011 if test "$no_cache" != 1; then
7012 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7013 fi
7014
7015 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 7016 echo "$ac_t""yes" 1>&6
1db8dc4a 7017 else
698dcdb6 7018 echo "$ac_t""no" 1>&6
1db8dc4a 7019 fi
698dcdb6 7020
1db8dc4a 7021
698dcdb6 7022 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
b040e242 7023echo "configure:7024: checking for --enable-toolbar" >&5
10f2d63a
VZ
7024 no_cache=0
7025 # Check whether --enable-toolbar or --disable-toolbar was given.
7026if test "${enable_toolbar+set}" = set; then
7027 enableval="$enable_toolbar"
698dcdb6 7028
10f2d63a
VZ
7029 if test "$enableval" = yes; then
7030 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7031 else
7032 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7033 fi
698dcdb6 7034
10f2d63a 7035else
698dcdb6 7036
10f2d63a
VZ
7037 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7045
7046fi
10f2d63a
VZ
7047
7048
7049 eval "$ac_cv_use_toolbar"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7055 echo "$ac_t""yes" 1>&6
10f2d63a 7056 else
698dcdb6 7057 echo "$ac_t""no" 1>&6
10f2d63a 7058 fi
698dcdb6 7059
10f2d63a 7060
698dcdb6 7061 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
b040e242 7062echo "configure:7063: checking for --enable-tbarnative" >&5
360d6699
VZ
7063 no_cache=0
7064 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7065if test "${enable_tbarnative+set}" = set; then
7066 enableval="$enable_tbarnative"
698dcdb6 7067
360d6699
VZ
7068 if test "$enableval" = yes; then
7069 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7070 else
7071 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7072 fi
698dcdb6 7073
360d6699 7074else
698dcdb6 7075
360d6699
VZ
7076 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7077 if test "x$LINE" != x ; then
7078 eval "DEFAULT_$LINE"
7079 else
7080 no_cache=1
7081 fi
7082
7083 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7084
7085fi
360d6699
VZ
7086
7087
7088 eval "$ac_cv_use_tbarnative"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7094 echo "$ac_t""yes" 1>&6
360d6699 7095 else
698dcdb6 7096 echo "$ac_t""no" 1>&6
360d6699 7097 fi
698dcdb6 7098
360d6699 7099
698dcdb6 7100 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
b040e242 7101echo "configure:7102: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7102 no_cache=0
7103 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7104if test "${enable_tbarsmpl+set}" = set; then
7105 enableval="$enable_tbarsmpl"
698dcdb6 7106
360d6699
VZ
7107 if test "$enableval" = yes; then
7108 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7109 else
7110 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7111 fi
698dcdb6 7112
360d6699 7113else
698dcdb6 7114
360d6699
VZ
7115 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7116 if test "x$LINE" != x ; then
7117 eval "DEFAULT_$LINE"
7118 else
7119 no_cache=1
7120 fi
7121
7122 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7123
7124fi
360d6699
VZ
7125
7126
7127 eval "$ac_cv_use_tbarsmpl"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7133 echo "$ac_t""yes" 1>&6
360d6699 7134 else
698dcdb6 7135 echo "$ac_t""no" 1>&6
360d6699 7136 fi
698dcdb6 7137
360d6699 7138
698dcdb6 7139 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
b040e242 7140echo "configure:7141: checking for --enable-treectrl" >&5
10f2d63a
VZ
7141 no_cache=0
7142 # Check whether --enable-treectrl or --disable-treectrl was given.
7143if test "${enable_treectrl+set}" = set; then
7144 enableval="$enable_treectrl"
698dcdb6 7145
10f2d63a
VZ
7146 if test "$enableval" = yes; then
7147 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7148 else
7149 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7150 fi
698dcdb6 7151
10f2d63a 7152else
698dcdb6 7153
10f2d63a
VZ
7154 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7155 if test "x$LINE" != x ; then
7156 eval "DEFAULT_$LINE"
7157 else
7158 no_cache=1
7159 fi
7160
7161 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7162
7163fi
10f2d63a
VZ
7164
7165
1e6feb95
VZ
7166 eval "$ac_cv_use_treectrl"
7167 if test "$no_cache" != 1; then
7168 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7169 fi
7170
7171 if test "$wxUSE_TREECTRL" = yes; then
7172 echo "$ac_t""yes" 1>&6
7173 else
7174 echo "$ac_t""no" 1>&6
7175 fi
7176
7177
9926e4a4 7178 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
b040e242 7179echo "configure:7180: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7180 no_cache=0
7181 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7182if test "${enable_tipwindow+set}" = set; then
7183 enableval="$enable_tipwindow"
7184
7185 if test "$enableval" = yes; then
7186 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7187 else
7188 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7189 fi
7190
7191else
7192
7193 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7194 if test "x$LINE" != x ; then
7195 eval "DEFAULT_$LINE"
7196 else
7197 no_cache=1
7198 fi
7199
7200 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7201
7202fi
7203
7204
7205 eval "$ac_cv_use_tipwindow"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_TIPWINDOW" = yes; then
7211 echo "$ac_t""yes" 1>&6
7212 else
7213 echo "$ac_t""no" 1>&6
7214 fi
7215
7216
9f41d601 7217 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
b040e242 7218echo "configure:7219: checking for --enable-popupwin" >&5
9f41d601
RR
7219 no_cache=0
7220 # Check whether --enable-popupwin or --disable-popupwin was given.
7221if test "${enable_popupwin+set}" = set; then
7222 enableval="$enable_popupwin"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7226 else
7227 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7240
7241fi
7242
7243
7244 eval "$ac_cv_use_popupwin"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_POPUPWIN" = yes; then
7250 echo "$ac_t""yes" 1>&6
7251 else
7252 echo "$ac_t""no" 1>&6
7253 fi
7254
7255
1e6feb95
VZ
7256
7257
7258 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
b040e242 7259echo "configure:7260: checking for --enable-commondlg" >&5
1e6feb95
VZ
7260 no_cache=0
7261 # Check whether --enable-commondlg or --disable-commondlg was given.
7262if test "${enable_commondlg+set}" = set; then
7263 enableval="$enable_commondlg"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7267 else
7268 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7269 fi
7270
7271else
7272
7273 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7281
7282fi
7283
7284
7285 eval "$ac_cv_use_commondlg"
7286 if test "$no_cache" != 1; then
7287 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7288 fi
7289
7290 if test "$wxUSE_COMMONDLGS" = yes; then
7291 echo "$ac_t""yes" 1>&6
7292 else
7293 echo "$ac_t""no" 1>&6
7294 fi
7295
7296
7297 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
b040e242 7298echo "configure:7299: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7299 no_cache=0
7300 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7301if test "${enable_choicedlg+set}" = set; then
7302 enableval="$enable_choicedlg"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7306 else
7307 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7320
7321fi
7322
7323
7324 eval "$ac_cv_use_choicedlg"
7325 if test "$no_cache" != 1; then
7326 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7327 fi
7328
7329 if test "$wxUSE_CHOICEDLG" = yes; then
7330 echo "$ac_t""yes" 1>&6
7331 else
7332 echo "$ac_t""no" 1>&6
7333 fi
7334
7335
7336 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
b040e242 7337echo "configure:7338: checking for --enable-coldlg" >&5
1e6feb95
VZ
7338 no_cache=0
7339 # Check whether --enable-coldlg or --disable-coldlg was given.
7340if test "${enable_coldlg+set}" = set; then
7341 enableval="$enable_coldlg"
7342
7343 if test "$enableval" = yes; then
7344 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7345 else
7346 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7347 fi
7348
7349else
7350
7351 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7352 if test "x$LINE" != x ; then
7353 eval "DEFAULT_$LINE"
7354 else
7355 no_cache=1
7356 fi
7357
7358 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7359
7360fi
7361
7362
7363 eval "$ac_cv_use_coldlg"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7366 fi
7367
7368 if test "$wxUSE_COLOURDLG" = yes; then
7369 echo "$ac_t""yes" 1>&6
7370 else
7371 echo "$ac_t""no" 1>&6
7372 fi
7373
7374
7375 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
b040e242 7376echo "configure:7377: checking for --enable-filedlg" >&5
1e6feb95
VZ
7377 no_cache=0
7378 # Check whether --enable-filedlg or --disable-filedlg was given.
7379if test "${enable_filedlg+set}" = set; then
7380 enableval="$enable_filedlg"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7384 else
7385 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7398
7399fi
7400
7401
7402 eval "$ac_cv_use_filedlg"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_FILEDLG" = yes; then
7408 echo "$ac_t""yes" 1>&6
7409 else
7410 echo "$ac_t""no" 1>&6
7411 fi
7412
7413
69d27ff7 7414 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
b040e242 7415echo "configure:7416: checking for --enable-finddlg" >&5
8db37e06 7416 no_cache=0
69d27ff7
MB
7417 # Check whether --enable-finddlg or --disable-finddlg was given.
7418if test "${enable_finddlg+set}" = set; then
7419 enableval="$enable_finddlg"
8db37e06
VZ
7420
7421 if test "$enableval" = yes; then
69d27ff7 7422 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7423 else
69d27ff7 7424 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7425 fi
7426
7427else
7428
7429 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
69d27ff7 7436 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7437
7438fi
7439
7440
69d27ff7 7441 eval "$ac_cv_use_finddlg"
8db37e06 7442 if test "$no_cache" != 1; then
69d27ff7 7443 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7444 fi
7445
7446 if test "$wxUSE_FINDREPLDLG" = yes; then
7447 echo "$ac_t""yes" 1>&6
7448 else
7449 echo "$ac_t""no" 1>&6
7450 fi
7451
7452
1e6feb95 7453 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
b040e242 7454echo "configure:7455: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7455 no_cache=0
7456 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7457if test "${enable_fontdlg+set}" = set; then
7458 enableval="$enable_fontdlg"
7459
7460 if test "$enableval" = yes; then
7461 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7462 else
7463 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7464 fi
7465
7466else
7467
7468 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7476
7477fi
7478
7479
7480 eval "$ac_cv_use_fontdlg"
7481 if test "$no_cache" != 1; then
7482 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7483 fi
7484
7485 if test "$wxUSE_FONTDLG" = yes; then
7486 echo "$ac_t""yes" 1>&6
7487 else
7488 echo "$ac_t""no" 1>&6
7489 fi
7490
7491
7492 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
b040e242 7493echo "configure:7494: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7494 no_cache=0
7495 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7496if test "${enable_dirdlg+set}" = set; then
7497 enableval="$enable_dirdlg"
7498
7499 if test "$enableval" = yes; then
7500 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7501 else
7502 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7503 fi
7504
7505else
7506
7507 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7508 if test "x$LINE" != x ; then
7509 eval "DEFAULT_$LINE"
7510 else
7511 no_cache=1
7512 fi
7513
7514 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7515
7516fi
7517
7518
7519 eval "$ac_cv_use_dirdlg"
10f2d63a 7520 if test "$no_cache" != 1; then
1e6feb95 7521 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7522 fi
7523
1e6feb95 7524 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7525 echo "$ac_t""yes" 1>&6
10f2d63a 7526 else
698dcdb6 7527 echo "$ac_t""no" 1>&6
10f2d63a 7528 fi
698dcdb6
VZ
7529
7530
1e6feb95 7531 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
b040e242 7532echo "configure:7533: checking for --enable-msgdlg" >&5
10f2d63a 7533 no_cache=0
1e6feb95
VZ
7534 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7535if test "${enable_msgdlg+set}" = set; then
7536 enableval="$enable_msgdlg"
698dcdb6 7537
10f2d63a 7538 if test "$enableval" = yes; then
1e6feb95 7539 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7540 else
1e6feb95 7541 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7542 fi
698dcdb6 7543
10f2d63a 7544else
698dcdb6 7545
1e6feb95 7546 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
1e6feb95 7553 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7554
7555fi
10f2d63a
VZ
7556
7557
1e6feb95 7558 eval "$ac_cv_use_msgdlg"
10f2d63a 7559 if test "$no_cache" != 1; then
1e6feb95 7560 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7561 fi
7562
1e6feb95 7563 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7564 echo "$ac_t""yes" 1>&6
10f2d63a 7565 else
698dcdb6 7566 echo "$ac_t""no" 1>&6
10f2d63a 7567 fi
698dcdb6 7568
10f2d63a 7569
1e6feb95 7570 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
b040e242 7571echo "configure:7572: checking for --enable-numberdlg" >&5
10f2d63a 7572 no_cache=0
1e6feb95
VZ
7573 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7574if test "${enable_numberdlg+set}" = set; then
7575 enableval="$enable_numberdlg"
698dcdb6 7576
10f2d63a 7577 if test "$enableval" = yes; then
1e6feb95 7578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7579 else
1e6feb95 7580 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7581 fi
698dcdb6 7582
10f2d63a 7583else
698dcdb6 7584
1e6feb95 7585 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7586 if test "x$LINE" != x ; then
7587 eval "DEFAULT_$LINE"
7588 else
7589 no_cache=1
7590 fi
7591
1e6feb95 7592 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7593
7594fi
10f2d63a
VZ
7595
7596
1e6feb95 7597 eval "$ac_cv_use_numberdlg"
10f2d63a 7598 if test "$no_cache" != 1; then
1e6feb95 7599 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7600 fi
7601
1e6feb95 7602 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7603 echo "$ac_t""yes" 1>&6
10f2d63a 7604 else
698dcdb6 7605 echo "$ac_t""no" 1>&6
10f2d63a 7606 fi
698dcdb6 7607
10f2d63a 7608
cbca9943 7609 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
b040e242 7610echo "configure:7611: checking for --enable-splash" >&5
cbca9943
VZ
7611 no_cache=0
7612 # Check whether --enable-splash or --disable-splash was given.
7613if test "${enable_splash+set}" = set; then
7614 enableval="$enable_splash"
7615
7616 if test "$enableval" = yes; then
7617 ac_cv_use_splash='wxUSE_SPLASH=yes'
7618 else
7619 ac_cv_use_splash='wxUSE_SPLASH=no'
7620 fi
7621
7622else
7623
7624 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7625 if test "x$LINE" != x ; then
7626 eval "DEFAULT_$LINE"
7627 else
7628 no_cache=1
7629 fi
7630
7631 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7632
7633fi
7634
7635
7636 eval "$ac_cv_use_splash"
7637 if test "$no_cache" != 1; then
7638 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7639 fi
7640
7641 if test "$wxUSE_SPLASH" = yes; then
7642 echo "$ac_t""yes" 1>&6
7643 else
7644 echo "$ac_t""no" 1>&6
7645 fi
7646
7647
698dcdb6 7648 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
b040e242 7649echo "configure:7650: checking for --enable-textdlg" >&5
10f2d63a
VZ
7650 no_cache=0
7651 # Check whether --enable-textdlg or --disable-textdlg was given.
7652if test "${enable_textdlg+set}" = set; then
7653 enableval="$enable_textdlg"
698dcdb6 7654
10f2d63a
VZ
7655 if test "$enableval" = yes; then
7656 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7657 else
7658 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7659 fi
698dcdb6 7660
10f2d63a 7661else
698dcdb6 7662
10f2d63a
VZ
7663 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7671
7672fi
10f2d63a
VZ
7673
7674
7675 eval "$ac_cv_use_textdlg"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7681 echo "$ac_t""yes" 1>&6
10f2d63a 7682 else
698dcdb6 7683 echo "$ac_t""no" 1>&6
10f2d63a 7684 fi
698dcdb6 7685
10f2d63a 7686
698dcdb6 7687 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
b040e242 7688echo "configure:7689: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7689 no_cache=0
7690 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7691if test "${enable_tipdlg+set}" = set; then
7692 enableval="$enable_tipdlg"
698dcdb6 7693
10f2d63a
VZ
7694 if test "$enableval" = yes; then
7695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7696 else
7697 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7698 fi
698dcdb6 7699
10f2d63a 7700else
698dcdb6 7701
10f2d63a
VZ
7702 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7703 if test "x$LINE" != x ; then
7704 eval "DEFAULT_$LINE"
7705 else
7706 no_cache=1
7707 fi
7708
7709 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7710
7711fi
10f2d63a
VZ
7712
7713
7714 eval "$ac_cv_use_tipdlg"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7720 echo "$ac_t""yes" 1>&6
10f2d63a 7721 else
698dcdb6 7722 echo "$ac_t""no" 1>&6
10f2d63a 7723 fi
698dcdb6 7724
10f2d63a 7725
698dcdb6 7726 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
b040e242 7727echo "configure:7728: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7728 no_cache=0
7729 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7730if test "${enable_progressdlg+set}" = set; then
7731 enableval="$enable_progressdlg"
698dcdb6 7732
10f2d63a
VZ
7733 if test "$enableval" = yes; then
7734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7735 else
7736 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7737 fi
698dcdb6 7738
10f2d63a 7739else
698dcdb6 7740
10f2d63a
VZ
7741 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7742 if test "x$LINE" != x ; then
7743 eval "DEFAULT_$LINE"
7744 else
7745 no_cache=1
7746 fi
7747
7748 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7749
7750fi
10f2d63a
VZ
7751
7752
7753 eval "$ac_cv_use_progressdlg"
7754 if test "$no_cache" != 1; then
7755 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7756 fi
7757
7758 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7759 echo "$ac_t""yes" 1>&6
10f2d63a 7760 else
698dcdb6 7761 echo "$ac_t""no" 1>&6
10f2d63a 7762 fi
698dcdb6 7763
10f2d63a 7764
b1f5d087 7765 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
b040e242 7766echo "configure:7767: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7767 no_cache=0
7768 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7769if test "${enable_wizarddlg+set}" = set; then
7770 enableval="$enable_wizarddlg"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7774 else
7775 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7788
7789fi
7790
7791
7792 eval "$ac_cv_use_wizarddlg"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_WIZARDDLG" = yes; then
7798 echo "$ac_t""yes" 1>&6
7799 else
7800 echo "$ac_t""no" 1>&6
7801 fi
7802
7803
7804
7805
1e6feb95 7806 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
b040e242 7807echo "configure:7808: checking for --enable-menus" >&5
1e6feb95
VZ
7808 no_cache=0
7809 # Check whether --enable-menus or --disable-menus was given.
7810if test "${enable_menus+set}" = set; then
7811 enableval="$enable_menus"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_menus='wxUSE_MENUS=yes'
7815 else
7816 ac_cv_use_menus='wxUSE_MENUS=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7829
7830fi
7831
7832
7833 eval "$ac_cv_use_menus"
7834 if test "$no_cache" != 1; then
7835 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7836 fi
7837
7838 if test "$wxUSE_MENUS" = yes; then
7839 echo "$ac_t""yes" 1>&6
7840 else
7841 echo "$ac_t""no" 1>&6
7842 fi
7843
7844
698dcdb6 7845 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
b040e242 7846echo "configure:7847: checking for --enable-miniframe" >&5
10f2d63a
VZ
7847 no_cache=0
7848 # Check whether --enable-miniframe or --disable-miniframe was given.
7849if test "${enable_miniframe+set}" = set; then
7850 enableval="$enable_miniframe"
698dcdb6 7851
10f2d63a
VZ
7852 if test "$enableval" = yes; then
7853 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7854 else
7855 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7856 fi
698dcdb6 7857
10f2d63a 7858else
698dcdb6 7859
10f2d63a
VZ
7860 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7861 if test "x$LINE" != x ; then
7862 eval "DEFAULT_$LINE"
7863 else
7864 no_cache=1
7865 fi
7866
7867 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7868
7869fi
10f2d63a
VZ
7870
7871
7872 eval "$ac_cv_use_miniframe"
7873 if test "$no_cache" != 1; then
7874 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7875 fi
7876
7877 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7878 echo "$ac_t""yes" 1>&6
10f2d63a 7879 else
698dcdb6 7880 echo "$ac_t""no" 1>&6
10f2d63a 7881 fi
698dcdb6 7882
10f2d63a 7883
698dcdb6 7884 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
b040e242 7885echo "configure:7886: checking for --enable-tooltips" >&5
10f2d63a
VZ
7886 no_cache=0
7887 # Check whether --enable-tooltips or --disable-tooltips was given.
7888if test "${enable_tooltips+set}" = set; then
7889 enableval="$enable_tooltips"
698dcdb6 7890
10f2d63a
VZ
7891 if test "$enableval" = yes; then
7892 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7893 else
7894 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7895 fi
698dcdb6 7896
10f2d63a 7897else
698dcdb6 7898
10f2d63a
VZ
7899 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7907
7908fi
10f2d63a
VZ
7909
7910
7911 eval "$ac_cv_use_tooltips"
7912 if test "$no_cache" != 1; then
7913 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7914 fi
7915
7916 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7917 echo "$ac_t""yes" 1>&6
10f2d63a 7918 else
698dcdb6 7919 echo "$ac_t""no" 1>&6
10f2d63a 7920 fi
698dcdb6 7921
10f2d63a 7922
698dcdb6 7923 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
b040e242 7924echo "configure:7925: checking for --enable-splines" >&5
10f2d63a
VZ
7925 no_cache=0
7926 # Check whether --enable-splines or --disable-splines was given.
7927if test "${enable_splines+set}" = set; then
7928 enableval="$enable_splines"
698dcdb6 7929
10f2d63a
VZ
7930 if test "$enableval" = yes; then
7931 ac_cv_use_splines='wxUSE_SPLINES=yes'
7932 else
7933 ac_cv_use_splines='wxUSE_SPLINES=no'
7934 fi
698dcdb6 7935
10f2d63a 7936else
698dcdb6 7937
10f2d63a
VZ
7938 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7946
7947fi
10f2d63a
VZ
7948
7949
7950 eval "$ac_cv_use_splines"
7951 if test "$no_cache" != 1; then
7952 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7953 fi
7954
7955 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7956 echo "$ac_t""yes" 1>&6
10f2d63a 7957 else
698dcdb6 7958 echo "$ac_t""no" 1>&6
10f2d63a 7959 fi
698dcdb6 7960
10f2d63a 7961
698dcdb6 7962 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
b040e242 7963echo "configure:7964: checking for --enable-validators" >&5
10f2d63a
VZ
7964 no_cache=0
7965 # Check whether --enable-validators or --disable-validators was given.
7966if test "${enable_validators+set}" = set; then
7967 enableval="$enable_validators"
698dcdb6 7968
10f2d63a
VZ
7969 if test "$enableval" = yes; then
7970 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7971 else
7972 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7973 fi
698dcdb6 7974
10f2d63a 7975else
698dcdb6 7976
10f2d63a
VZ
7977 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7985
7986fi
10f2d63a
VZ
7987
7988
7989 eval "$ac_cv_use_validators"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7995 echo "$ac_t""yes" 1>&6
10f2d63a 7996 else
698dcdb6 7997 echo "$ac_t""no" 1>&6
10f2d63a 7998 fi
698dcdb6 7999
10f2d63a 8000
698dcdb6 8001 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
b040e242 8002echo "configure:8003: checking for --enable-busyinfo" >&5
10f2d63a
VZ
8003 no_cache=0
8004 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8005if test "${enable_busyinfo+set}" = set; then
8006 enableval="$enable_busyinfo"
698dcdb6 8007
10f2d63a
VZ
8008 if test "$enableval" = yes; then
8009 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8010 else
8011 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8012 fi
698dcdb6 8013
10f2d63a 8014else
698dcdb6 8015
10f2d63a
VZ
8016 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8017 if test "x$LINE" != x ; then
8018 eval "DEFAULT_$LINE"
8019 else
8020 no_cache=1
8021 fi
8022
8023 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
8024
8025fi
10f2d63a
VZ
8026
8027
8028 eval "$ac_cv_use_busyinfo"
8029 if test "$no_cache" != 1; then
8030 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8031 fi
8032
8033 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8034 echo "$ac_t""yes" 1>&6
10f2d63a 8035 else
698dcdb6 8036 echo "$ac_t""no" 1>&6
10f2d63a 8037 fi
698dcdb6 8038
10f2d63a 8039
698dcdb6 8040 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
b040e242 8041echo "configure:8042: checking for --enable-joystick" >&5
f6bcfd97
BP
8042 no_cache=0
8043 # Check whether --enable-joystick or --disable-joystick was given.
8044if test "${enable_joystick+set}" = set; then
8045 enableval="$enable_joystick"
698dcdb6 8046
f6bcfd97
BP
8047 if test "$enableval" = yes; then
8048 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8049 else
8050 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8051 fi
698dcdb6 8052
f6bcfd97 8053else
698dcdb6 8054
f6bcfd97
BP
8055 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8063
8064fi
f6bcfd97
BP
8065
8066
8067 eval "$ac_cv_use_joystick"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8073 echo "$ac_t""yes" 1>&6
f6bcfd97 8074 else
698dcdb6 8075 echo "$ac_t""no" 1>&6
f6bcfd97 8076 fi
698dcdb6
VZ
8077
8078
1e6feb95 8079 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
b040e242 8080echo "configure:8081: checking for --enable-metafile" >&5
1e6feb95
VZ
8081 no_cache=0
8082 # Check whether --enable-metafile or --disable-metafile was given.
8083if test "${enable_metafile+set}" = set; then
8084 enableval="$enable_metafile"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8088 else
8089 ac_cv_use_metafile='wxUSE_METAFILE=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8102
8103fi
8104
8105
8106 eval "$ac_cv_use_metafile"
8107 if test "$no_cache" != 1; then
8108 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8109 fi
8110
8111 if test "$wxUSE_METAFILE" = yes; then
8112 echo "$ac_t""yes" 1>&6
8113 else
8114 echo "$ac_t""no" 1>&6
8115 fi
8116
8117
24fd6d87 8118 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
b040e242 8119echo "configure:8120: checking for --enable-dragimage" >&5
24fd6d87
VZ
8120 no_cache=0
8121 # Check whether --enable-dragimage or --disable-dragimage was given.
8122if test "${enable_dragimage+set}" = set; then
8123 enableval="$enable_dragimage"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8127 else
8128 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8141
8142fi
8143
8144
8145 eval "$ac_cv_use_dragimage"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_DRAGIMAGE" = yes; then
8151 echo "$ac_t""yes" 1>&6
8152 else
8153 echo "$ac_t""no" 1>&6
8154 fi
8155
8156
10f2d63a 8157
698dcdb6 8158
edae8572 8159 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
b040e242 8160echo "configure:8161: checking for --enable-palette" >&5
edae8572
VZ
8161 no_cache=0
8162 # Check whether --enable-palette or --disable-palette was given.
8163if test "${enable_palette+set}" = set; then
8164 enableval="$enable_palette"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_palette='wxUSE_PALETTE=yes'
8168 else
8169 ac_cv_use_palette='wxUSE_PALETTE=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8182
8183fi
8184
8185
8186 eval "$ac_cv_use_palette"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_PALETTE" = yes; then
8192 echo "$ac_t""yes" 1>&6
8193 else
8194 echo "$ac_t""no" 1>&6
8195 fi
8196
8197
698dcdb6 8198 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
b040e242 8199echo "configure:8200: checking for --enable-image" >&5
0046ff7c
VS
8200 no_cache=0
8201 # Check whether --enable-image or --disable-image was given.
8202if test "${enable_image+set}" = set; then
8203 enableval="$enable_image"
698dcdb6 8204
0046ff7c
VS
8205 if test "$enableval" = yes; then
8206 ac_cv_use_image='wxUSE_IMAGE=yes'
8207 else
8208 ac_cv_use_image='wxUSE_IMAGE=no'
8209 fi
698dcdb6 8210
0046ff7c 8211else
698dcdb6 8212
0046ff7c
VS
8213 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8214 if test "x$LINE" != x ; then
8215 eval "DEFAULT_$LINE"
8216 else
8217 no_cache=1
8218 fi
8219
8220 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8221
8222fi
0046ff7c
VS
8223
8224
8225 eval "$ac_cv_use_image"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8231 echo "$ac_t""yes" 1>&6
0046ff7c 8232 else
698dcdb6 8233 echo "$ac_t""no" 1>&6
0046ff7c 8234 fi
698dcdb6 8235
0046ff7c 8236
698dcdb6 8237 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
b040e242 8238echo "configure:8239: checking for --enable-gif" >&5
10f2d63a
VZ
8239 no_cache=0
8240 # Check whether --enable-gif or --disable-gif was given.
8241if test "${enable_gif+set}" = set; then
8242 enableval="$enable_gif"
698dcdb6 8243
10f2d63a
VZ
8244 if test "$enableval" = yes; then
8245 ac_cv_use_gif='wxUSE_GIF=yes'
8246 else
8247 ac_cv_use_gif='wxUSE_GIF=no'
8248 fi
698dcdb6 8249
10f2d63a 8250else
698dcdb6 8251
10f2d63a
VZ
8252 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8260
8261fi
10f2d63a
VZ
8262
8263
8264 eval "$ac_cv_use_gif"
8265 if test "$no_cache" != 1; then
8266 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8267 fi
8268
8269 if test "$wxUSE_GIF" = yes; then
698dcdb6 8270 echo "$ac_t""yes" 1>&6
10f2d63a 8271 else
698dcdb6 8272 echo "$ac_t""no" 1>&6
10f2d63a 8273 fi
698dcdb6 8274
10f2d63a 8275
698dcdb6 8276 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
b040e242 8277echo "configure:8278: checking for --enable-pcx" >&5
10f2d63a
VZ
8278 no_cache=0
8279 # Check whether --enable-pcx or --disable-pcx was given.
8280if test "${enable_pcx+set}" = set; then
8281 enableval="$enable_pcx"
698dcdb6 8282
10f2d63a
VZ
8283 if test "$enableval" = yes; then
8284 ac_cv_use_pcx='wxUSE_PCX=yes'
8285 else
8286 ac_cv_use_pcx='wxUSE_PCX=no'
8287 fi
698dcdb6 8288
10f2d63a 8289else
698dcdb6 8290
10f2d63a
VZ
8291 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8299
8300fi
10f2d63a
VZ
8301
8302
8303 eval "$ac_cv_use_pcx"
8304 if test "$no_cache" != 1; then
8305 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8306 fi
8307
8308 if test "$wxUSE_PCX" = yes; then
698dcdb6 8309 echo "$ac_t""yes" 1>&6
10f2d63a 8310 else
698dcdb6 8311 echo "$ac_t""no" 1>&6
10f2d63a 8312 fi
698dcdb6 8313
10f2d63a 8314
4b6b4dfc 8315 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
b040e242 8316echo "configure:8317: checking for --enable-iff" >&5
4b6b4dfc
RR
8317 no_cache=0
8318 # Check whether --enable-iff or --disable-iff was given.
8319if test "${enable_iff+set}" = set; then
8320 enableval="$enable_iff"
8321
8322 if test "$enableval" = yes; then
8323 ac_cv_use_iff='wxUSE_IFF=yes'
8324 else
8325 ac_cv_use_iff='wxUSE_IFF=no'
8326 fi
8327
8328else
8329
8330 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8331 if test "x$LINE" != x ; then
8332 eval "DEFAULT_$LINE"
8333 else
8334 no_cache=1
8335 fi
8336
8337 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8338
8339fi
8340
8341
8342 eval "$ac_cv_use_iff"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_IFF" = yes; then
8348 echo "$ac_t""yes" 1>&6
8349 else
8350 echo "$ac_t""no" 1>&6
8351 fi
8352
8353
698dcdb6 8354 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
b040e242 8355echo "configure:8356: checking for --enable-pnm" >&5
10f2d63a
VZ
8356 no_cache=0
8357 # Check whether --enable-pnm or --disable-pnm was given.
8358if test "${enable_pnm+set}" = set; then
8359 enableval="$enable_pnm"
698dcdb6 8360
10f2d63a
VZ
8361 if test "$enableval" = yes; then
8362 ac_cv_use_pnm='wxUSE_PNM=yes'
8363 else
8364 ac_cv_use_pnm='wxUSE_PNM=no'
8365 fi
698dcdb6 8366
10f2d63a 8367else
698dcdb6 8368
10f2d63a
VZ
8369 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8370 if test "x$LINE" != x ; then
8371 eval "DEFAULT_$LINE"
8372 else
8373 no_cache=1
8374 fi
8375
8376 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8377
8378fi
10f2d63a
VZ
8379
8380
8381 eval "$ac_cv_use_pnm"
8382 if test "$no_cache" != 1; then
8383 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8384 fi
8385
8386 if test "$wxUSE_PNM" = yes; then
698dcdb6 8387 echo "$ac_t""yes" 1>&6
10f2d63a 8388 else
698dcdb6 8389 echo "$ac_t""no" 1>&6
10f2d63a 8390 fi
698dcdb6 8391
10f2d63a 8392
69d27ff7 8393 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
b040e242 8394echo "configure:8395: checking for --enable-xpm" >&5
0046ff7c 8395 no_cache=0
69d27ff7
MB
8396 # Check whether --enable-xpm or --disable-xpm was given.
8397if test "${enable_xpm+set}" = set; then
8398 enableval="$enable_xpm"
698dcdb6 8399
0046ff7c 8400 if test "$enableval" = yes; then
69d27ff7 8401 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8402 else
69d27ff7 8403 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8404 fi
698dcdb6 8405
0046ff7c 8406else
698dcdb6 8407
0046ff7c
VS
8408 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8409 if test "x$LINE" != x ; then
8410 eval "DEFAULT_$LINE"
8411 else
8412 no_cache=1
8413 fi
8414
69d27ff7 8415 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8416
8417fi
0046ff7c
VS
8418
8419
69d27ff7 8420 eval "$ac_cv_use_xpm"
0046ff7c 8421 if test "$no_cache" != 1; then
69d27ff7 8422 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8423 fi
8424
8425 if test "$wxUSE_XPM" = yes; then
698dcdb6 8426 echo "$ac_t""yes" 1>&6
0046ff7c 8427 else
698dcdb6 8428 echo "$ac_t""no" 1>&6
0046ff7c 8429 fi
698dcdb6 8430
0046ff7c 8431
c7206e64 8432 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
b040e242 8433echo "configure:8434: checking for --enable-ico_cur" >&5
658974ae 8434 no_cache=0
c7206e64
VS
8435 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8436if test "${enable_ico_cur+set}" = set; then
8437 enableval="$enable_ico_cur"
658974ae
VS
8438
8439 if test "$enableval" = yes; then
c7206e64 8440 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8441 else
c7206e64 8442 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8443 fi
8444
8445else
8446
8447 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8448 if test "x$LINE" != x ; then
8449 eval "DEFAULT_$LINE"
8450 else
8451 no_cache=1
8452 fi
8453
c7206e64 8454 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8455
8456fi
8457
8458
c7206e64 8459 eval "$ac_cv_use_ico_cur"
658974ae 8460 if test "$no_cache" != 1; then
c7206e64 8461 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8462 fi
8463
8464 if test "$wxUSE_ICO_CUR" = yes; then
8465 echo "$ac_t""yes" 1>&6
8466 else
8467 echo "$ac_t""no" 1>&6
8468 fi
8469
8470
b12915c1
VZ
8471fi
8472
698dcdb6 8473
10f2d63a
VZ
8474 echo "saving argument cache $wx_arg_cache_file"
8475 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8476
10f2d63a 8477
698dcdb6
VZ
8478
8479echo $ac_n "checking for toolkit""... $ac_c" 1>&6
b040e242 8480echo "configure:8481: checking for toolkit" >&5
10f2d63a
VZ
8481
8482if test "$wxUSE_GUI" = "yes"; then
8483
3a922bb4
RL
8484 if test "$USE_BEOS" = 1; then
8485 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8486 fi
b12915c1 8487
3a922bb4
RL
8488 if test "$TOOLKIT_GIVEN" = 1; then
8489 for toolkit in `echo $ALL_TOOLKITS`; do
8490 var=wxUSE_$toolkit
8491 eval "value=\$${var}"
8492 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8493 done
10f2d63a 8494 else
3a922bb4
RL
8495 for toolkit in `echo $ALL_TOOLKITS`; do
8496 if test "$has_toolkit_in_cache" != 1; then
8497 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8498 else
8499 var=DEFAULT_wxUSE_$toolkit
8500 fi
8501 eval "wxUSE_$toolkit=\$${var}"
8502 done
10f2d63a 8503 fi
10f2d63a 8504
3a922bb4 8505 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 8506 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 8507
3a922bb4 8508 case "${host}" in
6fa882bd 8509 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8510 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8511 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8512 LEX_STEM="lexyy"
8513 ;;
8514 *)
8515 PATH_IFS=':'
8516 LEX_STEM="lex.yy"
8517 ;;
8518 esac
10f2d63a 8519
3a922bb4
RL
8520 case "$NUM_TOOLKITS" in
8521 1)
8522 ;;
8523 0)
8524 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8525 ;;
8526 *)
8527 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8528 esac
10f2d63a 8529
3a922bb4
RL
8530 for toolkit in `echo $ALL_TOOLKITS`; do
8531 var=wxUSE_$toolkit
8532 eval "value=\$${var}"
8533 if test "x$value" != x; then
8534 cache_var=CACHE_$toolkit
8535 eval "cache=\$${cache_var}"
8536 if test "$cache" = 1; then
8537 echo "$var=$value" >> ${wx_arg_cache_file}
8538 fi
8539 if test "$value" = 1; then
8540 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8541 echo "$ac_t""$toolkit_echo" 1>&6
8542 fi
8543 fi
8544 done
10f2d63a 8545else
cf27ef00 8546 PATH_IFS=':'
3a922bb4 8547 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8548fi
8549
698dcdb6
VZ
8550
8551cat > confcache <<\EOF
10f2d63a
VZ
8552# This file is a shell script that caches the results of configure
8553# tests run on this system so they can be shared between configure
698dcdb6
VZ
8554# scripts and configure runs. It is not useful on other systems.
8555# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8556#
698dcdb6
VZ
8557# By default, configure uses ./config.cache as the cache file,
8558# creating it if it does not exist already. You can give configure
8559# the --cache-file=FILE option to use a different cache file; that is
8560# what configure does when it calls configure scripts in
8561# subdirectories, so they share the cache.
8562# Giving --cache-file=/dev/null disables caching, for debugging configure.
8563# config.status only pays attention to the cache file if you give it the
8564# --recheck option to rerun configure.
10f2d63a 8565#
698dcdb6 8566EOF
10f2d63a
VZ
8567# The following way of writing the cache mishandles newlines in values,
8568# but we know of no workaround that is simple, portable, and efficient.
8569# So, don't put newlines in cache variables' values.
8570# Ultrix sh set writes to stderr and can't be redirected directly,
8571# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8572(set) 2>&1 |
8573 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8574 *ac_space=\ *)
8575 # `set' does not quote correctly, so add quotes (double-quote substitution
8576 # turns \\\\ into \\, and sed turns \\ into \).
8577 sed -n \
8578 -e "s/'/'\\\\''/g" \
8579 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8580 ;;
8581 *)
8582 # `set' quotes correctly as required by POSIX, so do not add quotes.
8583 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8584 ;;
8585 esac >> confcache
8586if cmp -s $cache_file confcache; then
8587 :
8588else
10f2d63a 8589 if test -w $cache_file; then
698dcdb6
VZ
8590 echo "updating cache $cache_file"
8591 cat confcache > $cache_file
10f2d63a
VZ
8592 else
8593 echo "not updating unwritable cache $cache_file"
8594 fi
8595fi
8596rm -f confcache
8597
698dcdb6 8598
e59890c3 8599if test "$build" != "$host" ; then
f9bc1684 8600 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8601 CC=$host_alias-gcc
8602 CXX=$host_alias-c++
8603 AR=$host_alias-ar
8604 RANLIB=$host_alias-ranlib
8605 DLLTOOL=$host_alias-dlltool
8606 RESCOMP=$host_alias-windres
8607 LD=$host_alias-ld
8608 NM=$host_alias-nm
8609 STRIP=$host_alias-strip
8610 else
8611 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8612 fi
10f2d63a
VZ
8613fi
8614
698dcdb6 8615# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8616set dummy gcc; ac_word=$2
698dcdb6 8617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 8618echo "configure:8619: checking for $ac_word" >&5
698dcdb6
VZ
8619if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8621else
8622 if test -n "$CC"; then
8623 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8624else
698dcdb6
VZ
8625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8626 ac_dummy="$PATH"
8627 for ac_dir in $ac_dummy; do
8628 test -z "$ac_dir" && ac_dir=.
8629 if test -f $ac_dir/$ac_word; then
8630 ac_cv_prog_CC="gcc"
8631 break
8632 fi
8633 done
8634 IFS="$ac_save_ifs"
10f2d63a 8635fi
6232543b 8636fi
698dcdb6 8637CC="$ac_cv_prog_CC"
6232543b 8638if test -n "$CC"; then
698dcdb6 8639 echo "$ac_t""$CC" 1>&6
1e487827 8640else
698dcdb6 8641 echo "$ac_t""no" 1>&6
1e487827 8642fi
6232543b 8643
1e487827
VS
8644if test -z "$CC"; then
8645 # Extract the first word of "cc", so it can be a program name with args.
8646set dummy cc; ac_word=$2
698dcdb6 8647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 8648echo "configure:8649: checking for $ac_word" >&5
698dcdb6
VZ
8649if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8651else
8652 if test -n "$CC"; then
8653 ac_cv_prog_CC="$CC" # Let the user override the test.
8654else
698dcdb6 8655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8656 ac_prog_rejected=no
698dcdb6
VZ
8657 ac_dummy="$PATH"
8658 for ac_dir in $ac_dummy; do
8659 test -z "$ac_dir" && ac_dir=.
8660 if test -f $ac_dir/$ac_word; then
8661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8662 ac_prog_rejected=yes
8663 continue
8664 fi
8665 ac_cv_prog_CC="cc"
8666 break
8667 fi
8668 done
8669 IFS="$ac_save_ifs"
1e487827
VS
8670if test $ac_prog_rejected = yes; then
8671 # We found a bogon in the path, so make sure we never use it.
8672 set dummy $ac_cv_prog_CC
8673 shift
698dcdb6 8674 if test $# -gt 0; then
1e487827
VS
8675 # We chose a different compiler from the bogus one.
8676 # However, it has the same basename, so the bogon will be chosen
8677 # first if we set CC to just the basename; use the full file name.
8678 shift
698dcdb6 8679 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8680 shift
8681 ac_cv_prog_CC="$@"
703e0a69 8682 fi
1e487827
VS
8683fi
8684fi
8685fi
698dcdb6 8686CC="$ac_cv_prog_CC"
1e487827 8687if test -n "$CC"; then
698dcdb6 8688 echo "$ac_t""$CC" 1>&6
703e0a69 8689else
698dcdb6 8690 echo "$ac_t""no" 1>&6
703e0a69 8691fi
1e487827 8692
698dcdb6
VZ
8693 if test -z "$CC"; then
8694 case "`uname -s`" in
8695 *win32* | *WIN32*)
8696 # Extract the first word of "cl", so it can be a program name with args.
8697set dummy cl; ac_word=$2
8698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 8699echo "configure:8700: checking for $ac_word" >&5
698dcdb6
VZ
8700if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8702else
8703 if test -n "$CC"; then
8704 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8705else
698dcdb6
VZ
8706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8707 ac_dummy="$PATH"
8708 for ac_dir in $ac_dummy; do
8709 test -z "$ac_dir" && ac_dir=.
8710 if test -f $ac_dir/$ac_word; then
8711 ac_cv_prog_CC="cl"
8712 break
8713 fi
8714 done
8715 IFS="$ac_save_ifs"
703e0a69 8716fi
1e487827 8717fi
698dcdb6 8718CC="$ac_cv_prog_CC"
1e487827 8719if test -n "$CC"; then
698dcdb6 8720 echo "$ac_t""$CC" 1>&6
1e487827 8721else
698dcdb6 8722 echo "$ac_t""no" 1>&6
1e487827 8723fi
698dcdb6
VZ
8724 ;;
8725 esac
8726 fi
8727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8728fi
8729
698dcdb6 8730echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b040e242 8731echo "configure:8732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8732
698dcdb6
VZ
8733ac_ext=c
8734# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8735ac_cpp='$CPP $CPPFLAGS'
8736ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8737ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8738cross_compiling=$ac_cv_prog_cc_cross
6232543b 8739
698dcdb6 8740cat > conftest.$ac_ext << EOF
1e487827 8741
b040e242 8742#line 8743 "configure"
1e487827
VS
8743#include "confdefs.h"
8744
698dcdb6
VZ
8745main(){return(0);}
8746EOF
b040e242 8747if { (eval echo configure:8748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8748 ac_cv_prog_cc_works=yes
8749 # If we can't run a trivial program, we are probably using a cross compiler.
8750 if (./conftest; exit) 2>/dev/null; then
8751 ac_cv_prog_cc_cross=no
8752 else
8753 ac_cv_prog_cc_cross=yes
8754 fi
8755else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 ac_cv_prog_cc_works=no
8759fi
8760rm -fr conftest*
8761ac_ext=c
8762# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8763ac_cpp='$CPP $CPPFLAGS'
8764ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8765ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8766cross_compiling=$ac_cv_prog_cc_cross
8767
8768echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8769if test $ac_cv_prog_cc_works = no; then
8770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8771fi
8772echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b040e242 8773echo "configure:8774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8774echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8775cross_compiling=$ac_cv_prog_cc_cross
8776
8777echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b040e242 8778echo "configure:8779: checking whether we are using GNU C" >&5
698dcdb6
VZ
8779if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781else
8782 cat > conftest.c <<EOF
8783#ifdef __GNUC__
8784 yes;
1e487827 8785#endif
698dcdb6 8786EOF
b040e242 8787if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8788 ac_cv_prog_gcc=yes
8789else
8790 ac_cv_prog_gcc=no
8791fi
8792fi
1e487827 8793
698dcdb6 8794echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8795
698dcdb6
VZ
8796if test $ac_cv_prog_gcc = yes; then
8797 GCC=yes
8798else
8799 GCC=
8800fi
1e487827 8801
698dcdb6
VZ
8802ac_test_CFLAGS="${CFLAGS+set}"
8803ac_save_CFLAGS="$CFLAGS"
8804CFLAGS=
8805echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b040e242 8806echo "configure:8807: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8807if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8809else
8810 echo 'void f(){}' > conftest.c
8811if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8812 ac_cv_prog_cc_g=yes
8813else
698dcdb6 8814 ac_cv_prog_cc_g=no
10f2d63a 8815fi
698dcdb6
VZ
8816rm -f conftest*
8817
10f2d63a 8818fi
698dcdb6
VZ
8819
8820echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8821if test "$ac_test_CFLAGS" = set; then
698dcdb6 8822 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8823elif test $ac_cv_prog_cc_g = yes; then
8824 if test "$GCC" = yes; then
8825 CFLAGS="-g -O2"
8826 else
8827 CFLAGS="-g"
8828 fi
8829else
8830 if test "$GCC" = yes; then
8831 CFLAGS="-O2"
8832 else
8833 CFLAGS=
8834 fi
8835fi
8836
8837
8838CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8839
698dcdb6 8840echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b040e242 8841echo "configure:8842: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8842# On Suns, sometimes $CPP names a directory.
8843if test -n "$CPP" && test -d "$CPP"; then
8844 CPP=
8845fi
8846if test -z "$CPP"; then
698dcdb6
VZ
8847if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849else
8850 # This must be in double quotes, not single quotes, because CPP may get
8851 # substituted into the Makefile and "${CC-cc}" will confuse make.
8852 CPP="${CC-cc} -E"
10f2d63a 8853 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8854 # not just through cpp.
8855 cat > conftest.$ac_ext <<EOF
b040e242 8856#line 8857 "configure"
10f2d63a
VZ
8857#include "confdefs.h"
8858#include <assert.h>
698dcdb6
VZ
8859Syntax Error
8860EOF
8861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 8862{ (eval echo configure:8863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8864if test -z "$ac_err"; then
10f2d63a
VZ
8865 :
8866else
698dcdb6
VZ
8867 echo "$ac_err" >&5
8868 echo "configure: failed program was:" >&5
10f2d63a 8869 cat conftest.$ac_ext >&5
698dcdb6
VZ
8870 rm -rf conftest*
8871 CPP="${CC-cc} -E -traditional-cpp"
8872 cat > conftest.$ac_ext <<EOF
b040e242 8873#line 8874 "configure"
10f2d63a 8874#include "confdefs.h"
698dcdb6
VZ
8875#include <assert.h>
8876Syntax Error
8877EOF
8878ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 8879{ (eval echo configure:8880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8880ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8881if test -z "$ac_err"; then
8882 :
10f2d63a 8883else
698dcdb6
VZ
8884 echo "$ac_err" >&5
8885 echo "configure: failed program was:" >&5
10f2d63a 8886 cat conftest.$ac_ext >&5
698dcdb6
VZ
8887 rm -rf conftest*
8888 CPP="${CC-cc} -nologo -E"
8889 cat > conftest.$ac_ext <<EOF
b040e242 8890#line 8891 "configure"
10f2d63a
VZ
8891#include "confdefs.h"
8892#include <assert.h>
698dcdb6
VZ
8893Syntax Error
8894EOF
8895ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 8896{ (eval echo configure:8897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8897ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8898if test -z "$ac_err"; then
10f2d63a
VZ
8899 :
8900else
698dcdb6
VZ
8901 echo "$ac_err" >&5
8902 echo "configure: failed program was:" >&5
10f2d63a 8903 cat conftest.$ac_ext >&5
698dcdb6
VZ
8904 rm -rf conftest*
8905 CPP=/lib/cpp
10f2d63a 8906fi
698dcdb6 8907rm -f conftest*
10f2d63a 8908fi
698dcdb6 8909rm -f conftest*
703e0a69 8910fi
698dcdb6
VZ
8911rm -f conftest*
8912 ac_cv_prog_CPP="$CPP"
8913fi
8914 CPP="$ac_cv_prog_CPP"
10f2d63a 8915else
698dcdb6 8916 ac_cv_prog_CPP="$CPP"
10f2d63a 8917fi
698dcdb6 8918echo "$ac_t""$CPP" 1>&6
10f2d63a 8919
698dcdb6
VZ
8920if test $ac_cv_prog_gcc = yes; then
8921 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
b040e242 8922echo "configure:8923: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8923if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8925else
8926 ac_pattern="Autoconf.*'x'"
698dcdb6 8927 cat > conftest.$ac_ext <<EOF
b040e242 8928#line 8929 "configure"
10f2d63a
VZ
8929#include "confdefs.h"
8930#include <sgtty.h>
8931Autoconf TIOCGETP
698dcdb6 8932EOF
10f2d63a
VZ
8933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8934 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8935 rm -rf conftest*
10f2d63a
VZ
8936 ac_cv_prog_gcc_traditional=yes
8937else
698dcdb6 8938 rm -rf conftest*
10f2d63a
VZ
8939 ac_cv_prog_gcc_traditional=no
8940fi
8941rm -f conftest*
8942
698dcdb6 8943
10f2d63a 8944 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8945 cat > conftest.$ac_ext <<EOF
b040e242 8946#line 8947 "configure"
10f2d63a
VZ
8947#include "confdefs.h"
8948#include <termio.h>
8949Autoconf TCGETA
698dcdb6 8950EOF
10f2d63a
VZ
8951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8952 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8953 rm -rf conftest*
10f2d63a
VZ
8954 ac_cv_prog_gcc_traditional=yes
8955fi
8956rm -f conftest*
8957
8958 fi
8959fi
698dcdb6
VZ
8960
8961echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8962 if test $ac_cv_prog_gcc_traditional = yes; then
8963 CC="$CC -traditional"
8964 fi
8965fi
8966
703e0a69 8967
698dcdb6
VZ
8968
8969ac_ext=C
8970# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8971ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8972ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974cross_compiling=$ac_cv_prog_cxx_cross
8975
8976
8977for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8978do
8979# Extract the first word of "$ac_prog", so it can be a program name with args.
8980set dummy $ac_prog; ac_word=$2
8981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 8982echo "configure:8983: checking for $ac_word" >&5
698dcdb6
VZ
8983if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8985else
8986 if test -n "$CXX"; then
8987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8988else
698dcdb6
VZ
8989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8990 ac_dummy="$PATH"
8991 for ac_dir in $ac_dummy; do
8992 test -z "$ac_dir" && ac_dir=.
8993 if test -f $ac_dir/$ac_word; then
8994 ac_cv_prog_CXX="$ac_prog"
8995 break
8996 fi
8997 done
8998 IFS="$ac_save_ifs"
10f2d63a
VZ
8999fi
9000fi
698dcdb6 9001CXX="$ac_cv_prog_CXX"
10f2d63a 9002if test -n "$CXX"; then
698dcdb6 9003 echo "$ac_t""$CXX" 1>&6
10f2d63a 9004else
698dcdb6 9005 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9006fi
9007
698dcdb6 9008test -n "$CXX" && break
10f2d63a 9009done
698dcdb6 9010test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
9011
9012
698dcdb6 9013echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b040e242 9014echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 9015
698dcdb6
VZ
9016ac_ext=C
9017# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9018ac_cpp='$CXXCPP $CPPFLAGS'
9019ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9020ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9021cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9022
698dcdb6
VZ
9023cat > conftest.$ac_ext << EOF
9024
b040e242 9025#line 9026 "configure"
10f2d63a
VZ
9026#include "confdefs.h"
9027
698dcdb6
VZ
9028int main(){return(0);}
9029EOF
b040e242 9030if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9031 ac_cv_prog_cxx_works=yes
9032 # If we can't run a trivial program, we are probably using a cross compiler.
9033 if (./conftest; exit) 2>/dev/null; then
9034 ac_cv_prog_cxx_cross=no
9035 else
9036 ac_cv_prog_cxx_cross=yes
9037 fi
9038else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 ac_cv_prog_cxx_works=no
9042fi
9043rm -fr conftest*
9044ac_ext=C
9045# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9046ac_cpp='$CXXCPP $CPPFLAGS'
9047ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9048ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9049cross_compiling=$ac_cv_prog_cxx_cross
9050
9051echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9052if test $ac_cv_prog_cxx_works = no; then
9053 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9054fi
9055echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b040e242 9056echo "configure:9057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9057echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9058cross_compiling=$ac_cv_prog_cxx_cross
9059
9060echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
b040e242 9061echo "configure:9062: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9062if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064else
9065 cat > conftest.C <<EOF
9066#ifdef __GNUC__
9067 yes;
10f2d63a 9068#endif
698dcdb6 9069EOF
b040e242 9070if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9071 ac_cv_prog_gxx=yes
9072else
9073 ac_cv_prog_gxx=no
9074fi
9075fi
10f2d63a 9076
698dcdb6 9077echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9078
698dcdb6
VZ
9079if test $ac_cv_prog_gxx = yes; then
9080 GXX=yes
9081else
9082 GXX=
9083fi
10f2d63a 9084
698dcdb6
VZ
9085ac_test_CXXFLAGS="${CXXFLAGS+set}"
9086ac_save_CXXFLAGS="$CXXFLAGS"
9087CXXFLAGS=
9088echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
b040e242 9089echo "configure:9090: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9090if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9092else
9093 echo 'void f(){}' > conftest.cc
9094if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9095 ac_cv_prog_cxx_g=yes
9096else
698dcdb6 9097 ac_cv_prog_cxx_g=no
10f2d63a 9098fi
698dcdb6
VZ
9099rm -f conftest*
9100
10f2d63a 9101fi
698dcdb6
VZ
9102
9103echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9104if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9105 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9106elif test $ac_cv_prog_cxx_g = yes; then
9107 if test "$GXX" = yes; then
9108 CXXFLAGS="-g -O2"
9109 else
9110 CXXFLAGS="-g"
9111 fi
9112else
9113 if test "$GXX" = yes; then
9114 CXXFLAGS="-O2"
9115 else
9116 CXXFLAGS=
9117 fi
9118fi
9119
9120
10f2d63a
VZ
9121CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9122
9123ac_ext=c
698dcdb6 9124# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9125ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9126ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9127ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9128cross_compiling=$ac_cv_prog_cc_cross
9129
9130
9131# Extract the first word of "ranlib", so it can be a program name with args.
9132set dummy ranlib; ac_word=$2
9133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 9134echo "configure:9135: checking for $ac_word" >&5
698dcdb6
VZ
9135if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9137else
9138 if test -n "$RANLIB"; then
9139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9140else
698dcdb6
VZ
9141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9142 ac_dummy="$PATH"
9143 for ac_dir in $ac_dummy; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f $ac_dir/$ac_word; then
9146 ac_cv_prog_RANLIB="ranlib"
9147 break
9148 fi
9149 done
9150 IFS="$ac_save_ifs"
9151 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9152fi
9153fi
698dcdb6 9154RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9155if test -n "$RANLIB"; then
698dcdb6 9156 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9157else
698dcdb6 9158 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9159fi
9160
9161
9162# Extract the first word of "ar", so it can be a program name with args.
9163set dummy ar; ac_word=$2
698dcdb6 9164echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 9165echo "configure:9166: checking for $ac_word" >&5
698dcdb6
VZ
9166if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9168else
9169 if test -n "$AR"; then
9170 ac_cv_prog_AR="$AR" # Let the user override the test.
9171else
698dcdb6
VZ
9172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9173 ac_dummy="$PATH"
9174 for ac_dir in $ac_dummy; do
9175 test -z "$ac_dir" && ac_dir=.
9176 if test -f $ac_dir/$ac_word; then
9177 ac_cv_prog_AR="ar"
9178 break
9179 fi
9180 done
9181 IFS="$ac_save_ifs"
10f2d63a
VZ
9182 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9183fi
9184fi
698dcdb6 9185AR="$ac_cv_prog_AR"
10f2d63a 9186if test -n "$AR"; then
698dcdb6 9187 echo "$ac_t""$AR" 1>&6
10f2d63a 9188else
698dcdb6 9189 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9190fi
9191
698dcdb6 9192
6054113a 9193# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9194# so one script is as good as another. But avoid the broken or
9195# incompatible versions:
9196# SysV /etc/install, /usr/sbin/install
9197# SunOS /usr/etc/install
9198# IRIX /sbin/install
9199# AIX /bin/install
9200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9201# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9203# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9204echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b040e242 9205echo "configure:9206: checking for a BSD compatible install" >&5
10f2d63a 9206if test -z "$INSTALL"; then
698dcdb6
VZ
9207if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9209else
698dcdb6 9210 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9211 for ac_dir in $PATH; do
9212 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9213 case "$ac_dir/" in
9214 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9215 *)
9216 # OSF1 and SCO ODT 3.0 have their own names for install.
9217 # Don't use installbsd from OSF since it installs stuff as root
9218 # by default.
9219 for ac_prog in ginstall scoinst install; do
698dcdb6 9220 if test -f $ac_dir/$ac_prog; then
10f2d63a 9221 if test $ac_prog = install &&
698dcdb6 9222 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9223 # AIX install. It has an incompatible calling convention.
9224 :
9225 else
9226 ac_cv_path_install="$ac_dir/$ac_prog -c"
9227 break 2
9228 fi
9229 fi
9230 done
9231 ;;
9232 esac
9233 done
698dcdb6 9234 IFS="$ac_save_IFS"
10f2d63a
VZ
9235
9236fi
9237 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9238 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9239 else
9240 # As a last resort, use the slow shell script. We don't cache a
9241 # path for INSTALL within a source directory, because that will
9242 # break other packages using the cache if that directory is
9243 # removed, or if the path is relative.
698dcdb6 9244 INSTALL="$ac_install_sh"
10f2d63a
VZ
9245 fi
9246fi
698dcdb6 9247echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9248
9249# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9250# It thinks the first close brace ends the variable substitution.
9251test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9252
698dcdb6 9253test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9254
9255test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9256
6054113a
GD
9257case "${host}" in
9258
b5853384 9259 powerpc-*-darwin* )
eb99ae0b
GD
9260 INSTALL_PROGRAM="cp -fp"
9261 INSTALL_DATA="cp -fp"
6054113a
GD
9262 ;;
9263 *)
9264 ;;
d6853540 9265esac
698dcdb6 9266
10f2d63a
VZ
9267# Extract the first word of "strip", so it can be a program name with args.
9268set dummy strip; ac_word=$2
698dcdb6 9269echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 9270echo "configure:9271: checking for $ac_word" >&5
698dcdb6
VZ
9271if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9273else
9274 if test -n "$STRIP"; then
9275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9276else
698dcdb6
VZ
9277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9278 ac_dummy="$PATH"
9279 for ac_dir in $ac_dummy; do
9280 test -z "$ac_dir" && ac_dir=.
9281 if test -f $ac_dir/$ac_word; then
9282 ac_cv_prog_STRIP="strip"
9283 break
9284 fi
9285 done
9286 IFS="$ac_save_ifs"
10f2d63a
VZ
9287 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9288fi
9289fi
698dcdb6 9290STRIP="$ac_cv_prog_STRIP"
10f2d63a 9291if test -n "$STRIP"; then
698dcdb6 9292 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9293else
698dcdb6 9294 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9295fi
9296
698dcdb6
VZ
9297
9298echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
b040e242 9299echo "configure:9300: checking make for VPATH support" >&5
10f2d63a
VZ
9300cat - << EOF > confMake
9301check : file
9302 cp \$? \$@
9303 cp \$? final_file
9304EOF
9305
9306if test ! -d sub ; then
9307 mkdir sub
9308fi
9309echo dummy > sub/file
f6bcfd97 9310${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9311RESULT=$?
9312rm -f sub/file check final_file confMake
9313rmdir sub
9314if test "$RESULT" = 0; then
698dcdb6 9315 echo "$ac_t""yes" 1>&6
10f2d63a 9316else
698dcdb6
VZ
9317 echo "$ac_t""no" 1>&6
9318 { echo "configure: error:
1e487827
VS
9319You need a make-utility that is able to use the variable
9320VPATH correctly.
9321If your version of make does not support VPATH correctly,
9322please install GNU-make (possibly as gmake), and start
9323configure with the following command:
9324export MAKE=gmake; ./configure for sh-type shells
9325setenv MAKE gmake; ./configure for csh-type shells
9326Also please do remember to use gmake in this case every time
9327you are trying to compile.
698dcdb6 9328" 1>&2; exit 1; }
10f2d63a
VZ
9329fi
9330
9331for ac_prog in 'bison -y' byacc
9332do
698dcdb6 9333# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9334set dummy $ac_prog; ac_word=$2
698dcdb6 9335echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 9336echo "configure:9337: checking for $ac_word" >&5
698dcdb6
VZ
9337if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9339else
9340 if test -n "$YACC"; then
9341 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9342else
698dcdb6
VZ
9343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9344 ac_dummy="$PATH"
9345 for ac_dir in $ac_dummy; do
9346 test -z "$ac_dir" && ac_dir=.
9347 if test -f $ac_dir/$ac_word; then
9348 ac_cv_prog_YACC="$ac_prog"
9349 break
9350 fi
9351 done
9352 IFS="$ac_save_ifs"
10f2d63a
VZ
9353fi
9354fi
698dcdb6 9355YACC="$ac_cv_prog_YACC"
10f2d63a 9356if test -n "$YACC"; then
698dcdb6 9357 echo "$ac_t""$YACC" 1>&6
10f2d63a 9358else
698dcdb6 9359 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9360fi
9361
698dcdb6 9362test -n "$YACC" && break
10f2d63a
VZ
9363done
9364test -n "$YACC" || YACC="yacc"
9365
698dcdb6
VZ
9366
9367# Extract the first word of "flex", so it can be a program name with args.
9368set dummy flex; ac_word=$2
9369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 9370echo "configure:9371: checking for $ac_word" >&5
698dcdb6
VZ
9371if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9373else
9374 if test -n "$LEX"; then
9375 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9376else
698dcdb6
VZ
9377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9378 ac_dummy="$PATH"
9379 for ac_dir in $ac_dummy; do
9380 test -z "$ac_dir" && ac_dir=.
9381 if test -f $ac_dir/$ac_word; then
9382 ac_cv_prog_LEX="flex"
9383 break
9384 fi
9385 done
9386 IFS="$ac_save_ifs"
9387 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9388fi
9389fi
698dcdb6 9390LEX="$ac_cv_prog_LEX"
10f2d63a 9391if test -n "$LEX"; then
698dcdb6 9392 echo "$ac_t""$LEX" 1>&6
10f2d63a 9393else
698dcdb6 9394 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9395fi
9396
9397if test -z "$LEXLIB"
9398then
698dcdb6
VZ
9399 case "$LEX" in
9400 flex*) ac_lib=fl ;;
9401 *) ac_lib=l ;;
9402 esac
9403 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
b040e242 9404echo "configure:9405: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9405ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9408else
9409 ac_save_LIBS="$LIBS"
9410LIBS="-l$ac_lib $LIBS"
9411cat > conftest.$ac_ext <<EOF
b040e242 9412#line 9413 "configure"
10f2d63a
VZ
9413#include "confdefs.h"
9414/* Override any gcc2 internal prototype to avoid an error. */
9415/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9416 builtin and then its argument prototype would still apply. */
9417char yywrap();
10f2d63a 9418
698dcdb6
VZ
9419int main() {
9420yywrap()
9421; return 0; }
9422EOF
b040e242 9423if { (eval echo configure:9424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9424 rm -rf conftest*
9425 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9426else
698dcdb6
VZ
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9431fi
698dcdb6
VZ
9432rm -f conftest*
9433LIBS="$ac_save_LIBS"
9434
10f2d63a 9435fi
698dcdb6
VZ
9436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9437 echo "$ac_t""yes" 1>&6
9438 LEXLIB="-l$ac_lib"
9439else
9440 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9441fi
9442
9443fi
9444
9445
698dcdb6 9446echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b040e242 9447echo "configure:9448: checking whether ln -s works" >&5
698dcdb6
VZ
9448if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9450else
698dcdb6
VZ
9451 rm -f conftestdata
9452if ln -s X conftestdata 2>/dev/null
9453then
9454 rm -f conftestdata
9455 ac_cv_prog_LN_S="ln -s"
10f2d63a 9456else
698dcdb6 9457 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9458fi
9459fi
698dcdb6
VZ
9460LN_S="$ac_cv_prog_LN_S"
9461if test "$ac_cv_prog_LN_S" = "ln -s"; then
9462 echo "$ac_t""yes" 1>&6
10f2d63a 9463else
698dcdb6 9464 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9465fi
9466
9467
9468
9469SEARCH_INCLUDE="\
9470 /usr/local/include \
9471 \
9472 /usr/Motif-1.2/include \
9473 /usr/Motif-2.1/include \
9474 \
9475 /usr/include/Motif1.2 \
9476 /opt/xpm/include/X11 \
9477 /opt/GBxpm/include/ \
9478 /opt/GBxpm/X11/include/ \
9479 \
9480 /usr/Motif1.2/include \
9481 /usr/dt/include \
afc31813
VZ
9482 /usr/openwin/include \
9483 \
10f2d63a
VZ
9484 /usr/include/Xm \
9485 \
9486 /usr/X11R6/include \
afc31813 9487 /usr/X11R6.4/include \
10f2d63a
VZ
9488 /usr/X11R5/include \
9489 /usr/X11R4/include \
9490 \
10f2d63a
VZ
9491 /usr/include/X11R6 \
9492 /usr/include/X11R5 \
9493 /usr/include/X11R4 \
9494 \
9495 /usr/local/X11R6/include \
9496 /usr/local/X11R5/include \
9497 /usr/local/X11R4/include \
9498 \
9499 /usr/local/include/X11R6 \
9500 /usr/local/include/X11R5 \
9501 /usr/local/include/X11R4 \
9502 \
9503 /usr/X11/include \
9504 /usr/include/X11 \
9505 /usr/local/X11/include \
9506 /usr/local/include/X11 \
9507 \
9508 /usr/X386/include \
9509 /usr/x386/include \
9510 /usr/XFree86/include/X11 \
9511 \
cf27ef00 9512 X:/XFree86/include \
ec14dd32
VZ
9513 X:/XFree86/include/X11 \
9514 \
10f2d63a
VZ
9515 /usr/include/gtk \
9516 /usr/local/include/gtk \
9517 /usr/include/glib \
9518 /usr/local/include/glib \
9519 \
9520 /usr/include/qt \
9521 /usr/local/include/qt \
9522 \
9523 /usr/include/windows \
9524 /usr/include/wine \
9525 /usr/local/include/wine \
9526 \
9527 /usr/unsupported/include \
9528 /usr/athena/include \
9529 /usr/local/x11r5/include \
9530 /usr/lpp/Xamples/include \
9531 \
10f2d63a 9532 /usr/openwin/share/include \
928b5c08
VZ
9533 \
9534 /usr/include"
10f2d63a
VZ
9535
9536SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9537
698dcdb6
VZ
9538
9539cat > confcache <<\EOF
10f2d63a
VZ
9540# This file is a shell script that caches the results of configure
9541# tests run on this system so they can be shared between configure
698dcdb6
VZ
9542# scripts and configure runs. It is not useful on other systems.
9543# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9544#
698dcdb6
VZ
9545# By default, configure uses ./config.cache as the cache file,
9546# creating it if it does not exist already. You can give configure
9547# the --cache-file=FILE option to use a different cache file; that is
9548# what configure does when it calls configure scripts in
9549# subdirectories, so they share the cache.
9550# Giving --cache-file=/dev/null disables caching, for debugging configure.
9551# config.status only pays attention to the cache file if you give it the
9552# --recheck option to rerun configure.
10f2d63a 9553#
698dcdb6 9554EOF
10f2d63a
VZ
9555# The following way of writing the cache mishandles newlines in values,
9556# but we know of no workaround that is simple, portable, and efficient.
9557# So, don't put newlines in cache variables' values.
9558# Ultrix sh set writes to stderr and can't be redirected directly,
9559# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9560(set) 2>&1 |
9561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9562 *ac_space=\ *)
9563 # `set' does not quote correctly, so add quotes (double-quote substitution
9564 # turns \\\\ into \\, and sed turns \\ into \).
9565 sed -n \
9566 -e "s/'/'\\\\''/g" \
9567 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9568 ;;
9569 *)
9570 # `set' quotes correctly as required by POSIX, so do not add quotes.
9571 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9572 ;;
9573 esac >> confcache
9574if cmp -s $cache_file confcache; then
9575 :
9576else
10f2d63a 9577 if test -w $cache_file; then
698dcdb6
VZ
9578 echo "updating cache $cache_file"
9579 cat confcache > $cache_file
10f2d63a
VZ
9580 else
9581 echo "not updating unwritable cache $cache_file"
9582 fi
9583fi
9584rm -f confcache
9585
698dcdb6
VZ
9586
9587
4f14bcd8 9588
18dbb1f6
VZ
9589REGEX_INCLUDE=
9590if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9591 cat >> confdefs.h <<\EOF
9592#define wxUSE_REGEX 1
9593EOF
9594
9595
9596 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9597 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9598echo $ac_n "checking for regex.h""... $ac_c" 1>&6
b040e242 9599echo "configure:9600: checking for regex.h" >&5
18dbb1f6
VZ
9600if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602else
9603 cat > conftest.$ac_ext <<EOF
b040e242 9604#line 9605 "configure"
18dbb1f6
VZ
9605#include "confdefs.h"
9606#include <regex.h>
9607EOF
9608ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 9609{ (eval echo configure:9610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9610ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9611if test -z "$ac_err"; then
9612 rm -rf conftest*
9613 eval "ac_cv_header_$ac_safe=yes"
9614else
9615 echo "$ac_err" >&5
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 eval "ac_cv_header_$ac_safe=no"
9620fi
9621rm -f conftest*
9622fi
9623if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9624 echo "$ac_t""yes" 1>&6
9625 for ac_func in regcomp
9626do
9627echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 9628echo "configure:9629: checking for $ac_func" >&5
18dbb1f6
VZ
9629if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9631else
9632 cat > conftest.$ac_ext <<EOF
b040e242 9633#line 9634 "configure"
18dbb1f6
VZ
9634#include "confdefs.h"
9635/* System header to define __stub macros and hopefully few prototypes,
9636 which can conflict with char $ac_func(); below. */
9637#include <assert.h>
9638/* Override any gcc2 internal prototype to avoid an error. */
9639/* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9641char $ac_func();
9642
9643int main() {
9644
9645/* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649choke me
9650#else
9651$ac_func();
9652#endif
9653
9654; return 0; }
9655EOF
b040e242 9656if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9657 rm -rf conftest*
9658 eval "ac_cv_func_$ac_func=yes"
9659else
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9662 rm -rf conftest*
9663 eval "ac_cv_func_$ac_func=no"
9664fi
9665rm -f conftest*
9666fi
9667
9668if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9671 cat >> confdefs.h <<EOF
9672#define $ac_tr_func 1
9673EOF
9674
9675else
9676 echo "$ac_t""no" 1>&6
9677fi
9678done
9679
9680else
9681 echo "$ac_t""no" 1>&6
9682fi
9683
9684
4f14bcd8
GD
9685 if test "x$ac_cv_func_regcomp" != "xyes"; then
9686 if test "$wxUSE_REGEX" = "sys" ; then
9687 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9688 else
a3df447d 9689 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9690 wxUSE_REGEX=builtin
9691 fi
9692 else
9693 wxUSE_REGEX=sys
18dbb1f6 9694 fi
18dbb1f6
VZ
9695 fi
9696
4f14bcd8
GD
9697 if test "$wxUSE_REGEX" = "builtin" ; then
9698 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9699 fi
18dbb1f6
VZ
9700fi
9701
9702
4f14bcd8
GD
9703ZLIB_INCLUDE=
9704ZLIB_LINK=
9705if test "$wxUSE_ZLIB" != "no" ; then
9706 cat >> confdefs.h <<\EOF
9707#define wxUSE_ZLIB 1
9708EOF
dad6c0ea 9709
10f2d63a 9710
4f14bcd8
GD
9711 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9712 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9713echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
b040e242 9714echo "configure:9715: checking for zlib.h" >&5
3a922bb4
RL
9715if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9717else
9718 cat > conftest.$ac_ext <<EOF
b040e242 9719#line 9720 "configure"
3a922bb4 9720#include "confdefs.h"
4f14bcd8 9721#include <zlib.h>
3a922bb4
RL
9722EOF
9723ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 9724{ (eval echo configure:9725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9725ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9726if test -z "$ac_err"; then
9727 rm -rf conftest*
9728 eval "ac_cv_header_$ac_safe=yes"
9729else
9730 echo "$ac_err" >&5
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 rm -rf conftest*
9734 eval "ac_cv_header_$ac_safe=no"
9735fi
9736rm -f conftest*
9737fi
9738if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9739 echo "$ac_t""yes" 1>&6
4f14bcd8 9740 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
b040e242 9741echo "configure:9742: checking for deflate in -lz" >&5
4f14bcd8
GD
9742ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9743if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9745else
9746 ac_save_LIBS="$LIBS"
9747LIBS="-lz $LIBS"
9748cat > conftest.$ac_ext <<EOF
b040e242 9749#line 9750 "configure"
4f14bcd8
GD
9750#include "confdefs.h"
9751/* Override any gcc2 internal prototype to avoid an error. */
9752/* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754char deflate();
9755
9756int main() {
9757deflate()
9758; return 0; }
3a922bb4 9759EOF
b040e242 9760if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9761 rm -rf conftest*
9762 eval "ac_cv_lib_$ac_lib_var=yes"
9763else
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 rm -rf conftest*
9767 eval "ac_cv_lib_$ac_lib_var=no"
9768fi
9769rm -f conftest*
9770LIBS="$ac_save_LIBS"
9771
9772fi
9773if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9774 echo "$ac_t""yes" 1>&6
3d63bc3a 9775 ZLIB_LINK=" -lz"
3a922bb4
RL
9776else
9777 echo "$ac_t""no" 1>&6
9778fi
10f2d63a 9779
4f14bcd8
GD
9780else
9781 echo "$ac_t""no" 1>&6
9782fi
9783
9784
9785 if test "x$ZLIB_LINK" = "x" ; then
9786 if test "$wxUSE_ZLIB" = "sys" ; then
9787 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9788 else
a3df447d 9789 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9790 wxUSE_ZLIB=builtin
9791 fi
9792 else
9793 wxUSE_ZLIB=sys
9794 fi
9795 fi
9796
9797 if test "$wxUSE_ZLIB" = "builtin" ; then
9798 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9799 fi
9800fi
9801
9802
9803PNG_INCLUDE=
9804PNG_LINK=
9805if test "$wxUSE_LIBPNG" != "no" ; then
9806 cat >> confdefs.h <<\EOF
9807#define wxUSE_LIBPNG 1
9808EOF
9809
9810
9811 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9812 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9813 wxUSE_LIBPNG=builtin
9814 fi
9815
9816 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9817 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9818echo $ac_n "checking for png.h""... $ac_c" 1>&6
b040e242 9819echo "configure:9820: checking for png.h" >&5
d4158b5d
VS
9820if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9822else
9823 cat > conftest.$ac_ext <<EOF
b040e242 9824#line 9825 "configure"
d4158b5d 9825#include "confdefs.h"
4f14bcd8 9826#include <png.h>
d4158b5d
VS
9827EOF
9828ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 9829{ (eval echo configure:9830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9830ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9831if test -z "$ac_err"; then
9832 rm -rf conftest*
9833 eval "ac_cv_header_$ac_safe=yes"
9834else
9835 echo "$ac_err" >&5
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 rm -rf conftest*
9839 eval "ac_cv_header_$ac_safe=no"
9840fi
9841rm -f conftest*
9842fi
9843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9844 echo "$ac_t""yes" 1>&6
4f14bcd8 9845 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
b040e242 9846echo "configure:9847: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9847ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9849 echo $ac_n "(cached) $ac_c" 1>&6
9850else
4f14bcd8
GD
9851 ac_save_LIBS="$LIBS"
9852LIBS="-lpng -lz -lm $LIBS"
9853cat > conftest.$ac_ext <<EOF
b040e242 9854#line 9855 "configure"
3a922bb4 9855#include "confdefs.h"
4f14bcd8
GD
9856/* Override any gcc2 internal prototype to avoid an error. */
9857/* We use char because int might match the return type of a gcc2
9858 builtin and then its argument prototype would still apply. */
9859char png_check_sig();
f6bcfd97 9860
4f14bcd8
GD
9861int main() {
9862png_check_sig()
3a922bb4
RL
9863; return 0; }
9864EOF
b040e242 9865if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9866 rm -rf conftest*
4f14bcd8 9867 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9868else
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9871 rm -rf conftest*
4f14bcd8 9872 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9873fi
9874rm -f conftest*
4f14bcd8 9875LIBS="$ac_save_LIBS"
10f2d63a 9876
4f14bcd8
GD
9877fi
9878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9879 echo "$ac_t""yes" 1>&6
3d63bc3a 9880 PNG_LINK=" -lpng"
4f14bcd8
GD
9881else
9882 echo "$ac_t""no" 1>&6
9883fi
32832908 9884
4f14bcd8
GD
9885
9886else
9887 echo "$ac_t""no" 1>&6
9888fi
3a922bb4 9889
7b7a7637 9890
4f14bcd8
GD
9891 if test "x$PNG_LINK" = "x" ; then
9892 if test "$wxUSE_LIBPNG" = "sys" ; then
9893 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9894 else
a3df447d 9895 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9896 wxUSE_LIBPNG=builtin
9897 fi
9898 else
9899 wxUSE_LIBPNG=yes
9900 fi
3a922bb4
RL
9901 fi
9902
4f14bcd8
GD
9903 if test "$wxUSE_LIBPNG" = "builtin" ; then
9904 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9905 fi
9906
4f14bcd8 9907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9908fi
9909
32832908 9910
4f14bcd8
GD
9911JPEG_INCLUDE=
9912JPEG_LINK=
9913if test "$wxUSE_LIBJPEG" != "no" ; then
9914 cat >> confdefs.h <<\EOF
9915#define wxUSE_LIBJPEG 1
9916EOF
10f2d63a 9917
8168de4c 9918
4f14bcd8
GD
9919 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9920 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
b040e242 9921echo "configure:9922: checking for jpeglib.h" >&5
4f14bcd8 9922 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924else
4f14bcd8 9925 cat > conftest.$ac_ext <<EOF
b040e242 9926#line 9927 "configure"
4f14bcd8 9927#include "confdefs.h"
8168de4c 9928
4f14bcd8
GD
9929 #undef HAVE_STDLIB_H
9930 #include <stdio.h>
9931 #include <jpeglib.h>
9932
9933int main() {
9934
9935
9936; return 0; }
9937EOF
b040e242 9938if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9939 rm -rf conftest*
9940 ac_cv_header_jpeglib_h=yes
6f72b082 9941else
4f14bcd8
GD
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 rm -rf conftest*
9945 ac_cv_header_jpeglib_h=no
9946
9947fi
9948rm -f conftest*
9949
698dcdb6 9950fi
6f72b082 9951
4f14bcd8
GD
9952 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9953
9954 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9955 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
b040e242 9956echo "configure:9957: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9957ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9960else
4f14bcd8
GD
9961 ac_save_LIBS="$LIBS"
9962LIBS="-ljpeg $LIBS"
9963cat > conftest.$ac_ext <<EOF
b040e242 9964#line 9965 "configure"
4f14bcd8
GD
9965#include "confdefs.h"
9966/* Override any gcc2 internal prototype to avoid an error. */
9967/* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969char jpeg_read_header();
698dcdb6 9970
4f14bcd8
GD
9971int main() {
9972jpeg_read_header()
9973; return 0; }
9974EOF
b040e242 9975if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9976 rm -rf conftest*
9977 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9978else
4f14bcd8
GD
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 rm -rf conftest*
9982 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9983fi
4f14bcd8
GD
9984rm -f conftest*
9985LIBS="$ac_save_LIBS"
698dcdb6 9986
4f14bcd8
GD
9987fi
9988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9989 echo "$ac_t""yes" 1>&6
3d63bc3a 9990 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9991else
9992 echo "$ac_t""no" 1>&6
9993fi
9994
9995 fi
9996
9997 if test "x$JPEG_LINK" = "x" ; then
9998 if test "$wxUSE_LIBJPEG" = "sys" ; then
9999 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10000 else
a3df447d 10001 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10002 wxUSE_LIBJPEG=builtin
10003 fi
10004 else
10005 wxUSE_LIBJPEG=sys
10006 fi
10007 fi
10008
10009 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10010 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10011 fi
10012fi
10013
10014
10015TIFF_INCLUDE=
10016TIFF_LINK=
10017if test "$wxUSE_LIBTIFF" != "no" ; then
10018 cat >> confdefs.h <<\EOF
10019#define wxUSE_LIBTIFF 1
10020EOF
10021
10022
10023 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10024 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10025echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
b040e242 10026echo "configure:10027: checking for tiffio.h" >&5
4f14bcd8
GD
10027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029else
10030 cat > conftest.$ac_ext <<EOF
b040e242 10031#line 10032 "configure"
4f14bcd8
GD
10032#include "confdefs.h"
10033#include <tiffio.h>
10034EOF
10035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 10036{ (eval echo configure:10037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10038if test -z "$ac_err"; then
10039 rm -rf conftest*
10040 eval "ac_cv_header_$ac_safe=yes"
10041else
10042 echo "$ac_err" >&5
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_header_$ac_safe=no"
10047fi
10048rm -f conftest*
10049fi
10050if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10051 echo "$ac_t""yes" 1>&6
10052 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
b040e242 10053echo "configure:10054: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
10054ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 ac_save_LIBS="$LIBS"
10059LIBS="-ltiff -lm $LIBS"
10060cat > conftest.$ac_ext <<EOF
b040e242 10061#line 10062 "configure"
4f14bcd8
GD
10062#include "confdefs.h"
10063/* Override any gcc2 internal prototype to avoid an error. */
10064/* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066char TIFFError();
10067
10068int main() {
10069TIFFError()
10070; return 0; }
10071EOF
b040e242 10072if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10073 rm -rf conftest*
10074 eval "ac_cv_lib_$ac_lib_var=yes"
10075else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 eval "ac_cv_lib_$ac_lib_var=no"
10080fi
10081rm -f conftest*
10082LIBS="$ac_save_LIBS"
10083
10084fi
10085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
3d63bc3a 10087 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10088else
10089 echo "$ac_t""no" 1>&6
10090fi
10091
10092
10093else
10094 echo "$ac_t""no" 1>&6
10095fi
10096
10097
10098 if test "x$TIFF_LINK" = "x" ; then
10099 if test "$wxUSE_LIBTIFF" = "sys" ; then
10100 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10101 else
a3df447d 10102 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10103 wxUSE_LIBTIFF=builtin
10104 fi
10105 else
10106 wxUSE_LIBTIFF=sys
10107 fi
10108 fi
10109
10110 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10111 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10112 fi
10113fi
10114
10115
10116FREETYPE_INCLUDE=
10117FREETYPE_LINK=
10118if test "$wxUSE_FREETYPE" != "no" ; then
10119 cat >> confdefs.h <<\EOF
10120#define wxUSE_FREETYPE 1
10121EOF
10122
10123
10124 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10125 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10126echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
b040e242 10127echo "configure:10128: checking for freetype.h" >&5
4f14bcd8
GD
10128if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10130else
10131 cat > conftest.$ac_ext <<EOF
b040e242 10132#line 10133 "configure"
4f14bcd8
GD
10133#include "confdefs.h"
10134#include <freetype.h>
10135EOF
10136ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 10137{ (eval echo configure:10138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10138ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10139if test -z "$ac_err"; then
10140 rm -rf conftest*
10141 eval "ac_cv_header_$ac_safe=yes"
10142else
10143 echo "$ac_err" >&5
10144 echo "configure: failed program was:" >&5
10145 cat conftest.$ac_ext >&5
10146 rm -rf conftest*
10147 eval "ac_cv_header_$ac_safe=no"
10148fi
10149rm -f conftest*
10150fi
10151if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
b040e242 10154echo "configure:10155: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
10155ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
10158else
10159 ac_save_LIBS="$LIBS"
10160LIBS="-lfreetype -lm $LIBS"
10161cat > conftest.$ac_ext <<EOF
b040e242 10162#line 10163 "configure"
4f14bcd8
GD
10163#include "confdefs.h"
10164/* Override any gcc2 internal prototype to avoid an error. */
10165/* We use char because int might match the return type of a gcc2
10166 builtin and then its argument prototype would still apply. */
10167char FT_Render_Glyph();
10168
10169int main() {
10170FT_Render_Glyph()
10171; return 0; }
10172EOF
b040e242 10173if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10174 rm -rf conftest*
10175 eval "ac_cv_lib_$ac_lib_var=yes"
10176else
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 rm -rf conftest*
10180 eval "ac_cv_lib_$ac_lib_var=no"
10181fi
10182rm -f conftest*
10183LIBS="$ac_save_LIBS"
10184
10185fi
10186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10187 echo "$ac_t""yes" 1>&6
3d63bc3a 10188 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
10189else
10190 echo "$ac_t""no" 1>&6
10191fi
10192
10193
10194else
10195 echo "$ac_t""no" 1>&6
10196fi
10197
10198
10199 if test "x$FREETYPE_LINK" = "x" ; then
10200 if test "$wxUSE_FREETYPE" = "sys" ; then
10201 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10202 else
a3df447d 10203 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10204 wxUSE_FREETYPE=builtin
10205 fi
10206 else
10207 wxUSE_FREETYPE=sys
10208 fi
10209 fi
10210
10211 if test "$wxUSE_FREETYPE" = "builtin" ; then
10212 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10213 fi
10214fi
10215
10216
10217AFMINSTALL=
10218
10219TOOLKIT=
10220TOOLKIT_INCLUDE=
10221WIDGET_SET=
10222
10223if test "$USE_WIN32" = 1 ; then
10224 for ac_hdr in w32api.h
10225do
10226ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10227echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 10228echo "configure:10229: checking for $ac_hdr" >&5
4f14bcd8
GD
10229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10231else
10232 cat > conftest.$ac_ext <<EOF
b040e242 10233#line 10234 "configure"
4f14bcd8
GD
10234#include "confdefs.h"
10235#include <$ac_hdr>
10236EOF
10237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 10238{ (eval echo configure:10239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10240if test -z "$ac_err"; then
10241 rm -rf conftest*
10242 eval "ac_cv_header_$ac_safe=yes"
10243else
10244 echo "$ac_err" >&5
10245 echo "configure: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 rm -rf conftest*
10248 eval "ac_cv_header_$ac_safe=no"
10249fi
10250rm -f conftest*
10251fi
10252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10253 echo "$ac_t""yes" 1>&6
10254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10255 cat >> confdefs.h <<EOF
10256#define $ac_tr_hdr 1
10257EOF
10258
10259else
10260 echo "$ac_t""no" 1>&6
10261fi
10262done
10263
10264 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10265echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b040e242 10266echo "configure:10267: checking for windows.h" >&5
4f14bcd8
GD
10267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269else
10270 cat > conftest.$ac_ext <<EOF
b040e242 10271#line 10272 "configure"
4f14bcd8
GD
10272#include "confdefs.h"
10273#include <windows.h>
10274EOF
10275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 10276{ (eval echo configure:10277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10278if test -z "$ac_err"; then
10279 rm -rf conftest*
10280 eval "ac_cv_header_$ac_safe=yes"
10281else
10282 echo "$ac_err" >&5
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 eval "ac_cv_header_$ac_safe=no"
10287fi
10288rm -f conftest*
10289fi
10290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 :
10293else
10294 echo "$ac_t""no" 1>&6
10295
10296 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10297
10298fi
10299
10300
10301 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
b040e242 10302echo "configure:10303: checking if w32api has good enough MSIE support" >&5
ea7682f0 10303if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10304 echo $ac_n "(cached) $ac_c" 1>&6
10305else
10306
10307 cat > conftest.$ac_ext <<EOF
b040e242 10308#line 10309 "configure"
4f14bcd8
GD
10309#include "confdefs.h"
10310#include <w32api.h>
10311int main() {
10312
10313 #define wxCHECK_W32API_VERSION( major, minor ) \
10314 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10315 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10316 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10317
10318 #if !wxCHECK_W32API_VERSION(1,1)
10319 #error You need w32api 1.1 or newer
10320 #endif
10321
10322; return 0; }
10323EOF
b040e242 10324if { (eval echo configure:10325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10325 rm -rf conftest*
10326
ea7682f0 10327 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10328
10329else
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 rm -rf conftest*
10333
ea7682f0 10334 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10335
10336fi
10337rm -f conftest*
10338
10339fi
10340
ea7682f0
VS
10341echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10342 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10343 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10344 fi
4f14bcd8
GD
10345
10346 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10347
77e13408
RL
10348 case "${host}" in
10349 *-*-cygwin* )
10350 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10351 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10352 esac
4f14bcd8
GD
10353
10354 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10355 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10356 fi
10357
4f14bcd8
GD
10358 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10359 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10360fi
10361
10362if test "$wxUSE_GUI" = "yes"; then
10363 USE_GUI=1
10364
10365 GUI_TK_LIBRARY=
10366
10367 WXGTK12=
10368 WXGTK127=
10369 WXGTK20=
10370
77e13408 10371 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10372 TOOLKIT=MSW
10373 GUIDIST=MSW_DIST
77e13408
RL
10374
10375 case "${host}" in
10376 *-*-mingw32* )
3d63bc3a 10377 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10378 esac
4f14bcd8
GD
10379 fi
10380
10381 if test "$wxUSE_GTK" = 1; then
10382 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
b040e242 10383echo "configure:10384: checking for GTK+ version" >&5
4f14bcd8
GD
10384
10385 gtk_version_cached=1
10386 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10388else
10389
10390 gtk_version_cached=0
d48ad9bd 10391 echo "$ac_t""" 1>&6
4f14bcd8 10392
3f345b47
VZ
10393 GTK_MODULES=
10394 if test "$wxUSE_THREADS" = "yes"; then
10395 GTK_MODULES=gthread
10396 fi
10397
4f14bcd8
GD
10398 wx_cv_lib_gtk=
10399 if test "x$wxUSE_GTK2" = "xyes"; then
10400 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10401if test "${with_gtk_prefix+set}" = set; then
10402 withval="$with_gtk_prefix"
10403 gtk_config_prefix="$withval"
10404else
10405 gtk_config_prefix=""
10406fi
10407
10408# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10409if test "${with_gtk_exec_prefix+set}" = set; then
10410 withval="$with_gtk_exec_prefix"
10411 gtk_config_exec_prefix="$withval"
10412else
10413 gtk_config_exec_prefix=""
10414fi
10415
10416# Check whether --enable-gtktest or --disable-gtktest was given.
10417if test "${enable_gtktest+set}" = set; then
10418 enableval="$enable_gtktest"
10419 :
10420else
10421 enable_gtktest=yes
10422fi
10423
10424
3f345b47 10425 for module in . $GTK_MODULES
4f14bcd8 10426 do
6f72b082 10427 case "$module" in
8168de4c 10428 gthread)
6f72b082
OK
10429 gtk_config_args="$gtk_config_args gthread"
10430 ;;
10431 esac
10432 done
10433
10434 if test x$gtk_config_exec_prefix != x ; then
10435 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10436 if test x${GTK_CONFIG_2_0+set} != xset ; then
10437 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10438 fi
10439 fi
10440 if test x$gtk_config_prefix != x ; then
10441 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10442 if test x${GTK_CONFIG_2_0+set} != xset ; then
10443 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10444 fi
10445 fi
10446
10447 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10448set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10449echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 10450echo "configure:10451: checking for $ac_word" >&5
698dcdb6
VZ
10451if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10453else
698dcdb6
VZ
10454 case "$GTK_CONFIG_2_0" in
10455 /*)
6f72b082
OK
10456 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10457 ;;
698dcdb6
VZ
10458 ?:/*)
10459 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10460 ;;
6f72b082 10461 *)
698dcdb6
VZ
10462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10463 ac_dummy="$PATH"
10464 for ac_dir in $ac_dummy; do
10465 test -z "$ac_dir" && ac_dir=.
10466 if test -f $ac_dir/$ac_word; then
10467 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10468 break
10469 fi
10470 done
10471 IFS="$ac_save_ifs"
6f72b082
OK
10472 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10473 ;;
10474esac
10475fi
698dcdb6 10476GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10477if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10478 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10479else
698dcdb6 10480 echo "$ac_t""no" 1>&6
6f72b082
OK
10481fi
10482
10483 min_gtk_version=1.3.1
698dcdb6 10484 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b040e242 10485echo "configure:10486: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10486 no_gtk=""
10487 if test "$GTK_CONFIG_2_0" = "no" ; then
10488 no_gtk=yes
10489 else
10490 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10491 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10492 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10493 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10494 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10495 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10496 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10498 if test "x$enable_gtktest" = "xyes" ; then
10499 ac_save_CFLAGS="$CFLAGS"
10500 ac_save_LIBS="$LIBS"
10501 CFLAGS="$CFLAGS $GTK_CFLAGS"
10502 LIBS="$GTK_LIBS $LIBS"
10503 rm -f conf.gtktest
10504 if test "$cross_compiling" = yes; then
10505 echo $ac_n "cross compiling; assumed OK... $ac_c"
10506else
698dcdb6 10507 cat > conftest.$ac_ext <<EOF
b040e242 10508#line 10509 "configure"
6f72b082
OK
10509#include "confdefs.h"
10510
10511#include <gtk/gtk.h>
10512#include <stdio.h>
10513#include <stdlib.h>
10514
8168de4c 10515int
6f72b082
OK
10516main ()
10517{
10518 int major, minor, micro;
10519 char *tmp_version;
10520
10521 system ("touch conf.gtktest");
10522
10523 /* HP/UX 9 (%@#!) writes to sscanf strings */
10524 tmp_version = g_strdup("$min_gtk_version");
10525 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10526 printf("%s, bad version string\n", "$min_gtk_version");
10527 exit(1);
10528 }
10529
10530 if ((gtk_major_version != $gtk_config_major_version) ||
10531 (gtk_minor_version != $gtk_config_minor_version) ||
10532 (gtk_micro_version != $gtk_config_micro_version))
10533 {
8168de4c 10534 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10535 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10536 gtk_major_version, gtk_minor_version, gtk_micro_version);
10537 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10538 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10539 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10540 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10541 printf("*** required on your system.\n");
10542 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10543 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10544 printf("*** before re-running configure\n");
8168de4c 10545 }
6f72b082
OK
10546#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10547 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10548 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10549 (gtk_micro_version != GTK_MICRO_VERSION))
10550 {
10551 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10552 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10553 printf("*** library (version %d.%d.%d)\n",
8168de4c 10554 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10555 }
10556#endif /* defined (GTK_MAJOR_VERSION) ... */
10557 else
10558 {
10559 if ((gtk_major_version > major) ||
10560 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10561 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10562 {
10563 return 0;
10564 }
10565 else
10566 {
10567 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10568 gtk_major_version, gtk_minor_version, gtk_micro_version);
10569 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10570 major, minor, micro);
6f72b082
OK
10571 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10572 printf("***\n");
10573 printf("*** If you have already installed a sufficiently new version, this error\n");
10574 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10575 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10576 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10577 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10578 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10579 printf("*** so that the correct libraries are found at run-time))\n");
10580 }
10581 }
10582 return 1;
10583}
10584
698dcdb6 10585EOF
b040e242 10586if { (eval echo configure:10587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10587then
6f72b082
OK
10588 :
10589else
698dcdb6
VZ
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10592 rm -fr conftest*
10593 no_gtk=yes
6f72b082 10594fi
698dcdb6 10595rm -fr conftest*
6f72b082 10596fi
698dcdb6 10597
6f72b082
OK
10598 CFLAGS="$ac_save_CFLAGS"
10599 LIBS="$ac_save_LIBS"
10600 fi
10601 fi
10602 if test "x$no_gtk" = x ; then
698dcdb6 10603 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10604 wx_cv_lib_gtk=2.0
6f72b082 10605 else
698dcdb6 10606 echo "$ac_t""no" 1>&6
6f72b082
OK
10607 if test "$GTK_CONFIG_2_0" = "no" ; then
10608 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10609 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10610 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10611 echo "*** full path to gtk-config-2.0."
10612 else
10613 if test -f conf.gtktest ; then
10614 :
10615 else
10616 echo "*** Could not run GTK test program, checking why..."
10617 CFLAGS="$CFLAGS $GTK_CFLAGS"
10618 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10619 cat > conftest.$ac_ext <<EOF
b040e242 10620#line 10621 "configure"
6f72b082
OK
10621#include "confdefs.h"
10622
10623#include <gtk/gtk.h>
10624#include <stdio.h>
10625
698dcdb6
VZ
10626int main() {
10627 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10628; return 0; }
10629EOF
b040e242 10630if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10631 rm -rf conftest*
6f72b082
OK
10632 echo "*** The test program compiled, but did not run. This usually means"
10633 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10634 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10635 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10636 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10637 echo "*** is required on your system"
8168de4c 10638 echo "***"
6f72b082
OK
10639 echo "*** If you have an old version installed, it is best to remove it, although"
10640 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10641 echo "***"
10642 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10643 echo "*** came with the system with the command"
10644 echo "***"
698dcdb6 10645 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10646else
698dcdb6
VZ
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 rm -rf conftest*
10650 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10651 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10652 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10653 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10654fi
698dcdb6 10655rm -f conftest*
6f72b082
OK
10656 CFLAGS="$ac_save_CFLAGS"
10657 LIBS="$ac_save_LIBS"
10658 fi
10659 fi
10660 GTK_CFLAGS=""
10661 GTK_LIBS=""
3f345b47 10662 :
8168de4c
VZ
10663 fi
10664
10665
10666 rm -f conf.gtktest
10667
10668 fi
10669
10670 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10671 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10672if test "${with_gtk_prefix+set}" = set; then
10673 withval="$with_gtk_prefix"
10674 gtk_config_prefix="$withval"
10675else
10676 gtk_config_prefix=""
10677fi
10678
10679# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10680if test "${with_gtk_exec_prefix+set}" = set; then
10681 withval="$with_gtk_exec_prefix"
10682 gtk_config_exec_prefix="$withval"
10683else
10684 gtk_config_exec_prefix=""
10685fi
10686
10687# Check whether --enable-gtktest or --disable-gtktest was given.
10688if test "${enable_gtktest+set}" = set; then
10689 enableval="$enable_gtktest"
10690 :
10691else
10692 enable_gtktest=yes
10693fi
10694
10695
10696 for module in . $GTK_MODULES
10697 do
10698 case "$module" in
10699 gthread)
10700 gtk_config_args="$gtk_config_args gthread"
10701 ;;
10702 esac
10703 done
10704
10f2d63a
VZ
10705 if test x$gtk_config_exec_prefix != x ; then
10706 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10707 if test x${GTK_CONFIG+set} != xset ; then
10708 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10709 fi
10710 fi
10711 if test x$gtk_config_prefix != x ; then
10712 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10713 if test x${GTK_CONFIG+set} != xset ; then
10714 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10715 fi
10716 fi
10717
10718 # Extract the first word of "gtk-config", so it can be a program name with args.
10719set dummy gtk-config; ac_word=$2
698dcdb6 10720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 10721echo "configure:10722: checking for $ac_word" >&5
698dcdb6
VZ
10722if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10724else
698dcdb6
VZ
10725 case "$GTK_CONFIG" in
10726 /*)
f6bcfd97
BP
10727 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10728 ;;
698dcdb6
VZ
10729 ?:/*)
10730 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10731 ;;
f6bcfd97 10732 *)
698dcdb6
VZ
10733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10734 ac_dummy="$PATH"
10735 for ac_dir in $ac_dummy; do
10736 test -z "$ac_dir" && ac_dir=.
10737 if test -f $ac_dir/$ac_word; then
10738 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10739 break
10740 fi
10741 done
10742 IFS="$ac_save_ifs"
f6bcfd97
BP
10743 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10744 ;;
10745esac
10746fi
698dcdb6 10747GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10748if test -n "$GTK_CONFIG"; then
698dcdb6 10749 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10750else
698dcdb6 10751 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10752fi
10753
10754 min_gtk_version=1.2.7
698dcdb6 10755 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b040e242 10756echo "configure:10757: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10757 no_gtk=""
3f345b47
VZ
10758 if test "$GTK_CONFIG" = "no" ; then
10759 no_gtk=yes
10760 else
10761 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10762 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10763 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10764 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10765 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10767 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10769 if test "x$enable_gtktest" = "xyes" ; then
10770 ac_save_CFLAGS="$CFLAGS"
10771 ac_save_LIBS="$LIBS"
10772 CFLAGS="$CFLAGS $GTK_CFLAGS"
10773 LIBS="$GTK_LIBS $LIBS"
10774 rm -f conf.gtktest
10775 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10776 echo $ac_n "cross compiling; assumed OK... $ac_c"
10777else
698dcdb6 10778 cat > conftest.$ac_ext <<EOF
b040e242 10779#line 10780 "configure"
f6bcfd97
BP
10780#include "confdefs.h"
10781
10782#include <gtk/gtk.h>
f6bcfd97
BP
10783#include <stdio.h>
10784#include <stdlib.h>
10785
3f345b47 10786int
f6bcfd97
BP
10787main ()
10788{
10789 int major, minor, micro;
3f345b47 10790 char *tmp_version;
f6bcfd97 10791
3f345b47 10792 system ("touch conf.gtktest");
f6bcfd97 10793
3f345b47
VZ
10794 /* HP/UX 9 (%@#!) writes to sscanf strings */
10795 tmp_version = g_strdup("$min_gtk_version");
10796 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10797 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10798 exit(1);
10799 }
10800
3f345b47
VZ
10801 if ((gtk_major_version != $gtk_config_major_version) ||
10802 (gtk_minor_version != $gtk_config_minor_version) ||
10803 (gtk_micro_version != $gtk_config_micro_version))
10804 {
10805 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10806 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10807 gtk_major_version, gtk_minor_version, gtk_micro_version);
10808 printf ("*** was found! If gtk-config was correct, then it is best\n");
10809 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10810 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10811 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10812 printf("*** required on your system.\n");
10813 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10814 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10815 printf("*** before re-running configure\n");
10816 }
10817#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10818 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10819 (gtk_minor_version != GTK_MINOR_VERSION) ||
10820 (gtk_micro_version != GTK_MICRO_VERSION))
10821 {
10822 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10823 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10824 printf("*** library (version %d.%d.%d)\n",
10825 gtk_major_version, gtk_minor_version, gtk_micro_version);
10826 }
10827#endif /* defined (GTK_MAJOR_VERSION) ... */
10828 else
10829 {
10830 if ((gtk_major_version > major) ||
10831 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10832 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10833 {
10834 return 0;
10835 }
10836 else
10837 {
10838 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10839 gtk_major_version, gtk_minor_version, gtk_micro_version);
10840 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10841 major, minor, micro);
10842 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10843 printf("***\n");
10844 printf("*** If you have already installed a sufficiently new version, this error\n");
10845 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10846 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10847 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10848 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10849 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10850 printf("*** so that the correct libraries are found at run-time))\n");
10851 }
10852 }
10853 return 1;
f6bcfd97
BP
10854}
10855
698dcdb6 10856EOF
b040e242 10857if { (eval echo configure:10858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10858then
f6bcfd97
BP
10859 :
10860else
698dcdb6
VZ
10861 echo "configure: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10863 rm -fr conftest*
10864 no_gtk=yes
f6bcfd97 10865fi
698dcdb6 10866rm -fr conftest*
f6bcfd97 10867fi
698dcdb6 10868
3f345b47
VZ
10869 CFLAGS="$ac_save_CFLAGS"
10870 LIBS="$ac_save_LIBS"
10871 fi
f6bcfd97
BP
10872 fi
10873 if test "x$no_gtk" = x ; then
698dcdb6 10874 echo "$ac_t""yes" 1>&6
3f345b47 10875 wx_cv_lib_gtk=1.2.7
f6bcfd97 10876 else
698dcdb6 10877 echo "$ac_t""no" 1>&6
3f345b47
VZ
10878 if test "$GTK_CONFIG" = "no" ; then
10879 echo "*** The gtk-config script installed by GTK could not be found"
10880 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10881 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10882 echo "*** full path to gtk-config."
10883 else
10884 if test -f conf.gtktest ; then
10885 :
10886 else
10887 echo "*** Could not run GTK test program, checking why..."
10888 CFLAGS="$CFLAGS $GTK_CFLAGS"
10889 LIBS="$LIBS $GTK_LIBS"
10890 cat > conftest.$ac_ext <<EOF
b040e242 10891#line 10892 "configure"
3f345b47
VZ
10892#include "confdefs.h"
10893
10894#include <gtk/gtk.h>
10895#include <stdio.h>
10896
10897int main() {
10898 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10899; return 0; }
10900EOF
b040e242 10901if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10902 rm -rf conftest*
10903 echo "*** The test program compiled, but did not run. This usually means"
10904 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10905 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10906 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10907 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10908 echo "*** is required on your system"
10909 echo "***"
10910 echo "*** If you have an old version installed, it is best to remove it, although"
10911 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10912 echo "***"
10913 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10914 echo "*** came with the system with the command"
10915 echo "***"
10916 echo "*** rpm --erase --nodeps gtk gtk-devel"
10917else
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 rm -rf conftest*
10921 echo "*** The test program failed to compile or link. See the file config.log for the"
10922 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10923 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10924 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10925fi
10926rm -f conftest*
10927 CFLAGS="$ac_save_CFLAGS"
10928 LIBS="$ac_save_LIBS"
10929 fi
10930 fi
f6bcfd97
BP
10931 GTK_CFLAGS=""
10932 GTK_LIBS=""
10933 :
10934 fi
698dcdb6
VZ
10935
10936
3f345b47 10937 rm -f conf.gtktest
f6bcfd97 10938
8168de4c
VZ
10939 fi
10940
10941 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10942 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10943if test "${with_gtk_prefix+set}" = set; then
10944 withval="$with_gtk_prefix"
10945 gtk_config_prefix="$withval"
10946else
10947 gtk_config_prefix=""
10948fi
10949
10950# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10951if test "${with_gtk_exec_prefix+set}" = set; then
10952 withval="$with_gtk_exec_prefix"
10953 gtk_config_exec_prefix="$withval"
10954else
10955 gtk_config_exec_prefix=""
10956fi
10957
10958# Check whether --enable-gtktest or --disable-gtktest was given.
10959if test "${enable_gtktest+set}" = set; then
10960 enableval="$enable_gtktest"
10961 :
10962else
10963 enable_gtktest=yes
10964fi
10965
10966
10967 for module in . $GTK_MODULES
10968 do
10969 case "$module" in
10970 gthread)
10971 gtk_config_args="$gtk_config_args gthread"
10972 ;;
10973 esac
10974 done
10975
f6bcfd97
BP
10976 if test x$gtk_config_exec_prefix != x ; then
10977 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10978 if test x${GTK_CONFIG+set} != xset ; then
10979 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10980 fi
10981 fi
10982 if test x$gtk_config_prefix != x ; then
10983 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10984 if test x${GTK_CONFIG+set} != xset ; then
10985 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10986 fi
10987 fi
10988
10989 # Extract the first word of "gtk-config", so it can be a program name with args.
10990set dummy gtk-config; ac_word=$2
698dcdb6 10991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 10992echo "configure:10993: checking for $ac_word" >&5
698dcdb6
VZ
10993if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10995else
698dcdb6
VZ
10996 case "$GTK_CONFIG" in
10997 /*)
10f2d63a
VZ
10998 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10999 ;;
698dcdb6
VZ
11000 ?:/*)
11001 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11002 ;;
10f2d63a 11003 *)
698dcdb6
VZ
11004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11005 ac_dummy="$PATH"
11006 for ac_dir in $ac_dummy; do
11007 test -z "$ac_dir" && ac_dir=.
11008 if test -f $ac_dir/$ac_word; then
11009 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11010 break
11011 fi
11012 done
11013 IFS="$ac_save_ifs"
10f2d63a
VZ
11014 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11015 ;;
11016esac
11017fi
698dcdb6 11018GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 11019if test -n "$GTK_CONFIG"; then
698dcdb6 11020 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 11021else
698dcdb6 11022 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11023fi
11024
04165bec 11025 min_gtk_version=1.2.3
698dcdb6 11026 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b040e242 11027echo "configure:11028: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 11028 no_gtk=""
3f345b47
VZ
11029 if test "$GTK_CONFIG" = "no" ; then
11030 no_gtk=yes
11031 else
11032 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11033 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11034 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11036 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11038 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11040 if test "x$enable_gtktest" = "xyes" ; then
11041 ac_save_CFLAGS="$CFLAGS"
11042 ac_save_LIBS="$LIBS"
11043 CFLAGS="$CFLAGS $GTK_CFLAGS"
11044 LIBS="$GTK_LIBS $LIBS"
11045 rm -f conf.gtktest
11046 if test "$cross_compiling" = yes; then
10f2d63a
VZ
11047 echo $ac_n "cross compiling; assumed OK... $ac_c"
11048else
698dcdb6 11049 cat > conftest.$ac_ext <<EOF
b040e242 11050#line 11051 "configure"
10f2d63a
VZ
11051#include "confdefs.h"
11052
11053#include <gtk/gtk.h>
11054#include <stdio.h>
32832908 11055#include <stdlib.h>
10f2d63a 11056
3f345b47 11057int
10f2d63a
VZ
11058main ()
11059{
11060 int major, minor, micro;
3f345b47 11061 char *tmp_version;
10f2d63a 11062
3f345b47 11063 system ("touch conf.gtktest");
10f2d63a 11064
3f345b47
VZ
11065 /* HP/UX 9 (%@#!) writes to sscanf strings */
11066 tmp_version = g_strdup("$min_gtk_version");
11067 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11068 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
11069 exit(1);
11070 }
11071
3f345b47
VZ
11072 if ((gtk_major_version != $gtk_config_major_version) ||
11073 (gtk_minor_version != $gtk_config_minor_version) ||
11074 (gtk_micro_version != $gtk_config_micro_version))
11075 {
11076 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11077 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11078 gtk_major_version, gtk_minor_version, gtk_micro_version);
11079 printf ("*** was found! If gtk-config was correct, then it is best\n");
11080 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11081 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11082 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11083 printf("*** required on your system.\n");
11084 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11085 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11086 printf("*** before re-running configure\n");
11087 }
11088#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11089 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11090 (gtk_minor_version != GTK_MINOR_VERSION) ||
11091 (gtk_micro_version != GTK_MICRO_VERSION))
11092 {
11093 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11094 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11095 printf("*** library (version %d.%d.%d)\n",
11096 gtk_major_version, gtk_minor_version, gtk_micro_version);
11097 }
11098#endif /* defined (GTK_MAJOR_VERSION) ... */
11099 else
11100 {
11101 if ((gtk_major_version > major) ||
11102 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11103 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11104 {
11105 return 0;
11106 }
11107 else
11108 {
11109 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11110 gtk_major_version, gtk_minor_version, gtk_micro_version);
11111 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11112 major, minor, micro);
11113 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11114 printf("***\n");
11115 printf("*** If you have already installed a sufficiently new version, this error\n");
11116 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11117 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11118 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11119 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11120 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11121 printf("*** so that the correct libraries are found at run-time))\n");
11122 }
11123 }
11124 return 1;
10f2d63a
VZ
11125}
11126
698dcdb6 11127EOF
b040e242 11128if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11129then
10f2d63a
VZ
11130 :
11131else
698dcdb6
VZ
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 rm -fr conftest*
11135 no_gtk=yes
10f2d63a 11136fi
698dcdb6 11137rm -fr conftest*
10f2d63a 11138fi
698dcdb6 11139
3f345b47
VZ
11140 CFLAGS="$ac_save_CFLAGS"
11141 LIBS="$ac_save_LIBS"
11142 fi
10f2d63a
VZ
11143 fi
11144 if test "x$no_gtk" = x ; then
698dcdb6 11145 echo "$ac_t""yes" 1>&6
3f345b47 11146 wx_cv_lib_gtk=1.2.3
10f2d63a 11147 else
698dcdb6 11148 echo "$ac_t""no" 1>&6
3f345b47
VZ
11149 if test "$GTK_CONFIG" = "no" ; then
11150 echo "*** The gtk-config script installed by GTK could not be found"
11151 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11152 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11153 echo "*** full path to gtk-config."
11154 else
11155 if test -f conf.gtktest ; then
11156 :
11157 else
11158 echo "*** Could not run GTK test program, checking why..."
11159 CFLAGS="$CFLAGS $GTK_CFLAGS"
11160 LIBS="$LIBS $GTK_LIBS"
11161 cat > conftest.$ac_ext <<EOF
b040e242 11162#line 11163 "configure"
3f345b47
VZ
11163#include "confdefs.h"
11164
11165#include <gtk/gtk.h>
11166#include <stdio.h>
11167
11168int main() {
11169 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11170; return 0; }
11171EOF
b040e242 11172if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11173 rm -rf conftest*
11174 echo "*** The test program compiled, but did not run. This usually means"
11175 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11176 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11177 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11178 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11179 echo "*** is required on your system"
11180 echo "***"
11181 echo "*** If you have an old version installed, it is best to remove it, although"
11182 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11183 echo "***"
11184 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11185 echo "*** came with the system with the command"
11186 echo "***"
11187 echo "*** rpm --erase --nodeps gtk gtk-devel"
11188else
11189 echo "configure: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 rm -rf conftest*
11192 echo "*** The test program failed to compile or link. See the file config.log for the"
11193 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11194 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11195 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11196fi
11197rm -f conftest*
11198 CFLAGS="$ac_save_CFLAGS"
11199 LIBS="$ac_save_LIBS"
11200 fi
11201 fi
10f2d63a
VZ
11202 GTK_CFLAGS=""
11203 GTK_LIBS=""
7e99ad86 11204 :
10f2d63a 11205 fi
698dcdb6
VZ
11206
11207
3f345b47 11208 rm -f conf.gtktest
10f2d63a 11209
8168de4c
VZ
11210 fi
11211
11212 if test -z "$wx_cv_lib_gtk"; then
11213 wx_cv_lib_gtk=none
138be253
VZ
11214 else
11215 wx_cv_cflags_gtk=$GTK_CFLAGS
11216 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11217 fi
11218
1e6feb95 11219
8168de4c 11220fi
703e0a69 11221
698dcdb6 11222
8168de4c
VZ
11223 if test "$gtk_version_cached" = 1; then
11224 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11225 fi
698dcdb6 11226
8168de4c
VZ
11227 case "$wx_cv_lib_gtk" in
11228 2.0) WXGTK20=1
11229 ;;
11230 1.2.7) WXGTK127=1
d1a8d972 11231 WXGTK12=1
8168de4c
VZ
11232 ;;
11233 1.2.3) WXGTK12=1
11234 ;;
11235 *) { echo "configure: error:
11236Please check that gtk-config is in path, the directory
11237where GTK+ libraries are installed (returned by
11238'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11239equivalent variable and GTK+ is version 1.2.3 or above.
11240 " 1>&2; exit 1; }
11241 ;;
11242 esac
2224580a 11243
138be253 11244 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11245 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11246
1e6feb95
VZ
11247 AFMINSTALL=afminstall
11248 TOOLKIT=GTK
11249 GUIDIST=GTK_DIST
7ec2881a 11250
1e6feb95 11251 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b040e242 11252echo "configure:11253: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11253ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11254if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11256else
698dcdb6 11257 ac_save_LIBS="$LIBS"
7ec2881a 11258LIBS="-lgdk $LIBS"
698dcdb6 11259cat > conftest.$ac_ext <<EOF
b040e242 11260#line 11261 "configure"
7ec2881a
RR
11261#include "confdefs.h"
11262/* Override any gcc2 internal prototype to avoid an error. */
11263/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11264 builtin and then its argument prototype would still apply. */
11265char gdk_im_open();
11266
11267int main() {
11268gdk_im_open()
11269; return 0; }
11270EOF
b040e242 11271if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11272 rm -rf conftest*
11273 eval "ac_cv_lib_$ac_lib_var=yes"
11274else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278 eval "ac_cv_lib_$ac_lib_var=no"
11279fi
11280rm -f conftest*
11281LIBS="$ac_save_LIBS"
11282
11283fi
11284if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11285 echo "$ac_t""yes" 1>&6
11286 cat >> confdefs.h <<\EOF
7ec2881a
RR
11287#define HAVE_XIM 1
11288EOF
11289
698dcdb6
VZ
11290else
11291 echo "$ac_t""no" 1>&6
7ec2881a
RR
11292fi
11293
1e6feb95 11294 fi
10f2d63a 11295
1e6feb95 11296 if test "$wxUSE_MGL" = 1; then
1e6feb95 11297 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
b040e242 11298echo "configure:11299: checking for SciTech MGL library" >&5
1e6feb95
VZ
11299 if test "x$MGL_ROOT" = x ; then
11300 echo "$ac_t""not found" 1>&6
11301 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11302 else
11303 echo "$ac_t""$MGL_ROOT" 1>&6
11304 fi
11305
f9bc1684
VS
11306 case "${host}" in
11307 *-*-linux* )
11308 mgl_os=linux/gcc/glibc
11309 ;;
11310 *-pc-msdosdjgpp )
11311 mgl_os=dos32/dj2
11312 ;;
11313 *)
11314 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11315 esac
11316
3a922bb4 11317 mgl_lib_type=""
1e6feb95
VZ
11318
11319 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11320 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11321 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11322 mgl_lib_type=debug
1e6feb95
VZ
11323 fi
11324 fi
3a922bb4 11325 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11326 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11327 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11328 mgl_lib_type=release
1e6feb95
VZ
11329 else
11330 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11331 fi
11332 fi
11333
11334 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11335 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11336
11337 AFMINSTALL=afminstall
11338 TOOLKIT=MGL
11339 GUIDIST=MGL_DIST
11340 fi
11341
1725144d
RR
11342 if test "$wxUSE_MICROWIN" = 1; then
11343 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
b040e242 11344echo "configure:11345: checking for MicroWindows" >&5
1725144d
RR
11345 if test "x$MICROWINDOWS" = x ; then
11346 echo "$ac_t""not found" 1>&6
11347 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11348 else
11349 echo "$ac_t""$MICROWINDOWS" 1>&6
11350 fi
11351
11352 if test -f $MICROWINDOWS/lib/libmwin.a; then
11353 echo "$ac_t""MicroWindows' libraries found." 1>&6
11354 else
11355 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11356 fi
11357
11358 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11359 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11360
11361 AFMINSTALL=afminstall
11362 TOOLKIT=MICROWIN
11363 GUIDIST=MICROWIN_DIST
11364
11365 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11366 fi
11367
1e6feb95 11368 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
11369 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11370echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b040e242 11371echo "configure:11372: checking for windows.h" >&5
3a922bb4
RL
11372if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11374else
11375 cat > conftest.$ac_ext <<EOF
b040e242 11376#line 11377 "configure"
3a922bb4
RL
11377#include "confdefs.h"
11378#include <windows.h>
11379EOF
11380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 11381{ (eval echo configure:11382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11383if test -z "$ac_err"; then
11384 rm -rf conftest*
11385 eval "ac_cv_header_$ac_safe=yes"
11386else
11387 echo "$ac_err" >&5
11388 echo "configure: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 rm -rf conftest*
11391 eval "ac_cv_header_$ac_safe=no"
11392fi
11393rm -f conftest*
11394fi
11395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11396 echo "$ac_t""yes" 1>&6
11397 :
11398else
11399 echo "$ac_t""no" 1>&6
10f2d63a 11400
1e6feb95 11401 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
11402
11403fi
11404
10f2d63a 11405
3d63bc3a 11406 xpm_link=
1e6feb95 11407 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b040e242 11408echo "configure:11409: checking for Xpm library" >&5
1e6feb95 11409
10f2d63a
VZ
11410ac_find_libraries=
11411for ac_dir in $SEARCH_LIB;
11412 do
f11bdd03 11413 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11414 if test -f "$ac_dir/libXpm.$ac_extension"; then
11415 ac_find_libraries=$ac_dir
11416 break 2
11417 fi
11418 done
11419 done
11420
1e6feb95
VZ
11421 if test "$ac_find_libraries" != "" ; then
11422 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 11423 xpm_link=" -lXpm"
1e6feb95 11424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11425#define wxHAVE_LIB_XPM 1
11426EOF
11427
1e6feb95
VZ
11428 echo "$ac_t""found at $ac_find_libraries" 1>&6
11429 else
11430 echo "$ac_t""no" 1>&6
11431 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11432 fi
10f2d63a 11433
3d63bc3a 11434 mesa_link=
1e6feb95 11435 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b040e242 11436echo "configure:11437: checking for Mesa library" >&5
1e6feb95 11437
10f2d63a
VZ
11438ac_find_libraries=
11439for ac_dir in $SEARCH_LIB;
11440 do
f11bdd03 11441 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11442 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11443 ac_find_libraries=$ac_dir
11444 break 2
11445 fi
11446 done
11447 done
11448
1e6feb95
VZ
11449 if test "$ac_find_libraries" != "" ; then
11450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 11451 mesa_link=" -lMesaGL"
1e6feb95
VZ
11452 echo "$ac_t""found at $ac_find_libraries" 1>&6
11453 else
11454 { echo "configure: error: no" 1>&2; exit 1; }
11455 fi
10f2d63a 11456
3d63bc3a 11457 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
11458 TOOLKIT=MSW
11459 GUIDIST=MSW_DIST
3a922bb4 11460 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 11461 fi
698dcdb6 11462
d714471b
VZ
11463 if test "$wxUSE_MOTIF" = 1; then
11464 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11465# paths, otherwise set no_x=yes.
11466# Uses ac_ vars as temps to allow command line to override cache and checks.
11467# --without-x overrides everything else, but does not touch the cache.
11468echo $ac_n "checking for X""... $ac_c" 1>&6
b040e242 11469echo "configure:11470: checking for X" >&5
ab9b9eab
VZ
11470
11471# Check whether --with-x or --without-x was given.
11472if test "${with_x+set}" = set; then
11473 withval="$with_x"
698dcdb6
VZ
11474 :
11475fi
ba337fe7 11476
ab9b9eab
VZ
11477# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11478if test "x$with_x" = xno; then
11479 # The user explicitly disabled X.
11480 have_x=disabled
11481else
11482 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11483 # Both variables are already set.
11484 have_x=yes
11485 else
698dcdb6
VZ
11486if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11488else
11489 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11490ac_x_includes=NO ac_x_libraries=NO
11491rm -fr conftestdir
11492if mkdir conftestdir; then
11493 cd conftestdir
ab9b9eab 11494 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11495 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11496acfindx:
11497 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11498EOF
11499 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11501 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11502 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11503 for ac_extension in a so sl; do
ab9b9eab 11504 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11505 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11506 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11507 fi
11508 done
ab9b9eab
VZ
11509 # Screen out bogus values from the imake configuration. They are
11510 # bogus both because they are the default anyway, and because
11511 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11512 case "$ac_im_incroot" in
ab9b9eab 11513 /usr/include) ;;
698dcdb6 11514 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11515 esac
698dcdb6 11516 case "$ac_im_usrlibdir" in
ab9b9eab 11517 /usr/lib | /lib) ;;
698dcdb6 11518 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11519 esac
ba337fe7 11520 fi
ab9b9eab 11521 cd ..
698dcdb6 11522 rm -fr conftestdir
ab9b9eab 11523fi
10f2d63a 11524
698dcdb6
VZ
11525if test "$ac_x_includes" = NO; then
11526 # Guess where to find include files, by looking for this one X11 .h file.
11527 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11528
ab9b9eab 11529 # First, try using that file with no special directory specified.
698dcdb6 11530cat > conftest.$ac_ext <<EOF
b040e242 11531#line 11532 "configure"
ab9b9eab 11532#include "confdefs.h"
698dcdb6
VZ
11533#include <$x_direct_test_include>
11534EOF
11535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 11536{ (eval echo configure:11537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11538if test -z "$ac_err"; then
11539 rm -rf conftest*
ab9b9eab
VZ
11540 # We can compile using X headers with no special include directory.
11541ac_x_includes=
11542else
698dcdb6
VZ
11543 echo "$ac_err" >&5
11544 echo "configure: failed program was:" >&5
ab9b9eab 11545 cat conftest.$ac_ext >&5
698dcdb6
VZ
11546 rm -rf conftest*
11547 # Look for the header file in a standard set of common directories.
11548# Check X11 before X11Rn because it is often a symlink to the current release.
11549 for ac_dir in \
11550 /usr/X11/include \
11551 /usr/X11R6/include \
11552 /usr/X11R5/include \
11553 /usr/X11R4/include \
11554 \
11555 /usr/include/X11 \
11556 /usr/include/X11R6 \
11557 /usr/include/X11R5 \
11558 /usr/include/X11R4 \
11559 \
11560 /usr/local/X11/include \
11561 /usr/local/X11R6/include \
11562 /usr/local/X11R5/include \
11563 /usr/local/X11R4/include \
11564 \
11565 /usr/local/include/X11 \
11566 /usr/local/include/X11R6 \
11567 /usr/local/include/X11R5 \
11568 /usr/local/include/X11R4 \
11569 \
11570 /usr/X386/include \
11571 /usr/x386/include \
11572 /usr/XFree86/include/X11 \
11573 \
11574 /usr/include \
11575 /usr/local/include \
11576 /usr/unsupported/include \
11577 /usr/athena/include \
11578 /usr/local/x11r5/include \
11579 /usr/lpp/Xamples/include \
11580 \
11581 /usr/openwin/include \
11582 /usr/openwin/share/include \
11583 ; \
11584 do
11585 if test -r "$ac_dir/$x_direct_test_include"; then
11586 ac_x_includes=$ac_dir
11587 break
11588 fi
11589 done
ab9b9eab 11590fi
698dcdb6
VZ
11591rm -f conftest*
11592fi # $ac_x_includes = NO
10f2d63a 11593
698dcdb6 11594if test "$ac_x_libraries" = NO; then
ab9b9eab 11595 # Check for the libraries.
698dcdb6
VZ
11596
11597 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11598 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11599
ab9b9eab
VZ
11600 # See if we find them without any special options.
11601 # Don't add to $LIBS permanently.
698dcdb6
VZ
11602 ac_save_LIBS="$LIBS"
11603 LIBS="-l$x_direct_test_library $LIBS"
11604cat > conftest.$ac_ext <<EOF
b040e242 11605#line 11606 "configure"
ab9b9eab 11606#include "confdefs.h"
698dcdb6
VZ
11607
11608int main() {
11609${x_direct_test_function}()
11610; return 0; }
11611EOF
b040e242 11612if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11613 rm -rf conftest*
11614 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11615# We can link X programs with no special library path.
11616ac_x_libraries=
11617else
698dcdb6
VZ
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 LIBS="$ac_save_LIBS"
11622# First see if replacing the include by lib works.
11623# Check X11 before X11Rn because it is often a symlink to the current release.
11624for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11625 /usr/X11/lib \
11626 /usr/X11R6/lib \
11627 /usr/X11R5/lib \
11628 /usr/X11R4/lib \
11629 \
11630 /usr/lib/X11 \
11631 /usr/lib/X11R6 \
11632 /usr/lib/X11R5 \
11633 /usr/lib/X11R4 \
11634 \
11635 /usr/local/X11/lib \
11636 /usr/local/X11R6/lib \
11637 /usr/local/X11R5/lib \
11638 /usr/local/X11R4/lib \
11639 \
11640 /usr/local/lib/X11 \
11641 /usr/local/lib/X11R6 \
11642 /usr/local/lib/X11R5 \
11643 /usr/local/lib/X11R4 \
11644 \
11645 /usr/X386/lib \
11646 /usr/x386/lib \
11647 /usr/XFree86/lib/X11 \
11648 \
11649 /usr/lib \
11650 /usr/local/lib \
11651 /usr/unsupported/lib \
11652 /usr/athena/lib \
11653 /usr/local/x11r5/lib \
11654 /usr/lpp/Xamples/lib \
11655 /lib/usr/lib/X11 \
11656 \
11657 /usr/openwin/lib \
11658 /usr/openwin/share/lib \
11659 ; \
ab9b9eab
VZ
11660do
11661 for ac_extension in a so sl; do
698dcdb6 11662 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11663 ac_x_libraries=$ac_dir
11664 break 2
10f2d63a 11665 fi
10f2d63a 11666 done
ab9b9eab
VZ
11667done
11668fi
698dcdb6
VZ
11669rm -f conftest*
11670fi # $ac_x_libraries = NO
10f2d63a 11671
698dcdb6 11672if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11673 # Didn't find X anywhere. Cache the known absence of X.
11674 ac_cv_have_x="have_x=no"
11675else
11676 # Record where we found X for the cache.
11677 ac_cv_have_x="have_x=yes \
11678 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11679fi
11680fi
10f2d63a 11681 fi
ab9b9eab
VZ
11682 eval "$ac_cv_have_x"
11683fi # $with_x != no
10f2d63a 11684
ab9b9eab 11685if test "$have_x" != yes; then
698dcdb6 11686 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11687 no_x=yes
11688else
11689 # If each of the values was on the command line, it overrides each guess.
11690 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11691 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11692 # Update the cache value to reflect the command line values.
11693 ac_cv_have_x="have_x=yes \
11694 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11695 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11696fi
10f2d63a 11697
ab9b9eab
VZ
11698if test "$no_x" = yes; then
11699 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11700 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11701#define X_DISPLAY_MISSING 1
11702EOF
10f2d63a 11703
ab9b9eab
VZ
11704 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11705else
11706 if test -n "$x_includes"; then
11707 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11708 fi
11709
ab9b9eab
VZ
11710 # It would also be nice to do this for all -L options, not just this one.
11711 if test -n "$x_libraries"; then
11712 X_LIBS="$X_LIBS -L$x_libraries"
11713 # For Solaris; some versions of Sun CC require a space after -R and
11714 # others require no space. Words are not sufficient . . . .
698dcdb6 11715 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11716 "SunOS 5"*)
698dcdb6 11717 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b040e242 11718echo "configure:11719: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11719 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11720 cat > conftest.$ac_ext <<EOF
b040e242 11721#line 11722 "configure"
ab9b9eab 11722#include "confdefs.h"
10f2d63a 11723
698dcdb6 11724int main() {
788deba1 11725
698dcdb6
VZ
11726; return 0; }
11727EOF
b040e242 11728if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11729 rm -rf conftest*
ab9b9eab
VZ
11730 ac_R_nospace=yes
11731else
698dcdb6
VZ
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -rf conftest*
11735 ac_R_nospace=no
ab9b9eab 11736fi
698dcdb6 11737rm -f conftest*
ab9b9eab 11738 if test $ac_R_nospace = yes; then
698dcdb6 11739 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11740 X_LIBS="$X_LIBS -R$x_libraries"
11741 else
11742 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11743 cat > conftest.$ac_ext <<EOF
b040e242 11744#line 11745 "configure"
ab9b9eab 11745#include "confdefs.h"
788deba1 11746
698dcdb6 11747int main() {
ab9b9eab 11748
698dcdb6
VZ
11749; return 0; }
11750EOF
b040e242 11751if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11752 rm -rf conftest*
ab9b9eab
VZ
11753 ac_R_space=yes
11754else
698dcdb6
VZ
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 rm -rf conftest*
11758 ac_R_space=no
ab9b9eab 11759fi
698dcdb6 11760rm -f conftest*
ab9b9eab 11761 if test $ac_R_space = yes; then
698dcdb6 11762 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11763 X_LIBS="$X_LIBS -R $x_libraries"
11764 else
698dcdb6 11765 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11766 fi
11767 fi
698dcdb6 11768 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11769 esac
11770 fi
11771
11772 # Check for system-dependent libraries X programs must link with.
11773 # Do this before checking for the system-independent R6 libraries
11774 # (-lICE), since we may need -lsocket or whatever for X linking.
11775
11776 if test "$ISC" = yes; then
11777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11778 else
698dcdb6
VZ
11779 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11780 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11781 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11782 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b040e242 11783echo "configure:11784: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11784ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11787else
698dcdb6 11788 ac_save_LIBS="$LIBS"
ab9b9eab 11789LIBS="-ldnet $LIBS"
698dcdb6 11790cat > conftest.$ac_ext <<EOF
b040e242 11791#line 11792 "configure"
ab9b9eab
VZ
11792#include "confdefs.h"
11793/* Override any gcc2 internal prototype to avoid an error. */
11794/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11795 builtin and then its argument prototype would still apply. */
11796char dnet_ntoa();
11797
11798int main() {
11799dnet_ntoa()
11800; return 0; }
11801EOF
b040e242 11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11803 rm -rf conftest*
11804 eval "ac_cv_lib_$ac_lib_var=yes"
11805else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_lib_$ac_lib_var=no"
11810fi
11811rm -f conftest*
11812LIBS="$ac_save_LIBS"
11813
11814fi
11815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11816 echo "$ac_t""yes" 1>&6
ab9b9eab 11817 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11818else
11819 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11820fi
11821
11822 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11823 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b040e242 11824echo "configure:11825: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11825ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11826if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11828else
698dcdb6 11829 ac_save_LIBS="$LIBS"
ab9b9eab 11830LIBS="-ldnet_stub $LIBS"
698dcdb6 11831cat > conftest.$ac_ext <<EOF
b040e242 11832#line 11833 "configure"
ab9b9eab
VZ
11833#include "confdefs.h"
11834/* Override any gcc2 internal prototype to avoid an error. */
11835/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11836 builtin and then its argument prototype would still apply. */
11837char dnet_ntoa();
11838
11839int main() {
11840dnet_ntoa()
11841; return 0; }
11842EOF
b040e242 11843if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11844 rm -rf conftest*
11845 eval "ac_cv_lib_$ac_lib_var=yes"
11846else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
11850 eval "ac_cv_lib_$ac_lib_var=no"
11851fi
11852rm -f conftest*
11853LIBS="$ac_save_LIBS"
11854
11855fi
11856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
ab9b9eab 11858 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11859else
11860 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11861fi
11862
11863 fi
11864
11865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11866 # to get the SysV transport functions.
698dcdb6 11867 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11868 # needs -lnsl.
11869 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11870 # on Irix 5.2, according to dickey@clark.net.
11871 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b040e242 11872echo "configure:11873: checking for gethostbyname" >&5
698dcdb6
VZ
11873if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875else
11876 cat > conftest.$ac_ext <<EOF
b040e242 11877#line 11878 "configure"
ab9b9eab
VZ
11878#include "confdefs.h"
11879/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11880 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11881#include <assert.h>
11882/* Override any gcc2 internal prototype to avoid an error. */
11883/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11884 builtin and then its argument prototype would still apply. */
11885char gethostbyname();
11886
11887int main() {
ab9b9eab
VZ
11888
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11893choke me
11894#else
698dcdb6 11895gethostbyname();
ab9b9eab
VZ
11896#endif
11897
698dcdb6
VZ
11898; return 0; }
11899EOF
b040e242 11900if { (eval echo configure:11901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11901 rm -rf conftest*
11902 eval "ac_cv_func_gethostbyname=yes"
11903else
11904 echo "configure: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11906 rm -rf conftest*
11907 eval "ac_cv_func_gethostbyname=no"
11908fi
11909rm -f conftest*
11910fi
11911
11912if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 :
11915else
11916 echo "$ac_t""no" 1>&6
11917fi
ab9b9eab
VZ
11918
11919 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11920 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b040e242 11921echo "configure:11922: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11922ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11923if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11925else
698dcdb6 11926 ac_save_LIBS="$LIBS"
ab9b9eab 11927LIBS="-lnsl $LIBS"
698dcdb6 11928cat > conftest.$ac_ext <<EOF
b040e242 11929#line 11930 "configure"
ab9b9eab
VZ
11930#include "confdefs.h"
11931/* Override any gcc2 internal prototype to avoid an error. */
11932/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11933 builtin and then its argument prototype would still apply. */
11934char gethostbyname();
6232543b 11935
698dcdb6
VZ
11936int main() {
11937gethostbyname()
11938; return 0; }
11939EOF
b040e242 11940if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11941 rm -rf conftest*
11942 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11943else
698dcdb6
VZ
11944 echo "configure: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11946 rm -rf conftest*
11947 eval "ac_cv_lib_$ac_lib_var=no"
11948fi
11949rm -f conftest*
11950LIBS="$ac_save_LIBS"
1e487827 11951
698dcdb6
VZ
11952fi
11953if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11954 echo "$ac_t""yes" 1>&6
11955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11956else
11957 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11958fi
11959
11960 fi
11961
11962 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11963 # socket/setsockopt and other routines are undefined under SCO ODT
11964 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11965 # on later versions), says simon@lia.di.epfl.ch: it contains
11966 # gethostby* variants that don't use the nameserver (or something).
11967 # -lsocket must be given before -lnsl if both are needed.
11968 # We assume that if connect needs -lnsl, so does gethostbyname.
11969 echo $ac_n "checking for connect""... $ac_c" 1>&6
b040e242 11970echo "configure:11971: checking for connect" >&5
698dcdb6
VZ
11971if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11973else
11974 cat > conftest.$ac_ext <<EOF
b040e242 11975#line 11976 "configure"
ab9b9eab
VZ
11976#include "confdefs.h"
11977/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11978 which can conflict with char connect(); below. */
ab9b9eab
VZ
11979#include <assert.h>
11980/* Override any gcc2 internal prototype to avoid an error. */
11981/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11982 builtin and then its argument prototype would still apply. */
11983char connect();
11984
11985int main() {
ab9b9eab
VZ
11986
11987/* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990#if defined (__stub_connect) || defined (__stub___connect)
11991choke me
11992#else
698dcdb6 11993connect();
ab9b9eab
VZ
11994#endif
11995
698dcdb6
VZ
11996; return 0; }
11997EOF
b040e242 11998if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11999 rm -rf conftest*
12000 eval "ac_cv_func_connect=yes"
12001else
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 rm -rf conftest*
12005 eval "ac_cv_func_connect=no"
12006fi
12007rm -f conftest*
12008fi
12009
12010if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 :
12013else
12014 echo "$ac_t""no" 1>&6
12015fi
ab9b9eab
VZ
12016
12017 if test $ac_cv_func_connect = no; then
698dcdb6 12018 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b040e242 12019echo "configure:12020: checking for connect in -lsocket" >&5
698dcdb6
VZ
12020ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12021if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12022 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12023else
698dcdb6 12024 ac_save_LIBS="$LIBS"
ab9b9eab 12025LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 12026cat > conftest.$ac_ext <<EOF
b040e242 12027#line 12028 "configure"
ab9b9eab
VZ
12028#include "confdefs.h"
12029/* Override any gcc2 internal prototype to avoid an error. */
12030/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12031 builtin and then its argument prototype would still apply. */
12032char connect();
12033
12034int main() {
12035connect()
12036; return 0; }
12037EOF
b040e242 12038if { (eval echo configure:12039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12039 rm -rf conftest*
12040 eval "ac_cv_lib_$ac_lib_var=yes"
12041else
12042 echo "configure: failed program was:" >&5
12043 cat conftest.$ac_ext >&5
12044 rm -rf conftest*
12045 eval "ac_cv_lib_$ac_lib_var=no"
12046fi
12047rm -f conftest*
12048LIBS="$ac_save_LIBS"
12049
12050fi
12051if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12052 echo "$ac_t""yes" 1>&6
ab9b9eab 12053 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
12054else
12055 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12056fi
12057
12058 fi
12059
698dcdb6
VZ
12060 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12061 echo $ac_n "checking for remove""... $ac_c" 1>&6
b040e242 12062echo "configure:12063: checking for remove" >&5
698dcdb6
VZ
12063if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12065else
698dcdb6 12066 cat > conftest.$ac_ext <<EOF
b040e242 12067#line 12068 "configure"
ab9b9eab
VZ
12068#include "confdefs.h"
12069/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12070 which can conflict with char remove(); below. */
ab9b9eab
VZ
12071#include <assert.h>
12072/* Override any gcc2 internal prototype to avoid an error. */
12073/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12074 builtin and then its argument prototype would still apply. */
12075char remove();
12076
12077int main() {
ab9b9eab
VZ
12078
12079/* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082#if defined (__stub_remove) || defined (__stub___remove)
12083choke me
12084#else
698dcdb6 12085remove();
ab9b9eab
VZ
12086#endif
12087
698dcdb6
VZ
12088; return 0; }
12089EOF
b040e242 12090if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12091 rm -rf conftest*
12092 eval "ac_cv_func_remove=yes"
12093else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -rf conftest*
12097 eval "ac_cv_func_remove=no"
12098fi
12099rm -f conftest*
12100fi
12101
12102if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12104 :
12105else
12106 echo "$ac_t""no" 1>&6
12107fi
ab9b9eab
VZ
12108
12109 if test $ac_cv_func_remove = no; then
698dcdb6 12110 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b040e242 12111echo "configure:12112: checking for remove in -lposix" >&5
698dcdb6
VZ
12112ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12114 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12115else
698dcdb6 12116 ac_save_LIBS="$LIBS"
ab9b9eab 12117LIBS="-lposix $LIBS"
698dcdb6 12118cat > conftest.$ac_ext <<EOF
b040e242 12119#line 12120 "configure"
ab9b9eab
VZ
12120#include "confdefs.h"
12121/* Override any gcc2 internal prototype to avoid an error. */
12122/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12123 builtin and then its argument prototype would still apply. */
12124char remove();
12125
12126int main() {
12127remove()
12128; return 0; }
12129EOF
b040e242 12130if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12131 rm -rf conftest*
12132 eval "ac_cv_lib_$ac_lib_var=yes"
12133else
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 rm -rf conftest*
12137 eval "ac_cv_lib_$ac_lib_var=no"
12138fi
12139rm -f conftest*
12140LIBS="$ac_save_LIBS"
12141
12142fi
12143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12144 echo "$ac_t""yes" 1>&6
ab9b9eab 12145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
12146else
12147 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12148fi
12149
12150 fi
12151
12152 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 12153 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b040e242 12154echo "configure:12155: checking for shmat" >&5
698dcdb6
VZ
12155if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12157else
698dcdb6 12158 cat > conftest.$ac_ext <<EOF
b040e242 12159#line 12160 "configure"
ab9b9eab
VZ
12160#include "confdefs.h"
12161/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12162 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12163#include <assert.h>
12164/* Override any gcc2 internal prototype to avoid an error. */
12165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12166 builtin and then its argument prototype would still apply. */
12167char shmat();
12168
12169int main() {
ab9b9eab
VZ
12170
12171/* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174#if defined (__stub_shmat) || defined (__stub___shmat)
12175choke me
12176#else
698dcdb6 12177shmat();
ab9b9eab
VZ
12178#endif
12179
698dcdb6
VZ
12180; return 0; }
12181EOF
b040e242 12182if { (eval echo configure:12183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12183 rm -rf conftest*
12184 eval "ac_cv_func_shmat=yes"
12185else
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 rm -rf conftest*
12189 eval "ac_cv_func_shmat=no"
12190fi
12191rm -f conftest*
12192fi
12193
12194if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12195 echo "$ac_t""yes" 1>&6
12196 :
12197else
12198 echo "$ac_t""no" 1>&6
12199fi
ab9b9eab
VZ
12200
12201 if test $ac_cv_func_shmat = no; then
698dcdb6 12202 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b040e242 12203echo "configure:12204: checking for shmat in -lipc" >&5
698dcdb6
VZ
12204ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12207else
698dcdb6 12208 ac_save_LIBS="$LIBS"
ab9b9eab 12209LIBS="-lipc $LIBS"
698dcdb6 12210cat > conftest.$ac_ext <<EOF
b040e242 12211#line 12212 "configure"
ab9b9eab
VZ
12212#include "confdefs.h"
12213/* Override any gcc2 internal prototype to avoid an error. */
12214/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12215 builtin and then its argument prototype would still apply. */
12216char shmat();
12217
12218int main() {
12219shmat()
12220; return 0; }
12221EOF
b040e242 12222if { (eval echo configure:12223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12223 rm -rf conftest*
12224 eval "ac_cv_lib_$ac_lib_var=yes"
12225else
12226 echo "configure: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12228 rm -rf conftest*
12229 eval "ac_cv_lib_$ac_lib_var=no"
12230fi
12231rm -f conftest*
12232LIBS="$ac_save_LIBS"
12233
12234fi
12235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12236 echo "$ac_t""yes" 1>&6
ab9b9eab 12237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12238else
12239 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12240fi
12241
12242 fi
12243 fi
12244
12245 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12246 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12247 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12248 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12249 # check for ICE first), but we must link in the order -lSM -lICE or
12250 # we get undefined symbols. So assume we have SM if we have ICE.
12251 # These have to be linked with before -lX11, unlike the other
12252 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12253 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12254 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b040e242 12255echo "configure:12256: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12256ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12258 echo $ac_n "(cached) $ac_c" 1>&6
12259else
12260 ac_save_LIBS="$LIBS"
ab9b9eab 12261LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12262cat > conftest.$ac_ext <<EOF
b040e242 12263#line 12264 "configure"
ab9b9eab
VZ
12264#include "confdefs.h"
12265/* Override any gcc2 internal prototype to avoid an error. */
12266/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12267 builtin and then its argument prototype would still apply. */
12268char IceConnectionNumber();
12269
12270int main() {
12271IceConnectionNumber()
12272; return 0; }
12273EOF
b040e242 12274if { (eval echo configure:12275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12275 rm -rf conftest*
12276 eval "ac_cv_lib_$ac_lib_var=yes"
12277else
12278 echo "configure: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12280 rm -rf conftest*
12281 eval "ac_cv_lib_$ac_lib_var=no"
12282fi
12283rm -f conftest*
12284LIBS="$ac_save_LIBS"
12285
12286fi
12287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12288 echo "$ac_t""yes" 1>&6
ab9b9eab 12289 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12290else
12291 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12292fi
12293
698dcdb6 12294 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12295
12296fi
12297
12298
1e6feb95
VZ
12299 if test "$no_x" = "yes"; then
12300 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12301 fi
ab9b9eab 12302
1e6feb95
VZ
12303 GUI_TK_LIBRARY="$X_LIBS"
12304 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12305 AFMINSTALL=afminstall
1e6feb95 12306 COMPILED_X_PROGRAM=0
cd6d6d5b 12307
1e6feb95 12308 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b040e242 12309echo "configure:12310: checking for Motif/Lesstif headers" >&5
1e6feb95 12310
ab9b9eab
VZ
12311ac_find_includes=
12312for ac_dir in $SEARCH_INCLUDE;
12313 do
12314 if test -f "$ac_dir/Xm/Xm.h"; then
12315 ac_find_includes=$ac_dir
12316 break
12317 fi
12318 done
12319
1e6feb95
VZ
12320 if test "$ac_find_includes" != "" ; then
12321 echo "$ac_t""found $ac_find_includes" 1>&6
12322 else
12323 cat > conftest.$ac_ext <<EOF
b040e242 12324#line 12325 "configure"
cd6d6d5b
VZ
12325#include "confdefs.h"
12326
1e6feb95
VZ
12327 #include <Xm/Xm.h>
12328
698dcdb6 12329int main() {
cd6d6d5b 12330
1e6feb95 12331 int version;
1e6feb95
VZ
12332 version = xmUseVersion;
12333
698dcdb6
VZ
12334; return 0; }
12335EOF
b040e242 12336if { (eval echo configure:12337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12337 rm -rf conftest*
12338
1e6feb95
VZ
12339 echo "$ac_t""found in default search path" 1>&6
12340 COMPILED_X_PROGRAM=1
12341
cd6d6d5b 12342else
698dcdb6
VZ
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346
1e6feb95
VZ
12347 echo "$ac_t""no" 1>&6
12348 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12349
698dcdb6 12350
cd6d6d5b 12351fi
698dcdb6 12352rm -f conftest*
1e6feb95 12353 fi
ab9b9eab 12354
1e6feb95
VZ
12355 if test "$COMPILED_X_PROGRAM" = 0; then
12356 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b040e242 12357echo "configure:12358: checking for Motif/Lesstif library" >&5
1e6feb95 12358
ab9b9eab
VZ
12359ac_find_libraries=
12360for ac_dir in $SEARCH_LIB;
12361 do
f11bdd03 12362 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12363 if test -f "$ac_dir/libXm.$ac_extension"; then
12364 ac_find_libraries=$ac_dir
12365 break 2
12366 fi
12367 done
12368 done
12369
1e6feb95
VZ
12370 if test "$ac_find_libraries" != "" ; then
12371
ab9b9eab
VZ
12372 ac_path_to_include=$ac_find_includes
12373 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12374 result=$?
12375 if test $result = 0; then
12376 ac_path_to_include=""
12377 else
62d0491b 12378 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
12379 fi
12380
1e6feb95 12381
ab9b9eab
VZ
12382 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12383 result=$?
12384 if test $result = 0; then
12385 ac_path_to_link=""
12386 else
62d0491b 12387 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12388 fi
12389
698dcdb6 12390
62d0491b
RL
12391 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12392 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
12393 echo "$ac_t""found at $ac_find_libraries" 1>&6
12394 else
12395 cat > conftest.$ac_ext <<EOF
b040e242 12396#line 12397 "configure"
cd6d6d5b 12397#include "confdefs.h"
ab9b9eab 12398
1e6feb95
VZ
12399 #include <Xm/Xm.h>
12400
698dcdb6 12401int main() {
ab9b9eab 12402
1e6feb95 12403 int version;
1e6feb95
VZ
12404 version = xmUseVersion;
12405
698dcdb6
VZ
12406; return 0; }
12407EOF
b040e242 12408if { (eval echo configure:12409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12409 rm -rf conftest*
12410
1e6feb95
VZ
12411 echo "$ac_t""found in default search path" 1>&6
12412 COMPILED_X_PROGRAM=1
12413
cd6d6d5b 12414else
698dcdb6
VZ
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12417 rm -rf conftest*
12418
1e6feb95
VZ
12419 echo "$ac_t""no" 1>&6
12420 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12421
698dcdb6 12422
cd6d6d5b 12423fi
698dcdb6 12424rm -f conftest*
1e6feb95 12425 fi
cd6d6d5b 12426 fi
ab9b9eab 12427
3d63bc3a 12428 xpm_link=
1e6feb95 12429 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b040e242 12430echo "configure:12431: checking for Xpm library" >&5
1e6feb95 12431
ab9b9eab
VZ
12432ac_find_libraries=
12433for ac_dir in $SEARCH_LIB;
12434 do
f11bdd03 12435 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12436 if test -f "$ac_dir/libXpm.$ac_extension"; then
12437 ac_find_libraries=$ac_dir
12438 break 2
12439 fi
12440 done
12441 done
12442
1e6feb95
VZ
12443 if test "$ac_find_libraries" != "" ; then
12444
ab9b9eab
VZ
12445 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12446 result=$?
12447 if test $result = 0; then
12448 ac_path_to_link=""
12449 else
62d0491b 12450 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12451 fi
12452
62d0491b 12453 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12454 xpm_link=" -lXpm"
1e6feb95 12455 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12456#define wxHAVE_LIB_XPM 1
12457EOF
12458
1e6feb95
VZ
12459 echo "$ac_t""found at $ac_find_libraries" 1>&6
12460 else
12461 cat > conftest.$ac_ext <<EOF
b040e242 12462#line 12463 "configure"
cd6d6d5b
VZ
12463#include "confdefs.h"
12464
1e6feb95
VZ
12465 #include <X11/xpm.h>
12466
698dcdb6 12467int main() {
cd6d6d5b 12468
1e6feb95 12469 int version;
1e6feb95
VZ
12470 version = XpmLibraryVersion();
12471
698dcdb6
VZ
12472; return 0; }
12473EOF
b040e242 12474if { (eval echo configure:12475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12475 rm -rf conftest*
12476
3d63bc3a 12477 xpm_link=" -lXpm"
3a922bb4 12478 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12479#define wxHAVE_LIB_XPM 1
12480EOF
12481
1e6feb95
VZ
12482 echo "$ac_t""found in default search path" 1>&6
12483 COMPILED_X_PROGRAM=0
12484
cd6d6d5b 12485else
698dcdb6
VZ
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12488 rm -rf conftest*
12489
1e6feb95
VZ
12490 echo "$ac_t""no" 1>&6
12491 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12492
698dcdb6 12493
cd6d6d5b 12494fi
698dcdb6 12495rm -f conftest*
1e6feb95
VZ
12496 fi
12497
3d63bc3a 12498 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 12499 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
12500 TOOLKIT=MOTIF
12501 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
12502 fi
12503
683dccda
GD
12504 if test "$wxUSE_MAC" = 1; then
12505 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 12506 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 12507 fi
3d63bc3a
RL
12508 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12509 CFLAGS="$CFLAGS -fpascal-strings"
12510 CXXFLAGS="$CXXFLAGS -fpascal-strings"
d08b457b 12511
13c0541d 12512 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 12513 TOOLKIT=MAC
683dccda 12514 GUIDIST=MACX_DIST
1e6feb95 12515 fi
10f2d63a 12516
1e6feb95
VZ
12517 if test "$wxUSE_PM" = 1; then
12518 TOOLKIT=PM
12519 GUIDIST=GTK_DIST
12520 fi
b4085ce6 12521
3a922bb4 12522 if test "$TOOLKIT" = "PM" ; then
1e6feb95 12523 TOOLKIT_DIR="os2"
3a922bb4
RL
12524 else
12525 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 12526 fi
e07802fc 12527
3a922bb4 12528 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12529
3a922bb4
RL
12530 if test "$wxUSE_UNIVERSAL" = "yes"; then
12531 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12532 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12533 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12534 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12535 WIDGET_SET=univ
f6bcfd97 12536 else
3a922bb4 12537 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12538 fi
12539
ba0e650c 12540 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12541
f9bc1684 12542 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12543 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12544 fi
12545
12546 if test "$wxUSE_HTML" = "yes"; then
12547 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12548 fi
3fcdd07b 12549
3a922bb4
RL
12550 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12551 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12552 fi
4f14bcd8 12553 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12554 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12555 fi
4f14bcd8 12556 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12557 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12558 fi
4f14bcd8 12559 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12560 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12561 fi
4f14bcd8 12562 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12563 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12564 fi
2224580a 12565
2224580a
VZ
12566 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12567 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12568else
dad6c0ea
VZ
12569 USE_GUI=0
12570
3a922bb4 12571 TOOLKIT_DIR="base"
f6bcfd97 12572
3a922bb4
RL
12573 if test "$USE_WIN32" = 1 ; then
12574 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12575 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12576
3a922bb4 12577 TOOLKIT="MSW"
f6bcfd97 12578 else
3a922bb4
RL
12579 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12580 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12581 fi
12582
831b3152 12583 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12584
12585 GUIDIST="BASE_DIST"
12586 DISTDIR="wxBase"
10f2d63a
VZ
12587fi
12588
4f14bcd8 12589if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12590 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12591fi
4f14bcd8 12592if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12593 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12594fi
10f2d63a 12595
3a922bb4 12596if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12597 if test "$wxUSE_MAC" = 1; then
12598 OPENGL_LIBS="-framework OpenGL -framework AGL"
12599 else
570cb8cb 12600
62d0491b 12601 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12602echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b040e242 12603echo "configure:12604: checking for GL/gl.h" >&5
3a922bb4
RL
12604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606else
12607 cat > conftest.$ac_ext <<EOF
b040e242 12608#line 12609 "configure"
3a922bb4
RL
12609#include "confdefs.h"
12610#include <GL/gl.h>
12611EOF
12612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 12613{ (eval echo configure:12614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12615if test -z "$ac_err"; then
12616 rm -rf conftest*
12617 eval "ac_cv_header_$ac_safe=yes"
12618else
12619 echo "$ac_err" >&5
12620 echo "configure: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 rm -rf conftest*
12623 eval "ac_cv_header_$ac_safe=no"
12624fi
12625rm -f conftest*
12626fi
12627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629
1352efdf 12630 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
b040e242 12631echo "configure:12632: checking for -lGL" >&5
57964555 12632
62d0491b
RL
12633ac_find_libraries=
12634for ac_dir in $SEARCH_LIB;
12635 do
12636 for ac_extension in a so sl dylib; do
12637 if test -f "$ac_dir/libGL.$ac_extension"; then
12638 ac_find_libraries=$ac_dir
12639 break 2
12640 fi
12641 done
12642 done
3a922bb4 12643
62d0491b
RL
12644 if test "$ac_find_libraries" != "" ; then
12645
12646 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12647 result=$?
12648 if test $result = 0; then
12649 ac_path_to_link=""
12650 else
12651 ac_path_to_link=" -L$ac_find_libraries"
12652 fi
3a922bb4 12653
4b6b4dfc
RR
12654 if test "$ac_path_to_link" = " -L/usr/lib" ; then
12655 LDFLAGS_GL="$LDFLAGS"
12656 else
12657 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12658 fi
62d0491b 12659 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12660 echo "$ac_t""yes" 1>&6
62d0491b 12661 else
1352efdf
RL
12662 echo "$ac_t""no" 1>&6
12663 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
b040e242 12664echo "configure:12665: checking for -lMesaGL" >&5
62d0491b
RL
12665
12666ac_find_libraries=
12667for ac_dir in $SEARCH_LIB;
12668 do
12669 for ac_extension in a so sl dylib; do
12670 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12671 ac_find_libraries=$ac_dir
12672 break 2
12673 fi
12674 done
12675 done
3a922bb4 12676
62d0491b 12677 if test "$ac_find_libraries" != "" ; then
57964555 12678
62d0491b
RL
12679 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12680 result=$?
12681 if test $result = 0; then
12682 ac_path_to_link=""
12683 else
12684 ac_path_to_link=" -L$ac_find_libraries"
12685 fi
3a922bb4 12686
62d0491b
RL
12687 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12688 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12689 echo "$ac_t""yes" 1>&6
12690 else
12691 echo "$ac_t""no" 1>&6
62d0491b
RL
12692 fi
12693 fi
12694
3a922bb4
RL
12695else
12696 echo "$ac_t""no" 1>&6
3a922bb4
RL
12697fi
12698
6f754473 12699
62d0491b
RL
12700
12701# AC_CHECK_HEADER(GL/gl.h,
12702# [
12703# AC_CHECK_LIB(GL, glFlush,
12704# [
12705# OPENGL_LIBS="-lGL -lGLU"
12706# ],
12707# [
12708# AC_CHECK_LIB(MesaGL, glFlush,
12709# [
12710# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12711# ],
12712# [],
12713# [-lm])
12714# ],
12715# [-lm])
12716# ])
12717
12718 if test "x$OPENGL_LIBS" = "x"; then
12719 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12720 fi
6f754473 12721 fi
6f754473 12722
62d0491b
RL
12723 if test "$wxUSE_OPENGL" = "yes"; then
12724 cat >> confdefs.h <<\EOF
6f754473
VZ
12725#define wxUSE_OPENGL 1
12726EOF
12727
62d0491b 12728 cat >> confdefs.h <<\EOF
6f754473
VZ
12729#define wxUSE_GLCANVAS 1
12730EOF
12731
62d0491b
RL
12732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12733 fi
3a922bb4
RL
12734fi
12735
12736if test -z "$TOOLKIT_VPATH" ; then
12737 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12738fi
12739
12740if test -n "$TOOLKIT" ; then
12741 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12742fi
12743
f676c7ff
MB
12744lib_unicode_suffix=
12745if test "$wxUSE_UNICODE" = "yes"; then
12746 lib_unicode_suffix=u
12747fi
12748
3a922bb4
RL
12749lib_debug_suffix=
12750if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12751 lib_debug_suffix=d
3a922bb4
RL
12752fi
12753
f676c7ff
MB
12754TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12755TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12756
12757if test "$cross_compiling" = "yes"; then
12758 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12759 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12760fi
12761
12762WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12763WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12764
3a922bb4
RL
12765WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12766WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12767
12768WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12769WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12770WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12771WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12772
d08b457b 12773WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12774WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12775
978f1259
RL
12776case "${host}" in
12777 *-*-cygwin* | *-*-mingw32* )
12778
2da4f892 12779
978f1259
RL
12780
12781 if test "$cross_compiling" != "yes"; then
12782 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12783 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12784 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12785 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12786 else
12787 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12788 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12789 fi
12790
12791esac
12792
12793WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12794WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12795
12796WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12797WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12798
12799if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12800 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12801 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12802fi
12803
12804
3a922bb4
RL
12805
12806if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12807
12808 if test "$wxUSE_OPENGL" = "yes"; then
12809 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12810 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12811 else
12812 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12813 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12814 fi
12815
dd4f7467 12816 if test "$GCC" = "yes"; then
55e80573 12817 PIC_FLAG="-fPIC"
dd4f7467 12818 fi
55e80573
VZ
12819
12820 SHARED_LD="${CXX} -shared -o"
698dcdb6 12821
10f2d63a
VZ
12822 case "${host}" in
12823 *-hp-hpux* )
d569ea8d
GD
12824 if test "$GCC" == "yes"; then
12825 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12826 else
3d63bc3a 12827 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12828
10f2d63a
VZ
12829 SHARED_LD="${CXX} -b -o"
12830 PIC_FLAG="+Z"
12831 fi
55e80573 12832
7b7a7637
RL
12833 if test "$wxUSE_OPENGL" = "yes"; then
12834 WX_ALL_INSTALLED="preinstall_gl"
12835 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12836 else
12837 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12838 fi
10f2d63a 12839 ;;
b12915c1 12840
55e80573
VZ
12841 *-*-linux* )
12842 if test "$GCC" != "yes"; then
12843 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
b040e242 12844echo "configure:12845: checking for Intel compiler" >&5
55e80573
VZ
12845if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12846 echo $ac_n "(cached) $ac_c" 1>&6
12847else
12848
12849 cat > conftest.$ac_ext <<EOF
b040e242 12850#line 12851 "configure"
55e80573
VZ
12851#include "confdefs.h"
12852
12853int main() {
12854
12855 #ifndef __INTEL_COMPILER
dd4f7467 12856 #error Not icc
55e80573
VZ
12857 #endif
12858
12859; return 0; }
12860EOF
b040e242 12861if { (eval echo configure:12862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12862 rm -rf conftest*
12863 wx_cv_prog_icc=yes
12864else
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 rm -rf conftest*
12868 wx_cv_prog_icc=no
12869
12870fi
12871rm -f conftest*
12872
12873fi
12874
12875echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12876 if test "$wx_cv_prog_icc" = "yes"; then
12877 PIC_FLAG="-KPIC"
12878 fi
12879 fi
12880
3a922bb4
RL
12881 if test "$wxUSE_SONAME" = "yes" ; then
12882 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12883 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12884 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12885 fi
10f2d63a 12886 ;;
55e80573 12887
10f2d63a
VZ
12888 *-*-solaris2* )
12889 if test "$GCC" = yes ; then
f6bcfd97 12890 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12891 else
12892 SHARED_LD="${CXX} -G -o"
12893 PIC_FLAG="-KPIC"
7b7a7637 12894 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 12895 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12896 fi
10f2d63a 12897 ;;
55e80573 12898
b4085ce6 12899 *-*-darwin* )
156b2523
GD
12900 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12901 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12902 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12903 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12904 ;;
55e80573 12905
10f2d63a
VZ
12906 *-*-aix* )
12907 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12908 ;;
55e80573 12909
7b7a7637 12910 *-*-cygwin* | *-*-mingw32* )
77e13408 12911
2da4f892 12912 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12913
77e13408 12914 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12915 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12916
12917 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12918
12919 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12920 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12921 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12922 else
978f1259 12923 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12924 fi
10f2d63a 12925 ;;
55e80573 12926
6fa882bd 12927 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12928 wxUSE_SHARED=no
10f2d63a 12929 ;;
55e80573 12930
b12915c1 12931 *-*-beos* )
e2b8b066 12932 SHARED_LD="${LD} -shared -o"
b12915c1 12933 ;;
55e80573
VZ
12934
12935 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12936 *-*-sunos4* | \
12937 *-*-irix5* | *-*-irix6* | \
12938 *-*-osf* | \
12939 *-*-dgux5* | \
12940 *-*-sysv5* )
12941 ;;
12942
10f2d63a 12943 *)
7b7a7637 12944 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12945 esac
12946
12947 if test "x$WX_TARGET_LIBRARY" = "x"; then
12948 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12949 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12950 fi
55e80573 12951
3711412e 12952 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12953 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12954fi
f6bcfd97 12955
3a922bb4 12956if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12957
3a922bb4 12958 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12959 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12960 fi
12961
6fa882bd
RR
12962 if test "$wxUSE_MAC" = 1; then
12963 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12964 fi
12965
3a922bb4
RL
12966 if test "$wxUSE_OPENGL" = "yes"; then
12967 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12968 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12969 else
12970 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12971 fi
698dcdb6 12972
3a922bb4
RL
12973 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12974 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12975
12976 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12977 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12978fi
10f2d63a 12979
d08b457b
GD
12980if test "$wxUSE_MAC" = 1; then
12981 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12982 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12983 # Extract the first word of "Rez", so it can be a program name with args.
12984set dummy Rez; ac_word=$2
12985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 12986echo "configure:12987: checking for $ac_word" >&5
d08b457b
GD
12987if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12988 echo $ac_n "(cached) $ac_c" 1>&6
12989else
12990 if test -n "$RESCOMP"; then
12991 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12992else
12993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12994 ac_dummy="$PATH"
12995 for ac_dir in $ac_dummy; do
12996 test -z "$ac_dir" && ac_dir=.
12997 if test -f $ac_dir/$ac_word; then
12998 ac_cv_prog_RESCOMP="Rez"
12999 break
13000 fi
13001 done
13002 IFS="$ac_save_ifs"
13003 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13004fi
13005fi
13006RESCOMP="$ac_cv_prog_RESCOMP"
13007if test -n "$RESCOMP"; then
13008 echo "$ac_t""$RESCOMP" 1>&6
13009else
13010 echo "$ac_t""no" 1>&6
13011fi
13012
9f8148b1
GD
13013 # Extract the first word of "DeRez", so it can be a program name with args.
13014set dummy DeRez; ac_word=$2
d08b457b 13015echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b040e242 13016echo "configure:13017: checking for $ac_word" >&5
d08b457b
GD
13017if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13019else
13020 if test -n "$DEREZ"; then
13021 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13022else
13023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13024 ac_dummy="$PATH"
13025 for ac_dir in $ac_dummy; do
13026 test -z "$ac_dir" && ac_dir=.
13027 if test -f $ac_dir/$ac_word; then
9f8148b1 13028 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13029 break
13030 fi
13031 done
13032 IFS="$ac_save_ifs"
9f8148b1 13033 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13034fi
13035fi
13036DEREZ="$ac_cv_prog_DEREZ"
13037if test -n "$DEREZ"; then
13038 echo "$ac_t""$DEREZ" 1>&6
13039else
13040 echo "$ac_t""no" 1>&6
13041fi
13042
13043 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13044 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 13045 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
13046fi
13047
3a922bb4 13048
13c0541d
GD
13049if test "$wxUSE_MAC" != 1; then
13050 for ac_hdr in strings.h
9cfadba2 13051do
698dcdb6
VZ
13052ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13053echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13054echo "configure:13055: checking for $ac_hdr" >&5
698dcdb6
VZ
13055if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057else
13058 cat > conftest.$ac_ext <<EOF
b040e242 13059#line 13060 "configure"
9cfadba2 13060#include "confdefs.h"
698dcdb6
VZ
13061#include <$ac_hdr>
13062EOF
13063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13064{ (eval echo configure:13065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13066if test -z "$ac_err"; then
13067 rm -rf conftest*
13068 eval "ac_cv_header_$ac_safe=yes"
6232543b 13069else
698dcdb6
VZ
13070 echo "$ac_err" >&5
13071 echo "configure: failed program was:" >&5
9cfadba2 13072 cat conftest.$ac_ext >&5
698dcdb6
VZ
13073 rm -rf conftest*
13074 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13075fi
698dcdb6 13076rm -f conftest*
9cfadba2 13077fi
698dcdb6
VZ
13078if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13079 echo "$ac_t""yes" 1>&6
13080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13081 cat >> confdefs.h <<EOF
13082#define $ac_tr_hdr 1
9cfadba2 13083EOF
698dcdb6
VZ
13084
13085else
13086 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13087fi
13088done
10f2d63a 13089
13c0541d
GD
13090fi
13091
3a922bb4 13092for ac_hdr in stdlib.h
10f2d63a 13093do
698dcdb6
VZ
13094ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13095echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13096echo "configure:13097: checking for $ac_hdr" >&5
698dcdb6
VZ
13097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13098 echo $ac_n "(cached) $ac_c" 1>&6
13099else
13100 cat > conftest.$ac_ext <<EOF
b040e242 13101#line 13102 "configure"
10f2d63a 13102#include "confdefs.h"
698dcdb6
VZ
13103#include <$ac_hdr>
13104EOF
13105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13106{ (eval echo configure:13107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13108if test -z "$ac_err"; then
13109 rm -rf conftest*
13110 eval "ac_cv_header_$ac_safe=yes"
6232543b 13111else
698dcdb6
VZ
13112 echo "$ac_err" >&5
13113 echo "configure: failed program was:" >&5
10f2d63a 13114 cat conftest.$ac_ext >&5
698dcdb6
VZ
13115 rm -rf conftest*
13116 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13117fi
698dcdb6 13118rm -f conftest*
10f2d63a 13119fi
698dcdb6
VZ
13120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13121 echo "$ac_t""yes" 1>&6
13122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13123 cat >> confdefs.h <<EOF
13124#define $ac_tr_hdr 1
10f2d63a 13125EOF
698dcdb6
VZ
13126
13127else
13128 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13129fi
13130done
13131
9f8148b1 13132for ac_hdr in malloc.h
10f2d63a 13133do
698dcdb6
VZ
13134ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13135echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13136echo "configure:13137: checking for $ac_hdr" >&5
698dcdb6
VZ
13137if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13139else
13140 cat > conftest.$ac_ext <<EOF
b040e242 13141#line 13142 "configure"
10f2d63a 13142#include "confdefs.h"
698dcdb6
VZ
13143#include <$ac_hdr>
13144EOF
13145ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13146{ (eval echo configure:13147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13147ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13148if test -z "$ac_err"; then
13149 rm -rf conftest*
13150 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13151else
698dcdb6
VZ
13152 echo "$ac_err" >&5
13153 echo "configure: failed program was:" >&5
6f72b082 13154 cat conftest.$ac_ext >&5
698dcdb6
VZ
13155 rm -rf conftest*
13156 eval "ac_cv_header_$ac_safe=no"
6f72b082 13157fi
698dcdb6 13158rm -f conftest*
6f72b082 13159fi
698dcdb6
VZ
13160if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13161 echo "$ac_t""yes" 1>&6
13162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13163 cat >> confdefs.h <<EOF
13164#define $ac_tr_hdr 1
6f72b082 13165EOF
698dcdb6
VZ
13166
13167else
13168 echo "$ac_t""no" 1>&6
6f72b082
OK
13169fi
13170done
13171
9f8148b1 13172for ac_hdr in unistd.h
6f72b082 13173do
698dcdb6
VZ
13174ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13175echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13176echo "configure:13177: checking for $ac_hdr" >&5
698dcdb6
VZ
13177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13178 echo $ac_n "(cached) $ac_c" 1>&6
13179else
13180 cat > conftest.$ac_ext <<EOF
b040e242 13181#line 13182 "configure"
6f72b082 13182#include "confdefs.h"
698dcdb6
VZ
13183#include <$ac_hdr>
13184EOF
13185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13186{ (eval echo configure:13187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13188if test -z "$ac_err"; then
13189 rm -rf conftest*
13190 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13191else
698dcdb6
VZ
13192 echo "$ac_err" >&5
13193 echo "configure: failed program was:" >&5
6f72b082 13194 cat conftest.$ac_ext >&5
698dcdb6
VZ
13195 rm -rf conftest*
13196 eval "ac_cv_header_$ac_safe=no"
6f72b082 13197fi
698dcdb6 13198rm -f conftest*
6f72b082 13199fi
698dcdb6
VZ
13200if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13201 echo "$ac_t""yes" 1>&6
13202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13203 cat >> confdefs.h <<EOF
13204#define $ac_tr_hdr 1
6f72b082 13205EOF
698dcdb6
VZ
13206
13207else
13208 echo "$ac_t""no" 1>&6
6f72b082
OK
13209fi
13210done
13211
9f8148b1 13212for ac_hdr in wchar.h
6f72b082 13213do
698dcdb6
VZ
13214ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13215echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13216echo "configure:13217: checking for $ac_hdr" >&5
698dcdb6
VZ
13217if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13219else
13220 cat > conftest.$ac_ext <<EOF
b040e242 13221#line 13222 "configure"
6f72b082 13222#include "confdefs.h"
698dcdb6
VZ
13223#include <$ac_hdr>
13224EOF
13225ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13226{ (eval echo configure:13227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13227ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13228if test -z "$ac_err"; then
13229 rm -rf conftest*
13230 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13231else
698dcdb6
VZ
13232 echo "$ac_err" >&5
13233 echo "configure: failed program was:" >&5
10f2d63a 13234 cat conftest.$ac_ext >&5
698dcdb6
VZ
13235 rm -rf conftest*
13236 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13237fi
698dcdb6 13238rm -f conftest*
10f2d63a 13239fi
698dcdb6
VZ
13240if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13243 cat >> confdefs.h <<EOF
13244#define $ac_tr_hdr 1
10f2d63a 13245EOF
698dcdb6
VZ
13246
13247else
13248 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13249fi
13250done
13251
9f8148b1 13252for ac_hdr in wcstr.h
0fb0dd83 13253do
698dcdb6
VZ
13254ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13255echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13256echo "configure:13257: checking for $ac_hdr" >&5
698dcdb6
VZ
13257if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13258 echo $ac_n "(cached) $ac_c" 1>&6
13259else
13260 cat > conftest.$ac_ext <<EOF
b040e242 13261#line 13262 "configure"
0fb0dd83 13262#include "confdefs.h"
698dcdb6
VZ
13263#include <$ac_hdr>
13264EOF
13265ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13266{ (eval echo configure:13267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13267ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13268if test -z "$ac_err"; then
13269 rm -rf conftest*
13270 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13271else
698dcdb6
VZ
13272 echo "$ac_err" >&5
13273 echo "configure: failed program was:" >&5
0fb0dd83 13274 cat conftest.$ac_ext >&5
698dcdb6
VZ
13275 rm -rf conftest*
13276 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13277fi
698dcdb6 13278rm -f conftest*
0fb0dd83 13279fi
698dcdb6
VZ
13280if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13281 echo "$ac_t""yes" 1>&6
13282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13283 cat >> confdefs.h <<EOF
13284#define $ac_tr_hdr 1
0fb0dd83 13285EOF
698dcdb6
VZ
13286
13287else
13288 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13289fi
13290done
13291
9f8148b1 13292for ac_hdr in wctype.h
1f8ae82f 13293do
698dcdb6
VZ
13294ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13295echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13296echo "configure:13297: checking for $ac_hdr" >&5
698dcdb6
VZ
13297if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13298 echo $ac_n "(cached) $ac_c" 1>&6
13299else
13300 cat > conftest.$ac_ext <<EOF
b040e242 13301#line 13302 "configure"
1f8ae82f 13302#include "confdefs.h"
698dcdb6
VZ
13303#include <$ac_hdr>
13304EOF
13305ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13306{ (eval echo configure:13307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13307ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13308if test -z "$ac_err"; then
13309 rm -rf conftest*
13310 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 13311else
698dcdb6
VZ
13312 echo "$ac_err" >&5
13313 echo "configure: failed program was:" >&5
1f8ae82f 13314 cat conftest.$ac_ext >&5
698dcdb6
VZ
13315 rm -rf conftest*
13316 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 13317fi
698dcdb6 13318rm -f conftest*
1f8ae82f 13319fi
698dcdb6
VZ
13320if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13323 cat >> confdefs.h <<EOF
13324#define $ac_tr_hdr 1
1f8ae82f 13325EOF
698dcdb6
VZ
13326
13327else
13328 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13329fi
13330done
13331
9f8148b1 13332for ac_hdr in fnmatch.h
10f2d63a 13333do
698dcdb6
VZ
13334ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13335echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13336echo "configure:13337: checking for $ac_hdr" >&5
0fbb762e
MB
13337if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339else
13340 cat > conftest.$ac_ext <<EOF
b040e242 13341#line 13342 "configure"
0fbb762e
MB
13342#include "confdefs.h"
13343#include <$ac_hdr>
13344EOF
13345ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13346{ (eval echo configure:13347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13347ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13348if test -z "$ac_err"; then
13349 rm -rf conftest*
13350 eval "ac_cv_header_$ac_safe=yes"
13351else
13352 echo "$ac_err" >&5
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 rm -rf conftest*
13356 eval "ac_cv_header_$ac_safe=no"
13357fi
13358rm -f conftest*
13359fi
13360if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13361 echo "$ac_t""yes" 1>&6
13362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13363 cat >> confdefs.h <<EOF
13364#define $ac_tr_hdr 1
13365EOF
13366
13367else
13368 echo "$ac_t""no" 1>&6
13369fi
13370done
13371
9f8148b1
GD
13372for ac_hdr in langinfo.h
13373do
13374ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13375echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13376echo "configure:13377: checking for $ac_hdr" >&5
9f8148b1
GD
13377if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13378 echo $ac_n "(cached) $ac_c" 1>&6
13379else
13380 cat > conftest.$ac_ext <<EOF
b040e242 13381#line 13382 "configure"
9f8148b1
GD
13382#include "confdefs.h"
13383#include <$ac_hdr>
13384EOF
13385ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13386{ (eval echo configure:13387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13387ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13388if test -z "$ac_err"; then
13389 rm -rf conftest*
13390 eval "ac_cv_header_$ac_safe=yes"
13391else
13392 echo "$ac_err" >&5
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 rm -rf conftest*
13396 eval "ac_cv_header_$ac_safe=no"
13397fi
13398rm -f conftest*
13399fi
13400if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13401 echo "$ac_t""yes" 1>&6
13402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13403 cat >> confdefs.h <<EOF
13404#define $ac_tr_hdr 1
13405EOF
13406
13407else
13408 echo "$ac_t""no" 1>&6
13409fi
13410done
13411
10f2d63a 13412
3a922bb4
RL
13413if test "$wxUSE_GUI" = "yes"; then
13414 if test "$wxUSE_UNIX" = "yes"; then
13415 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
13416do
13417ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13418echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 13419echo "configure:13420: checking for $ac_hdr" >&5
29fd3c0c
VS
13420if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13421 echo $ac_n "(cached) $ac_c" 1>&6
13422else
13423 cat > conftest.$ac_ext <<EOF
b040e242 13424#line 13425 "configure"
29fd3c0c
VS
13425#include "confdefs.h"
13426#include <$ac_hdr>
13427EOF
13428ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13429{ (eval echo configure:13430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
13430ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13431if test -z "$ac_err"; then
13432 rm -rf conftest*
13433 eval "ac_cv_header_$ac_safe=yes"
13434else
13435 echo "$ac_err" >&5
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439 eval "ac_cv_header_$ac_safe=no"
13440fi
13441rm -f conftest*
13442fi
13443if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13444 echo "$ac_t""yes" 1>&6
13445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13446 cat >> confdefs.h <<EOF
13447#define $ac_tr_hdr 1
13448EOF
13449
13450else
13451 echo "$ac_t""no" 1>&6
13452fi
13453done
13454
3a922bb4 13455 fi
29fd3c0c
VS
13456fi
13457
698dcdb6
VZ
13458
13459echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b040e242 13460echo "configure:13461: checking for ANSI C header files" >&5
698dcdb6
VZ
13461if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13462 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13463else
698dcdb6 13464 cat > conftest.$ac_ext <<EOF
b040e242 13465#line 13466 "configure"
10f2d63a
VZ
13466#include "confdefs.h"
13467#include <stdlib.h>
13468#include <stdarg.h>
13469#include <string.h>
13470#include <float.h>
698dcdb6
VZ
13471EOF
13472ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 13473{ (eval echo configure:13474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13474ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13475if test -z "$ac_err"; then
13476 rm -rf conftest*
10f2d63a
VZ
13477 ac_cv_header_stdc=yes
13478else
698dcdb6
VZ
13479 echo "$ac_err" >&5
13480 echo "configure: failed program was:" >&5
10f2d63a 13481 cat conftest.$ac_ext >&5
698dcdb6 13482 rm -rf conftest*
10f2d63a
VZ
13483 ac_cv_header_stdc=no
13484fi
698dcdb6 13485rm -f conftest*
10f2d63a
VZ
13486
13487if test $ac_cv_header_stdc = yes; then
13488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 13489cat > conftest.$ac_ext <<EOF
b040e242 13490#line 13491 "configure"
10f2d63a
VZ
13491#include "confdefs.h"
13492#include <string.h>
698dcdb6 13493EOF
10f2d63a
VZ
13494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13495 egrep "memchr" >/dev/null 2>&1; then
13496 :
13497else
698dcdb6 13498 rm -rf conftest*
10f2d63a
VZ
13499 ac_cv_header_stdc=no
13500fi
13501rm -f conftest*
13502
13503fi
13504
13505if test $ac_cv_header_stdc = yes; then
13506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13507cat > conftest.$ac_ext <<EOF
b040e242 13508#line 13509 "configure"
10f2d63a
VZ
13509#include "confdefs.h"
13510#include <stdlib.h>
698dcdb6 13511EOF
10f2d63a
VZ
13512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13513 egrep "free" >/dev/null 2>&1; then
13514 :
13515else
698dcdb6 13516 rm -rf conftest*
10f2d63a
VZ
13517 ac_cv_header_stdc=no
13518fi
13519rm -f conftest*
13520
13521fi
13522
13523if test $ac_cv_header_stdc = yes; then
13524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13525if test "$cross_compiling" = yes; then
10f2d63a
VZ
13526 :
13527else
698dcdb6 13528 cat > conftest.$ac_ext <<EOF
b040e242 13529#line 13530 "configure"
10f2d63a
VZ
13530#include "confdefs.h"
13531#include <ctype.h>
698dcdb6
VZ
13532#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13533#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13535int main () { int i; for (i = 0; i < 256; i++)
13536if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13537exit (0); }
13538
13539EOF
b040e242 13540if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13541then
10f2d63a
VZ
13542 :
13543else
698dcdb6
VZ
13544 echo "configure: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 rm -fr conftest*
13547 ac_cv_header_stdc=no
10f2d63a 13548fi
698dcdb6 13549rm -fr conftest*
10f2d63a 13550fi
698dcdb6 13551
10f2d63a
VZ
13552fi
13553fi
1e487827 13554
698dcdb6
VZ
13555echo "$ac_t""$ac_cv_header_stdc" 1>&6
13556if test $ac_cv_header_stdc = yes; then
13557 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13558#define STDC_HEADERS 1
13559EOF
13560
13561fi
13562
698dcdb6 13563echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b040e242 13564echo "configure:13565: checking for mode_t" >&5
698dcdb6
VZ
13565if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13567else
698dcdb6 13568 cat > conftest.$ac_ext <<EOF
b040e242 13569#line 13570 "configure"
1e487827 13570#include "confdefs.h"
698dcdb6
VZ
13571#include <sys/types.h>
13572#if STDC_HEADERS
13573#include <stdlib.h>
13574#include <stddef.h>
13575#endif
13576EOF
13577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13578 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13579 rm -rf conftest*
10f2d63a
VZ
13580 ac_cv_type_mode_t=yes
13581else
698dcdb6
VZ
13582 rm -rf conftest*
13583 ac_cv_type_mode_t=no
703e0a69 13584fi
698dcdb6 13585rm -f conftest*
1e487827 13586
698dcdb6
VZ
13587fi
13588echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13589if test $ac_cv_type_mode_t = no; then
13590 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13591#define mode_t int
13592EOF
13593
13594fi
13595
698dcdb6 13596echo $ac_n "checking for off_t""... $ac_c" 1>&6
b040e242 13597echo "configure:13598: checking for off_t" >&5
698dcdb6
VZ
13598if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13600else
698dcdb6 13601 cat > conftest.$ac_ext <<EOF
b040e242 13602#line 13603 "configure"
10f2d63a 13603#include "confdefs.h"
698dcdb6
VZ
13604#include <sys/types.h>
13605#if STDC_HEADERS
13606#include <stdlib.h>
13607#include <stddef.h>
13608#endif
13609EOF
13610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13612 rm -rf conftest*
10f2d63a
VZ
13613 ac_cv_type_off_t=yes
13614else
698dcdb6
VZ
13615 rm -rf conftest*
13616 ac_cv_type_off_t=no
703e0a69 13617fi
698dcdb6 13618rm -f conftest*
1e487827 13619
698dcdb6
VZ
13620fi
13621echo "$ac_t""$ac_cv_type_off_t" 1>&6
13622if test $ac_cv_type_off_t = no; then
13623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13624#define off_t long
13625EOF
13626
13627fi
13628
698dcdb6 13629echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b040e242 13630echo "configure:13631: checking for pid_t" >&5
698dcdb6
VZ
13631if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13633else
698dcdb6 13634 cat > conftest.$ac_ext <<EOF
b040e242 13635#line 13636 "configure"
10f2d63a 13636#include "confdefs.h"
698dcdb6
VZ
13637#include <sys/types.h>
13638#if STDC_HEADERS
13639#include <stdlib.h>
13640#include <stddef.h>
13641#endif
13642EOF
13643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13644 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13645 rm -rf conftest*
10f2d63a
VZ
13646 ac_cv_type_pid_t=yes
13647else
698dcdb6
VZ
13648 rm -rf conftest*
13649 ac_cv_type_pid_t=no
703e0a69 13650fi
698dcdb6 13651rm -f conftest*
1e487827 13652
698dcdb6
VZ
13653fi
13654echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13655if test $ac_cv_type_pid_t = no; then
13656 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13657#define pid_t int
13658EOF
13659
13660fi
13661
698dcdb6 13662echo $ac_n "checking for size_t""... $ac_c" 1>&6
b040e242 13663echo "configure:13664: checking for size_t" >&5
698dcdb6
VZ
13664if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13666else
698dcdb6 13667 cat > conftest.$ac_ext <<EOF
b040e242 13668#line 13669 "configure"
10f2d63a 13669#include "confdefs.h"
698dcdb6
VZ
13670#include <sys/types.h>
13671#if STDC_HEADERS
13672#include <stdlib.h>
13673#include <stddef.h>
13674#endif
13675EOF
13676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13677 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13678 rm -rf conftest*
10f2d63a
VZ
13679 ac_cv_type_size_t=yes
13680else
698dcdb6
VZ
13681 rm -rf conftest*
13682 ac_cv_type_size_t=no
703e0a69 13683fi
698dcdb6 13684rm -f conftest*
1e487827 13685
698dcdb6
VZ
13686fi
13687echo "$ac_t""$ac_cv_type_size_t" 1>&6
13688if test $ac_cv_type_size_t = no; then
13689 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13690#define size_t unsigned
13691EOF
13692
13693fi
13694
698dcdb6 13695echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b040e242 13696echo "configure:13697: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13697if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13698 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13699else
698dcdb6 13700 cat > conftest.$ac_ext <<EOF
b040e242 13701#line 13702 "configure"
10f2d63a
VZ
13702#include "confdefs.h"
13703#include <sys/types.h>
698dcdb6 13704EOF
10f2d63a
VZ
13705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13707 rm -rf conftest*
10f2d63a
VZ
13708 ac_cv_type_uid_t=yes
13709else
698dcdb6 13710 rm -rf conftest*
10f2d63a
VZ
13711 ac_cv_type_uid_t=no
13712fi
13713rm -f conftest*
13714
13715fi
1e487827 13716
698dcdb6
VZ
13717echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13718if test $ac_cv_type_uid_t = no; then
13719 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13720#define uid_t int
13721EOF
13722
698dcdb6 13723 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13724#define gid_t int
13725EOF
13726
13727fi
13728
1e487827 13729
698dcdb6 13730echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
b040e242 13731echo "configure:13732: checking for wchar_t" >&5
698dcdb6
VZ
13732if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13734else
13735
13736 cat > conftest.$ac_ext <<EOF
b040e242 13737#line 13738 "configure"
0046ff7c 13738#include "confdefs.h"
4b42290e
GD
13739
13740 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13741 # ifdef __CYGWIN__
13742 # include <stddef.h>
13743 # endif
4b42290e
GD
13744 # include <wchar.h>
13745 #endif
13746 #ifdef HAVE_STDLIB_H
13747 # include <stdlib.h>
13748 #endif
13749
698dcdb6 13750int main() {
0046ff7c 13751
d836ee96
VZ
13752 wchar_t wc, *ws;
13753 wc = L'a';
13754 ws = L"Hello, world!";
698dcdb6
VZ
13755
13756; return 0; }
13757EOF
b040e242 13758if { (eval echo configure:13759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13759 rm -rf conftest*
1f8ae82f 13760 wx_cv_type_wchar_t=yes
0046ff7c 13761else
698dcdb6
VZ
13762 echo "configure: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13764 rm -rf conftest*
13765 wx_cv_type_wchar_t=no
d836ee96 13766
6232543b 13767fi
698dcdb6 13768rm -f conftest*
703e0a69 13769
1e487827 13770fi
698dcdb6
VZ
13771
13772echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13773
13774if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13775 cat >> confdefs.h <<\EOF
0046ff7c
VS
13776#define wxUSE_WCHAR_T 1
13777EOF
13778
13779fi
13780
19af3b06
VZ
13781
13782ac_ext=C
13783# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13784ac_cpp='$CXXCPP $CPPFLAGS'
13785ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13786ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13787cross_compiling=$ac_cv_prog_cxx_cross
13788
d836ee96 13789echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
b040e242 13790echo "configure:13791: checking if size_t is unsigned int" >&5
d836ee96
VZ
13791if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
13793else
dd2c8b7c 13794 cat > conftest.$ac_ext <<EOF
b040e242 13795#line 13796 "configure"
d836ee96
VZ
13796#include "confdefs.h"
13797#include <stddef.h>
13798int main() {
13799
dd2c8b7c
VZ
13800 return 0; }
13801
d836ee96 13802 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13803
13804 int bar() {
d836ee96
VZ
13805
13806; return 0; }
13807EOF
b040e242 13808if { (eval echo configure:13809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13809 rm -rf conftest*
13810 wx_cv_size_t_is_uint=no
13811else
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 rm -rf conftest*
13815 wx_cv_size_t_is_uint=yes
13816
13817fi
13818rm -f conftest*
13819
13820fi
13821
13822echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13823
13824if test "$wx_cv_size_t_is_uint" = "yes"; then
13825 cat >> confdefs.h <<\EOF
13826#define wxSIZE_T_IS_UINT 1
13827EOF
13828
13829else
13830 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
b040e242 13831echo "configure:13832: checking if size_t is unsigned long" >&5
d836ee96
VZ
13832if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13833 echo $ac_n "(cached) $ac_c" 1>&6
13834else
13835 cat > conftest.$ac_ext <<EOF
b040e242 13836#line 13837 "configure"
d836ee96
VZ
13837#include "confdefs.h"
13838#include <stddef.h>
13839int main() {
13840
dd2c8b7c
VZ
13841 return 0; }
13842
d836ee96 13843 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13844
13845 int bar() {
d836ee96
VZ
13846
13847; return 0; }
13848EOF
b040e242 13849if { (eval echo configure:13850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13850 rm -rf conftest*
13851 wx_cv_size_t_is_ulong=no
13852else
13853 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 rm -rf conftest*
13856 wx_cv_size_t_is_ulong=yes
13857
13858fi
13859rm -f conftest*
13860
13861fi
13862
13863echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13864
13865 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13866 cat >> confdefs.h <<\EOF
13867#define wxSIZE_T_IS_ULONG 1
13868EOF
13869
13870 fi
13871fi
13872
19af3b06
VZ
13873ac_ext=c
13874# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13875ac_cpp='$CPP $CPPFLAGS'
13876ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13877ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13878cross_compiling=$ac_cv_prog_cc_cross
13879
13880
1e487827 13881
698dcdb6 13882echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
b040e242 13883echo "configure:13884: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13884if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13886else
13887
13888 cat > conftest.$ac_ext <<EOF
b040e242 13889#line 13890 "configure"
b12915c1
VZ
13890#include "confdefs.h"
13891#include <pwd.h>
698dcdb6 13892int main() {
b12915c1
VZ
13893
13894 char *p;
13895 struct passwd *pw;
13896 p = pw->pw_gecos;
698dcdb6
VZ
13897
13898; return 0; }
13899EOF
b040e242 13900if { (eval echo configure:13901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13901 rm -rf conftest*
13902
b12915c1 13903 wx_cv_struct_pw_gecos=yes
698dcdb6 13904
b12915c1 13905else
698dcdb6
VZ
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13908 rm -rf conftest*
13909
b12915c1 13910 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13911
13912
6232543b 13913fi
698dcdb6
VZ
13914rm -f conftest*
13915
703e0a69 13916
1e487827 13917fi
698dcdb6
VZ
13918
13919echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13920
bd3277fe 13921if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13922 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13923#define HAVE_PW_GECOS 1
13924EOF
13925
13926fi
13927
698dcdb6
VZ
13928
13929echo $ac_n "checking for working const""... $ac_c" 1>&6
b040e242 13930echo "configure:13931: checking for working const" >&5
698dcdb6
VZ
13931if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13932 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13933else
698dcdb6 13934 cat > conftest.$ac_ext <<EOF
b040e242 13935#line 13936 "configure"
10f2d63a 13936#include "confdefs.h"
698dcdb6
VZ
13937
13938int main() {
13939
13940/* Ultrix mips cc rejects this. */
4cdb0ab0 13941typedef int charset[2]; const charset x;
698dcdb6
VZ
13942/* SunOS 4.1.1 cc rejects this. */
13943char const *const *ccp;
13944char **p;
13945/* NEC SVR4.0.2 mips cc rejects this. */
13946struct point {int x, y;};
13947static struct point const zero = {0,0};
13948/* AIX XL C 1.02.0.0 rejects this.
13949 It does not let you subtract one const X* pointer from another in an arm
13950 of an if-expression whose if-part is not a constant expression */
13951const char *g = "string";
13952ccp = &g + (g ? g-g : 0);
13953/* HPUX 7.0 cc rejects these. */
13954++ccp;
13955p = (char**) ccp;
13956ccp = (char const *const *) p;
13957{ /* SCO 3.2v4 cc rejects this. */
13958 char *t;
13959 char const *s = 0 ? (char *) 0 : (char const *) 0;
13960
13961 *t++ = 0;
10f2d63a 13962}
698dcdb6
VZ
13963{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13964 int x[] = {25, 17};
13965 const int *foo = &x[0];
13966 ++foo;
703e0a69 13967}
698dcdb6
VZ
13968{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13969 typedef const int *iptr;
13970 iptr p = 0;
13971 ++p;
6232543b 13972}
698dcdb6
VZ
13973{ /* AIX XL C 1.02.0.0 rejects this saying
13974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13975 struct s { int j; const int *ap[3]; };
13976 struct s *b; b->j = 5;
1e487827 13977}
698dcdb6
VZ
13978{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13979 const int foo = 10;
13980}
4f14bcd8
GD
13981
13982; return 0; }
698dcdb6 13983EOF
b040e242 13984if { (eval echo configure:13985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13985 rm -rf conftest*
13986 ac_cv_c_const=yes
698dcdb6
VZ
13987else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
4f14bcd8
GD
13990 rm -rf conftest*
13991 ac_cv_c_const=no
703e0a69 13992fi
4f14bcd8 13993rm -f conftest*
698dcdb6
VZ
13994fi
13995
4f14bcd8
GD
13996echo "$ac_t""$ac_cv_c_const" 1>&6
13997if test $ac_cv_c_const = no; then
13998 cat >> confdefs.h <<\EOF
13999#define const
698dcdb6
VZ
14000EOF
14001
4f14bcd8 14002fi
698dcdb6 14003
4f14bcd8 14004echo $ac_n "checking for inline""... $ac_c" 1>&6
b040e242 14005echo "configure:14006: checking for inline" >&5
4f14bcd8 14006if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14007 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14008else
4f14bcd8
GD
14009 ac_cv_c_inline=no
14010for ac_kw in inline __inline__ __inline; do
698dcdb6 14011 cat > conftest.$ac_ext <<EOF
b040e242 14012#line 14013 "configure"
10f2d63a 14013#include "confdefs.h"
4f14bcd8
GD
14014
14015int main() {
4cdb0ab0 14016} $ac_kw foo() {
4f14bcd8 14017; return 0; }
698dcdb6 14018EOF
b040e242 14019if { (eval echo configure:14020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14020 rm -rf conftest*
14021 ac_cv_c_inline=$ac_kw; break
10f2d63a 14022else
698dcdb6
VZ
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
10f2d63a 14025fi
4f14bcd8
GD
14026rm -f conftest*
14027done
698dcdb6 14028
10f2d63a 14029fi
4f14bcd8
GD
14030
14031echo "$ac_t""$ac_cv_c_inline" 1>&6
14032case "$ac_cv_c_inline" in
14033 inline | yes) ;;
14034 no) cat >> confdefs.h <<\EOF
14035#define inline
14036EOF
14037 ;;
14038 *) cat >> confdefs.h <<EOF
14039#define inline $ac_cv_c_inline
698dcdb6 14040EOF
4f14bcd8
GD
14041 ;;
14042esac
698dcdb6
VZ
14043
14044
4f14bcd8 14045echo $ac_n "checking size of char""... $ac_c" 1>&6
b040e242 14046echo "configure:14047: checking size of char" >&5
4f14bcd8 14047if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14048 echo $ac_n "(cached) $ac_c" 1>&6
14049else
14050 if test "$cross_compiling" = yes; then
4f14bcd8 14051 ac_cv_sizeof_char=1
698dcdb6
VZ
14052else
14053 cat > conftest.$ac_ext <<EOF
b040e242 14054#line 14055 "configure"
698dcdb6
VZ
14055#include "confdefs.h"
14056#include <stdio.h>
14057main()
14058{
14059 FILE *f=fopen("conftestval", "w");
14060 if (!f) exit(1);
4f14bcd8 14061 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
14062 exit(0);
14063}
14064EOF
b040e242 14065if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14066then
4f14bcd8 14067 ac_cv_sizeof_char=`cat conftestval`
6232543b 14068else
698dcdb6
VZ
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -fr conftest*
4f14bcd8 14072 ac_cv_sizeof_char=0
6232543b 14073fi
698dcdb6
VZ
14074rm -fr conftest*
14075fi
14076
703e0a69 14077fi
4f14bcd8 14078echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14079cat >> confdefs.h <<EOF
4f14bcd8 14080#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14081EOF
14082
1e487827 14083
4f14bcd8 14084echo $ac_n "checking size of short""... $ac_c" 1>&6
b040e242 14085echo "configure:14086: checking size of short" >&5
4f14bcd8 14086if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14087 echo $ac_n "(cached) $ac_c" 1>&6
14088else
4f14bcd8
GD
14089 if test "$cross_compiling" = yes; then
14090 ac_cv_sizeof_short=2
b93d0d08 14091else
698dcdb6 14092 cat > conftest.$ac_ext <<EOF
b040e242 14093#line 14094 "configure"
b93d0d08 14094#include "confdefs.h"
4f14bcd8
GD
14095#include <stdio.h>
14096main()
14097{
14098 FILE *f=fopen("conftestval", "w");
14099 if (!f) exit(1);
14100 fprintf(f, "%d\n", sizeof(short));
14101 exit(0);
14102}
698dcdb6 14103EOF
b040e242 14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14105then
4f14bcd8 14106 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14107else
698dcdb6
VZ
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -fr conftest*
4f14bcd8 14111 ac_cv_sizeof_short=0
b93d0d08 14112fi
698dcdb6 14113rm -fr conftest*
b93d0d08
VS
14114fi
14115
b93d0d08 14116fi
4f14bcd8 14117echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14118cat >> confdefs.h <<EOF
4f14bcd8 14119#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14120EOF
14121
698dcdb6 14122
4f14bcd8 14123echo $ac_n "checking size of int *""... $ac_c" 1>&6
b040e242 14124echo "configure:14125: checking size of int *" >&5
4f14bcd8 14125if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14126 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14127else
4f14bcd8
GD
14128 if test "$cross_compiling" = yes; then
14129 ac_cv_sizeof_int_p=4
3a922bb4 14130else
3a922bb4 14131 cat > conftest.$ac_ext <<EOF
b040e242 14132#line 14133 "configure"
3a922bb4 14133#include "confdefs.h"
4f14bcd8
GD
14134#include <stdio.h>
14135main()
14136{
14137 FILE *f=fopen("conftestval", "w");
14138 if (!f) exit(1);
14139 fprintf(f, "%d\n", sizeof(int *));
14140 exit(0);
14141}
14142EOF
b040e242 14143if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14144then
14145 ac_cv_sizeof_int_p=`cat conftestval`
14146else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -fr conftest*
14150 ac_cv_sizeof_int_p=0
3a922bb4 14151fi
4f14bcd8 14152rm -fr conftest*
3a922bb4 14153fi
698dcdb6 14154
4f14bcd8
GD
14155fi
14156echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14157cat >> confdefs.h <<EOF
14158#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14159EOF
14160
703e0a69 14161
4f14bcd8 14162echo $ac_n "checking size of int""... $ac_c" 1>&6
b040e242 14163echo "configure:14164: checking size of int" >&5
4f14bcd8 14164if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14165 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14166else
14167 if test "$cross_compiling" = yes; then
14168 ac_cv_sizeof_int=4
698dcdb6
VZ
14169else
14170 cat > conftest.$ac_ext <<EOF
b040e242 14171#line 14172 "configure"
10f2d63a 14172#include "confdefs.h"
4f14bcd8
GD
14173#include <stdio.h>
14174main()
14175{
14176 FILE *f=fopen("conftestval", "w");
14177 if (!f) exit(1);
14178 fprintf(f, "%d\n", sizeof(int));
14179 exit(0);
14180}
698dcdb6 14181EOF
b040e242 14182if { (eval echo configure:14183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14183then
14184 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14185else
698dcdb6 14186 echo "configure: failed program was:" >&5
10f2d63a 14187 cat conftest.$ac_ext >&5
4f14bcd8
GD
14188 rm -fr conftest*
14189 ac_cv_sizeof_int=0
10f2d63a 14190fi
4f14bcd8 14191rm -fr conftest*
10f2d63a 14192fi
10f2d63a 14193
4f14bcd8
GD
14194fi
14195echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14196cat >> confdefs.h <<EOF
14197#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14198EOF
14199
698dcdb6 14200
4f14bcd8 14201echo $ac_n "checking size of long""... $ac_c" 1>&6
b040e242 14202echo "configure:14203: checking size of long" >&5
4f14bcd8 14203if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14204 echo $ac_n "(cached) $ac_c" 1>&6
14205else
4f14bcd8
GD
14206 if test "$cross_compiling" = yes; then
14207 ac_cv_sizeof_long=4
14208else
14209 cat > conftest.$ac_ext <<EOF
b040e242 14210#line 14211 "configure"
10f2d63a 14211#include "confdefs.h"
4f14bcd8
GD
14212#include <stdio.h>
14213main()
14214{
14215 FILE *f=fopen("conftestval", "w");
14216 if (!f) exit(1);
14217 fprintf(f, "%d\n", sizeof(long));
14218 exit(0);
14219}
698dcdb6 14220EOF
b040e242 14221if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14222then
14223 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14224else
698dcdb6
VZ
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
4f14bcd8
GD
14227 rm -fr conftest*
14228 ac_cv_sizeof_long=0
10f2d63a 14229fi
4f14bcd8 14230rm -fr conftest*
10f2d63a 14231fi
698dcdb6 14232
4f14bcd8
GD
14233fi
14234echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14235cat >> confdefs.h <<EOF
14236#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14237EOF
14238
698dcdb6 14239
4f14bcd8 14240echo $ac_n "checking size of long long""... $ac_c" 1>&6
b040e242 14241echo "configure:14242: checking size of long long" >&5
4f14bcd8 14242if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14243 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14244else
4f14bcd8
GD
14245 if test "$cross_compiling" = yes; then
14246 ac_cv_sizeof_long_long=0
14247else
14248 cat > conftest.$ac_ext <<EOF
b040e242 14249#line 14250 "configure"
10f2d63a 14250#include "confdefs.h"
4f14bcd8
GD
14251#include <stdio.h>
14252main()
14253{
14254 FILE *f=fopen("conftestval", "w");
14255 if (!f) exit(1);
14256 fprintf(f, "%d\n", sizeof(long long));
14257 exit(0);
14258}
698dcdb6 14259EOF
b040e242 14260if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14261then
14262 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14263else
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
4f14bcd8
GD
14266 rm -fr conftest*
14267 ac_cv_sizeof_long_long=0
14268fi
14269rm -fr conftest*
698dcdb6 14270fi
698dcdb6
VZ
14271
14272fi
4f14bcd8
GD
14273echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14274cat >> confdefs.h <<EOF
14275#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14276EOF
14277
10f2d63a 14278
4f14bcd8
GD
14279
14280echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b040e242 14281echo "configure:14282: checking size of wchar_t" >&5
4f14bcd8 14282if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14283 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14284else
4f14bcd8
GD
14285
14286 if test "$cross_compiling" = yes; then
14287 wx_cv_sizeof_wchar_t=4
14288
14289else
14290 cat > conftest.$ac_ext <<EOF
b040e242 14291#line 14292 "configure"
10f2d63a 14292#include "confdefs.h"
698dcdb6 14293
4f14bcd8 14294 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14295 # ifdef __CYGWIN__
14296 # include <stddef.h>
14297 # endif
4f14bcd8
GD
14298 # include <wchar.h>
14299 #endif
14300 #ifdef HAVE_STDLIB_H
14301 # include <stdlib.h>
14302 #endif
14303 #include <stdio.h>
14304 int main()
14305 {
14306 FILE *f=fopen("conftestval", "w");
14307 if (!f) exit(1);
14308 fprintf(f, "%i", sizeof(wchar_t));
14309 exit(0);
14310 }
14311
698dcdb6 14312EOF
b040e242 14313if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14314then
14315 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14316else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
4f14bcd8
GD
14319 rm -fr conftest*
14320 wx_cv_sizeof_wchar_t=0
698dcdb6 14321fi
4f14bcd8
GD
14322rm -fr conftest*
14323fi
14324
698dcdb6
VZ
14325
14326fi
4f14bcd8
GD
14327
14328echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14329
14330cat >> confdefs.h <<EOF
14331#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14332EOF
14333
18dbb1f6 14334
4f14bcd8 14335echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b040e242 14336echo "configure:14337: checking whether byte ordering is bigendian" >&5
4f14bcd8 14337if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14338 echo $ac_n "(cached) $ac_c" 1>&6
14339else
4f14bcd8
GD
14340 ac_cv_c_bigendian=unknown
14341# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14342cat > conftest.$ac_ext <<EOF
b040e242 14343#line 14344 "configure"
18dbb1f6 14344#include "confdefs.h"
4f14bcd8
GD
14345#include <sys/types.h>
14346#include <sys/param.h>
14347int main() {
18dbb1f6 14348
4f14bcd8
GD
14349#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14350 bogus endian macros
14351#endif
14352; return 0; }
14353EOF
b040e242 14354if { (eval echo configure:14355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14355 rm -rf conftest*
14356 # It does; now see whether it defined to BIG_ENDIAN or not.
14357cat > conftest.$ac_ext <<EOF
b040e242 14358#line 14359 "configure"
4f14bcd8
GD
14359#include "confdefs.h"
14360#include <sys/types.h>
14361#include <sys/param.h>
18dbb1f6 14362int main() {
4f14bcd8
GD
14363
14364#if BYTE_ORDER != BIG_ENDIAN
14365 not big endian
14366#endif
18dbb1f6
VZ
14367; return 0; }
14368EOF
b040e242 14369if { (eval echo configure:14370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14370 rm -rf conftest*
4f14bcd8 14371 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14372else
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 rm -rf conftest*
4f14bcd8 14376 ac_cv_c_bigendian=no
18dbb1f6
VZ
14377fi
14378rm -f conftest*
698dcdb6 14379else
4f14bcd8
GD
14380 echo "configure: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
1e487827 14382fi
4f14bcd8
GD
14383rm -f conftest*
14384if test $ac_cv_c_bigendian = unknown; then
14385if test "$cross_compiling" = yes; then
14386 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14387else
14388 cat > conftest.$ac_ext <<EOF
b040e242 14389#line 14390 "configure"
b3e8d00a 14390#include "confdefs.h"
4f14bcd8
GD
14391main () {
14392 /* Are we little or big endian? From Harbison&Steele. */
14393 union
14394 {
14395 long l;
14396 char c[sizeof (long)];
14397 } u;
14398 u.l = 1;
14399 exit (u.c[sizeof (long) - 1] == 1);
14400}
b3e8d00a 14401EOF
b040e242 14402if { (eval echo configure:14403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14403then
14404 ac_cv_c_bigendian=no
b3e8d00a
VZ
14405else
14406 echo "configure: failed program was:" >&5
14407 cat conftest.$ac_ext >&5
4f14bcd8
GD
14408 rm -fr conftest*
14409 ac_cv_c_bigendian=yes
b3e8d00a 14410fi
4f14bcd8 14411rm -fr conftest*
b3e8d00a
VZ
14412fi
14413
4f14bcd8
GD
14414fi
14415fi
14416
14417echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14418if test $ac_cv_c_bigendian = unknown; then
14419 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
14420fi
14421if test $ac_cv_c_bigendian = yes; then
14422 cat >> confdefs.h <<\EOF
14423#define WORDS_BIGENDIAN 1
b3e8d00a 14424EOF
4f14bcd8 14425
b3e8d00a 14426fi
b3e8d00a
VZ
14427
14428
4f14bcd8 14429echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b040e242 14430echo "configure:14431: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
14431if test -z "$CXXCPP"; then
14432if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
14433 echo $ac_n "(cached) $ac_c" 1>&6
14434else
4f14bcd8
GD
14435 ac_ext=C
14436# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14437ac_cpp='$CXXCPP $CPPFLAGS'
14438ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14439ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14440cross_compiling=$ac_cv_prog_cxx_cross
14441 CXXCPP="${CXX-g++} -E"
698dcdb6 14442 cat > conftest.$ac_ext <<EOF
b040e242 14443#line 14444 "configure"
10f2d63a 14444#include "confdefs.h"
4f14bcd8 14445#include <stdlib.h>
698dcdb6 14446EOF
4f14bcd8 14447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 14448{ (eval echo configure:14449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14450if test -z "$ac_err"; then
14451 :
698dcdb6 14452else
4f14bcd8 14453 echo "$ac_err" >&5
698dcdb6
VZ
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14456 rm -rf conftest*
4f14bcd8 14457 CXXCPP=/lib/cpp
698dcdb6
VZ
14458fi
14459rm -f conftest*
4f14bcd8
GD
14460 ac_cv_prog_CXXCPP="$CXXCPP"
14461ac_ext=C
14462# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14463ac_cpp='$CXXCPP $CPPFLAGS'
14464ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14465ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14466cross_compiling=$ac_cv_prog_cxx_cross
14467fi
698dcdb6 14468fi
4f14bcd8
GD
14469CXXCPP="$ac_cv_prog_CXXCPP"
14470echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 14471
4f14bcd8
GD
14472
14473 if test "$cross_compiling" = "yes"; then
14474 cat >> confdefs.h <<\EOF
14475#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
14476EOF
14477
4f14bcd8
GD
14478 else
14479
14480 ac_ext=C
14481# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14482ac_cpp='$CXXCPP $CPPFLAGS'
14483ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14484ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14485cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 14486
4f14bcd8
GD
14487
14488 for ac_hdr in iostream
14489do
14490ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14491echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 14492echo "configure:14493: checking for $ac_hdr" >&5
4f14bcd8 14493if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14494 echo $ac_n "(cached) $ac_c" 1>&6
14495else
14496 cat > conftest.$ac_ext <<EOF
b040e242 14497#line 14498 "configure"
10f2d63a 14498#include "confdefs.h"
4f14bcd8 14499#include <$ac_hdr>
698dcdb6 14500EOF
4f14bcd8 14501ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 14502{ (eval echo configure:14503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14503ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14504if test -z "$ac_err"; then
698dcdb6 14505 rm -rf conftest*
4f14bcd8 14506 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14507else
4f14bcd8 14508 echo "$ac_err" >&5
698dcdb6
VZ
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
4f14bcd8 14512 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14513fi
14514rm -f conftest*
14515fi
4f14bcd8 14516if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14517 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14519 cat >> confdefs.h <<EOF
14520#define $ac_tr_hdr 1
10f2d63a 14521EOF
4f14bcd8 14522
698dcdb6
VZ
14523else
14524 echo "$ac_t""no" 1>&6
10f2d63a 14525fi
4f14bcd8 14526done
10f2d63a 14527
10f2d63a 14528
4f14bcd8
GD
14529 if test "$ac_cv_header_iostream" = "yes" ; then
14530 :
14531 else
14532 cat >> confdefs.h <<\EOF
14533#define wxUSE_IOSTREAMH 1
14534EOF
14535
14536 fi
1e487827 14537
4f14bcd8
GD
14538 ac_ext=c
14539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14540ac_cpp='$CPP $CPPFLAGS'
14541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14543cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14544
4f14bcd8 14545 fi
698dcdb6
VZ
14546
14547
14548
4f14bcd8 14549 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b040e242 14550echo "configure:14551: checking if C++ compiler supports bool" >&5
4f14bcd8 14551if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553else
14554
4f14bcd8
GD
14555
14556 ac_ext=C
14557# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14558ac_cpp='$CXXCPP $CPPFLAGS'
14559ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14560ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14561cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14562
10f2d63a 14563
4f14bcd8 14564 cat > conftest.$ac_ext <<EOF
b040e242 14565#line 14566 "configure"
4f14bcd8 14566#include "confdefs.h"
10f2d63a 14567
4f14bcd8
GD
14568
14569int main() {
f6bcfd97 14570
4f14bcd8 14571 bool b = true;
f6bcfd97 14572
4f14bcd8
GD
14573 return 0;
14574
698dcdb6
VZ
14575; return 0; }
14576EOF
b040e242 14577if { (eval echo configure:14578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14578 rm -rf conftest*
14579
4f14bcd8
GD
14580 wx_cv_cpp_bool=yes
14581
10f2d63a 14582else
698dcdb6
VZ
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586
4f14bcd8
GD
14587 wx_cv_cpp_bool=no
14588
14589
14590fi
14591rm -f conftest*
c521c494 14592
4f14bcd8
GD
14593 ac_ext=c
14594# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14595ac_cpp='$CPP $CPPFLAGS'
14596ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14597ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14598cross_compiling=$ac_cv_prog_cc_cross
c521c494 14599
4f14bcd8
GD
14600
14601fi
c521c494 14602
4f14bcd8 14603echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14604
4f14bcd8
GD
14605 if test "$wx_cv_cpp_bool" = "yes"; then
14606 cat >> confdefs.h <<\EOF
14607#define HAVE_BOOL 1
14608EOF
c521c494 14609
4f14bcd8
GD
14610 fi
14611
14612
14613
14614echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
b040e242 14615echo "configure:14616: checking for wcslen in -lc" >&5
4f14bcd8
GD
14616ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14619else
14620 ac_save_LIBS="$LIBS"
14621LIBS="-lc $LIBS"
14622cat > conftest.$ac_ext <<EOF
b040e242 14623#line 14624 "configure"
4f14bcd8
GD
14624#include "confdefs.h"
14625/* Override any gcc2 internal prototype to avoid an error. */
14626/* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628char wcslen();
14629
14630int main() {
14631wcslen()
698dcdb6
VZ
14632; return 0; }
14633EOF
b040e242 14634if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14635 rm -rf conftest*
4f14bcd8 14636 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14637else
698dcdb6
VZ
14638 echo "configure: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 rm -rf conftest*
4f14bcd8 14641 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14642fi
698dcdb6 14643rm -f conftest*
4f14bcd8 14644LIBS="$ac_save_LIBS"
703e0a69 14645
1e487827 14646fi
4f14bcd8
GD
14647if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649
14650 cat >> confdefs.h <<\EOF
14651#define HAVE_WCSLEN 1
9d8deca0
VZ
14652EOF
14653
3d63bc3a 14654 WCHAR_LINK=
4f14bcd8 14655
9d8deca0 14656else
4f14bcd8 14657 echo "$ac_t""no" 1>&6
9d8deca0 14658
4f14bcd8 14659 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b040e242 14660echo "configure:14661: checking for wcslen in -lw" >&5
4f14bcd8
GD
14661ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14662if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14663 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14664else
4f14bcd8
GD
14665 ac_save_LIBS="$LIBS"
14666LIBS="-lw $LIBS"
14667cat > conftest.$ac_ext <<EOF
b040e242 14668#line 14669 "configure"
10f2d63a 14669#include "confdefs.h"
4f14bcd8
GD
14670/* Override any gcc2 internal prototype to avoid an error. */
14671/* We use char because int might match the return type of a gcc2
14672 builtin and then its argument prototype would still apply. */
14673char wcslen();
10f2d63a 14674
698dcdb6 14675int main() {
4f14bcd8 14676wcslen()
698dcdb6
VZ
14677; return 0; }
14678EOF
b040e242 14679if { (eval echo configure:14680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14680 rm -rf conftest*
4f14bcd8 14681 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14682else
698dcdb6
VZ
14683 echo "configure: failed program was:" >&5
14684 cat conftest.$ac_ext >&5
14685 rm -rf conftest*
4f14bcd8 14686 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14687fi
698dcdb6 14688rm -f conftest*
4f14bcd8 14689LIBS="$ac_save_LIBS"
703e0a69 14690
1e487827 14691fi
4f14bcd8
GD
14692if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14693 echo "$ac_t""yes" 1>&6
14694
14695 cat >> confdefs.h <<\EOF
14696#define HAVE_WCSLEN 1
9d8deca0
VZ
14697EOF
14698
3d63bc3a 14699 WCHAR_LINK=" -lw"
4f14bcd8
GD
14700
14701else
14702 echo "$ac_t""no" 1>&6
698dcdb6 14703
4f14bcd8 14704 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
b040e242 14705echo "configure:14706: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14706ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14708 echo $ac_n "(cached) $ac_c" 1>&6
14709else
4f14bcd8
GD
14710 ac_save_LIBS="$LIBS"
14711LIBS="-lmsvcrt $LIBS"
14712cat > conftest.$ac_ext <<EOF
b040e242 14713#line 14714 "configure"
95c8801c 14714#include "confdefs.h"
4f14bcd8
GD
14715/* Override any gcc2 internal prototype to avoid an error. */
14716/* We use char because int might match the return type of a gcc2
14717 builtin and then its argument prototype would still apply. */
14718char wcslen();
95c8801c 14719
4f14bcd8
GD
14720int main() {
14721wcslen()
698dcdb6
VZ
14722; return 0; }
14723EOF
b040e242 14724if { (eval echo configure:14725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14725 rm -rf conftest*
4f14bcd8 14726 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14727else
698dcdb6
VZ
14728 echo "configure: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14730 rm -rf conftest*
4f14bcd8 14731 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14732fi
698dcdb6 14733rm -f conftest*
4f14bcd8 14734LIBS="$ac_save_LIBS"
95c8801c
VS
14735
14736fi
4f14bcd8
GD
14737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14738 echo "$ac_t""yes" 1>&6
14739
14740 cat >> confdefs.h <<\EOF
14741#define HAVE_WCSLEN 1
14742EOF
698dcdb6 14743
3d63bc3a 14744 WCHAR_LINK=
4f14bcd8
GD
14745
14746else
14747 echo "$ac_t""no" 1>&6
14748fi
10f2d63a 14749
4f14bcd8
GD
14750
14751fi
95c8801c 14752
4f14bcd8 14753
95c8801c 14754fi
10f2d63a 14755
1e487827 14756
4f14bcd8 14757for ac_func in wcsrtombs
eb4efbdc 14758do
698dcdb6 14759echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 14760echo "configure:14761: checking for $ac_func" >&5
698dcdb6
VZ
14761if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14762 echo $ac_n "(cached) $ac_c" 1>&6
14763else
14764 cat > conftest.$ac_ext <<EOF
b040e242 14765#line 14766 "configure"
eb4efbdc
VZ
14766#include "confdefs.h"
14767/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14768 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14769#include <assert.h>
14770/* Override any gcc2 internal prototype to avoid an error. */
14771/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14772 builtin and then its argument prototype would still apply. */
14773char $ac_func();
14774
14775int main() {
eb4efbdc
VZ
14776
14777/* The GNU C library defines this for functions which it implements
14778 to always fail with ENOSYS. Some functions are actually named
14779 something starting with __ and the normal name is an alias. */
14780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14781choke me
14782#else
698dcdb6 14783$ac_func();
eb4efbdc
VZ
14784#endif
14785
698dcdb6 14786; return 0; }
eb4efbdc 14787EOF
b040e242 14788if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14789 rm -rf conftest*
14790 eval "ac_cv_func_$ac_func=yes"
14791else
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14794 rm -rf conftest*
14795 eval "ac_cv_func_$ac_func=no"
14796fi
14797rm -f conftest*
14798fi
eb4efbdc 14799
698dcdb6
VZ
14800if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14801 echo "$ac_t""yes" 1>&6
14802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14803 cat >> confdefs.h <<EOF
14804#define $ac_tr_func 1
14805EOF
14806
14807else
14808 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14809fi
14810done
14811
698dcdb6 14812
4f14bcd8 14813echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b040e242 14814echo "configure:14815: checking for vprintf" >&5
4f14bcd8 14815if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14816 echo $ac_n "(cached) $ac_c" 1>&6
14817else
4f14bcd8 14818 cat > conftest.$ac_ext <<EOF
b040e242 14819#line 14820 "configure"
f6bcfd97 14820#include "confdefs.h"
4f14bcd8
GD
14821/* System header to define __stub macros and hopefully few prototypes,
14822 which can conflict with char vprintf(); below. */
14823#include <assert.h>
14824/* Override any gcc2 internal prototype to avoid an error. */
14825/* We use char because int might match the return type of a gcc2
14826 builtin and then its argument prototype would still apply. */
14827char vprintf();
14828
698dcdb6 14829int main() {
f6bcfd97 14830
4f14bcd8
GD
14831/* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834#if defined (__stub_vprintf) || defined (__stub___vprintf)
14835choke me
14836#else
14837vprintf();
14838#endif
f6bcfd97 14839
698dcdb6
VZ
14840; return 0; }
14841EOF
b040e242 14842if { (eval echo configure:14843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14843 rm -rf conftest*
4f14bcd8 14844 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14845else
698dcdb6
VZ
14846 echo "configure: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14848 rm -rf conftest*
4f14bcd8 14849 eval "ac_cv_func_vprintf=no"
6232543b 14850fi
698dcdb6 14851rm -f conftest*
1e487827 14852fi
698dcdb6 14853
4f14bcd8
GD
14854if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
14856 cat >> confdefs.h <<\EOF
14857#define HAVE_VPRINTF 1
f6bcfd97
BP
14858EOF
14859
4f14bcd8
GD
14860else
14861 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14862fi
14863
4f14bcd8
GD
14864if test "$ac_cv_func_vprintf" != yes; then
14865echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b040e242 14866echo "configure:14867: checking for _doprnt" >&5
4f14bcd8 14867if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14868 echo $ac_n "(cached) $ac_c" 1>&6
14869else
14870 cat > conftest.$ac_ext <<EOF
b040e242 14871#line 14872 "configure"
10f2d63a
VZ
14872#include "confdefs.h"
14873/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14874 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14875#include <assert.h>
14876/* Override any gcc2 internal prototype to avoid an error. */
14877/* We use char because int might match the return type of a gcc2
698dcdb6 14878 builtin and then its argument prototype would still apply. */
4f14bcd8 14879char _doprnt();
698dcdb6
VZ
14880
14881int main() {
10f2d63a
VZ
14882
14883/* The GNU C library defines this for functions which it implements
14884 to always fail with ENOSYS. Some functions are actually named
14885 something starting with __ and the normal name is an alias. */
4f14bcd8 14886#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14887choke me
14888#else
4f14bcd8 14889_doprnt();
10f2d63a
VZ
14890#endif
14891
698dcdb6 14892; return 0; }
10f2d63a 14893EOF
b040e242 14894if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14895 rm -rf conftest*
4f14bcd8 14896 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14897else
14898 echo "configure: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14900 rm -rf conftest*
4f14bcd8 14901 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14902fi
14903rm -f conftest*
14904fi
270a909e 14905
4f14bcd8 14906if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14907 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14908 cat >> confdefs.h <<\EOF
14909#define HAVE_DOPRNT 1
698dcdb6 14910EOF
4f14bcd8 14911
698dcdb6
VZ
14912else
14913 echo "$ac_t""no" 1>&6
270a909e 14914fi
270a909e 14915
4f14bcd8 14916fi
1e487827 14917
52e8b690 14918
52e8b690 14919
52e8b690 14920
52e8b690 14921
52e8b690 14922
4f14bcd8 14923echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
b040e242 14924echo "configure:14925: checking for vsnprintf" >&5
4f14bcd8 14925if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14926 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14927else
4f14bcd8 14928
af15babd 14929 cat > conftest.$ac_ext <<EOF
b040e242 14930#line 14931 "configure"
c63c7106 14931#include "confdefs.h"
698dcdb6 14932
4f14bcd8
GD
14933 #include <stdio.h>
14934 #include <stdarg.h>
14935
af15babd
VZ
14936int main() {
14937
4f14bcd8
GD
14938 int wx_test_vsnprintf(const char *, ...);
14939
14940 wx_test_vsnprintf("%s");
14941 return 0;
14942 }
14943
14944 int wx_test_vsnprintf(const char *fmt, ...)
14945 {
14946 char *s;
14947
14948 va_list argp;
14949 va_start(argp, fmt);
14950 vsnprintf(s, 42, fmt, argp);
14951 va_end(argp);
14952
af15babd
VZ
14953; return 0; }
14954EOF
b040e242 14955if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14956 rm -rf conftest*
14957
4f14bcd8
GD
14958 wx_cv_func_vsnprintf=yes
14959
af15babd
VZ
14960else
14961 echo "configure: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14963 rm -rf conftest*
14964
4f14bcd8 14965 cat > conftest.$ac_ext <<EOF
b040e242 14966#line 14967 "configure"
af15babd 14967#include "confdefs.h"
af15babd 14968
4f14bcd8
GD
14969 #include <stdio.h>
14970 #include <stdarg.h>
14971
af15babd
VZ
14972int main() {
14973
4f14bcd8
GD
14974 int wx_test_vsnprintf(const char *, ...);
14975
14976 wx_test_vsnprintf("%s");
14977 return 0;
14978 }
14979
14980 int wx_test_vsnprintf(const char *fmt, ...)
14981 {
14982 char *s;
af15babd 14983
4f14bcd8
GD
14984 va_list argp;
14985 va_start(argp, fmt);
14986 _vsnprintf(s, 42, fmt, argp);
14987 va_end(argp);
14988
af15babd
VZ
14989; return 0; }
14990EOF
b040e242 14991if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14992 rm -rf conftest*
4f14bcd8
GD
14993
14994 wx_cv_func_vsnprintf=yes
14995
af15babd
VZ
14996else
14997 echo "configure: failed program was:" >&5
14998 cat conftest.$ac_ext >&5
14999 rm -rf conftest*
4f14bcd8
GD
15000
15001 wx_cv_func_vsnprintf=no
15002
af15babd
VZ
15003fi
15004rm -f conftest*
4f14bcd8 15005
af15babd 15006fi
4f14bcd8 15007rm -f conftest*
af15babd 15008
af15babd 15009fi
af15babd 15010
4f14bcd8 15011echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15012
4f14bcd8
GD
15013if test "$wx_cv_func_vsnprintf" = yes; then
15014 cat >> confdefs.h <<\EOF
15015#define HAVE_VSNPRINTF 1
15016EOF
15017
15018else
f9bc1684 15019 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15020fi
15021
4f14bcd8 15022echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b040e242 15023echo "configure:15024: checking for vsscanf" >&5
4f14bcd8 15024if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15025 echo $ac_n "(cached) $ac_c" 1>&6
15026else
4f14bcd8 15027
af15babd 15028 cat > conftest.$ac_ext <<EOF
b040e242 15029#line 15030 "configure"
af15babd 15030#include "confdefs.h"
af15babd 15031
4f14bcd8
GD
15032 #include <stdio.h>
15033 #include <stdarg.h>
15034
af15babd
VZ
15035int main() {
15036
4f14bcd8
GD
15037 int wx_test_vsscanf(const char *, ...);
15038
15039 wx_test_vsscanf("%d");
15040 return 0;
15041 }
af15babd 15042
4f14bcd8
GD
15043 int wx_test_vsscanf(const char *fmt, ...)
15044 {
15045 va_list argp;
15046 va_start(argp, fmt);
15047 vsscanf("42", fmt, argp);
15048 va_end(argp);
15049
af15babd
VZ
15050; return 0; }
15051EOF
b040e242 15052if { (eval echo configure:15053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15053 rm -rf conftest*
4f14bcd8
GD
15054
15055 wx_cv_func_vsscanf=yes
15056
af15babd
VZ
15057else
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 rm -rf conftest*
4f14bcd8
GD
15061
15062 wx_cv_func_vsscanf=no
15063
af15babd
VZ
15064fi
15065rm -f conftest*
4f14bcd8 15066
af15babd
VZ
15067fi
15068
4f14bcd8
GD
15069echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15070
15071if test "$wx_cv_func_vsscanf" = yes; then
15072 cat >> confdefs.h <<\EOF
15073#define HAVE_VSSCANF 1
af15babd 15074EOF
4f14bcd8 15075
af15babd 15076fi
af15babd 15077
4f14bcd8 15078if test "$TOOLKIT" != "MSW"; then
af15babd 15079
4f14bcd8
GD
15080
15081
15082ac_ext=C
15083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15084ac_cpp='$CXXCPP $CPPFLAGS'
15085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15087cross_compiling=$ac_cv_prog_cxx_cross
15088
b040e242
VS
15089
15090
15091 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15092if test "${with_libiconv_prefix+set}" = set; then
15093 withval="$with_libiconv_prefix"
15094
15095 for dir in `echo "$withval" | tr : ' '`; do
15096 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15097 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15098 done
15099
15100fi
15101
15102
15103 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15104echo "configure:15105: checking for iconv" >&5
15105if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107else
4f14bcd8 15108
b040e242
VS
15109 am_cv_func_iconv="no, consider installing GNU libiconv"
15110 am_cv_lib_iconv=no
4f14bcd8 15111 cat > conftest.$ac_ext <<EOF
b040e242 15112#line 15113 "configure"
af15babd 15113#include "confdefs.h"
b040e242 15114#include <stdlib.h>
4f14bcd8 15115#include <iconv.h>
af15babd 15116int main() {
b040e242
VS
15117iconv_t cd = iconv_open("","");
15118 iconv(cd,NULL,NULL,NULL,NULL);
15119 iconv_close(cd);
af15babd
VZ
15120; return 0; }
15121EOF
b040e242 15122if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15123 rm -rf conftest*
b040e242 15124 am_cv_func_iconv=yes
af15babd
VZ
15125else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
b040e242
VS
15128fi
15129rm -f conftest*
15130 if test "$am_cv_func_iconv" != yes; then
15131 am_save_LIBS="$LIBS"
15132 LIBS="$LIBS -liconv"
15133 cat > conftest.$ac_ext <<EOF
15134#line 15135 "configure"
15135#include "confdefs.h"
15136#include <stdlib.h>
15137#include <iconv.h>
15138int main() {
15139iconv_t cd = iconv_open("","");
15140 iconv(cd,NULL,NULL,NULL,NULL);
15141 iconv_close(cd);
15142; return 0; }
15143EOF
15144if { (eval echo configure:15145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15145 rm -rf conftest*
b040e242
VS
15146 am_cv_lib_iconv=yes
15147 am_cv_func_iconv=yes
15148else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
af15babd
VZ
15151fi
15152rm -f conftest*
b040e242
VS
15153 LIBS="$am_save_LIBS"
15154 fi
15155
15156fi
15157
15158echo "$ac_t""$am_cv_func_iconv" 1>&6
15159 if test "$am_cv_func_iconv" = yes; then
15160 cat >> confdefs.h <<\EOF
15161#define HAVE_ICONV 1
15162EOF
15163
15164 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
15165echo "configure:15166: checking for iconv declaration" >&5
15166 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
15167 echo $ac_n "(cached) $ac_c" 1>&6
15168else
15169
15170 cat > conftest.$ac_ext <<EOF
15171#line 15172 "configure"
15172#include "confdefs.h"
15173
15174#include <stdlib.h>
15175#include <iconv.h>
15176extern
15177#ifdef __cplusplus
15178"C"
15179#endif
15180#if defined(__STDC__) || defined(__cplusplus)
15181size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15182#else
15183size_t iconv();
15184#endif
15185
15186int main() {
af15babd 15187
b040e242
VS
15188; return 0; }
15189EOF
15190if { (eval echo configure:15191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15191 rm -rf conftest*
15192 am_cv_proto_iconv_arg1=""
15193else
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197 am_cv_proto_iconv_arg1="const"
15198fi
15199rm -f conftest*
15200 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
af15babd 15201fi
af15babd 15202
b040e242
VS
15203 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15204 echo "$ac_t""${ac_t:-
15205 }$am_cv_proto_iconv" 1>&6
15206 cat >> confdefs.h <<EOF
15207#define ICONV_CONST $am_cv_proto_iconv_arg1
15208EOF
15209
15210 fi
15211 LIBICONV=
15212 if test "$am_cv_lib_iconv" = yes; then
15213 LIBICONV="-liconv"
15214 fi
15215
15216
15217LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
15218ac_ext=c
15219# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15220ac_cpp='$CPP $CPPFLAGS'
15221ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15222ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15223cross_compiling=$ac_cv_prog_cc_cross
af15babd 15224
af15babd 15225
4f14bcd8
GD
15226if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15227 for ac_func in sigaction
af15babd
VZ
15228do
15229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15230echo "configure:15231: checking for $ac_func" >&5
af15babd
VZ
15231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15232 echo $ac_n "(cached) $ac_c" 1>&6
15233else
15234 cat > conftest.$ac_ext <<EOF
b040e242 15235#line 15236 "configure"
af15babd
VZ
15236#include "confdefs.h"
15237/* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char $ac_func(); below. */
15239#include <assert.h>
15240/* Override any gcc2 internal prototype to avoid an error. */
15241/* We use char because int might match the return type of a gcc2
15242 builtin and then its argument prototype would still apply. */
15243char $ac_func();
15244
15245int main() {
15246
15247/* The GNU C library defines this for functions which it implements
15248 to always fail with ENOSYS. Some functions are actually named
15249 something starting with __ and the normal name is an alias. */
15250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15251choke me
15252#else
15253$ac_func();
15254#endif
15255
15256; return 0; }
15257EOF
b040e242 15258if { (eval echo configure:15259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15259 rm -rf conftest*
15260 eval "ac_cv_func_$ac_func=yes"
15261else
15262 echo "configure: failed program was:" >&5
15263 cat conftest.$ac_ext >&5
15264 rm -rf conftest*
15265 eval "ac_cv_func_$ac_func=no"
15266fi
15267rm -f conftest*
15268fi
15269
15270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15271 echo "$ac_t""yes" 1>&6
15272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15273 cat >> confdefs.h <<EOF
15274#define $ac_tr_func 1
15275EOF
4f14bcd8 15276
af15babd
VZ
15277else
15278 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15279fi
15280done
15281
15282
15283 if test "$ac_cv_func_sigaction" = "no"; then
15284 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15285 wxUSE_ON_FATAL_EXCEPTION=no
15286 fi
15287
15288 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15289
15290 ac_ext=C
15291# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15292ac_cpp='$CXXCPP $CPPFLAGS'
15293ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15294ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15295cross_compiling=$ac_cv_prog_cxx_cross
15296
15297
15298 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
b040e242 15299echo "configure:15300: checking for sa_handler type" >&5
4f14bcd8 15300if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15301 echo $ac_n "(cached) $ac_c" 1>&6
15302else
4f14bcd8
GD
15303
15304 cat > conftest.$ac_ext <<EOF
b040e242 15305#line 15306 "configure"
af15babd 15306#include "confdefs.h"
4f14bcd8 15307#include <signal.h>
af15babd 15308int main() {
4f14bcd8
GD
15309
15310 extern void testSigHandler(int);
15311
15312 struct sigaction sa;
15313 sa.sa_handler = testSigHandler;
15314
af15babd
VZ
15315; return 0; }
15316EOF
b040e242 15317if { (eval echo configure:15318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15318 rm -rf conftest*
4f14bcd8
GD
15319
15320 wx_cv_type_sa_handler=int
15321
af15babd
VZ
15322else
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15325 rm -rf conftest*
4f14bcd8
GD
15326
15327 wx_cv_type_sa_handler=void
15328
af15babd
VZ
15329fi
15330rm -f conftest*
4f14bcd8
GD
15331
15332fi
15333
15334echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15335
15336 ac_ext=c
15337# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15338ac_cpp='$CPP $CPPFLAGS'
15339ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15340ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15341cross_compiling=$ac_cv_prog_cc_cross
af15babd 15342
4f14bcd8
GD
15343
15344 cat >> confdefs.h <<EOF
15345#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
15346EOF
15347
4f14bcd8
GD
15348 fi
15349fi
af15babd 15350
4f14bcd8 15351for ac_func in vfork
af15babd
VZ
15352do
15353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15354echo "configure:15355: checking for $ac_func" >&5
af15babd
VZ
15355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15357else
15358 cat > conftest.$ac_ext <<EOF
b040e242 15359#line 15360 "configure"
af15babd
VZ
15360#include "confdefs.h"
15361/* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func(); below. */
15363#include <assert.h>
15364/* Override any gcc2 internal prototype to avoid an error. */
15365/* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15367char $ac_func();
15368
15369int main() {
15370
15371/* The GNU C library defines this for functions which it implements
15372 to always fail with ENOSYS. Some functions are actually named
15373 something starting with __ and the normal name is an alias. */
15374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15375choke me
15376#else
15377$ac_func();
15378#endif
15379
15380; return 0; }
15381EOF
b040e242 15382if { (eval echo configure:15383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15383 rm -rf conftest*
15384 eval "ac_cv_func_$ac_func=yes"
15385else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 eval "ac_cv_func_$ac_func=no"
15390fi
15391rm -f conftest*
15392fi
15393
15394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15397 cat >> confdefs.h <<EOF
15398#define $ac_tr_func 1
15399EOF
4f14bcd8 15400
af15babd
VZ
15401else
15402 echo "$ac_t""no" 1>&6
af15babd
VZ
15403fi
15404done
15405
af15babd 15406
ade35f11
VZ
15407for ac_func in mkstemp mktemp
15408do
15409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15410echo "configure:15411: checking for $ac_func" >&5
ade35f11
VZ
15411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15412 echo $ac_n "(cached) $ac_c" 1>&6
15413else
15414 cat > conftest.$ac_ext <<EOF
b040e242 15415#line 15416 "configure"
ade35f11
VZ
15416#include "confdefs.h"
15417/* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char $ac_func(); below. */
15419#include <assert.h>
15420/* Override any gcc2 internal prototype to avoid an error. */
15421/* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423char $ac_func();
15424
15425int main() {
15426
15427/* The GNU C library defines this for functions which it implements
15428 to always fail with ENOSYS. Some functions are actually named
15429 something starting with __ and the normal name is an alias. */
15430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15431choke me
15432#else
15433$ac_func();
15434#endif
15435
15436; return 0; }
15437EOF
b040e242 15438if { (eval echo configure:15439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
15439 rm -rf conftest*
15440 eval "ac_cv_func_$ac_func=yes"
15441else
15442 echo "configure: failed program was:" >&5
15443 cat conftest.$ac_ext >&5
15444 rm -rf conftest*
15445 eval "ac_cv_func_$ac_func=no"
15446fi
15447rm -f conftest*
15448fi
15449
15450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15451 echo "$ac_t""yes" 1>&6
15452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15453 cat >> confdefs.h <<EOF
15454#define $ac_tr_func 1
15455EOF
15456 break
15457else
15458 echo "$ac_t""no" 1>&6
15459fi
15460done
15461
15462
4f14bcd8 15463echo $ac_n "checking for statfs""... $ac_c" 1>&6
b040e242 15464echo "configure:15465: checking for statfs" >&5
4f14bcd8
GD
15465if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467else
15468 cat > conftest.$ac_ext <<EOF
b040e242 15469#line 15470 "configure"
4f14bcd8
GD
15470#include "confdefs.h"
15471
15472 #if defined(__BSD__)
15473 #include <sys/param.h>
15474 #include <sys/mount.h>
15475 #else
15476 #include <sys/vfs.h>
15477 #endif
15478
15479int main() {
15480
15481 long l;
15482 struct statfs fs;
15483 statfs("/", &fs);
15484 l = fs.f_bsize;
15485 l += fs.f_blocks;
15486 l += fs.f_bavail;
15487
15488; return 0; }
15489EOF
b040e242 15490if { (eval echo configure:15491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15491 rm -rf conftest*
15492
15493 wx_cv_func_statfs=yes
15494
15495else
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 rm -rf conftest*
15499
15500 wx_cv_func_statfs=no
af15babd
VZ
15501
15502
15503fi
4f14bcd8 15504rm -f conftest*
af15babd
VZ
15505
15506fi
15507
4f14bcd8
GD
15508echo "$ac_t""$wx_cv_func_statfs" 1>&6
15509
15510if test "$wx_cv_func_statfs" = "yes"; then
15511 cat >> confdefs.h <<\EOF
15512#define HAVE_STATFS 1
15513EOF
15514
15515else
15516 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
b040e242 15517echo "configure:15518: checking for statvfs" >&5
4f14bcd8 15518if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
15519 echo $ac_n "(cached) $ac_c" 1>&6
15520else
15521 cat > conftest.$ac_ext <<EOF
b040e242 15522#line 15523 "configure"
af15babd 15523#include "confdefs.h"
af15babd 15524
4f14bcd8
GD
15525 #include <sys/statvfs.h>
15526
af15babd
VZ
15527int main() {
15528
4f14bcd8
GD
15529 long l;
15530 struct statvfs fs;
15531 statvfs("/", &fs);
15532 l = fs.f_bsize;
15533 l += fs.f_blocks;
15534 l += fs.f_bavail;
15535
af15babd
VZ
15536; return 0; }
15537EOF
b040e242 15538if { (eval echo configure:15539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15539 rm -rf conftest*
4f14bcd8
GD
15540
15541 wx_cv_func_statvfs=yes
15542
af15babd
VZ
15543else
15544 echo "configure: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 rm -rf conftest*
4f14bcd8
GD
15547
15548 wx_cv_func_statvfs=no
15549
15550
af15babd
VZ
15551fi
15552rm -f conftest*
4f14bcd8 15553
af15babd
VZ
15554fi
15555
4f14bcd8 15556echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 15557
4f14bcd8
GD
15558 if test "$wx_cv_func_statvfs" = "yes"; then
15559 cat >> confdefs.h <<\EOF
15560#define HAVE_STATVFS 1
15561EOF
af15babd 15562
4f14bcd8
GD
15563 else
15564 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15565 fi
15566fi
af15babd 15567
4f14bcd8
GD
15568if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15569 for ac_func in fcntl flock
af15babd
VZ
15570do
15571echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15572echo "configure:15573: checking for $ac_func" >&5
af15babd
VZ
15573if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15574 echo $ac_n "(cached) $ac_c" 1>&6
15575else
15576 cat > conftest.$ac_ext <<EOF
b040e242 15577#line 15578 "configure"
af15babd
VZ
15578#include "confdefs.h"
15579/* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char $ac_func(); below. */
15581#include <assert.h>
15582/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15583/* We use char because int might match the return type of a gcc2
15584 builtin and then its argument prototype would still apply. */
15585char $ac_func();
15586
15587int main() {
15588
15589/* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15593choke me
15594#else
15595$ac_func();
15596#endif
15597
15598; return 0; }
15599EOF
b040e242 15600if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15601 rm -rf conftest*
15602 eval "ac_cv_func_$ac_func=yes"
15603else
15604 echo "configure: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 rm -rf conftest*
15607 eval "ac_cv_func_$ac_func=no"
15608fi
15609rm -f conftest*
15610fi
15611
15612if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15613 echo "$ac_t""yes" 1>&6
15614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15615 cat >> confdefs.h <<EOF
15616#define $ac_tr_func 1
15617EOF
4f14bcd8 15618 break
af15babd
VZ
15619else
15620 echo "$ac_t""no" 1>&6
15621fi
15622done
15623
15624
4f14bcd8
GD
15625 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15626 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15627 wxUSE_SNGLINST_CHECKER=no
15628 fi
15629fi
af15babd 15630
4f14bcd8 15631for ac_func in timegm
af15babd
VZ
15632do
15633echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15634echo "configure:15635: checking for $ac_func" >&5
af15babd
VZ
15635if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15636 echo $ac_n "(cached) $ac_c" 1>&6
15637else
15638 cat > conftest.$ac_ext <<EOF
b040e242 15639#line 15640 "configure"
af15babd
VZ
15640#include "confdefs.h"
15641/* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func(); below. */
15643#include <assert.h>
15644/* Override any gcc2 internal prototype to avoid an error. */
15645/* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15647char $ac_func();
15648
698dcdb6 15649int main() {
698dcdb6 15650
af15babd
VZ
15651/* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655choke me
15656#else
15657$ac_func();
15658#endif
15659
698dcdb6
VZ
15660; return 0; }
15661EOF
b040e242 15662if { (eval echo configure:15663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15663 rm -rf conftest*
af15babd 15664 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15665else
15666 echo "configure: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15668 rm -rf conftest*
af15babd 15669 eval "ac_cv_func_$ac_func=no"
1e487827 15670fi
9952adac 15671rm -f conftest*
af15babd 15672fi
703e0a69 15673
af15babd
VZ
15674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15675 echo "$ac_t""yes" 1>&6
15676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15677 cat >> confdefs.h <<EOF
15678#define $ac_tr_func 1
15679EOF
15680
15681else
15682 echo "$ac_t""no" 1>&6
af15babd
VZ
15683fi
15684done
15685
15686
4f14bcd8 15687for ac_func in putenv setenv
10f2d63a 15688do
698dcdb6 15689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15690echo "configure:15691: checking for $ac_func" >&5
698dcdb6
VZ
15691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15692 echo $ac_n "(cached) $ac_c" 1>&6
15693else
15694 cat > conftest.$ac_ext <<EOF
b040e242 15695#line 15696 "configure"
af15babd
VZ
15696#include "confdefs.h"
15697/* System header to define __stub macros and hopefully few prototypes,
15698 which can conflict with char $ac_func(); below. */
15699#include <assert.h>
15700/* Override any gcc2 internal prototype to avoid an error. */
15701/* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15703char $ac_func();
15704
15705int main() {
15706
15707/* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711choke me
15712#else
15713$ac_func();
15714#endif
15715
15716; return 0; }
15717EOF
b040e242 15718if { (eval echo configure:15719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15719 rm -rf conftest*
15720 eval "ac_cv_func_$ac_func=yes"
15721else
15722 echo "configure: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15724 rm -rf conftest*
15725 eval "ac_cv_func_$ac_func=no"
15726fi
15727rm -f conftest*
15728fi
15729
15730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15731 echo "$ac_t""yes" 1>&6
15732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15733 cat >> confdefs.h <<EOF
15734#define $ac_tr_func 1
15735EOF
4f14bcd8 15736 break
af15babd
VZ
15737else
15738 echo "$ac_t""no" 1>&6
15739fi
af15babd
VZ
15740done
15741
15742
4f14bcd8
GD
15743HAVE_SOME_SLEEP_FUNC=0
15744if test "$USE_BEOS" = 1; then
15745 cat >> confdefs.h <<\EOF
15746#define HAVE_SLEEP 1
af15babd
VZ
15747EOF
15748
4f14bcd8 15749 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15750fi
15751
4f14bcd8
GD
15752if test "$USE_DARWIN" = 1; then
15753 cat >> confdefs.h <<\EOF
15754#define HAVE_USLEEP 1
af15babd 15755EOF
10f2d63a 15756
4f14bcd8 15757 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15758fi
15759
4f14bcd8
GD
15760if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15761 POSIX4_LINK=
15762 for ac_func in nanosleep
15763do
15764echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15765echo "configure:15766: checking for $ac_func" >&5
4f14bcd8 15766if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15767 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15768else
4f14bcd8 15769 cat > conftest.$ac_ext <<EOF
b040e242 15770#line 15771 "configure"
10f2d63a 15771#include "confdefs.h"
4f14bcd8
GD
15772/* System header to define __stub macros and hopefully few prototypes,
15773 which can conflict with char $ac_func(); below. */
15774#include <assert.h>
10f2d63a
VZ
15775/* Override any gcc2 internal prototype to avoid an error. */
15776/* We use char because int might match the return type of a gcc2
698dcdb6 15777 builtin and then its argument prototype would still apply. */
4f14bcd8 15778char $ac_func();
698dcdb6
VZ
15779
15780int main() {
4f14bcd8
GD
15781
15782/* The GNU C library defines this for functions which it implements
15783 to always fail with ENOSYS. Some functions are actually named
15784 something starting with __ and the normal name is an alias. */
15785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15786choke me
15787#else
15788$ac_func();
15789#endif
15790
698dcdb6
VZ
15791; return 0; }
15792EOF
b040e242 15793if { (eval echo configure:15794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15794 rm -rf conftest*
4f14bcd8 15795 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15796else
15797 echo "configure: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15799 rm -rf conftest*
4f14bcd8 15800 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15801fi
15802rm -f conftest*
698dcdb6 15803fi
4f14bcd8
GD
15804
15805if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15806 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15808 cat >> confdefs.h <<EOF
15809#define $ac_tr_func 1
15810EOF
15811 cat >> confdefs.h <<\EOF
15812#define HAVE_NANOSLEEP 1
15813EOF
15814
10f2d63a 15815else
698dcdb6 15816 echo "$ac_t""no" 1>&6
4f14bcd8 15817echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b040e242 15818echo "configure:15819: checking for nanosleep in -lposix4" >&5
4f14bcd8 15819ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15820if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15821 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15822else
698dcdb6 15823 ac_save_LIBS="$LIBS"
4f14bcd8 15824LIBS="-lposix4 $LIBS"
698dcdb6 15825cat > conftest.$ac_ext <<EOF
b040e242 15826#line 15827 "configure"
10f2d63a
VZ
15827#include "confdefs.h"
15828/* Override any gcc2 internal prototype to avoid an error. */
15829/* We use char because int might match the return type of a gcc2
698dcdb6 15830 builtin and then its argument prototype would still apply. */
4f14bcd8 15831char nanosleep();
698dcdb6
VZ
15832
15833int main() {
4f14bcd8 15834nanosleep()
698dcdb6
VZ
15835; return 0; }
15836EOF
b040e242 15837if { (eval echo configure:15838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15838 rm -rf conftest*
15839 eval "ac_cv_lib_$ac_lib_var=yes"
15840else
15841 echo "configure: failed program was:" >&5
15842 cat conftest.$ac_ext >&5
15843 rm -rf conftest*
15844 eval "ac_cv_lib_$ac_lib_var=no"
15845fi
15846rm -f conftest*
15847LIBS="$ac_save_LIBS"
10f2d63a 15848
698dcdb6
VZ
15849fi
15850if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15851 echo "$ac_t""yes" 1>&6
15852
4f14bcd8
GD
15853 cat >> confdefs.h <<\EOF
15854#define HAVE_NANOSLEEP 1
15855EOF
15856
3d63bc3a 15857 POSIX4_LINK=" -lposix4"
4f14bcd8 15858
10f2d63a 15859else
698dcdb6 15860 echo "$ac_t""no" 1>&6
10f2d63a 15861
4f14bcd8
GD
15862 for ac_func in usleep
15863do
15864echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15865echo "configure:15866: checking for $ac_func" >&5
4f14bcd8 15866if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15867 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15868else
698dcdb6 15869 cat > conftest.$ac_ext <<EOF
b040e242 15870#line 15871 "configure"
10f2d63a 15871#include "confdefs.h"
4f14bcd8
GD
15872/* System header to define __stub macros and hopefully few prototypes,
15873 which can conflict with char $ac_func(); below. */
15874#include <assert.h>
15875/* Override any gcc2 internal prototype to avoid an error. */
15876/* We use char because int might match the return type of a gcc2
15877 builtin and then its argument prototype would still apply. */
15878char $ac_func();
15879
15880int main() {
15881
15882/* The GNU C library defines this for functions which it implements
15883 to always fail with ENOSYS. Some functions are actually named
15884 something starting with __ and the normal name is an alias. */
15885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15886choke me
15887#else
15888$ac_func();
15889#endif
15890
15891; return 0; }
698dcdb6 15892EOF
b040e242 15893if { (eval echo configure:15894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15894 rm -rf conftest*
4f14bcd8 15895 eval "ac_cv_func_$ac_func=yes"
1e487827 15896else
698dcdb6 15897 echo "configure: failed program was:" >&5
10f2d63a 15898 cat conftest.$ac_ext >&5
698dcdb6 15899 rm -rf conftest*
4f14bcd8 15900 eval "ac_cv_func_$ac_func=no"
10f2d63a 15901fi
698dcdb6 15902rm -f conftest*
10f2d63a 15903fi
4f14bcd8
GD
15904
15905if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15906 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15908 cat >> confdefs.h <<EOF
15909#define $ac_tr_func 1
15910EOF
15911 cat >> confdefs.h <<\EOF
15912#define HAVE_USLEEP 1
15913EOF
15914
698dcdb6
VZ
15915else
15916 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15917echo "configure: warning: wxSleep() function will not work" 1>&2
15918
10f2d63a 15919fi
4f14bcd8 15920done
10f2d63a 15921
4f14bcd8 15922
698dcdb6 15923
6232543b 15924fi
10f2d63a 15925
698dcdb6 15926
4f14bcd8 15927
1e487827 15928fi
4f14bcd8 15929done
703e0a69 15930
10f2d63a
VZ
15931fi
15932
4f14bcd8 15933for ac_func in uname gethostname
70846f0a 15934do
698dcdb6 15935echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 15936echo "configure:15937: checking for $ac_func" >&5
698dcdb6
VZ
15937if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15938 echo $ac_n "(cached) $ac_c" 1>&6
15939else
15940 cat > conftest.$ac_ext <<EOF
b040e242 15941#line 15942 "configure"
70846f0a
VZ
15942#include "confdefs.h"
15943/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15944 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15945#include <assert.h>
15946/* Override any gcc2 internal prototype to avoid an error. */
15947/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15948 builtin and then its argument prototype would still apply. */
15949char $ac_func();
15950
15951int main() {
70846f0a
VZ
15952
15953/* The GNU C library defines this for functions which it implements
15954 to always fail with ENOSYS. Some functions are actually named
15955 something starting with __ and the normal name is an alias. */
15956#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15957choke me
15958#else
698dcdb6 15959$ac_func();
70846f0a
VZ
15960#endif
15961
698dcdb6 15962; return 0; }
70846f0a 15963EOF
b040e242 15964if { (eval echo configure:15965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15965 rm -rf conftest*
15966 eval "ac_cv_func_$ac_func=yes"
15967else
15968 echo "configure: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15970 rm -rf conftest*
15971 eval "ac_cv_func_$ac_func=no"
15972fi
15973rm -f conftest*
15974fi
70846f0a 15975
698dcdb6
VZ
15976if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15977 echo "$ac_t""yes" 1>&6
15978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15979 cat >> confdefs.h <<EOF
15980#define $ac_tr_func 1
15981EOF
4f14bcd8 15982 break
698dcdb6
VZ
15983else
15984 echo "$ac_t""no" 1>&6
70846f0a
VZ
15985fi
15986done
15987
698dcdb6 15988
4f14bcd8
GD
15989
15990ac_ext=C
15991# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15992ac_cpp='$CXXCPP $CPPFLAGS'
15993ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15994ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15995cross_compiling=$ac_cv_prog_cxx_cross
15996
15997
15998for ac_func in strtok_r
10f2d63a 15999do
4f14bcd8 16000echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 16001echo "configure:16002: checking for $ac_func" >&5
4f14bcd8 16002if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16003 echo $ac_n "(cached) $ac_c" 1>&6
16004else
16005 cat > conftest.$ac_ext <<EOF
b040e242 16006#line 16007 "configure"
10f2d63a 16007#include "confdefs.h"
4f14bcd8
GD
16008/* System header to define __stub macros and hopefully few prototypes,
16009 which can conflict with char $ac_func(); below. */
16010#include <assert.h>
16011/* Override any gcc2 internal prototype to avoid an error. */
16012#ifdef __cplusplus
16013extern "C"
16014#endif
16015/* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16017char $ac_func();
16018
16019int main() {
16020
16021/* The GNU C library defines this for functions which it implements
16022 to always fail with ENOSYS. Some functions are actually named
16023 something starting with __ and the normal name is an alias. */
16024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16025choke me
16026#else
16027$ac_func();
16028#endif
16029
16030; return 0; }
698dcdb6 16031EOF
b040e242 16032if { (eval echo configure:16033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16033 rm -rf conftest*
4f14bcd8 16034 eval "ac_cv_func_$ac_func=yes"
1e487827 16035else
698dcdb6 16036 echo "configure: failed program was:" >&5
10f2d63a 16037 cat conftest.$ac_ext >&5
698dcdb6 16038 rm -rf conftest*
4f14bcd8 16039 eval "ac_cv_func_$ac_func=no"
10f2d63a 16040fi
698dcdb6 16041rm -f conftest*
10f2d63a 16042fi
4f14bcd8
GD
16043
16044if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16045 echo "$ac_t""yes" 1>&6
4f14bcd8 16046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16047 cat >> confdefs.h <<EOF
4f14bcd8 16048#define $ac_tr_func 1
10f2d63a 16049EOF
698dcdb6
VZ
16050
16051else
16052 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16053fi
16054done
16055
698dcdb6 16056
4f14bcd8
GD
16057ac_ext=c
16058# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16059ac_cpp='$CPP $CPPFLAGS'
16060ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16061ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16062cross_compiling=$ac_cv_prog_cc_cross
16063
16064
16065INET_LINK=
16066for ac_func in inet_addr
16067do
16068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 16069echo "configure:16070: checking for $ac_func" >&5
4f14bcd8 16070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16071 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16072else
4f14bcd8 16073 cat > conftest.$ac_ext <<EOF
b040e242 16074#line 16075 "configure"
10f2d63a 16075#include "confdefs.h"
4f14bcd8
GD
16076/* System header to define __stub macros and hopefully few prototypes,
16077 which can conflict with char $ac_func(); below. */
16078#include <assert.h>
10f2d63a
VZ
16079/* Override any gcc2 internal prototype to avoid an error. */
16080/* We use char because int might match the return type of a gcc2
698dcdb6 16081 builtin and then its argument prototype would still apply. */
4f14bcd8 16082char $ac_func();
698dcdb6
VZ
16083
16084int main() {
4f14bcd8
GD
16085
16086/* The GNU C library defines this for functions which it implements
16087 to always fail with ENOSYS. Some functions are actually named
16088 something starting with __ and the normal name is an alias. */
16089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16090choke me
16091#else
16092$ac_func();
16093#endif
16094
698dcdb6
VZ
16095; return 0; }
16096EOF
b040e242 16097if { (eval echo configure:16098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16098 rm -rf conftest*
4f14bcd8 16099 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16100else
16101 echo "configure: failed program was:" >&5
16102 cat conftest.$ac_ext >&5
16103 rm -rf conftest*
4f14bcd8 16104 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16105fi
16106rm -f conftest*
698dcdb6 16107fi
4f14bcd8
GD
16108
16109if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16110 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16112 cat >> confdefs.h <<EOF
16113#define $ac_tr_func 1
16114EOF
16115 cat >> confdefs.h <<\EOF
16116#define HAVE_INET_ADDR 1
10f2d63a
VZ
16117EOF
16118
16119else
698dcdb6 16120 echo "$ac_t""no" 1>&6
4f14bcd8 16121echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b040e242 16122echo "configure:16123: checking for inet_addr in -lnsl" >&5
4f14bcd8 16123ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16124if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16125 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16126else
698dcdb6 16127 ac_save_LIBS="$LIBS"
4f14bcd8 16128LIBS="-lnsl $LIBS"
698dcdb6 16129cat > conftest.$ac_ext <<EOF
b040e242 16130#line 16131 "configure"
10f2d63a
VZ
16131#include "confdefs.h"
16132/* Override any gcc2 internal prototype to avoid an error. */
16133/* We use char because int might match the return type of a gcc2
698dcdb6 16134 builtin and then its argument prototype would still apply. */
4f14bcd8 16135char inet_addr();
698dcdb6
VZ
16136
16137int main() {
4f14bcd8 16138inet_addr()
698dcdb6
VZ
16139; return 0; }
16140EOF
b040e242 16141if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16142 rm -rf conftest*
16143 eval "ac_cv_lib_$ac_lib_var=yes"
16144else
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 rm -rf conftest*
16148 eval "ac_cv_lib_$ac_lib_var=no"
16149fi
16150rm -f conftest*
16151LIBS="$ac_save_LIBS"
16152
16153fi
16154if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16155 echo "$ac_t""yes" 1>&6
4f14bcd8 16156 INET_LINK="nsl"
10f2d63a 16157else
698dcdb6 16158 echo "$ac_t""no" 1>&6
4f14bcd8 16159echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b040e242 16160echo "configure:16161: checking for inet_addr in -lresolv" >&5
4f14bcd8 16161ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16164else
698dcdb6 16165 ac_save_LIBS="$LIBS"
4f14bcd8 16166LIBS="-lresolv $LIBS"
698dcdb6 16167cat > conftest.$ac_ext <<EOF
b040e242 16168#line 16169 "configure"
10f2d63a
VZ
16169#include "confdefs.h"
16170/* Override any gcc2 internal prototype to avoid an error. */
16171/* We use char because int might match the return type of a gcc2
698dcdb6 16172 builtin and then its argument prototype would still apply. */
4f14bcd8 16173char inet_addr();
698dcdb6
VZ
16174
16175int main() {
4f14bcd8 16176inet_addr()
698dcdb6
VZ
16177; return 0; }
16178EOF
b040e242 16179if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16180 rm -rf conftest*
16181 eval "ac_cv_lib_$ac_lib_var=yes"
16182else
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16185 rm -rf conftest*
16186 eval "ac_cv_lib_$ac_lib_var=no"
16187fi
16188rm -f conftest*
16189LIBS="$ac_save_LIBS"
16190
16191fi
16192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16193 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16194 INET_LINK="resolv"
16195
698dcdb6 16196else
4f14bcd8
GD
16197 echo "$ac_t""no" 1>&6
16198fi
698dcdb6 16199
4f14bcd8 16200
698dcdb6 16201fi
4f14bcd8
GD
16202
16203
698dcdb6
VZ
16204
16205fi
4f14bcd8
GD
16206done
16207
16208
16209for ac_func in inet_aton
16210do
16211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 16212echo "configure:16213: checking for $ac_func" >&5
4f14bcd8 16213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16214 echo $ac_n "(cached) $ac_c" 1>&6
16215else
4f14bcd8 16216 cat > conftest.$ac_ext <<EOF
b040e242 16217#line 16218 "configure"
f6bcfd97 16218#include "confdefs.h"
4f14bcd8
GD
16219/* System header to define __stub macros and hopefully few prototypes,
16220 which can conflict with char $ac_func(); below. */
16221#include <assert.h>
f6bcfd97
BP
16222/* Override any gcc2 internal prototype to avoid an error. */
16223/* We use char because int might match the return type of a gcc2
698dcdb6 16224 builtin and then its argument prototype would still apply. */
4f14bcd8 16225char $ac_func();
698dcdb6
VZ
16226
16227int main() {
4f14bcd8
GD
16228
16229/* The GNU C library defines this for functions which it implements
16230 to always fail with ENOSYS. Some functions are actually named
16231 something starting with __ and the normal name is an alias. */
16232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16233choke me
16234#else
16235$ac_func();
16236#endif
16237
698dcdb6
VZ
16238; return 0; }
16239EOF
b040e242 16240if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16241 rm -rf conftest*
4f14bcd8 16242 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16243else
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16246 rm -rf conftest*
4f14bcd8 16247 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16248fi
16249rm -f conftest*
698dcdb6 16250fi
4f14bcd8
GD
16251
16252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16253 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16255 cat >> confdefs.h <<EOF
16256#define $ac_tr_func 1
16257EOF
16258 cat >> confdefs.h <<\EOF
16259#define HAVE_INET_ATON 1
16260EOF
16261
10f2d63a 16262else
698dcdb6 16263 echo "$ac_t""no" 1>&6
4f14bcd8 16264 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b040e242 16265echo "configure:16266: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 16266ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16268 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 16269else
698dcdb6 16270 ac_save_LIBS="$LIBS"
4f14bcd8 16271LIBS="-l$INET_LINK $LIBS"
698dcdb6 16272cat > conftest.$ac_ext <<EOF
b040e242 16273#line 16274 "configure"
10f2d63a 16274#include "confdefs.h"
6232543b 16275/* Override any gcc2 internal prototype to avoid an error. */
6232543b 16276/* We use char because int might match the return type of a gcc2
698dcdb6 16277 builtin and then its argument prototype would still apply. */
4f14bcd8 16278char inet_aton();
698dcdb6
VZ
16279
16280int main() {
4f14bcd8 16281inet_aton()
698dcdb6
VZ
16282; return 0; }
16283EOF
b040e242 16284if { (eval echo configure:16285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16285 rm -rf conftest*
16286 eval "ac_cv_lib_$ac_lib_var=yes"
16287else
16288 echo "configure: failed program was:" >&5
16289 cat conftest.$ac_ext >&5
16290 rm -rf conftest*
16291 eval "ac_cv_lib_$ac_lib_var=no"
16292fi
16293rm -f conftest*
16294LIBS="$ac_save_LIBS"
10f2d63a 16295
698dcdb6
VZ
16296fi
16297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16298 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16299 cat >> confdefs.h <<\EOF
16300#define HAVE_INET_ATON 1
16301EOF
16302
698dcdb6
VZ
16303else
16304 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16305fi
16306
4f14bcd8 16307
10f2d63a 16308fi
4f14bcd8 16309done
10f2d63a 16310
4f14bcd8
GD
16311
16312if test "x$INET_LINK" != "x"; then
16313 cat >> confdefs.h <<\EOF
16314#define HAVE_INET_ADDR 1
16315EOF
16316
3d63bc3a 16317 INET_LINK=" -l$INET_LINK"
6232543b 16318fi
10f2d63a 16319
1e487827 16320fi
703e0a69 16321
698dcdb6 16322
4f14bcd8
GD
16323cat > confcache <<\EOF
16324# This file is a shell script that caches the results of configure
16325# tests run on this system so they can be shared between configure
16326# scripts and configure runs. It is not useful on other systems.
16327# If it contains results you don't want to keep, you may remove or edit it.
16328#
16329# By default, configure uses ./config.cache as the cache file,
16330# creating it if it does not exist already. You can give configure
16331# the --cache-file=FILE option to use a different cache file; that is
16332# what configure does when it calls configure scripts in
16333# subdirectories, so they share the cache.
16334# Giving --cache-file=/dev/null disables caching, for debugging configure.
16335# config.status only pays attention to the cache file if you give it the
16336# --recheck option to rerun configure.
16337#
f6bcfd97 16338EOF
4f14bcd8
GD
16339# The following way of writing the cache mishandles newlines in values,
16340# but we know of no workaround that is simple, portable, and efficient.
16341# So, don't put newlines in cache variables' values.
16342# Ultrix sh set writes to stderr and can't be redirected directly,
16343# and sets the high bit in the cache file unless we assign to the vars.
16344(set) 2>&1 |
16345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16346 *ac_space=\ *)
16347 # `set' does not quote correctly, so add quotes (double-quote substitution
16348 # turns \\\\ into \\, and sed turns \\ into \).
16349 sed -n \
16350 -e "s/'/'\\\\''/g" \
16351 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16352 ;;
16353 *)
16354 # `set' quotes correctly as required by POSIX, so do not add quotes.
16355 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16356 ;;
16357 esac >> confcache
16358if cmp -s $cache_file confcache; then
16359 :
16360else
16361 if test -w $cache_file; then
16362 echo "updating cache $cache_file"
16363 cat confcache > $cache_file
f6bcfd97 16364 else
4f14bcd8 16365 echo "not updating unwritable cache $cache_file"
f6bcfd97 16366 fi
4f14bcd8
GD
16367fi
16368rm -f confcache
f6bcfd97 16369
4f14bcd8
GD
16370
16371
16372if test "$TOOLKIT" != "MSW"; then
16373
7274f1c7
RL
16374
16375 THREADS_LINK=
16376 THREADS_OBJ=
16377 CODE_GEN_FLAGS=
16378 CODE_GEN_FLAGS_CXX=
16379
16380 if test "$wxUSE_THREADS" = "yes" ; then
16381 if test "$wxUSE_WINE" = 1 ; then
156b2523 16382 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16383 wxUSE_THREADS="no"
16384 elif test "$USE_BEOS" = 1; then
156b2523 16385 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16386 wxUSE_THREADS="no"
16387 fi
4f14bcd8 16388 fi
4f14bcd8 16389
7274f1c7
RL
16390 if test "$wxUSE_THREADS" = "yes" ; then
16391
16392 if test "$USE_AIX" = 1; then
16393 THREADS_LIB=pthreads
16394 else
16395 THREADS_LIB=pthread
16396 fi
4f14bcd8 16397
7274f1c7 16398 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
b040e242 16399echo "configure:16400: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16400ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16401if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16402 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16403else
698dcdb6 16404 ac_save_LIBS="$LIBS"
4f14bcd8 16405LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 16406cat > conftest.$ac_ext <<EOF
b040e242 16407#line 16408 "configure"
10f2d63a
VZ
16408#include "confdefs.h"
16409/* Override any gcc2 internal prototype to avoid an error. */
16410/* We use char because int might match the return type of a gcc2
698dcdb6 16411 builtin and then its argument prototype would still apply. */
4f14bcd8 16412char pthread_create();
698dcdb6
VZ
16413
16414int main() {
4f14bcd8 16415pthread_create()
698dcdb6
VZ
16416; return 0; }
16417EOF
b040e242 16418if { (eval echo configure:16419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16419 rm -rf conftest*
16420 eval "ac_cv_lib_$ac_lib_var=yes"
16421else
16422 echo "configure: failed program was:" >&5
16423 cat conftest.$ac_ext >&5
16424 rm -rf conftest*
16425 eval "ac_cv_lib_$ac_lib_var=no"
16426fi
16427rm -f conftest*
16428LIBS="$ac_save_LIBS"
16429
16430fi
16431if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16432 echo "$ac_t""yes" 1>&6
4f14bcd8 16433
7274f1c7
RL
16434 THREADS_OBJ="threadpsx.lo"
16435 THREADS_LINK=$THREADS_LIB
16436
10f2d63a 16437else
698dcdb6 16438 echo "$ac_t""no" 1>&6
10f2d63a 16439
7274f1c7 16440 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
b040e242 16441echo "configure:16442: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
16442ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16444 echo $ac_n "(cached) $ac_c" 1>&6
16445else
4f14bcd8
GD
16446 ac_save_LIBS="$LIBS"
16447LIBS="-lc_r $LIBS"
16448cat > conftest.$ac_ext <<EOF
b040e242 16449#line 16450 "configure"
10f2d63a 16450#include "confdefs.h"
4f14bcd8
GD
16451/* Override any gcc2 internal prototype to avoid an error. */
16452/* We use char because int might match the return type of a gcc2
16453 builtin and then its argument prototype would still apply. */
16454char pthread_create();
10f2d63a 16455
4f14bcd8
GD
16456int main() {
16457pthread_create()
698dcdb6
VZ
16458; return 0; }
16459EOF
b040e242 16460if { (eval echo configure:16461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16461 rm -rf conftest*
4f14bcd8 16462 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16463else
698dcdb6
VZ
16464 echo "configure: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 rm -rf conftest*
4f14bcd8 16467 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 16468fi
698dcdb6 16469rm -f conftest*
4f14bcd8 16470LIBS="$ac_save_LIBS"
d9b9876f 16471
4f14bcd8
GD
16472fi
16473if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16474 echo "$ac_t""yes" 1>&6
16475
7274f1c7
RL
16476 THREADS_OBJ="threadpsx.lo"
16477 THREADS_LINK="c_r"
16478
4f14bcd8
GD
16479else
16480 echo "$ac_t""no" 1>&6
ab252f7b 16481
7274f1c7 16482 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 16483echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
b040e242 16484echo "configure:16485: checking for sys/prctl.h" >&5
4f14bcd8 16485if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 16486 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 16487else
4f14bcd8 16488 cat > conftest.$ac_ext <<EOF
b040e242 16489#line 16490 "configure"
d9b9876f 16490#include "confdefs.h"
4f14bcd8 16491#include <sys/prctl.h>
698dcdb6 16492EOF
4f14bcd8 16493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 16494{ (eval echo configure:16495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16496if test -z "$ac_err"; then
698dcdb6 16497 rm -rf conftest*
4f14bcd8 16498 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 16499else
4f14bcd8 16500 echo "$ac_err" >&5
698dcdb6
VZ
16501 echo "configure: failed program was:" >&5
16502 cat conftest.$ac_ext >&5
16503 rm -rf conftest*
4f14bcd8 16504 eval "ac_cv_header_$ac_safe=no"
6232543b 16505fi
698dcdb6 16506rm -f conftest*
4f14bcd8
GD
16507fi
16508if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16509 echo "$ac_t""yes" 1>&6
698dcdb6 16510
7274f1c7
RL
16511 THREADS_OBJ="threadsgi.lo"
16512
4f14bcd8
GD
16513else
16514 echo "$ac_t""no" 1>&6
1e487827 16515fi
698dcdb6 16516
7274f1c7 16517
4f14bcd8 16518fi
d9b9876f 16519
7274f1c7 16520
4f14bcd8 16521fi
d9b9876f 16522
4f14bcd8 16523
7274f1c7
RL
16524 if test -z "$THREADS_OBJ" ; then
16525 wxUSE_THREADS=no
156b2523 16526 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 16527 fi
4f14bcd8 16528 fi
4f14bcd8 16529
7274f1c7
RL
16530 if test "$wxUSE_THREADS" = "yes" ; then
16531 for ac_func in thr_setconcurrency
4f14bcd8
GD
16532do
16533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 16534echo "configure:16535: checking for $ac_func" >&5
4f14bcd8 16535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16536 echo $ac_n "(cached) $ac_c" 1>&6
16537else
4f14bcd8 16538 cat > conftest.$ac_ext <<EOF
b040e242 16539#line 16540 "configure"
d9b9876f 16540#include "confdefs.h"
4f14bcd8
GD
16541/* System header to define __stub macros and hopefully few prototypes,
16542 which can conflict with char $ac_func(); below. */
16543#include <assert.h>
16544/* Override any gcc2 internal prototype to avoid an error. */
16545/* We use char because int might match the return type of a gcc2
16546 builtin and then its argument prototype would still apply. */
16547char $ac_func();
16548
698dcdb6 16549int main() {
d9b9876f 16550
4f14bcd8
GD
16551/* The GNU C library defines this for functions which it implements
16552 to always fail with ENOSYS. Some functions are actually named
16553 something starting with __ and the normal name is an alias. */
16554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16555choke me
16556#else
16557$ac_func();
16558#endif
16559
698dcdb6
VZ
16560; return 0; }
16561EOF
b040e242 16562if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16563 rm -rf conftest*
4f14bcd8 16564 eval "ac_cv_func_$ac_func=yes"
d9b9876f 16565else
698dcdb6
VZ
16566 echo "configure: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16568 rm -rf conftest*
4f14bcd8 16569 eval "ac_cv_func_$ac_func=no"
6232543b 16570fi
698dcdb6 16571rm -f conftest*
1e487827 16572fi
698dcdb6 16573
4f14bcd8
GD
16574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16575 echo "$ac_t""yes" 1>&6
16576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16577 cat >> confdefs.h <<EOF
16578#define $ac_tr_func 1
d9b9876f 16579EOF
4f14bcd8
GD
16580
16581else
16582 echo "$ac_t""no" 1>&6
10f2d63a 16583fi
4f14bcd8 16584done
10f2d63a 16585
10f2d63a 16586
7274f1c7
RL
16587
16588 for ac_hdr in sched.h
4f14bcd8
GD
16589do
16590ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16591echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 16592echo "configure:16593: checking for $ac_hdr" >&5
4f14bcd8
GD
16593if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16594 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16595else
4f14bcd8 16596 cat > conftest.$ac_ext <<EOF
b040e242 16597#line 16598 "configure"
4f14bcd8
GD
16598#include "confdefs.h"
16599#include <$ac_hdr>
13111b2a 16600EOF
4f14bcd8 16601ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 16602{ (eval echo configure:16603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16603ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16604if test -z "$ac_err"; then
16605 rm -rf conftest*
16606 eval "ac_cv_header_$ac_safe=yes"
16607else
16608 echo "$ac_err" >&5
16609 echo "configure: failed program was:" >&5
16610 cat conftest.$ac_ext >&5
16611 rm -rf conftest*
16612 eval "ac_cv_header_$ac_safe=no"
13111b2a 16613fi
4f14bcd8 16614rm -f conftest*
10f2d63a 16615fi
4f14bcd8
GD
16616if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16617 echo "$ac_t""yes" 1>&6
16618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16619 cat >> confdefs.h <<EOF
4f14bcd8 16620#define $ac_tr_hdr 1
f6bcfd97 16621EOF
4f14bcd8
GD
16622
16623else
16624 echo "$ac_t""no" 1>&6
f6bcfd97 16625fi
4f14bcd8 16626done
f6bcfd97 16627
10f2d63a 16628
7274f1c7 16629 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
b040e242 16630echo "configure:16631: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16631ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634else
16635 ac_save_LIBS="$LIBS"
16636LIBS="-l$THREADS_LINK $LIBS"
16637cat > conftest.$ac_ext <<EOF
b040e242 16638#line 16639 "configure"
4f14bcd8
GD
16639#include "confdefs.h"
16640/* Override any gcc2 internal prototype to avoid an error. */
16641/* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643char sched_yield();
10f2d63a 16644
4f14bcd8
GD
16645int main() {
16646sched_yield()
16647; return 0; }
10f2d63a 16648EOF
b040e242 16649if { (eval echo configure:16650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16650 rm -rf conftest*
16651 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16652else
4f14bcd8
GD
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 rm -rf conftest*
16656 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16657fi
4f14bcd8
GD
16658rm -f conftest*
16659LIBS="$ac_save_LIBS"
10f2d63a 16660
4f14bcd8
GD
16661fi
16662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16663 echo "$ac_t""yes" 1>&6
16664 cat >> confdefs.h <<\EOF
16665#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16666EOF
16667
4f14bcd8
GD
16668else
16669 echo "$ac_t""no" 1>&6
16670echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
b040e242 16671echo "configure:16672: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16672ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16673if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16675else
16676 ac_save_LIBS="$LIBS"
16677LIBS="-lposix4 $LIBS"
16678cat > conftest.$ac_ext <<EOF
b040e242 16679#line 16680 "configure"
4f14bcd8
GD
16680#include "confdefs.h"
16681/* Override any gcc2 internal prototype to avoid an error. */
16682/* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16684char sched_yield();
47c13eb7 16685
4f14bcd8
GD
16686int main() {
16687sched_yield()
16688; return 0; }
10f2d63a 16689EOF
b040e242 16690if { (eval echo configure:16691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16691 rm -rf conftest*
16692 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16693else
4f14bcd8
GD
16694 echo "configure: failed program was:" >&5
16695 cat conftest.$ac_ext >&5
16696 rm -rf conftest*
16697 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16698fi
4f14bcd8
GD
16699rm -f conftest*
16700LIBS="$ac_save_LIBS"
10f2d63a 16701
54276ccf 16702fi
4f14bcd8
GD
16703if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16704 echo "$ac_t""yes" 1>&6
16705 cat >> confdefs.h <<\EOF
16706#define HAVE_SCHED_YIELD 1
54276ccf 16707EOF
3d63bc3a 16708 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16709else
16710 echo "$ac_t""no" 1>&6
16711echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16712
54276ccf
VZ
16713fi
16714
7274f1c7 16715
4f14bcd8 16716fi
698dcdb6 16717
10f2d63a 16718
7274f1c7
RL
16719 HAVE_PRIOR_FUNCS=0
16720 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
b040e242 16721echo "configure:16722: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16722ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16724 echo $ac_n "(cached) $ac_c" 1>&6
16725else
4f14bcd8
GD
16726 ac_save_LIBS="$LIBS"
16727LIBS="-l$THREADS_LINK $LIBS"
16728cat > conftest.$ac_ext <<EOF
b040e242 16729#line 16730 "configure"
422107f9 16730#include "confdefs.h"
4f14bcd8
GD
16731/* Override any gcc2 internal prototype to avoid an error. */
16732/* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734char pthread_attr_getschedpolicy();
16735
16736int main() {
16737pthread_attr_getschedpolicy()
16738; return 0; }
698dcdb6 16739EOF
b040e242 16740if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16741 rm -rf conftest*
4f14bcd8 16742 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16743else
698dcdb6 16744 echo "configure: failed program was:" >&5
422107f9 16745 cat conftest.$ac_ext >&5
698dcdb6 16746 rm -rf conftest*
4f14bcd8 16747 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16748fi
698dcdb6 16749rm -f conftest*
4f14bcd8
GD
16750LIBS="$ac_save_LIBS"
16751
422107f9 16752fi
4f14bcd8 16753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16754 echo "$ac_t""yes" 1>&6
4f14bcd8 16755 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
b040e242 16756echo "configure:16757: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16757ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16758if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16759 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16760else
698dcdb6 16761 ac_save_LIBS="$LIBS"
4f14bcd8 16762LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16763cat > conftest.$ac_ext <<EOF
b040e242 16764#line 16765 "configure"
422107f9
VZ
16765#include "confdefs.h"
16766/* Override any gcc2 internal prototype to avoid an error. */
16767/* We use char because int might match the return type of a gcc2
698dcdb6 16768 builtin and then its argument prototype would still apply. */
4f14bcd8 16769char pthread_attr_setschedparam();
698dcdb6
VZ
16770
16771int main() {
4f14bcd8 16772pthread_attr_setschedparam()
698dcdb6
VZ
16773; return 0; }
16774EOF
b040e242 16775if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16776 rm -rf conftest*
16777 eval "ac_cv_lib_$ac_lib_var=yes"
16778else
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 rm -rf conftest*
16782 eval "ac_cv_lib_$ac_lib_var=no"
16783fi
16784rm -f conftest*
16785LIBS="$ac_save_LIBS"
16786
16787fi
16788if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16789 echo "$ac_t""yes" 1>&6
4f14bcd8 16790 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
b040e242 16791echo "configure:16792: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16792ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16794 echo $ac_n "(cached) $ac_c" 1>&6
16795else
4f14bcd8
GD
16796 ac_save_LIBS="$LIBS"
16797LIBS="-l$THREADS_LINK $LIBS"
16798cat > conftest.$ac_ext <<EOF
b040e242 16799#line 16800 "configure"
422107f9 16800#include "confdefs.h"
4f14bcd8
GD
16801/* Override any gcc2 internal prototype to avoid an error. */
16802/* We use char because int might match the return type of a gcc2
16803 builtin and then its argument prototype would still apply. */
16804char sched_get_priority_max();
16805
16806int main() {
16807sched_get_priority_max()
16808; return 0; }
698dcdb6 16809EOF
b040e242 16810if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16811 rm -rf conftest*
4f14bcd8 16812 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16813else
698dcdb6 16814 echo "configure: failed program was:" >&5
422107f9 16815 cat conftest.$ac_ext >&5
698dcdb6 16816 rm -rf conftest*
4f14bcd8 16817 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16818fi
698dcdb6 16819rm -f conftest*
4f14bcd8
GD
16820LIBS="$ac_save_LIBS"
16821
422107f9 16822fi
4f14bcd8 16823if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16824 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16825 HAVE_PRIOR_FUNCS=1
16826else
16827 echo "$ac_t""no" 1>&6
16828echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
b040e242 16829echo "configure:16830: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16830ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16833else
698dcdb6 16834 ac_save_LIBS="$LIBS"
4f14bcd8 16835LIBS="-lposix4 $LIBS"
698dcdb6 16836cat > conftest.$ac_ext <<EOF
b040e242 16837#line 16838 "configure"
422107f9
VZ
16838#include "confdefs.h"
16839/* Override any gcc2 internal prototype to avoid an error. */
16840/* We use char because int might match the return type of a gcc2
698dcdb6 16841 builtin and then its argument prototype would still apply. */
4f14bcd8 16842char sched_get_priority_max();
698dcdb6
VZ
16843
16844int main() {
4f14bcd8 16845sched_get_priority_max()
698dcdb6
VZ
16846; return 0; }
16847EOF
b040e242 16848if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16849 rm -rf conftest*
16850 eval "ac_cv_lib_$ac_lib_var=yes"
16851else
16852 echo "configure: failed program was:" >&5
16853 cat conftest.$ac_ext >&5
16854 rm -rf conftest*
16855 eval "ac_cv_lib_$ac_lib_var=no"
16856fi
16857rm -f conftest*
16858LIBS="$ac_save_LIBS"
16859
16860fi
16861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
4f14bcd8 16863
7274f1c7
RL
16864 HAVE_PRIOR_FUNCS=1
16865 POSIX4_LINK=" -lposix4"
16866
698dcdb6
VZ
16867else
16868 echo "$ac_t""no" 1>&6
422107f9
VZ
16869fi
16870
7274f1c7 16871
422107f9
VZ
16872fi
16873
7274f1c7 16874
4f14bcd8
GD
16875else
16876 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16877fi
16878
7274f1c7 16879
698dcdb6 16880else
4f14bcd8
GD
16881 echo "$ac_t""no" 1>&6
16882fi
463abc64 16883
463abc64 16884
7274f1c7
RL
16885 if test "$HAVE_PRIOR_FUNCS" = 1; then
16886 cat >> confdefs.h <<\EOF
4f14bcd8 16887#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16888EOF
463abc64 16889
7274f1c7
RL
16890 else
16891 echo "configure: warning: Setting thread priority will not work" 1>&2
16892 fi
463abc64 16893
7274f1c7 16894 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
b040e242 16895echo "configure:16896: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16896ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16897if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16898 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16899else
698dcdb6 16900 ac_save_LIBS="$LIBS"
4f14bcd8 16901LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16902cat > conftest.$ac_ext <<EOF
b040e242 16903#line 16904 "configure"
422107f9
VZ
16904#include "confdefs.h"
16905/* Override any gcc2 internal prototype to avoid an error. */
16906/* We use char because int might match the return type of a gcc2
698dcdb6 16907 builtin and then its argument prototype would still apply. */
4f14bcd8 16908char pthread_cancel();
698dcdb6
VZ
16909
16910int main() {
4f14bcd8 16911pthread_cancel()
698dcdb6
VZ
16912; return 0; }
16913EOF
b040e242 16914if { (eval echo configure:16915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16915 rm -rf conftest*
16916 eval "ac_cv_lib_$ac_lib_var=yes"
16917else
16918 echo "configure: failed program was:" >&5
16919 cat conftest.$ac_ext >&5
16920 rm -rf conftest*
16921 eval "ac_cv_lib_$ac_lib_var=no"
16922fi
16923rm -f conftest*
16924LIBS="$ac_save_LIBS"
16925
16926fi
16927if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16928 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16929 cat >> confdefs.h <<\EOF
16930#define HAVE_PTHREAD_CANCEL 1
16931EOF
16932
698dcdb6
VZ
16933else
16934 echo "$ac_t""no" 1>&6
4f14bcd8 16935echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16936fi
16937
422107f9 16938
7274f1c7 16939 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b040e242 16940echo "configure:16941: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16941if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16942 echo $ac_n "(cached) $ac_c" 1>&6
16943else
16944
7274f1c7 16945 cat > conftest.$ac_ext <<EOF
b040e242 16946#line 16947 "configure"
4f14bcd8
GD
16947#include "confdefs.h"
16948#include <pthread.h>
16949int main() {
16950
7274f1c7
RL
16951 pthread_cleanup_push(NULL, NULL);
16952 pthread_cleanup_pop(0);
16953
4f14bcd8
GD
16954; return 0; }
16955EOF
b040e242 16956if { (eval echo configure:16957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16957 rm -rf conftest*
16958
7274f1c7
RL
16959 wx_cv_func_pthread_cleanup_push=yes
16960
4f14bcd8
GD
16961else
16962 echo "configure: failed program was:" >&5
16963 cat conftest.$ac_ext >&5
16964 rm -rf conftest*
16965
7274f1c7
RL
16966 wx_cv_func_pthread_cleanup_push=no
16967
4f14bcd8
GD
16968fi
16969rm -f conftest*
7274f1c7 16970
10f2d63a
VZ
16971fi
16972
4f14bcd8
GD
16973echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16974
7274f1c7
RL
16975 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16976 cat >> confdefs.h <<\EOF
4f14bcd8 16977#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16978EOF
16979
7274f1c7 16980 fi
4f14bcd8 16981
7274f1c7
RL
16982
16983 if test "x$wx_lib_glibc21" = "xyes"; then
16984 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16985 fi
4f14bcd8 16986
7274f1c7 16987 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
b040e242 16988echo "configure:16989: checking for pthread_mutexattr_t" >&5
4f14bcd8 16989if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16990 echo $ac_n "(cached) $ac_c" 1>&6
16991else
4f14bcd8 16992
7274f1c7 16993 cat > conftest.$ac_ext <<EOF
b040e242 16994#line 16995 "configure"
0dcf9893 16995#include "confdefs.h"
4f14bcd8
GD
16996#include <pthread.h>
16997int main() {
16998
7274f1c7
RL
16999 pthread_mutexattr_t attr;
17000 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17001
4f14bcd8 17002; return 0; }
698dcdb6 17003EOF
b040e242 17004if { (eval echo configure:17005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17005 rm -rf conftest*
4f14bcd8 17006
7274f1c7
RL
17007 wx_cv_type_pthread_mutexattr_t=yes
17008
3fed1840 17009else
698dcdb6 17010 echo "configure: failed program was:" >&5
3fed1840 17011 cat conftest.$ac_ext >&5
698dcdb6 17012 rm -rf conftest*
4f14bcd8 17013
7274f1c7
RL
17014 wx_cv_type_pthread_mutexattr_t=no
17015
4f14bcd8 17016
3fed1840 17017fi
698dcdb6 17018rm -f conftest*
7274f1c7 17019
3fed1840 17020fi
4f14bcd8
GD
17021
17022echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17023
7274f1c7
RL
17024 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17025 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17026#define HAVE_PTHREAD_MUTEXATTR_T 1
17027EOF
17028
7274f1c7
RL
17029 else
17030 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
b040e242 17031echo "configure:17032: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17032if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17033 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17034else
4f14bcd8 17035
7274f1c7 17036 cat > conftest.$ac_ext <<EOF
b040e242 17037#line 17038 "configure"
3fed1840 17038#include "confdefs.h"
4f14bcd8 17039#include <pthread.h>
698dcdb6 17040int main() {
4f14bcd8 17041
7274f1c7
RL
17042 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17043
698dcdb6
VZ
17044; return 0; }
17045EOF
b040e242 17046if { (eval echo configure:17047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17047 rm -rf conftest*
4f14bcd8 17048
7274f1c7
RL
17049 wx_cv_type_pthread_rec_mutex_init=yes
17050
698dcdb6
VZ
17051else
17052 echo "configure: failed program was:" >&5
17053 cat conftest.$ac_ext >&5
17054 rm -rf conftest*
4f14bcd8 17055
7274f1c7
RL
17056 wx_cv_type_pthread_rec_mutex_init=no
17057
4f14bcd8 17058
698dcdb6
VZ
17059fi
17060rm -f conftest*
7274f1c7 17061
3fed1840
RR
17062fi
17063
4f14bcd8 17064echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17065 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17066 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17067#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17068EOF
3fed1840 17069
7274f1c7
RL
17070 else
17071 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17072 fi
17073 fi
4f14bcd8 17074
7274f1c7 17075 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 17076
7274f1c7
RL
17077 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17078 CPPFLAGS="$CFLAGS -mt"
17079 CXXFLAGS="$CXXFLAGS -mt"
17080 LDFLAGS="$LDFLAGS -mt"
17081 fi
17082 fi
3fed1840 17083
4f14bcd8
GD
17084fi
17085
17086if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17087 cat >> confdefs.h <<\EOF
4f14bcd8 17088#define wxUSE_THREADS 1
7b6058cd
GD
17089EOF
17090
4f14bcd8 17091
3f345b47 17092 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
17093
17094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17095else
4f14bcd8
GD
17096 if test "$ac_cv_func_strtok_r" = "yes"; then
17097 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b040e242 17098echo "configure:17099: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17099 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17100 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17101 echo "$ac_t""yes" 1>&6
17102 else
17103 echo "$ac_t""no" 1>&6
17104 fi
17105 fi
17106fi
17107
17108if test "$WXGTK20" = 1 ; then
17109 cat >> confdefs.h <<EOF
17110#define __WXGTK20__ $WXGTK20
698dcdb6 17111EOF
4f14bcd8
GD
17112
17113 WXGTK12=1
10f2d63a 17114fi
4f14bcd8
GD
17115
17116if test "$WXGTK12" = 1 ; then
17117 cat >> confdefs.h <<EOF
17118#define __WXGTK12__ $WXGTK12
17119EOF
17120
10f2d63a 17121fi
698dcdb6 17122
4f14bcd8
GD
17123if test "$WXGTK127" = 1 ; then
17124 cat >> confdefs.h <<EOF
17125#define __WXGTK127__ $WXGTK127
698dcdb6 17126EOF
4f14bcd8 17127
698dcdb6 17128fi
10f2d63a 17129
4f14bcd8
GD
17130WXDEBUG=
17131
17132if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17133 WXDEBUG="-g"
17134 wxUSE_OPTIMISE=no
698dcdb6 17135fi
4f14bcd8
GD
17136
17137if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17138 wxUSE_DEBUG_INFO=yes
17139 WXDEBUG="-ggdb"
10f2d63a
VZ
17140fi
17141
4f14bcd8
GD
17142if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17143 cat >> confdefs.h <<\EOF
17144#define WXDEBUG 1
17145EOF
17146
17147 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17148else
4f14bcd8
GD
17149 if test "$wxUSE_GTK" = 1 ; then
17150 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17151 fi
17152fi
17153
17154if test "$wxUSE_MEM_TRACING" = "yes" ; then
17155 cat >> confdefs.h <<\EOF
17156#define wxUSE_MEMORY_TRACING 1
17157EOF
17158
17159 cat >> confdefs.h <<\EOF
17160#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17161EOF
17162
17163 cat >> confdefs.h <<\EOF
17164#define wxUSE_DEBUG_NEW_ALWAYS 1
17165EOF
17166
17167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17168fi
17169
17170if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17171 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17172fi
17173
17174PROFILE=
17175if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17176 PROFILE=" -pg"
10f2d63a
VZ
17177fi
17178
88e30f2b 17179if test "$GCC" = "yes" ; then
4f14bcd8
GD
17180 if test "$wxUSE_NO_RTTI" = "yes" ; then
17181 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17182 fi
4f14bcd8
GD
17183 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17184 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17185 fi
17186 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17187 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17188 fi
4f14bcd8
GD
17189 if test "$USE_WIN32" = 1 ; then
17190 # I'm not even really sure what this was ever added to solve,
17191 # but someone added it for mingw native builds, so I guess
17192 # they had a reason, right??
17193 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17194 fi
17195fi
17196
17197
17198CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17199CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17200if test "$wxUSE_OPTIMISE" = "no" ; then
17201 OPTIMISE=
17202else
17203 if test "$GCC" = yes ; then
17204 OPTIMISE="-O2"
17205 case "${host}" in
17206 i586-*-*|i686-*-* )
17207 OPTIMISE="${OPTIMISE} "
17208 ;;
17209 esac
17210 else
17211 OPTIMISE="-O"
17212 fi
17213fi
17214
17215if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17216 cat >> confdefs.h <<\EOF
17217#define WXWIN_COMPATIBILITY_2 1
17218EOF
17219
17220
17221 WXWIN_COMPATIBILITY_2_2="yes"
17222fi
17223
17224if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17225 cat >> confdefs.h <<\EOF
17226#define WXWIN_COMPATIBILITY_2_2 1
17227EOF
17228
10f2d63a
VZ
17229fi
17230
698dcdb6 17231
10f2d63a 17232if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17234#define wxUSE_GUI 1
17235EOF
17236
698dcdb6 17237
10f2d63a 17238 else
698dcdb6 17239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17240#define wxUSE_NOGUI 1
17241EOF
17242
17243fi
17244
698dcdb6 17245
10f2d63a 17246if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17248#define wxUSE_UNIX 1
17249EOF
17250
17251fi
17252
698dcdb6 17253
10f2d63a 17254if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17256#define wxUSE_APPLE_IEEE 1
17257EOF
17258
17259fi
17260
1e6feb95
VZ
17261if test "$wxUSE_TIMER" = "yes"; then
17262 cat >> confdefs.h <<\EOF
17263#define wxUSE_TIMER 1
17264EOF
17265
17266fi
17267
10f2d63a 17268if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 17269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17270#define wxUSE_WAVE 1
17271EOF
17272
17273fi
17274
1e6feb95
VZ
17275if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17276 cat >> confdefs.h <<\EOF
17277#define wxUSE_CMDLINE_PARSER 1
17278EOF
17279
17280fi
17281
17282if test "$wxUSE_STOPWATCH" = "yes"; then
17283 cat >> confdefs.h <<\EOF
17284#define wxUSE_STOPWATCH 1
17285EOF
17286
17287fi
17288
17289if test "$wxUSE_DATETIME" = "yes"; then
17290 cat >> confdefs.h <<\EOF
17291#define wxUSE_DATETIME 1
17292EOF
17293
17294fi
17295
17296if test "$wxUSE_TIMEDATE" = "yes"; then
17297 cat >> confdefs.h <<\EOF
17298#define wxUSE_TIMEDATE 1
17299EOF
17300
17301fi
17302
10f2d63a 17303if test "$wxUSE_FILE" = "yes"; then
698dcdb6 17304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17305#define wxUSE_FILE 1
17306EOF
17307
17308fi
17309
1e6feb95
VZ
17310if test "$wxUSE_FFILE" = "yes"; then
17311 cat >> confdefs.h <<\EOF
17312#define wxUSE_FFILE 1
17313EOF
17314
17315fi
17316
24528b0c 17317if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 17318 cat >> confdefs.h <<\EOF
24528b0c
VS
17319#define wxUSE_FILESYSTEM 1
17320EOF
17321
17322fi
17323
10f2d63a 17324if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 17325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17326#define wxUSE_FS_INET 1
17327EOF
17328
17329fi
17330
17331if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 17332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17333#define wxUSE_FS_ZIP 1
17334EOF
17335
17336fi
17337
17338if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 17339 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17340#define wxUSE_ZIPSTREAM 1
17341EOF
17342
17343fi
17344
eb4efbdc 17345if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 17346 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
17347#define wxUSE_ON_FATAL_EXCEPTION 1
17348EOF
17349
17350fi
17351
4f3c5f06 17352if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 17353 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
17354#define wxUSE_SNGLINST_CHECKER 1
17355EOF
17356
17357fi
17358
10f2d63a 17359if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 17360 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17361#define wxUSE_BUSYINFO 1
17362EOF
17363
17364fi
17365
17366if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 17367 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17368#define wxUSE_STD_IOSTREAM 1
17369EOF
17370
17371fi
17372
a3a584a7
VZ
17373if test "$wxUSE_TEXTBUFFER" = "yes"; then
17374 cat >> confdefs.h <<\EOF
17375#define wxUSE_TEXTBUFFER 1
17376EOF
17377
17378fi
17379
10f2d63a 17380if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17381 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17382 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17383 else
698dcdb6 17384 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17385#define wxUSE_TEXTFILE 1
17386EOF
17387
17388 fi
17389fi
17390
17391if test "$wxUSE_CONFIG" = "yes" ; then
17392 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17393 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17394 else
698dcdb6 17395 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17396#define wxUSE_CONFIG 1
17397EOF
17398
17399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17400 fi
17401fi
17402
17403if test "$wxUSE_INTL" = "yes" ; then
17404 if test "$wxUSE_FILE" != "yes"; then
156b2523 17405 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 17406 else
698dcdb6 17407 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17408#define wxUSE_INTL 1
17409EOF
17410
17411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 17412 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
17413 fi
17414fi
17415
17416if test "$wxUSE_LOG" = "yes"; then
698dcdb6 17417 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17418#define wxUSE_LOG 1
17419EOF
17420
d73be714
VZ
17421
17422 if test "$wxUSE_LOGGUI" = "yes"; then
17423 cat >> confdefs.h <<\EOF
17424#define wxUSE_LOGGUI 1
17425EOF
17426
17427 fi
17428
17429 if test "$wxUSE_LOGWINDOW" = "yes"; then
17430 cat >> confdefs.h <<\EOF
17431#define wxUSE_LOGWINDOW 1
69d27ff7
MB
17432EOF
17433
17434 fi
17435
17436 if test "$wxUSE_LOGDIALOG" = "yes"; then
17437 cat >> confdefs.h <<\EOF
17438#define wxUSE_LOG_DIALOG 1
d73be714
VZ
17439EOF
17440
17441 fi
10f2d63a
VZ
17442fi
17443
17444if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 17445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17446#define wxUSE_LONGLONG 1
17447EOF
17448
17449fi
17450
e8f65ba6 17451if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 17452 cat >> confdefs.h <<\EOF
e8f65ba6
RR
17453#define wxUSE_GEOMETRY 1
17454EOF
17455
17456fi
17457
10f2d63a 17458if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 17459 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17460#define wxUSE_DIALUP_MANAGER 1
17461EOF
17462
70f7a477 17463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
17464fi
17465
17466if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 17467 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17468#define wxUSE_STREAMS 1
17469EOF
17470
17471fi
17472
1e487827 17473
1e6feb95 17474if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 17475 for ac_func in strptime
83307f33 17476do
698dcdb6 17477echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 17478echo "configure:17479: checking for $ac_func" >&5
698dcdb6
VZ
17479if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17480 echo $ac_n "(cached) $ac_c" 1>&6
17481else
17482 cat > conftest.$ac_ext <<EOF
b040e242 17483#line 17484 "configure"
83307f33
VZ
17484#include "confdefs.h"
17485/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17486 which can conflict with char $ac_func(); below. */
83307f33
VZ
17487#include <assert.h>
17488/* Override any gcc2 internal prototype to avoid an error. */
17489/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17490 builtin and then its argument prototype would still apply. */
17491char $ac_func();
17492
17493int main() {
83307f33
VZ
17494
17495/* The GNU C library defines this for functions which it implements
17496 to always fail with ENOSYS. Some functions are actually named
17497 something starting with __ and the normal name is an alias. */
17498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17499choke me
17500#else
698dcdb6 17501$ac_func();
83307f33
VZ
17502#endif
17503
698dcdb6 17504; return 0; }
83307f33 17505EOF
b040e242 17506if { (eval echo configure:17507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17507 rm -rf conftest*
17508 eval "ac_cv_func_$ac_func=yes"
17509else
17510 echo "configure: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17512 rm -rf conftest*
17513 eval "ac_cv_func_$ac_func=no"
17514fi
17515rm -f conftest*
17516fi
83307f33 17517
698dcdb6
VZ
17518if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17519 echo "$ac_t""yes" 1>&6
17520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17521 cat >> confdefs.h <<EOF
17522#define $ac_tr_func 1
17523EOF
17524
17525else
17526 echo "$ac_t""no" 1>&6
83307f33
VZ
17527fi
17528done
17529
1e487827 17530
698dcdb6 17531 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b040e242 17532echo "configure:17533: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
17533if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17534 echo $ac_n "(cached) $ac_c" 1>&6
17535else
17536
17537 cat > conftest.$ac_ext <<EOF
b040e242 17538#line 17539 "configure"
360d6699
VZ
17539#include "confdefs.h"
17540
b4085ce6 17541 #include <time.h>
698dcdb6
VZ
17542
17543int main() {
360d6699
VZ
17544
17545 int tz;
4f11a343 17546 tz = timezone;
698dcdb6
VZ
17547
17548; return 0; }
17549EOF
b040e242 17550if { (eval echo configure:17551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17551 rm -rf conftest*
17552
4f11a343 17553 wx_cv_var_timezone=timezone
698dcdb6 17554
360d6699 17555else
698dcdb6
VZ
17556 echo "configure: failed program was:" >&5
17557 cat conftest.$ac_ext >&5
17558 rm -rf conftest*
17559
17560 cat > conftest.$ac_ext <<EOF
b040e242 17561#line 17562 "configure"
360d6699
VZ
17562#include "confdefs.h"
17563
b4085ce6 17564 #include <time.h>
698dcdb6
VZ
17565
17566int main() {
360d6699
VZ
17567
17568 int tz;
17569 tz = _timezone;
698dcdb6
VZ
17570
17571; return 0; }
17572EOF
b040e242 17573if { (eval echo configure:17574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17574 rm -rf conftest*
17575
360d6699 17576 wx_cv_var_timezone=_timezone
698dcdb6 17577
5357c8e8 17578else
698dcdb6
VZ
17579 echo "configure: failed program was:" >&5
17580 cat conftest.$ac_ext >&5
17581 rm -rf conftest*
17582
17583 cat > conftest.$ac_ext <<EOF
b040e242 17584#line 17585 "configure"
5357c8e8
VZ
17585#include "confdefs.h"
17586
b4085ce6 17587 #include <time.h>
698dcdb6
VZ
17588
17589int main() {
5357c8e8
VZ
17590
17591 int tz;
4f11a343 17592 tz = __timezone;
698dcdb6
VZ
17593
17594; return 0; }
17595EOF
b040e242 17596if { (eval echo configure:17597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17597 rm -rf conftest*
17598
4f11a343 17599 wx_cv_var_timezone=__timezone
698dcdb6 17600
360d6699 17601else
698dcdb6
VZ
17602 echo "configure: failed program was:" >&5
17603 cat conftest.$ac_ext >&5
17604 rm -rf conftest*
f9bc1684
VS
17605
17606 if test "$USE_DOS" = 0 ; then
17607 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17608 fi
17609
698dcdb6 17610
360d6699 17611fi
698dcdb6
VZ
17612rm -f conftest*
17613
17614
360d6699 17615fi
698dcdb6
VZ
17616rm -f conftest*
17617
17618
6232543b 17619fi
698dcdb6
VZ
17620rm -f conftest*
17621
17622
1e487827 17623fi
703e0a69 17624
698dcdb6
VZ
17625echo "$ac_t""$wx_cv_var_timezone" 1>&6
17626
f9bc1684 17627 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17628 cat >> confdefs.h <<EOF
360d6699
VZ
17629#define WX_TIMEZONE $wx_cv_var_timezone
17630EOF
17631
f9bc1684 17632 fi
698dcdb6
VZ
17633
17634 for ac_func in localtime
afc31813 17635do
698dcdb6 17636echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 17637echo "configure:17638: checking for $ac_func" >&5
698dcdb6
VZ
17638if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17639 echo $ac_n "(cached) $ac_c" 1>&6
17640else
17641 cat > conftest.$ac_ext <<EOF
b040e242 17642#line 17643 "configure"
10f2d63a 17643#include "confdefs.h"
afc31813 17644/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17645 which can conflict with char $ac_func(); below. */
afc31813
VZ
17646#include <assert.h>
17647/* Override any gcc2 internal prototype to avoid an error. */
17648/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17649 builtin and then its argument prototype would still apply. */
17650char $ac_func();
17651
17652int main() {
afc31813
VZ
17653
17654/* The GNU C library defines this for functions which it implements
17655 to always fail with ENOSYS. Some functions are actually named
17656 something starting with __ and the normal name is an alias. */
17657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17658choke me
17659#else
698dcdb6 17660$ac_func();
afc31813
VZ
17661#endif
17662
698dcdb6 17663; return 0; }
10f2d63a 17664EOF
b040e242 17665if { (eval echo configure:17666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17666 rm -rf conftest*
17667 eval "ac_cv_func_$ac_func=yes"
17668else
17669 echo "configure: failed program was:" >&5
17670 cat conftest.$ac_ext >&5
17671 rm -rf conftest*
17672 eval "ac_cv_func_$ac_func=no"
17673fi
17674rm -f conftest*
17675fi
afc31813 17676
698dcdb6
VZ
17677if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17678 echo "$ac_t""yes" 1>&6
17679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17680 cat >> confdefs.h <<EOF
17681#define $ac_tr_func 1
17682EOF
17683
17684else
17685 echo "$ac_t""no" 1>&6
afc31813
VZ
17686fi
17687done
17688
1e487827 17689
698dcdb6
VZ
17690 if test "$ac_cv_func_localtime" = "yes"; then
17691 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b040e242 17692echo "configure:17693: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17693if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17694 echo $ac_n "(cached) $ac_c" 1>&6
17695else
17696
17697 cat > conftest.$ac_ext <<EOF
b040e242 17698#line 17699 "configure"
0470b1e6
VZ
17699#include "confdefs.h"
17700
b4085ce6 17701 #include <time.h>
698dcdb6
VZ
17702
17703int main() {
0470b1e6
VZ
17704
17705 struct tm tm;
17706 tm.tm_gmtoff++;
698dcdb6
VZ
17707
17708; return 0; }
17709EOF
b040e242 17710if { (eval echo configure:17711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17711 rm -rf conftest*
17712
f03a98d8 17713 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17714
0470b1e6 17715else
698dcdb6
VZ
17716 echo "configure: failed program was:" >&5
17717 cat conftest.$ac_ext >&5
17718 rm -rf conftest*
17719 wx_cv_struct_tm_has_gmtoff=no
17720
0470b1e6 17721fi
698dcdb6
VZ
17722rm -f conftest*
17723
1e487827 17724fi
698dcdb6
VZ
17725
17726echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17727 fi
17728
17729 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17730 cat >> confdefs.h <<\EOF
6232543b
VS
17731#define WX_GMTOFF_IN_TM 1
17732EOF
0470b1e6 17733
3fcdd07b
VZ
17734 fi
17735
698dcdb6 17736 for ac_func in gettimeofday ftime
3fcdd07b 17737do
698dcdb6 17738echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 17739echo "configure:17740: checking for $ac_func" >&5
698dcdb6
VZ
17740if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17741 echo $ac_n "(cached) $ac_c" 1>&6
17742else
17743 cat > conftest.$ac_ext <<EOF
b040e242 17744#line 17745 "configure"
3fcdd07b
VZ
17745#include "confdefs.h"
17746/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17747 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17748#include <assert.h>
17749/* Override any gcc2 internal prototype to avoid an error. */
17750/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17751 builtin and then its argument prototype would still apply. */
17752char $ac_func();
17753
17754int main() {
3fcdd07b
VZ
17755
17756/* The GNU C library defines this for functions which it implements
17757 to always fail with ENOSYS. Some functions are actually named
17758 something starting with __ and the normal name is an alias. */
17759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17760choke me
17761#else
698dcdb6 17762$ac_func();
3fcdd07b
VZ
17763#endif
17764
698dcdb6
VZ
17765; return 0; }
17766EOF
b040e242 17767if { (eval echo configure:17768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17768 rm -rf conftest*
17769 eval "ac_cv_func_$ac_func=yes"
17770else
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774 eval "ac_cv_func_$ac_func=no"
17775fi
17776rm -f conftest*
17777fi
17778
17779if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17780 echo "$ac_t""yes" 1>&6
17781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17782 cat >> confdefs.h <<EOF
17783#define $ac_tr_func 1
3fcdd07b
VZ
17784EOF
17785 break
698dcdb6
VZ
17786else
17787 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17788fi
17789done
17790
afc31813 17791
698dcdb6
VZ
17792 if test "$ac_cv_func_gettimeofday" = "yes"; then
17793 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b040e242 17794echo "configure:17795: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17795if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17796 echo $ac_n "(cached) $ac_c" 1>&6
17797else
17798
17799
17800 ac_ext=C
17801# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17802ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17803ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17804ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17805cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17806
698dcdb6
VZ
17807
17808 cat > conftest.$ac_ext <<EOF
b040e242 17809#line 17810 "configure"
10f2d63a 17810#include "confdefs.h"
afc31813
VZ
17811
17812 #include <sys/time.h>
17813 #include <unistd.h>
698dcdb6
VZ
17814
17815int main() {
afc31813
VZ
17816
17817 struct timeval tv;
776862b4 17818 gettimeofday(&tv, NULL);
698dcdb6
VZ
17819
17820; return 0; }
17821EOF
b040e242 17822if { (eval echo configure:17823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17823 rm -rf conftest*
afc31813 17824 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17825else
698dcdb6
VZ
17826 echo "configure: failed program was:" >&5
17827 cat conftest.$ac_ext >&5
17828 rm -rf conftest*
17829 cat > conftest.$ac_ext <<EOF
b040e242 17830#line 17831 "configure"
10f2d63a 17831#include "confdefs.h"
afc31813
VZ
17832
17833 #include <sys/time.h>
17834 #include <unistd.h>
698dcdb6
VZ
17835
17836int main() {
afc31813
VZ
17837
17838 struct timeval tv;
17839 gettimeofday(&tv);
698dcdb6
VZ
17840
17841; return 0; }
17842EOF
b040e242 17843if { (eval echo configure:17844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17844 rm -rf conftest*
afc31813 17845 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17846else
698dcdb6
VZ
17847 echo "configure: failed program was:" >&5
17848 cat conftest.$ac_ext >&5
17849 rm -rf conftest*
776862b4
VZ
17850
17851 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17852 wx_cv_func_gettimeofday_has_2_args=unknown
17853
698dcdb6 17854
10f2d63a 17855fi
698dcdb6
VZ
17856rm -f conftest*
17857
10f2d63a 17858fi
698dcdb6 17859rm -f conftest*
afc31813 17860 ac_ext=c
698dcdb6 17861# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17862ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17863ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17864ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17865cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17866
698dcdb6 17867
afc31813 17868fi
698dcdb6
VZ
17869
17870echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17871
afc31813 17872 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17873 cat >> confdefs.h <<\EOF
afc31813
VZ
17874#define WX_GETTIMEOFDAY_NO_TZ 1
17875EOF
17876
17877 fi
17878 fi
17879
698dcdb6 17880 cat >> confdefs.h <<\EOF
afc31813
VZ
17881#define wxUSE_TIMEDATE 1
17882EOF
17883
17884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17885fi
17886
698dcdb6 17887
b089607b
VZ
17888if test "$TOOLKIT" != "MSW"; then
17889
3a922bb4
RL
17890 if test "$wxUSE_SOCKETS" = "yes"; then
17891 echo $ac_n "checking for socket""... $ac_c" 1>&6
b040e242 17892echo "configure:17893: checking for socket" >&5
698dcdb6
VZ
17893if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17894 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17895else
698dcdb6 17896 cat > conftest.$ac_ext <<EOF
b040e242 17897#line 17898 "configure"
c63c7106
VZ
17898#include "confdefs.h"
17899/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17900 which can conflict with char socket(); below. */
c63c7106
VZ
17901#include <assert.h>
17902/* Override any gcc2 internal prototype to avoid an error. */
17903/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17904 builtin and then its argument prototype would still apply. */
17905char socket();
17906
17907int main() {
c63c7106
VZ
17908
17909/* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912#if defined (__stub_socket) || defined (__stub___socket)
17913choke me
17914#else
698dcdb6 17915socket();
c63c7106
VZ
17916#endif
17917
698dcdb6
VZ
17918; return 0; }
17919EOF
b040e242 17920if { (eval echo configure:17921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17921 rm -rf conftest*
17922 eval "ac_cv_func_socket=yes"
17923else
17924 echo "configure: failed program was:" >&5
17925 cat conftest.$ac_ext >&5
17926 rm -rf conftest*
17927 eval "ac_cv_func_socket=no"
17928fi
17929rm -f conftest*
17930fi
17931
17932if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17933 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17934 :
17935else
698dcdb6
VZ
17936 echo "$ac_t""no" 1>&6
17937echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b040e242 17938echo "configure:17939: checking for socket in -lsocket" >&5
698dcdb6
VZ
17939ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17940if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17941 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17942else
698dcdb6 17943 ac_save_LIBS="$LIBS"
c63c7106 17944LIBS="-lsocket $LIBS"
698dcdb6 17945cat > conftest.$ac_ext <<EOF
b040e242 17946#line 17947 "configure"
c63c7106
VZ
17947#include "confdefs.h"
17948/* Override any gcc2 internal prototype to avoid an error. */
17949/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17950 builtin and then its argument prototype would still apply. */
17951char socket();
17952
17953int main() {
17954socket()
17955; return 0; }
17956EOF
b040e242 17957if { (eval echo configure:17958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17958 rm -rf conftest*
17959 eval "ac_cv_lib_$ac_lib_var=yes"
17960else
17961 echo "configure: failed program was:" >&5
17962 cat conftest.$ac_ext >&5
17963 rm -rf conftest*
17964 eval "ac_cv_lib_$ac_lib_var=no"
17965fi
17966rm -f conftest*
17967LIBS="$ac_save_LIBS"
17968
17969fi
17970if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17971 echo "$ac_t""yes" 1>&6
c63c7106 17972 INET_LINK="$INET_LINK -lsocket"
c63c7106 17973else
698dcdb6 17974 echo "$ac_t""no" 1>&6
afc31813 17975
3a922bb4
RL
17976 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17977 wxUSE_SOCKETS=no
17978
698dcdb6 17979
6232543b 17980fi
b089607b 17981
3a922bb4 17982
1e487827 17983fi
afc31813 17984
3a922bb4 17985 fi
51a9faba 17986
3a922bb4
RL
17987
17988 if test "$wxUSE_SOCKETS" = "yes" ; then
17989 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
b040e242 17990echo "configure:17991: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17991if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17992 echo $ac_n "(cached) $ac_c" 1>&6
17993else
17994
3a922bb4
RL
17995
17996 ac_ext=C
698dcdb6 17997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17998ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18001cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18002
698dcdb6 18003
3a922bb4 18004 cat > conftest.$ac_ext <<EOF
b040e242 18005#line 18006 "configure"
afc31813 18006#include "confdefs.h"
51a9faba 18007
3a922bb4
RL
18008 #include <sys/types.h>
18009 #include <sys/socket.h>
18010
698dcdb6 18011int main() {
51a9faba 18012
3a922bb4
RL
18013 socklen_t len;
18014 getsockname(0, 0, &len);
18015
698dcdb6
VZ
18016; return 0; }
18017EOF
b040e242 18018if { (eval echo configure:18019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18019 rm -rf conftest*
51a9faba 18020 wx_cv_type_getsockname3=socklen_t
afc31813 18021else
698dcdb6
VZ
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18024 rm -rf conftest*
18025 cat > conftest.$ac_ext <<EOF
b040e242 18026#line 18027 "configure"
afc31813 18027#include "confdefs.h"
51a9faba 18028
3a922bb4
RL
18029 #include <sys/types.h>
18030 #include <sys/socket.h>
18031
698dcdb6 18032int main() {
51a9faba 18033
3a922bb4
RL
18034 size_t len;
18035 getsockname(0, 0, &len);
18036
698dcdb6
VZ
18037; return 0; }
18038EOF
b040e242 18039if { (eval echo configure:18040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18040 rm -rf conftest*
51a9faba 18041 wx_cv_type_getsockname3=size_t
afc31813 18042else
698dcdb6
VZ
18043 echo "configure: failed program was:" >&5
18044 cat conftest.$ac_ext >&5
18045 rm -rf conftest*
18046 cat > conftest.$ac_ext <<EOF
b040e242 18047#line 18048 "configure"
afc31813 18048#include "confdefs.h"
51a9faba 18049
3a922bb4
RL
18050 #include <sys/types.h>
18051 #include <sys/socket.h>
18052
698dcdb6 18053int main() {
51a9faba 18054
3a922bb4
RL
18055 int len;
18056 getsockname(0, 0, &len);
18057
698dcdb6
VZ
18058; return 0; }
18059EOF
b040e242 18060if { (eval echo configure:18061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18061 rm -rf conftest*
51a9faba 18062 wx_cv_type_getsockname3=int
afc31813 18063else
698dcdb6
VZ
18064 echo "configure: failed program was:" >&5
18065 cat conftest.$ac_ext >&5
18066 rm -rf conftest*
18067 wx_cv_type_getsockname3=unknown
3a922bb4 18068
afc31813 18069fi
698dcdb6 18070rm -f conftest*
3a922bb4 18071
afc31813 18072fi
698dcdb6 18073rm -f conftest*
3a922bb4 18074
afc31813 18075fi
698dcdb6 18076rm -f conftest*
51a9faba 18077
3a922bb4 18078 ac_ext=c
698dcdb6 18079# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18080ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18081ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18082ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18083cross_compiling=$ac_cv_prog_cc_cross
afc31813 18084
3a922bb4 18085
51a9faba 18086fi
698dcdb6
VZ
18087
18088echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18089
3a922bb4
RL
18090 if test "$wx_cv_type_getsockname3" = "unknown"; then
18091 wxUSE_SOCKETS=no
18092 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18093 else
18094 cat >> confdefs.h <<EOF
51a9faba
VZ
18095#define SOCKLEN_T $wx_cv_type_getsockname3
18096EOF
18097
3a922bb4 18098 fi
51a9faba
VZ
18099 fi
18100fi
afc31813 18101
51a9faba 18102if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18103 cat >> confdefs.h <<\EOF
afc31813
VZ
18104#define wxUSE_SOCKETS 1
18105EOF
18106
70f7a477 18107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18108fi
18109
698dcdb6 18110
dc3d889d
VZ
18111if test "$wxUSE_GUI" = "yes"; then
18112
156b2523
GD
18113 if test "$TOOLKIT" = "MAC"; then
18114 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18115 wxUSE_JOYSTICK=no
18116 fi
18117 if test "$TOOLKIT" = "MOTIF"; then
18118 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18119 wxUSE_JOYSTICK=no
18120 fi
18121
3a922bb4
RL
18122 if test "$TOOLKIT" != "MSW"; then
18123 if test "$wxUSE_JOYSTICK" = "yes"; then
18124 for ac_hdr in linux/joystick.h
10f2d63a 18125do
698dcdb6
VZ
18126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 18128echo "configure:18129: checking for $ac_hdr" >&5
698dcdb6
VZ
18129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18130 echo $ac_n "(cached) $ac_c" 1>&6
18131else
18132 cat > conftest.$ac_ext <<EOF
b040e242 18133#line 18134 "configure"
10f2d63a 18134#include "confdefs.h"
698dcdb6
VZ
18135#include <$ac_hdr>
18136EOF
18137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 18138{ (eval echo configure:18139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18140if test -z "$ac_err"; then
18141 rm -rf conftest*
18142 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18143else
698dcdb6
VZ
18144 echo "$ac_err" >&5
18145 echo "configure: failed program was:" >&5
10f2d63a 18146 cat conftest.$ac_ext >&5
698dcdb6
VZ
18147 rm -rf conftest*
18148 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18149fi
698dcdb6 18150rm -f conftest*
10f2d63a 18151fi
698dcdb6
VZ
18152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18153 echo "$ac_t""yes" 1>&6
18154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18155 cat >> confdefs.h <<EOF
18156#define $ac_tr_hdr 1
10f2d63a 18157EOF
698dcdb6
VZ
18158
18159else
18160 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18161fi
18162done
18163
3a922bb4
RL
18164 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18165 wxUSE_JOYSTICK=no
156b2523 18166 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18167 fi
18168 fi
18169 fi
b089607b 18170
3a922bb4
RL
18171 if test "$wxUSE_JOYSTICK" = "yes"; then
18172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18173#define wxUSE_JOYSTICK 1
18174EOF
18175
3a922bb4
RL
18176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18177 fi
dc3d889d
VZ
18178fi
18179
698dcdb6 18180
b089607b
VZ
18181if test "$TOOLKIT" != "MSW"; then
18182
3a922bb4
RL
18183 HAVE_DL_FUNCS=0
18184 HAVE_SHL_FUNCS=0
0b9ab0bd 18185 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18186 if test "$USE_DARWIN" = 1; then
18187 HAVE_DL_FUNCS=1
18188 else
18189 for ac_func in dlopen
10f2d63a 18190do
698dcdb6 18191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 18192echo "configure:18193: checking for $ac_func" >&5
698dcdb6
VZ
18193if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18194 echo $ac_n "(cached) $ac_c" 1>&6
18195else
18196 cat > conftest.$ac_ext <<EOF
b040e242 18197#line 18198 "configure"
10f2d63a
VZ
18198#include "confdefs.h"
18199/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18200 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18201#include <assert.h>
18202/* Override any gcc2 internal prototype to avoid an error. */
18203/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18204 builtin and then its argument prototype would still apply. */
18205char $ac_func();
18206
18207int main() {
10f2d63a
VZ
18208
18209/* The GNU C library defines this for functions which it implements
18210 to always fail with ENOSYS. Some functions are actually named
18211 something starting with __ and the normal name is an alias. */
18212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18213choke me
18214#else
698dcdb6 18215$ac_func();
10f2d63a
VZ
18216#endif
18217
698dcdb6
VZ
18218; return 0; }
18219EOF
b040e242 18220if { (eval echo configure:18221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18221 rm -rf conftest*
18222 eval "ac_cv_func_$ac_func=yes"
18223else
18224 echo "configure: failed program was:" >&5
18225 cat conftest.$ac_ext >&5
18226 rm -rf conftest*
18227 eval "ac_cv_func_$ac_func=no"
18228fi
18229rm -f conftest*
18230fi
18231
18232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18233 echo "$ac_t""yes" 1>&6
18234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18235 cat >> confdefs.h <<EOF
18236#define $ac_tr_func 1
18237EOF
18238
3a922bb4 18239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18240#define HAVE_DLOPEN 1
18241EOF
18242
3a922bb4
RL
18243 HAVE_DL_FUNCS=1
18244
10f2d63a 18245else
698dcdb6
VZ
18246 echo "$ac_t""no" 1>&6
18247echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b040e242 18248echo "configure:18249: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18249ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18252else
698dcdb6 18253 ac_save_LIBS="$LIBS"
10f2d63a 18254LIBS="-ldl $LIBS"
698dcdb6 18255cat > conftest.$ac_ext <<EOF
b040e242 18256#line 18257 "configure"
10f2d63a
VZ
18257#include "confdefs.h"
18258/* Override any gcc2 internal prototype to avoid an error. */
18259/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18260 builtin and then its argument prototype would still apply. */
18261char dlopen();
18262
18263int main() {
18264dlopen()
18265; return 0; }
18266EOF
b040e242 18267if { (eval echo configure:18268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18268 rm -rf conftest*
18269 eval "ac_cv_lib_$ac_lib_var=yes"
18270else
18271 echo "configure: failed program was:" >&5
18272 cat conftest.$ac_ext >&5
18273 rm -rf conftest*
18274 eval "ac_cv_lib_$ac_lib_var=no"
18275fi
18276rm -f conftest*
18277LIBS="$ac_save_LIBS"
18278
18279fi
18280if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18281 echo "$ac_t""yes" 1>&6
18282
3a922bb4 18283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18284#define HAVE_DLOPEN 1
18285EOF
18286
3a922bb4 18287 HAVE_DL_FUNCS=1
3d63bc3a 18288 DL_LINK=" -ldl$DL_LINK"
3a922bb4 18289
10f2d63a 18290else
698dcdb6 18291 echo "$ac_t""no" 1>&6
10f2d63a 18292
3a922bb4 18293 for ac_func in shl_load
10f2d63a 18294do
698dcdb6 18295echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 18296echo "configure:18297: checking for $ac_func" >&5
698dcdb6
VZ
18297if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18298 echo $ac_n "(cached) $ac_c" 1>&6
18299else
18300 cat > conftest.$ac_ext <<EOF
b040e242 18301#line 18302 "configure"
10f2d63a
VZ
18302#include "confdefs.h"
18303/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18304 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18305#include <assert.h>
18306/* Override any gcc2 internal prototype to avoid an error. */
18307/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18308 builtin and then its argument prototype would still apply. */
18309char $ac_func();
18310
18311int main() {
10f2d63a
VZ
18312
18313/* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18317choke me
18318#else
698dcdb6 18319$ac_func();
10f2d63a
VZ
18320#endif
18321
698dcdb6
VZ
18322; return 0; }
18323EOF
b040e242 18324if { (eval echo configure:18325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18325 rm -rf conftest*
18326 eval "ac_cv_func_$ac_func=yes"
18327else
18328 echo "configure: failed program was:" >&5
18329 cat conftest.$ac_ext >&5
18330 rm -rf conftest*
18331 eval "ac_cv_func_$ac_func=no"
18332fi
18333rm -f conftest*
18334fi
18335
18336if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18337 echo "$ac_t""yes" 1>&6
18338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18339 cat >> confdefs.h <<EOF
18340#define $ac_tr_func 1
18341EOF
18342
3a922bb4 18343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18344#define HAVE_SHL_LOAD 1
18345EOF
18346
3a922bb4
RL
18347 HAVE_SHL_FUNCS=1
18348
10f2d63a 18349else
698dcdb6
VZ
18350 echo "$ac_t""no" 1>&6
18351echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
b040e242 18352echo "configure:18353: checking for dld in -lshl_load" >&5
698dcdb6
VZ
18353ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18355 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18356else
698dcdb6 18357 ac_save_LIBS="$LIBS"
f6bcfd97 18358LIBS="-lshl_load $LIBS"
698dcdb6 18359cat > conftest.$ac_ext <<EOF
b040e242 18360#line 18361 "configure"
f6bcfd97
BP
18361#include "confdefs.h"
18362/* Override any gcc2 internal prototype to avoid an error. */
18363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18364 builtin and then its argument prototype would still apply. */
18365char dld();
18366
18367int main() {
18368dld()
18369; return 0; }
18370EOF
b040e242 18371if { (eval echo configure:18372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18372 rm -rf conftest*
18373 eval "ac_cv_lib_$ac_lib_var=yes"
18374else
18375 echo "configure: failed program was:" >&5
18376 cat conftest.$ac_ext >&5
18377 rm -rf conftest*
18378 eval "ac_cv_lib_$ac_lib_var=no"
18379fi
18380rm -f conftest*
18381LIBS="$ac_save_LIBS"
f6bcfd97 18382
698dcdb6
VZ
18383fi
18384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386
3a922bb4 18387 HAVE_SHL_FUNCS=1
3d63bc3a 18388 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18389
698dcdb6
VZ
18390else
18391 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18392fi
18393
3a922bb4 18394
10f2d63a
VZ
18395fi
18396done
18397
3a922bb4 18398
10f2d63a
VZ
18399fi
18400
3a922bb4 18401
10f2d63a
VZ
18402fi
18403done
18404
1e487827 18405
3a922bb4
RL
18406 if test "$HAVE_DL_FUNCS" = 1; then
18407 for ac_func in dlerror
f6bcfd97 18408do
698dcdb6 18409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b040e242 18410echo "configure:18411: checking for $ac_func" >&5
698dcdb6
VZ
18411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18412 echo $ac_n "(cached) $ac_c" 1>&6
18413else
18414 cat > conftest.$ac_ext <<EOF
b040e242 18415#line 18416 "configure"
f6bcfd97
BP
18416#include "confdefs.h"
18417/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18418 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
18419#include <assert.h>
18420/* Override any gcc2 internal prototype to avoid an error. */
18421/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18422 builtin and then its argument prototype would still apply. */
18423char $ac_func();
18424
18425int main() {
f6bcfd97
BP
18426
18427/* The GNU C library defines this for functions which it implements
18428 to always fail with ENOSYS. Some functions are actually named
18429 something starting with __ and the normal name is an alias. */
18430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18431choke me
18432#else
698dcdb6 18433$ac_func();
f6bcfd97
BP
18434#endif
18435
698dcdb6
VZ
18436; return 0; }
18437EOF
b040e242 18438if { (eval echo configure:18439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18439 rm -rf conftest*
18440 eval "ac_cv_func_$ac_func=yes"
18441else
18442 echo "configure: failed program was:" >&5
18443 cat conftest.$ac_ext >&5
18444 rm -rf conftest*
18445 eval "ac_cv_func_$ac_func=no"
18446fi
18447rm -f conftest*
18448fi
18449
18450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18451 echo "$ac_t""yes" 1>&6
18452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18453 cat >> confdefs.h <<EOF
18454#define $ac_tr_func 1
18455EOF
18456 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18457#define HAVE_DLERROR 1
18458EOF
18459
18460else
698dcdb6
VZ
18461 echo "$ac_t""no" 1>&6
18462echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
b040e242 18463echo "configure:18464: checking for dlerror in -ldl" >&5
698dcdb6
VZ
18464ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18466 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18467else
698dcdb6 18468 ac_save_LIBS="$LIBS"
f6bcfd97 18469LIBS="-ldl $LIBS"
698dcdb6 18470cat > conftest.$ac_ext <<EOF
b040e242 18471#line 18472 "configure"
f6bcfd97
BP
18472#include "confdefs.h"
18473/* Override any gcc2 internal prototype to avoid an error. */
18474/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18475 builtin and then its argument prototype would still apply. */
18476char dlerror();
18477
18478int main() {
18479dlerror()
18480; return 0; }
18481EOF
b040e242 18482if { (eval echo configure:18483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18483 rm -rf conftest*
18484 eval "ac_cv_lib_$ac_lib_var=yes"
18485else
18486 echo "configure: failed program was:" >&5
18487 cat conftest.$ac_ext >&5
18488 rm -rf conftest*
18489 eval "ac_cv_lib_$ac_lib_var=no"
18490fi
18491rm -f conftest*
18492LIBS="$ac_save_LIBS"
18493
18494fi
18495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18496 echo "$ac_t""yes" 1>&6
18497 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18498#define HAVE_DLERROR 1
18499EOF
18500
698dcdb6
VZ
18501else
18502 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18503fi
18504
18505fi
18506done
18507
3a922bb4
RL
18508 fi
18509 fi
f6bcfd97 18510
3a922bb4
RL
18511 if test "$HAVE_DL_FUNCS" = 0; then
18512 if test "$HAVE_SHL_FUNCS" = 0; then
18513 if test "$USE_UNIX" = 1; then
18514 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 18515 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
18516 wxUSE_DYNLIB_CLASS=no
18517 else
18518 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18519 fi
18520 fi
10f2d63a
VZ
18521 fi
18522 fi
18523fi
18524
0b9ab0bd
RL
18525if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18526 cat >> confdefs.h <<\EOF
18527#define wxUSE_DYNAMIC_LOADER 1
18528EOF
18529
18530elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 18531 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18532#define wxUSE_DYNLIB_CLASS 1
18533EOF
18534
18535fi
18536
698dcdb6 18537
1e6feb95
VZ
18538if test "$wxUSE_FONTMAP" = "yes" ; then
18539 cat >> confdefs.h <<\EOF
18540#define wxUSE_FONTMAP 1
18541EOF
18542
18543fi
18544
10f2d63a 18545if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 18546 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18547#define wxUSE_UNICODE 1
18548EOF
18549
a72a4bfa
VS
18550
18551 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18552 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
b040e242 18553echo "configure:18554: checking for main in -lunicows" >&5
a72a4bfa
VS
18554ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18556 echo $ac_n "(cached) $ac_c" 1>&6
18557else
18558 ac_save_LIBS="$LIBS"
18559LIBS="-lunicows $LIBS"
18560cat > conftest.$ac_ext <<EOF
b040e242 18561#line 18562 "configure"
a72a4bfa
VS
18562#include "confdefs.h"
18563
18564int main() {
18565main()
18566; return 0; }
18567EOF
b040e242 18568if { (eval echo configure:18569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
18569 rm -rf conftest*
18570 eval "ac_cv_lib_$ac_lib_var=yes"
18571else
18572 echo "configure: failed program was:" >&5
18573 cat conftest.$ac_ext >&5
18574 rm -rf conftest*
18575 eval "ac_cv_lib_$ac_lib_var=no"
18576fi
18577rm -f conftest*
18578LIBS="$ac_save_LIBS"
18579
18580fi
18581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18582 echo "$ac_t""yes" 1>&6
18583
18584 cat >> confdefs.h <<\EOF
18585#define wxUSE_UNICODE_MSLU 1
18586EOF
18587
18588
18589else
18590 echo "$ac_t""no" 1>&6
18591
18592 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18593 Applications will only run on Windows NT/2000/XP!" 1>&2
18594 wxUSE_UNICODE_MSLU=no
18595
18596fi
18597
18598 fi
10f2d63a
VZ
18599fi
18600
10f2d63a 18601if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 18602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18603#define wxUSE_EXPERIMENTAL_PRINTF 1
18604EOF
18605
18606fi
18607
698dcdb6 18608
698dcdb6 18609
10f2d63a
VZ
18610IODBC_C_SRC=""
18611if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 18612 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18613#define wxUSE_ODBC 1
18614EOF
18615
18616 WXODBCFLAG="-D_IODBC_"
18617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
18618fi
18619
698dcdb6 18620
10f2d63a 18621if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 18622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18623#define wxUSE_POSTSCRIPT 1
18624EOF
18625
18626fi
18627
698dcdb6 18628cat >> confdefs.h <<\EOF
10f2d63a
VZ
18629#define wxUSE_AFM_FOR_POSTSCRIPT 1
18630EOF
18631
698dcdb6
VZ
18632
18633cat >> confdefs.h <<\EOF
10f2d63a
VZ
18634#define wxUSE_NORMALIZED_PS_FONTS 1
18635EOF
18636
698dcdb6
VZ
18637
18638
10f2d63a 18639if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18640 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18641#define wxUSE_CONSTRAINTS 1
18642EOF
18643
18644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18645fi
18646
18647if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18648 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18649 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18650 wxUSE_MDI_ARCHITECTURE=no
18651 fi
18652
18653 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18655#define wxUSE_MDI_ARCHITECTURE 1
18656EOF
18657
fc26f4ab
RL
18658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18659 fi
10f2d63a
VZ
18660fi
18661
18662if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18663 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18664#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18665EOF
18666
18667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18668 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18670 fi
18671fi
18672
18673if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18674 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18675#define wxUSE_HELP 1
18676EOF
18677
18678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18679
77e13408 18680 if test "$wxUSE_MSW" = 1; then
031d8228 18681 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18682 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18683echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
b040e242 18684echo "configure:18685: checking for htmlhelp.h" >&5
29fd3c0c
VS
18685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18686 echo $ac_n "(cached) $ac_c" 1>&6
18687else
18688 cat > conftest.$ac_ext <<EOF
b040e242 18689#line 18690 "configure"
29fd3c0c
VS
18690#include "confdefs.h"
18691#include <htmlhelp.h>
18692EOF
18693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 18694{ (eval echo configure:18695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18696if test -z "$ac_err"; then
18697 rm -rf conftest*
18698 eval "ac_cv_header_$ac_safe=yes"
18699else
18700 echo "$ac_err" >&5
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18703 rm -rf conftest*
18704 eval "ac_cv_header_$ac_safe=no"
18705fi
18706rm -f conftest*
18707fi
18708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18709 echo "$ac_t""yes" 1>&6
18710
18711 cat >> confdefs.h <<\EOF
18712#define wxUSE_MS_HTML_HELP 1
18713EOF
18714
18715
18716else
18717 echo "$ac_t""no" 1>&6
18718
fc26f4ab 18719 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18720 wxUSE_MS_HTML_HELP=no
18721
18722fi
18723
3e44f09d 18724 fi
3379ed37 18725 fi
031d8228
VS
18726
18727 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18728 if test "$wxUSE_HTML" = "yes"; then
18729 cat >> confdefs.h <<\EOF
18730#define wxUSE_WXHTML_HELP 1
18731EOF
18732
18733 else
18734 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18735 wxUSE_WXHTML_HELP=no
18736 fi
18737 fi
10f2d63a
VZ
18738fi
18739
18740if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18741 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18742 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18743 else
698dcdb6 18744 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18745#define wxUSE_PRINTING_ARCHITECTURE 1
18746EOF
18747
18748 fi
18749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18750fi
18751
18752if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18753 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18754#define wxUSE_PROLOGIO 1
18755EOF
18756
18757fi
18758
18759if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18760 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18761#define wxUSE_RESOURCES 1
18762EOF
18763
3379ed37 18764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18765fi
18766
18767if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18768 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18769#define wxUSE_X_RESOURCES 1
18770EOF
18771
18772fi
18773
698dcdb6 18774
77e13408
RL
18775if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18776 -o "$wxUSE_CLIPBOARD" = "yes" \
18777 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18778 for ac_hdr in ole2.h
10f2d63a 18779do
698dcdb6
VZ
18780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b040e242 18782echo "configure:18783: checking for $ac_hdr" >&5
698dcdb6
VZ
18783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18784 echo $ac_n "(cached) $ac_c" 1>&6
18785else
18786 cat > conftest.$ac_ext <<EOF
b040e242 18787#line 18788 "configure"
10f2d63a 18788#include "confdefs.h"
698dcdb6
VZ
18789#include <$ac_hdr>
18790EOF
18791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b040e242 18792{ (eval echo configure:18793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18794if test -z "$ac_err"; then
18795 rm -rf conftest*
18796 eval "ac_cv_header_$ac_safe=yes"
1e487827 18797else
698dcdb6
VZ
18798 echo "$ac_err" >&5
18799 echo "configure: failed program was:" >&5
10f2d63a 18800 cat conftest.$ac_ext >&5
698dcdb6
VZ
18801 rm -rf conftest*
18802 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18803fi
698dcdb6 18804rm -f conftest*
10f2d63a 18805fi
698dcdb6
VZ
18806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18807 echo "$ac_t""yes" 1>&6
18808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18809 cat >> confdefs.h <<EOF
18810#define $ac_tr_hdr 1
10f2d63a 18811EOF
698dcdb6
VZ
18812
18813else
18814 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18815fi
18816done
18817
698dcdb6 18818
2b9bdf71
VZ
18819 if test "$ac_cv_header_ole2_h" = "yes" ; then
18820 if test "$GCC" = yes ; then
18821 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18822 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18823 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18824 cat >> confdefs.h <<\EOF
4f11a343
VS
18825#define wxUSE_OLE 1
18826EOF
18827
b64f0a5f 18828
2b9bdf71
VZ
18829 fi
18830
18831 cat >> confdefs.h <<\EOF
18832#define wxUSE_DATAOBJ 1
18833EOF
18834
18835 else
18836 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18837
18838 wxUSE_CLIPBOARD=no
18839 wxUSE_DRAG_AND_DROP=no
18840 wxUSE_DATAOBJ=no
18841 fi
18842
77e13408 18843 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18844 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18845#define wxUSE_METAFILE 1
18846EOF
18847
2b9bdf71
VZ
18848
18849 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18850#define wxUSE_ENH_METAFILE 1
18851EOF
18852
2b9bdf71
VZ
18853 fi
18854fi
18855
18856if test "$wxUSE_IPC" = "yes"; then
18857 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18858 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18859 fi
18860
18861 cat >> confdefs.h <<\EOF
18862#define wxUSE_IPC 1
18863EOF
18864
18865fi
18866
18867if test "$wxUSE_CLIPBOARD" = "yes"; then
18868 cat >> confdefs.h <<\EOF
18869#define wxUSE_CLIPBOARD 1
18870EOF
18871
673f4220 18872
e33ef661 18873 cat >> confdefs.h <<\EOF
673f4220
VZ
18874#define wxUSE_DATAOBJ 1
18875EOF
18876
2b9bdf71
VZ
18877fi
18878
18879if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18880 if test "$wxUSE_GTK" = 1; then
18881 if test "$WXGTK12" != 1; then
156b2523 18882 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18883 wxUSE_DRAG_AND_DROP=no
18884 fi
18885 fi
18886
2b9bdf71 18887 if test "$wxUSE_MOTIF" = 1; then
156b2523 18888 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18889 wxUSE_DRAG_AND_DROP=no
18890 fi
18891
10f2d63a 18892 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18893 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18894#define wxUSE_DRAG_AND_DROP 1
18895EOF
18896
18897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18898 fi
18899
18900fi
18901
18902if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18903 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18904#define wxUSE_SPLINES 1
18905EOF
18906
18907fi
18908
698dcdb6 18909
1e6feb95
VZ
18910USES_CONTROLS=0
18911if test "$wxUSE_CONTROLS" = "yes"; then
18912 USES_CONTROLS=1
18913fi
18914
10f2d63a 18915if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18916 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18917#define wxUSE_ACCEL 1
18918EOF
18919
1e6feb95
VZ
18920 USES_CONTROLS=1
18921fi
18922
18923if test "$wxUSE_BUTTON" = "yes"; then
18924 cat >> confdefs.h <<\EOF
18925#define wxUSE_BUTTON 1
18926EOF
18927
18928 USES_CONTROLS=1
18929fi
18930
18931if test "$wxUSE_BMPBUTTON" = "yes"; then
18932 cat >> confdefs.h <<\EOF
18933#define wxUSE_BMPBUTTON 1
18934EOF
18935
18936 USES_CONTROLS=1
18937fi
18938
18939if test "$wxUSE_CALCTRL" = "yes"; then
18940 cat >> confdefs.h <<\EOF
18941#define wxUSE_CALENDARCTRL 1
18942EOF
18943
18944 USES_CONTROLS=1
18945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18946fi
18947
18948if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18949 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18950#define wxUSE_CARET 1
18951EOF
18952
1e6feb95 18953 USES_CONTROLS=1
10f2d63a
VZ
18954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18955fi
18956
18957if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18958 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18959#define wxUSE_COMBOBOX 1
18960EOF
18961
1e6feb95 18962 USES_CONTROLS=1
10f2d63a
VZ
18963fi
18964
18965if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18966 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18967#define wxUSE_CHOICE 1
18968EOF
18969
1e6feb95 18970 USES_CONTROLS=1
10f2d63a
VZ
18971fi
18972
18973if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18975#define wxUSE_CHECKBOX 1
18976EOF
18977
1e6feb95 18978 USES_CONTROLS=1
10f2d63a
VZ
18979fi
18980
18981if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18982 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18983#define wxUSE_CHECKLISTBOX 1
18984EOF
18985
1e6feb95 18986 USES_CONTROLS=1
10f2d63a
VZ
18987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18988fi
18989
18990if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18992#define wxUSE_GAUGE 1
18993EOF
18994
1e6feb95 18995 USES_CONTROLS=1
10f2d63a
VZ
18996fi
18997
d6a55c4b
VZ
18998if test "$wxUSE_NEW_GRID" = "yes"; then
18999 wxUSE_GRID="yes"
698dcdb6 19000 cat >> confdefs.h <<\EOF
d6a55c4b 19001#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19002EOF
19003
1e6feb95 19004 USES_CONTROLS=1
d6a55c4b 19005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19006fi
19007
d6a55c4b 19008if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19009 cat >> confdefs.h <<\EOF
d6a55c4b 19010#define wxUSE_GRID 1
10f2d63a
VZ
19011EOF
19012
1e6feb95 19013 USES_CONTROLS=1
d6a55c4b 19014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19015fi
19016
19017if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19018 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19019#define wxUSE_IMAGLIST 1
19020EOF
19021
19022fi
19023
19024if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19025 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19026#define wxUSE_LISTBOX 1
19027EOF
19028
1e6feb95 19029 USES_CONTROLS=1
10f2d63a
VZ
19030fi
19031
19032if test "$wxUSE_LISTCTRL" = "yes"; then
19033 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19035#define wxUSE_LISTCTRL 1
19036EOF
19037
1e6feb95 19038 USES_CONTROLS=1
10f2d63a
VZ
19039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19040 else
698dcdb6 19041 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19042 fi
19043fi
19044
19045if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19046 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19047#define wxUSE_NOTEBOOK 1
19048EOF
19049
1e6feb95 19050 USES_CONTROLS=1
10f2d63a
VZ
19051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19052fi
19053
24176f2c
GD
19054if test "$wxUSE_PROPSHEET" = "yes"; then
19055 cat >> confdefs.h <<\EOF
19056#define wxUSE_PROPSHEET 1
19057EOF
19058
19059 USES_CONTROLS=1
19060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19061fi
19062
10f2d63a 19063if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19065#define wxUSE_RADIOBOX 1
19066EOF
19067
1e6feb95 19068 USES_CONTROLS=1
10f2d63a
VZ
19069fi
19070
19071if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19073#define wxUSE_RADIOBTN 1
19074EOF
19075
1e6feb95 19076 USES_CONTROLS=1
10f2d63a
VZ
19077fi
19078
19079if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19081#define wxUSE_SASH 1
19082EOF
19083
19084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19085fi
19086
19087if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19089#define wxUSE_SCROLLBAR 1
19090EOF
19091
1e6feb95 19092 USES_CONTROLS=1
741a9306 19093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19094fi
19095
19096if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19098#define wxUSE_SLIDER 1
19099EOF
19100
1e6feb95 19101 USES_CONTROLS=1
10f2d63a
VZ
19102fi
19103
19104if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19106#define wxUSE_SPINBTN 1
19107EOF
19108
1e6feb95 19109 USES_CONTROLS=1
10f2d63a
VZ
19110fi
19111
56cfaa52 19112if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19113 cat >> confdefs.h <<\EOF
56cfaa52
RR
19114#define wxUSE_SPINCTRL 1
19115EOF
19116
1e6feb95 19117 USES_CONTROLS=1
56cfaa52
RR
19118fi
19119
10f2d63a 19120if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19122#define wxUSE_SPLITTER 1
19123EOF
19124
19125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19126fi
19127
19128if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19130#define wxUSE_STATBMP 1
19131EOF
19132
1e6feb95 19133 USES_CONTROLS=1
10f2d63a
VZ
19134fi
19135
19136if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19138#define wxUSE_STATBOX 1
19139EOF
19140
1e6feb95
VZ
19141 USES_CONTROLS=1
19142fi
19143
19144if test "$wxUSE_STATTEXT" = "yes"; then
19145 cat >> confdefs.h <<\EOF
19146#define wxUSE_STATTEXT 1
19147EOF
19148
19149 USES_CONTROLS=1
10f2d63a
VZ
19150fi
19151
19152if test "$wxUSE_STATLINE" = "yes"; then
19153 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19154 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19155 else
698dcdb6 19156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19157#define wxUSE_STATLINE 1
19158EOF
19159
1e6feb95 19160 USES_CONTROLS=1
10f2d63a
VZ
19161 fi
19162fi
19163
19164if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19165 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19166#define wxUSE_STATUSBAR 1
19167EOF
19168
1e6feb95 19169 USES_CONTROLS=1
698dcdb6 19170
2286341c 19171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19172fi
19173
19174if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19176#define wxUSE_TAB_DIALOG 1
19177EOF
19178
19179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19180fi
19181
1e6feb95
VZ
19182if test "$wxUSE_TEXTCTRL" = "yes"; then
19183 cat >> confdefs.h <<\EOF
19184#define wxUSE_TEXTCTRL 1
19185EOF
19186
19187 USES_CONTROLS=1
19188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19189fi
19190
1db8dc4a 19191if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19192 if test "$wxUSE_MAC" = 1; then
19193 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19194 wxUSE_TOGGLEBTN=no
19195 fi
19196 if test "$wxUSE_UNIVERSAL" = "yes"; then
19197 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
19198 wxUSE_TOGGLEBTN=no
19199 fi
19200
19201 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19202 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19203#define wxUSE_TOGGLEBTN 1
19204EOF
19205
1e6feb95 19206 USES_CONTROLS=1
a45d7ab7 19207 fi
1db8dc4a
VZ
19208fi
19209
360d6699 19210if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19211 cat >> confdefs.h <<\EOF
360d6699
VZ
19212#define wxUSE_TOOLBAR_SIMPLE 1
19213EOF
19214
19215 wxUSE_TOOLBAR="yes"
1e6feb95 19216 USES_CONTROLS=1
360d6699
VZ
19217fi
19218
10f2d63a 19219if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19221#define wxUSE_TOOLBAR 1
19222EOF
19223
1e6feb95 19224 USES_CONTROLS=1
698dcdb6 19225
360d6699
VZ
19226 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19227 wxUSE_TOOLBAR_NATIVE="yes"
19228 fi
19229
1e6feb95
VZ
19230 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19231 cat >> confdefs.h <<\EOF
360d6699
VZ
19232#define wxUSE_TOOLBAR_NATIVE 1
19233EOF
19234
1e6feb95
VZ
19235 USES_CONTROLS=1
19236 fi
19237
19238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19239fi
19240
10f2d63a
VZ
19241if test "$wxUSE_TOOLTIPS" = "yes"; then
19242 if test "$wxUSE_MOTIF" = 1; then
156b2523 19243 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19244 else
19245 if test "$wxUSE_WINE" = 1; then
156b2523 19246 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19247 else
69d27ff7 19248 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19249 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
19250 else
19251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19252#define wxUSE_TOOLTIPS 1
19253EOF
19254
69d27ff7 19255 fi
10f2d63a
VZ
19256 fi
19257 fi
19258fi
19259
19260if test "$wxUSE_TREECTRL" = "yes"; then
19261 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19263#define wxUSE_TREECTRL 1
19264EOF
19265
1e6feb95 19266 USES_CONTROLS=1
10f2d63a
VZ
19267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19268 else
698dcdb6 19269 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19270 fi
19271fi
19272
9f41d601 19273if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19274 if test "$wxUSE_MAC" = 1; then
156b2523 19275 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19276 else
485cf710
VZ
19277 if test "$wxUSE_MOTIF" = 1; then
19278 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19279 else
19280 cat >> confdefs.h <<\EOF
9f41d601
RR
19281#define wxUSE_POPUPWIN 1
19282EOF
19283
9926e4a4 19284
485cf710
VZ
19285 USES_CONTROLS=1
19286 fi
6abe4b65 19287 fi
9f41d601
RR
19288fi
19289
dd964dcc
VZ
19290if test "$wxUSE_TIPWINDOW" = "yes"; then
19291 cat >> confdefs.h <<\EOF
19292#define wxUSE_TIPWINDOW 1
19293EOF
19294
19295fi
19296
1e6feb95
VZ
19297if test "$USES_CONTROLS" = 1; then
19298 cat >> confdefs.h <<\EOF
19299#define wxUSE_CONTROLS 1
10f2d63a
VZ
19300EOF
19301
10f2d63a
VZ
19302fi
19303
1e6feb95 19304
24176f2c
GD
19305if test "$wxUSE_TREELAYOUT" = "yes"; then
19306 cat >> confdefs.h <<\EOF
19307#define wxUSE_TREELAYOUT 1
19308EOF
19309
19310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19311fi
1e6feb95 19312
24fd6d87
VZ
19313if test "$wxUSE_DRAGIMAGE" = "yes"; then
19314 cat >> confdefs.h <<\EOF
19315#define wxUSE_DRAGIMAGE 1
19316EOF
19317
19318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19319fi
19320
1e6feb95 19321if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 19322 cat >> confdefs.h <<\EOF
1e6feb95 19323#define wxUSE_MENUS 1
10f2d63a
VZ
19324EOF
19325
1e6feb95 19326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
19327fi
19328
1e6feb95
VZ
19329if test "$wxUSE_METAFILE" = "yes"; then
19330 cat >> confdefs.h <<\EOF
19331#define wxUSE_METAFILE 1
10f2d63a
VZ
19332EOF
19333
10f2d63a
VZ
19334fi
19335
1e6feb95
VZ
19336if test "$wxUSE_MIMETYPE" = "yes"; then
19337 cat >> confdefs.h <<\EOF
19338#define wxUSE_MIMETYPE 1
10f2d63a
VZ
19339EOF
19340
10f2d63a
VZ
19341fi
19342
3e44f09d
VZ
19343if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19344 cat >> confdefs.h <<\EOF
19345#define wxUSE_SYSTEM_OPTIONS 1
19346EOF
19347
19348fi
19349
4cdb0ab0 19350if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
19351 if test "$wxUSE_SOCKETS" != "yes"; then
19352 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19353 wxUSE_PROTOCOL=no
19354 fi
19355
19356 if test "$wxUSE_PROTOCOL" = "yes"; then
19357 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19358#define wxUSE_PROTOCOL 1
19359EOF
19360
19361
3954f9ca
VS
19362 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19363 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19364#define wxUSE_PROTOCOL_HTTP 1
19365EOF
19366
3954f9ca
VS
19367 fi
19368 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19369 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19370#define wxUSE_PROTOCOL_FTP 1
19371EOF
19372
3954f9ca
VS
19373 fi
19374 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19375 cat >> confdefs.h <<\EOF
19376#define wxUSE_PROTOCOL_FILE 1
19377EOF
19378
19379 fi
4cdb0ab0 19380 fi
3954f9ca
VS
19381fi
19382
19383if test "$wxUSE_URL" = "yes"; then
19384 if test "$wxUSE_PROTOCOL" != "yes"; then
19385 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19386 wxUSE_URL=no
19387 fi
19388 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 19389 cat >> confdefs.h <<\EOF
3954f9ca 19390#define wxUSE_URL 1
4cdb0ab0
VS
19391EOF
19392
19393 fi
19394fi
19395
10f2d63a 19396if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 19397 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19398#define wxUSE_MINIFRAME 1
19399EOF
19400
19401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19402fi
19403
19404if test "$wxUSE_HTML" = "yes"; then
698dcdb6 19405 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19406#define wxUSE_HTML 1
19407EOF
19408
19409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
19410fi
19411
19412if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 19413 cat >> confdefs.h <<\EOF
1e487827
VS
19414#define wxUSE_VALIDATORS 1
19415EOF
703e0a69 19416
698dcdb6
VZ
19417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19418fi
19419
edae8572
VZ
19420if test "$wxUSE_PALETTE" = "yes" ; then
19421 cat >> confdefs.h <<\EOF
19422#define wxUSE_PALETTE 1
19423EOF
19424
19425fi
19426
698dcdb6
VZ
19427if test "$wxUSE_IMAGE" = "yes" ; then
19428 cat >> confdefs.h <<\EOF
19429#define wxUSE_IMAGE 1
19430EOF
19431
19432fi
19433
19434if test "$wxUSE_GIF" = "yes" ; then
19435 cat >> confdefs.h <<\EOF
19436#define wxUSE_GIF 1
19437EOF
19438
19439fi
19440
19441if test "$wxUSE_PCX" = "yes" ; then
19442 cat >> confdefs.h <<\EOF
19443#define wxUSE_PCX 1
19444EOF
19445
19446fi
19447
4b6b4dfc
RR
19448if test "$wxUSE_IFF" = "yes" ; then
19449 cat >> confdefs.h <<\EOF
19450#define wxUSE_IFF 1
19451EOF
19452
19453fi
19454
698dcdb6
VZ
19455if test "$wxUSE_PNM" = "yes" ; then
19456 cat >> confdefs.h <<\EOF
19457#define wxUSE_PNM 1
19458EOF
19459
19460fi
19461
19462if test "$wxUSE_XPM" = "yes" ; then
19463 cat >> confdefs.h <<\EOF
19464#define wxUSE_XPM 1
19465EOF
19466
19467fi
19468
658974ae
VS
19469if test "$wxUSE_ICO_CUR" = "yes" ; then
19470 cat >> confdefs.h <<\EOF
19471#define wxUSE_ICO_CUR 1
19472EOF
19473
19474fi
19475
a72a4bfa
VS
19476if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19477 LIBS=" -lunicows $LIBS"
19478fi
19479
698dcdb6 19480
1e6feb95
VZ
19481if test "$wxUSE_CHOICEDLG" = "yes"; then
19482 cat >> confdefs.h <<\EOF
19483#define wxUSE_CHOICEDLG 1
19484EOF
19485
19486fi
19487
19488if test "$wxUSE_COLOURDLG" = "yes"; then
19489 cat >> confdefs.h <<\EOF
19490#define wxUSE_COLOURDLG 1
19491EOF
19492
19493fi
19494
19495if test "$wxUSE_FILEDLG" = "yes"; then
19496 cat >> confdefs.h <<\EOF
19497#define wxUSE_FILEDLG 1
19498EOF
19499
19500fi
19501
8db37e06
VZ
19502if test "$wxUSE_FINDREPLDLG" = "yes"; then
19503 cat >> confdefs.h <<\EOF
19504#define wxUSE_FINDREPLDLG 1
19505EOF
19506
19507fi
19508
1e6feb95
VZ
19509if test "$wxUSE_FONTDLG" = "yes"; then
19510 cat >> confdefs.h <<\EOF
19511#define wxUSE_FONTDLG 1
19512EOF
19513
19514fi
19515
19516if test "$wxUSE_DIRDLG" = "yes"; then
19517 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19518 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19519 else
19520 if test "$wxUSE_TREECTRL" != "yes"; then
19521 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19522 else
19523 cat >> confdefs.h <<\EOF
19524#define wxUSE_DIRDLG 1
19525EOF
19526
19527 fi
19528 fi
19529fi
19530
19531if test "$wxUSE_MSGDLG" = "yes"; then
19532 cat >> confdefs.h <<\EOF
19533#define wxUSE_MSGDLG 1
19534EOF
19535
19536fi
19537
19538if test "$wxUSE_NUMBERDLG" = "yes"; then
19539 cat >> confdefs.h <<\EOF
19540#define wxUSE_NUMBERDLG 1
19541EOF
19542
19543fi
19544
19545if test "$wxUSE_PROGRESSDLG" = "yes"; then
19546 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19547 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19548 else
19549 cat >> confdefs.h <<\EOF
19550#define wxUSE_PROGRESSDLG 1
19551EOF
19552
19553 fi
19554fi
19555
cbca9943
VZ
19556if test "$wxUSE_SPLASH" = "yes"; then
19557 cat >> confdefs.h <<\EOF
19558#define wxUSE_SPLASH 1
19559EOF
19560
19561fi
19562
1e6feb95
VZ
19563if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19564 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19565 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19566 else
19567 cat >> confdefs.h <<\EOF
19568#define wxUSE_STARTUP_TIPS 1
19569EOF
19570
19571 fi
19572fi
19573
19574if test "$wxUSE_TEXTDLG" = "yes"; then
19575 cat >> confdefs.h <<\EOF
19576#define wxUSE_TEXTDLG 1
19577EOF
19578
19579fi
19580
b1f5d087
VZ
19581if test "$wxUSE_WIZARDDLG" = "yes"; then
19582 cat >> confdefs.h <<\EOF
19583#define wxUSE_WIZARDDLG 1
19584EOF
19585
19586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19587fi
19588
1e6feb95 19589
698dcdb6
VZ
19590if test "$cross_compiling" = "yes"; then
19591 OSINFO="\"$host\""
19592else
19593 OSINFO=`uname -s -r -m`
19594 OSINFO="\"$OSINFO\""
19595fi
19596
19597cat >> confdefs.h <<EOF
19598#define WXWIN_OS_DESCRIPTION $OSINFO
19599EOF
19600
19601
19602
06dda230
VZ
19603if test "x$prefix" != "xNONE"; then
19604 wxPREFIX=$prefix
19605else
19606 wxPREFIX=$ac_default_prefix
19607fi
19608
7e67ed0d 19609cat >> confdefs.h <<EOF
06dda230 19610#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
19611EOF
19612
19613
19614
698dcdb6 19615
3a922bb4 19616
f11bdd03 19617if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 19618 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 19619fi
3a922bb4 19620
3d63bc3a
RL
19621
19622LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19623
698dcdb6 19624if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
19625
19626 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
19627
19628
19629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19630 drawing dynamic erase event exec font image \
19631 minimal richedit rotate widgets"
19632
3a922bb4
RL
19633 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19634else
19635 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
19636fi
19637
698dcdb6 19638
d714471b 19639INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
19640$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19641$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 19642
63e7762e 19643if test "$wxUSE_GTK" = 1; then
3d63bc3a 19644 WXCONFIG_INCLUDE=
698dcdb6
VZ
19645else
19646 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19647fi
19648
19649if test "$GXX" = yes ; then
19650 CXXWARNINGS="-Wall"
88e30f2b
RL
19651
19652 if test "$wxUSE_NO_DEPS" = "no" ; then
19653 CFLAGS="-MMD $CFLAGS"
19654 CXXFLAGS="-MMD $CXXFLAGS"
19655 fi
19656fi
19657
1725144d 19658EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
19659
19660CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19661CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19662
3d63bc3a 19663LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 19664
698dcdb6
VZ
19665SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
32832908 19733
2f51a9ec
GD
19734
19735
19736
19737
f6bcfd97 19738
dad6c0ea 19739
caa2c79b 19740
3711412e 19741
1e6feb95
VZ
19742
19743
885d4bf5
VS
19744
19745
19746
19747
62d0491b 19748
10f2d63a
VZ
19749
19750
698dcdb6 19751echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b040e242 19752echo "configure:19753: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19753set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19754if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19755 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19756else
698dcdb6 19757 cat > conftestmake <<\EOF
10f2d63a
VZ
19758all:
19759 @echo 'ac_maketemp="${MAKE}"'
19760EOF
19761# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19762eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19763if test -n "$ac_maketemp"; then
19764 eval ac_cv_prog_make_${ac_make}_set=yes
19765else
19766 eval ac_cv_prog_make_${ac_make}_set=no
19767fi
698dcdb6 19768rm -f conftestmake
10f2d63a
VZ
19769fi
19770if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19771 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19772 SET_MAKE=
19773else
698dcdb6 19774 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19775 SET_MAKE="MAKE=${MAKE-make}"
19776fi
19777
698dcdb6 19778
3a922bb4
RL
19779if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19780 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19781fi
665bbe97 19782
698dcdb6 19783
10f2d63a 19784
2224580a 19785if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19786 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19787 wx_cv_path_ifs=$PATH_IFS
19788 wx_cv_program_ext=$PROGRAM_EXT
19789 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19790 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19791 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19792 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19793 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19794 subdirs="demos samples utils contrib"
2224580a
VZ
19795
19796fi
10f2d63a 19797
698dcdb6
VZ
19798trap '' 1 2 15
19799cat > confcache <<\EOF
10f2d63a
VZ
19800# This file is a shell script that caches the results of configure
19801# tests run on this system so they can be shared between configure
698dcdb6
VZ
19802# scripts and configure runs. It is not useful on other systems.
19803# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19804#
698dcdb6
VZ
19805# By default, configure uses ./config.cache as the cache file,
19806# creating it if it does not exist already. You can give configure
19807# the --cache-file=FILE option to use a different cache file; that is
19808# what configure does when it calls configure scripts in
19809# subdirectories, so they share the cache.
19810# Giving --cache-file=/dev/null disables caching, for debugging configure.
19811# config.status only pays attention to the cache file if you give it the
19812# --recheck option to rerun configure.
10f2d63a 19813#
698dcdb6 19814EOF
10f2d63a
VZ
19815# The following way of writing the cache mishandles newlines in values,
19816# but we know of no workaround that is simple, portable, and efficient.
19817# So, don't put newlines in cache variables' values.
19818# Ultrix sh set writes to stderr and can't be redirected directly,
19819# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19820(set) 2>&1 |
19821 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19822 *ac_space=\ *)
19823 # `set' does not quote correctly, so add quotes (double-quote substitution
19824 # turns \\\\ into \\, and sed turns \\ into \).
19825 sed -n \
19826 -e "s/'/'\\\\''/g" \
19827 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19828 ;;
19829 *)
19830 # `set' quotes correctly as required by POSIX, so do not add quotes.
19831 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19832 ;;
19833 esac >> confcache
19834if cmp -s $cache_file confcache; then
19835 :
19836else
10f2d63a 19837 if test -w $cache_file; then
698dcdb6
VZ
19838 echo "updating cache $cache_file"
19839 cat confcache > $cache_file
10f2d63a
VZ
19840 else
19841 echo "not updating unwritable cache $cache_file"
19842 fi
19843fi
19844rm -f confcache
19845
698dcdb6
VZ
19846trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19847
10f2d63a
VZ
19848test "x$prefix" = xNONE && prefix=$ac_default_prefix
19849# Let make expand exec_prefix.
19850test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19851
698dcdb6
VZ
19852# Any assignment to VPATH causes Sun make to only execute
19853# the first set of double-colon rules, so remove it if not needed.
19854# If there is a colon in the path, we need to keep it.
10f2d63a 19855if test "x$srcdir" = x.; then
698dcdb6 19856 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19857fi
19858
698dcdb6
VZ
19859trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19860
10f2d63a
VZ
19861DEFS=-DHAVE_CONFIG_H
19862
698dcdb6 19863# Without the "./", some shells look in PATH for config.status.
10f2d63a 19864: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19865
19866echo creating $CONFIG_STATUS
19867rm -f $CONFIG_STATUS
19868cat > $CONFIG_STATUS <<EOF
19869#! /bin/sh
10f2d63a
VZ
19870# Generated automatically by configure.
19871# Run this file to recreate the current configuration.
698dcdb6
VZ
19872# This directory was configured as follows,
19873# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19874#
19875# $0 $ac_configure_args
19876#
10f2d63a 19877# Compiler output produced by configure, useful for debugging
698dcdb6 19878# configure, is in ./config.log if it exists.
1e487827 19879
698dcdb6
VZ
19880ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19881for ac_option
10f2d63a 19882do
698dcdb6 19883 case "\$ac_option" in
10f2d63a 19884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19885 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19886 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19887 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19888 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19889 exit 0 ;;
19890 -help | --help | --hel | --he | --h)
19891 echo "\$ac_cs_usage"; exit 0 ;;
19892 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19893 esac
19894done
19895
698dcdb6
VZ
19896ac_given_srcdir=$srcdir
19897ac_given_INSTALL="$INSTALL"
703e0a69 19898
698dcdb6
VZ
19899trap 'rm -fr `echo "
19900 wx-config
19901 src/make.env
19902 src/makeprog.env
19903 src/makelib.env
19904 Makefile
19905 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19906EOF
698dcdb6 19907cat >> $CONFIG_STATUS <<EOF
1e487827 19908
698dcdb6
VZ
19909# Protect against being on the right side of a sed subst in config.status.
19910sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19911 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19912$ac_vpsub
19913$extrasub
19914s%@SHELL@%$SHELL%g
19915s%@CFLAGS@%$CFLAGS%g
19916s%@CPPFLAGS@%$CPPFLAGS%g
19917s%@CXXFLAGS@%$CXXFLAGS%g
19918s%@FFLAGS@%$FFLAGS%g
19919s%@DEFS@%$DEFS%g
19920s%@LDFLAGS@%$LDFLAGS%g
19921s%@LIBS@%$LIBS%g
19922s%@exec_prefix@%$exec_prefix%g
19923s%@prefix@%$prefix%g
19924s%@program_transform_name@%$program_transform_name%g
19925s%@bindir@%$bindir%g
19926s%@sbindir@%$sbindir%g
19927s%@libexecdir@%$libexecdir%g
19928s%@datadir@%$datadir%g
19929s%@sysconfdir@%$sysconfdir%g
19930s%@sharedstatedir@%$sharedstatedir%g
19931s%@localstatedir@%$localstatedir%g
19932s%@libdir@%$libdir%g
19933s%@includedir@%$includedir%g
19934s%@oldincludedir@%$oldincludedir%g
19935s%@infodir@%$infodir%g
19936s%@mandir@%$mandir%g
19937s%@host@%$host%g
19938s%@host_alias@%$host_alias%g
19939s%@host_cpu@%$host_cpu%g
19940s%@host_vendor@%$host_vendor%g
19941s%@host_os@%$host_os%g
19942s%@target@%$target%g
19943s%@target_alias@%$target_alias%g
19944s%@target_cpu@%$target_cpu%g
19945s%@target_vendor@%$target_vendor%g
19946s%@target_os@%$target_os%g
19947s%@build@%$build%g
19948s%@build_alias@%$build_alias%g
19949s%@build_cpu@%$build_cpu%g
19950s%@build_vendor@%$build_vendor%g
19951s%@build_os@%$build_os%g
19952s%@CC@%$CC%g
19953s%@CPP@%$CPP%g
19954s%@CXX@%$CXX%g
698dcdb6
VZ
19955s%@RANLIB@%$RANLIB%g
19956s%@AR@%$AR%g
19957s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19958s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19959s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19960s%@STRIP@%$STRIP%g
19961s%@YACC@%$YACC%g
19962s%@LEX@%$LEX%g
19963s%@LEXLIB@%$LEXLIB%g
19964s%@LN_S@%$LN_S%g
19965s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19966s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19967s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19968s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19969s%@X_CFLAGS@%$X_CFLAGS%g
19970s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19971s%@X_LIBS@%$X_LIBS%g
19972s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19973s%@RESCOMP@%$RESCOMP%g
698dcdb6 19974s%@DEREZ@%$DEREZ%g
3a922bb4 19975s%@CXXCPP@%$CXXCPP%g
b040e242 19976s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
19977s%@LEX_STEM@%$LEX_STEM%g
19978s%@PATH_IFS@%$PATH_IFS%g
19979s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19980s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19981s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19982s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19983s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19984s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19985s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19986s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19987s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19988s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19989s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19990s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19991s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19992s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19993s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19994s%@WX_ALL@%$WX_ALL%g
19995s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19996s%@SHARED_LD@%$SHARED_LD%g
19997s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19998s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19999s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20000s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20001s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20002s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20003s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20004s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20005s%@USE_GUI@%$USE_GUI%g
20006s%@AFMINSTALL@%$AFMINSTALL%g
20007s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20008s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20009s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20010s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20011s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20012s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20013s%@cross_compiling@%$cross_compiling%g
20014s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20015s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20016s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20017s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20018s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20019s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
20020s%@GUIDIST@%$GUIDIST%g
20021s%@PORT_FILES@%$PORT_FILES%g
20022s%@DISTDIR@%$DISTDIR%g
698dcdb6 20023s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20024s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 20025s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20026s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20027s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20028s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20029s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 20030s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 20031s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
20032s%@LIBWXMACRES@%$LIBWXMACRES%g
20033s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20034s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20035s%@DLLTOOL@%$DLLTOOL%g
20036s%@AS@%$AS%g
20037s%@NM@%$NM%g
20038s%@LD@%$LD%g
20039s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20040s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20041s%@SET_MAKE@%$SET_MAKE%g
20042s%@subdirs@%$subdirs%g
1e487827 20043
1e487827 20044CEOF
1e487827
VS
20045EOF
20046
698dcdb6
VZ
20047cat >> $CONFIG_STATUS <<\EOF
20048
20049# Split the substitutions into bite-sized pieces for seds with
20050# small command number limits, like on Digital OSF/1 and HP-UX.
20051ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20052ac_file=1 # Number of current file.
20053ac_beg=1 # First line for current file.
20054ac_end=$ac_max_sed_cmds # Line after last line for current file.
20055ac_more_lines=:
20056ac_sed_cmds=""
20057while $ac_more_lines; do
20058 if test $ac_beg -gt 1; then
20059 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20060 else
20061 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20062 fi
20063 if test ! -s conftest.s$ac_file; then
20064 ac_more_lines=false
20065 rm -f conftest.s$ac_file
20066 else
20067 if test -z "$ac_sed_cmds"; then
20068 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20069 else
698dcdb6 20070 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20071 fi
698dcdb6
VZ
20072 ac_file=`expr $ac_file + 1`
20073 ac_beg=$ac_end
20074 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20075 fi
698dcdb6
VZ
20076done
20077if test -z "$ac_sed_cmds"; then
20078 ac_sed_cmds=cat
20079fi
20080EOF
10f2d63a 20081
698dcdb6
VZ
20082cat >> $CONFIG_STATUS <<EOF
20083
20084CONFIG_FILES=\${CONFIG_FILES-"wx-config
20085 src/make.env
20086 src/makeprog.env
20087 src/makelib.env
20088 Makefile
20089 "}
10f2d63a 20090EOF
698dcdb6
VZ
20091cat >> $CONFIG_STATUS <<\EOF
20092for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20094 case "$ac_file" in
20095 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20096 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20097 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20098 esac
20099
698dcdb6 20100 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20101
698dcdb6
VZ
20102 # Remove last slash and all that follows it. Not all systems have dirname.
20103 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20105 # The file is in a subdirectory.
20106 test ! -d "$ac_dir" && mkdir "$ac_dir"
20107 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20108 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20109 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20110 else
20111 ac_dir_suffix= ac_dots=
20112 fi
20113
698dcdb6
VZ
20114 case "$ac_given_srcdir" in
20115 .) srcdir=.
20116 if test -z "$ac_dots"; then top_srcdir=.
20117 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20118 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20119 *) # Relative path.
698dcdb6
VZ
20120 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20121 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20122 esac
20123
698dcdb6
VZ
20124 case "$ac_given_INSTALL" in
20125 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20126 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20127 esac
20128
698dcdb6
VZ
20129 echo creating "$ac_file"
20130 rm -f "$ac_file"
20131 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20132 case "$ac_file" in
20133 *Makefile*) ac_comsub="1i\\
20134# $configure_input" ;;
20135 *) ac_comsub= ;;
20136 esac
10f2d63a 20137
698dcdb6
VZ
20138 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20139 sed -e "$ac_comsub
20140s%@configure_input@%$configure_input%g
20141s%@srcdir@%$srcdir%g
20142s%@top_srcdir@%$top_srcdir%g
20143s%@INSTALL@%$INSTALL%g
20144" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20145fi; done
20146rm -f conftest.s*
10f2d63a
VZ
20147
20148# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20149# NAME is the cpp macro being defined and VALUE is the value it is being given.
20150#
20151# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20152ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20153ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20154ac_dC='\3'
20155ac_dD='%g'
20156# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20157ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20158ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20159ac_uC=' '
698dcdb6
VZ
20160ac_uD='\4%g'
20161# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20162ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20163ac_eB='$%\1#\2define\3'
20164ac_eC=' '
20165ac_eD='%g'
10f2d63a 20166
698dcdb6
VZ
20167if test "${CONFIG_HEADERS+set}" != set; then
20168EOF
20169cat >> $CONFIG_STATUS <<EOF
20170 CONFIG_HEADERS="setup.h:setup.h.in"
20171EOF
20172cat >> $CONFIG_STATUS <<\EOF
20173fi
20174for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20176 case "$ac_file" in
20177 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20178 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20179 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20180 esac
20181
698dcdb6
VZ
20182 echo creating $ac_file
20183
20184 rm -f conftest.frag conftest.in conftest.out
20185 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20186 cat $ac_file_inputs > conftest.in
20187
20188EOF
20189
20190# Transform confdefs.h into a sed script conftest.vals that substitutes
20191# the proper values into config.h.in to produce config.h. And first:
20192# Protect against being on the right side of a sed subst in config.status.
20193# Protect against being in an unquoted here document in config.status.
20194rm -f conftest.vals
20195cat > conftest.hdr <<\EOF
20196s/[\\&%]/\\&/g
20197s%[\\$`]%\\&%g
20198s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20199s%ac_d%ac_u%gp
20200s%ac_u%ac_e%gp
20201EOF
20202sed -n -f conftest.hdr confdefs.h > conftest.vals
20203rm -f conftest.hdr
10f2d63a
VZ
20204
20205# This sed command replaces #undef with comments. This is necessary, for
20206# example, in the case of _POSIX_SOURCE, which is predefined and required
20207# on some systems where configure will not decide to define it.
698dcdb6
VZ
20208cat >> conftest.vals <<\EOF
20209s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20210EOF
20211
698dcdb6
VZ
20212# Break up conftest.vals because some shells have a limit on
20213# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20214
20215rm -f conftest.tail
698dcdb6 20216while :
10f2d63a 20217do
698dcdb6
VZ
20218 ac_lines=`grep -c . conftest.vals`
20219 # grep -c gives empty output for an empty file on some AIX systems.
20220 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20221 # Write a limited-size here document to conftest.frag.
20222 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20223 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20224 echo 'CEOF
698dcdb6
VZ
20225 sed -f conftest.frag conftest.in > conftest.out
20226 rm -f conftest.in
20227 mv conftest.out conftest.in
20228' >> $CONFIG_STATUS
20229 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20230 rm -f conftest.vals
20231 mv conftest.tail conftest.vals
10f2d63a 20232done
698dcdb6
VZ
20233rm -f conftest.vals
20234
20235cat >> $CONFIG_STATUS <<\EOF
20236 rm -f conftest.frag conftest.h
20237 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20238 cat conftest.in >> conftest.h
20239 rm -f conftest.in
20240 if cmp -s $ac_file conftest.h 2>/dev/null; then
20241 echo "$ac_file is unchanged"
20242 rm -f conftest.h
10f2d63a 20243 else
698dcdb6
VZ
20244 # Remove last slash and all that follows it. Not all systems have dirname.
20245 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20246 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20247 # The file is in a subdirectory.
20248 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20249 fi
698dcdb6
VZ
20250 rm -f $ac_file
20251 mv conftest.h $ac_file
10f2d63a 20252 fi
698dcdb6
VZ
20253fi; done
20254
10f2d63a 20255EOF
698dcdb6 20256cat >> $CONFIG_STATUS <<EOF
10f2d63a 20257
3a922bb4 20258 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20259 LN_S="${LN_S}"
20260
20261
20262EOF
20263cat >> $CONFIG_STATUS <<\EOF
10f2d63a 20264
652d930d 20265 if test ! -h wx-config; then
991a5759 20266 chmod +x wx-config
3a922bb4
RL
20267 mv wx-config wx${TOOLCHAIN_NAME}-config
20268 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 20269 fi
665bbe97 20270
00cf1208
RR
20271 if test ! -d lib; then
20272 mkdir lib
20273 fi
20274 if test ! -d lib/wx; then
20275 mkdir lib/wx
20276 fi
20277 if test ! -d lib/wx/include; then
20278 mkdir lib/wx/include
20279 fi
3a922bb4
RL
20280 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20281 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 20282 fi
3a922bb4
RL
20283 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20284 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
20285 fi
20286 if test -f setup.h; then
3a922bb4 20287 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 20288 fi
698dcdb6
VZ
20289
20290exit 0
10f2d63a
VZ
20291EOF
20292chmod +x $CONFIG_STATUS
698dcdb6
VZ
20293rm -fr confdefs* $ac_clean_files
20294test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 20295
2224580a
VZ
20296if test "$no_recursion" != yes; then
20297
20298 # Remove --cache-file and --srcdir arguments so they do not pile up.
20299 ac_sub_configure_args=
20300 ac_prev=
20301 for ac_arg in $ac_configure_args; do
20302 if test -n "$ac_prev"; then
20303 ac_prev=
20304 continue
20305 fi
698dcdb6 20306 case "$ac_arg" in
2224580a
VZ
20307 -cache-file | --cache-file | --cache-fil | --cache-fi \
20308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20309 ac_prev=cache_file ;;
20310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 20311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
20312 ;;
20313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20314 ac_prev=srcdir ;;
20315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20316 ;;
20317 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20318 esac
20319 done
20320
698dcdb6 20321 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
20322
20323 # Do not complain, so a configure script can configure whichever
20324 # parts of a large source tree are present.
698dcdb6
VZ
20325 if test ! -d $srcdir/$ac_config_dir; then
20326 continue
20327 fi
20328
20329 echo configuring in $ac_config_dir
2224580a 20330
698dcdb6 20331 case "$srcdir" in
2224580a
VZ
20332 .) ;;
20333 *)
698dcdb6
VZ
20334 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20335 else
20336 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20337 fi
20338 ;;
2224580a
VZ
20339 esac
20340
20341 ac_popdir=`pwd`
698dcdb6 20342 cd $ac_config_dir
2224580a 20343
698dcdb6
VZ
20344 # A "../" for each directory in /$ac_config_dir.
20345 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 20346
698dcdb6 20347 case "$srcdir" in
2224580a
VZ
20348 .) # No --srcdir option. We are building in place.
20349 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
20350 /*) # Absolute path.
20351 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 20352 *) # Relative path.
698dcdb6 20353 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
20354 esac
20355
20356 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
20357 if test -f $ac_sub_srcdir/configure; then
20358 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
20359 elif test -f $ac_sub_srcdir/configure.in; then
20360 ac_sub_configure=$ac_configure
20361 else
698dcdb6 20362 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
20363 ac_sub_configure=
20364 fi
20365
20366 # The recursion is here.
20367 if test -n "$ac_sub_configure"; then
698dcdb6 20368
2224580a 20369 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
20370 case "$cache_file" in
20371 /*) ac_sub_cache_file=$cache_file ;;
2224580a 20372 *) # Relative path.
698dcdb6 20373 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 20374 esac
698dcdb6
VZ
20375 case "$ac_given_INSTALL" in
20376 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20377 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20378 esac
2224580a 20379
698dcdb6 20380 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 20381 # The eval makes quoting arguments work.
698dcdb6
VZ
20382 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20383 then :
20384 else
20385 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20386 fi
2224580a
VZ
20387 fi
20388
20389 cd $ac_popdir
20390 done
20391fi
20392
698dcdb6 20393